@angular-wave/angular.ts 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular-ts.esm.js +2 -2
- package/dist/angular-ts.umd.js +2 -2
- package/package.json +1 -1
- package/src/angular.spec.js +1 -1
- package/src/animations/animate.spec.js +1 -1
- package/src/core/cache/cache-factory.js +3 -0
- package/src/core/compile/attributes.js +1 -1
- package/src/core/compile/compile.js +10 -6
- package/src/core/compile/compile.spec.js +92 -97
- package/src/core/di/internal-injector.js +14 -14
- package/src/core/di/ng-module.js +2 -2
- package/src/core/filter/filter.md +1 -1
- package/src/core/location/location.spec.js +9 -9
- package/src/core/sanitize/sanitize-uri.spec.js +1 -1
- package/src/core/sce/sce.spec.js +3 -3
- package/src/core/scope/scope.spec.js +1 -1
- package/src/core/url-utils/url-utils.js +4 -4
- package/src/core/url-utils/url-utils.spec.js +1 -1
- package/src/directive/attrs/boolean.spec.js +1 -1
- package/src/directive/class/class.js +10 -90
- package/src/directive/class/class.md +90 -0
- package/src/directive/class/class.spec.js +1 -1
- package/src/directive/controller/controller.spec.js +0 -12
- package/src/directive/form/form.spec.js +3 -3
- package/src/directive/include/include.spec.js +8 -8
- package/src/directive/init/init.spec.js +2 -2
- package/src/directive/input/input.js +1 -1
- package/src/directive/messages/messages.spec.js +9 -9
- package/src/directive/model/model.js +50 -42
- package/src/directive/options/options.js +2 -2
- package/src/directive/options/options.spec.js +1 -1
- package/src/directive/repeat/repeat.spec.js +8 -8
- package/src/directive/script/script.js +1 -1
- package/src/directive/select/select.js +1 -1
- package/src/directive/show-hide/show-hide.spec.js +1 -1
- package/src/directive/style/style.spec.js +1 -1
- package/src/directive/switch/switch.spec.js +1 -1
- package/src/directive/validators/validators.js +2 -2
- package/src/filters/filter.js +2 -3
- package/src/filters/limit-to.js +2 -2
- package/src/public.js +1 -3
- package/src/router/directives/view-directive.spec.js +16 -16
- package/src/services/cookie-reader.js +1 -1
- package/src/services/http/http.js +32 -34
- package/src/services/http/template-request.spec.js +5 -20
- package/src/services/template-request.js +2 -1
- package/src/shared/common.spec.js +1 -3
- package/src/shared/hof.js +1 -2
- package/src/shared/jqlite/jqlite.js +26 -28
- package/src/shared/jqlite/jqlite.spec.js +10 -10
- package/src/shared/utils.js +6 -11
- package/typedoc/assets/navigation.js +1 -1
- package/typedoc/assets/search.js +1 -1
- package/typedoc/classes/animations_animate.AnimateProvider.html +5 -5
- package/typedoc/classes/animations_animate_cache.__AnimateCacheProvider.html +2 -2
- package/typedoc/classes/animations_animate_css._AnimateCssProvider.html +2 -2
- package/typedoc/classes/animations_animate_css_driver.__AnimateCssDriverProvider.html +2 -2
- package/typedoc/classes/animations_animate_js.__AnimateJsProvider.html +2 -2
- package/typedoc/classes/animations_animate_js_driver.__AnimateJsDriverProvider.html +2 -2
- package/typedoc/classes/animations_animate_queue.__AnimateQueueProvider.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateAsyncRunFactoryProvider.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateRunner.html +2 -2
- package/typedoc/classes/animations_animate_runner.AnimateRunnerFactoryProvider.html +2 -2
- package/typedoc/classes/animations_animation.__AnimationProvider.html +2 -2
- package/typedoc/classes/animations_raf_scheduler.RafSchedulerProvider.html +3 -3
- package/typedoc/classes/core_cache_cache_factory.TemplateCacheProvider.html +3 -0
- package/typedoc/classes/core_compile_attributes.Attributes.html +11 -11
- package/typedoc/classes/core_compile_compile._CompileProvider.html +7 -7
- package/typedoc/classes/core_controller_controller._ControllerProvider.html +18 -11
- package/typedoc/classes/core_di_internal_injector.InjectorService.html +6 -6
- package/typedoc/classes/core_di_internal_injector.ProviderInjector.html +7 -7
- package/typedoc/classes/core_di_ng_module.NgModule.html +4 -4
- package/typedoc/classes/core_exception_handler._ExceptionHandlerProvider.html +2 -2
- package/typedoc/classes/core_filter_filter._FilterProvider.html +2 -2
- package/typedoc/classes/core_interpolate_interpolate._InterpolateProvider.html +4 -4
- package/typedoc/classes/core_interval_interval._IntervalProvider.html +2 -2
- package/typedoc/classes/core_interval_interval_factory.__IntervalFactoryProvider.html +2 -2
- package/typedoc/classes/core_location_location.Location.html +20 -20
- package/typedoc/classes/core_location_location.LocationHashbangUrl.html +21 -21
- package/typedoc/classes/core_location_location.LocationHtml5Url.html +21 -21
- package/typedoc/classes/core_location_location._LocationProvider.html +4 -4
- package/typedoc/classes/core_parser_ast.AST.html +28 -28
- package/typedoc/classes/core_parser_interpreter.ASTInterpreter.html +26 -26
- package/typedoc/classes/core_parser_lexer.Lexer.html +16 -16
- package/typedoc/classes/core_parser_parse._ParseProvider.html +3 -3
- package/typedoc/classes/core_parser_parser.Parser.html +4 -4
- package/typedoc/classes/core_pubsub_pubsub.PubSub.html +9 -9
- package/typedoc/classes/core_q_q._QProvider.html +3 -3
- package/typedoc/classes/core_q_q.__QProvider.html +2 -2
- package/typedoc/classes/core_sanitize_sanitize_uri.SanitizeUriProvider.html +4 -4
- package/typedoc/classes/core_sce_sce._SceDelegateProvider.html +4 -4
- package/typedoc/classes/core_sce_sce._SceProvider.html +3 -3
- package/typedoc/classes/core_scope_scope.Scope.html +18 -18
- package/typedoc/classes/core_scope_scope._RootScopeProvider.html +2 -2
- package/typedoc/classes/core_task_tracker_factory.TaskTracker.html +7 -7
- package/typedoc/classes/core_task_tracker_factory.__TaskTrackerFactoryProvider.html +2 -2
- package/typedoc/classes/core_timeout_timeout._TimeoutProvider.html +2 -2
- package/typedoc/classes/directive_aria_aria.AriaProvider.html +2 -2
- package/typedoc/classes/directive_form_form.FormController.html +21 -21
- package/typedoc/classes/directive_model_model.NgModelController.html +32 -32
- package/typedoc/classes/loader.Angular.html +5 -5
- package/typedoc/classes/router_common_glob.Glob.html +4 -4
- package/typedoc/classes/router_common_queue.Queue.html +2 -2
- package/typedoc/classes/router_common_trace.Trace.html +17 -17
- package/typedoc/classes/router_globals.UIRouterGlobals.html +3 -3
- package/typedoc/classes/router_params_param.Param.html +6 -6
- package/typedoc/classes/router_params_param_factory.ParamFactory.html +2 -2
- package/typedoc/classes/router_params_param_type.ParamType.html +4 -4
- package/typedoc/classes/router_params_param_types.ParamTypes.html +3 -3
- package/typedoc/classes/router_params_state_params.StateParams.html +3 -3
- package/typedoc/classes/router_path_path_node.PathNode.html +7 -7
- package/typedoc/classes/router_path_path_utils.PathUtils.html +10 -10
- package/typedoc/classes/router_resolve_resolvable.Resolvable.html +4 -4
- package/typedoc/classes/router_resolve_resolve_context.ResolveContext.html +10 -10
- package/typedoc/classes/router_state_state_builder.StateBuilder.html +3 -3
- package/typedoc/classes/router_state_state_matcher.StateMatcher.html +2 -2
- package/typedoc/classes/router_state_state_object.StateObject.html +9 -9
- package/typedoc/classes/router_state_state_queue_manager.StateQueueManager.html +2 -2
- package/typedoc/classes/router_state_state_registry.StateRegistry.html +8 -8
- package/typedoc/classes/router_state_state_service.StateService.html +17 -17
- package/typedoc/classes/router_state_target_state.TargetState.html +15 -15
- package/typedoc/classes/router_state_views.Ng1ViewConfig.html +4 -4
- package/typedoc/classes/router_template_factory.TemplateFactory.html +9 -9
- package/typedoc/classes/router_transition_hook_builder.HookBuilder.html +4 -4
- package/typedoc/classes/router_transition_hook_registry.RegisteredHook.html +6 -6
- package/typedoc/classes/router_transition_reject_factory.Rejection.html +9 -9
- package/typedoc/classes/router_transition_transition.Transition.html +31 -31
- package/typedoc/classes/router_transition_transition_event_type.TransitionEventType.html +3 -3
- package/typedoc/classes/router_transition_transition_hook.TransitionHook.html +10 -10
- package/typedoc/classes/router_transition_transition_service.TransitionService.html +8 -8
- package/typedoc/classes/router_url_url_config.UrlConfigProvider.html +6 -6
- package/typedoc/classes/router_url_url_matcher.UrlMatcher.html +12 -12
- package/typedoc/classes/router_url_url_rule.BaseUrlRule.html +3 -3
- package/typedoc/classes/router_url_url_rule.UrlRuleFactory.html +5 -5
- package/typedoc/classes/router_url_url_rules.UrlRules.html +9 -9
- package/typedoc/classes/router_url_url_service.UrlService.html +20 -20
- package/typedoc/classes/router_view_scroll._ViewScrollProvider.html +2 -2
- package/typedoc/classes/router_view_view.ViewService.html +7 -7
- package/typedoc/classes/services_anchor_scroll.AnchorScrollProvider.html +2 -2
- package/typedoc/classes/services_browser.Browser.html +7 -7
- package/typedoc/classes/services_browser.BrowserProvider.html +2 -2
- package/typedoc/classes/services_http_backend_http_backend._HttpBackendProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpParamSerializerJQLikeProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpParamSerializerProvider.html +2 -2
- package/typedoc/classes/services_http_http._HttpProvider.html +3 -3
- package/typedoc/classes/services_log._LogProvider.html +3 -3
- package/typedoc/classes/services_template_request.TemplateRequestProvider.html +4 -4
- package/typedoc/classes/shared_jqlite_jqlite.JQLite.html +20 -20
- package/typedoc/enums/core_parser_ast_type.ASTType.html +2 -2
- package/typedoc/enums/core_scope_scope.ScopePhase.html +2 -2
- package/typedoc/enums/router_transition_reject_factory.RejectType.html +6 -6
- package/typedoc/functions/animations_animate.domInsert.html +1 -1
- package/typedoc/functions/animations_animate_cache.animateCache.html +6 -6
- package/typedoc/functions/animations_animate_children_directive.__AnimateChildrenDirective.html +2 -2
- package/typedoc/functions/animations_animate_swap.ngAnimateSwapDirective.html +2 -2
- package/typedoc/functions/animations_shared.applyAnimationClassesFactory.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationFromStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyAnimationToStyles.html +1 -1
- package/typedoc/functions/animations_shared.applyGeneratedPreparationClasses.html +1 -1
- package/typedoc/functions/animations_shared.applyInlineStyle.html +1 -1
- package/typedoc/functions/animations_shared.assertArg.html +1 -1
- package/typedoc/functions/animations_shared.blockKeyframeAnimations.html +1 -1
- package/typedoc/functions/animations_shared.clearGeneratedClasses.html +1 -1
- package/typedoc/functions/animations_shared.concatWithSpace.html +1 -1
- package/typedoc/functions/animations_shared.extractElementNode.html +1 -1
- package/typedoc/functions/animations_shared.getDomNode.html +1 -1
- package/typedoc/functions/animations_shared.mergeAnimationDetails.html +1 -1
- package/typedoc/functions/animations_shared.mergeClasses.html +1 -1
- package/typedoc/functions/animations_shared.ngMinErr.html +1 -1
- package/typedoc/functions/animations_shared.packageStyles.html +1 -1
- package/typedoc/functions/animations_shared.pendClasses.html +1 -1
- package/typedoc/functions/animations_shared.prepareAnimationOptions.html +1 -1
- package/typedoc/functions/animations_shared.removeFromArray.html +1 -1
- package/typedoc/functions/animations_shared.resolveElementClasses.html +1 -1
- package/typedoc/functions/animations_shared.stripCommentsFromElement.html +1 -1
- package/typedoc/functions/core_controller_controller.identifierForController.html +1 -1
- package/typedoc/functions/core_di_injector.annotate.html +1 -1
- package/typedoc/functions/core_di_injector.createInjector.html +1 -1
- package/typedoc/functions/core_exception_handler.errorHandler-1.html +1 -1
- package/typedoc/functions/core_location_location.serverBase.html +1 -1
- package/typedoc/functions/core_location_location.stripBaseUrl.html +1 -1
- package/typedoc/functions/core_location_location.stripFile.html +1 -1
- package/typedoc/functions/core_location_location.stripHash.html +1 -1
- package/typedoc/functions/core_parser_interpreter.isAssignable.html +1 -1
- package/typedoc/functions/core_parser_parse.constantWatchDelegate.html +1 -1
- package/typedoc/functions/core_q_q.markQExceptionHandled.html +1 -1
- package/typedoc/functions/core_sce_sce.adjustMatcher.html +1 -1
- package/typedoc/functions/core_sce_sce.escapeForRegexp.html +1 -1
- package/typedoc/functions/core_scope_scope.countChildScopes.html +1 -1
- package/typedoc/functions/core_scope_scope.countWatchers.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.getBaseUrl.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsAllowedOriginFactory.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsSameOrigin.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlIsSameOriginAsBaseUrl.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlResolve.html +1 -1
- package/typedoc/functions/core_url_utils_url_utils.urlsAreSameOrigin.html +1 -1
- package/typedoc/functions/directive_aria_aria.ngCheckedAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngClickAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngDblclickAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngDisabledAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngHideAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngMessagesAriaDirective.html +1 -1
- package/typedoc/functions/directive_aria_aria.ngModelAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngReadonlyAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngRequiredAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngShowAriaDirective.html +2 -2
- package/typedoc/functions/directive_aria_aria.ngValueAriaDirective.html +2 -2
- package/typedoc/functions/directive_bind_bind.ngBindDirective.html +1 -1
- package/typedoc/functions/directive_bind_bind.ngBindTemplateDirective.html +1 -1
- package/typedoc/functions/directive_change_change.ngChangeDirective.html +1 -1
- package/typedoc/functions/directive_cloak_cloak.ngCloakDirective.html +1 -1
- package/typedoc/functions/directive_events_events.createEventDirective.html +1 -1
- package/typedoc/functions/directive_form_form.addSetValidityMethod.html +1 -1
- package/typedoc/functions/directive_form_form.isObjectEmpty.html +1 -1
- package/typedoc/functions/directive_form_form.setupValidity.html +1 -1
- package/typedoc/functions/directive_if_if.ngIfDirective.html +2 -2
- package/typedoc/functions/directive_init_init.ngInitDirective.html +1 -1
- package/typedoc/functions/directive_input_input.badInputChecker.html +1 -1
- package/typedoc/functions/directive_input_input.countDecimals.html +1 -1
- package/typedoc/functions/directive_input_input.createDateInputType.html +1 -1
- package/typedoc/functions/directive_input_input.createDateParser.html +1 -1
- package/typedoc/functions/directive_input_input.hiddenInputBrowserCacheDirective.html +1 -1
- package/typedoc/functions/directive_input_input.inputDirective.html +2 -2
- package/typedoc/functions/directive_input_input.isNumberInteger.html +1 -1
- package/typedoc/functions/directive_input_input.isValidForStep.html +1 -1
- package/typedoc/functions/directive_input_input.ngValueDirective.html +1 -1
- package/typedoc/functions/directive_input_input.numberFormatterParser.html +1 -1
- package/typedoc/functions/directive_input_input.numberInputType.html +1 -1
- package/typedoc/functions/directive_input_input.rangeInputType.html +1 -1
- package/typedoc/functions/directive_input_input.weekParser.html +1 -1
- package/typedoc/functions/directive_list_list.ngListDirective.html +1 -1
- package/typedoc/functions/directive_messages_messages.ngMessageDefaultDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessageDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessageExpDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessagesDirective.html +2 -2
- package/typedoc/functions/directive_messages_messages.ngMessagesIncludeDirective.html +2 -2
- package/typedoc/functions/directive_model_model.ngModelDirective.html +2 -2
- package/typedoc/functions/directive_model_model.ngModelMinErr.html +1 -1
- package/typedoc/functions/directive_model_options_model_options.ngModelOptionsDirective.html +1 -1
- package/typedoc/functions/directive_non_bindable_non_bindable.ngNonBindableDirective.html +1 -1
- package/typedoc/functions/directive_select_select.optionDirective.html +2 -2
- package/typedoc/functions/directive_select_select.selectDirective.html +1 -1
- package/typedoc/functions/directive_show_hide_show_hide.ngHideDirective.html +2 -2
- package/typedoc/functions/directive_show_hide_show_hide.ngShowDirective.html +2 -2
- package/typedoc/functions/directive_style_style.ngStyleDirective.html +1 -1
- package/typedoc/functions/directive_switch_switch.ngSwitchDefaultDirective.html +1 -1
- package/typedoc/functions/directive_switch_switch.ngSwitchWhenDirective.html +1 -1
- package/typedoc/functions/filters_filter.filterFilter.html +1 -1
- package/typedoc/functions/filters_filters.formatNumber.html +1 -1
- package/typedoc/functions/filters_filters.jsonFilter.html +1 -1
- package/typedoc/functions/filters_limit_to.limitToFilter.html +1 -1
- package/typedoc/functions/filters_order_by.orderByFilter.html +2 -2
- package/typedoc/functions/public.publishExternalAPI.html +1 -1
- package/typedoc/functions/router_directives_state_directives._StateRefActiveDirective.html +2 -2
- package/typedoc/functions/router_directives_state_directives._StateRefDirective.html +2 -2
- package/typedoc/functions/router_directives_state_directives._StateRefDynamicDirective.html +2 -2
- package/typedoc/functions/router_directives_view_directive._ViewDirectiveFill.html +2 -2
- package/typedoc/functions/router_hooks_core_resolvables.registerAddCoreResolvables.html +1 -1
- package/typedoc/functions/router_hooks_core_resolvables.treeChangesCleanup.html +1 -1
- package/typedoc/functions/router_hooks_ignored_transition.registerIgnoredTransitionHook.html +1 -1
- package/typedoc/functions/router_hooks_invalid_transition.registerInvalidTransitionHook.html +1 -1
- package/typedoc/functions/router_hooks_lazy_load.lazyLoadState.html +1 -1
- package/typedoc/functions/router_hooks_lazy_load.registerLazyLoadHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnEnterHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnExitHook.html +1 -1
- package/typedoc/functions/router_hooks_on_enter_exit_retain.registerOnRetainHook.html +1 -1
- package/typedoc/functions/router_hooks_redirect_to.registerRedirectToHook.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerEagerResolvePath.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerLazyResolveState.html +1 -1
- package/typedoc/functions/router_hooks_resolve.registerResolveRemaining.html +1 -1
- package/typedoc/functions/router_hooks_update_globals.registerUpdateGlobalState.html +1 -1
- package/typedoc/functions/router_hooks_url.registerUpdateUrl.html +1 -1
- package/typedoc/functions/router_hooks_views.registerActivateViews.html +1 -1
- package/typedoc/functions/router_hooks_views.registerLoadEnteringViews.html +1 -1
- package/typedoc/functions/router_state_filters._IncludedByStateFilter.html +2 -2
- package/typedoc/functions/router_state_filters._IsStateFilter.html +2 -2
- package/typedoc/functions/router_state_state_builder.resolvablesBuilder.html +1 -1
- package/typedoc/functions/router_state_state_registry.getLocals.html +1 -1
- package/typedoc/functions/router_state_views.getNg1ViewConfigFactory.html +1 -1
- package/typedoc/functions/router_state_views.ng1ViewsBuilder.html +1 -1
- package/typedoc/functions/router_transition_hook_registry.makeEvent.html +1 -1
- package/typedoc/functions/router_transition_hook_registry.matchState.html +1 -1
- package/typedoc/functions/services_browser.trimEmptyHash.html +1 -1
- package/typedoc/functions/services_cookie_reader.getCookies.html +1 -1
- package/typedoc/functions/services_http_backend_http_backend.createHttpBackend.html +1 -1
- package/typedoc/functions/services_http_http.defaultHttpResponseTransform.html +1 -1
- package/typedoc/functions/shared_common._removeFrom.html +1 -1
- package/typedoc/functions/shared_common.allTrueR.html +1 -1
- package/typedoc/functions/shared_common.ancestors.html +1 -1
- package/typedoc/functions/shared_common.anyTrueR.html +1 -1
- package/typedoc/functions/shared_common.applyPairs.html +1 -1
- package/typedoc/functions/shared_common.arrayTuples.html +1 -1
- package/typedoc/functions/shared_common.assertFn.html +1 -1
- package/typedoc/functions/shared_common.assertMap.html +1 -1
- package/typedoc/functions/shared_common.assertPredicate.html +1 -1
- package/typedoc/functions/shared_common.copy.html +1 -1
- package/typedoc/functions/shared_common.createProxyFunctions.html +1 -1
- package/typedoc/functions/shared_common.defaults.html +1 -1
- package/typedoc/functions/shared_common.deregAll.html +1 -1
- package/typedoc/functions/shared_common.equals.html +1 -1
- package/typedoc/functions/shared_common.filter.html +1 -1
- package/typedoc/functions/shared_common.find.html +1 -1
- package/typedoc/functions/shared_common.flatten.html +1 -1
- package/typedoc/functions/shared_common.flattenR.html +1 -1
- package/typedoc/functions/shared_common.forEach.html +1 -1
- package/typedoc/functions/shared_common.inherit.html +1 -1
- package/typedoc/functions/shared_common.map.html +1 -1
- package/typedoc/functions/shared_common.mergeR.html +1 -1
- package/typedoc/functions/shared_common.omit.html +1 -1
- package/typedoc/functions/shared_common.pairs.html +1 -1
- package/typedoc/functions/shared_common.pick.html +1 -1
- package/typedoc/functions/shared_common.pluck.html +1 -1
- package/typedoc/functions/shared_common.pushR.html +1 -1
- package/typedoc/functions/shared_common.silenceUncaughtInPromise.html +1 -1
- package/typedoc/functions/shared_common.silentRejection.html +1 -1
- package/typedoc/functions/shared_common.tail.html +1 -1
- package/typedoc/functions/shared_common.uniqR.html +1 -1
- package/typedoc/functions/shared_common.unnest.html +1 -1
- package/typedoc/functions/shared_common.unnestR.html +1 -1
- package/typedoc/functions/shared_hof.all.html +1 -1
- package/typedoc/functions/shared_hof.compose.html +1 -1
- package/typedoc/functions/shared_hof.curry.html +1 -1
- package/typedoc/functions/shared_hof.is.html +1 -1
- package/typedoc/functions/shared_hof.or.html +1 -1
- package/typedoc/functions/shared_hof.parse.html +1 -1
- package/typedoc/functions/shared_hof.pattern.html +1 -1
- package/typedoc/functions/shared_hof.pipe.html +1 -1
- package/typedoc/functions/shared_hof.prop.html +1 -1
- package/typedoc/functions/shared_hof.val.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.buildFragment.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.cleanElementData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.dealoc.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getBlockNodes.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getBooleanAttrName.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.getOrSetCacheData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.isTextNode.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.kebabToCamel.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.removeElement.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.removeElementData.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.snakeToCamel.html +1 -1
- package/typedoc/functions/shared_jqlite_jqlite.startingTag.html +1 -1
- package/typedoc/functions/shared_predicates.isInjectable.html +1 -1
- package/typedoc/functions/shared_predicates.isNull.html +1 -1
- package/typedoc/functions/shared_predicates.isNullOrUndefined.html +1 -1
- package/typedoc/functions/shared_predicates.isPromise.html +1 -1
- package/typedoc/functions/shared_strings.beforeAfterSubstr.html +1 -1
- package/typedoc/functions/shared_strings.fnToString.html +1 -1
- package/typedoc/functions/shared_strings.functionToString.html +1 -1
- package/typedoc/functions/shared_strings.joinNeighborsR.html +1 -1
- package/typedoc/functions/shared_strings.kebobString.html +1 -1
- package/typedoc/functions/shared_strings.maxLength.html +1 -1
- package/typedoc/functions/shared_strings.padString.html +1 -1
- package/typedoc/functions/shared_strings.splitEqual.html +1 -1
- package/typedoc/functions/shared_strings.splitHash.html +1 -1
- package/typedoc/functions/shared_strings.splitOnDelim.html +1 -1
- package/typedoc/functions/shared_strings.splitQuery.html +1 -1
- package/typedoc/functions/shared_strings.stringify.html +1 -1
- package/typedoc/functions/shared_strings.stripLastPathElement.html +1 -1
- package/typedoc/functions/shared_strings.trimHashVal.html +1 -1
- package/typedoc/functions/shared_utils.addDateMinutes.html +1 -1
- package/typedoc/functions/shared_utils.arrayRemove.html +1 -1
- package/typedoc/functions/shared_utils.assert.html +1 -1
- package/typedoc/functions/shared_utils.assertArg.html +1 -1
- package/typedoc/functions/shared_utils.assertArgFn.html +1 -1
- package/typedoc/functions/shared_utils.assertNotHasOwnProperty.html +1 -1
- package/typedoc/functions/shared_utils.baseExtend.html +1 -1
- package/typedoc/functions/shared_utils.bind.html +1 -1
- package/typedoc/functions/shared_utils.concat.html +1 -1
- package/typedoc/functions/shared_utils.convertTimezoneToLocal.html +1 -1
- package/typedoc/functions/shared_utils.csp.html +1 -1
- package/typedoc/functions/shared_utils.directiveNormalize.html +3 -3
- package/typedoc/functions/shared_utils.encodeUriQuery.html +1 -1
- package/typedoc/functions/shared_utils.encodeUriSegment.html +1 -1
- package/typedoc/functions/shared_utils.equals.html +1 -1
- package/typedoc/functions/shared_utils.errorHandlingConfig-1.html +1 -1
- package/typedoc/functions/shared_utils.extend.html +1 -1
- package/typedoc/functions/shared_utils.forEach.html +1 -1
- package/typedoc/functions/shared_utils.fromJson.html +1 -1
- package/typedoc/functions/shared_utils.getNgAttribute.html +1 -1
- package/typedoc/functions/shared_utils.getNodeName.html +1 -1
- package/typedoc/functions/shared_utils.hasAnimate.html +1 -1
- package/typedoc/functions/shared_utils.hasCustomToString.html +1 -1
- package/typedoc/functions/shared_utils.hashKey.html +1 -1
- package/typedoc/functions/shared_utils.includes.html +1 -1
- package/typedoc/functions/shared_utils.inherit.html +1 -1
- package/typedoc/functions/shared_utils.isArrayBuffer.html +1 -1
- package/typedoc/functions/shared_utils.isArrayLike.html +1 -1
- package/typedoc/functions/shared_utils.isBlankObject.html +1 -1
- package/typedoc/functions/shared_utils.isBlob.html +1 -1
- package/typedoc/functions/shared_utils.isBoolean.html +1 -1
- package/typedoc/functions/shared_utils.isDate.html +1 -1
- package/typedoc/functions/shared_utils.isDefined.html +1 -1
- package/typedoc/functions/shared_utils.isElement.html +1 -1
- package/typedoc/functions/shared_utils.isError.html +1 -1
- package/typedoc/functions/shared_utils.isFile.html +1 -1
- package/typedoc/functions/shared_utils.isFormData.html +1 -1
- package/typedoc/functions/shared_utils.isFunction.html +1 -1
- package/typedoc/functions/shared_utils.isNumber.html +1 -1
- package/typedoc/functions/shared_utils.isNumberNaN.html +1 -1
- package/typedoc/functions/shared_utils.isObject.html +1 -1
- package/typedoc/functions/shared_utils.isPromiseLike.html +1 -1
- package/typedoc/functions/shared_utils.isRegExp.html +1 -1
- package/typedoc/functions/shared_utils.isScope.html +1 -1
- package/typedoc/functions/shared_utils.isString.html +1 -1
- package/typedoc/functions/shared_utils.isTypedArray.html +1 -1
- package/typedoc/functions/shared_utils.isUndefined.html +1 -1
- package/typedoc/functions/shared_utils.isValidObjectMaxDepth.html +1 -1
- package/typedoc/functions/shared_utils.isWindow.html +1 -1
- package/typedoc/functions/shared_utils.lowercase.html +1 -1
- package/typedoc/functions/shared_utils.merge.html +1 -1
- package/typedoc/functions/shared_utils.mergeClasses.html +1 -1
- package/typedoc/functions/shared_utils.minErr.html +1 -1
- package/typedoc/functions/shared_utils.nextUid.html +1 -1
- package/typedoc/functions/shared_utils.parseKeyValue.html +1 -1
- package/typedoc/functions/shared_utils.reverseParams.html +1 -1
- package/typedoc/functions/shared_utils.setHashKey.html +1 -1
- package/typedoc/functions/shared_utils.shallowCopy.html +1 -1
- package/typedoc/functions/shared_utils.simpleCompare.html +1 -1
- package/typedoc/functions/shared_utils.sliceArgs.html +1 -1
- package/typedoc/functions/shared_utils.snakeCase.html +1 -1
- package/typedoc/functions/shared_utils.stringify.html +1 -1
- package/typedoc/functions/shared_utils.timezoneToOffset.html +1 -1
- package/typedoc/functions/shared_utils.toDebugString.html +1 -1
- package/typedoc/functions/shared_utils.toInt.html +1 -1
- package/typedoc/functions/shared_utils.toJson.html +1 -1
- package/typedoc/functions/shared_utils.toKeyValue.html +1 -1
- package/typedoc/functions/shared_utils.trim.html +1 -1
- package/typedoc/functions/shared_utils.tryDecodeURIComponent.html +1 -1
- package/typedoc/functions/shared_utils.uppercase.html +1 -1
- package/typedoc/functions/shared_utils.valueFn.html +1 -1
- package/typedoc/interfaces/animations_animate.AnimationOptions.html +5 -5
- package/typedoc/interfaces/animations_raf_scheduler.RafSchedulerObject.html +2 -2
- package/typedoc/interfaces/core_cache_cache.ExpandoStore.html +2 -2
- package/typedoc/interfaces/core_compile_attributes.AttributeLike.html +2 -2
- package/typedoc/interfaces/core_location_location.DefaultPorts.html +2 -2
- package/typedoc/interfaces/core_location_location.Html5Mode.html +2 -2
- package/typedoc/interfaces/core_parser_ast.ASTNode.html +23 -23
- package/typedoc/interfaces/core_parser_lexer.LexerOptions.html +3 -3
- package/typedoc/interfaces/core_parser_lexer.Token.html +7 -7
- package/typedoc/interfaces/core_parser_parse.CompiledExpressionProps.html +5 -5
- package/typedoc/interfaces/core_parser_parser.ParsedAST.html +3 -3
- package/typedoc/interfaces/core_q_q.Deferred.html +5 -5
- package/typedoc/interfaces/core_q_q.PromiseResolvables.html +2 -2
- package/typedoc/interfaces/core_q_q.PromiseState.html +2 -2
- package/typedoc/interfaces/core_q_q.QPromise.html +6 -6
- package/typedoc/interfaces/core_q_q.QService.html +2 -2
- package/typedoc/interfaces/core_scope_scope.AsyncQueueTask.html +2 -2
- package/typedoc/interfaces/directive_model_options_model_options.ModelOptionsConfig.html +5 -5
- package/typedoc/interfaces/loader.AngularBootstrapConfig.html +2 -2
- package/typedoc/interfaces/router_template_factory.BindingTuple.html +2 -2
- package/typedoc/interfaces/services_anchor_scroll.AnchorScrollObject.html +2 -2
- package/typedoc/interfaces/services_log.LogService.html +6 -6
- package/typedoc/interfaces/shared_utils.ErrorHandlingConfig.html +3 -3
- package/typedoc/interfaces/types.Annotated.html +2 -2
- package/typedoc/interfaces/types.ChangesObject.html +4 -4
- package/typedoc/interfaces/types.Controller.html +7 -7
- package/typedoc/interfaces/types.Directive.html +18 -18
- package/typedoc/interfaces/types.DirectivePrePost.html +3 -3
- package/typedoc/interfaces/types.FormController.html +20 -20
- package/typedoc/interfaces/types.Module.html +15 -15
- package/typedoc/interfaces/types.NgModelController.html +30 -30
- package/typedoc/interfaces/types.NgModelOptions.html +8 -8
- package/typedoc/interfaces/types.OnChangesObject.html +2 -2
- package/typedoc/interfaces/types.ServiceProviderClass.html +2 -2
- package/typedoc/interfaces/types.TranscludeFunctionObject.html +2 -2
- package/typedoc/modules/animations_animate.html +1 -1
- package/typedoc/modules/animations_animate_cache.html +1 -1
- package/typedoc/modules/animations_animate_children_directive.html +1 -1
- package/typedoc/modules/animations_animate_css.html +1 -1
- package/typedoc/modules/animations_animate_css_driver.html +1 -1
- package/typedoc/modules/animations_animate_js.html +1 -1
- package/typedoc/modules/animations_animate_js_driver.html +1 -1
- package/typedoc/modules/animations_animate_queue.html +1 -1
- package/typedoc/modules/animations_animate_runner.html +1 -1
- package/typedoc/modules/animations_animate_swap.html +1 -1
- package/typedoc/modules/animations_animation.html +1 -1
- package/typedoc/modules/animations_raf_scheduler.html +1 -1
- package/typedoc/modules/animations_shared.html +1 -1
- package/typedoc/modules/core_cache_cache.html +1 -1
- package/typedoc/modules/core_cache_cache_factory.html +2 -0
- package/typedoc/modules/core_compile_attributes.html +1 -1
- package/typedoc/modules/core_compile_compile.html +1 -1
- package/typedoc/modules/core_controller_controller.html +1 -1
- package/typedoc/modules/core_di_injector.html +1 -1
- package/typedoc/modules/core_di_internal_injector.html +1 -1
- package/typedoc/modules/core_di_ng_module.html +1 -1
- package/typedoc/modules/core_exception_handler.html +1 -1
- package/typedoc/modules/core_filter_filter.html +1 -1
- package/typedoc/modules/core_interpolate_interpolate.html +1 -1
- package/typedoc/modules/core_interval_interval.html +1 -1
- package/typedoc/modules/core_interval_interval_factory.html +1 -1
- package/typedoc/modules/core_location_location.html +1 -1
- package/typedoc/modules/core_parser_ast.html +1 -1
- package/typedoc/modules/core_parser_ast_type.html +1 -1
- package/typedoc/modules/core_parser_interpreter.html +1 -1
- package/typedoc/modules/core_parser_lexer.html +1 -1
- package/typedoc/modules/core_parser_parse.html +1 -1
- package/typedoc/modules/core_parser_parser.html +1 -1
- package/typedoc/modules/core_pubsub_pubsub.html +1 -1
- package/typedoc/modules/core_q_q.html +1 -1
- package/typedoc/modules/core_sanitize_sanitize_uri.html +1 -1
- package/typedoc/modules/core_sce_sce.html +1 -1
- package/typedoc/modules/core_scope_scope.html +1 -1
- package/typedoc/modules/core_task_tracker_factory.html +1 -1
- package/typedoc/modules/core_timeout_timeout.html +1 -1
- package/typedoc/modules/core_url_utils_url_utils.html +1 -1
- package/typedoc/modules/directive_aria_aria.html +1 -1
- package/typedoc/modules/directive_attrs_attrs.html +1 -1
- package/typedoc/modules/directive_bind_bind.html +1 -1
- package/typedoc/modules/directive_change_change.html +1 -1
- package/typedoc/modules/directive_class_class.html +1 -1
- package/typedoc/modules/directive_cloak_cloak.html +1 -1
- package/typedoc/modules/directive_controller_controller.html +1 -1
- package/typedoc/modules/directive_events_events.html +1 -1
- package/typedoc/modules/directive_form_form.html +1 -1
- package/typedoc/modules/directive_if_if.html +1 -1
- package/typedoc/modules/directive_include_include.html +1 -1
- package/typedoc/modules/directive_init_init.html +1 -1
- package/typedoc/modules/directive_input_input.html +1 -1
- package/typedoc/modules/directive_list_list.html +1 -1
- package/typedoc/modules/directive_messages_messages.html +1 -1
- package/typedoc/modules/directive_model_model.html +1 -1
- package/typedoc/modules/directive_model_options_model_options.html +1 -1
- package/typedoc/modules/directive_non_bindable_non_bindable.html +1 -1
- package/typedoc/modules/directive_options_options.html +1 -1
- package/typedoc/modules/directive_ref_ref.html +1 -1
- package/typedoc/modules/directive_repeat_repeat.html +1 -1
- package/typedoc/modules/directive_script_script.html +1 -1
- package/typedoc/modules/directive_select_select.html +1 -1
- package/typedoc/modules/directive_show_hide_show_hide.html +1 -1
- package/typedoc/modules/directive_style_style.html +1 -1
- package/typedoc/modules/directive_switch_switch.html +1 -1
- package/typedoc/modules/directive_transclude_transclude.html +1 -1
- package/typedoc/modules/directive_validators_validators.html +1 -1
- package/typedoc/modules/filters_filter.html +1 -1
- package/typedoc/modules/filters_filters.html +1 -1
- package/typedoc/modules/filters_limit_to.html +1 -1
- package/typedoc/modules/filters_order_by.html +1 -1
- package/typedoc/modules/index.html +1 -1
- package/typedoc/modules/loader.html +1 -1
- package/typedoc/modules/public.html +1 -1
- package/typedoc/modules/router_common_coreservices.html +1 -1
- package/typedoc/modules/router_common_glob.html +1 -1
- package/typedoc/modules/router_common_queue.html +1 -1
- package/typedoc/modules/router_common_trace.html +1 -1
- package/typedoc/modules/router_directives_state_directives.html +1 -1
- package/typedoc/modules/router_directives_view_directive.html +1 -1
- package/typedoc/modules/router_globals.html +1 -1
- package/typedoc/modules/router_hooks_core_resolvables.html +1 -1
- package/typedoc/modules/router_hooks_ignored_transition.html +1 -1
- package/typedoc/modules/router_hooks_invalid_transition.html +1 -1
- package/typedoc/modules/router_hooks_lazy_load.html +1 -1
- package/typedoc/modules/router_hooks_on_enter_exit_retain.html +1 -1
- package/typedoc/modules/router_hooks_redirect_to.html +1 -1
- package/typedoc/modules/router_hooks_resolve.html +1 -1
- package/typedoc/modules/router_hooks_update_globals.html +1 -1
- package/typedoc/modules/router_hooks_url.html +1 -1
- package/typedoc/modules/router_hooks_views.html +1 -1
- package/typedoc/modules/router_params_param.html +1 -1
- package/typedoc/modules/router_params_param_factory.html +1 -1
- package/typedoc/modules/router_params_param_type.html +1 -1
- package/typedoc/modules/router_params_param_types.html +1 -1
- package/typedoc/modules/router_params_state_params.html +1 -1
- package/typedoc/modules/router_path_path_node.html +1 -1
- package/typedoc/modules/router_path_path_utils.html +1 -1
- package/typedoc/modules/router_resolve_resolvable.html +1 -1
- package/typedoc/modules/router_resolve_resolve_context.html +1 -1
- package/typedoc/modules/router_state_filters.html +1 -1
- package/typedoc/modules/router_state_state_builder.html +1 -1
- package/typedoc/modules/router_state_state_matcher.html +1 -1
- package/typedoc/modules/router_state_state_object.html +1 -1
- package/typedoc/modules/router_state_state_queue_manager.html +1 -1
- package/typedoc/modules/router_state_state_registry.html +1 -1
- package/typedoc/modules/router_state_state_service.html +1 -1
- package/typedoc/modules/router_state_target_state.html +1 -1
- package/typedoc/modules/router_state_views.html +1 -1
- package/typedoc/modules/router_template_factory.html +1 -1
- package/typedoc/modules/router_transition_hook_builder.html +1 -1
- package/typedoc/modules/router_transition_hook_registry.html +1 -1
- package/typedoc/modules/router_transition_interface.html +1 -1
- package/typedoc/modules/router_transition_reject_factory.html +1 -1
- package/typedoc/modules/router_transition_transition.html +1 -1
- package/typedoc/modules/router_transition_transition_event_type.html +1 -1
- package/typedoc/modules/router_transition_transition_hook.html +1 -1
- package/typedoc/modules/router_transition_transition_service.html +1 -1
- package/typedoc/modules/router_url_url_config.html +1 -1
- package/typedoc/modules/router_url_url_matcher.html +1 -1
- package/typedoc/modules/router_url_url_rule.html +1 -1
- package/typedoc/modules/router_url_url_rules.html +1 -1
- package/typedoc/modules/router_url_url_service.html +1 -1
- package/typedoc/modules/router_view_scroll.html +1 -1
- package/typedoc/modules/router_view_view.html +1 -1
- package/typedoc/modules/services_anchor_scroll.html +1 -1
- package/typedoc/modules/services_browser.html +1 -1
- package/typedoc/modules/services_cookie_reader.html +1 -1
- package/typedoc/modules/services_http_backend_http_backend.html +1 -1
- package/typedoc/modules/services_http_http.html +1 -1
- package/typedoc/modules/services_log.html +1 -1
- package/typedoc/modules/services_template_request.html +1 -1
- package/typedoc/modules/shared_common.html +1 -2
- package/typedoc/modules/shared_constants.html +1 -1
- package/typedoc/modules/shared_hof.html +1 -2
- package/typedoc/modules/shared_jqlite_jqlite.html +1 -1
- package/typedoc/modules/shared_predicates.html +1 -1
- package/typedoc/modules/shared_strings.html +1 -1
- package/typedoc/modules/shared_utils.html +1 -3
- package/typedoc/modules/types.html +1 -1
- package/typedoc/types/animations_animate.AnimationMethod.html +1 -1
- package/typedoc/types/animations_raf_scheduler.RafScheduler.html +1 -1
- package/typedoc/types/animations_raf_scheduler.RafSchedulerFunction.html +1 -1
- package/typedoc/types/core_compile_compile.CompositeLinkFn.html +1 -1
- package/typedoc/types/core_exception_handler.ErrorHandler.html +1 -1
- package/typedoc/types/core_exception_handler.ExceptionHandlerProvider.html +1 -1
- package/typedoc/types/core_interval_interval.IntervalId.html +1 -1
- package/typedoc/types/core_parser_interpreter.DecoratedASTNode.html +1 -1
- package/typedoc/types/core_parser_parse.CompiledExpression.html +1 -1
- package/typedoc/types/core_parser_parse.CompiledExpressionFunction.html +1 -1
- package/typedoc/types/core_parser_parse.ParseService.html +1 -1
- package/typedoc/types/core_scope_scope.TTL.html +1 -1
- package/typedoc/types/core_scope_scope.WatchExpression.html +1 -1
- package/typedoc/types/core_scope_scope.WatchListener.html +1 -1
- package/typedoc/types/core_url_utils_url_utils.HttpProtocol.html +1 -1
- package/typedoc/types/services_anchor_scroll.AnchorScrollFunction.html +1 -1
- package/typedoc/types/services_anchor_scroll.AnchorScrollService.html +1 -1
- package/typedoc/types/services_browser.UrlChangeListener.html +1 -1
- package/typedoc/types/services_log.LogCall.html +1 -1
- package/typedoc/types/types.AnnotatedFunction.html +1 -1
- package/typedoc/types/types.AsyncModelValidators.html +1 -1
- package/typedoc/types/types.Attributes.html +1 -1
- package/typedoc/types/types.BootstrapConfig.html +1 -1
- package/typedoc/types/types.CloneAttachFunction.html +1 -1
- package/typedoc/types/types.ComponentOptions.html +1 -1
- package/typedoc/types/types.ControllerConstructor.html +1 -1
- package/typedoc/types/types.DirectiveCompileFn.html +1 -1
- package/typedoc/types/types.DirectiveController.html +1 -1
- package/typedoc/types/types.DirectiveFactory.html +1 -1
- package/typedoc/types/types.DirectiveLinkFn.html +1 -1
- package/typedoc/types/types.FilterFactory.html +1 -1
- package/typedoc/types/types.FilterFunction.html +1 -1
- package/typedoc/types/types.Injectable.html +1 -1
- package/typedoc/types/types.ModelValidators.html +1 -1
- package/typedoc/types/types.ServiceProviderFactory.html +1 -1
- package/typedoc/types/types.TAttributes.html +1 -1
- package/typedoc/types/types.TController.html +1 -1
- package/typedoc/types/types.TElement.html +1 -1
- package/typedoc/types/types.TScope.html +1 -1
- package/typedoc/types/types.TranscludeFunction.html +1 -1
- package/typedoc/types/types.transcludeWithScope.html +1 -1
- package/typedoc/types/types.transcludeWithoutScope.html +1 -1
- package/typedoc/variables/animations_shared.ACTIVE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.ADD_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATIONEND_EVENT.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_DELAY_PROP.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_DURATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_ITERATION_COUNT_KEY.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_PLAYSTATE_KEY.html +1 -1
- package/typedoc/variables/animations_shared.ANIMATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.CSS_PREFIX.html +1 -1
- package/typedoc/variables/animations_shared.DELAY_KEY.html +1 -1
- package/typedoc/variables/animations_shared.DURATION_KEY.html +1 -1
- package/typedoc/variables/animations_shared.EVENT_CLASS_PREFIX.html +1 -1
- package/typedoc/variables/animations_shared.NG_ANIMATE_CHILDREN_DATA.html +1 -1
- package/typedoc/variables/animations_shared.NG_ANIMATE_CLASSNAME.html +1 -1
- package/typedoc/variables/animations_shared.PREPARE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.PROPERTY_KEY.html +1 -1
- package/typedoc/variables/animations_shared.REMOVE_CLASS_SUFFIX.html +1 -1
- package/typedoc/variables/animations_shared.SAFE_FAST_FORWARD_DURATION_VALUE.html +1 -1
- package/typedoc/variables/animations_shared.TIMING_KEY.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITIONEND_EVENT.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_DELAY_PROP.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_DURATION_PROP.html +1 -1
- package/typedoc/variables/animations_shared.TRANSITION_PROP.html +1 -1
- package/typedoc/variables/core_cache_cache.CACHE.html +1 -1
- package/typedoc/variables/core_cache_cache.EXPANDO.html +1 -1
- package/typedoc/variables/core_di_injector.path.html +1 -1
- package/typedoc/variables/core_di_ng_module.ANIMATION_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.COMPILE_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.CONTROLLER_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.FILTER_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.INJECTOR_LITERAL.html +1 -1
- package/typedoc/variables/core_di_ng_module.PROVIDE_LITERAL.html +1 -1
- package/typedoc/variables/core_parser_ast.literals.html +1 -1
- package/typedoc/variables/core_parser_interpreter.PURITY_ABSOLUTE.html +1 -1
- package/typedoc/variables/core_parser_interpreter.PURITY_RELATIVE.html +1 -1
- package/typedoc/variables/core_pubsub_pubsub.EventBus.html +1 -1
- package/typedoc/variables/core_sce_sce.SCE_CONTEXTS.html +1 -1
- package/typedoc/variables/core_scope_scope.TTL-1.html +1 -1
- package/typedoc/variables/core_scope_scope.__applyAsyncQueue.html +1 -1
- package/typedoc/variables/core_scope_scope.__asyncQueue.html +1 -1
- package/typedoc/variables/core_scope_scope.__postDigestQueue.html +1 -1
- package/typedoc/variables/directive_attrs_attrs.REGEX_STRING_REGEXP.html +1 -1
- package/typedoc/variables/directive_attrs_attrs.ngAttributeAliasDirectives.html +1 -1
- package/typedoc/variables/directive_bind_bind.ngBindHtmlDirective.html +1 -1
- package/typedoc/variables/directive_class_class.ngClassDirective.html +1 -58
- package/typedoc/variables/directive_class_class.ngClassEvenDirective.html +1 -27
- package/typedoc/variables/directive_class_class.ngClassOddDirective.html +1 -27
- package/typedoc/variables/directive_controller_controller.ngControllerDirective.html +1 -1
- package/typedoc/variables/directive_events_events.ngEventDirectives.html +1 -1
- package/typedoc/variables/directive_form_form.PENDING_CLASS.html +1 -1
- package/typedoc/variables/directive_form_form.formDirective.html +1 -1
- package/typedoc/variables/directive_form_form.ngFormDirective.html +1 -1
- package/typedoc/variables/directive_form_form.nullFormCtrl.html +1 -1
- package/typedoc/variables/directive_include_include.ngIncludeDirective.html +1 -1
- package/typedoc/variables/directive_include_include.ngIncludeFillContentDirective.html +1 -1
- package/typedoc/variables/directive_input_input.EMAIL_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.ISO_DATE_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.URL_REGEXP.html +1 -1
- package/typedoc/variables/directive_input_input.VALIDITY_STATE_PROPERTY.html +1 -1
- package/typedoc/variables/directive_model_options_model_options.defaultModelOptions.html +1 -1
- package/typedoc/variables/directive_options_options.ngOptionsDirective.html +1 -1
- package/typedoc/variables/directive_ref_ref.ngRefDirective.html +1 -1
- package/typedoc/variables/directive_repeat_repeat.ngRepeatDirective.html +1 -1
- package/typedoc/variables/directive_script_script.scriptDirective.html +1 -1
- package/typedoc/variables/directive_switch_switch.ngSwitchDirective.html +1 -1
- package/typedoc/variables/directive_transclude_transclude.ngTranscludeDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.maxlengthDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.minlengthDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.patternDirective.html +1 -1
- package/typedoc/variables/directive_validators_validators.requiredDirective.html +1 -1
- package/typedoc/variables/index.angular.html +1 -1
- package/typedoc/variables/public.VERSION.html +1 -1
- package/typedoc/variables/router_common_coreservices.services.html +1 -1
- package/typedoc/variables/router_common_trace.Category.html +1 -1
- package/typedoc/variables/router_common_trace.trace-1.html +1 -1
- package/typedoc/variables/router_directives_view_directive.ngView.html +1 -1
- package/typedoc/variables/router_hooks_resolve.RESOLVE_HOOK_PRIORITY.html +1 -1
- package/typedoc/variables/router_params_param.DefType.html +1 -1
- package/typedoc/variables/router_resolve_resolvable.defaultResolvePolicy.html +1 -1
- package/typedoc/variables/router_resolve_resolve_context.resolvePolicies.html +1 -1
- package/typedoc/variables/router_transition_interface.TransitionHookPhase.html +1 -1
- package/typedoc/variables/router_transition_interface.TransitionHookScope.html +1 -1
- package/typedoc/variables/router_transition_transition_service.defaultTransOpts.html +1 -1
- package/typedoc/variables/services_log.LogService-1.html +1 -1
- package/typedoc/variables/shared_common.pushTo.html +1 -1
- package/typedoc/variables/shared_common.removeFrom.html +1 -1
- package/typedoc/variables/shared_constants.ALIASED_ATTR.html +1 -1
- package/typedoc/variables/shared_constants.DIRTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.EMPTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.INVALID_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.NOT_EMPTY_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.PREFIX_REGEXP.html +1 -1
- package/typedoc/variables/shared_constants.PRISTINE_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.SPECIAL_CHARS_REGEXP.html +1 -1
- package/typedoc/variables/shared_constants.TOUCHED_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.UNTOUCHED_CLASS.html +1 -1
- package/typedoc/variables/shared_constants.VALID_CLASS.html +1 -1
- package/typedoc/variables/shared_hof.propEq.html +1 -1
- package/typedoc/variables/shared_jqlite_jqlite.BOOLEAN_ATTR.html +1 -1
- package/typedoc/variables/shared_strings.hostRegex.html +1 -1
- package/typedoc/variables/shared_utils.ngAttrPrefixes.html +1 -1
- package/types/core/cache/cache-factory.d.ts +4 -0
- package/types/core/di/internal-injector.d.ts +6 -6
- package/types/core/di/ng-module.d.ts +2 -2
- package/types/directive/class/class.d.ts +3 -100
- package/types/directive/model/model.d.ts +6 -3
- package/types/directive/validators/validators.d.ts +2 -2
- package/types/services/http/http.d.ts +1 -1
- package/types/shared/hof.d.ts +0 -1
- package/types/shared/jqlite/jqlite.d.ts +4 -4
- package/types/shared/utils.d.ts +5 -5
- package/src/core/cache/cache-factory.html +0 -18
- package/src/core/cache/cache-factory.spec.js +0 -334
- package/src/core/cache/cache-factory.test.js +0 -11
- package/src/services/cache-factory.js +0 -289
- package/src/services/cache-factory.md +0 -75
- package/typedoc/classes/services_cache_factory.CacheFactoryProvider.html +0 -3
- package/typedoc/classes/services_cache_factory.TemplateCacheProvider.html +0 -53
- package/typedoc/functions/shared_common.mapObj.html +0 -3
- package/typedoc/functions/shared_hof.eq.html +0 -2
- package/typedoc/functions/shared_utils.forEachSorted.html +0 -1
- package/typedoc/functions/shared_utils.getter.html +0 -5
- package/typedoc/modules/services_cache_factory.html +0 -3
- package/types/services/cache-factory.d.ts +0 -68
package/dist/angular-ts.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* Version: 0.
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,(function(t){"use strict";const e="ng-valid",n="ng-invalid",r="ng-pristine",i="ng-dirty",s="ng-untouched",o="ng-touched",a="ng-empty",c="ng-not-empty",l=/^((?:x|data)[-])/i,u=/[-]+(.)/g,h={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},d=ht("ng");let p=0;function f(){return p+=1,p}function $(t){return w(t)?t.toLowerCase():t}function m(t){if(null==t||x(t))return!1;if(Array.isArray(t)||t instanceof Array||w(t))return!0;const e="length"in Object(t)&&t.length;return b(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function g(t){return void 0===t}function y(t){return void 0!==t}function v(t){return null!==t&&"object"==typeof t}function w(t){return"string"==typeof t}function b(t){return"number"==typeof t}function E(t){return"[object Date]"===toString.call(t)}function C(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function S(t){return"function"==typeof t}function O(t){return"[object RegExp]"===toString.call(t)}function x(t){return t&&t.window===t}function A(t){return t&&t.$evalAsync&&t.$watch}function k(t){return"boolean"==typeof t}function _(t){return t&&S(t.then)}function T(t){return w(t)?t.trim():t}function j(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function N(t,e,n){let r,i;if(t)if(S(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else if(Array.isArray(t)||m(t)){const s="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==N)t.forEach(e,n,t);else if(null===(s=t)||"object"!=typeof s||Object.getPrototypeOf(s))for(r in t)Object.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else for(r in t)e.call(n,t[r],r,t);var s;return t}function V(t,e,n){const r=Object.keys(t).sort();return r.forEach((r=>e.call(n,t[r],r))),r}function R(t,...e){return function(t,e,n){const r=t.$$hashKey;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(!v(r)&&!S(r))continue;const i=Object.keys(r);for(let e=0,n=i.length;e<n;e++){const n=i[e],s=r[n];t[n]=s}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,r),t}(t,e)}function P(t){return parseInt(t,10)}function D(t){return Number.isNaN(t)}function M(t,e){return R(Object.create(t),e)}function L(t){return function(){return t}}function I(t){return S(t.toString)&&t.toString!==toString}function U(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function q(t){return $(t.nodeName||t[0]&&t[0].nodeName)}function H(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function F(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function B(t,e){return t===e||t!=t&&e!=e}function z(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,i,s;if(n===typeof e&&"object"===n){if(!Array.isArray(t)){if(E(t))return!!E(e)&&B(t.getTime(),e.getTime());if(O(t))return!!O(e)&&t.toString()===e.toString();if(A(t)||A(e)||x(t)||x(e)||Array.isArray(e)||E(e)||O(e))return!1;for(i in s=Object.create(null),t)if("$"!==i.charAt(0)&&!S(t[i])){if(!z(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&y(e[i])&&!S(e[i]))return!1;return!0}if(!Array.isArray(e))return!1;if((r=t.length)===e.length){for(i=0;i<r;i++)if(!z(t[i],e[i]))return!1;return!0}}return!1}function W(t,e){if("hasOwnProperty"===t)throw d("badname","hasOwnProperty is not a valid {0} name",e)}function G(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!I(t)||Array.isArray(t)||E(t)?J(t):t.toString()}return t}function K(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function Y(t,e){return Array.prototype.slice.call(t,e||0)}function Q(t,e){const n=arguments.length>2?Y(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,K(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Z(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:x(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":A(e)&&(n="$SCOPE"),n}function J(t,e){if(!g(t))return b(e)||(e=e?2:null),JSON.stringify(t,Z,e)}function X(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return D(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(i-r))}function tt(t){const e={};return(t||"").split("&").forEach((t=>{let n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=et(r),y(r)&&(i=!y(i)||et(i),Object.hasOwnProperty.call(e,r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function et(t){try{return decodeURIComponent(t)}catch(t){}}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const it=["ng-","data-ng-"];function st(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(v(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function ot(t,e="Assertion failed"){if(!t)throw new Error(e)}function at(t,e,n){if(!t)throw d("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ct(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),at(S(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const lt={objectMaxDepth:5,urlErrorParamsEnabled:!0};function ut(t){var e;return v(t)&&(y(t.objectMaxDepth)&&(lt.objectMaxDepth=b(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),y(t.urlErrorParamsEnabled)&&k(t.urlErrorParamsEnabled)&&(lt.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),lt}function ht(t){const e='https://errors.angularjs.org/"NG_VERSION_FULL"/',n=`${e.replace(".","\\.")}[\\s\\S]*`,r=new RegExp(n,"g");return function(...n){const i=n[0],s=n[1];let o=`[${t?`${t}:`:""}${i}] `;const a=Y(n,2).map((t=>dt(t)));let c,l;if(o+=s.replace(/\{\d+\}/g,(t=>{const e=+t.slice(1,-1);return e<a.length?a[e].replace(r,""):t})),o+=`\n${e}${t?`${t}/`:""}${i}`,ut().urlErrorParamsEnabled)for(l=0,c="?";l<a.length;l++,c="&")o+=`${c}p${l}=${encodeURIComponent(a[l])}`;return new Error(o)}}function dt(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(g(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(t);return JSON.stringify(n,((t,n)=>{const r=Z(t,n);if(v(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function pt(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${f()}`,t.$$hashKey):`${n}:${t}`}function ft(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function $t(t){return t.replace(l,"").replace(u,((t,e,n)=>n?e.toUpperCase():e))}function mt(t){return function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;const n=t;return"true"===n.dataset[e]||"true"===n.getAttribute(e)}(t,"animate")}const gt="ngId",yt=new Proxy(new Map,{get:(t,e,n)=>"size"===e?t.size:"function"==typeof t[e]?function(...n){return t[e].apply(t,n)}:Reflect.get(t,e,n),set:(t,e,n,r)=>Reflect.set(t,e,n,r),deleteProperty:(t,e)=>Reflect.deleteProperty(t,e),has:(t,e)=>Reflect.has(t,e),ownKeys:t=>Reflect.ownKeys(t),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e)});let vt=1;const wt=/-([a-z])/g,bt=/_([a-z])/g,Et={mouseleave:"mouseout",mouseenter:"mouseover"},Ct=ht("jqLite"),St=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ot=/<([\w:-]+)/,xt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};xt.tbody=xt.tfoot=xt.colgroup=xt.caption=xt.thead,xt.th=xt.td;const At={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{At[$(t)]=t}));const kt={};function _t(t){if(t instanceof _t)return t;let e=!1;if(w(t)&&(t=t.trim(),e=!0),!(this instanceof _t)){if(e&&"<"!==t.charAt(0))throw Ct("nosel","Looking up elements via selectors is not supported by JQLite! See: http://docs.angularjs.org/api/angular.element");return new _t(t)}if(e){qt(this,function(t){let e=St.exec(t);if(e)return[document.createElement(e[1])];let n=Mt(t);if(n)return n.childNodes;return[]}(t))}else S(t)?function(t){function e(){window.document.removeEventListener("DOMContentLoaded",e),t()}"complete"===window.document.readyState?window.setTimeout(t):window.document.addEventListener("DOMContentLoaded",e)}(t):qt(this,t)}function Tt(t,e){return e.toUpperCase()}function jt(t){return t.replace(wt,Tt)}function Nt(t){return t.replace(bt,Tt)}function Vt(t,e){const n=t[gt],r=n&&yt.get(n);r&&(e?delete r.data[e]:r.data={},It(t))}function Rt(t,e=!1){let n=t[gt],r=n&&yt.get(n);return e&&!r&&(t[gt]=n=++vt,r={events:{},data:{},handle:null},yt.set(n,r)),r}function Pt(t){return!/<|&#?\w+;/.test(t)}function Dt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Mt(t){let e,n,r,i,s=document.createDocumentFragment(),o=[];if(Pt(t))o.push(document.createTextNode(t));else{for(e=s.appendChild(document.createElement("div")),n=(Ot.exec(t)||["",""])[1].toLowerCase(),r=xt[n]||[],i=r.length;--i>-1;)e.appendChild(window.document.createElement(r[i])),e=e.firstChild;e.innerHTML=t,o=K(o,e.childNodes),e=s.firstChild,e.textContent=""}let a=document.createDocumentFragment();return a.append(...o),a}function Lt(t,e){t&&(!e&&Dt(t)&&Qt([t]),t.querySelectorAll&&Qt(t.querySelectorAll("*")))}function It(t){const e=t[gt],{events:n,data:r}=yt.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||(yt.delete(e),t[gt]=void 0)}function Ut(t,e,n){if(Dt(t)){let r;const i=y(n),s=!i&&e&&!v(e),o=!e,a=Rt(t,!s),c=a&&a.data;if(i)c[jt(e)]=n;else{if(o)return c;if(s)return c&&c[jt(e)];for(r in e)c[jt(r)]=e[r]}}}function qt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{const{length:n}=e;if("number"==typeof n&&e.window!==e){if(n)for(let r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Ht(t,e,n){t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);const r=Array.isArray(e)?e:[e];for(;t;){for(let e=0,i=r.length;e<i;e++)if(y(n=Ut(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Ft(t,e=!1){e||Lt(t);const n=t.parentNode;n&&n.removeChild(t)}function Bt(t,e){const n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};let i=e[r||n.type];const s=i?i.length:0;if(!s)return;if(g(n.immediatePropagationStopped)){const t=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),t&&t.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};const o=i.specialHandlerWrapper||zt;s>1&&(i=st(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])};return n.elem=t,n}function zt(t,e,n){n.call(t,e)}function Wt(t,e,n){const r=e.relatedTarget;r&&(r===t||t.contains(r))||n.call(t,e)}function Gt(t){const e=_t(t)[0].cloneNode(!0),n=_t(e).empty(),r=_t("<div></div>").append(n[0]).html();try{return n[0].nodeType===Node.TEXT_NODE?$(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+$(e)}))}catch(t){return $(r)}}function Kt(t){let e=t[0];const n=t[t.length-1];let r;for(let i=1;e!==n&&(e=e.nextSibling);i++)(r||t[i]!==e)&&(r||(r=Array.prototype.slice.call(t,0,i)),r.push(e));return _t(r||t)}function Yt(t,e){const n=At[e.toLowerCase()];return n&&kt[q(t)]&&n}function Qt(t){for(let e=0,n=t.length;e<n;e++){const n=(yt.get(t[e][gt])||{}).events;n&&n.$destroy&&_t(t[e]).triggerHandler("$destroy"),Vt(t[e]),_t.prototype.off.call(_t(t[e]))}}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{kt[t]=!0})),_t.prototype={toString(){const t=[];return N(this,(e=>{t.push(`${e}`)})),`[${t.join(", ")}]`},eq(t){return _t(t>=0?this[t]:this[this.length+t])},length:0},_t.prototype.elements=function(){let t=[];for(let e=0;e<this.length;e++)t.push(this[e]);return t},_t.prototype.empty=function(){for(let t=0;t<this.length;t++){const e=this[t];Lt(e,!0),[Node.ELEMENT_NODE,Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(e.nodeType)&&e.replaceChildren()}return this},_t.prototype.scope=function(){return Ut(this[0],"$scope")||Ht(this[0].parentNode||this[0],["$isolateScope","$scope"])},_t.prototype.isolateScope=function(){return Ut(this[0],"$isolateScope")||Ut(this[0],"$isolateScopeNoTemplate")},_t.prototype.controller=function(t){return function(t,e){return Ht(t,`$${e||"ngController"}Controller`)}(this[0],t)},_t.prototype.injector=function(){return Ht(this[0],"$injector")},_t.prototype.on=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];if(!Dt(r))return;const i=Rt(r,!0);i.handle||(i.handle=Bt(r,i.events));const s=t.indexOf(" ")>=0?t.split(" "):[t];let o=s.length;const a=function(t,n,s){let o=i.events[t];o||(o=i.events[t]=[],o.specialHandlerWrapper=n,"$destroy"===t||s||r.addEventListener(t,i.handle)),o.push(e)};for(;o--;)t=s[o],Et[t]?(a(Et[t],Wt),a(t,void 0,!0)):a(t)}return this},_t.prototype.off=function(t,e){for(let n=0;n<this.length;n++){const r=this[n],i=Rt(r),s=i&&i.events,o=i&&i.handle;if(!o)return;if(t){const n=function(t){const n=s[t];y(e)&&Array.isArray(n)&&F(n,e),y(e)&&n&&n.length>0||(r.removeEventListener(t,o),delete s[t])};N(t.split(" "),(t=>{n(t),Et[t]&&n(Et[t])}))}else for(t in s)"$destroy"!==t&&r.removeEventListener(t,o),delete s[t];It(r)}return this},_t.prototype.removeData=function(t){for(let e=0;e<this.length;e++){Vt(this[e],t)}return this},_t.prototype.inheritedData=function(t,e){for(let n=0;n<this.length;n++){let n=Ht(this[0],t,e);return e?this:n}},_t.prototype.html=function(t){const e=this[0];if(e)return g(t)?e.innerHTML:(Lt(e,!0),e.innerHTML=t,this)},_t.prototype.text=function(t){let e="";for(let n=0;n<this.length;n++){const r=this[n];if(g(t)){const{nodeType:t}=r;e+=t===Node.ELEMENT_NODE||t===Node.TEXT_NODE?r.textContent:""}else r.textContent=t}return g(t)?e:this},_t.prototype.val=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(g(t)){if(n.multiple&&"select"===q(n)){const t=[];return N(n.options,(e=>{e.selected&&t.push(e.value||e.text)})),t}return n.value}return n.value=t,this}},_t.prototype.attr=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];let i;const{nodeType:s}=r;if(s===Node.TEXT_NODE||s===Node.ATTRIBUTE_NODE||s===Node.COMMENT_NODE||!r.getAttribute)continue;const o=$(t),a=At[o];if(v(t))for(let e in t)r.setAttribute(e,a?o:t[e]);else{if(!y(e))return i=r.getAttribute(t),a&&null!==i&&(i=o),null===i?void 0:i;null===e||!1===e&&a?r.removeAttribute(t):r.setAttribute(t,a?o:e)}}if(y(e)||v(t))return this},_t.prototype.data=function(t,e){let n;const r=this.length;if(g(e)){if(v(t)){for(n=0;n<r;n++)Ut(this[n],t);return this}const i=g(e)?Math.min(r,1):r;for(let n=0;n<i;n++){const r=Ut(this[n],t,e);e=e?e+r:r}return e}for(n=0;n<r;n++)Ut(this[n],t,e);return this},_t.prototype.replaceWith=function(t){let e,n=function(t,e){let n;const r=t.parentNode;Lt(t),N(new _t(e),(e=>{n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))};for(let r=0;r<this.length;r++)qt(e,n(this[r],t));return y(e)?e:this},_t.prototype.children=function(){let t;for(let n=0;n<this.length;n++)t=_t((e=this[n],Array.from(e.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE))));var e;return y(t)?t:this},_t.prototype.append=function(t){for(let e=0;e<this.length;e++){const n=this[e],{nodeType:r}=n;if(r!==Node.ELEMENT_NODE&&r!==Node.DOCUMENT_FRAGMENT_NODE)return this;let i=new _t(t);for(let t=0;t<i.length;t++){const e=i[t];n.appendChild(e)}}return this},_t.prototype.prepend=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(n.nodeType===Node.ELEMENT_NODE){const e=n.firstChild;N(new _t(t),(t=>{n.insertBefore(t,e)}))}}return this},_t.prototype.after=function(t){for(let e=0;e<this.length;e++){const n=this[e];let r=n;const i=n.parentNode;if(i){let e=new _t(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];i.insertBefore(n,r.nextSibling),r=n}}}return this},_t.prototype.remove=function(t=!1){for(let e=0;e<this.length;e++){Ft(this[e],t)}return this},_t.prototype.detach=function(){for(let t=0;t<this.length;t++){Ft(this[t],!0)}return this},_t.prototype.parent=function(){let t,e=t=>{const e=t.parentNode;return e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e:null};for(let n=0,r=this.length;n<r;n++)g(t)?(t=e(this[n]),y(t)&&(t=_t(t))):qt(t,e(this[n]));return y(t)?t:this},_t.prototype.find=function(t){let e;for(let n=0,r=this.length;n<r;n++){const r=this[n];g(e)?(e=r.getElementsByTagName?r.getElementsByTagName(t):[],y(e)&&(e=_t(e))):r.getElementsByTagName&&qt(e,r.getElementsByTagName(t))}return y(e)?e:this},_t.prototype.triggerHandler=function(t,e){let n,r=function(t,e,n){let r,i,s;const o=e.type||e,a=Rt(t),c=a&&a.events,l=c&&c[o];l&&(r={preventDefault(){this.defaultPrevented=!0},isDefaultPrevented(){return!0===this.defaultPrevented},stopImmediatePropagation(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped(){return!0===this.immediatePropagationStopped},stopPropagation:()=>{},type:o,target:t},e.type&&(r=R(r,e)),i=st(l),s=n?[r].concat(n):[r],N(i,(e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))};for(let i=0,s=this.length;i<s;i++)g(n)?r(this[i],t,e):qt(n,r(this[i],t,e));return y(n)?n:this};const Zt="$provide",Jt="$injector",Xt="$compileProvider";class te{constructor(t,e,n){ot(w(t),"name required"),ot(Array.isArray(e),"requires array required"),this.name=t,this.requires=e,this.invokeQueue=[],this.configBlocks=[],this.runBlocks=[],this.infoState={},n&&this.config(n)}info(t){return y(t)?(ot(v(t),"module info value must be an object"),this.infoState=t,this):this.infoState}value(t,e){return this.invokeQueue.push([Zt,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([Zt,"constant",[t,e]]),this}config(t){return this.configBlocks.push([Jt,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Xt,"component",[t,e]]),this}factory(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"factory",[t,e]]),this}service(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"service",[t,e]]),this}provider(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"provider",[t,e]]),this}decorator(t,e){return e&&S(e)&&(e.$$moduleName=t),this.configBlocks.push([Zt,"decorator",[t,e]]),this}directive(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Xt,"directive",[t,e]]),this}animation(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const ee=/^([^(]+?)=>/,ne=/^[^(]*\(\s*([^)]*)\)/m,re=/,/,ie=/^\s*(_?)(\S+?)\1\s*$/,se=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,oe=ht(Jt),ae="Provider",ce=!0;class le{constructor(t){this.cache={},this.strictDi=t,this.path=[],this.modules={}}get(t){if(Object.prototype.hasOwnProperty.call(this.cache,t)){if(this.cache[t]===ce)throw oe("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=ce;try{this.cache[t]=this.factory(t)}catch(e){throw delete this.cache[t],e}return this.cache[t]}injectionArgs(t,e,n){const r=[],i=function(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw oe("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=function(t){const e=de(t).replace(se,""),n=e.match(ee)||e.match(ne);return n}(t),i[1].split(re).forEach((function(t){t.replace(ie,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ct(t[s],"fn"),r=t.slice(0,s)):ct(t,"fn",!0);return r}(t,this.strictDi,n);for(let t=0,{length:n}=i;t<n;t++){const n=i[t];if("string"!=typeof n)throw oe("itkn","Incorrect injection token! Expected service name as string, got {0}",n);r.push(e&&Object.prototype.hasOwnProperty.call(e,n)?e[n]:this.get(n))}return r}invoke(t,e,n,r){"string"==typeof n&&(r=n,n=null);const i=this.injectionArgs(t,n,r);return Array.isArray(t)&&(t=t[t.length-1]),/^class\b/.test(de(t))?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)}instantiate(t,e,n){const r=Array.isArray(t)?t[t.length-1]:t,i=this.injectionArgs(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))}loadNewModules(){}factory(t){console.error(`Unhandled ${t}`)}}class ue extends le{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),oe("unpr","Unknown provider: {0}",this.path.join(" <- "))}}class he extends le{constructor(t,e){super(t),this.providerInjector=e,this.modules=this.providerInjector.modules}factory(t){const e=this.providerInjector.get(t+ae);return this.invoke(e.$get,e,void 0,t)}has(t){const e=Object.prototype.hasOwnProperty.call(this.providerInjector.cache,t+ae),n=Object.prototype.hasOwnProperty.call(this.cache,t);return e||n}}function de(t){return Function.prototype.toString.call(t)}const pe=/^([^(]+?)=>/,fe=/^[^(]*\(\s*([^)]*)\)/m,$e=/,/,me=/^\s*(_?)(\S+?)\1\s*$/,ge=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ye=ht(Jt),ve="Provider";function we(t,e=!1){ot(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:Ce(c),factory:Ce(l),service:Ce((function(t,e){return l(t,[Jt,t=>t.instantiate(e)])})),value:Ce((function(t,e){return r[t+ve]={$get:()=>e}})),constant:Ce((function(t,e){W(t,"constant"),i.cache[t]=e,s.cache[t]=e})),decorator:function(t,e){const n=i.get(t+ve),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},i=r.$injector=new ue(r,e),s=new he(e,i);r.$injectorProvider={$get:()=>s};let o=s;const a=u(t);return o=s.get(Jt),a.forEach((t=>{t&&o.invoke(t)})),o.loadNewModules=function(t){u(t).forEach((t=>{t&&o.invoke(t)}))},o;function c(t,e){let n;if(W(t,"service"),n=S(e)||Array.isArray(e)?i.instantiate(e):e,!n.$get)throw ye("pget","Provider '{0}' must define $get factory method.",t);return r[t+ve]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(g(n))throw ye("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){at(g(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach((t=>{if(!n.get(t)){n.set(t,!0);try{if(w(t)){const n=window.angular.module(t);o.modules[t]=n,e=e.concat(u(n.requires)).concat(n.runBlocks);n.invokeQueue.concat(n.configBlocks).forEach((t=>{const e=i.get(t[0]);e[t[1]].apply(e,t[2])}))}else S(t)||Array.isArray(t)?e.push(i.invoke(t)):ct(t,"module")}catch(e){throw Array.isArray(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e.message=`${e.message}\n${e.stack}`),ye("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}})),e}}function be(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(ge,"");return e.match(pe)||e.match(fe)}function Ee(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ye("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=be(t),i[1].split($e).forEach((function(t){t.replace(me,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ct(t[s],"fn"),r=t.slice(0,s)):ct(t,"fn",!0);return r}function Ce(t){return function(e,n){if(!v(e))return t(e,n);Object.entries(e).forEach((([e,n])=>{t(e,n)}))}}const Se=ht("$controller"),Oe=/^(\S+)(\s+as\s+([\w$]+))?$/;function xe(t,e){if(w(t)){const e=Oe.exec(t);if(e)return e[3]}}class Ae{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){W(t,"controller"),v(t)?Object.entries(t).forEach((([t,e])=>{this.controllers.set(t,e)})):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,i)=>{let s,o,a,c=i&&w(i)?i:null;if(r=!0===r,w(e)){if(o=e.match(Oe),!o)throw Se("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw Se("ctrlreg","The controller with the name '{0}' is not registered.",a);ct(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return s=Object.create(r||null),c&&this.addIdentifier(n,c,s,a||e.name),function(){const r=t.invoke(e,s,n,a);return r!==s&&(v(r)||S(r))&&(s=r,c&&this.addIdentifier(n,c,s,a||e.name)),s}.bind(this,{instance:s,identifier:c})}return s=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,s,a||e.name),s}];addIdentifier(t,e,n,r){if(!t||!v(t.$scope))throw ht("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const ke={NONE:0,APPLY:1,DIGEST:2},_e=ht("$rootScope"),Te=[],je=[],Ne=[];let Ve,Re,Pe,De,Me=0,Le=null,Ie=null;class Ue{constructor(){De=new qe}$get=["$exceptionHandler","$parse","$browser",function(t,e,n){return Pe=t,Ve=e,Re=n,De}]}class qe{constructor(){this.$id=f(),this.$$phase=ke.NONE,this.$parent=null,this.$root=this,this.$$watchers=[],this.$$digestWatchIndex=-1,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null,this.$$ChildScope=null}$new(t,e){let n;return t?(n=new qe,n.$root=De):(n=Object.create(this),n.$id=f(),n.$$watchers=[],n.$$nextSibling=null,n.$$childHead=null,n.$$childTail=null,n.$$listeners={},n.$$listenerCount={},n.$$watchersCount=0,n.$$ChildScope=null,n.$$suspended=!1),n.$parent=e||this,n.$$prevSibling=n.$parent.$$childTail,n.$parent.$$childHead?(n.$parent.$$childTail.$$nextSibling=n,n.$parent.$$childTail=n):(n.$parent.$$childHead=n,n.$parent.$$childTail=n),(t||e!==this)&&n.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),n}$watch(t,e,n){const r=Ve(t),i=S(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s={fn:i,last:He,get:r,exp:t,eq:!!n};return Le=null,0===this.$$watchers.length&&(this.$$digestWatchIndex=-1),this.$$watchers.unshift(s),this.$$digestWatchIndex++,this.incrementWatchersCount(1),()=>{const t=F(this.$$watchers,s);t>=0&&(this.incrementWatchersCount(-1),t<this.$$digestWatchIndex&&this.$$digestWatchIndex--),Le=null}}$watchGroup(t,e){const n=new Array(t.length),r=new Array(t.length),i=[],s=this;let o=!1,a=!0;if(!t.length){let t=!0;return s.$evalAsync((()=>{t&&e(r,r,s)})),function(){t=!1}}if(1===t.length)return this.$watch(t[0],((t,i,s)=>{r[0]=t,n[0]=i,e(r,t===i?r:n,s)}));function c(){o=!1;try{a?(a=!1,e(r,r,s)):e(r,n,s)}finally{for(let e=0;e<t.length;e++)n[e]=r[e]}}return N(t,((t,e)=>{const n=s.$watch(t,(t=>{r[e]=t,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){p.$$pure=Ve(t).literal,p.$stateful=!p.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=Ve(t,p),l=[];let u={},h=!0,d=0;function p(t){let e,n,s,o,c;if(r=t,!g(r)){if(v(r))if(m(r)){i!==l&&(i=l,d=i.length=0,a++),e=r.length,d!==e&&(a++,i.length=d=e);for(let t=0;t<e;t++)c=i[t],o=r[t],s=c!=c&&o!=o,s||c===o||(a++,i[t]=o)}else{for(n in i!==u&&(i=u={},d=0,a++),e=0,r)Object.hasOwnProperty.call(r,n)&&(e++,o=r[n],c=i[n],n in i?(s=c!=c&&o!=o,s||c===o||(a++,i[n]=o)):(d++,i[n]=o,a++));if(d>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(d--,delete i[n])}else i!==r&&(i=r,a++);return a}}return this.$watch(c,(function(){if(h?(h=!1,e(r,r,n)):e(r,s,n),o)if(v(r))if(m(r)){s=new Array(r.length);for(let t=0;t<r.length;t++)s[t]=r[t]}else{s={};for(const t in r)Object.hasOwnProperty.call(r,t)&&(s[t]=r[t])}else s=r}))}$digest(){let t,e,n,r,i,s,o,a,c,l=10;const u=Te.length?this.$root:this,h=[];let d,p;this.beginPhase(ke.DIGEST),Re.$$checkUrlChange(),this===this.$root&&null!==Ie&&(Re.cancel(Ie),Fe(),Ie=null),Le=null;do{o=!1,c=u;for(let t=0;t<Te.length;t++){try{p=Te[t],r=p.fn,r(p.scope,p.locals)}catch(t){Pe(t)}Le=null}Te.length=0;do{if(s=!c.$$suspended&&c.$$watchers)for(c.$$digestWatchIndex=s.length;c.$$digestWatchIndex--;)try{if(t=s[c.$$digestWatchIndex],t)if(i=t.get,(e=i(c))===(n=t.last)||(t.eq?z(e,n):D(e)&&D(n))){if(t===Le){o=!1;break}}else o=!0,Le=t,t.last=t.eq?structuredClone(e):e,r=t.fn,r(e,n===He?e:n,c),l<5&&(d=4-l,h[d]||(h[d]=[]),h[d].push({msg:S(t.exp)?`fn: ${t.exp.name||t.exp.toString()}`:t.exp,newVal:e,oldVal:n}))}catch(t){Pe(t)}if(!(a=!c.$$suspended&&c.$$watchersCount&&c.$$childHead||c!==u&&c.$$nextSibling))for(;c!==u&&!(a=c.$$nextSibling);)c=c.$parent}while(c=a);if((o||Te.length)&&!l--)throw this.clearPhase(),_e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",10,h)}while(o||Te.length);for(this.clearPhase();Me<je.length;)try{je[Me++]()}catch(t){Pe(t)}je.length=Me=0,Re.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase!==ke.NONE)throw _e("inprog","digest already in progress",this.$root.$$phase);this.$root.$$phase=t}$suspend(){this.$$suspended=!0}$isSuspended(){return this.$$suspended}$resume(){this.$$suspended=!1}$destroy(){if(!this.$$destroyed){this.$broadcast("$destroy"),this.$$destroyed=!0,this===this.$root&&Re.$$applicationDestroyed(),this.incrementWatchersCount(-this.$$watchersCount);for(const t in this.$$listenerCount)this.decrementListenerCount(this.$$listenerCount[t],t);this.$parent&&(this.$parent.$$childHead===this&&(this.$parent.$$childHead=this.$$nextSibling),this.$parent.$$childTail===this&&(this.$parent.$$childTail=this.$$prevSibling)),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$applyAsync=()=>{},this.$evalAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners={},this.$$nextSibling=null,this.$parent=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$root=null,this.$$watchers=null}}$eval(t,e){return Ve(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase!==ke.NONE||Te.length||(n=Re.defer((()=>{Te.length&&this.$root.$digest()}),null,"$evalAsync")),Te.push({scope:this,fn:Ve(t),locals:e}),n}$$postDigest(t){je.push(t)}$apply(t){try{this.beginPhase(ke.APPLY);try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Pe(t)}finally{this.retry()}}retry(){try{this.$root.$digest()}catch(t){throw Pe(t),t}}clearPhase(){this.$root.$$phase=ke.NONE}$applyAsync(t){const e=this;t&&Ne.push((()=>e.$eval(t))),null===Ie&&(Ie=Re.defer(Fe,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);let r=this;do{r.$$listenerCount[t]=(r.$$listenerCount[t]??0)+1}while(r=r.$parent);return()=>{const r=n.indexOf(e);-1!==r&&(delete n[r],this.decrementListenerCount(1,t))}}incrementWatchersCount(t){this.$$watchersCount+=t,this.$parent&&this.$parent.incrementWatchersCount(t)}decrementListenerCount(t,e){let n=this;for(;n;n=n.$parent)void 0!==n.$$listenerCount[e]&&(n.$$listenerCount[e]-=t,0===n.$$listenerCount[e]&&delete n.$$listenerCount[e])}$emit(t,...e){const n=[];let r,i=this,s=!1;const o={name:t,targetScope:i,stopPropagation(){s=!0},preventDefault(){o.defaultPrevented=!0},defaultPrevented:!1},a=K([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners[t]||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Pe(t)}else r.splice(c,1),c--,l--;if(s)break;i=i.$parent}while(i);return o.currentScope=null,o}$broadcast(t,...e){const n=this;let r=n,i=n;const s={name:t,targetScope:n,preventDefault(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;const o=K([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners[t]||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Pe(t)}else a.splice(c,1),c--,l--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r&&r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}}function He(){}function Fe(){for(;Ne.length;)try{Ne.shift()()}catch(t){Pe(t)}Ie=null}const Be=window.document.createElement("a"),ze=Ge(window.location.href);let We;function Ge(t){if(!w(t))return t;const e=t;Be.setAttribute("href",e);let{hostname:n}=Be;return!("[::1]"===Be.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:Be.href,protocol:Be.protocol?Be.protocol.replace(/:$/,""):"",host:Be.host,search:Be.search?Be.search.replace(/^\?/,""):"",hash:Be.hash?Be.hash.replace(/^#/,""):"",hostname:n,port:Be.port,pathname:"/"===Be.pathname.charAt(0)?Be.pathname:`/${Be.pathname}`}}function Ke(t){return Ye(t,function(){if(window.document.baseURI)return window.document.baseURI;We||(We=window.document.createElement("a"),We.href=".",We=We.cloneNode(!1));return We.href}())}function Ye(t,e){return t=Ge(t),e=Ge(e),t.protocol===e.protocol&&t.host===e.host}Be.href="http://[::1]";const Qe=ht("$sce"),Ze={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Je(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw Qe("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(O(t))return new RegExp(`^${t.source}$`);throw Qe("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Xe(){this.SCE_CONTEXTS=Ze;let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map((t=>Je(t)))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map((t=>Je(t)))),e},this.$get=["$injector","$$sanitizeUri",function(n,r){let i=function(){throw Qe("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?Ye(e,ze)||Ke(e):!!t.exec(e.href)}function o(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const a=o(),c={};return c[Ze.HTML]=o(a),c[Ze.CSS]=o(a),c[Ze.MEDIA_URL]=o(a),c[Ze.URL]=o(c[Ze.MEDIA_URL]),c[Ze.JS]=o(a),c[Ze.RESOURCE_URL]=o(c[Ze.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw Qe("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||g(e)||""===e)return e;if("string"!=typeof e)throw Qe("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||g(o)||""===o)return o;const a=Object.prototype.hasOwnProperty.call(c,n)?c[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(S(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ze.MEDIA_URL||n===Ze.URL)return r(o.toString(),n===Ze.MEDIA_URL);if(n===Ze.RESOURCE_URL){if(function(n){const r=Ge(n.toString());let i,o,a=!1;for(i=0,o=t.length;i<o;i++)if(s(t[i],r)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(s(e[i],r)){a=!1;break}return a}(o))return o;throw Qe("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ze.HTML)return i();throw Qe("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function tn(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=st(Ze);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=function(t,n){const i=e(n);return i.literal&&i.constant?i:e(n,(e=>r.getTrusted(t,e)))};const i=r.parseAs,{getTrusted:s}=r,{trustAs:o}=r;return N(Ze,((t,e)=>{const n=$(e);r[Nt(`parse_as_${n}`)]=function(e){return i(t,e)},r[Nt(`get_trusted_${n}`)]=function(e){return s(t,e)},r[Nt(`trust_as_${n}`)]=function(e){return o(t,e)}})),r}]}const en={},nn={blur:!0,focus:!0};function rn(t,e,n,r,i,s){return{restrict:"A",compile(o,a){const c=t(a[r]);return function(t,r){r.on(i,(r=>{const i=function(){c(t,{$event:r})};if(e.$$phase===ke.NONE)t.$apply(i);else if(s)t.$evalAsync(i);else try{i()}catch(t){n(t)}}))}}}}"click dblclick submit focus blur copy cut paste".split(" ").forEach((t=>{const e=$t(`ng-${t}`);en[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>rn(n,r,i,e,t,nn[t])]}));const sn=ht("$compile"),on=/^\w/,an=window.document.createElement("div");class cn{constructor(t,e,n,r,i,s){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,s){const t=Object.keys(s);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=s[n]}}else this.$attr={};this.$$element=i}$normalize=$t;$addClass(t){t&&t.length>0&&this.$animate.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&this.$animate.removeClass(this.$$element,t)}$updateClass(t,e){const n=ln(t,e);n&&n.length&&this.$animate.addClass(this.$$element,n);const r=ln(e,t);r&&r.length&&this.$animate.removeClass(this.$$element,r)}$set(t,e,n,r){const i=Yt(this.$$element[0],t),s=h[t];let o=t;i?(this.$$element[0][t]=e,r=i):s&&(this[s]=e,o=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=j(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n&&(null===e||g(e)?this.$$element[0].removeAttribute(r):on.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):this.setSpecialAttr(this.$$element[0],r,e));const{$$observers:a}=this;a&&N(a[o],(t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),this.$rootScope.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||g(this[t])||e(this[t])})),function(){F(r,e)}}setSpecialAttr(t,e,n){an.innerHTML=`<span ${e}>`;const{attributes:r}=an.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}sanitizeSrcset(t,e){if(!t)return t;if(!w(t))throw sn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=T(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=this.$sce.getTrustedMediaUrl(T(s[c])),n+=" "+T(s[c+1])}var l=T(s[2*a]).split(/\s/);return n+=this.$sce.getTrustedMediaUrl(T(l[0])),2===l.length&&(n+=" "+T(l[1])),n}}function ln(t,e){let n="";const r=t.split(/\s+/),i=e.split(/\s+/);t:for(let t=0;t<r.length;t++){const e=r[t];for(let t=0;t<i.length;t++)if(e===i[t])continue t;n+=(n.length>0?" ":"")+e}return n}let un=10;const hn=ht("$compile"),dn=new Object,pn=["ngIf","ngRepeat"];function fn(t,e){const n={},r="Directive",i={ngSrc:!0,ngSrcset:!0,src:!0,srcset:!0},s=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,o=/^(on[a-z]+|formaction)$/,a=Object.create(null);function c(t,e,n){const r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Object.create(null);return N(t,((t,s)=>{if((t=t.trim())in a)return void(i[s]=a[t]);const o=t.match(r);if(!o)throw hn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,s,t,n?"controller bindings definition":"isolate scope definition");i[s]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||s},o[4]&&(a[t]=i[s])})),i}function u(t,e){const n={isolateScope:null,bindToController:null};if(v(t.scope)&&(!0===t.bindToController?(n.bindToController=c(t.scope,e,!0),n.isolateScope={}):n.isolateScope=c(t.scope,e,!1)),v(t.bindToController)&&(n.bindToController=c(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw hn("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return at(i,"name"),W(i,"directive"),w(i)?(!function(t){const e=t.charAt(0);if(!e||e!==$(e))throw hn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw hn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),at(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return n[i].forEach(((n,o)=>{try{let e=t.invoke(n);S(e)?e={compile:L(e)}:!e.compile&&e.link&&(e.compile=L(e.link)),e.priority=e.priority||0,e.index=o,e.name=e.name||i,e.require=function(t){const e=t.require||t.controller&&t.name;return!Array.isArray(e)&&v(e)&&Object.entries(e).forEach((([t,n])=>{const r=n.match(s);n.substring(r[0].length)||(e[t]=r[0]+t)})),e}(e),e.restrict=function(t,e){if(t&&(!w(t)||!/[EA]/.test(t)))throw hn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,i),e.$$moduleName=n.$$moduleName,r.push(e)}catch(t){e(t)}})),r}])),n[i].push(o)):Object.entries(i).forEach((([t,n])=>e(t,n))),this},this.component=function(t,e){if(!w(t))return Object.entries(t).forEach((([t,e])=>this.component(t,e))),this;const n=e.controller||function(){};function r(t){function r(e){return S(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const i=e.template||e.templateUrl?e.template:"",s={controller:n,controllerAs:xe(e.controller)||e.controllerAs||"$ctrl",template:r(i),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(s[t]=e)})),s}return N(e,((t,e)=>{"$"===e.charAt(0)&&(r[e]=t,S(n)&&(n[e]=t))})),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){return y(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return y(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let h=!1;this.strictComponentBindingsEnabled=function(t){return y(t)?(h=t,this):h};const d=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in d&&d[r]!==n)throw hn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,d[r],n);return d[r]=n,this},function(){function t(t,e){e.forEach((e=>{d[e.toLowerCase()]=t}))}t(Ze.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ze.CSS,["*|style"]),t(Ze.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ze.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ze.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,a,c,p,f,m,y,b){let E;function O(){try{if(! --un)throw E=void 0,hn("infchng","{0} $onChanges() iterations reached. Aborting!\n",un);m.$apply((()=>{for(let t=0,e=E.length;t<e;++t)try{E[t]()}catch(t){a(t)}E=void 0}))}finally{un++}}const x=e.startSymbol(),_=e.endSymbol(),j="{{"===x&&"}}"===_?t=>t:function(t){return t.replace(/\{\{/g,x).replace(/}}/g,_)},V=/^ng(Attr|Prop|On)([A-Z].*)$/,P=/^(.+)Start$/;return D;function D(t,e,n,r,i){let s=_t(t),o=L(s,e,s,n,r,i),a=null;return function(t,e,n){if(!s)throw hn("multilink","This element has already been linked.");at(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),a||(a=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==q(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),"html"!==a)r=_t(it(a,_t("<div></div>").append(s).html()));else if(e){r=new _t(s.elements().map((t=>t.cloneNode(!0))))}else r=s;if(c)for(const t in c)r.data(`$${t}Controller`,c[t].instance);return e&&e(r,t),o&&o(t,r,r,l),e||(s=o=null),r}}function L(t,e,n,r,i,s){const o=[];let c,l;var u;let h,d,p,f;for(let $=0;$<t.length;$++)c=new cn(m,b,a,y),l=U(t[$],[],c,0===$?r:void 0,i),d=(u=l.length?G(l,t[$],c,e,n,null,[],[],s):null)&&u.terminal||!(h=t[$].childNodes)||!h.length?null:L(h,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:e),(u||d)&&(o.push($,u,d),p=!0,f=f||u),s=null;return p?function(t,n,r,i){let s,a,c,l,u,h,d,p,$;if(f)for($=new Array(n.length),u=0;u<o.length;u+=3)d=o[u],$[d]=n[d];else $=n;for(u=0,h=o.length;u<h;)c=$[o[u++]],s=o[u++],a=o[u++],s?(l=s.scope?t.$new():t,p=s.transcludeOnThisElement?I(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?I(t,e):null,s(a,l,c,r,p)):a&&a(t,c.childNodes,void 0,i)}:null}function I(t,e,n){function r(r,i,s,o,a){return r||((r=t.$new(!1,a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})}const i=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?i[r]=I(t,e.$$slots[r],n):i[r]=null;return r}function U(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let c;switch(o){case Node.ELEMENT_NODE:c=t.nodeName.toLowerCase(),J(n,$t(c),"E",i,s);for(var u,h,d,p,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e,o=!1,c=!1,g=!1,y=!1,v=!1;h=(u=$[m]).name,p=u.value,(f=(d=$t(h.toLowerCase())).match(V))?(g="Attr"===f[1],y="Prop"===f[1],v="On"===f[1],h=h.replace(l,"").toLowerCase().substr(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))):(e=d.match(P))&&X(e[1])&&(o=h,c=`${h.substr(0,h.length-5)}end`,h=h.substr(0,h.length-6)),y||v?(r[d]=p,a[d]=u.name,y?ot(t,n,d,h):ct(n,d,h)):(a[d=$t(h.toLowerCase())]=h,!g&&Object.prototype.hasOwnProperty.call(r,d)||(r[d]=p,Yt(t,d)&&(r[d]=!0)),lt(t,n,p,d,g),J(n,d,"A",i,s,o,c))}"input"===c&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:function(){return function(t,e){t.$watch(r,(t=>{e[0].nodeValue=t}))}}})}(n,t.nodeValue)}return n.sort(nt),n}function H(t,e,n){const r=[];let i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw hn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return _t(r)}function F(t,e,n){return function(r,i,s,o,a){return i=H(i[0],e,n),t(r,i,s,o,a)}}function W(t,e,n,r,i,s){let o;return t?D(e,n,r,i,s):function(){return o||(o=D(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function G(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,d,p,$,w=-Number.MAX_VALUE,{newScopeDirective:E}=l,{controllerDirectives:C}=l,{newIsolateScopeDirective:O}=l,{templateDirective:x}=l,{nonTlbTranscludeDirective:k}=l,_=!1,V=!1,{hasElementTranscludeDirective:P}=l,D=n.$$element=_t(e),M=s,L=r,I=!1,B=!1,z=function(t,r,i,s,l){let u,h,d,p,$,w,x,k,_,T;e===i?(_=n,k=n.$$element):(k=_t(i),_=new cn(m,b,a,y,k,n)),$=r,O?p=r.$new(!0):E&&($=r.$parent),l&&(x=function(t,e,n,r){let i;A(t)||(r=n,n=e,e=t,t=void 0);P&&(i=w);n||(n=P?k.parent():k);if(!r)return l(t,e,i,n,j);{const s=l.$$slots[r];if(s)return s(t,e,i,n,j);if(g(s))throw hn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Gt(k))}},x.$$boundTransclude=l,x.isSlotFilled=function(t){return!!l.$$slots[t]}),C&&(w=function(t,e,n,r,i,s,o){const a=Object.create(null);for(const c in r){const l=r[c],u={$scope:l===o||l.$$isolateScope?i:s,$element:t,$attrs:e,$transclude:n};let{controller:h}=l;"@"===h&&(h=e[l.name]);const d=f(h,u,!0,l.controllerAs);a[l.name]=d,t.data(`$${l.name}Controller`,d.instance)}return a}(k,_,x,C,p,r,O)),O&&(p.$$isolateBindings=O.$$isolateBindings,T=ft(r,_,p,p.$$isolateBindings,O),T.removeWatches&&p.$on("$destroy",T.removeWatches));for(const t in w){const e=C[t],n=w[t],r=e.$$bindings.bindToController;n.instance=n(),k.data(`$${e.name}Controller`,n.instance),n.bindingInfo=ft($,_,n.instance,r,e)}for(N(C,((t,e)=>{const{require:n}=t;t.bindToController&&!Array.isArray(n)&&v(n)&&R(w[e].instance,K(e,n,k,w))})),N(w,(t=>{const e=t.instance;if(S(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(S(e.$onInit))try{e.$onInit()}catch(t){a(t)}S(e.$doCheck)&&($.$watch((()=>{e.$doCheck()})),e.$doCheck()),S(e.$onDestroy)&&$.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)d=o[u],dt(d,d.isolateScope?p:r,k,_,d.require&&K(d.directiveName,d.require,k,w),x);var j=r;for(O&&(O.template||null===O.templateUrl)&&(j=p),t&&t(j,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)d=c[u],dt(d,d.isolateScope?p:r,k,_,d.require&&K(d.directiveName,d.require,k,w),x);N(w,(t=>{const e=t.instance;S(e.$postLink)&&e.$postLink()}))};for(let s=0,l=t.length;s<l;s++){u=t[s];const f=u.$$start,m=u.$$end;if(f&&(D=H(e,f,m)),d=void 0,w>u.priority)break;if($=u.scope,$&&(u.templateUrl||(v($)?(rt("new/isolated scope",O||E,u,D),O=u):rt("new/isolated scope",O,u,D)),E=E||u),h=u.name,!I&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!pn.includes(u.name))){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!pn.includes(e.name)||e.replace&&(e.templateUrl||e.template)){B=!0;break}I=!0}if(!u.templateUrl&&u.controller&&(C=C||Object.create(null),rt(`'${h}' controller`,C[h],u,D),C[h]=u),$=u.transclude,$)if(_=!0,pn.includes(u.name)||(rt("transclusion",k,u,D),k=u),"element"===$)P=!0,w=u.priority,d=D,D=n.$$element=_t(document.createComment("")),e=D[0],ut(i,Y(d),e),L=W(B,d,r,w,M&&M.name,{nonTlbTranscludeDirective:k});else{const t=Object.create(null);if(v($)){d=window.document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);N($,((r,i)=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,e[r]=i,t[i]=null,n[i]=s})),N(_t(D[0].childNodes),(r=>{const i=e[$t(q(r))];i?(n[i]=!0,t[i]=t[i]||window.document.createDocumentFragment(),t[i].appendChild(r)):d.appendChild(r)})),N(n,((t,e)=>{if(!t)throw hn("reqslot","Required transclusion slot `{0}` was not filled.",e)}));for(const e in t)if(t[e]){const n=_t(t[e].childNodes);t[e]=W(B,n,r)}d=_t(d.childNodes)}else d=e.cloneNode(!0).childNodes;D.empty(),L=W(B,d,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),L.$$slots=t}if(u.template)if(V=!0,rt("template",x,u,D),x=u,$=S(u.template)?u.template(D,n):u.template,$=j($),u.replace){if(M=u,d=Pt($)?[]:mn(it(u.templateNamespace,T($))),e=d[0],1!==d.length||e.nodeType!==Node.ELEMENT_NODE)throw hn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");ut(i,D,e);const r={$attr:{}},o=U(e,[],r),a=t.splice(s+1,t.length-(s+1));(O||E)&&Z(o,O,E),t=t.concat(o).concat(a),tt(n,r),l=t.length}else D.html($);if(u.templateUrl)V=!0,rt("template",x,u,D),x=u,u.replace&&(M=u),z=et(t.splice(s,t.length-s),D,n,i,_&&L,o,c,{controllerDirectives:C,newScopeDirective:E!==u&&E,newIsolateScopeDirective:O,templateDirective:x,nonTlbTranscludeDirective:k}),l=t.length;else if(u.compile)try{p=u.compile(D,n,L);const t=u.$$originalDirective||u;S(p)?G(null,Q(t,p),f,m):p&&G(Q(t,p.pre),Q(t,p.post),f,m)}catch(t){a(t,Gt(D))}u.terminal&&(z.terminal=!0,w=Math.max(w,u.priority))}return z.scope=E&&!0===E.scope,z.transcludeOnThisElement=_,z.templateOnThisElement=V,z.transclude=L,l.hasElementTranscludeDirective=P,z;function G(t,e,n,r){t&&(n&&(t=F(t,n,r)),t.require=u.require,t.directiveName=h,(O===u||u.$$isolateScope)&&(t=ht(t,{isolateScope:!0})),o.push(t)),e&&(n&&(e=F(e,n,r)),e.require=u.require,e.directiveName=h,(O===u||u.$$isolateScope)&&(e=ht(e,{isolateScope:!0})),c.push(e))}}function K(t,e,n,r){let i;if(w(e)){const o=e.match(s),a=e.substring(o[0].length),c=o[1]||o[3],l="?"===o[2];if("^^"===c?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){const t=`$${a}Controller`;i="^^"===c&&n[0]&&n[0].nodeType===Node.DOCUMENT_NODE?null:c?n.inheritedData(t):n.data(t)}if(!i&&!l)throw hn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(Array.isArray(e)){i=[];for(let s=0,o=e.length;s<o;s++)i[s]=K(t,e[s],n,r)}else v(e)&&(i={},N(e,((e,s)=>{i[s]=K(t,e,n,r)})));return i||null}function Z(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=M(t[r],{$$isolateScope:e,$$newScope:n})}function J(e,i,s,o,a,c,l){if(i===a)return null;let h=null;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),d=0,p=a.length;d<p;d++)if(n=a[d],(g(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(c&&(n=M(n,{$$start:c,$$end:l})),!n.$$bindings){const t=n.$$bindings=u(n,n.name);v(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),h=n}return h}function X(e){if(Object.prototype.hasOwnProperty.call(n,e))for(let n,i=t.get(e+r),s=0,o=i.length;s<o;s++)if(n=i[s],n.multiElement)return!0;return!1}function tt(t,e){const n=e.$attr,r=t.$attr;N(t,((r,i)=>{"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),N(e,((e,i)=>{Object.prototype.hasOwnProperty.call(t,i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function et(t,e,n,r,i,s,o,l){let u,h,d=[];const p=e[0],f=t.shift(),$=M(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=S(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),c(m).then((a=>{let c,y,w,b;if(a=j(a),f.replace){if(w=Pt(a)?[]:mn(it(g,T(a))),c=w[0],1!==w.length||c.nodeType!==Node.ELEMENT_NODE)throw hn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);y={$attr:{}},ut(r,e,c);const i=U(c,[],y);v(f.scope)&&Z(i,!0),t=i.concat(t),tt(n,y)}else c=p,e.html(a);for(t.unshift($),u=G(t,c,n,i,e,f,s,o,l),N(r,((t,n)=>{t===c&&(r[n]=e[0])})),h=L(e[0].childNodes,i);d.length;){const t=d.shift(),n=d.shift(),i=d.shift(),s=d.shift();let o=e[0];if(!t.$$destroyed){if(n!==p){const t=n.className;l.hasElementTranscludeDirective&&f.replace||(o=c.cloneNode(!0)),ut(i,_t(n),o);try{""!==t&&o.classList.add(...t.trim().split(" "))}catch(t){}}b=u.transcludeOnThisElement?I(t,u.transclude,s):s,u(h,t,o,r,b)}}d=null})).catch((t=>{C(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(d?d.push(e,n,r,s):(u.transcludeOnThisElement&&(s=I(e,u.transclude,i)),u(h,e,n,r,s)))}}function nt(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function rt(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw hn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Gt(r))}function it(t,e){switch(t=$(t||"html")){case"svg":case"math":var n=window.document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function st(t){return function(t,e){if(!t)return t;if(!w(t))throw hn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=T(t),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,s=/\s/.test(r)?i:/(,)/,o=r.split(s),a=Math.floor(o.length/2),c=0;c<a;c++){var l=2*c;n+=y.getTrustedMediaUrl(T(o[l])),n+=" "+T(o[l+1])}var u=T(o[2*c]).split(/\s/);n+=y.getTrustedMediaUrl(T(u[0])),2===u.length&&(n+=" "+T(u[1]));return n}(y.valueOf(t),"ng-prop-srcset")}function ot(t,e,n,r){if(o.test(r))throw hn("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=q(t),s=function(t,e){const n=e.toLowerCase();return d[`${t}|${n}`]||d[`*|${n}`]}(i,r);let a=t=>t;"srcset"!==r||"img"!==i&&"source"!==i?s&&(a=y.getTrusted.bind(y,s)):a=st,e.push({priority:100,compile:function(t,e){const i=p(e[n]),s=p(e[n],(t=>y.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function ct(t,e,n){t.push(rn(p,m,a,e,n,!1))}function lt(t,n,r,s,a){const c=q(t),l=function(t,e){return"srcdoc"===e?y.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?y.RESOURCE_URL:y.MEDIA_URL:"xlinkHref"===e?"image"===t?y.MEDIA_URL:"a"===t?y.URL:y.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?y.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:y.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw hn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Gt(t.outerHTML));if(o.test(s))throw hn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,i){const o=i.$$observers||(i.$$observers=Object.create(null)),a=i[s];a!==r&&(h=a&&e(a,!0,l,u),r=a),h&&(i[s]=h(t),(o[s]||(o[s]=[])).$$inter=!0,(i.$$observers&&i.$$observers[s].$$scope||t).$watch(h,((t,e)=>{"class"===s&&t!==e?i.$updateClass(t,e):i.$set(s,t)})))}})})}}function ut(t,e,n){const r=e[0],i=e.length,s=r.parentNode;let o,a;if(t)for(o=0,a=t.length;o<a;o++)if(t[o]===r){t[o++]=n;for(let e=o,n=e+i-1,r=t.length;e<r;e++,n++)n<r?t[e]=t[n]:delete t[e];t.length-=i-1;break}s&&s.replaceChild(n,r);const c=window.document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for(yt.has(r[gt])&&(Ut(n,Ut(r)),_t(r).off("$destroy")),Qt(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function ht(t,e){return R((function(){return t.apply(null,arguments)}),t,e)}function dt(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,Gt(n))}}function pt(t,e){if(h)throw hn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function ft(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){S(r.$onChanges)&&!B(n,i)&&(E||(t.$$postDigest(O),E=[]),c||(c={},E.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new $n(i,n))}function u(){r.$onChanges(c),c=void 0}return N(i,((i,c)=>{const{attrName:u}=i,{optional:h}=i,{mode:d}=i;let f,$,m,g,y;switch(d){case"@":h||Object.hasOwnProperty.call(n,u)||(pt(u,s.name),r[c]=n[u]=void 0),y=n.$observe(u,(t=>{if(w(t)||k(t)){const e=r[c];l(c,t,e),r[c]=t}})),n.$$observers[u].$$scope=t,f=n[u],w(f)?r[c]=e(f)(t):k(f)&&(r[c]=f),a[c]=new $n(dn,r[c]),o.push(y);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;pt(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]),g=$.literal?z:B,m=$.assign||function(){throw f=r[c]=$(t),hn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},f=r[c]=$(t);var v=function(e){return g(e,r[c])||(g(e,f)?m(t,e=r[c]):r[c]=e),f=e,f};v.$stateful=!0,y=i.collection?t.$watchCollection(n[u],v):t.$watch(p(n[u],v),null,$.literal),o.push(y);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;pt(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]);var b=$.literal,E=r[c]=$(t);a[c]=new $n(dn,r[c]),y=t[i.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||b&&z(e,E))return;e=E}l(c,t,e),r[c]=t})),o.push(y);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||pt(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?p(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[c]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}fn.$inject=["$provide","$$sanitizeUriProvider"];class $n{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===dn}}function mn(t){let e=(t=_t(t)).length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}const gn={$addControl:()=>{},$getControls:L([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:function(){},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},yn="ng-pending",vn="ng-submitted";function wn(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=gn,this.$$element=t,this.$$animate=r,Sn(this)}wn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],wn.prototype={$rollbackViewValue(){this.$$controls.forEach((t=>{t.$rollbackViewValue()}))},$commitViewValue(){this.$$controls.forEach((t=>{t.$commitViewValue()}))},$addControl(t){W(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return st(this.$$controls)},$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],N(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),N(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),N(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),F(this.$$controls,t),t.$$parentForm=gn},$setDirty(){this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,i),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine(){this.$$animate.setClass(this.$$element,r,`${i} ${vn}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach((t=>{t.$setPristine()}))},$setUntouched(){this.$$controls.forEach((t=>{t.$setUntouched()}))},$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==gn;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,vn),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},function(t){const{clazz:r}=t,{set:i}=t,{unset:s}=t;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(t,r,i){r=r?`-${j(r,"-")}`:"",o(t,e+r,!0===i),o(t,n+r,!1===i)}r.prototype.$setValidity=function(t,e,n){let r;g(e)?function(t,e,n,r){t[e]||(t[e]={}),i(t[e],n,r)}(this,"$pending",t,n):function(t,e,n,r){t[e]&&s(t[e],n,r),On(t[e])&&(t[e]=void 0)}(this,"$pending",t,n),k(e)?e?(s(this.$error,t,n),i(this.$$success,t,n)):(i(this.$error,t,n),s(this.$$success,t,n)):(s(this.$error,t,n),s(this.$$success,t,n)),this.$pending?(o(this,yn,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,yn,!1),this.$valid=On(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),r=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,r),this.$$parentForm.$setValidity(t,r,this)}}({clazz:wn,set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else t[e]=[n]},unset(t,e,n){const r=t[e];r&&(F(r,n),0===r.length&&delete t[e])}});const bn=function(t){return["$timeout","$parse",function(n,i){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:wn,compile:function(i,o){i[0].classList.add(r,e);const a=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,e,r,i){const o=i[0];if(!("action"in r)){const r=function(e){t.$apply((()=>{o.$commitViewValue(),o.$setSubmitted()})),e.preventDefault()};e[0].addEventListener("submit",r),e.on("$destroy",(()=>{n((()=>{e[0].removeEventListener("submit",r)}),0,!1)}))}(i[1]||o.$$parentForm).$addControl(o);let c=a?s(o.$name):()=>{};a&&(c(t,o),r.$observe(a,(e=>{o.$name!==e&&(c(t,void 0),o.$$parentForm.$$renameControl(o,e),c=s(o.$name),c(t,o))}))),e.on("$destroy",(()=>{o.$$parentForm.$removeControl(o),c(t,void 0),R(o,gn)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},En=bn(),Cn=bn("ngForm");function Sn(t){t.$$classCache={},t.$$classCache[n]=!(t.$$classCache[e]=t.$$element[0].classList.contains(e))}function On(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}const xn=/(\s+|^)default(\s+|$)/;class An{static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:_n,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class kn{constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return N(t=Object.assign({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=T(n.replace(xn,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],jn(t,this.$$options)),jn(t,_n.$$options),new kn(t)}}const _n=new kn({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),Tn=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:An}};function jn(t,e){Object.keys(e).forEach((n=>{y(t[n])||(t[n]=e[n])}))}const Nn=ht("ngModel");class Vn{static $inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];constructor(t,e,n,r,i,s,o,a,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=gn,this.$options=_n,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=s,this.$$timeout=o,this.$$parse=i,this.$q=a,this.$$exceptionHandler=e,this.$$hasNativeValidators=!1,Sn(this),(l=this).$$scope.$watch((t=>{const e=l.$$ngModelGet(t);return e===l.$modelValue||l.$modelValue!=l.$modelValue&&e!=e||l.$$setModelValue(e),e}))}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(t,r){let i=this;function s(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function o(t,r,i){r=r?`-${j(r,"-")}`:"",s(t,e+r,!0===i),s(t,n+r,!1===i)}var a,c,l;let u;g(r)?(l=t,(a=this)[c="$pending"]||(a[c]={}),i.set(a[c],l)):function(t,e,n){t[e]&&i.unset(t[e],n),On(t[e])&&(t[e]=void 0)}(this,"$pending",t),k(r)?r?(delete this.$error[t],this.set(this.$$success,t)):(this.set(this.$error,t),delete this.$$success[t]):(delete this.$error[t],delete this.$$success[t]),this.$pending?(s(this,yn,!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(s(this,yn,!1),this.$valid=On(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),u=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),o(this,t,u),this.$$parentForm.$setValidity(t,u,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=function(e){let n=this.$$parsedNgModel(e);return S(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){S(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw Nn("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Gt(this.$$element))}$render(){}$isEmpty(t){return g(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?mt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,c),this.$$animate.addClass(this.$$element,a)):(this.$$element[0].classList.remove(c),this.$$element[0].classList.add(a)):mt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,c)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(c))}$setPristine(){this.$dirty=!1,this.$pristine=!0,mt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,r)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(r))}$setDirty(){this.$dirty=!0,this.$pristine=!1,mt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,i)):(this.$$element[0].classList.remove(r),this.$$element[0].classList.add(i)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,mt(this.$$element[0])?this.$$animate.setClass(this.$$element,s,o):(this.$$element[0].classList.remove(o),this.$$element[0].classList.add(s))}$setTouched(){this.$touched=!0,this.$untouched=!1,mt(this.$$element[0])?this.$$animate.setClass(this.$$element,o,s):(this.$$element[0].classList.remove(s),this.$$element[0].classList.add(o))}$rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(D(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),s=this;this.$$runValidators(e,t,(t=>{i||n===t||(s.$modelValue=t?e:void 0,s.$modelValue!==r&&s.$$writeModelToScope())}))}$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,i=this;function s(t,e){r===i.$$currentValidationRunId&&i.$setValidity(t,e)}function o(t){r===i.$$currentValidationRunId&&n(t)}!function(){const t=i.$$parserName;if(!g(i.$$parserValid))return i.$$parserValid||(N(i.$validators,((t,e)=>{s(e,null)})),N(i.$asyncValidators,((t,e)=>{s(e,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(N(i.$validators,((r,i)=>{const o=Boolean(r(t,e));n=n&&o,s(i,o)})),!n)return N(i.$asyncValidators,((t,e)=>{s(e,null)})),!1;return!0}()?function(){const n=[];let r=!0;N(i.$asyncValidators,((i,o)=>{const a=i(t,e);if(!_(a))throw Nn("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then((()=>{s(o,!0)}),(()=>{r=!1,s(o,!1)})))})),n.length?i.$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)}$commitViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!g(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),g(t)){this.$$parserValid=!1;break}D(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function i(){e.$modelValue!==n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,i()),this.$$runValidators(t,this.$$lastCommittedViewValue,(n=>{r||(e.$modelValue=n?t:void 0,i())}))}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),N(this.$viewChangeListeners,(function(t){try{t()}catch(t){this.$$exceptionHandler(t)}}),this)}$setViewValue(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");b(e[t])?e=e[t]:b(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:b(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=this.$$timeout((()=>{n.$commitViewValue()}),e):this.$$rootScope.$$phase!==ke.NONE?this.$commitViewValue():this.$$scope.$apply((()=>{n.$commitViewValue()}))}$overrideModelOptions(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,(()=>{})))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function Rn(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Vn,priority:1,compile:function(n){return n[0].classList.add(r,s,e),{pre:function(t,e,n,r){const i=r[0],s=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),s.$addControl(i),n.$observe("name",(t=>{i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(()=>{i.$$parentForm.$removeControl(i)}))},post:function(e,n,r,i){const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(t.$$phase!==ke.NONE?e.$evalAsync(o):e.$apply(o))}))}}}}}Rn.$inject=["$rootScope"];const Pn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Dn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Mn=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,Ln=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,In=/^(\d{4,})-(\d{2})-(\d{2})$/,Un=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qn=/^(\d{4,})-W(\d\d)$/,Hn=/^(\d{4,})-(\d\d)$/,Fn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Bn="validity",zn="keydown wheel mousedown",Wn=new Map;"date,datetime-local,month,time,week".split(",").forEach((t=>{Wn.set(t,!0)}));const Gn={text:function(t,e,n,r,i){Yn(t,e,n,r,i),Kn(r)},date:Jn("date",In,Qn(In,["yyyy","MM","dd"])),"datetime-local":Jn("datetimelocal",Un,Qn(Un,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Jn("time",Fn,Qn(Fn,["HH","mm","ss","sss"])),week:Jn("week",qn,(function(t,e){if(E(t))return t;if(w(t)){qn.lastIndex=0;const n=qn.exec(t);if(n){const t=+n[1],r=+n[2];let i=0,s=0,o=0,a=0;const c=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(i=e.getHours(),s=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,i,s,o,a)}}return NaN})),month:Jn("month",Hn,Qn(Hn,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Xn(t,e,n,r,"number"),tr(r),Yn(t,e,n,r,i),y(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=er(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||g(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=er(t),e=t,r.$validate())}))}if(y(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=er(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||g(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=er(t),e=t,r.$validate())}))}if(y(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=er(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||g(i)||ir(e,a||0,i)},n.$observe("step",(t=>{t!==e&&(i=er(t),e=t,r.$validate())}))}},url:function(t,e,n,r,i){Yn(t,e,n,r,i),Kn(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||Dn.test(n)}},email:function(t,e,n,r,i){Yn(t,e,n,r,i),Kn(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||Mn.test(n)}},radio:function(t,e,n,r){const i=!n.ngTrim||"false"!==T(n.ngTrim);g(n.name)&&e.attr("name",f());e.on("change",(function(t){let s;e[0].checked&&(s=n.value,i&&(s=T(s)),r.$setViewValue(s,t&&t.type))})),r.$render=function(){let{value:t}=n;i&&(t=T(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i){Xn(t,e,n,r,"range"),tr(r),Yn(t,e,n,r,i);const s=r.$$hasNativeValidators&&"range"===e[0].type;let o=s?0:void 0,a=s?100:void 0,c=s?1:void 0;const{validity:l}=e[0],u=y(n.min),h=y(n.max),d=y(n.step),p=r.$render;r.$render=s&&y(l.rangeUnderflow)&&y(l.rangeOverflow)?function(){p(),r.$setViewValue(e.val())}:p,u&&(o=er(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||g(o)||e>=o},f("min",(function(t){if(o=er(t),D(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=er(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||g(a)||e<=a},f("max",(function(t){if(a=er(t),D(r.$modelValue))return;if(s){let t=e.val();a<t&&(e.val(a),t=a<o?o:a),r.$setViewValue(t)}else r.$validate()})));d&&(c=er(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||g(c)||ir(e,o||0,c)},f("step",(function(t){if(c=er(t),D(r.$modelValue))return;s?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate()})));function f(t,r){e.attr(t,n[t]);let i=n[t];n.$observe(t,(t=>{t!==i&&(i=t,r(t))}))}},checkbox:function(t,e,n,r,i,s,o){const a=sr(o,t,"ngTrueValue",n.ngTrueValue,!0),c=sr(o,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((t=>z(t,a))),r.$parsers.push((t=>t?a:c))},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Kn(t){t.$formatters.push((e=>t.$isEmpty(e)?e:e.toString()))}function Yn(t,e,n,r,i){const s=$(e[0].type);let o,a=!1;e.on("compositionstart",(()=>{a=!0})),e.on("compositionend",(()=>{a=!1,c()}));let c=function(t){if(o&&(i.cancel(o),o=null),a)return;let c=e.val();const l=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(c=T(c)),(r.$viewValue!==c||""===c&&r.$$hasNativeValidators)&&r.$setViewValue(c,l)};["input","change","paste","drop","cut"].forEach((t=>{e.on(t,c)})),Wn[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(zn,(function(t){if(!o){const e=this[Bn],n=e.badInput,r=e.typeMismatch;o=i.defer((()=>{o=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function Qn(t,e){return function(n,r){let i,s;if(E(n))return n;if(w(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Pn.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n),i){i.shift(),s=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},N(i,((t,n)=>{n<e.length&&(s[e[n]]=+t)}));const t=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&t.setFullYear(s.yyyy),t}}return NaN}}const Zn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Jn(t,e,n){return function(r,i,s,o,a,c,l){if(Xn(r,i,s,o,t),Yn(0,i,s,o,a),o.$parsers.push((n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:d(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!w(e))throw Nn("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Zn.test(e))throw Nn("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!qn.test(e))throw Nn("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!Un.test(e))throw Nn("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e})),y(s.min)||s.ngMin){let e=s.min||l(s.ngMin)(r),i=h(e);o.$validators.min=function(e){return"month"===t?g(i)||n(e)>=n(i):!u(e)||g(i)||n(e)>=i},s.$observe("min",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}if(y(s.max)||s.ngMax){let e=s.max||l(s.ngMax)(r),i=h(e);o.$validators.max=function(e){return"month"===t?g(i)||n(e)<=n(i):!u(e)||g(i)||n(e)<=i},s.$observe("max",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}function u(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function h(t){return y(t)&&!E(t)?d(t)||void 0:t}function d(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=X(i,r)),i}}}function Xn(t,e,n,r,i){const s=e[0];(r.$$hasNativeValidators=v(s.validity))&&r.$parsers.push((t=>{const n=e[0][Bn]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function tr(t){t.$parsers.push((e=>t.$isEmpty(e)?null:Ln.test(e)?parseFloat(e):void(t.$$parserName="number"))),t.$formatters.push((e=>{if(!t.$isEmpty(e)){if(!b(e))throw Nn("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function er(t){return y(t)&&!b(t)&&(t=parseFloat(t)),D(t)?void 0:t}function nr(t){return(0|t)===t}function rr(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function ir(t,e,n){let r=Number(t);const i=!nr(r),s=!nr(e),o=!nr(n);if(i||s||o){const t=i?rr(r):0,a=s?rr(e):0,c=o?rr(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,i&&(r=Math.round(r)),s&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n==0}function sr(t,e,n,r,i){let s;if(y(r)){if(s=t(r),!s.constant)throw Nn("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(e)}return i}function or(t,e,n){return{restrict:"E",require:["?ngModel"],link:{pre(r,i,s,o){o[0]&&(Gn[$(s.type)]||Gn.text)(r,i,s,o[0],t,e,n)}}}}function ar(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===$(n.type))return{pre(e,n){const r=n[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}or.$inject=["$browser","$filter","$parse"];const cr=/^(true|false|\d+)$/;function lr(){function t(t,e,n){const r=y(n)?n:null;t[0].value=r,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>cr.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(e=>{t(n,r,e)}))}}}const ur=["$templateCache",t=>({restrict:"E",terminal:!0,compile(e,n){if("text/ng-template"===n.type){const r=n.id,{text:i}=e[0];t.put(r,i)}}})];function hr(t,e){t[0].selected=e,t.attr("selected",e)}function dr(t,e){const n=this,r=new Map;n.selectValueMap={},n.ngModelCtrl={},n.multiple=!1,n.unknownOption=_t(window.document.createElement("option")),n.hasEmptyOption=!1,n.emptyOption=void 0,n.renderUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),t.prepend(n.unknownOption),hr(n.unknownOption,!0),t.val(r)},n.updateUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),hr(n.unknownOption,!0),t.val(r)},n.generateUnknownOptionValue=function(t){return`? ${pt(t)} ?`},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),hr(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&hr(n.emptyOption,!1)},e.$on("$destroy",(()=>{n.renderUnknownOption=()=>{}})),n.readValue=function(){const e=t.val(),r=e in n.selectValueMap?n.selectValueMap[e]:e;return n.hasOption(r)?r:null},n.writeValue=function(e){const r=t[0].options[t[0].selectedIndex];if(r&&hr(_t(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=pt(e);t.val(r in n.selectValueMap?r:e);hr(_t(t[0].options[t[0].selectedIndex]),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;W(t,'"option value"'),""===t&&(n.hasEmptyOption=!0,n.emptyOption=e);const i=r.get(t)||0;r.set(t,i+1),s()},n.removeOption=function(t){const e=r.get(t);e&&(1===e?(r.delete(t),""===t&&(n.hasEmptyOption=!1,n.emptyOption=void 0)):r.set(t,e-1))},n.hasOption=function(t){return!!r.get(t)},n.$hasEmptyOption=function(){return n.hasEmptyOption},n.$isUnknownOptionSelected=function(){return t[0].options[0]===n.unknownOption[0]},n.$isEmptyOptionSelected=function(){return n.hasEmptyOption&&t[0].options[t[0].selectedIndex]===n.emptyOption[0]},n.selectUnknownOrEmptyOption=function(t){null==t&&n.emptyOption?(n.removeUnknownOption(),n.selectEmptyOption()):n.unknownOption.parent().length?n.updateUnknownOption(t):n.renderUnknownOption(t)};let i=!1;function s(){i||(i=!0,e.$$postDigest((()=>{i=!1,n.ngModelCtrl.$render()})))}let o=!1;function a(t){o||(o=!0,e.$$postDigest((()=>{e.$$destroyed||(o=!1,n.ngModelCtrl.$setViewValue(n.readValue()),t&&n.ngModelCtrl.$render())})))}n.registerOption=function(t,e,r,i,o){let c,l;r.$attr.ngValue?r.$observe("value",(t=>{let r;const i=e[0].selected;y(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=pt(t),c=t,n.selectValueMap[l]=t,n.addOption(t,e),e.attr("value",l),r&&i&&a()})):i?r.$observe("value",(t=>{let r;n.readValue();const i=e[0].selected;y(c)&&(n.removeOption(c),r=!0),c=t,n.addOption(t,e),r&&i&&a()})):o?t.$watch(o,((t,i)=>{r.$set("value",t);const s=e[0].selected;i!==t&&n.removeOption(i),n.addOption(t,e),i&&s&&a()})):n.addOption(r.value,e),r.$observe("disabled",(t=>{("true"===t||t&&e[0].selected)&&(n.multiple?a(!0):(n.ngModelCtrl.$setViewValue(null),n.ngModelCtrl.$render()))})),e.on("$destroy",(()=>{const t=n.readValue(),e=r.value;n.removeOption(e),s(),(n.multiple&&t&&-1!==t.indexOf(e)||t===e)&&a(!0)}))}}function pr(){return{restrict:"E",require:["select","?ngModel"],controller:dr,priority:1,link:{pre:function(t,e,n,r){const i=r[0],s=r[1];if(!s)return void(i.registerOption=()=>{});if(i.ngModelCtrl=s,e.on("change",(()=>{i.removeUnknownOption(),t.$apply((()=>{s.$setViewValue(i.readValue())}))})),n.multiple){let n;i.multiple=!0,i.readValue=function(){const t=[];return Array.from(e[0].getElementsByTagName("option")).forEach((e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){Array.from(e[0].getElementsByTagName("option")).forEach((e=>{const n=!!t&&(H(t,e.value)||H(t,i.selectValueMap[e.value]));n!==e.selected&&hr(_t(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||z(n,s.$viewValue)||(n=st(s.$viewValue),s.$render()),r=s.$viewValue})),s.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const i=r[1];if(!i)return;const s=r[0];i.$render=function(){s.writeValue(i.$viewValue)}}}}}function fr(t){return{restrict:"E",priority:100,compile(e,n){let r,i;return y(n.ngValue)||(y(n.value)?r=t(n.value,!0):(i=t(e.text(),!0),i||n.$set("value",e.text()))),function(t,e,n){const s="$selectController",o=e.parent(),a=o.data(s)||o.parent().data(s);a&&a.registerOption(t,e,n,r,i)}}}}function $r(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=G(t)}))}}}function mr(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=g(t)?"":t}))}}}dr.$inject=["$element","$scope"],fr.$inject=["$interpolate"];const gr=["$parse",t=>({restrict:"A",compile:(e,n)=>{const r=t(n.ngBindHtml),i=t(n.ngBindHtml,(t=>t));return(t,e)=>{t.$watch(i,(()=>{e.html(r(t)||"")}))}}})];function yr(t,e){let n;return t=`ngClass${t}`,["$parse",o=>({restrict:"EA",link(a,c,l){let u,h=c.data("$classCounts"),d=!0;function p(t,e){const n=[];return t&&t.forEach((t=>{(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Object.create(null),c.data("$classCounts",h)),"ngClass"!==t&&(n||(n=o("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=u),1),mt(c[0])?l.$addClass(n):a.$$postDigest((()=>{""!==n&&c[0].classList.add(...n.trim().split(" "))}))):function(t){t=p(i(t),-1),mt(c[0])?l.$removeClass(t):a.$$postDigest((()=>{""!==t&&c[0].classList.remove(...t.trim().split(" "))}))}(u);var n;d=t}))),a.$watch(o(l[t],s),(function(t){d===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),u=r(s,n),h=p(o,-1),d=p(u,1);mt(c[0])?(l.$addClass(d),l.$removeClass(h)):a.$$postDigest((()=>{""!==d&&c[0].classList.add(...d.trim().split(" ")),""!==h&&c[0].classList.remove(...h.trim().split(" "))}))}(u,t);u=t}))}})];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<e.length;t++)if(i===e[t])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function s(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(s).join(" "):v(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):w(t)||(e=`${t}`),e}}const vr=yr("",!0),wr=yr("Odd",0),br=yr("Even",1);function Er(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}const Cr=[()=>({restrict:"A",scope:!0,controller:"@",priority:500})],Sr="ng-hide",Or="ng-hide-animate";function xr(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngShow,(r=>{mt(n[0])?t[r?"removeClass":"addClass"](n,Sr,{tempClasses:Or}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.remove(Sr))):n.elements().forEach((t=>t.classList.add(Sr)))}))}))}}}function Ar(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngHide,(r=>{mt(n[0])?t[r?"addClass":"removeClass"](n,Sr,{tempClasses:Or}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.add(Sr))):n.elements().forEach((t=>t.classList.remove(Sr)))}))}))}}}xr.$inject=["$animate"],Ar.$inject=["$animate"];const kr=Object.freeze({Program:1,ExpressionStatement:2,AssignmentExpression:3,ConditionalExpression:4,LogicalExpression:5,BinaryExpression:6,UnaryExpression:7,CallExpression:8,MemberExpression:9,Identifier:10,Literal:11,ArrayExpression:12,Property:13,ObjectExpression:14,ThisExpression:15,LocalsExpression:16,NGValueParameter:17}),_r="-add",Tr="-remove",jr="ng-",Nr="-active",Vr="-prepare",Rr="ng-animate",Pr="$$ngAnimateChildren";let Dr,Mr,Lr,Ir;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Dr="WebkitTransition",Mr="webkitTransitionEnd transitionend"):(Dr="transition",Mr="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Lr="WebkitAnimation",Ir="webkitAnimationEnd animationend"):(Lr="animation",Ir="animationend");const Ur="Duration",qr=kr.Property,Hr="Delay",Fr="TimingFunction",Br="PlayState",zr=9999,Wr=Lr+Hr,Gr=Lr+Ur,Kr=Dr+Hr,Yr=Dr+Ur,Qr=ht("ng");function Zr(t,e,n){if(!t)throw Qr("areq","Argument '{0}' is {1}",e||"?",n);return t}function Jr(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&w(t)&&t.length?t.split(/\s+/):[]).forEach(((t,i)=>{t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function Xr(t){if(t instanceof _t)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return _t(ti(t))}if(t.nodeType===Node.ELEMENT_NODE)return _t(t)}function ti(t){if(!t[0])return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function ei(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function ni(t,e){ri(t,e),ii(t,e)}function ri(t,e){e.from&&(e.from=null)}function ii(t,e){e.to&&(e.to=null)}function si(t,e,n){const r=e.options||{},i=n.options||{},s=`${r.addClass||""} ${i.addClass||""}`,o=`${r.removeClass||""} ${i.removeClass||""}`,a=function(t,e,n){const r=1,i=-1,s={};t=a(t),e=a(e),N(e,((t,e)=>{s[e]=r})),n=a(n),N(n,((t,e)=>{s[e]=s[e]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){w(t)&&(t=t.split(" "));const e={};return N(t,(t=>{t.length&&(e[t]=!0)})),e}return N(s,(function(e,n){var s,a;e===r?(s="addClass",a=!t[n]||t[n+Tr]):e===i&&(s="removeClass",a=t[n]||t[n+_r]),a&&(o[s].length&&(o[s]+=" "),o[s]+=n)})),o}(t.attr("class"),s,o);i.preparationClasses&&(r.preparationClasses=li(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);const c=r.domOperation!==(()=>{})?r.domOperation:null;return R(r,i),c&&(r.domOperation=c),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function oi(t){return t instanceof _t?t[0]:t}function ai(t,e){const n=e?"paused":"",r=Lr+Br;return ci(t,[r,n]),[r,n]}function ci(t,e){const n=e[0],r=e[1];t.style[n]=r}function li(t,e){return t?e?`${t} ${e}`:t:e}const ui=ht("$animate");function hi(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function di(t){return v(t)?t:{}}function pi(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}function fi(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw ui("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=S(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${Rr}[(\\s|\\/)]`).test(n.toString()))throw n=null,ui("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Rr)}return n},this.$get=["$$animateQueue",function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(e,n,r,i)=>(n=n&&_t(n),r=r&&_t(r),pi(e,n=n||r.parent(),r),t.push(e,"enter",di(i))),move:(e,n,r,i)=>(n=n&&_t(n),r=r&&_t(r),pi(e,n=n||r.parent(),r),t.push(e,"move",di(i))),leave:(e,n)=>t.push(e,"leave",di(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=di(r)).addClass=hi(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=di(r)).removeClass=hi(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=di(i)).addClass=hi(i.addClass,n),i.removeClass=hi(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=di(s)).from=s.from?R(s.from,n):n,s.to=s.to?R(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=hi(s.tempClasses,i),t.push(e,"animate",s))}}]}function $i(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",link(e,n,r,i,s){let o,a,c;e.$watch(r.ngIf,(e=>{e?a||s(((e,r)=>{a=r,e[e.length++]=document.createComment(""),o={clone:e},mt(e[0])?t.enter(e,n.parent(),n):pi(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=Kt(o.clone),mt(c[0])?t.leave(c).done((t=>{!1!==t&&(c=null)})):c.remove(),o=null))}))}}}fi.$inject=["$provide"],$i.$inject=["$animate"];const mi=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,i){const s=i.ngInclude||i.src,o=i.onload||"",a=i.autoscroll;return(r,i,c,l,u)=>{function h(){!y(a)||a&&!r.$eval(a)||e()}let d,p,f,$=0;const m=()=>{p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&(mt(f[0])?n.leave(f).done((t=>{!1!==t&&(p=null)})):f.remove(),p=f,f=null)};r.$watch(s,(e=>{const s=function(t){!1!==t&&h()},a=++$;e?(t(e,!0).then((t=>{if(r.$$destroyed)return;if(a!==$)return;const c=r.$new();l.template=t;const p=u(c,(t=>{m(),mt(t[0])?n.enter(t,null,i).done(s):(pi(t,null,i),h())}));d=c,f=p,d.$emit("$includeContentLoaded",e),r.$eval(o)}),(()=>{r.$$destroyed||a===$&&(m(),r.$emit("$includeContentError",e))})),r.$emit("$includeContentRequested",e)):(m(),l.template=null)}))}}})],gi=["$compile",t=>({restrict:"ECA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Mt(i.template).childNodes)(e,(t=>{n.append(t)}),{futureParentElement:n});n.html(i.template),t(n[0].childNodes)(e)}})];function yi(){return{priority:450,compile:()=>({pre(t,e,n){t.$eval(n.ngInit)}})}}function vi(){return{restrict:"EA",terminal:!0,priority:1e3}}const wi=ht("ngRef"),bi=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=$t(q(e)),i=t(n.ngRef),s=i.assign||function(){throw wi("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,o){let a;if(Object.prototype.hasOwnProperty.call(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=e.data(`$${o.ngRefRead}Controller`),!a)throw wi("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=e.data(`$${r}Controller`);a=a||e,s(t,a),e.on("$destroy",(()=>{i(t)===a&&s(t,null)}))}}})],Ei=["$parse","$animate",(t,e)=>{const n="$$NG_REMOVED",r=ht("ngRepeat"),i=function(t,e,n,r,i,s,o){t[n]=r,i&&(t[i]=s),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))},s=function(t){return t.clone[0]},o=function(t){return t.clone[t.clone.length-1]},a=function(t,e,n){return pt(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,compile:function(l,u){const h=u.ngRepeat;let d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const p=d[1],f=d[2],$=d[3],g=d[4];if(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!d)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);const y=d[3]||d[1],v=d[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",$);let w;if(g){var b={$id:pt};const e=t(g);w=function(t,n,r,i){return v&&(b[v]=n),b[y]=r,b.$index=i,e(t,b)}}return function(t,l,u,d,p){let g=Object.create(null);t.$watchCollection(f,(u=>{var d,f,E,C,S,O,x,A,k,_,T,j,V=l[0],R=Object.create(null);if($&&(t[$]=u),m(u))k=u,A=w||a;else for(var P in A=w||c,k=[],u)Object.hasOwnProperty.call(u,P)&&"$"!==P.charAt(0)&&k.push(P);for(C=k.length,T=new Array(C),d=0;d<C;d++)if(S=u===k?d:k[d],O=u[S],x=A(t,S,O,d),g[x])_=g[x],delete g[x],R[x]=_,T[d]=_;else{if(R[x])throw N(T,(function(t){t&&t.scope&&(g[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,x,O);T[d]={id:x,scope:void 0,clone:void 0},R[x]=!0}for(var D in b&&(b[y]=void 0),g){if(j=Kt((_=g[D]).clone),e.leave(j),j[0].parentNode)for(d=0,f=j.length;d<f;d++)j[d][n]=!0;_.scope.$destroy()}for(d=0;d<C;d++)if(S=u===k?d:k[d],O=u[S],(_=T[d]).scope){E=V;do{E=E.nextSibling}while(E&&E[n]);s(_)!==E&&e.move(Kt(_.clone),null,V),V=o(_),i(_.scope,d,y,O,v,S,C)}else p(((t,n)=>{_.scope=n;const r=document.createComment("");t[t.length++]=r,e.enter(t,null,V),V=r,_.clone=t,e.enter(t,null,V),V=t,_.clone=t,R[_.id]=_,i(_.scope,d,y,O,v,S,C)}));g=R}))}}}}];function Ci(){return{restrict:"EA",link:(t,e,n)=>{t.$watchCollection(n.ngStyle,((t,n)=>{if(n){const t=Object.keys(n);for(let n=0,r=t.length;n<r;n++)e[0].style[t[n]]=""}if(t){const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,i]=n[t];e[0].style[r]=i}}}))}}}const Si=["$animate",t=>({require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,i){const s=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(s,(e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=Kt(a[n].clone);l[n].$destroy();(c[n]=t.leave(e)).done(u(c,n))}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&N(o,(e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),t.enter(n,i.parent(),i)}))}))}))}})];function Oi(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){const s=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(((t,e,n)=>n[e-1]!==t));s.forEach((t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:i,element:e})}))}}}function xi(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}const Ai=ht("ngOptions"),ki=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,_i=["$compile","$parse",function(t,e){const n=window.document.createElement("option"),r=window.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(i,s,o,a){const c=a[0],l=a[1],{multiple:u}=o;for(let t=0,e=s.children(),n=e.length;t<n;t++)if(""===e[t].value){c.hasEmptyOption=!0,c.emptyOption=e.eq(t);break}s.empty();const h=!!c.emptyOption;let d;_t(n.cloneNode(!1)).val("?");const p=function(t,n,r){const i=t.match(ki);if(!i)throw Ai("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Gt(n));const s=i[5]||i[7],o=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],l=e(i[2]?i[1]:s),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return pt(t)},p=function(t,e){return d(t,w(t,e))},f=e(i[2]||i[1]),$=e(i[3]||""),g=e(i[4]||""),y=e(i[8]),v={};let w=o?function(t,e){return v[o]=e,v[s]=t,v}:function(t){return v[s]=t,v};function b(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function E(t){let e;if(!o&&m(t))e=t;else{e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(y,(t=>{const e=[],n=E(t=t||[]),s=n.length;for(let o=0;o<s;o++){const s=t===n?o:n[o],a=t[s],c=w(a,s),l=d(a,c);if(e.push(l),i[2]||i[1]){const t=f(r,c);e.push(t)}if(i[4]){const t=g(r,c);e.push(t)}}return e})),getOptions(){const t=[],e={},n=y(r)||[],i=E(n),s=i.length;for(let o=0;o<s;o++){const s=n===i?o:i[o],a=n[s],c=w(a,s),l=u(r,c),h=d(l,c),p=new b(h,l,f(r,c),$(r,c),g(r,c));t.push(p),e[h]=p}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(o.ngOptions,s,i),f=document.createDocumentFragment();function $(t,e){const r=n.cloneNode(!1);e.appendChild(r),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,r)}function g(t){const e=d.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}c.generateUnknownOptionValue=()=>"?",u?(c.writeValue=function(t){if(!d)return;const e=t&&t.map(g)||[];d.items.forEach((t=>{t.element.selected&&!H(e,t)&&(t.element.selected=!1)}))},c.readValue=function(){const t=s.val()||[],e=[];return N(t,(t=>{const n=d.selectValueMap[t];n&&!n.disabled&&e.push(d.getViewValueFromOption(n))})),e},p.trackBy&&i.$watchCollection((()=>{if(Array.isArray(l.$viewValue))return l.$viewValue.map((t=>p.getTrackByValue(t)))}),(()=>{l.$render()}))):(c.writeValue=function(t){if(!d)return;const e=s[0].options[s[0].selectedIndex],n=d.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(c.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(t)},c.readValue=function(){const t=d.selectValueMap[s.val()];return t&&!t.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),d.getViewValueFromOption(t)):null},p.trackBy&&i.$watch((()=>p.getTrackByValue(l.$viewValue)),(()=>{l.$render()}))),h&&(t(c.emptyOption)(i),s.prepend(c.emptyOption),c.emptyOption[0].nodeType===Node.COMMENT_NODE&&(c.hasEmptyOption=!1,c.registerOption=function(t,e){""===e.val()&&(c.hasEmptyOption=!0,c.emptyOption=e,l.$render(),e.on("$destroy",(()=>{const t=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,t&&l.$render()})))})),i.$watchCollection(p.getWatchables,(function(){const t=d&&c.readValue();if(d)for(let t=d.items.length-1;t>=0;t--){const e=d.items[t];y(e.group)?Ft(e.element.parentNode):Ft(e.element)}d=p.getOptions();const e={};if(d.items.forEach((t=>{let n;y(t.group)?(n=e[t.group],n||(n=r.cloneNode(!1),f.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),$(t,n)):$(t,f)})),s[0].appendChild(f),l.$render(),!l.$isEmpty(t)){const e=c.readValue();(p.trackBy||u?z(t,e):t===e)||(l.$setViewValue(e),l.$render())}}))}}}}],Ti=ht("ngTransclude"),ji=["$compile",function(t){return{restrict:"EA",compile:function(e){const n=t(e[0].childNodes);return e.empty(),function(t,e,r,i,s){if(!s)throw Ti("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Gt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,(t=>{e.append(t)}))}s((function(t,n){t.length&&function(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];if(n.nodeType!==Node.TEXT_NODE||n.nodeValue.trim())return!0}}(t)?e.append(t):(a(),n.$destroy())}),null,o),o&&!s.isSlotFilled(o)&&a()}}}}];function Ni(){return{restrict:"A",priority:100,require:"ngModel",link(t,e,n,r){const i=n.ngList||", ",s="false"!==n.ngTrim,o=s?T(i):i;r.$parsers.push((function(t){if(g(t))return;const e=[];return t&&N(t.split(o),(t=>{t&&e.push(s?T(t):t)})),e})),r.$formatters.push((t=>{if(Array.isArray(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}}function Vi(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const Ri=/^\/(.+)\/([a-z]*)$/,Pi={};Object.entries(At).forEach((([t,e])=>{if("multiple"===e)return;function n(e,n,i){e.$watch(i[r],(e=>{i.$set(t,!!e)}))}let r=$t(`ng-${t}`),i=n;"checked"===e&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),Pi[r]=function(){return{restrict:"A",priority:100,link:i}}})),Object.entries(h).forEach((([t])=>{Pi[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Ri);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]))}e.$watch(r[t],(e=>{r.$set(t,e)}))}}}})),["src","srcset","href"].forEach((t=>{const e=$t(`ng-${t}`);Pi[e]=["$sce",function(n){return{priority:99,link(r,i,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(i[0].href)&&(o="xlinkHref",s.$attr[o]="xlink:href"),s.$set(e,n.getTrustedMediaUrl(s[e])),s.$observe(e,(e=>{e?s.$set(o,e):"href"===t&&s.$set(o,null)}))}}}]}));const Di=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=Object.prototype.hasOwnProperty.call(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=function(t,e){return!s||!i.$isEmpty(e)},r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Mi=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&Ri.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,s){if(s){var o=n.pattern;n.ngPattern?o=i(t):r=n.pattern;var a=Ui(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Ui(t,r,e),(n&&n.toString())!==(a&&a.toString())&&s.$validate()})),s.$validators.pattern=function(t,e){return s.$isEmpty(e)||g(a)||a.test(e)}}}}}}],Li=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=qi(s);r.$observe("maxlength",(t=>{s!==t&&(o=qi(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Ii=["$parse",function(t){return{restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.minlength||t(r.ngMinlength)(e),o=qi(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=qi(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Ui(t,e,n){if(t){if(w(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw ht("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,Gt(n));return t}}function qi(t){const e=P(t);return D(e)?-1:e}class Hi{constructor(){this.autoScrollingEnabled=!0}disableAutoScrolling(){this.autoScrollingEnabled=!1}$get=["$location","$rootScope",function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(S(t))t=t();else if(U(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else b(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const r=function(e){let r;(e=w(e)?e:b(e)?e.toString():t.hash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===q(t))return e=t,!0})),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&e.$watch((()=>t.hash()),((t,n)=>{if(t===n&&""===t)return;const i=()=>e.$evalAsync(r);"complete"===document.readyState?window.setTimeout((()=>i())):window.addEventListener("load",(()=>i()))})),r}]}function Fi(t){return t.replace(/#$/,"")}class Bi{constructor(t){this.taskTracker=t,this.pendingDeferIds={},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.baseElement=_t(Array.from(document.getElementsByTagName("base"))),this.$$completeOutstandingRequest=this.taskTracker.completeTask.bind(t),this.$$incOutstandingRequestCount=this.taskTracker.incTaskCount.bind(t),this.notifyWhenNoOutstandingRequests=this.taskTracker.notifyWhenNoPendingTasks.bind(t),this.cacheState()}url(t,e){return void 0===e&&(e=null),t?(t=Ge(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e||(this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()),this):Fi(window.location.href)}state(){return this.cachedState}cacheStateAndFireUrlChange(){this.fireStateOrUrlChange()}cacheState(){this.cachedState=history.state,this.cachedState=void 0===this.cachedState?null:this.cachedState,z(this.cachedState,this.lastCachedState)&&(this.cachedState=this.lastCachedState),this.lastCachedState=this.cachedState,this.lastHistoryState=this.cachedState}fireStateOrUrlChange(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.url()&&t===this.cachedState||(this.lastBrowserUrl=this.url(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach((t=>{t(Fi(window.location.href),this.cachedState)})))}onUrlChange(t){return this.urlChangeInit||(window.addEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.addEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t),t}$$applicationDestroyed(){window.removeEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.removeEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this))}$$checkUrlChange(){this.fireStateOrUrlChange()}baseHref(){const t=this.baseElement.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}defer(t,e=0,n=this.taskTracker.DEFAULT_TASK_TYPE){let r;return this.taskTracker.incTaskCount(n),r=window.setTimeout((()=>{delete this.pendingDeferIds[r],this.taskTracker.completeTask(t,n)}),e),this.pendingDeferIds[r]=n,r}cancel(t){if(Object.prototype.hasOwnProperty.call(this.pendingDeferIds,t)){const e=this.pendingDeferIds[t];return delete this.pendingDeferIds[t],window.clearTimeout(t),this.taskTracker.completeTask((()=>{}),e),!0}return!1}}class zi{$get=["$$taskTrackerFactory",t=>new Bi(t)]}function Wi(){this.$get=[function(){var t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var t=!1;return e((function(){t=!0})),function(n){t?n():e(n)}}}]}let Gi,Ki,Yi,Qi;function Zi(){this.$get=["$q","$$animateAsyncRun","$timeout",function(t,e,n){return Gi=t,Ki=e,Yi=n,Ji}]}class Ji{static chain(t,e){let n=0;!function r(){n!==t.length?t[n]((t=>{!1!==t?(n++,r()):e(!1)})):e(!0)}()}static all(t,e){let n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}t.forEach((t=>{t.done(i)}))}constructor(t){this.setHost(t);const e=Ki();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{Yi(t,0,!1)})(t):e(t)},this._state=0}setHost(t){this.host=t||{}}done(t){2===this._state?t():this._doneCallbacks.push(t)}progress(){}getPromise(){if(!this.promise){const t=this;this.promise=Gi(((e,n)=>{t.done((t=>{!1===t?n():e()}))}))}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick((()=>{this._resolve(t)})))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach((e=>{e(t)})),this._doneCallbacks.length=0,this._state=2)}}function Xi(){this.$get=function(){const t={};function e(e,n){if(e in t)throw ht("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);let r=0,i=R({},n,{id:e}),s=Object.create(null);const o=n&&n.capacity||Number.MAX_VALUE;let a=Object.create(null),c=null,l=null;return t[e]={put(t,e){if(!g(e)){if(o<Number.MAX_VALUE){u(a[t]||(a[t]={key:t}))}return t in s||r++,s[t]=e,r>o&&this.remove(l.key),e}},get(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;u(e)}return s[t]},remove(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;e===c&&(c=e.p),e===l&&(l=e.n),h(e.n,e.p),delete a[t]}t in s&&(delete s[t],r--)},removeAll(){s=Object.create(null),r=0,a=Object.create(null),c=l=null},destroy(){s=null,i=null,a=null,delete t[e]},info:()=>R({},i,{size:r})};function u(t){t!==c&&(l?l===t&&(l=t.n):l=t,h(t.n,t.p),h(t,c),c=t,c.n=null)}function h(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){const e={};return N(t,((t,n)=>{e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function ts(){this.$get=["$cacheFactory",t=>t("templates")]}const es=(t,e)=>{Qi.error(t,e)};function ns(){this.$get=["$log",function(t){return Qi=t,es}]}function rs(){return function(t,e,n,r){if(!m(t)){if(null==t)return t;throw ht("filter")("notarray","Expected array but received: {0}",t)}let i;r=r||"$";let s=!1;switch(ss(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":i=function(t,e,n,r){const i=v(t)&&n in t;let s;!0===e?e=z:S(e)||(e=function(t,e){return!g(t)&&(null===t||null===e?t===e:!(v(e)||v(t)&&!I(t))&&(t=$(`${t}`),e=$(`${e}`),-1!==t.indexOf(e)))});return s=function(s){return i&&!v(s)?is(s,t[n],e,n,!1):is(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function is(t,e,n,r,i,s){const o=ss(t),a=ss(e);if("string"===a&&"!"===e.charAt(0))return!is(t,e.substring(1),n,r,i);if(Array.isArray(t))return t.some((t=>is(t,e,n,r,i)));switch(o){case"object":if(i){for(let i in t)if(i.charAt&&"$"!==i.charAt(0)&&is(t[i],e,n,r,!0))return!0;return!s&&is(t,e,n,r,!1)}if("object"===a){for(let i in e){const s=e[i];if(S(s)||g(s))continue;const o=i===r;if(!is(o?t:t[i],s,n,r,o,o))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function ss(t){return null===t?"null":typeof t}function os(){return function(t,e){return g(e)&&(e=2),J(t,e)}}function as(){return function(t,e,n){return D(e=Math.abs(Number(e))===1/0?Number(e):P(e))?t:(b(t)&&(t=t.toString()),m(t)?(n=(n=!n||isNaN(n)?0:P(n))<0?Math.max(0,t.length+n):n,e>=0?cs(t,n,n+e):0===n?cs(t,e,t.length):cs(t,Math.max(0,n+e),n)):t)}}function cs(t,e,n){return w(t)?t.slice(e,n):[].slice.call(t,e,n)}function ls(t){return function(r,i,s,o){if(null==r)return r;if(!m(r))throw ht("orderBy")("notarray","Expected array but received: {0}",r);Array.isArray(i)||(i=[i]),0===i.length&&(i=["+"]);const a=i.map((e=>{let n=1,r=t=>t;if(S(e))r=e;else if(w(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)){let n=t(e);if(n.constant){const t=n();r=e=>e[t]}else r=n}return{get:r,descending:n}}));const c=s?-1:1,l=S(o)?o:n,u=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map((r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(S(t.valueOf)&&e(t=t.valueOf()))return t;if(I(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n)))}}));return u.sort((function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),r=u.map((t=>t.value))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,i=e.type;if(r===i){let i=t.value,s=e.value;"string"===r?(i=i.toLowerCase(),s=s.toLowerCase()):"object"===r&&(v(i)&&(i=t.index),v(s)&&(s=e.index)),i!==s&&(n=i<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function us(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function hs(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function ds(t){const e="Filter";function n(r,i){if(v(r)){const t={};return Object.entries(r).forEach((([e,r])=>{t[e]=n(e,r)})),t}return t.factory(r+e,i)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("filter",rs),n("json",os),n("limitTo",as),n("orderBy",ls),n("isState",us),n("includedByState",hs)}ls.$inject=["$parse"],us.$inject=["$state"],hs.$inject=["$state"],ds.$inject=["$provide"];class ps{constructor(){this.errorOn=!0}$get=["$rootScope","$exceptionHandler",function(t,e){return $s((e=>{t.$evalAsync(e)}),e,this.errorOn)}];errorOnUnhandledRejections(t){return y(t)?(this.errorOn=t,this):this.errorOn}}class fs{constructor(){this.errorOn=!0}$get=["$exceptionHandler",function(t){return $s((t=>{window.setTimeout(t)}),t,this.errorOn)}];errorOnUnhandledRejections(t){return y(t)?(this.errorOn=t,this):this.errorOn}}function $s(t,e,n){const r=ht("$q");let i=0;const s=[];class o{constructor(){this.promise=new a,this.resolve=t=>u(this.promise,t),this.reject=t=>d(this.promise,t)}}class a{constructor(){this.$$state={status:0,pending:void 0,processScheduled:!1,pur:!1}}then(t,e){if(g(t)&&g(e))return this;const n=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push({result:n,onFulfilled:t,onRejected:e}),this.$$state.status>0&&l(this.$$state),n}catch(t){return this.then(null,t)}finally(t){return this.then((e=>$(e,m,t)),(e=>$(e,f,t)))}}function c(){for(;!i&&s.length;){const t=s.shift();if(!ms(t)){t.pur=!0;const n=`Possibly unhandled rejection: ${dt(t.value)}`;C(t.value)?e(t.value,n):e(n)}}}function l(e){!n||e.pending||2!==e.status||ms(e)||(0===i&&0===s.length&&t(c),s.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++i,t((()=>{!function(e){e.processScheduled=!1;try{for(let t=0,n=e.pending.length;t<n;++t){e.pur=!0;const n=e.pending[t].result;let r;r=1===e.status?e.pending[t].onFulfilled:e.pending[t].onRejected;try{S(r)?u(n,r(e.value)):1===e.status?u(n,e.value):d(n,e.value)}catch(t){d(n,t)}}}finally{--i,n&&0===i&&t(c),e.pending=void 0}}(e)})))}function u(t,e){t.$$state.status||(e===t?p(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):h(t,e))}function h(t,e){let n,r=!1;try{(v(e)||S(e))&&(n=e.then),S(n)?(t.$$state.status=-1,n.call(e,(function(e){if(r)return;r=!0,h(t,e)}),i)):(t.$$state.value=e,t.$$state.status=1,l(t.$$state))}catch(t){i(t)}function i(e){r||(r=!0,p(t,e))}}function d(t,e){t.$$state.status||p(t,e)}function p(t,e){t.$$state.value=e,t.$$state.status=2,l(t.$$state)}function f(t){const e=new a;return d(e,t),e}function $(t,e,n){let r=null;try{S(n)&&(r=n())}catch(t){return f(t)}return _(r)?r.then((()=>e(t)),f):e(t)}function m(t,e,n){const r=new a;return u(r,t),r.then(e,n)}function y(t){if(!S(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new a;return t((t=>u(e,t)),(t=>d(e,t))),e}return y.defer=()=>new o,y.reject=f,y.resolve=m,y.all=function(t){const e=new a;let n=0;const r=Array.isArray(t)?[]:{};return Object.entries(t).forEach((([t,i])=>{n++,m(i).then((i=>{r[t]=i,--n||u(e,r)}),(t=>{d(e,t)}))})),0===n&&u(e,r),e},y.race=function(t){const e=new o;return t.forEach((t=>{m(t).then(e.resolve,e.reject)})),e.promise},y}function ms(t){return!!t.pur}function gs(t){t.$$state&&(t.$$state.pur=!0)}const ys=ht("$interval"),vs=new Map;function ws(){this.$get=["$$intervalFactory",function(t){function e(t){window.clearInterval(t),vs.delete(t)}const n=t((function(t,e,n){const r=window.setInterval(t,e);return vs.set(r,n),r}),e);return n.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw ys("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!vs.has(t.$$intervalId))return!1;const n=t.$$intervalId,r=vs.get(n);return gs(r.promise),r.reject("canceled"),e(n),!0},n}]}const bs=1,Es=2;class Cs{constructor(t){this.$filter=t}compile(t){let e,n,r=Ss(t,this.$filter);(e=function(t){if(1===t.body.length&&Os(t.body[0].expression))return{type:kr.AssignmentExpression,left:t.body[0].expression,right:{type:kr.NGValueParameter},operator:"="}}(r))&&(n=this.recurse(e));const i=function(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}(r.body);let s;if(i){s=[];for(const[t,e]of Object.entries(i)){const n=this.recurse(e);n.isPure=e.isPure,e.input=n,s.push(n),e.watchId=t}}const o=[];r.body.forEach((t=>{o.push(this.recurse(t.expression))}));const a=0===r.body.length?()=>{}:1===r.body.length?o[0]:function(t,e){let n;return o.forEach((r=>{n=r(t,e)})),n};return n&&(a.assign=(t,e,r)=>n(t,r,e)),s&&(a.inputs=s),a}recurse(t,e,n){let r,i;const s=this;let o;switch(t.type){case kr.Literal:return this.value(t.value,e);case kr.UnaryExpression:return i=this.recurse(t.argument),this[`unary${t.operator}`](i,e);case kr.BinaryExpression:case kr.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this[`binary${t.operator}`](r,i,e);case kr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case kr.Identifier:return s.identifier(t.name,e,n);case kr.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case kr.CallExpression:return o=[],t.arguments.forEach((t=>{o.push(s.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r){const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r));const a=i.apply(void 0,s);return e?{context:void 0,name:void 0,value:a}:a}:function(t,n,r){const s=i(t,n,r);let a;if(null!=s.value){const e=[];for(let i=0;i<o.length;++i)e.push(o[i](t,n,r));a=s.value.apply(s.context,e)}return e?{value:a}:a};case kr.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,s){const o=r(t,n,s),a=i(t,n,s);return o.context[o.name]=a,e?{value:a}:a};case kr.ArrayExpression:return o=[],t.elements.forEach((t=>{o.push(s.recurse(t))})),function(t,n,r){const i=[];for(let e=0;e<o.length;++e)i.push(o[e](t,n,r));return e?{value:i}:i};case kr.ObjectExpression:return o=[],t.properties.forEach((t=>{t.computed?o.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):o.push({key:t.key.type===kr.Identifier?t.key.name:`${t.key.value}`,computed:!1,value:s.recurse(t.value)})})),function(t,n,r){const i={};for(let e=0;e<o.length;++e)o[e].computed?i[o[e].key(t,n,r)]=o[e].value(t,n,r):i[o[e].key]=o[e].value(t,n,r);return e?{value:i}:i};case kr.ThisExpression:return function(t){return e?{value:t}:t};case kr.LocalsExpression:return function(t,n){return e?{value:n}:n};case kr.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}}"unary+"(t,e){return function(n,r,i){let s=t(n,r,i);return s=y(s)?+s:0,e?{value:s}:s}}"unary-"(t,e){return function(n,r,i){let s=t(n,r,i);return s=y(s)?-s:-0,e?{value:s}:s}}"unary!"(t,e){return function(n,r,i){const s=!t(n,r,i);return e?{value:s}:s}}"binary+"(t,e,n){return function(r,i,s){const o=t(r,i,s),a=e(r,i,s),c=(u=a,void 0===(l=o)?u:void 0===u?l:l+u);var l,u;return n?{value:c}:c}}"binary-"(t,e,n){return function(r,i,s){const o=t(r,i,s),a=e(r,i,s),c=(y(o)?o:0)-(y(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return function(r,i,s){const o=t(r,i,s)*e(r,i,s);return n?{value:o}:o}}"binary/"(t,e,n){return function(r,i,s){const o=t(r,i,s)/e(r,i,s);return n?{value:o}:o}}"binary%"(t,e,n){return function(r,i,s){const o=t(r,i,s)%e(r,i,s);return n?{value:o}:o}}"binary==="(t,e,n){return function(r,i,s){const o=t(r,i,s)===e(r,i,s);return n?{value:o}:o}}"binary!=="(t,e,n){return function(r,i,s){const o=t(r,i,s)!==e(r,i,s);return n?{value:o}:o}}"binary=="(t,e,n){return function(r,i,s){const o=t(r,i,s)==e(r,i,s);return n?{value:o}:o}}"binary!="(t,e,n){return function(r,i,s){const o=t(r,i,s)!=e(r,i,s);return n?{value:o}:o}}"binary<"(t,e,n){return function(r,i,s){const o=t(r,i,s)<e(r,i,s);return n?{value:o}:o}}"binary>"(t,e,n){return function(r,i,s){const o=t(r,i,s)>e(r,i,s);return n?{value:o}:o}}"binary<="(t,e,n){return function(r,i,s){const o=t(r,i,s)<=e(r,i,s);return n?{value:o}:o}}"binary>="(t,e,n){return function(r,i,s){const o=t(r,i,s)>=e(r,i,s);return n?{value:o}:o}}"binary&&"(t,e,n){return function(r,i,s){const o=t(r,i,s)&&e(r,i,s);return n?{value:o}:o}}"binary||"(t,e,n){return function(r,i,s){const o=t(r,i,s)||e(r,i,s);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return function(i,s,o){const a=t(i,s,o)?e(i,s,o):n(i,s,o);return r?{value:a}:a}}value(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}}identifier(t,e,n){return function(r,i){const s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});const o=s?s[t]:void 0;return e?{context:s,name:t,value:o}:o}}computedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);let c,l;return null!=a&&(c=e(i,s,o),c=`${c}`,r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function Ss(t,e,n){let r,i,s,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case kr.MemberExpression:if(t.computed)return!1;break;case kr.UnaryExpression:return bs;case kr.BinaryExpression:return"+"!==t.operator&&bs;case kr.CallExpression:return!1}return void 0===e?Es:e}(t,n);switch(t.type){case kr.Program:return r=!0,f.body.forEach((t=>{let n=Ss(t.expression,e,$);r=r&&n.constant})),f.constant=r,f;case kr.Literal:return f.constant=!0,f.toWatch=[],f;case kr.UnaryExpression:var m=Ss(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case kr.BinaryExpression:return o=Ss(f.left,e,$),a=Ss(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case kr.LogicalExpression:return o=Ss(f.left,e,$),a=Ss(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case kr.ConditionalExpression:return c=Ss(t.test,e,$),l=Ss(t.alternate,e,$),u=Ss(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case kr.Identifier:return f.constant=!1,f.toWatch=[t],f;case kr.MemberExpression:return h=Ss(t.object,e,$),t.computed&&(d=Ss(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.constant),f.toWatch=f.constant?[]:[t],f;case kr.CallExpression:return s=!!t.filter&&function(t,e){const n=t(e);return!n.$stateful}(e,t.callee.name),r=s,i=[],t.arguments.forEach((t=>{m=Ss(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=s?i:[f],f;case kr.AssignmentExpression:return o=Ss(t.left,e,$),a=Ss(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case kr.ArrayExpression:return r=!0,i=[],t.elements.forEach((t=>{m=Ss(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=i,f;case kr.ObjectExpression:return r=!0,i=[],t.properties.forEach((t=>{m=Ss(t.value,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch),t.computed&&(p=Ss(t.key,e,!1),r=r&&p.constant,i.push.apply(i,p.toWatch))})),f.constant=r,f.toWatch=i,f;case kr.ThisExpression:case kr.LocalsExpression:return f.constant=!1,f.toWatch=[],f}}function Os(t){return t.type===kr.Identifier||t.type===kr.MemberExpression}const xs=ht("$parse"),As={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ks=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class _s{constructor(t){this.options=t}lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart&&this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{const e=t+this.peek(),n=e+this.peek(2),r=ks.has(t),i=ks.has(e),s=ks.has(n);if(r||i||s){const r=s?n:i?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens}is(t,e){return-1!==e.indexOf(t)}peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)}isNumber(t){return t>="0"&&t<="9"&&"string"==typeof t}isWhitespace(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}codePointAt(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888}peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t}isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)}throwError(t,e,n){n=n||this.index;const r=y(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw xs("lexerr",`Lexer Error: ${t} at column${r} in expression [${this.text}].`)}readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=this.text.charAt(this.index).toLowerCase();if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})}readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(this.isIdentifierContinue&&!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})}readString(t){const e=this.index;let n="",r=!1;for(this.index++;this.index<this.text.length;){const i=this.text[this.index];if(r)n+="u"===i?this.handleUnicodeEscape():As[i]||i,r=!1;else if("\\"===i)r=!0;else{if(i===t)return this.tokens.push({index:e,text:this.text.slice(e,this.index+1),constant:!0,value:n}),void this.index++;n+=i}this.index++}this.throwError("Unterminated quote",e)}handleUnicodeEscape(){const t=this.text.substring(this.index+1,this.index+5);return t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,String.fromCharCode(parseInt(t,16))}}const Ts=ht("$parse"),js=new Map(Object.entries({true:!0,false:!1,null:null,undefined:void 0}));class Ns{constructor(t){this.lexer=t,this.selfReferential={this:{type:kr.ThisExpression},$locals:{type:kr.LocalsExpression}}}ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e}program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:kr.Program,body:t}}expressionStatement(){return{type:kr.ExpressionStatement,expression:this.filterChain()}}filterChain(){let t=this.assignment();for(;this.expect("|");)t=this.filter(t);return t}assignment(){let t=this.ternary();if(this.expect("=")){if(!Os(t))throw Ts("lval","Trying to assign a value to a non l-value");t={type:kr.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t}ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.assignment(),this.consume(":"))?(n=this.assignment(),{type:kr.ConditionalExpression,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:kr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:kr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:kr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:kr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:kr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:kr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:kr.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()}primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():Object.prototype.hasOwnProperty.call(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):js.has(this.peek().text)?t={type:kr.Literal,value:js.get(this.consume().text)}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:kr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:kr.MemberExpression,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:kr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:kr.CallExpression,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.assignment());return n}parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t}identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:kr.Identifier,name:t.text}}constant(){return{type:kr.Literal,value:this.consume().value}}arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.assignment())}while(this.expect(","));return this.consume("]"),{type:kr.ArrayExpression,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:kr.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.assignment()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.assignment()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.assignment(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.assignment()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:kr.ObjectExpression,properties:t}}throwError(t,e){throw Ts("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))}consume(t){if(0===this.tokens.length)throw Ts("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);if(e)return e;this.throwError(`is unexpected, expecting [${t}]`,this.peek())}peekToken(){if(0===this.tokens.length)throw Ts("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]}peek(...t){return this.peekAhead(0,...t)}peekAhead(t,...e){if(this.tokens.length>t){const n=this.tokens[t],r=n.text;if(e.includes(r)||!e[0]&&!e[1]&&!e[2]&&!e[3])return n}return!1}expect(...t){const e=this.peek(...t);return!!e&&(this.tokens.shift(),e)}}class Vs{constructor(t,e){this.ast=new Ns(t),this.astCompiler=new Cs(e)}parse(t){const{ast:e,oneTime:n}=this.getAst(t),r=this.astCompiler.compile(e);return r.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===kr.Literal||t.body[0].expression.type===kr.ArrayExpression||t.body[0].expression.type===kr.ObjectExpression)}(e),r.constant=function(t){return t.constant}(e),r.oneTime=n,r}getAst(t){let e=!1;return(t=t.trim()).startsWith("::")&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}}function Rs(){const t=Object.create(null);var e,n;this.setIdentifierFns=function(t,r){return e=t,n=r,this},this.$get=["$filter",function(r){var i={isIdentifierStart:S(e)&&e,isIdentifierContinue:S(n)&&n};return function(e,n){var o,a;switch(typeof e){case"string":if(e=e.trim(),!(o=t[a=e])){var c=new _s(i);o=new Vs(c,r).parse(e),t[a]=Ds(o)}return s(o,n);case"function":return s(e,n);default:return s((()=>{}),n)}};function s(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,s,o){var a=n&&o?o[0]:t(r,i,s,o);return e(a)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return t.isPure===Es?function(e){return t(e)}:t})))),Ds(r)}}]}function Ps(t,e,n,r){const i=t.$watch((()=>(i(),r(t))),e,n);return i}function Ds(t){return t.constant?t.$$watchDelegate=Ps:t.oneTime?t.$$watchDelegate=Ls:t.inputs&&(t.$$watchDelegate=Ms),t}function Ms(t,e,n,r){let i,s=r.inputs;if(1===s.length){let o=Is,a=s[0];return t.$watch((t=>{const e=a(t);return Is(e,o,a.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&qs(e)),i}),e,n)}{const o=[],a=[];for(let t=0,e=s.length;t<e;t++)o[t]=Is,a[t]=null;return t.$watch((t=>{let e=!1;for(let n=0,r=s.length;n<r;n++){const r=s[n](t);(e||(e=!Is(r,o[n],s[n].isPure)))&&(a[n]=r,o[n]=r&&qs(r))}return e&&(i=r(t,void 0,void 0,a)),i}),e,n)}}function Ls(t,e,n,r){const i=r.literal?Us:y;let s,o;const a=r.$$intercepted||r,c=r.$$interceptor||(t=>t),l=r.inputs&&!a.inputs;function u(){i(o)&&s()}function h(t,e,n,r){return o=l&&r?r[0]:a(t,e,n,r),i(o)&&t.$$postDigest(u),c(o)}return h.literal=r.literal,h.constant=r.constant,h.inputs=r.inputs,h.oneTime=void 0,Ds(h),s=t.$watch(h,e,n),s}function Is(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=qs(t))&&!n)&&(t===e||t!=t&&e!=e)}function Us(t){let e=!0;return N(t,(t=>{y(t)||(e=!1)})),e}function qs(t){return S(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Hs=ht("$interpolate");function Fs(t,e){throw Hs("interr","Can't interpolate: {0}\n{1}",t,e.toString())}function Bs(){let t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){const s=t.length,o=e.length,a=new RegExp(t.replace(/./g,l),"g"),c=new RegExp(e.replace(/./g,l),"g");function l(t){return`\\\\\\${t}`}function u(n){return n.replace(a,t).replace(c,e)}function h(r,a,c,l){const h=c===i.URL||c===i.MEDIA_URL;if(!r.length||-1===r.indexOf(t)){if(a)return;let t=u(r);h&&(t=i.getTrusted(c,t));const e=L(t);return e.exp=r,e.expressions=[],e.$$watchDelegate=Ps,e}let d,p;l=!!l;let f=0;const $=[];let m;const v=r.length;let w;const b=[],E=[];let C;for(;f<v;){if(-1===(d=r.indexOf(t,f))||-1===(p=r.indexOf(e,d+s))){f!==v&&b.push(u(r.substring(f)));break}f!==d&&b.push(u(r.substring(f,d))),w=r.substring(d+s,p),$.push(w),f=p+o,E.push(b.length),b.push("")}C=1===b.length&&1===E.length;const S=h&&C?void 0:function(t){try{return t=c&&!h?i.getTrusted(c,t):i.valueOf(t),l&&!y(t)?t:G(t)}catch(t){Fs(r,t)}};if(m=$.map((t=>n(t,S))),!a||$.length){const t=function(t){for(let e=0,n=$.length;e<n;e++){if(l&&g(t[e]))return;b[E[e]]=t[e]}return h?i.getTrusted(c,C?b[0]:b.join("")):(c&&b.length>1&&function(t){throw Hs("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(r),b.join(""))};return R((e=>{let n=0;const i=$.length,s=new Array(i);try{for(;n<i;n++)s[n]=m[n](e);return t(s)}catch(t){Fs(r,t)}}),{exp:r,expressions:$,$$watchDelegate(e,n){let r;return e.$watchGroup(m,(function(i,s){const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return h.startSymbol=function(){return t},h.endSymbol=function(){return e},h}]}function zs(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,s){return function(o,a,c,l){const u=arguments.length>4,h=u?Y(arguments,4):[];let d=0;const p=y(l)&&!l,f=(p?n:e).defer(),{promise:$}=f;function m(){u?o.apply(null,h):o(d)}return c=y(c)?c:0,$.$$intervalId=i((function(){p?t.defer(m):r.$evalAsync(m),d++,c>0&&d>=c&&(f.resolve(d),s($.$$intervalId)),p||r.$apply()}),a,f,p),$}}}]}let Ws={},Gs="";function Ks(t){try{return decodeURIComponent(t)}catch(e){return t}}const Ys="application/json",Qs={"Content-Type":`${Ys};charset=utf-8`},Zs=/^\[|^\{(?!\{)/,Js={"[":/]$/,"{":/}$/},Xs=/^\)]\}',?\n/,to=ht("$http");function eo(t){return v(t)?E(t)?t.toISOString():J(t):t}function no(){this.$get=function(){return function(t){if(!t)return"";const e=[];return V(t,((t,n)=>{null===t||g(t)||S(t)||(Array.isArray(t)?t.forEach((t=>{e.push(`${rt(n)}=${rt(eo(t))}`)})):e.push(`${rt(n)}=${rt(eo(t))}`))})),e.join("&")}}}function ro(){this.$get=function(){return function(t){if(!t)return"";const e=[];return function t(n,r,i){Array.isArray(n)?N(n,((e,n)=>{t(e,`${r}[${v(e)?n:""}]`)})):v(n)&&!E(n)?V(n,((e,n)=>{t(e,r+(i?"":"[")+n+(i?"":"]"))})):(S(n)&&(n=n()),e.push(`${rt(r)}=${null==n?"":rt(eo(n))}`))}(t,"",!0),e.join("&")}}}function io(t,e){if(w(t)){const r=t.replace(Xs,"").trim();if(r){const i=e("Content-Type"),s=i&&0===i.indexOf(Ys);if(s||function(t){const e=t.match(Zs);return e&&Js[e[0]].test(t)}(r))try{t=w(n=r)?JSON.parse(n):n}catch(e){if(!s)return t;throw to("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function so(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return w(t)?t.split("\n").forEach((t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),T(t.substring(n+1)))})):v(t)&&N(t,((t,e)=>{r($(e),T(t))})),e}function oo(t){let e;return function(n){if(e||(e=so(t)),n){let t=e[$(n)];return void 0===t&&(t=null),t}return e}}function ao(t,e,n,r){return S(r)?r(t,e,n):(Array.isArray(r)&&r.forEach((r=>{t=r(t,e,n)})),t)}function co(t){return t>=200&&t<300}function lo(){const t=this.defaults={transformResponse:[io],transformRequest:[function(t){return!v(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:J(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:st(Qs),put:st(Qs),patch:st(Qs)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return y(t)?(e=!!t,this):e};const n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l,u){const h=o("$http");t.paramSerializer=w(t.paramSerializer)?l.get(t.paramSerializer):t.paramSerializer;const d=[];n.forEach((t=>{d.unshift(w(t)?l.get(t):l.invoke(t))}));const p=function(t){const e=[ze].concat(t.map(Ge));return function(t){const n=Ge(t);return e.some(Ye.bind(null,n))}}(r);function f(n){if(!v(n))throw ht("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(u.valueOf(n.url)))throw ht("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);const r=R({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);var o;r.headers=function(e){let n=t.headers,r=R({},e.headers);return n=R({},n.common,n[$(e.method)]),Object.keys(n).forEach((t=>{r[$(t)]||(r[t]=n[t])})),function(t,e){let n;const r={};return N(t,((t,i)=>{S(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t})),r}(r,st(e))}(n),r.method=w(o=r.method)?o.toUpperCase():o,r.paramSerializer=w(r.paramSerializer)?l.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const m=[],b=[];let E=c.resolve(r);return N(d,(t=>{(t.request||t.requestError)&&m.unshift(t.request,t.requestError),(t.response||t.responseError)&&b.push(t.response,t.responseError)})),E=C(E,m),E=E.then((function(n){const{headers:r}=n,i=ao(n.data,oo(r),void 0,n.transformRequest);g(i)&&N(r,((t,e)=>{"content-type"===$(e)&&delete r[e]}));g(n.withCredentials)&&!g(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=c.defer(),{promise:o}=i;let l,d;const $=n.headers;let{url:m}=n;w(m)||(m=u.valueOf(m));m=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(m,n.paramSerializer(n.params)),f.pendingRequests.push(n),o.then(O,O),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(l=v(n.cache)?n.cache:v(t.cache)?t.cache:h);l&&(d=l.get(m),y(d)?_(d)?d.then(S,S):Array.isArray(d)?C(d[1],d[0],st(d[2]),d[3],d[4]):C(d,200,{},"OK","complete"):l.put(m,o));if(g(d)){const e=p(n.url)?function(){let t,e,n,r,i;const s=window.document.cookie;if(s!==Gs)for(Gs=s,t=Gs.split("; "),Ws={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(i=Ks(e.substring(0,r)),g(Ws[i])&&(Ws[i]=Ks(e.substring(r+1))));return Ws}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&($[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,m,r,E,$,n.timeout,n.withCredentials,n.responseType,b(n.eventHandlers),b(n.uploadEventHandlers))}return o;function b(t){if(t){const n={};return N(t,((t,r)=>{n[r]=function(n){function r(){t(n)}e?a.$applyAsync(r):a.$$phase!==ke.NONE?r():a.$apply(r)}})),n}}function E(t,n,r,i,s){function o(){C(n,t,r,i,s)}l&&(co(t)?l.put(m,[t,n,so(r),i,s]):l.remove(m)),e?a.$applyAsync(o):(o(),a.$$phase||a.$apply())}function C(t,e,r,s,o){(co(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:oo(r),config:n,statusText:s,xhrStatus:o})}function S(t){C(t.data,t.status,st(t.headers()),t.statusText,t.xhrStatus)}function O(){const t=f.pendingRequests.indexOf(n);-1!==t&&f.pendingRequests.splice(t,1)}}(n,i).then(O,O)})),E=C(E,b),E=E.finally((function(){i.$$completeOutstandingRequest((()=>{}),"$http")})),E;function C(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],i=e[n++];t=t.then(r,i)}return e.length=0,t}function O(t){const e=R({},t);return e.data=ao(t.data,t.headers,t.status,r.transformResponse),co(t.status)?e:c.reject(e)}}return f.pendingRequests=[],function(...t){t.forEach((t=>{f[t]=function(e,n){return f(R({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{f[t]=function(e,n,r){return f(R({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),f.defaults=t,f}]}function uo(){this.$get=["$browser",function(t){return function(t){return function(e,n,r,i,s,o,a,c,l,u){n=n||t.url();const h=new XMLHttpRequest;let d=!1;if(h.open(e,n,!0),N(s,((t,e)=>{y(t)&&h.setRequestHeader(e,t)})),h.onload=function(){const t=h.statusText||"";let e=h.status;0===e&&(e=h.response?200:"file"===Ge(n).protocol?404:0),$(i,e,h.response,h.getAllResponseHeaders(),t,"complete")},h.onerror=function(){$(i,-1,null,null,"","error")},h.ontimeout=function(){$(i,-1,null,null,"","timeout")},h.onabort=function(){$(i,-1,null,null,"",d?"timeout":"abort")},N(l,((t,e)=>{h.addEventListener(e,t)})),N(u,((t,e)=>{h.upload.addEventListener(e,t)})),a&&(h.withCredentials=!0),c)try{h.responseType=c}catch(t){if("json"!==c)throw t}if(h.send(g(r)?null:r),o>0)var p=t.defer((()=>{f("timeout")}),o);else _(o)&&o.then((()=>{f(y(o.$$timeoutId)?"timeout":"abort")}));function f(t){d="timeout"===t,h&&h.abort()}function $(e,n,r,i,s,o){y(p)&&t.cancel(p),e(n,r,i,s,o)}}}(t)}]}const ho={http:80,https:443,ftp:21},po=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,fo=ht("$location");class $o{constructor(t,e){this.appBase=t,this.appBaseNoFile=e,this.$$absUrl="",this.$$html5=!1,this.$$replace=!1,this.$$protocol=void 0,this.$$host=void 0,this.$$port=void 0,this.$$path=void 0,this.$$hash=void 0,this.$$urlUpdatedByLocation=!1}absUrl(){return this.$$absUrl}url(t){if(g(t))return this.$$url;const e=po.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this}protocol(){return this.$$protocol}host(){return this.$$host}port(){return this.$$port}path(t){if(g(t))return this.$$path;let e=null!==t?t.toString():"";return this.$$path="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}hash(t){return g(t)?this.$$hash:(this.$$hash=null!==t?t.toString():"",this.$$compose(),this)}replace(){return this.$$replace=!0,this}search(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(w(t)||b(t))t=t.toString(),this.$$search=tt(t);else{if(!v(t))throw fo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=structuredClone(t,{}),Object.entries(t).forEach((([e,n])=>{null==n&&delete t[e]})),this.$$search=t}break;default:g(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this}$$compose(){this.$$url=function(t,e,n){const r=function(t){const e=[];return N(t,((t,n)=>{Array.isArray(t)?N(t,(t=>{e.push(rt(n,!0)+(!0===t?"":`=${rt(t,!0)}`))})):e.push(rt(n,!0)+(!0===t?"":`=${rt(t,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${nt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=nt(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(r?`?${r}`:"")+i}(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0}$$normalizeUrl(t){throw new Error(`Method not implemented ${t}`)}state(t){if(!arguments.length)return this.$$state;if(!(this instanceof mo&&this.$$html5))throw fo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(t)?null:t,this.$$urlUpdatedByLocation=!0,this}$$parseLinkUrl(t,e){throw new Error(`Method not implemented ${t} ${e}`)}$$parse(t){throw new Error(`Method not implemented ${t}`)}}class mo extends $o{constructor(t,e,n){super(t,e),this.$$html5=!0,this.basePrefix=n||"",vo(t,this)}$$parse(t){const e=Eo(this.appBaseNoFile,t);if(!w(e))throw fo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);wo(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()}$$normalizeUrl(t){return this.appBaseNoFile+t.substr(1)}$$parseLinkUrl(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let n,r,i;return y(n=Eo(this.appBase,t))?(r=n,i=this.basePrefix&&y(n=Eo(this.basePrefix,n))?this.appBaseNoFile+(Eo("/",n)||n):this.appBase+r):y(n=Eo(this.appBaseNoFile,t))?i=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(i=this.appBaseNoFile),i&&this.$$parse(i),!!i}}class go extends $o{constructor(t,e,n){super(t,e),this.appBase=t,this.appBaseNoFile=e,this.hashPrefix=n,vo(t,this)}$$parse(t){const e=Eo(this.appBase,t)||Eo(this.appBaseNoFile,t);let n;g(e)||"#"!==e.charAt(0)?this.$$html5?n=e:(n="",g(e)&&(this.appBase=t,this.replace())):(n=Eo(this.hashPrefix,e),g(n)&&(n=e)),wo(n,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;bo(e,n)&&(e=e.replace(n,""));if(r.exec(e))return t;return i=r.exec(t),i?i[1]:t}(this.$$path,n,this.appBase),this.$$compose()}$$normalizeUrl(t){return this.appBase+(t?this.hashPrefix+t:"")}$$parseLinkUrl(t){return Co(this.appBase)===Co(t)&&(this.$$parse(t),!0)}}function yo(){let t="!";const e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return k(t)?(e.enabled=t,this):v(t)?(k(t.enabled)&&(e.enabled=t.enabled),k(t.requireBase)&&(e.requireBase=t.requireBase),(k(t.rewriteLinks)||w(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$rootElement",function(n,r,i){let s,o;const a=r.baseHref(),c=r.url();let l;if(e.enabled){if(!a&&e.requireBase)throw fo("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(u=c).substring(0,u.indexOf("/",u.indexOf("//")+2))+(a||"/"),o=mo}else l=Co(c),o=go;var u;const h=function(t){return t.substr(0,Co(t).lastIndexOf("/")+1)}(l);s=new o(l,h,`#${t}`),s.$$parseLinkUrl(c,c),s.$$state=r.state();const d=/^\s*(javascript|mailto):/i;function p(t,e){const n=s.url(),i=s.$$state;try{r.url(t,e),s.$$state=r.state()}catch(t){throw s.url(n),s.$$state=i,t}}i.on("click",(t=>{const{rewriteLinks:o}=e;if(!o||t.ctrlKey||t.metaKey||t.shiftKey||2===t.which||2===t.button)return;let a=_t(t.target);for(;"a"!==a[0].nodeName.toLowerCase();)if(a[0]===i[0]||!(a=a.parent())[0])return;if(w(o)&&g(a.attr(o)))return;let c=a[0].href;const l=a.attr("href")||a.attr("xlink:href");v(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=Ge(c.animVal).href),d.test(c)||!c||a.attr("target")||t.isDefaultPrevented()||s.$$parseLinkUrl(c,l)&&(t.preventDefault(),s.absUrl()!==r.url()&&n.$apply())})),s.absUrl()!==c&&r.url(s.absUrl(),!0);let f=!0;return r.onUrlChange(((t,e)=>{bo(t,h)?(n.$evalAsync((()=>{const r=s.absUrl(),i=s.$$state;let o;s.$$parse(t),s.$$state=e,o=n.$broadcast("$locationChangeStart",t,r,e,i).defaultPrevented,s.absUrl()===t&&(o?(s.$$parse(r),s.$$state=i,p(r,i)):(f=!1,$(r,i)))})),n.$$phase===ke.NONE&&n.$digest()):window.location.href=t})),n.$watch((()=>{if(f||s.$$urlUpdatedByLocation){s.$$urlUpdatedByLocation=!1;const i=r.url(),o=s.absUrl(),a=r.state(),c=!((t=i)===(e=o)||Ge(t).href===Ge(e).href)||s.$$html5&&a!==s.$$state;(f||c)&&(f=!1,n.$evalAsync((()=>{const t=s.absUrl(),{defaultPrevented:e}=n.$broadcast("$locationChangeStart",t,i,s.$$state,a);s.absUrl()===t&&(e?(s.$$parse(i),s.$$state=a):(c&&p(t,a===s.$$state?null:s.$$state),$(i,a)))})))}var t,e;s.$$replace=!1})),s;function $(t,e){n.$broadcast("$locationChangeSuccess",s.absUrl(),t,s.$$state,e)}}]}function vo(t,e){const n=Ge(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=P(n.port)||ho[n.protocol]||null}function wo(t,e,n){if(/^\s*[\\/]{2,}/.test(t))throw fo("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Ge(t),s=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,n),e.$$search=tt(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function bo(t,e){return t.slice(0,e.length)===e}function Eo(t,e){if(bo(e,t))return e.substr(t.length)}function Co(t){const e=t.indexOf("#");return-1===e?t:t.substr(0,e)}let So={debug:void 0,error:void 0,info:void 0,log:void 0,warn:void 0};class Oo{constructor(){this.debug=!0}debugEnabled(t){return void 0!==t?(this.debug=t,this):this.debug}formatError(t){return C(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map((t=>this.formatError(t)));return n.apply(e,r)}}$get(){return So={log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()},So}}class xo{$get=["$log",t=>new Ao(t)]}class Ao{constructor(t){this.log=t,this.taskCounts={},this.taskCallbacks=[],this.ALL_TASKS_TYPE="$$all$$",this.DEFAULT_TASK_TYPE="$$default$$"}completeTask(t,e=this.DEFAULT_TASK_TYPE){try{t()}finally{this.taskCounts[e]&&(this.taskCounts[e]--,this.taskCounts[this.ALL_TASKS_TYPE]--);const t=this.taskCounts[e],n=this.taskCounts[this.ALL_TASKS_TYPE];if(!n||!t){const t=n?()=>this.getLastCallbackForType(e):this.getLastCallback.bind(this);let r;for(;r=t();)try{r()}catch(t){this.log.error(t)}}}}incTaskCount(t=this.DEFAULT_TASK_TYPE){this.taskCounts[t]=(this.taskCounts[t]||0)+1,this.taskCounts[this.ALL_TASKS_TYPE]=(this.taskCounts[this.ALL_TASKS_TYPE]||0)+1}notifyWhenNoPendingTasks(t,e=this.ALL_TASKS_TYPE){this.taskCounts[e]?this.taskCallbacks.push({type:e,cb:t}):t()}getLastCallback(){const t=this.taskCallbacks.pop();return t?t.cb:void 0}getLastCallbackForType(t){for(let e=this.taskCallbacks.length-1;e>=0;--e){const n=this.taskCallbacks[e];if(n.type===t)return this.taskCallbacks.splice(e,1),n.cb}}}var ko=ht("$templateRequest");function _o(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,s){function o(a,c){o.totalPendingRequests++,w(a)&&!g(n.get(a))||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Array.isArray(l)?l=l.filter((function(t){return t!==io})):l===io&&(l=null),r.get(a,R({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.put(a,t.data)}),(function(t){c||(t=ko("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText),e(t));return i.reject(t)}))}return o.totalPendingRequests=0,o}]}const To=ht("$timeout");function jo(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){const s={};function o(o,a,c=!0){const l=Y(arguments,3),u=y(c)&&!c,h=(u?r:n).defer(),{promise:d}=h;let p;return p=e.defer((()=>{try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete s[d.$$timeoutId]}u||t.$apply()}),a,"$timeout"),d.$$timeoutId=p,s[p]=h,d}return o.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw To("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(s,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=s[n];return gs(r.promise),r.reject("canceled"),delete s[n],e.cancel(n)},o}]}function No(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Ge(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}const Vo="ng-active",Ro="ng-inactive";class Po{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watchCollection(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const e=Mo(this.$scope,this.$attrs.ngMessagesMultiple)||Mo(this.$scope,this.$attrs.multiple),n=[],r={};let i=0,s=this.head,o=!1,a=0;for(;null!=s;){a++;const c=s.message;let l=!1;o||Object.entries(t).forEach((([t,e])=>{if(Lo(e)&&!l&&(i++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}})),l?o=!e:n.push(c),s=s.next}n.forEach((t=>{t.detach()}));const c=n.length!==a,l=this.default&&!c&&i>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,Vo,Ro):this.$animate.setClass(this.$element,Ro,Vo)}reRender(){this.renderLater||(this.renderLater=!0,this.$scope.$evalAsync((()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)})))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element[0],t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element[0],t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const i=this.findPreviousMessage(t,e);i?i.next=r.next:this.head=r.next}}function Do(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new Po(e,n,r,t)}}function Mo(t,e){return w(e)&&0===e.length||Lo(t.$eval(e))}function Lo(t){return w(t)?t.length:!!t}function Io(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{n.$$destroyed||w(t)&&!t.trim()||e(t)(n,(t=>{r.after(t)}))}))}}}Do.$inject=["$animate"],Io.$inject=["$templateRequest","$compile"];const Uo=Fo(!1),qo=Fo(!1),Ho=Fo(!0);function Fo(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,d;if(!t){a=r[0],l=i.ngMessage||i.when,u=i.ngMessageExp||i.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,s.reRender()};u?(t(n.$eval(u)),n.$watchCollection(u,t)):t(l)}s.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:Object.prototype.hasOwnProperty.call(t,e)}(c,t),attach(){h||o(((n,i)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=s.getAttachId();h.on("$destroy",(()=>{h&&h.$$attachId===o&&(s.deregister(a,t),d.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}return e.$inject=["$animate"],e}const Bo="ngAriaDisable",zo=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Wo=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Go(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,i){return function(s,o,a){if(Object.prototype.hasOwnProperty.call(a,Bo))return;const c=a.$normalize(n);!t[c]||Wo(o,r)||a[c]||s.$watch(a[e],(t=>{t=i?!t:!!t,o.attr(n,t)}))}}this.config=function(e){t=R(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function Ko(t){return t.$$watchExpr("ngDisabled","aria-disabled",zo,!1)}function Yo(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function Qo(){return{restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,Bo)||e.attr("aria-live")||e.attr("aria-live","assertive")}}}function Zo(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,Bo))return;const i=e(r.ngClick);return function(e,n,r){Wo(n,zo)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.on("keydown",(t=>{const n=t.which||t.keyCode;13!==n&&32!==n||(-1!==zo.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}function Jo(t){return t.$$watchExpr("ngRequired","aria-required",zo,!1)}function Xo(t){return t.$$watchExpr("ngChecked","aria-checked",zo,!1)}function ta(t){return t.$$watchExpr("ngValue","aria-checked",zo,!1)}function ea(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function na(t){return t.$$watchExpr("ngReadonly","aria-readonly",zo,!1)}function ra(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Wo(r,zo))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Wo(e,zo)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,Bo))return;const s=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(i);return{post(r,i,o,a){const c=e("tabindex","tabindex",i,!1);function l(){return a.$modelValue}switch(s){case"radio":case"checkbox":n(s,i)&&i.attr("role",s),e("aria-checked","ariaChecked",i,!1)&&r.$watch(l,"radio"===s?function(){i[0].setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){i.attr("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&i.attr("tabindex",0);break;case"range":if(n(s,i)&&i.attr("role","slider"),t.config("ariaValue")){const t=!i.attr("aria-valuemin")&&(Object.prototype.hasOwnProperty.call(o,"min")||Object.prototype.hasOwnProperty.call(o,"ngMin")),e=!i.attr("aria-valuemax")&&(Object.prototype.hasOwnProperty.call(o,"max")||Object.prototype.hasOwnProperty.call(o,"ngMax")),n=!i.attr("aria-valuenow");t&&o.$observe("min",(t=>{i.attr("aria-valuemin",t)})),e&&o.$observe("max",(t=>{i.attr("aria-valuemax",t)})),n&&r.$watch(l,(t=>{i.attr("aria-valuenow",t)}))}c&&i.attr("tabindex",0)}!Object.prototype.hasOwnProperty.call(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",(()=>{i.attr("aria-required",(!!o.required).toString())})),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch((()=>a.$invalid),(t=>{i.attr("aria-invalid",(!!t).toString())}))}}}}}function ia(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,Bo)||!t.config("tabindex")||n.attr("tabindex")||Wo(n,zo)||n.attr("tabindex",0)}}Ko.$inject=["$aria"],Yo.$inject=["$aria"],Zo.$inject=["$aria","$parse"],Jo.$inject=["$aria"],Xo.$inject=["$aria"],ta.$inject=["$aria"],ea.$inject=["$aria"],na.$inject=["$aria"],ra.$inject=["$aria"],ia.$inject=["$aria"];const sa="$$animateCss",oa=1e3,aa=3,ca=1.5,la={transitionDuration:Yr,transitionDelay:Kr,transitionProperty:Dr+qr,animationDuration:Gr,animationDelay:Wr,animationIterationCount:Lr+"IterationCount"},ua={transitionDuration:Yr,transitionDelay:Kr,animationDuration:Gr,animationDelay:Wr};function ha(t,e){return[e?Wr:Kr,`${t}s`]}function da(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return N(e,((t,e)=>{let i=r[t];if(i){const t=i.charAt(0);("-"===t||"+"===t||t>=0)&&(i=function(t){let e=0;return N(t.split(/\s*,\s*/),(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t})),e}(i)),0===i&&(i=null),n[e]=i}})),n}function pa(t){return 0===t||null!=t}function fa(t,e){let n=Dr,r=`${t}s`;return e?n+=Ur:r+=" linear all",[n,r]}function $a(t,e,n){N(n,(n=>{t[n]=y(t[n])?t[n]:e.style.getPropertyValue(n)}))}function ma(){this.$get=["$$AnimateRunner","$timeout","$$animateCache","$$rAFScheduler","$$animateQueue",function(t,e,n,r,i){const s=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const o=[];function a(t){o.push(t),r.waitUntilQuiet((()=>{n.flush();const t=document.body.offsetWidth+1;for(let e=0;e<o.length;e++)o[e](t);o.length=0}))}function c(t,e,r){const i=function(t,e,r,i){let s=n.get(e);s||(s=da(t,i),"infinite"===s.animationIterationCount&&(s.animationIterationCount=1));const o=r||s.transitionDuration>0||s.animationDuration>0;return n.put(e,s,o),s}(t,e,r,la),s=i.animationDelay,o=i.transitionDelay;return i.maxDelay=s&&o?Math.max(s,o):s||o,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(r,o){let l=o||{};l.$$prepared||(l=ei(structuredClone(l)));const u={},h=oi(r);if(!h||!h.parentNode||!i.enabled())return W();const d=[],p=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let f,$,m,g,y,v,w,b,E,C;const S=[];if(0===l.duration)return W();const O=l.event&&Array.isArray(l.event)?l.event.join(" "):l.event,x=O&&l.structural;let A="",k="";x?A=Jr(O,jr,!0):O&&(A=O),l.addClass&&(k+=Jr(l.addClass,_r)),l.removeClass&&(k.length&&(k+=" "),k+=Jr(l.removeClass,Tr)),l.applyClassesEarly&&k.length&&s(r,l);let _=[A,k].join(" ").trim();const T=p.to&&Object.keys(p.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!T&&!_)return W();let j,V,R=n.cacheKey(h,O,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(R))return _=null,W();if(l.stagger>0){const t=parseFloat(l.stagger);j={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else j=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=Jr(e,"-stagger");t.className+=` ${r}`,s=da(t,i),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),t.classList.remove(r),n.put(o,s,!0)}return s||{}}(h,_,R,ua);if(l.$$skipPreparationClasses||r[0].classList.add(..._.split(" ").filter((t=>""!==t))),l.transitionStyle){const t=[Dr,l.transitionStyle];ci(h,t),d.push(t)}if(l.duration>=0){V=h.style[Dr].length>0;const t=fa(l.duration,V);ci(h,t),d.push(t)}if(l.keyframeStyle){const t=[Lr,l.keyframeStyle];ci(h,t),d.push(t)}const P=j?l.staggerIndex>=0?l.staggerIndex:n.count(R):0,D=0===P;D&&!l.skipBlocking&&ga(h,zr);let M=c(h,R,!x),L=M.maxDelay;v=Math.max(L,0),b=M.maxDuration;const I={};if(I.hasTransitions=M.transitionDuration>0,I.hasAnimations=M.animationDuration>0,I.hasTransitionAll=I.hasTransitions&&"all"===M.transitionProperty,I.applyTransitionDuration=T&&(I.hasTransitions&&!I.hasTransitionAll||I.hasAnimations&&!I.hasTransitions),I.applyAnimationDuration=l.duration&&I.hasAnimations,I.applyTransitionDelay=pa(l.delay)&&(I.applyTransitionDuration||I.hasTransitions),I.applyAnimationDelay=pa(l.delay)&&I.hasAnimations,I.recalculateTimingStyles=k.length>0,(I.applyTransitionDuration||I.applyAnimationDuration)&&(b=l.duration?parseFloat(l.duration):b,I.applyTransitionDuration&&(I.hasTransitions=!0,M.transitionDuration=b,V=h.style[Dr+qr].length>0,d.push(fa(b,V))),I.applyAnimationDuration&&(I.hasAnimations=!0,M.animationDuration=b,d.push([Gr,`${b}s`]))),0===b&&!I.recalculateTimingStyles)return W();var U,q=Jr(_,Nr);null!=l.delay&&("boolean"!=typeof l.delay&&(U=parseFloat(l.delay),v=Math.max(U,0)),I.applyTransitionDelay&&d.push(ha(U)),I.applyAnimationDelay&&d.push(ha(U,!0)));return null==l.duration&&M.transitionDuration>0&&(I.recalculateTimingStyles=I.recalculateTimingStyles||D),w=v*oa,E=b*oa,l.skipBlocking||(I.blockTransition=M.transitionDuration>0,I.blockKeyframeAnimation=M.animationDuration>0&&j.animationDelay>0&&0===j.animationDuration),l.from&&(l.cleanupStyles&&$a(u,h,Object.keys(l.from)),ri(0,l)),I.blockTransition||I.blockKeyframeAnimation?z(b):l.skipBlocking||ga(h,!1),{$$willAnimate:!0,end:H,start(){if(!f)return y={end:H,cancel:F,resume:null,pause:null},g=new t(y),a(K),g}};function H(){B()}function F(){B(!0)}function B(t){if(f||m&&$)return;f=!0,$=!1,_&&!l.$$skipPreparationClasses&&r[0].classList.remove(..._.split(" ")),(q=Jr(_,Nr))&&r[0].classList.remove(...q.split(" ")),ai(h,!1),ga(h,!1),N(d,(t=>{h.style[t[0]]=""})),s(r,l),ni(r,l),Object.keys(u).length&&N(u,((t,e)=>{t?h.style.setProperty(e,t):h.style.removeProperty(e)})),l.onDone&&l.onDone(),S&&S.length&&r.off(S.join(" "),G);const n=r.data(sa);n&&(e.cancel(n[0].timer),r.removeData(sa)),g&&g.complete(!t)}function z(t){I.blockTransition&&ga(h,t),I.blockKeyframeAnimation&&ai(h,!!t)}function W(){return g=new t({end:H,cancel:F}),a((()=>{})),B(),{$$willAnimate:!1,start:()=>g,end:H}}function G(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(aa));Math.max(n-C,0)>=w&&r>=b&&(m=!0,B())}function K(){if(f)return;if(!h.parentNode)return void B();const t=function(t){if(m)$&&t&&($=!1,B());else if($=!t,M.animationDuration){const t=ai(h,$);$?d.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(d,t)}},i=P>0&&(M.transitionDuration&&0===j.transitionDuration||M.animationDuration&&0===j.animationDuration)&&Math.max(j.animationDelay,j.transitionDelay);function o(){if(f)return;if(z(!1),N(d,(t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r[0].classList.add(...q.split(" ").filter((t=>""!==t))),I.recalculateTimingStyles){if(R=n.cacheKey(h,O,l.addClass,l.removeClass),M=c(h,R,!1),L=M.maxDelay,v=Math.max(L,0),b=M.maxDuration,0===b)return void B();I.hasTransitions=M.transitionDuration>0,I.hasAnimations=M.animationDuration>0}if(I.applyAnimationDelay&&(L="boolean"!=typeof l.delay&&pa(l.delay)?parseFloat(l.delay):L,v=Math.max(L,0),M.animationDelay=L,U=ha(L,!0),d.push(U),h.style[U[0]]=U[1]),w=v*oa,E=b*oa,l.easing){let t;const e=l.easing;I.hasTransitions&&(t=Dr+Fr,d.push([t,e]),h.style[t]=e),I.hasAnimations&&(t=Lr+Fr,d.push([t,e]),h.style[t]=e)}M.transitionDuration&&S.push(Mr),M.animationDuration&&S.push(Ir),C=Date.now();const t=w+ca*E,i=C+t,o=r.data(sa)||[];let p=!0;if(o.length){const t=o[0];p=i>t.expectedEndTime,p?e.cancel(t.timer):o.push(B)}if(p){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(B),r.data(sa,o)}S.length&&r.on(S.join(" "),G),l.to&&(l.cleanupStyles&&$a(u,h,Object.keys(l.to)),ii(0,l))}function a(){const t=r.data(sa);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(sa)}}i?e(o,Math.floor(i*P*oa),!1):o(),y.resume=function(){t(!0)},y.pause=function(){t(!1)}}}}]}function ga(t,e){const n=e?`-${e}s`:"";return ci(t,[Kr,n]),[Kr,n]}const ya="data-ng-animate",va="$ngAnimatePin";function wa(t){const e=" ",n=this.rules={skip:[],cancel:[],join:[]};function r(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const r=function(t){if(!t)return null;const n=t.split(e),r=Object.create(null);return n.forEach((t=>{r[t]=!0})),r}(n);return t.split(e).some((t=>r[t]))}}function s(t,e,r){return n[t].some((t=>t(e,r)))}function o(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}n.join.push((t=>!t.structural&&o(t))),n.skip.push((t=>!t.structural&&!o(t))),n.skip.push(((t,e)=>"leave"===e.event&&t.structural)),n.skip.push(((t,e)=>e.structural&&2===e.state&&!t.structural)),n.cancel.push(((t,e)=>e.structural&&t.structural)),n.cancel.push(((t,e)=>2===e.state&&t.structural)),n.cancel.push(((t,e)=>{if(e.structural)return!1;const n=t.addClass,r=t.removeClass,s=e.addClass,o=e.removeClass;return!(g(n)&&g(r)||g(s)&&g(o))&&(i(n,o)||i(r,s))})),this.$get=["$rootScope","$injector","$$animation","$$AnimateRunner","$templateRequest",function(e,n,i,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}const p=e.$watch((()=>0===c.totalPendingRequests),(t=>{t&&(p(),e.$$postDigest((()=>{e.$$postDigest((()=>{null===h&&(h=!0)}))})))})),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),b=function(){return!0},E=$||b,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:b,S=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function O(t,e){return si(t,e,{})}const x=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function A(t,e,n){const r=ti(e);return t.filter((t=>!(t.node===r&&(!n||t.callback===n))))}function k(t,e){"close"!==t||e.parentNode||_.off(e)}let _={on(t,e,n){const r=ti(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),_t(e).on("$destroy",(()=>{l.get(r)||_.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!w(arguments[0])){e=arguments[0];for(const t in f)f[t]=A(f[t],e);return}const r=f[t];r&&(f[t]=1===arguments.length?null:A(r,e,n))},pin(t,e){Zr(U(t),"element","not an element"),Zr(U(e),"parentElement","not an element"),t.data(va,e)},push:(t,c,d,p)=>((d=d||{}).domOperation=p,function(t,c,d){let p=d,$=Xr(t);const m=oi($),b=m&&m.parentNode;p=ei(p);const A=new a,_=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();Array.isArray(p.addClass)&&(p.addClass=p.addClass.join(" "));p.addClass&&!w(p.addClass)&&(p.addClass=null);Array.isArray(p.removeClass)&&(p.removeClass=p.removeClass.join(" "));p.removeClass&&!w(p.removeClass)&&(p.removeClass=null);p.from&&!v(p.from)&&(p.from=null);p.to&&!v(p.to)&&(p.to=null);if(!(h&&m&&E(m,c,d)&&C(m,p)))return q(),A;const V=["enter","move","leave"].indexOf(c)>=0;let R=document.hidden||u.get(m);const P=!R&&l.get(m)||{},D=!!P.state;R||D&&1===P.state||(R=!function(t,e){const r=document.body,i=oi(n.get("$rootElement"));let s,o=t===r||"HTML"===t.nodeName,a=t===i,c=!1,h=u.get(t),d=Ut(t,va);d&&(e=oi(d));for(;e&&(a||(a=e===i),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(g(s)||!0===s){const t=Ut(e,Pr);y(t)&&(s=t)}if(c&&!1===s)break;if(o||(o=e===r),o&&a)break;e=a||(d=Ut(e,va),!d)?e.parentNode:oi(d)}return(!c||s)&&!0!==h&&a&&o}(m,b));if(R)return document.hidden&&U(A,c,"start",r(p)),q(),document.hidden&&U(A,c,"close",r(p)),A;V&&function(t){const e=t.querySelectorAll(`[${ya}]`);N(e,(t=>{const e=parseInt(t.getAttribute(ya),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}}))}(m);const M={structural:V,element:$,event:c,addClass:p.addClass,removeClass:p.removeClass,close:q,options:p,runner:A};if(D){if(s("skip",M,P))return 2===P.state?(q(),A):(si($,P,M),P.runner);if(s("cancel",M,P))if(2===P.state)P.runner.end();else{if(!P.structural)return si($,P,M),P.runner;P.close()}else{if(s("join",M,P)){if(2!==P.state)return function(t,e,n){let r="";e&&(r=Jr(e,jr,!0)),n.addClass&&(r=li(r,Jr(n.addClass,_r))),n.removeClass&&(r=li(r,Jr(n.removeClass,Tr))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}($,V?c:null,p),c=M.event=P.event,p=si($,P,M),P.runner;O($,M)}}}else O($,M);let L=M.structural;L||(L="animate"===M.event&&Object.keys(M.options.to||{}).length>0||o(M));if(!L)return q(),T(m),A;const I=(P.counter||0)+1;return M.counter=I,j(m,1,M),e.$$postDigest((()=>{$=Xr(t);let e=l.get(m);const n=!e;e=e||{};const s=($.parent()||[]).length>0&&("animate"===e.event||e.structural||o(e));if(n||e.counter!==I||!s)return n&&(S($,p),ni($,p)),(n||V&&e.event!==c)&&(p.domOperation(),A.end()),void(s||T(m));c=!e.structural&&o(e,!0)?"setClass":e.event,j(m,2);const a=i($,c,e.options);A.setHost(a),U(A,c,"start",r(p)),a.done((t=>{q(!t);const e=l.get(m);e&&e.counter===I&&T(m),U(A,c,"close",r(p))}))})),A;function U(t,e,n,r){_((()=>{const t=function(t,e,n){const r=[],i=f[n];return i&&i.forEach((i=>{(x.call(i.node,e)||"leave"===n&&x.call(i.node,t))&&r.push(i.callback)})),r}(b,m,e);t.length?(t.forEach((t=>{t($,n,r)})),k(n,m)):k(n,m)})),t.progress(e,n,r)}function q(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.activeClasses=null)}($,p),S($,p),ni($,p),p.domOperation(),A.complete(!t)}}(t,c,d)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(U(t)){const r=oi(t);1===n?e=!u.get(r):(u.has(r)||_t(t).on("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(ya),l.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(ya,e);const r=l.get(t),i=r?R(r,n):n;l.set(t,i)}}]}function ba(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&v(o)&&(a=o,o=null),a=ei(a),o||(o=i.attr("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],i={};for(let s=0;s<n.length;s++){const o=n[s],a=t.$$registeredAnimations[o];a&&!i[o]&&(r.push(e.get(a)),i[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substr(1)}`,t=s),"enter"!==s&&"move"!==s&&(d=y(i,s,a,h,e)),p=y(i,s,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push((e=>{t=d(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),p&&e.push((e=>{t=p(e)})),f.setHost({end(){i()},cancel(){i(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function i(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(i,a)}function m(){c=!0,$(),ni(i,a)}function g(t,e,r,i,s){const o=[];return N(i,(i=>{const a=i[s];a&&o.push((()=>{let i,s,o=!1;const c=function(t){o||(o=!0,(s||(()=>{}))(t),i.complete(!t))};return i=new n({end(){c()},cancel(){c(!0)}}),s=function(t,e,r,i,s){let o;switch(r){case"animate":o=[e,i.from,i.to,s];break;case"setClass":o=[e,l,u,s];break;case"addClass":o=[e,l,s];break;case"removeClass":o=[e,u,s];break;default:o=[e,s]}o.push(i);let a=t.apply(t,o);if(a)if(S(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(S(a))return a;return()=>{}}(a,t,e,r,(t=>{c(!1===t)})),i}))})),o}function y(t,e,r,i,s){let o=g(t,e,r,i,s);if(0===o.length){let e,n;"beforeSetClass"===s?(e=g(t,"removeClass",r,i,"beforeRemoveClass"),n=g(t,"addClass",r,i,"beforeAddClass")):"setClass"===s&&(e=g(t,"removeClass",r,i,"removeClass"),n=g(t,"addClass",r,i,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&N(o,(t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){N(e,(e=>{t?e.cancel():e.end()}))}}}}}]}wa.$inject=["$animateProvider"],ba.$inject=["$animateProvider"];const Ea="$$animationRunner",Ca="$$animatePrepareClasses";function Sa(){const t="ng-animate-ref",e=this.drivers=[];function n(t){return t.data(Ea)}this.$get=["$rootScope","$injector","$$AnimateRunner","$$rAFScheduler","$$animateCache",function(r,i,s,o,a){const c=[],l=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(u,h,d){d=ei(d);const p=["enter","move","leave"].indexOf(h)>=0,f=new s({end(){v()},cancel(){v(!0)}});if(!e.length)return v(),f;let $=ft(u.attr("class"),ft(d.addClass,d.removeClass)),{tempClasses:m}=d;return m&&($+=` ${m}`,d.tempClasses=null),p&&u.data(Ca,`ng-${h}${Vr}`),function(t,e){t.data(Ea,e)}(u,f),c.push({element:u,classes:$,event:h,structural:p,options:d,beforeStart:function(){m=(m?`${m} `:"")+Rr,u.className+=` ${m}`;let t=u.data(Ca);t&&(u[0].classList.remove(t),t=null)},close:v}),u.on("$destroy",y),c.length>1||r.$$postDigest((()=>{const r=[];c.forEach((t=>{n(t.element)?r.push(t):t.close()})),c.length=0;const s=function(e){const n=[],r={};N(e,((e,i)=>{const{element:s}=e,o=oi(s),{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return N(r,(e=>{const n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(l.length){const e=c?"to":"from";l.forEach((n=>{const s=n.getAttribute(t);r[s]=r[s]||{},r[s][e]={animationID:i,element:_t(n)}}))}else n.push(e)}));const i={},s={};return Object.values(r).forEach((t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,s=t.toString();return void(i[s]||(i[s]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!s[l]){const t=s[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:g(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}s[l].anchors.push({out:r.element,in:o.element})})),n}(r),l=[];s.forEach((t=>{const r=t.from?t.from.element:t.element;let s=d.addClass;s=(s?`${s} `:"")+Rr;const o=a.cacheKey(r[0],t.event,s,d.removeClass);l.push({element:r,domNode:oi(r),fn:function(){let r;const s=t.close;if(a.containsCachedAnimationWithoutDuration(o))return void s();t.beforeStart();if(n(t.anchors?t.from.element||t.to.element:t.element)){const n=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],s=i.get(r)(t);if(s)return s}}(t);n&&(r=n.start)}if(r){const e=r();e.done((t=>{s(!t)})),function(t,e){t.from&&t.to?(r(t.from.element),r(t.to.element)):r(t.element);function r(t){const r=n(t);r&&r.setHost(e)}}(t,e)}else s()}})}));const u=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)i(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let i=n.length,s=0,o=[];for(r=0;r<n.length;r++){const t=n[r];i<=0&&(i=s,s=0,e.push(o),o=[]),o.push(t),t.children.forEach((t=>{s++,n.push(t)})),i--}return o.length&&e.push(o),e}(e);function i(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let s,{parentNode:o}=n;for(r.set(n,t);o;){if(s=r.get(o),s){s.processed||(s=i(s));break}o=o.parentNode}return(s||e).children.push(t),t}}(l);for(let t=0;t<u.length;t++){const e=u[t];for(let n=0;n<e.length;n++){const r=e[n],{element:i}=r;if(u[t][n]=r.fn,0===t){i.removeData(Ca);continue}const s=i.data(Ca);s&&i[0].classList.add(s)}}o(u)})),f;function g(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const i=t[r];if("ng-"!==i.substring(0,3))for(let t=0;t<e.length;t++)if(i===e[t]){n.push(i);break}}return n.join(" ")}function y(){const t=n(u);!t||"leave"===h&&d.$$domOperationFired||t.end()}function v(t){u.off("$destroy",y),function(t){t.removeData(Ea)}(u),l(u,d),ni(u,d),d.domOperation(),m&&m.split(" ").forEach((t=>u[0].classList.remove(t))),f.complete(!t)}}}]}function Oa(){let t=[],e=null;function n(){if(!t.length)return;t.shift().forEach((t=>t())),e||window.requestAnimationFrame((()=>{e=null,n()}))}function r(e){t=t.concat(e),n()}t=r.queue=[],r.waitUntilQuiet=t=>{null!==e&&(window.cancelAnimationFrame(e),e=null),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},this.$get=function(){return r}}const xa="$animId";let Aa=0;const ka=new Map;function _a(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[xa]??(i[xa]=++Aa),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=ka.get(t);return!!e&&!e.isValid},flush(){ka.clear()},count:t=>ka.get(t)?.total??0,get:t=>ka.get(t)?.value,put(t,e,n){const r=ka.get(t);r?(r.total++,r.value=e):ka.set(t,{total:1,value:e,isValid:n})}}}function Ta(){this.$get=[_a]}const ja="ng-animate-shim",Na="ng-anchor",Va="ng-anchor-out",Ra="ng-anchor-in";function Pa(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,i=n[0],s=_t((o=i).parentNode&&11===o.parentNode.nodeType||r.contains(i)?i:r);var o;return function(n){return n.from&&n.to?function(n,i,o){const c=a(n),l=a(i),u=[];if(o.forEach((n=>{const i=function(n,i){const o=_t(oi(n).cloneNode(!0)),a=Da(p(o));let c;n[0].classList.add(ja),i[0].classList.add(ja),o[0].classList.add(Na),s.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done((()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done((()=>{n=null,$(),t.complete()})),n;$(),t.complete()})),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=oi(t).getBoundingClientRect();return["width","height","top","left"].forEach((t=>{let i=n[t];switch(t){case"top":i+=r.scrollTop;break;case"left":i+=r.scrollLeft}e[t]=`${Math.floor(i)}px`})),e}function d(){const e=t(o,{addClass:Va,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.attr("class")||""}function f(){const e=Da(p(i)),n=Ma(e,a),r=Ma(a,e),s=t(o,{to:h(i),addClass:`${Ra} ${n}`,removeClass:`${Va} ${r}`,delay:!0});return s.$$willAnimate?s:null}function $(){o.remove(),n[0].classList.remove(ja),i[0].classList.remove(ja)}}(n.out,n.in);i&&u.push(i)})),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),N(u,(e=>{t.push(e.start())}));const n=new e({end:r,cancel:r});return e.all(t,(t=>{n.complete(t)})),n;function r(){t.forEach((t=>{t.end()}))}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=li(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function Da(t){return t.replace(/\bng-\S+\b/g,"")}function Ma(t,e){return w(t)&&(t=t.split(" ")),w(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function La(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start(){const t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));const n=new e({end:s(),cancel:s()});return n;function s(){return function(){N(t,(t=>{t.end()}))}}}}}return n(t)};function n(e){const{element:n}=e,{event:r}=e,{options:i}=e,{classes:s}=e;return t(n,r,s,i)}}]}function Ia(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,i,s){let o,a;e.$watchCollection(r.ngAnimateSwap||r.for,(e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&s(((e,r)=>{o=e,a=r,t.enter(e,null,n)}))}))}}}function Ua(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(Pr,t)}w(i)&&0===i.length?n.data(Pr,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}function qa(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}function Ha(){const t=arguments,e=t.length-1;return function(){let n=e,r=t[e].apply(this,arguments);for(;n--;)r=t[n].call(this,r);return r}}function Fa(){return Ha.apply(null,[].slice.call(arguments).reverse())}Pa.$inject=["$$animationProvider"],La.$inject=["$$animationProvider"],Ia.$inject=["$animate"],Ua.$inject=["$interpolate"];const Ba=t=>e=>e&&e[t],za=qa(((t,e,n)=>n&&n[t]===e)),Wa=t=>Fa.apply(null,t.split(".").map(Ba));const Ga=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),Ka=t=>e=>null!=e&&e.constructor===t||e instanceof t,Ya=t=>()=>t;function Qa(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const Za={$q:void 0,$injector:void 0};function Ja(t,e,n){if(Array.isArray(t))return t.forEach(e,n);Object.keys(t).forEach((n=>e(t[n],n)))}function Xa(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(Ga(Array.isArray)(r))return s=e,(i=t).length===s.length&&vc(i,s).reduce(((t,e)=>t&&Xa(e[0],e[1])),!0);var i,s;if(Ga(E)(r))return t.getTime()===e.getTime();if(Ga(O)(r))return t.toString()===e.toString();if(Ga(S)(r))return!0;if([S,Array.isArray,E,O].some((t=>!!t(r))))return!1;const o={};for(const n in t){if(!Xa(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}function tc(t,e,n,r,i=!1){const s=e=>t()[e].bind(n());return(r=r||Object.keys(t())).reduce(((t,n)=>{var r;return t[n]=i?(r=n,function(){return e[r]=s(r),e[r].apply(null,arguments)}):s(n),t}),e)}function ec(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}const nc=qa((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const rc=qa(((t,e)=>(t.push(e),e)));function ic(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,oc(t||{},Object.keys(n)))}const sc=(t,e)=>Object.assign(t,e);function oc(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function ac(t,e){return Object.keys(t).filter((t=>!e.includes(t))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function cc(t,e){const n=Array.isArray(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return Ja(t,(function(t,n){e(t,n)&&i(t,n)})),r}function lc(t,e){let n;return Ja(t,(function(t,r){n||e(t,r)&&(n=t)})),n}function uc(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Ja(t,((t,r)=>n[r]=e(t,r))),n}const hc=(t,e)=>t&&e,dc=(t,e)=>t||e,pc=(t,e)=>t.concat(e),fc=(t,e)=>Array.isArray(e)?t.concat(e.reduce(fc,[])):$c(t,e);function $c(t,e){return t.push(e),t}const mc=(t,e)=>t.includes(e)?t:$c(t,e),gc=t=>t.reduce(pc,[]),yc=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function vc(...t){if(0===t.length)return[];const e=t.reduce(((t,e)=>Math.min(e.length,t)),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map((t=>t[r])))}return n}function wc(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!w(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function bc(t){return t.length&&t[t.length-1]||void 0}function Ec(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Object.assign(e,t)}const Cc=t=>t.catch((()=>0))&&t,Sc=t=>Cc(Za.$q.reject(t)),Oc=t=>null===t;function xc(t){return null===t&&void 0===t}function Ac(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter((t=>!w(t))).length||n.filter((t=>!S(t))).length)}return S(t)}function kc(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}class _c{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substr(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new Tc(this,t)}}function Tc(t,e){function n(t){return Array.isArray(t)?t:y(t)?[t]:[]}function r(t,r){return function(i){if(Array.isArray(i)&&0===i.length)return i;const s=uc(n(i),t);return!0===r?0===cc(s,(t=>!t)).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(s)}}function i(t){return function(e,r){const i=n(e),s=n(r);if(i.length!==s.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],s[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((e=>{const n=t[e].bind(t),s="equals"===e?i:r;this[e]=s(n)})),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class jc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=oc(jc.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=ec(uc(this.defaultTypes,((t,e)=>new _c(Object.assign({name:e},t)))),{})}type(t,e,n){if(!y(e))return this.types[t];if(Object.prototype.hasOwnProperty.call(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new _c(Object.assign({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],Za.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Ka(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(jc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!xc(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Ka(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce(((n,r)=>n&&t[r]()===e[r]()),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:Ka(Object),equals:Xa,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Xa})})}();class Nc{constructor(){this.paramTypes=new jc,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1;const t=this.type("path");t.encode=t=>null!=t?t.toString().replace(/(~|\/)/g,(t=>({"~":"~~","/":"~2F"}[t]))):t,t.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,(t=>({"~~":"~","~2F":"/"}[t]))):t,this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue()}$get=[function(){return this}];caseInsensitive(t){return this._isCaseInsensitive=y(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(y(t)&&!0!==t&&!1!==t&&!w(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=y(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=y(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return y(e)?this:r}}class Vc{constructor(t={}){Object.assign(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),i={},s=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||s.indexOf(n[t])>=0||(s.push(n[t]),i[n[t]]=this[n[t]])}return Object.assign({},i,t)}}class Rc{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=rc(this._evictListeners)}enqueue(t){const e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return this._evictListeners.forEach((e=>e(t))),t}dequeue(){if(this.size())return this._items.splice(0,1)[0]}clear(){const t=this._items;return this._items=[],t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){if(this.size())return this._items[0]}}class Pc{constructor(){this.params=new Vc,this.lastStartedTransitionId=-1,this.transitionHistory=new Rc([],1),this.successfulTransitions=new Rc([],1)}$get=[()=>this]}function Dc(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function Mc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function Lc(t){const e=Ic(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function Ic(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function Uc(t){const e=[],n=Qa([[g,Ya("undefined")],[Oc,Ya("null")],[kc,Ya("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>v(t)&&!Array.isArray(t)&&t.constructor!==Object&&S(t.toString),t=>t.toString()],[Ac,Lc],[Ya(!0),t=>t]]);function r(t){if(v(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return g(t)?r(t):JSON.stringify(t,((t,e)=>r(e))).replace(/\\"/g,'"')}function qc(t,e){return w(bc(t))&&w(e)?t.slice(0,-1).concat(bc(t)+e):$c(t,e)}function Hc(t){if(!t)return"ui-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ui-view#${t.id} ${t.$type}:${t.fqn} (${t.name}@${e})]`}function Fc(t){return b(t)?Bc[t]:Bc[Bc[t]]}var Bc;!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(Bc||(Bc={}));const zc=Wa("$id"),Wc=Wa("router.$id"),Gc=t=>`Transition #${zc(t)}-${Wc(t)}`;const Kc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(Bc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>Bc[t]))),e.map(Fc).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[Fc(t)]}traceTransitionStart(t){this.enabled(Bc.TRANSITION)&&console.log(`${Gc(t)}: Started -> ${Uc(t)}`)}traceTransitionIgnored(t){this.enabled(Bc.TRANSITION)&&console.log(`${Gc(t)}: Ignored <> ${Uc(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(Bc.HOOK))return;const r=Wa("traceData.hookType")(n)||"internal",i=Wa("traceData.context.state.name")(n)||Wa("traceData.context")(n)||"unknown",s=Lc(t.registeredHook.callback);console.log(`${Gc(e)}: Hook -> ${r} context: ${i}, ${Dc(200,s)}`)}traceHookResult(t,e){this.enabled(Bc.HOOK)&&console.log(`${Gc(e)}: <- Hook returned: ${Dc(200,Uc(t))}`)}traceResolvePath(t,e,n){this.enabled(Bc.RESOLVE)&&console.log(`${Gc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(Bc.RESOLVE)&&console.log(`${Gc(e)}: <- Resolved ${t} to: ${Dc(200,Uc(t.data))}`)}traceError(t,e){this.enabled(Bc.TRANSITION)&&console.log(`${Gc(e)}: <- Rejected ${Uc(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(Bc.TRANSITION)&&console.log(`${Gc(e)}: <- Success ${Uc(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(Bc.UIVIEW)&&console.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${Hc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(Bc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(Bc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${Dc(200,e)}`)}traceViewSync(t){if(!this.enabled(Bc.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map((({ngView:t,viewConfig:r})=>{const i=t&&t.fqn,s=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:i,[n]:s}})).sort(((t,n)=>(t[e]||"").localeCompare(n[e]||"")));console.table(r)}traceViewServiceEvent(t,e){this.enabled(Bc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ui-view: '${e.$ngViewName}@${e.$ngViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(Bc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${Hc(e)}`)}};let Yc="LAZY",Qc="WAIT";class Zc{constructor(t,e,n,r,i){this.resolved=!1,this.promise=void 0,t instanceof Zc?Object.assign(this,t):S(e)?(ot(!xc(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?Za.$q.resolve(this.data):void 0):v(t)&&t.token&&(Object.prototype.hasOwnProperty.call(t,"resolveFn")||Object.prototype.hasOwnProperty.call(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||Yc,async:e.async||n.async||Qc}}resolve(t,e){const n=Za.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=S(s)?s:t=>t;return this.promise=n.resolve().then((()=>n.all(t.getDependencies(this).map((n=>n.get(t,e)))))).then((t=>this.resolveFn.apply(null,t))).then(o).then((t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Kc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${Uc(this.token)}, requires: [${this.deps.map(Uc)}])`}clone(){return new Zc(this)}}Zc.fromData=(t,e)=>new Zc(t,(()=>e),null,null,e);class Jc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${Uc(this.params())}`}withState(t){return new Jc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new Jc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new Jc(this._stateRegistry,this._identifier,this._params,n)}}Jc.isDef=t=>t&&t.state&&(w(t.state)||v(t.state)&&w(t.state.name));const Xc=t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length;var tl;function el(t,e,n){const r=!1===n.reloadOnSearch&&e===tl.SEARCH||void 0,i=lc([n.dynamic,r],y),s=y(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=Xc(t)?{value:t}:t,e.__cacheable=!0;const n=Ac(t.value)?t.value:e;return Object.assign(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object.assign(s,o)}!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(tl||(tl={}));class nl{constructor(t,e,n,r,i){const s=el(t,n,i);e=function(t,e,n,r,i){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&i.type(t.type))return i.type(t.type);if(e)return e;if(!t.type){const t=n===tl.CONFIG?"any":n===tl.PATH?"path":n===tl.SEARCH?"query":"string";return i.type(t)}return t.type instanceof _c?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===tl.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===tl.SEARCH):e;const a=void 0!==s.value||n===tl.SEARCH,c=y(s.dynamic)?!!s.dynamic:!!e.dynamic,l=y(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!y(r)||null==r)return n;if(!0===r||w(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(s,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const i=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],s=Array.isArray(t.replace)?t.replace:[];w(r)&&s.push({from:r,to:void 0});const o=uc(s,Ba("from"));return cc(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),d=y(s.inherit)?!!s.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),g(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!Za.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=Za.$injector.invoke(this.config.$$fn);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.$$fn.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===tl.SEARCH}validates(t){if((g(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=this.type.encode(e);return!(w(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter((t=>!t.type.equals(e[t.id],n[t.id])))}static equals(t,e={},n={}){return 0===nl.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(hc,!0)}}class rl{constructor(t){if(t instanceof rl){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Object.assign({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map((t=>t.clone()))}}clone(){return new rl(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce(((e,n)=>{return wc(e,[(r=n).id,r.value(t[r.id])]);var r}),{}),this}parameter(t){return lc(this.paramSchema,za("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return nl.changed(n,this.paramValues,t.paramValues)}}rl.clone=t=>t.clone();class il{static makeTargetState(t,e){const n=bc(e).state;return new Jc(t,n,e.map(Ba("paramValues")).reduce(sc,{}),{})}static buildPath(t){const e=t.params();return t.$state().path.map((t=>new rl(t).applyRawParams(e)))}static buildToPath(t,e){const n=il.buildPath(e);return e.options().inherit?il.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>n.includes(t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=il.subPath(e,(t=>t===n)),s=r.map((e=>t.createViewConfig(i,e)));n.views=s.reduce(pc,[])}))}static inheritParams(t,e,n=[]){const r=t.map((t=>t.paramSchema)).reduce(pc,[]).filter((t=>!t.inherit)).map(Ba("id"));return e.map((function(e){let i=Object.assign({},e&&e.paramValues);const s=oc(i,n);i=ac(i,n);const o=ac(function(t,e){const n=lc(t,za("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new rl(e.state).applyRawParams(a)}))}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let i=0;for(;i<r&&t[i].state!==n&&(s=t[i],o=e[i],s.equals(o,il.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const d=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=d.concat(u),{from:a,to:h,retained:c,retainedWithToParams:d,exiting:l,entering:u}}static matching(t,e,n){let r=!1;return vc(t,e).reduce(((t,[e,i])=>(r=r||!e.equals(i,n),r?t:t.concat(e))),[])}static equals(t,e,n){return t.length===e.length&&il.matching(t,e,n).length===t.length}static subPath(t,e){const n=lc(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter((t=>!t.dynamic))}static paramValues(t){return t.reduce(((t,e)=>Object.assign(t,e.paramValues)),{})}}const sl={LAZY:"LAZY",EAGER:"EAGER"},ol=[sl.EAGER,sl.LAZY],al=[sl.EAGER];class cl{constructor(t){this._path=t}getTokens(){return this._path.reduce(((t,e)=>t.concat(e.resolvables.map((t=>t.token)))),[]).reduce(mc,[])}getResolvable(t){return bc(this._path.map((t=>t.resolvables)).reduce(pc,[]).filter((e=>e.token===t)))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new cl(il.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=lc(this._path,za("state",e)),r=t.map((t=>t.token));n.resolvables=n.resolvables.filter((t=>-1===r.indexOf(t.token))).concat(t)}resolvePath(t="LAZY",e){const n=(ol.includes(t)?t:"LAZY")===sl.EAGER?al:ol;Kc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),i=this._path.reduce(((t,i)=>{const s=i.resolvables.filter(r(n,"when")),o=s.filter(r(["NOWAIT"],"async")),a=s.filter((t=>!r(["NOWAIT"],"async")(t))),c=this.subContext(i.state),l=t=>t.get(c,e).then((e=>({token:t.token,value:e})));return o.forEach(l),t.concat(a.map(l))}),[]);return Za.$q.all(i)}injector(){return this._injector||(this._injector=new ll)}findNode(t){return lc(this._path,(e=>e.resolvables.includes(t)))}getDependencies(t){const e=this.findNode(t),n=(il.subPath(this._path,(t=>t===e))||this._path).reduce(((t,e)=>t.concat(e.resolvables)),[]).filter((e=>e!==t));return t.deps.map((t=>{const e=n.filter((e=>e.token===t));if(e.length)return bc(e);const r=Za.$injector.get(t);if(g(r))throw new Error("Could not find Dependency Injection token: "+Uc(t));return new Zc(t,(()=>r),[],r)}))}}class ll{constructor(){this.native=Za.$injector}get(t){return Za.$injector.get(t)}getAsync(t){return Za.$q.resolve(Za.$injector.get(t))}getNative(t){return Za.$injector.get(t)}}const ul=(t,e)=>t.reduce(((t,n)=>t||y(e[n])),!1);function hl(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(y(t.views)&&ul(r,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${r.filter((e=>y(t[e]))).join(", ")}`);const i={};return Ja(t.views||{$default:oc(t,r)},(function(r,s){if(s=s||"$default",w(r)&&(r={component:r}),r=Object.assign({},r),ul(e,r)&&ul(n,r))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${s}@${t.name}'`);r.resolveAs=r.resolveAs||"$resolve",r.$type="ng1",r.$context=t,r.$name=s;const o=pl.normalizeUIViewTarget(r.$context,r.$name);r.$ngViewName=o.ngViewName,r.$ngViewContextAnchor=o.ngViewContextAnchor,i[s]=r})),i}let dl=0;class pl{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=dl++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=Za.$q,e=new cl(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.resolve(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.resolve(this.getController(e))};return t.all(r).then((t=>(Kc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!Ac(e))return this.viewDecl.controller;const n=Ee(e),r=Array.isArray(e)?bc(e):e;return new Zc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=w(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substr(1),i="");if(/^(\^(?:\.\^)*)$/.exec(i)){const e=i.split(".").reduce((t=>t.parent),t);i=e.name}else"."===i&&(i=t.name);return{ngViewName:r,ngViewContextAnchor:i}}}class fl{constructor(){this._ngViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>lc(this._ngViews,(e=>e.id===t)),_registeredUIViews:()=>this._ngViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>nc(this._listeners,t))},this._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||Za.$injector.get("$templateFactory"),[new pl(e,n,t)])}())}$get=[()=>this];_rootViewContext(t){return this._rootContext=t||this._rootContext}_viewConfigFactory(t,e){this._viewConfigFactories[t]=e}createViewConfig(t,e){const n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);const r=n(t,e);return Array.isArray(r)?r:[r]}deactivateViewConfig(t){Kc.traceViewServiceEvent("<- Removing",t),nc(this._viewConfigs,t)}activateViewConfig(t){Kc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map((t=>[t.fqn,t])).reduce(wc,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=qa(((t,e,n,r)=>e*(t(n)-t(r)))),r=this._ngViews.sort(n((function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)}),1)).map((r=>{const i=this._viewConfigs.filter(fl.matches(t,r));return i.length>1&&i.sort(n(e,-1)),{ngView:r,viewConfig:i[0]}})),i=r.map((t=>t.viewConfig)),s=this._viewConfigs.filter((t=>!i.includes(t))).map((t=>({ngView:void 0,viewConfig:t})));r.forEach((t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)}));const o=r.concat(s);this._listeners.forEach((t=>t(o))),Kc.traceViewSync(o)}registerUIView(t){Kc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Kc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Kc.traceViewServiceUIViewEvent("<- Deregistering",t),nc(e)(t)):Kc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map(Ba("fqn"))}active(){return this._ngViews.filter(Ba("$config")).map(Ba("name"))}}fl.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,i=r.$ngViewName.split("."),s=e.fqn.split(".");if(!Xa(i,s.slice(0-i.length)))return!1;const o=1-i.length||void 0,a=s.slice(0,o).join("."),c=t[a].creationContext;return r.$ngViewContextAnchor===(c&&c.name)};const $l={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},ml={TRANSITION:0,STATE:1},gl=2,yl=3,vl=4,wl=5,bl=6;let El=0;class Cl{static superseded(t,e){const n=new Cl(gl,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return Cl.superseded(t,{redirected:!0})}static invalid(t){return new Cl(vl,"This transition is invalid",t)}static ignored(t){return new Cl(wl,"The transition was ignored",t)}static aborted(t){return new Cl(yl,"The transition has been aborted",t)}static errored(t){return new Cl(bl,"The transition errored",t)}static normalize(t){return Ka(Cl)(t)?t:Cl.errored(t)}constructor(t,e,n){this.$id=El++,this.type=t,this.message=e,this.detail=n,this.redirected=!1}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():Uc(e);var e;const{$id:n,type:r,message:i}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${i}, detail: ${t})`}toPromise(){return Object.assign(Sc(this),{_transitionRejection:this})}}class Sl{constructor(t=!1){this.disposed=!1,this.key=1,this.pendingKeys=[],this.publishDepth=0,this.subscriptions=[],this.topics={},this.async_=Boolean(t)}subscribe(t,e,n=null){let r=this.topics[t];r||(r=this.topics[t]=[]);const i=this.key;return this.subscriptions[i]=t,this.subscriptions[i+1]=e,this.subscriptions[i+2]=n,this.key=i+3,r.push(i),i}subscribeOnce(t,e,n=null){let r=!1;const i=this.subscribe(t,((...t)=>{r||(r=!0,this.unsubscribeByKey(i),e.apply(n,t))}),this);return i}static runAsync_(t,e,n){setTimeout((()=>{t.apply(e,n)}),0)}unsubscribe(t,e,n=null){const r=this.topics[t];if(r){const t=this.subscriptions,i=r.find((r=>t[r+1]===e&&t[r+2]===n));if(void 0!==i)return this.unsubscribeByKey(i)}return!1}unsubscribeByKey(t){const e=this.subscriptions[t];if(e){let n=this.topics[e];0!==this.publishDepth?(this.pendingKeys.push(t),this.subscriptions[t+1]=()=>{}):(n&&(this.topics[e]=n.filter((e=>e!==t))),delete this.subscriptions[t],delete this.subscriptions[t+1],delete this.subscriptions[t+2])}return!!e}publish(t,...e){const n=this.topics[t];if(n){const t=e;if(this.async_)for(let e=0;e<n.length;e++){const r=n[e];Sl.runAsync_(this.subscriptions[r+1],this.subscriptions[r+2],t)}else{this.publishDepth++;try{for(let e=0,r=n.length;e<r&&!this.isDisposed();e++){const r=n[e];this.subscriptions[r+1].apply(this.subscriptions[r+2],t)}}finally{if(this.publishDepth--,this.pendingKeys.length>0&&0===this.publishDepth){let t;for(;t=this.pendingKeys.pop();)this.unsubscribeByKey(t)}}}return!0}return!1}clear(t){if(t){const e=this.topics[t];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics[t])}else this.subscriptions.length=0,this.topics={}}getCount(t){if(t){const e=this.topics[t];return e?e.length:0}let e=0;for(const t in this.topics)e+=this.getCount(t);return e}isDisposed(){return this.disposed}dispose(){this.clear(),this.pendingKeys.length=0,this.disposed=!0}}const Ol=new Sl(!0),xl={current:()=>{},transition:null,traceData:{},bind:null};class Al{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||Za.$q.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(kc(r)){const i=t.slice(n+1);return Al.chain(i,r).then(e)}}return e()}static runAllHooks(t){t.forEach((t=>t.invokeHook()))}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===$l.RUN&&!this.options.transition.isActive(),this.options=ic(r,xl),this.type=n.eventType}logError(t){Ol.publish("$stateService:defaultErrorHandler",t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;Kc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>Cl.normalize(t).toPromise(),s=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&kc(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(Cl.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||(kc(t)?t.then((t=>this.handleHookResult(t))):(Kc.traceHookResult(t,this.transition),!1===t?Cl.aborted("Hook aborted transition").toPromise():t instanceof Jc?Cl.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?Cl.aborted().toPromise():this.isSuperseded()?Cl.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${Wa("traceData.hookType")(t)||"internal"} context: ${Wa("traceData.context.state.name")(t)||Wa("traceData.context")(t)||"unknown"}, ${Dc(200,Ic(e.callback))}`}}Al.HANDLE_RESULT=t=>e=>t.handleHookResult(e),Al.LOG_REJECTED_RESULT=t=>e=>{kc(e)&&e.catch((e=>t.logError(Cl.normalize(e))))},Al.LOG_ERROR=t=>e=>t.logError(e),Al.REJECT_ERROR=()=>t=>Sc(t),Al.THROW_ERROR=()=>t=>{throw t};class kl{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return kl.is(t)?new kl(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map((t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t)).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function _l(t,e,n){const r=w(e)?[e]:e;return!!(S(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new kl(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class Tl{constructor(t,e,n,r,i,s={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=i,this.invokeCount=0,this._deregistered=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter((t=>_l(t.state,e,n)));return r.length?r:null}_getDefaultMatchCriteria(){return uc(this.tranSvc._pluginapi._getPathTypes(),(()=>!0))}_getMatchingNodes(t,e){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._pluginapi._getPathTypes()).reduce(((r,i)=>{const s=i.scope===ml.STATE,o=t[i.name]||[],a=s?o:[bc(o)];return r[i.name]=this._matchingNodes(a,n[i.name],e),r}),{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every((t=>t))?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function jl(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=nc(r);function s(t,s,o={}){const a=new Tl(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class Nl{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._pluginapi._getEvents(t).map((t=>this.buildHooks(t))).reduce(pc,[]).filter(Boolean)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const i={transition:e,current:e.options().current};return r.map((r=>r.matches(n,e)[t.criteriaMatchPath.name].map((n=>{const s=Object.assign({bind:r.bind,traceData:{hookType:t.name,context:n}},i),o=t.criteriaMatchPath.scope===ml.STATE?n.state.self:null,a=new Al(e,o,r,s);return{hook:r,node:n,transitionHook:a}})))).reduce(pc,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,i=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==i?i:n.hook.priority-e.hook.priority}}(t.reverseSort)).map((t=>t.transitionHook))}getMatchingHooks(t,e,n){const r=t.hookPhase===$l.CREATE,i=this.transition.transitionService;return(r?[i]:[this.transition,i]).map((e=>e.getHooks(t.name))).filter(yc(Array.isArray,`broken event named: ${t.name}`)).reduce(pc,[]).filter((t=>t.matches(e,n)))}}const Vl=Ba("self");class Rl{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Za.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new Nl(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:Ya(this)},e.options()),this.$id=n._transitionCount++;const i=il.buildToPath(t,e);this._treeChanges=il.treeChanges(t,i,this._options.reloadState),this.createTransitionHookRegFns();const s=this._hookBuilder.buildHooksForPhase($l.CREATE);Al.invokeHooks(s,(()=>null)),this.applyViewConfigs()}createTransitionHookRegFns(){this.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==$l.CREATE)).forEach((t=>jl(this,this.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map((t=>t.state));il.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return bc(this._treeChanges.from).state}$to(){return bc(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof Rl?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!_l(this.$to(),t.to,this)||t.from&&!_l(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(Ba("paramValues")).reduce(sc,{}))}paramsChanged(){const t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((t=>t.paramSchema)).reduce(fc,[]).reduce(mc,[]);return nl.changed(n,t,e).reduce(((t,n)=>(t[n.id]=e[n.id],t)),{})}injector(t,e="to"){let n=this._treeChanges[e];return t&&(n=il.subPath(n,(e=>e.state===t||e.state.name===t))),new cl(n).injector()}getResolveTokens(t="to"){return new cl(this._treeChanges[t]).getTokens()}addResolvable(t,e){t=Ka(Zc)(t)?t:new Zc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=lc(r,(t=>t.state.name===n));ot(!!i,`targetNode not found ${n}`);new cl(r).addResolvables([t],i.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return uc(this._treeChanges.entering,Ba("state")).map(Vl)}exiting(){return uc(this._treeChanges.exiting,Ba("state")).map(Vl).reverse()}retained(){return uc(this._treeChanges.retained,Ba("state")).map(Vl)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(za("state",e)):n,n.map(Ba("views")).reduce(pc,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const i=Object.assign({},this.options(),t.options(),r);t=t.withOptions(i,!0);const s=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=s._treeChanges.entering;return il.matching(a,o,il.nonDynamicParams).filter((e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n})).forEach(((t,e)=>{t.resolvables=o[e].resolvables})),s}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(vc(t.to,t.from).map((t=>t[0].state!==t[1].state)).reduce(dc,!1))return;const e=t.to.map((t=>t.paramSchema)),[n,r]=[t.to,t.from].map((t=>t.map((t=>t.paramValues))));return vc(e,n,r).map((([t,e,n])=>nl.changed(t,e,n))).reduce(pc,[])}dynamic(){const t=this._changedParams();return!!t&&t.map((t=>t.dynamic)).reduce(dc,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=il.matching(t,n);return t.length===r.filter((t=>!e||!t.state.includes[e.name])).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=Al.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e($l.BEFORE);return Al.invokeHooks(n,(()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Kc.traceTransitionStart(this),Za.$q.resolve(void 0)})).then((()=>{const t=e($l.RUN);return Al.invokeHooks(t,(()=>Za.$q.resolve(void 0)))})).then((()=>{Kc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e($l.SUCCESS))}),(n=>{Kc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e($l.ERROR))})),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){g(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return Cl.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter((t=>!t.validates(n[t.id])));if(r.length){const e=r.map((t=>`[${t.id}:${Uc(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return Cl.invalid(i)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:ac(t,["#"]);return`Transition#${this.$id}( '${v(t)?t.name:t}'${Uc(n(this._treeChanges.from.map(Ba("paramValues")).reduce(sc,{})))} -> ${this.valid()?"":"(X) "}'${v(e)?e.name:e}'${Uc(n(this.params()))} )`}}Rl.diToken=Rl;const Pl=["$transition$",Rl];function Dl(t){const e=Object.values(t.treeChanges()).reduce(pc,[]).reduce(mc,[]),n=t=>Pl.includes(t.token)?Zc.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))}function Ml(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const Ll=Ml("onExit"),Il=Ml("onRetain"),Ul=Ml("onEnter"),ql=1e3,Hl=t=>new cl(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),Fl=(t,e)=>new cl(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),Bl=t=>new cl(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),zl=t=>{const e=Za.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.resolve(t.load())))).then((()=>{}))},Wl=t=>{const e=t.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},(()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,Ec(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)};function Gl(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},(t=>{const i=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Kl(t,e,r)));return Za.$q.all(i).then((function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.target(n.identifier(),n.params(),n.options())}const r=n.match(n.parts()),i=r&&r.rule;if(i&&"STATE"===i.type){const n=i.state,s=r.match;return e.target(n,s,t.options())}n.sync()}))}))}function Kl(t,e,n){const r=e.$$state().lazyLoad;let i=r._promise;if(!i){const s=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete r._promise,t),o=t=>(delete r._promise,Za.$q.reject(t));i=r._promise=Za.$q.resolve(r(t,e)).then((function(t){t&&Array.isArray(t.states)&&t.states.forEach((t=>n.register(t)));return t})).then(s,o)}return i}class Yl{constructor(t,e,n,r,i=!1,s=Al.HANDLE_RESULT,o=Al.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=i,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=a}}function Ql(t){const e=t._ignoredReason();if(!e)return;Kc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),Cl.ignored().toPromise()}function Zl(t){if(!t.valid())throw new Error(t.error().toString())}let Jl={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Xl{static $inject=["$routerGlobalsProvider","$viewProvider"];constructor(t,e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this.globals=t,this.$view=e,this._deregisterHookFns={},this._pluginapi=tc(Ya(this),{},Ya(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(Dl)}$get=["$state","$urlService","$stateRegistry","$view",(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=Gl(this,t,e,n),this._deregisterHookFns.updateUrl=((t,e,n)=>{t.onSuccess({},(t=>{const r=t.options(),i=e;if("url"!==r.source&&r.location&&i.$current.navigable){const t={replace:"replace"===r.location};n.push(i.$current.navigable.url,i.globals.params,t)}n.update(!0)}),{priority:9999})})(this,t,e),this._deregisterHookFns.redirectTo=((t,e)=>{t.onStart({to:t=>!!t.redirectTo},(t=>{const n=t.to().redirectTo;if(!n)return;const r=e;function i(e){if(e)return e instanceof Jc?e:w(e)?r.target(e,t.params(),t.options()):e.state||e.params?r.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return S(n)?Za.$q.resolve(n(t)).then(i):i(n)}))})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},(t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach((t=>e.deactivateViewConfig(t))),n.forEach((t=>e.activateViewConfig(t))),e.sync())}))})(this,r),this)];create(t,e){return new Rl(t,e,this,this.globals)}_defineCoreEvents(){const t=$l,e=Al,n=this._criteriaPaths,r=!1,i=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,i),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=ml;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,i=!1,s=Al.HANDLE_RESULT,o=Al.REJECT_ERROR,a=!1){const c=new Yl(t,e,n,r,i,s,o,a);this._eventTypes.push(c),jl(this,this,c)}_getEvents(t){return(y(t)?this._eventTypes.filter((e=>e.hookPhase===t)):this._eventTypes.slice()).sort(((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n}))}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=void this.onCreate({},(function(t){t.addResolvable(Zc.fromData(Rl,t),""),t.addResolvable(Zc.fromData("$transition$",t),""),t.addResolvable(Zc.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(Zc.fromData("$state$",e),e)}))})),t.ignored=(t=>t.onBefore({},Ql,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Zl,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},Ll))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},Il))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},Ul))(this),t.eagerResolve=(t=>t.onStart({},Hl,{priority:ql}))(this),t.lazyResolve=(t=>t.onEnter({entering:Ya(!0)},Fl,{priority:ql}))(this),t.resolveAll=(t=>t.onFinish({},Bl,{priority:ql}))(this),t.loadViews=(t=>t.onFinish({},zl))(this),t.updateGlobals=(t=>t.onCreate({},Wl))(this),t.lazyLoad=Gl(this)}}const tu=ht("$stateProvider");class eu{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=["$routerGlobalsProvider","$transitionsProvider"];constructor(t,e){this.stateRegistry=void 0,this.urlService=void 0,this.globals=t,this.transitionService=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){throw t instanceof Error&&t.stack?t:t instanceof Cl?new Error(t.toString()):new Error(t)};const n=["current","$current","params","transition"],r=Object.keys(eu.prototype).filter((t=>!n.includes(t)));tc(Ya(eu.prototype),this,Ya(this),r),Ol.subscribe("$stateService:defaultErrorHandler",(t=>this.defaultErrorHandler()(t)))}$get=[()=>this];decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t){if(!t.name)throw tu("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw tu("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=il.makeTargetState(this.stateRegistry,t),r=this.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new Rc(this.invalidCallbacks.slice()),a=new cl(t).injector(),c=t=>{if(!(t instanceof Jc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?Cl.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):Cl.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?Cl.invalid(e.error()).toPromise():Za.$q.resolve(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){nc(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!y(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=ic(n,{relative:this.$current,inherit:!0},Jl);return this.transitionTo(t,e,r)}target(t,e,n={}){if(v(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${w(n.reload)?n.reload:n.reload.name}'`);return new Jc(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new rl(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=ic(n,Jl);const r=()=>this.globals.transition;n=Object.assign(n,{current:r});const i=this.target(t,e,n),s=this.getCurrentPath();if(!i.exists())return this._handleInvalidTargetState(s,i);if(!i.valid())return Sc(i.error());if(!1===n.supercede&&r())return Cl.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const o=t=>e=>{if(e instanceof Cl){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===wl)return n&&this.urlService.update(),Za.$q.resolve(this.globals.current);const r=e.detail;if(e.type===gl&&e.redirected&&r instanceof Jc){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===yl)return n&&this.urlService.update(),Za.$q.reject(e)}return this.defaultErrorHandler()(e),Za.$q.reject(e)},a=this.transitionService.create(s,i),c=a.run().catch(o(a));return Cc(c),Object.assign(c,{transition:a})}is(t,e,n){n=ic(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!y(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return nl.equals(i,nl.values(i,e),this.globals.params)}includes(t,e,n){n=ic(n,{relative:this.$current});const r=w(t)&&kl.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const i=this.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(!y(i))return;if(!y(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return nl.equals(o,nl.values(o,e),this.globals.params)}href(t,e,n){n=ic(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!y(r))return null;n.inherit&&(e=this.globals.params.$inherit(e,this.$current,r));const i=r&&n.lossy?r.navigable:r;return i&&void 0!==i.url&&null!==i.url?this.urlService.href(i.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),i=il.makeTargetState(this.stateRegistry,r);return Kl(e=e||this.transitionService.create(r,i),n)}}function nu(){let t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",(e,n)=>t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}]}class ru{constructor(){this._useHttp=!1}$get=["$http","$templateCache","$templateRequest","$q","$injector",(t,e,n,r,i)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$q=r,this.$injector=i,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>this.$q.resolve(t).then((t=>({template:t}))),i=t=>this.$q.resolve(t).then((t=>({component:t})));switch((t=>y(t.template)?"template":y(t.templateUrl)?"templateUrl":y(t.templateProvider)?"templateProvider":y(t.component)?"component":y(t.componentProvider)?"componentProvider":"default")(t)){case"template":return r(this.fromString(t.template,e));case"templateUrl":return r(this.fromUrl(t.templateUrl,e));case"templateProvider":return r(this.fromProvider(t.templateProvider,e,n));case"component":return i(t.component);case"componentProvider":return i(this.fromComponentProvider(t.componentProvider,e,n));default:return r("<ui-view></ui-view>")}}fromString(t,e){return S(t)?t(e):t}fromUrl(t,e){return S(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(t){return t.data})):this.$templateRequest(t)}fromProvider(t,e,n){const r=Ee(t),i=Array.isArray(t)?bc(t):t;return new Zc("",i,r).get(n)}fromComponentProvider(t,e,n){const r=Ee(t),i=Array.isArray(t)?bc(t):t;return new Zc("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=Mc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=Za.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(iu).reduce(pc,[])}(n).map((n=>{const{name:s,type:o}=n,a=i(s);if(t.attr(a)&&!r[s])return`${a}='${t.attr(a)}'`;const c=r[s]||s;if("@"===o)return`${a}='{{::$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&Ee(n)||[];return`${a}='$resolve.${c}${Array.isArray(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='::$resolve.${c}'`})).join(" "),o=i(n);return`<${o} ${s}></${o}>`}}const iu=t=>v(t.bindToController)?su(t.bindToController):su(t.scope),su=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>y(t)&&Array.isArray(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function ou(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const au=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),cu={state:{params:{}},strict:!0,caseInsensitive:!0};class lu{static encodeDashes(t){return encodeURIComponent(t).replace(/-/g,(t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`))}static pathSegmentsAndParams(t){return vc(t._segments,t._params.filter((t=>t.location===tl.PATH)).concat(void 0)).reduce(pc,[]).filter((t=>""!==t&&y(t)))}static queryParams(t){return t._params.filter((t=>t.location===tl.SEARCH))}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(lu.pathSegmentsAndParams).reduce(pc,[]).reduce(qc,[]).map((t=>w(t)?au(t):t)).reduce(pc,[]))(t).map((t=>"/"===t?1:w(t)?2:t instanceof nl?3:void 0)),r=n(t),i=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,i,0);const s=vc(r,i);let o,a;for(a=0;a<s.length;a++)if(o=s[a][0]-s[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=ic(r,cu),this.pattern=t;const i=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!lu.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(lc(this._params,za("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const i=n[2]||n[3],s=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:i,regexp:s,segment:t.substring(c,n.index),type:s?e.type(s)||(t=>ec(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let h,d;for(;(a=i.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,bc(this._params)]),c=i.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=s.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=i.lastIndex}this._segments.push(d),this._compiled=o.map((t=>ou.apply(null,t))).concat(ou(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return y(t)&&(t=e.type.decode(t)),e.value(t)}exec(t,e={},n){const r=(i=this._cache,s="pattern",o=()=>new RegExp(["^",gc(this._cache.path.map(Ba("_compiled"))).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),i[s]=i[s]||o()).exec(t);var i,s,o;if(!r)return null;const a=this.parameters(),c=a.filter((t=>!t.isSearch())),l=a.filter((t=>t.isSearch())),u=this._cache.path.map((t=>t._segments.length-1)).reduce(((t,e)=>t+e)),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=uc(e(t).split(/-(?!\\)/),e);return uc(n,(t=>t.replace(/\\-/g,"-"))).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach((t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)})),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:gc(this._cache.path.map((t=>t._params)))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter((e=>Object.prototype.hasOwnProperty.call(t,e.id))).map((e=>((t,e)=>!t||t.validates(e))(e,t[e.id]))).reduce(hc,!0)}format(t={}){const e=this._cache.path,n=e.map(lu.pathSegmentsAndParams).reduce(pc,[]).map((t=>w(t)?t:i(t))),r=e.map(lu.queryParams).reduce(pc,[]).map(i);if(n.concat(r).filter((t=>!1===t.isValid)).length)return null;function i(e){const n=e.value(t[e.id]),r=e.validates(n),i=e.isDefaultValue(n),s=!!i&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:i,squash:s,encoded:o}}const s=n.reduce(((t,e)=>{if(w(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:w(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+uc(r,lu.encodeDashes).join("-"):i.raw?t+r:t+encodeURIComponent(r)}),""),o=r.map((t=>{let{param:e,squash:n,encoded:r,isDefaultValue:i}=t;if(!(null==r||i&&!1!==n)&&(Array.isArray(r)||(r=[r]),0!==r.length))return e.raw||(r=uc(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).reduce(pc,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}lu.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class uu{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?kl.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?t+"."+this.name:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=ic(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter((e=>!t.matchingKeys||Object.prototype.hasOwnProperty.call(t.matchingKeys,e.id)))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||lc(Object.values(this.params),za("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}uu.isStateDeclaration=t=>S(t.$$state),uu.isState=t=>v(t.__stateObjectCache);class hu{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=uu,i=Qa([[w,t=>i(this.urlService.compile(t))],[Ka(lu),t=>this.fromUrlMatcher(t,e)],[(s=n,o=r,(...t)=>s.apply(null,t)||o.apply(null,t)),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Ka(RegExp),t=>this.fromRegExp(t,e)],[S,t=>new du(t,e)]]);var s,o;const a=i(t);if(!a)throw new Error("invalid 'what' in when()");return a}fromUrlMatcher(t,e){let n=e;w(e)&&(e=this.urlService.compile(e)),Ka(lu)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter((t=>t.isOptional));return n.length?n.filter((t=>e[t.id])).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new du((function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n}),n),r)}fromState(t,e,n){const r=uu.isStateDeclaration(t)?t.$$state():t,i={state:r,type:"STATE"};return Object.assign(this.fromUrlMatcher(r.url,(t=>{const i=e;i.href(r,t)!==i.href(n.current,n.params)&&i.transitionTo(r,t,{inherit:!0,source:"url"})})),i)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=w(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new du((e=>t.exec(e.path)),n),r)}}hu.isUrlRule=t=>t&&["type","match","handler"].every((e=>y(t[e])));class du{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t)}matchPriority(t){return ot(g(t)),0-this.$id}}let pu;function fu(t){if(!(S(t)||w(t)||Ka(Jc)(t)||Jc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return S(t)?t:Ya(t)}pu=(t,e)=>{let n=((t,e)=>(e.priority||0)-(t.priority||0))(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?lu.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))};class $u{constructor(t){this._sortFn=pu,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=fu(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=fu(t);this._otherwiseFn=this.urlRuleFactory.create(Ya(!0),e),this._sorted=!1}removeRule(t){nc(this._rules,t)}rule(t){if(!hu.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map(((t,e)=>({elem:t,idx:e})));return n.sort(((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r})),n.map((t=>t.elem))}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return y(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class mu{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new nl(t,e,tl.CONFIG,this.urlServiceConfig,n)}fromPath(t,e,n){return new nl(t,e,tl.PATH,this.urlServiceConfig,n)}fromSearch(t,e,n){return new nl(t,e,tl.SEARCH,this.urlServiceConfig,n)}}class gu{static $inject=["$locationProvider","$stateProvider","$routerGlobalsProvider","$urlConfigProvider"];constructor(t,e,n,r){this.stateService=e,this.stateService.urlService=this,this.$locationProvider=t,this.$location=void 0,this.$browser=void 0,this.interceptDeferred=!1,this.urlRuleFactory=new hu(this,this.stateService,n),this.rules=new $u(this.urlRuleFactory),this.config=r,this.paramFactory=new mu(this.config),this.path=()=>this.$location.path(),this.search=()=>this.$location.search(),this.hash=()=>this.$location.hash(),this._urlListeners=[]}$get=["$location","$browser","$rootScope",(t,e,n)=>(this.$location=t,this.$browser=e,n.$on("$locationChangeSuccess",(t=>this._urlListeners.forEach((e=>e(t))))),this.listen(),this)];html5Mode(){let t=this.$locationProvider.html5Mode();return t=v(t)?t.enabled:t,t&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||window.location.pathname)}url(t,e=!1,n){return y(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}onChange(t){return this._urlListeners.push(t),()=>nc(this._urlListeners)(t)}parts(){return{path:this.path(),search:this.search(),hash:this.hash()}}sync(t){if(t&&t.defaultPrevented)return;const e=this.stateService,n={path:this.path(),search:this.search(),hash:this.hash()},r=this.match(n);Qa([[w,t=>this.url(t,!0)],[Jc.isDef,t=>e.go(t.state,t.params,t.options)],[Ka(Jc),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange((t=>this.sync(t)));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}deferIntercept(t){void 0===t&&(t=!0),this.interceptDeferred=t}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const i=n(e[t]);r=!r||i&&i.weight>r.weight?i:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const i=this.html5Mode();if(i||null===r||(r="#"+this.$locationProvider.hashPrefix()+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,i,n.absolute,this.baseHref()),!n.absolute||!r)return r;const s=!i&&r?"/":"",o=this.$location.port(),a=80===o||443===o?"":":"+o;return[this.$location.protocol(),"://",this.$location.host(),a,s,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new lu(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!v(t))return!1;let e=!0;return N(lu.prototype,((n,r)=>{S(n)&&(e=e&&y(t[r])&&S(t[r]))})),e}}class yu{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=w(t);let i=r?t:t.name;this.isRelative(i)&&(i=this.resolvePath(i,e));const s=this._states[i];if(s&&(r||!(r||s!==t&&s.self!==t)))return s;if(r&&n){const t=Object.values(this._states).filter((t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(i)));return t.length>1&&console.error(`stateMatcher.find: Found multiple matches for ${i} using glob: `,t.map((t=>t.name))),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),i=r.length;let s=0,o=n;for(;s<i;s++)if(""!==r[s]||0!==s){if("^"!==r[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(s).join(".");return o.name+(o.name&&a?".":"")+a}}function vu(t){return t.self.$$state=()=>t,t.self}function wu(t){return t.parent&&t.parent.data&&(t.data=t.self.data=ec(t.parent.data,t.data)),t.data}function bu(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};Ec(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=function(t){if(!w(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=s?t.compile(s.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return s&&s.root?o:(i&&i.navigable||e()).url.append(o)}}function Eu(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function Cu(t){return t.parent&&!t.abstract?t.parent.path.concat(t):[t]}function Su(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function Ou(t){const e=Qa([[Ba("resolveFn"),t=>new Zc(ku(t),t.resolveFn,t.deps,t.policy)],[Ba("useFactory"),t=>new Zc(ku(t),t.useFactory,t.deps||t.dependencies,t.policy)],[Ba("useClass"),t=>new Zc(ku(t),(()=>new t.useClass),[],t.policy)],[Ba("useValue"),t=>new Zc(ku(t),(()=>t.useValue),[],t.policy,t.useValue)],[Ba("useExisting"),t=>new Zc(ku(t),(t=>t),[t.useExisting],t.policy)]]),n=Qa([[Fa(Ba("val"),w),t=>new Zc(t.token,(t=>t),[t.val],t.policy)],[Fa(Ba("val"),Array.isArray),t=>new Zc(t.token,bc(t.val),t.val.slice(0,-1),t.policy)],[Fa(Ba("val"),S),t=>new Zc(t.token,t.val,(t=>{const e=Za.$injector;return t.$inject||e&&Ee(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Qa([[Ka(Zc),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(w(t.val)||Array.isArray(t.val)||S(t.val))),n],[Ya(!0),t=>{throw new Error("Invalid resolve value: "+Uc(t))}]]),i=t.resolve,s=Array.isArray(i)?i:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(i,t.resolvePolicy||{});return s.map(r)}class xu{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var i;this.builders={name:[t=>t.name],self:[vu],parent:[function(e){return Au(e)?null:t.find(n.parentName(e))||r()}],data:[wu],url:[bu(e,r)],navigable:[Eu(Au)],params:[(i=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(uc(ac(t.params||{},e.map(Ba("id"))),((e,n)=>i.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(wc,{})})],views:[],path:[Cu],includes:[Su],resolvables:[Ou]}}builder(t,e){const n=this.builders,r=n[t]||[];return w(t)&&!y(e)?r.length>1?r:r[0]:w(t)&&S(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const r=n[e].reduce(((t,e)=>n=>e(n,t)),(()=>{}));t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?w(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=w(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function Au(t){return""===t.name}function ku(t){return t.provide||t.token}class _u{constructor(t,e,n,r,i){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=i,this.queue=[]}register(t){const e=this.queue,n=new uu(t),r=n.name;if(!w(r))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,r)||e.map(Ba("name")).includes(r))throw new Error(`State '${r}' is already defined`);return e.push(n),this.flush(),n}flush(){const{queue:t,states:e,builder:n}=this,r=[],i=[],s={},o=t=>Object.prototype.hasOwnProperty.call(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach((t=>t("registered",r.map((t=>t.self)))))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=i.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&i.splice(h,1),r.push(c);continue}const d=s[l];if(s[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&i.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class Tu{static $inject=["$urlServiceProvider","$stateProvider","$routerGlobalsProvider","$viewProvider"];constructor(t,e,n,r){this.states={},e.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.rules,this.$injector=void 0,this.listeners=[],this.matcher=new yu(this.states),this.builder=new xu(this.matcher,t),this.builder.builder("views",hl),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new _u(this,this.urlServiceRules,this.states,this.builder,this.listeners),this._registerRoot(),r._pluginapi._rootViewContext(this.root()),n.$current=this.root(),n.current=n.$current.self}$get=["$injector",t=>(this.$injector=t,this.builder.$injector=t,this)];getStateHookBuilder(t){let e=this;return function(n){const r=n[t],i="onExit"===t?"from":"to";return r?function(t,n){const s=new cl(t.treeChanges(i)).subContext(n.$$state()),o=Object.assign(ju(s),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}_registerRoot(){(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){nc(this.listeners)(t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map((t=>t.$$state())),n=t=>{const r=e.filter((e=>-1!==t.indexOf(e.parent)));return 0===r.length?r:r.concat(n(r))},r=n([t]),i=[t].concat(r).reverse();return i.forEach((t=>{const e=this.urlServiceRules;e.rules().filter(za("state",t)).forEach((t=>e.removeRule(t))),delete this.states[t.name]})),i}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach((t=>t("deregistered",n.map((t=>t.self))))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map((t=>this.states[t].self));const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}const ju=t=>t.getTokens().filter(w).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(wc,{});function Nu(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function Vu(t){const e=t.parent().inheritedData("$ngView"),n=Wa("$cfg.path")(e);return n?bc(n).state.name:void 0}function Ru(t,e,n){const r=n.ngState||t.current.name,i=Object.assign(function(t,e){return{relative:Vu(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.ngStateOpts||{}),s=t.href(r,n.ngStateParams,i);return{ngState:r,ngStateParams:n.ngStateParams,ngStateOpts:i,href:s}}function Pu(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t[0].getAttribute("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t[0].nodeName,clickable:!n}}function Du(t,e,n,r,i){return function(s){const o=s.which||s.button,a=i();if(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.attr("target"))s.preventDefault(),s.stopImmediatePropagation();else{const i=n((function(){t.attr("disabled")||e.go(a.ngState,a.ngStateParams,a.ngStateOpts)}));s.preventDefault();let o=r.isAnchor&&!a.href?1:0;s.preventDefault=function(){o--<=0&&n.cancel(i)}}}}function Mu(t,e,n,r){let i;r&&(i=r.events),Array.isArray(i)||(i=["click"]);const s=t.on?"on":"bind";for(const e of i)t[s](e,n);e.$on("$destroy",(function(){const e=t.off?"off":"unbind";for(const r of i)t[e](r,n)}))}function Lu(t,e,n,r){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,o,a)=>{const c=Pu(s),l=a[1]||a[0];let u=null;const h={},d=()=>Ru(i,s,h),p=Nu(o.ngSref);function f(){const t=d();u&&u(),l&&(u=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(h.ngState=p.state,h.ngStateOpts=o.ngSrefOpts?t.$eval(o.ngSrefOpts):{},p.paramExpr&&(t.$watch(p.paramExpr,(function(t){h.ngStateParams=Object.assign({},t),f()}),!0),h.ngStateParams=Object.assign({},t.$eval(p.paramExpr))),f(),t.$on("$destroy",n.onStatesChanged(f)),t.$on("$destroy",r.onSuccess({},f)),!c.clickable)return;const $=Du(s,i,e,c,d);Mu(s,t,$,h.ngStateOpts)}}}function Iu(t,e,n,r){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(i,s,o,a){const c=Pu(s),l=a[1]||a[0];let u,h=null;const d={},p=()=>Ru(t,s,d),f=["ngState","ngStateParams","ngStateOpts"],$=f.reduce(((t,e)=>(t[e]=()=>{},t)),{});function m(){const t=p();h&&h(),l&&(h=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}f.forEach((t=>{d[t]=o[t]?i.$eval(o[t]):null,o.$observe(t,(e=>{$[t](),$[t]=i.$watch(e,(e=>{d[t]=e,m()}),!0)}))})),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",r.onSuccess({},m)),c.clickable&&(u=Du(s,t,e,c,p),Mu(s,i,u,d.ngStateOpts))}}}function Uu(t,e,n,r,i){return{restrict:"A",controller:function(s,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(s);try{l=s.$eval(a.ngSrefActive)}catch(t){}function h(t){t.promise.then($,(()=>{}))}function d(){p(l)}function p(t){v(t)&&(u=[],Ja(t,(function(t,e){const n=function(t,e){const n=Nu(t);f(n.state,s.$eval(n.paramExpr),e)};w(t)?n(t,e):Array.isArray(t)&&Ja(t,(function(t){n(t,e)}))})))}function f(e,n,r){const i={state:t.get(e,Vu(o))||{name:e},params:n,activeClass:r};return u.push(i),function(){nc(u)(i)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map((t=>t.activeClass)).map(e).reduce(pc,[]),r=n(u).concat(e(c)).reduce(mc,[]),i=n(u.filter((e=>t.includes(e.state.name,e.params)))),a=!!u.filter((e=>t.is(e.state.name,e.params))).length?e(c):[],l=i.concat(a).reduce(mc,[]),h=r.filter((t=>!l.includes(t)));s.$evalAsync((()=>{l.forEach((t=>o[0].classList.add(t))),h.forEach((t=>o[0].classList.remove(t)))}))}l=l||n(a.ngSrefActive||"",!1)(s),p(l),this.$$addStateInfo=function(t,e){if(v(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},s.$on("$destroy",function(){const t=r.onStatesChanged(d),e=i.onStart({},h),n=s.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}Lu.$inject=["$state","$timeout","$stateRegistry","$transitions"],Iu.$inject=["$state","$timeout","$stateRegistry","$transitions"],Uu.$inject=["$state","$routerGlobals","$interpolate","$stateRegistry","$transitions"];let qu=["$view","$animate","$ngViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$ngView:{}},o={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",d=u.autoscroll,p={enter:function(t,n,r){e.enter(t,null,n).then(r)},leave:function(t,n){e.leave(t).then(n)}},f=c.inheritedData("$ngView")||s,$=r(u.ngView||u.name||"")(a)||"$default";let m,g,v,w;const b={$type:"ng1",id:o.count++,name:$,fqn:f.$ngView.fqn?f.$ngView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof pl))return;if(e=w,n=t,e===n)return;var e,n;Kc.traceUIViewConfigUpdated(b,t&&t.viewDecl&&t.viewDecl.$context),w=t,C(t)},get creationContext(){const t=Wa("$cfg.viewDecl.$context")(f),e=Wa("$ngView.creationContext")(f);return t||e}};Kc.traceUIViewEvent("Linking",b),c.data("$ngView",{$ngView:b}),C();const E=t.registerUIView(b);function C(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$ngView:b},u={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",$);const f=l(e,(function(t){t.data("$ngViewAnim",u),t.data("$ngView",o),p.enter(t,c,(function(){r.resolve(),v&&v.$emit("$viewContentAnimationEnded"),(y(d)&&!d||a.$eval(d))&&n(t)})),function(){if(m&&(Kc.traceUIViewEvent("Removing (previous) el",m.data("$ngView")),m.remove(),m=null),v&&(Kc.traceUIViewEvent("Destroying scope",b),v.$destroy(),v=null),g){const t=g.data("$ngViewAnim");Kc.traceUIViewEvent("Animate out",t),p.leave(g,(function(){t.$$animLeave.resolve(),m=null})),m=g,g=null}}()}));g=f,v=e,v.$emit("$viewContentLoaded",t||w),v.$eval(h)}a.$on("$destroy",(function(){Kc.traceUIViewEvent("Destroying/Unregistering",b),E()}))}}};return o}];function Hu(t,e,n,r,i){const s=Wa("viewDecl.controllerAs"),o=Wa("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(r){const a=r.html();return r.empty(),function(r,c){const l=c.data("$ngView");if(!l)return c.html(a),void t(c[0].contentDocument||c[0].childNodes)(r);const u=l.$cfg||{viewDecl:{},getTemplate:()=>{}},h=u.path&&new cl(u.path);c.html(u.getTemplate(c,h)||a),Kc.traceUIViewFill(l.$ngView,c.html());const d=t(c[0].contentDocument||c[0].childNodes),p=u.controller,f=s(u),$=o(u),m=h&&ju(h);if(r[$]=m,p){const t=e(p,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),Bu(i,n,t,r,u)}if(w(u.component)){const t=Mc(u.component),e=new RegExp(`^(x-|data-)?${t}$`,"i"),s=()=>{const t=[].slice.call(c[0].children).filter((t=>t&&t.tagName&&e.exec(t.tagName)));return t&&_t(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(Bu(i,n,t,r,u),o())}))}d(r)}}}}Hu.$inject=["$compile","$controller","$transitions","$view","$q"];let Fu=0;function Bu(t,e,n,r,i){!S(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=bc(i.path).state.self,o={bind:n};if(S(n.uiOnParamsChanged)){const t=new cl(i.path).getResolvable("$transition$").data,a=e=>{if(e===t||-1!==e.exiting().indexOf(s))return;const r=e.params("to"),i=e.params("from"),o=t=>t.paramSchema,a=e.treeChanges("to").map(o).reduce(pc,[]),c=e.treeChanges("from").map(o).reduce(pc,[]),l=a.filter((t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(r[t.id],i[t.id])}));if(l.length){const t=l.map((t=>t.id)),i=cc(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(S(n.uiCanExit)){const i=Fu++,a="_uiCanExitIds",c=t=>!!t&&(t[a]&&!0===t[a][i]||c(t.redirectedFrom())),l=e=>{let r;const s=e[a]=e[a]||{};return c(e)||(r=t.resolve(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}const zu="0.2.2";const Wu=ht("ng"),Gu=ht("$injector"),Ku={};const Yu=new class{constructor(){yt.clear(),this.cache=yt,this.version=zu,this.element=_t,this.bootsrappedModules=[],this.doBootstrap,function(t){t.module("ng",[],["$provide",t=>{t.provider({$$sanitizeUri:No}),t.provider("$compile",fn).directive({input:or,textarea:or,form:En,script:ur,select:pr,option:fr,ngBind:$r,ngBindHtml:gr,ngBindTemplate:mr,ngClass:vr,ngClassEven:br,ngClassOdd:wr,ngCloak:Er,ngController:Cr,ngDisabled:Ko,ngForm:Cn,ngHide:Ar,ngIf:$i,ngInclude:mi,ngInit:yi,ngMessages:Do,ngMessage:Uo,ngMessageExp:qo,ngMessagesInclude:Io,ngMessageDefault:Ho,ngNonBindable:vi,ngRef:bi,ngRepeat:Ei,ngShow:xr,ngStyle:Ci,ngSwitch:Si,ngSwitchWhen:Oi,ngSwitchDefault:xi,ngOptions:_i,ngTransclude:ji,ngModel:Rn,ngList:Ni,ngChange:Vi,pattern:Mi,ngPattern:Mi,required:Di,ngRequired:Di,ngMinlength:Ii,minlength:Ii,ngMaxlength:Li,maxlength:Li,ngValue:lr,ngModelOptions:Tn}).directive({input:ar,ngAnimateSwap:Ia,ngAnimateChildren:Ua,ngChecked:Xo,ngClick:Zo,ngDblclick:ia,ngInclude:gi,ngHide:ea,ngShow:Yo,ngMessages:Qo,ngModel:ra,ngReadonly:na,ngRequired:Jo,ngValue:ta,ngSref:Lu,ngSrefActive:Uu,ngSrefActiveEq:Uu,ngState:Iu,ngView:qu}).directive({ngView:Hu}).directive(Pi).directive(en),t.provider({$aria:Go,$anchorScroll:Hi,$animate:fi,$$animation:Sa,$animateCss:ma,$$animateCssDriver:Pa,$$animateJs:ba,$$animateJsDriver:La,$$animateCache:Ta,$$animateQueue:wa,$$AnimateRunner:Zi,$$animateAsyncRun:Wi,$browser:zi,$cacheFactory:Xi,$controller:Ae,$exceptionHandler:ns,$filter:ds,$interpolate:Bs,$interval:ws,$$intervalFactory:zs,$http:lo,$httpParamSerializer:no,$httpParamSerializerJQLike:ro,$httpBackend:uo,$location:yo,$log:Oo,$parse:Rs,$$rAFScheduler:Oa,$rootScope:Ue,$routerGlobals:Pc,$q:ps,$$q:fs,$sce:tn,$sceDelegate:Xe,$$taskTrackerFactory:xo,$templateCache:ts,$templateRequest:_o,$timeout:jo,$urlConfig:Nc,$view:fl,$transitions:Xl,$state:eu,$ngViewScroll:nu,$templateFactory:ru,$urlService:gu,$stateRegistry:Tu})}]).factory("$stateParams",["$routerGlobals",function(t){return t.params}]).value("$trace",Kc).info({version:zu})}(this)}errorHandlingConfig(t){return ut(t)}bootstrap(t,e,n){n=n||{strictDi:!1};const r=_t(t);if(r.injector())throw Wu("btstrpd","App already bootstrapped");Array.isArray(e)&&(this.bootsrappedModules=e),this.bootsrappedModules.unshift(["$provide",t=>{t.value("$rootElement",r)}]),this.bootsrappedModules.unshift("ng");const i=we(this.bootsrappedModules,n.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){if(t.$apply((()=>{e.data("$injector",r),n(e)(t)})),Za.$injector=r,Za.$q=r.get("$q"),!Object.prototype.hasOwnProperty.call(r,"strictDi"))try{r.invoke((()=>{}))}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get("$stateRegistry").get().map((t=>t.$$state().resolvables)).reduce(pc,[]).filter((t=>"deferred"===t.deps)).forEach((t=>t.deps=Ee(t.resolveFn,r.strictDi)))}]),i}injector(t,e){return we(t,e)}resumeBootstrap(t){return t.forEach((t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}init(t){let e,n;const r={};it.forEach((r=>{const i=`${r}app`;t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),it.forEach((r=>{const i=`${r}app`;let s;!e&&(s=t.querySelector(`[${i.replace(":","\\:")}]`))&&(e=s,n=s.getAttribute(i))})),e&&(r.strictDi=null!==function(t,e){let n,r;const i=it.length;for(r=0;r<i;++r)if(n=it[r]+e,w(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return W(t,"module"),e&&Object.prototype.hasOwnProperty.call(Ku,t)&&(Ku[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(Ku,t,(()=>{if(!e)throw Gu("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new te(t,e,n)}))}};window.angular=Yu,"complete"===document.readyState?Yu.init(document):document.addEventListener("DOMContentLoaded",(()=>{Yu.init(document)})),t.angular=Yu}));
|
|
1
|
+
/* Version: 0.3.0 - September 22, 2024 02:48:53 */
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,(function(t){"use strict";const e="ng-valid",n="ng-invalid",r="ng-pristine",i="ng-dirty",s="ng-untouched",o="ng-touched",a="ng-empty",c="ng-not-empty",l=/^((?:x|data)[-])/i,u=/[-]+(.)/g,h={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},d=ut("ng");let p=0;function f(){return p+=1,p}function $(t){return b(t)?t.toLowerCase():t}function m(t){if(null==t||x(t))return!1;if(Array.isArray(t)||t instanceof Array||b(t))return!0;const e="length"in Object(t)&&t.length;return w(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function g(t){return void 0===t}function v(t){return void 0!==t}function y(t){return null!==t&&"object"==typeof t}function b(t){return"string"==typeof t}function w(t){return"number"==typeof t}function E(t){return"[object Date]"===toString.call(t)}function C(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function S(t){return"function"==typeof t}function O(t){return"[object RegExp]"===toString.call(t)}function x(t){return t&&t.window===t}function A(t){return t&&t.$evalAsync&&t.$watch}function k(t){return"boolean"==typeof t}function _(t){return t&&S(t.then)}function T(t){return b(t)?t.trim():t}function j(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function N(t,e,n){let r,i;if(t)if(S(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else if(Array.isArray(t)||m(t)){const s="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==N)t.forEach(e,n,t);else if(null===(s=t)||"object"!=typeof s||Object.getPrototypeOf(s))for(r in t)Object.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else for(r in t)e.call(n,t[r],r,t);var s;return t}function V(t,...e){return function(t,e,n){const r=t.$$hashKey;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(!y(r)&&!S(r))continue;const i=Object.keys(r);for(let e=0,n=i.length;e<n;e++){const n=i[e],s=r[n];t[n]=s}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,r),t}(t,e)}function R(t){return parseInt(t,10)}function P(t){return Number.isNaN(t)}function D(t,e){return V(Object.create(t),e)}function M(t){return function(){return t}}function L(t){return S(t.toString)&&t.toString!==toString}function I(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function U(t){return $(t.nodeName||t[0]&&t[0].nodeName)}function q(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function H(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function F(t,e){return t===e||t!=t&&e!=e}function B(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,i,s;if(n===typeof e&&"object"===n){if(!Array.isArray(t)){if(E(t))return!!E(e)&&F(t.getTime(),e.getTime());if(O(t))return!!O(e)&&t.toString()===e.toString();if(A(t)||A(e)||x(t)||x(e)||Array.isArray(e)||E(e)||O(e))return!1;for(i in s=Object.create(null),t)if("$"!==i.charAt(0)&&!S(t[i])){if(!B(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&v(e[i])&&!S(e[i]))return!1;return!0}if(!Array.isArray(e))return!1;if((r=t.length)===e.length){for(i=0;i<r;i++)if(!B(t[i],e[i]))return!1;return!0}}return!1}function z(t,e){if("hasOwnProperty"===t)throw d("badname","hasOwnProperty is not a valid {0} name",e)}function W(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!L(t)||Array.isArray(t)||E(t)?Z(t):t.toString()}return t}function G(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function K(t,e){return Array.prototype.slice.call(t,e||0)}function Y(t,e){const n=arguments.length>2?K(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,G(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Q(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:x(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":A(e)&&(n="$SCOPE"),n}function Z(t,e){if(!g(t))return w(e)||(e=e?2:null),JSON.stringify(t,Q,e)}function J(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return P(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(i-r))}function X(t){const e={};return(t||"").split("&").forEach((t=>{let n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=tt(r),v(r)&&(i=!v(i)||tt(i),Object.hasOwnProperty.call(e,r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function tt(t){try{return decodeURIComponent(t)}catch(t){}}function et(t){return nt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function nt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const rt=["ng-","data-ng-"];function it(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(y(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function st(t,e="Assertion failed"){if(!t)throw new Error(e)}function ot(t,e,n){if(!t)throw d("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function at(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),ot(S(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const ct={objectMaxDepth:5,urlErrorParamsEnabled:!0};function lt(t){var e;return y(t)&&(v(t.objectMaxDepth)&&(ct.objectMaxDepth=w(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),v(t.urlErrorParamsEnabled)&&k(t.urlErrorParamsEnabled)&&(ct.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),ct}function ut(t){const e='https://errors.angularjs.org/"NG_VERSION_FULL"/',n=`${e.replace(".","\\.")}[\\s\\S]*`,r=new RegExp(n,"g");return function(...n){const i=n[0],s=n[1];let o=`[${t?`${t}:`:""}${i}] `;const a=K(n,2).map((t=>ht(t)));let c,l;if(o+=s.replace(/\{\d+\}/g,(t=>{const e=+t.slice(1,-1);return e<a.length?a[e].replace(r,""):t})),o+=`\n${e}${t?`${t}/`:""}${i}`,lt().urlErrorParamsEnabled)for(l=0,c="?";l<a.length;l++,c="&")o+=`${c}p${l}=${encodeURIComponent(a[l])}`;return new Error(o)}}function ht(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(g(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(t);return JSON.stringify(n,((t,n)=>{const r=Q(t,n);if(y(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function dt(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${f()}`,t.$$hashKey):`${n}:${t}`}function pt(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function ft(t){return t.replace(l,"").replace(u,((t,e,n)=>n?e.toUpperCase():e))}function $t(t){return function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;const n=t;return"true"===n.dataset[e]||"true"===n.getAttribute(e)}(t,"animate")}const mt="ngId",gt=new Proxy(new Map,{get:(t,e,n)=>"size"===e?t.size:"function"==typeof t[e]?function(...n){return t[e].apply(t,n)}:Reflect.get(t,e,n),set:(t,e,n,r)=>Reflect.set(t,e,n,r),deleteProperty:(t,e)=>Reflect.deleteProperty(t,e),has:(t,e)=>Reflect.has(t,e),ownKeys:t=>Reflect.ownKeys(t),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e)});let vt=1;const yt=/-([a-z])/g,bt=/_([a-z])/g,wt={mouseleave:"mouseout",mouseenter:"mouseover"},Et=ut("jqLite"),Ct=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,St=/<([\w:-]+)/,Ot={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};Ot.tbody=Ot.tfoot=Ot.colgroup=Ot.caption=Ot.thead,Ot.th=Ot.td;const xt={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{xt[$(t)]=t}));const At={};function kt(t){if(t instanceof kt)return t;let e=!1;if(b(t)&&(t=t.trim(),e=!0),!(this instanceof kt)){if(e&&"<"!==t.charAt(0))throw Et("nosel","Looking up elements via selectors is not supported by JQLite! See: http://docs.angularjs.org/api/angular.element");return new kt(t)}if(e){Ut(this,function(t){let e=Ct.exec(t);if(e)return[document.createElement(e[1])];let n=Dt(t);if(n)return n.childNodes;return[]}(t))}else S(t)?function(t){function e(){document.removeEventListener("DOMContentLoaded",e),t()}"complete"===document.readyState?setTimeout(t):document.addEventListener("DOMContentLoaded",e)}(t):Ut(this,t)}function _t(t,e){return e.toUpperCase()}function Tt(t){return t.replace(yt,_t)}function jt(t){return t.replace(bt,_t)}function Nt(t,e){const n=t[mt],r=n&>.get(n);r&&(e?delete r.data[e]:r.data={},Lt(t))}function Vt(t,e=!1){let n=t[mt],r=n&>.get(n);return e&&!r&&(t[mt]=n=++vt,r={events:{},data:{},handle:null},gt.set(n,r)),r}function Rt(t){return!/<|&#?\w+;/.test(t)}function Pt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Dt(t){let e,n,r,i,s=document.createDocumentFragment(),o=[];if(Rt(t))o.push(document.createTextNode(t));else{for(e=s.appendChild(document.createElement("div")),n=(St.exec(t)||["",""])[1].toLowerCase(),r=Ot[n]||[],i=r.length;--i>-1;)e.appendChild(document.createElement(r[i])),e=e.firstChild;e.innerHTML=t,o=G(o,e.childNodes),e=s.firstChild,e.textContent=""}let a=document.createDocumentFragment();return a.append(...o),a}function Mt(t,e){t&&(!e&&Pt(t)&&Yt([t]),t.querySelectorAll&&Yt(t.querySelectorAll("*")))}function Lt(t){const e=t[mt],{events:n,data:r}=gt.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||(gt.delete(e),t[mt]=void 0)}function It(t,e,n){if(Pt(t)){let r;const i=v(n),s=!i&&e&&!y(e),o=!e,a=Vt(t,!s),c=a&&a.data;if(i)c[Tt(e)]=n;else{if(o)return c;if(s)return c&&c[Tt(e)];for(r in e)c[Tt(r)]=e[r]}}}function Ut(t,e){if(!e)return;if(e.nodeType)return void(t[t.length++]=e);const n=e.length;if("number"==typeof n&&e.window!==e)for(let r=0;r<n;r++)t[t.length++]=e[r];else t[t.length++]=e}function qt(t,e,n){t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);const r=Array.isArray(e)?e:[e];for(;t;){for(let e=0,i=r.length;e<i;e++)if(v(n=It(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Ht(t,e=!1){e||Mt(t);const n=t.parentNode;n&&n.removeChild(t)}function Ft(t,e){const n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};let i=e[r||n.type];const s=i?i.length:0;if(!s)return;if(g(n.immediatePropagationStopped)){const t=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),t&&t.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};const o=i.specialHandlerWrapper||Bt;s>1&&(i=it(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])};return n.elem=t,n}function Bt(t,e,n){n.call(t,e)}function zt(t,e,n){const r=e.relatedTarget;r&&(r===t||t.contains(r))||n.call(t,e)}function Wt(t){const e=kt(t)[0].cloneNode(!0),n=kt(e).empty(),r=kt("<div></div>").append(n[0]).html();try{return n[0].nodeType===Node.TEXT_NODE?$(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+$(e)}))}catch(t){return $(r)}}function Gt(t){let e=t[0];const n=t[t.length-1];let r;for(let i=1;e!==n&&(e=e.nextSibling);i++)(r||t[i]!==e)&&(r||(r=Array.prototype.slice.call(t,0,i)),r.push(e));return kt(r||t)}function Kt(t,e){const n=xt[e.toLowerCase()];return n&&At[U(t)]&&n}function Yt(t){for(let e=0,n=t.length;e<n;e++){const n=(gt.get(t[e][mt])||{}).events;n&&n.$destroy&&kt(t[e]).triggerHandler("$destroy"),Nt(t[e]),kt.prototype.off.call(kt(t[e]))}}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{At[t]=!0})),kt.prototype={toString(){const t=[];return N(this,(e=>{t.push(`${e}`)})),`[${t.join(", ")}]`},eq(t){return kt(t>=0?this[t]:this[this.length+t])},length:0},kt.prototype.elements=function(){let t=[];for(let e=0;e<this.length;e++)t.push(this[e]);return t},kt.prototype.empty=function(){for(let t=0;t<this.length;t++){const e=this[t];Mt(e,!0),[Node.ELEMENT_NODE,Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(e.nodeType)&&e.replaceChildren()}return this},kt.prototype.scope=function(){return It(this[0],"$scope")||qt(this[0].parentNode||this[0],["$isolateScope","$scope"])},kt.prototype.isolateScope=function(){return It(this[0],"$isolateScope")||It(this[0],"$isolateScopeNoTemplate")},kt.prototype.controller=function(t){return function(t,e){return qt(t,`$${e||"ngController"}Controller`)}(this[0],t)},kt.prototype.injector=function(){return qt(this[0],"$injector")},kt.prototype.on=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];if(!Pt(r))return;const i=Vt(r,!0);i.handle||(i.handle=Ft(r,i.events));const s=t.indexOf(" ")>=0?t.split(" "):[t];let o=s.length;const a=function(t,n,s){let o=i.events[t];o||(o=i.events[t]=[],o.specialHandlerWrapper=n,"$destroy"===t||s||r.addEventListener(t,i.handle)),o.push(e)};for(;o--;)t=s[o],wt[t]?(a(wt[t],zt),a(t,void 0,!0)):a(t)}return this},kt.prototype.off=function(t,e){for(let n=0;n<this.length;n++){const r=this[n],i=Vt(r),s=i&&i.events,o=i&&i.handle;if(!o)return;if(t){const n=function(t){const n=s[t];v(e)&&Array.isArray(n)&&H(n,e),v(e)&&n&&n.length>0||(r.removeEventListener(t,o),delete s[t])};N(t.split(" "),(t=>{n(t),wt[t]&&n(wt[t])}))}else for(t in s)"$destroy"!==t&&r.removeEventListener(t,o),delete s[t];Lt(r)}return this},kt.prototype.removeData=function(t){for(let e=0;e<this.length;e++){Nt(this[e],t)}return this},kt.prototype.inheritedData=function(t,e){for(let n=0;n<this.length;n++){let n=qt(this[0],t,e);return e?this:n}},kt.prototype.html=function(t){const e=this[0];if(e)return g(t)?e.innerHTML:(Mt(e,!0),e.innerHTML=t,this)},kt.prototype.text=function(t){let e="";for(let n=0;n<this.length;n++){const r=this[n];if(g(t)){const{nodeType:t}=r;e+=t===Node.ELEMENT_NODE||t===Node.TEXT_NODE?r.textContent:""}else r.textContent=t}return g(t)?e:this},kt.prototype.val=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(g(t)){if(n.multiple&&"select"===U(n)){const t=[];return N(n.options,(e=>{e.selected&&t.push(e.value||e.text)})),t}return n.value}return n.value=t,this}},kt.prototype.attr=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];let i;const{nodeType:s}=r;if(s===Node.TEXT_NODE||s===Node.ATTRIBUTE_NODE||s===Node.COMMENT_NODE||!r.getAttribute)continue;const o=$(t),a=xt[o];if(y(t))for(let e in t)r.setAttribute(e,a?o:t[e]);else{if(!v(e))return i=r.getAttribute(t),a&&null!==i&&(i=o),null===i?void 0:i;null===e||!1===e&&a?r.removeAttribute(t):r.setAttribute(t,a?o:e)}}if(v(e)||y(t))return this},kt.prototype.data=function(t,e){let n;const r=this.length;if(g(e)){if(y(t)){for(n=0;n<r;n++)It(this[n],t);return this}const i=g(e)?Math.min(r,1):r;for(let n=0;n<i;n++){const r=It(this[n],t,e);e=e?e+r:r}return e}for(n=0;n<r;n++)It(this[n],t,e);return this},kt.prototype.replaceWith=function(t){let e,n=function(t,e){let n;const r=t.parentNode;Mt(t),N(new kt(e),(e=>{n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))};for(let r=0;r<this.length;r++)Ut(e,n(this[r],t));return v(e)?e:this},kt.prototype.children=function(){let t;for(let n=0;n<this.length;n++)t=kt((e=this[n],Array.from(e.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE))));var e;return v(t)?t:this},kt.prototype.append=function(t){for(let e=0;e<this.length;e++){const n=this[e],{nodeType:r}=n;if(r!==Node.ELEMENT_NODE&&r!==Node.DOCUMENT_FRAGMENT_NODE)return this;let i=new kt(t);for(let t=0;t<i.length;t++){const e=i[t];n.appendChild(e)}}return this},kt.prototype.prepend=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(n.nodeType===Node.ELEMENT_NODE){const e=n.firstChild;N(new kt(t),(t=>{n.insertBefore(t,e)}))}}return this},kt.prototype.after=function(t){for(let e=0;e<this.length;e++){const n=this[e];let r=n;const i=n.parentNode;if(i){let e=new kt(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];i.insertBefore(n,r.nextSibling),r=n}}}return this},kt.prototype.remove=function(t=!1){for(let e=0;e<this.length;e++){Ht(this[e],t)}return this},kt.prototype.detach=function(){for(let t=0;t<this.length;t++){Ht(this[t],!0)}return this},kt.prototype.parent=function(){let t,e=t=>{const e=t.parentNode;return e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e:null};for(let n=0,r=this.length;n<r;n++)g(t)?(t=e(this[n]),v(t)&&(t=kt(t))):Ut(t,e(this[n]));return v(t)?t:this},kt.prototype.find=function(t){let e;for(let n=0,r=this.length;n<r;n++){const r=this[n];g(e)?(e=r.getElementsByTagName?r.getElementsByTagName(t):[],v(e)&&(e=kt(e))):r.getElementsByTagName&&Ut(e,r.getElementsByTagName(t))}return v(e)?e:this},kt.prototype.triggerHandler=function(t,e){let n,r=function(t,e,n){let r,i,s;const o=e.type||e,a=Vt(t),c=a&&a.events,l=c&&c[o];l&&(r={preventDefault(){this.defaultPrevented=!0},isDefaultPrevented(){return!0===this.defaultPrevented},stopImmediatePropagation(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped(){return!0===this.immediatePropagationStopped},stopPropagation:()=>{},type:o,target:t},e.type&&(r=V(r,e)),i=it(l),s=n?[r].concat(n):[r],N(i,(e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))};for(let i=0,s=this.length;i<s;i++)g(n)?r(this[i],t,e):Ut(n,r(this[i],t,e));return v(n)?n:this};const Qt="$provide",Zt="$injector",Jt="$compileProvider";class Xt{constructor(t,e,n){st(b(t),"name required"),st(Array.isArray(e),"requires array required"),this.name=t,this.requires=e,this.invokeQueue=[],this.configBlocks=[],this.runBlocks=[],this.infoState={},n&&this.config(n)}info(t){return v(t)?(st(y(t),"module info value must be an object"),this.infoState=t,this):this.infoState}value(t,e){return this.invokeQueue.push([Qt,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([Qt,"constant",[t,e]]),this}config(t){return this.configBlocks.push([Zt,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Jt,"component",[t,e]]),this}factory(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Qt,"factory",[t,e]]),this}service(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Qt,"service",[t,e]]),this}provider(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Qt,"provider",[t,e]]),this}decorator(t,e){return e&&S(e)&&(e.$$moduleName=t),this.configBlocks.push([Qt,"decorator",[t,e]]),this}directive(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push([Jt,"directive",[t,e]]),this}animation(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&S(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const te=/^([^(]+?)=>/,ee=/^[^(]*\(\s*([^)]*)\)/m,ne=/,/,re=/^\s*(_?)(\S+?)\1\s*$/,ie=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,se=ut(Zt),oe="Provider",ae=!0;class ce{constructor(t){this.cache={},this.strictDi=t,this.path=[],this.modules={}}get(t){if(Object.prototype.hasOwnProperty.call(this.cache,t)){if(this.cache[t]===ae)throw se("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=ae;try{this.cache[t]=this.factory(t)}catch(e){throw delete this.cache[t],e}return this.cache[t]}injectionArgs(t,e,n){const r=[],i=function(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw se("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=function(t){const e=he(t).replace(ie,""),n=e.match(te)||e.match(ee);return n}(t),i[1].split(ne).forEach((function(t){t.replace(re,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,at(t[s],"fn"),r=t.slice(0,s)):at(t,"fn",!0);return r}(t,this.strictDi,n);for(let t=0,{length:n}=i;t<n;t++){const n=i[t];if("string"!=typeof n)throw se("itkn","Incorrect injection token! Expected service name as string, got {0}",n);r.push(e&&Object.prototype.hasOwnProperty.call(e,n)?e[n]:this.get(n))}return r}invoke(t,e,n,r){"string"==typeof n&&(r=n,n=null);const i=this.injectionArgs(t,n,r);return Array.isArray(t)&&(t=t[t.length-1]),/^class\b/.test(he(t))?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)}instantiate(t,e,n){const r=Array.isArray(t)?t[t.length-1]:t,i=this.injectionArgs(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))}loadNewModules(){}factory(t){console.error(`Unhandled ${t}`)}}class le extends ce{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),se("unpr","Unknown provider: {0}",this.path.join(" <- "))}}class ue extends ce{constructor(t,e){super(t),this.providerInjector=e,this.modules=this.providerInjector.modules}factory(t){const e=this.providerInjector.get(t+oe);return this.invoke(e.$get,e,void 0,t)}has(t){const e=Object.prototype.hasOwnProperty.call(this.providerInjector.cache,t+oe),n=Object.prototype.hasOwnProperty.call(this.cache,t);return e||n}}function he(t){return Function.prototype.toString.call(t)}const de=/^([^(]+?)=>/,pe=/^[^(]*\(\s*([^)]*)\)/m,fe=/,/,$e=/^\s*(_?)(\S+?)\1\s*$/,me=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ge=ut(Zt),ve="Provider";function ye(t,e=!1){st(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:Ee(c),factory:Ee(l),service:Ee((function(t,e){return l(t,[Zt,t=>t.instantiate(e)])})),value:Ee((function(t,e){return r[t+ve]={$get:()=>e}})),constant:Ee((function(t,e){z(t,"constant"),i.cache[t]=e,s.cache[t]=e})),decorator:function(t,e){const n=i.get(t+ve),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},i=r.$injector=new le(r,e),s=new ue(e,i);r.$injectorProvider={$get:()=>s};let o=s;const a=u(t);return o=s.get(Zt),a.forEach((t=>{t&&o.invoke(t)})),o.loadNewModules=function(t){u(t).forEach((t=>{t&&o.invoke(t)}))},o;function c(t,e){let n;if(z(t,"service"),n=S(e)||Array.isArray(e)?i.instantiate(e):e,!n.$get)throw ge("pget","Provider '{0}' must define $get factory method.",t);return r[t+ve]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(g(n))throw ge("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){ot(g(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach((t=>{if(!n.get(t)){n.set(t,!0);try{if(b(t)){const n=window.angular.module(t);o.modules[t]=n,e=e.concat(u(n.requires)).concat(n.runBlocks);n.invokeQueue.concat(n.configBlocks).forEach((t=>{const e=i.get(t[0]);e[t[1]].apply(e,t[2])}))}else S(t)||Array.isArray(t)?e.push(i.invoke(t)):at(t,"module")}catch(e){throw Array.isArray(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e.message=`${e.message}\n${e.stack}`),ge("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}})),e}}function be(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(me,"");return e.match(de)||e.match(pe)}function we(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ge("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=be(t),i[1].split(fe).forEach((function(t){t.replace($e,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,at(t[s],"fn"),r=t.slice(0,s)):at(t,"fn",!0);return r}function Ee(t){return function(e,n){if(!y(e))return t(e,n);Object.entries(e).forEach((([e,n])=>{t(e,n)}))}}const Ce=ut("$controller"),Se=/^(\S+)(\s+as\s+([\w$]+))?$/;function Oe(t,e){if(b(t)){const e=Se.exec(t);if(e)return e[3]}}class xe{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){z(t,"controller"),y(t)?Object.entries(t).forEach((([t,e])=>{this.controllers.set(t,e)})):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,i)=>{let s,o,a,c=i&&b(i)?i:null;if(r=!0===r,b(e)){if(o=e.match(Se),!o)throw Ce("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw Ce("ctrlreg","The controller with the name '{0}' is not registered.",a);at(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return s=Object.create(r||null),c&&this.addIdentifier(n,c,s,a||e.name),function(){const r=t.invoke(e,s,n,a);return r!==s&&(y(r)||S(r))&&(s=r,c&&this.addIdentifier(n,c,s,a||e.name)),s}.bind(this,{instance:s,identifier:c})}return s=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,s,a||e.name),s}];addIdentifier(t,e,n,r){if(!t||!y(t.$scope))throw ut("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const Ae={NONE:0,APPLY:1,DIGEST:2},ke=ut("$rootScope"),_e=[],Te=[],je=[];let Ne,Ve,Re,Pe,De=0,Me=null,Le=null;class Ie{constructor(){Pe=new Ue}$get=["$exceptionHandler","$parse","$browser",function(t,e,n){return Re=t,Ne=e,Ve=n,Pe}]}class Ue{constructor(){this.$id=f(),this.$$phase=Ae.NONE,this.$parent=null,this.$root=this,this.$$watchers=[],this.$$digestWatchIndex=-1,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null,this.$$ChildScope=null}$new(t,e){let n;return t?(n=new Ue,n.$root=Pe):(n=Object.create(this),n.$id=f(),n.$$watchers=[],n.$$nextSibling=null,n.$$childHead=null,n.$$childTail=null,n.$$listeners={},n.$$listenerCount={},n.$$watchersCount=0,n.$$ChildScope=null,n.$$suspended=!1),n.$parent=e||this,n.$$prevSibling=n.$parent.$$childTail,n.$parent.$$childHead?(n.$parent.$$childTail.$$nextSibling=n,n.$parent.$$childTail=n):(n.$parent.$$childHead=n,n.$parent.$$childTail=n),(t||e!==this)&&n.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),n}$watch(t,e,n){const r=Ne(t),i=S(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s={fn:i,last:qe,get:r,exp:t,eq:!!n};return Me=null,0===this.$$watchers.length&&(this.$$digestWatchIndex=-1),this.$$watchers.unshift(s),this.$$digestWatchIndex++,this.incrementWatchersCount(1),()=>{const t=H(this.$$watchers,s);t>=0&&(this.incrementWatchersCount(-1),t<this.$$digestWatchIndex&&this.$$digestWatchIndex--),Me=null}}$watchGroup(t,e){const n=new Array(t.length),r=new Array(t.length),i=[],s=this;let o=!1,a=!0;if(!t.length){let t=!0;return s.$evalAsync((()=>{t&&e(r,r,s)})),function(){t=!1}}if(1===t.length)return this.$watch(t[0],((t,i,s)=>{r[0]=t,n[0]=i,e(r,t===i?r:n,s)}));function c(){o=!1;try{a?(a=!1,e(r,r,s)):e(r,n,s)}finally{for(let e=0;e<t.length;e++)n[e]=r[e]}}return N(t,((t,e)=>{const n=s.$watch(t,(t=>{r[e]=t,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){p.$$pure=Ne(t).literal,p.$stateful=!p.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=Ne(t,p),l=[];let u={},h=!0,d=0;function p(t){let e,n,s,o,c;if(r=t,!g(r)){if(y(r))if(m(r)){i!==l&&(i=l,d=i.length=0,a++),e=r.length,d!==e&&(a++,i.length=d=e);for(let t=0;t<e;t++)c=i[t],o=r[t],s=c!=c&&o!=o,s||c===o||(a++,i[t]=o)}else{for(n in i!==u&&(i=u={},d=0,a++),e=0,r)Object.hasOwnProperty.call(r,n)&&(e++,o=r[n],c=i[n],n in i?(s=c!=c&&o!=o,s||c===o||(a++,i[n]=o)):(d++,i[n]=o,a++));if(d>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(d--,delete i[n])}else i!==r&&(i=r,a++);return a}}return this.$watch(c,(function(){if(h?(h=!1,e(r,r,n)):e(r,s,n),o)if(y(r))if(m(r)){s=new Array(r.length);for(let t=0;t<r.length;t++)s[t]=r[t]}else{s={};for(const t in r)Object.hasOwnProperty.call(r,t)&&(s[t]=r[t])}else s=r}))}$digest(){let t,e,n,r,i,s,o,a,c,l=10;const u=_e.length?this.$root:this,h=[];let d,p;this.beginPhase(Ae.DIGEST),Ve.$$checkUrlChange(),this===this.$root&&null!==Le&&(Ve.cancel(Le),He(),Le=null),Me=null;do{o=!1,c=u;for(let t=0;t<_e.length;t++){try{p=_e[t],r=p.fn,r(p.scope,p.locals)}catch(t){Re(t)}Me=null}_e.length=0;do{if(s=!c.$$suspended&&c.$$watchers)for(c.$$digestWatchIndex=s.length;c.$$digestWatchIndex--;)try{if(t=s[c.$$digestWatchIndex],t)if(i=t.get,(e=i(c))===(n=t.last)||(t.eq?B(e,n):P(e)&&P(n))){if(t===Me){o=!1;break}}else o=!0,Me=t,t.last=t.eq?structuredClone(e):e,r=t.fn,r(e,n===qe?e:n,c),l<5&&(d=4-l,h[d]||(h[d]=[]),h[d].push({msg:S(t.exp)?`fn: ${t.exp.name||t.exp.toString()}`:t.exp,newVal:e,oldVal:n}))}catch(t){Re(t)}if(!(a=!c.$$suspended&&c.$$watchersCount&&c.$$childHead||c!==u&&c.$$nextSibling))for(;c!==u&&!(a=c.$$nextSibling);)c=c.$parent}while(c=a);if((o||_e.length)&&!l--)throw this.clearPhase(),ke("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",10,h)}while(o||_e.length);for(this.clearPhase();De<Te.length;)try{Te[De++]()}catch(t){Re(t)}Te.length=De=0,Ve.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase!==Ae.NONE)throw ke("inprog","digest already in progress",this.$root.$$phase);this.$root.$$phase=t}$suspend(){this.$$suspended=!0}$isSuspended(){return this.$$suspended}$resume(){this.$$suspended=!1}$destroy(){if(!this.$$destroyed){this.$broadcast("$destroy"),this.$$destroyed=!0,this===this.$root&&Ve.$$applicationDestroyed(),this.incrementWatchersCount(-this.$$watchersCount);for(const t in this.$$listenerCount)this.decrementListenerCount(this.$$listenerCount[t],t);this.$parent&&(this.$parent.$$childHead===this&&(this.$parent.$$childHead=this.$$nextSibling),this.$parent.$$childTail===this&&(this.$parent.$$childTail=this.$$prevSibling)),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$applyAsync=()=>{},this.$evalAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners={},this.$$nextSibling=null,this.$parent=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$root=null,this.$$watchers=null}}$eval(t,e){return Ne(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase!==Ae.NONE||_e.length||(n=Ve.defer((()=>{_e.length&&this.$root.$digest()}),null,"$evalAsync")),_e.push({scope:this,fn:Ne(t),locals:e}),n}$$postDigest(t){Te.push(t)}$apply(t){try{this.beginPhase(Ae.APPLY);try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Re(t)}finally{this.retry()}}retry(){try{this.$root.$digest()}catch(t){throw Re(t),t}}clearPhase(){this.$root.$$phase=Ae.NONE}$applyAsync(t){const e=this;t&&je.push((()=>e.$eval(t))),null===Le&&(Le=Ve.defer(He,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);let r=this;do{r.$$listenerCount[t]=(r.$$listenerCount[t]??0)+1}while(r=r.$parent);return()=>{const r=n.indexOf(e);-1!==r&&(delete n[r],this.decrementListenerCount(1,t))}}incrementWatchersCount(t){this.$$watchersCount+=t,this.$parent&&this.$parent.incrementWatchersCount(t)}decrementListenerCount(t,e){let n=this;for(;n;n=n.$parent)void 0!==n.$$listenerCount[e]&&(n.$$listenerCount[e]-=t,0===n.$$listenerCount[e]&&delete n.$$listenerCount[e])}$emit(t,...e){const n=[];let r,i=this,s=!1;const o={name:t,targetScope:i,stopPropagation(){s=!0},preventDefault(){o.defaultPrevented=!0},defaultPrevented:!1},a=G([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners[t]||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Re(t)}else r.splice(c,1),c--,l--;if(s)break;i=i.$parent}while(i);return o.currentScope=null,o}$broadcast(t,...e){const n=this;let r=n,i=n;const s={name:t,targetScope:n,preventDefault(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;const o=G([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners[t]||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Re(t)}else a.splice(c,1),c--,l--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r&&r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}}function qe(){}function He(){for(;je.length;)try{je.shift()()}catch(t){Re(t)}Le=null}const Fe=document.createElement("a"),Be=We(window.location.href);let ze;function We(t){if(!b(t))return t;const e=t;Fe.setAttribute("href",e);let{hostname:n}=Fe;return!("[::1]"===Fe.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:Fe.href,protocol:Fe.protocol?Fe.protocol.replace(/:$/,""):"",host:Fe.host,search:Fe.search?Fe.search.replace(/^\?/,""):"",hash:Fe.hash?Fe.hash.replace(/^#/,""):"",hostname:n,port:Fe.port,pathname:"/"===Fe.pathname.charAt(0)?Fe.pathname:`/${Fe.pathname}`}}function Ge(t){return Ke(t,function(){if(document.baseURI)return document.baseURI;ze||(ze=document.createElement("a"),ze.href=".",ze=ze.cloneNode(!1));return ze.href}())}function Ke(t,e){return t=We(t),e=We(e),t.protocol===e.protocol&&t.host===e.host}Fe.href="http://[::1]";const Ye=ut("$sce"),Qe={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ze(t){if("self"===t)return t;if(b(t)){if(t.indexOf("***")>-1)throw Ye("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(O(t))return new RegExp(`^${t.source}$`);throw Ye("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Je(){this.SCE_CONTEXTS=Qe;let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map((t=>Ze(t)))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map((t=>Ze(t)))),e},this.$get=["$injector","$$sanitizeUri",function(n,r){let i=function(){throw Ye("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?Ke(e,Be)||Ge(e):!!t.exec(e.href)}function o(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const a=o(),c={};return c[Qe.HTML]=o(a),c[Qe.CSS]=o(a),c[Qe.MEDIA_URL]=o(a),c[Qe.URL]=o(c[Qe.MEDIA_URL]),c[Qe.JS]=o(a),c[Qe.RESOURCE_URL]=o(c[Qe.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw Ye("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||g(e)||""===e)return e;if("string"!=typeof e)throw Ye("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||g(o)||""===o)return o;const a=Object.prototype.hasOwnProperty.call(c,n)?c[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(S(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Qe.MEDIA_URL||n===Qe.URL)return r(o.toString(),n===Qe.MEDIA_URL);if(n===Qe.RESOURCE_URL){if(function(n){const r=We(n.toString());let i,o,a=!1;for(i=0,o=t.length;i<o;i++)if(s(t[i],r)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(s(e[i],r)){a=!1;break}return a}(o))return o;throw Ye("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Qe.HTML)return i();throw Ye("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function Xe(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=it(Qe);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=function(t,n){const i=e(n);return i.literal&&i.constant?i:e(n,(e=>r.getTrusted(t,e)))};const i=r.parseAs,{getTrusted:s}=r,{trustAs:o}=r;return N(Qe,((t,e)=>{const n=$(e);r[jt(`parse_as_${n}`)]=function(e){return i(t,e)},r[jt(`get_trusted_${n}`)]=function(e){return s(t,e)},r[jt(`trust_as_${n}`)]=function(e){return o(t,e)}})),r}]}const tn={},en={blur:!0,focus:!0};function nn(t,e,n,r,i,s){return{restrict:"A",compile(o,a){const c=t(a[r]);return function(t,r){r.on(i,(r=>{const i=function(){c(t,{$event:r})};if(e.$$phase===Ae.NONE)t.$apply(i);else if(s)t.$evalAsync(i);else try{i()}catch(t){n(t)}}))}}}}"click dblclick submit focus blur copy cut paste".split(" ").forEach((t=>{const e=ft(`ng-${t}`);tn[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>nn(n,r,i,e,t,en[t])]}));const rn=ut("$compile"),sn=/^\w/,on=document.createElement("div");class an{constructor(t,e,n,r,i,s){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,s){const t=Object.keys(s);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=s[n]}}else this.$attr={};this.$$element=i}$normalize=ft;$addClass(t){t&&t.length>0&&this.$animate.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&this.$animate.removeClass(this.$$element,t)}$updateClass(t,e){const n=cn(t,e);n&&n.length&&this.$animate.addClass(this.$$element,n);const r=cn(e,t);r&&r.length&&this.$animate.removeClass(this.$$element,r)}$set(t,e,n,r){const i=Kt(this.$$element[0],t),s=h[t];let o=t;i?(this.$$element[0][t]=e,r=i):s&&(this[s]=e,o=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=j(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n&&(null===e||g(e)?this.$$element[0].removeAttribute(r):sn.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):this.setSpecialAttr(this.$$element[0],r,e));const{$$observers:a}=this;a&&N(a[o],(t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),this.$rootScope.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||g(this[t])||e(this[t])})),function(){H(r,e)}}setSpecialAttr(t,e,n){on.innerHTML=`<span ${e}>`;const{attributes:r}=on.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}sanitizeSrcset(t,e){if(!t)return t;if(!b(t))throw rn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=T(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=this.$sce.getTrustedMediaUrl(T(s[c])),n+=" "+T(s[c+1])}var l=T(s[2*a]).split(/\s/);return n+=this.$sce.getTrustedMediaUrl(T(l[0])),2===l.length&&(n+=" "+T(l[1])),n}}function cn(t,e){let n="";const r=t.split(/\s+/),i=e.split(/\s+/);t:for(let t=0;t<r.length;t++){const e=r[t];for(let t=0;t<i.length;t++)if(e===i[t])continue t;n+=(n.length>0?" ":"")+e}return n}let ln=10;const un=ut("$compile"),hn=new Object,dn=["ngIf","ngRepeat"];function pn(t,e){const n={},r="Directive",i={ngSrc:!0,ngSrcset:!0,src:!0,srcset:!0},s=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,o=/^(on[a-z]+|formaction)$/,a=Object.create(null);function c(t,e,n){const r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Object.create(null);return N(t,((t,s)=>{if((t=t.trim())in a)return void(i[s]=a[t]);const o=t.match(r);if(!o)throw un("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,s,t,n?"controller bindings definition":"isolate scope definition");i[s]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||s},o[4]&&(a[t]=i[s])})),i}function u(t,e){const n={isolateScope:null,bindToController:null};if(y(t.scope)&&(!0===t.bindToController?(n.bindToController=c(t.scope,e,!0),n.isolateScope={}):n.isolateScope=c(t.scope,e,!1)),y(t.bindToController)&&(n.bindToController=c(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw un("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return ot(i,"name"),z(i,"directive"),b(i)?(!function(t){const e=t.charAt(0);if(!e||e!==$(e))throw un("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw un("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),ot(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return n[i].forEach(((n,o)=>{try{let e=t.invoke(n);S(e)?e={compile:M(e)}:!e.compile&&e.link&&(e.compile=M(e.link)),e.priority=e.priority||0,e.index=o,e.name=e.name||i,e.require=function(t){const e=t.require||t.controller&&t.name;return!Array.isArray(e)&&y(e)&&Object.entries(e).forEach((([t,n])=>{const r=n.match(s);n.substring(r[0].length)||(e[t]=r[0]+t)})),e}(e),e.restrict=function(t,e){if(t&&(!b(t)||!/[EA]/.test(t)))throw un("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,i),e.$$moduleName=n.$$moduleName,r.push(e)}catch(t){e(t)}})),r}])),n[i].push(o)):Object.entries(i).forEach((([t,n])=>e(t,n))),this},this.component=function(t,e){if(!b(t))return Object.entries(t).forEach((([t,e])=>this.component(t,e))),this;const n=e.controller||function(){};function r(t){function r(e){return S(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const i=e.template||e.templateUrl?e.template:"",s={controller:n,controllerAs:Oe(e.controller)||e.controllerAs||"$ctrl",template:r(i),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(s[t]=e)})),s}return N(e,((t,e)=>{"$"===e.charAt(0)&&(r[e]=t,S(n)&&(n[e]=t))})),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){return v(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return v(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let h=!1;this.strictComponentBindingsEnabled=function(t){return v(t)?(h=t,this):h};const d=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in d&&d[r]!==n)throw un("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,d[r],n);return d[r]=n,this},function(){function t(t,e){e.forEach((e=>{d[e.toLowerCase()]=t}))}t(Qe.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Qe.CSS,["*|style"]),t(Qe.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Qe.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Qe.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,a,c,p,f,$,m,v){let w;function E(){try{if(! --ln)throw w=void 0,un("infchng","{0} $onChanges() iterations reached. Aborting!\n",ln);$.$apply((()=>{for(let t=0,e=w.length;t<e;++t)try{w[t]()}catch(t){a(t)}w=void 0}))}finally{ln++}}const O=e.startSymbol(),x=e.endSymbol(),_="{{"===O&&"}}"===x?t=>t:function(t){return t.replace(/\{\{/g,O).replace(/}}/g,x)},j=/^ng(Attr|Prop|On)([A-Z].*)$/,R=/^(.+)Start$/;return P;function P(t,e,n,r,i){let s=kt(t),o=M(s,e,s,n,r,i),a=null;return function(t,e,n){if(!s)throw un("multilink","This element has already been linked.");ot(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),a||(a=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==U(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),"html"!==a)r=kt(rt(a,kt("<div></div>").append(s).html()));else if(e){r=new kt(s.elements().map((t=>t.cloneNode(!0))))}else r=s;if(c)for(const t in c)r.data(`$${t}Controller`,c[t].instance);return e&&e(r,t),o&&o(t,r,r,l),e||(s=o=null),r}}function M(t,e,n,r,i,s){const o=[];let c,l;var u;let h,d,p,f;for(let g=0;g<t.length;g++)c=new an($,v,a,m),l=I(t[g],[],c,0===g?r:void 0,i),d=(u=l.length?W(l,t[g],c,e,n,null,[],[],s):null)&&u.terminal||!(h=t[g].childNodes)||!h.length?null:M(h,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:e),(u||d)&&(o.push(g,u,d),p=!0,f=f||u),s=null;return p?function(t,n,r,i){let s,a,c,l,u,h,d,p,$;if(f)for($=new Array(n.length),u=0;u<o.length;u+=3)d=o[u],$[d]=n[d];else $=n;for(u=0,h=o.length;u<h;)c=$[o[u++]],s=o[u++],a=o[u++],s?(l=s.scope?t.$new():t,p=s.transcludeOnThisElement?L(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?L(t,e):null,s(a,l,c,r,p)):a&&a(t,c.childNodes,void 0,i)}:null}function L(t,e,n){function r(r,i,s,o,a){return r||((r=t.$new(!1,a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})}const i=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?i[r]=L(t,e.$$slots[r],n):i[r]=null;return r}function I(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let c;switch(o){case Node.ELEMENT_NODE:c=t.nodeName.toLowerCase(),Z(n,ft(c),"E",i,s);for(var u,h,d,p,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e,o=!1,c=!1,g=!1,v=!1,y=!1;h=(u=$[m]).name,p=u.value,(f=(d=ft(h.toLowerCase())).match(j))?(g="Attr"===f[1],v="Prop"===f[1],y="On"===f[1],h=h.replace(l,"").toLowerCase().substr(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))):(e=d.match(R))&&J(e[1])&&(o=h,c=`${h.substr(0,h.length-5)}end`,h=h.substr(0,h.length-6)),v||y?(r[d]=p,a[d]=u.name,v?st(t,n,d,h):at(n,d,h)):(a[d=ft(h.toLowerCase())]=h,!g&&Object.prototype.hasOwnProperty.call(r,d)||(r[d]=p,Kt(t,d)&&(r[d]=!0)),ct(t,n,p,d,g),Z(n,d,"A",i,s,o,c))}"input"===c&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:function(){return function(t,e){t.$watch(r,(t=>{e[0].nodeValue=t}))}}})}(n,t.nodeValue)}return n.sort(et),n}function q(t,e,n){const r=[];let i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw un("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return kt(r)}function H(t,e,n){return function(r,i,s,o,a){return i=q(i[0],e,n),t(r,i,s,o,a)}}function z(t,e,n,r,i,s){let o;return t?P(e,n,r,i,s):function(){return o||(o=P(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function W(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,d,p,b,w=-Number.MAX_VALUE,{newScopeDirective:E}=l,{controllerDirectives:C}=l,{newIsolateScopeDirective:O}=l,{templateDirective:x}=l,{nonTlbTranscludeDirective:k}=l,j=!1,R=!1,{hasElementTranscludeDirective:P}=l,D=n.$$element=kt(e),M=s,L=r,F=!1,B=!1,W=function(t,r,i,s,l){let u,h,d,p,b,w,x,k,_,T;e===i?(_=n,k=n.$$element):(k=kt(i),_=new an($,v,a,m,k,n)),b=r,O?p=r.$new(!0):E&&(b=r.$parent),l&&(x=function(t,e,n,r){let i;A(t)||(r=n,n=e,e=t,t=void 0);P&&(i=w);n||(n=P?k.parent():k);if(!r)return l(t,e,i,n,j);{const s=l.$$slots[r];if(s)return s(t,e,i,n,j);if(g(s))throw un("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Wt(k))}},x.$$boundTransclude=l,x.isSlotFilled=function(t){return!!l.$$slots[t]}),C&&(w=function(t,e,n,r,i,s,o){const a=Object.create(null);for(const c in r){const l=r[c],u={$scope:l===o||l.$$isolateScope?i:s,$element:t,$attrs:e,$transclude:n};let{controller:h}=l;"@"===h&&(h=e[l.name]);const d=f(h,u,!0,l.controllerAs);a[l.name]=d,t.data(`$${l.name}Controller`,d.instance)}return a}(k,_,x,C,p,r,O)),O&&(p.$$isolateBindings=O.$$isolateBindings,T=pt(r,_,p,p.$$isolateBindings,O),T.removeWatches&&p.$on("$destroy",T.removeWatches));for(const t in w){const e=C[t],n=w[t],r=e.$$bindings.bindToController;n.instance=n(),k.data(`$${e.name}Controller`,n.instance),n.bindingInfo=pt(b,_,n.instance,r,e)}for(N(C,((t,e)=>{const{require:n}=t;t.bindToController&&!Array.isArray(n)&&y(n)&&V(w[e].instance,G(e,n,k,w))})),N(w,(t=>{const e=t.instance;if(S(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(S(e.$onInit))try{e.$onInit()}catch(t){a(t)}S(e.$doCheck)&&(b.$watch((()=>{e.$doCheck()})),e.$doCheck()),S(e.$onDestroy)&&b.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)d=o[u],ht(d,d.isolateScope?p:r,k,_,d.require&&G(d.directiveName,d.require,k,w),x);var j=r;for(O&&(O.template||null===O.templateUrl)&&(j=p),t&&t(j,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)d=c[u],ht(d,d.isolateScope?p:r,k,_,d.require&&G(d.directiveName,d.require,k,w),x);N(w,(t=>{const e=t.instance;S(e.$postLink)&&e.$postLink()}))};for(let s=0,l=t.length;s<l;s++){u=t[s];const f=u.$$start,$=u.$$end;if(f&&(D=q(e,f,$)),d=void 0,w>u.priority)break;if(b=u.scope,b&&(u.templateUrl||(y(b)?(nt("new/isolated scope",O||E,u,D),O=u):nt("new/isolated scope",O,u,D)),E=E||u),h=u.name,!F&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!dn.includes(u.name))){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!dn.includes(e.name)||e.replace&&(e.templateUrl||e.template)){B=!0;break}F=!0}if(!u.templateUrl&&u.controller&&(C=C||Object.create(null),nt(`'${h}' controller`,C[h],u,D),C[h]=u),b=u.transclude,b)if(j=!0,dn.includes(u.name)||(nt("transclusion",k,u,D),k=u),"element"===b)P=!0,w=u.priority,d=D,D=n.$$element=kt(document.createComment("")),e=D[0],lt(i,K(d),e),L=z(B,d,r,w,M&&M.name,{nonTlbTranscludeDirective:k});else{const t=Object.create(null);if(y(b)){d=document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);N(b,((r,i)=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,e[r]=i,t[i]=null,n[i]=s})),N(kt(D[0].childNodes),(r=>{const i=e[ft(U(r))];i?(n[i]=!0,t[i]=t[i]||document.createDocumentFragment(),t[i].appendChild(r)):d.appendChild(r)})),N(n,((t,e)=>{if(!t)throw un("reqslot","Required transclusion slot `{0}` was not filled.",e)}));for(const e in t)if(t[e]){const n=kt(t[e].childNodes);t[e]=z(B,n,r)}d=kt(d.childNodes)}else d=e.cloneNode(!0).childNodes;D.empty(),L=z(B,d,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),L.$$slots=t}if(u.template)if(R=!0,nt("template",x,u,D),x=u,b=S(u.template)?u.template(D,n):u.template,b=_(b),u.replace){if(M=u,d=Rt(b)?[]:$n(rt(u.templateNamespace,T(b))),e=d[0],1!==d.length||e.nodeType!==Node.ELEMENT_NODE)throw un("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");lt(i,D,e);const r={$attr:{}},o=I(e,[],r),a=t.splice(s+1,t.length-(s+1));(O||E)&&Q(o,O,E),t=t.concat(o).concat(a),X(n,r),l=t.length}else D.html(b);if(u.templateUrl)R=!0,nt("template",x,u,D),x=u,u.replace&&(M=u),W=tt(t.splice(s,t.length-s),D,n,i,j&&L,o,c,{controllerDirectives:C,newScopeDirective:E!==u&&E,newIsolateScopeDirective:O,templateDirective:x,nonTlbTranscludeDirective:k}),l=t.length;else if(u.compile)try{p=u.compile(D,n,L);const t=u.$$originalDirective||u;S(p)?Z(null,Y(t,p),f,$):p&&Z(Y(t,p.pre),Y(t,p.post),f,$)}catch(t){a(t,Wt(D))}u.terminal&&(W.terminal=!0,w=Math.max(w,u.priority))}return W.scope=E&&!0===E.scope,W.transcludeOnThisElement=j,W.templateOnThisElement=R,W.transclude=L,l.hasElementTranscludeDirective=P,W;function Z(t,e,n,r){t&&(n&&(t=H(t,n,r)),t.require=u.require,t.directiveName=h,(O===u||u.$$isolateScope)&&(t=ut(t,{isolateScope:!0})),o.push(t)),e&&(n&&(e=H(e,n,r)),e.require=u.require,e.directiveName=h,(O===u||u.$$isolateScope)&&(e=ut(e,{isolateScope:!0})),c.push(e))}}function G(t,e,n,r){let i;if(b(e)){const o=e.match(s),a=e.substring(o[0].length),c=o[1]||o[3],l="?"===o[2];if("^^"===c?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){const t=`$${a}Controller`;i="^^"===c&&n[0]&&n[0].nodeType===Node.DOCUMENT_NODE?null:c?n.inheritedData(t):n.data(t)}if(!i&&!l)throw un("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(Array.isArray(e)){i=[];for(let s=0,o=e.length;s<o;s++)i[s]=G(t,e[s],n,r)}else y(e)&&(i={},N(e,((e,s)=>{i[s]=G(t,e,n,r)})));return i||null}function Q(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=D(t[r],{$$isolateScope:e,$$newScope:n})}function Z(e,i,s,o,a,c,l){if(i===a)return null;let h=null;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),d=0,p=a.length;d<p;d++)if(n=a[d],(g(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(c&&(n=D(n,{$$start:c,$$end:l})),!n.$$bindings){const t=n.$$bindings=u(n,n.name);y(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),h=n}return h}function J(e){if(Object.prototype.hasOwnProperty.call(n,e))for(let n,i=t.get(e+r),s=0,o=i.length;s<o;s++)if(n=i[s],n.multiElement)return!0;return!1}function X(t,e){const n=e.$attr,r=t.$attr;N(t,((r,i)=>{"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),N(e,((e,i)=>{Object.prototype.hasOwnProperty.call(t,i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function tt(t,e,n,r,i,s,o,l){let u,h,d=[];const p=e[0],f=t.shift(),$=D(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=S(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),c(m).then((a=>{let c,v,b,w;if(a=_(a),f.replace){if(b=Rt(a)?[]:$n(rt(g,T(a))),c=b[0],1!==b.length||c.nodeType!==Node.ELEMENT_NODE)throw un("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);v={$attr:{}},lt(r,e,c);const i=I(c,[],v);y(f.scope)&&Q(i,!0),t=i.concat(t),X(n,v)}else c=p,e.html(a);for(t.unshift($),u=W(t,c,n,i,e,f,s,o,l),N(r,((t,n)=>{t===c&&(r[n]=e[0])})),h=M(e[0].childNodes,i);d.length;){const t=d.shift(),n=d.shift(),i=d.shift(),s=d.shift();let o=e[0];if(!t.$$destroyed){if(n!==p){const t=n.className;l.hasElementTranscludeDirective&&f.replace||(o=c.cloneNode(!0)),lt(i,kt(n),o);try{""!==t&&o.classList.add(...t.trim().split(" "))}catch(t){}}w=u.transcludeOnThisElement?L(t,u.transclude,s):s,u(h,t,o,r,w)}}d=null})).catch((t=>{C(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(d?d.push(e,n,r,s):(u.transcludeOnThisElement&&(s=L(e,u.transclude,i)),u(h,e,n,r,s)))}}function et(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function nt(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw un("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Wt(r))}function rt(t,e){switch(t=(t||"html").toLowerCase()){case"svg":case"math":var n=document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function it(t){return function(t,e){if(!t)return t;if(!b(t))throw un("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=T(t),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,s=/\s/.test(r)?i:/(,)/,o=r.split(s),a=Math.floor(o.length/2),c=0;c<a;c++){var l=2*c;n+=m.getTrustedMediaUrl(T(o[l])),n+=" "+T(o[l+1])}var u=T(o[2*c]).split(/\s/);n+=m.getTrustedMediaUrl(T(u[0])),2===u.length&&(n+=" "+T(u[1]));return n}(m.valueOf(t),"ng-prop-srcset")}function st(t,e,n,r){if(o.test(r))throw un("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=U(t),s=function(t,e){const n=e.toLowerCase();return d[`${t}|${n}`]||d[`*|${n}`]}(i,r);let a=t=>t;"srcset"!==r||"img"!==i&&"source"!==i?s&&(a=m.getTrusted.bind(m,s)):a=it,e.push({priority:100,compile:function(t,e){const i=p(e[n]),s=p(e[n],(t=>m.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function at(t,e,n){t.push(nn(p,$,a,e,n,!1))}function ct(t,n,r,s,a){const c=U(t),l=function(t,e){return"srcdoc"===e?m.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?m.RESOURCE_URL:m.MEDIA_URL:"xlinkHref"===e?"image"===t?m.MEDIA_URL:"a"===t?m.URL:m.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?m.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:m.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw un("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Wt(t.outerHTML));if(o.test(s))throw un("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,i){const o=i.$$observers||(i.$$observers=Object.create(null)),a=i[s];a!==r&&(h=a&&e(a,!0,l,u),r=a),h&&(i[s]=h(t),(o[s]||(o[s]=[])).$$inter=!0,(i.$$observers&&i.$$observers[s].$$scope||t).$watch(h,((t,e)=>{"class"===s&&t!==e?i.$updateClass(t,e):i.$set(s,t)})))}})})}}function lt(t,e,n){const r=e[0],i=e.length,s=r.parentNode;let o,a;if(t)for(o=0,a=t.length;o<a;o++)if(t[o]===r){t[o++]=n;for(let e=o,n=e+i-1,r=t.length;e<r;e++,n++)n<r?t[e]=t[n]:delete t[e];t.length-=i-1;break}s&&s.replaceChild(n,r);const c=document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for(gt.has(r[mt])&&(It(n,It(r)),kt(r).off("$destroy")),Yt(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function ut(t,e){return V((function(){return t.apply(null,arguments)}),t,e)}function ht(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,Wt(n))}}function dt(t,e){if(h)throw un("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function pt(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){S(r.$onChanges)&&!F(n,i)&&(w||(t.$$postDigest(E),w=[]),c||(c={},w.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new fn(i,n))}function u(){r.$onChanges(c),c=void 0}return N(i,((i,c)=>{const{attrName:u}=i,{optional:h}=i,{mode:d}=i;let f,$,m,g,v;switch(d){case"@":h||Object.hasOwnProperty.call(n,u)||(dt(u,s.name),r[c]=n[u]=void 0),v=n.$observe(u,(t=>{if(b(t)||k(t)){const e=r[c];l(c,t,e),r[c]=t}})),n.$$observers[u].$$scope=t,f=n[u],b(f)?r[c]=e(f)(t):k(f)&&(r[c]=f),a[c]=new fn(hn,r[c]),o.push(v);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;dt(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]),g=$.literal?B:F,m=$.assign||function(){throw f=r[c]=$(t),un("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},f=r[c]=$(t);var y=function(e){return g(e,r[c])||(g(e,f)?m(t,e=r[c]):r[c]=e),f=e,f};y.$stateful=!0,v=i.collection?t.$watchCollection(n[u],y):t.$watch(p(n[u],y),null,$.literal),o.push(v);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;dt(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]);var w=$.literal,E=r[c]=$(t);a[c]=new fn(hn,r[c]),v=t[i.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||w&&B(e,E))return;e=E}l(c,t,e),r[c]=t})),o.push(v);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||dt(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?p(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[c]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}pn.$inject=["$provide","$$sanitizeUriProvider"];class fn{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===hn}}function $n(t){let e=(t=kt(t)).length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}const mn={$addControl:()=>{},$getControls:M([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:function(){},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},gn="ng-pending",vn="ng-submitted";function yn(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=mn,this.$$element=t,this.$$animate=r,Cn(this)}yn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],yn.prototype={$rollbackViewValue(){this.$$controls.forEach((t=>{t.$rollbackViewValue()}))},$commitViewValue(){this.$$controls.forEach((t=>{t.$commitViewValue()}))},$addControl(t){z(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return it(this.$$controls)},$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],N(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),N(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),N(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),H(this.$$controls,t),t.$$parentForm=mn},$setDirty(){this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,i),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine(){this.$$animate.setClass(this.$$element,r,`${i} ${vn}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach((t=>{t.$setPristine()}))},$setUntouched(){this.$$controls.forEach((t=>{t.$setUntouched()}))},$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==mn;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,vn),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},function(t){const{clazz:r}=t,{set:i}=t,{unset:s}=t;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(t,r,i){r=r?`-${j(r,"-")}`:"",o(t,e+r,!0===i),o(t,n+r,!1===i)}r.prototype.$setValidity=function(t,e,n){let r;g(e)?function(t,e,n,r){t[e]||(t[e]={}),i(t[e],n,r)}(this,"$pending",t,n):function(t,e,n,r){t[e]&&s(t[e],n,r),Sn(t[e])&&(t[e]=void 0)}(this,"$pending",t,n),k(e)?e?(s(this.$error,t,n),i(this.$$success,t,n)):(i(this.$error,t,n),s(this.$$success,t,n)):(s(this.$error,t,n),s(this.$$success,t,n)),this.$pending?(o(this,gn,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,gn,!1),this.$valid=Sn(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),r=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,r),this.$$parentForm.$setValidity(t,r,this)}}({clazz:yn,set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else t[e]=[n]},unset(t,e,n){const r=t[e];r&&(H(r,n),0===r.length&&delete t[e])}});const bn=function(t){return["$timeout","$parse",function(n,i){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:yn,compile:function(i,o){i[0].classList.add(r,e);const a=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,e,r,i){const o=i[0];if(!("action"in r)){const r=function(e){t.$apply((()=>{o.$commitViewValue(),o.$setSubmitted()})),e.preventDefault()};e[0].addEventListener("submit",r),e.on("$destroy",(()=>{n((()=>{e[0].removeEventListener("submit",r)}),0,!1)}))}(i[1]||o.$$parentForm).$addControl(o);let c=a?s(o.$name):()=>{};a&&(c(t,o),r.$observe(a,(e=>{o.$name!==e&&(c(t,void 0),o.$$parentForm.$$renameControl(o,e),c=s(o.$name),c(t,o))}))),e.on("$destroy",(()=>{o.$$parentForm.$removeControl(o),c(t,void 0),V(o,mn)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},wn=bn(),En=bn("ngForm");function Cn(t){t.$$classCache={},t.$$classCache[n]=!(t.$$classCache[e]=t.$$element[0].classList.contains(e))}function Sn(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}const On=/(\s+|^)default(\s+|$)/;class xn{static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:kn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class An{constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return N(t=Object.assign({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=T(n.replace(On,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],Tn(t,this.$$options)),Tn(t,kn.$$options),new An(t)}}const kn=new An({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),_n=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:xn}};function Tn(t,e){Object.keys(e).forEach((n=>{v(t[n])||(t[n]=e[n])}))}const jn=ut("ngModel");class Nn{static $inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];constructor(t,e,n,r,i,s,o,a,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=mn,this.$options=kn,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=s,this.$$timeout=o,this.$$parse=i,this.$q=a,this.$$exceptionHandler=e,this.$$hasNativeValidators=!1,Cn(this),(l=this).$$scope.$watch((t=>{const e=l.$$ngModelGet(t);return e===l.$modelValue||l.$modelValue!=l.$modelValue&&e!=e||l.$$setModelValue(e),e}))}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(t,r){let i=this;function s(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function o(t,r,i){r=r?`-${j(r,"-")}`:"",s(t,e+r,!0===i),s(t,n+r,!1===i)}var a,c,l;let u;g(r)?(l=t,(a=this)[c="$pending"]||(a[c]={}),i.set(a[c],l)):function(t,e,n){t[e]&&i.unset(t[e],n),Sn(t[e])&&(t[e]=void 0)}(this,"$pending",t),k(r)?r?(delete this.$error[t],this.set(this.$$success,t)):(this.set(this.$error,t),delete this.$$success[t]):(delete this.$error[t],delete this.$$success[t]),this.$pending?(s(this,gn,!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(s(this,gn,!1),this.$valid=Sn(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),u=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),o(this,t,u),this.$$parentForm.$setValidity(t,u,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=function(e){let n=this.$$parsedNgModel(e);return S(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){S(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw jn("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Wt(this.$$element))}$render(){}$isEmpty(t){return g(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?$t(this.$$element[0])?(this.$$animate.removeClass(this.$$element,c),this.$$animate.addClass(this.$$element,a)):(this.$$element[0].classList.remove(c),this.$$element[0].classList.add(a)):$t(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,c)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(c))}$setPristine(){this.$dirty=!1,this.$pristine=!0,$t(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,r)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(r))}$setDirty(){this.$dirty=!0,this.$pristine=!1,$t(this.$$element[0])?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,i)):(this.$$element[0].classList.remove(r),this.$$element[0].classList.add(i)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,$t(this.$$element[0])?this.$$animate.setClass(this.$$element,s,o):(this.$$element[0].classList.remove(o),this.$$element[0].classList.add(s))}$setTouched(){this.$touched=!0,this.$untouched=!1,$t(this.$$element[0])?this.$$animate.setClass(this.$$element,o,s):(this.$$element[0].classList.remove(s),this.$$element[0].classList.add(o))}$rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(P(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),s=this;this.$$runValidators(e,t,(t=>{i||n===t||(s.$modelValue=t?e:void 0,s.$modelValue!==r&&s.$$writeModelToScope())}))}$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,i=this;function s(t,e){r===i.$$currentValidationRunId&&i.$setValidity(t,e)}function o(t){r===i.$$currentValidationRunId&&n(t)}!function(){const t=i.$$parserName;if(!g(i.$$parserValid))return i.$$parserValid||(N(i.$validators,((t,e)=>{s(e,null)})),N(i.$asyncValidators,((t,e)=>{s(e,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(N(i.$validators,((r,i)=>{const o=Boolean(r(t,e));n=n&&o,s(i,o)})),!n)return N(i.$asyncValidators,((t,e)=>{s(e,null)})),!1;return!0}()?function(){const n=[];let r=!0;N(i.$asyncValidators,((i,o)=>{const a=i(t,e);if(!_(a))throw jn("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then((()=>{s(o,!0)}),(()=>{r=!1,s(o,!1)})))})),n.length?i.$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)}$commitViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!g(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),g(t)){this.$$parserValid=!1;break}P(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function i(){e.$modelValue!==n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,i()),this.$$runValidators(t,this.$$lastCommittedViewValue,(n=>{r||(e.$modelValue=n?t:void 0,i())}))}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),N(this.$viewChangeListeners,(function(t){try{t()}catch(t){this.$$exceptionHandler(t)}}),this)}$setViewValue(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");w(e[t])?e=e[t]:w(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:w(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=this.$$timeout((()=>{n.$commitViewValue()}),e):this.$$rootScope.$$phase!==Ae.NONE?this.$commitViewValue():this.$$scope.$apply((()=>{n.$commitViewValue()}))}$overrideModelOptions(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,(()=>{})))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function Vn(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Nn,priority:1,compile:n=>(n[0].classList.add(r,s,e),{pre:(t,e,n,r)=>{const i=r[0],s=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),s.$addControl(i),n.$observe("name",(t=>{i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(()=>{i.$$parentForm.$removeControl(i)}))},post:(e,n,r,i)=>{const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(t.$$phase!==Ae.NONE?e.$evalAsync(o):e.$apply(o))}))}})}}Vn.$inject=["$rootScope"];const Rn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Pn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Dn=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,Mn=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ln=/^(\d{4,})-(\d{2})-(\d{2})$/,In=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Un=/^(\d{4,})-W(\d\d)$/,qn=/^(\d{4,})-(\d\d)$/,Hn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Fn="validity",Bn="keydown wheel mousedown",zn=new Map;"date,datetime-local,month,time,week".split(",").forEach((t=>{zn.set(t,!0)}));const Wn={text:function(t,e,n,r,i){Kn(t,e,n,r,i),Gn(r)},date:Zn("date",Ln,Yn(Ln,["yyyy","MM","dd"])),"datetime-local":Zn("datetimelocal",In,Yn(In,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Zn("time",Hn,Yn(Hn,["HH","mm","ss","sss"])),week:Zn("week",Un,(function(t,e){if(E(t))return t;if(b(t)){Un.lastIndex=0;const n=Un.exec(t);if(n){const t=+n[1],r=+n[2];let i=0,s=0,o=0,a=0;const c=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(i=e.getHours(),s=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,i,s,o,a)}}return NaN})),month:Zn("month",qn,Yn(qn,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Jn(t,e,n,r,"number"),Xn(r),Kn(t,e,n,r,i),v(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=tr(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||g(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=tr(t),e=t,r.$validate())}))}if(v(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=tr(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||g(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=tr(t),e=t,r.$validate())}))}if(v(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=tr(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||g(i)||rr(e,a||0,i)},n.$observe("step",(t=>{t!==e&&(i=tr(t),e=t,r.$validate())}))}},url:function(t,e,n,r,i){Kn(t,e,n,r,i),Gn(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||Pn.test(n)}},email:function(t,e,n,r,i){Kn(t,e,n,r,i),Gn(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||Dn.test(n)}},radio:function(t,e,n,r){const i=!n.ngTrim||"false"!==T(n.ngTrim);g(n.name)&&e.attr("name",f());e.on("change",(function(t){let s;e[0].checked&&(s=n.value,i&&(s=T(s)),r.$setViewValue(s,t&&t.type))})),r.$render=function(){let{value:t}=n;i&&(t=T(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i){Jn(t,e,n,r,"range"),Xn(r),Kn(t,e,n,r,i);const s=r.$$hasNativeValidators&&"range"===e[0].type;let o=s?0:void 0,a=s?100:void 0,c=s?1:void 0;const{validity:l}=e[0],u=v(n.min),h=v(n.max),d=v(n.step),p=r.$render;r.$render=s&&v(l.rangeUnderflow)&&v(l.rangeOverflow)?function(){p(),r.$setViewValue(e.val())}:p,u&&(o=tr(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||g(o)||e>=o},f("min",(function(t){if(o=tr(t),P(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=tr(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||g(a)||e<=a},f("max",(function(t){if(a=tr(t),P(r.$modelValue))return;if(s){let t=e.val();a<t&&(e.val(a),t=a<o?o:a),r.$setViewValue(t)}else r.$validate()})));d&&(c=tr(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||g(c)||rr(e,o||0,c)},f("step",(function(t){if(c=tr(t),P(r.$modelValue))return;s?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate()})));function f(t,r){e.attr(t,n[t]);let i=n[t];n.$observe(t,(t=>{t!==i&&(i=t,r(t))}))}},checkbox:function(t,e,n,r,i,s,o){const a=ir(o,t,"ngTrueValue",n.ngTrueValue,!0),c=ir(o,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((t=>B(t,a))),r.$parsers.push((t=>t?a:c))},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Gn(t){t.$formatters.push((e=>t.$isEmpty(e)?e:e.toString()))}function Kn(t,e,n,r,i){const s=e[0].type.toLowerCase();let o,a=!1;e.on("compositionstart",(()=>{a=!0})),e.on("compositionend",(()=>{a=!1,c()}));let c=function(t){if(o&&(i.cancel(o),o=null),a)return;let c=e.val();const l=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(c=T(c)),(r.$viewValue!==c||""===c&&r.$$hasNativeValidators)&&r.$setViewValue(c,l)};["input","change","paste","drop","cut"].forEach((t=>{e.on(t,c)})),zn[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(Bn,(function(t){if(!o){const e=this[Fn],n=e.badInput,r=e.typeMismatch;o=i.defer((()=>{o=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function Yn(t,e){return function(n,r){let i,s;if(E(n))return n;if(b(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Rn.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n),i){i.shift(),s=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},N(i,((t,n)=>{n<e.length&&(s[e[n]]=+t)}));const t=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&t.setFullYear(s.yyyy),t}}return NaN}}const Qn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Zn(t,e,n){return function(r,i,s,o,a,c,l){if(Jn(r,i,s,o,t),Kn(0,i,s,o,a),o.$parsers.push((n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:d(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!b(e))throw jn("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Qn.test(e))throw jn("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!Un.test(e))throw jn("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!In.test(e))throw jn("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e})),v(s.min)||s.ngMin){let e=s.min||l(s.ngMin)(r),i=h(e);o.$validators.min=function(e){return"month"===t?g(i)||n(e)>=n(i):!u(e)||g(i)||n(e)>=i},s.$observe("min",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}if(v(s.max)||s.ngMax){let e=s.max||l(s.ngMax)(r),i=h(e);o.$validators.max=function(e){return"month"===t?g(i)||n(e)<=n(i):!u(e)||g(i)||n(e)<=i},s.$observe("max",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}function u(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function h(t){return v(t)&&!E(t)?d(t)||void 0:t}function d(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=J(i,r)),i}}}function Jn(t,e,n,r,i){const s=e[0];(r.$$hasNativeValidators=y(s.validity))&&r.$parsers.push((t=>{const n=e[0][Fn]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function Xn(t){t.$parsers.push((e=>t.$isEmpty(e)?null:Mn.test(e)?parseFloat(e):void(t.$$parserName="number"))),t.$formatters.push((e=>{if(!t.$isEmpty(e)){if(!w(e))throw jn("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function tr(t){return v(t)&&!w(t)&&(t=parseFloat(t)),P(t)?void 0:t}function er(t){return(0|t)===t}function nr(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function rr(t,e,n){let r=Number(t);const i=!er(r),s=!er(e),o=!er(n);if(i||s||o){const t=i?nr(r):0,a=s?nr(e):0,c=o?nr(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,i&&(r=Math.round(r)),s&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n==0}function ir(t,e,n,r,i){let s;if(v(r)){if(s=t(r),!s.constant)throw jn("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(e)}return i}function sr(t,e,n){return{restrict:"E",require:["?ngModel"],link:{pre(r,i,s,o){o[0]&&(Wn[$(s.type)]||Wn.text)(r,i,s,o[0],t,e,n)}}}}function or(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===$(n.type))return{pre(e,n){const r=n[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}sr.$inject=["$browser","$filter","$parse"];const ar=/^(true|false|\d+)$/;function cr(){function t(t,e,n){const r=v(n)?n:null;t[0].value=r,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>ar.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(e=>{t(n,r,e)}))}}}const lr=["$templateCache",t=>({restrict:"E",terminal:!0,compile(e,n){if("text/ng-template"===n.type){const r=n.id,{text:i}=e[0];t.set(r,i)}}})];function ur(t,e){t[0].selected=e,t.attr("selected",e)}function hr(t,e){const n=this,r=new Map;n.selectValueMap={},n.ngModelCtrl={},n.multiple=!1,n.unknownOption=kt(document.createElement("option")),n.hasEmptyOption=!1,n.emptyOption=void 0,n.renderUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),t.prepend(n.unknownOption),ur(n.unknownOption,!0),t.val(r)},n.updateUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),ur(n.unknownOption,!0),t.val(r)},n.generateUnknownOptionValue=function(t){return`? ${dt(t)} ?`},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),ur(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&ur(n.emptyOption,!1)},e.$on("$destroy",(()=>{n.renderUnknownOption=()=>{}})),n.readValue=function(){const e=t.val(),r=e in n.selectValueMap?n.selectValueMap[e]:e;return n.hasOption(r)?r:null},n.writeValue=function(e){const r=t[0].options[t[0].selectedIndex];if(r&&ur(kt(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=dt(e);t.val(r in n.selectValueMap?r:e);ur(kt(t[0].options[t[0].selectedIndex]),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;z(t,'"option value"'),""===t&&(n.hasEmptyOption=!0,n.emptyOption=e);const i=r.get(t)||0;r.set(t,i+1),s()},n.removeOption=function(t){const e=r.get(t);e&&(1===e?(r.delete(t),""===t&&(n.hasEmptyOption=!1,n.emptyOption=void 0)):r.set(t,e-1))},n.hasOption=function(t){return!!r.get(t)},n.$hasEmptyOption=function(){return n.hasEmptyOption},n.$isUnknownOptionSelected=function(){return t[0].options[0]===n.unknownOption[0]},n.$isEmptyOptionSelected=function(){return n.hasEmptyOption&&t[0].options[t[0].selectedIndex]===n.emptyOption[0]},n.selectUnknownOrEmptyOption=function(t){null==t&&n.emptyOption?(n.removeUnknownOption(),n.selectEmptyOption()):n.unknownOption.parent().length?n.updateUnknownOption(t):n.renderUnknownOption(t)};let i=!1;function s(){i||(i=!0,e.$$postDigest((()=>{i=!1,n.ngModelCtrl.$render()})))}let o=!1;function a(t){o||(o=!0,e.$$postDigest((()=>{e.$$destroyed||(o=!1,n.ngModelCtrl.$setViewValue(n.readValue()),t&&n.ngModelCtrl.$render())})))}n.registerOption=function(t,e,r,i,o){let c,l;r.$attr.ngValue?r.$observe("value",(t=>{let r;const i=e[0].selected;v(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=dt(t),c=t,n.selectValueMap[l]=t,n.addOption(t,e),e.attr("value",l),r&&i&&a()})):i?r.$observe("value",(t=>{let r;n.readValue();const i=e[0].selected;v(c)&&(n.removeOption(c),r=!0),c=t,n.addOption(t,e),r&&i&&a()})):o?t.$watch(o,((t,i)=>{r.$set("value",t);const s=e[0].selected;i!==t&&n.removeOption(i),n.addOption(t,e),i&&s&&a()})):n.addOption(r.value,e),r.$observe("disabled",(t=>{("true"===t||t&&e[0].selected)&&(n.multiple?a(!0):(n.ngModelCtrl.$setViewValue(null),n.ngModelCtrl.$render()))})),e.on("$destroy",(()=>{const t=n.readValue(),e=r.value;n.removeOption(e),s(),(n.multiple&&t&&-1!==t.indexOf(e)||t===e)&&a(!0)}))}}function dr(){return{restrict:"E",require:["select","?ngModel"],controller:hr,priority:1,link:{pre:function(t,e,n,r){const i=r[0],s=r[1];if(!s)return void(i.registerOption=()=>{});if(i.ngModelCtrl=s,e.on("change",(()=>{i.removeUnknownOption(),t.$apply((()=>{s.$setViewValue(i.readValue())}))})),n.multiple){let n;i.multiple=!0,i.readValue=function(){const t=[];return Array.from(e[0].getElementsByTagName("option")).forEach((e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){Array.from(e[0].getElementsByTagName("option")).forEach((e=>{const n=!!t&&(q(t,e.value)||q(t,i.selectValueMap[e.value]));n!==e.selected&&ur(kt(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||B(n,s.$viewValue)||(n=it(s.$viewValue),s.$render()),r=s.$viewValue})),s.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const i=r[1];if(!i)return;const s=r[0];i.$render=function(){s.writeValue(i.$viewValue)}}}}}function pr(t){return{restrict:"E",priority:100,compile(e,n){let r,i;return v(n.ngValue)||(v(n.value)?r=t(n.value,!0):(i=t(e.text(),!0),i||n.$set("value",e.text()))),function(t,e,n){const s="$selectController",o=e.parent(),a=o.data(s)||o.parent().data(s);a&&a.registerOption(t,e,n,r,i)}}}}function fr(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=W(t)}))}}}function $r(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=g(t)?"":t}))}}}hr.$inject=["$element","$scope"],pr.$inject=["$interpolate"];const mr=["$parse",t=>({restrict:"A",compile:(e,n)=>{const r=t(n.ngBindHtml),i=t(n.ngBindHtml,(t=>t));return(t,e)=>{t.$watch(i,(()=>{e.html(r(t)||"")}))}}})];function gr(t,e){let n;return t=`ngClass${t}`,["$parse",o=>({restrict:"EA",link(a,c,l){let u,h=c.data("$classCounts"),d=!0;function p(t,e){const n=[];return t&&t.forEach((t=>{(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Object.create(null),c.data("$classCounts",h)),"ngClass"!==t&&(n||(n=o("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=u),1),$t(c[0])?l.$addClass(n):a.$$postDigest((()=>{""!==n&&c[0].classList.add(...n.trim().split(" "))}))):function(t){t=p(i(t),-1),$t(c[0])?l.$removeClass(t):a.$$postDigest((()=>{""!==t&&c[0].classList.remove(...t.trim().split(" "))}))}(u);var n;d=t}))),a.$watch(o(l[t],s),(function(t){d===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),u=r(s,n),h=p(o,-1),d=p(u,1);$t(c[0])?(l.$addClass(d),l.$removeClass(h)):a.$$postDigest((()=>{""!==d&&c[0].classList.add(...d.trim().split(" ")),""!==h&&c[0].classList.remove(...h.trim().split(" "))}))}(u,t);u=t}))}})];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<e.length;t++)if(i===e[t])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function s(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(s).join(" "):y(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):b(t)||(e=`${t}`),e}}const vr=gr("",!0),yr=gr("Odd",0),br=gr("Even",1);function wr(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}const Er=[()=>({restrict:"A",scope:!0,controller:"@",priority:500})],Cr="ng-hide",Sr="ng-hide-animate";function Or(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngShow,(r=>{$t(n[0])?t[r?"removeClass":"addClass"](n,Cr,{tempClasses:Sr}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.remove(Cr))):n.elements().forEach((t=>t.classList.add(Cr)))}))}))}}}function xr(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngHide,(r=>{$t(n[0])?t[r?"addClass":"removeClass"](n,Cr,{tempClasses:Sr}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.add(Cr))):n.elements().forEach((t=>t.classList.remove(Cr)))}))}))}}}Or.$inject=["$animate"],xr.$inject=["$animate"];const Ar=Object.freeze({Program:1,ExpressionStatement:2,AssignmentExpression:3,ConditionalExpression:4,LogicalExpression:5,BinaryExpression:6,UnaryExpression:7,CallExpression:8,MemberExpression:9,Identifier:10,Literal:11,ArrayExpression:12,Property:13,ObjectExpression:14,ThisExpression:15,LocalsExpression:16,NGValueParameter:17}),kr="-add",_r="-remove",Tr="ng-",jr="-active",Nr="-prepare",Vr="ng-animate",Rr="$$ngAnimateChildren";let Pr,Dr,Mr,Lr;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Pr="WebkitTransition",Dr="webkitTransitionEnd transitionend"):(Pr="transition",Dr="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Mr="WebkitAnimation",Lr="webkitAnimationEnd animationend"):(Mr="animation",Lr="animationend");const Ir="Duration",Ur=Ar.Property,qr="Delay",Hr="TimingFunction",Fr="PlayState",Br=9999,zr=Mr+qr,Wr=Mr+Ir,Gr=Pr+qr,Kr=Pr+Ir,Yr=ut("ng");function Qr(t,e,n){if(!t)throw Yr("areq","Argument '{0}' is {1}",e||"?",n);return t}function Zr(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&b(t)&&t.length?t.split(/\s+/):[]).forEach(((t,i)=>{t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function Jr(t){if(t instanceof kt)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return kt(Xr(t))}if(t.nodeType===Node.ELEMENT_NODE)return kt(t)}function Xr(t){if(!t[0])return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function ti(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function ei(t,e){ni(t,e),ri(t,e)}function ni(t,e){e.from&&(e.from=null)}function ri(t,e){e.to&&(e.to=null)}function ii(t,e,n){const r=e.options||{},i=n.options||{},s=`${r.addClass||""} ${i.addClass||""}`,o=`${r.removeClass||""} ${i.removeClass||""}`,a=function(t,e,n){const r=1,i=-1,s={};t=a(t),e=a(e),N(e,((t,e)=>{s[e]=r})),n=a(n),N(n,((t,e)=>{s[e]=s[e]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){b(t)&&(t=t.split(" "));const e={};return N(t,(t=>{t.length&&(e[t]=!0)})),e}return N(s,(function(e,n){var s,a;e===r?(s="addClass",a=!t[n]||t[n+_r]):e===i&&(s="removeClass",a=t[n]||t[n+kr]),a&&(o[s].length&&(o[s]+=" "),o[s]+=n)})),o}(t.attr("class"),s,o);i.preparationClasses&&(r.preparationClasses=ci(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);const c=r.domOperation!==(()=>{})?r.domOperation:null;return V(r,i),c&&(r.domOperation=c),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function si(t){return t instanceof kt?t[0]:t}function oi(t,e){const n=e?"paused":"",r=Mr+Fr;return ai(t,[r,n]),[r,n]}function ai(t,e){const n=e[0],r=e[1];t.style[n]=r}function ci(t,e){return t?e?`${t} ${e}`:t:e}const li=ut("$animate");function ui(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function hi(t){return y(t)?t:{}}function di(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}function pi(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw li("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=S(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${Vr}[(\\s|\\/)]`).test(n.toString()))throw n=null,li("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Vr)}return n},this.$get=["$$animateQueue",function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(e,n,r,i)=>(n=n&&kt(n),r=r&&kt(r),di(e,n=n||r.parent(),r),t.push(e,"enter",hi(i))),move:(e,n,r,i)=>(n=n&&kt(n),r=r&&kt(r),di(e,n=n||r.parent(),r),t.push(e,"move",hi(i))),leave:(e,n)=>t.push(e,"leave",hi(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=hi(r)).addClass=ui(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=hi(r)).removeClass=ui(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=hi(i)).addClass=ui(i.addClass,n),i.removeClass=ui(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=hi(s)).from=s.from?V(s.from,n):n,s.to=s.to?V(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=ui(s.tempClasses,i),t.push(e,"animate",s))}}]}function fi(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",link(e,n,r,i,s){let o,a,c;e.$watch(r.ngIf,(e=>{e?a||s(((e,r)=>{a=r,e[e.length++]=document.createComment(""),o={clone:e},$t(e[0])?t.enter(e,n.parent(),n):di(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=Gt(o.clone),$t(c[0])?t.leave(c).done((t=>{!1!==t&&(c=null)})):c.remove(),o=null))}))}}}pi.$inject=["$provide"],fi.$inject=["$animate"];const $i=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,i){const s=i.ngInclude||i.src,o=i.onload||"",a=i.autoscroll;return(r,i,c,l,u)=>{function h(){!v(a)||a&&!r.$eval(a)||e()}let d,p,f,$=0;const m=()=>{p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&($t(f[0])?n.leave(f).done((t=>{!1!==t&&(p=null)})):f.remove(),p=f,f=null)};r.$watch(s,(e=>{const s=function(t){!1!==t&&h()},a=++$;e?(t(e,!0).then((t=>{if(r.$$destroyed)return;if(a!==$)return;const c=r.$new();l.template=t;const p=u(c,(t=>{m(),$t(t[0])?n.enter(t,null,i).done(s):(di(t,null,i),h())}));d=c,f=p,d.$emit("$includeContentLoaded",e),r.$eval(o)}),(()=>{r.$$destroyed||a===$&&(m(),r.$emit("$includeContentError",e))})),r.$emit("$includeContentRequested",e)):(m(),l.template=null)}))}}})],mi=["$compile",t=>({restrict:"ECA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Dt(i.template).childNodes)(e,(t=>{n.append(t)}),{futureParentElement:n});n.html(i.template),t(n[0].childNodes)(e)}})];function gi(){return{priority:450,compile:()=>({pre(t,e,n){t.$eval(n.ngInit)}})}}function vi(){return{restrict:"EA",terminal:!0,priority:1e3}}const yi=ut("ngRef"),bi=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=ft(U(e)),i=t(n.ngRef),s=i.assign||function(){throw yi("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,o){let a;if(Object.prototype.hasOwnProperty.call(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=e.data(`$${o.ngRefRead}Controller`),!a)throw yi("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=e.data(`$${r}Controller`);a=a||e,s(t,a),e.on("$destroy",(()=>{i(t)===a&&s(t,null)}))}}})],wi=["$parse","$animate",(t,e)=>{const n="$$NG_REMOVED",r=ut("ngRepeat"),i=function(t,e,n,r,i,s,o){t[n]=r,i&&(t[i]=s),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))},s=function(t){return t.clone[0]},o=function(t){return t.clone[t.clone.length-1]},a=function(t,e,n){return dt(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,compile:function(l,u){const h=u.ngRepeat;let d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const p=d[1],f=d[2],$=d[3],g=d[4];if(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!d)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);const v=d[3]||d[1],y=d[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",$);let b;if(g){var w={$id:dt};const e=t(g);b=function(t,n,r,i){return y&&(w[y]=n),w[v]=r,w.$index=i,e(t,w)}}return function(t,l,u,d,p){let g=Object.create(null);t.$watchCollection(f,(u=>{var d,f,E,C,S,O,x,A,k,_,T,j,V=l[0],R=Object.create(null);if($&&(t[$]=u),m(u))k=u,A=b||a;else for(var P in A=b||c,k=[],u)Object.hasOwnProperty.call(u,P)&&"$"!==P.charAt(0)&&k.push(P);for(C=k.length,T=new Array(C),d=0;d<C;d++)if(S=u===k?d:k[d],O=u[S],x=A(t,S,O,d),g[x])_=g[x],delete g[x],R[x]=_,T[d]=_;else{if(R[x])throw N(T,(function(t){t&&t.scope&&(g[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,x,O);T[d]={id:x,scope:void 0,clone:void 0},R[x]=!0}for(var D in w&&(w[v]=void 0),g){if(j=Gt((_=g[D]).clone),e.leave(j),j[0].parentNode)for(d=0,f=j.length;d<f;d++)j[d][n]=!0;_.scope.$destroy()}for(d=0;d<C;d++)if(S=u===k?d:k[d],O=u[S],(_=T[d]).scope){E=V;do{E=E.nextSibling}while(E&&E[n]);s(_)!==E&&e.move(Gt(_.clone),null,V),V=o(_),i(_.scope,d,v,O,y,S,C)}else p(((t,n)=>{_.scope=n;const r=document.createComment("");t[t.length++]=r,e.enter(t,null,V),V=r,_.clone=t,e.enter(t,null,V),V=t,_.clone=t,R[_.id]=_,i(_.scope,d,v,O,y,S,C)}));g=R}))}}}}];function Ei(){return{restrict:"EA",link:(t,e,n)=>{t.$watchCollection(n.ngStyle,((t,n)=>{if(n){const t=Object.keys(n);for(let n=0,r=t.length;n<r;n++)e[0].style[t[n]]=""}if(t){const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,i]=n[t];e[0].style[r]=i}}}))}}}const Ci=["$animate",t=>({require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,i){const s=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(s,(e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=Gt(a[n].clone);l[n].$destroy();(c[n]=t.leave(e)).done(u(c,n))}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&N(o,(e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),t.enter(n,i.parent(),i)}))}))}))}})];function Si(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){const s=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(((t,e,n)=>n[e-1]!==t));s.forEach((t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:i,element:e})}))}}}function Oi(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}const xi=ut("ngOptions"),Ai=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ki=["$compile","$parse",function(t,e){const n=document.createElement("option"),r=document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(i,s,o,a){const c=a[0],l=a[1],{multiple:u}=o;for(let t=0,e=s.children(),n=e.length;t<n;t++)if(""===e[t].value){c.hasEmptyOption=!0,c.emptyOption=e.eq(t);break}s.empty();const h=!!c.emptyOption;let d;kt(n.cloneNode(!1)).val("?");const p=function(t,n,r){const i=t.match(Ai);if(!i)throw xi("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Wt(n));const s=i[5]||i[7],o=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],l=e(i[2]?i[1]:s),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return dt(t)},p=function(t,e){return d(t,b(t,e))},f=e(i[2]||i[1]),$=e(i[3]||""),g=e(i[4]||""),v=e(i[8]),y={};let b=o?function(t,e){return y[o]=e,y[s]=t,y}:function(t){return y[s]=t,y};function w(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function E(t){let e;if(!o&&m(t))e=t;else{e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(v,(t=>{const e=[],n=E(t=t||[]),s=n.length;for(let o=0;o<s;o++){const s=t===n?o:n[o],a=t[s],c=b(a,s),l=d(a,c);if(e.push(l),i[2]||i[1]){const t=f(r,c);e.push(t)}if(i[4]){const t=g(r,c);e.push(t)}}return e})),getOptions(){const t=[],e={},n=v(r)||[],i=E(n),s=i.length;for(let o=0;o<s;o++){const s=n===i?o:i[o],a=n[s],c=b(a,s),l=u(r,c),h=d(l,c),p=new w(h,l,f(r,c),$(r,c),g(r,c));t.push(p),e[h]=p}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(o.ngOptions,s,i),f=document.createDocumentFragment();function $(t,e){const r=n.cloneNode(!1);e.appendChild(r),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,r)}function g(t){const e=d.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}c.generateUnknownOptionValue=()=>"?",u?(c.writeValue=function(t){if(!d)return;const e=t&&t.map(g)||[];d.items.forEach((t=>{t.element.selected&&!q(e,t)&&(t.element.selected=!1)}))},c.readValue=function(){const t=s.val()||[],e=[];return N(t,(t=>{const n=d.selectValueMap[t];n&&!n.disabled&&e.push(d.getViewValueFromOption(n))})),e},p.trackBy&&i.$watchCollection((()=>{if(Array.isArray(l.$viewValue))return l.$viewValue.map((t=>p.getTrackByValue(t)))}),(()=>{l.$render()}))):(c.writeValue=function(t){if(!d)return;const e=s[0].options[s[0].selectedIndex],n=d.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(c.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(t)},c.readValue=function(){const t=d.selectValueMap[s.val()];return t&&!t.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),d.getViewValueFromOption(t)):null},p.trackBy&&i.$watch((()=>p.getTrackByValue(l.$viewValue)),(()=>{l.$render()}))),h&&(t(c.emptyOption)(i),s.prepend(c.emptyOption),c.emptyOption[0].nodeType===Node.COMMENT_NODE&&(c.hasEmptyOption=!1,c.registerOption=function(t,e){""===e.val()&&(c.hasEmptyOption=!0,c.emptyOption=e,l.$render(),e.on("$destroy",(()=>{const t=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,t&&l.$render()})))})),i.$watchCollection(p.getWatchables,(function(){const t=d&&c.readValue();if(d)for(let t=d.items.length-1;t>=0;t--){const e=d.items[t];v(e.group)?Ht(e.element.parentNode):Ht(e.element)}d=p.getOptions();const e={};if(d.items.forEach((t=>{let n;v(t.group)?(n=e[t.group],n||(n=r.cloneNode(!1),f.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),$(t,n)):$(t,f)})),s[0].appendChild(f),l.$render(),!l.$isEmpty(t)){const e=c.readValue();(p.trackBy||u?B(t,e):t===e)||(l.$setViewValue(e),l.$render())}}))}}}}],_i=ut("ngTransclude"),Ti=["$compile",function(t){return{restrict:"EA",compile:function(e){const n=t(e[0].childNodes);return e.empty(),function(t,e,r,i,s){if(!s)throw _i("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Wt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,(t=>{e.append(t)}))}s((function(t,n){t.length&&function(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];if(n.nodeType!==Node.TEXT_NODE||n.nodeValue.trim())return!0}}(t)?e.append(t):(a(),n.$destroy())}),null,o),o&&!s.isSlotFilled(o)&&a()}}}}];function ji(){return{restrict:"A",priority:100,require:"ngModel",link(t,e,n,r){const i=n.ngList||", ",s="false"!==n.ngTrim,o=s?T(i):i;r.$parsers.push((function(t){if(g(t))return;const e=[];return t&&N(t.split(o),(t=>{t&&e.push(s?T(t):t)})),e})),r.$formatters.push((t=>{if(Array.isArray(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}}function Ni(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const Vi=/^\/(.+)\/([a-z]*)$/,Ri={};Object.entries(xt).forEach((([t,e])=>{if("multiple"===e)return;function n(e,n,i){e.$watch(i[r],(e=>{i.$set(t,!!e)}))}let r=ft(`ng-${t}`),i=n;"checked"===e&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),Ri[r]=function(){return{restrict:"A",priority:100,link:i}}})),Object.entries(h).forEach((([t])=>{Ri[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Vi);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]))}e.$watch(r[t],(e=>{r.$set(t,e)}))}}}})),["src","srcset","href"].forEach((t=>{const e=ft(`ng-${t}`);Ri[e]=["$sce",function(n){return{priority:99,link(r,i,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(i[0].href)&&(o="xlinkHref",s.$attr[o]="xlink:href"),s.$set(e,n.getTrustedMediaUrl(s[e])),s.$observe(e,(e=>{e?s.$set(o,e):"href"===t&&s.$set(o,null)}))}}}]}));const Pi=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=Object.prototype.hasOwnProperty.call(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=function(t,e){return!s||!i.$isEmpty(e)},r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Di=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&Vi.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,s){if(s){var o=n.pattern;n.ngPattern?o=i(t):r=n.pattern;var a=Ii(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Ii(t,r,e),(n&&n.toString())!==(a&&a.toString())&&s.$validate()})),s.$validators.pattern=function(t,e){return s.$isEmpty(e)||g(a)||a.test(e)}}}}}}],Mi=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=Ui(s);r.$observe("maxlength",(t=>{s!==t&&(o=Ui(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Li=["$parse",function(t){return{restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.minlength||t(r.ngMinlength)(e),o=Ui(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=Ui(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Ii(t,e,n){if(t){if(b(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw ut("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,Wt(n));return t}}function Ui(t){const e=R(t);return P(e)?-1:e}class qi{constructor(){this.autoScrollingEnabled=!0}disableAutoScrolling(){this.autoScrollingEnabled=!1}$get=["$location","$rootScope",function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(S(t))t=t();else if(I(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else w(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const r=function(e){let r;(e=b(e)?e:w(e)?e.toString():t.hash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===U(t))return e=t,!0})),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&e.$watch((()=>t.hash()),((t,n)=>{if(t===n&&""===t)return;const i=()=>e.$evalAsync(r);"complete"===document.readyState?window.setTimeout((()=>i())):window.addEventListener("load",(()=>i()))})),r}]}function Hi(t){return t.replace(/#$/,"")}class Fi{constructor(t){this.taskTracker=t,this.pendingDeferIds={},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.baseElement=kt(Array.from(document.getElementsByTagName("base"))),this.$$completeOutstandingRequest=this.taskTracker.completeTask.bind(t),this.$$incOutstandingRequestCount=this.taskTracker.incTaskCount.bind(t),this.notifyWhenNoOutstandingRequests=this.taskTracker.notifyWhenNoPendingTasks.bind(t),this.cacheState()}url(t,e){return void 0===e&&(e=null),t?(t=We(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e||(this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()),this):Hi(window.location.href)}state(){return this.cachedState}cacheStateAndFireUrlChange(){this.fireStateOrUrlChange()}cacheState(){this.cachedState=history.state,this.cachedState=void 0===this.cachedState?null:this.cachedState,B(this.cachedState,this.lastCachedState)&&(this.cachedState=this.lastCachedState),this.lastCachedState=this.cachedState,this.lastHistoryState=this.cachedState}fireStateOrUrlChange(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.url()&&t===this.cachedState||(this.lastBrowserUrl=this.url(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach((t=>{t(Hi(window.location.href),this.cachedState)})))}onUrlChange(t){return this.urlChangeInit||(window.addEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.addEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t),t}$$applicationDestroyed(){window.removeEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.removeEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this))}$$checkUrlChange(){this.fireStateOrUrlChange()}baseHref(){const t=this.baseElement.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}defer(t,e=0,n=this.taskTracker.DEFAULT_TASK_TYPE){let r;return this.taskTracker.incTaskCount(n),r=window.setTimeout((()=>{delete this.pendingDeferIds[r],this.taskTracker.completeTask(t,n)}),e),this.pendingDeferIds[r]=n,r}cancel(t){if(Object.prototype.hasOwnProperty.call(this.pendingDeferIds,t)){const e=this.pendingDeferIds[t];return delete this.pendingDeferIds[t],window.clearTimeout(t),this.taskTracker.completeTask((()=>{}),e),!0}return!1}}class Bi{$get=["$$taskTrackerFactory",t=>new Fi(t)]}function zi(){this.$get=[function(){var t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var t=!1;return e((function(){t=!0})),function(n){t?n():e(n)}}}]}let Wi,Gi,Ki,Yi;function Qi(){this.$get=["$q","$$animateAsyncRun","$timeout",function(t,e,n){return Wi=t,Gi=e,Ki=n,Zi}]}class Zi{static chain(t,e){let n=0;!function r(){n!==t.length?t[n]((t=>{!1!==t?(n++,r()):e(!1)})):e(!0)}()}static all(t,e){let n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}t.forEach((t=>{t.done(i)}))}constructor(t){this.setHost(t);const e=Gi();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{Ki(t,0,!1)})(t):e(t)},this._state=0}setHost(t){this.host=t||{}}done(t){2===this._state?t():this._doneCallbacks.push(t)}progress(){}getPromise(){if(!this.promise){const t=this;this.promise=Wi(((e,n)=>{t.done((t=>{!1===t?n():e()}))}))}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick((()=>{this._resolve(t)})))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach((e=>{e(t)})),this._doneCallbacks.length=0,this._state=2)}}function Ji(){this.$get=()=>new Map}const Xi=(t,e)=>{Yi.error(t,e)};function ts(){this.$get=["$log",function(t){return Yi=t,Xi}]}function es(){return function(t,e,n,r){if(!m(t)){if(null==t)return t;throw ut("filter")("notarray","Expected array but received: {0}",t)}let i;r=r||"$";let s=!1;switch(rs(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":i=function(t,e,n,r){const i=y(t)&&n in t;let s;!0===e?e=B:S(e)||(e=function(t,e){return!g(t)&&(null===t||null===e?t===e:!(y(e)||y(t)&&!L(t))&&(t=`${t}`.toLowerCase(),e=`${e}`.toLowerCase(),-1!==t.indexOf(e)))});return s=function(s){return i&&!y(s)?ns(s,t[n],e,n,!1):ns(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function ns(t,e,n,r,i,s){const o=rs(t),a=rs(e);if("string"===a&&"!"===e.charAt(0))return!ns(t,e.substring(1),n,r,i);if(Array.isArray(t))return t.some((t=>ns(t,e,n,r,i)));switch(o){case"object":if(i){for(let i in t)if(i.charAt&&"$"!==i.charAt(0)&&ns(t[i],e,n,r,!0))return!0;return!s&&ns(t,e,n,r,!1)}if("object"===a){for(let i in e){const s=e[i];if(S(s)||g(s))continue;const o=i===r;if(!ns(o?t:t[i],s,n,r,o,o))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function rs(t){return null===t?"null":typeof t}function is(){return function(t,e){return g(e)&&(e=2),Z(t,e)}}function ss(){return function(t,e,n){return P(e=Math.abs(Number(e))===1/0?Number(e):R(e))?t:(w(t)&&(t=t.toString()),m(t)?(n=(n=!n||isNaN(n)?0:R(n))<0?Math.max(0,t.length+n):n,e>=0?os(t,n,n+e):0===n?os(t,e,t.length):os(t,Math.max(0,n+e),n)):t)}}function os(t,e,n){return b(t)?t.slice(e,n):[].slice.call(t,e,n)}function as(t){return function(r,i,s,o){if(null==r)return r;if(!m(r))throw ut("orderBy")("notarray","Expected array but received: {0}",r);Array.isArray(i)||(i=[i]),0===i.length&&(i=["+"]);const a=i.map((e=>{let n=1,r=t=>t;if(S(e))r=e;else if(b(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)){let n=t(e);if(n.constant){const t=n();r=e=>e[t]}else r=n}return{get:r,descending:n}}));const c=s?-1:1,l=S(o)?o:n,u=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map((r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(S(t.valueOf)&&e(t=t.valueOf()))return t;if(L(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n)))}}));return u.sort((function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),r=u.map((t=>t.value))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,i=e.type;if(r===i){let i=t.value,s=e.value;"string"===r?(i=i.toLowerCase(),s=s.toLowerCase()):"object"===r&&(y(i)&&(i=t.index),y(s)&&(s=e.index)),i!==s&&(n=i<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function cs(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function ls(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function us(t){const e="Filter";function n(r,i){if(y(r)){const t={};return Object.entries(r).forEach((([e,r])=>{t[e]=n(e,r)})),t}return t.factory(r+e,i)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("filter",es),n("json",is),n("limitTo",ss),n("orderBy",as),n("isState",cs),n("includedByState",ls)}as.$inject=["$parse"],cs.$inject=["$state"],ls.$inject=["$state"],us.$inject=["$provide"];class hs{constructor(){this.errorOn=!0}$get=["$rootScope","$exceptionHandler",function(t,e){return ps((e=>{t.$evalAsync(e)}),e,this.errorOn)}];errorOnUnhandledRejections(t){return v(t)?(this.errorOn=t,this):this.errorOn}}class ds{constructor(){this.errorOn=!0}$get=["$exceptionHandler",function(t){return ps((t=>{window.setTimeout(t)}),t,this.errorOn)}];errorOnUnhandledRejections(t){return v(t)?(this.errorOn=t,this):this.errorOn}}function ps(t,e,n){const r=ut("$q");let i=0;const s=[];class o{constructor(){this.promise=new a,this.resolve=t=>u(this.promise,t),this.reject=t=>d(this.promise,t)}}class a{constructor(){this.$$state={status:0,pending:void 0,processScheduled:!1,pur:!1}}then(t,e){if(g(t)&&g(e))return this;const n=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push({result:n,onFulfilled:t,onRejected:e}),this.$$state.status>0&&l(this.$$state),n}catch(t){return this.then(null,t)}finally(t){return this.then((e=>$(e,m,t)),(e=>$(e,f,t)))}}function c(){for(;!i&&s.length;){const t=s.shift();if(!fs(t)){t.pur=!0;const n=`Possibly unhandled rejection: ${ht(t.value)}`;C(t.value)?e(t.value,n):e(n)}}}function l(e){!n||e.pending||2!==e.status||fs(e)||(0===i&&0===s.length&&t(c),s.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++i,t((()=>{!function(e){e.processScheduled=!1;try{for(let t=0,n=e.pending.length;t<n;++t){e.pur=!0;const n=e.pending[t].result;let r;r=1===e.status?e.pending[t].onFulfilled:e.pending[t].onRejected;try{S(r)?u(n,r(e.value)):1===e.status?u(n,e.value):d(n,e.value)}catch(t){d(n,t)}}}finally{--i,n&&0===i&&t(c),e.pending=void 0}}(e)})))}function u(t,e){t.$$state.status||(e===t?p(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):h(t,e))}function h(t,e){let n,r=!1;try{(y(e)||S(e))&&(n=e.then),S(n)?(t.$$state.status=-1,n.call(e,(function(e){if(r)return;r=!0,h(t,e)}),i)):(t.$$state.value=e,t.$$state.status=1,l(t.$$state))}catch(t){i(t)}function i(e){r||(r=!0,p(t,e))}}function d(t,e){t.$$state.status||p(t,e)}function p(t,e){t.$$state.value=e,t.$$state.status=2,l(t.$$state)}function f(t){const e=new a;return d(e,t),e}function $(t,e,n){let r=null;try{S(n)&&(r=n())}catch(t){return f(t)}return _(r)?r.then((()=>e(t)),f):e(t)}function m(t,e,n){const r=new a;return u(r,t),r.then(e,n)}function v(t){if(!S(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new a;return t((t=>u(e,t)),(t=>d(e,t))),e}return v.defer=()=>new o,v.reject=f,v.resolve=m,v.all=function(t){const e=new a;let n=0;const r=Array.isArray(t)?[]:{};return Object.entries(t).forEach((([t,i])=>{n++,m(i).then((i=>{r[t]=i,--n||u(e,r)}),(t=>{d(e,t)}))})),0===n&&u(e,r),e},v.race=function(t){const e=new o;return t.forEach((t=>{m(t).then(e.resolve,e.reject)})),e.promise},v}function fs(t){return!!t.pur}function $s(t){t.$$state&&(t.$$state.pur=!0)}const ms=ut("$interval"),gs=new Map;function vs(){this.$get=["$$intervalFactory",function(t){function e(t){window.clearInterval(t),gs.delete(t)}const n=t((function(t,e,n){const r=window.setInterval(t,e);return gs.set(r,n),r}),e);return n.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw ms("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!gs.has(t.$$intervalId))return!1;const n=t.$$intervalId,r=gs.get(n);return $s(r.promise),r.reject("canceled"),e(n),!0},n}]}const ys=1,bs=2;class ws{constructor(t){this.$filter=t}compile(t){let e,n,r=Es(t,this.$filter);(e=function(t){if(1===t.body.length&&Cs(t.body[0].expression))return{type:Ar.AssignmentExpression,left:t.body[0].expression,right:{type:Ar.NGValueParameter},operator:"="}}(r))&&(n=this.recurse(e));const i=function(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}(r.body);let s;if(i){s=[];for(const[t,e]of Object.entries(i)){const n=this.recurse(e);n.isPure=e.isPure,e.input=n,s.push(n),e.watchId=t}}const o=[];r.body.forEach((t=>{o.push(this.recurse(t.expression))}));const a=0===r.body.length?()=>{}:1===r.body.length?o[0]:function(t,e){let n;return o.forEach((r=>{n=r(t,e)})),n};return n&&(a.assign=(t,e,r)=>n(t,r,e)),s&&(a.inputs=s),a}recurse(t,e,n){let r,i;const s=this;let o;switch(t.type){case Ar.Literal:return this.value(t.value,e);case Ar.UnaryExpression:return i=this.recurse(t.argument),this[`unary${t.operator}`](i,e);case Ar.BinaryExpression:case Ar.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this[`binary${t.operator}`](r,i,e);case Ar.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case Ar.Identifier:return s.identifier(t.name,e,n);case Ar.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case Ar.CallExpression:return o=[],t.arguments.forEach((t=>{o.push(s.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r){const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r));const a=i.apply(void 0,s);return e?{context:void 0,name:void 0,value:a}:a}:function(t,n,r){const s=i(t,n,r);let a;if(null!=s.value){const e=[];for(let i=0;i<o.length;++i)e.push(o[i](t,n,r));a=s.value.apply(s.context,e)}return e?{value:a}:a};case Ar.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,s){const o=r(t,n,s),a=i(t,n,s);return o.context[o.name]=a,e?{value:a}:a};case Ar.ArrayExpression:return o=[],t.elements.forEach((t=>{o.push(s.recurse(t))})),function(t,n,r){const i=[];for(let e=0;e<o.length;++e)i.push(o[e](t,n,r));return e?{value:i}:i};case Ar.ObjectExpression:return o=[],t.properties.forEach((t=>{t.computed?o.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):o.push({key:t.key.type===Ar.Identifier?t.key.name:`${t.key.value}`,computed:!1,value:s.recurse(t.value)})})),function(t,n,r){const i={};for(let e=0;e<o.length;++e)o[e].computed?i[o[e].key(t,n,r)]=o[e].value(t,n,r):i[o[e].key]=o[e].value(t,n,r);return e?{value:i}:i};case Ar.ThisExpression:return function(t){return e?{value:t}:t};case Ar.LocalsExpression:return function(t,n){return e?{value:n}:n};case Ar.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}}"unary+"(t,e){return function(n,r,i){let s=t(n,r,i);return s=v(s)?+s:0,e?{value:s}:s}}"unary-"(t,e){return function(n,r,i){let s=t(n,r,i);return s=v(s)?-s:-0,e?{value:s}:s}}"unary!"(t,e){return function(n,r,i){const s=!t(n,r,i);return e?{value:s}:s}}"binary+"(t,e,n){return function(r,i,s){const o=t(r,i,s),a=e(r,i,s),c=(u=a,void 0===(l=o)?u:void 0===u?l:l+u);var l,u;return n?{value:c}:c}}"binary-"(t,e,n){return function(r,i,s){const o=t(r,i,s),a=e(r,i,s),c=(v(o)?o:0)-(v(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return function(r,i,s){const o=t(r,i,s)*e(r,i,s);return n?{value:o}:o}}"binary/"(t,e,n){return function(r,i,s){const o=t(r,i,s)/e(r,i,s);return n?{value:o}:o}}"binary%"(t,e,n){return function(r,i,s){const o=t(r,i,s)%e(r,i,s);return n?{value:o}:o}}"binary==="(t,e,n){return function(r,i,s){const o=t(r,i,s)===e(r,i,s);return n?{value:o}:o}}"binary!=="(t,e,n){return function(r,i,s){const o=t(r,i,s)!==e(r,i,s);return n?{value:o}:o}}"binary=="(t,e,n){return function(r,i,s){const o=t(r,i,s)==e(r,i,s);return n?{value:o}:o}}"binary!="(t,e,n){return function(r,i,s){const o=t(r,i,s)!=e(r,i,s);return n?{value:o}:o}}"binary<"(t,e,n){return function(r,i,s){const o=t(r,i,s)<e(r,i,s);return n?{value:o}:o}}"binary>"(t,e,n){return function(r,i,s){const o=t(r,i,s)>e(r,i,s);return n?{value:o}:o}}"binary<="(t,e,n){return function(r,i,s){const o=t(r,i,s)<=e(r,i,s);return n?{value:o}:o}}"binary>="(t,e,n){return function(r,i,s){const o=t(r,i,s)>=e(r,i,s);return n?{value:o}:o}}"binary&&"(t,e,n){return function(r,i,s){const o=t(r,i,s)&&e(r,i,s);return n?{value:o}:o}}"binary||"(t,e,n){return function(r,i,s){const o=t(r,i,s)||e(r,i,s);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return function(i,s,o){const a=t(i,s,o)?e(i,s,o):n(i,s,o);return r?{value:a}:a}}value(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}}identifier(t,e,n){return function(r,i){const s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});const o=s?s[t]:void 0;return e?{context:s,name:t,value:o}:o}}computedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);let c,l;return null!=a&&(c=e(i,s,o),c=`${c}`,r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function Es(t,e,n){let r,i,s,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case Ar.MemberExpression:if(t.computed)return!1;break;case Ar.UnaryExpression:return ys;case Ar.BinaryExpression:return"+"!==t.operator&&ys;case Ar.CallExpression:return!1}return void 0===e?bs:e}(t,n);switch(t.type){case Ar.Program:return r=!0,f.body.forEach((t=>{let n=Es(t.expression,e,$);r=r&&n.constant})),f.constant=r,f;case Ar.Literal:return f.constant=!0,f.toWatch=[],f;case Ar.UnaryExpression:var m=Es(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Ar.BinaryExpression:return o=Es(f.left,e,$),a=Es(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Ar.LogicalExpression:return o=Es(f.left,e,$),a=Es(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Ar.ConditionalExpression:return c=Es(t.test,e,$),l=Es(t.alternate,e,$),u=Es(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case Ar.Identifier:return f.constant=!1,f.toWatch=[t],f;case Ar.MemberExpression:return h=Es(t.object,e,$),t.computed&&(d=Es(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.constant),f.toWatch=f.constant?[]:[t],f;case Ar.CallExpression:return s=!!t.filter&&function(t,e){const n=t(e);return!n.$stateful}(e,t.callee.name),r=s,i=[],t.arguments.forEach((t=>{m=Es(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=s?i:[f],f;case Ar.AssignmentExpression:return o=Es(t.left,e,$),a=Es(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case Ar.ArrayExpression:return r=!0,i=[],t.elements.forEach((t=>{m=Es(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=i,f;case Ar.ObjectExpression:return r=!0,i=[],t.properties.forEach((t=>{m=Es(t.value,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch),t.computed&&(p=Es(t.key,e,!1),r=r&&p.constant,i.push.apply(i,p.toWatch))})),f.constant=r,f.toWatch=i,f;case Ar.ThisExpression:case Ar.LocalsExpression:return f.constant=!1,f.toWatch=[],f}}function Cs(t){return t.type===Ar.Identifier||t.type===Ar.MemberExpression}const Ss=ut("$parse"),Os={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},xs=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class As{constructor(t){this.options=t}lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart&&this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{const e=t+this.peek(),n=e+this.peek(2),r=xs.has(t),i=xs.has(e),s=xs.has(n);if(r||i||s){const r=s?n:i?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens}is(t,e){return-1!==e.indexOf(t)}peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)}isNumber(t){return t>="0"&&t<="9"&&"string"==typeof t}isWhitespace(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}codePointAt(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888}peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t}isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)}throwError(t,e,n){n=n||this.index;const r=v(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw Ss("lexerr",`Lexer Error: ${t} at column${r} in expression [${this.text}].`)}readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=this.text.charAt(this.index).toLowerCase();if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})}readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(this.isIdentifierContinue&&!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})}readString(t){const e=this.index;let n="",r=!1;for(this.index++;this.index<this.text.length;){const i=this.text[this.index];if(r)n+="u"===i?this.handleUnicodeEscape():Os[i]||i,r=!1;else if("\\"===i)r=!0;else{if(i===t)return this.tokens.push({index:e,text:this.text.slice(e,this.index+1),constant:!0,value:n}),void this.index++;n+=i}this.index++}this.throwError("Unterminated quote",e)}handleUnicodeEscape(){const t=this.text.substring(this.index+1,this.index+5);return t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,String.fromCharCode(parseInt(t,16))}}const ks=ut("$parse"),_s=new Map(Object.entries({true:!0,false:!1,null:null,undefined:void 0}));class Ts{constructor(t){this.lexer=t,this.selfReferential={this:{type:Ar.ThisExpression},$locals:{type:Ar.LocalsExpression}}}ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e}program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:Ar.Program,body:t}}expressionStatement(){return{type:Ar.ExpressionStatement,expression:this.filterChain()}}filterChain(){let t=this.assignment();for(;this.expect("|");)t=this.filter(t);return t}assignment(){let t=this.ternary();if(this.expect("=")){if(!Cs(t))throw ks("lval","Trying to assign a value to a non l-value");t={type:Ar.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t}ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.assignment(),this.consume(":"))?(n=this.assignment(),{type:Ar.ConditionalExpression,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:Ar.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:Ar.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:Ar.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:Ar.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:Ar.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:Ar.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:Ar.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()}primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():Object.prototype.hasOwnProperty.call(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):_s.has(this.peek().text)?t={type:Ar.Literal,value:_s.get(this.consume().text)}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:Ar.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:Ar.MemberExpression,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:Ar.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:Ar.CallExpression,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.assignment());return n}parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t}identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:Ar.Identifier,name:t.text}}constant(){return{type:Ar.Literal,value:this.consume().value}}arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.assignment())}while(this.expect(","));return this.consume("]"),{type:Ar.ArrayExpression,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ar.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.assignment()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.assignment()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.assignment(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.assignment()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Ar.ObjectExpression,properties:t}}throwError(t,e){throw ks("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))}consume(t){if(0===this.tokens.length)throw ks("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);if(e)return e;this.throwError(`is unexpected, expecting [${t}]`,this.peek())}peekToken(){if(0===this.tokens.length)throw ks("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]}peek(...t){return this.peekAhead(0,...t)}peekAhead(t,...e){if(this.tokens.length>t){const n=this.tokens[t],r=n.text;if(e.includes(r)||!e[0]&&!e[1]&&!e[2]&&!e[3])return n}return!1}expect(...t){const e=this.peek(...t);return!!e&&(this.tokens.shift(),e)}}class js{constructor(t,e){this.ast=new Ts(t),this.astCompiler=new ws(e)}parse(t){const{ast:e,oneTime:n}=this.getAst(t),r=this.astCompiler.compile(e);return r.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===Ar.Literal||t.body[0].expression.type===Ar.ArrayExpression||t.body[0].expression.type===Ar.ObjectExpression)}(e),r.constant=function(t){return t.constant}(e),r.oneTime=n,r}getAst(t){let e=!1;return(t=t.trim()).startsWith("::")&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}}function Ns(){const t=Object.create(null);var e,n;this.setIdentifierFns=function(t,r){return e=t,n=r,this},this.$get=["$filter",function(r){var i={isIdentifierStart:S(e)&&e,isIdentifierContinue:S(n)&&n};return function(e,n){var o,a;switch(typeof e){case"string":if(e=e.trim(),!(o=t[a=e])){var c=new As(i);o=new js(c,r).parse(e),t[a]=Rs(o)}return s(o,n);case"function":return s(e,n);default:return s((()=>{}),n)}};function s(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,s,o){var a=n&&o?o[0]:t(r,i,s,o);return e(a)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return t.isPure===bs?function(e){return t(e)}:t})))),Rs(r)}}]}function Vs(t,e,n,r){const i=t.$watch((()=>(i(),r(t))),e,n);return i}function Rs(t){return t.constant?t.$$watchDelegate=Vs:t.oneTime?t.$$watchDelegate=Ds:t.inputs&&(t.$$watchDelegate=Ps),t}function Ps(t,e,n,r){let i,s=r.inputs;if(1===s.length){let o=Ms,a=s[0];return t.$watch((t=>{const e=a(t);return Ms(e,o,a.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&Is(e)),i}),e,n)}{const o=[],a=[];for(let t=0,e=s.length;t<e;t++)o[t]=Ms,a[t]=null;return t.$watch((t=>{let e=!1;for(let n=0,r=s.length;n<r;n++){const r=s[n](t);(e||(e=!Ms(r,o[n],s[n].isPure)))&&(a[n]=r,o[n]=r&&Is(r))}return e&&(i=r(t,void 0,void 0,a)),i}),e,n)}}function Ds(t,e,n,r){const i=r.literal?Ls:v;let s,o;const a=r.$$intercepted||r,c=r.$$interceptor||(t=>t),l=r.inputs&&!a.inputs;function u(){i(o)&&s()}function h(t,e,n,r){return o=l&&r?r[0]:a(t,e,n,r),i(o)&&t.$$postDigest(u),c(o)}return h.literal=r.literal,h.constant=r.constant,h.inputs=r.inputs,h.oneTime=void 0,Rs(h),s=t.$watch(h,e,n),s}function Ms(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Is(t))&&!n)&&(t===e||t!=t&&e!=e)}function Ls(t){let e=!0;return N(t,(t=>{v(t)||(e=!1)})),e}function Is(t){return S(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Us=ut("$interpolate");function qs(t,e){throw Us("interr","Can't interpolate: {0}\n{1}",t,e.toString())}function Hs(){let t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){const s=t.length,o=e.length,a=new RegExp(t.replace(/./g,l),"g"),c=new RegExp(e.replace(/./g,l),"g");function l(t){return`\\\\\\${t}`}function u(n){return n.replace(a,t).replace(c,e)}function h(r,a,c,l){const h=c===i.URL||c===i.MEDIA_URL;if(!r.length||-1===r.indexOf(t)){if(a)return;let t=u(r);h&&(t=i.getTrusted(c,t));const e=M(t);return e.exp=r,e.expressions=[],e.$$watchDelegate=Vs,e}let d,p;l=!!l;let f=0;const $=[];let m;const y=r.length;let b;const w=[],E=[];let C;for(;f<y;){if(-1===(d=r.indexOf(t,f))||-1===(p=r.indexOf(e,d+s))){f!==y&&w.push(u(r.substring(f)));break}f!==d&&w.push(u(r.substring(f,d))),b=r.substring(d+s,p),$.push(b),f=p+o,E.push(w.length),w.push("")}C=1===w.length&&1===E.length;const S=h&&C?void 0:function(t){try{return t=c&&!h?i.getTrusted(c,t):i.valueOf(t),l&&!v(t)?t:W(t)}catch(t){qs(r,t)}};if(m=$.map((t=>n(t,S))),!a||$.length){const t=function(t){for(let e=0,n=$.length;e<n;e++){if(l&&g(t[e]))return;w[E[e]]=t[e]}return h?i.getTrusted(c,C?w[0]:w.join("")):(c&&w.length>1&&function(t){throw Us("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(r),w.join(""))};return V((e=>{let n=0;const i=$.length,s=new Array(i);try{for(;n<i;n++)s[n]=m[n](e);return t(s)}catch(t){qs(r,t)}}),{exp:r,expressions:$,$$watchDelegate(e,n){let r;return e.$watchGroup(m,(function(i,s){const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return h.startSymbol=function(){return t},h.endSymbol=function(){return e},h}]}function Fs(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,s){return function(o,a,c,l){const u=arguments.length>4,h=u?K(arguments,4):[];let d=0;const p=v(l)&&!l,f=(p?n:e).defer(),{promise:$}=f;function m(){u?o.apply(null,h):o(d)}return c=v(c)?c:0,$.$$intervalId=i((function(){p?t.defer(m):r.$evalAsync(m),d++,c>0&&d>=c&&(f.resolve(d),s($.$$intervalId)),p||r.$apply()}),a,f,p),$}}}]}let Bs={},zs="";function Ws(t){try{return decodeURIComponent(t)}catch(e){return t}}const Gs="application/json",Ks={"Content-Type":`${Gs};charset=utf-8`},Ys=/^\[|^\{(?!\{)/,Qs={"[":/]$/,"{":/}$/},Zs=/^\)]\}',?\n/,Js=ut("$http");function Xs(t){return y(t)?E(t)?t.toISOString():Z(t):t}function to(){this.$get=function(){return function(t){if(!t)return"";const e=[];return Object.keys(t).sort().forEach((n=>{const r=t[n];null===r||g(r)||S(r)||(Array.isArray(r)?r.forEach((t=>{e.push(`${nt(n)}=${nt(Xs(t))}`)})):e.push(`${nt(n)}=${nt(Xs(r))}`))})),e.join("&")}}}function eo(){this.$get=function(){return function(t){if(!t)return"";const e=[];return function t(n,r,i){Array.isArray(n)?N(n,((e,n)=>{t(e,`${r}[${y(e)?n:""}]`)})):y(n)&&!E(n)?Object.keys(n).sort().forEach((e=>{const s=n[e];t(s,r+(i?"":"[")+e+(i?"":"]"))})):(S(n)&&(n=n()),e.push(`${nt(r)}=${null==n?"":nt(Xs(n))}`))}(t,"",!0),e.join("&")}}}function no(t,e){if(b(t)){const r=t.replace(Zs,"").trim();if(r){const i=e("Content-Type"),s=i&&0===i.indexOf(Gs);if(s||function(t){const e=t.match(Ys);return e&&Qs[e[0]].test(t)}(r))try{t=b(n=r)?JSON.parse(n):n}catch(e){if(!s)return t;throw Js("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function ro(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return b(t)?t.split("\n").forEach((t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),T(t.substring(n+1)))})):y(t)&&N(t,((t,e)=>{r($(e),T(t))})),e}function io(t){let e;return function(n){if(e||(e=ro(t)),n){let t=e[$(n)];return void 0===t&&(t=null),t}return e}}function so(t,e,n,r){return S(r)?r(t,e,n):(Array.isArray(r)&&r.forEach((r=>{t=r(t,e,n)})),t)}function oo(t){return t>=200&&t<300}function ao(){const t=this.defaults={transformResponse:[no],transformRequest:[function(t){return!y(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:Z(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:it(Ks),put:it(Ks),patch:it(Ks)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return v(t)?(e=!!t,this):e};const n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l){const u=new Map;t.paramSerializer=b(t.paramSerializer)?c.get(t.paramSerializer):t.paramSerializer;const h=[];n.forEach((t=>{h.unshift(b(t)?c.get(t):c.invoke(t))}));const d=function(t){const e=[Be].concat(t.map(We));return function(t){const n=We(t);return e.some(Ke.bind(null,n))}}(r);function p(n){if(!y(n))throw ut("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!b(l.valueOf(n.url)))throw ut("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);const r=V({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);var f;r.headers=function(e){let n=t.headers,r=V({},e.headers);return n=V({},n.common,n[$(e.method)]),Object.keys(n).forEach((t=>{r[$(t)]||(r[t]=n[t])})),function(t,e){let n;const r={};return N(t,((t,i)=>{S(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t})),r}(r,it(e))}(n),r.method=b(f=r.method)?f.toUpperCase():f,r.paramSerializer=b(r.paramSerializer)?c.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const m=[],w=[];let E=a.resolve(r);return N(h,(t=>{(t.request||t.requestError)&&m.unshift(t.request,t.requestError),(t.response||t.responseError)&&w.push(t.response,t.responseError)})),E=C(E,m),E=E.then((function(n){const{headers:r}=n,i=so(n.data,io(r),void 0,n.transformRequest);g(i)&&N(r,((t,e)=>{"content-type"===$(e)&&delete r[e]}));g(n.withCredentials)&&!g(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=a.defer(),{promise:c}=i;let h,f;const $=n.headers;let{url:m}=n;b(m)||(m=l.valueOf(m));m=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(m,n.paramSerializer(n.params)),p.pendingRequests.push(n),c.then(O,O),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(h=y(n.cache)?n.cache:y(t.cache)?t.cache:u);h&&(f=h.get(m),v(f)?_(f)?f.then(S,S):Array.isArray(f)?C(f[1],f[0],it(f[2]),f[3],f[4]):C(f,200,{},"OK","complete"):h.set(m,c));if(g(f)){const e=d(n.url)?function(){let t,e,n,r,i;const s=document.cookie;if(s!==zs)for(zs=s,t=zs.split("; "),Bs={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(i=Ws(e.substring(0,r)),g(Bs[i])&&(Bs[i]=Ws(e.substring(r+1))));return Bs}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&($[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,m,r,E,$,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return c;function w(t){if(t){const n={};return N(t,((t,r)=>{n[r]=function(n){function r(){t(n)}e?o.$applyAsync(r):o.$$phase!==Ae.NONE?r():o.$apply(r)}})),n}}function E(t,n,r,i,s){function a(){C(n,t,r,i,s)}h&&(oo(t)?h.set(m,[t,n,ro(r),i,s]):h.delete(m)),e?o.$applyAsync(a):(a(),o.$$phase||o.$apply())}function C(t,e,r,s,o){(oo(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:io(r),config:n,statusText:s,xhrStatus:o})}function S(t){C(t.data,t.status,it(t.headers()),t.statusText,t.xhrStatus)}function O(){const t=p.pendingRequests.indexOf(n);-1!==t&&p.pendingRequests.splice(t,1)}}(n,i).then(O,O)})),E=C(E,w),E=E.finally((function(){i.$$completeOutstandingRequest((()=>{}),"$http")})),E;function C(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],i=e[n++];t=t.then(r,i)}return e.length=0,t}function O(t){const e=V({},t);return e.data=so(t.data,t.headers,t.status,r.transformResponse),oo(t.status)?e:a.reject(e)}}return p.pendingRequests=[],function(...t){t.forEach((t=>{p[t]=function(e,n){return p(V({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{p[t]=function(e,n,r){return p(V({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),p.defaults=t,p}]}function co(){this.$get=["$browser",function(t){return function(t){return function(e,n,r,i,s,o,a,c,l,u){n=n||t.url();const h=new XMLHttpRequest;let d=!1;if(h.open(e,n,!0),N(s,((t,e)=>{v(t)&&h.setRequestHeader(e,t)})),h.onload=function(){const t=h.statusText||"";let e=h.status;0===e&&(e=h.response?200:"file"===We(n).protocol?404:0),$(i,e,h.response,h.getAllResponseHeaders(),t,"complete")},h.onerror=function(){$(i,-1,null,null,"","error")},h.ontimeout=function(){$(i,-1,null,null,"","timeout")},h.onabort=function(){$(i,-1,null,null,"",d?"timeout":"abort")},N(l,((t,e)=>{h.addEventListener(e,t)})),N(u,((t,e)=>{h.upload.addEventListener(e,t)})),a&&(h.withCredentials=!0),c)try{h.responseType=c}catch(t){if("json"!==c)throw t}if(h.send(g(r)?null:r),o>0)var p=t.defer((()=>{f("timeout")}),o);else _(o)&&o.then((()=>{f(v(o.$$timeoutId)?"timeout":"abort")}));function f(t){d="timeout"===t,h&&h.abort()}function $(e,n,r,i,s,o){v(p)&&t.cancel(p),e(n,r,i,s,o)}}}(t)}]}const lo={http:80,https:443,ftp:21},uo=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ho=ut("$location");class po{constructor(t,e){this.appBase=t,this.appBaseNoFile=e,this.$$absUrl="",this.$$html5=!1,this.$$replace=!1,this.$$protocol=void 0,this.$$host=void 0,this.$$port=void 0,this.$$path=void 0,this.$$hash=void 0,this.$$urlUpdatedByLocation=!1}absUrl(){return this.$$absUrl}url(t){if(g(t))return this.$$url;const e=uo.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this}protocol(){return this.$$protocol}host(){return this.$$host}port(){return this.$$port}path(t){if(g(t))return this.$$path;let e=null!==t?t.toString():"";return this.$$path="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}hash(t){return g(t)?this.$$hash:(this.$$hash=null!==t?t.toString():"",this.$$compose(),this)}replace(){return this.$$replace=!0,this}search(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(b(t)||w(t))t=t.toString(),this.$$search=X(t);else{if(!y(t))throw ho("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=structuredClone(t,{}),Object.entries(t).forEach((([e,n])=>{null==n&&delete t[e]})),this.$$search=t}break;default:g(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this}$$compose(){this.$$url=function(t,e,n){const r=function(t){const e=[];return N(t,((t,n)=>{Array.isArray(t)?N(t,(t=>{e.push(nt(n,!0)+(!0===t?"":`=${nt(t,!0)}`))})):e.push(nt(n,!0)+(!0===t?"":`=${nt(t,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${et(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=et(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(r?`?${r}`:"")+i}(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0}$$normalizeUrl(t){throw new Error(`Method not implemented ${t}`)}state(t){if(!arguments.length)return this.$$state;if(!(this instanceof fo&&this.$$html5))throw ho("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(t)?null:t,this.$$urlUpdatedByLocation=!0,this}$$parseLinkUrl(t,e){throw new Error(`Method not implemented ${t} ${e}`)}$$parse(t){throw new Error(`Method not implemented ${t}`)}}class fo extends po{constructor(t,e,n){super(t,e),this.$$html5=!0,this.basePrefix=n||"",go(t,this)}$$parse(t){const e=bo(this.appBaseNoFile,t);if(!b(e))throw ho("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);vo(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()}$$normalizeUrl(t){return this.appBaseNoFile+t.substr(1)}$$parseLinkUrl(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let n,r,i;return v(n=bo(this.appBase,t))?(r=n,i=this.basePrefix&&v(n=bo(this.basePrefix,n))?this.appBaseNoFile+(bo("/",n)||n):this.appBase+r):v(n=bo(this.appBaseNoFile,t))?i=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(i=this.appBaseNoFile),i&&this.$$parse(i),!!i}}class $o extends po{constructor(t,e,n){super(t,e),this.appBase=t,this.appBaseNoFile=e,this.hashPrefix=n,go(t,this)}$$parse(t){const e=bo(this.appBase,t)||bo(this.appBaseNoFile,t);let n;g(e)||"#"!==e.charAt(0)?this.$$html5?n=e:(n="",g(e)&&(this.appBase=t,this.replace())):(n=bo(this.hashPrefix,e),g(n)&&(n=e)),vo(n,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;yo(e,n)&&(e=e.replace(n,""));if(r.exec(e))return t;return i=r.exec(t),i?i[1]:t}(this.$$path,n,this.appBase),this.$$compose()}$$normalizeUrl(t){return this.appBase+(t?this.hashPrefix+t:"")}$$parseLinkUrl(t){return wo(this.appBase)===wo(t)&&(this.$$parse(t),!0)}}function mo(){let t="!";const e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return v(e)?(t=e,this):t},this.html5Mode=function(t){return k(t)?(e.enabled=t,this):y(t)?(k(t.enabled)&&(e.enabled=t.enabled),k(t.requireBase)&&(e.requireBase=t.requireBase),(k(t.rewriteLinks)||b(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$rootElement",function(n,r,i){let s,o;const a=r.baseHref(),c=r.url();let l;if(e.enabled){if(!a&&e.requireBase)throw ho("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(u=c).substring(0,u.indexOf("/",u.indexOf("//")+2))+(a||"/"),o=fo}else l=wo(c),o=$o;var u;const h=function(t){return t.substr(0,wo(t).lastIndexOf("/")+1)}(l);s=new o(l,h,`#${t}`),s.$$parseLinkUrl(c,c),s.$$state=r.state();const d=/^\s*(javascript|mailto):/i;function p(t,e){const n=s.url(),i=s.$$state;try{r.url(t,e),s.$$state=r.state()}catch(t){throw s.url(n),s.$$state=i,t}}i.on("click",(t=>{const{rewriteLinks:o}=e;if(!o||t.ctrlKey||t.metaKey||t.shiftKey||2===t.which||2===t.button)return;let a=kt(t.target);for(;"a"!==a[0].nodeName.toLowerCase();)if(a[0]===i[0]||!(a=a.parent())[0])return;if(b(o)&&g(a.attr(o)))return;let c=a[0].href;const l=a.attr("href")||a.attr("xlink:href");y(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=We(c.animVal).href),d.test(c)||!c||a.attr("target")||t.isDefaultPrevented()||s.$$parseLinkUrl(c,l)&&(t.preventDefault(),s.absUrl()!==r.url()&&n.$apply())})),s.absUrl()!==c&&r.url(s.absUrl(),!0);let f=!0;return r.onUrlChange(((t,e)=>{yo(t,h)?(n.$evalAsync((()=>{const r=s.absUrl(),i=s.$$state;let o;s.$$parse(t),s.$$state=e,o=n.$broadcast("$locationChangeStart",t,r,e,i).defaultPrevented,s.absUrl()===t&&(o?(s.$$parse(r),s.$$state=i,p(r,i)):(f=!1,$(r,i)))})),n.$$phase===Ae.NONE&&n.$digest()):window.location.href=t})),n.$watch((()=>{if(f||s.$$urlUpdatedByLocation){s.$$urlUpdatedByLocation=!1;const i=r.url(),o=s.absUrl(),a=r.state(),c=!((t=i)===(e=o)||We(t).href===We(e).href)||s.$$html5&&a!==s.$$state;(f||c)&&(f=!1,n.$evalAsync((()=>{const t=s.absUrl(),{defaultPrevented:e}=n.$broadcast("$locationChangeStart",t,i,s.$$state,a);s.absUrl()===t&&(e?(s.$$parse(i),s.$$state=a):(c&&p(t,a===s.$$state?null:s.$$state),$(i,a)))})))}var t,e;s.$$replace=!1})),s;function $(t,e){n.$broadcast("$locationChangeSuccess",s.absUrl(),t,s.$$state,e)}}]}function go(t,e){const n=We(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=R(n.port)||lo[n.protocol]||null}function vo(t,e,n){if(/^\s*[\\/]{2,}/.test(t))throw ho("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=We(t),s=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,n),e.$$search=X(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function yo(t,e){return t.slice(0,e.length)===e}function bo(t,e){if(yo(e,t))return e.substr(t.length)}function wo(t){const e=t.indexOf("#");return-1===e?t:t.substr(0,e)}let Eo={debug:void 0,error:void 0,info:void 0,log:void 0,warn:void 0};class Co{constructor(){this.debug=!0}debugEnabled(t){return void 0!==t?(this.debug=t,this):this.debug}formatError(t){return C(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map((t=>this.formatError(t)));return n.apply(e,r)}}$get(){return Eo={log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()},Eo}}class So{$get=["$log",t=>new Oo(t)]}class Oo{constructor(t){this.log=t,this.taskCounts={},this.taskCallbacks=[],this.ALL_TASKS_TYPE="$$all$$",this.DEFAULT_TASK_TYPE="$$default$$"}completeTask(t,e=this.DEFAULT_TASK_TYPE){try{t()}finally{this.taskCounts[e]&&(this.taskCounts[e]--,this.taskCounts[this.ALL_TASKS_TYPE]--);const t=this.taskCounts[e],n=this.taskCounts[this.ALL_TASKS_TYPE];if(!n||!t){const t=n?()=>this.getLastCallbackForType(e):this.getLastCallback.bind(this);let r;for(;r=t();)try{r()}catch(t){this.log.error(t)}}}}incTaskCount(t=this.DEFAULT_TASK_TYPE){this.taskCounts[t]=(this.taskCounts[t]||0)+1,this.taskCounts[this.ALL_TASKS_TYPE]=(this.taskCounts[this.ALL_TASKS_TYPE]||0)+1}notifyWhenNoPendingTasks(t,e=this.ALL_TASKS_TYPE){this.taskCounts[e]?this.taskCallbacks.push({type:e,cb:t}):t()}getLastCallback(){const t=this.taskCallbacks.pop();return t?t.cb:void 0}getLastCallbackForType(t){for(let e=this.taskCallbacks.length-1;e>=0;--e){const n=this.taskCallbacks[e];if(n.type===t)return this.taskCallbacks.splice(e,1),n.cb}}}var xo=ut("$templateRequest");function Ao(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,s){function o(a,c){o.totalPendingRequests++,b(a)&&!g(n.get(a))||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Array.isArray(l)?l=l.filter((function(t){return t!==no})):l===no&&(l=null),r.get(a,V({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.set(a,t.data),t.data}),(function(t){c||(t=xo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText),e(t));return i.reject(t)}))}return o.totalPendingRequests=0,o}]}const ko=ut("$timeout");function _o(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){const s={};function o(o,a,c=!0){const l=K(arguments,3),u=v(c)&&!c,h=(u?r:n).defer(),{promise:d}=h;let p;return p=e.defer((()=>{try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete s[d.$$timeoutId]}u||t.$apply()}),a,"$timeout"),d.$$timeoutId=p,s[p]=h,d}return o.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw ko("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(s,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=s[n];return $s(r.promise),r.reject("canceled"),delete s[n],e.cancel(n)},o}]}function To(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return v(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return v(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=We(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}const jo="ng-active",No="ng-inactive";class Vo{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watchCollection(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const e=Po(this.$scope,this.$attrs.ngMessagesMultiple)||Po(this.$scope,this.$attrs.multiple),n=[],r={};let i=0,s=this.head,o=!1,a=0;for(;null!=s;){a++;const c=s.message;let l=!1;o||Object.entries(t).forEach((([t,e])=>{if(Do(e)&&!l&&(i++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}})),l?o=!e:n.push(c),s=s.next}n.forEach((t=>{t.detach()}));const c=n.length!==a,l=this.default&&!c&&i>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,jo,No):this.$animate.setClass(this.$element,No,jo)}reRender(){this.renderLater||(this.renderLater=!0,this.$scope.$evalAsync((()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)})))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element[0],t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element[0],t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const i=this.findPreviousMessage(t,e);i?i.next=r.next:this.head=r.next}}function Ro(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new Vo(e,n,r,t)}}function Po(t,e){return b(e)&&0===e.length||Do(t.$eval(e))}function Do(t){return b(t)?t.length:!!t}function Mo(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{n.$$destroyed||b(t)&&!t.trim()||e(t)(n,(t=>{r.after(t)}))}))}}}Ro.$inject=["$animate"],Mo.$inject=["$templateRequest","$compile"];const Lo=qo(!1),Io=qo(!1),Uo=qo(!0);function qo(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,d;if(!t){a=r[0],l=i.ngMessage||i.when,u=i.ngMessageExp||i.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,s.reRender()};u?(t(n.$eval(u)),n.$watchCollection(u,t)):t(l)}s.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:Object.prototype.hasOwnProperty.call(t,e)}(c,t),attach(){h||o(((n,i)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=s.getAttachId();h.on("$destroy",(()=>{h&&h.$$attachId===o&&(s.deregister(a,t),d.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}return e.$inject=["$animate"],e}const Ho="ngAriaDisable",Fo=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Bo=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function zo(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,i){return function(s,o,a){if(Object.prototype.hasOwnProperty.call(a,Ho))return;const c=a.$normalize(n);!t[c]||Bo(o,r)||a[c]||s.$watch(a[e],(t=>{t=i?!t:!!t,o.attr(n,t)}))}}this.config=function(e){t=V(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function Wo(t){return t.$$watchExpr("ngDisabled","aria-disabled",Fo,!1)}function Go(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function Ko(){return{restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,Ho)||e.attr("aria-live")||e.attr("aria-live","assertive")}}}function Yo(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,Ho))return;const i=e(r.ngClick);return function(e,n,r){Bo(n,Fo)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.on("keydown",(t=>{const n=t.which||t.keyCode;13!==n&&32!==n||(-1!==Fo.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}function Qo(t){return t.$$watchExpr("ngRequired","aria-required",Fo,!1)}function Zo(t){return t.$$watchExpr("ngChecked","aria-checked",Fo,!1)}function Jo(t){return t.$$watchExpr("ngValue","aria-checked",Fo,!1)}function Xo(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function ta(t){return t.$$watchExpr("ngReadonly","aria-readonly",Fo,!1)}function ea(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Bo(r,Fo))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Bo(e,Fo)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,Ho))return;const s=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(i);return{post(r,i,o,a){const c=e("tabindex","tabindex",i,!1);function l(){return a.$modelValue}switch(s){case"radio":case"checkbox":n(s,i)&&i.attr("role",s),e("aria-checked","ariaChecked",i,!1)&&r.$watch(l,"radio"===s?function(){i[0].setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){i.attr("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&i.attr("tabindex",0);break;case"range":if(n(s,i)&&i.attr("role","slider"),t.config("ariaValue")){const t=!i.attr("aria-valuemin")&&(Object.prototype.hasOwnProperty.call(o,"min")||Object.prototype.hasOwnProperty.call(o,"ngMin")),e=!i.attr("aria-valuemax")&&(Object.prototype.hasOwnProperty.call(o,"max")||Object.prototype.hasOwnProperty.call(o,"ngMax")),n=!i.attr("aria-valuenow");t&&o.$observe("min",(t=>{i.attr("aria-valuemin",t)})),e&&o.$observe("max",(t=>{i.attr("aria-valuemax",t)})),n&&r.$watch(l,(t=>{i.attr("aria-valuenow",t)}))}c&&i.attr("tabindex",0)}!Object.prototype.hasOwnProperty.call(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",(()=>{i.attr("aria-required",(!!o.required).toString())})),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch((()=>a.$invalid),(t=>{i.attr("aria-invalid",(!!t).toString())}))}}}}}function na(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,Ho)||!t.config("tabindex")||n.attr("tabindex")||Bo(n,Fo)||n.attr("tabindex",0)}}Wo.$inject=["$aria"],Go.$inject=["$aria"],Yo.$inject=["$aria","$parse"],Qo.$inject=["$aria"],Zo.$inject=["$aria"],Jo.$inject=["$aria"],Xo.$inject=["$aria"],ta.$inject=["$aria"],ea.$inject=["$aria"],na.$inject=["$aria"];const ra="$$animateCss",ia=1e3,sa=3,oa=1.5,aa={transitionDuration:Kr,transitionDelay:Gr,transitionProperty:Pr+Ur,animationDuration:Wr,animationDelay:zr,animationIterationCount:Mr+"IterationCount"},ca={transitionDuration:Kr,transitionDelay:Gr,animationDuration:Wr,animationDelay:zr};function la(t,e){return[e?zr:Gr,`${t}s`]}function ua(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return N(e,((t,e)=>{let i=r[t];if(i){const t=i.charAt(0);("-"===t||"+"===t||t>=0)&&(i=function(t){let e=0;return N(t.split(/\s*,\s*/),(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t})),e}(i)),0===i&&(i=null),n[e]=i}})),n}function ha(t){return 0===t||null!=t}function da(t,e){let n=Pr,r=`${t}s`;return e?n+=Ir:r+=" linear all",[n,r]}function pa(t,e,n){N(n,(n=>{t[n]=v(t[n])?t[n]:e.style.getPropertyValue(n)}))}function fa(){this.$get=["$$AnimateRunner","$timeout","$$animateCache","$$rAFScheduler","$$animateQueue",function(t,e,n,r,i){const s=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const o=[];function a(t){o.push(t),r.waitUntilQuiet((()=>{n.flush();const t=document.body.offsetWidth+1;for(let e=0;e<o.length;e++)o[e](t);o.length=0}))}function c(t,e,r){const i=function(t,e,r,i){let s=n.get(e);s||(s=ua(t,i),"infinite"===s.animationIterationCount&&(s.animationIterationCount=1));const o=r||s.transitionDuration>0||s.animationDuration>0;return n.put(e,s,o),s}(t,e,r,aa),s=i.animationDelay,o=i.transitionDelay;return i.maxDelay=s&&o?Math.max(s,o):s||o,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(r,o){let l=o||{};l.$$prepared||(l=ti(structuredClone(l)));const u={},h=si(r);if(!h||!h.parentNode||!i.enabled())return W();const d=[],p=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let f,$,m,g,v,y,b,w,E,C;const S=[];if(0===l.duration)return W();const O=l.event&&Array.isArray(l.event)?l.event.join(" "):l.event,x=O&&l.structural;let A="",k="";x?A=Zr(O,Tr,!0):O&&(A=O),l.addClass&&(k+=Zr(l.addClass,kr)),l.removeClass&&(k.length&&(k+=" "),k+=Zr(l.removeClass,_r)),l.applyClassesEarly&&k.length&&s(r,l);let _=[A,k].join(" ").trim();const T=p.to&&Object.keys(p.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!T&&!_)return W();let j,V,R=n.cacheKey(h,O,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(R))return _=null,W();if(l.stagger>0){const t=parseFloat(l.stagger);j={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else j=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=Zr(e,"-stagger");t.className+=` ${r}`,s=ua(t,i),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),t.classList.remove(r),n.put(o,s,!0)}return s||{}}(h,_,R,ca);if(l.$$skipPreparationClasses||r[0].classList.add(..._.split(" ").filter((t=>""!==t))),l.transitionStyle){const t=[Pr,l.transitionStyle];ai(h,t),d.push(t)}if(l.duration>=0){V=h.style[Pr].length>0;const t=da(l.duration,V);ai(h,t),d.push(t)}if(l.keyframeStyle){const t=[Mr,l.keyframeStyle];ai(h,t),d.push(t)}const P=j?l.staggerIndex>=0?l.staggerIndex:n.count(R):0,D=0===P;D&&!l.skipBlocking&&$a(h,Br);let M=c(h,R,!x),L=M.maxDelay;y=Math.max(L,0),w=M.maxDuration;const I={};if(I.hasTransitions=M.transitionDuration>0,I.hasAnimations=M.animationDuration>0,I.hasTransitionAll=I.hasTransitions&&"all"===M.transitionProperty,I.applyTransitionDuration=T&&(I.hasTransitions&&!I.hasTransitionAll||I.hasAnimations&&!I.hasTransitions),I.applyAnimationDuration=l.duration&&I.hasAnimations,I.applyTransitionDelay=ha(l.delay)&&(I.applyTransitionDuration||I.hasTransitions),I.applyAnimationDelay=ha(l.delay)&&I.hasAnimations,I.recalculateTimingStyles=k.length>0,(I.applyTransitionDuration||I.applyAnimationDuration)&&(w=l.duration?parseFloat(l.duration):w,I.applyTransitionDuration&&(I.hasTransitions=!0,M.transitionDuration=w,V=h.style[Pr+Ur].length>0,d.push(da(w,V))),I.applyAnimationDuration&&(I.hasAnimations=!0,M.animationDuration=w,d.push([Wr,`${w}s`]))),0===w&&!I.recalculateTimingStyles)return W();var U,q=Zr(_,jr);null!=l.delay&&("boolean"!=typeof l.delay&&(U=parseFloat(l.delay),y=Math.max(U,0)),I.applyTransitionDelay&&d.push(la(U)),I.applyAnimationDelay&&d.push(la(U,!0)));return null==l.duration&&M.transitionDuration>0&&(I.recalculateTimingStyles=I.recalculateTimingStyles||D),b=y*ia,E=w*ia,l.skipBlocking||(I.blockTransition=M.transitionDuration>0,I.blockKeyframeAnimation=M.animationDuration>0&&j.animationDelay>0&&0===j.animationDuration),l.from&&(l.cleanupStyles&&pa(u,h,Object.keys(l.from)),ni(0,l)),I.blockTransition||I.blockKeyframeAnimation?z(w):l.skipBlocking||$a(h,!1),{$$willAnimate:!0,end:H,start(){if(!f)return v={end:H,cancel:F,resume:null,pause:null},g=new t(v),a(K),g}};function H(){B()}function F(){B(!0)}function B(t){if(f||m&&$)return;f=!0,$=!1,_&&!l.$$skipPreparationClasses&&r[0].classList.remove(..._.split(" ")),(q=Zr(_,jr))&&r[0].classList.remove(...q.split(" ")),oi(h,!1),$a(h,!1),N(d,(t=>{h.style[t[0]]=""})),s(r,l),ei(r,l),Object.keys(u).length&&N(u,((t,e)=>{t?h.style.setProperty(e,t):h.style.removeProperty(e)})),l.onDone&&l.onDone(),S&&S.length&&r.off(S.join(" "),G);const n=r.data(ra);n&&(e.cancel(n[0].timer),r.removeData(ra)),g&&g.complete(!t)}function z(t){I.blockTransition&&$a(h,t),I.blockKeyframeAnimation&&oi(h,!!t)}function W(){return g=new t({end:H,cancel:F}),a((()=>{})),B(),{$$willAnimate:!1,start:()=>g,end:H}}function G(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(sa));Math.max(n-C,0)>=b&&r>=w&&(m=!0,B())}function K(){if(f)return;if(!h.parentNode)return void B();const t=function(t){if(m)$&&t&&($=!1,B());else if($=!t,M.animationDuration){const t=oi(h,$);$?d.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(d,t)}},i=P>0&&(M.transitionDuration&&0===j.transitionDuration||M.animationDuration&&0===j.animationDuration)&&Math.max(j.animationDelay,j.transitionDelay);function o(){if(f)return;if(z(!1),N(d,(t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r[0].classList.add(...q.split(" ").filter((t=>""!==t))),I.recalculateTimingStyles){if(R=n.cacheKey(h,O,l.addClass,l.removeClass),M=c(h,R,!1),L=M.maxDelay,y=Math.max(L,0),w=M.maxDuration,0===w)return void B();I.hasTransitions=M.transitionDuration>0,I.hasAnimations=M.animationDuration>0}if(I.applyAnimationDelay&&(L="boolean"!=typeof l.delay&&ha(l.delay)?parseFloat(l.delay):L,y=Math.max(L,0),M.animationDelay=L,U=la(L,!0),d.push(U),h.style[U[0]]=U[1]),b=y*ia,E=w*ia,l.easing){let t;const e=l.easing;I.hasTransitions&&(t=Pr+Hr,d.push([t,e]),h.style[t]=e),I.hasAnimations&&(t=Mr+Hr,d.push([t,e]),h.style[t]=e)}M.transitionDuration&&S.push(Dr),M.animationDuration&&S.push(Lr),C=Date.now();const t=b+oa*E,i=C+t,o=r.data(ra)||[];let p=!0;if(o.length){const t=o[0];p=i>t.expectedEndTime,p?e.cancel(t.timer):o.push(B)}if(p){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(B),r.data(ra,o)}S.length&&r.on(S.join(" "),G),l.to&&(l.cleanupStyles&&pa(u,h,Object.keys(l.to)),ri(0,l))}function a(){const t=r.data(ra);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(ra)}}i?e(o,Math.floor(i*P*ia),!1):o(),v.resume=function(){t(!0)},v.pause=function(){t(!1)}}}}]}function $a(t,e){const n=e?`-${e}s`:"";return ai(t,[Gr,n]),[Gr,n]}const ma="data-ng-animate",ga="$ngAnimatePin";function va(t){const e=" ",n=this.rules={skip:[],cancel:[],join:[]};function r(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const r=function(t){if(!t)return null;const n=t.split(e),r=Object.create(null);return n.forEach((t=>{r[t]=!0})),r}(n);return t.split(e).some((t=>r[t]))}}function s(t,e,r){return n[t].some((t=>t(e,r)))}function o(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}n.join.push((t=>!t.structural&&o(t))),n.skip.push((t=>!t.structural&&!o(t))),n.skip.push(((t,e)=>"leave"===e.event&&t.structural)),n.skip.push(((t,e)=>e.structural&&2===e.state&&!t.structural)),n.cancel.push(((t,e)=>e.structural&&t.structural)),n.cancel.push(((t,e)=>2===e.state&&t.structural)),n.cancel.push(((t,e)=>{if(e.structural)return!1;const n=t.addClass,r=t.removeClass,s=e.addClass,o=e.removeClass;return!(g(n)&&g(r)||g(s)&&g(o))&&(i(n,o)||i(r,s))})),this.$get=["$rootScope","$injector","$$animation","$$AnimateRunner","$templateRequest",function(e,n,i,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}const p=e.$watch((()=>0===c.totalPendingRequests),(t=>{t&&(p(),e.$$postDigest((()=>{e.$$postDigest((()=>{null===h&&(h=!0)}))})))})),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),w=function(){return!0},E=$||w,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:w,S=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function O(t,e){return ii(t,e,{})}const x=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function A(t,e,n){const r=Xr(e);return t.filter((t=>!(t.node===r&&(!n||t.callback===n))))}function k(t,e){"close"!==t||e.parentNode||_.off(e)}let _={on(t,e,n){const r=Xr(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),kt(e).on("$destroy",(()=>{l.get(r)||_.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!b(arguments[0])){e=arguments[0];for(const t in f)f[t]=A(f[t],e);return}const r=f[t];r&&(f[t]=1===arguments.length?null:A(r,e,n))},pin(t,e){Qr(I(t),"element","not an element"),Qr(I(e),"parentElement","not an element"),t.data(ga,e)},push:(t,c,d,p)=>((d=d||{}).domOperation=p,function(t,c,d){let p=d,$=Jr(t);const m=si($),w=m&&m.parentNode;p=ti(p);const A=new a,_=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();Array.isArray(p.addClass)&&(p.addClass=p.addClass.join(" "));p.addClass&&!b(p.addClass)&&(p.addClass=null);Array.isArray(p.removeClass)&&(p.removeClass=p.removeClass.join(" "));p.removeClass&&!b(p.removeClass)&&(p.removeClass=null);p.from&&!y(p.from)&&(p.from=null);p.to&&!y(p.to)&&(p.to=null);if(!(h&&m&&E(m,c,d)&&C(m,p)))return q(),A;const V=["enter","move","leave"].indexOf(c)>=0;let R=document.hidden||u.get(m);const P=!R&&l.get(m)||{},D=!!P.state;R||D&&1===P.state||(R=!function(t,e){const r=document.body,i=si(n.get("$rootElement"));let s,o=t===r||"HTML"===t.nodeName,a=t===i,c=!1,h=u.get(t),d=It(t,ga);d&&(e=si(d));for(;e&&(a||(a=e===i),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(g(s)||!0===s){const t=It(e,Rr);v(t)&&(s=t)}if(c&&!1===s)break;if(o||(o=e===r),o&&a)break;e=a||(d=It(e,ga),!d)?e.parentNode:si(d)}return(!c||s)&&!0!==h&&a&&o}(m,w));if(R)return document.hidden&&U(A,c,"start",r(p)),q(),document.hidden&&U(A,c,"close",r(p)),A;V&&function(t){const e=t.querySelectorAll(`[${ma}]`);N(e,(t=>{const e=parseInt(t.getAttribute(ma),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}}))}(m);const M={structural:V,element:$,event:c,addClass:p.addClass,removeClass:p.removeClass,close:q,options:p,runner:A};if(D){if(s("skip",M,P))return 2===P.state?(q(),A):(ii($,P,M),P.runner);if(s("cancel",M,P))if(2===P.state)P.runner.end();else{if(!P.structural)return ii($,P,M),P.runner;P.close()}else{if(s("join",M,P)){if(2!==P.state)return function(t,e,n){let r="";e&&(r=Zr(e,Tr,!0)),n.addClass&&(r=ci(r,Zr(n.addClass,kr))),n.removeClass&&(r=ci(r,Zr(n.removeClass,_r))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}($,V?c:null,p),c=M.event=P.event,p=ii($,P,M),P.runner;O($,M)}}}else O($,M);let L=M.structural;L||(L="animate"===M.event&&Object.keys(M.options.to||{}).length>0||o(M));if(!L)return q(),T(m),A;const I=(P.counter||0)+1;return M.counter=I,j(m,1,M),e.$$postDigest((()=>{$=Jr(t);let e=l.get(m);const n=!e;e=e||{};const s=($.parent()||[]).length>0&&("animate"===e.event||e.structural||o(e));if(n||e.counter!==I||!s)return n&&(S($,p),ei($,p)),(n||V&&e.event!==c)&&(p.domOperation(),A.end()),void(s||T(m));c=!e.structural&&o(e,!0)?"setClass":e.event,j(m,2);const a=i($,c,e.options);A.setHost(a),U(A,c,"start",r(p)),a.done((t=>{q(!t);const e=l.get(m);e&&e.counter===I&&T(m),U(A,c,"close",r(p))}))})),A;function U(t,e,n,r){_((()=>{const t=function(t,e,n){const r=[],i=f[n];return i&&i.forEach((i=>{(x.call(i.node,e)||"leave"===n&&x.call(i.node,t))&&r.push(i.callback)})),r}(w,m,e);t.length?(t.forEach((t=>{t($,n,r)})),k(n,m)):k(n,m)})),t.progress(e,n,r)}function q(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.activeClasses=null)}($,p),S($,p),ei($,p),p.domOperation(),A.complete(!t)}}(t,c,d)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(I(t)){const r=si(t);1===n?e=!u.get(r):(u.has(r)||kt(t).on("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(ma),l.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(ma,e);const r=l.get(t),i=r?V(r,n):n;l.set(t,i)}}]}function ya(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&y(o)&&(a=o,o=null),a=ti(a),o||(o=i.attr("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],i={};for(let s=0;s<n.length;s++){const o=n[s],a=t.$$registeredAnimations[o];a&&!i[o]&&(r.push(e.get(a)),i[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substr(1)}`,t=s),"enter"!==s&&"move"!==s&&(d=v(i,s,a,h,e)),p=v(i,s,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push((e=>{t=d(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),p&&e.push((e=>{t=p(e)})),f.setHost({end(){i()},cancel(){i(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function i(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(i,a)}function m(){c=!0,$(),ei(i,a)}function g(t,e,r,i,s){const o=[];return N(i,(i=>{const a=i[s];a&&o.push((()=>{let i,s,o=!1;const c=function(t){o||(o=!0,(s||(()=>{}))(t),i.complete(!t))};return i=new n({end(){c()},cancel(){c(!0)}}),s=function(t,e,r,i,s){let o;switch(r){case"animate":o=[e,i.from,i.to,s];break;case"setClass":o=[e,l,u,s];break;case"addClass":o=[e,l,s];break;case"removeClass":o=[e,u,s];break;default:o=[e,s]}o.push(i);let a=t.apply(t,o);if(a)if(S(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(S(a))return a;return()=>{}}(a,t,e,r,(t=>{c(!1===t)})),i}))})),o}function v(t,e,r,i,s){let o=g(t,e,r,i,s);if(0===o.length){let e,n;"beforeSetClass"===s?(e=g(t,"removeClass",r,i,"beforeRemoveClass"),n=g(t,"addClass",r,i,"beforeAddClass")):"setClass"===s&&(e=g(t,"removeClass",r,i,"removeClass"),n=g(t,"addClass",r,i,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&N(o,(t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){N(e,(e=>{t?e.cancel():e.end()}))}}}}}]}va.$inject=["$animateProvider"],ya.$inject=["$animateProvider"];const ba="$$animationRunner",wa="$$animatePrepareClasses";function Ea(){const t="ng-animate-ref",e=this.drivers=[];function n(t){return t.data(ba)}this.$get=["$rootScope","$injector","$$AnimateRunner","$$rAFScheduler","$$animateCache",function(r,i,s,o,a){const c=[],l=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(u,h,d){d=ti(d);const p=["enter","move","leave"].indexOf(h)>=0,f=new s({end(){y()},cancel(){y(!0)}});if(!e.length)return y(),f;let $=pt(u.attr("class"),pt(d.addClass,d.removeClass)),{tempClasses:m}=d;return m&&($+=` ${m}`,d.tempClasses=null),p&&u.data(wa,`ng-${h}${Nr}`),function(t,e){t.data(ba,e)}(u,f),c.push({element:u,classes:$,event:h,structural:p,options:d,beforeStart:function(){m=(m?`${m} `:"")+Vr,u.className+=` ${m}`;let t=u.data(wa);t&&(u[0].classList.remove(t),t=null)},close:y}),u.on("$destroy",v),c.length>1||r.$$postDigest((()=>{const r=[];c.forEach((t=>{n(t.element)?r.push(t):t.close()})),c.length=0;const s=function(e){const n=[],r={};N(e,((e,i)=>{const{element:s}=e,o=si(s),{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return N(r,(e=>{const n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(l.length){const e=c?"to":"from";l.forEach((n=>{const s=n.getAttribute(t);r[s]=r[s]||{},r[s][e]={animationID:i,element:kt(n)}}))}else n.push(e)}));const i={},s={};return Object.values(r).forEach((t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,s=t.toString();return void(i[s]||(i[s]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!s[l]){const t=s[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:g(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}s[l].anchors.push({out:r.element,in:o.element})})),n}(r),l=[];s.forEach((t=>{const r=t.from?t.from.element:t.element;let s=d.addClass;s=(s?`${s} `:"")+Vr;const o=a.cacheKey(r[0],t.event,s,d.removeClass);l.push({element:r,domNode:si(r),fn:function(){let r;const s=t.close;if(a.containsCachedAnimationWithoutDuration(o))return void s();t.beforeStart();if(n(t.anchors?t.from.element||t.to.element:t.element)){const n=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],s=i.get(r)(t);if(s)return s}}(t);n&&(r=n.start)}if(r){const e=r();e.done((t=>{s(!t)})),function(t,e){t.from&&t.to?(r(t.from.element),r(t.to.element)):r(t.element);function r(t){const r=n(t);r&&r.setHost(e)}}(t,e)}else s()}})}));const u=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)i(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let i=n.length,s=0,o=[];for(r=0;r<n.length;r++){const t=n[r];i<=0&&(i=s,s=0,e.push(o),o=[]),o.push(t),t.children.forEach((t=>{s++,n.push(t)})),i--}return o.length&&e.push(o),e}(e);function i(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let s,{parentNode:o}=n;for(r.set(n,t);o;){if(s=r.get(o),s){s.processed||(s=i(s));break}o=o.parentNode}return(s||e).children.push(t),t}}(l);for(let t=0;t<u.length;t++){const e=u[t];for(let n=0;n<e.length;n++){const r=e[n],{element:i}=r;if(u[t][n]=r.fn,0===t){i.removeData(wa);continue}const s=i.data(wa);s&&i[0].classList.add(s)}}o(u)})),f;function g(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const i=t[r];if("ng-"!==i.substring(0,3))for(let t=0;t<e.length;t++)if(i===e[t]){n.push(i);break}}return n.join(" ")}function v(){const t=n(u);!t||"leave"===h&&d.$$domOperationFired||t.end()}function y(t){u.off("$destroy",v),function(t){t.removeData(ba)}(u),l(u,d),ei(u,d),d.domOperation(),m&&m.split(" ").forEach((t=>u[0].classList.remove(t))),f.complete(!t)}}}]}function Ca(){let t=[],e=null;function n(){if(!t.length)return;t.shift().forEach((t=>t())),e||window.requestAnimationFrame((()=>{e=null,n()}))}function r(e){t=t.concat(e),n()}t=r.queue=[],r.waitUntilQuiet=t=>{null!==e&&(window.cancelAnimationFrame(e),e=null),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},this.$get=function(){return r}}const Sa="$animId";let Oa=0;const xa=new Map;function Aa(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[Sa]??(i[Sa]=++Oa),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=xa.get(t);return!!e&&!e.isValid},flush(){xa.clear()},count:t=>xa.get(t)?.total??0,get:t=>xa.get(t)?.value,put(t,e,n){const r=xa.get(t);r?(r.total++,r.value=e):xa.set(t,{total:1,value:e,isValid:n})}}}function ka(){this.$get=[Aa]}const _a="ng-animate-shim",Ta="ng-anchor",ja="ng-anchor-out",Na="ng-anchor-in";function Va(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,i=n[0],s=kt((o=i).parentNode&&11===o.parentNode.nodeType||r.contains(i)?i:r);var o;return function(n){return n.from&&n.to?function(n,i,o){const c=a(n),l=a(i),u=[];if(o.forEach((n=>{const i=function(n,i){const o=kt(si(n).cloneNode(!0)),a=Ra(p(o));let c;n[0].classList.add(_a),i[0].classList.add(_a),o[0].classList.add(Ta),s.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done((()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done((()=>{n=null,$(),t.complete()})),n;$(),t.complete()})),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=si(t).getBoundingClientRect();return["width","height","top","left"].forEach((t=>{let i=n[t];switch(t){case"top":i+=r.scrollTop;break;case"left":i+=r.scrollLeft}e[t]=`${Math.floor(i)}px`})),e}function d(){const e=t(o,{addClass:ja,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.attr("class")||""}function f(){const e=Ra(p(i)),n=Pa(e,a),r=Pa(a,e),s=t(o,{to:h(i),addClass:`${Na} ${n}`,removeClass:`${ja} ${r}`,delay:!0});return s.$$willAnimate?s:null}function $(){o.remove(),n[0].classList.remove(_a),i[0].classList.remove(_a)}}(n.out,n.in);i&&u.push(i)})),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),N(u,(e=>{t.push(e.start())}));const n=new e({end:r,cancel:r});return e.all(t,(t=>{n.complete(t)})),n;function r(){t.forEach((t=>{t.end()}))}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=ci(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function Ra(t){return t.replace(/\bng-\S+\b/g,"")}function Pa(t,e){return b(t)&&(t=t.split(" ")),b(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function Da(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start(){const t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));const n=new e({end:s(),cancel:s()});return n;function s(){return function(){N(t,(t=>{t.end()}))}}}}}return n(t)};function n(e){const{element:n}=e,{event:r}=e,{options:i}=e,{classes:s}=e;return t(n,r,s,i)}}]}function Ma(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,i,s){let o,a;e.$watchCollection(r.ngAnimateSwap||r.for,(e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&s(((e,r)=>{o=e,a=r,t.enter(e,null,n)}))}))}}}function La(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(Rr,t)}b(i)&&0===i.length?n.data(Rr,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}function Ia(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}function Ua(){const t=arguments,e=t.length-1;return function(){let n=e,r=t[e].apply(this,arguments);for(;n--;)r=t[n].call(this,r);return r}}function qa(){return Ua.apply(null,[].slice.call(arguments).reverse())}Va.$inject=["$$animationProvider"],Da.$inject=["$$animationProvider"],Ma.$inject=["$animate"],La.$inject=["$interpolate"];const Ha=t=>e=>e&&e[t],Fa=Ia(((t,e,n)=>n&&n[t]===e)),Ba=t=>qa.apply(null,t.split(".").map(Ha));const za=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),Wa=t=>e=>null!=e&&e.constructor===t||e instanceof t,Ga=t=>()=>t;function Ka(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const Ya={$q:void 0,$injector:void 0};function Qa(t,e,n){if(Array.isArray(t))return t.forEach(e,n);Object.keys(t).forEach((n=>e(t[n],n)))}function Za(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(za(Array.isArray)(r))return s=e,(i=t).length===s.length&&gc(i,s).reduce(((t,e)=>t&&Za(e[0],e[1])),!0);var i,s;if(za(E)(r))return t.getTime()===e.getTime();if(za(O)(r))return t.toString()===e.toString();if(za(S)(r))return!0;if([S,Array.isArray,E,O].some((t=>!!t(r))))return!1;const o={};for(const n in t){if(!Za(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}function Ja(t,e,n,r,i=!1){const s=e=>t()[e].bind(n());return(r=r||Object.keys(t())).reduce(((t,n)=>{var r;return t[n]=i?(r=n,function(){return e[r]=s(r),e[r].apply(null,arguments)}):s(n),t}),e)}function Xa(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}const tc=Ia((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const ec=Ia(((t,e)=>(t.push(e),e)));function nc(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,ic(t||{},Object.keys(n)))}const rc=(t,e)=>Object.assign(t,e);function ic(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function sc(t,e){return Object.keys(t).filter((t=>!e.includes(t))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function oc(t,e){const n=Array.isArray(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return Qa(t,(function(t,n){e(t,n)&&i(t,n)})),r}function ac(t,e){let n;return Qa(t,(function(t,r){n||e(t,r)&&(n=t)})),n}function cc(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Qa(t,((t,r)=>n[r]=e(t,r))),n}const lc=(t,e)=>t&&e,uc=(t,e)=>t||e,hc=(t,e)=>t.concat(e),dc=(t,e)=>Array.isArray(e)?t.concat(e.reduce(dc,[])):pc(t,e);function pc(t,e){return t.push(e),t}const fc=(t,e)=>t.includes(e)?t:pc(t,e),$c=t=>t.reduce(hc,[]),mc=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function gc(...t){if(0===t.length)return[];const e=t.reduce(((t,e)=>Math.min(e.length,t)),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map((t=>t[r])))}return n}function vc(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!b(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function yc(t){return t.length&&t[t.length-1]||void 0}function bc(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Object.assign(e,t)}const wc=t=>t.catch((()=>0))&&t,Ec=t=>wc(Ya.$q.reject(t)),Cc=t=>null===t;function Sc(t){return null===t&&void 0===t}function Oc(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter((t=>!b(t))).length||n.filter((t=>!S(t))).length)}return S(t)}function xc(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}class Ac{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substr(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new kc(this,t)}}function kc(t,e){function n(t){return Array.isArray(t)?t:v(t)?[t]:[]}function r(t,r){return function(i){if(Array.isArray(i)&&0===i.length)return i;const s=cc(n(i),t);return!0===r?0===oc(s,(t=>!t)).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(s)}}function i(t){return function(e,r){const i=n(e),s=n(r);if(i.length!==s.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],s[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((e=>{const n=t[e].bind(t),s="equals"===e?i:r;this[e]=s(n)})),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class _c{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=ic(_c.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Xa(cc(this.defaultTypes,((t,e)=>new Ac(Object.assign({name:e},t)))),{})}type(t,e,n){if(!v(e))return this.types[t];if(Object.prototype.hasOwnProperty.call(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new Ac(Object.assign({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],Ya.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Wa(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(_c.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!Sc(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Wa(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce(((n,r)=>n&&t[r]()===e[r]()),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:Wa(Object),equals:Za,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Za})})}();class Tc{constructor(){this.paramTypes=new _c,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1;const t=this.type("path");t.encode=t=>null!=t?t.toString().replace(/(~|\/)/g,(t=>({"~":"~~","/":"~2F"}[t]))):t,t.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,(t=>({"~~":"~","~2F":"/"}[t]))):t,this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue()}$get=[function(){return this}];caseInsensitive(t){return this._isCaseInsensitive=v(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(v(t)&&!0!==t&&!1!==t&&!b(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=v(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=v(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return v(e)?this:r}}class jc{constructor(t={}){Object.assign(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),i={},s=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||s.indexOf(n[t])>=0||(s.push(n[t]),i[n[t]]=this[n[t]])}return Object.assign({},i,t)}}class Nc{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=ec(this._evictListeners)}enqueue(t){const e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return this._evictListeners.forEach((e=>e(t))),t}dequeue(){if(this.size())return this._items.splice(0,1)[0]}clear(){const t=this._items;return this._items=[],t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){if(this.size())return this._items[0]}}class Vc{constructor(){this.params=new jc,this.lastStartedTransitionId=-1,this.transitionHistory=new Nc([],1),this.successfulTransitions=new Nc([],1)}$get=[()=>this]}function Rc(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function Pc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function Dc(t){const e=Mc(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function Mc(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function Lc(t){const e=[],n=Ka([[g,Ga("undefined")],[Cc,Ga("null")],[xc,Ga("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>y(t)&&!Array.isArray(t)&&t.constructor!==Object&&S(t.toString),t=>t.toString()],[Oc,Dc],[Ga(!0),t=>t]]);function r(t){if(y(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return g(t)?r(t):JSON.stringify(t,((t,e)=>r(e))).replace(/\\"/g,'"')}function Ic(t,e){return b(yc(t))&&b(e)?t.slice(0,-1).concat(yc(t)+e):pc(t,e)}function Uc(t){if(!t)return"ui-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ui-view#${t.id} ${t.$type}:${t.fqn} (${t.name}@${e})]`}function qc(t){return w(t)?Hc[t]:Hc[Hc[t]]}var Hc;!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(Hc||(Hc={}));const Fc=Ba("$id"),Bc=Ba("router.$id"),zc=t=>`Transition #${Fc(t)}-${Bc(t)}`;const Wc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(Hc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>Hc[t]))),e.map(qc).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[qc(t)]}traceTransitionStart(t){this.enabled(Hc.TRANSITION)&&console.log(`${zc(t)}: Started -> ${Lc(t)}`)}traceTransitionIgnored(t){this.enabled(Hc.TRANSITION)&&console.log(`${zc(t)}: Ignored <> ${Lc(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(Hc.HOOK))return;const r=Ba("traceData.hookType")(n)||"internal",i=Ba("traceData.context.state.name")(n)||Ba("traceData.context")(n)||"unknown",s=Dc(t.registeredHook.callback);console.log(`${zc(e)}: Hook -> ${r} context: ${i}, ${Rc(200,s)}`)}traceHookResult(t,e){this.enabled(Hc.HOOK)&&console.log(`${zc(e)}: <- Hook returned: ${Rc(200,Lc(t))}`)}traceResolvePath(t,e,n){this.enabled(Hc.RESOLVE)&&console.log(`${zc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(Hc.RESOLVE)&&console.log(`${zc(e)}: <- Resolved ${t} to: ${Rc(200,Lc(t.data))}`)}traceError(t,e){this.enabled(Hc.TRANSITION)&&console.log(`${zc(e)}: <- Rejected ${Lc(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(Hc.TRANSITION)&&console.log(`${zc(e)}: <- Success ${Lc(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(Hc.UIVIEW)&&console.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${Uc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(Hc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(Hc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${Rc(200,e)}`)}traceViewSync(t){if(!this.enabled(Hc.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map((({ngView:t,viewConfig:r})=>{const i=t&&t.fqn,s=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:i,[n]:s}})).sort(((t,n)=>(t[e]||"").localeCompare(n[e]||"")));console.table(r)}traceViewServiceEvent(t,e){this.enabled(Hc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ui-view: '${e.$ngViewName}@${e.$ngViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(Hc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${Uc(e)}`)}};let Gc="LAZY",Kc="WAIT";class Yc{constructor(t,e,n,r,i){this.resolved=!1,this.promise=void 0,t instanceof Yc?Object.assign(this,t):S(e)?(st(!Sc(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?Ya.$q.resolve(this.data):void 0):y(t)&&t.token&&(Object.prototype.hasOwnProperty.call(t,"resolveFn")||Object.prototype.hasOwnProperty.call(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||Gc,async:e.async||n.async||Kc}}resolve(t,e){const n=Ya.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=S(s)?s:t=>t;return this.promise=n.resolve().then((()=>n.all(t.getDependencies(this).map((n=>n.get(t,e)))))).then((t=>this.resolveFn.apply(null,t))).then(o).then((t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Wc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${Lc(this.token)}, requires: [${this.deps.map(Lc)}])`}clone(){return new Yc(this)}}Yc.fromData=(t,e)=>new Yc(t,(()=>e),null,null,e);class Qc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${Lc(this.params())}`}withState(t){return new Qc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new Qc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new Qc(this._stateRegistry,this._identifier,this._params,n)}}Qc.isDef=t=>t&&t.state&&(b(t.state)||y(t.state)&&b(t.state.name));const Zc=t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length;var Jc;function Xc(t,e,n){const r=!1===n.reloadOnSearch&&e===Jc.SEARCH||void 0,i=ac([n.dynamic,r],v),s=v(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=Zc(t)?{value:t}:t,e.__cacheable=!0;const n=Oc(t.value)?t.value:e;return Object.assign(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object.assign(s,o)}!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(Jc||(Jc={}));class tl{constructor(t,e,n,r,i){const s=Xc(t,n,i);e=function(t,e,n,r,i){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&i.type(t.type))return i.type(t.type);if(e)return e;if(!t.type){const t=n===Jc.CONFIG?"any":n===Jc.PATH?"path":n===Jc.SEARCH?"query":"string";return i.type(t)}return t.type instanceof Ac?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===Jc.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===Jc.SEARCH):e;const a=void 0!==s.value||n===Jc.SEARCH,c=v(s.dynamic)?!!s.dynamic:!!e.dynamic,l=v(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!v(r)||null==r)return n;if(!0===r||b(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(s,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const i=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],s=Array.isArray(t.replace)?t.replace:[];b(r)&&s.push({from:r,to:void 0});const o=cc(s,Ha("from"));return oc(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),d=v(s.inherit)?!!s.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),g(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!Ya.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=Ya.$injector.invoke(this.config.$$fn);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.$$fn.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===Jc.SEARCH}validates(t){if((g(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=this.type.encode(e);return!(b(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter((t=>!t.type.equals(e[t.id],n[t.id])))}static equals(t,e={},n={}){return 0===tl.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(lc,!0)}}class el{constructor(t){if(t instanceof el){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Object.assign({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map((t=>t.clone()))}}clone(){return new el(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce(((e,n)=>{return vc(e,[(r=n).id,r.value(t[r.id])]);var r}),{}),this}parameter(t){return ac(this.paramSchema,Fa("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return tl.changed(n,this.paramValues,t.paramValues)}}el.clone=t=>t.clone();class nl{static makeTargetState(t,e){const n=yc(e).state;return new Qc(t,n,e.map(Ha("paramValues")).reduce(rc,{}),{})}static buildPath(t){const e=t.params();return t.$state().path.map((t=>new el(t).applyRawParams(e)))}static buildToPath(t,e){const n=nl.buildPath(e);return e.options().inherit?nl.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>n.includes(t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=nl.subPath(e,(t=>t===n)),s=r.map((e=>t.createViewConfig(i,e)));n.views=s.reduce(hc,[])}))}static inheritParams(t,e,n=[]){const r=t.map((t=>t.paramSchema)).reduce(hc,[]).filter((t=>!t.inherit)).map(Ha("id"));return e.map((function(e){let i=Object.assign({},e&&e.paramValues);const s=ic(i,n);i=sc(i,n);const o=sc(function(t,e){const n=ac(t,Fa("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new el(e.state).applyRawParams(a)}))}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let i=0;for(;i<r&&t[i].state!==n&&(s=t[i],o=e[i],s.equals(o,nl.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const d=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=d.concat(u),{from:a,to:h,retained:c,retainedWithToParams:d,exiting:l,entering:u}}static matching(t,e,n){let r=!1;return gc(t,e).reduce(((t,[e,i])=>(r=r||!e.equals(i,n),r?t:t.concat(e))),[])}static equals(t,e,n){return t.length===e.length&&nl.matching(t,e,n).length===t.length}static subPath(t,e){const n=ac(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter((t=>!t.dynamic))}static paramValues(t){return t.reduce(((t,e)=>Object.assign(t,e.paramValues)),{})}}const rl={LAZY:"LAZY",EAGER:"EAGER"},il=[rl.EAGER,rl.LAZY],sl=[rl.EAGER];class ol{constructor(t){this._path=t}getTokens(){return this._path.reduce(((t,e)=>t.concat(e.resolvables.map((t=>t.token)))),[]).reduce(fc,[])}getResolvable(t){return yc(this._path.map((t=>t.resolvables)).reduce(hc,[]).filter((e=>e.token===t)))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new ol(nl.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=ac(this._path,Fa("state",e)),r=t.map((t=>t.token));n.resolvables=n.resolvables.filter((t=>-1===r.indexOf(t.token))).concat(t)}resolvePath(t="LAZY",e){const n=(il.includes(t)?t:"LAZY")===rl.EAGER?sl:il;Wc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),i=this._path.reduce(((t,i)=>{const s=i.resolvables.filter(r(n,"when")),o=s.filter(r(["NOWAIT"],"async")),a=s.filter((t=>!r(["NOWAIT"],"async")(t))),c=this.subContext(i.state),l=t=>t.get(c,e).then((e=>({token:t.token,value:e})));return o.forEach(l),t.concat(a.map(l))}),[]);return Ya.$q.all(i)}injector(){return this._injector||(this._injector=new al)}findNode(t){return ac(this._path,(e=>e.resolvables.includes(t)))}getDependencies(t){const e=this.findNode(t),n=(nl.subPath(this._path,(t=>t===e))||this._path).reduce(((t,e)=>t.concat(e.resolvables)),[]).filter((e=>e!==t));return t.deps.map((t=>{const e=n.filter((e=>e.token===t));if(e.length)return yc(e);const r=Ya.$injector.get(t);if(g(r))throw new Error("Could not find Dependency Injection token: "+Lc(t));return new Yc(t,(()=>r),[],r)}))}}class al{constructor(){this.native=Ya.$injector}get(t){return Ya.$injector.get(t)}getAsync(t){return Ya.$q.resolve(Ya.$injector.get(t))}getNative(t){return Ya.$injector.get(t)}}const cl=(t,e)=>t.reduce(((t,n)=>t||v(e[n])),!1);function ll(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(v(t.views)&&cl(r,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${r.filter((e=>v(t[e]))).join(", ")}`);const i={};return Qa(t.views||{$default:ic(t,r)},(function(r,s){if(s=s||"$default",b(r)&&(r={component:r}),r=Object.assign({},r),cl(e,r)&&cl(n,r))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${s}@${t.name}'`);r.resolveAs=r.resolveAs||"$resolve",r.$type="ng1",r.$context=t,r.$name=s;const o=hl.normalizeUIViewTarget(r.$context,r.$name);r.$ngViewName=o.ngViewName,r.$ngViewContextAnchor=o.ngViewContextAnchor,i[s]=r})),i}let ul=0;class hl{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=ul++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=Ya.$q,e=new ol(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.resolve(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.resolve(this.getController(e))};return t.all(r).then((t=>(Wc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!Oc(e))return this.viewDecl.controller;const n=we(e),r=Array.isArray(e)?yc(e):e;return new Yc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=b(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substr(1),i="");if(/^(\^(?:\.\^)*)$/.exec(i)){const e=i.split(".").reduce((t=>t.parent),t);i=e.name}else"."===i&&(i=t.name);return{ngViewName:r,ngViewContextAnchor:i}}}class dl{constructor(){this._ngViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>ac(this._ngViews,(e=>e.id===t)),_registeredUIViews:()=>this._ngViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>tc(this._listeners,t))},this._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||Ya.$injector.get("$templateFactory"),[new hl(e,n,t)])}())}$get=[()=>this];_rootViewContext(t){return this._rootContext=t||this._rootContext}_viewConfigFactory(t,e){this._viewConfigFactories[t]=e}createViewConfig(t,e){const n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);const r=n(t,e);return Array.isArray(r)?r:[r]}deactivateViewConfig(t){Wc.traceViewServiceEvent("<- Removing",t),tc(this._viewConfigs,t)}activateViewConfig(t){Wc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map((t=>[t.fqn,t])).reduce(vc,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=Ia(((t,e,n,r)=>e*(t(n)-t(r)))),r=this._ngViews.sort(n((function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)}),1)).map((r=>{const i=this._viewConfigs.filter(dl.matches(t,r));return i.length>1&&i.sort(n(e,-1)),{ngView:r,viewConfig:i[0]}})),i=r.map((t=>t.viewConfig)),s=this._viewConfigs.filter((t=>!i.includes(t))).map((t=>({ngView:void 0,viewConfig:t})));r.forEach((t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)}));const o=r.concat(s);this._listeners.forEach((t=>t(o))),Wc.traceViewSync(o)}registerUIView(t){Wc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Wc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Wc.traceViewServiceUIViewEvent("<- Deregistering",t),tc(e)(t)):Wc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map(Ha("fqn"))}active(){return this._ngViews.filter(Ha("$config")).map(Ha("name"))}}dl.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,i=r.$ngViewName.split("."),s=e.fqn.split(".");if(!Za(i,s.slice(0-i.length)))return!1;const o=1-i.length||void 0,a=s.slice(0,o).join("."),c=t[a].creationContext;return r.$ngViewContextAnchor===(c&&c.name)};const pl={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},fl={TRANSITION:0,STATE:1},$l=2,ml=3,gl=4,vl=5,yl=6;let bl=0;class wl{static superseded(t,e){const n=new wl($l,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return wl.superseded(t,{redirected:!0})}static invalid(t){return new wl(gl,"This transition is invalid",t)}static ignored(t){return new wl(vl,"The transition was ignored",t)}static aborted(t){return new wl(ml,"The transition has been aborted",t)}static errored(t){return new wl(yl,"The transition errored",t)}static normalize(t){return Wa(wl)(t)?t:wl.errored(t)}constructor(t,e,n){this.$id=bl++,this.type=t,this.message=e,this.detail=n,this.redirected=!1}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():Lc(e);var e;const{$id:n,type:r,message:i}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${i}, detail: ${t})`}toPromise(){return Object.assign(Ec(this),{_transitionRejection:this})}}class El{constructor(t=!1){this.disposed=!1,this.key=1,this.pendingKeys=[],this.publishDepth=0,this.subscriptions=[],this.topics={},this.async_=Boolean(t)}subscribe(t,e,n=null){let r=this.topics[t];r||(r=this.topics[t]=[]);const i=this.key;return this.subscriptions[i]=t,this.subscriptions[i+1]=e,this.subscriptions[i+2]=n,this.key=i+3,r.push(i),i}subscribeOnce(t,e,n=null){let r=!1;const i=this.subscribe(t,((...t)=>{r||(r=!0,this.unsubscribeByKey(i),e.apply(n,t))}),this);return i}static runAsync_(t,e,n){setTimeout((()=>{t.apply(e,n)}),0)}unsubscribe(t,e,n=null){const r=this.topics[t];if(r){const t=this.subscriptions,i=r.find((r=>t[r+1]===e&&t[r+2]===n));if(void 0!==i)return this.unsubscribeByKey(i)}return!1}unsubscribeByKey(t){const e=this.subscriptions[t];if(e){let n=this.topics[e];0!==this.publishDepth?(this.pendingKeys.push(t),this.subscriptions[t+1]=()=>{}):(n&&(this.topics[e]=n.filter((e=>e!==t))),delete this.subscriptions[t],delete this.subscriptions[t+1],delete this.subscriptions[t+2])}return!!e}publish(t,...e){const n=this.topics[t];if(n){const t=e;if(this.async_)for(let e=0;e<n.length;e++){const r=n[e];El.runAsync_(this.subscriptions[r+1],this.subscriptions[r+2],t)}else{this.publishDepth++;try{for(let e=0,r=n.length;e<r&&!this.isDisposed();e++){const r=n[e];this.subscriptions[r+1].apply(this.subscriptions[r+2],t)}}finally{if(this.publishDepth--,this.pendingKeys.length>0&&0===this.publishDepth){let t;for(;t=this.pendingKeys.pop();)this.unsubscribeByKey(t)}}}return!0}return!1}clear(t){if(t){const e=this.topics[t];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics[t])}else this.subscriptions.length=0,this.topics={}}getCount(t){if(t){const e=this.topics[t];return e?e.length:0}let e=0;for(const t in this.topics)e+=this.getCount(t);return e}isDisposed(){return this.disposed}dispose(){this.clear(),this.pendingKeys.length=0,this.disposed=!0}}const Cl=new El(!0),Sl={current:()=>{},transition:null,traceData:{},bind:null};class Ol{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||Ya.$q.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(xc(r)){const i=t.slice(n+1);return Ol.chain(i,r).then(e)}}return e()}static runAllHooks(t){t.forEach((t=>t.invokeHook()))}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===pl.RUN&&!this.options.transition.isActive(),this.options=nc(r,Sl),this.type=n.eventType}logError(t){Cl.publish("$stateService:defaultErrorHandler",t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;Wc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>wl.normalize(t).toPromise(),s=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&xc(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(wl.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||(xc(t)?t.then((t=>this.handleHookResult(t))):(Wc.traceHookResult(t,this.transition),!1===t?wl.aborted("Hook aborted transition").toPromise():t instanceof Qc?wl.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?wl.aborted().toPromise():this.isSuperseded()?wl.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${Ba("traceData.hookType")(t)||"internal"} context: ${Ba("traceData.context.state.name")(t)||Ba("traceData.context")(t)||"unknown"}, ${Rc(200,Mc(e.callback))}`}}Ol.HANDLE_RESULT=t=>e=>t.handleHookResult(e),Ol.LOG_REJECTED_RESULT=t=>e=>{xc(e)&&e.catch((e=>t.logError(wl.normalize(e))))},Ol.LOG_ERROR=t=>e=>t.logError(e),Ol.REJECT_ERROR=()=>t=>Ec(t),Ol.THROW_ERROR=()=>t=>{throw t};class xl{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return xl.is(t)?new xl(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map((t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t)).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function Al(t,e,n){const r=b(e)?[e]:e;return!!(S(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new xl(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class kl{constructor(t,e,n,r,i,s={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=i,this.invokeCount=0,this._deregistered=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter((t=>Al(t.state,e,n)));return r.length?r:null}_getDefaultMatchCriteria(){return cc(this.tranSvc._pluginapi._getPathTypes(),(()=>!0))}_getMatchingNodes(t,e){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._pluginapi._getPathTypes()).reduce(((r,i)=>{const s=i.scope===fl.STATE,o=t[i.name]||[],a=s?o:[yc(o)];return r[i.name]=this._matchingNodes(a,n[i.name],e),r}),{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every((t=>t))?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function _l(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=tc(r);function s(t,s,o={}){const a=new kl(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class Tl{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._pluginapi._getEvents(t).map((t=>this.buildHooks(t))).reduce(hc,[]).filter(Boolean)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const i={transition:e,current:e.options().current};return r.map((r=>r.matches(n,e)[t.criteriaMatchPath.name].map((n=>{const s=Object.assign({bind:r.bind,traceData:{hookType:t.name,context:n}},i),o=t.criteriaMatchPath.scope===fl.STATE?n.state.self:null,a=new Ol(e,o,r,s);return{hook:r,node:n,transitionHook:a}})))).reduce(hc,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,i=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==i?i:n.hook.priority-e.hook.priority}}(t.reverseSort)).map((t=>t.transitionHook))}getMatchingHooks(t,e,n){const r=t.hookPhase===pl.CREATE,i=this.transition.transitionService;return(r?[i]:[this.transition,i]).map((e=>e.getHooks(t.name))).filter(mc(Array.isArray,`broken event named: ${t.name}`)).reduce(hc,[]).filter((t=>t.matches(e,n)))}}const jl=Ha("self");class Nl{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Ya.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new Tl(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:Ga(this)},e.options()),this.$id=n._transitionCount++;const i=nl.buildToPath(t,e);this._treeChanges=nl.treeChanges(t,i,this._options.reloadState),this.createTransitionHookRegFns();const s=this._hookBuilder.buildHooksForPhase(pl.CREATE);Ol.invokeHooks(s,(()=>null)),this.applyViewConfigs()}createTransitionHookRegFns(){this.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==pl.CREATE)).forEach((t=>_l(this,this.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map((t=>t.state));nl.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return yc(this._treeChanges.from).state}$to(){return yc(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof Nl?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!Al(this.$to(),t.to,this)||t.from&&!Al(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(Ha("paramValues")).reduce(rc,{}))}paramsChanged(){const t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((t=>t.paramSchema)).reduce(dc,[]).reduce(fc,[]);return tl.changed(n,t,e).reduce(((t,n)=>(t[n.id]=e[n.id],t)),{})}injector(t,e="to"){let n=this._treeChanges[e];return t&&(n=nl.subPath(n,(e=>e.state===t||e.state.name===t))),new ol(n).injector()}getResolveTokens(t="to"){return new ol(this._treeChanges[t]).getTokens()}addResolvable(t,e){t=Wa(Yc)(t)?t:new Yc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=ac(r,(t=>t.state.name===n));st(!!i,`targetNode not found ${n}`);new ol(r).addResolvables([t],i.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return cc(this._treeChanges.entering,Ha("state")).map(jl)}exiting(){return cc(this._treeChanges.exiting,Ha("state")).map(jl).reverse()}retained(){return cc(this._treeChanges.retained,Ha("state")).map(jl)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(Fa("state",e)):n,n.map(Ha("views")).reduce(hc,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const i=Object.assign({},this.options(),t.options(),r);t=t.withOptions(i,!0);const s=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=s._treeChanges.entering;return nl.matching(a,o,nl.nonDynamicParams).filter((e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n})).forEach(((t,e)=>{t.resolvables=o[e].resolvables})),s}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(gc(t.to,t.from).map((t=>t[0].state!==t[1].state)).reduce(uc,!1))return;const e=t.to.map((t=>t.paramSchema)),[n,r]=[t.to,t.from].map((t=>t.map((t=>t.paramValues))));return gc(e,n,r).map((([t,e,n])=>tl.changed(t,e,n))).reduce(hc,[])}dynamic(){const t=this._changedParams();return!!t&&t.map((t=>t.dynamic)).reduce(uc,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=nl.matching(t,n);return t.length===r.filter((t=>!e||!t.state.includes[e.name])).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=Ol.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(pl.BEFORE);return Ol.invokeHooks(n,(()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Wc.traceTransitionStart(this),Ya.$q.resolve(void 0)})).then((()=>{const t=e(pl.RUN);return Ol.invokeHooks(t,(()=>Ya.$q.resolve(void 0)))})).then((()=>{Wc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(pl.SUCCESS))}),(n=>{Wc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(pl.ERROR))})),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){g(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return wl.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter((t=>!t.validates(n[t.id])));if(r.length){const e=r.map((t=>`[${t.id}:${Lc(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return wl.invalid(i)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:sc(t,["#"]);return`Transition#${this.$id}( '${y(t)?t.name:t}'${Lc(n(this._treeChanges.from.map(Ha("paramValues")).reduce(rc,{})))} -> ${this.valid()?"":"(X) "}'${y(e)?e.name:e}'${Lc(n(this.params()))} )`}}Nl.diToken=Nl;const Vl=["$transition$",Nl];function Rl(t){const e=Object.values(t.treeChanges()).reduce(hc,[]).reduce(fc,[]),n=t=>Vl.includes(t.token)?Yc.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))}function Pl(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const Dl=Pl("onExit"),Ml=Pl("onRetain"),Ll=Pl("onEnter"),Il=1e3,Ul=t=>new ol(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),ql=(t,e)=>new ol(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),Hl=t=>new ol(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),Fl=t=>{const e=Ya.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.resolve(t.load())))).then((()=>{}))},Bl=t=>{const e=t.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},(()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,bc(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)};function zl(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},(t=>{const i=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Wl(t,e,r)));return Ya.$q.all(i).then((function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.target(n.identifier(),n.params(),n.options())}const r=n.match(n.parts()),i=r&&r.rule;if(i&&"STATE"===i.type){const n=i.state,s=r.match;return e.target(n,s,t.options())}n.sync()}))}))}function Wl(t,e,n){const r=e.$$state().lazyLoad;let i=r._promise;if(!i){const s=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete r._promise,t),o=t=>(delete r._promise,Ya.$q.reject(t));i=r._promise=Ya.$q.resolve(r(t,e)).then((function(t){t&&Array.isArray(t.states)&&t.states.forEach((t=>n.register(t)));return t})).then(s,o)}return i}class Gl{constructor(t,e,n,r,i=!1,s=Ol.HANDLE_RESULT,o=Ol.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=i,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=a}}function Kl(t){const e=t._ignoredReason();if(!e)return;Wc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),wl.ignored().toPromise()}function Yl(t){if(!t.valid())throw new Error(t.error().toString())}let Ql={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Zl{static $inject=["$routerGlobalsProvider","$viewProvider"];constructor(t,e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this.globals=t,this.$view=e,this._deregisterHookFns={},this._pluginapi=Ja(Ga(this),{},Ga(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(Rl)}$get=["$state","$urlService","$stateRegistry","$view",(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=zl(this,t,e,n),this._deregisterHookFns.updateUrl=((t,e,n)=>{t.onSuccess({},(t=>{const r=t.options(),i=e;if("url"!==r.source&&r.location&&i.$current.navigable){const t={replace:"replace"===r.location};n.push(i.$current.navigable.url,i.globals.params,t)}n.update(!0)}),{priority:9999})})(this,t,e),this._deregisterHookFns.redirectTo=((t,e)=>{t.onStart({to:t=>!!t.redirectTo},(t=>{const n=t.to().redirectTo;if(!n)return;const r=e;function i(e){if(e)return e instanceof Qc?e:b(e)?r.target(e,t.params(),t.options()):e.state||e.params?r.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return S(n)?Ya.$q.resolve(n(t)).then(i):i(n)}))})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},(t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach((t=>e.deactivateViewConfig(t))),n.forEach((t=>e.activateViewConfig(t))),e.sync())}))})(this,r),this)];create(t,e){return new Nl(t,e,this,this.globals)}_defineCoreEvents(){const t=pl,e=Ol,n=this._criteriaPaths,r=!1,i=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,i),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=fl;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,i=!1,s=Ol.HANDLE_RESULT,o=Ol.REJECT_ERROR,a=!1){const c=new Gl(t,e,n,r,i,s,o,a);this._eventTypes.push(c),_l(this,this,c)}_getEvents(t){return(v(t)?this._eventTypes.filter((e=>e.hookPhase===t)):this._eventTypes.slice()).sort(((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n}))}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=void this.onCreate({},(function(t){t.addResolvable(Yc.fromData(Nl,t),""),t.addResolvable(Yc.fromData("$transition$",t),""),t.addResolvable(Yc.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(Yc.fromData("$state$",e),e)}))})),t.ignored=(t=>t.onBefore({},Kl,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Yl,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},Dl))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},Ml))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},Ll))(this),t.eagerResolve=(t=>t.onStart({},Ul,{priority:Il}))(this),t.lazyResolve=(t=>t.onEnter({entering:Ga(!0)},ql,{priority:Il}))(this),t.resolveAll=(t=>t.onFinish({},Hl,{priority:Il}))(this),t.loadViews=(t=>t.onFinish({},Fl))(this),t.updateGlobals=(t=>t.onCreate({},Bl))(this),t.lazyLoad=zl(this)}}const Jl=ut("$stateProvider");class Xl{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=["$routerGlobalsProvider","$transitionsProvider"];constructor(t,e){this.stateRegistry=void 0,this.urlService=void 0,this.globals=t,this.transitionService=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){throw t instanceof Error&&t.stack?t:t instanceof wl?new Error(t.toString()):new Error(t)};const n=["current","$current","params","transition"],r=Object.keys(Xl.prototype).filter((t=>!n.includes(t)));Ja(Ga(Xl.prototype),this,Ga(this),r),Cl.subscribe("$stateService:defaultErrorHandler",(t=>this.defaultErrorHandler()(t)))}$get=[()=>this];decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t){if(!t.name)throw Jl("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Jl("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=nl.makeTargetState(this.stateRegistry,t),r=this.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new Nc(this.invalidCallbacks.slice()),a=new ol(t).injector(),c=t=>{if(!(t instanceof Qc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?wl.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):wl.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?wl.invalid(e.error()).toPromise():Ya.$q.resolve(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){tc(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!v(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=nc(n,{relative:this.$current,inherit:!0},Ql);return this.transitionTo(t,e,r)}target(t,e,n={}){if(y(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${b(n.reload)?n.reload:n.reload.name}'`);return new Qc(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new el(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=nc(n,Ql);const r=()=>this.globals.transition;n=Object.assign(n,{current:r});const i=this.target(t,e,n),s=this.getCurrentPath();if(!i.exists())return this._handleInvalidTargetState(s,i);if(!i.valid())return Ec(i.error());if(!1===n.supercede&&r())return wl.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const o=t=>e=>{if(e instanceof wl){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===vl)return n&&this.urlService.update(),Ya.$q.resolve(this.globals.current);const r=e.detail;if(e.type===$l&&e.redirected&&r instanceof Qc){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===ml)return n&&this.urlService.update(),Ya.$q.reject(e)}return this.defaultErrorHandler()(e),Ya.$q.reject(e)},a=this.transitionService.create(s,i),c=a.run().catch(o(a));return wc(c),Object.assign(c,{transition:a})}is(t,e,n){n=nc(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!v(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return tl.equals(i,tl.values(i,e),this.globals.params)}includes(t,e,n){n=nc(n,{relative:this.$current});const r=b(t)&&xl.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const i=this.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(!v(i))return;if(!v(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return tl.equals(o,tl.values(o,e),this.globals.params)}href(t,e,n){n=nc(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!v(r))return null;n.inherit&&(e=this.globals.params.$inherit(e,this.$current,r));const i=r&&n.lossy?r.navigable:r;return i&&void 0!==i.url&&null!==i.url?this.urlService.href(i.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),i=nl.makeTargetState(this.stateRegistry,r);return Wl(e=e||this.transitionService.create(r,i),n)}}function tu(){let t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",(e,n)=>t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}]}class eu{constructor(){this._useHttp=!1}$get=["$http","$templateCache","$templateRequest","$q","$injector",(t,e,n,r,i)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$q=r,this.$injector=i,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>this.$q.resolve(t).then((t=>({template:t}))),i=t=>this.$q.resolve(t).then((t=>({component:t})));switch((t=>v(t.template)?"template":v(t.templateUrl)?"templateUrl":v(t.templateProvider)?"templateProvider":v(t.component)?"component":v(t.componentProvider)?"componentProvider":"default")(t)){case"template":return r(this.fromString(t.template,e));case"templateUrl":return r(this.fromUrl(t.templateUrl,e));case"templateProvider":return r(this.fromProvider(t.templateProvider,e,n));case"component":return i(t.component);case"componentProvider":return i(this.fromComponentProvider(t.componentProvider,e,n));default:return r("<ui-view></ui-view>")}}fromString(t,e){return S(t)?t(e):t}fromUrl(t,e){return S(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(t){return t.data})):this.$templateRequest(t)}fromProvider(t,e,n){const r=we(t),i=Array.isArray(t)?yc(t):t;return new Yc("",i,r).get(n)}fromComponentProvider(t,e,n){const r=we(t),i=Array.isArray(t)?yc(t):t;return new Yc("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=Pc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=Ya.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(nu).reduce(hc,[])}(n).map((n=>{const{name:s,type:o}=n,a=i(s);if(t.attr(a)&&!r[s])return`${a}='${t.attr(a)}'`;const c=r[s]||s;if("@"===o)return`${a}='{{::$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&we(n)||[];return`${a}='$resolve.${c}${Array.isArray(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='::$resolve.${c}'`})).join(" "),o=i(n);return`<${o} ${s}></${o}>`}}const nu=t=>y(t.bindToController)?ru(t.bindToController):ru(t.scope),ru=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>v(t)&&Array.isArray(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function iu(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const su=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),ou={state:{params:{}},strict:!0,caseInsensitive:!0};class au{static encodeDashes(t){return encodeURIComponent(t).replace(/-/g,(t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`))}static pathSegmentsAndParams(t){return gc(t._segments,t._params.filter((t=>t.location===Jc.PATH)).concat(void 0)).reduce(hc,[]).filter((t=>""!==t&&v(t)))}static queryParams(t){return t._params.filter((t=>t.location===Jc.SEARCH))}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(au.pathSegmentsAndParams).reduce(hc,[]).reduce(Ic,[]).map((t=>b(t)?su(t):t)).reduce(hc,[]))(t).map((t=>"/"===t?1:b(t)?2:t instanceof tl?3:void 0)),r=n(t),i=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,i,0);const s=gc(r,i);let o,a;for(a=0;a<s.length;a++)if(o=s[a][0]-s[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=nc(r,ou),this.pattern=t;const i=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!au.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(ac(this._params,Fa("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const i=n[2]||n[3],s=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:i,regexp:s,segment:t.substring(c,n.index),type:s?e.type(s)||(t=>Xa(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let h,d;for(;(a=i.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,yc(this._params)]),c=i.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=s.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=i.lastIndex}this._segments.push(d),this._compiled=o.map((t=>iu.apply(null,t))).concat(iu(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return v(t)&&(t=e.type.decode(t)),e.value(t)}exec(t,e={},n){const r=(i=this._cache,s="pattern",o=()=>new RegExp(["^",$c(this._cache.path.map(Ha("_compiled"))).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),i[s]=i[s]||o()).exec(t);var i,s,o;if(!r)return null;const a=this.parameters(),c=a.filter((t=>!t.isSearch())),l=a.filter((t=>t.isSearch())),u=this._cache.path.map((t=>t._segments.length-1)).reduce(((t,e)=>t+e)),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=cc(e(t).split(/-(?!\\)/),e);return cc(n,(t=>t.replace(/\\-/g,"-"))).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach((t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)})),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:$c(this._cache.path.map((t=>t._params)))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter((e=>Object.prototype.hasOwnProperty.call(t,e.id))).map((e=>((t,e)=>!t||t.validates(e))(e,t[e.id]))).reduce(lc,!0)}format(t={}){const e=this._cache.path,n=e.map(au.pathSegmentsAndParams).reduce(hc,[]).map((t=>b(t)?t:i(t))),r=e.map(au.queryParams).reduce(hc,[]).map(i);if(n.concat(r).filter((t=>!1===t.isValid)).length)return null;function i(e){const n=e.value(t[e.id]),r=e.validates(n),i=e.isDefaultValue(n),s=!!i&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:i,squash:s,encoded:o}}const s=n.reduce(((t,e)=>{if(b(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:b(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+cc(r,au.encodeDashes).join("-"):i.raw?t+r:t+encodeURIComponent(r)}),""),o=r.map((t=>{let{param:e,squash:n,encoded:r,isDefaultValue:i}=t;if(!(null==r||i&&!1!==n)&&(Array.isArray(r)||(r=[r]),0!==r.length))return e.raw||(r=cc(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).reduce(hc,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}au.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class cu{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?xl.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?t+"."+this.name:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=nc(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter((e=>!t.matchingKeys||Object.prototype.hasOwnProperty.call(t.matchingKeys,e.id)))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||ac(Object.values(this.params),Fa("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}cu.isStateDeclaration=t=>S(t.$$state),cu.isState=t=>y(t.__stateObjectCache);class lu{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=cu,i=Ka([[b,t=>i(this.urlService.compile(t))],[Wa(au),t=>this.fromUrlMatcher(t,e)],[(s=n,o=r,(...t)=>s.apply(null,t)||o.apply(null,t)),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Wa(RegExp),t=>this.fromRegExp(t,e)],[S,t=>new uu(t,e)]]);var s,o;const a=i(t);if(!a)throw new Error("invalid 'what' in when()");return a}fromUrlMatcher(t,e){let n=e;b(e)&&(e=this.urlService.compile(e)),Wa(au)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter((t=>t.isOptional));return n.length?n.filter((t=>e[t.id])).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new uu((function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n}),n),r)}fromState(t,e,n){const r=cu.isStateDeclaration(t)?t.$$state():t,i={state:r,type:"STATE"};return Object.assign(this.fromUrlMatcher(r.url,(t=>{const i=e;i.href(r,t)!==i.href(n.current,n.params)&&i.transitionTo(r,t,{inherit:!0,source:"url"})})),i)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=b(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new uu((e=>t.exec(e.path)),n),r)}}lu.isUrlRule=t=>t&&["type","match","handler"].every((e=>v(t[e])));class uu{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t)}matchPriority(t){return st(g(t)),0-this.$id}}let hu;function du(t){if(!(S(t)||b(t)||Wa(Qc)(t)||Qc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return S(t)?t:Ga(t)}hu=(t,e)=>{let n=((t,e)=>(e.priority||0)-(t.priority||0))(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?au.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))};class pu{constructor(t){this._sortFn=hu,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=du(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=du(t);this._otherwiseFn=this.urlRuleFactory.create(Ga(!0),e),this._sorted=!1}removeRule(t){tc(this._rules,t)}rule(t){if(!lu.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map(((t,e)=>({elem:t,idx:e})));return n.sort(((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r})),n.map((t=>t.elem))}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return v(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class fu{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new tl(t,e,Jc.CONFIG,this.urlServiceConfig,n)}fromPath(t,e,n){return new tl(t,e,Jc.PATH,this.urlServiceConfig,n)}fromSearch(t,e,n){return new tl(t,e,Jc.SEARCH,this.urlServiceConfig,n)}}class $u{static $inject=["$locationProvider","$stateProvider","$routerGlobalsProvider","$urlConfigProvider"];constructor(t,e,n,r){this.stateService=e,this.stateService.urlService=this,this.$locationProvider=t,this.$location=void 0,this.$browser=void 0,this.interceptDeferred=!1,this.urlRuleFactory=new lu(this,this.stateService,n),this.rules=new pu(this.urlRuleFactory),this.config=r,this.paramFactory=new fu(this.config),this.path=()=>this.$location.path(),this.search=()=>this.$location.search(),this.hash=()=>this.$location.hash(),this._urlListeners=[]}$get=["$location","$browser","$rootScope",(t,e,n)=>(this.$location=t,this.$browser=e,n.$on("$locationChangeSuccess",(t=>this._urlListeners.forEach((e=>e(t))))),this.listen(),this)];html5Mode(){let t=this.$locationProvider.html5Mode();return t=y(t)?t.enabled:t,t&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||window.location.pathname)}url(t,e=!1,n){return v(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}onChange(t){return this._urlListeners.push(t),()=>tc(this._urlListeners)(t)}parts(){return{path:this.path(),search:this.search(),hash:this.hash()}}sync(t){if(t&&t.defaultPrevented)return;const e=this.stateService,n={path:this.path(),search:this.search(),hash:this.hash()},r=this.match(n);Ka([[b,t=>this.url(t,!0)],[Qc.isDef,t=>e.go(t.state,t.params,t.options)],[Wa(Qc),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange((t=>this.sync(t)));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}deferIntercept(t){void 0===t&&(t=!0),this.interceptDeferred=t}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const i=n(e[t]);r=!r||i&&i.weight>r.weight?i:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const i=this.html5Mode();if(i||null===r||(r="#"+this.$locationProvider.hashPrefix()+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,i,n.absolute,this.baseHref()),!n.absolute||!r)return r;const s=!i&&r?"/":"",o=this.$location.port(),a=80===o||443===o?"":":"+o;return[this.$location.protocol(),"://",this.$location.host(),a,s,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new au(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!y(t))return!1;let e=!0;return N(au.prototype,((n,r)=>{S(n)&&(e=e&&v(t[r])&&S(t[r]))})),e}}class mu{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=b(t);let i=r?t:t.name;this.isRelative(i)&&(i=this.resolvePath(i,e));const s=this._states[i];if(s&&(r||!(r||s!==t&&s.self!==t)))return s;if(r&&n){const t=Object.values(this._states).filter((t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(i)));return t.length>1&&console.error(`stateMatcher.find: Found multiple matches for ${i} using glob: `,t.map((t=>t.name))),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),i=r.length;let s=0,o=n;for(;s<i;s++)if(""!==r[s]||0!==s){if("^"!==r[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(s).join(".");return o.name+(o.name&&a?".":"")+a}}function gu(t){return t.self.$$state=()=>t,t.self}function vu(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Xa(t.parent.data,t.data)),t.data}function yu(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};bc(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=function(t){if(!b(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=s?t.compile(s.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return s&&s.root?o:(i&&i.navigable||e()).url.append(o)}}function bu(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function wu(t){return t.parent&&!t.abstract?t.parent.path.concat(t):[t]}function Eu(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function Cu(t){const e=Ka([[Ha("resolveFn"),t=>new Yc(xu(t),t.resolveFn,t.deps,t.policy)],[Ha("useFactory"),t=>new Yc(xu(t),t.useFactory,t.deps||t.dependencies,t.policy)],[Ha("useClass"),t=>new Yc(xu(t),(()=>new t.useClass),[],t.policy)],[Ha("useValue"),t=>new Yc(xu(t),(()=>t.useValue),[],t.policy,t.useValue)],[Ha("useExisting"),t=>new Yc(xu(t),(t=>t),[t.useExisting],t.policy)]]),n=Ka([[qa(Ha("val"),b),t=>new Yc(t.token,(t=>t),[t.val],t.policy)],[qa(Ha("val"),Array.isArray),t=>new Yc(t.token,yc(t.val),t.val.slice(0,-1),t.policy)],[qa(Ha("val"),S),t=>new Yc(t.token,t.val,(t=>{const e=Ya.$injector;return t.$inject||e&&we(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Ka([[Wa(Yc),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(b(t.val)||Array.isArray(t.val)||S(t.val))),n],[Ga(!0),t=>{throw new Error("Invalid resolve value: "+Lc(t))}]]),i=t.resolve,s=Array.isArray(i)?i:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(i,t.resolvePolicy||{});return s.map(r)}class Su{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var i;this.builders={name:[t=>t.name],self:[gu],parent:[function(e){return Ou(e)?null:t.find(n.parentName(e))||r()}],data:[vu],url:[yu(e,r)],navigable:[bu(Ou)],params:[(i=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(cc(sc(t.params||{},e.map(Ha("id"))),((e,n)=>i.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(vc,{})})],views:[],path:[wu],includes:[Eu],resolvables:[Cu]}}builder(t,e){const n=this.builders,r=n[t]||[];return b(t)&&!v(e)?r.length>1?r:r[0]:b(t)&&S(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const r=n[e].reduce(((t,e)=>n=>e(n,t)),(()=>{}));t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?b(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=b(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function Ou(t){return""===t.name}function xu(t){return t.provide||t.token}class Au{constructor(t,e,n,r,i){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=i,this.queue=[]}register(t){const e=this.queue,n=new cu(t),r=n.name;if(!b(r))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,r)||e.map(Ha("name")).includes(r))throw new Error(`State '${r}' is already defined`);return e.push(n),this.flush(),n}flush(){const{queue:t,states:e,builder:n}=this,r=[],i=[],s={},o=t=>Object.prototype.hasOwnProperty.call(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach((t=>t("registered",r.map((t=>t.self)))))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=i.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&i.splice(h,1),r.push(c);continue}const d=s[l];if(s[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&i.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class ku{static $inject=["$urlServiceProvider","$stateProvider","$routerGlobalsProvider","$viewProvider"];constructor(t,e,n,r){this.states={},e.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.rules,this.$injector=void 0,this.listeners=[],this.matcher=new mu(this.states),this.builder=new Su(this.matcher,t),this.builder.builder("views",ll),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new Au(this,this.urlServiceRules,this.states,this.builder,this.listeners),this._registerRoot(),r._pluginapi._rootViewContext(this.root()),n.$current=this.root(),n.current=n.$current.self}$get=["$injector",t=>(this.$injector=t,this.builder.$injector=t,this)];getStateHookBuilder(t){let e=this;return function(n){const r=n[t],i="onExit"===t?"from":"to";return r?function(t,n){const s=new ol(t.treeChanges(i)).subContext(n.$$state()),o=Object.assign(_u(s),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}_registerRoot(){(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){tc(this.listeners)(t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map((t=>t.$$state())),n=t=>{const r=e.filter((e=>-1!==t.indexOf(e.parent)));return 0===r.length?r:r.concat(n(r))},r=n([t]),i=[t].concat(r).reverse();return i.forEach((t=>{const e=this.urlServiceRules;e.rules().filter(Fa("state",t)).forEach((t=>e.removeRule(t))),delete this.states[t.name]})),i}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach((t=>t("deregistered",n.map((t=>t.self))))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map((t=>this.states[t].self));const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}const _u=t=>t.getTokens().filter(b).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(vc,{});function Tu(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function ju(t){const e=t.parent().inheritedData("$ngView"),n=Ba("$cfg.path")(e);return n?yc(n).state.name:void 0}function Nu(t,e,n){const r=n.ngState||t.current.name,i=Object.assign(function(t,e){return{relative:ju(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.ngStateOpts||{}),s=t.href(r,n.ngStateParams,i);return{ngState:r,ngStateParams:n.ngStateParams,ngStateOpts:i,href:s}}function Vu(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t[0].getAttribute("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t[0].nodeName,clickable:!n}}function Ru(t,e,n,r,i){return function(s){const o=s.which||s.button,a=i();if(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.attr("target"))s.preventDefault(),s.stopImmediatePropagation();else{const i=n((function(){t.attr("disabled")||e.go(a.ngState,a.ngStateParams,a.ngStateOpts)}));s.preventDefault();let o=r.isAnchor&&!a.href?1:0;s.preventDefault=function(){o--<=0&&n.cancel(i)}}}}function Pu(t,e,n,r){let i;r&&(i=r.events),Array.isArray(i)||(i=["click"]);const s=t.on?"on":"bind";for(const e of i)t[s](e,n);e.$on("$destroy",(function(){const e=t.off?"off":"unbind";for(const r of i)t[e](r,n)}))}function Du(t,e,n,r){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,o,a)=>{const c=Vu(s),l=a[1]||a[0];let u=null;const h={},d=()=>Nu(i,s,h),p=Tu(o.ngSref);function f(){const t=d();u&&u(),l&&(u=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(h.ngState=p.state,h.ngStateOpts=o.ngSrefOpts?t.$eval(o.ngSrefOpts):{},p.paramExpr&&(t.$watch(p.paramExpr,(function(t){h.ngStateParams=Object.assign({},t),f()}),!0),h.ngStateParams=Object.assign({},t.$eval(p.paramExpr))),f(),t.$on("$destroy",n.onStatesChanged(f)),t.$on("$destroy",r.onSuccess({},f)),!c.clickable)return;const $=Ru(s,i,e,c,d);Pu(s,t,$,h.ngStateOpts)}}}function Mu(t,e,n,r){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(i,s,o,a){const c=Vu(s),l=a[1]||a[0];let u,h=null;const d={},p=()=>Nu(t,s,d),f=["ngState","ngStateParams","ngStateOpts"],$=f.reduce(((t,e)=>(t[e]=()=>{},t)),{});function m(){const t=p();h&&h(),l&&(h=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}f.forEach((t=>{d[t]=o[t]?i.$eval(o[t]):null,o.$observe(t,(e=>{$[t](),$[t]=i.$watch(e,(e=>{d[t]=e,m()}),!0)}))})),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",r.onSuccess({},m)),c.clickable&&(u=Ru(s,t,e,c,p),Pu(s,i,u,d.ngStateOpts))}}}function Lu(t,e,n,r,i){return{restrict:"A",controller:function(s,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(s);try{l=s.$eval(a.ngSrefActive)}catch(t){}function h(t){t.promise.then($,(()=>{}))}function d(){p(l)}function p(t){y(t)&&(u=[],Qa(t,(function(t,e){const n=function(t,e){const n=Tu(t);f(n.state,s.$eval(n.paramExpr),e)};b(t)?n(t,e):Array.isArray(t)&&Qa(t,(function(t){n(t,e)}))})))}function f(e,n,r){const i={state:t.get(e,ju(o))||{name:e},params:n,activeClass:r};return u.push(i),function(){tc(u)(i)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map((t=>t.activeClass)).map(e).reduce(hc,[]),r=n(u).concat(e(c)).reduce(fc,[]),i=n(u.filter((e=>t.includes(e.state.name,e.params)))),a=!!u.filter((e=>t.is(e.state.name,e.params))).length?e(c):[],l=i.concat(a).reduce(fc,[]),h=r.filter((t=>!l.includes(t)));s.$evalAsync((()=>{l.forEach((t=>o[0].classList.add(t))),h.forEach((t=>o[0].classList.remove(t)))}))}l=l||n(a.ngSrefActive||"",!1)(s),p(l),this.$$addStateInfo=function(t,e){if(y(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},s.$on("$destroy",function(){const t=r.onStatesChanged(d),e=i.onStart({},h),n=s.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}Du.$inject=["$state","$timeout","$stateRegistry","$transitions"],Mu.$inject=["$state","$timeout","$stateRegistry","$transitions"],Lu.$inject=["$state","$routerGlobals","$interpolate","$stateRegistry","$transitions"];let Iu=["$view","$animate","$ngViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$ngView:{}},o={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",d=u.autoscroll,p={enter:function(t,n,r){e.enter(t,null,n).then(r)},leave:function(t,n){e.leave(t).then(n)}},f=c.inheritedData("$ngView")||s,$=r(u.ngView||u.name||"")(a)||"$default";let m,g,y,b;const w={$type:"ng1",id:o.count++,name:$,fqn:f.$ngView.fqn?f.$ngView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof hl))return;if(e=b,n=t,e===n)return;var e,n;Wc.traceUIViewConfigUpdated(w,t&&t.viewDecl&&t.viewDecl.$context),b=t,C(t)},get creationContext(){const t=Ba("$cfg.viewDecl.$context")(f),e=Ba("$ngView.creationContext")(f);return t||e}};Wc.traceUIViewEvent("Linking",w),c.data("$ngView",{$ngView:w}),C();const E=t.registerUIView(w);function C(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$ngView:w},u={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",$);const f=l(e,(function(t){t.data("$ngViewAnim",u),t.data("$ngView",o),p.enter(t,c,(function(){r.resolve(),y&&y.$emit("$viewContentAnimationEnded"),(v(d)&&!d||a.$eval(d))&&n(t)})),function(){if(m&&(Wc.traceUIViewEvent("Removing (previous) el",m.data("$ngView")),m.remove(),m=null),y&&(Wc.traceUIViewEvent("Destroying scope",w),y.$destroy(),y=null),g){const t=g.data("$ngViewAnim");Wc.traceUIViewEvent("Animate out",t),p.leave(g,(function(){t.$$animLeave.resolve(),m=null})),m=g,g=null}}()}));g=f,y=e,y.$emit("$viewContentLoaded",t||b),y.$eval(h)}a.$on("$destroy",(function(){Wc.traceUIViewEvent("Destroying/Unregistering",w),E()}))}}};return o}];function Uu(t,e,n,r,i){const s=Ba("viewDecl.controllerAs"),o=Ba("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(r){const a=r.html();return r.empty(),function(r,c){const l=c.data("$ngView");if(!l)return c.html(a),void t(c[0].contentDocument||c[0].childNodes)(r);const u=l.$cfg||{viewDecl:{},getTemplate:()=>{}},h=u.path&&new ol(u.path);c.html(u.getTemplate(c,h)||a),Wc.traceUIViewFill(l.$ngView,c.html());const d=t(c[0].contentDocument||c[0].childNodes),p=u.controller,f=s(u),$=o(u),m=h&&_u(h);if(r[$]=m,p){const t=e(p,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),Hu(i,n,t,r,u)}if(b(u.component)){const t=Pc(u.component),e=new RegExp(`^(x-|data-)?${t}$`,"i"),s=()=>{const t=[].slice.call(c[0].children).filter((t=>t&&t.tagName&&e.exec(t.tagName)));return t&&kt(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(Hu(i,n,t,r,u),o())}))}d(r)}}}}Uu.$inject=["$compile","$controller","$transitions","$view","$q"];let qu=0;function Hu(t,e,n,r,i){!S(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=yc(i.path).state.self,o={bind:n};if(S(n.uiOnParamsChanged)){const t=new ol(i.path).getResolvable("$transition$").data,a=e=>{if(e===t||-1!==e.exiting().indexOf(s))return;const r=e.params("to"),i=e.params("from"),o=t=>t.paramSchema,a=e.treeChanges("to").map(o).reduce(hc,[]),c=e.treeChanges("from").map(o).reduce(hc,[]),l=a.filter((t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(r[t.id],i[t.id])}));if(l.length){const t=l.map((t=>t.id)),i=oc(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(S(n.uiCanExit)){const i=qu++,a="_uiCanExitIds",c=t=>!!t&&(t[a]&&!0===t[a][i]||c(t.redirectedFrom())),l=e=>{let r;const s=e[a]=e[a]||{};return c(e)||(r=t.resolve(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}const Fu="0.3.0";const Bu=ut("ng"),zu=ut("$injector"),Wu={};const Gu=new class{constructor(){gt.clear(),this.cache=gt,this.version=Fu,this.element=kt,this.bootsrappedModules=[],this.doBootstrap,function(t){t.module("ng",[],["$provide",t=>{t.provider({$$sanitizeUri:To}),t.provider("$compile",pn).directive({input:sr,textarea:sr,form:wn,script:lr,select:dr,option:pr,ngBind:fr,ngBindHtml:mr,ngBindTemplate:$r,ngClass:vr,ngClassEven:br,ngClassOdd:yr,ngCloak:wr,ngController:Er,ngDisabled:Wo,ngForm:En,ngHide:xr,ngIf:fi,ngInclude:$i,ngInit:gi,ngMessages:Ro,ngMessage:Lo,ngMessageExp:Io,ngMessagesInclude:Mo,ngMessageDefault:Uo,ngNonBindable:vi,ngRef:bi,ngRepeat:wi,ngShow:Or,ngStyle:Ei,ngSwitch:Ci,ngSwitchWhen:Si,ngSwitchDefault:Oi,ngOptions:ki,ngTransclude:Ti,ngModel:Vn,ngList:ji,ngChange:Ni,pattern:Di,ngPattern:Di,required:Pi,ngRequired:Pi,ngMinlength:Li,minlength:Li,ngMaxlength:Mi,maxlength:Mi,ngValue:cr,ngModelOptions:_n}).directive({input:or,ngAnimateSwap:Ma,ngAnimateChildren:La,ngChecked:Zo,ngClick:Yo,ngDblclick:na,ngInclude:mi,ngHide:Xo,ngShow:Go,ngMessages:Ko,ngModel:ea,ngReadonly:ta,ngRequired:Qo,ngValue:Jo,ngSref:Du,ngSrefActive:Lu,ngSrefActiveEq:Lu,ngState:Mu,ngView:Iu}).directive({ngView:Uu}).directive(Ri).directive(tn),t.provider({$aria:zo,$anchorScroll:qi,$animate:pi,$$animation:Ea,$animateCss:fa,$$animateCssDriver:Va,$$animateJs:ya,$$animateJsDriver:Da,$$animateCache:ka,$$animateQueue:va,$$AnimateRunner:Qi,$$animateAsyncRun:zi,$browser:Bi,$controller:xe,$exceptionHandler:ts,$filter:us,$interpolate:Hs,$interval:vs,$$intervalFactory:Fs,$http:ao,$httpParamSerializer:to,$httpParamSerializerJQLike:eo,$httpBackend:co,$location:mo,$log:Co,$parse:Ns,$$rAFScheduler:Ca,$rootScope:Ie,$routerGlobals:Vc,$q:hs,$$q:ds,$sce:Xe,$sceDelegate:Je,$$taskTrackerFactory:So,$templateCache:Ji,$templateRequest:Ao,$timeout:_o,$urlConfig:Tc,$view:dl,$transitions:Zl,$state:Xl,$ngViewScroll:tu,$templateFactory:eu,$urlService:$u,$stateRegistry:ku})}]).factory("$stateParams",["$routerGlobals",function(t){return t.params}]).value("$trace",Wc).info({version:Fu})}(this)}errorHandlingConfig(t){return lt(t)}bootstrap(t,e,n){n=n||{strictDi:!1};const r=kt(t);if(r.injector())throw Bu("btstrpd","App already bootstrapped");Array.isArray(e)&&(this.bootsrappedModules=e),this.bootsrappedModules.unshift(["$provide",t=>{t.value("$rootElement",r)}]),this.bootsrappedModules.unshift("ng");const i=ye(this.bootsrappedModules,n.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){if(t.$apply((()=>{e.data("$injector",r),n(e)(t)})),Ya.$injector=r,Ya.$q=r.get("$q"),!Object.prototype.hasOwnProperty.call(r,"strictDi"))try{r.invoke((()=>{}))}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get("$stateRegistry").get().map((t=>t.$$state().resolvables)).reduce(hc,[]).filter((t=>"deferred"===t.deps)).forEach((t=>t.deps=we(t.resolveFn,r.strictDi)))}]),i}injector(t,e){return ye(t,e)}resumeBootstrap(t){return t.forEach((t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}init(t){let e,n;const r={};rt.forEach((r=>{const i=`${r}app`;t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),rt.forEach((r=>{const i=`${r}app`;let s;!e&&(s=t.querySelector(`[${i.replace(":","\\:")}]`))&&(e=s,n=s.getAttribute(i))})),e&&(r.strictDi=null!==function(t,e){let n,r;const i=rt.length;for(r=0;r<i;++r)if(n=rt[r]+e,b(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return z(t,"module"),e&&Object.prototype.hasOwnProperty.call(Wu,t)&&(Wu[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(Wu,t,(()=>{if(!e)throw zu("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new Xt(t,e,n)}))}};window.angular=Gu,"complete"===document.readyState?Gu.init(document):document.addEventListener("DOMContentLoaded",(()=>{Gu.init(document)})),t.angular=Gu}));
|