@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,2836 @@
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 { Optional, Inject, Injectable, ɵgetLocalePluralCase as _getLocalePluralCase, ɵgetLocaleCurrencyCode as _getLocaleCurrencyCode, ɵfindLocaleData as _findLocaleData, ɵLocaleDataIndex as _LocaleDataIndex, ɵRuntimeError as _RuntimeError, ɵformatRuntimeError as _formatRuntimeError, LOCALE_ID, inject, ɵstringify as _stringify, Input, Directive, createNgModule, NgModuleRef, Host, Attribute, RendererStyleFlags2, Injector, isSignal, ɵINTERNAL_APPLICATION_ERROR_HANDLER as _INTERNAL_APPLICATION_ERROR_HANDLER, ɵisPromise as _isPromise, ɵisSubscribable as _isSubscribable, untracked, Pipe, InjectionToken, DEFAULT_CURRENCY_CODE, NgModule } from '@angular/core';
9
+ import { LocationStrategy, joinWithSlash, normalizeQueryParams, APP_BASE_HREF } from './_location-chunk.mjs';
10
+ import { PlatformLocation } from './_platform_location-chunk.mjs';
11
+ class HashLocationStrategy extends LocationStrategy {
12
+ _platformLocation;
13
+ _baseHref = '';
14
+ _removeListenerFns = [];
15
+ constructor(_platformLocation, _baseHref) {
16
+ super();
17
+ this._platformLocation = _platformLocation;
18
+ if (_baseHref != null) {
19
+ this._baseHref = _baseHref;
20
+ }
21
+ }
22
+ ngOnDestroy() {
23
+ while (this._removeListenerFns.length) {
24
+ this._removeListenerFns.pop()();
25
+ }
26
+ }
27
+ onPopState(fn) {
28
+ this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));
29
+ }
30
+ getBaseHref() {
31
+ return this._baseHref;
32
+ }
33
+ path(includeHash = false) {
34
+ const path = this._platformLocation.hash ?? '#';
35
+ return path.length > 0 ? path.substring(1) : path;
36
+ }
37
+ prepareExternalUrl(internal) {
38
+ const url = joinWithSlash(this._baseHref, internal);
39
+ return url.length > 0 ? '#' + url : url;
40
+ }
41
+ pushState(state, title, path, queryParams) {
42
+ const url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams)) || this._platformLocation.pathname;
43
+ this._platformLocation.pushState(state, title, url);
44
+ }
45
+ replaceState(state, title, path, queryParams) {
46
+ const url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams)) || this._platformLocation.pathname;
47
+ this._platformLocation.replaceState(state, title, url);
48
+ }
49
+ forward() {
50
+ this._platformLocation.forward();
51
+ }
52
+ back() {
53
+ this._platformLocation.back();
54
+ }
55
+ getState() {
56
+ return this._platformLocation.getState();
57
+ }
58
+ historyGo(relativePosition = 0) {
59
+ this._platformLocation.historyGo?.(relativePosition);
60
+ }
61
+ static ɵfac = function HashLocationStrategy_Factory(__ngFactoryType__) {
62
+ return new (__ngFactoryType__ || HashLocationStrategy)(i0.ɵɵinject(PlatformLocation), i0.ɵɵinject(APP_BASE_HREF, 8));
63
+ };
64
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
65
+ token: HashLocationStrategy,
66
+ factory: HashLocationStrategy.ɵfac
67
+ });
68
+ }
69
+ (() => {
70
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HashLocationStrategy, [{
71
+ type: Injectable
72
+ }], () => [{
73
+ type: PlatformLocation
74
+ }, {
75
+ type: undefined,
76
+ decorators: [{
77
+ type: Optional
78
+ }, {
79
+ type: Inject,
80
+ args: [APP_BASE_HREF]
81
+ }]
82
+ }], null);
83
+ })();
84
+ const CURRENCIES_EN = {
85
+ "ADP": [undefined, undefined, 0],
86
+ "AFN": [undefined, "؋", 0],
87
+ "ALL": [undefined, undefined, 0],
88
+ "AMD": [undefined, "֏", 2],
89
+ "AOA": [undefined, "Kz"],
90
+ "ARS": [undefined, "$"],
91
+ "AUD": ["A$", "$"],
92
+ "AZN": [undefined, "₼"],
93
+ "BAM": [undefined, "KM"],
94
+ "BBD": [undefined, "$"],
95
+ "BDT": [undefined, "৳"],
96
+ "BHD": [undefined, undefined, 3],
97
+ "BIF": [undefined, undefined, 0],
98
+ "BMD": [undefined, "$"],
99
+ "BND": [undefined, "$"],
100
+ "BOB": [undefined, "Bs"],
101
+ "BRL": ["R$"],
102
+ "BSD": [undefined, "$"],
103
+ "BWP": [undefined, "P"],
104
+ "BYN": [undefined, undefined, 2],
105
+ "BYR": [undefined, undefined, 0],
106
+ "BZD": [undefined, "$"],
107
+ "CAD": ["CA$", "$", 2],
108
+ "CHF": [undefined, undefined, 2],
109
+ "CLF": [undefined, undefined, 4],
110
+ "CLP": [undefined, "$", 0],
111
+ "CNY": ["CN¥", "¥"],
112
+ "COP": [undefined, "$", 2],
113
+ "CRC": [undefined, "₡", 2],
114
+ "CUC": [undefined, "$"],
115
+ "CUP": [undefined, "$"],
116
+ "CZK": [undefined, "Kč", 2],
117
+ "DJF": [undefined, undefined, 0],
118
+ "DKK": [undefined, "kr", 2],
119
+ "DOP": [undefined, "$"],
120
+ "EGP": [undefined, "E£"],
121
+ "ESP": [undefined, "₧", 0],
122
+ "EUR": ["€"],
123
+ "FJD": [undefined, "$"],
124
+ "FKP": [undefined, "£"],
125
+ "GBP": ["£"],
126
+ "GEL": [undefined, "₾"],
127
+ "GHS": [undefined, "GH₵"],
128
+ "GIP": [undefined, "£"],
129
+ "GNF": [undefined, "FG", 0],
130
+ "GTQ": [undefined, "Q"],
131
+ "GYD": [undefined, "$", 2],
132
+ "HKD": ["HK$", "$"],
133
+ "HNL": [undefined, "L"],
134
+ "HRK": [undefined, "kn"],
135
+ "HUF": [undefined, "Ft", 2],
136
+ "IDR": [undefined, "Rp", 2],
137
+ "ILS": ["₪"],
138
+ "INR": ["₹"],
139
+ "IQD": [undefined, undefined, 0],
140
+ "IRR": [undefined, undefined, 0],
141
+ "ISK": [undefined, "kr", 0],
142
+ "ITL": [undefined, undefined, 0],
143
+ "JMD": [undefined, "$"],
144
+ "JOD": [undefined, undefined, 3],
145
+ "JPY": ["¥", undefined, 0],
146
+ "KGS": [undefined, "⃀"],
147
+ "KHR": [undefined, "៛"],
148
+ "KMF": [undefined, "CF", 0],
149
+ "KPW": [undefined, "₩", 0],
150
+ "KRW": ["₩", undefined, 0],
151
+ "KWD": [undefined, undefined, 3],
152
+ "KYD": [undefined, "$"],
153
+ "KZT": [undefined, "₸"],
154
+ "LAK": [undefined, "₭", 0],
155
+ "LBP": [undefined, "L£", 0],
156
+ "LKR": [undefined, "Rs"],
157
+ "LRD": [undefined, "$"],
158
+ "LTL": [undefined, "Lt"],
159
+ "LUF": [undefined, undefined, 0],
160
+ "LVL": [undefined, "Ls"],
161
+ "LYD": [undefined, undefined, 3],
162
+ "MGA": [undefined, "Ar", 0],
163
+ "MGF": [undefined, undefined, 0],
164
+ "MMK": [undefined, "K", 0],
165
+ "MNT": [undefined, "₮", 2],
166
+ "MRO": [undefined, undefined, 0],
167
+ "MUR": [undefined, "Rs", 2],
168
+ "MXN": ["MX$", "$"],
169
+ "MYR": [undefined, "RM"],
170
+ "NAD": [undefined, "$"],
171
+ "NGN": [undefined, "₦"],
172
+ "NIO": [undefined, "C$"],
173
+ "NOK": [undefined, "kr", 2],
174
+ "NPR": [undefined, "Rs"],
175
+ "NZD": ["NZ$", "$"],
176
+ "OMR": [undefined, undefined, 3],
177
+ "PHP": ["₱"],
178
+ "PKR": [undefined, "Rs", 2],
179
+ "PLN": [undefined, "zł"],
180
+ "PYG": [undefined, "₲", 0],
181
+ "RON": [undefined, "lei"],
182
+ "RSD": [undefined, undefined, 0],
183
+ "RUB": [undefined, "₽"],
184
+ "RWF": [undefined, "RF", 0],
185
+ "SBD": [undefined, "$"],
186
+ "SEK": [undefined, "kr", 2],
187
+ "SGD": [undefined, "$"],
188
+ "SHP": [undefined, "£"],
189
+ "SLE": [undefined, undefined, 2],
190
+ "SLL": [undefined, undefined, 0],
191
+ "SOS": [undefined, undefined, 0],
192
+ "SRD": [undefined, "$"],
193
+ "SSP": [undefined, "£"],
194
+ "STD": [undefined, undefined, 0],
195
+ "STN": [undefined, "Db"],
196
+ "SYP": [undefined, "£", 0],
197
+ "THB": [undefined, "฿"],
198
+ "TMM": [undefined, undefined, 0],
199
+ "TND": [undefined, undefined, 3],
200
+ "TOP": [undefined, "T$"],
201
+ "TRL": [undefined, undefined, 0],
202
+ "TRY": [undefined, "₺"],
203
+ "TTD": [undefined, "$"],
204
+ "TWD": ["NT$", "$", 2],
205
+ "TZS": [undefined, undefined, 2],
206
+ "UAH": [undefined, "₴"],
207
+ "UGX": [undefined, undefined, 0],
208
+ "USD": ["$"],
209
+ "UYI": [undefined, undefined, 0],
210
+ "UYU": [undefined, "$"],
211
+ "UYW": [undefined, undefined, 4],
212
+ "UZS": [undefined, undefined, 2],
213
+ "VEF": [undefined, "Bs", 2],
214
+ "VND": ["₫", undefined, 0],
215
+ "VUV": [undefined, undefined, 0],
216
+ "XAF": ["FCFA", undefined, 0],
217
+ "XCD": ["EC$", "$"],
218
+ "XCG": ["Cg."],
219
+ "XOF": ["F CFA", undefined, 0],
220
+ "XPF": ["CFPF", undefined, 0],
221
+ "XXX": ["¤"],
222
+ "YER": [undefined, undefined, 0],
223
+ "ZAR": [undefined, "R"],
224
+ "ZMK": [undefined, undefined, 0],
225
+ "ZMW": [undefined, "ZK"],
226
+ "ZWD": [undefined, undefined, 0]
227
+ };
228
+ var NumberFormatStyle;
229
+ (function (NumberFormatStyle) {
230
+ NumberFormatStyle[NumberFormatStyle["Decimal"] = 0] = "Decimal";
231
+ NumberFormatStyle[NumberFormatStyle["Percent"] = 1] = "Percent";
232
+ NumberFormatStyle[NumberFormatStyle["Currency"] = 2] = "Currency";
233
+ NumberFormatStyle[NumberFormatStyle["Scientific"] = 3] = "Scientific";
234
+ })(NumberFormatStyle || (NumberFormatStyle = {}));
235
+ var Plural;
236
+ (function (Plural) {
237
+ Plural[Plural["Zero"] = 0] = "Zero";
238
+ Plural[Plural["One"] = 1] = "One";
239
+ Plural[Plural["Two"] = 2] = "Two";
240
+ Plural[Plural["Few"] = 3] = "Few";
241
+ Plural[Plural["Many"] = 4] = "Many";
242
+ Plural[Plural["Other"] = 5] = "Other";
243
+ })(Plural || (Plural = {}));
244
+ var FormStyle;
245
+ (function (FormStyle) {
246
+ FormStyle[FormStyle["Format"] = 0] = "Format";
247
+ FormStyle[FormStyle["Standalone"] = 1] = "Standalone";
248
+ })(FormStyle || (FormStyle = {}));
249
+ var TranslationWidth;
250
+ (function (TranslationWidth) {
251
+ TranslationWidth[TranslationWidth["Narrow"] = 0] = "Narrow";
252
+ TranslationWidth[TranslationWidth["Abbreviated"] = 1] = "Abbreviated";
253
+ TranslationWidth[TranslationWidth["Wide"] = 2] = "Wide";
254
+ TranslationWidth[TranslationWidth["Short"] = 3] = "Short";
255
+ })(TranslationWidth || (TranslationWidth = {}));
256
+ var FormatWidth;
257
+ (function (FormatWidth) {
258
+ FormatWidth[FormatWidth["Short"] = 0] = "Short";
259
+ FormatWidth[FormatWidth["Medium"] = 1] = "Medium";
260
+ FormatWidth[FormatWidth["Long"] = 2] = "Long";
261
+ FormatWidth[FormatWidth["Full"] = 3] = "Full";
262
+ })(FormatWidth || (FormatWidth = {}));
263
+ const NumberSymbol = {
264
+ Decimal: 0,
265
+ Group: 1,
266
+ List: 2,
267
+ PercentSign: 3,
268
+ PlusSign: 4,
269
+ MinusSign: 5,
270
+ Exponential: 6,
271
+ SuperscriptingExponent: 7,
272
+ PerMille: 8,
273
+ Infinity: 9,
274
+ NaN: 10,
275
+ TimeSeparator: 11,
276
+ CurrencyDecimal: 12,
277
+ CurrencyGroup: 13
278
+ };
279
+ var WeekDay;
280
+ (function (WeekDay) {
281
+ WeekDay[WeekDay["Sunday"] = 0] = "Sunday";
282
+ WeekDay[WeekDay["Monday"] = 1] = "Monday";
283
+ WeekDay[WeekDay["Tuesday"] = 2] = "Tuesday";
284
+ WeekDay[WeekDay["Wednesday"] = 3] = "Wednesday";
285
+ WeekDay[WeekDay["Thursday"] = 4] = "Thursday";
286
+ WeekDay[WeekDay["Friday"] = 5] = "Friday";
287
+ WeekDay[WeekDay["Saturday"] = 6] = "Saturday";
288
+ })(WeekDay || (WeekDay = {}));
289
+ function getLocaleId(locale) {
290
+ return _findLocaleData(locale)[_LocaleDataIndex.LocaleId];
291
+ }
292
+ function getLocaleDayPeriods(locale, formStyle, width) {
293
+ const data = _findLocaleData(locale);
294
+ const amPmData = [data[_LocaleDataIndex.DayPeriodsFormat], data[_LocaleDataIndex.DayPeriodsStandalone]];
295
+ const amPm = getLastDefinedValue(amPmData, formStyle);
296
+ return getLastDefinedValue(amPm, width);
297
+ }
298
+ function getLocaleDayNames(locale, formStyle, width) {
299
+ const data = _findLocaleData(locale);
300
+ const daysData = [data[_LocaleDataIndex.DaysFormat], data[_LocaleDataIndex.DaysStandalone]];
301
+ const days = getLastDefinedValue(daysData, formStyle);
302
+ return getLastDefinedValue(days, width);
303
+ }
304
+ function getLocaleMonthNames(locale, formStyle, width) {
305
+ const data = _findLocaleData(locale);
306
+ const monthsData = [data[_LocaleDataIndex.MonthsFormat], data[_LocaleDataIndex.MonthsStandalone]];
307
+ const months = getLastDefinedValue(monthsData, formStyle);
308
+ return getLastDefinedValue(months, width);
309
+ }
310
+ function getLocaleEraNames(locale, width) {
311
+ const data = _findLocaleData(locale);
312
+ const erasData = data[_LocaleDataIndex.Eras];
313
+ return getLastDefinedValue(erasData, width);
314
+ }
315
+ function getLocaleFirstDayOfWeek(locale) {
316
+ const data = _findLocaleData(locale);
317
+ return data[_LocaleDataIndex.FirstDayOfWeek];
318
+ }
319
+ function getLocaleWeekEndRange(locale) {
320
+ const data = _findLocaleData(locale);
321
+ return data[_LocaleDataIndex.WeekendRange];
322
+ }
323
+ function getLocaleDateFormat(locale, width) {
324
+ const data = _findLocaleData(locale);
325
+ return getLastDefinedValue(data[_LocaleDataIndex.DateFormat], width);
326
+ }
327
+ function getLocaleTimeFormat(locale, width) {
328
+ const data = _findLocaleData(locale);
329
+ return getLastDefinedValue(data[_LocaleDataIndex.TimeFormat], width);
330
+ }
331
+ function getLocaleDateTimeFormat(locale, width) {
332
+ const data = _findLocaleData(locale);
333
+ const dateTimeFormatData = data[_LocaleDataIndex.DateTimeFormat];
334
+ return getLastDefinedValue(dateTimeFormatData, width);
335
+ }
336
+ function getLocaleNumberSymbol(locale, symbol) {
337
+ const data = _findLocaleData(locale);
338
+ const res = data[_LocaleDataIndex.NumberSymbols][symbol];
339
+ if (typeof res === 'undefined') {
340
+ if (symbol === NumberSymbol.CurrencyDecimal) {
341
+ return data[_LocaleDataIndex.NumberSymbols][NumberSymbol.Decimal];
342
+ } else if (symbol === NumberSymbol.CurrencyGroup) {
343
+ return data[_LocaleDataIndex.NumberSymbols][NumberSymbol.Group];
344
+ }
345
+ }
346
+ return res;
347
+ }
348
+ function getLocaleNumberFormat(locale, type) {
349
+ const data = _findLocaleData(locale);
350
+ return data[_LocaleDataIndex.NumberFormats][type];
351
+ }
352
+ function getLocaleCurrencySymbol(locale) {
353
+ const data = _findLocaleData(locale);
354
+ return data[_LocaleDataIndex.CurrencySymbol] || null;
355
+ }
356
+ function getLocaleCurrencyName(locale) {
357
+ const data = _findLocaleData(locale);
358
+ return data[_LocaleDataIndex.CurrencyName] || null;
359
+ }
360
+ function getLocaleCurrencyCode(locale) {
361
+ return _getLocaleCurrencyCode(locale);
362
+ }
363
+ function getLocaleCurrencies(locale) {
364
+ const data = _findLocaleData(locale);
365
+ return data[_LocaleDataIndex.Currencies];
366
+ }
367
+ const getLocalePluralCase = _getLocalePluralCase;
368
+ function checkFullData(data) {
369
+ if (!data[_LocaleDataIndex.ExtraData]) {
370
+ throw new _RuntimeError(2303, ngDevMode && `Missing extra locale data for the locale "${data[_LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`);
371
+ }
372
+ }
373
+ function getLocaleExtraDayPeriodRules(locale) {
374
+ const data = _findLocaleData(locale);
375
+ checkFullData(data);
376
+ const rules = data[_LocaleDataIndex.ExtraData][2] || [];
377
+ return rules.map(rule => {
378
+ if (typeof rule === 'string') {
379
+ return extractTime(rule);
380
+ }
381
+ return [extractTime(rule[0]), extractTime(rule[1])];
382
+ });
383
+ }
384
+ function getLocaleExtraDayPeriods(locale, formStyle, width) {
385
+ const data = _findLocaleData(locale);
386
+ checkFullData(data);
387
+ const dayPeriodsData = [data[_LocaleDataIndex.ExtraData][0], data[_LocaleDataIndex.ExtraData][1]];
388
+ const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];
389
+ return getLastDefinedValue(dayPeriods, width) || [];
390
+ }
391
+ function getLocaleDirection(locale) {
392
+ const data = _findLocaleData(locale);
393
+ return data[_LocaleDataIndex.Directionality];
394
+ }
395
+ function getLastDefinedValue(data, index) {
396
+ for (let i = index; i > -1; i--) {
397
+ if (typeof data[i] !== 'undefined') {
398
+ return data[i];
399
+ }
400
+ }
401
+ throw new _RuntimeError(2304, ngDevMode && 'Locale data API: locale data undefined');
402
+ }
403
+ function extractTime(time) {
404
+ const [h, m] = time.split(':');
405
+ return {
406
+ hours: +h,
407
+ minutes: +m
408
+ };
409
+ }
410
+ function getCurrencySymbol(code, format, locale = 'en') {
411
+ const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];
412
+ const symbolNarrow = currency[1];
413
+ if (format === 'narrow' && typeof symbolNarrow === 'string') {
414
+ return symbolNarrow;
415
+ }
416
+ return currency[0] || code;
417
+ }
418
+ const DEFAULT_NB_OF_CURRENCY_DIGITS = 2;
419
+ function getNumberOfCurrencyDigits(code) {
420
+ let digits;
421
+ const currency = CURRENCIES_EN[code];
422
+ if (currency) {
423
+ digits = currency[2];
424
+ }
425
+ return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;
426
+ }
427
+ const ISO8601_DATE_REGEX = /^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
428
+ const NAMED_FORMATS = {};
429
+ const DATE_FORMATS_SPLIT = /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;
430
+ function formatDate(value, format, locale, timezone) {
431
+ let date = toDate(value);
432
+ const namedFormat = getNamedFormat(locale, format);
433
+ format = namedFormat || format;
434
+ let parts = [];
435
+ let match;
436
+ while (format) {
437
+ match = DATE_FORMATS_SPLIT.exec(format);
438
+ if (match) {
439
+ parts = parts.concat(match.slice(1));
440
+ const part = parts.pop();
441
+ if (!part) {
442
+ break;
443
+ }
444
+ format = part;
445
+ } else {
446
+ parts.push(format);
447
+ break;
448
+ }
449
+ }
450
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
451
+ assertValidDateFormat(parts);
452
+ }
453
+ let dateTimezoneOffset = date.getTimezoneOffset();
454
+ if (timezone) {
455
+ dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
456
+ date = convertTimezoneToLocal(date, timezone);
457
+ }
458
+ let text = '';
459
+ parts.forEach(value => {
460
+ const dateFormatter = getDateFormatter(value);
461
+ text += dateFormatter ? dateFormatter(date, locale, dateTimezoneOffset) : value === "''" ? "'" : value.replace(/(^'|'$)/g, '').replace(/''/g, "'");
462
+ });
463
+ return text;
464
+ }
465
+ function assertValidDateFormat(parts) {
466
+ if (parts.some(part => /^Y+$/.test(part)) && !parts.some(part => /^w+$/.test(part))) {
467
+ const message = `Suspicious use of week-based year "Y" in date pattern "${parts.join('')}". Did you mean to use calendar year "y" instead?`;
468
+ if (parts.length === 1) {
469
+ console.error(_formatRuntimeError(2300, message));
470
+ } else {
471
+ throw new _RuntimeError(2300, message);
472
+ }
473
+ }
474
+ }
475
+ function createDate(year, month, date) {
476
+ const newDate = new Date(0);
477
+ newDate.setFullYear(year, month, date);
478
+ newDate.setHours(0, 0, 0);
479
+ return newDate;
480
+ }
481
+ function getNamedFormat(locale, format) {
482
+ const localeId = getLocaleId(locale);
483
+ NAMED_FORMATS[localeId] ??= {};
484
+ if (NAMED_FORMATS[localeId][format]) {
485
+ return NAMED_FORMATS[localeId][format];
486
+ }
487
+ let formatValue = '';
488
+ switch (format) {
489
+ case 'shortDate':
490
+ formatValue = getLocaleDateFormat(locale, FormatWidth.Short);
491
+ break;
492
+ case 'mediumDate':
493
+ formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);
494
+ break;
495
+ case 'longDate':
496
+ formatValue = getLocaleDateFormat(locale, FormatWidth.Long);
497
+ break;
498
+ case 'fullDate':
499
+ formatValue = getLocaleDateFormat(locale, FormatWidth.Full);
500
+ break;
501
+ case 'shortTime':
502
+ formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);
503
+ break;
504
+ case 'mediumTime':
505
+ formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);
506
+ break;
507
+ case 'longTime':
508
+ formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);
509
+ break;
510
+ case 'fullTime':
511
+ formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);
512
+ break;
513
+ case 'short':
514
+ const shortTime = getNamedFormat(locale, 'shortTime');
515
+ const shortDate = getNamedFormat(locale, 'shortDate');
516
+ formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [shortTime, shortDate]);
517
+ break;
518
+ case 'medium':
519
+ const mediumTime = getNamedFormat(locale, 'mediumTime');
520
+ const mediumDate = getNamedFormat(locale, 'mediumDate');
521
+ formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);
522
+ break;
523
+ case 'long':
524
+ const longTime = getNamedFormat(locale, 'longTime');
525
+ const longDate = getNamedFormat(locale, 'longDate');
526
+ formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);
527
+ break;
528
+ case 'full':
529
+ const fullTime = getNamedFormat(locale, 'fullTime');
530
+ const fullDate = getNamedFormat(locale, 'fullDate');
531
+ formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);
532
+ break;
533
+ }
534
+ if (formatValue) {
535
+ NAMED_FORMATS[localeId][format] = formatValue;
536
+ }
537
+ return formatValue;
538
+ }
539
+ function formatDateTime(str, opt_values) {
540
+ if (opt_values) {
541
+ str = str.replace(/\{([^}]+)}/g, function (match, key) {
542
+ return opt_values != null && key in opt_values ? opt_values[key] : match;
543
+ });
544
+ }
545
+ return str;
546
+ }
547
+ function padNumber(num, digits, minusSign = '-', trim, negWrap) {
548
+ let neg = '';
549
+ if (num < 0 || negWrap && num <= 0) {
550
+ if (negWrap) {
551
+ num = -num + 1;
552
+ } else {
553
+ num = -num;
554
+ neg = minusSign;
555
+ }
556
+ }
557
+ let strNum = String(num);
558
+ while (strNum.length < digits) {
559
+ strNum = '0' + strNum;
560
+ }
561
+ if (trim) {
562
+ strNum = strNum.slice(strNum.length - digits);
563
+ }
564
+ return neg + strNum;
565
+ }
566
+ function formatFractionalSeconds(milliseconds, digits) {
567
+ const strMs = padNumber(milliseconds, 3);
568
+ return strMs.substring(0, digits);
569
+ }
570
+ function dateGetter(name, size, offset = 0, trim = false, negWrap = false) {
571
+ return function (date, locale) {
572
+ let part = getDatePart(name, date);
573
+ if (offset > 0 || part > -offset) {
574
+ part += offset;
575
+ }
576
+ if (name === 3) {
577
+ if (part === 0 && offset === -12) {
578
+ part = 12;
579
+ }
580
+ } else if (name === 6) {
581
+ return formatFractionalSeconds(part, size);
582
+ }
583
+ const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
584
+ return padNumber(part, size, localeMinus, trim, negWrap);
585
+ };
586
+ }
587
+ function getDatePart(part, date) {
588
+ switch (part) {
589
+ case 0:
590
+ return date.getFullYear();
591
+ case 1:
592
+ return date.getMonth();
593
+ case 2:
594
+ return date.getDate();
595
+ case 3:
596
+ return date.getHours();
597
+ case 4:
598
+ return date.getMinutes();
599
+ case 5:
600
+ return date.getSeconds();
601
+ case 6:
602
+ return date.getMilliseconds();
603
+ case 7:
604
+ return date.getDay();
605
+ default:
606
+ throw new _RuntimeError(2301, ngDevMode && `Unknown DateType value "${part}".`);
607
+ }
608
+ }
609
+ function dateStrGetter(name, width, form = FormStyle.Format, extended = false) {
610
+ return function (date, locale) {
611
+ return getDateTranslation(date, locale, name, width, form, extended);
612
+ };
613
+ }
614
+ function getDateTranslation(date, locale, name, width, form, extended) {
615
+ switch (name) {
616
+ case 2:
617
+ return getLocaleMonthNames(locale, form, width)[date.getMonth()];
618
+ case 1:
619
+ return getLocaleDayNames(locale, form, width)[date.getDay()];
620
+ case 0:
621
+ const currentHours = date.getHours();
622
+ const currentMinutes = date.getMinutes();
623
+ if (extended) {
624
+ const rules = getLocaleExtraDayPeriodRules(locale);
625
+ const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);
626
+ const index = rules.findIndex(rule => {
627
+ if (Array.isArray(rule)) {
628
+ const [from, to] = rule;
629
+ const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;
630
+ const beforeTo = currentHours < to.hours || currentHours === to.hours && currentMinutes < to.minutes;
631
+ if (from.hours < to.hours) {
632
+ if (afterFrom && beforeTo) {
633
+ return true;
634
+ }
635
+ } else if (afterFrom || beforeTo) {
636
+ return true;
637
+ }
638
+ } else {
639
+ if (rule.hours === currentHours && rule.minutes === currentMinutes) {
640
+ return true;
641
+ }
642
+ }
643
+ return false;
644
+ });
645
+ if (index !== -1) {
646
+ return dayPeriods[index];
647
+ }
648
+ }
649
+ return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];
650
+ case 3:
651
+ return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];
652
+ default:
653
+ const unexpected = name;
654
+ throw new _RuntimeError(2302, ngDevMode && `unexpected translation type ${unexpected}`);
655
+ }
656
+ }
657
+ function timeZoneGetter(width) {
658
+ return function (date, locale, offset) {
659
+ const zone = -1 * offset;
660
+ const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
661
+ const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);
662
+ switch (width) {
663
+ case 0:
664
+ return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + padNumber(Math.abs(zone % 60), 2, minusSign);
665
+ case 1:
666
+ return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);
667
+ case 2:
668
+ return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);
669
+ case 3:
670
+ if (offset === 0) {
671
+ return 'Z';
672
+ } else {
673
+ return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);
674
+ }
675
+ default:
676
+ throw new _RuntimeError(2310, ngDevMode && `Unknown zone width "${width}"`);
677
+ }
678
+ };
679
+ }
680
+ const JANUARY = 0;
681
+ const THURSDAY = 4;
682
+ function getFirstThursdayOfYear(year) {
683
+ const firstDayOfYear = createDate(year, JANUARY, 1).getDay();
684
+ return createDate(year, 0, 1 + (firstDayOfYear <= THURSDAY ? THURSDAY : THURSDAY + 7) - firstDayOfYear);
685
+ }
686
+ function getThursdayThisIsoWeek(datetime) {
687
+ const currentDay = datetime.getDay();
688
+ const deltaToThursday = currentDay === 0 ? -3 : THURSDAY - currentDay;
689
+ return createDate(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + deltaToThursday);
690
+ }
691
+ function weekGetter(size, monthBased = false) {
692
+ return function (date, locale) {
693
+ let result;
694
+ if (monthBased) {
695
+ const nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;
696
+ const today = date.getDate();
697
+ result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);
698
+ } else {
699
+ const thisThurs = getThursdayThisIsoWeek(date);
700
+ const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());
701
+ const diff = thisThurs.getTime() - firstThurs.getTime();
702
+ result = 1 + Math.round(diff / 6.048e8);
703
+ }
704
+ return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
705
+ };
706
+ }
707
+ function weekNumberingYearGetter(size, trim = false) {
708
+ return function (date, locale) {
709
+ const thisThurs = getThursdayThisIsoWeek(date);
710
+ const weekNumberingYear = thisThurs.getFullYear();
711
+ return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);
712
+ };
713
+ }
714
+ const DATE_FORMATS = {};
715
+ function getDateFormatter(format) {
716
+ if (DATE_FORMATS[format]) {
717
+ return DATE_FORMATS[format];
718
+ }
719
+ let formatter;
720
+ switch (format) {
721
+ case 'G':
722
+ case 'GG':
723
+ case 'GGG':
724
+ formatter = dateStrGetter(3, TranslationWidth.Abbreviated);
725
+ break;
726
+ case 'GGGG':
727
+ formatter = dateStrGetter(3, TranslationWidth.Wide);
728
+ break;
729
+ case 'GGGGG':
730
+ formatter = dateStrGetter(3, TranslationWidth.Narrow);
731
+ break;
732
+ case 'y':
733
+ formatter = dateGetter(0, 1, 0, false, true);
734
+ break;
735
+ case 'yy':
736
+ formatter = dateGetter(0, 2, 0, true, true);
737
+ break;
738
+ case 'yyy':
739
+ formatter = dateGetter(0, 3, 0, false, true);
740
+ break;
741
+ case 'yyyy':
742
+ formatter = dateGetter(0, 4, 0, false, true);
743
+ break;
744
+ case 'Y':
745
+ formatter = weekNumberingYearGetter(1);
746
+ break;
747
+ case 'YY':
748
+ formatter = weekNumberingYearGetter(2, true);
749
+ break;
750
+ case 'YYY':
751
+ formatter = weekNumberingYearGetter(3);
752
+ break;
753
+ case 'YYYY':
754
+ formatter = weekNumberingYearGetter(4);
755
+ break;
756
+ case 'M':
757
+ case 'L':
758
+ formatter = dateGetter(1, 1, 1);
759
+ break;
760
+ case 'MM':
761
+ case 'LL':
762
+ formatter = dateGetter(1, 2, 1);
763
+ break;
764
+ case 'MMM':
765
+ formatter = dateStrGetter(2, TranslationWidth.Abbreviated);
766
+ break;
767
+ case 'MMMM':
768
+ formatter = dateStrGetter(2, TranslationWidth.Wide);
769
+ break;
770
+ case 'MMMMM':
771
+ formatter = dateStrGetter(2, TranslationWidth.Narrow);
772
+ break;
773
+ case 'LLL':
774
+ formatter = dateStrGetter(2, TranslationWidth.Abbreviated, FormStyle.Standalone);
775
+ break;
776
+ case 'LLLL':
777
+ formatter = dateStrGetter(2, TranslationWidth.Wide, FormStyle.Standalone);
778
+ break;
779
+ case 'LLLLL':
780
+ formatter = dateStrGetter(2, TranslationWidth.Narrow, FormStyle.Standalone);
781
+ break;
782
+ case 'w':
783
+ formatter = weekGetter(1);
784
+ break;
785
+ case 'ww':
786
+ formatter = weekGetter(2);
787
+ break;
788
+ case 'W':
789
+ formatter = weekGetter(1, true);
790
+ break;
791
+ case 'd':
792
+ formatter = dateGetter(2, 1);
793
+ break;
794
+ case 'dd':
795
+ formatter = dateGetter(2, 2);
796
+ break;
797
+ case 'c':
798
+ case 'cc':
799
+ formatter = dateGetter(7, 1);
800
+ break;
801
+ case 'ccc':
802
+ formatter = dateStrGetter(1, TranslationWidth.Abbreviated, FormStyle.Standalone);
803
+ break;
804
+ case 'cccc':
805
+ formatter = dateStrGetter(1, TranslationWidth.Wide, FormStyle.Standalone);
806
+ break;
807
+ case 'ccccc':
808
+ formatter = dateStrGetter(1, TranslationWidth.Narrow, FormStyle.Standalone);
809
+ break;
810
+ case 'cccccc':
811
+ formatter = dateStrGetter(1, TranslationWidth.Short, FormStyle.Standalone);
812
+ break;
813
+ case 'E':
814
+ case 'EE':
815
+ case 'EEE':
816
+ formatter = dateStrGetter(1, TranslationWidth.Abbreviated);
817
+ break;
818
+ case 'EEEE':
819
+ formatter = dateStrGetter(1, TranslationWidth.Wide);
820
+ break;
821
+ case 'EEEEE':
822
+ formatter = dateStrGetter(1, TranslationWidth.Narrow);
823
+ break;
824
+ case 'EEEEEE':
825
+ formatter = dateStrGetter(1, TranslationWidth.Short);
826
+ break;
827
+ case 'a':
828
+ case 'aa':
829
+ case 'aaa':
830
+ formatter = dateStrGetter(0, TranslationWidth.Abbreviated);
831
+ break;
832
+ case 'aaaa':
833
+ formatter = dateStrGetter(0, TranslationWidth.Wide);
834
+ break;
835
+ case 'aaaaa':
836
+ formatter = dateStrGetter(0, TranslationWidth.Narrow);
837
+ break;
838
+ case 'b':
839
+ case 'bb':
840
+ case 'bbb':
841
+ formatter = dateStrGetter(0, TranslationWidth.Abbreviated, FormStyle.Standalone, true);
842
+ break;
843
+ case 'bbbb':
844
+ formatter = dateStrGetter(0, TranslationWidth.Wide, FormStyle.Standalone, true);
845
+ break;
846
+ case 'bbbbb':
847
+ formatter = dateStrGetter(0, TranslationWidth.Narrow, FormStyle.Standalone, true);
848
+ break;
849
+ case 'B':
850
+ case 'BB':
851
+ case 'BBB':
852
+ formatter = dateStrGetter(0, TranslationWidth.Abbreviated, FormStyle.Format, true);
853
+ break;
854
+ case 'BBBB':
855
+ formatter = dateStrGetter(0, TranslationWidth.Wide, FormStyle.Format, true);
856
+ break;
857
+ case 'BBBBB':
858
+ formatter = dateStrGetter(0, TranslationWidth.Narrow, FormStyle.Format, true);
859
+ break;
860
+ case 'h':
861
+ formatter = dateGetter(3, 1, -12);
862
+ break;
863
+ case 'hh':
864
+ formatter = dateGetter(3, 2, -12);
865
+ break;
866
+ case 'H':
867
+ formatter = dateGetter(3, 1);
868
+ break;
869
+ case 'HH':
870
+ formatter = dateGetter(3, 2);
871
+ break;
872
+ case 'm':
873
+ formatter = dateGetter(4, 1);
874
+ break;
875
+ case 'mm':
876
+ formatter = dateGetter(4, 2);
877
+ break;
878
+ case 's':
879
+ formatter = dateGetter(5, 1);
880
+ break;
881
+ case 'ss':
882
+ formatter = dateGetter(5, 2);
883
+ break;
884
+ case 'S':
885
+ formatter = dateGetter(6, 1);
886
+ break;
887
+ case 'SS':
888
+ formatter = dateGetter(6, 2);
889
+ break;
890
+ case 'SSS':
891
+ formatter = dateGetter(6, 3);
892
+ break;
893
+ case 'Z':
894
+ case 'ZZ':
895
+ case 'ZZZ':
896
+ formatter = timeZoneGetter(0);
897
+ break;
898
+ case 'ZZZZZ':
899
+ formatter = timeZoneGetter(3);
900
+ break;
901
+ case 'O':
902
+ case 'OO':
903
+ case 'OOO':
904
+ case 'z':
905
+ case 'zz':
906
+ case 'zzz':
907
+ formatter = timeZoneGetter(1);
908
+ break;
909
+ case 'OOOO':
910
+ case 'ZZZZ':
911
+ case 'zzzz':
912
+ formatter = timeZoneGetter(2);
913
+ break;
914
+ default:
915
+ return null;
916
+ }
917
+ DATE_FORMATS[format] = formatter;
918
+ return formatter;
919
+ }
920
+ function timezoneToOffset(timezone, fallback) {
921
+ timezone = timezone.replace(/:/g, '');
922
+ const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
923
+ return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
924
+ }
925
+ function addDateMinutes(date, minutes) {
926
+ date = new Date(date.getTime());
927
+ date.setMinutes(date.getMinutes() + minutes);
928
+ return date;
929
+ }
930
+ function convertTimezoneToLocal(date, timezone, reverse) {
931
+ const reverseValue = -1;
932
+ const dateTimezoneOffset = date.getTimezoneOffset();
933
+ const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
934
+ return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));
935
+ }
936
+ function toDate(value) {
937
+ if (isDate(value)) {
938
+ return value;
939
+ }
940
+ if (typeof value === 'number' && !isNaN(value)) {
941
+ return new Date(value);
942
+ }
943
+ if (typeof value === 'string') {
944
+ value = value.trim();
945
+ if (/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(value)) {
946
+ const [y, m = 1, d = 1] = value.split('-').map(val => +val);
947
+ return createDate(y, m - 1, d);
948
+ }
949
+ const parsedNb = parseFloat(value);
950
+ if (!isNaN(value - parsedNb)) {
951
+ return new Date(parsedNb);
952
+ }
953
+ let match;
954
+ if (match = value.match(ISO8601_DATE_REGEX)) {
955
+ return isoStringToDate(match);
956
+ }
957
+ }
958
+ const date = new Date(value);
959
+ if (!isDate(date)) {
960
+ throw new _RuntimeError(2311, ngDevMode && `Unable to convert "${value}" into a date`);
961
+ }
962
+ return date;
963
+ }
964
+ function isoStringToDate(match) {
965
+ const date = new Date(0);
966
+ let tzHour = 0;
967
+ let tzMin = 0;
968
+ const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;
969
+ const timeSetter = match[8] ? date.setUTCHours : date.setHours;
970
+ if (match[9]) {
971
+ tzHour = Number(match[9] + match[10]);
972
+ tzMin = Number(match[9] + match[11]);
973
+ }
974
+ dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));
975
+ const h = Number(match[4] || 0) - tzHour;
976
+ const m = Number(match[5] || 0) - tzMin;
977
+ const s = Number(match[6] || 0);
978
+ const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);
979
+ timeSetter.call(date, h, m, s, ms);
980
+ return date;
981
+ }
982
+ function isDate(value) {
983
+ return value instanceof Date && !isNaN(value.valueOf());
984
+ }
985
+ const NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?)?$/;
986
+ const MAX_DIGITS = 22;
987
+ const DECIMAL_SEP = '.';
988
+ const ZERO_CHAR = '0';
989
+ const PATTERN_SEP = ';';
990
+ const GROUP_SEP = ',';
991
+ const DIGIT_CHAR = '#';
992
+ const CURRENCY_CHAR = '¤';
993
+ const PERCENT_CHAR = '%';
994
+ function formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo, isPercent = false) {
995
+ let formattedText = '';
996
+ let isZero = false;
997
+ if (!isFinite(value)) {
998
+ formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);
999
+ } else {
1000
+ let parsedNumber = parseNumber(value);
1001
+ if (isPercent) {
1002
+ parsedNumber = toPercent(parsedNumber);
1003
+ }
1004
+ let minInt = pattern.minInt;
1005
+ let minFraction = pattern.minFrac;
1006
+ let maxFraction = pattern.maxFrac;
1007
+ if (digitsInfo) {
1008
+ const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);
1009
+ if (parts === null) {
1010
+ throw new _RuntimeError(2306, ngDevMode && `${digitsInfo} is not a valid digit info`);
1011
+ }
1012
+ const minIntPart = parts[1];
1013
+ const minFractionPart = parts[3];
1014
+ const maxFractionPart = parts[5];
1015
+ if (minIntPart != null) {
1016
+ minInt = parseIntAutoRadix(minIntPart);
1017
+ }
1018
+ if (minFractionPart != null) {
1019
+ minFraction = parseIntAutoRadix(minFractionPart);
1020
+ }
1021
+ if (maxFractionPart != null) {
1022
+ maxFraction = parseIntAutoRadix(maxFractionPart);
1023
+ } else if (minFractionPart != null && minFraction > maxFraction) {
1024
+ maxFraction = minFraction;
1025
+ }
1026
+ }
1027
+ roundNumber(parsedNumber, minFraction, maxFraction);
1028
+ let digits = parsedNumber.digits;
1029
+ let integerLen = parsedNumber.integerLen;
1030
+ const exponent = parsedNumber.exponent;
1031
+ let decimals = [];
1032
+ isZero = digits.every(d => !d);
1033
+ for (; integerLen < minInt; integerLen++) {
1034
+ digits.unshift(0);
1035
+ }
1036
+ for (; integerLen < 0; integerLen++) {
1037
+ digits.unshift(0);
1038
+ }
1039
+ if (integerLen > 0) {
1040
+ decimals = digits.splice(integerLen, digits.length);
1041
+ } else {
1042
+ decimals = digits;
1043
+ digits = [0];
1044
+ }
1045
+ const groups = [];
1046
+ if (digits.length >= pattern.lgSize) {
1047
+ groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));
1048
+ }
1049
+ while (digits.length > pattern.gSize) {
1050
+ groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));
1051
+ }
1052
+ if (digits.length) {
1053
+ groups.unshift(digits.join(''));
1054
+ }
1055
+ formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));
1056
+ if (decimals.length) {
1057
+ formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');
1058
+ }
1059
+ if (exponent) {
1060
+ formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;
1061
+ }
1062
+ }
1063
+ if (value < 0 && !isZero) {
1064
+ formattedText = pattern.negPre + formattedText + pattern.negSuf;
1065
+ } else {
1066
+ formattedText = pattern.posPre + formattedText + pattern.posSuf;
1067
+ }
1068
+ return formattedText;
1069
+ }
1070
+ function formatCurrency(value, locale, currency, currencyCode, digitsInfo) {
1071
+ const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);
1072
+ const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
1073
+ pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);
1074
+ pattern.maxFrac = pattern.minFrac;
1075
+ const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);
1076
+ return res.replace(CURRENCY_CHAR, currency).replace(CURRENCY_CHAR, '').trim();
1077
+ }
1078
+ function formatPercent(value, locale, digitsInfo) {
1079
+ const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);
1080
+ const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
1081
+ const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);
1082
+ return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));
1083
+ }
1084
+ function formatNumber(value, locale, digitsInfo) {
1085
+ const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);
1086
+ const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
1087
+ return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);
1088
+ }
1089
+ function parseNumberFormat(format, minusSign = '-') {
1090
+ const p = {
1091
+ minInt: 1,
1092
+ minFrac: 0,
1093
+ maxFrac: 0,
1094
+ posPre: '',
1095
+ posSuf: '',
1096
+ negPre: '',
1097
+ negSuf: '',
1098
+ gSize: 0,
1099
+ lgSize: 0
1100
+ };
1101
+ const patternParts = format.split(PATTERN_SEP);
1102
+ const positive = patternParts[0];
1103
+ const negative = patternParts[1];
1104
+ const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1 ? positive.split(DECIMAL_SEP) : [positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1), positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1)],
1105
+ integer = positiveParts[0],
1106
+ fraction = positiveParts[1] || '';
1107
+ p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR));
1108
+ for (let i = 0; i < fraction.length; i++) {
1109
+ const ch = fraction.charAt(i);
1110
+ if (ch === ZERO_CHAR) {
1111
+ p.minFrac = p.maxFrac = i + 1;
1112
+ } else if (ch === DIGIT_CHAR) {
1113
+ p.maxFrac = i + 1;
1114
+ } else {
1115
+ p.posSuf += ch;
1116
+ }
1117
+ }
1118
+ const groups = integer.split(GROUP_SEP);
1119
+ p.gSize = groups[1] ? groups[1].length : 0;
1120
+ p.lgSize = groups[2] || groups[1] ? (groups[2] || groups[1]).length : 0;
1121
+ if (negative) {
1122
+ const trunkLen = positive.length - p.posPre.length - p.posSuf.length,
1123
+ pos = negative.indexOf(DIGIT_CHAR);
1124
+ p.negPre = negative.substring(0, pos).replace(/'/g, '');
1125
+ p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, '');
1126
+ } else {
1127
+ p.negPre = minusSign + p.posPre;
1128
+ p.negSuf = p.posSuf;
1129
+ }
1130
+ return p;
1131
+ }
1132
+ function toPercent(parsedNumber) {
1133
+ if (parsedNumber.digits[0] === 0) {
1134
+ return parsedNumber;
1135
+ }
1136
+ const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;
1137
+ if (parsedNumber.exponent) {
1138
+ parsedNumber.exponent += 2;
1139
+ } else {
1140
+ if (fractionLen === 0) {
1141
+ parsedNumber.digits.push(0, 0);
1142
+ } else if (fractionLen === 1) {
1143
+ parsedNumber.digits.push(0);
1144
+ }
1145
+ parsedNumber.integerLen += 2;
1146
+ }
1147
+ return parsedNumber;
1148
+ }
1149
+ function parseNumber(num) {
1150
+ let numStr = Math.abs(num) + '';
1151
+ let exponent = 0,
1152
+ digits,
1153
+ integerLen;
1154
+ let i, j, zeros;
1155
+ if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {
1156
+ numStr = numStr.replace(DECIMAL_SEP, '');
1157
+ }
1158
+ if ((i = numStr.search(/e/i)) > 0) {
1159
+ if (integerLen < 0) integerLen = i;
1160
+ integerLen += +numStr.slice(i + 1);
1161
+ numStr = numStr.substring(0, i);
1162
+ } else if (integerLen < 0) {
1163
+ integerLen = numStr.length;
1164
+ }
1165
+ for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {}
1166
+ if (i === (zeros = numStr.length)) {
1167
+ digits = [0];
1168
+ integerLen = 1;
1169
+ } else {
1170
+ zeros--;
1171
+ while (numStr.charAt(zeros) === ZERO_CHAR) zeros--;
1172
+ integerLen -= i;
1173
+ digits = [];
1174
+ for (j = 0; i <= zeros; i++, j++) {
1175
+ digits[j] = Number(numStr.charAt(i));
1176
+ }
1177
+ }
1178
+ if (integerLen > MAX_DIGITS) {
1179
+ digits = digits.splice(0, MAX_DIGITS - 1);
1180
+ exponent = integerLen - 1;
1181
+ integerLen = 1;
1182
+ }
1183
+ return {
1184
+ digits,
1185
+ exponent,
1186
+ integerLen
1187
+ };
1188
+ }
1189
+ function roundNumber(parsedNumber, minFrac, maxFrac) {
1190
+ if (minFrac > maxFrac) {
1191
+ throw new _RuntimeError(2307, ngDevMode && `The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).`);
1192
+ }
1193
+ let digits = parsedNumber.digits;
1194
+ let fractionLen = digits.length - parsedNumber.integerLen;
1195
+ const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);
1196
+ let roundAt = fractionSize + parsedNumber.integerLen;
1197
+ let digit = digits[roundAt];
1198
+ if (roundAt > 0) {
1199
+ digits.splice(Math.max(parsedNumber.integerLen, roundAt));
1200
+ for (let j = roundAt; j < digits.length; j++) {
1201
+ digits[j] = 0;
1202
+ }
1203
+ } else {
1204
+ fractionLen = Math.max(0, fractionLen);
1205
+ parsedNumber.integerLen = 1;
1206
+ digits.length = Math.max(1, roundAt = fractionSize + 1);
1207
+ digits[0] = 0;
1208
+ for (let i = 1; i < roundAt; i++) digits[i] = 0;
1209
+ }
1210
+ if (digit >= 5) {
1211
+ if (roundAt - 1 < 0) {
1212
+ for (let k = 0; k > roundAt; k--) {
1213
+ digits.unshift(0);
1214
+ parsedNumber.integerLen++;
1215
+ }
1216
+ digits.unshift(1);
1217
+ parsedNumber.integerLen++;
1218
+ } else {
1219
+ digits[roundAt - 1]++;
1220
+ }
1221
+ }
1222
+ for (; fractionLen < Math.max(0, fractionSize); fractionLen++) digits.push(0);
1223
+ let dropTrailingZeros = fractionSize !== 0;
1224
+ const minLen = minFrac + parsedNumber.integerLen;
1225
+ const carry = digits.reduceRight(function (carry, d, i, digits) {
1226
+ d = d + carry;
1227
+ digits[i] = d < 10 ? d : d - 10;
1228
+ if (dropTrailingZeros) {
1229
+ if (digits[i] === 0 && i >= minLen) {
1230
+ digits.pop();
1231
+ } else {
1232
+ dropTrailingZeros = false;
1233
+ }
1234
+ }
1235
+ return d >= 10 ? 1 : 0;
1236
+ }, 0);
1237
+ if (carry) {
1238
+ digits.unshift(carry);
1239
+ parsedNumber.integerLen++;
1240
+ }
1241
+ }
1242
+ function parseIntAutoRadix(text) {
1243
+ const result = parseInt(text);
1244
+ if (isNaN(result)) {
1245
+ throw new _RuntimeError(2305, ngDevMode && 'Invalid integer literal when parsing ' + text);
1246
+ }
1247
+ return result;
1248
+ }
1249
+ class NgLocalization {
1250
+ static ɵfac = function NgLocalization_Factory(__ngFactoryType__) {
1251
+ return new (__ngFactoryType__ || NgLocalization)();
1252
+ };
1253
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
1254
+ token: NgLocalization,
1255
+ factory: () => (() => new NgLocaleLocalization(inject(LOCALE_ID)))(),
1256
+ providedIn: 'root'
1257
+ });
1258
+ }
1259
+ (() => {
1260
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgLocalization, [{
1261
+ type: Injectable,
1262
+ args: [{
1263
+ providedIn: 'root',
1264
+ useFactory: () => new NgLocaleLocalization(inject(LOCALE_ID))
1265
+ }]
1266
+ }], null, null);
1267
+ })();
1268
+ function getPluralCategory(value, cases, ngLocalization, locale) {
1269
+ let key = `=${value}`;
1270
+ if (cases.indexOf(key) > -1) {
1271
+ return key;
1272
+ }
1273
+ key = ngLocalization.getPluralCategory(value, locale);
1274
+ if (cases.indexOf(key) > -1) {
1275
+ return key;
1276
+ }
1277
+ if (cases.indexOf('other') > -1) {
1278
+ return 'other';
1279
+ }
1280
+ throw new _RuntimeError(2308, ngDevMode && `No plural message found for value "${value}"`);
1281
+ }
1282
+ class NgLocaleLocalization extends NgLocalization {
1283
+ locale;
1284
+ constructor(locale) {
1285
+ super();
1286
+ this.locale = locale;
1287
+ }
1288
+ getPluralCategory(value, locale) {
1289
+ const plural = getLocalePluralCase(locale || this.locale)(value);
1290
+ switch (plural) {
1291
+ case Plural.Zero:
1292
+ return 'zero';
1293
+ case Plural.One:
1294
+ return 'one';
1295
+ case Plural.Two:
1296
+ return 'two';
1297
+ case Plural.Few:
1298
+ return 'few';
1299
+ case Plural.Many:
1300
+ return 'many';
1301
+ default:
1302
+ return 'other';
1303
+ }
1304
+ }
1305
+ static ɵfac = function NgLocaleLocalization_Factory(__ngFactoryType__) {
1306
+ return new (__ngFactoryType__ || NgLocaleLocalization)(i0.ɵɵinject(LOCALE_ID));
1307
+ };
1308
+ static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
1309
+ token: NgLocaleLocalization,
1310
+ factory: NgLocaleLocalization.ɵfac
1311
+ });
1312
+ }
1313
+ (() => {
1314
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgLocaleLocalization, [{
1315
+ type: Injectable
1316
+ }], () => [{
1317
+ type: undefined,
1318
+ decorators: [{
1319
+ type: Inject,
1320
+ args: [LOCALE_ID]
1321
+ }]
1322
+ }], null);
1323
+ })();
1324
+ const WS_REGEXP = /\s+/;
1325
+ const EMPTY_ARRAY = [];
1326
+ class NgClass {
1327
+ _ngEl;
1328
+ _renderer;
1329
+ initialClasses = EMPTY_ARRAY;
1330
+ rawClass;
1331
+ stateMap = new Map();
1332
+ constructor(_ngEl, _renderer) {
1333
+ this._ngEl = _ngEl;
1334
+ this._renderer = _renderer;
1335
+ }
1336
+ set klass(value) {
1337
+ this.initialClasses = value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY;
1338
+ }
1339
+ set ngClass(value) {
1340
+ this.rawClass = typeof value === 'string' ? value.trim().split(WS_REGEXP) : value;
1341
+ }
1342
+ ngDoCheck() {
1343
+ for (const klass of this.initialClasses) {
1344
+ this._updateState(klass, true);
1345
+ }
1346
+ const rawClass = this.rawClass;
1347
+ if (Array.isArray(rawClass) || rawClass instanceof Set) {
1348
+ for (const klass of rawClass) {
1349
+ this._updateState(klass, true);
1350
+ }
1351
+ } else if (rawClass != null) {
1352
+ for (const klass of Object.keys(rawClass)) {
1353
+ this._updateState(klass, Boolean(rawClass[klass]));
1354
+ }
1355
+ }
1356
+ this._applyStateDiff();
1357
+ }
1358
+ _updateState(klass, nextEnabled) {
1359
+ const state = this.stateMap.get(klass);
1360
+ if (state !== undefined) {
1361
+ if (state.enabled !== nextEnabled) {
1362
+ state.changed = true;
1363
+ state.enabled = nextEnabled;
1364
+ }
1365
+ state.touched = true;
1366
+ } else {
1367
+ this.stateMap.set(klass, {
1368
+ enabled: nextEnabled,
1369
+ changed: true,
1370
+ touched: true
1371
+ });
1372
+ }
1373
+ }
1374
+ _applyStateDiff() {
1375
+ for (const stateEntry of this.stateMap) {
1376
+ const klass = stateEntry[0];
1377
+ const state = stateEntry[1];
1378
+ if (state.changed) {
1379
+ this._toggleClass(klass, state.enabled);
1380
+ state.changed = false;
1381
+ } else if (!state.touched) {
1382
+ if (state.enabled) {
1383
+ this._toggleClass(klass, false);
1384
+ }
1385
+ this.stateMap.delete(klass);
1386
+ }
1387
+ state.touched = false;
1388
+ }
1389
+ }
1390
+ _toggleClass(klass, enabled) {
1391
+ if (ngDevMode) {
1392
+ if (typeof klass !== 'string') {
1393
+ throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${_stringify(klass)}`);
1394
+ }
1395
+ }
1396
+ klass = klass.trim();
1397
+ if (klass.length > 0) {
1398
+ klass.split(WS_REGEXP).forEach(klass => {
1399
+ if (enabled) {
1400
+ this._renderer.addClass(this._ngEl.nativeElement, klass);
1401
+ } else {
1402
+ this._renderer.removeClass(this._ngEl.nativeElement, klass);
1403
+ }
1404
+ });
1405
+ }
1406
+ }
1407
+ static ɵfac = function NgClass_Factory(__ngFactoryType__) {
1408
+ return new (__ngFactoryType__ || NgClass)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2));
1409
+ };
1410
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
1411
+ type: NgClass,
1412
+ selectors: [["", "ngClass", ""]],
1413
+ inputs: {
1414
+ klass: [0, "class", "klass"],
1415
+ ngClass: "ngClass"
1416
+ }
1417
+ });
1418
+ }
1419
+ (() => {
1420
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgClass, [{
1421
+ type: Directive,
1422
+ args: [{
1423
+ selector: '[ngClass]'
1424
+ }]
1425
+ }], () => [{
1426
+ type: i0.ElementRef
1427
+ }, {
1428
+ type: i0.Renderer2
1429
+ }], {
1430
+ klass: [{
1431
+ type: Input,
1432
+ args: ['class']
1433
+ }],
1434
+ ngClass: [{
1435
+ type: Input,
1436
+ args: ['ngClass']
1437
+ }]
1438
+ });
1439
+ })();
1440
+ class NgComponentOutlet {
1441
+ _viewContainerRef;
1442
+ ngComponentOutlet = null;
1443
+ ngComponentOutletInputs;
1444
+ ngComponentOutletInjector;
1445
+ ngComponentOutletEnvironmentInjector;
1446
+ ngComponentOutletContent;
1447
+ ngComponentOutletNgModule;
1448
+ _componentRef;
1449
+ _moduleRef;
1450
+ _inputsUsed = new Map();
1451
+ get componentInstance() {
1452
+ return this._componentRef?.instance ?? null;
1453
+ }
1454
+ constructor(_viewContainerRef) {
1455
+ this._viewContainerRef = _viewContainerRef;
1456
+ }
1457
+ _needToReCreateNgModuleInstance(changes) {
1458
+ return changes['ngComponentOutletNgModule'] !== undefined;
1459
+ }
1460
+ _needToReCreateComponentInstance(changes) {
1461
+ return changes['ngComponentOutlet'] !== undefined || changes['ngComponentOutletContent'] !== undefined || changes['ngComponentOutletInjector'] !== undefined || changes['ngComponentOutletEnvironmentInjector'] !== undefined || this._needToReCreateNgModuleInstance(changes);
1462
+ }
1463
+ ngOnChanges(changes) {
1464
+ if (this._needToReCreateComponentInstance(changes)) {
1465
+ this._viewContainerRef.clear();
1466
+ this._inputsUsed.clear();
1467
+ this._componentRef = undefined;
1468
+ if (this.ngComponentOutlet) {
1469
+ const injector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;
1470
+ if (this._needToReCreateNgModuleInstance(changes)) {
1471
+ this._moduleRef?.destroy();
1472
+ if (this.ngComponentOutletNgModule) {
1473
+ this._moduleRef = createNgModule(this.ngComponentOutletNgModule, getParentInjector(injector));
1474
+ } else {
1475
+ this._moduleRef = undefined;
1476
+ }
1477
+ }
1478
+ this._componentRef = this._viewContainerRef.createComponent(this.ngComponentOutlet, {
1479
+ injector,
1480
+ ngModuleRef: this._moduleRef,
1481
+ projectableNodes: this.ngComponentOutletContent,
1482
+ environmentInjector: this.ngComponentOutletEnvironmentInjector
1483
+ });
1484
+ }
1485
+ }
1486
+ }
1487
+ ngDoCheck() {
1488
+ if (this._componentRef) {
1489
+ if (this.ngComponentOutletInputs) {
1490
+ for (const inputName of Object.keys(this.ngComponentOutletInputs)) {
1491
+ this._inputsUsed.set(inputName, true);
1492
+ }
1493
+ }
1494
+ this._applyInputStateDiff(this._componentRef);
1495
+ }
1496
+ }
1497
+ ngOnDestroy() {
1498
+ this._moduleRef?.destroy();
1499
+ }
1500
+ _applyInputStateDiff(componentRef) {
1501
+ for (const [inputName, touched] of this._inputsUsed) {
1502
+ if (!touched) {
1503
+ componentRef.setInput(inputName, undefined);
1504
+ this._inputsUsed.delete(inputName);
1505
+ } else {
1506
+ componentRef.setInput(inputName, this.ngComponentOutletInputs[inputName]);
1507
+ this._inputsUsed.set(inputName, false);
1508
+ }
1509
+ }
1510
+ }
1511
+ static ɵfac = function NgComponentOutlet_Factory(__ngFactoryType__) {
1512
+ return new (__ngFactoryType__ || NgComponentOutlet)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));
1513
+ };
1514
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
1515
+ type: NgComponentOutlet,
1516
+ selectors: [["", "ngComponentOutlet", ""]],
1517
+ inputs: {
1518
+ ngComponentOutlet: "ngComponentOutlet",
1519
+ ngComponentOutletInputs: "ngComponentOutletInputs",
1520
+ ngComponentOutletInjector: "ngComponentOutletInjector",
1521
+ ngComponentOutletEnvironmentInjector: "ngComponentOutletEnvironmentInjector",
1522
+ ngComponentOutletContent: "ngComponentOutletContent",
1523
+ ngComponentOutletNgModule: "ngComponentOutletNgModule"
1524
+ },
1525
+ exportAs: ["ngComponentOutlet"],
1526
+ features: [i0.ɵɵNgOnChangesFeature]
1527
+ });
1528
+ }
1529
+ (() => {
1530
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgComponentOutlet, [{
1531
+ type: Directive,
1532
+ args: [{
1533
+ selector: '[ngComponentOutlet]',
1534
+ exportAs: 'ngComponentOutlet'
1535
+ }]
1536
+ }], () => [{
1537
+ type: i0.ViewContainerRef
1538
+ }], {
1539
+ ngComponentOutlet: [{
1540
+ type: Input
1541
+ }],
1542
+ ngComponentOutletInputs: [{
1543
+ type: Input
1544
+ }],
1545
+ ngComponentOutletInjector: [{
1546
+ type: Input
1547
+ }],
1548
+ ngComponentOutletEnvironmentInjector: [{
1549
+ type: Input
1550
+ }],
1551
+ ngComponentOutletContent: [{
1552
+ type: Input
1553
+ }],
1554
+ ngComponentOutletNgModule: [{
1555
+ type: Input
1556
+ }]
1557
+ });
1558
+ })();
1559
+ function getParentInjector(injector) {
1560
+ const parentNgModule = injector.get(NgModuleRef);
1561
+ return parentNgModule.injector;
1562
+ }
1563
+ class NgForOfContext {
1564
+ $implicit;
1565
+ ngForOf;
1566
+ index;
1567
+ count;
1568
+ constructor($implicit, ngForOf, index, count) {
1569
+ this.$implicit = $implicit;
1570
+ this.ngForOf = ngForOf;
1571
+ this.index = index;
1572
+ this.count = count;
1573
+ }
1574
+ get first() {
1575
+ return this.index === 0;
1576
+ }
1577
+ get last() {
1578
+ return this.index === this.count - 1;
1579
+ }
1580
+ get even() {
1581
+ return this.index % 2 === 0;
1582
+ }
1583
+ get odd() {
1584
+ return !this.even;
1585
+ }
1586
+ }
1587
+ class NgForOf {
1588
+ _viewContainer;
1589
+ _template;
1590
+ _differs;
1591
+ set ngForOf(ngForOf) {
1592
+ this._ngForOf = ngForOf;
1593
+ this._ngForOfDirty = true;
1594
+ }
1595
+ set ngForTrackBy(fn) {
1596
+ if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
1597
+ console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}. ` + `See https://angular.dev/api/common/NgForOf#change-propagation for more information.`);
1598
+ }
1599
+ this._trackByFn = fn;
1600
+ }
1601
+ get ngForTrackBy() {
1602
+ return this._trackByFn;
1603
+ }
1604
+ _ngForOf = null;
1605
+ _ngForOfDirty = true;
1606
+ _differ = null;
1607
+ _trackByFn;
1608
+ constructor(_viewContainer, _template, _differs) {
1609
+ this._viewContainer = _viewContainer;
1610
+ this._template = _template;
1611
+ this._differs = _differs;
1612
+ }
1613
+ set ngForTemplate(value) {
1614
+ if (value) {
1615
+ this._template = value;
1616
+ }
1617
+ }
1618
+ ngDoCheck() {
1619
+ if (this._ngForOfDirty) {
1620
+ this._ngForOfDirty = false;
1621
+ const value = this._ngForOf;
1622
+ if (!this._differ && value) {
1623
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
1624
+ try {
1625
+ this._differ = this._differs.find(value).create(this.ngForTrackBy);
1626
+ } catch {
1627
+ let errorMessage = `Cannot find a differ supporting object '${value}' of type '` + `${getTypeName(value)}'. NgFor only supports binding to Iterables, such as Arrays.`;
1628
+ if (typeof value === 'object') {
1629
+ errorMessage += ' Did you mean to use the keyvalue pipe?';
1630
+ }
1631
+ throw new _RuntimeError(-2200, errorMessage);
1632
+ }
1633
+ } else {
1634
+ this._differ = this._differs.find(value).create(this.ngForTrackBy);
1635
+ }
1636
+ }
1637
+ }
1638
+ if (this._differ) {
1639
+ const changes = this._differ.diff(this._ngForOf);
1640
+ if (changes) this._applyChanges(changes);
1641
+ }
1642
+ }
1643
+ _applyChanges(changes) {
1644
+ const viewContainer = this._viewContainer;
1645
+ changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {
1646
+ if (item.previousIndex == null) {
1647
+ viewContainer.createEmbeddedView(this._template, new NgForOfContext(item.item, this._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);
1648
+ } else if (currentIndex == null) {
1649
+ viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);
1650
+ } else if (adjustedPreviousIndex !== null) {
1651
+ const view = viewContainer.get(adjustedPreviousIndex);
1652
+ viewContainer.move(view, currentIndex);
1653
+ applyViewChange(view, item);
1654
+ }
1655
+ });
1656
+ for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {
1657
+ const viewRef = viewContainer.get(i);
1658
+ const context = viewRef.context;
1659
+ context.index = i;
1660
+ context.count = ilen;
1661
+ context.ngForOf = this._ngForOf;
1662
+ }
1663
+ changes.forEachIdentityChange(record => {
1664
+ const viewRef = viewContainer.get(record.currentIndex);
1665
+ applyViewChange(viewRef, record);
1666
+ });
1667
+ }
1668
+ static ngTemplateContextGuard(dir, ctx) {
1669
+ return true;
1670
+ }
1671
+ static ɵfac = function NgForOf_Factory(__ngFactoryType__) {
1672
+ return new (__ngFactoryType__ || NgForOf)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.IterableDiffers));
1673
+ };
1674
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
1675
+ type: NgForOf,
1676
+ selectors: [["", "ngFor", "", "ngForOf", ""]],
1677
+ inputs: {
1678
+ ngForOf: "ngForOf",
1679
+ ngForTrackBy: "ngForTrackBy",
1680
+ ngForTemplate: "ngForTemplate"
1681
+ }
1682
+ });
1683
+ }
1684
+ (() => {
1685
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgForOf, [{
1686
+ type: Directive,
1687
+ args: [{
1688
+ selector: '[ngFor][ngForOf]'
1689
+ }]
1690
+ }], () => [{
1691
+ type: i0.ViewContainerRef
1692
+ }, {
1693
+ type: i0.TemplateRef
1694
+ }, {
1695
+ type: i0.IterableDiffers
1696
+ }], {
1697
+ ngForOf: [{
1698
+ type: Input
1699
+ }],
1700
+ ngForTrackBy: [{
1701
+ type: Input
1702
+ }],
1703
+ ngForTemplate: [{
1704
+ type: Input
1705
+ }]
1706
+ });
1707
+ })();
1708
+ function applyViewChange(view, record) {
1709
+ view.context.$implicit = record.item;
1710
+ }
1711
+ function getTypeName(type) {
1712
+ return type['name'] || typeof type;
1713
+ }
1714
+ class NgIf {
1715
+ _viewContainer;
1716
+ _context = new NgIfContext();
1717
+ _thenTemplateRef = null;
1718
+ _elseTemplateRef = null;
1719
+ _thenViewRef = null;
1720
+ _elseViewRef = null;
1721
+ constructor(_viewContainer, templateRef) {
1722
+ this._viewContainer = _viewContainer;
1723
+ this._thenTemplateRef = templateRef;
1724
+ }
1725
+ set ngIf(condition) {
1726
+ this._context.$implicit = this._context.ngIf = condition;
1727
+ this._updateView();
1728
+ }
1729
+ set ngIfThen(templateRef) {
1730
+ assertTemplate(templateRef, (typeof ngDevMode === 'undefined' || ngDevMode) && 'ngIfThen');
1731
+ this._thenTemplateRef = templateRef;
1732
+ this._thenViewRef = null;
1733
+ this._updateView();
1734
+ }
1735
+ set ngIfElse(templateRef) {
1736
+ assertTemplate(templateRef, (typeof ngDevMode === 'undefined' || ngDevMode) && 'ngIfElse');
1737
+ this._elseTemplateRef = templateRef;
1738
+ this._elseViewRef = null;
1739
+ this._updateView();
1740
+ }
1741
+ _updateView() {
1742
+ if (this._context.$implicit) {
1743
+ if (!this._thenViewRef) {
1744
+ this._viewContainer.clear();
1745
+ this._elseViewRef = null;
1746
+ if (this._thenTemplateRef) {
1747
+ this._thenViewRef = this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);
1748
+ }
1749
+ }
1750
+ } else {
1751
+ if (!this._elseViewRef) {
1752
+ this._viewContainer.clear();
1753
+ this._thenViewRef = null;
1754
+ if (this._elseTemplateRef) {
1755
+ this._elseViewRef = this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);
1756
+ }
1757
+ }
1758
+ }
1759
+ }
1760
+ static ngIfUseIfTypeGuard;
1761
+ static ngTemplateGuard_ngIf;
1762
+ static ngTemplateContextGuard(dir, ctx) {
1763
+ return true;
1764
+ }
1765
+ static ɵfac = function NgIf_Factory(__ngFactoryType__) {
1766
+ return new (__ngFactoryType__ || NgIf)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef));
1767
+ };
1768
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
1769
+ type: NgIf,
1770
+ selectors: [["", "ngIf", ""]],
1771
+ inputs: {
1772
+ ngIf: "ngIf",
1773
+ ngIfThen: "ngIfThen",
1774
+ ngIfElse: "ngIfElse"
1775
+ }
1776
+ });
1777
+ }
1778
+ (() => {
1779
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgIf, [{
1780
+ type: Directive,
1781
+ args: [{
1782
+ selector: '[ngIf]'
1783
+ }]
1784
+ }], () => [{
1785
+ type: i0.ViewContainerRef
1786
+ }, {
1787
+ type: i0.TemplateRef
1788
+ }], {
1789
+ ngIf: [{
1790
+ type: Input
1791
+ }],
1792
+ ngIfThen: [{
1793
+ type: Input
1794
+ }],
1795
+ ngIfElse: [{
1796
+ type: Input
1797
+ }]
1798
+ });
1799
+ })();
1800
+ class NgIfContext {
1801
+ $implicit = null;
1802
+ ngIf = null;
1803
+ }
1804
+ function assertTemplate(templateRef, property) {
1805
+ if (templateRef && !templateRef.createEmbeddedView) {
1806
+ throw new _RuntimeError(2020, (typeof ngDevMode === 'undefined' || ngDevMode) && `${property} must be a TemplateRef, but received '${_stringify(templateRef)}'.`);
1807
+ }
1808
+ }
1809
+ class SwitchView {
1810
+ _viewContainerRef;
1811
+ _templateRef;
1812
+ _created = false;
1813
+ constructor(_viewContainerRef, _templateRef) {
1814
+ this._viewContainerRef = _viewContainerRef;
1815
+ this._templateRef = _templateRef;
1816
+ }
1817
+ create() {
1818
+ this._created = true;
1819
+ this._viewContainerRef.createEmbeddedView(this._templateRef);
1820
+ }
1821
+ destroy() {
1822
+ this._created = false;
1823
+ this._viewContainerRef.clear();
1824
+ }
1825
+ enforceState(created) {
1826
+ if (created && !this._created) {
1827
+ this.create();
1828
+ } else if (!created && this._created) {
1829
+ this.destroy();
1830
+ }
1831
+ }
1832
+ }
1833
+ class NgSwitch {
1834
+ _defaultViews = [];
1835
+ _defaultUsed = false;
1836
+ _caseCount = 0;
1837
+ _lastCaseCheckIndex = 0;
1838
+ _lastCasesMatched = false;
1839
+ _ngSwitch;
1840
+ set ngSwitch(newValue) {
1841
+ this._ngSwitch = newValue;
1842
+ if (this._caseCount === 0) {
1843
+ this._updateDefaultCases(true);
1844
+ }
1845
+ }
1846
+ _addCase() {
1847
+ return this._caseCount++;
1848
+ }
1849
+ _addDefault(view) {
1850
+ this._defaultViews.push(view);
1851
+ }
1852
+ _matchCase(value) {
1853
+ const matched = value === this._ngSwitch;
1854
+ this._lastCasesMatched ||= matched;
1855
+ this._lastCaseCheckIndex++;
1856
+ if (this._lastCaseCheckIndex === this._caseCount) {
1857
+ this._updateDefaultCases(!this._lastCasesMatched);
1858
+ this._lastCaseCheckIndex = 0;
1859
+ this._lastCasesMatched = false;
1860
+ }
1861
+ return matched;
1862
+ }
1863
+ _updateDefaultCases(useDefault) {
1864
+ if (this._defaultViews.length > 0 && useDefault !== this._defaultUsed) {
1865
+ this._defaultUsed = useDefault;
1866
+ for (const defaultView of this._defaultViews) {
1867
+ defaultView.enforceState(useDefault);
1868
+ }
1869
+ }
1870
+ }
1871
+ static ɵfac = function NgSwitch_Factory(__ngFactoryType__) {
1872
+ return new (__ngFactoryType__ || NgSwitch)();
1873
+ };
1874
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
1875
+ type: NgSwitch,
1876
+ selectors: [["", "ngSwitch", ""]],
1877
+ inputs: {
1878
+ ngSwitch: "ngSwitch"
1879
+ }
1880
+ });
1881
+ }
1882
+ (() => {
1883
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgSwitch, [{
1884
+ type: Directive,
1885
+ args: [{
1886
+ selector: '[ngSwitch]'
1887
+ }]
1888
+ }], null, {
1889
+ ngSwitch: [{
1890
+ type: Input
1891
+ }]
1892
+ });
1893
+ })();
1894
+ class NgSwitchCase {
1895
+ ngSwitch;
1896
+ _view;
1897
+ ngSwitchCase;
1898
+ constructor(viewContainer, templateRef, ngSwitch) {
1899
+ this.ngSwitch = ngSwitch;
1900
+ if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {
1901
+ throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');
1902
+ }
1903
+ ngSwitch._addCase();
1904
+ this._view = new SwitchView(viewContainer, templateRef);
1905
+ }
1906
+ ngDoCheck() {
1907
+ this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
1908
+ }
1909
+ static ɵfac = function NgSwitchCase_Factory(__ngFactoryType__) {
1910
+ return new (__ngFactoryType__ || NgSwitchCase)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(NgSwitch, 9));
1911
+ };
1912
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
1913
+ type: NgSwitchCase,
1914
+ selectors: [["", "ngSwitchCase", ""]],
1915
+ inputs: {
1916
+ ngSwitchCase: "ngSwitchCase"
1917
+ }
1918
+ });
1919
+ }
1920
+ (() => {
1921
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgSwitchCase, [{
1922
+ type: Directive,
1923
+ args: [{
1924
+ selector: '[ngSwitchCase]'
1925
+ }]
1926
+ }], () => [{
1927
+ type: i0.ViewContainerRef
1928
+ }, {
1929
+ type: i0.TemplateRef
1930
+ }, {
1931
+ type: NgSwitch,
1932
+ decorators: [{
1933
+ type: Optional
1934
+ }, {
1935
+ type: Host
1936
+ }]
1937
+ }], {
1938
+ ngSwitchCase: [{
1939
+ type: Input
1940
+ }]
1941
+ });
1942
+ })();
1943
+ class NgSwitchDefault {
1944
+ constructor(viewContainer, templateRef, ngSwitch) {
1945
+ if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {
1946
+ throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');
1947
+ }
1948
+ ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
1949
+ }
1950
+ static ɵfac = function NgSwitchDefault_Factory(__ngFactoryType__) {
1951
+ return new (__ngFactoryType__ || NgSwitchDefault)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(NgSwitch, 9));
1952
+ };
1953
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
1954
+ type: NgSwitchDefault,
1955
+ selectors: [["", "ngSwitchDefault", ""]]
1956
+ });
1957
+ }
1958
+ (() => {
1959
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgSwitchDefault, [{
1960
+ type: Directive,
1961
+ args: [{
1962
+ selector: '[ngSwitchDefault]'
1963
+ }]
1964
+ }], () => [{
1965
+ type: i0.ViewContainerRef
1966
+ }, {
1967
+ type: i0.TemplateRef
1968
+ }, {
1969
+ type: NgSwitch,
1970
+ decorators: [{
1971
+ type: Optional
1972
+ }, {
1973
+ type: Host
1974
+ }]
1975
+ }], null);
1976
+ })();
1977
+ function throwNgSwitchProviderNotFoundError(attrName, directiveName) {
1978
+ throw new _RuntimeError(2000, `An element with the "${attrName}" attribute ` + `(matching the "${directiveName}" directive) must be located inside an element with the "ngSwitch" attribute ` + `(matching "NgSwitch" directive)`);
1979
+ }
1980
+ class NgPlural {
1981
+ _localization;
1982
+ _activeView;
1983
+ _caseViews = {};
1984
+ constructor(_localization) {
1985
+ this._localization = _localization;
1986
+ }
1987
+ set ngPlural(value) {
1988
+ this._updateView(value);
1989
+ }
1990
+ addCase(value, switchView) {
1991
+ this._caseViews[value] = switchView;
1992
+ }
1993
+ _updateView(switchValue) {
1994
+ this._clearViews();
1995
+ const cases = Object.keys(this._caseViews);
1996
+ const key = getPluralCategory(switchValue, cases, this._localization);
1997
+ this._activateView(this._caseViews[key]);
1998
+ }
1999
+ _clearViews() {
2000
+ if (this._activeView) this._activeView.destroy();
2001
+ }
2002
+ _activateView(view) {
2003
+ if (view) {
2004
+ this._activeView = view;
2005
+ this._activeView.create();
2006
+ }
2007
+ }
2008
+ static ɵfac = function NgPlural_Factory(__ngFactoryType__) {
2009
+ return new (__ngFactoryType__ || NgPlural)(i0.ɵɵdirectiveInject(NgLocalization));
2010
+ };
2011
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
2012
+ type: NgPlural,
2013
+ selectors: [["", "ngPlural", ""]],
2014
+ inputs: {
2015
+ ngPlural: "ngPlural"
2016
+ }
2017
+ });
2018
+ }
2019
+ (() => {
2020
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgPlural, [{
2021
+ type: Directive,
2022
+ args: [{
2023
+ selector: '[ngPlural]'
2024
+ }]
2025
+ }], () => [{
2026
+ type: NgLocalization
2027
+ }], {
2028
+ ngPlural: [{
2029
+ type: Input
2030
+ }]
2031
+ });
2032
+ })();
2033
+ class NgPluralCase {
2034
+ value;
2035
+ constructor(value, template, viewContainer, ngPlural) {
2036
+ this.value = value;
2037
+ const isANumber = !isNaN(Number(value));
2038
+ ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
2039
+ }
2040
+ static ɵfac = function NgPluralCase_Factory(__ngFactoryType__) {
2041
+ return new (__ngFactoryType__ || NgPluralCase)(i0.ɵɵinjectAttribute('ngPluralCase'), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(NgPlural, 1));
2042
+ };
2043
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
2044
+ type: NgPluralCase,
2045
+ selectors: [["", "ngPluralCase", ""]]
2046
+ });
2047
+ }
2048
+ (() => {
2049
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgPluralCase, [{
2050
+ type: Directive,
2051
+ args: [{
2052
+ selector: '[ngPluralCase]'
2053
+ }]
2054
+ }], () => [{
2055
+ type: undefined,
2056
+ decorators: [{
2057
+ type: Attribute,
2058
+ args: ['ngPluralCase']
2059
+ }]
2060
+ }, {
2061
+ type: i0.TemplateRef
2062
+ }, {
2063
+ type: i0.ViewContainerRef
2064
+ }, {
2065
+ type: NgPlural,
2066
+ decorators: [{
2067
+ type: Host
2068
+ }]
2069
+ }], null);
2070
+ })();
2071
+ class NgStyle {
2072
+ _ngEl;
2073
+ _differs;
2074
+ _renderer;
2075
+ _ngStyle = null;
2076
+ _differ = null;
2077
+ constructor(_ngEl, _differs, _renderer) {
2078
+ this._ngEl = _ngEl;
2079
+ this._differs = _differs;
2080
+ this._renderer = _renderer;
2081
+ }
2082
+ set ngStyle(values) {
2083
+ this._ngStyle = values;
2084
+ if (!this._differ && values) {
2085
+ this._differ = this._differs.find(values).create();
2086
+ }
2087
+ }
2088
+ ngDoCheck() {
2089
+ if (this._differ) {
2090
+ const changes = this._differ.diff(this._ngStyle);
2091
+ if (changes) {
2092
+ this._applyChanges(changes);
2093
+ }
2094
+ }
2095
+ }
2096
+ _setStyle(nameAndUnit, value) {
2097
+ const [name, unit] = nameAndUnit.split('.');
2098
+ const flags = name.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;
2099
+ if (value != null) {
2100
+ this._renderer.setStyle(this._ngEl.nativeElement, name, unit ? `${value}${unit}` : value, flags);
2101
+ } else {
2102
+ this._renderer.removeStyle(this._ngEl.nativeElement, name, flags);
2103
+ }
2104
+ }
2105
+ _applyChanges(changes) {
2106
+ changes.forEachRemovedItem(record => this._setStyle(record.key, null));
2107
+ changes.forEachAddedItem(record => this._setStyle(record.key, record.currentValue));
2108
+ changes.forEachChangedItem(record => this._setStyle(record.key, record.currentValue));
2109
+ }
2110
+ static ɵfac = function NgStyle_Factory(__ngFactoryType__) {
2111
+ return new (__ngFactoryType__ || NgStyle)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.KeyValueDiffers), i0.ɵɵdirectiveInject(i0.Renderer2));
2112
+ };
2113
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
2114
+ type: NgStyle,
2115
+ selectors: [["", "ngStyle", ""]],
2116
+ inputs: {
2117
+ ngStyle: "ngStyle"
2118
+ }
2119
+ });
2120
+ }
2121
+ (() => {
2122
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgStyle, [{
2123
+ type: Directive,
2124
+ args: [{
2125
+ selector: '[ngStyle]'
2126
+ }]
2127
+ }], () => [{
2128
+ type: i0.ElementRef
2129
+ }, {
2130
+ type: i0.KeyValueDiffers
2131
+ }, {
2132
+ type: i0.Renderer2
2133
+ }], {
2134
+ ngStyle: [{
2135
+ type: Input,
2136
+ args: ['ngStyle']
2137
+ }]
2138
+ });
2139
+ })();
2140
+ class NgTemplateOutlet {
2141
+ _viewContainerRef;
2142
+ _viewRef = null;
2143
+ ngTemplateOutletContext = null;
2144
+ ngTemplateOutlet = null;
2145
+ ngTemplateOutletInjector = null;
2146
+ injector = inject(Injector);
2147
+ constructor(_viewContainerRef) {
2148
+ this._viewContainerRef = _viewContainerRef;
2149
+ }
2150
+ ngOnChanges(changes) {
2151
+ if (this._shouldRecreateView(changes)) {
2152
+ const viewContainerRef = this._viewContainerRef;
2153
+ if (this._viewRef) {
2154
+ viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));
2155
+ }
2156
+ if (!this.ngTemplateOutlet) {
2157
+ this._viewRef = null;
2158
+ return;
2159
+ }
2160
+ const viewContext = this._createContextForwardProxy();
2161
+ this._viewRef = viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, viewContext, {
2162
+ injector: this._getInjector()
2163
+ });
2164
+ }
2165
+ }
2166
+ _getInjector() {
2167
+ if (this.ngTemplateOutletInjector === 'outlet') {
2168
+ return this.injector;
2169
+ }
2170
+ return this.ngTemplateOutletInjector ?? undefined;
2171
+ }
2172
+ _shouldRecreateView(changes) {
2173
+ return !!changes['ngTemplateOutlet'] || !!changes['ngTemplateOutletInjector'];
2174
+ }
2175
+ _createContextForwardProxy() {
2176
+ return new Proxy({}, {
2177
+ set: (_target, prop, newValue) => {
2178
+ if (!this.ngTemplateOutletContext) {
2179
+ return false;
2180
+ }
2181
+ return Reflect.set(this.ngTemplateOutletContext, prop, newValue);
2182
+ },
2183
+ get: (_target, prop, receiver) => {
2184
+ if (!this.ngTemplateOutletContext) {
2185
+ return undefined;
2186
+ }
2187
+ return Reflect.get(this.ngTemplateOutletContext, prop, receiver);
2188
+ }
2189
+ });
2190
+ }
2191
+ static ɵfac = function NgTemplateOutlet_Factory(__ngFactoryType__) {
2192
+ return new (__ngFactoryType__ || NgTemplateOutlet)(i0.ɵɵdirectiveInject(i0.ViewContainerRef));
2193
+ };
2194
+ static ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({
2195
+ type: NgTemplateOutlet,
2196
+ selectors: [["", "ngTemplateOutlet", ""]],
2197
+ inputs: {
2198
+ ngTemplateOutletContext: "ngTemplateOutletContext",
2199
+ ngTemplateOutlet: "ngTemplateOutlet",
2200
+ ngTemplateOutletInjector: "ngTemplateOutletInjector"
2201
+ },
2202
+ features: [i0.ɵɵNgOnChangesFeature]
2203
+ });
2204
+ }
2205
+ (() => {
2206
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgTemplateOutlet, [{
2207
+ type: Directive,
2208
+ args: [{
2209
+ selector: '[ngTemplateOutlet]'
2210
+ }]
2211
+ }], () => [{
2212
+ type: i0.ViewContainerRef
2213
+ }], {
2214
+ ngTemplateOutletContext: [{
2215
+ type: Input
2216
+ }],
2217
+ ngTemplateOutlet: [{
2218
+ type: Input
2219
+ }],
2220
+ ngTemplateOutletInjector: [{
2221
+ type: Input
2222
+ }]
2223
+ });
2224
+ })();
2225
+ const COMMON_DIRECTIVES = [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase];
2226
+ function invalidPipeArgumentError(type, value) {
2227
+ return new _RuntimeError(2100, ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${_stringify(type)}'`);
2228
+ }
2229
+ function warnIfSignal(pipeName, value) {
2230
+ if (isSignal(value)) {
2231
+ console.warn(`The ${pipeName} does not unwrap signals. Received a signal with value:`, value());
2232
+ }
2233
+ }
2234
+ class SubscribableStrategy {
2235
+ createSubscription(async, updateLatestValue, onError) {
2236
+ return untracked(() => async.subscribe({
2237
+ next: updateLatestValue,
2238
+ error: onError
2239
+ }));
2240
+ }
2241
+ dispose(subscription) {
2242
+ untracked(() => subscription.unsubscribe());
2243
+ }
2244
+ }
2245
+ class PromiseStrategy {
2246
+ createSubscription(async, updateLatestValue, onError) {
2247
+ async.then(v => updateLatestValue?.(v), e => onError?.(e));
2248
+ return {
2249
+ unsubscribe: () => {
2250
+ updateLatestValue = null;
2251
+ onError = null;
2252
+ }
2253
+ };
2254
+ }
2255
+ dispose(subscription) {
2256
+ subscription.unsubscribe();
2257
+ }
2258
+ }
2259
+ const _promiseStrategy = new PromiseStrategy();
2260
+ const _subscribableStrategy = new SubscribableStrategy();
2261
+ class AsyncPipe {
2262
+ _ref;
2263
+ _latestValue = null;
2264
+ markForCheckOnValueUpdate = true;
2265
+ _subscription = null;
2266
+ _obj = null;
2267
+ _strategy = null;
2268
+ applicationErrorHandler = inject(_INTERNAL_APPLICATION_ERROR_HANDLER);
2269
+ constructor(ref) {
2270
+ this._ref = ref;
2271
+ }
2272
+ ngOnDestroy() {
2273
+ if (this._subscription) {
2274
+ this._dispose();
2275
+ }
2276
+ this._ref = null;
2277
+ }
2278
+ transform(obj) {
2279
+ if (!this._obj) {
2280
+ if (obj) {
2281
+ try {
2282
+ this.markForCheckOnValueUpdate = false;
2283
+ this._subscribe(obj);
2284
+ } finally {
2285
+ this.markForCheckOnValueUpdate = true;
2286
+ }
2287
+ }
2288
+ return this._latestValue;
2289
+ }
2290
+ if (obj !== this._obj) {
2291
+ this._dispose();
2292
+ return this.transform(obj);
2293
+ }
2294
+ return this._latestValue;
2295
+ }
2296
+ _subscribe(obj) {
2297
+ this._obj = obj;
2298
+ this._strategy = this._selectStrategy(obj);
2299
+ this._subscription = this._strategy.createSubscription(obj, value => this._updateLatestValue(obj, value), e => this.applicationErrorHandler(e));
2300
+ }
2301
+ _selectStrategy(obj) {
2302
+ if (_isPromise(obj)) {
2303
+ return _promiseStrategy;
2304
+ }
2305
+ if (_isSubscribable(obj)) {
2306
+ return _subscribableStrategy;
2307
+ }
2308
+ throw invalidPipeArgumentError(AsyncPipe, obj);
2309
+ }
2310
+ _dispose() {
2311
+ this._strategy.dispose(this._subscription);
2312
+ this._latestValue = null;
2313
+ this._subscription = null;
2314
+ this._obj = null;
2315
+ }
2316
+ _updateLatestValue(async, value) {
2317
+ if (async === this._obj) {
2318
+ this._latestValue = value;
2319
+ if (this.markForCheckOnValueUpdate) {
2320
+ this._ref?.markForCheck();
2321
+ }
2322
+ }
2323
+ }
2324
+ static ɵfac = function AsyncPipe_Factory(__ngFactoryType__) {
2325
+ return new (__ngFactoryType__ || AsyncPipe)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef, 16));
2326
+ };
2327
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2328
+ name: "async",
2329
+ type: AsyncPipe,
2330
+ pure: false
2331
+ });
2332
+ }
2333
+ (() => {
2334
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AsyncPipe, [{
2335
+ type: Pipe,
2336
+ args: [{
2337
+ name: 'async',
2338
+ pure: false
2339
+ }]
2340
+ }], () => [{
2341
+ type: i0.ChangeDetectorRef
2342
+ }], null);
2343
+ })();
2344
+ class LowerCasePipe {
2345
+ transform(value) {
2346
+ if (value == null) return null;
2347
+ assertPipeArgument(LowerCasePipe, value);
2348
+ return value.toLowerCase();
2349
+ }
2350
+ static ɵfac = function LowerCasePipe_Factory(__ngFactoryType__) {
2351
+ return new (__ngFactoryType__ || LowerCasePipe)();
2352
+ };
2353
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2354
+ name: "lowercase",
2355
+ type: LowerCasePipe,
2356
+ pure: true
2357
+ });
2358
+ }
2359
+ (() => {
2360
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LowerCasePipe, [{
2361
+ type: Pipe,
2362
+ args: [{
2363
+ name: 'lowercase'
2364
+ }]
2365
+ }], null, null);
2366
+ })();
2367
+ const unicodeWordMatch = /(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;
2368
+ class TitleCasePipe {
2369
+ transform(value) {
2370
+ if (value == null) return null;
2371
+ assertPipeArgument(TitleCasePipe, value);
2372
+ return value.replace(unicodeWordMatch, txt => txt[0].toUpperCase() + txt.slice(1).toLowerCase());
2373
+ }
2374
+ static ɵfac = function TitleCasePipe_Factory(__ngFactoryType__) {
2375
+ return new (__ngFactoryType__ || TitleCasePipe)();
2376
+ };
2377
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2378
+ name: "titlecase",
2379
+ type: TitleCasePipe,
2380
+ pure: true
2381
+ });
2382
+ }
2383
+ (() => {
2384
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TitleCasePipe, [{
2385
+ type: Pipe,
2386
+ args: [{
2387
+ name: 'titlecase'
2388
+ }]
2389
+ }], null, null);
2390
+ })();
2391
+ class UpperCasePipe {
2392
+ transform(value) {
2393
+ if (value == null) return null;
2394
+ assertPipeArgument(UpperCasePipe, value);
2395
+ return value.toUpperCase();
2396
+ }
2397
+ static ɵfac = function UpperCasePipe_Factory(__ngFactoryType__) {
2398
+ return new (__ngFactoryType__ || UpperCasePipe)();
2399
+ };
2400
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2401
+ name: "uppercase",
2402
+ type: UpperCasePipe,
2403
+ pure: true
2404
+ });
2405
+ }
2406
+ (() => {
2407
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpperCasePipe, [{
2408
+ type: Pipe,
2409
+ args: [{
2410
+ name: 'uppercase'
2411
+ }]
2412
+ }], null, null);
2413
+ })();
2414
+ function assertPipeArgument(pipe, value) {
2415
+ if (typeof value !== 'string') {
2416
+ throw invalidPipeArgumentError(pipe, value);
2417
+ }
2418
+ }
2419
+ const DEFAULT_DATE_FORMAT = 'mediumDate';
2420
+ const DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'DATE_PIPE_DEFAULT_TIMEZONE' : '');
2421
+ const DATE_PIPE_DEFAULT_OPTIONS = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'DATE_PIPE_DEFAULT_OPTIONS' : '');
2422
+ class DatePipe {
2423
+ locale;
2424
+ defaultTimezone;
2425
+ defaultOptions;
2426
+ constructor(locale, defaultTimezone, defaultOptions) {
2427
+ this.locale = locale;
2428
+ this.defaultTimezone = defaultTimezone;
2429
+ this.defaultOptions = defaultOptions;
2430
+ }
2431
+ transform(value, format, timezone, locale) {
2432
+ if (value == null || value === '' || value !== value) return null;
2433
+ try {
2434
+ const _format = format ?? this.defaultOptions?.dateFormat ?? DEFAULT_DATE_FORMAT;
2435
+ const _timezone = timezone ?? this.defaultOptions?.timezone ?? this.defaultTimezone ?? undefined;
2436
+ return formatDate(value, _format, locale || this.locale, _timezone);
2437
+ } catch (error) {
2438
+ throw invalidPipeArgumentError(DatePipe, error.message);
2439
+ }
2440
+ }
2441
+ static ɵfac = function DatePipe_Factory(__ngFactoryType__) {
2442
+ return new (__ngFactoryType__ || DatePipe)(i0.ɵɵdirectiveInject(LOCALE_ID, 16), i0.ɵɵdirectiveInject(DATE_PIPE_DEFAULT_TIMEZONE, 24), i0.ɵɵdirectiveInject(DATE_PIPE_DEFAULT_OPTIONS, 24));
2443
+ };
2444
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2445
+ name: "date",
2446
+ type: DatePipe,
2447
+ pure: true
2448
+ });
2449
+ }
2450
+ (() => {
2451
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatePipe, [{
2452
+ type: Pipe,
2453
+ args: [{
2454
+ name: 'date'
2455
+ }]
2456
+ }], () => [{
2457
+ type: undefined,
2458
+ decorators: [{
2459
+ type: Inject,
2460
+ args: [LOCALE_ID]
2461
+ }]
2462
+ }, {
2463
+ type: undefined,
2464
+ decorators: [{
2465
+ type: Inject,
2466
+ args: [DATE_PIPE_DEFAULT_TIMEZONE]
2467
+ }, {
2468
+ type: Optional
2469
+ }]
2470
+ }, {
2471
+ type: undefined,
2472
+ decorators: [{
2473
+ type: Inject,
2474
+ args: [DATE_PIPE_DEFAULT_OPTIONS]
2475
+ }, {
2476
+ type: Optional
2477
+ }]
2478
+ }], null);
2479
+ })();
2480
+ const _INTERPOLATION_REGEXP = /#/g;
2481
+ class I18nPluralPipe {
2482
+ _localization;
2483
+ constructor(_localization) {
2484
+ this._localization = _localization;
2485
+ }
2486
+ transform(value, pluralMap, locale) {
2487
+ if (value == null) return '';
2488
+ if (typeof pluralMap !== 'object' || pluralMap === null) {
2489
+ throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);
2490
+ }
2491
+ const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
2492
+ return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
2493
+ }
2494
+ static ɵfac = function I18nPluralPipe_Factory(__ngFactoryType__) {
2495
+ return new (__ngFactoryType__ || I18nPluralPipe)(i0.ɵɵdirectiveInject(NgLocalization, 16));
2496
+ };
2497
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2498
+ name: "i18nPlural",
2499
+ type: I18nPluralPipe,
2500
+ pure: true
2501
+ });
2502
+ }
2503
+ (() => {
2504
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(I18nPluralPipe, [{
2505
+ type: Pipe,
2506
+ args: [{
2507
+ name: 'i18nPlural'
2508
+ }]
2509
+ }], () => [{
2510
+ type: NgLocalization
2511
+ }], null);
2512
+ })();
2513
+ class I18nSelectPipe {
2514
+ transform(value, mapping) {
2515
+ if (value == null) return '';
2516
+ if (typeof mapping !== 'object' || typeof value !== 'string') {
2517
+ throw invalidPipeArgumentError(I18nSelectPipe, mapping);
2518
+ }
2519
+ if (mapping.hasOwnProperty(value)) {
2520
+ return mapping[value];
2521
+ }
2522
+ if (mapping.hasOwnProperty('other')) {
2523
+ return mapping['other'];
2524
+ }
2525
+ return '';
2526
+ }
2527
+ static ɵfac = function I18nSelectPipe_Factory(__ngFactoryType__) {
2528
+ return new (__ngFactoryType__ || I18nSelectPipe)();
2529
+ };
2530
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2531
+ name: "i18nSelect",
2532
+ type: I18nSelectPipe,
2533
+ pure: true
2534
+ });
2535
+ }
2536
+ (() => {
2537
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(I18nSelectPipe, [{
2538
+ type: Pipe,
2539
+ args: [{
2540
+ name: 'i18nSelect'
2541
+ }]
2542
+ }], null, null);
2543
+ })();
2544
+ class JsonPipe {
2545
+ transform(value) {
2546
+ ngDevMode && warnIfSignal('JsonPipe', value);
2547
+ return JSON.stringify(value, null, 2);
2548
+ }
2549
+ static ɵfac = function JsonPipe_Factory(__ngFactoryType__) {
2550
+ return new (__ngFactoryType__ || JsonPipe)();
2551
+ };
2552
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2553
+ name: "json",
2554
+ type: JsonPipe,
2555
+ pure: false
2556
+ });
2557
+ }
2558
+ (() => {
2559
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JsonPipe, [{
2560
+ type: Pipe,
2561
+ args: [{
2562
+ name: 'json',
2563
+ pure: false
2564
+ }]
2565
+ }], null, null);
2566
+ })();
2567
+ function makeKeyValuePair(key, value) {
2568
+ return {
2569
+ key: key,
2570
+ value: value
2571
+ };
2572
+ }
2573
+ class KeyValuePipe {
2574
+ differs;
2575
+ constructor(differs) {
2576
+ this.differs = differs;
2577
+ }
2578
+ differ;
2579
+ keyValues = [];
2580
+ compareFn = defaultComparator;
2581
+ transform(input, compareFn = defaultComparator) {
2582
+ ngDevMode && warnIfSignal('KeyValuePipe', input);
2583
+ if (!input || !(input instanceof Map) && typeof input !== 'object') {
2584
+ return null;
2585
+ }
2586
+ this.differ ??= this.differs.find(input).create();
2587
+ const differChanges = this.differ.diff(input);
2588
+ const compareFnChanged = compareFn !== this.compareFn;
2589
+ if (differChanges) {
2590
+ this.keyValues = [];
2591
+ differChanges.forEachItem(r => {
2592
+ this.keyValues.push(makeKeyValuePair(r.key, r.currentValue));
2593
+ });
2594
+ }
2595
+ if (differChanges || compareFnChanged) {
2596
+ if (compareFn) {
2597
+ this.keyValues.sort(compareFn);
2598
+ }
2599
+ this.compareFn = compareFn;
2600
+ }
2601
+ return this.keyValues;
2602
+ }
2603
+ static ɵfac = function KeyValuePipe_Factory(__ngFactoryType__) {
2604
+ return new (__ngFactoryType__ || KeyValuePipe)(i0.ɵɵdirectiveInject(i0.KeyValueDiffers, 16));
2605
+ };
2606
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2607
+ name: "keyvalue",
2608
+ type: KeyValuePipe,
2609
+ pure: false
2610
+ });
2611
+ }
2612
+ (() => {
2613
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(KeyValuePipe, [{
2614
+ type: Pipe,
2615
+ args: [{
2616
+ name: 'keyvalue',
2617
+ pure: false
2618
+ }]
2619
+ }], () => [{
2620
+ type: i0.KeyValueDiffers
2621
+ }], null);
2622
+ })();
2623
+ function defaultComparator(keyValueA, keyValueB) {
2624
+ const a = keyValueA.key;
2625
+ const b = keyValueB.key;
2626
+ if (a === b) return 0;
2627
+ if (a == null) return 1;
2628
+ if (b == null) return -1;
2629
+ if (typeof a == 'string' && typeof b == 'string') {
2630
+ return a < b ? -1 : 1;
2631
+ }
2632
+ if (typeof a == 'number' && typeof b == 'number') {
2633
+ return a - b;
2634
+ }
2635
+ if (typeof a == 'boolean' && typeof b == 'boolean') {
2636
+ return a < b ? -1 : 1;
2637
+ }
2638
+ const aString = String(a);
2639
+ const bString = String(b);
2640
+ return aString == bString ? 0 : aString < bString ? -1 : 1;
2641
+ }
2642
+ class DecimalPipe {
2643
+ _locale;
2644
+ constructor(_locale) {
2645
+ this._locale = _locale;
2646
+ }
2647
+ transform(value, digitsInfo, locale) {
2648
+ if (!isValue(value)) return null;
2649
+ locale ||= this._locale;
2650
+ try {
2651
+ const num = strToNumber(value);
2652
+ return formatNumber(num, locale, digitsInfo);
2653
+ } catch (error) {
2654
+ throw invalidPipeArgumentError(DecimalPipe, error.message);
2655
+ }
2656
+ }
2657
+ static ɵfac = function DecimalPipe_Factory(__ngFactoryType__) {
2658
+ return new (__ngFactoryType__ || DecimalPipe)(i0.ɵɵdirectiveInject(LOCALE_ID, 16));
2659
+ };
2660
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2661
+ name: "number",
2662
+ type: DecimalPipe,
2663
+ pure: true
2664
+ });
2665
+ }
2666
+ (() => {
2667
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DecimalPipe, [{
2668
+ type: Pipe,
2669
+ args: [{
2670
+ name: 'number'
2671
+ }]
2672
+ }], () => [{
2673
+ type: undefined,
2674
+ decorators: [{
2675
+ type: Inject,
2676
+ args: [LOCALE_ID]
2677
+ }]
2678
+ }], null);
2679
+ })();
2680
+ class PercentPipe {
2681
+ _locale;
2682
+ constructor(_locale) {
2683
+ this._locale = _locale;
2684
+ }
2685
+ transform(value, digitsInfo, locale) {
2686
+ if (!isValue(value)) return null;
2687
+ locale ||= this._locale;
2688
+ try {
2689
+ const num = strToNumber(value);
2690
+ return formatPercent(num, locale, digitsInfo);
2691
+ } catch (error) {
2692
+ throw invalidPipeArgumentError(PercentPipe, error.message);
2693
+ }
2694
+ }
2695
+ static ɵfac = function PercentPipe_Factory(__ngFactoryType__) {
2696
+ return new (__ngFactoryType__ || PercentPipe)(i0.ɵɵdirectiveInject(LOCALE_ID, 16));
2697
+ };
2698
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2699
+ name: "percent",
2700
+ type: PercentPipe,
2701
+ pure: true
2702
+ });
2703
+ }
2704
+ (() => {
2705
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PercentPipe, [{
2706
+ type: Pipe,
2707
+ args: [{
2708
+ name: 'percent'
2709
+ }]
2710
+ }], () => [{
2711
+ type: undefined,
2712
+ decorators: [{
2713
+ type: Inject,
2714
+ args: [LOCALE_ID]
2715
+ }]
2716
+ }], null);
2717
+ })();
2718
+ class CurrencyPipe {
2719
+ _locale;
2720
+ _defaultCurrencyCode;
2721
+ constructor(_locale, _defaultCurrencyCode = 'USD') {
2722
+ this._locale = _locale;
2723
+ this._defaultCurrencyCode = _defaultCurrencyCode;
2724
+ }
2725
+ transform(value, currencyCode = this._defaultCurrencyCode, display = 'symbol', digitsInfo, locale) {
2726
+ if (!isValue(value)) return null;
2727
+ locale ||= this._locale;
2728
+ if (typeof display === 'boolean') {
2729
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
2730
+ console.warn(`Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".`);
2731
+ }
2732
+ display = display ? 'symbol' : 'code';
2733
+ }
2734
+ let currency = currencyCode || this._defaultCurrencyCode;
2735
+ if (display !== 'code') {
2736
+ if (display === 'symbol' || display === 'symbol-narrow') {
2737
+ currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);
2738
+ } else {
2739
+ currency = display;
2740
+ }
2741
+ }
2742
+ try {
2743
+ const num = strToNumber(value);
2744
+ return formatCurrency(num, locale, currency, currencyCode, digitsInfo);
2745
+ } catch (error) {
2746
+ throw invalidPipeArgumentError(CurrencyPipe, error.message);
2747
+ }
2748
+ }
2749
+ static ɵfac = function CurrencyPipe_Factory(__ngFactoryType__) {
2750
+ return new (__ngFactoryType__ || CurrencyPipe)(i0.ɵɵdirectiveInject(LOCALE_ID, 16), i0.ɵɵdirectiveInject(DEFAULT_CURRENCY_CODE, 16));
2751
+ };
2752
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2753
+ name: "currency",
2754
+ type: CurrencyPipe,
2755
+ pure: true
2756
+ });
2757
+ }
2758
+ (() => {
2759
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CurrencyPipe, [{
2760
+ type: Pipe,
2761
+ args: [{
2762
+ name: 'currency'
2763
+ }]
2764
+ }], () => [{
2765
+ type: undefined,
2766
+ decorators: [{
2767
+ type: Inject,
2768
+ args: [LOCALE_ID]
2769
+ }]
2770
+ }, {
2771
+ type: undefined,
2772
+ decorators: [{
2773
+ type: Inject,
2774
+ args: [DEFAULT_CURRENCY_CODE]
2775
+ }]
2776
+ }], null);
2777
+ })();
2778
+ function isValue(value) {
2779
+ return !(value == null || value === '' || value !== value);
2780
+ }
2781
+ function strToNumber(value) {
2782
+ if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {
2783
+ return Number(value);
2784
+ }
2785
+ if (typeof value !== 'number') {
2786
+ throw new _RuntimeError(2309, ngDevMode && `${value} is not a number`);
2787
+ }
2788
+ return value;
2789
+ }
2790
+ class SlicePipe {
2791
+ transform(value, start, end) {
2792
+ if (value == null) return null;
2793
+ const supports = typeof value === 'string' || Array.isArray(value);
2794
+ if (!supports) {
2795
+ throw invalidPipeArgumentError(SlicePipe, value);
2796
+ }
2797
+ return value.slice(start, end);
2798
+ }
2799
+ static ɵfac = function SlicePipe_Factory(__ngFactoryType__) {
2800
+ return new (__ngFactoryType__ || SlicePipe)();
2801
+ };
2802
+ static ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({
2803
+ name: "slice",
2804
+ type: SlicePipe,
2805
+ pure: false
2806
+ });
2807
+ }
2808
+ (() => {
2809
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SlicePipe, [{
2810
+ type: Pipe,
2811
+ args: [{
2812
+ name: 'slice',
2813
+ pure: false
2814
+ }]
2815
+ }], null, null);
2816
+ })();
2817
+ const COMMON_PIPES = [AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe];
2818
+ class CommonModule {
2819
+ static ɵfac = function CommonModule_Factory(__ngFactoryType__) {
2820
+ return new (__ngFactoryType__ || CommonModule)();
2821
+ };
2822
+ static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({
2823
+ type: CommonModule
2824
+ });
2825
+ static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});
2826
+ }
2827
+ (() => {
2828
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CommonModule, [{
2829
+ type: NgModule,
2830
+ args: [{
2831
+ imports: [COMMON_DIRECTIVES, COMMON_PIPES],
2832
+ exports: [COMMON_DIRECTIVES, COMMON_PIPES]
2833
+ }]
2834
+ }], null, null);
2835
+ })();
2836
+ export { AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PercentPipe, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, WeekDay, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits };