@sap/ux-ui5-tooling 1.18.1 → 1.18.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.
@@ -35872,16 +35872,16 @@ var require_node2 = __commonJS({
35872
35872
  }
35873
35873
  });
35874
35874
 
35875
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/stream.js
35875
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js
35876
35876
  var require_stream = __commonJS({
35877
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
35877
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
35878
35878
  module2.exports = require("stream");
35879
35879
  }
35880
35880
  });
35881
35881
 
35882
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/destroy.js
35882
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js
35883
35883
  var require_destroy = __commonJS({
35884
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
35884
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
35885
35885
  "use strict";
35886
35886
  function destroy2(err, cb) {
35887
35887
  var _this = this;
@@ -35968,9 +35968,9 @@ var require_destroy = __commonJS({
35968
35968
  }
35969
35969
  });
35970
35970
 
35971
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/errors.js
35971
+ // ../../node_modules/winston-transport/node_modules/readable-stream/errors.js
35972
35972
  var require_errors4 = __commonJS({
35973
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/errors.js"(exports2, module2) {
35973
+ "../../node_modules/winston-transport/node_modules/readable-stream/errors.js"(exports2, module2) {
35974
35974
  "use strict";
35975
35975
  var codes = {};
35976
35976
  function createErrorType(code, message, Base) {
@@ -36068,9 +36068,9 @@ var require_errors4 = __commonJS({
36068
36068
  }
36069
36069
  });
36070
36070
 
36071
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/state.js
36071
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js
36072
36072
  var require_state2 = __commonJS({
36073
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
36073
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
36074
36074
  "use strict";
36075
36075
  var ERR_INVALID_OPT_VALUE = require_errors4().codes.ERR_INVALID_OPT_VALUE;
36076
36076
  function highWaterMarkFrom(options2, isDuplex, duplexKey) {
@@ -36139,9 +36139,9 @@ var require_inherits = __commonJS({
36139
36139
  }
36140
36140
  });
36141
36141
 
36142
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/buffer_list.js
36142
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js
36143
36143
  var require_buffer_list = __commonJS({
36144
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
36144
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
36145
36145
  "use strict";
36146
36146
  function ownKeys(object, enumerableOnly) {
36147
36147
  var keys = Object.keys(object);
@@ -36670,9 +36670,9 @@ var require_string_decoder = __commonJS({
36670
36670
  }
36671
36671
  });
36672
36672
 
36673
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
36673
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
36674
36674
  var require_end_of_stream = __commonJS({
36675
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
36675
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
36676
36676
  "use strict";
36677
36677
  var ERR_STREAM_PREMATURE_CLOSE = require_errors4().codes.ERR_STREAM_PREMATURE_CLOSE;
36678
36678
  function once(callback) {
@@ -36759,9 +36759,9 @@ var require_end_of_stream = __commonJS({
36759
36759
  }
36760
36760
  });
36761
36761
 
36762
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/async_iterator.js
36762
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js
36763
36763
  var require_async_iterator = __commonJS({
36764
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
36764
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
36765
36765
  "use strict";
36766
36766
  var _Object$setPrototypeO;
36767
36767
  function _defineProperty2(obj, key, value) {
@@ -36927,9 +36927,9 @@ var require_async_iterator = __commonJS({
36927
36927
  }
36928
36928
  });
36929
36929
 
36930
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/from.js
36930
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js
36931
36931
  var require_from = __commonJS({
36932
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
36932
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
36933
36933
  "use strict";
36934
36934
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
36935
36935
  try {
@@ -37040,9 +37040,9 @@ var require_from = __commonJS({
37040
37040
  }
37041
37041
  });
37042
37042
 
37043
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_readable.js
37043
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js
37044
37044
  var require_stream_readable = __commonJS({
37045
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
37045
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
37046
37046
  "use strict";
37047
37047
  module2.exports = Readable2;
37048
37048
  var Duplex;
@@ -37777,9 +37777,9 @@ var require_stream_readable = __commonJS({
37777
37777
  }
37778
37778
  });
37779
37779
 
37780
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_duplex.js
37780
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js
37781
37781
  var require_stream_duplex = __commonJS({
37782
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
37782
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
37783
37783
  "use strict";
37784
37784
  var objectKeys = Object.keys || function(obj) {
37785
37785
  var keys2 = [];
@@ -37872,9 +37872,9 @@ var require_stream_duplex = __commonJS({
37872
37872
  }
37873
37873
  });
37874
37874
 
37875
- // ../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_writable.js
37875
+ // ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js
37876
37876
  var require_stream_writable = __commonJS({
37877
- "../../node_modules/@sap-ux/logger/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
37877
+ "../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
37878
37878
  "use strict";
37879
37879
  module2.exports = Writable;
37880
37880
  function CorkedRequest(state) {
@@ -38461,9 +38461,9 @@ var require_triple_beam = __commonJS({
38461
38461
  }
38462
38462
  });
38463
38463
 
38464
- // ../../node_modules/@sap-ux/logger/node_modules/winston-transport/modern.js
38464
+ // ../../node_modules/winston-transport/modern.js
38465
38465
  var require_modern = __commonJS({
38466
- "../../node_modules/@sap-ux/logger/node_modules/winston-transport/modern.js"(exports2, module2) {
38466
+ "../../node_modules/winston-transport/modern.js"(exports2, module2) {
38467
38467
  "use strict";
38468
38468
  var util5 = require("util");
38469
38469
  var Writable = require_stream_writable();
@@ -38573,9 +38573,9 @@ var require_modern = __commonJS({
38573
38573
  }
38574
38574
  });
38575
38575
 
38576
- // ../../node_modules/@sap-ux/logger/node_modules/winston-transport/legacy.js
38576
+ // ../../node_modules/winston-transport/legacy.js
38577
38577
  var require_legacy = __commonJS({
38578
- "../../node_modules/@sap-ux/logger/node_modules/winston-transport/legacy.js"(exports2, module2) {
38578
+ "../../node_modules/winston-transport/legacy.js"(exports2, module2) {
38579
38579
  "use strict";
38580
38580
  var util5 = require("util");
38581
38581
  var { LEVEL } = require_triple_beam();
@@ -38639,9 +38639,9 @@ var require_legacy = __commonJS({
38639
38639
  }
38640
38640
  });
38641
38641
 
38642
- // ../../node_modules/@sap-ux/logger/node_modules/winston-transport/index.js
38642
+ // ../../node_modules/winston-transport/index.js
38643
38643
  var require_winston_transport = __commonJS({
38644
- "../../node_modules/@sap-ux/logger/node_modules/winston-transport/index.js"(exports2, module2) {
38644
+ "../../node_modules/winston-transport/index.js"(exports2, module2) {
38645
38645
  "use strict";
38646
38646
  module2.exports = require_modern();
38647
38647
  module2.exports.LegacyTransportStream = require_legacy();
@@ -50122,9 +50122,9 @@ var require_ansi_styles = __commonJS({
50122
50122
  }
50123
50123
  });
50124
50124
 
50125
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js
50125
+ // ../../node_modules/chalk/source/util.js
50126
50126
  var require_util2 = __commonJS({
50127
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js"(exports2, module2) {
50127
+ "../../node_modules/chalk/source/util.js"(exports2, module2) {
50128
50128
  "use strict";
50129
50129
  var stringReplaceAll = (string, substring, replacer) => {
50130
50130
  let index = string.indexOf(substring);
@@ -50161,9 +50161,9 @@ var require_util2 = __commonJS({
50161
50161
  }
50162
50162
  });
50163
50163
 
50164
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js
50164
+ // ../../node_modules/chalk/source/templates.js
50165
50165
  var require_templates = __commonJS({
50166
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js"(exports2, module2) {
50166
+ "../../node_modules/chalk/source/templates.js"(exports2, module2) {
50167
50167
  "use strict";
50168
50168
  var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
50169
50169
  var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
@@ -50275,9 +50275,9 @@ var require_templates = __commonJS({
50275
50275
  }
50276
50276
  });
50277
50277
 
50278
- // ../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js
50278
+ // ../../node_modules/chalk/source/index.js
50279
50279
  var require_source = __commonJS({
50280
- "../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js"(exports2, module2) {
50280
+ "../../node_modules/chalk/source/index.js"(exports2, module2) {
50281
50281
  "use strict";
50282
50282
  var ansiStyles = require_ansi_styles();
50283
50283
  var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
@@ -50970,9 +50970,9 @@ var require_is_wsl = __commonJS({
50970
50970
  }
50971
50971
  });
50972
50972
 
50973
- // ../../node_modules/@sap-ux/axios-extension/node_modules/open/index.js
50973
+ // ../../node_modules/open/index.js
50974
50974
  var require_open = __commonJS({
50975
- "../../node_modules/@sap-ux/axios-extension/node_modules/open/index.js"(exports2, module2) {
50975
+ "../../node_modules/open/index.js"(exports2, module2) {
50976
50976
  "use strict";
50977
50977
  var { promisify: promisify2 } = require("util");
50978
50978
  var path4 = require("path");
@@ -54763,6 +54763,9 @@ var require_ui5_abap_repository_service = __commonJS({
54763
54763
  var require_lrep_service = __commonJS({
54764
54764
  "../../node_modules/@sap-ux/axios-extension/dist/abap/lrep-service.js"(exports2) {
54765
54765
  "use strict";
54766
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
54767
+ return mod && mod.__esModule ? mod : { "default": mod };
54768
+ };
54766
54769
  Object.defineProperty(exports2, "__esModule", { value: true });
54767
54770
  exports2.LayeredRepositoryService = exports2.AdaptationProjectType = void 0;
54768
54771
  var axios_1 = require_axios();
@@ -54771,6 +54774,7 @@ var require_lrep_service = __commonJS({
54771
54774
  var logger_1 = require_dist5();
54772
54775
  var odata_request_error_1 = require_odata_request_error();
54773
54776
  var message_1 = require_message();
54777
+ var qs_1 = __importDefault(require_lib2());
54774
54778
  var AdaptationProjectType;
54775
54779
  (function(AdaptationProjectType2) {
54776
54780
  AdaptationProjectType2["ON_PREMISE"] = "onPremise";
@@ -54931,21 +54935,25 @@ var require_lrep_service = __commonJS({
54931
54935
  /**
54932
54936
  * Get system info.
54933
54937
  *
54934
- * @param language
54938
+ * @param language language code (default: EN)
54935
54939
  * @param cloudPackage name
54940
+ * @param appId application id (since ABAP Platform Cloud 2505)
54936
54941
  * @returns the system info object
54937
54942
  */
54938
- async getSystemInfo(language = "EN", cloudPackage) {
54943
+ async getSystemInfo(language = "EN", cloudPackage, appId) {
54939
54944
  try {
54940
- const params = new url_1.URLSearchParams({
54945
+ const params = {
54941
54946
  "sap-language": language
54942
- });
54947
+ };
54943
54948
  if (cloudPackage) {
54944
- params.append("package", cloudPackage);
54949
+ params["package"] = cloudPackage;
54950
+ }
54951
+ if (appId) {
54952
+ params["sap-app-id"] = appId;
54945
54953
  }
54946
54954
  const response = await this.get(`${DTA_PATH_SUFFIX}system_info`, {
54947
54955
  params,
54948
- paramsSerializer: decodeUrlParams
54956
+ paramsSerializer: (params2) => qs_1.default.stringify(params2, { encode: false })
54949
54957
  });
54950
54958
  this.tryLogResponse(response, "Successful getting system info.");
54951
54959
  return JSON.parse(response.data);
@@ -66208,6 +66216,62 @@ var require_generator_service = __commonJS({
66208
66216
  }
66209
66217
  });
66210
66218
 
66219
+ // ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/rap-generator-service.js
66220
+ var require_rap_generator_service = __commonJS({
66221
+ "../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/rap-generator-service.js"(exports2) {
66222
+ "use strict";
66223
+ Object.defineProperty(exports2, "__esModule", { value: true });
66224
+ exports2.RapGeneratorService = void 0;
66225
+ var adt_service_1 = require_adt_service();
66226
+ var RapGeneratorService = class _RapGeneratorService extends adt_service_1.AdtService {
66227
+ /**
66228
+ * @see AdtService.getAdtCategory()
66229
+ */
66230
+ static adtCategory = {
66231
+ scheme: "http://www.sap.com/adt/categories/respository",
66232
+ term: "generators"
66233
+ };
66234
+ /**
66235
+ * Get ADT scheme ID.
66236
+ *
66237
+ * @returns AdtCategory
66238
+ */
66239
+ static getAdtCatagory() {
66240
+ return _RapGeneratorService.adtCategory;
66241
+ }
66242
+ id;
66243
+ /**
66244
+ * Get the RAP Generator (published-x-ui-service).
66245
+ *
66246
+ * @returns Promise<GeneratorEntry>
66247
+ */
66248
+ async getRAPGeneratorConfig() {
66249
+ var _a3;
66250
+ const response = await this.get("", {
66251
+ headers: {
66252
+ Accept: "application/atom+xml;type=feed"
66253
+ },
66254
+ params: {
66255
+ type: "webapi",
66256
+ fetchAllGenerators: true
66257
+ }
66258
+ });
66259
+ let generators = ((_a3 = this.parseResponse(response.data).feed) == null ? void 0 : _a3.entry) ?? [];
66260
+ if (generators && !Array.isArray(generators)) {
66261
+ generators = [generators];
66262
+ }
66263
+ const data2 = generators.find((generator) => generator.id === "published-x-ui-service");
66264
+ if (data2) {
66265
+ return data2;
66266
+ } else {
66267
+ throw new Error("OData Service Generator not found");
66268
+ }
66269
+ }
66270
+ };
66271
+ exports2.RapGeneratorService = RapGeneratorService;
66272
+ }
66273
+ });
66274
+
66211
66275
  // ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/businessobjects-service.js
66212
66276
  var require_businessobjects_service = __commonJS({
66213
66277
  "../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/businessobjects-service.js"(exports2) {
@@ -66395,12 +66459,61 @@ var require_abapcdsview_service = __commonJS({
66395
66459
  }
66396
66460
  });
66397
66461
 
66462
+ // ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/publish-service.js
66463
+ var require_publish_service = __commonJS({
66464
+ "../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/publish-service.js"(exports2) {
66465
+ "use strict";
66466
+ Object.defineProperty(exports2, "__esModule", { value: true });
66467
+ exports2.PublishService = void 0;
66468
+ var adt_service_1 = require_adt_service();
66469
+ var PublishService = class _PublishService extends adt_service_1.AdtService {
66470
+ /**
66471
+ * @see AdtService.getAdtCatagory()
66472
+ */
66473
+ static adtCategory = {
66474
+ scheme: "http://www.sap.com/categories/servicebindings/bindingtypes",
66475
+ term: "ODataV4"
66476
+ };
66477
+ /**
66478
+ * Get ADT scheme ID.
66479
+ *
66480
+ * @returns AdtCategory
66481
+ */
66482
+ static getAdtCatagory() {
66483
+ return _PublishService.adtCategory;
66484
+ }
66485
+ /**
66486
+ * Get OData V4 service URI for the given business object.
66487
+ *
66488
+ * @param technicalDetails - technical name of OData service
66489
+ * @returns service URI.
66490
+ */
66491
+ async getODataV4ServiceUri(technicalDetails) {
66492
+ const { serviceDefinitionName, serviceName, serviceVersion } = technicalDetails;
66493
+ const response = await this.get(`/${serviceName}`, {
66494
+ headers: {
66495
+ Accept: "application/vnd.sap.adt.businessservices.odatav4.v2+xml"
66496
+ },
66497
+ params: {
66498
+ servicename: serviceName,
66499
+ serviceversion: serviceVersion,
66500
+ srvdname: serviceDefinitionName
66501
+ }
66502
+ });
66503
+ const data2 = this.parseResponse(response.data);
66504
+ return String(data2.serviceGroup.services.serviceUrl);
66505
+ }
66506
+ };
66507
+ exports2.PublishService = PublishService;
66508
+ }
66509
+ });
66510
+
66398
66511
  // ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/index.js
66399
66512
  var require_services = __commonJS({
66400
66513
  "../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/services/index.js"(exports2) {
66401
66514
  "use strict";
66402
66515
  Object.defineProperty(exports2, "__esModule", { value: true });
66403
- exports2.AbapCDSViewService = exports2.UI5RtVersionService = exports2.BusinessObjectsService = exports2.GeneratorService = exports2.FileStoreService = exports2.ListPackageService = exports2.TransportRequestService = exports2.TransportChecksService = exports2.AtoService = exports2.AdtService = void 0;
66516
+ exports2.PublishService = exports2.AbapCDSViewService = exports2.UI5RtVersionService = exports2.BusinessObjectsService = exports2.RapGeneratorService = exports2.GeneratorService = exports2.FileStoreService = exports2.ListPackageService = exports2.TransportRequestService = exports2.TransportChecksService = exports2.AtoService = exports2.AdtService = void 0;
66404
66517
  var adt_service_1 = require_adt_service();
66405
66518
  Object.defineProperty(exports2, "AdtService", { enumerable: true, get: function() {
66406
66519
  return adt_service_1.AdtService;
@@ -66429,6 +66542,10 @@ var require_services = __commonJS({
66429
66542
  Object.defineProperty(exports2, "GeneratorService", { enumerable: true, get: function() {
66430
66543
  return generator_service_1.GeneratorService;
66431
66544
  } });
66545
+ var rap_generator_service_1 = require_rap_generator_service();
66546
+ Object.defineProperty(exports2, "RapGeneratorService", { enumerable: true, get: function() {
66547
+ return rap_generator_service_1.RapGeneratorService;
66548
+ } });
66432
66549
  var businessobjects_service_1 = require_businessobjects_service();
66433
66550
  Object.defineProperty(exports2, "BusinessObjectsService", { enumerable: true, get: function() {
66434
66551
  return businessobjects_service_1.BusinessObjectsService;
@@ -66441,6 +66558,147 @@ var require_services = __commonJS({
66441
66558
  Object.defineProperty(exports2, "AbapCDSViewService", { enumerable: true, get: function() {
66442
66559
  return abapcdsview_service_1.AbapCDSViewService;
66443
66560
  } });
66561
+ var publish_service_1 = require_publish_service();
66562
+ Object.defineProperty(exports2, "PublishService", { enumerable: true, get: function() {
66563
+ return publish_service_1.PublishService;
66564
+ } });
66565
+ }
66566
+ });
66567
+
66568
+ // ../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/generators/odata-service-generator.js
66569
+ var require_odata_service_generator = __commonJS({
66570
+ "../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/generators/odata-service-generator.js"(exports2) {
66571
+ "use strict";
66572
+ Object.defineProperty(exports2, "__esModule", { value: true });
66573
+ exports2.ODataServiceGenerator = void 0;
66574
+ var services_1 = require_services();
66575
+ var ODataServiceGenerator = class extends services_1.AdtService {
66576
+ /**
66577
+ * package to be used for generated objects
66578
+ */
66579
+ packageName;
66580
+ contentType;
66581
+ /**
66582
+ * Configure the UI service generator.
66583
+ *
66584
+ * @param _config - The generator configuration.
66585
+ * @param packageName - package to be used for generated objects
66586
+ */
66587
+ configure(_config, packageName) {
66588
+ this.packageName = packageName;
66589
+ }
66590
+ /**
66591
+ * Set the content type to be used for post requests of genertor.
66592
+ *
66593
+ * @param contentType - content type to be used for generated objects
66594
+ */
66595
+ setContentType(contentType) {
66596
+ this.contentType = contentType;
66597
+ }
66598
+ /**
66599
+ * Validates input for OData Service generation.
66600
+ *
66601
+ * @param input - JSON string
66602
+ * @returns messages
66603
+ */
66604
+ async validate(input) {
66605
+ const response = await this.post(`/validation`, input, {
66606
+ headers: {
66607
+ "Content-Type": this.contentType,
66608
+ Accept: "application/vnd.sap.adt.validationMessages.v1+xml, application/vnd.sap.as+xml;charset=UTF-8;dataname=com.sap.adt.StatusMessage"
66609
+ },
66610
+ params: {
66611
+ package: this.packageName
66612
+ }
66613
+ });
66614
+ return this.parseValidateResponse(response.data);
66615
+ }
66616
+ /**
66617
+ * Gets technical details of (to be generated) OData service.
66618
+ * - this is a workaround for the missing service definition name in the generator response
66619
+ * - actual name might be different e.g. because of name collisions at the time when the actual generation is called.
66620
+ *
66621
+ * @param input - JSON string
66622
+ * @returns technical name of service definition
66623
+ */
66624
+ async getTechnicalDetails(input) {
66625
+ const response = await this.post(`/preview`, input, {
66626
+ headers: {
66627
+ "Content-Type": this.contentType,
66628
+ Accept: "application/vnd.sap.adt.repository.objects.massoperation.v1+xml"
66629
+ },
66630
+ params: {
66631
+ package: this.packageName
66632
+ }
66633
+ });
66634
+ return this.parsePreviewResponse(response.data);
66635
+ }
66636
+ /**
66637
+ * Generates OData Service.
66638
+ *
66639
+ * @param input - JSON string
66640
+ * @returns HTTP status code as number
66641
+ * @throws Error if the generation fails
66642
+ */
66643
+ async generate(input) {
66644
+ const response = await this.post(``, input, {
66645
+ headers: {
66646
+ "Content-Type": this.contentType,
66647
+ "Accept": "application/vnd.sap.adt.repository.generator.v1+json"
66648
+ },
66649
+ params: {
66650
+ package: this.packageName
66651
+ }
66652
+ });
66653
+ return response.status;
66654
+ }
66655
+ /**
66656
+ * Parse an xml document for validation messages.
66657
+ *
66658
+ * @param xml response for "validation" request
66659
+ * @returns messages
66660
+ */
66661
+ parseValidateResponse(xml) {
66662
+ const parsed = this.parseResponse(xml);
66663
+ let validationMessages = parsed.validationMessages;
66664
+ if (!Array.isArray(validationMessages)) {
66665
+ validationMessages = [validationMessages];
66666
+ }
66667
+ return validationMessages.map((entry) => entry.validationMessage || {}) || [];
66668
+ }
66669
+ /**
66670
+ * Parse an XML document to find the technical name of the service definition.
66671
+ *
66672
+ * @param xml response for "preview" request
66673
+ * @returns technical details of service definition
66674
+ */
66675
+ parsePreviewResponse(xml) {
66676
+ var _a3, _b2;
66677
+ const parsed = this.parseResponse(xml);
66678
+ const serviceLayerGroup = (parsed.group.group || []).find((entry) => entry.name === "Business Service Layer");
66679
+ if (!serviceLayerGroup) {
66680
+ return;
66681
+ }
66682
+ const objects = !Array.isArray(serviceLayerGroup.object) ? [serviceLayerGroup.object] : serviceLayerGroup.object;
66683
+ const serviceObject = objects.find((entry) => {
66684
+ var _a4;
66685
+ return ((_a4 = entry.objectReference) == null ? void 0 : _a4.type) === "SRVD/SRV";
66686
+ });
66687
+ const serviceBindingObject = objects.find((entry) => {
66688
+ var _a4;
66689
+ return ((_a4 = entry.objectReference) == null ? void 0 : _a4.type) === "SRVB/SVB";
66690
+ });
66691
+ if (!serviceObject || !serviceBindingObject) {
66692
+ return;
66693
+ }
66694
+ return {
66695
+ serviceName: ((_a3 = serviceBindingObject.objectReference) == null ? void 0 : _a3.name) || "",
66696
+ serviceDefinitionName: ((_b2 = serviceObject.objectReference) == null ? void 0 : _b2.name) || "",
66697
+ serviceVersion: "0001"
66698
+ };
66699
+ }
66700
+ };
66701
+ exports2.ODataServiceGenerator = ODataServiceGenerator;
66444
66702
  }
66445
66703
  });
66446
66704
 
@@ -66586,6 +66844,7 @@ var require_abap_service_provider = __commonJS({
66586
66844
  var adt_catalog_service_1 = require_adt_catalog_service();
66587
66845
  var types_1 = require_types3();
66588
66846
  var services_1 = require_services();
66847
+ var odata_service_generator_1 = require_odata_service_generator();
66589
66848
  var ui_service_generator_1 = require_ui_service_generator();
66590
66849
  var AbapServiceProvider = class extends service_provider_1.ServiceProvider {
66591
66850
  atoSettings;
@@ -66768,6 +67027,23 @@ var require_abap_service_provider = __commonJS({
66768
67027
  gen.configure(config, referencedObject, this.getContentType(config));
66769
67028
  return gen;
66770
67029
  }
67030
+ /**
67031
+ * Gets an OData Service generator.
67032
+ *
67033
+ * @param packageName - Name of package to be used for generated artifacts in ABAP system
67034
+ * @returns An OData Service generator
67035
+ */
67036
+ async getODataServiceGenerator(packageName) {
67037
+ const generatorService = await this.getAdtService(services_1.RapGeneratorService);
67038
+ if (!generatorService) {
67039
+ throw new Error("RAP Generator are not support on this system");
67040
+ }
67041
+ const config = await generatorService.getRAPGeneratorConfig();
67042
+ const generator = this.createService(this.getServiceUrlFromConfig(config), odata_service_generator_1.ODataServiceGenerator);
67043
+ generator.setContentType(this.getContentType(config));
67044
+ generator.configure(config, packageName || "$TMP");
67045
+ return generator;
67046
+ }
66771
67047
  /**
66772
67048
  * Get the service URL from the generator config.
66773
67049
  *
@@ -66783,8 +67059,6 @@ var require_abap_service_provider = __commonJS({
66783
67059
  return config.link[0].href.substring(0, endIndex);
66784
67060
  }
66785
67061
  /**
66786
- * Get the content type from the generator config.
66787
- *
66788
67062
  * @param config - generator config
66789
67063
  * @returns the type of the content link from service generator config
66790
67064
  */
@@ -66813,11 +67087,15 @@ var require_generators = __commonJS({
66813
67087
  "../../node_modules/@sap-ux/axios-extension/dist/abap/adt-catalog/generators/index.js"(exports2) {
66814
67088
  "use strict";
66815
67089
  Object.defineProperty(exports2, "__esModule", { value: true });
66816
- exports2.UiServiceGenerator = void 0;
67090
+ exports2.ODataServiceGenerator = exports2.UiServiceGenerator = void 0;
66817
67091
  var ui_service_generator_1 = require_ui_service_generator();
66818
67092
  Object.defineProperty(exports2, "UiServiceGenerator", { enumerable: true, get: function() {
66819
67093
  return ui_service_generator_1.UiServiceGenerator;
66820
67094
  } });
67095
+ var odata_service_generator_1 = require_odata_service_generator();
67096
+ Object.defineProperty(exports2, "ODataServiceGenerator", { enumerable: true, get: function() {
67097
+ return odata_service_generator_1.ODataServiceGenerator;
67098
+ } });
66821
67099
  }
66822
67100
  });
66823
67101
 
@@ -72999,9 +73277,9 @@ var require_headers_helper = __commonJS({
72999
73277
  }
73000
73278
  });
73001
73279
 
73002
- // ../../node_modules/@sap/bas-sdk/node_modules/url-join/lib/url-join.js
73280
+ // ../../node_modules/url-join/lib/url-join.js
73003
73281
  var require_url_join = __commonJS({
73004
- "../../node_modules/@sap/bas-sdk/node_modules/url-join/lib/url-join.js"(exports2, module2) {
73282
+ "../../node_modules/url-join/lib/url-join.js"(exports2, module2) {
73005
73283
  (function(name2, context2, definition) {
73006
73284
  if (typeof module2 !== "undefined" && module2.exports) module2.exports = definition();
73007
73285
  else if (typeof define === "function" && define.amd) define(definition);
@@ -89421,187 +89699,6 @@ var require_dist9 = __commonJS({
89421
89699
  }
89422
89700
  });
89423
89701
 
89424
- // ../../node_modules/@sap-ux/feature-toggle/dist/constants.js
89425
- var require_constants4 = __commonJS({
89426
- "../../node_modules/@sap-ux/feature-toggle/dist/constants.js"(exports2) {
89427
- "use strict";
89428
- Object.defineProperty(exports2, "__esModule", { value: true });
89429
- exports2.ExperimentalFeatures = exports2.FeatureToggleKey = exports2.tokenToggleGuid = exports2.extensionConfigKeys = void 0;
89430
- exports2.extensionConfigKeys = {
89431
- AnnotationModeler: "sap.ux.annotationModeler",
89432
- AppGenerator: "sap.ux.appGenerator",
89433
- ApplicationModeler: "sap.ux.applicationModeler",
89434
- Help: "sap.ux.help",
89435
- ServiceModeler: "sap.ux.serviceModeler",
89436
- Internal: "sap.ux.internal"
89437
- };
89438
- exports2.tokenToggleGuid = {
89439
- "sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
89440
- "sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3",
89441
- "sap.ux.help.testBetaFeatures.enableFioriAI": "165a0e31-35ea-4bee-8d47-b8593435a82d",
89442
- "sap.ux.help.testBetaFeatures.enableFioriAIJoule": "165a0e31-35ea-4bee-8d47-b8593435a82e",
89443
- "sap.ux.help.testBetaFeatures.enableFioriAIVsCode": "165a0e31-35ea-4bee-8d47-b8593435a82f",
89444
- "sap.ux.help.testBetaFeatures.enableFioriAIAppModeler": "165a0e31-35ea-4bee-8d47-b8593435a82g",
89445
- "sap.ux.help.testBetaFeatures.enableFioriAIRapGeneration": "165a0e31-35ea-4bee-8d47-b8593435a82h",
89446
- "sap.ux.applicationModeler.testBetaFeatures.manifestEditor": true,
89447
- "sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI": true
89448
- };
89449
- exports2.FeatureToggleKey = "testBetaFeatures";
89450
- exports2.ExperimentalFeatures = "sap.ux.applicationModeler.enableExperimentalFeatures";
89451
- }
89452
- });
89453
-
89454
- // ../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js
89455
- var require_featureToggle = __commonJS({
89456
- "../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js"(exports2) {
89457
- "use strict";
89458
- Object.defineProperty(exports2, "__esModule", { value: true });
89459
- exports2.FeatureToggleAccess = void 0;
89460
- exports2.enableFeature = enableFeature;
89461
- exports2.isFeatureEnabled = isFeatureEnabled;
89462
- exports2.isInternalFeaturesSettingEnabled = isInternalFeaturesSettingEnabled2;
89463
- var constants_1 = require_constants4();
89464
- var FeatureToggleAccess = class _FeatureToggleAccess {
89465
- static vscode = getVSCodeInstance();
89466
- /**
89467
- * Retrieves the toggle state of the specified feature.
89468
- *
89469
- * @param feature the feature to retrieve the toggle state for.
89470
- * @returns the toggle state of the feature.
89471
- */
89472
- static getFeatureToggle(feature) {
89473
- var _a3;
89474
- let toggleConfigValue;
89475
- if ((feature.includes(constants_1.FeatureToggleKey) || feature === constants_1.ExperimentalFeatures) && _FeatureToggleAccess.vscode) {
89476
- const toggleKey = feature.slice(0, feature.lastIndexOf("."));
89477
- const toggleId = feature.slice(feature.lastIndexOf(".") + 1, feature.length);
89478
- toggleConfigValue = (_a3 = _FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)) == null ? void 0 : _a3.get(toggleId);
89479
- } else {
89480
- toggleConfigValue = false;
89481
- }
89482
- if (process.env.TOOLSUITE_FEATURES) {
89483
- const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
89484
- toggleConfigValue = envFeatures.includes(feature) ? true : toggleConfigValue;
89485
- }
89486
- if (constants_1.tokenToggleGuid[feature]) {
89487
- if (constants_1.tokenToggleGuid[feature] === toggleConfigValue) {
89488
- toggleConfigValue = true;
89489
- } else {
89490
- toggleConfigValue = false;
89491
- }
89492
- }
89493
- const featureToggle = {
89494
- feature,
89495
- isEnabled: toggleConfigValue === true ? toggleConfigValue : false
89496
- };
89497
- return featureToggle;
89498
- }
89499
- /**
89500
- * Retrieves all feature toggles.
89501
- *
89502
- * @returns an array of defined feature toggles.
89503
- */
89504
- static getAllFeatureToggles() {
89505
- const definedToggles = [];
89506
- if (_FeatureToggleAccess.vscode) {
89507
- Object.keys(constants_1.extensionConfigKeys).forEach((toggleConfigKey) => {
89508
- const toggleKey = `${constants_1.extensionConfigKeys[toggleConfigKey]}.${constants_1.FeatureToggleKey}`;
89509
- let toggles = {};
89510
- try {
89511
- toggles = JSON.parse(JSON.stringify(_FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)));
89512
- } catch {
89513
- }
89514
- Object.keys(toggles).forEach((toggleId) => {
89515
- const toggleConfigValue = _FeatureToggleAccess.vscode.workspace.getConfiguration(`${toggleKey}`).get(`${toggleId}`);
89516
- const toggle = {
89517
- feature: `${toggleKey}.${toggleId}`,
89518
- isEnabled: toggleConfigValue ? toggleConfigValue : false
89519
- };
89520
- definedToggles.push(toggle);
89521
- });
89522
- });
89523
- } else if (process.env.TOOLSUITE_FEATURES) {
89524
- const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
89525
- for (const feature of envFeatures) {
89526
- const toggle = {
89527
- feature,
89528
- isEnabled: true
89529
- };
89530
- definedToggles.push(toggle);
89531
- }
89532
- }
89533
- return definedToggles;
89534
- }
89535
- };
89536
- exports2.FeatureToggleAccess = FeatureToggleAccess;
89537
- function getVSCodeInstance() {
89538
- let vscode;
89539
- try {
89540
- vscode = require("vscode");
89541
- } catch {
89542
- }
89543
- return vscode;
89544
- }
89545
- function enableFeature(feature) {
89546
- let envFeatures = [];
89547
- if (process.env.TOOLSUITE_FEATURES) {
89548
- envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
89549
- if (!envFeatures.includes(feature)) {
89550
- envFeatures.push(feature);
89551
- }
89552
- } else {
89553
- envFeatures.push(feature);
89554
- }
89555
- process.env.TOOLSUITE_FEATURES = envFeatures.join();
89556
- }
89557
- function isFeatureEnabled(feature) {
89558
- return FeatureToggleAccess.getFeatureToggle(feature).isEnabled;
89559
- }
89560
- function isInternalFeaturesSettingEnabled2() {
89561
- var _a3;
89562
- const enableInternalFeaturesSetting = "sap.ux.internal.enableInternalFeatures";
89563
- let internalEnabled = false;
89564
- if (FeatureToggleAccess.vscode) {
89565
- const internalSetting = FeatureToggleAccess.vscode.workspace ? (_a3 = FeatureToggleAccess.vscode.workspace.getConfiguration()) == null ? void 0 : _a3.get(enableInternalFeaturesSetting) : false;
89566
- internalEnabled = internalSetting ?? false;
89567
- }
89568
- if (process.env.TOOLSUITE_INTERNAL && process.env.TOOLSUITE_INTERNAL === "true") {
89569
- internalEnabled = true;
89570
- }
89571
- return internalEnabled;
89572
- }
89573
- }
89574
- });
89575
-
89576
- // ../../node_modules/@sap-ux/feature-toggle/dist/index.js
89577
- var require_dist10 = __commonJS({
89578
- "../../node_modules/@sap-ux/feature-toggle/dist/index.js"(exports2) {
89579
- "use strict";
89580
- Object.defineProperty(exports2, "__esModule", { value: true });
89581
- exports2.ExperimentalFeatures = exports2.FeatureToggleKey = exports2.enableFeature = exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.FeatureToggleAccess = void 0;
89582
- var featureToggle_1 = require_featureToggle();
89583
- Object.defineProperty(exports2, "FeatureToggleAccess", { enumerable: true, get: function() {
89584
- return featureToggle_1.FeatureToggleAccess;
89585
- } });
89586
- Object.defineProperty(exports2, "isFeatureEnabled", { enumerable: true, get: function() {
89587
- return featureToggle_1.isFeatureEnabled;
89588
- } });
89589
- Object.defineProperty(exports2, "isInternalFeaturesSettingEnabled", { enumerable: true, get: function() {
89590
- return featureToggle_1.isInternalFeaturesSettingEnabled;
89591
- } });
89592
- Object.defineProperty(exports2, "enableFeature", { enumerable: true, get: function() {
89593
- return featureToggle_1.enableFeature;
89594
- } });
89595
- var constants_1 = require_constants4();
89596
- Object.defineProperty(exports2, "FeatureToggleKey", { enumerable: true, get: function() {
89597
- return constants_1.FeatureToggleKey;
89598
- } });
89599
- Object.defineProperty(exports2, "ExperimentalFeatures", { enumerable: true, get: function() {
89600
- return constants_1.ExperimentalFeatures;
89601
- } });
89602
- }
89603
- });
89604
-
89605
89702
  // ../../node_modules/@sap-ux/axios-extension/dist/factory.js
89606
89703
  var require_factory = __commonJS({
89607
89704
  "../../node_modules/@sap-ux/axios-extension/dist/factory.js"(exports2) {
@@ -89627,7 +89724,6 @@ var require_factory = __commonJS({
89627
89724
  var proxy_from_env_1 = require_proxy_from_env();
89628
89725
  var https_proxy_agent_1 = require_dist8();
89629
89726
  var http_proxy_agent_1 = require_dist9();
89630
- var feature_toggle_1 = require_dist10();
89631
89727
  var PatchedHttpsProxyAgent = class extends https_proxy_agent_1.HttpsProxyAgent {
89632
89728
  extraOptions;
89633
89729
  /**
@@ -89659,8 +89755,7 @@ var require_factory = __commonJS({
89659
89755
  rejectUnauthorized: !providerConfig.ignoreCertErrors
89660
89756
  };
89661
89757
  const localProxy = (0, proxy_from_env_1.getProxyForUrl)(config.baseURL);
89662
- const isPatchProxyEnabled = (0, feature_toggle_1.isFeatureEnabled)("sap.ux.enablePatchProxy");
89663
- if (isPatchProxyEnabled && localProxy) {
89758
+ if (localProxy && !(0, btp_utils_1.isAppStudio)()) {
89664
89759
  providerConfig.httpsAgent = new PatchedHttpsProxyAgent(localProxy, agentOptions);
89665
89760
  providerConfig.httpAgent = new http_proxy_agent_1.HttpProxyAgent(localProxy);
89666
89761
  providerConfig.proxy = false;
@@ -89786,7 +89881,7 @@ var require_factory = __commonJS({
89786
89881
  });
89787
89882
 
89788
89883
  // ../../node_modules/@sap-ux/axios-extension/dist/index.js
89789
- var require_dist11 = __commonJS({
89884
+ var require_dist10 = __commonJS({
89790
89885
  "../../node_modules/@sap-ux/axios-extension/dist/index.js"(exports2) {
89791
89886
  "use strict";
89792
89887
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -89825,339 +89920,8 @@ var require_dist11 = __commonJS({
89825
89920
  }
89826
89921
  });
89827
89922
 
89828
- // node_modules/chalk/source/util.js
89829
- var require_util5 = __commonJS({
89830
- "node_modules/chalk/source/util.js"(exports2, module2) {
89831
- "use strict";
89832
- var stringReplaceAll = (string, substring, replacer) => {
89833
- let index = string.indexOf(substring);
89834
- if (index === -1) {
89835
- return string;
89836
- }
89837
- const substringLength = substring.length;
89838
- let endIndex = 0;
89839
- let returnValue = "";
89840
- do {
89841
- returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
89842
- endIndex = index + substringLength;
89843
- index = string.indexOf(substring, endIndex);
89844
- } while (index !== -1);
89845
- returnValue += string.substr(endIndex);
89846
- return returnValue;
89847
- };
89848
- var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
89849
- let endIndex = 0;
89850
- let returnValue = "";
89851
- do {
89852
- const gotCR = string[index - 1] === "\r";
89853
- returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
89854
- endIndex = index + 1;
89855
- index = string.indexOf("\n", endIndex);
89856
- } while (index !== -1);
89857
- returnValue += string.substr(endIndex);
89858
- return returnValue;
89859
- };
89860
- module2.exports = {
89861
- stringReplaceAll,
89862
- stringEncaseCRLFWithFirstIndex
89863
- };
89864
- }
89865
- });
89866
-
89867
- // node_modules/chalk/source/templates.js
89868
- var require_templates2 = __commonJS({
89869
- "node_modules/chalk/source/templates.js"(exports2, module2) {
89870
- "use strict";
89871
- var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
89872
- var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
89873
- var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
89874
- var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
89875
- var ESCAPES = /* @__PURE__ */ new Map([
89876
- ["n", "\n"],
89877
- ["r", "\r"],
89878
- ["t", " "],
89879
- ["b", "\b"],
89880
- ["f", "\f"],
89881
- ["v", "\v"],
89882
- ["0", "\0"],
89883
- ["\\", "\\"],
89884
- ["e", "\x1B"],
89885
- ["a", "\x07"]
89886
- ]);
89887
- function unescape2(c) {
89888
- const u = c[0] === "u";
89889
- const bracket = c[1] === "{";
89890
- if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
89891
- return String.fromCharCode(parseInt(c.slice(1), 16));
89892
- }
89893
- if (u && bracket) {
89894
- return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
89895
- }
89896
- return ESCAPES.get(c) || c;
89897
- }
89898
- function parseArguments(name2, arguments_) {
89899
- const results = [];
89900
- const chunks = arguments_.trim().split(/\s*,\s*/g);
89901
- let matches;
89902
- for (const chunk of chunks) {
89903
- const number = Number(chunk);
89904
- if (!Number.isNaN(number)) {
89905
- results.push(number);
89906
- } else if (matches = chunk.match(STRING_REGEX)) {
89907
- results.push(matches[2].replace(ESCAPE_REGEX, (m, escape6, character) => escape6 ? unescape2(escape6) : character));
89908
- } else {
89909
- throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name2}')`);
89910
- }
89911
- }
89912
- return results;
89913
- }
89914
- function parseStyle(style) {
89915
- STYLE_REGEX.lastIndex = 0;
89916
- const results = [];
89917
- let matches;
89918
- while ((matches = STYLE_REGEX.exec(style)) !== null) {
89919
- const name2 = matches[1];
89920
- if (matches[2]) {
89921
- const args = parseArguments(name2, matches[2]);
89922
- results.push([name2].concat(args));
89923
- } else {
89924
- results.push([name2]);
89925
- }
89926
- }
89927
- return results;
89928
- }
89929
- function buildStyle(chalk, styles) {
89930
- const enabled2 = {};
89931
- for (const layer of styles) {
89932
- for (const style of layer.styles) {
89933
- enabled2[style[0]] = layer.inverse ? null : style.slice(1);
89934
- }
89935
- }
89936
- let current = chalk;
89937
- for (const [styleName, styles2] of Object.entries(enabled2)) {
89938
- if (!Array.isArray(styles2)) {
89939
- continue;
89940
- }
89941
- if (!(styleName in current)) {
89942
- throw new Error(`Unknown Chalk style: ${styleName}`);
89943
- }
89944
- current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
89945
- }
89946
- return current;
89947
- }
89948
- module2.exports = (chalk, temporary) => {
89949
- const styles = [];
89950
- const chunks = [];
89951
- let chunk = [];
89952
- temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
89953
- if (escapeCharacter) {
89954
- chunk.push(unescape2(escapeCharacter));
89955
- } else if (style) {
89956
- const string = chunk.join("");
89957
- chunk = [];
89958
- chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
89959
- styles.push({ inverse, styles: parseStyle(style) });
89960
- } else if (close) {
89961
- if (styles.length === 0) {
89962
- throw new Error("Found extraneous } in Chalk template literal");
89963
- }
89964
- chunks.push(buildStyle(chalk, styles)(chunk.join("")));
89965
- chunk = [];
89966
- styles.pop();
89967
- } else {
89968
- chunk.push(character);
89969
- }
89970
- });
89971
- chunks.push(chunk.join(""));
89972
- if (styles.length > 0) {
89973
- const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
89974
- throw new Error(errMessage);
89975
- }
89976
- return chunks.join("");
89977
- };
89978
- }
89979
- });
89980
-
89981
- // node_modules/chalk/source/index.js
89982
- var require_source2 = __commonJS({
89983
- "node_modules/chalk/source/index.js"(exports2, module2) {
89984
- "use strict";
89985
- var ansiStyles = require_ansi_styles();
89986
- var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
89987
- var {
89988
- stringReplaceAll,
89989
- stringEncaseCRLFWithFirstIndex
89990
- } = require_util5();
89991
- var { isArray: isArray3 } = Array;
89992
- var levelMapping = [
89993
- "ansi",
89994
- "ansi",
89995
- "ansi256",
89996
- "ansi16m"
89997
- ];
89998
- var styles = /* @__PURE__ */ Object.create(null);
89999
- var applyOptions = (object, options2 = {}) => {
90000
- if (options2.level && !(Number.isInteger(options2.level) && options2.level >= 0 && options2.level <= 3)) {
90001
- throw new Error("The `level` option should be an integer from 0 to 3");
90002
- }
90003
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
90004
- object.level = options2.level === void 0 ? colorLevel : options2.level;
90005
- };
90006
- var ChalkClass = class {
90007
- constructor(options2) {
90008
- return chalkFactory(options2);
90009
- }
90010
- };
90011
- var chalkFactory = (options2) => {
90012
- const chalk2 = {};
90013
- applyOptions(chalk2, options2);
90014
- chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
90015
- Object.setPrototypeOf(chalk2, Chalk.prototype);
90016
- Object.setPrototypeOf(chalk2.template, chalk2);
90017
- chalk2.template.constructor = () => {
90018
- throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
90019
- };
90020
- chalk2.template.Instance = ChalkClass;
90021
- return chalk2.template;
90022
- };
90023
- function Chalk(options2) {
90024
- return chalkFactory(options2);
90025
- }
90026
- for (const [styleName, style] of Object.entries(ansiStyles)) {
90027
- styles[styleName] = {
90028
- get() {
90029
- const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
90030
- Object.defineProperty(this, styleName, { value: builder });
90031
- return builder;
90032
- }
90033
- };
90034
- }
90035
- styles.visible = {
90036
- get() {
90037
- const builder = createBuilder(this, this._styler, true);
90038
- Object.defineProperty(this, "visible", { value: builder });
90039
- return builder;
90040
- }
90041
- };
90042
- var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
90043
- for (const model of usedModels) {
90044
- styles[model] = {
90045
- get() {
90046
- const { level } = this;
90047
- return function(...arguments_) {
90048
- const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
90049
- return createBuilder(this, styler, this._isEmpty);
90050
- };
90051
- }
90052
- };
90053
- }
90054
- for (const model of usedModels) {
90055
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
90056
- styles[bgModel] = {
90057
- get() {
90058
- const { level } = this;
90059
- return function(...arguments_) {
90060
- const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
90061
- return createBuilder(this, styler, this._isEmpty);
90062
- };
90063
- }
90064
- };
90065
- }
90066
- var proto = Object.defineProperties(() => {
90067
- }, {
90068
- ...styles,
90069
- level: {
90070
- enumerable: true,
90071
- get() {
90072
- return this._generator.level;
90073
- },
90074
- set(level) {
90075
- this._generator.level = level;
90076
- }
90077
- }
90078
- });
90079
- var createStyler = (open, close, parent) => {
90080
- let openAll;
90081
- let closeAll;
90082
- if (parent === void 0) {
90083
- openAll = open;
90084
- closeAll = close;
90085
- } else {
90086
- openAll = parent.openAll + open;
90087
- closeAll = close + parent.closeAll;
90088
- }
90089
- return {
90090
- open,
90091
- close,
90092
- openAll,
90093
- closeAll,
90094
- parent
90095
- };
90096
- };
90097
- var createBuilder = (self2, _styler, _isEmpty) => {
90098
- const builder = (...arguments_) => {
90099
- if (isArray3(arguments_[0]) && isArray3(arguments_[0].raw)) {
90100
- return applyStyle(builder, chalkTag(builder, ...arguments_));
90101
- }
90102
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
90103
- };
90104
- Object.setPrototypeOf(builder, proto);
90105
- builder._generator = self2;
90106
- builder._styler = _styler;
90107
- builder._isEmpty = _isEmpty;
90108
- return builder;
90109
- };
90110
- var applyStyle = (self2, string) => {
90111
- if (self2.level <= 0 || !string) {
90112
- return self2._isEmpty ? "" : string;
90113
- }
90114
- let styler = self2._styler;
90115
- if (styler === void 0) {
90116
- return string;
90117
- }
90118
- const { openAll, closeAll } = styler;
90119
- if (string.indexOf("\x1B") !== -1) {
90120
- while (styler !== void 0) {
90121
- string = stringReplaceAll(string, styler.close, styler.open);
90122
- styler = styler.parent;
90123
- }
90124
- }
90125
- const lfIndex = string.indexOf("\n");
90126
- if (lfIndex !== -1) {
90127
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
90128
- }
90129
- return openAll + string + closeAll;
90130
- };
90131
- var template;
90132
- var chalkTag = (chalk2, ...strings) => {
90133
- const [firstString] = strings;
90134
- if (!isArray3(firstString) || !isArray3(firstString.raw)) {
90135
- return strings.join(" ");
90136
- }
90137
- const arguments_ = strings.slice(1);
90138
- const parts = [firstString.raw[0]];
90139
- for (let i = 1; i < firstString.length; i++) {
90140
- parts.push(
90141
- String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
90142
- String(firstString.raw[i])
90143
- );
90144
- }
90145
- if (template === void 0) {
90146
- template = require_templates2();
90147
- }
90148
- return template(chalk2, parts.join(""));
90149
- };
90150
- Object.defineProperties(Chalk.prototype, styles);
90151
- var chalk = Chalk();
90152
- chalk.supportsColor = stdoutColor;
90153
- chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
90154
- chalk.stderr.supportsColor = stderrColor;
90155
- module2.exports = chalk;
90156
- }
90157
- });
90158
-
90159
89923
  // ../../node_modules/@sap-ux/project-access/dist/constants.js
90160
- var require_constants5 = __commonJS({
89924
+ var require_constants4 = __commonJS({
90161
89925
  "../../node_modules/@sap-ux/project-access/dist/constants.js"(exports2) {
90162
89926
  "use strict";
90163
89927
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -90691,7 +90455,7 @@ var require_dependencies2 = __commonJS({
90691
90455
  exports2.addPackageDevDependency = addPackageDevDependency;
90692
90456
  var fs_1 = require("fs");
90693
90457
  var path_1 = require("path");
90694
- var constants_1 = require_constants5();
90458
+ var constants_1 = require_constants4();
90695
90459
  var file_1 = require_file3();
90696
90460
  var hasDependency = (packageJson, dependency) => {
90697
90461
  var _a3, _b2;
@@ -90838,7 +90602,7 @@ var require_module_loader = __commonJS({
90838
90602
  var promises_1 = require("fs/promises");
90839
90603
  var path_1 = require("path");
90840
90604
  var dependencies_1 = require_dependencies2();
90841
- var constants_1 = require_constants5();
90605
+ var constants_1 = require_constants4();
90842
90606
  var command_1 = require_command();
90843
90607
  async function getModulePath(projectRoot, moduleName) {
90844
90608
  if (!(0, dependencies_1.getNodeModulesPath)(projectRoot, moduleName)) {
@@ -90904,9 +90668,11 @@ var require_ui5_config = __commonJS({
90904
90668
  exports2.getWebappPath = getWebappPath;
90905
90669
  exports2.readUi5Yaml = readUi5Yaml;
90906
90670
  exports2.getAllUi5YamlFileNames = getAllUi5YamlFileNames;
90671
+ exports2.getMockServerConfig = getMockServerConfig;
90672
+ exports2.getMockDataPath = getMockDataPath;
90907
90673
  var path_1 = require("path");
90908
90674
  var ui5_config_1 = require_dist3();
90909
- var constants_1 = require_constants5();
90675
+ var constants_1 = require_constants4();
90910
90676
  var file_1 = require_file3();
90911
90677
  async function getWebappPath(appRoot, memFs) {
90912
90678
  var _a3, _b2;
@@ -90942,6 +90708,32 @@ var require_ui5_config = __commonJS({
90942
90708
  throw new Error(`There was an error reading files from the directory '${projectRoot}': ${error5}`);
90943
90709
  }
90944
90710
  }
90711
+ async function getMockServerConfig(projectRoot, fileName = constants_1.FileName.Ui5MockYaml) {
90712
+ const ui5MockYamlFile = await readUi5Yaml(projectRoot, fileName);
90713
+ const mockserverMiddleware = ui5MockYamlFile.findCustomMiddleware("sap-fe-mockserver");
90714
+ if (!mockserverMiddleware) {
90715
+ throw new Error("Could not find sap-fe-mockserver");
90716
+ }
90717
+ return mockserverMiddleware.configuration;
90718
+ }
90719
+ async function getMockDataPath(projectRoot, fileName = constants_1.FileName.Ui5MockYaml) {
90720
+ const mockServerConfig = await getMockServerConfig(projectRoot, fileName);
90721
+ if (!mockServerConfig) {
90722
+ return "";
90723
+ }
90724
+ const services = extractServices(mockServerConfig);
90725
+ if (!services) {
90726
+ return "";
90727
+ }
90728
+ const found = services.find((service) => !!service.mockdataPath);
90729
+ return (found == null ? void 0 : found.mockdataPath) ?? "";
90730
+ }
90731
+ function extractServices(config) {
90732
+ if ("services" in config && config.services) {
90733
+ return Array.isArray(config.services) ? config.services : [config.services];
90734
+ }
90735
+ return void 0;
90736
+ }
90945
90737
  }
90946
90738
  });
90947
90739
 
@@ -90958,7 +90750,7 @@ var require_search = __commonJS({
90958
90750
  exports2.findFioriArtifacts = findFioriArtifacts;
90959
90751
  exports2.findCapProjects = findCapProjects;
90960
90752
  var path_1 = require("path");
90961
- var constants_1 = require_constants5();
90753
+ var constants_1 = require_constants4();
90962
90754
  var file_1 = require_file3();
90963
90755
  var dependencies_1 = require_dependencies2();
90964
90756
  var cap_1 = require_cap();
@@ -91476,7 +91268,7 @@ var require_safe_buffer2 = __commonJS({
91476
91268
  });
91477
91269
 
91478
91270
  // ../../node_modules/core-util-is/lib/util.js
91479
- var require_util6 = __commonJS({
91271
+ var require_util5 = __commonJS({
91480
91272
  "../../node_modules/core-util-is/lib/util.js"(exports2) {
91481
91273
  function isArray3(arg) {
91482
91274
  if (Array.isArray) {
@@ -91701,7 +91493,7 @@ var require_stream_writable3 = __commonJS({
91701
91493
  var asyncWrite = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;
91702
91494
  var Duplex;
91703
91495
  Writable.WritableState = WritableState;
91704
- var util5 = Object.create(require_util6());
91496
+ var util5 = Object.create(require_util5());
91705
91497
  util5.inherits = require_inherits();
91706
91498
  var internalUtil = {
91707
91499
  deprecate: require_node2()
@@ -92141,7 +91933,7 @@ var require_stream_duplex3 = __commonJS({
92141
91933
  return keys2;
92142
91934
  };
92143
91935
  module2.exports = Duplex;
92144
- var util5 = Object.create(require_util6());
91936
+ var util5 = Object.create(require_util5());
92145
91937
  util5.inherits = require_inherits();
92146
91938
  var Readable2 = require_stream_readable3();
92147
91939
  var Writable = require_stream_writable3();
@@ -92466,7 +92258,7 @@ var require_stream_readable3 = __commonJS({
92466
92258
  function _isUint8Array(obj) {
92467
92259
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
92468
92260
  }
92469
- var util5 = Object.create(require_util6());
92261
+ var util5 = Object.create(require_util5());
92470
92262
  util5.inherits = require_inherits();
92471
92263
  var debugUtil = require("util");
92472
92264
  var debug = void 0;
@@ -93135,7 +92927,7 @@ var require_stream_transform2 = __commonJS({
93135
92927
  "use strict";
93136
92928
  module2.exports = Transform2;
93137
92929
  var Duplex = require_stream_duplex3();
93138
- var util5 = Object.create(require_util6());
92930
+ var util5 = Object.create(require_util5());
93139
92931
  util5.inherits = require_inherits();
93140
92932
  util5.inherits(Transform2, Duplex);
93141
92933
  function afterTransform(er, data2) {
@@ -93235,7 +93027,7 @@ var require_stream_passthrough2 = __commonJS({
93235
93027
  "use strict";
93236
93028
  module2.exports = PassThrough;
93237
93029
  var Transform2 = require_stream_transform2();
93238
- var util5 = Object.create(require_util6());
93030
+ var util5 = Object.create(require_util5());
93239
93031
  util5.inherits = require_inherits();
93240
93032
  util5.inherits(PassThrough, Transform2);
93241
93033
  function PassThrough(options2) {
@@ -96490,7 +96282,7 @@ var require_expand = __commonJS({
96490
96282
  });
96491
96283
 
96492
96284
  // ../../node_modules/braces/lib/constants.js
96493
- var require_constants6 = __commonJS({
96285
+ var require_constants5 = __commonJS({
96494
96286
  "../../node_modules/braces/lib/constants.js"(exports2, module2) {
96495
96287
  "use strict";
96496
96288
  module2.exports = {
@@ -96623,7 +96415,7 @@ var require_parse5 = __commonJS({
96623
96415
  /* ' */
96624
96416
  CHAR_NO_BREAK_SPACE,
96625
96417
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
96626
- } = require_constants6();
96418
+ } = require_constants5();
96627
96419
  var parse4 = (input, options2 = {}) => {
96628
96420
  if (typeof input !== "string") {
96629
96421
  throw new TypeError("Expected a string");
@@ -96892,7 +96684,7 @@ var require_braces = __commonJS({
96892
96684
  });
96893
96685
 
96894
96686
  // ../../node_modules/micromatch/node_modules/picomatch/lib/constants.js
96895
- var require_constants7 = __commonJS({
96687
+ var require_constants6 = __commonJS({
96896
96688
  "../../node_modules/micromatch/node_modules/picomatch/lib/constants.js"(exports2, module2) {
96897
96689
  "use strict";
96898
96690
  var path4 = require("path");
@@ -97099,7 +96891,7 @@ var require_utils10 = __commonJS({
97099
96891
  REGEX_REMOVE_BACKSLASH,
97100
96892
  REGEX_SPECIAL_CHARS,
97101
96893
  REGEX_SPECIAL_CHARS_GLOBAL
97102
- } = require_constants7();
96894
+ } = require_constants6();
97103
96895
  exports2.isObject = (val2) => val2 !== null && typeof val2 === "object" && !Array.isArray(val2);
97104
96896
  exports2.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
97105
96897
  exports2.isRegexChar = (str) => str.length === 1 && exports2.hasRegexChars(str);
@@ -97185,7 +96977,7 @@ var require_scan = __commonJS({
97185
96977
  /* ) */
97186
96978
  CHAR_RIGHT_SQUARE_BRACKET
97187
96979
  /* ] */
97188
- } = require_constants7();
96980
+ } = require_constants6();
97189
96981
  var isPathSeparator = (code) => {
97190
96982
  return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
97191
96983
  };
@@ -97483,7 +97275,7 @@ var require_scan = __commonJS({
97483
97275
  var require_parse6 = __commonJS({
97484
97276
  "../../node_modules/micromatch/node_modules/picomatch/lib/parse.js"(exports2, module2) {
97485
97277
  "use strict";
97486
- var constants = require_constants7();
97278
+ var constants = require_constants6();
97487
97279
  var utils = require_utils10();
97488
97280
  var {
97489
97281
  MAX_LENGTH,
@@ -98260,7 +98052,7 @@ var require_picomatch = __commonJS({
98260
98052
  var scan = require_scan();
98261
98053
  var parse4 = require_parse6();
98262
98054
  var utils = require_utils10();
98263
- var constants = require_constants7();
98055
+ var constants = require_constants6();
98264
98056
  var isObject4 = (val2) => val2 && typeof val2 === "object" && !Array.isArray(val2);
98265
98057
  var picomatch = (glob, options2, returnState = false) => {
98266
98058
  if (Array.isArray(glob)) {
@@ -99074,7 +98866,7 @@ var require_run_parallel = __commonJS({
99074
98866
  });
99075
98867
 
99076
98868
  // ../../node_modules/@nodelib/fs.scandir/out/constants.js
99077
- var require_constants8 = __commonJS({
98869
+ var require_constants7 = __commonJS({
99078
98870
  "../../node_modules/@nodelib/fs.scandir/out/constants.js"(exports2) {
99079
98871
  "use strict";
99080
98872
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -99130,7 +98922,7 @@ var require_async3 = __commonJS({
99130
98922
  Object.defineProperty(exports2, "__esModule", { value: true });
99131
98923
  var fsStat = require_out();
99132
98924
  var rpl = require_run_parallel();
99133
- var constants_1 = require_constants8();
98925
+ var constants_1 = require_constants7();
99134
98926
  var utils = require_utils12();
99135
98927
  function read(directory, settings, callback) {
99136
98928
  if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
@@ -99225,7 +99017,7 @@ var require_sync2 = __commonJS({
99225
99017
  "use strict";
99226
99018
  Object.defineProperty(exports2, "__esModule", { value: true });
99227
99019
  var fsStat = require_out();
99228
- var constants_1 = require_constants8();
99020
+ var constants_1 = require_constants7();
99229
99021
  var utils = require_utils12();
99230
99022
  function read(directory, settings) {
99231
99023
  if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
@@ -102857,7 +102649,7 @@ var require_edition_es52 = __commonJS({
102857
102649
  });
102858
102650
 
102859
102651
  // ../../node_modules/mem-fs-editor/lib/util.js
102860
- var require_util7 = __commonJS({
102652
+ var require_util6 = __commonJS({
102861
102653
  "../../node_modules/mem-fs-editor/lib/util.js"(exports2) {
102862
102654
  "use strict";
102863
102655
  var fs4 = require("fs");
@@ -102937,7 +102729,7 @@ var require_delete = __commonJS({
102937
102729
  var path4 = require("path");
102938
102730
  var globby = require_globby();
102939
102731
  var multimatch = require_multimatch();
102940
- var util5 = require_util7();
102732
+ var util5 = require_util6();
102941
102733
  var { setDeletedFileState } = require_state4();
102942
102734
  function deleteFile(path5, store) {
102943
102735
  const file = store.get(path5);
@@ -102976,7 +102768,7 @@ var require_copy3 = __commonJS({
102976
102768
  var globby = require_globby();
102977
102769
  var multimatch = require_multimatch();
102978
102770
  var ejs = require_ejs();
102979
- var util5 = require_util7();
102771
+ var util5 = require_util6();
102980
102772
  var normalize2 = require_normalize_path();
102981
102773
  function applyProcessingFunc(process4, contents, filename) {
102982
102774
  const output5 = process4(contents, filename);
@@ -103049,7 +102841,7 @@ var require_copy_tpl = __commonJS({
103049
102841
  "../../node_modules/mem-fs-editor/lib/actions/copy-tpl.js"(exports2, module2) {
103050
102842
  "use strict";
103051
102843
  var ejs = require_ejs();
103052
- var { isBinary } = require_util7();
102844
+ var { isBinary } = require_util6();
103053
102845
  module2.exports._processTpl = function({ contents, filename, context: context2, tplSettings }) {
103054
102846
  if (isBinary(filename, contents)) {
103055
102847
  return contents;
@@ -103093,7 +102885,7 @@ var require_copy_async = __commonJS({
103093
102885
  var globby = require_globby();
103094
102886
  var multimatch = require_multimatch();
103095
102887
  var ejs = require_ejs();
103096
- var util5 = require_util7();
102888
+ var util5 = require_util6();
103097
102889
  var normalize2 = require_normalize_path();
103098
102890
  async function applyProcessingFileFunc(processFile, filename) {
103099
102891
  const output5 = await Promise.resolve(processFile.call(this, filename));
@@ -103182,7 +102974,7 @@ var require_copy_tpl_async = __commonJS({
103182
102974
  "use strict";
103183
102975
  var ejs = require_ejs();
103184
102976
  var fs4 = require("fs").promises;
103185
- var { isBinary } = require_util7();
102977
+ var { isBinary } = require_util6();
103186
102978
  module2.exports = async function(from, to, context2, tplSettings, options2) {
103187
102979
  context2 = context2 || {};
103188
102980
  tplSettings = tplSettings || {};
@@ -103221,7 +103013,7 @@ var require_move3 = __commonJS({
103221
103013
  // ../../node_modules/mem-fs-editor/lib/transform.js
103222
103014
  var require_transform = __commonJS({
103223
103015
  "../../node_modules/mem-fs-editor/lib/transform.js"(exports2, module2) {
103224
- var { createTransform } = require_util7();
103016
+ var { createTransform } = require_util6();
103225
103017
  var { isFilePending } = require_state4();
103226
103018
  var createPendingFilesPassthrough = () => createTransform((file, _enc, cb) => {
103227
103019
  cb(void 0, isFilePending(file) ? file : void 0);
@@ -103406,7 +103198,7 @@ var require_cap = __commonJS({
103406
103198
  exports2.hasMinCdsVersion = hasMinCdsVersion;
103407
103199
  var child_process_1 = require("child_process");
103408
103200
  var path_1 = require("path");
103409
- var constants_1 = require_constants5();
103201
+ var constants_1 = require_constants4();
103410
103202
  var file_1 = require_file3();
103411
103203
  var module_loader_1 = require_module_loader();
103412
103204
  var search_1 = require_search();
@@ -107771,7 +107563,7 @@ var require_text_formatting = __commonJS({
107771
107563
  });
107772
107564
 
107773
107565
  // ../../node_modules/@sap-ux/text-document-utils/dist/index.js
107774
- var require_dist12 = __commonJS({
107566
+ var require_dist11 = __commonJS({
107775
107567
  "../../node_modules/@sap-ux/text-document-utils/dist/index.js"(exports2) {
107776
107568
  "use strict";
107777
107569
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -107893,7 +107685,7 @@ var require_json4 = __commonJS({
107893
107685
  Object.defineProperty(exports2, "__esModule", { value: true });
107894
107686
  exports2.jsonToI18nBundle = jsonToI18nBundle;
107895
107687
  var jsonc_parser_1 = (init_main(), __toCommonJS(main_exports));
107896
- var text_document_utils_1 = require_dist12();
107688
+ var text_document_utils_1 = require_dist11();
107897
107689
  function createTextNode(value, range) {
107898
107690
  return {
107899
107691
  value,
@@ -108311,7 +108103,7 @@ var require_properties_parser = __commonJS({
108311
108103
  "use strict";
108312
108104
  Object.defineProperty(exports2, "__esModule", { value: true });
108313
108105
  exports2.getPropertyList = getPropertyList;
108314
- var text_document_utils_1 = require_dist12();
108106
+ var text_document_utils_1 = require_dist11();
108315
108107
  var PropertiesList = class {
108316
108108
  tokens;
108317
108109
  text;
@@ -108443,12 +108235,17 @@ var require_properties_parser = __commonJS({
108443
108235
  range: { ...key.range, start: { line: key.range.end.line, character: key.range.end.character } }
108444
108236
  };
108445
108237
  }
108446
- this.list.push({
108238
+ const nextToken = this.peek();
108239
+ const line = {
108447
108240
  type: "key-element-line",
108448
108241
  key,
108449
108242
  element,
108450
108243
  range: text_document_utils_1.Range.create(key.range.start, element.range.end)
108451
- });
108244
+ };
108245
+ if ((nextToken == null ? void 0 : nextToken.type) === "end-of-line") {
108246
+ line.endOfLineToken = nextToken;
108247
+ }
108248
+ this.list.push(line);
108452
108249
  }
108453
108250
  /**
108454
108251
  * Create properties list.
@@ -108509,7 +108306,7 @@ var require_annotation = __commonJS({
108509
108306
  "use strict";
108510
108307
  Object.defineProperty(exports2, "__esModule", { value: true });
108511
108308
  exports2.getAnnotation = getAnnotation;
108512
- var text_document_utils_1 = require_dist12();
108309
+ var text_document_utils_1 = require_dist11();
108513
108310
  function toTextTypeNode(comment, commaIndex, colonIndex) {
108514
108311
  const { range: { start }, value } = comment;
108515
108312
  if (commaIndex !== -1) {
@@ -108760,7 +108557,7 @@ var require_csv_parser = __commonJS({
108760
108557
  "use strict";
108761
108558
  Object.defineProperty(exports2, "__esModule", { value: true });
108762
108559
  exports2.parseCsv = parseCsv;
108763
- var text_document_utils_1 = require_dist12();
108560
+ var text_document_utils_1 = require_dist11();
108764
108561
  var types_1 = require_types6();
108765
108562
  var lexer_1 = require_lexer3();
108766
108563
  var ParseCsv = class {
@@ -109095,9 +108892,9 @@ var require_read3 = __commonJS({
109095
108892
  }
109096
108893
  });
109097
108894
 
109098
- // ../../node_modules/vscode-languageserver-textdocument/lib/umd/main.js
108895
+ // ../../node_modules/@sap-ux/i18n/node_modules/vscode-languageserver-textdocument/lib/umd/main.js
109099
108896
  var require_main = __commonJS({
109100
- "../../node_modules/vscode-languageserver-textdocument/lib/umd/main.js"(exports2, module2) {
108897
+ "../../node_modules/@sap-ux/i18n/node_modules/vscode-languageserver-textdocument/lib/umd/main.js"(exports2, module2) {
109101
108898
  var __spreadArray9 = exports2 && exports2.__spreadArray || function(to, from, pack) {
109102
108899
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
109103
108900
  if (ar || !(i in from)) {
@@ -109364,7 +109161,7 @@ var require_json6 = __commonJS({
109364
109161
  exports2.tryAddJsonTexts = tryAddJsonTexts;
109365
109162
  var vscode_languageserver_textdocument_1 = require_main();
109366
109163
  var utils_1 = require_utils13();
109367
- var text_document_utils_1 = require_dist12();
109164
+ var text_document_utils_1 = require_dist11();
109368
109165
  var jsonc_parser_1 = (init_main(), __toCommonJS(main_exports));
109369
109166
  function createFullBundle(fallbackLocale, newEntries) {
109370
109167
  const fallbackBundle = newEntries.reduce((acc, entry) => {
@@ -109465,7 +109262,7 @@ var require_csv3 = __commonJS({
109465
109262
  exports2.tryAddCsvTexts = tryAddCsvTexts;
109466
109263
  var utils_1 = require_utils13();
109467
109264
  var vscode_languageserver_textdocument_1 = require_main();
109468
- var text_document_utils_1 = require_dist12();
109265
+ var text_document_utils_1 = require_dist11();
109469
109266
  var parser_1 = require_parser3();
109470
109267
  function addFallbackCsvText(text, eol, newEntries, headerFields, fallbackLocale) {
109471
109268
  let newText = "";
@@ -109551,20 +109348,37 @@ var require_utils14 = __commonJS({
109551
109348
  Object.defineProperty(exports2, "__esModule", { value: true });
109552
109349
  exports2.writeToExistingI18nPropertiesFile = writeToExistingI18nPropertiesFile;
109553
109350
  var utils_1 = require_utils13();
109554
- async function writeToExistingI18nPropertiesFile(i18nFilePath, newI18nEntries, fs4) {
109351
+ var text_document_utils_1 = require_dist11();
109352
+ var vscode_languageserver_textdocument_1 = require_main();
109353
+ var parser_1 = require_parser2();
109354
+ async function writeToExistingI18nPropertiesFile(i18nFilePath, newI18nEntries, keysToRemove = [], fs4) {
109555
109355
  let newContent = newI18nEntries.map((entry) => (0, utils_1.printPropertiesI18nEntry)(entry.key, entry.value, entry.annotation)).join("");
109556
- const content = await (0, utils_1.readFile)(i18nFilePath, fs4);
109557
- if (content) {
109558
- const lines = content.split(/\r\n|\n/);
109559
- if (lines.length > 0 && lines[lines.length - 1].trim()) {
109560
- newContent = `
109356
+ let content = await (0, utils_1.readFile)(i18nFilePath, fs4);
109357
+ if (keysToRemove.length) {
109358
+ content = removeKeysFromI18nPropertiesFile(content, keysToRemove);
109359
+ }
109360
+ const lines = content.split(/\r\n|\n/);
109361
+ if (lines.length > 0 && lines[lines.length - 1].trim()) {
109362
+ newContent = `
109561
109363
  ${newContent}`;
109364
+ }
109365
+ await (0, utils_1.writeFile)(i18nFilePath, content.concat(newContent), fs4);
109366
+ return true;
109367
+ }
109368
+ function removeKeysFromI18nPropertiesFile(content, keysToRemove) {
109369
+ const document2 = vscode_languageserver_textdocument_1.TextDocument.create("", "", 0, content);
109370
+ const textEdits = [];
109371
+ const { ast } = (0, parser_1.parseProperties)(content);
109372
+ for (let i = 0; i < ast.length; i++) {
109373
+ const line = ast[i];
109374
+ if (line.type === "key-element-line" && keysToRemove.findIndex((key) => line.key.value.includes(key)) !== -1) {
109375
+ const previousLine = ast[i - 1];
109376
+ const start = previousLine.type === "comment-line" ? previousLine.range.start : line.range.start;
109377
+ const end = line.endOfLineToken ? document2.positionAt(line.endOfLineToken.end) : line.range.end;
109378
+ textEdits.push(text_document_utils_1.TextEdit.del(text_document_utils_1.Range.create(start, end)));
109562
109379
  }
109563
- await (0, utils_1.writeFile)(i18nFilePath, content.concat(newContent), fs4);
109564
- return true;
109565
- } else {
109566
- return false;
109567
109380
  }
109381
+ return vscode_languageserver_textdocument_1.TextDocument.applyEdits(document2, textEdits).trim();
109568
109382
  }
109569
109383
  }
109570
109384
  });
@@ -109589,7 +109403,7 @@ var require_properties5 = __commonJS({
109589
109403
  await (0, utils_1.writeFile)(i18nFilePath, newContent, fs4);
109590
109404
  return true;
109591
109405
  }
109592
- return await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, fs4);
109406
+ return await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, [], fs4);
109593
109407
  }
109594
109408
  }
109595
109409
  });
@@ -109640,19 +109454,29 @@ var require_create2 = __commonJS({
109640
109454
  "use strict";
109641
109455
  Object.defineProperty(exports2, "__esModule", { value: true });
109642
109456
  exports2.createPropertiesI18nEntries = createPropertiesI18nEntries;
109457
+ exports2.removeAndCreateI18nEntries = removeAndCreateI18nEntries;
109643
109458
  var utils_1 = require_utils13();
109644
109459
  var utils_2 = require_utils14();
109645
109460
  var path_1 = require("path");
109646
109461
  async function createPropertiesI18nEntries(i18nFilePath, newI18nEntries, root, fs4) {
109647
109462
  if (!fs4 && !await (0, utils_1.doesExist)(i18nFilePath) || fs4 && !fs4.exists(i18nFilePath)) {
109648
- let content = "# Resource bundle \n";
109649
- if (root) {
109650
- content = `# This is the resource bundle for ${(0, path_1.basename)(root)}
109463
+ await createNewI18nFile(i18nFilePath, root, fs4);
109464
+ }
109465
+ return await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, [], fs4);
109466
+ }
109467
+ async function removeAndCreateI18nEntries(i18nFilePath, newI18nEntries, keysToRemove = [], root, fs4) {
109468
+ if (!fs4 && !await (0, utils_1.doesExist)(i18nFilePath) || fs4 && !fs4.exists(i18nFilePath)) {
109469
+ await createNewI18nFile(i18nFilePath, root, fs4);
109470
+ }
109471
+ await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, keysToRemove, fs4);
109472
+ }
109473
+ async function createNewI18nFile(i18nFilePath, root, fs4) {
109474
+ let content = "# Resource bundle \n";
109475
+ if (root) {
109476
+ content = `# This is the resource bundle for ${(0, path_1.basename)(root)}
109651
109477
  `;
109652
- }
109653
- await (0, utils_1.writeFile)(i18nFilePath, content, fs4);
109654
109478
  }
109655
- return await (0, utils_2.writeToExistingI18nPropertiesFile)(i18nFilePath, newI18nEntries, fs4);
109479
+ return (0, utils_1.writeFile)(i18nFilePath, content, fs4);
109656
109480
  }
109657
109481
  }
109658
109482
  });
@@ -109662,11 +109486,14 @@ var require_properties6 = __commonJS({
109662
109486
  "../../node_modules/@sap-ux/i18n/dist/write/properties/index.js"(exports2) {
109663
109487
  "use strict";
109664
109488
  Object.defineProperty(exports2, "__esModule", { value: true });
109665
- exports2.createPropertiesI18nEntries = void 0;
109489
+ exports2.removeAndCreateI18nEntries = exports2.createPropertiesI18nEntries = void 0;
109666
109490
  var create_1 = require_create2();
109667
109491
  Object.defineProperty(exports2, "createPropertiesI18nEntries", { enumerable: true, get: function() {
109668
109492
  return create_1.createPropertiesI18nEntries;
109669
109493
  } });
109494
+ Object.defineProperty(exports2, "removeAndCreateI18nEntries", { enumerable: true, get: function() {
109495
+ return create_1.removeAndCreateI18nEntries;
109496
+ } });
109670
109497
  }
109671
109498
  });
109672
109499
 
@@ -109675,7 +109502,7 @@ var require_write3 = __commonJS({
109675
109502
  "../../node_modules/@sap-ux/i18n/dist/write/index.js"(exports2) {
109676
109503
  "use strict";
109677
109504
  Object.defineProperty(exports2, "__esModule", { value: true });
109678
- exports2.createPropertiesI18nEntries = exports2.createCapI18nEntries = void 0;
109505
+ exports2.removeAndCreateI18nEntries = exports2.createPropertiesI18nEntries = exports2.createCapI18nEntries = void 0;
109679
109506
  var cap_1 = require_cap3();
109680
109507
  Object.defineProperty(exports2, "createCapI18nEntries", { enumerable: true, get: function() {
109681
109508
  return cap_1.createCapI18nEntries;
@@ -109684,6 +109511,9 @@ var require_write3 = __commonJS({
109684
109511
  Object.defineProperty(exports2, "createPropertiesI18nEntries", { enumerable: true, get: function() {
109685
109512
  return properties_1.createPropertiesI18nEntries;
109686
109513
  } });
109514
+ Object.defineProperty(exports2, "removeAndCreateI18nEntries", { enumerable: true, get: function() {
109515
+ return properties_1.removeAndCreateI18nEntries;
109516
+ } });
109687
109517
  }
109688
109518
  });
109689
109519
 
@@ -109709,11 +109539,11 @@ var require_transformer = __commonJS({
109709
109539
  });
109710
109540
 
109711
109541
  // ../../node_modules/@sap-ux/i18n/dist/index.js
109712
- var require_dist13 = __commonJS({
109542
+ var require_dist12 = __commonJS({
109713
109543
  "../../node_modules/@sap-ux/i18n/dist/index.js"(exports2) {
109714
109544
  "use strict";
109715
109545
  Object.defineProperty(exports2, "__esModule", { value: true });
109716
- exports2.propertiesToI18nEntry = exports2.jsonToI18nBundle = exports2.csvToI18nBundle = exports2.SapShortTextType = exports2.SapLongTextType = exports2.printPropertiesI18nAnnotation = exports2.printPropertiesI18nEntry = exports2.convertToPascalCase = exports2.convertToCamelCase = exports2.getI18nUniqueKey = exports2.extractDoubleCurlyBracketsKey = exports2.extractI18nKey = exports2.getI18nTextType = exports2.getI18nMaxLength = exports2.getI18nFolderNames = exports2.createPropertiesI18nEntries = exports2.createCapI18nEntries = exports2.getPropertiesI18nBundle = exports2.getCapI18nBundle = void 0;
109546
+ exports2.propertiesToI18nEntry = exports2.jsonToI18nBundle = exports2.csvToI18nBundle = exports2.SapShortTextType = exports2.SapLongTextType = exports2.printPropertiesI18nAnnotation = exports2.printPropertiesI18nEntry = exports2.convertToPascalCase = exports2.convertToCamelCase = exports2.getI18nUniqueKey = exports2.extractDoubleCurlyBracketsKey = exports2.extractI18nKey = exports2.getI18nTextType = exports2.getI18nMaxLength = exports2.getI18nFolderNames = exports2.removeAndCreateI18nEntries = exports2.createPropertiesI18nEntries = exports2.createCapI18nEntries = exports2.getPropertiesI18nBundle = exports2.getCapI18nBundle = void 0;
109717
109547
  var read_1 = require_read3();
109718
109548
  Object.defineProperty(exports2, "getCapI18nBundle", { enumerable: true, get: function() {
109719
109549
  return read_1.getCapI18nBundle;
@@ -109728,6 +109558,9 @@ var require_dist13 = __commonJS({
109728
109558
  Object.defineProperty(exports2, "createPropertiesI18nEntries", { enumerable: true, get: function() {
109729
109559
  return write_1.createPropertiesI18nEntries;
109730
109560
  } });
109561
+ Object.defineProperty(exports2, "removeAndCreateI18nEntries", { enumerable: true, get: function() {
109562
+ return write_1.removeAndCreateI18nEntries;
109563
+ } });
109731
109564
  var utils_1 = require_utils13();
109732
109565
  Object.defineProperty(exports2, "getI18nFolderNames", { enumerable: true, get: function() {
109733
109566
  return utils_1.getI18nFolderNames;
@@ -109786,7 +109619,7 @@ var require_read4 = __commonJS({
109786
109619
  Object.defineProperty(exports2, "__esModule", { value: true });
109787
109620
  exports2.getI18nBundles = getI18nBundles;
109788
109621
  exports2.getCapI18nFolderNames = getCapI18nFolderNames;
109789
- var i18n_1 = require_dist13();
109622
+ var i18n_1 = require_dist12();
109790
109623
  var __1 = require_project();
109791
109624
  function addToErrors(result2, key, error5) {
109792
109625
  if (!result2.errors) {
@@ -109840,7 +109673,7 @@ var require_write4 = __commonJS({
109840
109673
  exports2.createUI5I18nEntries = createUI5I18nEntries;
109841
109674
  exports2.createAnnotationI18nEntries = createAnnotationI18nEntries;
109842
109675
  exports2.createManifestI18nEntries = createManifestI18nEntries;
109843
- var i18n_1 = require_dist13();
109676
+ var i18n_1 = require_dist12();
109844
109677
  var __1 = require_project();
109845
109678
  var path_1 = require("path");
109846
109679
  var file_1 = require_file3();
@@ -109942,7 +109775,7 @@ var require_info = __commonJS({
109942
109775
  exports2.getMinUI5VersionAsArray = getMinUI5VersionAsArray;
109943
109776
  exports2.getMinimumUI5Version = getMinimumUI5Version3;
109944
109777
  var path_1 = require("path");
109945
- var constants_1 = require_constants5();
109778
+ var constants_1 = require_constants4();
109946
109779
  var file_1 = require_file3();
109947
109780
  var cap_1 = require_cap();
109948
109781
  var i18n_1 = require_i18n();
@@ -110104,7 +109937,7 @@ var require_mta = __commonJS({
110104
109937
  Object.defineProperty(exports2, "__esModule", { value: true });
110105
109938
  exports2.getMtaPath = getMtaPath;
110106
109939
  var file_search_1 = require_file_search();
110107
- var constants_1 = require_constants5();
109940
+ var constants_1 = require_constants4();
110108
109941
  var path_1 = require("path");
110109
109942
  async function getMtaPath(projectPath, fs4) {
110110
109943
  const mtaPath = await (0, file_search_1.findFileUp)(constants_1.FileName.MtaYaml, projectPath, fs4);
@@ -110136,7 +109969,7 @@ var require_specification = __commonJS({
110136
109969
  var module_loader_1 = require_module_loader();
110137
109970
  var ui5_config_1 = require_ui5_config();
110138
109971
  var info_1 = require_info();
110139
- var constants_1 = require_constants5();
109972
+ var constants_1 = require_constants4();
110140
109973
  var file_1 = require_file3();
110141
109974
  var command_1 = require_command();
110142
109975
  var specificationDistTagPath = (0, path_1.join)(constants_1.fioriToolsDirectory, constants_1.FileName.SpecificationDistTags);
@@ -110255,7 +110088,7 @@ var require_access = __commonJS({
110255
110088
  var info_1 = require_info();
110256
110089
  var search_1 = require_search();
110257
110090
  var file_1 = require_file3();
110258
- var constants_1 = require_constants5();
110091
+ var constants_1 = require_constants4();
110259
110092
  var specification_1 = require_specification();
110260
110093
  var ApplicationAccessImp = class {
110261
110094
  _project;
@@ -110542,7 +110375,7 @@ var require_script = __commonJS({
110542
110375
  exports2.updatePackageScript = updatePackageScript;
110543
110376
  exports2.hasUI5CliV3 = hasUI5CliV3;
110544
110377
  var path_1 = require("path");
110545
- var constants_1 = require_constants5();
110378
+ var constants_1 = require_constants4();
110546
110379
  var file_1 = require_file3();
110547
110380
  var semver_1 = __importDefault(require_semver2());
110548
110381
  async function updatePackageScript(basePath, scriptName, script, fs4) {
@@ -110570,8 +110403,8 @@ var require_project = __commonJS({
110570
110403
  "../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
110571
110404
  "use strict";
110572
110405
  Object.defineProperty(exports2, "__esModule", { value: true });
110573
- exports2.getSpecificationPath = exports2.getSpecification = exports2.hasUI5CliV3 = exports2.updatePackageScript = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.getMtaPath = exports2.getAllUi5YamlFileNames = exports2.readUi5Yaml = exports2.getWebappPath = exports2.findRootsForPath = exports2.findCapProjectRoot = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getProjectType = exports2.getProject = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getCapI18nFolderNames = exports2.hasDependency = exports2.getNodeModulesPath = exports2.addPackageDevDependency = exports2.filterDataSourcesByType = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.toReferenceUri = exports2.readCapServiceMetadataEdmx = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapServiceName = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.deleteCapApp = exports2.clearCdsModuleCache = void 0;
110574
- exports2.refreshSpecificationDistTags = void 0;
110406
+ exports2.hasUI5CliV3 = exports2.updatePackageScript = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.getMtaPath = exports2.getMockDataPath = exports2.getMockServerConfig = exports2.getAllUi5YamlFileNames = exports2.readUi5Yaml = exports2.getWebappPath = exports2.findRootsForPath = exports2.findCapProjectRoot = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getProjectType = exports2.getProject = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getCapI18nFolderNames = exports2.hasDependency = exports2.getNodeModulesPath = exports2.addPackageDevDependency = exports2.filterDataSourcesByType = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.toReferenceUri = exports2.readCapServiceMetadataEdmx = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapServiceName = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.deleteCapApp = exports2.clearCdsModuleCache = void 0;
110407
+ exports2.refreshSpecificationDistTags = exports2.getSpecificationPath = exports2.getSpecification = void 0;
110575
110408
  var cap_1 = require_cap();
110576
110409
  Object.defineProperty(exports2, "clearCdsModuleCache", { enumerable: true, get: function() {
110577
110410
  return cap_1.clearCdsModuleCache;
@@ -110709,6 +110542,12 @@ var require_project = __commonJS({
110709
110542
  Object.defineProperty(exports2, "getAllUi5YamlFileNames", { enumerable: true, get: function() {
110710
110543
  return ui5_config_1.getAllUi5YamlFileNames;
110711
110544
  } });
110545
+ Object.defineProperty(exports2, "getMockServerConfig", { enumerable: true, get: function() {
110546
+ return ui5_config_1.getMockServerConfig;
110547
+ } });
110548
+ Object.defineProperty(exports2, "getMockDataPath", { enumerable: true, get: function() {
110549
+ return ui5_config_1.getMockDataPath;
110550
+ } });
110712
110551
  var mta_1 = require_mta();
110713
110552
  Object.defineProperty(exports2, "getMtaPath", { enumerable: true, get: function() {
110714
110553
  return mta_1.getMtaPath;
@@ -110846,7 +110685,7 @@ var require_types7 = __commonJS({
110846
110685
  });
110847
110686
 
110848
110687
  // ../../node_modules/@sap-ux/project-access/dist/library/constants.js
110849
- var require_constants9 = __commonJS({
110688
+ var require_constants8 = __commonJS({
110850
110689
  "../../node_modules/@sap-ux/project-access/dist/library/constants.js"(exports2) {
110851
110690
  "use strict";
110852
110691
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -110890,13 +110729,13 @@ var require_helpers2 = __commonJS({
110890
110729
  exports2.getManifestDesc = getManifestDesc;
110891
110730
  exports2.getManifestDependencies = getManifestDependencies;
110892
110731
  var path_1 = require("path");
110893
- var constants_1 = require_constants9();
110732
+ var constants_1 = require_constants8();
110894
110733
  var file_1 = require_file3();
110895
- var constants_2 = require_constants5();
110734
+ var constants_2 = require_constants4();
110896
110735
  var fs_1 = require("fs");
110897
110736
  var fast_xml_parser_1 = require_fxp();
110898
110737
  var i18n_1 = require_i18n2();
110899
- var i18n_2 = require_dist13();
110738
+ var i18n_2 = require_dist12();
110900
110739
  var getLibraryFromManifest = async (manifest, manifestPath, reuseLibs, projectRoot) => {
110901
110740
  var _a3, _b2;
110902
110741
  let reuseLib;
@@ -111094,7 +110933,7 @@ var require_library2 = __commonJS({
111094
110933
  });
111095
110934
 
111096
110935
  // ../../node_modules/@sap-ux/project-access/dist/index.js
111097
- var require_dist14 = __commonJS({
110936
+ var require_dist13 = __commonJS({
111098
110937
  "../../node_modules/@sap-ux/project-access/dist/index.js"(exports2) {
111099
110938
  "use strict";
111100
110939
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -111114,9 +110953,9 @@ var require_dist14 = __commonJS({
111114
110953
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
111115
110954
  };
111116
110955
  Object.defineProperty(exports2, "__esModule", { value: true });
111117
- exports2.refreshSpecificationDistTags = exports2.readUi5Yaml = exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.hasUI5CliV3 = exports2.getWebappPath = exports2.getProjectType = exports2.getProject = exports2.getNodeModulesPath = exports2.getMtaPath = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getSpecificationPath = exports2.getSpecification = exports2.getCapI18nFolderNames = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapServiceName = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.getAllUi5YamlFileNames = exports2.findRootsForPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findCapProjectRoot = exports2.findAllApps = exports2.filterDataSourcesByType = exports2.deleteCapApp = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.clearCdsModuleCache = exports2.addPackageDevDependency = exports2.getFilePaths = exports2.MinCdsVersionUi5Plugin = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
111118
- exports2.hasDependency = exports2.execNpmCommand = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.updatePackageScript = exports2.toReferenceUri = void 0;
111119
- var constants_1 = require_constants5();
110956
+ exports2.readCapServiceMetadataEdmx = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.isCapProject = exports2.hasUI5CliV3 = exports2.getWebappPath = exports2.getProjectType = exports2.getProject = exports2.getNodeModulesPath = exports2.getMockDataPath = exports2.getMockServerConfig = exports2.getMtaPath = exports2.getMinimumUI5Version = exports2.getMinUI5VersionAsArray = exports2.getMinUI5VersionFromManifest = exports2.getI18nBundles = exports2.getI18nPropertiesPaths = exports2.getSpecificationPath = exports2.getSpecification = exports2.getCapI18nFolderNames = exports2.getCdsServices = exports2.getCdsRoots = exports2.getCdsFiles = exports2.getCapProjectType = exports2.getCapServiceName = exports2.getCapModelAndServices = exports2.getCapEnvironment = exports2.getCapCustomPaths = exports2.getAppType = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.getAllUi5YamlFileNames = exports2.findRootsForPath = exports2.findProjectRoot = exports2.findFioriArtifacts = exports2.findCapProjects = exports2.findCapProjectRoot = exports2.findAllApps = exports2.filterDataSourcesByType = exports2.deleteCapApp = exports2.createProjectAccess = exports2.createApplicationAccess = exports2.clearCdsModuleCache = exports2.addPackageDevDependency = exports2.getFilePaths = exports2.MinCdsVersionUi5Plugin = exports2.FioriToolsSettings = exports2.DirName = exports2.FileName = void 0;
110957
+ exports2.hasDependency = exports2.execNpmCommand = exports2.checkCdsUi5PluginEnabled = exports2.hasMinCdsVersion = exports2.getWorkspaceInfo = exports2.updatePackageScript = exports2.toReferenceUri = exports2.refreshSpecificationDistTags = exports2.readUi5Yaml = void 0;
110958
+ var constants_1 = require_constants4();
111120
110959
  Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
111121
110960
  return constants_1.FileName;
111122
110961
  } });
@@ -111233,6 +111072,12 @@ var require_dist14 = __commonJS({
111233
111072
  Object.defineProperty(exports2, "getMtaPath", { enumerable: true, get: function() {
111234
111073
  return project_1.getMtaPath;
111235
111074
  } });
111075
+ Object.defineProperty(exports2, "getMockServerConfig", { enumerable: true, get: function() {
111076
+ return project_1.getMockServerConfig;
111077
+ } });
111078
+ Object.defineProperty(exports2, "getMockDataPath", { enumerable: true, get: function() {
111079
+ return project_1.getMockDataPath;
111080
+ } });
111236
111081
  Object.defineProperty(exports2, "getNodeModulesPath", { enumerable: true, get: function() {
111237
111082
  return project_1.getNodeModulesPath;
111238
111083
  } });
@@ -135006,7 +134851,7 @@ var require_agent = __commonJS({
135006
134851
  });
135007
134852
 
135008
134853
  // ../../node_modules/https-proxy-agent/dist/index.js
135009
- var require_dist15 = __commonJS({
134854
+ var require_dist14 = __commonJS({
135010
134855
  "../../node_modules/https-proxy-agent/dist/index.js"(exports2, module2) {
135011
134856
  "use strict";
135012
134857
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
@@ -135025,7 +134870,7 @@ var require_dist15 = __commonJS({
135025
134870
  });
135026
134871
 
135027
134872
  // ../../node_modules/@azure/core-rest-pipeline/node_modules/@tootallnate/once/dist/index.js
135028
- var require_dist16 = __commonJS({
134873
+ var require_dist15 = __commonJS({
135029
134874
  "../../node_modules/@azure/core-rest-pipeline/node_modules/@tootallnate/once/dist/index.js"(exports2) {
135030
134875
  "use strict";
135031
134876
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -135092,7 +134937,7 @@ var require_agent2 = __commonJS({
135092
134937
  var tls_1 = __importDefault(require("tls"));
135093
134938
  var url_1 = __importDefault(require("url"));
135094
134939
  var debug_1 = __importDefault(require_src());
135095
- var once_1 = __importDefault(require_dist16());
134940
+ var once_1 = __importDefault(require_dist15());
135096
134941
  var agent_base_1 = require_src8();
135097
134942
  var debug = (0, debug_1.default)("http-proxy-agent");
135098
134943
  function isHTTPS(protocol) {
@@ -135190,7 +135035,7 @@ var require_agent2 = __commonJS({
135190
135035
  });
135191
135036
 
135192
135037
  // ../../node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent/dist/index.js
135193
- var require_dist17 = __commonJS({
135038
+ var require_dist16 = __commonJS({
135194
135039
  "../../node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent/dist/index.js"(exports2, module2) {
135195
135040
  "use strict";
135196
135041
  var __importDefault = exports2 && exports2.__importDefault || function(mod) {
@@ -135345,8 +135190,8 @@ function proxyPolicy(proxySettings = getDefaultProxySettings(), options2) {
135345
135190
  var import_https_proxy_agent, import_http_proxy_agent, HTTPS_PROXY, HTTP_PROXY, ALL_PROXY, NO_PROXY, proxyPolicyName, globalNoProxyList, noProxyListLoaded, globalBypassedMap;
135346
135191
  var init_proxyPolicy = __esm({
135347
135192
  "../../node_modules/@azure/core-rest-pipeline/dist-esm/src/policies/proxyPolicy.js"() {
135348
- import_https_proxy_agent = __toESM(require_dist15());
135349
- import_http_proxy_agent = __toESM(require_dist17());
135193
+ import_https_proxy_agent = __toESM(require_dist14());
135194
+ import_http_proxy_agent = __toESM(require_dist16());
135350
135195
  init_log2();
135351
135196
  HTTPS_PROXY = "HTTPS_PROXY";
135352
135197
  HTTP_PROXY = "HTTP_PROXY";
@@ -139681,7 +139526,7 @@ var require_package8 = __commonJS({
139681
139526
  "../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
139682
139527
  module2.exports = {
139683
139528
  name: "@sap-ux/telemetry",
139684
- version: "0.6.3",
139529
+ version: "0.6.6",
139685
139530
  description: "Library for sending usage telemetry data",
139686
139531
  repository: {
139687
139532
  type: "git",
@@ -139699,10 +139544,10 @@ var require_package8 = __commonJS({
139699
139544
  axios: "1.8.2",
139700
139545
  "performance-now": "2.1.0",
139701
139546
  yaml: "2.3.3",
139702
- "@sap-ux/store": "1.1.0",
139703
- "@sap-ux/project-access": "1.30.2",
139547
+ "@sap-ux/store": "1.1.1",
139548
+ "@sap-ux/project-access": "1.30.4",
139704
139549
  "@sap-ux/btp-utils": "1.1.0",
139705
- "@sap-ux/ui5-config": "0.28.2",
139550
+ "@sap-ux/ui5-config": "0.28.3",
139706
139551
  "@sap-ux/logger": "0.7.0"
139707
139552
  },
139708
139553
  devDependencies: {
@@ -147186,7 +147031,7 @@ var require_public_api2 = __commonJS({
147186
147031
  });
147187
147032
 
147188
147033
  // ../../node_modules/@sap-ux/telemetry/node_modules/yaml/dist/index.js
147189
- var require_dist18 = __commonJS({
147034
+ var require_dist17 = __commonJS({
147190
147035
  "../../node_modules/@sap-ux/telemetry/node_modules/yaml/dist/index.js"(exports2) {
147191
147036
  "use strict";
147192
147037
  var composer = require_composer2();
@@ -147310,7 +147155,7 @@ var require_data_processor = __commonJS({
147310
147155
  var axios_1 = __importDefault(require_axios());
147311
147156
  var fs_1 = __importDefault(require("fs"));
147312
147157
  var path_1 = __importDefault(require("path"));
147313
- var yaml_1 = __importDefault(require_dist18());
147158
+ var yaml_1 = __importDefault(require_dist17());
147314
147159
  var info_1 = require_info();
147315
147160
  var search_1 = require_search();
147316
147161
  var cap_1 = require_cap();
@@ -147318,7 +147163,7 @@ var require_data_processor = __commonJS({
147318
147163
  var child_process_1 = require("child_process");
147319
147164
  var os_1 = __importDefault(require("os"));
147320
147165
  var config_state_1 = require_config_state2();
147321
- var project_access_1 = require_dist14();
147166
+ var project_access_1 = require_dist13();
147322
147167
  async function processToolsSuiteTelemetry(telemetryHelperProperties) {
147323
147168
  const commonProperties = await getCommonProperties();
147324
147169
  let appProperties = {};
@@ -147720,7 +147565,7 @@ var require_reporting = __commonJS({
147720
147565
  });
147721
147566
 
147722
147567
  // ../../node_modules/@sap-ux/store/dist/constants.js
147723
- var require_constants10 = __commonJS({
147568
+ var require_constants9 = __commonJS({
147724
147569
  "../../node_modules/@sap-ux/store/dist/constants.js"(exports2) {
147725
147570
  "use strict";
147726
147571
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -149784,9 +149629,9 @@ var init_i18next = __esm({
149784
149629
  }
149785
149630
  });
149786
149631
 
149787
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/utils.js
149632
+ // ../../node_modules/i18next-fs-backend/cjs/utils.js
149788
149633
  var require_utils15 = __commonJS({
149789
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/utils.js"(exports2) {
149634
+ "../../node_modules/i18next-fs-backend/cjs/utils.js"(exports2) {
149790
149635
  "use strict";
149791
149636
  Object.defineProperty(exports2, "__esModule", {
149792
149637
  value: true
@@ -149859,9 +149704,9 @@ var require_utils15 = __commonJS({
149859
149704
  }
149860
149705
  });
149861
149706
 
149862
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/formats/json5.js
149707
+ // ../../node_modules/i18next-fs-backend/cjs/formats/json5.js
149863
149708
  var require_json52 = __commonJS({
149864
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/formats/json5.js"(exports2, module2) {
149709
+ "../../node_modules/i18next-fs-backend/cjs/formats/json5.js"(exports2, module2) {
149865
149710
  "use strict";
149866
149711
  Object.defineProperty(exports2, "__esModule", {
149867
149712
  value: true
@@ -151016,9 +150861,9 @@ var require_json52 = __commonJS({
151016
150861
  }
151017
150862
  });
151018
150863
 
151019
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/formats/yaml.js
150864
+ // ../../node_modules/i18next-fs-backend/cjs/formats/yaml.js
151020
150865
  var require_yaml = __commonJS({
151021
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/formats/yaml.js"(exports2) {
150866
+ "../../node_modules/i18next-fs-backend/cjs/formats/yaml.js"(exports2) {
151022
150867
  "use strict";
151023
150868
  Object.defineProperty(exports2, "__esModule", {
151024
150869
  value: true
@@ -153580,9 +153425,9 @@ var require_yaml = __commonJS({
153580
153425
  }
153581
153426
  });
153582
153427
 
153583
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/fs.js
153428
+ // ../../node_modules/i18next-fs-backend/cjs/fs.js
153584
153429
  var require_fs6 = __commonJS({
153585
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/fs.js"(exports2, module2) {
153430
+ "../../node_modules/i18next-fs-backend/cjs/fs.js"(exports2, module2) {
153586
153431
  if (typeof require !== "undefined") {
153587
153432
  f = require("fs");
153588
153433
  if (f.default) f = f.default;
@@ -153593,9 +153438,9 @@ var require_fs6 = __commonJS({
153593
153438
  }
153594
153439
  });
153595
153440
 
153596
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/path.js
153441
+ // ../../node_modules/i18next-fs-backend/cjs/path.js
153597
153442
  var require_path3 = __commonJS({
153598
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/path.js"(exports2, module2) {
153443
+ "../../node_modules/i18next-fs-backend/cjs/path.js"(exports2, module2) {
153599
153444
  if (typeof require !== "undefined") {
153600
153445
  path4 = require("path");
153601
153446
  if (path4.default) path4 = path4.default;
@@ -153606,9 +153451,9 @@ var require_path3 = __commonJS({
153606
153451
  }
153607
153452
  });
153608
153453
 
153609
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/extname.js
153454
+ // ../../node_modules/i18next-fs-backend/cjs/extname.js
153610
153455
  var require_extname = __commonJS({
153611
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/extname.js"(exports2, module2) {
153456
+ "../../node_modules/i18next-fs-backend/cjs/extname.js"(exports2, module2) {
153612
153457
  "use strict";
153613
153458
  Object.defineProperty(exports2, "__esModule", {
153614
153459
  value: true
@@ -153623,9 +153468,9 @@ var require_extname = __commonJS({
153623
153468
  }
153624
153469
  });
153625
153470
 
153626
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/readFile.js
153471
+ // ../../node_modules/i18next-fs-backend/cjs/readFile.js
153627
153472
  var require_readFile = __commonJS({
153628
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/readFile.js"(exports, module) {
153473
+ "../../node_modules/i18next-fs-backend/cjs/readFile.js"(exports, module) {
153629
153474
  "use strict";
153630
153475
  function _typeof(obj) {
153631
153476
  "@babel/helpers - typeof";
@@ -153842,9 +153687,9 @@ var require_readFile = __commonJS({
153842
153687
  }
153843
153688
  });
153844
153689
 
153845
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/writeFile.js
153690
+ // ../../node_modules/i18next-fs-backend/cjs/writeFile.js
153846
153691
  var require_writeFile = __commonJS({
153847
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/writeFile.js"(exports2, module2) {
153692
+ "../../node_modules/i18next-fs-backend/cjs/writeFile.js"(exports2, module2) {
153848
153693
  "use strict";
153849
153694
  function _typeof3(obj) {
153850
153695
  "@babel/helpers - typeof";
@@ -154059,9 +153904,9 @@ var require_writeFile = __commonJS({
154059
153904
  }
154060
153905
  });
154061
153906
 
154062
- // ../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/index.js
153907
+ // ../../node_modules/i18next-fs-backend/cjs/index.js
154063
153908
  var require_cjs2 = __commonJS({
154064
- "../../node_modules/@sap-ux/store/node_modules/i18next-fs-backend/cjs/index.js"(exports2, module2) {
153909
+ "../../node_modules/i18next-fs-backend/cjs/index.js"(exports2, module2) {
154065
153910
  "use strict";
154066
153911
  Object.defineProperty(exports2, "__esModule", {
154067
153912
  value: true
@@ -154676,6 +154521,26 @@ var require_app_studio2 = __commonJS({
154676
154521
  }
154677
154522
  });
154678
154523
 
154524
+ // ../../node_modules/@sap-ux/store/dist/utils/backend.js
154525
+ var require_backend = __commonJS({
154526
+ "../../node_modules/@sap-ux/store/dist/utils/backend.js"(exports2) {
154527
+ "use strict";
154528
+ Object.defineProperty(exports2, "__esModule", { value: true });
154529
+ exports2.getBackendSystemType = getBackendSystemType;
154530
+ function getBackendSystemType(system) {
154531
+ let backendSystemType;
154532
+ if (system.authenticationType === "reentranceTicket") {
154533
+ backendSystemType = "S4HC";
154534
+ } else if (system.serviceKeys) {
154535
+ backendSystemType = "BTP";
154536
+ } else if (system.authenticationType === "basic" || system.username) {
154537
+ backendSystemType = "OnPrem";
154538
+ }
154539
+ return backendSystemType;
154540
+ }
154541
+ }
154542
+ });
154543
+
154679
154544
  // ../../node_modules/@sap-ux/store/dist/utils/index.js
154680
154545
  var require_utils16 = __commonJS({
154681
154546
  "../../node_modules/@sap-ux/store/dist/utils/index.js"(exports2) {
@@ -154731,6 +154596,7 @@ var require_utils16 = __commonJS({
154731
154596
  };
154732
154597
  exports2.getFioriToolsDirectory = getFioriToolsDirectory;
154733
154598
  __exportStar(require_app_studio2(), exports2);
154599
+ __exportStar(require_backend(), exports2);
154734
154600
  }
154735
154601
  });
154736
154602
 
@@ -154878,6 +154744,23 @@ var require_filesystem = __commonJS({
154878
154744
  this.writeToFile(name2, entities);
154879
154745
  return Promise.resolve(entity);
154880
154746
  }
154747
+ async partialUpdate({ entityName: entityName2, id, entity }) {
154748
+ if (!entity || !Object.keys(entity).length) {
154749
+ this.logger.debug("partialUpdate: No properties specified for update");
154750
+ return void 0;
154751
+ }
154752
+ const existingSystem = await this.read({ entityName: entityName2, id });
154753
+ if (!existingSystem) {
154754
+ this.logger.debug(`partialUpdate: Entity with id ${id} does not exist in ${entityName2}. Cannot update.`);
154755
+ return void 0;
154756
+ }
154757
+ const updatedEntity = this.mergeProperties(entity, existingSystem);
154758
+ return this.write({ entityName: entityName2, id, entity: updatedEntity });
154759
+ }
154760
+ mergeProperties(update, existingSystem) {
154761
+ const updatedEntity = { ...existingSystem, ...update };
154762
+ return { ...updatedEntity };
154763
+ }
154881
154764
  async del({ entityName: entityName2, id }) {
154882
154765
  const name2 = toPersistenceName(entityName2);
154883
154766
  if (!name2) {
@@ -156104,12 +155987,15 @@ var require_hybrid = __commonJS({
156104
155987
  return void 0;
156105
155988
  }
156106
155989
  }
156107
- async getAll({ entityName: entityName2 }) {
156108
- return Object.values(await this.readAll({ entityName: entityName2 }));
155990
+ async getAll({ entityName: entityName2, includeSensitiveData = true }) {
155991
+ return Object.values(await this.readAll({ entityName: entityName2, includeSensitiveData }));
156109
155992
  }
156110
- async readAll({ entityName: entityName2 }) {
155993
+ async readAll({ entityName: entityName2, includeSensitiveData = true }) {
156111
155994
  const result2 = {};
156112
155995
  const entitiesFs = await this.filesystem.readAll({ entityName: entityName2 }) || {};
155996
+ if (!includeSensitiveData) {
155997
+ return entitiesFs;
155998
+ }
156113
155999
  const entitiesInSecureStore = await this.secureStore.getAll(getFullyQualifiedServiceName(entityName2)) || {};
156114
156000
  for (const key of /* @__PURE__ */ new Set([...Object.keys(entitiesFs), ...Object.keys(entitiesInSecureStore)])) {
156115
156001
  const entity = { ...entitiesFs[key], ...entitiesInSecureStore[key] };
@@ -156151,6 +156037,13 @@ var require_hybrid = __commonJS({
156151
156037
  this.logger.debug(`hybrid/del - delete result for id [${id}] in the secure store: ${deletedInSecureStore}`);
156152
156038
  return deletedinFs || deletedInSecureStore;
156153
156039
  }
156040
+ async partialUpdate({ entityName: entityName2, id, entity }) {
156041
+ return this.filesystem.partialUpdate({
156042
+ entityName: entityName2,
156043
+ id,
156044
+ entity
156045
+ });
156046
+ }
156154
156047
  };
156155
156048
  function getHybridStore(logger3, options2) {
156156
156049
  return new HybridStore(logger3, options2);
@@ -156185,15 +156078,17 @@ var require_backend_system = __commonJS({
156185
156078
  url;
156186
156079
  client;
156187
156080
  userDisplayName;
156081
+ systemType;
156188
156082
  serviceKeys;
156189
156083
  refreshToken;
156190
156084
  username;
156191
156085
  password;
156192
156086
  authenticationType;
156193
- constructor({ name: name2, url: url2, client, serviceKeys, refreshToken, username, password, userDisplayName, authenticationType }) {
156087
+ constructor({ name: name2, url: url2, client, systemType, serviceKeys, refreshToken, username, password, userDisplayName, authenticationType }) {
156194
156088
  this.name = name2;
156195
156089
  this.url = url2;
156196
156090
  this.client = client;
156091
+ this.systemType = systemType;
156197
156092
  this.serviceKeys = serviceKeys;
156198
156093
  this.refreshToken = refreshToken;
156199
156094
  this.username = username;
@@ -156219,6 +156114,10 @@ var require_backend_system = __commonJS({
156219
156114
  decorators_1.serializable,
156220
156115
  __metadata("design:type", String)
156221
156116
  ], BackendSystem.prototype, "userDisplayName", void 0);
156117
+ __decorate([
156118
+ decorators_1.serializable,
156119
+ __metadata("design:type", String)
156120
+ ], BackendSystem.prototype, "systemType", void 0);
156222
156121
  __decorate([
156223
156122
  decorators_1.sensitiveData,
156224
156123
  __metadata("design:type", Object)
@@ -156258,7 +156157,7 @@ var require_backend_system = __commonJS({
156258
156157
  });
156259
156158
 
156260
156159
  // ../../node_modules/@sap-ux/store/dist/data-provider/constants.js
156261
- var require_constants11 = __commonJS({
156160
+ var require_constants10 = __commonJS({
156262
156161
  "../../node_modules/@sap-ux/store/dist/data-provider/constants.js"(exports2) {
156263
156162
  "use strict";
156264
156163
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -156281,7 +156180,8 @@ var require_backend_system2 = __commonJS({
156281
156180
  exports2.SystemDataProvider = void 0;
156282
156181
  var hybrid_1 = require_hybrid();
156283
156182
  var backend_system_1 = require_backend_system();
156284
- var constants_1 = require_constants11();
156183
+ var constants_1 = require_constants10();
156184
+ var utils_1 = require_utils16();
156285
156185
  var SystemDataProvider = class {
156286
156186
  dataAccessor;
156287
156187
  entityName = constants_1.Entities.BackendSystem;
@@ -156312,9 +156212,18 @@ var require_backend_system2 = __commonJS({
156312
156212
  id: backend_system_1.BackendSystemKey.from(entity).getId()
156313
156213
  });
156314
156214
  }
156315
- async getAll() {
156215
+ async getAll({ includeSensitiveData = true } = {}) {
156316
156216
  var _a3;
156317
- const systems = await this.dataAccessor.readAll({ entityName: this.entityName });
156217
+ let systems = await this.dataAccessor.readAll({ entityName: this.entityName, includeSensitiveData });
156218
+ if (!includeSensitiveData) {
156219
+ const allMigrated = await this.ensureSystemTypesExist(systems);
156220
+ if (!allMigrated) {
156221
+ systems = await this.dataAccessor.readAll({
156222
+ entityName: this.entityName,
156223
+ includeSensitiveData
156224
+ });
156225
+ }
156226
+ }
156318
156227
  for (const id of Object.keys(systems)) {
156319
156228
  const system = systems[id];
156320
156229
  if (!((_a3 = system == null ? void 0 : system.url) == null ? void 0 : _a3.trim())) {
@@ -156324,6 +156233,34 @@ var require_backend_system2 = __commonJS({
156324
156233
  }
156325
156234
  return Object.values(systems);
156326
156235
  }
156236
+ async ensureSystemTypesExist(systems) {
156237
+ let allSystemsHaveType = true;
156238
+ for (const [id, system] of Object.entries(systems)) {
156239
+ if (!(system == null ? void 0 : system.systemType)) {
156240
+ allSystemsHaveType = false;
156241
+ await this.assignSystemType(id);
156242
+ }
156243
+ }
156244
+ return allSystemsHaveType;
156245
+ }
156246
+ /**
156247
+ * Temporary migration function to infer and assign a systemType to a system by ID.
156248
+ *
156249
+ * @param systemId ID of the system to migrate
156250
+ */
156251
+ async assignSystemType(systemId) {
156252
+ const system = await this.dataAccessor.read({ entityName: this.entityName, id: systemId });
156253
+ if (system) {
156254
+ const inferredType = (0, utils_1.getBackendSystemType)(system);
156255
+ if (inferredType) {
156256
+ await this.dataAccessor.partialUpdate({
156257
+ entityName: this.entityName,
156258
+ id: systemId,
156259
+ entity: { systemType: inferredType }
156260
+ });
156261
+ }
156262
+ }
156263
+ }
156327
156264
  };
156328
156265
  exports2.SystemDataProvider = SystemDataProvider;
156329
156266
  }
@@ -156380,8 +156317,8 @@ var require_backend_system3 = __commonJS({
156380
156317
  async delete(entity) {
156381
156318
  return this.dataProvider.delete(entity);
156382
156319
  }
156383
- async getAll() {
156384
- return this.dataProvider.getAll();
156320
+ async getAll(options2) {
156321
+ return this.dataProvider.getAll(options2);
156385
156322
  }
156386
156323
  };
156387
156324
  exports2.SystemService = SystemService;
@@ -156435,7 +156372,7 @@ var require_telemetry_setting2 = __commonJS({
156435
156372
  exports2.TelemetryDataProvider = void 0;
156436
156373
  var filesystem_1 = require_filesystem();
156437
156374
  var telemetry_setting_1 = require_telemetry_setting();
156438
- var constants_1 = require_constants11();
156375
+ var constants_1 = require_constants10();
156439
156376
  var TelemetryDataProvider = class {
156440
156377
  dataAccessor;
156441
156378
  entityName = constants_1.Entities.TelemetrySetting;
@@ -156550,7 +156487,7 @@ var require_api_hub2 = __commonJS({
156550
156487
  Object.defineProperty(exports2, "__esModule", { value: true });
156551
156488
  exports2.ApiHubSettingsProvider = void 0;
156552
156489
  var hybrid_1 = require_hybrid();
156553
- var constants_1 = require_constants11();
156490
+ var constants_1 = require_constants10();
156554
156491
  var api_hub_1 = require_api_hub();
156555
156492
  var ApiHubSettingsProvider = class {
156556
156493
  dataAccessor;
@@ -156747,7 +156684,7 @@ var require_data_access = __commonJS({
156747
156684
  });
156748
156685
 
156749
156686
  // ../../node_modules/@sap-ux/store/dist/index.js
156750
- var require_dist19 = __commonJS({
156687
+ var require_dist18 = __commonJS({
156751
156688
  "../../node_modules/@sap-ux/store/dist/index.js"(exports2) {
156752
156689
  "use strict";
156753
156690
  var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -156767,9 +156704,9 @@ var require_dist19 = __commonJS({
156767
156704
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
156768
156705
  };
156769
156706
  Object.defineProperty(exports2, "__esModule", { value: true });
156770
- exports2.FioriToolsSettings = exports2.getFioriToolsDirectory = exports2.Entity = exports2.getFilesystemWatcherFor = void 0;
156707
+ exports2.FioriToolsSettings = exports2.getFioriToolsDirectory = exports2.getBackendSystemType = exports2.Entity = exports2.getFilesystemWatcherFor = void 0;
156771
156708
  exports2.getService = getService2;
156772
- var constants_1 = require_constants10();
156709
+ var constants_1 = require_constants9();
156773
156710
  Object.defineProperty(exports2, "Entity", { enumerable: true, get: function() {
156774
156711
  return constants_1.Entity;
156775
156712
  } });
@@ -156801,11 +156738,15 @@ var require_dist19 = __commonJS({
156801
156738
  return data_access_1.getFilesystemWatcherFor;
156802
156739
  } });
156803
156740
  var utils_1 = require_utils16();
156741
+ Object.defineProperty(exports2, "getBackendSystemType", { enumerable: true, get: function() {
156742
+ return utils_1.getBackendSystemType;
156743
+ } });
156744
+ var utils_2 = require_utils16();
156804
156745
  Object.defineProperty(exports2, "getFioriToolsDirectory", { enumerable: true, get: function() {
156805
- return utils_1.getFioriToolsDirectory;
156746
+ return utils_2.getFioriToolsDirectory;
156806
156747
  } });
156807
156748
  Object.defineProperty(exports2, "FioriToolsSettings", { enumerable: true, get: function() {
156808
- return utils_1.FioriToolsSettings;
156749
+ return utils_2.FioriToolsSettings;
156809
156750
  } });
156810
156751
  }
156811
156752
  });
@@ -156822,7 +156763,7 @@ var require_telemetry_settings = __commonJS({
156822
156763
  exports2.setEnableTelemetry = setEnableTelemetry;
156823
156764
  exports2.getTelemetrySetting = getTelemetrySetting;
156824
156765
  var reporting_1 = require_reporting();
156825
- var store_1 = require_dist19();
156766
+ var store_1 = require_dist18();
156826
156767
  var btp_utils_1 = require_dist6();
156827
156768
  var os_1 = __importDefault(require("os"));
156828
156769
  var path_1 = __importDefault(require("path"));
@@ -157528,7 +157469,7 @@ var require_decorator = __commonJS({
157528
157469
  });
157529
157470
 
157530
157471
  // ../../node_modules/@sap-ux/telemetry/dist/index.js
157531
- var require_dist20 = __commonJS({
157472
+ var require_dist19 = __commonJS({
157532
157473
  "../../node_modules/@sap-ux/telemetry/dist/index.js"(exports2) {
157533
157474
  "use strict";
157534
157475
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -157599,7 +157540,7 @@ var require_dist20 = __commonJS({
157599
157540
  });
157600
157541
 
157601
157542
  // ../../node_modules/@sap-ux/ui5-info/dist/constants.js
157602
- var require_constants12 = __commonJS({
157543
+ var require_constants11 = __commonJS({
157603
157544
  "../../node_modules/@sap-ux/ui5-info/dist/constants.js"(exports2) {
157604
157545
  "use strict";
157605
157546
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -157666,7 +157607,7 @@ var require_ui5_version_fallback = __commonJS({
157666
157607
  Object.defineProperty(exports2, "__esModule", { value: true });
157667
157608
  exports2.supportedUi5VersionFallbacks = exports2.defaultUi5Versions = exports2.ui5VersionFallbacks = exports2.supportState = void 0;
157668
157609
  var semver_1 = require_semver2();
157669
- var constants_1 = require_constants12();
157610
+ var constants_1 = require_constants11();
157670
157611
  exports2.supportState = {
157671
157612
  maintenance: "Maintenance",
157672
157613
  outOfMaintenance: "Out of maintenance",
@@ -157674,12 +157615,16 @@ var require_ui5_version_fallback = __commonJS({
157674
157615
  };
157675
157616
  exports2.ui5VersionFallbacks = [
157676
157617
  {
157677
- version: "1.135.*",
157618
+ version: "1.136.*",
157678
157619
  support: exports2.supportState.maintenance
157679
157620
  },
157621
+ {
157622
+ version: "1.135.*",
157623
+ support: exports2.supportState.outOfMaintenance
157624
+ },
157680
157625
  {
157681
157626
  version: "1.134.*",
157682
- support: exports2.supportState.maintenance
157627
+ support: exports2.supportState.outOfMaintenance
157683
157628
  },
157684
157629
  {
157685
157630
  version: "1.133.*",
@@ -157699,7 +157644,7 @@ var require_ui5_version_fallback = __commonJS({
157699
157644
  },
157700
157645
  {
157701
157646
  version: "1.129.*",
157702
- support: exports2.supportState.maintenance
157647
+ support: exports2.supportState.outOfMaintenance
157703
157648
  },
157704
157649
  {
157705
157650
  version: "1.128.*",
@@ -157707,11 +157652,11 @@ var require_ui5_version_fallback = __commonJS({
157707
157652
  },
157708
157653
  {
157709
157654
  version: "1.127.*",
157710
- support: exports2.supportState.maintenance
157655
+ support: exports2.supportState.outOfMaintenance
157711
157656
  },
157712
157657
  {
157713
157658
  version: "1.126.*",
157714
- support: exports2.supportState.maintenance
157659
+ support: exports2.supportState.outOfMaintenance
157715
157660
  },
157716
157661
  {
157717
157662
  version: "1.125.*",
@@ -157719,7 +157664,7 @@ var require_ui5_version_fallback = __commonJS({
157719
157664
  },
157720
157665
  {
157721
157666
  version: "1.124.*",
157722
- support: exports2.supportState.maintenance
157667
+ support: exports2.supportState.outOfMaintenance
157723
157668
  },
157724
157669
  {
157725
157670
  version: "1.123.*",
@@ -157731,7 +157676,7 @@ var require_ui5_version_fallback = __commonJS({
157731
157676
  },
157732
157677
  {
157733
157678
  version: "1.121.*",
157734
- support: exports2.supportState.maintenance
157679
+ support: exports2.supportState.outOfMaintenance
157735
157680
  },
157736
157681
  {
157737
157682
  version: "1.120.*",
@@ -158086,7 +158031,7 @@ var require_ui5_version_info = __commonJS({
158086
158031
  var axios_1 = __importDefault(require_axios());
158087
158032
  var logger_1 = require_dist5();
158088
158033
  var ui5_version_fallback_1 = require_ui5_version_fallback();
158089
- var constants_1 = require_constants12();
158034
+ var constants_1 = require_constants11();
158090
158035
  var latestUI5Version;
158091
158036
  var passThroughStrings = /* @__PURE__ */ new Set(["snapshot", "snapshot-untested", constants_1.latestVersionString]);
158092
158037
  var ui5VersionStrCmp = (a, b) => {
@@ -158153,25 +158098,10 @@ var require_ui5_version_info = __commonJS({
158153
158098
  }
158154
158099
  return { versions: versionStrings, support: supportInfo };
158155
158100
  }
158156
- var retrieveUI5VersionsCache = async (type2, useCache = false, snapshotUrl) => {
158101
+ var retrieveUI5VersionsCache = async (type2, useCache = true, snapshotUrl) => {
158157
158102
  let versions = [];
158158
158103
  let support = [];
158159
- if (!useCache) {
158160
- switch (type2) {
158161
- case "officialVersions":
158162
- case "support":
158163
- ({ versions, support } = await parseUI5VersionsAndSupport());
158164
- return type2 === "officialVersions" ? versions : support;
158165
- case "snapshotsVersions":
158166
- if (snapshotUrl) {
158167
- ({ versions } = await parseUI5VersionsAndSupport(snapshotUrl));
158168
- return versions;
158169
- }
158170
- break;
158171
- default:
158172
- }
158173
- }
158174
- if (constants_1.ui5VersionsCache[type2].length === 0) {
158104
+ if (constants_1.ui5VersionsCache[type2].length === 0 || !useCache) {
158175
158105
  switch (type2) {
158176
158106
  case "officialVersions":
158177
158107
  case "support":
@@ -158188,7 +158118,10 @@ var require_ui5_version_info = __commonJS({
158188
158118
  default:
158189
158119
  }
158190
158120
  }
158191
- return constants_1.ui5VersionsCache[type2];
158121
+ if (useCache) {
158122
+ return constants_1.ui5VersionsCache[type2];
158123
+ }
158124
+ return type2 === "support" ? support : versions;
158192
158125
  };
158193
158126
  async function retrieveUI5Versions(filterOptions, logger3 = new logger_1.ToolsLogger()) {
158194
158127
  let officialVersions = [];
@@ -158293,16 +158226,10 @@ var require_ui5_version_info = __commonJS({
158293
158226
  return ui5Version;
158294
158227
  });
158295
158228
  }
158296
- async function getLatestUI5Version() {
158229
+ async function getLatestUI5Version(useCache = true) {
158297
158230
  var _a3;
158298
- let version;
158299
- try {
158300
- const ui5Versions = await requestUI5Versions();
158301
- version = (_a3 = ui5Versions == null ? void 0 : ui5Versions.latest) == null ? void 0 : _a3.version;
158302
- } catch {
158303
- version = void 0;
158304
- }
158305
- return version;
158231
+ const ui5Versions = await getUI5Versions2({ useCache });
158232
+ return (_a3 = ui5Versions == null ? void 0 : ui5Versions[0]) == null ? void 0 : _a3.version;
158306
158233
  }
158307
158234
  }
158308
158235
  });
@@ -158315,8 +158242,9 @@ var require_ui5_theme_info = __commonJS({
158315
158242
  exports2.ui5Themes = void 0;
158316
158243
  exports2.getDefaultUI5Theme = getDefaultUI5Theme;
158317
158244
  exports2.getUi5Themes = getUi5Themes;
158318
- var constants_1 = require_constants12();
158245
+ var constants_1 = require_constants11();
158319
158246
  var semver_1 = require_semver2();
158247
+ var ui5_version_info_1 = require_ui5_version_info();
158320
158248
  var MIN_UI5_VER_DARK_THEME = "1.72.0";
158321
158249
  var MIN_UI5_VER_HORIZON_THEME = "1.102.0";
158322
158250
  var MAX_UI5_VER_BELIZE_THEME = "1.136.0";
@@ -158377,9 +158305,9 @@ var require_ui5_theme_info = __commonJS({
158377
158305
  const isSupportedUntil = theme.supportUntil ? (0, semver_1.lt)(cleanSemVer, theme.supportUntil) : true;
158378
158306
  return isSupportedSince && isSupportedUntil;
158379
158307
  }
158380
- function getUi5Themes(ui5Version = constants_1.defaultVersion) {
158381
- const ui5VersionSince = ui5Version.replace("snapshot-", "");
158382
- const cleanSemVer = (0, semver_1.coerce)(ui5VersionSince);
158308
+ async function getUi5Themes(ui5Version = constants_1.defaultVersion) {
158309
+ const resolvedUi5Version = ui5Version === constants_1.latestVersionString ? await (0, ui5_version_info_1.getLatestUI5Version)(true) : ui5Version.replace("snapshot-", "");
158310
+ const cleanSemVer = (0, semver_1.coerce)(resolvedUi5Version);
158383
158311
  if (!cleanSemVer) {
158384
158312
  return Object.values(exports2.ui5Themes);
158385
158313
  }
@@ -158433,12 +158361,12 @@ var require_ui5_version_backend = __commonJS({
158433
158361
  });
158434
158362
 
158435
158363
  // ../../node_modules/@sap-ux/ui5-info/dist/index.js
158436
- var require_dist21 = __commonJS({
158364
+ var require_dist20 = __commonJS({
158437
158365
  "../../node_modules/@sap-ux/ui5-info/dist/index.js"(exports2) {
158438
158366
  "use strict";
158439
158367
  Object.defineProperty(exports2, "__esModule", { value: true });
158440
158368
  exports2.getSapSystemUI5Version = exports2.ui5Themes = exports2.getUi5Themes = exports2.getDefaultUI5Theme = exports2.supportedUi5VersionFallbacks = exports2.getLatestUI5Version = exports2.getUI5Versions = exports2.defaultMinUi5Version = exports2.ui5VersionRequestInfo = exports2.latestVersionString = exports2.minUI5VersionForLocalDev = exports2.minUi5VersionV4Template = exports2.minUi5VersionSupportingCodeAssist = exports2.defaultVersion = void 0;
158441
- var constants_1 = require_constants12();
158369
+ var constants_1 = require_constants11();
158442
158370
  Object.defineProperty(exports2, "defaultVersion", { enumerable: true, get: function() {
158443
158371
  return constants_1.defaultVersion;
158444
158372
  } });
@@ -158488,6 +158416,187 @@ var require_dist21 = __commonJS({
158488
158416
  }
158489
158417
  });
158490
158418
 
158419
+ // ../../node_modules/@sap-ux/feature-toggle/dist/constants.js
158420
+ var require_constants12 = __commonJS({
158421
+ "../../node_modules/@sap-ux/feature-toggle/dist/constants.js"(exports2) {
158422
+ "use strict";
158423
+ Object.defineProperty(exports2, "__esModule", { value: true });
158424
+ exports2.ExperimentalFeatures = exports2.FeatureToggleKey = exports2.tokenToggleGuid = exports2.extensionConfigKeys = void 0;
158425
+ exports2.extensionConfigKeys = {
158426
+ AnnotationModeler: "sap.ux.annotationModeler",
158427
+ AppGenerator: "sap.ux.appGenerator",
158428
+ ApplicationModeler: "sap.ux.applicationModeler",
158429
+ Help: "sap.ux.help",
158430
+ ServiceModeler: "sap.ux.serviceModeler",
158431
+ Internal: "sap.ux.internal"
158432
+ };
158433
+ exports2.tokenToggleGuid = {
158434
+ "sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
158435
+ "sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3",
158436
+ "sap.ux.help.testBetaFeatures.enableFioriAI": "165a0e31-35ea-4bee-8d47-b8593435a82d",
158437
+ "sap.ux.help.testBetaFeatures.enableFioriAIJoule": "165a0e31-35ea-4bee-8d47-b8593435a82e",
158438
+ "sap.ux.help.testBetaFeatures.enableFioriAIVsCode": "165a0e31-35ea-4bee-8d47-b8593435a82f",
158439
+ "sap.ux.help.testBetaFeatures.enableFioriAIAppModeler": "165a0e31-35ea-4bee-8d47-b8593435a82g",
158440
+ "sap.ux.help.testBetaFeatures.enableFioriAIRapGeneration": "165a0e31-35ea-4bee-8d47-b8593435a82h",
158441
+ "sap.ux.applicationModeler.testBetaFeatures.manifestEditor": true,
158442
+ "sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI": true
158443
+ };
158444
+ exports2.FeatureToggleKey = "testBetaFeatures";
158445
+ exports2.ExperimentalFeatures = "sap.ux.applicationModeler.enableExperimentalFeatures";
158446
+ }
158447
+ });
158448
+
158449
+ // ../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js
158450
+ var require_featureToggle = __commonJS({
158451
+ "../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js"(exports2) {
158452
+ "use strict";
158453
+ Object.defineProperty(exports2, "__esModule", { value: true });
158454
+ exports2.FeatureToggleAccess = void 0;
158455
+ exports2.enableFeature = enableFeature;
158456
+ exports2.isFeatureEnabled = isFeatureEnabled;
158457
+ exports2.isInternalFeaturesSettingEnabled = isInternalFeaturesSettingEnabled2;
158458
+ var constants_1 = require_constants12();
158459
+ var FeatureToggleAccess = class _FeatureToggleAccess {
158460
+ static vscode = getVSCodeInstance();
158461
+ /**
158462
+ * Retrieves the toggle state of the specified feature.
158463
+ *
158464
+ * @param feature the feature to retrieve the toggle state for.
158465
+ * @returns the toggle state of the feature.
158466
+ */
158467
+ static getFeatureToggle(feature) {
158468
+ var _a3;
158469
+ let toggleConfigValue;
158470
+ if ((feature.includes(constants_1.FeatureToggleKey) || feature === constants_1.ExperimentalFeatures) && _FeatureToggleAccess.vscode) {
158471
+ const toggleKey = feature.slice(0, feature.lastIndexOf("."));
158472
+ const toggleId = feature.slice(feature.lastIndexOf(".") + 1, feature.length);
158473
+ toggleConfigValue = (_a3 = _FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)) == null ? void 0 : _a3.get(toggleId);
158474
+ } else {
158475
+ toggleConfigValue = false;
158476
+ }
158477
+ if (process.env.TOOLSUITE_FEATURES) {
158478
+ const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
158479
+ toggleConfigValue = envFeatures.includes(feature) ? true : toggleConfigValue;
158480
+ }
158481
+ if (constants_1.tokenToggleGuid[feature]) {
158482
+ if (constants_1.tokenToggleGuid[feature] === toggleConfigValue) {
158483
+ toggleConfigValue = true;
158484
+ } else {
158485
+ toggleConfigValue = false;
158486
+ }
158487
+ }
158488
+ const featureToggle = {
158489
+ feature,
158490
+ isEnabled: toggleConfigValue === true ? toggleConfigValue : false
158491
+ };
158492
+ return featureToggle;
158493
+ }
158494
+ /**
158495
+ * Retrieves all feature toggles.
158496
+ *
158497
+ * @returns an array of defined feature toggles.
158498
+ */
158499
+ static getAllFeatureToggles() {
158500
+ const definedToggles = [];
158501
+ if (_FeatureToggleAccess.vscode) {
158502
+ Object.keys(constants_1.extensionConfigKeys).forEach((toggleConfigKey) => {
158503
+ const toggleKey = `${constants_1.extensionConfigKeys[toggleConfigKey]}.${constants_1.FeatureToggleKey}`;
158504
+ let toggles = {};
158505
+ try {
158506
+ toggles = JSON.parse(JSON.stringify(_FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)));
158507
+ } catch {
158508
+ }
158509
+ Object.keys(toggles).forEach((toggleId) => {
158510
+ const toggleConfigValue = _FeatureToggleAccess.vscode.workspace.getConfiguration(`${toggleKey}`).get(`${toggleId}`);
158511
+ const toggle = {
158512
+ feature: `${toggleKey}.${toggleId}`,
158513
+ isEnabled: toggleConfigValue ? toggleConfigValue : false
158514
+ };
158515
+ definedToggles.push(toggle);
158516
+ });
158517
+ });
158518
+ } else if (process.env.TOOLSUITE_FEATURES) {
158519
+ const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
158520
+ for (const feature of envFeatures) {
158521
+ const toggle = {
158522
+ feature,
158523
+ isEnabled: true
158524
+ };
158525
+ definedToggles.push(toggle);
158526
+ }
158527
+ }
158528
+ return definedToggles;
158529
+ }
158530
+ };
158531
+ exports2.FeatureToggleAccess = FeatureToggleAccess;
158532
+ function getVSCodeInstance() {
158533
+ let vscode;
158534
+ try {
158535
+ vscode = require("vscode");
158536
+ } catch {
158537
+ }
158538
+ return vscode;
158539
+ }
158540
+ function enableFeature(feature) {
158541
+ let envFeatures = [];
158542
+ if (process.env.TOOLSUITE_FEATURES) {
158543
+ envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
158544
+ if (!envFeatures.includes(feature)) {
158545
+ envFeatures.push(feature);
158546
+ }
158547
+ } else {
158548
+ envFeatures.push(feature);
158549
+ }
158550
+ process.env.TOOLSUITE_FEATURES = envFeatures.join();
158551
+ }
158552
+ function isFeatureEnabled(feature) {
158553
+ return FeatureToggleAccess.getFeatureToggle(feature).isEnabled;
158554
+ }
158555
+ function isInternalFeaturesSettingEnabled2() {
158556
+ var _a3;
158557
+ const enableInternalFeaturesSetting = "sap.ux.internal.enableInternalFeatures";
158558
+ let internalEnabled = false;
158559
+ if (FeatureToggleAccess.vscode) {
158560
+ const internalSetting = FeatureToggleAccess.vscode.workspace ? (_a3 = FeatureToggleAccess.vscode.workspace.getConfiguration()) == null ? void 0 : _a3.get(enableInternalFeaturesSetting) : false;
158561
+ internalEnabled = internalSetting ?? false;
158562
+ }
158563
+ if (process.env.TOOLSUITE_INTERNAL && process.env.TOOLSUITE_INTERNAL === "true") {
158564
+ internalEnabled = true;
158565
+ }
158566
+ return internalEnabled;
158567
+ }
158568
+ }
158569
+ });
158570
+
158571
+ // ../../node_modules/@sap-ux/feature-toggle/dist/index.js
158572
+ var require_dist21 = __commonJS({
158573
+ "../../node_modules/@sap-ux/feature-toggle/dist/index.js"(exports2) {
158574
+ "use strict";
158575
+ Object.defineProperty(exports2, "__esModule", { value: true });
158576
+ exports2.ExperimentalFeatures = exports2.FeatureToggleKey = exports2.enableFeature = exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.FeatureToggleAccess = void 0;
158577
+ var featureToggle_1 = require_featureToggle();
158578
+ Object.defineProperty(exports2, "FeatureToggleAccess", { enumerable: true, get: function() {
158579
+ return featureToggle_1.FeatureToggleAccess;
158580
+ } });
158581
+ Object.defineProperty(exports2, "isFeatureEnabled", { enumerable: true, get: function() {
158582
+ return featureToggle_1.isFeatureEnabled;
158583
+ } });
158584
+ Object.defineProperty(exports2, "isInternalFeaturesSettingEnabled", { enumerable: true, get: function() {
158585
+ return featureToggle_1.isInternalFeaturesSettingEnabled;
158586
+ } });
158587
+ Object.defineProperty(exports2, "enableFeature", { enumerable: true, get: function() {
158588
+ return featureToggle_1.enableFeature;
158589
+ } });
158590
+ var constants_1 = require_constants12();
158591
+ Object.defineProperty(exports2, "FeatureToggleKey", { enumerable: true, get: function() {
158592
+ return constants_1.FeatureToggleKey;
158593
+ } });
158594
+ Object.defineProperty(exports2, "ExperimentalFeatures", { enumerable: true, get: function() {
158595
+ return constants_1.ExperimentalFeatures;
158596
+ } });
158597
+ }
158598
+ });
158599
+
158491
158600
  // ../../node_modules/eventemitter3/index.js
158492
158601
  var require_eventemitter3 = __commonJS({
158493
158602
  "../../node_modules/eventemitter3/index.js"(exports2, module2) {
@@ -162176,10 +162285,10 @@ var require_ui5_proxy_middleware_i18n = __commonJS({
162176
162285
  "../../node_modules/@sap-ux/ui5-proxy-middleware/dist/translations/ui5-proxy-middleware.i18n.json"(exports2, module2) {
162177
162286
  module2.exports = {
162178
162287
  info: {
162179
- ui5VersionSource: "Using UI5 version {{version}} based on {{-source}}"
162288
+ ui5VersionSource: "Using UI5 version: {{version}} based on: {{-source}}."
162180
162289
  },
162181
162290
  error: {
162182
- noCodeError: "Error {{-error}} thrown for request {{-request}}"
162291
+ noCodeError: "An error: {{-error}} was thrown for the request: {{-request}}."
162183
162292
  }
162184
162293
  };
162185
162294
  }
@@ -162230,7 +162339,7 @@ var require_utils17 = __commonJS({
162230
162339
  exports2.injectUI5Url = injectUI5Url;
162231
162340
  exports2.proxyErrorHandler = proxyErrorHandler;
162232
162341
  exports2.directLoadProxy = directLoadProxy2;
162233
- var project_access_1 = require_dist14();
162342
+ var project_access_1 = require_dist13();
162234
162343
  var ui5_config_1 = require_dist3();
162235
162344
  var fs_1 = require("fs");
162236
162345
  var constants_1 = require_constants13();
@@ -165113,337 +165222,6 @@ var require_config5 = __commonJS({
165113
165222
  }
165114
165223
  });
165115
165224
 
165116
- // ../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/chalk/source/util.js
165117
- var require_util8 = __commonJS({
165118
- "../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/chalk/source/util.js"(exports2, module2) {
165119
- "use strict";
165120
- var stringReplaceAll = (string, substring, replacer) => {
165121
- let index = string.indexOf(substring);
165122
- if (index === -1) {
165123
- return string;
165124
- }
165125
- const substringLength = substring.length;
165126
- let endIndex = 0;
165127
- let returnValue = "";
165128
- do {
165129
- returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
165130
- endIndex = index + substringLength;
165131
- index = string.indexOf(substring, endIndex);
165132
- } while (index !== -1);
165133
- returnValue += string.substr(endIndex);
165134
- return returnValue;
165135
- };
165136
- var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
165137
- let endIndex = 0;
165138
- let returnValue = "";
165139
- do {
165140
- const gotCR = string[index - 1] === "\r";
165141
- returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
165142
- endIndex = index + 1;
165143
- index = string.indexOf("\n", endIndex);
165144
- } while (index !== -1);
165145
- returnValue += string.substr(endIndex);
165146
- return returnValue;
165147
- };
165148
- module2.exports = {
165149
- stringReplaceAll,
165150
- stringEncaseCRLFWithFirstIndex
165151
- };
165152
- }
165153
- });
165154
-
165155
- // ../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/chalk/source/templates.js
165156
- var require_templates3 = __commonJS({
165157
- "../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/chalk/source/templates.js"(exports2, module2) {
165158
- "use strict";
165159
- var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
165160
- var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
165161
- var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
165162
- var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
165163
- var ESCAPES = /* @__PURE__ */ new Map([
165164
- ["n", "\n"],
165165
- ["r", "\r"],
165166
- ["t", " "],
165167
- ["b", "\b"],
165168
- ["f", "\f"],
165169
- ["v", "\v"],
165170
- ["0", "\0"],
165171
- ["\\", "\\"],
165172
- ["e", "\x1B"],
165173
- ["a", "\x07"]
165174
- ]);
165175
- function unescape2(c) {
165176
- const u = c[0] === "u";
165177
- const bracket = c[1] === "{";
165178
- if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
165179
- return String.fromCharCode(parseInt(c.slice(1), 16));
165180
- }
165181
- if (u && bracket) {
165182
- return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
165183
- }
165184
- return ESCAPES.get(c) || c;
165185
- }
165186
- function parseArguments(name2, arguments_) {
165187
- const results = [];
165188
- const chunks = arguments_.trim().split(/\s*,\s*/g);
165189
- let matches;
165190
- for (const chunk of chunks) {
165191
- const number = Number(chunk);
165192
- if (!Number.isNaN(number)) {
165193
- results.push(number);
165194
- } else if (matches = chunk.match(STRING_REGEX)) {
165195
- results.push(matches[2].replace(ESCAPE_REGEX, (m, escape6, character) => escape6 ? unescape2(escape6) : character));
165196
- } else {
165197
- throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name2}')`);
165198
- }
165199
- }
165200
- return results;
165201
- }
165202
- function parseStyle(style) {
165203
- STYLE_REGEX.lastIndex = 0;
165204
- const results = [];
165205
- let matches;
165206
- while ((matches = STYLE_REGEX.exec(style)) !== null) {
165207
- const name2 = matches[1];
165208
- if (matches[2]) {
165209
- const args = parseArguments(name2, matches[2]);
165210
- results.push([name2].concat(args));
165211
- } else {
165212
- results.push([name2]);
165213
- }
165214
- }
165215
- return results;
165216
- }
165217
- function buildStyle(chalk, styles) {
165218
- const enabled2 = {};
165219
- for (const layer of styles) {
165220
- for (const style of layer.styles) {
165221
- enabled2[style[0]] = layer.inverse ? null : style.slice(1);
165222
- }
165223
- }
165224
- let current = chalk;
165225
- for (const [styleName, styles2] of Object.entries(enabled2)) {
165226
- if (!Array.isArray(styles2)) {
165227
- continue;
165228
- }
165229
- if (!(styleName in current)) {
165230
- throw new Error(`Unknown Chalk style: ${styleName}`);
165231
- }
165232
- current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
165233
- }
165234
- return current;
165235
- }
165236
- module2.exports = (chalk, temporary) => {
165237
- const styles = [];
165238
- const chunks = [];
165239
- let chunk = [];
165240
- temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
165241
- if (escapeCharacter) {
165242
- chunk.push(unescape2(escapeCharacter));
165243
- } else if (style) {
165244
- const string = chunk.join("");
165245
- chunk = [];
165246
- chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
165247
- styles.push({ inverse, styles: parseStyle(style) });
165248
- } else if (close) {
165249
- if (styles.length === 0) {
165250
- throw new Error("Found extraneous } in Chalk template literal");
165251
- }
165252
- chunks.push(buildStyle(chalk, styles)(chunk.join("")));
165253
- chunk = [];
165254
- styles.pop();
165255
- } else {
165256
- chunk.push(character);
165257
- }
165258
- });
165259
- chunks.push(chunk.join(""));
165260
- if (styles.length > 0) {
165261
- const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
165262
- throw new Error(errMessage);
165263
- }
165264
- return chunks.join("");
165265
- };
165266
- }
165267
- });
165268
-
165269
- // ../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/chalk/source/index.js
165270
- var require_source3 = __commonJS({
165271
- "../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/chalk/source/index.js"(exports2, module2) {
165272
- "use strict";
165273
- var ansiStyles = require_ansi_styles();
165274
- var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
165275
- var {
165276
- stringReplaceAll,
165277
- stringEncaseCRLFWithFirstIndex
165278
- } = require_util8();
165279
- var { isArray: isArray3 } = Array;
165280
- var levelMapping = [
165281
- "ansi",
165282
- "ansi",
165283
- "ansi256",
165284
- "ansi16m"
165285
- ];
165286
- var styles = /* @__PURE__ */ Object.create(null);
165287
- var applyOptions = (object, options2 = {}) => {
165288
- if (options2.level && !(Number.isInteger(options2.level) && options2.level >= 0 && options2.level <= 3)) {
165289
- throw new Error("The `level` option should be an integer from 0 to 3");
165290
- }
165291
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
165292
- object.level = options2.level === void 0 ? colorLevel : options2.level;
165293
- };
165294
- var ChalkClass = class {
165295
- constructor(options2) {
165296
- return chalkFactory(options2);
165297
- }
165298
- };
165299
- var chalkFactory = (options2) => {
165300
- const chalk2 = {};
165301
- applyOptions(chalk2, options2);
165302
- chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
165303
- Object.setPrototypeOf(chalk2, Chalk.prototype);
165304
- Object.setPrototypeOf(chalk2.template, chalk2);
165305
- chalk2.template.constructor = () => {
165306
- throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
165307
- };
165308
- chalk2.template.Instance = ChalkClass;
165309
- return chalk2.template;
165310
- };
165311
- function Chalk(options2) {
165312
- return chalkFactory(options2);
165313
- }
165314
- for (const [styleName, style] of Object.entries(ansiStyles)) {
165315
- styles[styleName] = {
165316
- get() {
165317
- const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
165318
- Object.defineProperty(this, styleName, { value: builder });
165319
- return builder;
165320
- }
165321
- };
165322
- }
165323
- styles.visible = {
165324
- get() {
165325
- const builder = createBuilder(this, this._styler, true);
165326
- Object.defineProperty(this, "visible", { value: builder });
165327
- return builder;
165328
- }
165329
- };
165330
- var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
165331
- for (const model of usedModels) {
165332
- styles[model] = {
165333
- get() {
165334
- const { level } = this;
165335
- return function(...arguments_) {
165336
- const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
165337
- return createBuilder(this, styler, this._isEmpty);
165338
- };
165339
- }
165340
- };
165341
- }
165342
- for (const model of usedModels) {
165343
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
165344
- styles[bgModel] = {
165345
- get() {
165346
- const { level } = this;
165347
- return function(...arguments_) {
165348
- const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
165349
- return createBuilder(this, styler, this._isEmpty);
165350
- };
165351
- }
165352
- };
165353
- }
165354
- var proto = Object.defineProperties(() => {
165355
- }, {
165356
- ...styles,
165357
- level: {
165358
- enumerable: true,
165359
- get() {
165360
- return this._generator.level;
165361
- },
165362
- set(level) {
165363
- this._generator.level = level;
165364
- }
165365
- }
165366
- });
165367
- var createStyler = (open, close, parent) => {
165368
- let openAll;
165369
- let closeAll;
165370
- if (parent === void 0) {
165371
- openAll = open;
165372
- closeAll = close;
165373
- } else {
165374
- openAll = parent.openAll + open;
165375
- closeAll = close + parent.closeAll;
165376
- }
165377
- return {
165378
- open,
165379
- close,
165380
- openAll,
165381
- closeAll,
165382
- parent
165383
- };
165384
- };
165385
- var createBuilder = (self2, _styler, _isEmpty) => {
165386
- const builder = (...arguments_) => {
165387
- if (isArray3(arguments_[0]) && isArray3(arguments_[0].raw)) {
165388
- return applyStyle(builder, chalkTag(builder, ...arguments_));
165389
- }
165390
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
165391
- };
165392
- Object.setPrototypeOf(builder, proto);
165393
- builder._generator = self2;
165394
- builder._styler = _styler;
165395
- builder._isEmpty = _isEmpty;
165396
- return builder;
165397
- };
165398
- var applyStyle = (self2, string) => {
165399
- if (self2.level <= 0 || !string) {
165400
- return self2._isEmpty ? "" : string;
165401
- }
165402
- let styler = self2._styler;
165403
- if (styler === void 0) {
165404
- return string;
165405
- }
165406
- const { openAll, closeAll } = styler;
165407
- if (string.indexOf("\x1B") !== -1) {
165408
- while (styler !== void 0) {
165409
- string = stringReplaceAll(string, styler.close, styler.open);
165410
- styler = styler.parent;
165411
- }
165412
- }
165413
- const lfIndex = string.indexOf("\n");
165414
- if (lfIndex !== -1) {
165415
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
165416
- }
165417
- return openAll + string + closeAll;
165418
- };
165419
- var template;
165420
- var chalkTag = (chalk2, ...strings) => {
165421
- const [firstString] = strings;
165422
- if (!isArray3(firstString) || !isArray3(firstString.raw)) {
165423
- return strings.join(" ");
165424
- }
165425
- const arguments_ = strings.slice(1);
165426
- const parts = [firstString.raw[0]];
165427
- for (let i = 1; i < firstString.length; i++) {
165428
- parts.push(
165429
- String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
165430
- String(firstString.raw[i])
165431
- );
165432
- }
165433
- if (template === void 0) {
165434
- template = require_templates3();
165435
- }
165436
- return template(chalk2, parts.join(""));
165437
- };
165438
- Object.defineProperties(Chalk.prototype, styles);
165439
- var chalk = Chalk();
165440
- chalk.supportsColor = stdoutColor;
165441
- chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
165442
- chalk.stderr.supportsColor = stderrColor;
165443
- module2.exports = chalk;
165444
- }
165445
- });
165446
-
165447
165225
  // ../../node_modules/kleur/index.js
165448
165226
  var require_kleur = __commonJS({
165449
165227
  "../../node_modules/kleur/index.js"(exports2, module2) {
@@ -165852,7 +165630,7 @@ var require_entriesToDisplay = __commonJS({
165852
165630
  });
165853
165631
 
165854
165632
  // ../../node_modules/prompts/dist/util/index.js
165855
- var require_util9 = __commonJS({
165633
+ var require_util7 = __commonJS({
165856
165634
  "../../node_modules/prompts/dist/util/index.js"(exports2, module2) {
165857
165635
  "use strict";
165858
165636
  module2.exports = {
@@ -165873,7 +165651,7 @@ var require_prompt = __commonJS({
165873
165651
  "../../node_modules/prompts/dist/elements/prompt.js"(exports2, module2) {
165874
165652
  "use strict";
165875
165653
  var readline = require("readline");
165876
- var _require = require_util9();
165654
+ var _require = require_util7();
165877
165655
  var action = _require.action;
165878
165656
  var EventEmitter6 = require("events");
165879
165657
  var _require2 = require_src9();
@@ -165971,7 +165749,7 @@ var require_text2 = __commonJS({
165971
165749
  var _require = require_src9();
165972
165750
  var erase = _require.erase;
165973
165751
  var cursor = _require.cursor;
165974
- var _require2 = require_util9();
165752
+ var _require2 = require_util7();
165975
165753
  var style = _require2.style;
165976
165754
  var clear = _require2.clear;
165977
165755
  var lines = _require2.lines;
@@ -166155,7 +165933,7 @@ var require_select = __commonJS({
166155
165933
  "use strict";
166156
165934
  var color = require_kleur();
166157
165935
  var Prompt = require_prompt();
166158
- var _require = require_util9();
165936
+ var _require = require_util7();
166159
165937
  var style = _require.style;
166160
165938
  var clear = _require.clear;
166161
165939
  var figures = _require.figures;
@@ -166303,7 +166081,7 @@ var require_toggle = __commonJS({
166303
166081
  "use strict";
166304
166082
  var color = require_kleur();
166305
166083
  var Prompt = require_prompt();
166306
- var _require = require_util9();
166084
+ var _require = require_util7();
166307
166085
  var style = _require.style;
166308
166086
  var clear = _require.clear;
166309
166087
  var _require2 = require_src9();
@@ -166707,7 +166485,7 @@ var require_date2 = __commonJS({
166707
166485
  }
166708
166486
  var color = require_kleur();
166709
166487
  var Prompt = require_prompt();
166710
- var _require = require_util9();
166488
+ var _require = require_util7();
166711
166489
  var style = _require.style;
166712
166490
  var clear = _require.clear;
166713
166491
  var figures = _require.figures;
@@ -166936,7 +166714,7 @@ var require_number = __commonJS({
166936
166714
  var _require = require_src9();
166937
166715
  var cursor = _require.cursor;
166938
166716
  var erase = _require.erase;
166939
- var _require2 = require_util9();
166717
+ var _require2 = require_util7();
166940
166718
  var style = _require2.style;
166941
166719
  var figures = _require2.figures;
166942
166720
  var clear = _require2.clear;
@@ -167121,7 +166899,7 @@ var require_multiselect = __commonJS({
167121
166899
  var _require = require_src9();
167122
166900
  var cursor = _require.cursor;
167123
166901
  var Prompt = require_prompt();
167124
- var _require2 = require_util9();
166902
+ var _require2 = require_util7();
167125
166903
  var clear = _require2.clear;
167126
166904
  var figures = _require2.figures;
167127
166905
  var style = _require2.style;
@@ -167382,7 +167160,7 @@ var require_autocomplete = __commonJS({
167382
167160
  var _require = require_src9();
167383
167161
  var erase = _require.erase;
167384
167162
  var cursor = _require.cursor;
167385
- var _require2 = require_util9();
167163
+ var _require2 = require_util7();
167386
167164
  var style = _require2.style;
167387
167165
  var clear = _require2.clear;
167388
167166
  var figures = _require2.figures;
@@ -167607,7 +167385,7 @@ var require_autocompleteMultiselect = __commonJS({
167607
167385
  var _require = require_src9();
167608
167386
  var cursor = _require.cursor;
167609
167387
  var MultiselectPrompt = require_multiselect();
167610
- var _require2 = require_util9();
167388
+ var _require2 = require_util7();
167611
167389
  var clear = _require2.clear;
167612
167390
  var style = _require2.style;
167613
167391
  var figures = _require2.figures;
@@ -167764,7 +167542,7 @@ var require_confirm = __commonJS({
167764
167542
  "use strict";
167765
167543
  var color = require_kleur();
167766
167544
  var Prompt = require_prompt();
167767
- var _require = require_util9();
167545
+ var _require = require_util7();
167768
167546
  var style = _require.style;
167769
167547
  var clear = _require.clear;
167770
167548
  var _require2 = require_src9();
@@ -168318,7 +168096,7 @@ var require_entriesToDisplay2 = __commonJS({
168318
168096
  });
168319
168097
 
168320
168098
  // ../../node_modules/prompts/lib/util/index.js
168321
- var require_util10 = __commonJS({
168099
+ var require_util8 = __commonJS({
168322
168100
  "../../node_modules/prompts/lib/util/index.js"(exports2, module2) {
168323
168101
  "use strict";
168324
168102
  module2.exports = {
@@ -168339,7 +168117,7 @@ var require_prompt2 = __commonJS({
168339
168117
  "../../node_modules/prompts/lib/elements/prompt.js"(exports2, module2) {
168340
168118
  "use strict";
168341
168119
  var readline = require("readline");
168342
- var { action } = require_util10();
168120
+ var { action } = require_util8();
168343
168121
  var EventEmitter6 = require("events");
168344
168122
  var { beep, cursor } = require_src9();
168345
168123
  var color = require_kleur();
@@ -168399,7 +168177,7 @@ var require_text3 = __commonJS({
168399
168177
  var color = require_kleur();
168400
168178
  var Prompt = require_prompt2();
168401
168179
  var { erase, cursor } = require_src9();
168402
- var { style, clear, lines, figures } = require_util10();
168180
+ var { style, clear, lines, figures } = require_util8();
168403
168181
  var TextPrompt = class extends Prompt {
168404
168182
  constructor(opts = {}) {
168405
168183
  super(opts);
@@ -168579,7 +168357,7 @@ var require_select2 = __commonJS({
168579
168357
  "use strict";
168580
168358
  var color = require_kleur();
168581
168359
  var Prompt = require_prompt2();
168582
- var { style, clear, figures, wrap: wrap3, entriesToDisplay } = require_util10();
168360
+ var { style, clear, figures, wrap: wrap3, entriesToDisplay } = require_util8();
168583
168361
  var { cursor } = require_src9();
168584
168362
  var SelectPrompt = class extends Prompt {
168585
168363
  constructor(opts = {}) {
@@ -168721,7 +168499,7 @@ var require_toggle2 = __commonJS({
168721
168499
  "../../node_modules/prompts/lib/elements/toggle.js"(exports2, module2) {
168722
168500
  var color = require_kleur();
168723
168501
  var Prompt = require_prompt2();
168724
- var { style, clear } = require_util10();
168502
+ var { style, clear } = require_util8();
168725
168503
  var { cursor, erase } = require_src9();
168726
168504
  var TogglePrompt = class extends Prompt {
168727
168505
  constructor(opts = {}) {
@@ -169095,7 +168873,7 @@ var require_date3 = __commonJS({
169095
168873
  "use strict";
169096
168874
  var color = require_kleur();
169097
168875
  var Prompt = require_prompt2();
169098
- var { style, clear, figures } = require_util10();
168876
+ var { style, clear, figures } = require_util8();
169099
168877
  var { erase, cursor } = require_src9();
169100
168878
  var { DatePart, Meridiem, Day, Hours, Milliseconds, Minutes, Month, Seconds, Year } = require_dateparts2();
169101
168879
  var regex = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;
@@ -169274,7 +169052,7 @@ var require_number2 = __commonJS({
169274
169052
  var color = require_kleur();
169275
169053
  var Prompt = require_prompt2();
169276
169054
  var { cursor, erase } = require_src9();
169277
- var { style, figures, clear, lines } = require_util10();
169055
+ var { style, figures, clear, lines } = require_util8();
169278
169056
  var isNumber2 = /[0-9]/;
169279
169057
  var isDef = (any) => any !== void 0;
169280
169058
  var round = (number, precision) => {
@@ -169454,7 +169232,7 @@ var require_multiselect2 = __commonJS({
169454
169232
  var color = require_kleur();
169455
169233
  var { cursor } = require_src9();
169456
169234
  var Prompt = require_prompt2();
169457
- var { clear, figures, style, wrap: wrap3, entriesToDisplay } = require_util10();
169235
+ var { clear, figures, style, wrap: wrap3, entriesToDisplay } = require_util8();
169458
169236
  var MultiselectPrompt = class extends Prompt {
169459
169237
  constructor(opts = {}) {
169460
169238
  super(opts);
@@ -169679,7 +169457,7 @@ var require_autocomplete2 = __commonJS({
169679
169457
  var color = require_kleur();
169680
169458
  var Prompt = require_prompt2();
169681
169459
  var { erase, cursor } = require_src9();
169682
- var { style, clear, figures, wrap: wrap3, entriesToDisplay } = require_util10();
169460
+ var { style, clear, figures, wrap: wrap3, entriesToDisplay } = require_util8();
169683
169461
  var getVal = (arr, i) => arr[i] && (arr[i].value || arr[i].title || arr[i]);
169684
169462
  var getTitle = (arr, i) => arr[i] && (arr[i].title || arr[i].value || arr[i]);
169685
169463
  var getIndex = (arr, valOrTitle) => {
@@ -169895,7 +169673,7 @@ var require_autocompleteMultiselect2 = __commonJS({
169895
169673
  var color = require_kleur();
169896
169674
  var { cursor } = require_src9();
169897
169675
  var MultiselectPrompt = require_multiselect2();
169898
- var { clear, style, figures } = require_util10();
169676
+ var { clear, style, figures } = require_util8();
169899
169677
  var AutocompleteMultiselectPrompt = class extends MultiselectPrompt {
169900
169678
  constructor(opts = {}) {
169901
169679
  opts.overrideRender = true;
@@ -170053,7 +169831,7 @@ var require_confirm2 = __commonJS({
170053
169831
  "../../node_modules/prompts/lib/elements/confirm.js"(exports2, module2) {
170054
169832
  var color = require_kleur();
170055
169833
  var Prompt = require_prompt2();
170056
- var { style, clear } = require_util10();
169834
+ var { style, clear } = require_util8();
170057
169835
  var { erase, cursor } = require_src9();
170058
169836
  var ConfirmPrompt = class extends Prompt {
170059
169837
  constructor(opts = {}) {
@@ -170305,7 +170083,7 @@ var require_bsp = __commonJS({
170305
170083
  exports2.convertAppDescriptorToManifest = convertAppDescriptorToManifest;
170306
170084
  exports2.promptUserPass = promptUserPass;
170307
170085
  exports2.addOptionsForEmbeddedBSP = addOptionsForEmbeddedBSP;
170308
- var chalk_1 = require_source3();
170086
+ var chalk_1 = require_source();
170309
170087
  var i18next_1 = __importDefault((init_i18next3(), __toCommonJS(i18next_exports3)));
170310
170088
  var prompts_1 = __importDefault(require_prompts3());
170311
170089
  var btp_utils_1 = require_dist6();
@@ -170409,10 +170187,10 @@ var require_proxy2 = __commonJS({
170409
170187
  var http_proxy_middleware_1 = require_dist22();
170410
170188
  var i18next_1 = __importDefault((init_i18next3(), __toCommonJS(i18next_exports3)));
170411
170189
  var logger_1 = require_dist5();
170412
- var axios_extension_1 = require_dist11();
170190
+ var axios_extension_1 = require_dist10();
170413
170191
  var btp_utils_1 = require_dist6();
170414
170192
  var i18n_json_1 = __importDefault(require_i18n6());
170415
- var store_1 = require_dist19();
170193
+ var store_1 = require_dist18();
170416
170194
  var config_1 = require_config5();
170417
170195
  var bsp_1 = require_bsp();
170418
170196
  var proxy_from_env_1 = require_proxy_from_env();
@@ -172858,7 +172636,8 @@ var cliParamMap = {
172858
172636
  "-up": "uaa-password",
172859
172637
  "-ui": "uaa-clientid",
172860
172638
  "-us": "uaa-clientsecret",
172861
- "-lr": "lrep"
172639
+ "-lr": "lrep",
172640
+ "-at": "authenticationType"
172862
172641
  };
172863
172642
  var paramMap = Object.freeze(cliParamMap);
172864
172643
 
@@ -172866,12 +172645,12 @@ var paramMap = Object.freeze(cliParamMap);
172866
172645
  var import_ui5_config = __toESM(require_dist3());
172867
172646
  var import_guided_answers_helper = __toESM(require_dist4());
172868
172647
  var import_yaml = __toESM(require_dist());
172869
- var import_axios_extension = __toESM(require_dist11());
172648
+ var import_axios_extension = __toESM(require_dist10());
172870
172649
  var import_btp_utils = __toESM(require_dist6());
172871
- var import_chalk = __toESM(require_source2());
172872
- var import_project_access = __toESM(require_dist14());
172873
- var import_telemetry = __toESM(require_dist20());
172874
- var import_ui5_info = __toESM(require_dist21());
172650
+ var import_chalk = __toESM(require_source());
172651
+ var import_project_access = __toESM(require_dist13());
172652
+ var import_telemetry = __toESM(require_dist19());
172653
+ var import_ui5_info = __toESM(require_dist20());
172875
172654
  var import_semver3 = __toESM(require_semver2());
172876
172655
 
172877
172656
  // node_modules/axios/lib/helpers/bind.js
@@ -176173,8 +175952,8 @@ var {
176173
175952
  } = axios_default;
176174
175953
 
176175
175954
  // src/utils/utils.ts
176176
- var import_store = __toESM(require_dist19());
176177
- var import_feature_toggle = __toESM(require_dist10());
175955
+ var import_store = __toESM(require_dist18());
175956
+ var import_feature_toggle = __toESM(require_dist21());
176178
175957
  var helpLink = (0, import_guided_answers_helper.getHelpUrl)(import_guided_answers_helper.HELP_TREE.FIORI_TOOLS, [57266]);
176179
175958
  var getYamlFile = (args) => {
176180
175959
  let yaml = import_project_access.FileName.Ui5Yaml;
@@ -176241,7 +176020,7 @@ async function patchTls({ url: url2, client, scp }, logger3) {
176241
176020
  }
176242
176021
 
176243
176022
  // src/middlewares/proxy/utils.ts
176244
- var import_project_access2 = __toESM(require_dist14());
176023
+ var import_project_access2 = __toESM(require_dist13());
176245
176024
  var getCorporateProxyServer = (yamlProxyServer) => {
176246
176025
  let runtimeArgProxy;
176247
176026
  process.argv.forEach((arg) => {