(window.discover_bundle_jsonpfunction=window.discover_bundle_jsonpfunction||[]).push([[19],{299:function(t,i,r){"use strict";r.r(i),r.d(i,"ProfileAwareLocator",(function(){return ProfileAwareLocator}));var e=r(0),o=r.n(e),n=r(9),c=r(5);class ProfileAwareLocator{constructor(t){o()(this,"id",void 0),o()(this,"migrations",void 0),this.locator=t,this.id=t.id,this.migrations=t.migrations}injectProfile(t){if(t.profile)return t;const i=Object(c.c)(),{profile:r}=Object(n.b)(i.location.pathname);return r&&(t={...t,profile:r}),t}getLocation(t){return this.locator.getLocation(this.injectProfile(t))}getUrl(t,i){return this.locator.getUrl(this.injectProfile(t),i)}getRedirectUrl(t,i){return this.locator.getRedirectUrl(this.injectProfile(t),i)}navigate(t,i){return this.locator.navigate(this.injectProfile(t),i)}navigateSync(t,i){return this.locator.navigateSync(this.injectProfile(t),i)}useUrl(t,i,r){return this.locator.useUrl(this.injectProfile(t),i,r)}telemetry(t,i){return this.locator.telemetry(this.injectProfile(t),i)}inject(t,i){return this.locator.inject(this.injectProfile(t),i)}extract(t){return this.locator.extract(this.injectProfile(t))}}}}]);