@storm-software/workspace-tools 1.60.4 → 1.60.6

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.
@@ -395315,6 +395315,1714 @@ var require_invoke_nx_generator = __commonJS({
395315
395315
  }
395316
395316
  });
395317
395317
 
395318
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/api.js
395319
+ var require_api = __commonJS({
395320
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/api.js"(exports2) {
395321
+ "use strict";
395322
+ Object.defineProperty(exports2, "__esModule", { value: true });
395323
+ exports2.isJobHandler = exports2.JobState = exports2.JobOutboundMessageKind = exports2.JobInboundMessageKind = void 0;
395324
+ var JobInboundMessageKind;
395325
+ (function(JobInboundMessageKind2) {
395326
+ JobInboundMessageKind2["Ping"] = "ip";
395327
+ JobInboundMessageKind2["Stop"] = "is";
395328
+ JobInboundMessageKind2["Input"] = "in";
395329
+ })(JobInboundMessageKind || (exports2.JobInboundMessageKind = JobInboundMessageKind = {}));
395330
+ var JobOutboundMessageKind;
395331
+ (function(JobOutboundMessageKind2) {
395332
+ JobOutboundMessageKind2["OnReady"] = "c";
395333
+ JobOutboundMessageKind2["Start"] = "s";
395334
+ JobOutboundMessageKind2["End"] = "e";
395335
+ JobOutboundMessageKind2["Pong"] = "p";
395336
+ JobOutboundMessageKind2["Output"] = "o";
395337
+ JobOutboundMessageKind2["ChannelCreate"] = "cn";
395338
+ JobOutboundMessageKind2["ChannelMessage"] = "cm";
395339
+ JobOutboundMessageKind2["ChannelError"] = "ce";
395340
+ JobOutboundMessageKind2["ChannelComplete"] = "cc";
395341
+ })(JobOutboundMessageKind || (exports2.JobOutboundMessageKind = JobOutboundMessageKind = {}));
395342
+ var JobState;
395343
+ (function(JobState2) {
395344
+ JobState2["Queued"] = "queued";
395345
+ JobState2["Ready"] = "ready";
395346
+ JobState2["Started"] = "started";
395347
+ JobState2["Ended"] = "ended";
395348
+ JobState2["Errored"] = "errored";
395349
+ })(JobState || (exports2.JobState = JobState = {}));
395350
+ function isJobHandler(value) {
395351
+ const job = value;
395352
+ return typeof job == "function" && typeof job.jobDescription == "object" && job.jobDescription !== null;
395353
+ }
395354
+ exports2.isJobHandler = isJobHandler;
395355
+ }
395356
+ });
395357
+
395358
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/strategy.js
395359
+ var require_strategy = __commonJS({
395360
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/strategy.js"(exports2) {
395361
+ "use strict";
395362
+ Object.defineProperty(exports2, "__esModule", { value: true });
395363
+ exports2.memoize = exports2.reuse = exports2.serialize = void 0;
395364
+ var core_1 = require_src3();
395365
+ var rxjs_1 = require_cjs();
395366
+ var api_1 = require_api();
395367
+ function serialize() {
395368
+ let latest = (0, rxjs_1.of)();
395369
+ return (handler, options8) => {
395370
+ const newHandler = (argument, context) => {
395371
+ const previous = latest;
395372
+ latest = (0, rxjs_1.concat)(previous.pipe((0, rxjs_1.ignoreElements)()), new rxjs_1.Observable((o2) => handler(argument, context).subscribe(o2))).pipe((0, rxjs_1.shareReplay)(0));
395373
+ return latest;
395374
+ };
395375
+ return Object.assign(newHandler, {
395376
+ jobDescription: Object.assign({}, handler.jobDescription, options8)
395377
+ });
395378
+ };
395379
+ }
395380
+ exports2.serialize = serialize;
395381
+ function reuse(replayMessages = false) {
395382
+ let inboundBus = new rxjs_1.Subject();
395383
+ let run = null;
395384
+ let state = null;
395385
+ return (handler, options8) => {
395386
+ const newHandler = (argument, context) => {
395387
+ const subscription = context.inboundBus.subscribe(inboundBus);
395388
+ if (run) {
395389
+ return (0, rxjs_1.concat)(
395390
+ // Update state.
395391
+ (0, rxjs_1.of)(state),
395392
+ run
395393
+ ).pipe((0, rxjs_1.finalize)(() => subscription.unsubscribe()));
395394
+ }
395395
+ run = handler(argument, { ...context, inboundBus: inboundBus.asObservable() }).pipe((0, rxjs_1.tap)((message) => {
395396
+ if (message.kind == api_1.JobOutboundMessageKind.Start || message.kind == api_1.JobOutboundMessageKind.OnReady || message.kind == api_1.JobOutboundMessageKind.End) {
395397
+ state = message;
395398
+ }
395399
+ }, void 0, () => {
395400
+ subscription.unsubscribe();
395401
+ inboundBus = new rxjs_1.Subject();
395402
+ run = null;
395403
+ }), replayMessages ? (0, rxjs_1.shareReplay)() : (0, rxjs_1.share)());
395404
+ return run;
395405
+ };
395406
+ return Object.assign(newHandler, handler, options8 || {});
395407
+ };
395408
+ }
395409
+ exports2.reuse = reuse;
395410
+ function memoize(replayMessages = false) {
395411
+ const runs = /* @__PURE__ */ new Map();
395412
+ return (handler, options8) => {
395413
+ const newHandler = (argument, context) => {
395414
+ const argumentJson = JSON.stringify((0, core_1.isJsonObject)(argument) ? Object.keys(argument).sort().reduce((result, key2) => {
395415
+ result[key2] = argument[key2];
395416
+ return result;
395417
+ }, {}) : argument);
395418
+ const maybeJob = runs.get(argumentJson);
395419
+ if (maybeJob) {
395420
+ return maybeJob;
395421
+ }
395422
+ const run = handler(argument, context).pipe(replayMessages ? (0, rxjs_1.shareReplay)() : (0, rxjs_1.share)());
395423
+ runs.set(argumentJson, run);
395424
+ return run;
395425
+ };
395426
+ return Object.assign(newHandler, handler, options8 || {});
395427
+ };
395428
+ }
395429
+ exports2.memoize = memoize;
395430
+ }
395431
+ });
395432
+
395433
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/create-job-handler.js
395434
+ var require_create_job_handler = __commonJS({
395435
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/create-job-handler.js"(exports2) {
395436
+ "use strict";
395437
+ Object.defineProperty(exports2, "__esModule", { value: true });
395438
+ exports2.createLoggerJob = exports2.createJobFactory = exports2.createJobHandler = exports2.ChannelAlreadyExistException = void 0;
395439
+ var core_1 = require_src3();
395440
+ var rxjs_1 = require_cjs();
395441
+ var api_1 = require_api();
395442
+ var ChannelAlreadyExistException = class extends core_1.BaseException {
395443
+ constructor(name) {
395444
+ super(`Channel ${JSON.stringify(name)} already exist.`);
395445
+ }
395446
+ };
395447
+ exports2.ChannelAlreadyExistException = ChannelAlreadyExistException;
395448
+ function createJobHandler(fn6, options8 = {}) {
395449
+ const handler = (argument, context) => {
395450
+ const description = context.description;
395451
+ const inboundBus = context.inboundBus;
395452
+ const inputChannel = new rxjs_1.Subject();
395453
+ let subscription;
395454
+ const teardownLogics = [];
395455
+ let tearingDown = false;
395456
+ return new rxjs_1.Observable((subject) => {
395457
+ function complete() {
395458
+ if (subscription) {
395459
+ subscription.unsubscribe();
395460
+ }
395461
+ subject.next({ kind: api_1.JobOutboundMessageKind.End, description });
395462
+ subject.complete();
395463
+ inputChannel.complete();
395464
+ }
395465
+ const inboundSub = inboundBus.subscribe((message) => {
395466
+ switch (message.kind) {
395467
+ case api_1.JobInboundMessageKind.Ping:
395468
+ subject.next({ kind: api_1.JobOutboundMessageKind.Pong, description, id: message.id });
395469
+ break;
395470
+ case api_1.JobInboundMessageKind.Stop:
395471
+ tearingDown = true;
395472
+ if (teardownLogics.length) {
395473
+ Promise.all(teardownLogics.map((fn7) => fn7())).then(() => complete(), () => complete());
395474
+ } else {
395475
+ complete();
395476
+ }
395477
+ break;
395478
+ case api_1.JobInboundMessageKind.Input:
395479
+ if (!tearingDown) {
395480
+ inputChannel.next(message.value);
395481
+ }
395482
+ break;
395483
+ }
395484
+ });
395485
+ const channels = /* @__PURE__ */ new Map();
395486
+ const newContext = {
395487
+ ...context,
395488
+ input: inputChannel.asObservable(),
395489
+ addTeardown(teardown) {
395490
+ teardownLogics.push(teardown);
395491
+ },
395492
+ createChannel(name) {
395493
+ if (channels.has(name)) {
395494
+ throw new ChannelAlreadyExistException(name);
395495
+ }
395496
+ const channelSubject = new rxjs_1.Subject();
395497
+ const channelSub = channelSubject.subscribe((message) => {
395498
+ subject.next({
395499
+ kind: api_1.JobOutboundMessageKind.ChannelMessage,
395500
+ description,
395501
+ name,
395502
+ message
395503
+ });
395504
+ }, (error) => {
395505
+ subject.next({ kind: api_1.JobOutboundMessageKind.ChannelError, description, name, error });
395506
+ channels.delete(name);
395507
+ }, () => {
395508
+ subject.next({ kind: api_1.JobOutboundMessageKind.ChannelComplete, description, name });
395509
+ channels.delete(name);
395510
+ });
395511
+ channels.set(name, channelSubject);
395512
+ if (subscription) {
395513
+ subscription.add(channelSub);
395514
+ }
395515
+ return channelSubject;
395516
+ }
395517
+ };
395518
+ subject.next({ kind: api_1.JobOutboundMessageKind.Start, description });
395519
+ let result = fn6(argument, newContext);
395520
+ if ((0, core_1.isPromise)(result)) {
395521
+ result = (0, rxjs_1.from)(result);
395522
+ } else if (!(0, rxjs_1.isObservable)(result)) {
395523
+ result = (0, rxjs_1.of)(result);
395524
+ }
395525
+ subscription = result.subscribe((value) => subject.next({ kind: api_1.JobOutboundMessageKind.Output, description, value }), (error) => subject.error(error), () => complete());
395526
+ subscription.add(inboundSub);
395527
+ return subscription;
395528
+ });
395529
+ };
395530
+ return Object.assign(handler, { jobDescription: options8 });
395531
+ }
395532
+ exports2.createJobHandler = createJobHandler;
395533
+ function createJobFactory(loader2, options8 = {}) {
395534
+ const handler = (argument, context) => {
395535
+ return (0, rxjs_1.from)(loader2()).pipe((0, rxjs_1.switchMap)((fn6) => fn6(argument, context)));
395536
+ };
395537
+ return Object.assign(handler, { jobDescription: options8 });
395538
+ }
395539
+ exports2.createJobFactory = createJobFactory;
395540
+ function createLoggerJob(job, logger) {
395541
+ const handler = (argument, context) => {
395542
+ context.inboundBus.pipe((0, rxjs_1.tap)((message) => logger.info(`Input: ${JSON.stringify(message)}`))).subscribe();
395543
+ return job(argument, context).pipe((0, rxjs_1.tap)((message) => logger.info(`Message: ${JSON.stringify(message)}`), (error) => logger.warn(`Error: ${JSON.stringify(error)}`), () => logger.info(`Completed`)));
395544
+ };
395545
+ return Object.assign(handler, job);
395546
+ }
395547
+ exports2.createLoggerJob = createLoggerJob;
395548
+ }
395549
+ });
395550
+
395551
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/exception.js
395552
+ var require_exception3 = __commonJS({
395553
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/exception.js"(exports2) {
395554
+ "use strict";
395555
+ Object.defineProperty(exports2, "__esModule", { value: true });
395556
+ exports2.JobDoesNotExistException = exports2.JobNameAlreadyRegisteredException = void 0;
395557
+ var core_1 = require_src3();
395558
+ var JobNameAlreadyRegisteredException = class extends core_1.BaseException {
395559
+ constructor(name) {
395560
+ super(`Job named ${JSON.stringify(name)} already exists.`);
395561
+ }
395562
+ };
395563
+ exports2.JobNameAlreadyRegisteredException = JobNameAlreadyRegisteredException;
395564
+ var JobDoesNotExistException = class extends core_1.BaseException {
395565
+ constructor(name) {
395566
+ super(`Job name ${JSON.stringify(name)} does not exist.`);
395567
+ }
395568
+ };
395569
+ exports2.JobDoesNotExistException = JobDoesNotExistException;
395570
+ }
395571
+ });
395572
+
395573
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/dispatcher.js
395574
+ var require_dispatcher = __commonJS({
395575
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/dispatcher.js"(exports2) {
395576
+ "use strict";
395577
+ Object.defineProperty(exports2, "__esModule", { value: true });
395578
+ exports2.createDispatcher = void 0;
395579
+ var api_1 = require_api();
395580
+ var exception_1 = require_exception3();
395581
+ function createDispatcher(options8 = {}) {
395582
+ let defaultDelegate = null;
395583
+ const conditionalDelegateList = [];
395584
+ const job = Object.assign((argument, context) => {
395585
+ const maybeDelegate = conditionalDelegateList.find(([predicate]) => predicate(argument));
395586
+ let delegate = null;
395587
+ if (maybeDelegate) {
395588
+ delegate = context.scheduler.schedule(maybeDelegate[1], argument);
395589
+ } else if (defaultDelegate) {
395590
+ delegate = context.scheduler.schedule(defaultDelegate, argument);
395591
+ } else {
395592
+ throw new exception_1.JobDoesNotExistException("<null>");
395593
+ }
395594
+ context.inboundBus.subscribe(delegate.inboundBus);
395595
+ return delegate.outboundBus;
395596
+ }, {
395597
+ jobDescription: options8
395598
+ });
395599
+ return Object.assign(job, {
395600
+ setDefaultJob(name) {
395601
+ if ((0, api_1.isJobHandler)(name)) {
395602
+ name = name.jobDescription.name === void 0 ? null : name.jobDescription.name;
395603
+ }
395604
+ defaultDelegate = name;
395605
+ },
395606
+ addConditionalJob(predicate, name) {
395607
+ conditionalDelegateList.push([predicate, name]);
395608
+ }
395609
+ // TODO: Remove return-only generic from createDispatcher() API.
395610
+ });
395611
+ }
395612
+ exports2.createDispatcher = createDispatcher;
395613
+ }
395614
+ });
395615
+
395616
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/fallback-registry.js
395617
+ var require_fallback_registry = __commonJS({
395618
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/fallback-registry.js"(exports2) {
395619
+ "use strict";
395620
+ Object.defineProperty(exports2, "__esModule", { value: true });
395621
+ exports2.FallbackRegistry = void 0;
395622
+ var rxjs_1 = require_cjs();
395623
+ var FallbackRegistry = class {
395624
+ _fallbacks;
395625
+ constructor(_fallbacks = []) {
395626
+ this._fallbacks = _fallbacks;
395627
+ }
395628
+ addFallback(registry) {
395629
+ this._fallbacks.push(registry);
395630
+ }
395631
+ get(name) {
395632
+ return (0, rxjs_1.from)(this._fallbacks).pipe((0, rxjs_1.concatMap)((fb) => fb.get(name)), (0, rxjs_1.first)((x5) => x5 !== null, null));
395633
+ }
395634
+ };
395635
+ exports2.FallbackRegistry = FallbackRegistry;
395636
+ }
395637
+ });
395638
+
395639
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/simple-registry.js
395640
+ var require_simple_registry = __commonJS({
395641
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/simple-registry.js"(exports2) {
395642
+ "use strict";
395643
+ Object.defineProperty(exports2, "__esModule", { value: true });
395644
+ exports2.SimpleJobRegistry = void 0;
395645
+ var core_1 = require_src3();
395646
+ var rxjs_1 = require_cjs();
395647
+ var api_1 = require_api();
395648
+ var exception_1 = require_exception3();
395649
+ var SimpleJobRegistry = class {
395650
+ _jobNames = /* @__PURE__ */ new Map();
395651
+ get(name) {
395652
+ return (0, rxjs_1.of)(this._jobNames.get(name) || null);
395653
+ }
395654
+ register(nameOrHandler, handlerOrOptions = {}, options8 = {}) {
395655
+ if (typeof nameOrHandler == "string") {
395656
+ if (!(0, api_1.isJobHandler)(handlerOrOptions)) {
395657
+ throw new TypeError("Expected a JobHandler as second argument.");
395658
+ }
395659
+ this._register(nameOrHandler, handlerOrOptions, options8);
395660
+ } else if ((0, api_1.isJobHandler)(nameOrHandler)) {
395661
+ if (typeof handlerOrOptions !== "object") {
395662
+ throw new TypeError("Expected an object options as second argument.");
395663
+ }
395664
+ const name = options8.name || nameOrHandler.jobDescription.name || handlerOrOptions.name;
395665
+ if (name === void 0) {
395666
+ throw new TypeError("Expected name to be a string.");
395667
+ }
395668
+ this._register(name, nameOrHandler, options8);
395669
+ } else {
395670
+ throw new TypeError("Unrecognized arguments.");
395671
+ }
395672
+ }
395673
+ _register(name, handler, options8) {
395674
+ if (this._jobNames.has(name)) {
395675
+ throw new exception_1.JobNameAlreadyRegisteredException(name);
395676
+ }
395677
+ const argument = core_1.schema.mergeSchemas(handler.jobDescription.argument, options8.argument);
395678
+ const input = core_1.schema.mergeSchemas(handler.jobDescription.input, options8.input);
395679
+ const output = core_1.schema.mergeSchemas(handler.jobDescription.output, options8.output);
395680
+ const jobDescription = {
395681
+ name,
395682
+ argument,
395683
+ output,
395684
+ input
395685
+ };
395686
+ const jobHandler = Object.assign(handler.bind(void 0), {
395687
+ jobDescription
395688
+ });
395689
+ this._jobNames.set(name, jobHandler);
395690
+ }
395691
+ /**
395692
+ * Returns the job names of all jobs.
395693
+ */
395694
+ getJobNames() {
395695
+ return [...this._jobNames.keys()];
395696
+ }
395697
+ };
395698
+ exports2.SimpleJobRegistry = SimpleJobRegistry;
395699
+ }
395700
+ });
395701
+
395702
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/simple-scheduler.js
395703
+ var require_simple_scheduler = __commonJS({
395704
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/simple-scheduler.js"(exports2) {
395705
+ "use strict";
395706
+ Object.defineProperty(exports2, "__esModule", { value: true });
395707
+ exports2.SimpleScheduler = exports2.JobOutputSchemaValidationError = exports2.JobInboundMessageSchemaValidationError = exports2.JobArgumentSchemaValidationError = void 0;
395708
+ var core_1 = require_src3();
395709
+ var rxjs_1 = require_cjs();
395710
+ var api_1 = require_api();
395711
+ var exception_1 = require_exception3();
395712
+ var JobArgumentSchemaValidationError = class extends core_1.schema.SchemaValidationException {
395713
+ constructor(errors) {
395714
+ super(errors, "Job Argument failed to validate. Errors: ");
395715
+ }
395716
+ };
395717
+ exports2.JobArgumentSchemaValidationError = JobArgumentSchemaValidationError;
395718
+ var JobInboundMessageSchemaValidationError = class extends core_1.schema.SchemaValidationException {
395719
+ constructor(errors) {
395720
+ super(errors, "Job Inbound Message failed to validate. Errors: ");
395721
+ }
395722
+ };
395723
+ exports2.JobInboundMessageSchemaValidationError = JobInboundMessageSchemaValidationError;
395724
+ var JobOutputSchemaValidationError = class extends core_1.schema.SchemaValidationException {
395725
+ constructor(errors) {
395726
+ super(errors, "Job Output failed to validate. Errors: ");
395727
+ }
395728
+ };
395729
+ exports2.JobOutputSchemaValidationError = JobOutputSchemaValidationError;
395730
+ function _jobShare() {
395731
+ return (source2) => {
395732
+ let refCount = 0;
395733
+ let subject;
395734
+ let hasError = false;
395735
+ let isComplete = false;
395736
+ let subscription;
395737
+ return new rxjs_1.Observable((subscriber) => {
395738
+ let innerSub;
395739
+ refCount++;
395740
+ if (!subject) {
395741
+ subject = new rxjs_1.Subject();
395742
+ innerSub = subject.subscribe(subscriber);
395743
+ subscription = source2.subscribe({
395744
+ next(value) {
395745
+ subject.next(value);
395746
+ },
395747
+ error(err) {
395748
+ hasError = true;
395749
+ subject.error(err);
395750
+ },
395751
+ complete() {
395752
+ isComplete = true;
395753
+ subject.complete();
395754
+ }
395755
+ });
395756
+ } else {
395757
+ innerSub = subject.subscribe(subscriber);
395758
+ }
395759
+ return () => {
395760
+ refCount--;
395761
+ innerSub.unsubscribe();
395762
+ if (subscription && refCount === 0 && (isComplete || hasError)) {
395763
+ subscription.unsubscribe();
395764
+ }
395765
+ };
395766
+ });
395767
+ };
395768
+ }
395769
+ var SimpleScheduler = class {
395770
+ _jobRegistry;
395771
+ _schemaRegistry;
395772
+ _internalJobDescriptionMap = /* @__PURE__ */ new Map();
395773
+ _queue = [];
395774
+ _pauseCounter = 0;
395775
+ constructor(_jobRegistry, _schemaRegistry = new core_1.schema.CoreSchemaRegistry()) {
395776
+ this._jobRegistry = _jobRegistry;
395777
+ this._schemaRegistry = _schemaRegistry;
395778
+ }
395779
+ _getInternalDescription(name) {
395780
+ const maybeHandler = this._internalJobDescriptionMap.get(name);
395781
+ if (maybeHandler !== void 0) {
395782
+ return (0, rxjs_1.of)(maybeHandler);
395783
+ }
395784
+ const handler = this._jobRegistry.get(name);
395785
+ return handler.pipe((0, rxjs_1.switchMap)((handler2) => {
395786
+ if (handler2 === null) {
395787
+ return (0, rxjs_1.of)(null);
395788
+ }
395789
+ const description = {
395790
+ // Make a copy of it to be sure it's proper JSON.
395791
+ ...JSON.parse(JSON.stringify(handler2.jobDescription)),
395792
+ name: handler2.jobDescription.name || name,
395793
+ argument: handler2.jobDescription.argument || true,
395794
+ input: handler2.jobDescription.input || true,
395795
+ output: handler2.jobDescription.output || true,
395796
+ channels: handler2.jobDescription.channels || {}
395797
+ };
395798
+ const handlerWithExtra = Object.assign(handler2.bind(void 0), {
395799
+ jobDescription: description,
395800
+ argumentV: this._schemaRegistry.compile(description.argument),
395801
+ inputV: this._schemaRegistry.compile(description.input),
395802
+ outputV: this._schemaRegistry.compile(description.output)
395803
+ });
395804
+ this._internalJobDescriptionMap.set(name, handlerWithExtra);
395805
+ return (0, rxjs_1.of)(handlerWithExtra);
395806
+ }));
395807
+ }
395808
+ /**
395809
+ * Get a job description for a named job.
395810
+ *
395811
+ * @param name The name of the job.
395812
+ * @returns A description, or null if the job is not registered.
395813
+ */
395814
+ getDescription(name) {
395815
+ return (0, rxjs_1.concat)(this._getInternalDescription(name).pipe((0, rxjs_1.map)((x5) => x5 && x5.jobDescription)), (0, rxjs_1.of)(null)).pipe((0, rxjs_1.first)());
395816
+ }
395817
+ /**
395818
+ * Returns true if the job name has been registered.
395819
+ * @param name The name of the job.
395820
+ * @returns True if the job exists, false otherwise.
395821
+ */
395822
+ has(name) {
395823
+ return this.getDescription(name).pipe((0, rxjs_1.map)((x5) => x5 !== null));
395824
+ }
395825
+ /**
395826
+ * Pause the scheduler, temporary queueing _new_ jobs. Returns a resume function that should be
395827
+ * used to resume execution. If multiple `pause()` were called, all their resume functions must
395828
+ * be called before the Scheduler actually starts new jobs. Additional calls to the same resume
395829
+ * function will have no effect.
395830
+ *
395831
+ * Jobs already running are NOT paused. This is pausing the scheduler only.
395832
+ */
395833
+ pause() {
395834
+ let called = false;
395835
+ this._pauseCounter++;
395836
+ return () => {
395837
+ if (!called) {
395838
+ called = true;
395839
+ if (--this._pauseCounter == 0) {
395840
+ const q9 = this._queue;
395841
+ this._queue = [];
395842
+ q9.forEach((fn6) => fn6());
395843
+ }
395844
+ }
395845
+ };
395846
+ }
395847
+ /**
395848
+ * Schedule a job to be run, using its name.
395849
+ * @param name The name of job to be run.
395850
+ * @param argument The argument to send to the job when starting it.
395851
+ * @param options Scheduling options.
395852
+ * @returns The Job being run.
395853
+ */
395854
+ schedule(name, argument, options8) {
395855
+ if (this._pauseCounter > 0) {
395856
+ const waitable = new rxjs_1.Subject();
395857
+ this._queue.push(() => waitable.complete());
395858
+ return this._scheduleJob(name, argument, options8 || {}, waitable);
395859
+ }
395860
+ return this._scheduleJob(name, argument, options8 || {}, rxjs_1.EMPTY);
395861
+ }
395862
+ /**
395863
+ * Filter messages.
395864
+ * @private
395865
+ */
395866
+ _filterJobOutboundMessages(message, state) {
395867
+ switch (message.kind) {
395868
+ case api_1.JobOutboundMessageKind.OnReady:
395869
+ return state == api_1.JobState.Queued;
395870
+ case api_1.JobOutboundMessageKind.Start:
395871
+ return state == api_1.JobState.Ready;
395872
+ case api_1.JobOutboundMessageKind.End:
395873
+ return state == api_1.JobState.Started || state == api_1.JobState.Ready;
395874
+ }
395875
+ return true;
395876
+ }
395877
+ /**
395878
+ * Return a new state. This is just to simplify the reading of the _createJob method.
395879
+ * @private
395880
+ */
395881
+ _updateState(message, state) {
395882
+ switch (message.kind) {
395883
+ case api_1.JobOutboundMessageKind.OnReady:
395884
+ return api_1.JobState.Ready;
395885
+ case api_1.JobOutboundMessageKind.Start:
395886
+ return api_1.JobState.Started;
395887
+ case api_1.JobOutboundMessageKind.End:
395888
+ return api_1.JobState.Ended;
395889
+ }
395890
+ return state;
395891
+ }
395892
+ /**
395893
+ * Create the job.
395894
+ * @private
395895
+ */
395896
+ // eslint-disable-next-line max-lines-per-function
395897
+ _createJob(name, argument, handler, inboundBus, outboundBus) {
395898
+ const schemaRegistry = this._schemaRegistry;
395899
+ const channelsSubject = /* @__PURE__ */ new Map();
395900
+ const channels = /* @__PURE__ */ new Map();
395901
+ let state = api_1.JobState.Queued;
395902
+ let pingId = 0;
395903
+ const input = new rxjs_1.Subject();
395904
+ input.pipe((0, rxjs_1.concatMap)((message) => handler.pipe((0, rxjs_1.switchMap)(async (handler2) => {
395905
+ if (handler2 === null) {
395906
+ throw new exception_1.JobDoesNotExistException(name);
395907
+ }
395908
+ const validator = await handler2.inputV;
395909
+ return validator(message);
395910
+ }))), (0, rxjs_1.filter)((result) => result.success), (0, rxjs_1.map)((result) => result.data)).subscribe((value) => inboundBus.next({ kind: api_1.JobInboundMessageKind.Input, value }));
395911
+ outboundBus = (0, rxjs_1.concat)(
395912
+ outboundBus,
395913
+ // Add an End message at completion. This will be filtered out if the job actually send an
395914
+ // End.
395915
+ handler.pipe((0, rxjs_1.switchMap)((handler2) => {
395916
+ if (handler2) {
395917
+ return (0, rxjs_1.of)({
395918
+ kind: api_1.JobOutboundMessageKind.End,
395919
+ description: handler2.jobDescription
395920
+ });
395921
+ } else {
395922
+ return rxjs_1.EMPTY;
395923
+ }
395924
+ }))
395925
+ ).pipe(
395926
+ (0, rxjs_1.filter)((message) => this._filterJobOutboundMessages(message, state)),
395927
+ // Update internal logic and Job<> members.
395928
+ (0, rxjs_1.tap)((message) => {
395929
+ state = this._updateState(message, state);
395930
+ switch (message.kind) {
395931
+ case api_1.JobOutboundMessageKind.ChannelCreate: {
395932
+ const maybeSubject = channelsSubject.get(message.name);
395933
+ if (!maybeSubject) {
395934
+ const s = new rxjs_1.Subject();
395935
+ channelsSubject.set(message.name, s);
395936
+ channels.set(message.name, s.asObservable());
395937
+ }
395938
+ break;
395939
+ }
395940
+ case api_1.JobOutboundMessageKind.ChannelMessage: {
395941
+ const maybeSubject = channelsSubject.get(message.name);
395942
+ if (maybeSubject) {
395943
+ maybeSubject.next(message.message);
395944
+ }
395945
+ break;
395946
+ }
395947
+ case api_1.JobOutboundMessageKind.ChannelComplete: {
395948
+ const maybeSubject = channelsSubject.get(message.name);
395949
+ if (maybeSubject) {
395950
+ maybeSubject.complete();
395951
+ channelsSubject.delete(message.name);
395952
+ }
395953
+ break;
395954
+ }
395955
+ case api_1.JobOutboundMessageKind.ChannelError: {
395956
+ const maybeSubject = channelsSubject.get(message.name);
395957
+ if (maybeSubject) {
395958
+ maybeSubject.error(message.error);
395959
+ channelsSubject.delete(message.name);
395960
+ }
395961
+ break;
395962
+ }
395963
+ }
395964
+ }, () => {
395965
+ state = api_1.JobState.Errored;
395966
+ }),
395967
+ // Do output validation (might include default values so this might have side
395968
+ // effects). We keep all messages in order.
395969
+ (0, rxjs_1.concatMap)((message) => {
395970
+ if (message.kind !== api_1.JobOutboundMessageKind.Output) {
395971
+ return (0, rxjs_1.of)(message);
395972
+ }
395973
+ return handler.pipe((0, rxjs_1.switchMap)(async (handler2) => {
395974
+ if (handler2 === null) {
395975
+ throw new exception_1.JobDoesNotExistException(name);
395976
+ }
395977
+ const validate = await handler2.outputV;
395978
+ const output2 = await validate(message.value);
395979
+ if (!output2.success) {
395980
+ throw new JobOutputSchemaValidationError(output2.errors);
395981
+ }
395982
+ return {
395983
+ ...message,
395984
+ output: output2.data
395985
+ };
395986
+ }));
395987
+ }),
395988
+ _jobShare()
395989
+ );
395990
+ const output = outboundBus.pipe((0, rxjs_1.filter)((x5) => x5.kind == api_1.JobOutboundMessageKind.Output), (0, rxjs_1.map)((x5) => x5.value), (0, rxjs_1.shareReplay)(1));
395991
+ return {
395992
+ get state() {
395993
+ return state;
395994
+ },
395995
+ argument,
395996
+ description: handler.pipe((0, rxjs_1.switchMap)((handler2) => {
395997
+ if (handler2 === null) {
395998
+ throw new exception_1.JobDoesNotExistException(name);
395999
+ } else {
396000
+ return (0, rxjs_1.of)(handler2.jobDescription);
396001
+ }
396002
+ })),
396003
+ output,
396004
+ getChannel(name2, schema2 = true) {
396005
+ let maybeObservable = channels.get(name2);
396006
+ if (!maybeObservable) {
396007
+ const s = new rxjs_1.Subject();
396008
+ channelsSubject.set(name2, s);
396009
+ channels.set(name2, s.asObservable());
396010
+ maybeObservable = s.asObservable();
396011
+ }
396012
+ return maybeObservable.pipe(
396013
+ // Keep the order of messages.
396014
+ (0, rxjs_1.concatMap)((message) => {
396015
+ return (0, rxjs_1.from)(schemaRegistry.compile(schema2)).pipe((0, rxjs_1.switchMap)((validate) => validate(message)), (0, rxjs_1.filter)((x5) => x5.success), (0, rxjs_1.map)((x5) => x5.data));
396016
+ })
396017
+ );
396018
+ },
396019
+ ping() {
396020
+ const id = pingId++;
396021
+ inboundBus.next({ kind: api_1.JobInboundMessageKind.Ping, id });
396022
+ return outboundBus.pipe((0, rxjs_1.filter)((x5) => x5.kind === api_1.JobOutboundMessageKind.Pong && x5.id == id), (0, rxjs_1.first)(), (0, rxjs_1.ignoreElements)());
396023
+ },
396024
+ stop() {
396025
+ inboundBus.next({ kind: api_1.JobInboundMessageKind.Stop });
396026
+ },
396027
+ input,
396028
+ inboundBus,
396029
+ outboundBus
396030
+ };
396031
+ }
396032
+ _scheduleJob(name, argument, options8, waitable) {
396033
+ const handler = this._getInternalDescription(name);
396034
+ const optionsDeps = options8 && options8.dependencies || [];
396035
+ const dependencies = Array.isArray(optionsDeps) ? optionsDeps : [optionsDeps];
396036
+ const inboundBus = new rxjs_1.Subject();
396037
+ const outboundBus = (0, rxjs_1.concat)(
396038
+ // Wait for dependencies, make sure to not report messages from dependencies. Subscribe to
396039
+ // all dependencies at the same time so they run concurrently.
396040
+ (0, rxjs_1.merge)(...dependencies.map((x5) => x5.outboundBus)).pipe((0, rxjs_1.ignoreElements)()),
396041
+ // Wait for pause() to clear (if necessary).
396042
+ waitable,
396043
+ (0, rxjs_1.from)(handler).pipe((0, rxjs_1.switchMap)((handler2) => new rxjs_1.Observable((subscriber) => {
396044
+ if (!handler2) {
396045
+ throw new exception_1.JobDoesNotExistException(name);
396046
+ }
396047
+ return (0, rxjs_1.from)(handler2.argumentV).pipe((0, rxjs_1.switchMap)((validate) => validate(argument)), (0, rxjs_1.switchMap)((output) => {
396048
+ if (!output.success) {
396049
+ throw new JobArgumentSchemaValidationError(output.errors);
396050
+ }
396051
+ const argument2 = output.data;
396052
+ const description = handler2.jobDescription;
396053
+ subscriber.next({ kind: api_1.JobOutboundMessageKind.OnReady, description });
396054
+ const context = {
396055
+ description,
396056
+ dependencies: [...dependencies],
396057
+ inboundBus: inboundBus.asObservable(),
396058
+ scheduler: this
396059
+ };
396060
+ return handler2(argument2, context);
396061
+ })).subscribe(subscriber);
396062
+ })))
396063
+ );
396064
+ return this._createJob(name, argument, handler, inboundBus, outboundBus);
396065
+ }
396066
+ };
396067
+ exports2.SimpleScheduler = SimpleScheduler;
396068
+ }
396069
+ });
396070
+
396071
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/index.js
396072
+ var require_jobs = __commonJS({
396073
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/jobs/index.js"(exports2) {
396074
+ "use strict";
396075
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o2, m2, k6, k23) {
396076
+ if (k23 === void 0)
396077
+ k23 = k6;
396078
+ var desc = Object.getOwnPropertyDescriptor(m2, k6);
396079
+ if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
396080
+ desc = { enumerable: true, get: function() {
396081
+ return m2[k6];
396082
+ } };
396083
+ }
396084
+ Object.defineProperty(o2, k23, desc);
396085
+ } : function(o2, m2, k6, k23) {
396086
+ if (k23 === void 0)
396087
+ k23 = k6;
396088
+ o2[k23] = m2[k6];
396089
+ });
396090
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o2, v5) {
396091
+ Object.defineProperty(o2, "default", { enumerable: true, value: v5 });
396092
+ } : function(o2, v5) {
396093
+ o2["default"] = v5;
396094
+ });
396095
+ var __importStar2 = exports2 && exports2.__importStar || function(mod) {
396096
+ if (mod && mod.__esModule)
396097
+ return mod;
396098
+ var result = {};
396099
+ if (mod != null) {
396100
+ for (var k6 in mod)
396101
+ if (k6 !== "default" && Object.prototype.hasOwnProperty.call(mod, k6))
396102
+ __createBinding2(result, mod, k6);
396103
+ }
396104
+ __setModuleDefault2(result, mod);
396105
+ return result;
396106
+ };
396107
+ var __exportStar2 = exports2 && exports2.__exportStar || function(m2, exports3) {
396108
+ for (var p4 in m2)
396109
+ if (p4 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p4))
396110
+ __createBinding2(exports3, m2, p4);
396111
+ };
396112
+ Object.defineProperty(exports2, "__esModule", { value: true });
396113
+ exports2.strategy = void 0;
396114
+ var strategy = __importStar2(require_strategy());
396115
+ exports2.strategy = strategy;
396116
+ __exportStar2(require_api(), exports2);
396117
+ __exportStar2(require_create_job_handler(), exports2);
396118
+ __exportStar2(require_exception3(), exports2);
396119
+ __exportStar2(require_dispatcher(), exports2);
396120
+ __exportStar2(require_fallback_registry(), exports2);
396121
+ __exportStar2(require_simple_registry(), exports2);
396122
+ __exportStar2(require_simple_scheduler(), exports2);
396123
+ }
396124
+ });
396125
+
396126
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/progress-schema.js
396127
+ var require_progress_schema = __commonJS({
396128
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/progress-schema.js"(exports2) {
396129
+ "use strict";
396130
+ Object.defineProperty(exports2, "__esModule", { value: true });
396131
+ exports2.State = void 0;
396132
+ var State;
396133
+ (function(State2) {
396134
+ State2["Error"] = "error";
396135
+ State2["Running"] = "running";
396136
+ State2["Stopped"] = "stopped";
396137
+ State2["Waiting"] = "waiting";
396138
+ })(State || (exports2.State = State = {}));
396139
+ }
396140
+ });
396141
+
396142
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/api.js
396143
+ var require_api2 = __commonJS({
396144
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/api.js"(exports2) {
396145
+ "use strict";
396146
+ Object.defineProperty(exports2, "__esModule", { value: true });
396147
+ exports2.scheduleTargetAndForget = exports2.targetFromTargetString = exports2.targetStringFromTarget = exports2.fromAsyncIterable = exports2.isBuilderOutput = exports2.BuilderProgressState = void 0;
396148
+ var rxjs_1 = require_cjs();
396149
+ var progress_schema_1 = require_progress_schema();
396150
+ Object.defineProperty(exports2, "BuilderProgressState", { enumerable: true, get: function() {
396151
+ return progress_schema_1.State;
396152
+ } });
396153
+ function isBuilderOutput(obj) {
396154
+ if (!obj || typeof obj.then === "function" || typeof obj.subscribe === "function") {
396155
+ return false;
396156
+ }
396157
+ if (typeof obj[Symbol.asyncIterator] === "function") {
396158
+ return false;
396159
+ }
396160
+ return typeof obj.success === "boolean";
396161
+ }
396162
+ exports2.isBuilderOutput = isBuilderOutput;
396163
+ function fromAsyncIterable(iterable) {
396164
+ return new rxjs_1.Observable((subscriber) => {
396165
+ handleAsyncIterator(subscriber, iterable[Symbol.asyncIterator]()).then(() => subscriber.complete(), (error) => subscriber.error(error));
396166
+ });
396167
+ }
396168
+ exports2.fromAsyncIterable = fromAsyncIterable;
396169
+ async function handleAsyncIterator(subscriber, iterator) {
396170
+ const teardown = new Promise((resolve3) => subscriber.add(() => resolve3()));
396171
+ try {
396172
+ while (!subscriber.closed) {
396173
+ const result = await Promise.race([teardown, iterator.next()]);
396174
+ if (!result || result.done) {
396175
+ break;
396176
+ }
396177
+ subscriber.next(result.value);
396178
+ }
396179
+ } finally {
396180
+ await iterator.return?.();
396181
+ }
396182
+ }
396183
+ function targetStringFromTarget({ project, target, configuration }) {
396184
+ return `${project}:${target}${configuration !== void 0 ? ":" + configuration : ""}`;
396185
+ }
396186
+ exports2.targetStringFromTarget = targetStringFromTarget;
396187
+ function targetFromTargetString(specifier, abbreviatedProjectName, abbreviatedTargetName) {
396188
+ const tuple = specifier.split(":", 3);
396189
+ if (tuple.length < 2) {
396190
+ throw new Error("Invalid target string: " + JSON.stringify(specifier));
396191
+ }
396192
+ return {
396193
+ project: tuple[0] || abbreviatedProjectName || "",
396194
+ target: tuple[1] || abbreviatedTargetName || "",
396195
+ ...tuple[2] !== void 0 && { configuration: tuple[2] }
396196
+ };
396197
+ }
396198
+ exports2.targetFromTargetString = targetFromTargetString;
396199
+ function scheduleTargetAndForget(context, target, overrides, scheduleOptions) {
396200
+ let resolve3 = null;
396201
+ const promise = new Promise((r4) => resolve3 = r4);
396202
+ context.addTeardown(() => promise);
396203
+ return (0, rxjs_1.from)(context.scheduleTarget(target, overrides, scheduleOptions)).pipe((0, rxjs_1.switchMap)((run) => new rxjs_1.Observable((observer) => {
396204
+ const subscription = run.output.subscribe(observer);
396205
+ return () => {
396206
+ subscription.unsubscribe();
396207
+ run.stop().then(resolve3);
396208
+ };
396209
+ })));
396210
+ }
396211
+ exports2.scheduleTargetAndForget = scheduleTargetAndForget;
396212
+ }
396213
+ });
396214
+
396215
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/progress-schema.json
396216
+ var require_progress_schema2 = __commonJS({
396217
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/progress-schema.json"(exports2, module2) {
396218
+ module2.exports = {
396219
+ $schema: "http://json-schema.org/draft-07/schema",
396220
+ $id: "BuilderProgressSchema",
396221
+ title: "Progress schema for builders.",
396222
+ type: "object",
396223
+ allOf: [
396224
+ {
396225
+ type: "object",
396226
+ oneOf: [
396227
+ {
396228
+ type: "object",
396229
+ properties: {
396230
+ state: {
396231
+ type: "string",
396232
+ enum: ["stopped"]
396233
+ }
396234
+ },
396235
+ required: ["state"]
396236
+ },
396237
+ {
396238
+ type: "object",
396239
+ properties: {
396240
+ state: {
396241
+ type: "string",
396242
+ enum: ["waiting"]
396243
+ },
396244
+ status: {
396245
+ type: "string"
396246
+ }
396247
+ },
396248
+ required: ["state"]
396249
+ },
396250
+ {
396251
+ type: "object",
396252
+ properties: {
396253
+ state: {
396254
+ type: "string",
396255
+ enum: ["running"]
396256
+ },
396257
+ current: {
396258
+ type: "number",
396259
+ minimum: 0
396260
+ },
396261
+ total: {
396262
+ type: "number",
396263
+ minimum: 0
396264
+ },
396265
+ status: {
396266
+ type: "string"
396267
+ }
396268
+ },
396269
+ required: ["state"]
396270
+ },
396271
+ {
396272
+ type: "object",
396273
+ properties: {
396274
+ state: {
396275
+ type: "string",
396276
+ enum: ["error"]
396277
+ },
396278
+ error: true
396279
+ },
396280
+ required: ["state"]
396281
+ }
396282
+ ]
396283
+ },
396284
+ {
396285
+ type: "object",
396286
+ properties: {
396287
+ builder: {
396288
+ type: "object"
396289
+ },
396290
+ target: {
396291
+ type: "object"
396292
+ },
396293
+ id: {
396294
+ type: "number"
396295
+ }
396296
+ },
396297
+ required: ["builder", "id"]
396298
+ }
396299
+ ]
396300
+ };
396301
+ }
396302
+ });
396303
+
396304
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/schedule-by-name.js
396305
+ var require_schedule_by_name = __commonJS({
396306
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/schedule-by-name.js"(exports2) {
396307
+ "use strict";
396308
+ Object.defineProperty(exports2, "__esModule", { value: true });
396309
+ exports2.scheduleByTarget = exports2.scheduleByName = void 0;
396310
+ var rxjs_1 = require_cjs();
396311
+ var api_1 = require_api2();
396312
+ var jobs_1 = require_jobs();
396313
+ var progressSchema = require_progress_schema2();
396314
+ var _uniqueId = 0;
396315
+ async function scheduleByName(name, buildOptions, options8) {
396316
+ const childLoggerName = options8.target ? `{${(0, api_1.targetStringFromTarget)(options8.target)}}` : name;
396317
+ const logger = options8.logger.createChild(childLoggerName);
396318
+ const job = options8.scheduler.schedule(name, {});
396319
+ let stateSubscription;
396320
+ const workspaceRoot = await options8.workspaceRoot;
396321
+ const currentDirectory = await options8.currentDirectory;
396322
+ const description = await (0, rxjs_1.firstValueFrom)(job.description);
396323
+ const info = description.info;
396324
+ const id = ++_uniqueId;
396325
+ const message = {
396326
+ id,
396327
+ currentDirectory,
396328
+ workspaceRoot,
396329
+ info,
396330
+ options: buildOptions,
396331
+ ...options8.target ? { target: options8.target } : {}
396332
+ };
396333
+ if (job.state !== jobs_1.JobState.Started) {
396334
+ stateSubscription = job.outboundBus.subscribe({
396335
+ next: (event) => {
396336
+ if (event.kind === jobs_1.JobOutboundMessageKind.Start) {
396337
+ job.input.next(message);
396338
+ }
396339
+ },
396340
+ error: () => {
396341
+ }
396342
+ });
396343
+ } else {
396344
+ job.input.next(message);
396345
+ }
396346
+ const logChannelSub = job.getChannel("log").subscribe({
396347
+ next: (entry) => {
396348
+ logger.next(entry);
396349
+ },
396350
+ error: () => {
396351
+ }
396352
+ });
396353
+ const outboundBusSub = job.outboundBus.subscribe({
396354
+ error() {
396355
+ },
396356
+ complete() {
396357
+ outboundBusSub.unsubscribe();
396358
+ logChannelSub.unsubscribe();
396359
+ stateSubscription.unsubscribe();
396360
+ }
396361
+ });
396362
+ const output = job.output.pipe((0, rxjs_1.map)((output2) => ({
396363
+ ...output2,
396364
+ ...options8.target ? { target: options8.target } : 0,
396365
+ info
396366
+ })), (0, rxjs_1.shareReplay)());
396367
+ output.pipe((0, rxjs_1.first)()).subscribe({
396368
+ error: () => {
396369
+ }
396370
+ });
396371
+ return {
396372
+ id,
396373
+ info,
396374
+ // This is a getter so that it always returns the next output, and not the same one.
396375
+ get result() {
396376
+ return (0, rxjs_1.firstValueFrom)(output);
396377
+ },
396378
+ get lastOutput() {
396379
+ return (0, rxjs_1.lastValueFrom)(output);
396380
+ },
396381
+ output,
396382
+ progress: job.getChannel("progress", progressSchema).pipe((0, rxjs_1.shareReplay)(1)),
396383
+ stop() {
396384
+ job.stop();
396385
+ return job.outboundBus.pipe((0, rxjs_1.ignoreElements)(), (0, rxjs_1.catchError)(() => rxjs_1.EMPTY)).toPromise();
396386
+ }
396387
+ };
396388
+ }
396389
+ exports2.scheduleByName = scheduleByName;
396390
+ async function scheduleByTarget(target, overrides, options8) {
396391
+ return scheduleByName(`{${(0, api_1.targetStringFromTarget)(target)}}`, overrides, {
396392
+ ...options8,
396393
+ target,
396394
+ logger: options8.logger
396395
+ });
396396
+ }
396397
+ exports2.scheduleByTarget = scheduleByTarget;
396398
+ }
396399
+ });
396400
+
396401
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/input-schema.json
396402
+ var require_input_schema = __commonJS({
396403
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/input-schema.json"(exports2, module2) {
396404
+ module2.exports = {
396405
+ $schema: "http://json-schema.org/draft-07/schema",
396406
+ $id: "BuilderInputSchema",
396407
+ title: "Input schema for builders.",
396408
+ type: "object",
396409
+ properties: {
396410
+ workspaceRoot: {
396411
+ type: "string"
396412
+ },
396413
+ currentDirectory: {
396414
+ type: "string"
396415
+ },
396416
+ id: {
396417
+ type: "number"
396418
+ },
396419
+ target: {
396420
+ type: "object",
396421
+ properties: {
396422
+ project: {
396423
+ type: "string"
396424
+ },
396425
+ target: {
396426
+ type: "string"
396427
+ },
396428
+ configuration: {
396429
+ type: "string"
396430
+ }
396431
+ },
396432
+ required: ["project", "target"]
396433
+ },
396434
+ info: {
396435
+ type: "object"
396436
+ },
396437
+ options: {
396438
+ type: "object"
396439
+ }
396440
+ },
396441
+ required: ["currentDirectory", "id", "info", "workspaceRoot"]
396442
+ };
396443
+ }
396444
+ });
396445
+
396446
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/output-schema.json
396447
+ var require_output_schema = __commonJS({
396448
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/output-schema.json"(exports2, module2) {
396449
+ module2.exports = {
396450
+ $schema: "http://json-schema.org/draft-07/schema",
396451
+ $id: "BuilderOutputSchema",
396452
+ title: "Output schema for builders.",
396453
+ type: "object",
396454
+ properties: {
396455
+ success: {
396456
+ type: "boolean"
396457
+ },
396458
+ error: {
396459
+ type: "string"
396460
+ },
396461
+ target: {
396462
+ type: "object",
396463
+ properties: {
396464
+ project: {
396465
+ type: "string"
396466
+ },
396467
+ target: {
396468
+ type: "string"
396469
+ },
396470
+ configuration: {
396471
+ type: "string"
396472
+ }
396473
+ }
396474
+ },
396475
+ info: {
396476
+ type: "object"
396477
+ }
396478
+ },
396479
+ additionalProperties: true,
396480
+ required: ["success"]
396481
+ };
396482
+ }
396483
+ });
396484
+
396485
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/architect.js
396486
+ var require_architect = __commonJS({
396487
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/architect.js"(exports2) {
396488
+ "use strict";
396489
+ Object.defineProperty(exports2, "__esModule", { value: true });
396490
+ exports2.Architect = void 0;
396491
+ var core_1 = require_src3();
396492
+ var rxjs_1 = require_cjs();
396493
+ var api_1 = require_api2();
396494
+ var jobs_1 = require_jobs();
396495
+ var schedule_by_name_1 = require_schedule_by_name();
396496
+ var inputSchema = require_input_schema();
396497
+ var outputSchema = require_output_schema();
396498
+ function _createJobHandlerFromBuilderInfo(info, target, host, registry, baseOptions) {
396499
+ const jobDescription = {
396500
+ name: target ? `{${(0, api_1.targetStringFromTarget)(target)}}` : info.builderName,
396501
+ argument: { type: "object" },
396502
+ input: inputSchema,
396503
+ output: outputSchema,
396504
+ info
396505
+ };
396506
+ function handler(argument, context) {
396507
+ const inboundBusWithInputValidation = context.inboundBus.pipe(
396508
+ (0, rxjs_1.concatMap)(async (message) => {
396509
+ if (message.kind === jobs_1.JobInboundMessageKind.Input) {
396510
+ const v5 = message.value;
396511
+ const options8 = {
396512
+ ...baseOptions,
396513
+ ...v5.options
396514
+ };
396515
+ const validation = await registry.compile(info.optionSchema);
396516
+ const validationResult = await validation(options8);
396517
+ const { data, success, errors } = validationResult;
396518
+ if (!success) {
396519
+ throw new core_1.json.schema.SchemaValidationException(errors);
396520
+ }
396521
+ return { ...message, value: { ...v5, options: data } };
396522
+ } else {
396523
+ return message;
396524
+ }
396525
+ }),
396526
+ // Using a share replay because the job might be synchronously sending input, but
396527
+ // asynchronously listening to it.
396528
+ (0, rxjs_1.shareReplay)(1)
396529
+ );
396530
+ const inboundBus = (0, rxjs_1.onErrorResumeNext)(inboundBusWithInputValidation);
396531
+ const output = (0, rxjs_1.from)(host.loadBuilder(info)).pipe(
396532
+ (0, rxjs_1.concatMap)((builder) => {
396533
+ if (builder === null) {
396534
+ throw new Error(`Cannot load builder for builderInfo ${JSON.stringify(info, null, 2)}`);
396535
+ }
396536
+ return builder.handler(argument, { ...context, inboundBus }).pipe((0, rxjs_1.map)((output2) => {
396537
+ if (output2.kind === jobs_1.JobOutboundMessageKind.Output) {
396538
+ return {
396539
+ ...output2,
396540
+ value: {
396541
+ ...output2.value,
396542
+ ...target ? { target } : 0
396543
+ }
396544
+ };
396545
+ } else {
396546
+ return output2;
396547
+ }
396548
+ }));
396549
+ }),
396550
+ // Share subscriptions to the output, otherwise the handler will be re-run.
396551
+ (0, rxjs_1.shareReplay)()
396552
+ );
396553
+ const inboundBusErrors = inboundBusWithInputValidation.pipe((0, rxjs_1.ignoreElements)(), (0, rxjs_1.takeUntil)((0, rxjs_1.onErrorResumeNext)(output.pipe((0, rxjs_1.last)()))));
396554
+ return (0, rxjs_1.merge)(inboundBusErrors, output);
396555
+ }
396556
+ return (0, rxjs_1.of)(Object.assign(handler, { jobDescription }));
396557
+ }
396558
+ var ArchitectBuilderJobRegistry = class {
396559
+ _host;
396560
+ _registry;
396561
+ _jobCache;
396562
+ _infoCache;
396563
+ constructor(_host, _registry, _jobCache, _infoCache) {
396564
+ this._host = _host;
396565
+ this._registry = _registry;
396566
+ this._jobCache = _jobCache;
396567
+ this._infoCache = _infoCache;
396568
+ }
396569
+ _resolveBuilder(name) {
396570
+ const cache3 = this._infoCache;
396571
+ if (cache3) {
396572
+ const maybeCache = cache3.get(name);
396573
+ if (maybeCache !== void 0) {
396574
+ return maybeCache;
396575
+ }
396576
+ const info = (0, rxjs_1.from)(this._host.resolveBuilder(name)).pipe((0, rxjs_1.shareReplay)(1));
396577
+ cache3.set(name, info);
396578
+ return info;
396579
+ }
396580
+ return (0, rxjs_1.from)(this._host.resolveBuilder(name));
396581
+ }
396582
+ _createBuilder(info, target, options8) {
396583
+ const cache3 = this._jobCache;
396584
+ if (target) {
396585
+ const maybeHit = cache3 && cache3.get((0, api_1.targetStringFromTarget)(target));
396586
+ if (maybeHit) {
396587
+ return maybeHit;
396588
+ }
396589
+ } else {
396590
+ const maybeHit = cache3 && cache3.get(info.builderName);
396591
+ if (maybeHit) {
396592
+ return maybeHit;
396593
+ }
396594
+ }
396595
+ const result = _createJobHandlerFromBuilderInfo(info, target, this._host, this._registry, options8 || {});
396596
+ if (cache3) {
396597
+ if (target) {
396598
+ cache3.set((0, api_1.targetStringFromTarget)(target), result.pipe((0, rxjs_1.shareReplay)(1)));
396599
+ } else {
396600
+ cache3.set(info.builderName, result.pipe((0, rxjs_1.shareReplay)(1)));
396601
+ }
396602
+ }
396603
+ return result;
396604
+ }
396605
+ get(name) {
396606
+ const m2 = name.match(/^([^:]+):([^:]+)$/i);
396607
+ if (!m2) {
396608
+ return (0, rxjs_1.of)(null);
396609
+ }
396610
+ return (0, rxjs_1.from)(this._resolveBuilder(name)).pipe((0, rxjs_1.concatMap)((builderInfo) => builderInfo ? this._createBuilder(builderInfo) : (0, rxjs_1.of)(null)), (0, rxjs_1.first)(null, null));
396611
+ }
396612
+ };
396613
+ var ArchitectTargetJobRegistry = class extends ArchitectBuilderJobRegistry {
396614
+ get(name) {
396615
+ const m2 = name.match(/^{([^:]+):([^:]+)(?::([^:]*))?}$/i);
396616
+ if (!m2) {
396617
+ return (0, rxjs_1.of)(null);
396618
+ }
396619
+ const target = {
396620
+ project: m2[1],
396621
+ target: m2[2],
396622
+ configuration: m2[3]
396623
+ };
396624
+ return (0, rxjs_1.from)(Promise.all([
396625
+ this._host.getBuilderNameForTarget(target),
396626
+ this._host.getOptionsForTarget(target)
396627
+ ])).pipe((0, rxjs_1.concatMap)(([builderStr, options8]) => {
396628
+ if (builderStr === null || options8 === null) {
396629
+ return (0, rxjs_1.of)(null);
396630
+ }
396631
+ return this._resolveBuilder(builderStr).pipe((0, rxjs_1.concatMap)((builderInfo) => {
396632
+ if (builderInfo === null) {
396633
+ return (0, rxjs_1.of)(null);
396634
+ }
396635
+ return this._createBuilder(builderInfo, target, options8);
396636
+ }));
396637
+ }), (0, rxjs_1.first)(null, null));
396638
+ }
396639
+ };
396640
+ function _getTargetOptionsFactory(host) {
396641
+ return (0, jobs_1.createJobHandler)((target) => {
396642
+ return host.getOptionsForTarget(target).then((options8) => {
396643
+ if (options8 === null) {
396644
+ throw new Error(`Invalid target: ${JSON.stringify(target)}.`);
396645
+ }
396646
+ return options8;
396647
+ });
396648
+ }, {
396649
+ name: "..getTargetOptions",
396650
+ output: { type: "object" },
396651
+ argument: inputSchema.properties.target
396652
+ });
396653
+ }
396654
+ function _getProjectMetadataFactory(host) {
396655
+ return (0, jobs_1.createJobHandler)((target) => {
396656
+ return host.getProjectMetadata(target).then((options8) => {
396657
+ if (options8 === null) {
396658
+ throw new Error(`Invalid target: ${JSON.stringify(target)}.`);
396659
+ }
396660
+ return options8;
396661
+ });
396662
+ }, {
396663
+ name: "..getProjectMetadata",
396664
+ output: { type: "object" },
396665
+ argument: {
396666
+ oneOf: [{ type: "string" }, inputSchema.properties.target]
396667
+ }
396668
+ });
396669
+ }
396670
+ function _getBuilderNameForTargetFactory(host) {
396671
+ return (0, jobs_1.createJobHandler)(async (target) => {
396672
+ const builderName = await host.getBuilderNameForTarget(target);
396673
+ if (!builderName) {
396674
+ throw new Error(`No builder were found for target ${(0, api_1.targetStringFromTarget)(target)}.`);
396675
+ }
396676
+ return builderName;
396677
+ }, {
396678
+ name: "..getBuilderNameForTarget",
396679
+ output: { type: "string" },
396680
+ argument: inputSchema.properties.target
396681
+ });
396682
+ }
396683
+ function _validateOptionsFactory(host, registry) {
396684
+ return (0, jobs_1.createJobHandler)(async ([builderName, options8]) => {
396685
+ const builderInfo = await host.resolveBuilder(builderName);
396686
+ if (!builderInfo) {
396687
+ throw new Error(`No builder info were found for builder ${JSON.stringify(builderName)}.`);
396688
+ }
396689
+ const validation = await registry.compile(builderInfo.optionSchema);
396690
+ const { data, success, errors } = await validation(options8);
396691
+ if (!success) {
396692
+ throw new core_1.json.schema.SchemaValidationException(errors);
396693
+ }
396694
+ return data;
396695
+ }, {
396696
+ name: "..validateOptions",
396697
+ output: { type: "object" },
396698
+ argument: {
396699
+ type: "array",
396700
+ items: [{ type: "string" }, { type: "object" }]
396701
+ }
396702
+ });
396703
+ }
396704
+ var Architect = class {
396705
+ _host;
396706
+ _scheduler;
396707
+ _jobCache = /* @__PURE__ */ new Map();
396708
+ _infoCache = /* @__PURE__ */ new Map();
396709
+ constructor(_host, registry = new core_1.json.schema.CoreSchemaRegistry(), additionalJobRegistry) {
396710
+ this._host = _host;
396711
+ const privateArchitectJobRegistry = new jobs_1.SimpleJobRegistry();
396712
+ privateArchitectJobRegistry.register(_getTargetOptionsFactory(_host));
396713
+ privateArchitectJobRegistry.register(_getBuilderNameForTargetFactory(_host));
396714
+ privateArchitectJobRegistry.register(_validateOptionsFactory(_host, registry));
396715
+ privateArchitectJobRegistry.register(_getProjectMetadataFactory(_host));
396716
+ const jobRegistry = new jobs_1.FallbackRegistry([
396717
+ new ArchitectTargetJobRegistry(_host, registry, this._jobCache, this._infoCache),
396718
+ new ArchitectBuilderJobRegistry(_host, registry, this._jobCache, this._infoCache),
396719
+ privateArchitectJobRegistry,
396720
+ ...additionalJobRegistry ? [additionalJobRegistry] : []
396721
+ ]);
396722
+ this._scheduler = new jobs_1.SimpleScheduler(jobRegistry, registry);
396723
+ }
396724
+ has(name) {
396725
+ return this._scheduler.has(name);
396726
+ }
396727
+ scheduleBuilder(name, options8, scheduleOptions = {}) {
396728
+ if (!/^[^:]+:[^:]+(:[^:]+)?$/.test(name)) {
396729
+ throw new Error("Invalid builder name: " + JSON.stringify(name));
396730
+ }
396731
+ return (0, schedule_by_name_1.scheduleByName)(name, options8, {
396732
+ scheduler: this._scheduler,
396733
+ logger: scheduleOptions.logger || new core_1.logging.NullLogger(),
396734
+ currentDirectory: this._host.getCurrentDirectory(),
396735
+ workspaceRoot: this._host.getWorkspaceRoot()
396736
+ });
396737
+ }
396738
+ scheduleTarget(target, overrides = {}, scheduleOptions = {}) {
396739
+ return (0, schedule_by_name_1.scheduleByTarget)(target, overrides, {
396740
+ scheduler: this._scheduler,
396741
+ logger: scheduleOptions.logger || new core_1.logging.NullLogger(),
396742
+ currentDirectory: this._host.getCurrentDirectory(),
396743
+ workspaceRoot: this._host.getWorkspaceRoot()
396744
+ });
396745
+ }
396746
+ };
396747
+ exports2.Architect = Architect;
396748
+ }
396749
+ });
396750
+
396751
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/internal.js
396752
+ var require_internal = __commonJS({
396753
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/internal.js"(exports2) {
396754
+ "use strict";
396755
+ Object.defineProperty(exports2, "__esModule", { value: true });
396756
+ exports2.BuilderVersionSymbol = exports2.BuilderSymbol = void 0;
396757
+ exports2.BuilderSymbol = Symbol.for("@angular-devkit/architect:builder");
396758
+ exports2.BuilderVersionSymbol = Symbol.for("@angular-devkit/architect:version");
396759
+ }
396760
+ });
396761
+
396762
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/package.json
396763
+ var require_package3 = __commonJS({
396764
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/package.json"(exports2, module2) {
396765
+ module2.exports = {
396766
+ name: "@angular-devkit/architect",
396767
+ version: "0.1702.0",
396768
+ description: "Angular Build Facade",
396769
+ experimental: true,
396770
+ main: "src/index.js",
396771
+ typings: "src/index.d.ts",
396772
+ dependencies: {
396773
+ "@angular-devkit/core": "17.2.0",
396774
+ rxjs: "7.8.1"
396775
+ },
396776
+ builders: "./builders/builders.json",
396777
+ keywords: [
396778
+ "Angular CLI",
396779
+ "Angular DevKit",
396780
+ "angular",
396781
+ "devkit",
396782
+ "sdk"
396783
+ ],
396784
+ repository: {
396785
+ type: "git",
396786
+ url: "https://github.com/angular/angular-cli.git"
396787
+ },
396788
+ engines: {
396789
+ node: "^18.13.0 || >=20.9.0",
396790
+ npm: "^6.11.0 || ^7.5.6 || >=8.0.0",
396791
+ yarn: ">= 1.13.0"
396792
+ },
396793
+ author: "Angular Authors",
396794
+ license: "MIT",
396795
+ bugs: {
396796
+ url: "https://github.com/angular/angular-cli/issues"
396797
+ },
396798
+ homepage: "https://github.com/angular/angular-cli"
396799
+ };
396800
+ }
396801
+ });
396802
+
396803
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/create-builder.js
396804
+ var require_create_builder = __commonJS({
396805
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/create-builder.js"(exports2) {
396806
+ "use strict";
396807
+ Object.defineProperty(exports2, "__esModule", { value: true });
396808
+ exports2.createBuilder = void 0;
396809
+ var core_1 = require_src3();
396810
+ var rxjs_1 = require_cjs();
396811
+ var api_1 = require_api2();
396812
+ var internal_1 = require_internal();
396813
+ var jobs_1 = require_jobs();
396814
+ var schedule_by_name_1 = require_schedule_by_name();
396815
+ function createBuilder2(fn6) {
396816
+ const cjh = jobs_1.createJobHandler;
396817
+ const handler = cjh((options8, context) => {
396818
+ const scheduler = context.scheduler;
396819
+ const progressChannel = context.createChannel("progress");
396820
+ const logChannel = context.createChannel("log");
396821
+ const addTeardown = context.addTeardown.bind(context);
396822
+ let currentState = api_1.BuilderProgressState.Stopped;
396823
+ let current = 0;
396824
+ let status = "";
396825
+ let total = 1;
396826
+ function log(entry) {
396827
+ logChannel.next(entry);
396828
+ }
396829
+ function progress(progress2, context2) {
396830
+ currentState = progress2.state;
396831
+ if (progress2.state === api_1.BuilderProgressState.Running) {
396832
+ current = progress2.current;
396833
+ total = progress2.total !== void 0 ? progress2.total : total;
396834
+ if (progress2.status === void 0) {
396835
+ progress2.status = status;
396836
+ } else {
396837
+ status = progress2.status;
396838
+ }
396839
+ }
396840
+ progressChannel.next({
396841
+ ...progress2,
396842
+ ...context2.target && { target: context2.target },
396843
+ ...context2.builder && { builder: context2.builder },
396844
+ id: context2.id
396845
+ });
396846
+ }
396847
+ return new rxjs_1.Observable((observer) => {
396848
+ const subscriptions = [];
396849
+ const inputSubscription = context.inboundBus.subscribe((i3) => {
396850
+ switch (i3.kind) {
396851
+ case jobs_1.JobInboundMessageKind.Input:
396852
+ onInput(i3.value);
396853
+ break;
396854
+ }
396855
+ });
396856
+ function onInput(i3) {
396857
+ const builder = i3.info;
396858
+ const loggerName = i3.target ? (0, api_1.targetStringFromTarget)(i3.target) : builder.builderName;
396859
+ const logger = new core_1.logging.Logger(loggerName);
396860
+ subscriptions.push(logger.subscribe((entry) => log(entry)));
396861
+ const context2 = {
396862
+ builder,
396863
+ workspaceRoot: i3.workspaceRoot,
396864
+ currentDirectory: i3.currentDirectory,
396865
+ target: i3.target,
396866
+ logger,
396867
+ id: i3.id,
396868
+ async scheduleTarget(target, overrides = {}, scheduleOptions = {}) {
396869
+ const run = await (0, schedule_by_name_1.scheduleByTarget)(target, overrides, {
396870
+ scheduler,
396871
+ logger: scheduleOptions.logger || logger.createChild(""),
396872
+ workspaceRoot: i3.workspaceRoot,
396873
+ currentDirectory: i3.currentDirectory
396874
+ });
396875
+ subscriptions.push(run.progress.subscribe((event) => progressChannel.next(event)));
396876
+ return run;
396877
+ },
396878
+ async scheduleBuilder(builderName, options9 = {}, scheduleOptions = {}) {
396879
+ const run = await (0, schedule_by_name_1.scheduleByName)(builderName, options9, {
396880
+ scheduler,
396881
+ target: scheduleOptions.target,
396882
+ logger: scheduleOptions.logger || logger.createChild(""),
396883
+ workspaceRoot: i3.workspaceRoot,
396884
+ currentDirectory: i3.currentDirectory
396885
+ });
396886
+ subscriptions.push(run.progress.subscribe((event) => progressChannel.next(event)));
396887
+ return run;
396888
+ },
396889
+ async getTargetOptions(target) {
396890
+ return (0, rxjs_1.firstValueFrom)(scheduler.schedule("..getTargetOptions", target).output);
396891
+ },
396892
+ async getProjectMetadata(target) {
396893
+ return (0, rxjs_1.firstValueFrom)(scheduler.schedule("..getProjectMetadata", target).output);
396894
+ },
396895
+ async getBuilderNameForTarget(target) {
396896
+ return (0, rxjs_1.firstValueFrom)(scheduler.schedule("..getBuilderNameForTarget", target).output);
396897
+ },
396898
+ async validateOptions(options9, builderName) {
396899
+ return (0, rxjs_1.firstValueFrom)(scheduler.schedule("..validateOptions", [builderName, options9]).output);
396900
+ },
396901
+ reportRunning() {
396902
+ switch (currentState) {
396903
+ case api_1.BuilderProgressState.Waiting:
396904
+ case api_1.BuilderProgressState.Stopped:
396905
+ progress({ state: api_1.BuilderProgressState.Running, current: 0, total }, context2);
396906
+ break;
396907
+ }
396908
+ },
396909
+ reportStatus(status2) {
396910
+ switch (currentState) {
396911
+ case api_1.BuilderProgressState.Running:
396912
+ progress({ state: currentState, status: status2, current, total }, context2);
396913
+ break;
396914
+ case api_1.BuilderProgressState.Waiting:
396915
+ progress({ state: currentState, status: status2 }, context2);
396916
+ break;
396917
+ }
396918
+ },
396919
+ reportProgress(current2, total2, status2) {
396920
+ switch (currentState) {
396921
+ case api_1.BuilderProgressState.Running:
396922
+ progress({ state: currentState, current: current2, total: total2, status: status2 }, context2);
396923
+ }
396924
+ },
396925
+ addTeardown
396926
+ };
396927
+ context2.reportRunning();
396928
+ let result;
396929
+ try {
396930
+ result = fn6(i3.options, context2);
396931
+ if ((0, api_1.isBuilderOutput)(result)) {
396932
+ result = (0, rxjs_1.of)(result);
396933
+ } else if (!(0, rxjs_1.isObservable)(result) && isAsyncIterable(result)) {
396934
+ result = (0, api_1.fromAsyncIterable)(result);
396935
+ } else {
396936
+ result = (0, rxjs_1.from)(result);
396937
+ }
396938
+ } catch (e3) {
396939
+ result = (0, rxjs_1.throwError)(e3);
396940
+ }
396941
+ progress({ state: api_1.BuilderProgressState.Running, current: 0, total: 1 }, context2);
396942
+ subscriptions.push(result.pipe((0, rxjs_1.defaultIfEmpty)({ success: false }), (0, rxjs_1.tap)(() => {
396943
+ progress({ state: api_1.BuilderProgressState.Running, current: total }, context2);
396944
+ progress({ state: api_1.BuilderProgressState.Stopped }, context2);
396945
+ }), (0, rxjs_1.mergeMap)(async (value) => {
396946
+ await new Promise(setImmediate);
396947
+ return value;
396948
+ })).subscribe((message) => observer.next(message), (error) => observer.error(error), () => observer.complete()));
396949
+ }
396950
+ return () => {
396951
+ subscriptions.forEach((x5) => x5.unsubscribe());
396952
+ inputSubscription.unsubscribe();
396953
+ };
396954
+ });
396955
+ });
396956
+ return {
396957
+ handler,
396958
+ [internal_1.BuilderSymbol]: true,
396959
+ [internal_1.BuilderVersionSymbol]: require_package3().version
396960
+ };
396961
+ }
396962
+ exports2.createBuilder = createBuilder2;
396963
+ function isAsyncIterable(obj) {
396964
+ return !!obj && typeof obj[Symbol.asyncIterator] === "function";
396965
+ }
396966
+ }
396967
+ });
396968
+
396969
+ // node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/index.js
396970
+ var require_src5 = __commonJS({
396971
+ "node_modules/.pnpm/@angular-devkit+architect@0.1702.0/node_modules/@angular-devkit/architect/src/index.js"(exports2) {
396972
+ "use strict";
396973
+ var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? function(o2, m2, k6, k23) {
396974
+ if (k23 === void 0)
396975
+ k23 = k6;
396976
+ var desc = Object.getOwnPropertyDescriptor(m2, k6);
396977
+ if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
396978
+ desc = { enumerable: true, get: function() {
396979
+ return m2[k6];
396980
+ } };
396981
+ }
396982
+ Object.defineProperty(o2, k23, desc);
396983
+ } : function(o2, m2, k6, k23) {
396984
+ if (k23 === void 0)
396985
+ k23 = k6;
396986
+ o2[k23] = m2[k6];
396987
+ });
396988
+ var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o2, v5) {
396989
+ Object.defineProperty(o2, "default", { enumerable: true, value: v5 });
396990
+ } : function(o2, v5) {
396991
+ o2["default"] = v5;
396992
+ });
396993
+ var __importStar2 = exports2 && exports2.__importStar || function(mod) {
396994
+ if (mod && mod.__esModule)
396995
+ return mod;
396996
+ var result = {};
396997
+ if (mod != null) {
396998
+ for (var k6 in mod)
396999
+ if (k6 !== "default" && Object.prototype.hasOwnProperty.call(mod, k6))
397000
+ __createBinding2(result, mod, k6);
397001
+ }
397002
+ __setModuleDefault2(result, mod);
397003
+ return result;
397004
+ };
397005
+ var __exportStar2 = exports2 && exports2.__exportStar || function(m2, exports3) {
397006
+ for (var p4 in m2)
397007
+ if (p4 !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p4))
397008
+ __createBinding2(exports3, m2, p4);
397009
+ };
397010
+ Object.defineProperty(exports2, "__esModule", { value: true });
397011
+ exports2.jobs = exports2.createBuilder = exports2.Architect = void 0;
397012
+ var jobs = __importStar2(require_jobs());
397013
+ exports2.jobs = jobs;
397014
+ __exportStar2(require_api2(), exports2);
397015
+ var architect_1 = require_architect();
397016
+ Object.defineProperty(exports2, "Architect", { enumerable: true, get: function() {
397017
+ return architect_1.Architect;
397018
+ } });
397019
+ var create_builder_1 = require_create_builder();
397020
+ Object.defineProperty(exports2, "createBuilder", { enumerable: true, get: function() {
397021
+ return create_builder_1.createBuilder;
397022
+ } });
397023
+ }
397024
+ });
397025
+
395318
397026
  // node_modules/.pnpm/@nx+devkit@18.0.4_nx@18.0.4/node_modules/@nx/devkit/src/utils/convert-nx-executor.js
395319
397027
  var require_convert_nx_executor = __commonJS({
395320
397028
  "node_modules/.pnpm/@nx+devkit@18.0.4_nx@18.0.4/node_modules/@nx/devkit/src/utils/convert-nx-executor.js"(exports2) {
@@ -395357,7 +397065,7 @@ var require_convert_nx_executor = __commonJS({
395357
397065
  };
395358
397066
  return toObservable(promise());
395359
397067
  };
395360
- return require("@angular-devkit/architect").createBuilder(builderFunction);
397068
+ return require_src5().createBuilder(builderFunction);
395361
397069
  }
395362
397070
  exports2.convertNxExecutor = convertNxExecutor;
395363
397071
  function toObservable(promiseOrAsyncIterator) {
@@ -463298,6 +465006,141 @@ safe-buffer/index.js:
463298
465006
  * found in the LICENSE file at https://angular.io/license
463299
465007
  *)
463300
465008
 
465009
+ @angular-devkit/architect/src/jobs/api.js:
465010
+ (**
465011
+ * @license
465012
+ * Copyright Google LLC All Rights Reserved.
465013
+ *
465014
+ * Use of this source code is governed by an MIT-style license that can be
465015
+ * found in the LICENSE file at https://angular.io/license
465016
+ *)
465017
+
465018
+ @angular-devkit/architect/src/jobs/strategy.js:
465019
+ (**
465020
+ * @license
465021
+ * Copyright Google LLC All Rights Reserved.
465022
+ *
465023
+ * Use of this source code is governed by an MIT-style license that can be
465024
+ * found in the LICENSE file at https://angular.io/license
465025
+ *)
465026
+
465027
+ @angular-devkit/architect/src/jobs/create-job-handler.js:
465028
+ (**
465029
+ * @license
465030
+ * Copyright Google LLC All Rights Reserved.
465031
+ *
465032
+ * Use of this source code is governed by an MIT-style license that can be
465033
+ * found in the LICENSE file at https://angular.io/license
465034
+ *)
465035
+
465036
+ @angular-devkit/architect/src/jobs/exception.js:
465037
+ (**
465038
+ * @license
465039
+ * Copyright Google LLC All Rights Reserved.
465040
+ *
465041
+ * Use of this source code is governed by an MIT-style license that can be
465042
+ * found in the LICENSE file at https://angular.io/license
465043
+ *)
465044
+
465045
+ @angular-devkit/architect/src/jobs/dispatcher.js:
465046
+ (**
465047
+ * @license
465048
+ * Copyright Google LLC All Rights Reserved.
465049
+ *
465050
+ * Use of this source code is governed by an MIT-style license that can be
465051
+ * found in the LICENSE file at https://angular.io/license
465052
+ *)
465053
+
465054
+ @angular-devkit/architect/src/jobs/fallback-registry.js:
465055
+ (**
465056
+ * @license
465057
+ * Copyright Google LLC All Rights Reserved.
465058
+ *
465059
+ * Use of this source code is governed by an MIT-style license that can be
465060
+ * found in the LICENSE file at https://angular.io/license
465061
+ *)
465062
+
465063
+ @angular-devkit/architect/src/jobs/simple-registry.js:
465064
+ (**
465065
+ * @license
465066
+ * Copyright Google LLC All Rights Reserved.
465067
+ *
465068
+ * Use of this source code is governed by an MIT-style license that can be
465069
+ * found in the LICENSE file at https://angular.io/license
465070
+ *)
465071
+
465072
+ @angular-devkit/architect/src/jobs/simple-scheduler.js:
465073
+ (**
465074
+ * @license
465075
+ * Copyright Google LLC All Rights Reserved.
465076
+ *
465077
+ * Use of this source code is governed by an MIT-style license that can be
465078
+ * found in the LICENSE file at https://angular.io/license
465079
+ *)
465080
+
465081
+ @angular-devkit/architect/src/jobs/index.js:
465082
+ (**
465083
+ * @license
465084
+ * Copyright Google LLC All Rights Reserved.
465085
+ *
465086
+ * Use of this source code is governed by an MIT-style license that can be
465087
+ * found in the LICENSE file at https://angular.io/license
465088
+ *)
465089
+
465090
+ @angular-devkit/architect/src/api.js:
465091
+ (**
465092
+ * @license
465093
+ * Copyright Google LLC All Rights Reserved.
465094
+ *
465095
+ * Use of this source code is governed by an MIT-style license that can be
465096
+ * found in the LICENSE file at https://angular.io/license
465097
+ *)
465098
+
465099
+ @angular-devkit/architect/src/schedule-by-name.js:
465100
+ (**
465101
+ * @license
465102
+ * Copyright Google LLC All Rights Reserved.
465103
+ *
465104
+ * Use of this source code is governed by an MIT-style license that can be
465105
+ * found in the LICENSE file at https://angular.io/license
465106
+ *)
465107
+
465108
+ @angular-devkit/architect/src/architect.js:
465109
+ (**
465110
+ * @license
465111
+ * Copyright Google LLC All Rights Reserved.
465112
+ *
465113
+ * Use of this source code is governed by an MIT-style license that can be
465114
+ * found in the LICENSE file at https://angular.io/license
465115
+ *)
465116
+
465117
+ @angular-devkit/architect/src/internal.js:
465118
+ (**
465119
+ * @license
465120
+ * Copyright Google LLC All Rights Reserved.
465121
+ *
465122
+ * Use of this source code is governed by an MIT-style license that can be
465123
+ * found in the LICENSE file at https://angular.io/license
465124
+ *)
465125
+
465126
+ @angular-devkit/architect/src/create-builder.js:
465127
+ (**
465128
+ * @license
465129
+ * Copyright Google LLC All Rights Reserved.
465130
+ *
465131
+ * Use of this source code is governed by an MIT-style license that can be
465132
+ * found in the LICENSE file at https://angular.io/license
465133
+ *)
465134
+
465135
+ @angular-devkit/architect/src/index.js:
465136
+ (**
465137
+ * @license
465138
+ * Copyright Google LLC All Rights Reserved.
465139
+ *
465140
+ * Use of this source code is governed by an MIT-style license that can be
465141
+ * found in the LICENSE file at https://angular.io/license
465142
+ *)
465143
+
463301
465144
  queue-microtask/index.js:
463302
465145
  (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
463303
465146