{
"version": 3,
"sources": ["../ui/web_modules/common/ui-router-rx-04f7f595.js", "../ui/web_modules/@uirouter/angular.js"],
"sourcesContent": ["import { m as mergeMap, e as map } from './mergeMap-64c6f393.js';\nimport { R as ReplaySubject } from './ReplaySubject-8316d9c1.js';\nimport { f as filter } from './filter-d76a729c.js';\n\n/** @module rx */\n/** Augments UIRouterGlobals with observables for transition starts, successful transitions, and state parameters */\nvar UIRouterRx = /** @class */ (function () {\n function UIRouterRx(router) {\n this.name = '@uirouter/rx';\n this.deregisterFns = [];\n var start$ = new ReplaySubject(1);\n var success$ = start$.pipe(mergeMap(function (t) { return t.promise.then(function () { return t; }, function () { return null; }); }), filter(function (t) { return !!t; }));\n var params$ = success$.pipe(map(function (transition) { return transition.params(); }));\n var states$ = new ReplaySubject(1);\n function onStatesChangedEvent(event, states) {\n var changeEvent = {\n currentStates: router.stateRegistry.get(),\n registered: [],\n deregistered: [],\n };\n if (event)\n changeEvent[event] = states;\n states$.next(changeEvent);\n }\n this.deregisterFns.push(router.transitionService.onStart({}, function (transition) { return start$.next(transition); }));\n this.deregisterFns.push(router.stateRegistry.onStatesChanged(onStatesChangedEvent));\n onStatesChangedEvent(null, null);\n Object.assign(router.globals, { start$: start$, success$: success$, params$: params$, states$: states$ });\n }\n UIRouterRx.prototype.dispose = function () {\n this.deregisterFns.forEach(function (deregisterFn) { return deregisterFn(); });\n this.deregisterFns = [];\n };\n return UIRouterRx;\n}());\nvar UIRouterRxPlugin = UIRouterRx;\n\nexport { UIRouterRx as U, UIRouterRxPlugin as a };\n", "import { _ as __decorate, a as __metadata, c as __param, b as __extends, g as __spread } from '../common/tslib.es6-c4a4947b.js';\nimport { g as from, e as map } from '../common/mergeMap-64c6f393.js';\nimport '../common/merge-183efbc7.js';\nimport { a as concat, B as BehaviorSubject, c as combineLatest } from '../common/concat-981db672.js';\nimport '../common/Notification-9e07e457.js';\nimport { R as ReplaySubject } from '../common/ReplaySubject-8316d9c1.js';\nimport { o as of } from '../common/filter-d76a729c.js';\nimport '../common/share-d41e3509.js';\nimport { s as switchMap } from '../common/switchMap-c513d696.js';\nimport { ComponentFactoryResolver, ReflectiveInjector, ViewChild, ViewContainerRef, Input, Component, Inject, Directive, HostListener, Optional, Output, ContentChildren, Host, Self, InjectionToken, ANALYZE_FOR_ENTRY_COMPONENTS, APP_INITIALIZER, NgModule, NgModuleFactoryLoader, Compiler, NgModuleFactory, PLATFORM_ID, Injector, ElementRef, Renderer2, EventEmitter, QueryList } from '../@angular/core.js';\nimport { LocationStrategy, HashLocationStrategy, PathLocationStrategy, CommonModule, isPlatformBrowser } from '../@angular/common.js';\nimport { p as pick, f as forEach, V as ViewService, s as services, a as parse, i as isFunction, R as ResolveContext, u as unnestR, b as filter, t as trace, N as NATIVE_INJECTOR_TOKEN, c as inArray, d as isDefined, e as extend, g as isNumber, h as identity, j as uniqR, P as PathUtils, k as anyTrueR, T as TransitionService, l as isString, U as UIRouter, m as Resolvable, n as parseUrl, B as BaseLocationServices, o as servicesPlugin, S as StateRegistry, q as StateService, r as UrlMatcherFactory, v as UrlRouter, w as UrlService, x as UIRouterGlobals, y as is, z as BrowserLocationConfig, A as tail, C as Param } from '../common/interface-c1256a29.js';\nexport { bu as $injector, bt as $q, B as BaseLocationServices, bs as BaseUrlRule, z as BrowserLocationConfig, aY as Category, a_ as DefType, ak as Glob, bv as HashLocationService, bd as HookBuilder, by as MemoryLocationConfig, bw as MemoryLocationService, N as NATIVE_INJECTOR_TOKEN, C as Param, bq as ParamFactory, b1 as ParamType, a$ as ParamTypes, b2 as PathNode, P as PathUtils, bx as PushStateLocationService, aI as Queue, bf as RegisteredHook, bh as RejectType, bi as Rejection, m as Resolvable, R as ResolveContext, b6 as StateBuilder, b8 as StateMatcher, b7 as StateObject, b0 as StateParams, b9 as StateQueueManager, S as StateRegistry, q as StateService, ba as TargetState, aZ as Trace, bj as Transition, bl as TransitionEventType, bk as TransitionHook, bb as TransitionHookPhase, bc as TransitionHookScope, T as TransitionService, U as UIRouter, x as UIRouterGlobals, bG as UIRouterPluginBase, bo as UrlConfig, bp as UrlMatcher, r as UrlMatcherFactory, v as UrlRouter, br as UrlRuleFactory, bn as UrlRules, w as UrlService, V as ViewService, ag as _extend, _ as _inArray, O as _pushTo, L as _removeFrom, at as all, a4 as allTrueR, Y as ancestors, ar as and, au as any, k as anyTrueR, ae as applyPairs, ad as arrayTuples, ab as assertFn, aa as assertMap, a9 as assertPredicate, aP as beforeAfterSubstr, bB as buildUrl, am as compose, af as copy, I as createProxyFunctions, al as curry, b4 as defaultResolvePolicy, bm as defaultTransOpts, W as defaults, Q as deregAll, av as eq, G as equals, e as extend, b as filter, a0 as find, a8 as flatten, a5 as flattenR, aN as fnToString, f as forEach, E as fromJson, aM as functionToString, bA as getParams, bD as hashLocationPlugin, aQ as hostRegex, h as identity, c as inArray, J as inherit, ax as invoke, y as is, aD as isArray, aE as isDate, d as isDefined, i as isFunction, aG as isInjectable, aA as isNull, aB as isNullOrUndefined, g as isNumber, aC as isObject, aH as isPromise, aF as isRegExp, l as isString, az as isUndefined, aX as joinNeighborsR, aL as kebobString, bz as keyValsToObjectR, bC as locationPluginFactory, bg as makeEvent, aj as makeStub, a2 as map, a1 as mapObj, be as matchState, aJ as maxLength, bF as memoryLocationPlugin, X as mergeR, H as noop, aq as not, Z as omit, as as or, aK as padString, ac as pairs, a as parse, n as parseUrl, ay as pattern, p as pick, an as pipe, $ as pluck, ao as prop, ap as propEq, a6 as pushR, bE as pushStateLocationPlugin, M as pushTo, K as removeFrom, b5 as resolvablesBuilder, b3 as resolvePolicies, D as root, s as services, o as servicesPlugin, ah as silenceUncaughtInPromise, ai as silentRejection, aU as splitEqual, aS as splitHash, aW as splitOnDelim, aT as splitQuery, aO as stringify, aR as stripLastPathElement, A as tail, F as toJson, t as trace, aV as trimHashVal, j as uniqR, a7 as unnest, u as unnestR, aw as val, a3 as values } from '../common/interface-c1256a29.js';\nimport { U as UIRouterRx } from '../common/ui-router-rx-04f7f595.js';\n\n/** @module ng2 */ /** */\n/**\n * This is a [[StateBuilder.builder]] function for Angular `views`.\n *\n * When the [[StateBuilder]] builds a [[State]] object from a raw [[StateDeclaration]], this builder\n * handles the `views` property with logic specific to @uirouter/angular.\n *\n * If no `views: {}` property exists on the [[StateDeclaration]], then it creates the `views` object and\n * applies the state-level configuration to a view named `$default`.\n */\nfunction ng2ViewsBuilder(state) {\n var views = {}, viewsObject = state.views || { $default: pick(state, ['component', 'bindings']) };\n forEach(viewsObject, function (config, name) {\n name = name || '$default'; // Account for views: { \"\": { template... } }\n if (isFunction(config))\n config = { component: config };\n if (Object.keys(config).length === 0)\n return;\n config.$type = 'ng2';\n config.$context = state;\n config.$name = name;\n var normalized = ViewService.normalizeUIViewTarget(config.$context, config.$name);\n config.$uiViewName = normalized.uiViewName;\n config.$uiViewContextAnchor = normalized.uiViewContextAnchor;\n views[name] = config;\n });\n return views;\n}\nvar id = 0;\nvar Ng2ViewConfig = /** @class */ (function () {\n function Ng2ViewConfig(path, viewDecl) {\n this.path = path;\n this.viewDecl = viewDecl;\n this.$id = id++;\n this.loaded = true;\n }\n Ng2ViewConfig.prototype.load = function () {\n return services.$q.when(this);\n };\n return Ng2ViewConfig;\n}());\n\n/**\n * Merge two injectors\n *\n * This class implements the Injector ng2 interface but delegates\n * to the Injectors provided in the constructor.\n */\nvar MergeInjector = /** @class */ (function () {\n function MergeInjector() {\n var injectors = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n injectors[_i] = arguments[_i];\n }\n if (injectors.length < 2)\n throw new Error('pass at least two injectors');\n this.injectors = injectors;\n }\n /**\n * Get the token from the first injector which contains it.\n *\n * Delegates to the first Injector.get().\n * If not found, then delegates to the second Injector (and so forth).\n * If no Injector contains the token, return the `notFoundValue`, or throw.\n *\n * @param token the DI token\n * @param notFoundValue the value to return if none of the Injectors contains the token.\n * @returns {any} the DI value\n */\n MergeInjector.prototype.get = function (token, notFoundValue) {\n for (var i = 0; i < this.injectors.length; i++) {\n var val = this.injectors[i].get(token, MergeInjector.NOT_FOUND);\n if (val !== MergeInjector.NOT_FOUND)\n return val;\n }\n if (arguments.length >= 2)\n return notFoundValue;\n // This will throw the DI Injector error\n this.injectors[0].get(token);\n };\n MergeInjector.NOT_FOUND = {};\n return MergeInjector;\n}());\n\n/** @hidden */\nvar id$1 = 0;\n/**\n * Given a component class, gets the inputs of styles:\n *\n * - @Input('foo') _foo\n * - `inputs: ['foo']`\n *\n * @internalapi\n */\nvar ng2ComponentInputs = function (factory) {\n return factory.inputs.map(function (input) { return ({ prop: input.propName, token: input.templateName }); });\n};\nvar \u02750 = ng2ComponentInputs;\n/**\n * A UI-Router viewport directive, which is filled in by a view (component) on a state.\n *\n * ### Selector\n *\n * A `ui-view` directive can be created as an element: `