@absolutejs/absolute 0.19.0-beta.212 → 0.19.0-beta.214

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.
Files changed (57) hide show
  1. package/.absolutejs/cache/angular-linker/03f269392dcdbe53b0482927caa1ff17.js +33 -0
  2. package/.absolutejs/cache/angular-linker/341d75bd709b8e3da5e0191e3ae7ff34.js +2029 -0
  3. package/.absolutejs/cache/angular-linker/54161bce55bb149350556317e341619b.js +2872 -0
  4. package/.absolutejs/cache/angular-linker/58ef0a50d4370cda2b180a0e28ccc9a0.js +381 -0
  5. package/.absolutejs/cache/angular-linker/6d5602e0777a6bf3dc286d1418e37eeb.js +593 -0
  6. package/.absolutejs/cache/angular-linker/73f3352125fe12196d76075dab653b06.js +2836 -0
  7. package/.absolutejs/cache/angular-linker/8d0343b38de78de9075d2b7aaef4a0d6.js +693 -0
  8. package/.absolutejs/cache/angular-linker/cd4015dfcb0e8b06d279f929ba472d70.js +122 -0
  9. package/.absolutejs/cache/angular-linker/d7949b8b530e790ee1d7c5f4d9f4e561.js +314 -0
  10. package/.absolutejs/cache/angular-linker/e1bf85e34581dfb0ed6555e030c158e2.js +1351 -0
  11. package/.absolutejs/prettier.cache.json +236 -0
  12. package/.absolutejs/tsc.tsbuildinfo +1 -0
  13. package/.absolutejs/tsconfig.tsbuildinfo +1 -1
  14. package/.absolutejs/tsconfig.vue-check.json +6 -0
  15. package/.absolutejs/vue-tsc.tsbuildinfo +1 -1
  16. package/build/.cache/images/47f6059ee156360b7a041933b4978cbcb2011a1c9a67d833558d233472be079b.data +0 -0
  17. package/build/.cache/images/47f6059ee156360b7a041933b4978cbcb2011a1c9a67d833558d233472be079b.meta +1 -0
  18. package/build/.cache/images/5099ad2f32e4636aa812b97dd0dff1d1b439e24b5e97b2d55fe4f77367f461a4.data +0 -0
  19. package/build/.cache/images/5099ad2f32e4636aa812b97dd0dff1d1b439e24b5e97b2d55fe4f77367f461a4.meta +1 -0
  20. package/build/.cache/images/6ee00034d791ddd8b7f3ec800a222632adaf1e8c9fcedc480c773466fc10d1d5.data +0 -0
  21. package/build/.cache/images/6ee00034d791ddd8b7f3ec800a222632adaf1e8c9fcedc480c773466fc10d1d5.meta +1 -0
  22. package/build/.cache/images/70714161d457f1df2ede250334bd6060a38a652f10f043791c77d853f3005930.data +0 -0
  23. package/build/.cache/images/70714161d457f1df2ede250334bd6060a38a652f10f043791c77d853f3005930.meta +1 -0
  24. package/build/.cache/images/7eda684ed9d49b20bd3f8a52c1d2567c7c01a8b73fd7f880a103c0ec3c14f475.data +0 -0
  25. package/build/.cache/images/7eda684ed9d49b20bd3f8a52c1d2567c7c01a8b73fd7f880a103c0ec3c14f475.meta +1 -0
  26. package/build/.cache/images/926071f8d8f974eb91ccf882b478526c5926bc6693d663cdd304c57e7b3e0746.data +0 -0
  27. package/build/.cache/images/926071f8d8f974eb91ccf882b478526c5926bc6693d663cdd304c57e7b3e0746.meta +1 -0
  28. package/build/.cache/images/99fa4c4518e49ec0b205f2c67f9d535672053b80c8637540f9ce759ae5f6bbce.data +0 -0
  29. package/build/.cache/images/99fa4c4518e49ec0b205f2c67f9d535672053b80c8637540f9ce759ae5f6bbce.meta +1 -0
  30. package/build/.cache/images/d6ecd32c804dc52e56da07bd7d05876ff7f02e2e193baa94e15d1cf9022404d7.data +0 -0
  31. package/build/.cache/images/d6ecd32c804dc52e56da07bd7d05876ff7f02e2e193baa94e15d1cf9022404d7.meta +1 -0
  32. package/build/.cache/images/e68219762a1b21ec08ddaf67023cbd689c7f23ab406efa076007b36e4d5844d4.data +0 -0
  33. package/build/.cache/images/e68219762a1b21ec08ddaf67023cbd689c7f23ab406efa076007b36e4d5844d4.meta +1 -0
  34. package/build/.cache/images/e6c1d2e1ea4f97ba38de446e595eb7e0a54f50e282f4d3e02d94d9fd17057066.data +0 -0
  35. package/build/.cache/images/e6c1d2e1ea4f97ba38de446e595eb7e0a54f50e282f4d3e02d94d9fd17057066.meta +1 -0
  36. package/build/.cache/images/f422de3006871f116d1e262ada57671fd9a77d6922b565de81cdc7c574fdccb2.data +0 -0
  37. package/build/.cache/images/f422de3006871f116d1e262ada57671fd9a77d6922b565de81cdc7c574fdccb2.meta +1 -0
  38. package/build/assets/jpg/test.jpg +0 -0
  39. package/build/sitemap.xml +3 -0
  40. package/dist/{Image-599vc5xz.vue → Image-k52pzpdh.vue} +71 -37
  41. package/dist/angular/components/image.component.js +27 -19
  42. package/dist/angular/index.js.map +2 -2
  43. package/dist/build.js +6 -12
  44. package/dist/build.js.map +5 -5
  45. package/dist/cli/index.js +53 -11
  46. package/dist/image-client/imageClient.js +1 -10
  47. package/dist/index.js +6 -12
  48. package/dist/index.js.map +6 -6
  49. package/dist/react/components/browser/index.js +1 -10
  50. package/dist/react/components/index.js +6 -12
  51. package/dist/react/components/index.js.map +4 -4
  52. package/dist/svelte/components/Image.svelte +8 -5
  53. package/dist/vue/components/Image.vue +71 -37
  54. package/dist/vue/components/index.js +1 -1
  55. package/package.json +1 -1
  56. package/scripts/build.ts +308 -295
  57. package/types/metadata.ts +7 -1
@@ -0,0 +1,122 @@
1
+ /**
2
+ * @license Angular v21.2.6
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
+ * License: MIT
5
+ */
6
+
7
+ import * as i0 from '@angular/core';
8
+ import { InjectionToken, inject, DOCUMENT, Injectable } from '@angular/core';
9
+ let _DOM = null;
10
+ function getDOM() {
11
+ return _DOM;
12
+ }
13
+ function setRootDomAdapter(adapter) {
14
+ _DOM ??= adapter;
15
+ }
16
+ class DomAdapter {}
17
+ class PlatformLocation {
18
+ historyGo(relativePosition) {
19
+ throw new Error(ngDevMode ? 'Not implemented' : '');
20
+ }
21
+ static ɵfac = function PlatformLocation_Factory(__ngFactoryType__) {
22
+ return new (__ngFactoryType__ || PlatformLocation)();
23
+ };
24
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
25
+ token: PlatformLocation,
26
+ factory: () => (() => inject(BrowserPlatformLocation))(),
27
+ providedIn: 'platform'
28
+ });
29
+ }
30
+ (() => {
31
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PlatformLocation, [{
32
+ type: Injectable,
33
+ args: [{
34
+ providedIn: 'platform',
35
+ useFactory: () => inject(BrowserPlatformLocation)
36
+ }]
37
+ }], null, null);
38
+ })();
39
+ const LOCATION_INITIALIZED = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'Location Initialized' : '');
40
+ class BrowserPlatformLocation extends PlatformLocation {
41
+ _location;
42
+ _history;
43
+ _doc = inject(DOCUMENT);
44
+ constructor() {
45
+ super();
46
+ this._location = window.location;
47
+ this._history = window.history;
48
+ }
49
+ getBaseHrefFromDOM() {
50
+ return getDOM().getBaseHref(this._doc);
51
+ }
52
+ onPopState(fn) {
53
+ const window = getDOM().getGlobalEventTarget(this._doc, 'window');
54
+ window.addEventListener('popstate', fn, false);
55
+ return () => window.removeEventListener('popstate', fn);
56
+ }
57
+ onHashChange(fn) {
58
+ const window = getDOM().getGlobalEventTarget(this._doc, 'window');
59
+ window.addEventListener('hashchange', fn, false);
60
+ return () => window.removeEventListener('hashchange', fn);
61
+ }
62
+ get href() {
63
+ return this._location.href;
64
+ }
65
+ get protocol() {
66
+ return this._location.protocol;
67
+ }
68
+ get hostname() {
69
+ return this._location.hostname;
70
+ }
71
+ get port() {
72
+ return this._location.port;
73
+ }
74
+ get pathname() {
75
+ return this._location.pathname;
76
+ }
77
+ get search() {
78
+ return this._location.search;
79
+ }
80
+ get hash() {
81
+ return this._location.hash;
82
+ }
83
+ set pathname(newPath) {
84
+ this._location.pathname = newPath;
85
+ }
86
+ pushState(state, title, url) {
87
+ this._history.pushState(state, title, url);
88
+ }
89
+ replaceState(state, title, url) {
90
+ this._history.replaceState(state, title, url);
91
+ }
92
+ forward() {
93
+ this._history.forward();
94
+ }
95
+ back() {
96
+ this._history.back();
97
+ }
98
+ historyGo(relativePosition = 0) {
99
+ this._history.go(relativePosition);
100
+ }
101
+ getState() {
102
+ return this._history.state;
103
+ }
104
+ static ɵfac = function BrowserPlatformLocation_Factory(__ngFactoryType__) {
105
+ return new (__ngFactoryType__ || BrowserPlatformLocation)();
106
+ };
107
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
108
+ token: BrowserPlatformLocation,
109
+ factory: () => (() => new BrowserPlatformLocation())(),
110
+ providedIn: 'platform'
111
+ });
112
+ }
113
+ (() => {
114
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BrowserPlatformLocation, [{
115
+ type: Injectable,
116
+ args: [{
117
+ providedIn: 'platform',
118
+ useFactory: () => new BrowserPlatformLocation()
119
+ }]
120
+ }], () => [], null);
121
+ })();
122
+ export { BrowserPlatformLocation, DomAdapter, LOCATION_INITIALIZED, PlatformLocation, getDOM, setRootDomAdapter };
@@ -0,0 +1,314 @@
1
+ /**
2
+ * @license Angular v21.2.6
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
+ * License: MIT
5
+ */
6
+
7
+ import * as i0 from '@angular/core';
8
+ import { InjectionToken, inject, DOCUMENT, Injectable, Optional, Inject, ɵɵinject as __inject } from '@angular/core';
9
+ import { Subject } from 'rxjs';
10
+ import { PlatformLocation } from './_platform_location-chunk.mjs';
11
+ function joinWithSlash(start, end) {
12
+ if (!start) return end;
13
+ if (!end) return start;
14
+ if (start.endsWith('/')) {
15
+ return end.startsWith('/') ? start + end.slice(1) : start + end;
16
+ }
17
+ return end.startsWith('/') ? start + end : `${start}/${end}`;
18
+ }
19
+ function stripTrailingSlash(url) {
20
+ const pathEndIdx = url.search(/#|\?|$/);
21
+ return url[pathEndIdx - 1] === '/' ? url.slice(0, pathEndIdx - 1) + url.slice(pathEndIdx) : url;
22
+ }
23
+ function normalizeQueryParams(params) {
24
+ return params && params[0] !== '?' ? `?${params}` : params;
25
+ }
26
+ class LocationStrategy {
27
+ historyGo(relativePosition) {
28
+ throw new Error(ngDevMode ? 'Not implemented' : '');
29
+ }
30
+ static ɵfac = function LocationStrategy_Factory(__ngFactoryType__) {
31
+ return new (__ngFactoryType__ || LocationStrategy)();
32
+ };
33
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
34
+ token: LocationStrategy,
35
+ factory: () => (() => inject(PathLocationStrategy))(),
36
+ providedIn: 'root'
37
+ });
38
+ }
39
+ (() => {
40
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LocationStrategy, [{
41
+ type: Injectable,
42
+ args: [{
43
+ providedIn: 'root',
44
+ useFactory: () => inject(PathLocationStrategy)
45
+ }]
46
+ }], null, null);
47
+ })();
48
+ const APP_BASE_HREF = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'appBaseHref' : '');
49
+ class PathLocationStrategy extends LocationStrategy {
50
+ _platformLocation;
51
+ _baseHref;
52
+ _removeListenerFns = [];
53
+ constructor(_platformLocation, href) {
54
+ super();
55
+ this._platformLocation = _platformLocation;
56
+ this._baseHref = href ?? this._platformLocation.getBaseHrefFromDOM() ?? inject(DOCUMENT).location?.origin ?? '';
57
+ }
58
+ ngOnDestroy() {
59
+ while (this._removeListenerFns.length) {
60
+ this._removeListenerFns.pop()();
61
+ }
62
+ }
63
+ onPopState(fn) {
64
+ this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));
65
+ }
66
+ getBaseHref() {
67
+ return this._baseHref;
68
+ }
69
+ prepareExternalUrl(internal) {
70
+ return joinWithSlash(this._baseHref, internal);
71
+ }
72
+ path(includeHash = false) {
73
+ const pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);
74
+ const hash = this._platformLocation.hash;
75
+ return hash && includeHash ? `${pathname}${hash}` : pathname;
76
+ }
77
+ pushState(state, title, url, queryParams) {
78
+ const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));
79
+ this._platformLocation.pushState(state, title, externalUrl);
80
+ }
81
+ replaceState(state, title, url, queryParams) {
82
+ const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));
83
+ this._platformLocation.replaceState(state, title, externalUrl);
84
+ }
85
+ forward() {
86
+ this._platformLocation.forward();
87
+ }
88
+ back() {
89
+ this._platformLocation.back();
90
+ }
91
+ getState() {
92
+ return this._platformLocation.getState();
93
+ }
94
+ historyGo(relativePosition = 0) {
95
+ this._platformLocation.historyGo?.(relativePosition);
96
+ }
97
+ static ɵfac = function PathLocationStrategy_Factory(__ngFactoryType__) {
98
+ return new (__ngFactoryType__ || PathLocationStrategy)(i0.ɵɵinject(PlatformLocation), i0.ɵɵinject(APP_BASE_HREF, 8));
99
+ };
100
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
101
+ token: PathLocationStrategy,
102
+ factory: PathLocationStrategy.ɵfac,
103
+ providedIn: 'root'
104
+ });
105
+ }
106
+ (() => {
107
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PathLocationStrategy, [{
108
+ type: Injectable,
109
+ args: [{
110
+ providedIn: 'root'
111
+ }]
112
+ }], () => [{
113
+ type: PlatformLocation
114
+ }, {
115
+ type: undefined,
116
+ decorators: [{
117
+ type: Optional
118
+ }, {
119
+ type: Inject,
120
+ args: [APP_BASE_HREF]
121
+ }]
122
+ }], null);
123
+ })();
124
+ class NoTrailingSlashPathLocationStrategy extends PathLocationStrategy {
125
+ prepareExternalUrl(internal) {
126
+ const path = extractUrlPath(internal);
127
+ if (path.endsWith('/') && path.length > 1) {
128
+ internal = path.slice(0, -1) + internal.slice(path.length);
129
+ }
130
+ return super.prepareExternalUrl(internal);
131
+ }
132
+ static ɵfac = /* @__PURE__ */(() => {
133
+ let ɵNoTrailingSlashPathLocationStrategy_BaseFactory;
134
+ return function NoTrailingSlashPathLocationStrategy_Factory(__ngFactoryType__) {
135
+ return (ɵNoTrailingSlashPathLocationStrategy_BaseFactory || (ɵNoTrailingSlashPathLocationStrategy_BaseFactory = i0.ɵɵgetInheritedFactory(NoTrailingSlashPathLocationStrategy)))(__ngFactoryType__ || NoTrailingSlashPathLocationStrategy);
136
+ };
137
+ })();
138
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
139
+ token: NoTrailingSlashPathLocationStrategy,
140
+ factory: NoTrailingSlashPathLocationStrategy.ɵfac,
141
+ providedIn: 'root'
142
+ });
143
+ }
144
+ (() => {
145
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoTrailingSlashPathLocationStrategy, [{
146
+ type: Injectable,
147
+ args: [{
148
+ providedIn: 'root'
149
+ }]
150
+ }], null, null);
151
+ })();
152
+ class TrailingSlashPathLocationStrategy extends PathLocationStrategy {
153
+ prepareExternalUrl(internal) {
154
+ const path = extractUrlPath(internal);
155
+ if (!path.endsWith('/')) {
156
+ internal = path + '/' + internal.slice(path.length);
157
+ }
158
+ return super.prepareExternalUrl(internal);
159
+ }
160
+ static ɵfac = /* @__PURE__ */(() => {
161
+ let ɵTrailingSlashPathLocationStrategy_BaseFactory;
162
+ return function TrailingSlashPathLocationStrategy_Factory(__ngFactoryType__) {
163
+ return (ɵTrailingSlashPathLocationStrategy_BaseFactory || (ɵTrailingSlashPathLocationStrategy_BaseFactory = i0.ɵɵgetInheritedFactory(TrailingSlashPathLocationStrategy)))(__ngFactoryType__ || TrailingSlashPathLocationStrategy);
164
+ };
165
+ })();
166
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
167
+ token: TrailingSlashPathLocationStrategy,
168
+ factory: TrailingSlashPathLocationStrategy.ɵfac,
169
+ providedIn: 'root'
170
+ });
171
+ }
172
+ (() => {
173
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TrailingSlashPathLocationStrategy, [{
174
+ type: Injectable,
175
+ args: [{
176
+ providedIn: 'root'
177
+ }]
178
+ }], null, null);
179
+ })();
180
+ function extractUrlPath(url) {
181
+ const questionMarkOrHashIndex = url.search(/[?#]/);
182
+ const pathEnd = questionMarkOrHashIndex > -1 ? questionMarkOrHashIndex : url.length;
183
+ return url.slice(0, pathEnd);
184
+ }
185
+ class Location {
186
+ _subject = new Subject();
187
+ _basePath;
188
+ _locationStrategy;
189
+ _urlChangeListeners = [];
190
+ _urlChangeSubscription = null;
191
+ constructor(locationStrategy) {
192
+ this._locationStrategy = locationStrategy;
193
+ const baseHref = this._locationStrategy.getBaseHref();
194
+ this._basePath = _stripOrigin(stripTrailingSlash(_stripIndexHtml(baseHref)));
195
+ this._locationStrategy.onPopState(ev => {
196
+ this._subject.next({
197
+ 'url': this.path(true),
198
+ 'pop': true,
199
+ 'state': ev.state,
200
+ 'type': ev.type
201
+ });
202
+ });
203
+ }
204
+ ngOnDestroy() {
205
+ this._urlChangeSubscription?.unsubscribe();
206
+ this._urlChangeListeners = [];
207
+ }
208
+ path(includeHash = false) {
209
+ return this.normalize(this._locationStrategy.path(includeHash));
210
+ }
211
+ getState() {
212
+ return this._locationStrategy.getState();
213
+ }
214
+ isCurrentPathEqualTo(path, query = '') {
215
+ return this.path() == this.normalize(path + normalizeQueryParams(query));
216
+ }
217
+ normalize(url) {
218
+ return Location.stripTrailingSlash(_stripBasePath(this._basePath, _stripIndexHtml(url)));
219
+ }
220
+ prepareExternalUrl(url) {
221
+ if (url && url[0] !== '/') {
222
+ url = '/' + url;
223
+ }
224
+ return this._locationStrategy.prepareExternalUrl(url);
225
+ }
226
+ go(path, query = '', state = null) {
227
+ this._locationStrategy.pushState(state, '', path, query);
228
+ this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
229
+ }
230
+ replaceState(path, query = '', state = null) {
231
+ this._locationStrategy.replaceState(state, '', path, query);
232
+ this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
233
+ }
234
+ forward() {
235
+ this._locationStrategy.forward();
236
+ }
237
+ back() {
238
+ this._locationStrategy.back();
239
+ }
240
+ historyGo(relativePosition = 0) {
241
+ this._locationStrategy.historyGo?.(relativePosition);
242
+ }
243
+ onUrlChange(fn) {
244
+ this._urlChangeListeners.push(fn);
245
+ this._urlChangeSubscription ??= this.subscribe(v => {
246
+ this._notifyUrlChangeListeners(v.url, v.state);
247
+ });
248
+ return () => {
249
+ const fnIndex = this._urlChangeListeners.indexOf(fn);
250
+ this._urlChangeListeners.splice(fnIndex, 1);
251
+ if (this._urlChangeListeners.length === 0) {
252
+ this._urlChangeSubscription?.unsubscribe();
253
+ this._urlChangeSubscription = null;
254
+ }
255
+ };
256
+ }
257
+ _notifyUrlChangeListeners(url = '', state) {
258
+ this._urlChangeListeners.forEach(fn => fn(url, state));
259
+ }
260
+ subscribe(onNext, onThrow, onReturn) {
261
+ return this._subject.subscribe({
262
+ next: onNext,
263
+ error: onThrow ?? undefined,
264
+ complete: onReturn ?? undefined
265
+ });
266
+ }
267
+ static normalizeQueryParams = normalizeQueryParams;
268
+ static joinWithSlash = joinWithSlash;
269
+ static stripTrailingSlash = stripTrailingSlash;
270
+ static ɵfac = function Location_Factory(__ngFactoryType__) {
271
+ return new (__ngFactoryType__ || Location)(i0.ɵɵinject(LocationStrategy));
272
+ };
273
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
274
+ token: Location,
275
+ factory: () => createLocation(),
276
+ providedIn: 'root'
277
+ });
278
+ }
279
+ (() => {
280
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Location, [{
281
+ type: Injectable,
282
+ args: [{
283
+ providedIn: 'root',
284
+ useFactory: createLocation
285
+ }]
286
+ }], () => [{
287
+ type: LocationStrategy
288
+ }], null);
289
+ })();
290
+ function createLocation() {
291
+ return new Location(__inject(LocationStrategy));
292
+ }
293
+ function _stripBasePath(basePath, url) {
294
+ if (!basePath || !url.startsWith(basePath)) {
295
+ return url;
296
+ }
297
+ const strippedUrl = url.substring(basePath.length);
298
+ if (strippedUrl === '' || ['/', ';', '?', '#'].includes(strippedUrl[0])) {
299
+ return strippedUrl;
300
+ }
301
+ return url;
302
+ }
303
+ function _stripIndexHtml(url) {
304
+ return url.replace(/\/index.html$/, '');
305
+ }
306
+ function _stripOrigin(baseHref) {
307
+ const isAbsoluteUrl = new RegExp('^(https?:)?//').test(baseHref);
308
+ if (isAbsoluteUrl) {
309
+ const [, pathname] = baseHref.split(/\/\/[^\/]+/);
310
+ return pathname;
311
+ }
312
+ return baseHref;
313
+ }
314
+ export { APP_BASE_HREF, Location, LocationStrategy, NoTrailingSlashPathLocationStrategy, PathLocationStrategy, TrailingSlashPathLocationStrategy, joinWithSlash, normalizeQueryParams };