@angular/core 18.1.1 → 18.1.3
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/primitives/event-dispatch/index.mjs +2 -1
- package/esm2022/primitives/event-dispatch/src/bootstrap_app_scoped.mjs +18 -3
- package/esm2022/primitives/event-dispatch/src/bootstrap_global.mjs +18 -7
- package/esm2022/primitives/event-dispatch/src/earlyeventcontract.mjs +25 -1
- package/esm2022/primitives/event-dispatch/src/event_type.mjs +2 -2
- package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +40 -35
- package/esm2022/rxjs-interop/src/to_signal.mjs +6 -5
- package/esm2022/src/application/application_init.mjs +2 -2
- package/esm2022/src/application/application_module.mjs +2 -2
- package/esm2022/src/application/application_ref.mjs +2 -2
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +3 -10
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +2 -2
- package/esm2022/src/console.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +2 -1
- package/esm2022/src/error_handler.mjs +4 -2
- package/esm2022/src/event_delegation_utils.mjs +8 -8
- package/esm2022/src/event_dispatch/event_delegation.mjs +2 -4
- package/esm2022/src/hydration/event_replay.mjs +6 -6
- package/esm2022/src/image_performance_warning.mjs +2 -2
- package/esm2022/src/linker/compiler.mjs +2 -2
- package/esm2022/src/platform/platform_ref.mjs +2 -2
- package/esm2022/src/render3/after_render_hooks.mjs +2 -2
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/node_manipulation.mjs +9 -2
- package/esm2022/src/testability/testability.mjs +3 -3
- package/esm2022/src/util/callback_scheduler.mjs +26 -23
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/application_error_handler.mjs +43 -0
- package/esm2022/testing/src/component_fixture.mjs +13 -2
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed_common.mjs +1 -1
- package/esm2022/testing/src/test_bed_compiler.mjs +24 -2
- package/event-dispatch-contract.min.js +1 -1
- package/fesm2022/core.mjs +735 -731
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +144 -35
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +6 -5
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +69 -3
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +10 -2
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +28 -13
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +11 -7
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +11 -7
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +114 -78
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +2 -1
|
@@ -866,6 +866,7 @@ var require_lrucache = __commonJS({
|
|
|
866
866
|
// node_modules/semver/classes/range.js
|
|
867
867
|
var require_range = __commonJS({
|
|
868
868
|
"node_modules/semver/classes/range.js"(exports, module2) {
|
|
869
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
869
870
|
var Range = class {
|
|
870
871
|
constructor(range, options) {
|
|
871
872
|
options = parseOptions(options);
|
|
@@ -879,13 +880,13 @@ var require_range = __commonJS({
|
|
|
879
880
|
if (range instanceof Comparator) {
|
|
880
881
|
this.raw = range.value;
|
|
881
882
|
this.set = [[range]];
|
|
882
|
-
this.
|
|
883
|
+
this.formatted = void 0;
|
|
883
884
|
return this;
|
|
884
885
|
}
|
|
885
886
|
this.options = options;
|
|
886
887
|
this.loose = !!options.loose;
|
|
887
888
|
this.includePrerelease = !!options.includePrerelease;
|
|
888
|
-
this.raw = range.trim().
|
|
889
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
889
890
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
890
891
|
if (!this.set.length) {
|
|
891
892
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
@@ -904,10 +905,27 @@ var require_range = __commonJS({
|
|
|
904
905
|
}
|
|
905
906
|
}
|
|
906
907
|
}
|
|
907
|
-
this.
|
|
908
|
+
this.formatted = void 0;
|
|
909
|
+
}
|
|
910
|
+
get range() {
|
|
911
|
+
if (this.formatted === void 0) {
|
|
912
|
+
this.formatted = "";
|
|
913
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
914
|
+
if (i > 0) {
|
|
915
|
+
this.formatted += "||";
|
|
916
|
+
}
|
|
917
|
+
const comps = this.set[i];
|
|
918
|
+
for (let k = 0; k < comps.length; k++) {
|
|
919
|
+
if (k > 0) {
|
|
920
|
+
this.formatted += " ";
|
|
921
|
+
}
|
|
922
|
+
this.formatted += comps[k].toString().trim();
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
return this.formatted;
|
|
908
927
|
}
|
|
909
928
|
format() {
|
|
910
|
-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
911
929
|
return this.range;
|
|
912
930
|
}
|
|
913
931
|
toString() {
|
|
@@ -5952,7 +5970,7 @@ var FactoryTarget;
|
|
|
5952
5970
|
FactoryTarget3[FactoryTarget3["NgModule"] = 4] = "NgModule";
|
|
5953
5971
|
})(FactoryTarget || (FactoryTarget = {}));
|
|
5954
5972
|
function compileFactoryFunction(meta) {
|
|
5955
|
-
const t = variable("
|
|
5973
|
+
const t = variable("\u0275t");
|
|
5956
5974
|
let baseFactoryVar = null;
|
|
5957
5975
|
const typeForCtor = !isDelegatedFactoryMetadata(meta) ? new BinaryOperatorExpr(BinaryOperator.Or, t, meta.type.value) : t;
|
|
5958
5976
|
let ctorExpr = null;
|
|
@@ -5967,7 +5985,7 @@ function compileFactoryFunction(meta) {
|
|
|
5967
5985
|
const body = [];
|
|
5968
5986
|
let retExpr = null;
|
|
5969
5987
|
function makeConditionalFactory(nonCtorExpr) {
|
|
5970
|
-
const r = variable("
|
|
5988
|
+
const r = variable("\u0275r");
|
|
5971
5989
|
body.push(r.set(NULL_EXPR).toDeclStmt());
|
|
5972
5990
|
const ctorStmt = ctorExpr !== null ? r.set(ctorExpr).toStmt() : importExpr(Identifiers.invalidFactory).callFn([]).toStmt();
|
|
5973
5991
|
body.push(ifStmt(t, [ctorStmt], [r.set(nonCtorExpr).toStmt()]));
|
|
@@ -5991,7 +6009,7 @@ function compileFactoryFunction(meta) {
|
|
|
5991
6009
|
} else {
|
|
5992
6010
|
body.push(new ReturnStatement(retExpr));
|
|
5993
6011
|
}
|
|
5994
|
-
let factoryFn = fn([new FnParam(
|
|
6012
|
+
let factoryFn = fn([new FnParam(t.name, DYNAMIC_TYPE)], body, INFERRED_TYPE, void 0, `${meta.name}_Factory`);
|
|
5995
6013
|
if (baseFactoryVar !== null) {
|
|
5996
6014
|
factoryFn = arrowFn([], [new DeclareVarStmt(baseFactoryVar.name), new ReturnStatement(factoryFn)]).callFn([], void 0, true);
|
|
5997
6015
|
}
|
|
@@ -7776,7 +7794,8 @@ function delegateToFactory(type, useType, unwrapForwardRefs) {
|
|
|
7776
7794
|
return createFactoryFunction(unwrappedType);
|
|
7777
7795
|
}
|
|
7778
7796
|
function createFactoryFunction(type) {
|
|
7779
|
-
|
|
7797
|
+
const t = new FnParam("\u0275t", DYNAMIC_TYPE);
|
|
7798
|
+
return arrowFn([t], type.prop("\u0275fac").callFn([variable(t.name)]));
|
|
7780
7799
|
}
|
|
7781
7800
|
|
|
7782
7801
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/assertions.mjs
|
|
@@ -11234,6 +11253,7 @@ var CHAINABLE = /* @__PURE__ */ new Set([
|
|
|
11234
11253
|
Identifiers.twoWayListener,
|
|
11235
11254
|
Identifiers.declareLet
|
|
11236
11255
|
]);
|
|
11256
|
+
var MAX_CHAIN_LENGTH = 256;
|
|
11237
11257
|
function chain(job) {
|
|
11238
11258
|
for (const unit of job.units) {
|
|
11239
11259
|
chainOperationsInList(unit.create);
|
|
@@ -11256,16 +11276,18 @@ function chainOperationsInList(opList) {
|
|
|
11256
11276
|
chain2 = null;
|
|
11257
11277
|
continue;
|
|
11258
11278
|
}
|
|
11259
|
-
if (chain2 !== null && chain2.instruction === instruction) {
|
|
11279
|
+
if (chain2 !== null && chain2.instruction === instruction && chain2.length < MAX_CHAIN_LENGTH) {
|
|
11260
11280
|
const expression = chain2.expression.callFn(op.statement.expr.args, op.statement.expr.sourceSpan, op.statement.expr.pure);
|
|
11261
11281
|
chain2.expression = expression;
|
|
11262
11282
|
chain2.op.statement = expression.toStmt();
|
|
11283
|
+
chain2.length++;
|
|
11263
11284
|
OpList.remove(op);
|
|
11264
11285
|
} else {
|
|
11265
11286
|
chain2 = {
|
|
11266
11287
|
op,
|
|
11267
11288
|
instruction,
|
|
11268
|
-
expression: op.statement.expr
|
|
11289
|
+
expression: op.statement.expr,
|
|
11290
|
+
length: 1
|
|
11269
11291
|
};
|
|
11270
11292
|
}
|
|
11271
11293
|
}
|
|
@@ -26080,7 +26102,7 @@ function publishFacade(global) {
|
|
|
26080
26102
|
}
|
|
26081
26103
|
|
|
26082
26104
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
26083
|
-
var VERSION2 = new Version("18.1.
|
|
26105
|
+
var VERSION2 = new Version("18.1.3");
|
|
26084
26106
|
|
|
26085
26107
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
26086
26108
|
var _I18N_ATTR = "i18n";
|
|
@@ -27184,7 +27206,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
|
|
|
27184
27206
|
function compileDeclareClassMetadata(metadata) {
|
|
27185
27207
|
const definitionMap = new DefinitionMap();
|
|
27186
27208
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
27187
|
-
definitionMap.set("version", literal("18.1.
|
|
27209
|
+
definitionMap.set("version", literal("18.1.3"));
|
|
27188
27210
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27189
27211
|
definitionMap.set("type", metadata.type);
|
|
27190
27212
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -27203,7 +27225,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
27203
27225
|
callbackReturnDefinitionMap.set("ctorParameters", (_a2 = metadata.ctorParameters) != null ? _a2 : literal(null));
|
|
27204
27226
|
callbackReturnDefinitionMap.set("propDecorators", (_b2 = metadata.propDecorators) != null ? _b2 : literal(null));
|
|
27205
27227
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
27206
|
-
definitionMap.set("version", literal("18.1.
|
|
27228
|
+
definitionMap.set("version", literal("18.1.3"));
|
|
27207
27229
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27208
27230
|
definitionMap.set("type", metadata.type);
|
|
27209
27231
|
definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -27271,7 +27293,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
27271
27293
|
const definitionMap = new DefinitionMap();
|
|
27272
27294
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
27273
27295
|
definitionMap.set("minVersion", literal(minVersion));
|
|
27274
|
-
definitionMap.set("version", literal("18.1.
|
|
27296
|
+
definitionMap.set("version", literal("18.1.3"));
|
|
27275
27297
|
definitionMap.set("type", meta.type.value);
|
|
27276
27298
|
if (meta.isStandalone) {
|
|
27277
27299
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -27589,7 +27611,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
|
|
|
27589
27611
|
function compileDeclareFactoryFunction(meta) {
|
|
27590
27612
|
const definitionMap = new DefinitionMap();
|
|
27591
27613
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
27592
|
-
definitionMap.set("version", literal("18.1.
|
|
27614
|
+
definitionMap.set("version", literal("18.1.3"));
|
|
27593
27615
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27594
27616
|
definitionMap.set("type", meta.type.value);
|
|
27595
27617
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -27612,7 +27634,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
27612
27634
|
function createInjectableDefinitionMap(meta) {
|
|
27613
27635
|
const definitionMap = new DefinitionMap();
|
|
27614
27636
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
27615
|
-
definitionMap.set("version", literal("18.1.
|
|
27637
|
+
definitionMap.set("version", literal("18.1.3"));
|
|
27616
27638
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27617
27639
|
definitionMap.set("type", meta.type.value);
|
|
27618
27640
|
if (meta.providedIn !== void 0) {
|
|
@@ -27650,7 +27672,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
27650
27672
|
function createInjectorDefinitionMap(meta) {
|
|
27651
27673
|
const definitionMap = new DefinitionMap();
|
|
27652
27674
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
27653
|
-
definitionMap.set("version", literal("18.1.
|
|
27675
|
+
definitionMap.set("version", literal("18.1.3"));
|
|
27654
27676
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27655
27677
|
definitionMap.set("type", meta.type.value);
|
|
27656
27678
|
definitionMap.set("providers", meta.providers);
|
|
@@ -27674,7 +27696,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
27674
27696
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
27675
27697
|
}
|
|
27676
27698
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
27677
|
-
definitionMap.set("version", literal("18.1.
|
|
27699
|
+
definitionMap.set("version", literal("18.1.3"));
|
|
27678
27700
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27679
27701
|
definitionMap.set("type", meta.type.value);
|
|
27680
27702
|
if (meta.bootstrap.length > 0) {
|
|
@@ -27709,7 +27731,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
27709
27731
|
function createPipeDefinitionMap(meta) {
|
|
27710
27732
|
const definitionMap = new DefinitionMap();
|
|
27711
27733
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
27712
|
-
definitionMap.set("version", literal("18.1.
|
|
27734
|
+
definitionMap.set("version", literal("18.1.3"));
|
|
27713
27735
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
27714
27736
|
definitionMap.set("type", meta.type.value);
|
|
27715
27737
|
if (meta.isStandalone) {
|
|
@@ -27726,7 +27748,7 @@ function createPipeDefinitionMap(meta) {
|
|
|
27726
27748
|
publishFacade(_global);
|
|
27727
27749
|
|
|
27728
27750
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
27729
|
-
var VERSION3 = new Version("18.1.
|
|
27751
|
+
var VERSION3 = new Version("18.1.3");
|
|
27730
27752
|
|
|
27731
27753
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
|
|
27732
27754
|
var import_typescript5 = __toESM(require("typescript"), 1);
|
|
@@ -38533,6 +38555,19 @@ for (let i = 0; i < chars.length; i++) {
|
|
|
38533
38555
|
intToChar[i] = c;
|
|
38534
38556
|
charToInt[c] = i;
|
|
38535
38557
|
}
|
|
38558
|
+
function encodeInteger(builder, num, relative8) {
|
|
38559
|
+
let delta = num - relative8;
|
|
38560
|
+
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
|
38561
|
+
do {
|
|
38562
|
+
let clamped = delta & 31;
|
|
38563
|
+
delta >>>= 5;
|
|
38564
|
+
if (delta > 0)
|
|
38565
|
+
clamped |= 32;
|
|
38566
|
+
builder.write(intToChar[clamped]);
|
|
38567
|
+
} while (delta > 0);
|
|
38568
|
+
return num;
|
|
38569
|
+
}
|
|
38570
|
+
var bufLength = 1024 * 16;
|
|
38536
38571
|
var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer !== "undefined" ? {
|
|
38537
38572
|
decode(buf) {
|
|
38538
38573
|
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
@@ -38547,61 +38582,54 @@ var td = typeof TextDecoder !== "undefined" ? /* @__PURE__ */ new TextDecoder()
|
|
|
38547
38582
|
return out;
|
|
38548
38583
|
}
|
|
38549
38584
|
};
|
|
38585
|
+
var StringWriter = class {
|
|
38586
|
+
constructor() {
|
|
38587
|
+
this.pos = 0;
|
|
38588
|
+
this.out = "";
|
|
38589
|
+
this.buffer = new Uint8Array(bufLength);
|
|
38590
|
+
}
|
|
38591
|
+
write(v) {
|
|
38592
|
+
const { buffer } = this;
|
|
38593
|
+
buffer[this.pos++] = v;
|
|
38594
|
+
if (this.pos === bufLength) {
|
|
38595
|
+
this.out += td.decode(buffer);
|
|
38596
|
+
this.pos = 0;
|
|
38597
|
+
}
|
|
38598
|
+
}
|
|
38599
|
+
flush() {
|
|
38600
|
+
const { buffer, out, pos } = this;
|
|
38601
|
+
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
|
38602
|
+
}
|
|
38603
|
+
};
|
|
38550
38604
|
function encode(decoded) {
|
|
38551
|
-
const
|
|
38552
|
-
|
|
38553
|
-
|
|
38554
|
-
|
|
38555
|
-
|
|
38556
|
-
let pos = 0;
|
|
38557
|
-
let out = "";
|
|
38605
|
+
const writer = new StringWriter();
|
|
38606
|
+
let sourcesIndex = 0;
|
|
38607
|
+
let sourceLine = 0;
|
|
38608
|
+
let sourceColumn = 0;
|
|
38609
|
+
let namesIndex = 0;
|
|
38558
38610
|
for (let i = 0; i < decoded.length; i++) {
|
|
38559
38611
|
const line = decoded[i];
|
|
38560
|
-
if (i > 0)
|
|
38561
|
-
|
|
38562
|
-
out += td.decode(buf);
|
|
38563
|
-
pos = 0;
|
|
38564
|
-
}
|
|
38565
|
-
buf[pos++] = semicolon;
|
|
38566
|
-
}
|
|
38612
|
+
if (i > 0)
|
|
38613
|
+
writer.write(semicolon);
|
|
38567
38614
|
if (line.length === 0)
|
|
38568
38615
|
continue;
|
|
38569
|
-
|
|
38616
|
+
let genColumn = 0;
|
|
38570
38617
|
for (let j = 0; j < line.length; j++) {
|
|
38571
38618
|
const segment = line[j];
|
|
38572
|
-
if (pos > subLength) {
|
|
38573
|
-
out += td.decode(sub);
|
|
38574
|
-
buf.copyWithin(0, subLength, pos);
|
|
38575
|
-
pos -= subLength;
|
|
38576
|
-
}
|
|
38577
38619
|
if (j > 0)
|
|
38578
|
-
|
|
38579
|
-
|
|
38620
|
+
writer.write(comma);
|
|
38621
|
+
genColumn = encodeInteger(writer, segment[0], genColumn);
|
|
38580
38622
|
if (segment.length === 1)
|
|
38581
38623
|
continue;
|
|
38582
|
-
|
|
38583
|
-
|
|
38584
|
-
|
|
38624
|
+
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
|
38625
|
+
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
|
38626
|
+
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
|
38585
38627
|
if (segment.length === 4)
|
|
38586
38628
|
continue;
|
|
38587
|
-
|
|
38629
|
+
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
|
38588
38630
|
}
|
|
38589
38631
|
}
|
|
38590
|
-
return
|
|
38591
|
-
}
|
|
38592
|
-
function encodeInteger(buf, pos, state, segment, j) {
|
|
38593
|
-
const next = segment[j];
|
|
38594
|
-
let num = next - state[j];
|
|
38595
|
-
state[j] = next;
|
|
38596
|
-
num = num < 0 ? -num << 1 | 1 : num << 1;
|
|
38597
|
-
do {
|
|
38598
|
-
let clamped = num & 31;
|
|
38599
|
-
num >>>= 5;
|
|
38600
|
-
if (num > 0)
|
|
38601
|
-
clamped |= 32;
|
|
38602
|
-
buf[pos++] = intToChar[clamped];
|
|
38603
|
-
} while (num > 0);
|
|
38604
|
-
return pos;
|
|
38632
|
+
return writer.flush();
|
|
38605
38633
|
}
|
|
38606
38634
|
|
|
38607
38635
|
// node_modules/magic-string/dist/magic-string.es.mjs
|
|
@@ -39207,10 +39235,12 @@ var MagicString = class {
|
|
|
39207
39235
|
update(start, end, content, options) {
|
|
39208
39236
|
if (typeof content !== "string")
|
|
39209
39237
|
throw new TypeError("replacement content must be a string");
|
|
39210
|
-
|
|
39211
|
-
start
|
|
39212
|
-
|
|
39213
|
-
end
|
|
39238
|
+
if (this.original.length !== 0) {
|
|
39239
|
+
while (start < 0)
|
|
39240
|
+
start += this.original.length;
|
|
39241
|
+
while (end < 0)
|
|
39242
|
+
end += this.original.length;
|
|
39243
|
+
}
|
|
39214
39244
|
if (end > this.original.length)
|
|
39215
39245
|
throw new Error("end is out of bounds");
|
|
39216
39246
|
if (start === end)
|
|
@@ -39288,10 +39318,12 @@ var MagicString = class {
|
|
|
39288
39318
|
return this;
|
|
39289
39319
|
}
|
|
39290
39320
|
remove(start, end) {
|
|
39291
|
-
|
|
39292
|
-
start
|
|
39293
|
-
|
|
39294
|
-
end
|
|
39321
|
+
if (this.original.length !== 0) {
|
|
39322
|
+
while (start < 0)
|
|
39323
|
+
start += this.original.length;
|
|
39324
|
+
while (end < 0)
|
|
39325
|
+
end += this.original.length;
|
|
39326
|
+
}
|
|
39295
39327
|
if (start === end)
|
|
39296
39328
|
return this;
|
|
39297
39329
|
if (start < 0 || end > this.original.length)
|
|
@@ -39310,10 +39342,12 @@ var MagicString = class {
|
|
|
39310
39342
|
return this;
|
|
39311
39343
|
}
|
|
39312
39344
|
reset(start, end) {
|
|
39313
|
-
|
|
39314
|
-
start
|
|
39315
|
-
|
|
39316
|
-
end
|
|
39345
|
+
if (this.original.length !== 0) {
|
|
39346
|
+
while (start < 0)
|
|
39347
|
+
start += this.original.length;
|
|
39348
|
+
while (end < 0)
|
|
39349
|
+
end += this.original.length;
|
|
39350
|
+
}
|
|
39317
39351
|
if (start === end)
|
|
39318
39352
|
return this;
|
|
39319
39353
|
if (start < 0 || end > this.original.length)
|
|
@@ -39377,10 +39411,12 @@ var MagicString = class {
|
|
|
39377
39411
|
return this.intro + lineStr;
|
|
39378
39412
|
}
|
|
39379
39413
|
slice(start = 0, end = this.original.length) {
|
|
39380
|
-
|
|
39381
|
-
start
|
|
39382
|
-
|
|
39383
|
-
end
|
|
39414
|
+
if (this.original.length !== 0) {
|
|
39415
|
+
while (start < 0)
|
|
39416
|
+
start += this.original.length;
|
|
39417
|
+
while (end < 0)
|
|
39418
|
+
end += this.original.length;
|
|
39419
|
+
}
|
|
39384
39420
|
let result = "";
|
|
39385
39421
|
let chunk = this.firstChunk;
|
|
39386
39422
|
while (chunk && (chunk.start > start || chunk.end <= start)) {
|
|
@@ -48792,6 +48828,7 @@ var NgCompiler = class {
|
|
|
48792
48828
|
}
|
|
48793
48829
|
prepareEmit() {
|
|
48794
48830
|
const compilation = this.ensureAnalyzed();
|
|
48831
|
+
untagAllTsFiles(this.inputProgram);
|
|
48795
48832
|
const coreImportsFrom = compilation.isCore ? getR3SymbolsFile(this.inputProgram) : null;
|
|
48796
48833
|
let importRewriter;
|
|
48797
48834
|
if (coreImportsFrom !== null) {
|
|
@@ -49602,7 +49639,6 @@ var NgtscProgram = class {
|
|
|
49602
49639
|
};
|
|
49603
49640
|
}
|
|
49604
49641
|
}
|
|
49605
|
-
untagAllTsFiles(this.tsProgram);
|
|
49606
49642
|
const forceEmit = (_a2 = opts == null ? void 0 : opts.forceEmit) != null ? _a2 : false;
|
|
49607
49643
|
this.compiler.perfRecorder.memory(PerfCheckpoint.PreEmit);
|
|
49608
49644
|
const res = this.compiler.perfRecorder.inPhase(PerfPhase.TypeScriptEmit, () => {
|