@angular/core 17.1.0 → 17.2.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/authoring/queries.mjs +113 -0
- package/esm2022/src/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2022/src/core_render3_private_export.mjs +2 -2
- package/esm2022/src/linker/compiler.mjs +1 -1
- package/esm2022/src/metadata/di.mjs +7 -7
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/index.mjs +2 -2
- package/esm2022/src/render3/instructions/queries.mjs +16 -1
- package/esm2022/src/render3/jit/directive.mjs +2 -1
- package/esm2022/src/render3/jit/environment.mjs +4 -1
- package/esm2022/src/render3/node_manipulation.mjs +2 -5
- package/esm2022/src/render3/util/global_utils.mjs +3 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +30 -13
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +11 -6
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +770 -710
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/migrations/compiler-options/bundle.js +13 -13
- package/schematics/migrations/transfer-state/bundle.js +13 -13
- package/schematics/ng-generate/control-flow-migration/bundle.js +779 -719
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +1833 -1584
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
|
@@ -63,7 +63,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
// bazel-out/
|
|
66
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
|
|
67
67
|
var block_template_entities_exports = {};
|
|
68
68
|
__export(block_template_entities_exports, {
|
|
69
69
|
default: () => block_template_entities_default
|
|
@@ -72,7 +72,7 @@ module.exports = __toCommonJS(block_template_entities_exports);
|
|
|
72
72
|
var import_schematics = require("@angular-devkit/schematics");
|
|
73
73
|
var import_path3 = require("path");
|
|
74
74
|
|
|
75
|
-
// bazel-out/
|
|
75
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
|
|
76
76
|
var import_core = require("@angular-devkit/core");
|
|
77
77
|
function getProjectTsConfigPaths(tree) {
|
|
78
78
|
return __async(this, null, function* () {
|
|
@@ -152,11 +152,11 @@ function getWorkspace(tree) {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
// bazel-out/
|
|
155
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
156
156
|
var import_path = require("path");
|
|
157
157
|
var import_typescript2 = __toESM(require("typescript"), 1);
|
|
158
158
|
|
|
159
|
-
// bazel-out/
|
|
159
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
|
|
160
160
|
var path = __toESM(require("path"), 1);
|
|
161
161
|
var import_typescript = __toESM(require("typescript"), 1);
|
|
162
162
|
function parseTsconfigFile(tsconfigPath, basePath) {
|
|
@@ -173,7 +173,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
|
|
|
173
173
|
return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
// bazel-out/
|
|
176
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
|
|
177
177
|
function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
|
|
178
178
|
const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
|
|
179
179
|
return import_typescript2.default.createProgram(rootNames, options, host);
|
|
@@ -206,7 +206,7 @@ function canMigrateFile(basePath, sourceFile, program) {
|
|
|
206
206
|
return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
// bazel-out/
|
|
209
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/selector.mjs
|
|
210
210
|
var _SELECTOR_REGEXP = new RegExp(
|
|
211
211
|
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
212
212
|
"g"
|
|
@@ -514,7 +514,7 @@ var SelectorContext = class {
|
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
516
|
|
|
517
|
-
// bazel-out/
|
|
517
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/core.mjs
|
|
518
518
|
var ViewEncapsulation;
|
|
519
519
|
(function(ViewEncapsulation2) {
|
|
520
520
|
ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
|
|
@@ -582,7 +582,7 @@ function parseSelectorToR3Selector(selector) {
|
|
|
582
582
|
return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
// bazel-out/
|
|
585
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/digest.mjs
|
|
586
586
|
var textEncoder;
|
|
587
587
|
function computeDigest(message) {
|
|
588
588
|
return sha1(serializeNodes(message.nodes).join("") + `[${message.meaning}]`);
|
|
@@ -822,7 +822,7 @@ function wordAt(bytes, index, endian) {
|
|
|
822
822
|
return word;
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
// bazel-out/
|
|
825
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_ast.mjs
|
|
826
826
|
var TypeModifier;
|
|
827
827
|
(function(TypeModifier2) {
|
|
828
828
|
TypeModifier2[TypeModifier2["None"] = 0] = "None";
|
|
@@ -1781,7 +1781,7 @@ function serializeTags(tags) {
|
|
|
1781
1781
|
return out;
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
|
-
// bazel-out/
|
|
1784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/constant_pool.mjs
|
|
1785
1785
|
var CONSTANT_PREFIX = "_c";
|
|
1786
1786
|
var UNKNOWN_VALUE_KEY = variable("<unknown>");
|
|
1787
1787
|
var KEY_CONTEXT = {};
|
|
@@ -1964,7 +1964,7 @@ function isLongStringLiteral(expr) {
|
|
|
1964
1964
|
return expr instanceof LiteralExpr && typeof expr.value === "string" && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
|
|
1965
1965
|
}
|
|
1966
1966
|
|
|
1967
|
-
// bazel-out/
|
|
1967
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_identifiers.mjs
|
|
1968
1968
|
var CORE = "@angular/core";
|
|
1969
1969
|
var _Identifiers = class {
|
|
1970
1970
|
};
|
|
@@ -2539,6 +2539,15 @@ var Identifiers = _Identifiers;
|
|
|
2539
2539
|
(() => {
|
|
2540
2540
|
_Identifiers.contentQuery = { name: "\u0275\u0275contentQuery", moduleName: CORE };
|
|
2541
2541
|
})();
|
|
2542
|
+
(() => {
|
|
2543
|
+
_Identifiers.viewQuerySignal = { name: "\u0275\u0275viewQuerySignal", moduleName: CORE };
|
|
2544
|
+
})();
|
|
2545
|
+
(() => {
|
|
2546
|
+
_Identifiers.contentQuerySignal = { name: "\u0275\u0275contentQuerySignal", moduleName: CORE };
|
|
2547
|
+
})();
|
|
2548
|
+
(() => {
|
|
2549
|
+
_Identifiers.queryAdvance = { name: "\u0275\u0275queryAdvance", moduleName: CORE };
|
|
2550
|
+
})();
|
|
2542
2551
|
(() => {
|
|
2543
2552
|
_Identifiers.NgOnChangesFeature = { name: "\u0275\u0275NgOnChangesFeature", moduleName: CORE };
|
|
2544
2553
|
})();
|
|
@@ -2609,7 +2618,7 @@ var Identifiers = _Identifiers;
|
|
|
2609
2618
|
_Identifiers.UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
|
|
2610
2619
|
})();
|
|
2611
2620
|
|
|
2612
|
-
// bazel-out/
|
|
2621
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/util.mjs
|
|
2613
2622
|
var DASH_CASE_REGEXP = /-+([a-z0-9])/g;
|
|
2614
2623
|
function dashCaseToCamelCase(input) {
|
|
2615
2624
|
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
|
|
@@ -2697,7 +2706,7 @@ function partitionArray(arr, conditionFn) {
|
|
|
2697
2706
|
return [truthy, falsy];
|
|
2698
2707
|
}
|
|
2699
2708
|
|
|
2700
|
-
// bazel-out/
|
|
2709
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/source_map.mjs
|
|
2701
2710
|
var VERSION = 3;
|
|
2702
2711
|
var JS_B64_PREFIX = "# sourceMappingURL=data:application/json;base64,";
|
|
2703
2712
|
var SourceMapGenerator = class {
|
|
@@ -2826,7 +2835,7 @@ function toBase64Digit(value) {
|
|
|
2826
2835
|
return B64_DIGITS[value];
|
|
2827
2836
|
}
|
|
2828
2837
|
|
|
2829
|
-
// bazel-out/
|
|
2838
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_emitter.mjs
|
|
2830
2839
|
var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
|
|
2831
2840
|
var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
|
|
2832
2841
|
var _INDENT_WITH = " ";
|
|
@@ -3314,7 +3323,7 @@ function _createIndent(count) {
|
|
|
3314
3323
|
return res;
|
|
3315
3324
|
}
|
|
3316
3325
|
|
|
3317
|
-
// bazel-out/
|
|
3326
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/util.mjs
|
|
3318
3327
|
function typeWithParameters(type, numParams) {
|
|
3319
3328
|
if (numParams === 0) {
|
|
3320
3329
|
return expressionType(type);
|
|
@@ -3379,7 +3388,7 @@ function generateForwardRef(expr) {
|
|
|
3379
3388
|
return importExpr(Identifiers.forwardRef).callFn([arrowFn([], expr)]);
|
|
3380
3389
|
}
|
|
3381
3390
|
|
|
3382
|
-
// bazel-out/
|
|
3391
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_factory.mjs
|
|
3383
3392
|
var R3FactoryDelegateType;
|
|
3384
3393
|
(function(R3FactoryDelegateType2) {
|
|
3385
3394
|
R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
|
|
@@ -3524,7 +3533,7 @@ function getInjectFn(target) {
|
|
|
3524
3533
|
}
|
|
3525
3534
|
}
|
|
3526
3535
|
|
|
3527
|
-
// bazel-out/
|
|
3536
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/tags.mjs
|
|
3528
3537
|
var TagContentType;
|
|
3529
3538
|
(function(TagContentType2) {
|
|
3530
3539
|
TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
|
|
@@ -3561,7 +3570,7 @@ function mergeNsAndName(prefix, localName) {
|
|
|
3561
3570
|
return prefix ? `:${prefix}:${localName}` : localName;
|
|
3562
3571
|
}
|
|
3563
3572
|
|
|
3564
|
-
// bazel-out/
|
|
3573
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_ast.mjs
|
|
3565
3574
|
var Comment = class {
|
|
3566
3575
|
constructor(value, sourceSpan) {
|
|
3567
3576
|
this.value = value;
|
|
@@ -3942,7 +3951,7 @@ function visitAll(visitor, nodes) {
|
|
|
3942
3951
|
return result;
|
|
3943
3952
|
}
|
|
3944
3953
|
|
|
3945
|
-
// bazel-out/
|
|
3954
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_ast.mjs
|
|
3946
3955
|
var Message = class {
|
|
3947
3956
|
constructor(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
|
|
3948
3957
|
this.nodes = nodes;
|
|
@@ -4080,7 +4089,7 @@ var LocalizeMessageStringVisitor = class {
|
|
|
4080
4089
|
}
|
|
4081
4090
|
};
|
|
4082
4091
|
|
|
4083
|
-
// bazel-out/
|
|
4092
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xml_helper.mjs
|
|
4084
4093
|
var _Visitor = class {
|
|
4085
4094
|
visitTag(tag) {
|
|
4086
4095
|
const strAttrs = this._serializeAttributes(tag.attrs);
|
|
@@ -4108,12 +4117,12 @@ ${doctype.dtd}
|
|
|
4108
4117
|
};
|
|
4109
4118
|
var _visitor = new _Visitor();
|
|
4110
4119
|
|
|
4111
|
-
// bazel-out/
|
|
4120
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/xmb.mjs
|
|
4112
4121
|
function toPublicName(internalName) {
|
|
4113
4122
|
return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, "_");
|
|
4114
4123
|
}
|
|
4115
4124
|
|
|
4116
|
-
// bazel-out/
|
|
4125
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/util.mjs
|
|
4117
4126
|
var CLOSURE_TRANSLATION_VAR_PREFIX = "MSG_";
|
|
4118
4127
|
var TRANSLATION_VAR_PREFIX = "i18n_";
|
|
4119
4128
|
var I18N_ATTR = "i18n";
|
|
@@ -4215,7 +4224,7 @@ function declareI18nVariable(variable2) {
|
|
|
4215
4224
|
return new DeclareVarStmt(variable2.name, void 0, INFERRED_TYPE, void 0, variable2.sourceSpan);
|
|
4216
4225
|
}
|
|
4217
4226
|
|
|
4218
|
-
// bazel-out/
|
|
4227
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/util.mjs
|
|
4219
4228
|
var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
|
|
4220
4229
|
var TEMPORARY_NAME = "_t";
|
|
4221
4230
|
var CONTEXT_NAME = "ctx";
|
|
@@ -4284,11 +4293,11 @@ var CHAINABLE_INSTRUCTIONS = /* @__PURE__ */ new Set([
|
|
|
4284
4293
|
function invokeInstruction(span, reference2, params) {
|
|
4285
4294
|
return importExpr(reference2, null, span).callFn(params, span);
|
|
4286
4295
|
}
|
|
4287
|
-
function temporaryAllocator(
|
|
4296
|
+
function temporaryAllocator(pushStatement, name) {
|
|
4288
4297
|
let temp = null;
|
|
4289
4298
|
return () => {
|
|
4290
4299
|
if (!temp) {
|
|
4291
|
-
|
|
4300
|
+
pushStatement(new DeclareVarStmt(TEMPORARY_NAME, void 0, DYNAMIC_TYPE));
|
|
4292
4301
|
temp = variable(name);
|
|
4293
4302
|
}
|
|
4294
4303
|
return temp;
|
|
@@ -4368,24 +4377,6 @@ function trimTrailingNulls(parameters) {
|
|
|
4368
4377
|
}
|
|
4369
4378
|
return parameters;
|
|
4370
4379
|
}
|
|
4371
|
-
function getQueryPredicate(query, constantPool) {
|
|
4372
|
-
if (Array.isArray(query.predicate)) {
|
|
4373
|
-
let predicate = [];
|
|
4374
|
-
query.predicate.forEach((selector) => {
|
|
4375
|
-
const selectors = selector.split(",").map((token) => literal(token.trim()));
|
|
4376
|
-
predicate.push(...selectors);
|
|
4377
|
-
});
|
|
4378
|
-
return constantPool.getConstLiteral(literalArr(predicate), true);
|
|
4379
|
-
} else {
|
|
4380
|
-
switch (query.predicate.forwardRef) {
|
|
4381
|
-
case 0:
|
|
4382
|
-
case 2:
|
|
4383
|
-
return query.predicate.expression;
|
|
4384
|
-
case 1:
|
|
4385
|
-
return importExpr(Identifiers.resolveForwardRef).callFn([query.predicate.expression]);
|
|
4386
|
-
}
|
|
4387
|
-
}
|
|
4388
|
-
}
|
|
4389
4380
|
var DefinitionMap = class {
|
|
4390
4381
|
constructor() {
|
|
4391
4382
|
this.values = [];
|
|
@@ -4477,7 +4468,7 @@ function getInstructionStatements(instructions) {
|
|
|
4477
4468
|
return statements;
|
|
4478
4469
|
}
|
|
4479
4470
|
|
|
4480
|
-
// bazel-out/
|
|
4471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/injectable_compiler_2.mjs
|
|
4481
4472
|
function compileInjectable(meta, resolveForwardRefs) {
|
|
4482
4473
|
let result = null;
|
|
4483
4474
|
const factoryMeta = {
|
|
@@ -4562,7 +4553,7 @@ function createFactoryFunction(type) {
|
|
|
4562
4553
|
return arrowFn([new FnParam("t", DYNAMIC_TYPE)], type.prop("\u0275fac").callFn([variable("t")]));
|
|
4563
4554
|
}
|
|
4564
4555
|
|
|
4565
|
-
// bazel-out/
|
|
4556
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
4566
4557
|
var UNUSABLE_INTERPOLATION_REGEXPS = [
|
|
4567
4558
|
/^\s*$/,
|
|
4568
4559
|
/[<>]/,
|
|
@@ -4584,7 +4575,7 @@ function assertInterpolationSymbols(identifier, value) {
|
|
|
4584
4575
|
}
|
|
4585
4576
|
}
|
|
4586
4577
|
|
|
4587
|
-
// bazel-out/
|
|
4578
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/defaults.mjs
|
|
4588
4579
|
var InterpolationConfig = class {
|
|
4589
4580
|
static fromArray(markers) {
|
|
4590
4581
|
if (!markers) {
|
|
@@ -4601,7 +4592,7 @@ var InterpolationConfig = class {
|
|
|
4601
4592
|
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
|
|
4602
4593
|
var DEFAULT_CONTAINER_BLOCKS = /* @__PURE__ */ new Set(["switch"]);
|
|
4603
4594
|
|
|
4604
|
-
// bazel-out/
|
|
4595
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/chars.mjs
|
|
4605
4596
|
var $EOF = 0;
|
|
4606
4597
|
var $BSPACE = 8;
|
|
4607
4598
|
var $TAB = 9;
|
|
@@ -4683,7 +4674,7 @@ function isQuote(code) {
|
|
|
4683
4674
|
return code === $SQ || code === $DQ || code === $BT;
|
|
4684
4675
|
}
|
|
4685
4676
|
|
|
4686
|
-
// bazel-out/
|
|
4677
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/parse_util.mjs
|
|
4687
4678
|
var ParseLocation = class {
|
|
4688
4679
|
constructor(file, offset, line, col) {
|
|
4689
4680
|
this.file = file;
|
|
@@ -4830,7 +4821,7 @@ function sanitizeIdentifier(name) {
|
|
|
4830
4821
|
return name.replace(/\W/g, "_");
|
|
4831
4822
|
}
|
|
4832
4823
|
|
|
4833
|
-
// bazel-out/
|
|
4824
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/abstract_js_emitter.mjs
|
|
4834
4825
|
var makeTemplateObjectPolyfill = '(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})';
|
|
4835
4826
|
var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
4836
4827
|
constructor() {
|
|
@@ -4923,7 +4914,7 @@ var AbstractJsEmitterVisitor = class extends AbstractEmitterVisitor {
|
|
|
4923
4914
|
}
|
|
4924
4915
|
};
|
|
4925
4916
|
|
|
4926
|
-
// bazel-out/
|
|
4917
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit_trusted_types.mjs
|
|
4927
4918
|
var policy;
|
|
4928
4919
|
function getPolicy() {
|
|
4929
4920
|
if (policy === void 0) {
|
|
@@ -4961,7 +4952,7 @@ function newTrustedFunctionForJIT(...args) {
|
|
|
4961
4952
|
return fn2.bind(_global);
|
|
4962
4953
|
}
|
|
4963
4954
|
|
|
4964
|
-
// bazel-out/
|
|
4955
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/output_jit.mjs
|
|
4965
4956
|
var JitEvaluator = class {
|
|
4966
4957
|
evaluateStatements(sourceUrl, statements, refResolver, createSourceMaps) {
|
|
4967
4958
|
const converter = new JitEmitterVisitor(refResolver);
|
|
@@ -5052,7 +5043,7 @@ function isUseStrictStatement(statement) {
|
|
|
5052
5043
|
return statement.isEquivalent(literal("use strict").toStmt());
|
|
5053
5044
|
}
|
|
5054
5045
|
|
|
5055
|
-
// bazel-out/
|
|
5046
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_injector_compiler.mjs
|
|
5056
5047
|
function compileInjector(meta) {
|
|
5057
5048
|
const definitionMap = new DefinitionMap();
|
|
5058
5049
|
if (meta.providers !== null) {
|
|
@@ -5069,7 +5060,7 @@ function createInjectorType(meta) {
|
|
|
5069
5060
|
return new ExpressionType(importExpr(Identifiers.InjectorDeclaration, [new ExpressionType(meta.type.type)]));
|
|
5070
5061
|
}
|
|
5071
5062
|
|
|
5072
|
-
// bazel-out/
|
|
5063
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_jit.mjs
|
|
5073
5064
|
var R3JitReflector = class {
|
|
5074
5065
|
constructor(context) {
|
|
5075
5066
|
this.context = context;
|
|
@@ -5085,7 +5076,7 @@ var R3JitReflector = class {
|
|
|
5085
5076
|
}
|
|
5086
5077
|
};
|
|
5087
5078
|
|
|
5088
|
-
// bazel-out/
|
|
5079
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_module_compiler.mjs
|
|
5089
5080
|
var R3SelectorScopeMode;
|
|
5090
5081
|
(function(R3SelectorScopeMode2) {
|
|
5091
5082
|
R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
|
|
@@ -5226,7 +5217,7 @@ function tupleOfTypes(types) {
|
|
|
5226
5217
|
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
5227
5218
|
}
|
|
5228
5219
|
|
|
5229
|
-
// bazel-out/
|
|
5220
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_pipe_compiler.mjs
|
|
5230
5221
|
function compilePipeFromMetadata(metadata) {
|
|
5231
5222
|
const definitionMapValues = [];
|
|
5232
5223
|
definitionMapValues.push({ key: "name", value: literal(metadata.pipeName), quoted: false });
|
|
@@ -5247,7 +5238,7 @@ function createPipeType(metadata) {
|
|
|
5247
5238
|
]));
|
|
5248
5239
|
}
|
|
5249
5240
|
|
|
5250
|
-
// bazel-out/
|
|
5241
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/api.mjs
|
|
5251
5242
|
var R3TemplateDependencyKind;
|
|
5252
5243
|
(function(R3TemplateDependencyKind2) {
|
|
5253
5244
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
|
|
@@ -5255,7 +5246,7 @@ var R3TemplateDependencyKind;
|
|
|
5255
5246
|
R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
|
|
5256
5247
|
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
|
|
5257
5248
|
|
|
5258
|
-
// bazel-out/
|
|
5249
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/ast.mjs
|
|
5259
5250
|
var ParserError = class {
|
|
5260
5251
|
constructor(message, input, errLocation, ctxLocation) {
|
|
5261
5252
|
this.input = input;
|
|
@@ -5921,7 +5912,7 @@ var BoundElementProperty = class {
|
|
|
5921
5912
|
}
|
|
5922
5913
|
};
|
|
5923
5914
|
|
|
5924
|
-
// bazel-out/
|
|
5915
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler_util/expression_converter.mjs
|
|
5925
5916
|
var _EventHandlerVars = class {
|
|
5926
5917
|
};
|
|
5927
5918
|
var EventHandlerVars = _EventHandlerVars;
|
|
@@ -6562,7 +6553,7 @@ var BuiltinFunctionCall = class extends Call {
|
|
|
6562
6553
|
}
|
|
6563
6554
|
};
|
|
6564
6555
|
|
|
6565
|
-
// bazel-out/
|
|
6556
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_security_schema.mjs
|
|
6566
6557
|
var _SECURITY_SCHEMA;
|
|
6567
6558
|
function SECURITY_SCHEMA() {
|
|
6568
6559
|
if (!_SECURITY_SCHEMA) {
|
|
@@ -6620,7 +6611,7 @@ function isIframeSecuritySensitiveAttr(attrName) {
|
|
|
6620
6611
|
return IFRAME_SECURITY_SENSITIVE_ATTRS.has(attrName.toLowerCase());
|
|
6621
6612
|
}
|
|
6622
6613
|
|
|
6623
|
-
// bazel-out/
|
|
6614
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/shadow_css.mjs
|
|
6624
6615
|
var animationKeywords = /* @__PURE__ */ new Set([
|
|
6625
6616
|
"inherit",
|
|
6626
6617
|
"initial",
|
|
@@ -6650,6 +6641,7 @@ var animationKeywords = /* @__PURE__ */ new Set([
|
|
|
6650
6641
|
"jump-start",
|
|
6651
6642
|
"start"
|
|
6652
6643
|
]);
|
|
6644
|
+
var scopedAtRuleIdentifiers = ["@media", "@supports", "@document", "@layer", "@container", "@scope", "@starting-style"];
|
|
6653
6645
|
var ShadowCss = class {
|
|
6654
6646
|
constructor() {
|
|
6655
6647
|
this._animationDeclarationKeyframesRe = /(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;
|
|
@@ -6784,7 +6776,7 @@ var ShadowCss = class {
|
|
|
6784
6776
|
let content = rule.content;
|
|
6785
6777
|
if (rule.selector[0] !== "@") {
|
|
6786
6778
|
selector = this._scopeSelector(rule.selector, scopeSelector, hostSelector);
|
|
6787
|
-
} else if (
|
|
6779
|
+
} else if (scopedAtRuleIdentifiers.some((atRule) => rule.selector.startsWith(atRule))) {
|
|
6788
6780
|
content = this._scopeSelectors(rule.content, scopeSelector, hostSelector);
|
|
6789
6781
|
} else if (rule.selector.startsWith("@font-face") || rule.selector.startsWith("@page")) {
|
|
6790
6782
|
content = this._stripScopingSelectors(rule.content);
|
|
@@ -7091,7 +7083,7 @@ function repeatGroups(groups, multiples) {
|
|
|
7091
7083
|
}
|
|
7092
7084
|
}
|
|
7093
7085
|
|
|
7094
|
-
// bazel-out/
|
|
7086
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/enums.mjs
|
|
7095
7087
|
var OpKind;
|
|
7096
7088
|
(function(OpKind2) {
|
|
7097
7089
|
OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
|
|
@@ -7250,7 +7242,7 @@ var TemplateKind;
|
|
|
7250
7242
|
TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
|
|
7251
7243
|
})(TemplateKind || (TemplateKind = {}));
|
|
7252
7244
|
|
|
7253
|
-
// bazel-out/
|
|
7245
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/traits.mjs
|
|
7254
7246
|
var ConsumesSlot = Symbol("ConsumesSlot");
|
|
7255
7247
|
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
|
|
7256
7248
|
var ConsumesVarsTrait = Symbol("ConsumesVars");
|
|
@@ -7282,7 +7274,7 @@ function hasUsesVarOffsetTrait(expr) {
|
|
|
7282
7274
|
return expr[UsesVarOffset] === true;
|
|
7283
7275
|
}
|
|
7284
7276
|
|
|
7285
|
-
// bazel-out/
|
|
7277
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/shared.mjs
|
|
7286
7278
|
function createStatementOp(statement) {
|
|
7287
7279
|
return __spreadValues({
|
|
7288
7280
|
kind: OpKind.Statement,
|
|
@@ -7304,7 +7296,7 @@ var NEW_OP = {
|
|
|
7304
7296
|
next: null
|
|
7305
7297
|
};
|
|
7306
7298
|
|
|
7307
|
-
// bazel-out/
|
|
7299
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/update.mjs
|
|
7308
7300
|
function createInterpolateTextOp(xref, interpolation, sourceSpan) {
|
|
7309
7301
|
return __spreadValues(__spreadValues(__spreadValues({
|
|
7310
7302
|
kind: OpKind.InterpolateText,
|
|
@@ -7470,7 +7462,7 @@ function createI18nApplyOp(owner, handle, sourceSpan) {
|
|
|
7470
7462
|
}, NEW_OP);
|
|
7471
7463
|
}
|
|
7472
7464
|
|
|
7473
|
-
// bazel-out/
|
|
7465
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/expression.mjs
|
|
7474
7466
|
var _a;
|
|
7475
7467
|
var _b;
|
|
7476
7468
|
var _c;
|
|
@@ -8302,7 +8294,7 @@ function isStringLiteral(expr) {
|
|
|
8302
8294
|
return expr instanceof LiteralExpr && typeof expr.value === "string";
|
|
8303
8295
|
}
|
|
8304
8296
|
|
|
8305
|
-
// bazel-out/
|
|
8297
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/operations.mjs
|
|
8306
8298
|
var _OpList = class {
|
|
8307
8299
|
constructor() {
|
|
8308
8300
|
this.debugListId = _OpList.nextListId++;
|
|
@@ -8493,14 +8485,14 @@ var OpList = _OpList;
|
|
|
8493
8485
|
_OpList.nextListId = 0;
|
|
8494
8486
|
})();
|
|
8495
8487
|
|
|
8496
|
-
// bazel-out/
|
|
8488
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/handle.mjs
|
|
8497
8489
|
var SlotHandle = class {
|
|
8498
8490
|
constructor() {
|
|
8499
8491
|
this.slot = null;
|
|
8500
8492
|
}
|
|
8501
8493
|
};
|
|
8502
8494
|
|
|
8503
|
-
// bazel-out/
|
|
8495
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/create.mjs
|
|
8504
8496
|
var elementContainerOpKinds = /* @__PURE__ */ new Set([
|
|
8505
8497
|
OpKind.Element,
|
|
8506
8498
|
OpKind.ElementStart,
|
|
@@ -8787,7 +8779,7 @@ function createI18nAttributesOp(xref, handle, target) {
|
|
|
8787
8779
|
}, NEW_OP), TRAIT_CONSUMES_SLOT);
|
|
8788
8780
|
}
|
|
8789
8781
|
|
|
8790
|
-
// bazel-out/
|
|
8782
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/ops/host.mjs
|
|
8791
8783
|
function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext, securityContext, sourceSpan) {
|
|
8792
8784
|
return __spreadValues(__spreadValues({
|
|
8793
8785
|
kind: OpKind.HostProperty,
|
|
@@ -8801,10 +8793,10 @@ function createHostPropertyOp(name, expression, isAnimationTrigger, i18nContext,
|
|
|
8801
8793
|
}, TRAIT_CONSUMES_VARS), NEW_OP);
|
|
8802
8794
|
}
|
|
8803
8795
|
|
|
8804
|
-
// bazel-out/
|
|
8796
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/ir/src/variable.mjs
|
|
8805
8797
|
var CTX_REF = "CTX_REF_MARKER";
|
|
8806
8798
|
|
|
8807
|
-
// bazel-out/
|
|
8799
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/compilation.mjs
|
|
8808
8800
|
var CompilationJobKind;
|
|
8809
8801
|
(function(CompilationJobKind2) {
|
|
8810
8802
|
CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
|
|
@@ -8911,7 +8903,7 @@ var HostBindingCompilationUnit = class extends CompilationUnit {
|
|
|
8911
8903
|
}
|
|
8912
8904
|
};
|
|
8913
8905
|
|
|
8914
|
-
// bazel-out/
|
|
8906
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/any_cast.mjs
|
|
8915
8907
|
function deleteAnyCasts(job) {
|
|
8916
8908
|
for (const unit of job.units) {
|
|
8917
8909
|
for (const op of unit.ops()) {
|
|
@@ -8929,7 +8921,7 @@ function removeAnys(e) {
|
|
|
8929
8921
|
return e;
|
|
8930
8922
|
}
|
|
8931
8923
|
|
|
8932
|
-
// bazel-out/
|
|
8924
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/apply_i18n_expressions.mjs
|
|
8933
8925
|
function applyI18nExpressions(job) {
|
|
8934
8926
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
8935
8927
|
for (const unit of job.units) {
|
|
@@ -8972,7 +8964,7 @@ function needsApplication(i18nContexts, op) {
|
|
|
8972
8964
|
return false;
|
|
8973
8965
|
}
|
|
8974
8966
|
|
|
8975
|
-
// bazel-out/
|
|
8967
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/assign_i18n_slot_dependencies.mjs
|
|
8976
8968
|
function assignI18nSlotDependencies(job) {
|
|
8977
8969
|
for (const unit of job.units) {
|
|
8978
8970
|
let updateOp = unit.update.head;
|
|
@@ -9017,7 +9009,7 @@ function assignI18nSlotDependencies(job) {
|
|
|
9017
9009
|
}
|
|
9018
9010
|
}
|
|
9019
9011
|
|
|
9020
|
-
// bazel-out/
|
|
9012
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/util/elements.mjs
|
|
9021
9013
|
function createOpXrefMap(unit) {
|
|
9022
9014
|
const map = /* @__PURE__ */ new Map();
|
|
9023
9015
|
for (const op of unit.create) {
|
|
@@ -9032,7 +9024,7 @@ function createOpXrefMap(unit) {
|
|
|
9032
9024
|
return map;
|
|
9033
9025
|
}
|
|
9034
9026
|
|
|
9035
|
-
// bazel-out/
|
|
9027
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/attribute_extraction.mjs
|
|
9036
9028
|
function extractAttributes(job) {
|
|
9037
9029
|
for (const unit of job.units) {
|
|
9038
9030
|
const elements = createOpXrefMap(unit);
|
|
@@ -9134,7 +9126,7 @@ function extractAttributeOp(unit, op, elements) {
|
|
|
9134
9126
|
}
|
|
9135
9127
|
}
|
|
9136
9128
|
|
|
9137
|
-
// bazel-out/
|
|
9129
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/binding_specialization.mjs
|
|
9138
9130
|
function lookupElement2(elements, xref) {
|
|
9139
9131
|
const el = elements.get(xref);
|
|
9140
9132
|
if (el === void 0) {
|
|
@@ -9185,7 +9177,7 @@ function specializeBindings(job) {
|
|
|
9185
9177
|
}
|
|
9186
9178
|
}
|
|
9187
9179
|
|
|
9188
|
-
// bazel-out/
|
|
9180
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/chaining.mjs
|
|
9189
9181
|
var CHAINABLE = /* @__PURE__ */ new Set([
|
|
9190
9182
|
Identifiers.attribute,
|
|
9191
9183
|
Identifiers.classProp,
|
|
@@ -9251,7 +9243,7 @@ function chainOperationsInList(opList) {
|
|
|
9251
9243
|
}
|
|
9252
9244
|
}
|
|
9253
9245
|
|
|
9254
|
-
// bazel-out/
|
|
9246
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/collapse_singleton_interpolations.mjs
|
|
9255
9247
|
function collapseSingletonInterpolations(job) {
|
|
9256
9248
|
for (const unit of job.units) {
|
|
9257
9249
|
for (const op of unit.update) {
|
|
@@ -9263,7 +9255,7 @@ function collapseSingletonInterpolations(job) {
|
|
|
9263
9255
|
}
|
|
9264
9256
|
}
|
|
9265
9257
|
|
|
9266
|
-
// bazel-out/
|
|
9258
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/conditionals.mjs
|
|
9267
9259
|
function generateConditionalExpressions(job) {
|
|
9268
9260
|
for (const unit of job.units) {
|
|
9269
9261
|
for (const op of unit.ops()) {
|
|
@@ -9300,7 +9292,7 @@ function generateConditionalExpressions(job) {
|
|
|
9300
9292
|
}
|
|
9301
9293
|
}
|
|
9302
9294
|
|
|
9303
|
-
// bazel-out/
|
|
9295
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/conversion.mjs
|
|
9304
9296
|
var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
9305
9297
|
["&&", BinaryOperator.And],
|
|
9306
9298
|
[">", BinaryOperator.Bigger],
|
|
@@ -9351,7 +9343,7 @@ function literalOrArrayLiteral(value) {
|
|
|
9351
9343
|
return literal(value);
|
|
9352
9344
|
}
|
|
9353
9345
|
|
|
9354
|
-
// bazel-out/
|
|
9346
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/const_collection.mjs
|
|
9355
9347
|
function collectElementConsts(job) {
|
|
9356
9348
|
const allElementAttributes = /* @__PURE__ */ new Map();
|
|
9357
9349
|
for (const unit of job.units) {
|
|
@@ -9513,7 +9505,7 @@ function serializeAttributes({ attributes, bindings, classes, i18n: i18n2, proje
|
|
|
9513
9505
|
return literalArr(attrArray);
|
|
9514
9506
|
}
|
|
9515
9507
|
|
|
9516
|
-
// bazel-out/
|
|
9508
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/convert_i18n_bindings.mjs
|
|
9517
9509
|
function convertI18nBindings(job) {
|
|
9518
9510
|
const i18nAttributesByElem = /* @__PURE__ */ new Map();
|
|
9519
9511
|
for (const unit of job.units) {
|
|
@@ -9554,7 +9546,7 @@ function convertI18nBindings(job) {
|
|
|
9554
9546
|
}
|
|
9555
9547
|
}
|
|
9556
9548
|
|
|
9557
|
-
// bazel-out/
|
|
9549
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_defer_deps_fns.mjs
|
|
9558
9550
|
function createDeferDepsFns(job) {
|
|
9559
9551
|
for (const unit of job.units) {
|
|
9560
9552
|
for (const op of unit.create) {
|
|
@@ -9586,7 +9578,7 @@ function createDeferDepsFns(job) {
|
|
|
9586
9578
|
}
|
|
9587
9579
|
}
|
|
9588
9580
|
|
|
9589
|
-
// bazel-out/
|
|
9581
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/create_i18n_contexts.mjs
|
|
9590
9582
|
function createI18nContexts(job) {
|
|
9591
9583
|
const attrContextByMessage = /* @__PURE__ */ new Map();
|
|
9592
9584
|
for (const unit of job.units) {
|
|
@@ -9651,7 +9643,7 @@ function createI18nContexts(job) {
|
|
|
9651
9643
|
throw Error("AssertionError: Unexpected ICU outside of an i18n block.");
|
|
9652
9644
|
}
|
|
9653
9645
|
if (op.message.id !== currentI18nOp.message.id) {
|
|
9654
|
-
const contextOp = createI18nContextOp(I18nContextKind.Icu, job.allocateXrefId(), currentI18nOp.
|
|
9646
|
+
const contextOp = createI18nContextOp(I18nContextKind.Icu, job.allocateXrefId(), currentI18nOp.root, op.message, null);
|
|
9655
9647
|
unit.create.push(contextOp);
|
|
9656
9648
|
op.context = contextOp.xref;
|
|
9657
9649
|
} else {
|
|
@@ -9664,7 +9656,7 @@ function createI18nContexts(job) {
|
|
|
9664
9656
|
}
|
|
9665
9657
|
}
|
|
9666
9658
|
|
|
9667
|
-
// bazel-out/
|
|
9659
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/deduplicate_text_bindings.mjs
|
|
9668
9660
|
function deduplicateTextBindings(job) {
|
|
9669
9661
|
const seen = /* @__PURE__ */ new Map();
|
|
9670
9662
|
for (const unit of job.units) {
|
|
@@ -9686,7 +9678,7 @@ function deduplicateTextBindings(job) {
|
|
|
9686
9678
|
}
|
|
9687
9679
|
}
|
|
9688
9680
|
|
|
9689
|
-
// bazel-out/
|
|
9681
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_configs.mjs
|
|
9690
9682
|
function configureDeferInstructions(job) {
|
|
9691
9683
|
for (const unit of job.units) {
|
|
9692
9684
|
for (const op of unit.create) {
|
|
@@ -9703,7 +9695,7 @@ function configureDeferInstructions(job) {
|
|
|
9703
9695
|
}
|
|
9704
9696
|
}
|
|
9705
9697
|
|
|
9706
|
-
// bazel-out/
|
|
9698
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/defer_resolve_targets.mjs
|
|
9707
9699
|
function resolveDeferTargetNames(job) {
|
|
9708
9700
|
const scopes = /* @__PURE__ */ new Map();
|
|
9709
9701
|
function getScopeForView2(view) {
|
|
@@ -9797,7 +9789,7 @@ var Scope = class {
|
|
|
9797
9789
|
}
|
|
9798
9790
|
};
|
|
9799
9791
|
|
|
9800
|
-
// bazel-out/
|
|
9792
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/empty_elements.mjs
|
|
9801
9793
|
var REPLACEMENTS = /* @__PURE__ */ new Map([
|
|
9802
9794
|
[OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
|
|
9803
9795
|
[OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
|
|
@@ -9824,7 +9816,7 @@ function collapseEmptyInstructions(job) {
|
|
|
9824
9816
|
}
|
|
9825
9817
|
}
|
|
9826
9818
|
|
|
9827
|
-
// bazel-out/
|
|
9819
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/expand_safe_reads.mjs
|
|
9828
9820
|
function expandSafeReads(job) {
|
|
9829
9821
|
for (const unit of job.units) {
|
|
9830
9822
|
for (const op of unit.ops()) {
|
|
@@ -9960,7 +9952,7 @@ function ternaryTransform(e) {
|
|
|
9960
9952
|
return new ConditionalExpr(new BinaryOperatorExpr(BinaryOperator.Equals, e.guard, NULL_EXPR), NULL_EXPR, e.expr);
|
|
9961
9953
|
}
|
|
9962
9954
|
|
|
9963
|
-
// bazel-out/
|
|
9955
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/extract_i18n_messages.mjs
|
|
9964
9956
|
var ESCAPE = "\uFFFD";
|
|
9965
9957
|
var ELEMENT_MARKER = "#";
|
|
9966
9958
|
var TEMPLATE_MARKER = "*";
|
|
@@ -10096,7 +10088,7 @@ function formatValue(value) {
|
|
|
10096
10088
|
return `${ESCAPE}${closeMarker}${tagMarker}${value.value}${context}${ESCAPE}`;
|
|
10097
10089
|
}
|
|
10098
10090
|
|
|
10099
|
-
// bazel-out/
|
|
10091
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_advance.mjs
|
|
10100
10092
|
function generateAdvance(job) {
|
|
10101
10093
|
for (const unit of job.units) {
|
|
10102
10094
|
const slotMap = /* @__PURE__ */ new Map();
|
|
@@ -10128,7 +10120,7 @@ function generateAdvance(job) {
|
|
|
10128
10120
|
}
|
|
10129
10121
|
}
|
|
10130
10122
|
|
|
10131
|
-
// bazel-out/
|
|
10123
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_projection_def.mjs
|
|
10132
10124
|
function generateProjectionDefs(job) {
|
|
10133
10125
|
const share = job.compatibility === CompatibilityMode.TemplateDefinitionBuilder;
|
|
10134
10126
|
const selectors = [];
|
|
@@ -10152,7 +10144,7 @@ function generateProjectionDefs(job) {
|
|
|
10152
10144
|
}
|
|
10153
10145
|
}
|
|
10154
10146
|
|
|
10155
|
-
// bazel-out/
|
|
10147
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/generate_variables.mjs
|
|
10156
10148
|
function generateVariables(job) {
|
|
10157
10149
|
recursivelyProcessView(job.root, null);
|
|
10158
10150
|
}
|
|
@@ -10245,7 +10237,7 @@ function generateVariablesInScopeForView(view, scope) {
|
|
|
10245
10237
|
return newOps;
|
|
10246
10238
|
}
|
|
10247
10239
|
|
|
10248
|
-
// bazel-out/
|
|
10240
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/has_const_expression_collection.mjs
|
|
10249
10241
|
function collectConstExpressions(job) {
|
|
10250
10242
|
for (const unit of job.units) {
|
|
10251
10243
|
for (const op of unit.ops()) {
|
|
@@ -10259,7 +10251,7 @@ function collectConstExpressions(job) {
|
|
|
10259
10251
|
}
|
|
10260
10252
|
}
|
|
10261
10253
|
|
|
10262
|
-
// bazel-out/
|
|
10254
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.mjs
|
|
10263
10255
|
var STYLE_DOT = "style.";
|
|
10264
10256
|
var CLASS_DOT = "class.";
|
|
10265
10257
|
var STYLE_BANG = "style!";
|
|
@@ -10317,7 +10309,7 @@ function parseProperty(name) {
|
|
|
10317
10309
|
return { property: property2, suffix };
|
|
10318
10310
|
}
|
|
10319
10311
|
|
|
10320
|
-
// bazel-out/
|
|
10312
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/output/map_util.mjs
|
|
10321
10313
|
function mapLiteral(obj, quoted = false) {
|
|
10322
10314
|
return literalMap(Object.keys(obj).map((key) => ({
|
|
10323
10315
|
key,
|
|
@@ -10326,7 +10318,7 @@ function mapLiteral(obj, quoted = false) {
|
|
|
10326
10318
|
})));
|
|
10327
10319
|
}
|
|
10328
10320
|
|
|
10329
|
-
// bazel-out/
|
|
10321
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/icu_serializer.mjs
|
|
10330
10322
|
var IcuSerializerVisitor = class {
|
|
10331
10323
|
visitText(text2) {
|
|
10332
10324
|
return text2.value;
|
|
@@ -10360,7 +10352,7 @@ function serializeIcuNode(icu) {
|
|
|
10360
10352
|
return icu.visit(serializer);
|
|
10361
10353
|
}
|
|
10362
10354
|
|
|
10363
|
-
// bazel-out/
|
|
10355
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/lexer.mjs
|
|
10364
10356
|
var TokenType;
|
|
10365
10357
|
(function(TokenType2) {
|
|
10366
10358
|
TokenType2[TokenType2["Character"] = 0] = "Character";
|
|
@@ -10721,7 +10713,7 @@ function parseIntAutoRadix(text2) {
|
|
|
10721
10713
|
return result;
|
|
10722
10714
|
}
|
|
10723
10715
|
|
|
10724
|
-
// bazel-out/
|
|
10716
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/expression_parser/parser.mjs
|
|
10725
10717
|
var SplitInterpolation = class {
|
|
10726
10718
|
constructor(strings, expressions, offsets) {
|
|
10727
10719
|
this.strings = strings;
|
|
@@ -11615,7 +11607,7 @@ function getIndexMapForOriginalTemplate(interpolatedTokens) {
|
|
|
11615
11607
|
return offsetMap;
|
|
11616
11608
|
}
|
|
11617
11609
|
|
|
11618
|
-
// bazel-out/
|
|
11610
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/ast.mjs
|
|
11619
11611
|
var NodeWithI18n = class {
|
|
11620
11612
|
constructor(sourceSpan, i18n2) {
|
|
11621
11613
|
this.sourceSpan = sourceSpan;
|
|
@@ -11767,11 +11759,11 @@ var RecursiveVisitor = class {
|
|
|
11767
11759
|
}
|
|
11768
11760
|
};
|
|
11769
11761
|
|
|
11770
|
-
// bazel-out/
|
|
11762
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/element_schema_registry.mjs
|
|
11771
11763
|
var ElementSchemaRegistry = class {
|
|
11772
11764
|
};
|
|
11773
11765
|
|
|
11774
|
-
// bazel-out/
|
|
11766
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/dom_element_schema_registry.mjs
|
|
11775
11767
|
var BOOLEAN = "boolean";
|
|
11776
11768
|
var NUMBER = "number";
|
|
11777
11769
|
var STRING = "string";
|
|
@@ -12124,7 +12116,7 @@ function _isPixelDimensionStyle(prop) {
|
|
|
12124
12116
|
}
|
|
12125
12117
|
}
|
|
12126
12118
|
|
|
12127
|
-
// bazel-out/
|
|
12119
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_tags.mjs
|
|
12128
12120
|
var HtmlTagDefinition = class {
|
|
12129
12121
|
constructor({ closedByChildren, implicitNamespacePrefix, contentType = TagContentType.PARSABLE_DATA, closedByParent = false, isVoid = false, ignoreFirstLf = false, preventNamespaceInheritance = false, canSelfClose = false } = {}) {
|
|
12130
12122
|
this.closedByChildren = {};
|
|
@@ -12242,7 +12234,7 @@ function getHtmlTagDefinition(tagName) {
|
|
|
12242
12234
|
return (_b2 = (_a2 = TAG_DEFINITIONS[tagName]) != null ? _a2 : TAG_DEFINITIONS[tagName.toLowerCase()]) != null ? _b2 : DEFAULT_TAG_DEFINITION;
|
|
12243
12235
|
}
|
|
12244
12236
|
|
|
12245
|
-
// bazel-out/
|
|
12237
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/serializers/placeholder.mjs
|
|
12246
12238
|
var TAG_TO_PLACEHOLDER_NAMES = {
|
|
12247
12239
|
"A": "LINK",
|
|
12248
12240
|
"B": "BOLD_TEXT",
|
|
@@ -12364,7 +12356,7 @@ var PlaceholderRegistry = class {
|
|
|
12364
12356
|
}
|
|
12365
12357
|
};
|
|
12366
12358
|
|
|
12367
|
-
// bazel-out/
|
|
12359
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/i18n_parser.mjs
|
|
12368
12360
|
var _expParser = new Parser(new Lexer());
|
|
12369
12361
|
function createI18nMessageFactory(interpolationConfig, containerBlocks) {
|
|
12370
12362
|
const visitor = new _I18nVisitor(_expParser, interpolationConfig, containerBlocks);
|
|
@@ -12543,14 +12535,14 @@ function extractPlaceholderName(input) {
|
|
|
12543
12535
|
return input.split(_CUSTOM_PH_EXP)[2];
|
|
12544
12536
|
}
|
|
12545
12537
|
|
|
12546
|
-
// bazel-out/
|
|
12538
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/parse_util.mjs
|
|
12547
12539
|
var I18nError = class extends ParseError {
|
|
12548
12540
|
constructor(span, msg) {
|
|
12549
12541
|
super(span, msg);
|
|
12550
12542
|
}
|
|
12551
12543
|
};
|
|
12552
12544
|
|
|
12553
|
-
// bazel-out/
|
|
12545
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/entities.mjs
|
|
12554
12546
|
var NAMED_ENTITIES = {
|
|
12555
12547
|
"AElig": "\xC6",
|
|
12556
12548
|
"AMP": "&",
|
|
@@ -14681,7 +14673,7 @@ var NAMED_ENTITIES = {
|
|
|
14681
14673
|
var NGSP_UNICODE = "\uE500";
|
|
14682
14674
|
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
|
|
14683
14675
|
|
|
14684
|
-
// bazel-out/
|
|
14676
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/lexer.mjs
|
|
14685
14677
|
var TokenError = class extends ParseError {
|
|
14686
14678
|
constructor(errorMsg, tokenType, span) {
|
|
14687
14679
|
super(span, errorMsg);
|
|
@@ -15602,7 +15594,7 @@ var CursorError = class {
|
|
|
15602
15594
|
}
|
|
15603
15595
|
};
|
|
15604
15596
|
|
|
15605
|
-
// bazel-out/
|
|
15597
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/parser.mjs
|
|
15606
15598
|
var TreeError = class extends ParseError {
|
|
15607
15599
|
static create(elementName, span, msg) {
|
|
15608
15600
|
return new TreeError(elementName, span, msg);
|
|
@@ -15986,7 +15978,7 @@ function decodeEntity(match, entity) {
|
|
|
15986
15978
|
return match;
|
|
15987
15979
|
}
|
|
15988
15980
|
|
|
15989
|
-
// bazel-out/
|
|
15981
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/schema/trusted_types_sinks.mjs
|
|
15990
15982
|
var TRUSTED_TYPES_SINKS = /* @__PURE__ */ new Set([
|
|
15991
15983
|
"iframe|srcdoc",
|
|
15992
15984
|
"*|innerhtml",
|
|
@@ -16001,7 +15993,7 @@ function isTrustedTypesSink(tagName, propName) {
|
|
|
16001
15993
|
return TRUSTED_TYPES_SINKS.has(tagName + "|" + propName) || TRUSTED_TYPES_SINKS.has("*|" + propName);
|
|
16002
15994
|
}
|
|
16003
15995
|
|
|
16004
|
-
// bazel-out/
|
|
15996
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/meta.mjs
|
|
16005
15997
|
var setI18nRefs = (htmlNode, i18nNode) => {
|
|
16006
15998
|
if (htmlNode instanceof NodeWithI18n) {
|
|
16007
15999
|
if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
|
|
@@ -16158,7 +16150,7 @@ function i18nMetaToJSDoc(meta) {
|
|
|
16158
16150
|
return jsDocComment(tags);
|
|
16159
16151
|
}
|
|
16160
16152
|
|
|
16161
|
-
// bazel-out/
|
|
16153
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/get_msg_utils.mjs
|
|
16162
16154
|
var GOOG_GET_MSG = "goog.getMsg";
|
|
16163
16155
|
function createGoogleGetMsgStatements(variable2, message, closureVar, placeholderValues) {
|
|
16164
16156
|
const messageString = serializeI18nMessageForGetMsg(message);
|
|
@@ -16209,7 +16201,7 @@ function serializeI18nMessageForGetMsg(message) {
|
|
|
16209
16201
|
return message.nodes.map((node) => node.visit(serializerVisitor2, null)).join("");
|
|
16210
16202
|
}
|
|
16211
16203
|
|
|
16212
|
-
// bazel-out/
|
|
16204
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/localize_utils.mjs
|
|
16213
16205
|
function createLocalizeStatements(variable2, message, params) {
|
|
16214
16206
|
const { messageParts, placeHolders } = serializeI18nMessageForLocalize(message);
|
|
16215
16207
|
const sourceSpan = getSourceSpan(message);
|
|
@@ -16298,7 +16290,7 @@ function createEmptyMessagePart(location) {
|
|
|
16298
16290
|
return new LiteralPiece("", new ParseSourceSpan(location, location));
|
|
16299
16291
|
}
|
|
16300
16292
|
|
|
16301
|
-
// bazel-out/
|
|
16293
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_const_collection.mjs
|
|
16302
16294
|
var NG_I18N_CLOSURE_MODE = "ngI18nClosureMode";
|
|
16303
16295
|
var TRANSLATION_VAR_PREFIX2 = "i18n_";
|
|
16304
16296
|
var I18N_ICU_MAPPING_PREFIX2 = "I18N_EXP_";
|
|
@@ -16459,7 +16451,7 @@ function i18nGenerateClosureVar(pool, messageId, fileBasedI18nSuffix, useExterna
|
|
|
16459
16451
|
return variable(name);
|
|
16460
16452
|
}
|
|
16461
16453
|
|
|
16462
|
-
// bazel-out/
|
|
16454
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/i18n_text_extraction.mjs
|
|
16463
16455
|
function convertI18nText(job) {
|
|
16464
16456
|
var _a2, _b2, _c2;
|
|
16465
16457
|
for (const unit of job.units) {
|
|
@@ -16529,7 +16521,7 @@ function convertI18nText(job) {
|
|
|
16529
16521
|
}
|
|
16530
16522
|
}
|
|
16531
16523
|
|
|
16532
|
-
// bazel-out/
|
|
16524
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/local_refs.mjs
|
|
16533
16525
|
function liftLocalRefs(job) {
|
|
16534
16526
|
for (const unit of job.units) {
|
|
16535
16527
|
for (const op of unit.create) {
|
|
@@ -16559,7 +16551,7 @@ function serializeLocalRefs(refs) {
|
|
|
16559
16551
|
return literalArr(constRefs);
|
|
16560
16552
|
}
|
|
16561
16553
|
|
|
16562
|
-
// bazel-out/
|
|
16554
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/namespace.mjs
|
|
16563
16555
|
function emitNamespaceChanges(job) {
|
|
16564
16556
|
for (const unit of job.units) {
|
|
16565
16557
|
let activeNamespace = Namespace.HTML;
|
|
@@ -16575,7 +16567,7 @@ function emitNamespaceChanges(job) {
|
|
|
16575
16567
|
}
|
|
16576
16568
|
}
|
|
16577
16569
|
|
|
16578
|
-
// bazel-out/
|
|
16570
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/style_parser.mjs
|
|
16579
16571
|
function parse(value) {
|
|
16580
16572
|
const styles = [];
|
|
16581
16573
|
let i = 0;
|
|
@@ -16636,7 +16628,7 @@ function hyphenate2(value) {
|
|
|
16636
16628
|
}).toLowerCase();
|
|
16637
16629
|
}
|
|
16638
16630
|
|
|
16639
|
-
// bazel-out/
|
|
16631
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/naming.mjs
|
|
16640
16632
|
function nameFunctionsAndVariables(job) {
|
|
16641
16633
|
addNamesToView(job.root, job.componentName, { index: 0 }, job.compatibility === CompatibilityMode.TemplateDefinitionBuilder);
|
|
16642
16634
|
}
|
|
@@ -16756,7 +16748,7 @@ function stripImportant(name) {
|
|
|
16756
16748
|
return name;
|
|
16757
16749
|
}
|
|
16758
16750
|
|
|
16759
|
-
// bazel-out/
|
|
16751
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/next_context_merging.mjs
|
|
16760
16752
|
function mergeNextContextExpressions(job) {
|
|
16761
16753
|
for (const unit of job.units) {
|
|
16762
16754
|
for (const op of unit.create) {
|
|
@@ -16802,7 +16794,7 @@ function mergeNextContextsInOps(ops) {
|
|
|
16802
16794
|
}
|
|
16803
16795
|
}
|
|
16804
16796
|
|
|
16805
|
-
// bazel-out/
|
|
16797
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ng_container.mjs
|
|
16806
16798
|
var CONTAINER_TAG = "ng-container";
|
|
16807
16799
|
function generateNgContainerOps(job) {
|
|
16808
16800
|
for (const unit of job.units) {
|
|
@@ -16819,7 +16811,7 @@ function generateNgContainerOps(job) {
|
|
|
16819
16811
|
}
|
|
16820
16812
|
}
|
|
16821
16813
|
|
|
16822
|
-
// bazel-out/
|
|
16814
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nonbindable.mjs
|
|
16823
16815
|
function lookupElement3(elements, xref) {
|
|
16824
16816
|
const el = elements.get(xref);
|
|
16825
16817
|
if (el === void 0) {
|
|
@@ -16849,7 +16841,7 @@ function disableBindings(job) {
|
|
|
16849
16841
|
}
|
|
16850
16842
|
}
|
|
16851
16843
|
|
|
16852
|
-
// bazel-out/
|
|
16844
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/nullish_coalescing.mjs
|
|
16853
16845
|
function generateNullishCoalesceExpressions(job) {
|
|
16854
16846
|
for (const unit of job.units) {
|
|
16855
16847
|
for (const op of unit.ops()) {
|
|
@@ -16865,7 +16857,7 @@ function generateNullishCoalesceExpressions(job) {
|
|
|
16865
16857
|
}
|
|
16866
16858
|
}
|
|
16867
16859
|
|
|
16868
|
-
// bazel-out/
|
|
16860
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/ordering.mjs
|
|
16869
16861
|
function kindTest(kind) {
|
|
16870
16862
|
return (op) => op.kind === kind;
|
|
16871
16863
|
}
|
|
@@ -16947,7 +16939,7 @@ function keepLast(ops) {
|
|
|
16947
16939
|
return ops.slice(ops.length - 1);
|
|
16948
16940
|
}
|
|
16949
16941
|
|
|
16950
|
-
// bazel-out/
|
|
16942
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/parse_extracted_styles.mjs
|
|
16951
16943
|
function parseExtractedStyles(job) {
|
|
16952
16944
|
const elements = /* @__PURE__ */ new Map();
|
|
16953
16945
|
for (const unit of job.units) {
|
|
@@ -16982,7 +16974,7 @@ function parseExtractedStyles(job) {
|
|
|
16982
16974
|
}
|
|
16983
16975
|
}
|
|
16984
16976
|
|
|
16985
|
-
// bazel-out/
|
|
16977
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/phase_remove_content_selectors.mjs
|
|
16986
16978
|
function removeContentSelectors(job) {
|
|
16987
16979
|
for (const unit of job.units) {
|
|
16988
16980
|
const elements = createOpXrefMap(unit);
|
|
@@ -17009,7 +17001,7 @@ function lookupInXrefMap(map, xref) {
|
|
|
17009
17001
|
return el;
|
|
17010
17002
|
}
|
|
17011
17003
|
|
|
17012
|
-
// bazel-out/
|
|
17004
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_creation.mjs
|
|
17013
17005
|
function createPipes(job) {
|
|
17014
17006
|
for (const unit of job.units) {
|
|
17015
17007
|
processPipeBindingsInView(unit);
|
|
@@ -17057,7 +17049,7 @@ function addPipeToCreationBlock(unit, afterTargetXref, binding) {
|
|
|
17057
17049
|
throw new Error(`AssertionError: unable to find insertion point for pipe ${binding.name}`);
|
|
17058
17050
|
}
|
|
17059
17051
|
|
|
17060
|
-
// bazel-out/
|
|
17052
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pipe_variadic.mjs
|
|
17061
17053
|
function createVariadicPipes(job) {
|
|
17062
17054
|
for (const unit of job.units) {
|
|
17063
17055
|
for (const op of unit.update) {
|
|
@@ -17074,7 +17066,7 @@ function createVariadicPipes(job) {
|
|
|
17074
17066
|
}
|
|
17075
17067
|
}
|
|
17076
17068
|
|
|
17077
|
-
// bazel-out/
|
|
17069
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/propagate_i18n_blocks.mjs
|
|
17078
17070
|
function propagateI18nBlocks(job) {
|
|
17079
17071
|
propagateI18nBlocksToTemplates(job.root, 0);
|
|
17080
17072
|
}
|
|
@@ -17128,7 +17120,7 @@ function wrapTemplateWithI18n(unit, parentI18n) {
|
|
|
17128
17120
|
}
|
|
17129
17121
|
}
|
|
17130
17122
|
|
|
17131
|
-
// bazel-out/
|
|
17123
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_function_extraction.mjs
|
|
17132
17124
|
function extractPureFunctions(job) {
|
|
17133
17125
|
for (const view of job.units) {
|
|
17134
17126
|
for (const op of view.ops()) {
|
|
@@ -17170,7 +17162,7 @@ var PureFunctionConstant = class extends GenericKeyFn {
|
|
|
17170
17162
|
}
|
|
17171
17163
|
};
|
|
17172
17164
|
|
|
17173
|
-
// bazel-out/
|
|
17165
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/pure_literal_structures.mjs
|
|
17174
17166
|
function generatePureLiteralStructures(job) {
|
|
17175
17167
|
for (const unit of job.units) {
|
|
17176
17168
|
for (const op of unit.update) {
|
|
@@ -17217,7 +17209,7 @@ function transformLiteralMap(expr) {
|
|
|
17217
17209
|
return new PureFunctionExpr(literalMap(derivedEntries), nonConstantArgs);
|
|
17218
17210
|
}
|
|
17219
17211
|
|
|
17220
|
-
// bazel-out/
|
|
17212
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/instruction.mjs
|
|
17221
17213
|
function element(slot, tag, constIndex, localRefIndex, sourceSpan) {
|
|
17222
17214
|
return elementOrContainerBase(Identifiers.element, slot, tag, constIndex, localRefIndex, sourceSpan);
|
|
17223
17215
|
}
|
|
@@ -17739,7 +17731,7 @@ function callVariadicInstruction(config, baseArgs, interpolationArgs, extraArgs,
|
|
|
17739
17731
|
return createStatementOp(callVariadicInstructionExpr(config, baseArgs, interpolationArgs, extraArgs, sourceSpan).toStmt());
|
|
17740
17732
|
}
|
|
17741
17733
|
|
|
17742
|
-
// bazel-out/
|
|
17734
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/reify.mjs
|
|
17743
17735
|
var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
|
|
17744
17736
|
["window", Identifiers.resolveWindow],
|
|
17745
17737
|
["document", Identifiers.resolveDocument],
|
|
@@ -18072,7 +18064,7 @@ function reifyListenerHandler(unit, name, handlerOps, consumesDollarEvent) {
|
|
|
18072
18064
|
return fn(params, handlerStmts, void 0, void 0, name);
|
|
18073
18065
|
}
|
|
18074
18066
|
|
|
18075
|
-
// bazel-out/
|
|
18067
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_empty_bindings.mjs
|
|
18076
18068
|
function removeEmptyBindings(job) {
|
|
18077
18069
|
for (const unit of job.units) {
|
|
18078
18070
|
for (const op of unit.update) {
|
|
@@ -18093,7 +18085,7 @@ function removeEmptyBindings(job) {
|
|
|
18093
18085
|
}
|
|
18094
18086
|
}
|
|
18095
18087
|
|
|
18096
|
-
// bazel-out/
|
|
18088
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_i18n_contexts.mjs
|
|
18097
18089
|
function removeI18nContexts(job) {
|
|
18098
18090
|
for (const unit of job.units) {
|
|
18099
18091
|
for (const op of unit.create) {
|
|
@@ -18109,7 +18101,7 @@ function removeI18nContexts(job) {
|
|
|
18109
18101
|
}
|
|
18110
18102
|
}
|
|
18111
18103
|
|
|
18112
|
-
// bazel-out/
|
|
18104
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/remove_unused_i18n_attrs.mjs
|
|
18113
18105
|
function removeUnusedI18nAttributesOps(job) {
|
|
18114
18106
|
for (const unit of job.units) {
|
|
18115
18107
|
const ownersWithI18nExpressions = /* @__PURE__ */ new Set();
|
|
@@ -18131,7 +18123,7 @@ function removeUnusedI18nAttributesOps(job) {
|
|
|
18131
18123
|
}
|
|
18132
18124
|
}
|
|
18133
18125
|
|
|
18134
|
-
// bazel-out/
|
|
18126
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_contexts.mjs
|
|
18135
18127
|
function resolveContexts(job) {
|
|
18136
18128
|
for (const unit of job.units) {
|
|
18137
18129
|
processLexicalScope(unit, unit.create);
|
|
@@ -18172,7 +18164,7 @@ function processLexicalScope(view, ops) {
|
|
|
18172
18164
|
}
|
|
18173
18165
|
}
|
|
18174
18166
|
|
|
18175
|
-
// bazel-out/
|
|
18167
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_dollar_event.mjs
|
|
18176
18168
|
function resolveDollarEvent(job) {
|
|
18177
18169
|
for (const unit of job.units) {
|
|
18178
18170
|
transformDollarEvent(unit, unit.create);
|
|
@@ -18193,7 +18185,7 @@ function transformDollarEvent(unit, ops) {
|
|
|
18193
18185
|
}
|
|
18194
18186
|
}
|
|
18195
18187
|
|
|
18196
|
-
// bazel-out/
|
|
18188
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_element_placeholders.mjs
|
|
18197
18189
|
function resolveI18nElementPlaceholders(job) {
|
|
18198
18190
|
const i18nContexts = /* @__PURE__ */ new Map();
|
|
18199
18191
|
const elements = /* @__PURE__ */ new Map();
|
|
@@ -18372,7 +18364,7 @@ function addParam(params, placeholder, value, subTemplateIndex, flags) {
|
|
|
18372
18364
|
params.set(placeholder, values);
|
|
18373
18365
|
}
|
|
18374
18366
|
|
|
18375
|
-
// bazel-out/
|
|
18367
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_i18n_expression_placeholders.mjs
|
|
18376
18368
|
function resolveI18nExpressionPlaceholders(job) {
|
|
18377
18369
|
var _a2;
|
|
18378
18370
|
const subTemplateIndicies = /* @__PURE__ */ new Map();
|
|
@@ -18425,7 +18417,7 @@ function updatePlaceholder(op, value, i18nContexts, icuPlaceholders) {
|
|
|
18425
18417
|
}
|
|
18426
18418
|
}
|
|
18427
18419
|
|
|
18428
|
-
// bazel-out/
|
|
18420
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_names.mjs
|
|
18429
18421
|
function resolveNames(job) {
|
|
18430
18422
|
for (const unit of job.units) {
|
|
18431
18423
|
processLexicalScope2(unit, unit.create, null);
|
|
@@ -18489,7 +18481,7 @@ function processLexicalScope2(unit, ops, savedView) {
|
|
|
18489
18481
|
}
|
|
18490
18482
|
}
|
|
18491
18483
|
|
|
18492
|
-
// bazel-out/
|
|
18484
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/resolve_sanitizers.mjs
|
|
18493
18485
|
var sanitizerFns = /* @__PURE__ */ new Map([
|
|
18494
18486
|
[SecurityContext.HTML, Identifiers.sanitizeHtml],
|
|
18495
18487
|
[SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
|
|
@@ -18559,7 +18551,7 @@ function getOnlySecurityContext(securityContext) {
|
|
|
18559
18551
|
return securityContext;
|
|
18560
18552
|
}
|
|
18561
18553
|
|
|
18562
|
-
// bazel-out/
|
|
18554
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/save_restore_view.mjs
|
|
18563
18555
|
function saveAndRestoreView(job) {
|
|
18564
18556
|
for (const unit of job.units) {
|
|
18565
18557
|
unit.create.prepend([
|
|
@@ -18604,7 +18596,7 @@ function addSaveRestoreViewOperationToListener(unit, op) {
|
|
|
18604
18596
|
}
|
|
18605
18597
|
}
|
|
18606
18598
|
|
|
18607
|
-
// bazel-out/
|
|
18599
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/slot_allocation.mjs
|
|
18608
18600
|
function allocateSlots(job) {
|
|
18609
18601
|
const slotMap = /* @__PURE__ */ new Map();
|
|
18610
18602
|
for (const unit of job.units) {
|
|
@@ -18629,7 +18621,7 @@ function allocateSlots(job) {
|
|
|
18629
18621
|
}
|
|
18630
18622
|
}
|
|
18631
18623
|
|
|
18632
|
-
// bazel-out/
|
|
18624
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/style_binding_specialization.mjs
|
|
18633
18625
|
function specializeStyleBindings(job) {
|
|
18634
18626
|
for (const unit of job.units) {
|
|
18635
18627
|
for (const op of unit.update) {
|
|
@@ -18659,7 +18651,7 @@ function specializeStyleBindings(job) {
|
|
|
18659
18651
|
}
|
|
18660
18652
|
}
|
|
18661
18653
|
|
|
18662
|
-
// bazel-out/
|
|
18654
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/temporary_variables.mjs
|
|
18663
18655
|
function generateTemporaryVariables(job) {
|
|
18664
18656
|
for (const unit of job.units) {
|
|
18665
18657
|
unit.create.prepend(generateTemporaries(unit.create));
|
|
@@ -18717,7 +18709,7 @@ function assignName(names, expr) {
|
|
|
18717
18709
|
expr.name = name;
|
|
18718
18710
|
}
|
|
18719
18711
|
|
|
18720
|
-
// bazel-out/
|
|
18712
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_generation.mjs
|
|
18721
18713
|
function generateTrackFns(job) {
|
|
18722
18714
|
for (const unit of job.units) {
|
|
18723
18715
|
for (const op of unit.create) {
|
|
@@ -18750,7 +18742,7 @@ function generateTrackFns(job) {
|
|
|
18750
18742
|
}
|
|
18751
18743
|
}
|
|
18752
18744
|
|
|
18753
|
-
// bazel-out/
|
|
18745
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_fn_optimization.mjs
|
|
18754
18746
|
function optimizeTrackFns(job) {
|
|
18755
18747
|
for (const unit of job.units) {
|
|
18756
18748
|
for (const op of unit.create) {
|
|
@@ -18797,7 +18789,7 @@ function isTrackByFunctionCall(rootView, expr) {
|
|
|
18797
18789
|
return true;
|
|
18798
18790
|
}
|
|
18799
18791
|
|
|
18800
|
-
// bazel-out/
|
|
18792
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/track_variables.mjs
|
|
18801
18793
|
function generateTrackVariables(job) {
|
|
18802
18794
|
for (const unit of job.units) {
|
|
18803
18795
|
for (const op of unit.create) {
|
|
@@ -18818,7 +18810,7 @@ function generateTrackVariables(job) {
|
|
|
18818
18810
|
}
|
|
18819
18811
|
}
|
|
18820
18812
|
|
|
18821
|
-
// bazel-out/
|
|
18813
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/var_counting.mjs
|
|
18822
18814
|
function countVariables(job) {
|
|
18823
18815
|
for (const unit of job.units) {
|
|
18824
18816
|
let varCount = 0;
|
|
@@ -18926,7 +18918,7 @@ function isSingletonInterpolation(expr) {
|
|
|
18926
18918
|
return true;
|
|
18927
18919
|
}
|
|
18928
18920
|
|
|
18929
|
-
// bazel-out/
|
|
18921
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/variable_optimization.mjs
|
|
18930
18922
|
function optimizeVariables(job) {
|
|
18931
18923
|
for (const unit of job.units) {
|
|
18932
18924
|
inlineAlwaysInlineVariables(unit.create);
|
|
@@ -19176,7 +19168,7 @@ function allowConservativeInlining(decl, target) {
|
|
|
19176
19168
|
}
|
|
19177
19169
|
}
|
|
19178
19170
|
|
|
19179
|
-
// bazel-out/
|
|
19171
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/phases/wrap_icus.mjs
|
|
19180
19172
|
function wrapI18nIcus(job) {
|
|
19181
19173
|
for (const unit of job.units) {
|
|
19182
19174
|
let currentI18nOp = null;
|
|
@@ -19206,7 +19198,7 @@ function wrapI18nIcus(job) {
|
|
|
19206
19198
|
}
|
|
19207
19199
|
}
|
|
19208
19200
|
|
|
19209
|
-
// bazel-out/
|
|
19201
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/emit.mjs
|
|
19210
19202
|
var phases = [
|
|
19211
19203
|
{ kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
|
|
19212
19204
|
{ kind: CompilationJobKind.Host, fn: parseHostStyleProperties },
|
|
@@ -19371,7 +19363,7 @@ function emitHostBindingFunction(job) {
|
|
|
19371
19363
|
);
|
|
19372
19364
|
}
|
|
19373
19365
|
|
|
19374
|
-
// bazel-out/
|
|
19366
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/src/ingest.mjs
|
|
19375
19367
|
var compatibilityMode = CompatibilityMode.TemplateDefinitionBuilder;
|
|
19376
19368
|
var domSchema = new DomElementSchemaRegistry();
|
|
19377
19369
|
var NG_TEMPLATE_TAG_NAME = "ng-template";
|
|
@@ -20054,480 +20046,147 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
20054
20046
|
return null;
|
|
20055
20047
|
}
|
|
20056
20048
|
|
|
20057
|
-
// bazel-out/
|
|
20049
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template/pipeline/switch/index.mjs
|
|
20058
20050
|
var USE_TEMPLATE_PIPELINE = false;
|
|
20059
20051
|
|
|
20060
|
-
// bazel-out/
|
|
20061
|
-
var
|
|
20062
|
-
|
|
20063
|
-
|
|
20064
|
-
constructor(_directiveExpr) {
|
|
20065
|
-
this._directiveExpr = _directiveExpr;
|
|
20066
|
-
this._hasInitialValues = false;
|
|
20067
|
-
this.hasBindings = false;
|
|
20068
|
-
this.hasBindingsWithPipes = false;
|
|
20069
|
-
this._classMapInput = null;
|
|
20070
|
-
this._styleMapInput = null;
|
|
20071
|
-
this._singleStyleInputs = null;
|
|
20072
|
-
this._singleClassInputs = null;
|
|
20073
|
-
this._lastStylingInput = null;
|
|
20074
|
-
this._firstStylingInput = null;
|
|
20075
|
-
this._stylesIndex = /* @__PURE__ */ new Map();
|
|
20076
|
-
this._classesIndex = /* @__PURE__ */ new Map();
|
|
20077
|
-
this._initialStyleValues = [];
|
|
20078
|
-
this._initialClassValues = [];
|
|
20052
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
20053
|
+
var HtmlParser = class extends Parser2 {
|
|
20054
|
+
constructor() {
|
|
20055
|
+
super(getHtmlTagDefinition);
|
|
20079
20056
|
}
|
|
20080
|
-
|
|
20081
|
-
|
|
20082
|
-
let name = input.name;
|
|
20083
|
-
switch (input.type) {
|
|
20084
|
-
case 0:
|
|
20085
|
-
binding = this.registerInputBasedOnName(name, input.value, input.sourceSpan);
|
|
20086
|
-
break;
|
|
20087
|
-
case 3:
|
|
20088
|
-
binding = this.registerStyleInput(name, false, input.value, input.sourceSpan, input.unit);
|
|
20089
|
-
break;
|
|
20090
|
-
case 2:
|
|
20091
|
-
binding = this.registerClassInput(name, false, input.value, input.sourceSpan);
|
|
20092
|
-
break;
|
|
20093
|
-
}
|
|
20094
|
-
return binding ? true : false;
|
|
20057
|
+
parse(source, url, options) {
|
|
20058
|
+
return super.parse(source, url, options);
|
|
20095
20059
|
}
|
|
20096
|
-
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
|
|
20100
|
-
|
|
20101
|
-
|
|
20102
|
-
|
|
20103
|
-
|
|
20104
|
-
|
|
20105
|
-
|
|
20106
|
-
|
|
20107
|
-
|
|
20108
|
-
|
|
20060
|
+
};
|
|
20061
|
+
|
|
20062
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
20063
|
+
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
20064
|
+
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
20065
|
+
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
20066
|
+
var NO_WS_REGEXP = new RegExp(`[^${WS_CHARS}]`);
|
|
20067
|
+
var WS_REPLACE_REGEXP = new RegExp(`[${WS_CHARS}]{2,}`, "g");
|
|
20068
|
+
function hasPreserveWhitespacesAttr(attrs) {
|
|
20069
|
+
return attrs.some((attr) => attr.name === PRESERVE_WS_ATTR_NAME);
|
|
20070
|
+
}
|
|
20071
|
+
function replaceNgsp(value) {
|
|
20072
|
+
return value.replace(new RegExp(NGSP_UNICODE, "g"), " ");
|
|
20073
|
+
}
|
|
20074
|
+
var WhitespaceVisitor = class {
|
|
20075
|
+
visitElement(element2, context) {
|
|
20076
|
+
if (SKIP_WS_TRIM_TAGS.has(element2.name) || hasPreserveWhitespacesAttr(element2.attrs)) {
|
|
20077
|
+
return new Element2(element2.name, visitAll2(this, element2.attrs), element2.children, element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
20109
20078
|
}
|
|
20110
|
-
return
|
|
20079
|
+
return new Element2(element2.name, element2.attrs, visitAllWithSiblings(this, element2.children), element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
20111
20080
|
}
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
return null;
|
|
20115
|
-
}
|
|
20116
|
-
if (!isCssCustomProperty2(name)) {
|
|
20117
|
-
name = hyphenate2(name);
|
|
20118
|
-
}
|
|
20119
|
-
const { property: property2, hasOverrideFlag, suffix: bindingSuffix } = parseProperty2(name);
|
|
20120
|
-
suffix = typeof suffix === "string" && suffix.length !== 0 ? suffix : bindingSuffix;
|
|
20121
|
-
const entry = { name: property2, suffix, value, sourceSpan, hasOverrideFlag };
|
|
20122
|
-
if (isMapBased) {
|
|
20123
|
-
this._styleMapInput = entry;
|
|
20124
|
-
} else {
|
|
20125
|
-
(this._singleStyleInputs = this._singleStyleInputs || []).push(entry);
|
|
20126
|
-
registerIntoMap(this._stylesIndex, property2);
|
|
20127
|
-
}
|
|
20128
|
-
this._lastStylingInput = entry;
|
|
20129
|
-
this._firstStylingInput = this._firstStylingInput || entry;
|
|
20130
|
-
this._checkForPipes(value);
|
|
20131
|
-
this.hasBindings = true;
|
|
20132
|
-
return entry;
|
|
20081
|
+
visitAttribute(attribute2, context) {
|
|
20082
|
+
return attribute2.name !== PRESERVE_WS_ATTR_NAME ? attribute2 : null;
|
|
20133
20083
|
}
|
|
20134
|
-
|
|
20135
|
-
|
|
20136
|
-
|
|
20137
|
-
|
|
20138
|
-
|
|
20139
|
-
|
|
20140
|
-
|
|
20141
|
-
this._classMapInput = entry;
|
|
20142
|
-
} else {
|
|
20143
|
-
(this._singleClassInputs = this._singleClassInputs || []).push(entry);
|
|
20144
|
-
registerIntoMap(this._classesIndex, property2);
|
|
20084
|
+
visitText(text2, context) {
|
|
20085
|
+
const isNotBlank = text2.value.match(NO_WS_REGEXP);
|
|
20086
|
+
const hasExpansionSibling = context && (context.prev instanceof Expansion || context.next instanceof Expansion);
|
|
20087
|
+
if (isNotBlank || hasExpansionSibling) {
|
|
20088
|
+
const tokens = text2.tokens.map((token) => token.type === 5 ? createWhitespaceProcessedTextToken(token) : token);
|
|
20089
|
+
const value = processWhitespace(text2.value);
|
|
20090
|
+
return new Text4(value, text2.sourceSpan, tokens, text2.i18n);
|
|
20145
20091
|
}
|
|
20146
|
-
|
|
20147
|
-
this._firstStylingInput = this._firstStylingInput || entry;
|
|
20148
|
-
this._checkForPipes(value);
|
|
20149
|
-
this.hasBindings = true;
|
|
20150
|
-
return entry;
|
|
20092
|
+
return null;
|
|
20151
20093
|
}
|
|
20152
|
-
|
|
20153
|
-
|
|
20154
|
-
this.hasBindingsWithPipes = true;
|
|
20155
|
-
}
|
|
20094
|
+
visitComment(comment, context) {
|
|
20095
|
+
return comment;
|
|
20156
20096
|
}
|
|
20157
|
-
|
|
20158
|
-
|
|
20159
|
-
this._hasInitialValues = true;
|
|
20097
|
+
visitExpansion(expansion, context) {
|
|
20098
|
+
return expansion;
|
|
20160
20099
|
}
|
|
20161
|
-
|
|
20162
|
-
|
|
20163
|
-
this._hasInitialValues = true;
|
|
20100
|
+
visitExpansionCase(expansionCase, context) {
|
|
20101
|
+
return expansionCase;
|
|
20164
20102
|
}
|
|
20165
|
-
|
|
20166
|
-
|
|
20167
|
-
|
|
20168
|
-
|
|
20169
|
-
|
|
20170
|
-
|
|
20103
|
+
visitBlock(block, context) {
|
|
20104
|
+
return new Block(block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan, block.nameSpan, block.startSourceSpan, block.endSourceSpan);
|
|
20105
|
+
}
|
|
20106
|
+
visitBlockParameter(parameter, context) {
|
|
20107
|
+
return parameter;
|
|
20108
|
+
}
|
|
20109
|
+
};
|
|
20110
|
+
function createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {
|
|
20111
|
+
return { type, parts: [processWhitespace(parts[0])], sourceSpan };
|
|
20112
|
+
}
|
|
20113
|
+
function processWhitespace(text2) {
|
|
20114
|
+
return replaceNgsp(text2).replace(WS_REPLACE_REGEXP, " ");
|
|
20115
|
+
}
|
|
20116
|
+
function visitAllWithSiblings(visitor, nodes) {
|
|
20117
|
+
const result = [];
|
|
20118
|
+
nodes.forEach((ast, i) => {
|
|
20119
|
+
const context = { prev: nodes[i - 1], next: nodes[i + 1] };
|
|
20120
|
+
const astResult = ast.visit(visitor, context);
|
|
20121
|
+
if (astResult) {
|
|
20122
|
+
result.push(astResult);
|
|
20171
20123
|
}
|
|
20172
|
-
|
|
20173
|
-
|
|
20174
|
-
|
|
20175
|
-
|
|
20124
|
+
});
|
|
20125
|
+
return result;
|
|
20126
|
+
}
|
|
20127
|
+
|
|
20128
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
20129
|
+
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
20130
|
+
var ATTRIBUTE_PREFIX = "attr";
|
|
20131
|
+
var CLASS_PREFIX = "class";
|
|
20132
|
+
var STYLE_PREFIX = "style";
|
|
20133
|
+
var TEMPLATE_ATTR_PREFIX = "*";
|
|
20134
|
+
var ANIMATE_PROP_PREFIX = "animate-";
|
|
20135
|
+
var BindingParser = class {
|
|
20136
|
+
constructor(_exprParser, _interpolationConfig, _schemaRegistry, errors) {
|
|
20137
|
+
this._exprParser = _exprParser;
|
|
20138
|
+
this._interpolationConfig = _interpolationConfig;
|
|
20139
|
+
this._schemaRegistry = _schemaRegistry;
|
|
20140
|
+
this.errors = errors;
|
|
20141
|
+
}
|
|
20142
|
+
get interpolationConfig() {
|
|
20143
|
+
return this._interpolationConfig;
|
|
20144
|
+
}
|
|
20145
|
+
createBoundHostProperties(properties, sourceSpan) {
|
|
20146
|
+
const boundProps = [];
|
|
20147
|
+
for (const propName of Object.keys(properties)) {
|
|
20148
|
+
const expression = properties[propName];
|
|
20149
|
+
if (typeof expression === "string") {
|
|
20150
|
+
this.parsePropertyBinding(
|
|
20151
|
+
propName,
|
|
20152
|
+
expression,
|
|
20153
|
+
true,
|
|
20154
|
+
sourceSpan,
|
|
20155
|
+
sourceSpan.start.offset,
|
|
20156
|
+
void 0,
|
|
20157
|
+
[],
|
|
20158
|
+
boundProps,
|
|
20159
|
+
sourceSpan
|
|
20160
|
+
);
|
|
20161
|
+
} else {
|
|
20162
|
+
this._reportError(`Value of the host property binding "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
20176
20163
|
}
|
|
20177
20164
|
}
|
|
20165
|
+
return boundProps;
|
|
20178
20166
|
}
|
|
20179
|
-
|
|
20180
|
-
|
|
20181
|
-
|
|
20182
|
-
|
|
20167
|
+
createDirectiveHostEventAsts(hostListeners, sourceSpan) {
|
|
20168
|
+
const targetEvents = [];
|
|
20169
|
+
for (const propName of Object.keys(hostListeners)) {
|
|
20170
|
+
const expression = hostListeners[propName];
|
|
20171
|
+
if (typeof expression === "string") {
|
|
20172
|
+
this.parseEvent(propName, expression, false, sourceSpan, sourceSpan, [], targetEvents, sourceSpan);
|
|
20173
|
+
} else {
|
|
20174
|
+
this._reportError(`Value of the host listener "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
20175
|
+
}
|
|
20183
20176
|
}
|
|
20177
|
+
return targetEvents;
|
|
20184
20178
|
}
|
|
20185
|
-
|
|
20186
|
-
|
|
20187
|
-
|
|
20188
|
-
|
|
20189
|
-
|
|
20190
|
-
|
|
20191
|
-
|
|
20192
|
-
|
|
20193
|
-
|
|
20194
|
-
|
|
20195
|
-
|
|
20196
|
-
}
|
|
20197
|
-
_buildMapBasedInstruction(valueConverter, isClassBased, stylingInput) {
|
|
20198
|
-
let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;
|
|
20199
|
-
const mapValue = stylingInput.value.visit(valueConverter);
|
|
20200
|
-
let reference2;
|
|
20201
|
-
if (mapValue instanceof Interpolation) {
|
|
20202
|
-
totalBindingSlotsRequired += mapValue.expressions.length;
|
|
20203
|
-
reference2 = isClassBased ? getClassMapInterpolationExpression(mapValue) : getStyleMapInterpolationExpression(mapValue);
|
|
20204
|
-
} else {
|
|
20205
|
-
reference2 = isClassBased ? Identifiers.classMap : Identifiers.styleMap;
|
|
20206
|
-
}
|
|
20207
|
-
return {
|
|
20208
|
-
reference: reference2,
|
|
20209
|
-
calls: [{
|
|
20210
|
-
supportsInterpolation: true,
|
|
20211
|
-
sourceSpan: stylingInput.sourceSpan,
|
|
20212
|
-
allocateBindingSlots: totalBindingSlotsRequired,
|
|
20213
|
-
params: (convertFn) => {
|
|
20214
|
-
const convertResult = convertFn(mapValue);
|
|
20215
|
-
const params = Array.isArray(convertResult) ? convertResult : [convertResult];
|
|
20216
|
-
return params;
|
|
20217
|
-
}
|
|
20218
|
-
}]
|
|
20219
|
-
};
|
|
20220
|
-
}
|
|
20221
|
-
_buildSingleInputs(reference2, inputs, valueConverter, getInterpolationExpressionFn, isClassBased) {
|
|
20222
|
-
const instructions = [];
|
|
20223
|
-
inputs.forEach((input) => {
|
|
20224
|
-
const previousInstruction = instructions[instructions.length - 1];
|
|
20225
|
-
const value = input.value.visit(valueConverter);
|
|
20226
|
-
let referenceForCall = reference2;
|
|
20227
|
-
let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;
|
|
20228
|
-
if (value instanceof Interpolation) {
|
|
20229
|
-
totalBindingSlotsRequired += value.expressions.length;
|
|
20230
|
-
if (getInterpolationExpressionFn) {
|
|
20231
|
-
referenceForCall = getInterpolationExpressionFn(value);
|
|
20232
|
-
}
|
|
20233
|
-
}
|
|
20234
|
-
const call2 = {
|
|
20235
|
-
sourceSpan: input.sourceSpan,
|
|
20236
|
-
allocateBindingSlots: totalBindingSlotsRequired,
|
|
20237
|
-
supportsInterpolation: !!getInterpolationExpressionFn,
|
|
20238
|
-
params: (convertFn) => {
|
|
20239
|
-
const params = [];
|
|
20240
|
-
params.push(literal(input.name));
|
|
20241
|
-
const convertResult = convertFn(value);
|
|
20242
|
-
if (Array.isArray(convertResult)) {
|
|
20243
|
-
params.push(...convertResult);
|
|
20244
|
-
} else {
|
|
20245
|
-
params.push(convertResult);
|
|
20246
|
-
}
|
|
20247
|
-
if (!isClassBased && input.suffix !== null) {
|
|
20248
|
-
params.push(literal(input.suffix));
|
|
20249
|
-
}
|
|
20250
|
-
return params;
|
|
20251
|
-
}
|
|
20252
|
-
};
|
|
20253
|
-
if (previousInstruction && previousInstruction.reference === referenceForCall) {
|
|
20254
|
-
previousInstruction.calls.push(call2);
|
|
20255
|
-
} else {
|
|
20256
|
-
instructions.push({ reference: referenceForCall, calls: [call2] });
|
|
20257
|
-
}
|
|
20258
|
-
});
|
|
20259
|
-
return instructions;
|
|
20260
|
-
}
|
|
20261
|
-
_buildClassInputs(valueConverter) {
|
|
20262
|
-
if (this._singleClassInputs) {
|
|
20263
|
-
return this._buildSingleInputs(Identifiers.classProp, this._singleClassInputs, valueConverter, null, true);
|
|
20264
|
-
}
|
|
20265
|
-
return [];
|
|
20266
|
-
}
|
|
20267
|
-
_buildStyleInputs(valueConverter) {
|
|
20268
|
-
if (this._singleStyleInputs) {
|
|
20269
|
-
return this._buildSingleInputs(Identifiers.styleProp, this._singleStyleInputs, valueConverter, getStylePropInterpolationExpression, false);
|
|
20270
|
-
}
|
|
20271
|
-
return [];
|
|
20272
|
-
}
|
|
20273
|
-
buildUpdateLevelInstructions(valueConverter) {
|
|
20274
|
-
const instructions = [];
|
|
20275
|
-
if (this.hasBindings) {
|
|
20276
|
-
const styleMapInstruction = this.buildStyleMapInstruction(valueConverter);
|
|
20277
|
-
if (styleMapInstruction) {
|
|
20278
|
-
instructions.push(styleMapInstruction);
|
|
20279
|
-
}
|
|
20280
|
-
const classMapInstruction = this.buildClassMapInstruction(valueConverter);
|
|
20281
|
-
if (classMapInstruction) {
|
|
20282
|
-
instructions.push(classMapInstruction);
|
|
20283
|
-
}
|
|
20284
|
-
instructions.push(...this._buildStyleInputs(valueConverter));
|
|
20285
|
-
instructions.push(...this._buildClassInputs(valueConverter));
|
|
20286
|
-
}
|
|
20287
|
-
return instructions;
|
|
20288
|
-
}
|
|
20289
|
-
};
|
|
20290
|
-
function registerIntoMap(map, key) {
|
|
20291
|
-
if (!map.has(key)) {
|
|
20292
|
-
map.set(key, map.size);
|
|
20293
|
-
}
|
|
20294
|
-
}
|
|
20295
|
-
function parseProperty2(name) {
|
|
20296
|
-
let hasOverrideFlag = false;
|
|
20297
|
-
const overrideIndex = name.indexOf(IMPORTANT_FLAG);
|
|
20298
|
-
if (overrideIndex !== -1) {
|
|
20299
|
-
name = overrideIndex > 0 ? name.substring(0, overrideIndex) : "";
|
|
20300
|
-
hasOverrideFlag = true;
|
|
20301
|
-
}
|
|
20302
|
-
let suffix = null;
|
|
20303
|
-
let property2 = name;
|
|
20304
|
-
const unitIndex = name.lastIndexOf(".");
|
|
20305
|
-
if (unitIndex > 0) {
|
|
20306
|
-
suffix = name.slice(unitIndex + 1);
|
|
20307
|
-
property2 = name.substring(0, unitIndex);
|
|
20308
|
-
}
|
|
20309
|
-
return { property: property2, suffix, hasOverrideFlag };
|
|
20310
|
-
}
|
|
20311
|
-
function getClassMapInterpolationExpression(interpolation) {
|
|
20312
|
-
switch (getInterpolationArgsLength(interpolation)) {
|
|
20313
|
-
case 1:
|
|
20314
|
-
return Identifiers.classMap;
|
|
20315
|
-
case 3:
|
|
20316
|
-
return Identifiers.classMapInterpolate1;
|
|
20317
|
-
case 5:
|
|
20318
|
-
return Identifiers.classMapInterpolate2;
|
|
20319
|
-
case 7:
|
|
20320
|
-
return Identifiers.classMapInterpolate3;
|
|
20321
|
-
case 9:
|
|
20322
|
-
return Identifiers.classMapInterpolate4;
|
|
20323
|
-
case 11:
|
|
20324
|
-
return Identifiers.classMapInterpolate5;
|
|
20325
|
-
case 13:
|
|
20326
|
-
return Identifiers.classMapInterpolate6;
|
|
20327
|
-
case 15:
|
|
20328
|
-
return Identifiers.classMapInterpolate7;
|
|
20329
|
-
case 17:
|
|
20330
|
-
return Identifiers.classMapInterpolate8;
|
|
20331
|
-
default:
|
|
20332
|
-
return Identifiers.classMapInterpolateV;
|
|
20333
|
-
}
|
|
20334
|
-
}
|
|
20335
|
-
function getStyleMapInterpolationExpression(interpolation) {
|
|
20336
|
-
switch (getInterpolationArgsLength(interpolation)) {
|
|
20337
|
-
case 1:
|
|
20338
|
-
return Identifiers.styleMap;
|
|
20339
|
-
case 3:
|
|
20340
|
-
return Identifiers.styleMapInterpolate1;
|
|
20341
|
-
case 5:
|
|
20342
|
-
return Identifiers.styleMapInterpolate2;
|
|
20343
|
-
case 7:
|
|
20344
|
-
return Identifiers.styleMapInterpolate3;
|
|
20345
|
-
case 9:
|
|
20346
|
-
return Identifiers.styleMapInterpolate4;
|
|
20347
|
-
case 11:
|
|
20348
|
-
return Identifiers.styleMapInterpolate5;
|
|
20349
|
-
case 13:
|
|
20350
|
-
return Identifiers.styleMapInterpolate6;
|
|
20351
|
-
case 15:
|
|
20352
|
-
return Identifiers.styleMapInterpolate7;
|
|
20353
|
-
case 17:
|
|
20354
|
-
return Identifiers.styleMapInterpolate8;
|
|
20355
|
-
default:
|
|
20356
|
-
return Identifiers.styleMapInterpolateV;
|
|
20357
|
-
}
|
|
20358
|
-
}
|
|
20359
|
-
function getStylePropInterpolationExpression(interpolation) {
|
|
20360
|
-
switch (getInterpolationArgsLength(interpolation)) {
|
|
20361
|
-
case 1:
|
|
20362
|
-
return Identifiers.styleProp;
|
|
20363
|
-
case 3:
|
|
20364
|
-
return Identifiers.stylePropInterpolate1;
|
|
20365
|
-
case 5:
|
|
20366
|
-
return Identifiers.stylePropInterpolate2;
|
|
20367
|
-
case 7:
|
|
20368
|
-
return Identifiers.stylePropInterpolate3;
|
|
20369
|
-
case 9:
|
|
20370
|
-
return Identifiers.stylePropInterpolate4;
|
|
20371
|
-
case 11:
|
|
20372
|
-
return Identifiers.stylePropInterpolate5;
|
|
20373
|
-
case 13:
|
|
20374
|
-
return Identifiers.stylePropInterpolate6;
|
|
20375
|
-
case 15:
|
|
20376
|
-
return Identifiers.stylePropInterpolate7;
|
|
20377
|
-
case 17:
|
|
20378
|
-
return Identifiers.stylePropInterpolate8;
|
|
20379
|
-
default:
|
|
20380
|
-
return Identifiers.stylePropInterpolateV;
|
|
20381
|
-
}
|
|
20382
|
-
}
|
|
20383
|
-
function isCssCustomProperty2(name) {
|
|
20384
|
-
return name.startsWith("--");
|
|
20385
|
-
}
|
|
20386
|
-
function isEmptyExpression(ast) {
|
|
20387
|
-
if (ast instanceof ASTWithSource) {
|
|
20388
|
-
ast = ast.ast;
|
|
20389
|
-
}
|
|
20390
|
-
return ast instanceof EmptyExpr;
|
|
20391
|
-
}
|
|
20392
|
-
|
|
20393
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_parser.mjs
|
|
20394
|
-
var HtmlParser = class extends Parser2 {
|
|
20395
|
-
constructor() {
|
|
20396
|
-
super(getHtmlTagDefinition);
|
|
20397
|
-
}
|
|
20398
|
-
parse(source, url, options) {
|
|
20399
|
-
return super.parse(source, url, options);
|
|
20400
|
-
}
|
|
20401
|
-
};
|
|
20402
|
-
|
|
20403
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/ml_parser/html_whitespaces.mjs
|
|
20404
|
-
var PRESERVE_WS_ATTR_NAME = "ngPreserveWhitespaces";
|
|
20405
|
-
var SKIP_WS_TRIM_TAGS = /* @__PURE__ */ new Set(["pre", "template", "textarea", "script", "style"]);
|
|
20406
|
-
var WS_CHARS = " \f\n\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
|
|
20407
|
-
var NO_WS_REGEXP = new RegExp(`[^${WS_CHARS}]`);
|
|
20408
|
-
var WS_REPLACE_REGEXP = new RegExp(`[${WS_CHARS}]{2,}`, "g");
|
|
20409
|
-
function hasPreserveWhitespacesAttr(attrs) {
|
|
20410
|
-
return attrs.some((attr) => attr.name === PRESERVE_WS_ATTR_NAME);
|
|
20411
|
-
}
|
|
20412
|
-
function replaceNgsp(value) {
|
|
20413
|
-
return value.replace(new RegExp(NGSP_UNICODE, "g"), " ");
|
|
20414
|
-
}
|
|
20415
|
-
var WhitespaceVisitor = class {
|
|
20416
|
-
visitElement(element2, context) {
|
|
20417
|
-
if (SKIP_WS_TRIM_TAGS.has(element2.name) || hasPreserveWhitespacesAttr(element2.attrs)) {
|
|
20418
|
-
return new Element2(element2.name, visitAll2(this, element2.attrs), element2.children, element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
20419
|
-
}
|
|
20420
|
-
return new Element2(element2.name, element2.attrs, visitAllWithSiblings(this, element2.children), element2.sourceSpan, element2.startSourceSpan, element2.endSourceSpan, element2.i18n);
|
|
20421
|
-
}
|
|
20422
|
-
visitAttribute(attribute2, context) {
|
|
20423
|
-
return attribute2.name !== PRESERVE_WS_ATTR_NAME ? attribute2 : null;
|
|
20424
|
-
}
|
|
20425
|
-
visitText(text2, context) {
|
|
20426
|
-
const isNotBlank = text2.value.match(NO_WS_REGEXP);
|
|
20427
|
-
const hasExpansionSibling = context && (context.prev instanceof Expansion || context.next instanceof Expansion);
|
|
20428
|
-
if (isNotBlank || hasExpansionSibling) {
|
|
20429
|
-
const tokens = text2.tokens.map((token) => token.type === 5 ? createWhitespaceProcessedTextToken(token) : token);
|
|
20430
|
-
const value = processWhitespace(text2.value);
|
|
20431
|
-
return new Text4(value, text2.sourceSpan, tokens, text2.i18n);
|
|
20432
|
-
}
|
|
20433
|
-
return null;
|
|
20434
|
-
}
|
|
20435
|
-
visitComment(comment, context) {
|
|
20436
|
-
return comment;
|
|
20437
|
-
}
|
|
20438
|
-
visitExpansion(expansion, context) {
|
|
20439
|
-
return expansion;
|
|
20440
|
-
}
|
|
20441
|
-
visitExpansionCase(expansionCase, context) {
|
|
20442
|
-
return expansionCase;
|
|
20443
|
-
}
|
|
20444
|
-
visitBlock(block, context) {
|
|
20445
|
-
return new Block(block.name, block.parameters, visitAllWithSiblings(this, block.children), block.sourceSpan, block.nameSpan, block.startSourceSpan, block.endSourceSpan);
|
|
20446
|
-
}
|
|
20447
|
-
visitBlockParameter(parameter, context) {
|
|
20448
|
-
return parameter;
|
|
20449
|
-
}
|
|
20450
|
-
};
|
|
20451
|
-
function createWhitespaceProcessedTextToken({ type, parts, sourceSpan }) {
|
|
20452
|
-
return { type, parts: [processWhitespace(parts[0])], sourceSpan };
|
|
20453
|
-
}
|
|
20454
|
-
function processWhitespace(text2) {
|
|
20455
|
-
return replaceNgsp(text2).replace(WS_REPLACE_REGEXP, " ");
|
|
20456
|
-
}
|
|
20457
|
-
function visitAllWithSiblings(visitor, nodes) {
|
|
20458
|
-
const result = [];
|
|
20459
|
-
nodes.forEach((ast, i) => {
|
|
20460
|
-
const context = { prev: nodes[i - 1], next: nodes[i + 1] };
|
|
20461
|
-
const astResult = ast.visit(visitor, context);
|
|
20462
|
-
if (astResult) {
|
|
20463
|
-
result.push(astResult);
|
|
20464
|
-
}
|
|
20465
|
-
});
|
|
20466
|
-
return result;
|
|
20467
|
-
}
|
|
20468
|
-
|
|
20469
|
-
// bazel-out/darwin-fastbuild/bin/packages/compiler/src/template_parser/binding_parser.mjs
|
|
20470
|
-
var PROPERTY_PARTS_SEPARATOR = ".";
|
|
20471
|
-
var ATTRIBUTE_PREFIX = "attr";
|
|
20472
|
-
var CLASS_PREFIX = "class";
|
|
20473
|
-
var STYLE_PREFIX = "style";
|
|
20474
|
-
var TEMPLATE_ATTR_PREFIX = "*";
|
|
20475
|
-
var ANIMATE_PROP_PREFIX = "animate-";
|
|
20476
|
-
var BindingParser = class {
|
|
20477
|
-
constructor(_exprParser, _interpolationConfig, _schemaRegistry, errors) {
|
|
20478
|
-
this._exprParser = _exprParser;
|
|
20479
|
-
this._interpolationConfig = _interpolationConfig;
|
|
20480
|
-
this._schemaRegistry = _schemaRegistry;
|
|
20481
|
-
this.errors = errors;
|
|
20482
|
-
}
|
|
20483
|
-
get interpolationConfig() {
|
|
20484
|
-
return this._interpolationConfig;
|
|
20485
|
-
}
|
|
20486
|
-
createBoundHostProperties(properties, sourceSpan) {
|
|
20487
|
-
const boundProps = [];
|
|
20488
|
-
for (const propName of Object.keys(properties)) {
|
|
20489
|
-
const expression = properties[propName];
|
|
20490
|
-
if (typeof expression === "string") {
|
|
20491
|
-
this.parsePropertyBinding(
|
|
20492
|
-
propName,
|
|
20493
|
-
expression,
|
|
20494
|
-
true,
|
|
20495
|
-
sourceSpan,
|
|
20496
|
-
sourceSpan.start.offset,
|
|
20497
|
-
void 0,
|
|
20498
|
-
[],
|
|
20499
|
-
boundProps,
|
|
20500
|
-
sourceSpan
|
|
20501
|
-
);
|
|
20502
|
-
} else {
|
|
20503
|
-
this._reportError(`Value of the host property binding "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
20504
|
-
}
|
|
20505
|
-
}
|
|
20506
|
-
return boundProps;
|
|
20507
|
-
}
|
|
20508
|
-
createDirectiveHostEventAsts(hostListeners, sourceSpan) {
|
|
20509
|
-
const targetEvents = [];
|
|
20510
|
-
for (const propName of Object.keys(hostListeners)) {
|
|
20511
|
-
const expression = hostListeners[propName];
|
|
20512
|
-
if (typeof expression === "string") {
|
|
20513
|
-
this.parseEvent(propName, expression, false, sourceSpan, sourceSpan, [], targetEvents, sourceSpan);
|
|
20514
|
-
} else {
|
|
20515
|
-
this._reportError(`Value of the host listener "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
20516
|
-
}
|
|
20517
|
-
}
|
|
20518
|
-
return targetEvents;
|
|
20519
|
-
}
|
|
20520
|
-
parseInterpolation(value, sourceSpan, interpolatedTokens) {
|
|
20521
|
-
const sourceInfo = sourceSpan.start.toString();
|
|
20522
|
-
const absoluteOffset = sourceSpan.fullStart.offset;
|
|
20523
|
-
try {
|
|
20524
|
-
const ast = this._exprParser.parseInterpolation(value, sourceInfo, absoluteOffset, interpolatedTokens, this._interpolationConfig);
|
|
20525
|
-
if (ast)
|
|
20526
|
-
this._reportExpressionParserErrors(ast.errors, sourceSpan);
|
|
20527
|
-
return ast;
|
|
20528
|
-
} catch (e) {
|
|
20529
|
-
this._reportError(`${e}`, sourceSpan);
|
|
20530
|
-
return this._exprParser.wrapLiteralPrimitive("ERROR", sourceInfo, absoluteOffset);
|
|
20179
|
+
parseInterpolation(value, sourceSpan, interpolatedTokens) {
|
|
20180
|
+
const sourceInfo = sourceSpan.start.toString();
|
|
20181
|
+
const absoluteOffset = sourceSpan.fullStart.offset;
|
|
20182
|
+
try {
|
|
20183
|
+
const ast = this._exprParser.parseInterpolation(value, sourceInfo, absoluteOffset, interpolatedTokens, this._interpolationConfig);
|
|
20184
|
+
if (ast)
|
|
20185
|
+
this._reportExpressionParserErrors(ast.errors, sourceSpan);
|
|
20186
|
+
return ast;
|
|
20187
|
+
} catch (e) {
|
|
20188
|
+
this._reportError(`${e}`, sourceSpan);
|
|
20189
|
+
return this._exprParser.wrapLiteralPrimitive("ERROR", sourceInfo, absoluteOffset);
|
|
20531
20190
|
}
|
|
20532
20191
|
}
|
|
20533
20192
|
parseInterpolationExpression(expression, sourceSpan) {
|
|
@@ -20786,7 +20445,7 @@ function moveParseSourceSpan(sourceSpan, absoluteSpan) {
|
|
|
20786
20445
|
return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
|
|
20787
20446
|
}
|
|
20788
20447
|
|
|
20789
|
-
// bazel-out/
|
|
20448
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/style_url_resolver.mjs
|
|
20790
20449
|
function isStyleUrlResolvable(url) {
|
|
20791
20450
|
if (url == null || url.length === 0 || url[0] == "/")
|
|
20792
20451
|
return false;
|
|
@@ -20795,7 +20454,7 @@ function isStyleUrlResolvable(url) {
|
|
|
20795
20454
|
}
|
|
20796
20455
|
var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
|
|
20797
20456
|
|
|
20798
|
-
// bazel-out/
|
|
20457
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/template_parser/template_preparser.mjs
|
|
20799
20458
|
var NG_CONTENT_SELECT_ATTR = "select";
|
|
20800
20459
|
var LINK_ELEMENT = "link";
|
|
20801
20460
|
var LINK_STYLE_REL_ATTR = "rel";
|
|
@@ -20865,7 +20524,7 @@ function normalizeNgContentSelect(selectAttr) {
|
|
|
20865
20524
|
return selectAttr;
|
|
20866
20525
|
}
|
|
20867
20526
|
|
|
20868
|
-
// bazel-out/
|
|
20527
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_control_flow.mjs
|
|
20869
20528
|
var FOR_LOOP_EXPRESSION_PATTERN = /^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/;
|
|
20870
20529
|
var FOR_LOOP_TRACK_PATTERN = /^track\s+([\S\s]*)/;
|
|
20871
20530
|
var CONDITIONAL_ALIAS_PATTERN = /^as\s+(.*)/;
|
|
@@ -21156,7 +20815,7 @@ function stripOptionalParentheses(param, errors) {
|
|
|
21156
20815
|
return expression.slice(start, end);
|
|
21157
20816
|
}
|
|
21158
20817
|
|
|
21159
|
-
// bazel-out/
|
|
20818
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_triggers.mjs
|
|
21160
20819
|
var TIME_PATTERN = /^\d+\.?\d*(ms|s)?$/;
|
|
21161
20820
|
var SEPARATOR_PATTERN = /^\s$/;
|
|
21162
20821
|
var COMMA_DELIMITED_SYNTAX = /* @__PURE__ */ new Map([
|
|
@@ -21420,7 +21079,7 @@ function parseDeferredTime(value) {
|
|
|
21420
21079
|
return parseFloat(time) * (units === "s" ? 1e3 : 1);
|
|
21421
21080
|
}
|
|
21422
21081
|
|
|
21423
|
-
// bazel-out/
|
|
21082
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_deferred_blocks.mjs
|
|
21424
21083
|
var PREFETCH_WHEN_PATTERN = /^prefetch\s+when\s/;
|
|
21425
21084
|
var PREFETCH_ON_PATTERN = /^prefetch\s+on\s/;
|
|
21426
21085
|
var MINIMUM_PARAMETER_PATTERN = /^minimum\s/;
|
|
@@ -21555,7 +21214,7 @@ function parsePrimaryTriggers(params, bindingParser, errors, placeholder) {
|
|
|
21555
21214
|
return { triggers, prefetchTriggers };
|
|
21556
21215
|
}
|
|
21557
21216
|
|
|
21558
|
-
// bazel-out/
|
|
21217
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/r3_template_transform.mjs
|
|
21559
21218
|
var BIND_NAME_REGEXP = /^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/;
|
|
21560
21219
|
var KW_BIND_IDX = 1;
|
|
21561
21220
|
var KW_LET_IDX = 2;
|
|
@@ -21986,7 +21645,7 @@ function textContents(node) {
|
|
|
21986
21645
|
}
|
|
21987
21646
|
}
|
|
21988
21647
|
|
|
21989
|
-
// bazel-out/
|
|
21648
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/i18n/context.mjs
|
|
21990
21649
|
var TagType;
|
|
21991
21650
|
(function(TagType2) {
|
|
21992
21651
|
TagType2[TagType2["ELEMENT"] = 0] = "ELEMENT";
|
|
@@ -22097,41 +21756,374 @@ var I18nContext = class {
|
|
|
22097
21756
|
} else {
|
|
22098
21757
|
phs.push(...values);
|
|
22099
21758
|
}
|
|
22100
|
-
this.placeholders.set(key, phs);
|
|
22101
|
-
});
|
|
22102
|
-
this._unresolvedCtxCount--;
|
|
21759
|
+
this.placeholders.set(key, phs);
|
|
21760
|
+
});
|
|
21761
|
+
this._unresolvedCtxCount--;
|
|
21762
|
+
}
|
|
21763
|
+
};
|
|
21764
|
+
function wrap(symbol, index, contextId, closed) {
|
|
21765
|
+
const state = closed ? "/" : "";
|
|
21766
|
+
return wrapI18nPlaceholder(`${state}${symbol}${index}`, contextId);
|
|
21767
|
+
}
|
|
21768
|
+
function wrapTag(symbol, { index, ctx, isVoid }, closed) {
|
|
21769
|
+
return isVoid ? wrap(symbol, index, ctx) + wrap(symbol, index, ctx, true) : wrap(symbol, index, ctx, closed);
|
|
21770
|
+
}
|
|
21771
|
+
function findTemplateFn(ctx, templateIndex) {
|
|
21772
|
+
return (token) => typeof token === "object" && token.type === TagType.TEMPLATE && token.index === templateIndex && token.ctx === ctx;
|
|
21773
|
+
}
|
|
21774
|
+
function serializePlaceholderValue(value) {
|
|
21775
|
+
const element2 = (data, closed) => wrapTag("#", data, closed);
|
|
21776
|
+
const template2 = (data, closed) => wrapTag("*", data, closed);
|
|
21777
|
+
switch (value.type) {
|
|
21778
|
+
case TagType.ELEMENT:
|
|
21779
|
+
if (value.closed) {
|
|
21780
|
+
return element2(value, true) + (value.tmpl ? template2(value.tmpl, true) : "");
|
|
21781
|
+
}
|
|
21782
|
+
if (value.tmpl) {
|
|
21783
|
+
return template2(value.tmpl) + element2(value) + (value.isVoid ? template2(value.tmpl, true) : "");
|
|
21784
|
+
}
|
|
21785
|
+
return element2(value);
|
|
21786
|
+
case TagType.TEMPLATE:
|
|
21787
|
+
return template2(value, value.closed);
|
|
21788
|
+
default:
|
|
21789
|
+
return value;
|
|
21790
|
+
}
|
|
21791
|
+
}
|
|
21792
|
+
|
|
21793
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/styling_builder.mjs
|
|
21794
|
+
var IMPORTANT_FLAG = "!important";
|
|
21795
|
+
var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
|
|
21796
|
+
var StylingBuilder = class {
|
|
21797
|
+
constructor(_directiveExpr) {
|
|
21798
|
+
this._directiveExpr = _directiveExpr;
|
|
21799
|
+
this._hasInitialValues = false;
|
|
21800
|
+
this.hasBindings = false;
|
|
21801
|
+
this.hasBindingsWithPipes = false;
|
|
21802
|
+
this._classMapInput = null;
|
|
21803
|
+
this._styleMapInput = null;
|
|
21804
|
+
this._singleStyleInputs = null;
|
|
21805
|
+
this._singleClassInputs = null;
|
|
21806
|
+
this._lastStylingInput = null;
|
|
21807
|
+
this._firstStylingInput = null;
|
|
21808
|
+
this._stylesIndex = /* @__PURE__ */ new Map();
|
|
21809
|
+
this._classesIndex = /* @__PURE__ */ new Map();
|
|
21810
|
+
this._initialStyleValues = [];
|
|
21811
|
+
this._initialClassValues = [];
|
|
21812
|
+
}
|
|
21813
|
+
registerBoundInput(input) {
|
|
21814
|
+
let binding = null;
|
|
21815
|
+
let name = input.name;
|
|
21816
|
+
switch (input.type) {
|
|
21817
|
+
case 0:
|
|
21818
|
+
binding = this.registerInputBasedOnName(name, input.value, input.sourceSpan);
|
|
21819
|
+
break;
|
|
21820
|
+
case 3:
|
|
21821
|
+
binding = this.registerStyleInput(name, false, input.value, input.sourceSpan, input.unit);
|
|
21822
|
+
break;
|
|
21823
|
+
case 2:
|
|
21824
|
+
binding = this.registerClassInput(name, false, input.value, input.sourceSpan);
|
|
21825
|
+
break;
|
|
21826
|
+
}
|
|
21827
|
+
return binding ? true : false;
|
|
21828
|
+
}
|
|
21829
|
+
registerInputBasedOnName(name, expression, sourceSpan) {
|
|
21830
|
+
let binding = null;
|
|
21831
|
+
const prefix = name.substring(0, 6);
|
|
21832
|
+
const isStyle = name === "style" || prefix === "style." || prefix === "style!";
|
|
21833
|
+
const isClass = !isStyle && (name === "class" || prefix === "class." || prefix === "class!");
|
|
21834
|
+
if (isStyle || isClass) {
|
|
21835
|
+
const isMapBased = name.charAt(5) !== ".";
|
|
21836
|
+
const property2 = name.slice(isMapBased ? 5 : 6);
|
|
21837
|
+
if (isStyle) {
|
|
21838
|
+
binding = this.registerStyleInput(property2, isMapBased, expression, sourceSpan);
|
|
21839
|
+
} else {
|
|
21840
|
+
binding = this.registerClassInput(property2, isMapBased, expression, sourceSpan);
|
|
21841
|
+
}
|
|
21842
|
+
}
|
|
21843
|
+
return binding;
|
|
21844
|
+
}
|
|
21845
|
+
registerStyleInput(name, isMapBased, value, sourceSpan, suffix) {
|
|
21846
|
+
if (isEmptyExpression(value)) {
|
|
21847
|
+
return null;
|
|
21848
|
+
}
|
|
21849
|
+
if (!isCssCustomProperty2(name)) {
|
|
21850
|
+
name = hyphenate2(name);
|
|
21851
|
+
}
|
|
21852
|
+
const { property: property2, hasOverrideFlag, suffix: bindingSuffix } = parseProperty2(name);
|
|
21853
|
+
suffix = typeof suffix === "string" && suffix.length !== 0 ? suffix : bindingSuffix;
|
|
21854
|
+
const entry = { name: property2, suffix, value, sourceSpan, hasOverrideFlag };
|
|
21855
|
+
if (isMapBased) {
|
|
21856
|
+
this._styleMapInput = entry;
|
|
21857
|
+
} else {
|
|
21858
|
+
(this._singleStyleInputs = this._singleStyleInputs || []).push(entry);
|
|
21859
|
+
registerIntoMap(this._stylesIndex, property2);
|
|
21860
|
+
}
|
|
21861
|
+
this._lastStylingInput = entry;
|
|
21862
|
+
this._firstStylingInput = this._firstStylingInput || entry;
|
|
21863
|
+
this._checkForPipes(value);
|
|
21864
|
+
this.hasBindings = true;
|
|
21865
|
+
return entry;
|
|
21866
|
+
}
|
|
21867
|
+
registerClassInput(name, isMapBased, value, sourceSpan) {
|
|
21868
|
+
if (isEmptyExpression(value)) {
|
|
21869
|
+
return null;
|
|
21870
|
+
}
|
|
21871
|
+
const { property: property2, hasOverrideFlag } = parseProperty2(name);
|
|
21872
|
+
const entry = { name: property2, value, sourceSpan, hasOverrideFlag, suffix: null };
|
|
21873
|
+
if (isMapBased) {
|
|
21874
|
+
this._classMapInput = entry;
|
|
21875
|
+
} else {
|
|
21876
|
+
(this._singleClassInputs = this._singleClassInputs || []).push(entry);
|
|
21877
|
+
registerIntoMap(this._classesIndex, property2);
|
|
21878
|
+
}
|
|
21879
|
+
this._lastStylingInput = entry;
|
|
21880
|
+
this._firstStylingInput = this._firstStylingInput || entry;
|
|
21881
|
+
this._checkForPipes(value);
|
|
21882
|
+
this.hasBindings = true;
|
|
21883
|
+
return entry;
|
|
21884
|
+
}
|
|
21885
|
+
_checkForPipes(value) {
|
|
21886
|
+
if (value instanceof ASTWithSource && value.ast instanceof BindingPipe) {
|
|
21887
|
+
this.hasBindingsWithPipes = true;
|
|
21888
|
+
}
|
|
21889
|
+
}
|
|
21890
|
+
registerStyleAttr(value) {
|
|
21891
|
+
this._initialStyleValues = parse(value);
|
|
21892
|
+
this._hasInitialValues = true;
|
|
21893
|
+
}
|
|
21894
|
+
registerClassAttr(value) {
|
|
21895
|
+
this._initialClassValues = value.trim().split(/\s+/g);
|
|
21896
|
+
this._hasInitialValues = true;
|
|
21897
|
+
}
|
|
21898
|
+
populateInitialStylingAttrs(attrs) {
|
|
21899
|
+
if (this._initialClassValues.length) {
|
|
21900
|
+
attrs.push(literal(1));
|
|
21901
|
+
for (let i = 0; i < this._initialClassValues.length; i++) {
|
|
21902
|
+
attrs.push(literal(this._initialClassValues[i]));
|
|
21903
|
+
}
|
|
21904
|
+
}
|
|
21905
|
+
if (this._initialStyleValues.length) {
|
|
21906
|
+
attrs.push(literal(2));
|
|
21907
|
+
for (let i = 0; i < this._initialStyleValues.length; i += 2) {
|
|
21908
|
+
attrs.push(literal(this._initialStyleValues[i]), literal(this._initialStyleValues[i + 1]));
|
|
21909
|
+
}
|
|
21910
|
+
}
|
|
21911
|
+
}
|
|
21912
|
+
assignHostAttrs(attrs, definitionMap) {
|
|
21913
|
+
if (this._directiveExpr && (attrs.length || this._hasInitialValues)) {
|
|
21914
|
+
this.populateInitialStylingAttrs(attrs);
|
|
21915
|
+
definitionMap.set("hostAttrs", literalArr(attrs));
|
|
21916
|
+
}
|
|
21917
|
+
}
|
|
21918
|
+
buildClassMapInstruction(valueConverter) {
|
|
21919
|
+
if (this._classMapInput) {
|
|
21920
|
+
return this._buildMapBasedInstruction(valueConverter, true, this._classMapInput);
|
|
21921
|
+
}
|
|
21922
|
+
return null;
|
|
21923
|
+
}
|
|
21924
|
+
buildStyleMapInstruction(valueConverter) {
|
|
21925
|
+
if (this._styleMapInput) {
|
|
21926
|
+
return this._buildMapBasedInstruction(valueConverter, false, this._styleMapInput);
|
|
21927
|
+
}
|
|
21928
|
+
return null;
|
|
21929
|
+
}
|
|
21930
|
+
_buildMapBasedInstruction(valueConverter, isClassBased, stylingInput) {
|
|
21931
|
+
let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;
|
|
21932
|
+
const mapValue = stylingInput.value.visit(valueConverter);
|
|
21933
|
+
let reference2;
|
|
21934
|
+
if (mapValue instanceof Interpolation) {
|
|
21935
|
+
totalBindingSlotsRequired += mapValue.expressions.length;
|
|
21936
|
+
reference2 = isClassBased ? getClassMapInterpolationExpression(mapValue) : getStyleMapInterpolationExpression(mapValue);
|
|
21937
|
+
} else {
|
|
21938
|
+
reference2 = isClassBased ? Identifiers.classMap : Identifiers.styleMap;
|
|
21939
|
+
}
|
|
21940
|
+
return {
|
|
21941
|
+
reference: reference2,
|
|
21942
|
+
calls: [{
|
|
21943
|
+
supportsInterpolation: true,
|
|
21944
|
+
sourceSpan: stylingInput.sourceSpan,
|
|
21945
|
+
allocateBindingSlots: totalBindingSlotsRequired,
|
|
21946
|
+
params: (convertFn) => {
|
|
21947
|
+
const convertResult = convertFn(mapValue);
|
|
21948
|
+
const params = Array.isArray(convertResult) ? convertResult : [convertResult];
|
|
21949
|
+
return params;
|
|
21950
|
+
}
|
|
21951
|
+
}]
|
|
21952
|
+
};
|
|
21953
|
+
}
|
|
21954
|
+
_buildSingleInputs(reference2, inputs, valueConverter, getInterpolationExpressionFn, isClassBased) {
|
|
21955
|
+
const instructions = [];
|
|
21956
|
+
inputs.forEach((input) => {
|
|
21957
|
+
const previousInstruction = instructions[instructions.length - 1];
|
|
21958
|
+
const value = input.value.visit(valueConverter);
|
|
21959
|
+
let referenceForCall = reference2;
|
|
21960
|
+
let totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;
|
|
21961
|
+
if (value instanceof Interpolation) {
|
|
21962
|
+
totalBindingSlotsRequired += value.expressions.length;
|
|
21963
|
+
if (getInterpolationExpressionFn) {
|
|
21964
|
+
referenceForCall = getInterpolationExpressionFn(value);
|
|
21965
|
+
}
|
|
21966
|
+
}
|
|
21967
|
+
const call2 = {
|
|
21968
|
+
sourceSpan: input.sourceSpan,
|
|
21969
|
+
allocateBindingSlots: totalBindingSlotsRequired,
|
|
21970
|
+
supportsInterpolation: !!getInterpolationExpressionFn,
|
|
21971
|
+
params: (convertFn) => {
|
|
21972
|
+
const params = [];
|
|
21973
|
+
params.push(literal(input.name));
|
|
21974
|
+
const convertResult = convertFn(value);
|
|
21975
|
+
if (Array.isArray(convertResult)) {
|
|
21976
|
+
params.push(...convertResult);
|
|
21977
|
+
} else {
|
|
21978
|
+
params.push(convertResult);
|
|
21979
|
+
}
|
|
21980
|
+
if (!isClassBased && input.suffix !== null) {
|
|
21981
|
+
params.push(literal(input.suffix));
|
|
21982
|
+
}
|
|
21983
|
+
return params;
|
|
21984
|
+
}
|
|
21985
|
+
};
|
|
21986
|
+
if (previousInstruction && previousInstruction.reference === referenceForCall) {
|
|
21987
|
+
previousInstruction.calls.push(call2);
|
|
21988
|
+
} else {
|
|
21989
|
+
instructions.push({ reference: referenceForCall, calls: [call2] });
|
|
21990
|
+
}
|
|
21991
|
+
});
|
|
21992
|
+
return instructions;
|
|
21993
|
+
}
|
|
21994
|
+
_buildClassInputs(valueConverter) {
|
|
21995
|
+
if (this._singleClassInputs) {
|
|
21996
|
+
return this._buildSingleInputs(Identifiers.classProp, this._singleClassInputs, valueConverter, null, true);
|
|
21997
|
+
}
|
|
21998
|
+
return [];
|
|
21999
|
+
}
|
|
22000
|
+
_buildStyleInputs(valueConverter) {
|
|
22001
|
+
if (this._singleStyleInputs) {
|
|
22002
|
+
return this._buildSingleInputs(Identifiers.styleProp, this._singleStyleInputs, valueConverter, getStylePropInterpolationExpression, false);
|
|
22003
|
+
}
|
|
22004
|
+
return [];
|
|
22005
|
+
}
|
|
22006
|
+
buildUpdateLevelInstructions(valueConverter) {
|
|
22007
|
+
const instructions = [];
|
|
22008
|
+
if (this.hasBindings) {
|
|
22009
|
+
const styleMapInstruction = this.buildStyleMapInstruction(valueConverter);
|
|
22010
|
+
if (styleMapInstruction) {
|
|
22011
|
+
instructions.push(styleMapInstruction);
|
|
22012
|
+
}
|
|
22013
|
+
const classMapInstruction = this.buildClassMapInstruction(valueConverter);
|
|
22014
|
+
if (classMapInstruction) {
|
|
22015
|
+
instructions.push(classMapInstruction);
|
|
22016
|
+
}
|
|
22017
|
+
instructions.push(...this._buildStyleInputs(valueConverter));
|
|
22018
|
+
instructions.push(...this._buildClassInputs(valueConverter));
|
|
22019
|
+
}
|
|
22020
|
+
return instructions;
|
|
22103
22021
|
}
|
|
22104
22022
|
};
|
|
22105
|
-
function
|
|
22106
|
-
|
|
22107
|
-
|
|
22023
|
+
function registerIntoMap(map, key) {
|
|
22024
|
+
if (!map.has(key)) {
|
|
22025
|
+
map.set(key, map.size);
|
|
22026
|
+
}
|
|
22108
22027
|
}
|
|
22109
|
-
function
|
|
22110
|
-
|
|
22028
|
+
function parseProperty2(name) {
|
|
22029
|
+
let hasOverrideFlag = false;
|
|
22030
|
+
const overrideIndex = name.indexOf(IMPORTANT_FLAG);
|
|
22031
|
+
if (overrideIndex !== -1) {
|
|
22032
|
+
name = overrideIndex > 0 ? name.substring(0, overrideIndex) : "";
|
|
22033
|
+
hasOverrideFlag = true;
|
|
22034
|
+
}
|
|
22035
|
+
let suffix = null;
|
|
22036
|
+
let property2 = name;
|
|
22037
|
+
const unitIndex = name.lastIndexOf(".");
|
|
22038
|
+
if (unitIndex > 0) {
|
|
22039
|
+
suffix = name.slice(unitIndex + 1);
|
|
22040
|
+
property2 = name.substring(0, unitIndex);
|
|
22041
|
+
}
|
|
22042
|
+
return { property: property2, suffix, hasOverrideFlag };
|
|
22111
22043
|
}
|
|
22112
|
-
function
|
|
22113
|
-
|
|
22044
|
+
function getClassMapInterpolationExpression(interpolation) {
|
|
22045
|
+
switch (getInterpolationArgsLength(interpolation)) {
|
|
22046
|
+
case 1:
|
|
22047
|
+
return Identifiers.classMap;
|
|
22048
|
+
case 3:
|
|
22049
|
+
return Identifiers.classMapInterpolate1;
|
|
22050
|
+
case 5:
|
|
22051
|
+
return Identifiers.classMapInterpolate2;
|
|
22052
|
+
case 7:
|
|
22053
|
+
return Identifiers.classMapInterpolate3;
|
|
22054
|
+
case 9:
|
|
22055
|
+
return Identifiers.classMapInterpolate4;
|
|
22056
|
+
case 11:
|
|
22057
|
+
return Identifiers.classMapInterpolate5;
|
|
22058
|
+
case 13:
|
|
22059
|
+
return Identifiers.classMapInterpolate6;
|
|
22060
|
+
case 15:
|
|
22061
|
+
return Identifiers.classMapInterpolate7;
|
|
22062
|
+
case 17:
|
|
22063
|
+
return Identifiers.classMapInterpolate8;
|
|
22064
|
+
default:
|
|
22065
|
+
return Identifiers.classMapInterpolateV;
|
|
22066
|
+
}
|
|
22114
22067
|
}
|
|
22115
|
-
function
|
|
22116
|
-
|
|
22117
|
-
|
|
22118
|
-
|
|
22119
|
-
case
|
|
22120
|
-
|
|
22121
|
-
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22125
|
-
|
|
22126
|
-
return
|
|
22127
|
-
case
|
|
22128
|
-
return
|
|
22068
|
+
function getStyleMapInterpolationExpression(interpolation) {
|
|
22069
|
+
switch (getInterpolationArgsLength(interpolation)) {
|
|
22070
|
+
case 1:
|
|
22071
|
+
return Identifiers.styleMap;
|
|
22072
|
+
case 3:
|
|
22073
|
+
return Identifiers.styleMapInterpolate1;
|
|
22074
|
+
case 5:
|
|
22075
|
+
return Identifiers.styleMapInterpolate2;
|
|
22076
|
+
case 7:
|
|
22077
|
+
return Identifiers.styleMapInterpolate3;
|
|
22078
|
+
case 9:
|
|
22079
|
+
return Identifiers.styleMapInterpolate4;
|
|
22080
|
+
case 11:
|
|
22081
|
+
return Identifiers.styleMapInterpolate5;
|
|
22082
|
+
case 13:
|
|
22083
|
+
return Identifiers.styleMapInterpolate6;
|
|
22084
|
+
case 15:
|
|
22085
|
+
return Identifiers.styleMapInterpolate7;
|
|
22086
|
+
case 17:
|
|
22087
|
+
return Identifiers.styleMapInterpolate8;
|
|
22129
22088
|
default:
|
|
22130
|
-
return
|
|
22089
|
+
return Identifiers.styleMapInterpolateV;
|
|
22090
|
+
}
|
|
22091
|
+
}
|
|
22092
|
+
function getStylePropInterpolationExpression(interpolation) {
|
|
22093
|
+
switch (getInterpolationArgsLength(interpolation)) {
|
|
22094
|
+
case 1:
|
|
22095
|
+
return Identifiers.styleProp;
|
|
22096
|
+
case 3:
|
|
22097
|
+
return Identifiers.stylePropInterpolate1;
|
|
22098
|
+
case 5:
|
|
22099
|
+
return Identifiers.stylePropInterpolate2;
|
|
22100
|
+
case 7:
|
|
22101
|
+
return Identifiers.stylePropInterpolate3;
|
|
22102
|
+
case 9:
|
|
22103
|
+
return Identifiers.stylePropInterpolate4;
|
|
22104
|
+
case 11:
|
|
22105
|
+
return Identifiers.stylePropInterpolate5;
|
|
22106
|
+
case 13:
|
|
22107
|
+
return Identifiers.stylePropInterpolate6;
|
|
22108
|
+
case 15:
|
|
22109
|
+
return Identifiers.stylePropInterpolate7;
|
|
22110
|
+
case 17:
|
|
22111
|
+
return Identifiers.stylePropInterpolate8;
|
|
22112
|
+
default:
|
|
22113
|
+
return Identifiers.stylePropInterpolateV;
|
|
22114
|
+
}
|
|
22115
|
+
}
|
|
22116
|
+
function isCssCustomProperty2(name) {
|
|
22117
|
+
return name.startsWith("--");
|
|
22118
|
+
}
|
|
22119
|
+
function isEmptyExpression(ast) {
|
|
22120
|
+
if (ast instanceof ASTWithSource) {
|
|
22121
|
+
ast = ast.ast;
|
|
22131
22122
|
}
|
|
22123
|
+
return ast instanceof EmptyExpr;
|
|
22132
22124
|
}
|
|
22133
22125
|
|
|
22134
|
-
// bazel-out/
|
|
22126
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/template.mjs
|
|
22135
22127
|
var NG_CONTENT_SELECT_ATTR2 = "select";
|
|
22136
22128
|
var NG_PROJECT_AS_ATTR_NAME = "ngProjectAs";
|
|
22137
22129
|
var EVENT_BINDING_SCOPE_GLOBALS = /* @__PURE__ */ new Set(["$event"]);
|
|
@@ -23818,7 +23810,124 @@ function createClosureModeGuard2() {
|
|
|
23818
23810
|
return typeofExpr(variable(NG_I18N_CLOSURE_MODE2)).notIdentical(literal("undefined", STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE2));
|
|
23819
23811
|
}
|
|
23820
23812
|
|
|
23821
|
-
// bazel-out/
|
|
23813
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/query_generation.mjs
|
|
23814
|
+
function toQueryFlags(query) {
|
|
23815
|
+
return (query.descendants ? 1 : 0) | (query.static ? 2 : 0) | (query.emitDistinctChangesOnly ? 4 : 0);
|
|
23816
|
+
}
|
|
23817
|
+
function getQueryPredicate(query, constantPool) {
|
|
23818
|
+
if (Array.isArray(query.predicate)) {
|
|
23819
|
+
let predicate = [];
|
|
23820
|
+
query.predicate.forEach((selector) => {
|
|
23821
|
+
const selectors = selector.split(",").map((token) => literal(token.trim()));
|
|
23822
|
+
predicate.push(...selectors);
|
|
23823
|
+
});
|
|
23824
|
+
return constantPool.getConstLiteral(literalArr(predicate), true);
|
|
23825
|
+
} else {
|
|
23826
|
+
switch (query.predicate.forwardRef) {
|
|
23827
|
+
case 0:
|
|
23828
|
+
case 2:
|
|
23829
|
+
return query.predicate.expression;
|
|
23830
|
+
case 1:
|
|
23831
|
+
return importExpr(Identifiers.resolveForwardRef).callFn([query.predicate.expression]);
|
|
23832
|
+
}
|
|
23833
|
+
}
|
|
23834
|
+
}
|
|
23835
|
+
function createQueryCreateCall(query, constantPool, queryTypeFns, prependParams) {
|
|
23836
|
+
const parameters = [];
|
|
23837
|
+
if (prependParams !== void 0) {
|
|
23838
|
+
parameters.push(...prependParams);
|
|
23839
|
+
}
|
|
23840
|
+
if (query.isSignal) {
|
|
23841
|
+
parameters.push(new ReadPropExpr(variable(CONTEXT_NAME), query.propertyName));
|
|
23842
|
+
}
|
|
23843
|
+
parameters.push(getQueryPredicate(query, constantPool), literal(toQueryFlags(query)));
|
|
23844
|
+
if (query.read) {
|
|
23845
|
+
parameters.push(query.read);
|
|
23846
|
+
}
|
|
23847
|
+
const queryCreateFn = query.isSignal ? queryTypeFns.signalBased : queryTypeFns.nonSignal;
|
|
23848
|
+
return importExpr(queryCreateFn).callFn(parameters);
|
|
23849
|
+
}
|
|
23850
|
+
var queryAdvancePlaceholder = Symbol("queryAdvancePlaceholder");
|
|
23851
|
+
function collapseAdvanceStatements(statements) {
|
|
23852
|
+
const result = [];
|
|
23853
|
+
let advanceCollapseCount = 0;
|
|
23854
|
+
const flushAdvanceCount = () => {
|
|
23855
|
+
if (advanceCollapseCount > 0) {
|
|
23856
|
+
result.unshift(importExpr(Identifiers.queryAdvance).callFn(advanceCollapseCount === 1 ? [] : [literal(advanceCollapseCount)]).toStmt());
|
|
23857
|
+
advanceCollapseCount = 0;
|
|
23858
|
+
}
|
|
23859
|
+
};
|
|
23860
|
+
for (let i = statements.length - 1; i >= 0; i--) {
|
|
23861
|
+
const st = statements[i];
|
|
23862
|
+
if (st === queryAdvancePlaceholder) {
|
|
23863
|
+
advanceCollapseCount++;
|
|
23864
|
+
} else {
|
|
23865
|
+
flushAdvanceCount();
|
|
23866
|
+
result.unshift(st);
|
|
23867
|
+
}
|
|
23868
|
+
}
|
|
23869
|
+
flushAdvanceCount();
|
|
23870
|
+
return result;
|
|
23871
|
+
}
|
|
23872
|
+
function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
23873
|
+
const createStatements = [];
|
|
23874
|
+
const updateStatements = [];
|
|
23875
|
+
const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);
|
|
23876
|
+
viewQueries.forEach((query) => {
|
|
23877
|
+
const queryDefinitionCall = createQueryCreateCall(query, constantPool, {
|
|
23878
|
+
signalBased: Identifiers.viewQuerySignal,
|
|
23879
|
+
nonSignal: Identifiers.viewQuery
|
|
23880
|
+
});
|
|
23881
|
+
createStatements.push(queryDefinitionCall.toStmt());
|
|
23882
|
+
if (query.isSignal) {
|
|
23883
|
+
updateStatements.push(queryAdvancePlaceholder);
|
|
23884
|
+
return;
|
|
23885
|
+
}
|
|
23886
|
+
const temporary = tempAllocator();
|
|
23887
|
+
const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);
|
|
23888
|
+
const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);
|
|
23889
|
+
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
23890
|
+
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
23891
|
+
});
|
|
23892
|
+
const viewQueryFnName = name ? `${name}_Query` : null;
|
|
23893
|
+
return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [
|
|
23894
|
+
renderFlagCheckIfStmt(1, createStatements),
|
|
23895
|
+
renderFlagCheckIfStmt(2, collapseAdvanceStatements(updateStatements))
|
|
23896
|
+
], INFERRED_TYPE, null, viewQueryFnName);
|
|
23897
|
+
}
|
|
23898
|
+
function createContentQueriesFunction(queries, constantPool, name) {
|
|
23899
|
+
const createStatements = [];
|
|
23900
|
+
const updateStatements = [];
|
|
23901
|
+
const tempAllocator = temporaryAllocator((st) => updateStatements.push(st), TEMPORARY_NAME);
|
|
23902
|
+
for (const query of queries) {
|
|
23903
|
+
createStatements.push(createQueryCreateCall(
|
|
23904
|
+
query,
|
|
23905
|
+
constantPool,
|
|
23906
|
+
{ nonSignal: Identifiers.contentQuery, signalBased: Identifiers.contentQuerySignal },
|
|
23907
|
+
[variable("dirIndex")]
|
|
23908
|
+
).toStmt());
|
|
23909
|
+
if (query.isSignal) {
|
|
23910
|
+
updateStatements.push(queryAdvancePlaceholder);
|
|
23911
|
+
continue;
|
|
23912
|
+
}
|
|
23913
|
+
const temporary = tempAllocator();
|
|
23914
|
+
const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);
|
|
23915
|
+
const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);
|
|
23916
|
+
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
23917
|
+
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
23918
|
+
}
|
|
23919
|
+
const contentQueriesFnName = name ? `${name}_ContentQueries` : null;
|
|
23920
|
+
return fn([
|
|
23921
|
+
new FnParam(RENDER_FLAGS, NUMBER_TYPE),
|
|
23922
|
+
new FnParam(CONTEXT_NAME, null),
|
|
23923
|
+
new FnParam("dirIndex", null)
|
|
23924
|
+
], [
|
|
23925
|
+
renderFlagCheckIfStmt(1, createStatements),
|
|
23926
|
+
renderFlagCheckIfStmt(2, collapseAdvanceStatements(updateStatements))
|
|
23927
|
+
], INFERRED_TYPE, null, contentQueriesFnName);
|
|
23928
|
+
}
|
|
23929
|
+
|
|
23930
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/compiler.mjs
|
|
23822
23931
|
var ATTR_REGEX = /attr\.([^\]]+)/;
|
|
23823
23932
|
var COMPONENT_VARIABLE = "%COMP%";
|
|
23824
23933
|
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
|
|
@@ -24033,16 +24142,6 @@ function compileDeclarationList(list, mode) {
|
|
|
24033
24142
|
throw new Error(`Unsupported with an array of pre-resolved dependencies`);
|
|
24034
24143
|
}
|
|
24035
24144
|
}
|
|
24036
|
-
function prepareQueryParams(query, constantPool) {
|
|
24037
|
-
const parameters = [getQueryPredicate(query, constantPool), literal(toQueryFlags(query))];
|
|
24038
|
-
if (query.read) {
|
|
24039
|
-
parameters.push(query.read);
|
|
24040
|
-
}
|
|
24041
|
-
return parameters;
|
|
24042
|
-
}
|
|
24043
|
-
function toQueryFlags(query) {
|
|
24044
|
-
return (query.descendants ? 1 : 0) | (query.static ? 2 : 0) | (query.emitDistinctChangesOnly ? 4 : 0);
|
|
24045
|
-
}
|
|
24046
24145
|
function convertAttributesToExpressions(attributes) {
|
|
24047
24146
|
const values = [];
|
|
24048
24147
|
for (let key of Object.getOwnPropertyNames(attributes)) {
|
|
@@ -24051,28 +24150,6 @@ function convertAttributesToExpressions(attributes) {
|
|
|
24051
24150
|
}
|
|
24052
24151
|
return values;
|
|
24053
24152
|
}
|
|
24054
|
-
function createContentQueriesFunction(queries, constantPool, name) {
|
|
24055
|
-
const createStatements = [];
|
|
24056
|
-
const updateStatements = [];
|
|
24057
|
-
const tempAllocator = temporaryAllocator(updateStatements, TEMPORARY_NAME);
|
|
24058
|
-
for (const query of queries) {
|
|
24059
|
-
createStatements.push(importExpr(Identifiers.contentQuery).callFn([variable("dirIndex"), ...prepareQueryParams(query, constantPool)]).toStmt());
|
|
24060
|
-
const temporary = tempAllocator();
|
|
24061
|
-
const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);
|
|
24062
|
-
const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);
|
|
24063
|
-
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
24064
|
-
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
24065
|
-
}
|
|
24066
|
-
const contentQueriesFnName = name ? `${name}_ContentQueries` : null;
|
|
24067
|
-
return fn([
|
|
24068
|
-
new FnParam(RENDER_FLAGS, NUMBER_TYPE),
|
|
24069
|
-
new FnParam(CONTEXT_NAME, null),
|
|
24070
|
-
new FnParam("dirIndex", null)
|
|
24071
|
-
], [
|
|
24072
|
-
renderFlagCheckIfStmt(1, createStatements),
|
|
24073
|
-
renderFlagCheckIfStmt(2, updateStatements)
|
|
24074
|
-
], INFERRED_TYPE, null, contentQueriesFnName);
|
|
24075
|
-
}
|
|
24076
24153
|
function stringAsType(str) {
|
|
24077
24154
|
return expressionType(literal(str));
|
|
24078
24155
|
}
|
|
@@ -24124,25 +24201,6 @@ function createDirectiveType(meta) {
|
|
|
24124
24201
|
}
|
|
24125
24202
|
return expressionType(importExpr(Identifiers.DirectiveDeclaration, typeParams));
|
|
24126
24203
|
}
|
|
24127
|
-
function createViewQueriesFunction(viewQueries, constantPool, name) {
|
|
24128
|
-
const createStatements = [];
|
|
24129
|
-
const updateStatements = [];
|
|
24130
|
-
const tempAllocator = temporaryAllocator(updateStatements, TEMPORARY_NAME);
|
|
24131
|
-
viewQueries.forEach((query) => {
|
|
24132
|
-
const queryDefinition = importExpr(Identifiers.viewQuery).callFn(prepareQueryParams(query, constantPool));
|
|
24133
|
-
createStatements.push(queryDefinition.toStmt());
|
|
24134
|
-
const temporary = tempAllocator();
|
|
24135
|
-
const getQueryList = importExpr(Identifiers.loadQuery).callFn([]);
|
|
24136
|
-
const refresh = importExpr(Identifiers.queryRefresh).callFn([temporary.set(getQueryList)]);
|
|
24137
|
-
const updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop("first") : temporary);
|
|
24138
|
-
updateStatements.push(refresh.and(updateDirective).toStmt());
|
|
24139
|
-
});
|
|
24140
|
-
const viewQueryFnName = name ? `${name}_Query` : null;
|
|
24141
|
-
return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [
|
|
24142
|
-
renderFlagCheckIfStmt(1, createStatements),
|
|
24143
|
-
renderFlagCheckIfStmt(2, updateStatements)
|
|
24144
|
-
], INFERRED_TYPE, null, viewQueryFnName);
|
|
24145
|
-
}
|
|
24146
24204
|
function createHostBindingsFunction(hostBindingsMetadata, typeSourceSpan, bindingParser, constantPool, selector, name, definitionMap) {
|
|
24147
24205
|
const bindings = bindingParser.createBoundHostProperties(hostBindingsMetadata.properties, typeSourceSpan);
|
|
24148
24206
|
const eventBindings = bindingParser.createDirectiveHostEventAsts(hostBindingsMetadata.listeners, typeSourceSpan);
|
|
@@ -24449,7 +24507,7 @@ function createHostDirectivesMappingArray(mapping) {
|
|
|
24449
24507
|
return elements.length > 0 ? literalArr(elements) : null;
|
|
24450
24508
|
}
|
|
24451
24509
|
|
|
24452
|
-
// bazel-out/
|
|
24510
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/view/t2_binder.mjs
|
|
24453
24511
|
var R3TargetBinder = class {
|
|
24454
24512
|
constructor(directiveMatcher) {
|
|
24455
24513
|
this.directiveMatcher = directiveMatcher;
|
|
@@ -25066,11 +25124,11 @@ function extractScopedNodeEntities(rootScope) {
|
|
|
25066
25124
|
return templateEntities;
|
|
25067
25125
|
}
|
|
25068
25126
|
|
|
25069
|
-
// bazel-out/
|
|
25127
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/resource_loader.mjs
|
|
25070
25128
|
var ResourceLoader = class {
|
|
25071
25129
|
};
|
|
25072
25130
|
|
|
25073
|
-
// bazel-out/
|
|
25131
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
|
|
25074
25132
|
var CompilerFacadeImpl = class {
|
|
25075
25133
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
25076
25134
|
this.jitEvaluator = jitEvaluator;
|
|
@@ -25253,6 +25311,7 @@ var CompilerFacadeImpl = class {
|
|
|
25253
25311
|
};
|
|
25254
25312
|
function convertToR3QueryMetadata(facade) {
|
|
25255
25313
|
return __spreadProps(__spreadValues({}, facade), {
|
|
25314
|
+
isSignal: facade.isSignal,
|
|
25256
25315
|
predicate: convertQueryPredicate(facade.predicate),
|
|
25257
25316
|
read: facade.read ? new WrappedNodeExpr(facade.read) : null,
|
|
25258
25317
|
static: facade.static,
|
|
@@ -25268,7 +25327,8 @@ function convertQueryDeclarationToMetadata(declaration) {
|
|
|
25268
25327
|
descendants: (_b2 = declaration.descendants) != null ? _b2 : false,
|
|
25269
25328
|
read: declaration.read ? new WrappedNodeExpr(declaration.read) : null,
|
|
25270
25329
|
static: (_c2 = declaration.static) != null ? _c2 : false,
|
|
25271
|
-
emitDistinctChangesOnly: (_d2 = declaration.emitDistinctChangesOnly) != null ? _d2 : true
|
|
25330
|
+
emitDistinctChangesOnly: (_d2 = declaration.emitDistinctChangesOnly) != null ? _d2 : true,
|
|
25331
|
+
isSignal: !!declaration.isSignal
|
|
25272
25332
|
};
|
|
25273
25333
|
}
|
|
25274
25334
|
function convertQueryPredicate(predicate) {
|
|
@@ -25643,17 +25703,17 @@ function publishFacade(global) {
|
|
|
25643
25703
|
ng.\u0275compilerFacade = new CompilerFacadeImpl();
|
|
25644
25704
|
}
|
|
25645
25705
|
|
|
25646
|
-
// bazel-out/
|
|
25647
|
-
var VERSION2 = new Version("17.
|
|
25706
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
25707
|
+
var VERSION2 = new Version("17.2.0-next.0");
|
|
25648
25708
|
|
|
25649
|
-
// bazel-out/
|
|
25709
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
25650
25710
|
var _VisitorMode;
|
|
25651
25711
|
(function(_VisitorMode2) {
|
|
25652
25712
|
_VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
|
|
25653
25713
|
_VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
|
|
25654
25714
|
})(_VisitorMode || (_VisitorMode = {}));
|
|
25655
25715
|
|
|
25656
|
-
// bazel-out/
|
|
25716
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/ml_parser/xml_tags.mjs
|
|
25657
25717
|
var XmlTagDefinition = class {
|
|
25658
25718
|
constructor() {
|
|
25659
25719
|
this.closedByParent = false;
|
|
@@ -25675,7 +25735,7 @@ var XmlTagDefinition = class {
|
|
|
25675
25735
|
};
|
|
25676
25736
|
var _TAG_DEFINITION = new XmlTagDefinition();
|
|
25677
25737
|
|
|
25678
|
-
// bazel-out/
|
|
25738
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/render3/partial/api.mjs
|
|
25679
25739
|
var FactoryTarget2;
|
|
25680
25740
|
(function(FactoryTarget3) {
|
|
25681
25741
|
FactoryTarget3[FactoryTarget3["Directive"] = 0] = "Directive";
|
|
@@ -25685,10 +25745,10 @@ var FactoryTarget2;
|
|
|
25685
25745
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
25686
25746
|
})(FactoryTarget2 || (FactoryTarget2 = {}));
|
|
25687
25747
|
|
|
25688
|
-
// bazel-out/
|
|
25748
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/compiler.mjs
|
|
25689
25749
|
publishFacade(_global);
|
|
25690
25750
|
|
|
25691
|
-
// bazel-out/
|
|
25751
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/util.mjs
|
|
25692
25752
|
var import_path2 = require("path");
|
|
25693
25753
|
var import_typescript3 = __toESM(require("typescript"), 1);
|
|
25694
25754
|
var REPLACEMENTS2 = {
|
|
@@ -25796,7 +25856,7 @@ function forEachClass(sourceFile, callback) {
|
|
|
25796
25856
|
});
|
|
25797
25857
|
}
|
|
25798
25858
|
|
|
25799
|
-
// bazel-out/
|
|
25859
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/block-template-entities/index.mjs
|
|
25800
25860
|
function block_template_entities_default() {
|
|
25801
25861
|
return (tree) => __async(this, null, function* () {
|
|
25802
25862
|
const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
|