@ms-cloudpack/remote-cache 0.11.75 → 0.11.77

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.
@@ -9,28 +9,27 @@ const __dirname = topLevelPath.dirname(__filename);
9
9
  import {
10
10
  require_commonjs,
11
11
  require_logger
12
- } from "./chunk-4NNZM6TT.js";
12
+ } from "./chunk-MIWDHAQF.js";
13
13
  import {
14
14
  require_dist,
15
15
  require_dist2,
16
16
  require_package,
17
17
  require_state,
18
18
  require_state2
19
- } from "./chunk-7NTERDBN.js";
19
+ } from "./chunk-BOUMQX3J.js";
20
20
  import {
21
21
  require_package as require_package2
22
- } from "./chunk-O35GBBPD.js";
23
- import "./chunk-HL7BG7JS.js";
22
+ } from "./chunk-3WTIWSWN.js";
23
+ import "./chunk-HONSOHFT.js";
24
24
  import {
25
25
  __commonJS,
26
26
  __esm,
27
27
  __export,
28
28
  __name,
29
- __publicField,
30
29
  __require,
31
30
  __toCommonJS,
32
31
  __toESM
33
- } from "./chunk-G5MAFA37.js";
32
+ } from "./chunk-GKUS2JGY.js";
34
33
 
35
34
  // ../../node_modules/.store/tslib-npm-2.8.1-66590b21b8/package/tslib.es6.mjs
36
35
  var tslib_es6_exports = {};
@@ -657,7 +656,7 @@ var require_utils = __commonJS({
657
656
  exports.isValidUuid = isValidUuid;
658
657
  exports.flattenResponse = flattenResponse;
659
658
  function isPrimitiveBody(value, mapperTypeName) {
660
- return mapperTypeName !== "Composite" && mapperTypeName !== "Dictionary" && (typeof value === "string" || typeof value === "number" || typeof value === "boolean" || (mapperTypeName == null ? void 0 : mapperTypeName.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)) !== null || value === void 0 || value === null);
659
+ return mapperTypeName !== "Composite" && mapperTypeName !== "Dictionary" && (typeof value === "string" || typeof value === "number" || typeof value === "boolean" || mapperTypeName?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i) !== null || value === void 0 || value === null);
661
660
  }
662
661
  __name(isPrimitiveBody, "isPrimitiveBody");
663
662
  var validateISODuration = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
@@ -686,7 +685,6 @@ var require_utils = __commonJS({
686
685
  }
687
686
  __name(handleNullableResponseAndWrappableBody, "handleNullableResponseAndWrappableBody");
688
687
  function flattenResponse(fullResponse, responseSpec) {
689
- var _a;
690
688
  const parsedHeaders = fullResponse.parsedHeaders;
691
689
  if (fullResponse.request.method === "HEAD") {
692
690
  return {
@@ -695,8 +693,8 @@ var require_utils = __commonJS({
695
693
  };
696
694
  }
697
695
  const bodyMapper = responseSpec && responseSpec.bodyMapper;
698
- const isNullable = Boolean(bodyMapper == null ? void 0 : bodyMapper.nullable);
699
- const expectedBodyTypeName = bodyMapper == null ? void 0 : bodyMapper.type.name;
696
+ const isNullable = Boolean(bodyMapper?.nullable);
697
+ const expectedBodyTypeName = bodyMapper?.type.name;
700
698
  if (expectedBodyTypeName === "Stream") {
701
699
  return {
702
700
  ...parsedHeaders,
@@ -710,7 +708,7 @@ var require_utils = __commonJS({
710
708
  const arrayResponse = fullResponse.parsedBody ?? [];
711
709
  for (const key of Object.keys(modelProperties)) {
712
710
  if (modelProperties[key].serializedName) {
713
- arrayResponse[key] = (_a = fullResponse.parsedBody) == null ? void 0 : _a[key];
711
+ arrayResponse[key] = fullResponse.parsedBody?.[key];
714
712
  }
715
713
  }
716
714
  if (parsedHeaders) {
@@ -742,7 +740,10 @@ var require_serializer = __commonJS({
742
740
  var base64 = tslib_1.__importStar(require_base64());
743
741
  var interfaces_js_1 = require_interfaces();
744
742
  var utils_js_1 = require_utils();
745
- var _SerializerImpl = class _SerializerImpl {
743
+ var SerializerImpl = class {
744
+ static {
745
+ __name(this, "SerializerImpl");
746
+ }
746
747
  modelMappers;
747
748
  isXML;
748
749
  constructor(modelMappers = {}, isXML = false) {
@@ -944,8 +945,6 @@ var require_serializer = __commonJS({
944
945
  return payload;
945
946
  }
946
947
  };
947
- __name(_SerializerImpl, "SerializerImpl");
948
- var SerializerImpl = _SerializerImpl;
949
948
  function createSerializer(modelMappers = {}, isXML = false) {
950
949
  return new SerializerImpl(modelMappers, isXML);
951
950
  }
@@ -1170,7 +1169,7 @@ var require_serializer = __commonJS({
1170
1169
  const additionalProperties = mapper.type.additionalProperties;
1171
1170
  if (!additionalProperties && mapper.type.className) {
1172
1171
  const modelMapper = resolveReferencedMapper(serializer, mapper, objectName);
1173
- return modelMapper == null ? void 0 : modelMapper.type.additionalProperties;
1172
+ return modelMapper?.type.additionalProperties;
1174
1173
  }
1175
1174
  return additionalProperties;
1176
1175
  }
@@ -1190,7 +1189,7 @@ var require_serializer = __commonJS({
1190
1189
  if (!modelMapper) {
1191
1190
  throw new Error(`mapper() cannot be null or undefined for model "${mapper.type.className}".`);
1192
1191
  }
1193
- modelProps = modelMapper == null ? void 0 : modelMapper.type.modelProperties;
1192
+ modelProps = modelMapper?.type.modelProperties;
1194
1193
  if (!modelProps) {
1195
1194
  throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(modelMapper)}" of type "${mapper.type.className}" for object "${objectName}".`);
1196
1195
  }
@@ -1337,7 +1336,7 @@ var require_serializer = __commonJS({
1337
1336
  const propertyName = xmlElementName || xmlName || serializedName;
1338
1337
  if (propertyMapper.xmlIsWrapped) {
1339
1338
  const wrapped = responseBody[xmlName];
1340
- const elementList = (wrapped == null ? void 0 : wrapped[xmlElementName]) ?? [];
1339
+ const elementList = wrapped?.[xmlElementName] ?? [];
1341
1340
  instance[key] = serializer.deserialize(propertyMapper, elementList, propertyObjectName, options);
1342
1341
  handledPropertyNames.push(xmlName);
1343
1342
  } else {
@@ -1535,14 +1534,15 @@ var require_AbortError = __commonJS({
1535
1534
  AbortError: /* @__PURE__ */ __name(() => AbortError2, "AbortError")
1536
1535
  });
1537
1536
  module.exports = __toCommonJS2(AbortError_exports);
1538
- var _AbortError = class _AbortError extends Error {
1537
+ var AbortError2 = class extends Error {
1538
+ static {
1539
+ __name(this, "AbortError");
1540
+ }
1539
1541
  constructor(message) {
1540
1542
  super(message);
1541
1543
  this.name = "AbortError";
1542
1544
  }
1543
1545
  };
1544
- __name(_AbortError, "AbortError");
1545
- var AbortError2 = _AbortError;
1546
1546
  }
1547
1547
  });
1548
1548
 
@@ -1581,7 +1581,10 @@ var require_httpHeaders = __commonJS({
1581
1581
  }
1582
1582
  }
1583
1583
  __name(headerIterator, "headerIterator");
1584
- var _HttpHeadersImpl = class _HttpHeadersImpl {
1584
+ var HttpHeadersImpl = class {
1585
+ static {
1586
+ __name(this, "HttpHeadersImpl");
1587
+ }
1585
1588
  _headersMap;
1586
1589
  constructor(rawHeaders) {
1587
1590
  this._headersMap = /* @__PURE__ */ new Map();
@@ -1606,8 +1609,7 @@ var require_httpHeaders = __commonJS({
1606
1609
  * @param name - The name of the header. This value is case-insensitive.
1607
1610
  */
1608
1611
  get(name3) {
1609
- var _a;
1610
- return (_a = this._headersMap.get(normalizeName(name3))) == null ? void 0 : _a.value;
1612
+ return this._headersMap.get(normalizeName(name3))?.value;
1611
1613
  }
1612
1614
  /**
1613
1615
  * Get whether or not this header collection contains a header entry for the provided header name.
@@ -1652,8 +1654,6 @@ var require_httpHeaders = __commonJS({
1652
1654
  return headerIterator(this._headersMap);
1653
1655
  }
1654
1656
  };
1655
- __name(_HttpHeadersImpl, "HttpHeadersImpl");
1656
- var HttpHeadersImpl = _HttpHeadersImpl;
1657
1657
  function createHttpHeaders2(rawHeaders) {
1658
1658
  return new HttpHeadersImpl(rawHeaders);
1659
1659
  }
@@ -1720,7 +1720,10 @@ var require_pipelineRequest = __commonJS({
1720
1720
  module.exports = __toCommonJS2(pipelineRequest_exports);
1721
1721
  var import_httpHeaders = require_httpHeaders();
1722
1722
  var import_uuidUtils = require_uuidUtils();
1723
- var _PipelineRequestImpl = class _PipelineRequestImpl {
1723
+ var PipelineRequestImpl = class {
1724
+ static {
1725
+ __name(this, "PipelineRequestImpl");
1726
+ }
1724
1727
  url;
1725
1728
  method;
1726
1729
  headers;
@@ -1762,8 +1765,6 @@ var require_pipelineRequest = __commonJS({
1762
1765
  this.authSchemes = options.authSchemes;
1763
1766
  }
1764
1767
  };
1765
- __name(_PipelineRequestImpl, "PipelineRequestImpl");
1766
- var PipelineRequestImpl = _PipelineRequestImpl;
1767
1768
  function createPipelineRequest2(options) {
1768
1769
  return new PipelineRequestImpl(options);
1769
1770
  }
@@ -1797,11 +1798,14 @@ var require_pipeline = __commonJS({
1797
1798
  });
1798
1799
  module.exports = __toCommonJS2(pipeline_exports);
1799
1800
  var ValidPhaseNames = /* @__PURE__ */ new Set(["Deserialize", "Serialize", "Retry", "Sign"]);
1800
- var _HttpPipeline = class _HttpPipeline {
1801
+ var HttpPipeline = class _HttpPipeline {
1802
+ static {
1803
+ __name(this, "HttpPipeline");
1804
+ }
1801
1805
  _policies = [];
1802
1806
  _orderedPolicies;
1803
1807
  constructor(policies) {
1804
- this._policies = (policies == null ? void 0 : policies.slice(0)) ?? [];
1808
+ this._policies = policies?.slice(0) ?? [];
1805
1809
  this._orderedPolicies = void 0;
1806
1810
  }
1807
1811
  addPolicy(policy, options = {}) {
@@ -1979,8 +1983,6 @@ var require_pipeline = __commonJS({
1979
1983
  return result;
1980
1984
  }
1981
1985
  };
1982
- __name(_HttpPipeline, "HttpPipeline");
1983
- var HttpPipeline = _HttpPipeline;
1984
1986
  function createEmptyPipeline2() {
1985
1987
  return HttpPipeline.create();
1986
1988
  }
@@ -2157,7 +2159,10 @@ var require_sanitizer = __commonJS({
2157
2159
  "WWW-Authenticate"
2158
2160
  ];
2159
2161
  var defaultAllowedQueryParameters = ["api-version"];
2160
- var _Sanitizer = class _Sanitizer {
2162
+ var Sanitizer2 = class {
2163
+ static {
2164
+ __name(this, "Sanitizer");
2165
+ }
2161
2166
  allowedHeaderNames;
2162
2167
  allowedQueryParameters;
2163
2168
  constructor({
@@ -2255,8 +2260,6 @@ var require_sanitizer = __commonJS({
2255
2260
  return sanitized;
2256
2261
  }
2257
2262
  };
2258
- __name(_Sanitizer, "Sanitizer");
2259
- var Sanitizer2 = _Sanitizer;
2260
2263
  }
2261
2264
  });
2262
2265
 
@@ -2290,7 +2293,21 @@ var require_restError = __commonJS({
2290
2293
  var import_inspect = require_inspect();
2291
2294
  var import_sanitizer = require_sanitizer();
2292
2295
  var errorSanitizer = new import_sanitizer.Sanitizer();
2293
- var _RestError = class _RestError extends Error {
2296
+ var RestError2 = class _RestError extends Error {
2297
+ static {
2298
+ __name(this, "RestError");
2299
+ }
2300
+ /**
2301
+ * Something went wrong when making the request.
2302
+ * This means the actual request failed for some reason,
2303
+ * such as a DNS issue or the connection being lost.
2304
+ */
2305
+ static REQUEST_SEND_ERROR = "REQUEST_SEND_ERROR";
2306
+ /**
2307
+ * This means that parsing the response from the server failed.
2308
+ * It may have been malformed.
2309
+ */
2310
+ static PARSE_ERROR = "PARSE_ERROR";
2294
2311
  /**
2295
2312
  * The code of the error itself (use statics on RestError if possible.)
2296
2313
  */
@@ -2314,14 +2331,13 @@ var require_restError = __commonJS({
2314
2331
  */
2315
2332
  details;
2316
2333
  constructor(message, options = {}) {
2317
- var _a;
2318
2334
  super(message);
2319
2335
  this.name = "RestError";
2320
2336
  this.code = options.code;
2321
2337
  this.statusCode = options.statusCode;
2322
2338
  Object.defineProperty(this, "request", { value: options.request, enumerable: false });
2323
2339
  Object.defineProperty(this, "response", { value: options.response, enumerable: false });
2324
- const agent = ((_a = this.request) == null ? void 0 : _a.agent) ? {
2340
+ const agent = this.request?.agent ? {
2325
2341
  maxFreeSockets: this.request.agent.maxFreeSockets,
2326
2342
  maxSockets: this.request.agent.maxSockets
2327
2343
  } : void 0;
@@ -2339,19 +2355,6 @@ var require_restError = __commonJS({
2339
2355
  Object.setPrototypeOf(this, _RestError.prototype);
2340
2356
  }
2341
2357
  };
2342
- __name(_RestError, "RestError");
2343
- /**
2344
- * Something went wrong when making the request.
2345
- * This means the actual request failed for some reason,
2346
- * such as a DNS issue or the connection being lost.
2347
- */
2348
- __publicField(_RestError, "REQUEST_SEND_ERROR", "REQUEST_SEND_ERROR");
2349
- /**
2350
- * This means that parsing the response from the server failed.
2351
- * It may have been malformed.
2352
- */
2353
- __publicField(_RestError, "PARSE_ERROR", "PARSE_ERROR");
2354
- var RestError2 = _RestError;
2355
2358
  function isRestError2(e) {
2356
2359
  if (e instanceof RestError2) {
2357
2360
  return true;
@@ -2500,7 +2503,10 @@ var require_nodeHttpClient = __commonJS({
2500
2503
  return body && typeof body.byteLength === "number";
2501
2504
  }
2502
2505
  __name(isArrayBuffer, "isArrayBuffer");
2503
- var _ReportTransform = class _ReportTransform extends import_node_stream.Transform {
2506
+ var ReportTransform = class extends import_node_stream.Transform {
2507
+ static {
2508
+ __name(this, "ReportTransform");
2509
+ }
2504
2510
  loadedBytes = 0;
2505
2511
  progressCallback;
2506
2512
  // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
@@ -2519,9 +2525,10 @@ var require_nodeHttpClient = __commonJS({
2519
2525
  this.progressCallback = progressCallback;
2520
2526
  }
2521
2527
  };
2522
- __name(_ReportTransform, "ReportTransform");
2523
- var ReportTransform = _ReportTransform;
2524
- var _NodeHttpClient = class _NodeHttpClient {
2528
+ var NodeHttpClient = class {
2529
+ static {
2530
+ __name(this, "NodeHttpClient");
2531
+ }
2525
2532
  cachedHttpAgent;
2526
2533
  cachedHttpsAgents = /* @__PURE__ */ new WeakMap();
2527
2534
  /**
@@ -2529,7 +2536,6 @@ var require_nodeHttpClient = __commonJS({
2529
2536
  * @param request - The request to be made.
2530
2537
  */
2531
2538
  async sendRequest(request) {
2532
- var _a, _b;
2533
2539
  const abortController = new AbortController();
2534
2540
  let abortListener;
2535
2541
  if (request.abortSignal) {
@@ -2552,7 +2558,7 @@ var require_nodeHttpClient = __commonJS({
2552
2558
  }, request.timeout);
2553
2559
  }
2554
2560
  const acceptEncoding = request.headers.get("Accept-Encoding");
2555
- const shouldDecompress = (acceptEncoding == null ? void 0 : acceptEncoding.includes("gzip")) || (acceptEncoding == null ? void 0 : acceptEncoding.includes("deflate"));
2561
+ const shouldDecompress = acceptEncoding?.includes("gzip") || acceptEncoding?.includes("deflate");
2556
2562
  let body = typeof request.body === "function" ? request.body() : request.body;
2557
2563
  if (body && !request.headers.has("Content-Length")) {
2558
2564
  const bodyLength = getBodyLength(body);
@@ -2602,7 +2608,7 @@ var require_nodeHttpClient = __commonJS({
2602
2608
  }
2603
2609
  if (
2604
2610
  // Value of POSITIVE_INFINITY in streamResponseStatusCodes is considered as any status code
2605
- ((_a = request.streamResponseStatusCodes) == null ? void 0 : _a.has(Number.POSITIVE_INFINITY)) || ((_b = request.streamResponseStatusCodes) == null ? void 0 : _b.has(response.status))
2611
+ request.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY) || request.streamResponseStatusCodes?.has(response.status)
2606
2612
  ) {
2607
2613
  response.readableStreamBody = responseStream;
2608
2614
  } else {
@@ -2620,9 +2626,8 @@ var require_nodeHttpClient = __commonJS({
2620
2626
  downloadStreamDone = isStreamComplete(responseStream);
2621
2627
  }
2622
2628
  Promise.all([uploadStreamDone, downloadStreamDone]).then(() => {
2623
- var _a2;
2624
2629
  if (abortListener) {
2625
- (_a2 = request.abortSignal) == null ? void 0 : _a2.removeEventListener("abort", abortListener);
2630
+ request.abortSignal?.removeEventListener("abort", abortListener);
2626
2631
  }
2627
2632
  }).catch((e) => {
2628
2633
  import_log.logger.warning("Error when cleaning up abortListener on httpRequest", e);
@@ -2707,8 +2712,6 @@ var require_nodeHttpClient = __commonJS({
2707
2712
  }
2708
2713
  }
2709
2714
  };
2710
- __name(_NodeHttpClient, "NodeHttpClient");
2711
- var NodeHttpClient = _NodeHttpClient;
2712
2715
  function getResponseHeaders(res) {
2713
2716
  const headers = (0, import_httpHeaders.createHttpHeaders)();
2714
2717
  for (const header of Object.keys(res.headers)) {
@@ -2752,7 +2755,7 @@ var require_nodeHttpClient = __commonJS({
2752
2755
  resolve(Buffer.concat(buffer).toString("utf8"));
2753
2756
  });
2754
2757
  stream.on("error", (e) => {
2755
- if (e && (e == null ? void 0 : e.name) === "AbortError") {
2758
+ if (e && e?.name === "AbortError") {
2756
2759
  reject(e);
2757
2760
  } else {
2758
2761
  reject(
@@ -3279,11 +3282,11 @@ var require_helpers = __commonJS({
3279
3282
  let onAborted = void 0;
3280
3283
  const rejectOnAbort = /* @__PURE__ */ __name(() => {
3281
3284
  return reject(
3282
- new import_AbortError.AbortError((options == null ? void 0 : options.abortErrorMsg) ? options == null ? void 0 : options.abortErrorMsg : StandardAbortMessage)
3285
+ new import_AbortError.AbortError(options?.abortErrorMsg ? options?.abortErrorMsg : StandardAbortMessage)
3283
3286
  );
3284
3287
  }, "rejectOnAbort");
3285
3288
  const removeListeners = /* @__PURE__ */ __name(() => {
3286
- if ((options == null ? void 0 : options.abortSignal) && onAborted) {
3289
+ if (options?.abortSignal && onAborted) {
3287
3290
  options.abortSignal.removeEventListener("abort", onAborted);
3288
3291
  }
3289
3292
  }, "removeListeners");
@@ -3294,14 +3297,14 @@ var require_helpers = __commonJS({
3294
3297
  removeListeners();
3295
3298
  return rejectOnAbort();
3296
3299
  }, "onAborted");
3297
- if ((options == null ? void 0 : options.abortSignal) && options.abortSignal.aborted) {
3300
+ if (options?.abortSignal && options.abortSignal.aborted) {
3298
3301
  return rejectOnAbort();
3299
3302
  }
3300
3303
  timer = setTimeout(() => {
3301
3304
  removeListeners();
3302
3305
  resolve(value);
3303
3306
  }, delayInMs);
3304
- if (options == null ? void 0 : options.abortSignal) {
3307
+ if (options?.abortSignal) {
3305
3308
  options.abortSignal.addEventListener("abort", onAborted);
3306
3309
  }
3307
3310
  });
@@ -3497,7 +3500,6 @@ var require_retryPolicy = __commonJS({
3497
3500
  return {
3498
3501
  name: retryPolicyName,
3499
3502
  async sendRequest(request, next) {
3500
- var _a;
3501
3503
  let response;
3502
3504
  let responseError;
3503
3505
  let retryCount = -1;
@@ -3517,7 +3519,7 @@ var require_retryPolicy = __commonJS({
3517
3519
  }
3518
3520
  response = responseError.response;
3519
3521
  }
3520
- if ((_a = request.abortSignal) == null ? void 0 : _a.aborted) {
3522
+ if (request.abortSignal?.aborted) {
3521
3523
  logger.error(`Retry ${retryCount}: Request aborted.`);
3522
3524
  const abortError = new import_AbortError.AbortError();
3523
3525
  throw abortError;
@@ -3665,14 +3667,12 @@ var require_checkEnvironment = __commonJS({
3665
3667
  });
3666
3668
  module.exports = __toCommonJS2(checkEnvironment_exports);
3667
3669
  var isBrowser2 = typeof window !== "undefined" && typeof window.document !== "undefined";
3668
- var _a, _b, _c;
3669
- var isWebWorker2 = typeof self === "object" && typeof (self == null ? void 0 : self.importScripts) === "function" && (((_a = self.constructor) == null ? void 0 : _a.name) === "DedicatedWorkerGlobalScope" || ((_b = self.constructor) == null ? void 0 : _b.name) === "ServiceWorkerGlobalScope" || ((_c = self.constructor) == null ? void 0 : _c.name) === "SharedWorkerGlobalScope");
3670
+ var isWebWorker2 = typeof self === "object" && typeof self?.importScripts === "function" && (self.constructor?.name === "DedicatedWorkerGlobalScope" || self.constructor?.name === "ServiceWorkerGlobalScope" || self.constructor?.name === "SharedWorkerGlobalScope");
3670
3671
  var isDeno2 = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
3671
3672
  var isBun2 = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
3672
- var _a2;
3673
- var isNodeLike2 = typeof globalThis.process !== "undefined" && Boolean(globalThis.process.version) && Boolean((_a2 = globalThis.process.versions) == null ? void 0 : _a2.node);
3673
+ var isNodeLike2 = typeof globalThis.process !== "undefined" && Boolean(globalThis.process.version) && Boolean(globalThis.process.versions?.node);
3674
3674
  var isNodeRuntime2 = isNodeLike2 && !isBun2 && !isDeno2;
3675
- var isReactNative2 = typeof navigator !== "undefined" && (navigator == null ? void 0 : navigator.product) === "ReactNative";
3675
+ var isReactNative2 = typeof navigator !== "undefined" && navigator?.product === "ReactNative";
3676
3676
  }
3677
3677
  });
3678
3678
 
@@ -3856,7 +3856,7 @@ var require_proxyPolicy = __commonJS({
3856
3856
  return false;
3857
3857
  }
3858
3858
  const host = new URL(uri).hostname;
3859
- if (bypassedMap == null ? void 0 : bypassedMap.has(host)) {
3859
+ if (bypassedMap?.has(host)) {
3860
3860
  return bypassedMap.get(host);
3861
3861
  }
3862
3862
  let isBypassedFlag = false;
@@ -3875,7 +3875,7 @@ var require_proxyPolicy = __commonJS({
3875
3875
  }
3876
3876
  }
3877
3877
  }
3878
- bypassedMap == null ? void 0 : bypassedMap.set(host, isBypassedFlag);
3878
+ bypassedMap?.set(host, isBypassedFlag);
3879
3879
  return isBypassedFlag;
3880
3880
  }
3881
3881
  __name(isBypassed, "isBypassed");
@@ -3965,8 +3965,8 @@ var require_proxyPolicy = __commonJS({
3965
3965
  async sendRequest(request, next) {
3966
3966
  if (!request.proxySettings && defaultProxy && !isBypassed(
3967
3967
  request.url,
3968
- (options == null ? void 0 : options.customNoProxyList) ?? globalNoProxyList,
3969
- (options == null ? void 0 : options.customNoProxyList) ? void 0 : globalBypassedMap
3968
+ options?.customNoProxyList ?? globalNoProxyList,
3969
+ options?.customNoProxyList ? void 0 : globalBypassedMap
3970
3970
  )) {
3971
3971
  setProxyAgentOnRequest(request, cachedAgents, defaultProxy);
3972
3972
  } else if (request.proxySettings) {
@@ -4544,7 +4544,7 @@ var require_checkInsecureConnection = __commonJS({
4544
4544
  function emitInsecureConnectionWarning() {
4545
4545
  const warning = "Sending token over insecure transport. Assume any token issued is compromised.";
4546
4546
  import_log.logger.warning(warning);
4547
- if (typeof (process == null ? void 0 : process.emitWarning) === "function" && !insecureConnectionWarningEmmitted) {
4547
+ if (typeof process?.emitWarning === "function" && !insecureConnectionWarningEmmitted) {
4548
4548
  insecureConnectionWarningEmmitted = true;
4549
4549
  process.emitWarning(warning);
4550
4550
  }
@@ -4597,9 +4597,8 @@ var require_apiKeyAuthenticationPolicy = __commonJS({
4597
4597
  return {
4598
4598
  name: apiKeyAuthenticationPolicyName,
4599
4599
  async sendRequest(request, next) {
4600
- var _a;
4601
4600
  (0, import_checkInsecureConnection.ensureSecureConnection)(request, options);
4602
- const scheme = (_a = request.authSchemes ?? options.authSchemes) == null ? void 0 : _a.find((x) => x.kind === "apiKey");
4601
+ const scheme = (request.authSchemes ?? options.authSchemes)?.find((x) => x.kind === "apiKey");
4603
4602
  if (!scheme) {
4604
4603
  return next(request);
4605
4604
  }
@@ -4648,9 +4647,8 @@ var require_basicAuthenticationPolicy = __commonJS({
4648
4647
  return {
4649
4648
  name: basicAuthenticationPolicyName,
4650
4649
  async sendRequest(request, next) {
4651
- var _a;
4652
4650
  (0, import_checkInsecureConnection.ensureSecureConnection)(request, options);
4653
- const scheme = (_a = request.authSchemes ?? options.authSchemes) == null ? void 0 : _a.find(
4651
+ const scheme = (request.authSchemes ?? options.authSchemes)?.find(
4654
4652
  (x) => x.kind === "http" && x.scheme === "basic"
4655
4653
  );
4656
4654
  if (!scheme) {
@@ -4702,9 +4700,8 @@ var require_bearerAuthenticationPolicy = __commonJS({
4702
4700
  return {
4703
4701
  name: bearerAuthenticationPolicyName,
4704
4702
  async sendRequest(request, next) {
4705
- var _a;
4706
4703
  (0, import_checkInsecureConnection.ensureSecureConnection)(request, options);
4707
- const scheme = (_a = request.authSchemes ?? options.authSchemes) == null ? void 0 : _a.find(
4704
+ const scheme = (request.authSchemes ?? options.authSchemes)?.find(
4708
4705
  (x) => x.kind === "http" && x.scheme === "bearer"
4709
4706
  );
4710
4707
  if (!scheme) {
@@ -4754,9 +4751,8 @@ var require_oauth2AuthenticationPolicy = __commonJS({
4754
4751
  return {
4755
4752
  name: oauth2AuthenticationPolicyName,
4756
4753
  async sendRequest(request, next) {
4757
- var _a;
4758
4754
  (0, import_checkInsecureConnection.ensureSecureConnection)(request, options);
4759
- const scheme = (_a = request.authSchemes ?? options.authSchemes) == null ? void 0 : _a.find((x) => x.kind === "oauth2");
4755
+ const scheme = (request.authSchemes ?? options.authSchemes)?.find((x) => x.kind === "oauth2");
4760
4756
  if (!scheme) {
4761
4757
  return next(request);
4762
4758
  }
@@ -5025,7 +5021,7 @@ var require_sendRequest = __commonJS({
5025
5021
  const stream = response.readableStreamBody ?? response.browserStreamBody;
5026
5022
  const parsedBody = options.responseAsStream || stream !== void 0 ? void 0 : getResponseBody(response);
5027
5023
  const body = stream ?? parsedBody;
5028
- if (options == null ? void 0 : options.onResponse) {
5024
+ if (options?.onResponse) {
5029
5025
  options.onResponse({ ...response, request, rawHeaders: headers, parsedBody });
5030
5026
  }
5031
5027
  return {
@@ -5038,15 +5034,14 @@ var require_sendRequest = __commonJS({
5038
5034
  if ((0, import_restError.isRestError)(e) && e.response && options.onResponse) {
5039
5035
  const { response } = e;
5040
5036
  const rawHeaders = response.headers.toJSON();
5041
- options == null ? void 0 : options.onResponse({ ...response, request, rawHeaders }, e);
5037
+ options?.onResponse({ ...response, request, rawHeaders }, e);
5042
5038
  }
5043
5039
  throw e;
5044
5040
  }
5045
5041
  }
5046
5042
  __name(sendRequest, "sendRequest");
5047
5043
  function getRequestContentType(options = {}) {
5048
- var _a;
5049
- return options.contentType ?? ((_a = options.headers) == null ? void 0 : _a["content-type"]) ?? getContentType(options.body);
5044
+ return options.contentType ?? options.headers?.["content-type"] ?? getContentType(options.body);
5050
5045
  }
5051
5046
  __name(getRequestContentType, "getRequestContentType");
5052
5047
  function getContentType(body) {
@@ -5071,12 +5066,11 @@ var require_sendRequest = __commonJS({
5071
5066
  }
5072
5067
  __name(getContentType, "getContentType");
5073
5068
  function buildPipelineRequest(method, url, options = {}) {
5074
- var _a;
5075
5069
  const requestContentType = getRequestContentType(options);
5076
5070
  const { body, multipartBody } = getRequestBody(options.body, requestContentType);
5077
5071
  const headers = (0, import_httpHeaders.createHttpHeaders)({
5078
5072
  ...options.headers ? options.headers : {},
5079
- accept: options.accept ?? ((_a = options.headers) == null ? void 0 : _a.accept) ?? "application/json",
5073
+ accept: options.accept ?? options.headers?.accept ?? "application/json",
5080
5074
  ...requestContentType && {
5081
5075
  "content-type": requestContentType
5082
5076
  }
@@ -5347,9 +5341,8 @@ var require_getClient = __commonJS({
5347
5341
  var import_urlHelpers = require_urlHelpers();
5348
5342
  var import_checkEnvironment = require_checkEnvironment();
5349
5343
  function getClient2(endpoint, clientOptions = {}) {
5350
- var _a;
5351
5344
  const pipeline = clientOptions.pipeline ?? (0, import_clientHelpers.createDefaultPipeline)(clientOptions);
5352
- if ((_a = clientOptions.additionalPolicies) == null ? void 0 : _a.length) {
5345
+ if (clientOptions.additionalPolicies?.length) {
5353
5346
  for (const { policy, position } of clientOptions.additionalPolicies) {
5354
5347
  const afterPhase = position === "perRetry" ? "Sign" : void 0;
5355
5348
  pipeline.addPolicy(policy, {
@@ -5525,15 +5518,14 @@ var require_operationOptionHelpers = __commonJS({
5525
5518
  });
5526
5519
  module.exports = __toCommonJS2(operationOptionHelpers_exports);
5527
5520
  function operationOptionsToRequestParameters2(options) {
5528
- var _a, _b, _c, _d, _e, _f;
5529
5521
  return {
5530
- allowInsecureConnection: (_a = options.requestOptions) == null ? void 0 : _a.allowInsecureConnection,
5531
- timeout: (_b = options.requestOptions) == null ? void 0 : _b.timeout,
5532
- skipUrlEncoding: (_c = options.requestOptions) == null ? void 0 : _c.skipUrlEncoding,
5522
+ allowInsecureConnection: options.requestOptions?.allowInsecureConnection,
5523
+ timeout: options.requestOptions?.timeout,
5524
+ skipUrlEncoding: options.requestOptions?.skipUrlEncoding,
5533
5525
  abortSignal: options.abortSignal,
5534
- onUploadProgress: (_d = options.requestOptions) == null ? void 0 : _d.onUploadProgress,
5535
- onDownloadProgress: (_e = options.requestOptions) == null ? void 0 : _e.onDownloadProgress,
5536
- headers: { ...(_f = options.requestOptions) == null ? void 0 : _f.headers },
5526
+ onUploadProgress: options.requestOptions?.onUploadProgress,
5527
+ onDownloadProgress: options.requestOptions?.onDownloadProgress,
5528
+ headers: { ...options.requestOptions?.headers },
5537
5529
  onResponse: options.onResponse
5538
5530
  };
5539
5531
  }
@@ -5569,13 +5561,12 @@ var require_restError2 = __commonJS({
5569
5561
  var import_restError = require_restError();
5570
5562
  var import_httpHeaders = require_httpHeaders();
5571
5563
  function createRestError2(messageOrResponse, response) {
5572
- var _a;
5573
5564
  const resp = typeof messageOrResponse === "string" ? response : messageOrResponse;
5574
- const internalError = ((_a = resp.body) == null ? void 0 : _a.error) ?? resp.body;
5575
- const message = typeof messageOrResponse === "string" ? messageOrResponse : (internalError == null ? void 0 : internalError.message) ?? `Unexpected status code: ${resp.status}`;
5565
+ const internalError = resp.body?.error ?? resp.body;
5566
+ const message = typeof messageOrResponse === "string" ? messageOrResponse : internalError?.message ?? `Unexpected status code: ${resp.status}`;
5576
5567
  return new import_restError.RestError(message, {
5577
5568
  statusCode: statusCodeToNumber(resp.status),
5578
- code: internalError == null ? void 0 : internalError.code,
5569
+ code: internalError?.code,
5579
5570
  request: resp.request,
5580
5571
  response: toPipelineResponse(resp)
5581
5572
  });
@@ -6283,18 +6274,17 @@ var require_aborterUtils = __commonJS({
6283
6274
  Object.defineProperty(exports, "__esModule", { value: true });
6284
6275
  exports.cancelablePromiseRace = cancelablePromiseRace;
6285
6276
  async function cancelablePromiseRace(abortablePromiseBuilders, options) {
6286
- var _a, _b;
6287
6277
  const aborter = new AbortController();
6288
6278
  function abortHandler() {
6289
6279
  aborter.abort();
6290
6280
  }
6291
6281
  __name(abortHandler, "abortHandler");
6292
- (_a = options == null ? void 0 : options.abortSignal) == null ? void 0 : _a.addEventListener("abort", abortHandler);
6282
+ options?.abortSignal?.addEventListener("abort", abortHandler);
6293
6283
  try {
6294
6284
  return await Promise.race(abortablePromiseBuilders.map((p) => p({ abortSignal: aborter.signal })));
6295
6285
  } finally {
6296
6286
  aborter.abort();
6297
- (_b = options == null ? void 0 : options.abortSignal) == null ? void 0 : _b.removeEventListener("abort", abortHandler);
6287
+ options?.abortSignal?.removeEventListener("abort", abortHandler);
6298
6288
  }
6299
6289
  }
6300
6290
  __name(cancelablePromiseRace, "cancelablePromiseRace");
@@ -6307,14 +6297,15 @@ var require_AbortError2 = __commonJS({
6307
6297
  "use strict";
6308
6298
  Object.defineProperty(exports, "__esModule", { value: true });
6309
6299
  exports.AbortError = void 0;
6310
- var _AbortError = class _AbortError extends Error {
6300
+ var AbortError2 = class extends Error {
6301
+ static {
6302
+ __name(this, "AbortError");
6303
+ }
6311
6304
  constructor(message) {
6312
6305
  super(message);
6313
6306
  this.name = "AbortError";
6314
6307
  }
6315
6308
  };
6316
- __name(_AbortError, "AbortError");
6317
- var AbortError2 = _AbortError;
6318
6309
  exports.AbortError = AbortError2;
6319
6310
  }
6320
6311
  });
@@ -6347,16 +6338,16 @@ var require_createAbortablePromise = __commonJS({
6347
6338
  }
6348
6339
  __name(rejectOnAbort, "rejectOnAbort");
6349
6340
  function removeListeners() {
6350
- abortSignal == null ? void 0 : abortSignal.removeEventListener("abort", onAbort);
6341
+ abortSignal?.removeEventListener("abort", onAbort);
6351
6342
  }
6352
6343
  __name(removeListeners, "removeListeners");
6353
6344
  function onAbort() {
6354
- cleanupBeforeAbort == null ? void 0 : cleanupBeforeAbort();
6345
+ cleanupBeforeAbort?.();
6355
6346
  removeListeners();
6356
6347
  rejectOnAbort();
6357
6348
  }
6358
6349
  __name(onAbort, "onAbort");
6359
- if (abortSignal == null ? void 0 : abortSignal.aborted) {
6350
+ if (abortSignal?.aborted) {
6360
6351
  return rejectOnAbort();
6361
6352
  }
6362
6353
  try {
@@ -6370,7 +6361,7 @@ var require_createAbortablePromise = __commonJS({
6370
6361
  } catch (err) {
6371
6362
  reject(err);
6372
6363
  }
6373
- abortSignal == null ? void 0 : abortSignal.addEventListener("abort", onAbort);
6364
+ abortSignal?.addEventListener("abort", onAbort);
6374
6365
  });
6375
6366
  }
6376
6367
  __name(createAbortablePromise, "createAbortablePromise");
@@ -6995,7 +6986,10 @@ var require_tracingContext = __commonJS({
6995
6986
  return context;
6996
6987
  }
6997
6988
  __name(createTracingContext, "createTracingContext");
6998
- var _TracingContextImpl = class _TracingContextImpl {
6989
+ var TracingContextImpl = class _TracingContextImpl {
6990
+ static {
6991
+ __name(this, "TracingContextImpl");
6992
+ }
6999
6993
  _contextMap;
7000
6994
  constructor(initialContext) {
7001
6995
  this._contextMap = initialContext instanceof _TracingContextImpl ? new Map(initialContext._contextMap) : /* @__PURE__ */ new Map();
@@ -7014,8 +7008,6 @@ var require_tracingContext = __commonJS({
7014
7008
  return newContext;
7015
7009
  }
7016
7010
  };
7017
- __name(_TracingContextImpl, "TracingContextImpl");
7018
- var TracingContextImpl = _TracingContextImpl;
7019
7011
  exports.TracingContextImpl = TracingContextImpl;
7020
7012
  }
7021
7013
  });
@@ -7092,12 +7084,11 @@ var require_tracingClient = __commonJS({
7092
7084
  function createTracingClient(options) {
7093
7085
  const { namespace, packageName, packageVersion } = options;
7094
7086
  function startSpan(name3, operationOptions, spanOptions) {
7095
- var _a;
7096
7087
  const startSpanResult = (0, instrumenter_js_1.getInstrumenter)().startSpan(name3, {
7097
7088
  ...spanOptions,
7098
7089
  packageName,
7099
7090
  packageVersion,
7100
- tracingContext: (_a = operationOptions == null ? void 0 : operationOptions.tracingOptions) == null ? void 0 : _a.tracingContext
7091
+ tracingContext: operationOptions?.tracingOptions?.tracingContext
7101
7092
  });
7102
7093
  let tracingContext = startSpanResult.tracingContext;
7103
7094
  const span = startSpanResult.span;
@@ -7106,7 +7097,7 @@ var require_tracingClient = __commonJS({
7106
7097
  }
7107
7098
  span.setAttribute("az.namespace", tracingContext.getValue(tracingContext_js_1.knownContextKeys.namespace));
7108
7099
  const updatedOptions = Object.assign({}, operationOptions, {
7109
- tracingOptions: { ...operationOptions == null ? void 0 : operationOptions.tracingOptions, tracingContext }
7100
+ tracingOptions: { ...operationOptions?.tracingOptions, tracingContext }
7110
7101
  });
7111
7102
  return {
7112
7103
  span,
@@ -7445,7 +7436,7 @@ var require_wrapAbortSignalLikePolicy = __commonJS({
7445
7436
  try {
7446
7437
  return await next(request);
7447
7438
  } finally {
7448
- cleanup == null ? void 0 : cleanup();
7439
+ cleanup?.();
7449
7440
  }
7450
7441
  }, "sendRequest")
7451
7442
  };
@@ -7495,7 +7486,6 @@ var require_createPipelineFromOptions2 = __commonJS({
7495
7486
  var import_tracingPolicy = require_tracingPolicy();
7496
7487
  var import_wrapAbortSignalLikePolicy = require_wrapAbortSignalLikePolicy();
7497
7488
  function createPipelineFromOptions2(options) {
7498
- var _a;
7499
7489
  const pipeline = (0, import_pipeline.createEmptyPipeline)();
7500
7490
  if (import_core_util.isNodeLike) {
7501
7491
  if (options.agent) {
@@ -7510,7 +7500,7 @@ var require_createPipelineFromOptions2 = __commonJS({
7510
7500
  pipeline.addPolicy((0, import_wrapAbortSignalLikePolicy.wrapAbortSignalLikePolicy)());
7511
7501
  pipeline.addPolicy((0, import_formDataPolicy.formDataPolicy)(), { beforePolicies: [import_multipartPolicy.multipartPolicyName] });
7512
7502
  pipeline.addPolicy((0, import_userAgentPolicy.userAgentPolicy)(options.userAgentOptions));
7513
- pipeline.addPolicy((0, import_setClientRequestIdPolicy.setClientRequestIdPolicy)((_a = options.telemetryOptions) == null ? void 0 : _a.clientRequestIdHeaderName));
7503
+ pipeline.addPolicy((0, import_setClientRequestIdPolicy.setClientRequestIdPolicy)(options.telemetryOptions?.clientRequestIdHeaderName));
7514
7504
  pipeline.addPolicy((0, import_multipartPolicy.multipartPolicy)(), { afterPhase: "Deserialize" });
7515
7505
  pipeline.addPolicy((0, import_defaultRetryPolicy.defaultRetryPolicy)(options.retryOptions), { phase: "Retry" });
7516
7506
  pipeline.addPolicy((0, import_tracingPolicy.tracingPolicy)({ ...options.userAgentOptions, ...options.loggingOptions }), {
@@ -7562,7 +7552,7 @@ var require_defaultHttpClient2 = __commonJS({
7562
7552
  request.abortSignal = abortSignal;
7563
7553
  return await client.sendRequest(request);
7564
7554
  } finally {
7565
- cleanup == null ? void 0 : cleanup();
7555
+ cleanup?.();
7566
7556
  }
7567
7557
  }
7568
7558
  };
@@ -7864,10 +7854,10 @@ var require_tokenCycler = __commonJS({
7864
7854
  if (cycler.isRefreshing) {
7865
7855
  return false;
7866
7856
  }
7867
- if ((token == null ? void 0 : token.refreshAfterTimestamp) && token.refreshAfterTimestamp < Date.now()) {
7857
+ if (token?.refreshAfterTimestamp && token.refreshAfterTimestamp < Date.now()) {
7868
7858
  return true;
7869
7859
  }
7870
- return ((token == null ? void 0 : token.expiresOnTimestamp) ?? 0) - options.refreshWindowInMs < Date.now();
7860
+ return (token?.expiresOnTimestamp ?? 0) - options.refreshWindowInMs < Date.now();
7871
7861
  },
7872
7862
  /**
7873
7863
  * Produces true if the cycler MUST refresh (null or nearly-expired
@@ -7884,7 +7874,7 @@ var require_tokenCycler = __commonJS({
7884
7874
  tryGetAccessToken,
7885
7875
  options.retryIntervalInMs,
7886
7876
  // If we don't have a token, then we should timeout immediately
7887
- (token == null ? void 0 : token.expiresOnTimestamp) ?? Date.now()
7877
+ token?.expiresOnTimestamp ?? Date.now()
7888
7878
  ).then((_token) => {
7889
7879
  refreshWorker = null;
7890
7880
  token = _token;
@@ -7997,12 +7987,11 @@ var require_bearerTokenAuthenticationPolicy = __commonJS({
7997
7987
  }
7998
7988
  __name(authorizeRequestOnCaeChallenge, "authorizeRequestOnCaeChallenge");
7999
7989
  function bearerTokenAuthenticationPolicy2(options) {
8000
- var _a, _b;
8001
7990
  const { credential, scopes, challengeCallbacks } = options;
8002
7991
  const logger = options.logger || import_log.logger;
8003
7992
  const callbacks = {
8004
- authorizeRequest: ((_a = challengeCallbacks == null ? void 0 : challengeCallbacks.authorizeRequest) == null ? void 0 : _a.bind(challengeCallbacks)) ?? defaultAuthorizeRequest,
8005
- authorizeRequestOnChallenge: (_b = challengeCallbacks == null ? void 0 : challengeCallbacks.authorizeRequestOnChallenge) == null ? void 0 : _b.bind(challengeCallbacks)
7993
+ authorizeRequest: challengeCallbacks?.authorizeRequest?.bind(challengeCallbacks) ?? defaultAuthorizeRequest,
7994
+ authorizeRequestOnChallenge: challengeCallbacks?.authorizeRequestOnChallenge?.bind(challengeCallbacks)
8006
7995
  };
8007
7996
  const getAccessToken = credential ? (0, import_tokenCycler.createTokenCycler)(
8008
7997
  credential
@@ -8132,14 +8121,13 @@ var require_bearerTokenAuthenticationPolicy = __commonJS({
8132
8121
  }
8133
8122
  __name(parseChallenges, "parseChallenges");
8134
8123
  function getCaeChallengeClaims(challenges) {
8135
- var _a;
8136
8124
  if (!challenges) {
8137
8125
  return;
8138
8126
  }
8139
8127
  const parsedChallenges = parseChallenges(challenges);
8140
- return (_a = parsedChallenges.find(
8128
+ return parsedChallenges.find(
8141
8129
  (x) => x.scheme === "Bearer" && x.params.claims && x.params.error === "insufficient_claims"
8142
- )) == null ? void 0 : _a.params.claims;
8130
+ )?.params.claims;
8143
8131
  }
8144
8132
  __name(getCaeChallengeClaims, "getCaeChallengeClaims");
8145
8133
  }
@@ -8221,13 +8209,12 @@ var require_auxiliaryAuthenticationHeaderPolicy = __commonJS({
8221
8209
  var auxiliaryAuthenticationHeaderPolicyName2 = "auxiliaryAuthenticationHeaderPolicy";
8222
8210
  var AUTHORIZATION_AUXILIARY_HEADER = "x-ms-authorization-auxiliary";
8223
8211
  async function sendAuthorizeRequest(options) {
8224
- var _a;
8225
8212
  const { scopes, getAccessToken, request } = options;
8226
8213
  const getTokenOptions = {
8227
8214
  abortSignal: request.abortSignal,
8228
8215
  tracingOptions: request.tracingOptions
8229
8216
  };
8230
- return ((_a = await getAccessToken(scopes, getTokenOptions)) == null ? void 0 : _a.token) ?? "";
8217
+ return (await getAccessToken(scopes, getTokenOptions))?.token ?? "";
8231
8218
  }
8232
8219
  __name(sendAuthorizeRequest, "sendAuthorizeRequest");
8233
8220
  function auxiliaryAuthenticationHeaderPolicy2(options) {
@@ -8488,16 +8475,15 @@ var require_deserializationPolicy = __commonJS({
8488
8475
  var defaultXmlContentTypes = ["application/xml", "application/atom+xml"];
8489
8476
  exports.deserializationPolicyName = "deserializationPolicy";
8490
8477
  function deserializationPolicy(options = {}) {
8491
- var _a, _b;
8492
- const jsonContentTypes = ((_a = options.expectedContentTypes) == null ? void 0 : _a.json) ?? defaultJsonContentTypes;
8493
- const xmlContentTypes = ((_b = options.expectedContentTypes) == null ? void 0 : _b.xml) ?? defaultXmlContentTypes;
8478
+ const jsonContentTypes = options.expectedContentTypes?.json ?? defaultJsonContentTypes;
8479
+ const xmlContentTypes = options.expectedContentTypes?.xml ?? defaultXmlContentTypes;
8494
8480
  const parseXML = options.parseXML;
8495
8481
  const serializerOptions = options.serializerOptions;
8496
8482
  const updatedOptions = {
8497
8483
  xml: {
8498
- rootName: (serializerOptions == null ? void 0 : serializerOptions.xml.rootName) ?? "",
8499
- includeRoot: (serializerOptions == null ? void 0 : serializerOptions.xml.includeRoot) ?? false,
8500
- xmlCharKey: (serializerOptions == null ? void 0 : serializerOptions.xml.xmlCharKey) ?? interfaces_js_1.XML_CHARKEY
8484
+ rootName: serializerOptions?.xml.rootName ?? "",
8485
+ includeRoot: serializerOptions?.xml.includeRoot ?? false,
8486
+ xmlCharKey: serializerOptions?.xml.xmlCharKey ?? interfaces_js_1.XML_CHARKEY
8501
8487
  }
8502
8488
  };
8503
8489
  return {
@@ -8513,12 +8499,12 @@ var require_deserializationPolicy = __commonJS({
8513
8499
  let result;
8514
8500
  const request = parsedResponse.request;
8515
8501
  const operationInfo = (0, operationHelpers_js_1.getOperationRequestInfo)(request);
8516
- const operationSpec = operationInfo == null ? void 0 : operationInfo.operationSpec;
8502
+ const operationSpec = operationInfo?.operationSpec;
8517
8503
  if (operationSpec) {
8518
- if (!(operationInfo == null ? void 0 : operationInfo.operationResponseGetter)) {
8504
+ if (!operationInfo?.operationResponseGetter) {
8519
8505
  result = operationSpec.responses[parsedResponse.status];
8520
8506
  } else {
8521
- result = operationInfo == null ? void 0 : operationInfo.operationResponseGetter(operationSpec, parsedResponse);
8507
+ result = operationInfo?.operationResponseGetter(operationSpec, parsedResponse);
8522
8508
  }
8523
8509
  }
8524
8510
  return result;
@@ -8527,7 +8513,7 @@ var require_deserializationPolicy = __commonJS({
8527
8513
  function shouldDeserializeResponse(parsedResponse) {
8528
8514
  const request = parsedResponse.request;
8529
8515
  const operationInfo = (0, operationHelpers_js_1.getOperationRequestInfo)(request);
8530
- const shouldDeserialize = operationInfo == null ? void 0 : operationInfo.shouldDeserialize;
8516
+ const shouldDeserialize = operationInfo?.shouldDeserialize;
8531
8517
  let result;
8532
8518
  if (shouldDeserialize === void 0) {
8533
8519
  result = true;
@@ -8545,7 +8531,7 @@ var require_deserializationPolicy = __commonJS({
8545
8531
  return parsedResponse;
8546
8532
  }
8547
8533
  const operationInfo = (0, operationHelpers_js_1.getOperationRequestInfo)(parsedResponse.request);
8548
- const operationSpec = operationInfo == null ? void 0 : operationInfo.operationSpec;
8534
+ const operationSpec = operationInfo?.operationSpec;
8549
8535
  if (!operationSpec || !operationSpec.responses) {
8550
8536
  return parsedResponse;
8551
8537
  }
@@ -8588,7 +8574,6 @@ var require_deserializationPolicy = __commonJS({
8588
8574
  }
8589
8575
  __name(isOperationSpecEmpty, "isOperationSpecEmpty");
8590
8576
  function handleErrorResponse(parsedResponse, operationSpec, responseSpec, options) {
8591
- var _a, _b, _c, _d, _e;
8592
8577
  const isSuccessByStatus = 200 <= parsedResponse.status && parsedResponse.status < 300;
8593
8578
  const isExpectedStatusCode = isOperationSpecEmpty(operationSpec) ? isSuccessByStatus : !!responseSpec;
8594
8579
  if (isExpectedStatusCode) {
@@ -8601,17 +8586,17 @@ var require_deserializationPolicy = __commonJS({
8601
8586
  }
8602
8587
  }
8603
8588
  const errorResponseSpec = responseSpec ?? operationSpec.responses.default;
8604
- const initialErrorMessage = ((_a = parsedResponse.request.streamResponseStatusCodes) == null ? void 0 : _a.has(parsedResponse.status)) ? `Unexpected status code: ${parsedResponse.status}` : parsedResponse.bodyAsText;
8589
+ const initialErrorMessage = parsedResponse.request.streamResponseStatusCodes?.has(parsedResponse.status) ? `Unexpected status code: ${parsedResponse.status}` : parsedResponse.bodyAsText;
8605
8590
  const error = new core_rest_pipeline_1.RestError(initialErrorMessage, {
8606
8591
  statusCode: parsedResponse.status,
8607
8592
  request: parsedResponse.request,
8608
8593
  response: parsedResponse
8609
8594
  });
8610
- if (!errorResponseSpec && !(((_c = (_b = parsedResponse.parsedBody) == null ? void 0 : _b.error) == null ? void 0 : _c.code) && ((_e = (_d = parsedResponse.parsedBody) == null ? void 0 : _d.error) == null ? void 0 : _e.message))) {
8595
+ if (!errorResponseSpec && !(parsedResponse.parsedBody?.error?.code && parsedResponse.parsedBody?.error?.message)) {
8611
8596
  throw error;
8612
8597
  }
8613
- const defaultBodyMapper = errorResponseSpec == null ? void 0 : errorResponseSpec.bodyMapper;
8614
- const defaultHeadersMapper = errorResponseSpec == null ? void 0 : errorResponseSpec.headersMapper;
8598
+ const defaultBodyMapper = errorResponseSpec?.bodyMapper;
8599
+ const defaultHeadersMapper = errorResponseSpec?.headersMapper;
8615
8600
  try {
8616
8601
  if (parsedResponse.parsedBody) {
8617
8602
  const parsedBody = parsedResponse.parsedBody;
@@ -8646,8 +8631,7 @@ var require_deserializationPolicy = __commonJS({
8646
8631
  }
8647
8632
  __name(handleErrorResponse, "handleErrorResponse");
8648
8633
  async function parse(jsonContentTypes, xmlContentTypes, operationResponse, opts, parseXML) {
8649
- var _a;
8650
- if (!((_a = operationResponse.request.streamResponseStatusCodes) == null ? void 0 : _a.has(operationResponse.status)) && operationResponse.bodyAsText) {
8634
+ if (!operationResponse.request.streamResponseStatusCodes?.has(operationResponse.status) && operationResponse.bodyAsText) {
8651
8635
  const text = operationResponse.bodyAsText;
8652
8636
  const contentType = operationResponse.headers.get("Content-Type") || "";
8653
8637
  const contentComponents = !contentType ? [] : contentType.split(";").map((component) => component.toLowerCase());
@@ -8736,8 +8720,8 @@ var require_serializationPolicy = __commonJS({
8736
8720
  name: exports.serializationPolicyName,
8737
8721
  async sendRequest(request, next) {
8738
8722
  const operationInfo = (0, operationHelpers_js_1.getOperationRequestInfo)(request);
8739
- const operationSpec = operationInfo == null ? void 0 : operationInfo.operationSpec;
8740
- const operationArguments = operationInfo == null ? void 0 : operationInfo.operationArguments;
8723
+ const operationSpec = operationInfo?.operationSpec;
8724
+ const operationArguments = operationInfo?.operationArguments;
8741
8725
  if (operationSpec && operationArguments) {
8742
8726
  serializeHeaders(request, operationArguments, operationSpec);
8743
8727
  serializeRequestBody(request, operationArguments, operationSpec, stringifyXML);
@@ -8748,7 +8732,6 @@ var require_serializationPolicy = __commonJS({
8748
8732
  }
8749
8733
  __name(serializationPolicy, "serializationPolicy");
8750
8734
  function serializeHeaders(request, operationArguments, operationSpec) {
8751
- var _a, _b;
8752
8735
  if (operationSpec.headerParameters) {
8753
8736
  for (const headerParameter of operationSpec.headerParameters) {
8754
8737
  let headerValue = (0, operationHelpers_js_1.getOperationArgumentValueFromParameter)(operationArguments, headerParameter);
@@ -8765,7 +8748,7 @@ var require_serializationPolicy = __commonJS({
8765
8748
  }
8766
8749
  }
8767
8750
  }
8768
- const customHeaders = (_b = (_a = operationArguments.options) == null ? void 0 : _a.requestOptions) == null ? void 0 : _b.customHeaders;
8751
+ const customHeaders = operationArguments.options?.requestOptions?.customHeaders;
8769
8752
  if (customHeaders) {
8770
8753
  for (const customHeaderName of Object.keys(customHeaders)) {
8771
8754
  request.headers.set(customHeaderName, customHeaders[customHeaderName]);
@@ -8776,13 +8759,12 @@ var require_serializationPolicy = __commonJS({
8776
8759
  function serializeRequestBody(request, operationArguments, operationSpec, stringifyXML = function() {
8777
8760
  throw new Error("XML serialization unsupported!");
8778
8761
  }) {
8779
- var _a, _b;
8780
- const serializerOptions = (_a = operationArguments.options) == null ? void 0 : _a.serializerOptions;
8762
+ const serializerOptions = operationArguments.options?.serializerOptions;
8781
8763
  const updatedOptions = {
8782
8764
  xml: {
8783
- rootName: (serializerOptions == null ? void 0 : serializerOptions.xml.rootName) ?? "",
8784
- includeRoot: (serializerOptions == null ? void 0 : serializerOptions.xml.includeRoot) ?? false,
8785
- xmlCharKey: (serializerOptions == null ? void 0 : serializerOptions.xml.xmlCharKey) ?? interfaces_js_1.XML_CHARKEY
8765
+ rootName: serializerOptions?.xml.rootName ?? "",
8766
+ includeRoot: serializerOptions?.xml.includeRoot ?? false,
8767
+ xmlCharKey: serializerOptions?.xml.xmlCharKey ?? interfaces_js_1.XML_CHARKEY
8786
8768
  }
8787
8769
  };
8788
8770
  const xmlCharKey = updatedOptions.xml.xmlCharKey;
@@ -8807,7 +8789,7 @@ var require_serializationPolicy = __commonJS({
8807
8789
  xmlCharKey
8808
8790
  });
8809
8791
  }
8810
- } else if (typeName === serializer_js_1.MapperTypeNames.String && (((_b = operationSpec.contentType) == null ? void 0 : _b.match("text/plain")) || operationSpec.mediaType === "text")) {
8792
+ } else if (typeName === serializer_js_1.MapperTypeNames.String && (operationSpec.contentType?.match("text/plain") || operationSpec.mediaType === "text")) {
8811
8793
  return;
8812
8794
  } else if (!isStream) {
8813
8795
  request.body = JSON.stringify(request.body);
@@ -8944,9 +8926,8 @@ var require_urlHelpers2 = __commonJS({
8944
8926
  }
8945
8927
  __name(replaceAll, "replaceAll");
8946
8928
  function calculateUrlReplacements(operationSpec, operationArguments, fallbackObject) {
8947
- var _a;
8948
8929
  const result = /* @__PURE__ */ new Map();
8949
- if ((_a = operationSpec.urlParameters) == null ? void 0 : _a.length) {
8930
+ if (operationSpec.urlParameters?.length) {
8950
8931
  for (const urlParameter of operationSpec.urlParameters) {
8951
8932
  let urlParameterValue = (0, operationHelpers_js_1.getOperationArgumentValueFromParameter)(operationArguments, urlParameter, fallbackObject);
8952
8933
  const parameterPathString = (0, interfaceHelpers_js_1.getPathStringFromParameter)(urlParameter);
@@ -8992,10 +8973,9 @@ var require_urlHelpers2 = __commonJS({
8992
8973
  }
8993
8974
  __name(appendPath, "appendPath");
8994
8975
  function calculateQueryParameters(operationSpec, operationArguments, fallbackObject) {
8995
- var _a;
8996
8976
  const result = /* @__PURE__ */ new Map();
8997
8977
  const sequenceParams = /* @__PURE__ */ new Set();
8998
- if ((_a = operationSpec.queryParameters) == null ? void 0 : _a.length) {
8978
+ if (operationSpec.queryParameters?.length) {
8999
8979
  for (const queryParameter of operationSpec.queryParameters) {
9000
8980
  if (queryParameter.mapper.type.name === "Sequence" && queryParameter.mapper.serializedName) {
9001
8981
  sequenceParams.add(queryParameter.mapper.serializedName);
@@ -9135,7 +9115,10 @@ var require_serviceClient = __commonJS({
9135
9115
  var urlHelpers_js_1 = require_urlHelpers2();
9136
9116
  var interfaceHelpers_js_1 = require_interfaceHelpers();
9137
9117
  var log_js_1 = require_log3();
9138
- var _ServiceClient = class _ServiceClient {
9118
+ var ServiceClient = class {
9119
+ static {
9120
+ __name(this, "ServiceClient");
9121
+ }
9139
9122
  /**
9140
9123
  * If specified, this is the base URI that requests will be made against for this ServiceClient.
9141
9124
  * If it is not specified, then all OperationSpecs must contain a baseUrl property.
@@ -9163,7 +9146,6 @@ var require_serviceClient = __commonJS({
9163
9146
  * @param options - The service client options that govern the behavior of the client.
9164
9147
  */
9165
9148
  constructor(options = {}) {
9166
- var _a;
9167
9149
  this._requestContentType = options.requestContentType;
9168
9150
  this._endpoint = options.endpoint ?? options.baseUri;
9169
9151
  if (options.baseUri) {
@@ -9172,7 +9154,7 @@ var require_serviceClient = __commonJS({
9172
9154
  this._allowInsecureConnection = options.allowInsecureConnection;
9173
9155
  this._httpClient = options.httpClient || (0, httpClientCache_js_1.getCachedDefaultHttpClient)();
9174
9156
  this.pipeline = options.pipeline || createDefaultPipeline(options);
9175
- if ((_a = options.additionalPolicies) == null ? void 0 : _a.length) {
9157
+ if (options.additionalPolicies?.length) {
9176
9158
  for (const { policy, position } of options.additionalPolicies) {
9177
9159
  const afterPhase = position === "perRetry" ? "Sign" : void 0;
9178
9160
  this.pipeline.addPolicy(policy, {
@@ -9246,16 +9228,16 @@ var require_serviceClient = __commonJS({
9246
9228
  try {
9247
9229
  const rawResponse = await this.sendRequest(request);
9248
9230
  const flatResponse = (0, utils_js_1.flattenResponse)(rawResponse, operationSpec.responses[rawResponse.status]);
9249
- if (options == null ? void 0 : options.onResponse) {
9231
+ if (options?.onResponse) {
9250
9232
  options.onResponse(rawResponse, flatResponse);
9251
9233
  }
9252
9234
  return flatResponse;
9253
9235
  } catch (error) {
9254
- if (typeof error === "object" && (error == null ? void 0 : error.response)) {
9236
+ if (typeof error === "object" && error?.response) {
9255
9237
  const rawResponse = error.response;
9256
9238
  const flatResponse = (0, utils_js_1.flattenResponse)(rawResponse, operationSpec.responses[error.statusCode] || operationSpec.responses["default"]);
9257
9239
  error.details = flatResponse;
9258
- if (options == null ? void 0 : options.onResponse) {
9240
+ if (options?.onResponse) {
9259
9241
  options.onResponse(rawResponse, flatResponse, error);
9260
9242
  }
9261
9243
  }
@@ -9263,8 +9245,6 @@ var require_serviceClient = __commonJS({
9263
9245
  }
9264
9246
  }
9265
9247
  };
9266
- __name(_ServiceClient, "ServiceClient");
9267
- var ServiceClient = _ServiceClient;
9268
9248
  exports.ServiceClient = ServiceClient;
9269
9249
  function createDefaultPipeline(options) {
9270
9250
  const credentialScopes = getCredentialScopes(options);
@@ -9495,7 +9475,10 @@ var require_dist3 = __commonJS({
9495
9475
  Object.defineProperty(exports, "__esModule", { value: true });
9496
9476
  var listenersMap = /* @__PURE__ */ new WeakMap();
9497
9477
  var abortedMap = /* @__PURE__ */ new WeakMap();
9498
- var _AbortSignal = class _AbortSignal {
9478
+ var AbortSignal2 = class _AbortSignal {
9479
+ static {
9480
+ __name(this, "AbortSignal");
9481
+ }
9499
9482
  constructor() {
9500
9483
  this.onabort = null;
9501
9484
  listenersMap.set(this, []);
@@ -9556,8 +9539,6 @@ var require_dist3 = __commonJS({
9556
9539
  throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.");
9557
9540
  }
9558
9541
  };
9559
- __name(_AbortSignal, "AbortSignal");
9560
- var AbortSignal2 = _AbortSignal;
9561
9542
  function abortSignal(signal) {
9562
9543
  if (signal.aborted) {
9563
9544
  return;
@@ -9574,15 +9555,19 @@ var require_dist3 = __commonJS({
9574
9555
  abortedMap.set(signal, true);
9575
9556
  }
9576
9557
  __name(abortSignal, "abortSignal");
9577
- var _AbortError = class _AbortError extends Error {
9558
+ var AbortError2 = class extends Error {
9559
+ static {
9560
+ __name(this, "AbortError");
9561
+ }
9578
9562
  constructor(message) {
9579
9563
  super(message);
9580
9564
  this.name = "AbortError";
9581
9565
  }
9582
9566
  };
9583
- __name(_AbortError, "AbortError");
9584
- var AbortError2 = _AbortError;
9585
- var _AbortController = class _AbortController {
9567
+ var AbortController2 = class {
9568
+ static {
9569
+ __name(this, "AbortController");
9570
+ }
9586
9571
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
9587
9572
  constructor(parentSignals) {
9588
9573
  this._signal = new AbortSignal2();
@@ -9631,8 +9616,6 @@ var require_dist3 = __commonJS({
9631
9616
  return signal;
9632
9617
  }
9633
9618
  };
9634
- __name(_AbortController, "AbortController");
9635
- var AbortController2 = _AbortController;
9636
9619
  exports.AbortController = AbortController2;
9637
9620
  exports.AbortError = AbortError2;
9638
9621
  exports.AbortSignal = AbortSignal2;
@@ -9640,11 +9623,14 @@ var require_dist3 = __commonJS({
9640
9623
  });
9641
9624
 
9642
9625
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/serializer/Serializer.mjs
9643
- var _Serializer, Serializer;
9626
+ var Serializer;
9644
9627
  var init_Serializer = __esm({
9645
9628
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/serializer/Serializer.mjs"() {
9646
9629
  "use strict";
9647
- _Serializer = class _Serializer {
9630
+ Serializer = class {
9631
+ static {
9632
+ __name(this, "Serializer");
9633
+ }
9648
9634
  /**
9649
9635
  * serialize the JSON blob
9650
9636
  * @param data
@@ -9659,7 +9645,6 @@ var init_Serializer = __esm({
9659
9645
  static serializeAccounts(accCache) {
9660
9646
  const accounts = {};
9661
9647
  Object.keys(accCache).map(function(key) {
9662
- var _a;
9663
9648
  const accountEntity = accCache[key];
9664
9649
  accounts[key] = {
9665
9650
  home_account_id: accountEntity.homeAccountId,
@@ -9672,7 +9657,7 @@ var init_Serializer = __esm({
9672
9657
  client_info: accountEntity.clientInfo,
9673
9658
  last_modification_time: accountEntity.lastModificationTime,
9674
9659
  last_modification_app: accountEntity.lastModificationApp,
9675
- tenantProfiles: (_a = accountEntity.tenantProfiles) == null ? void 0 : _a.map((tenantProfile) => {
9660
+ tenantProfiles: accountEntity.tenantProfiles?.map((tenantProfile) => {
9676
9661
  return JSON.stringify(tenantProfile);
9677
9662
  })
9678
9663
  };
@@ -9778,8 +9763,6 @@ var init_Serializer = __esm({
9778
9763
  };
9779
9764
  }
9780
9765
  };
9781
- __name(_Serializer, "Serializer");
9782
- Serializer = _Serializer;
9783
9766
  }
9784
9767
  });
9785
9768
 
@@ -10038,7 +10021,7 @@ var init_AuthErrorCodes = __esm({
10038
10021
  function createAuthError(code, additionalMessage) {
10039
10022
  return new AuthError(code, additionalMessage ? `${AuthErrorMessages[code]} ${additionalMessage}` : AuthErrorMessages[code]);
10040
10023
  }
10041
- var AuthErrorMessages, AuthErrorMessage, _AuthError, AuthError;
10024
+ var AuthErrorMessages, AuthErrorMessage, AuthError;
10042
10025
  var init_AuthError = __esm({
10043
10026
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/error/AuthError.mjs"() {
10044
10027
  "use strict";
@@ -10058,7 +10041,10 @@ var init_AuthError = __esm({
10058
10041
  desc: AuthErrorMessages[postRequestFailed]
10059
10042
  }
10060
10043
  };
10061
- _AuthError = class _AuthError extends Error {
10044
+ AuthError = class _AuthError extends Error {
10045
+ static {
10046
+ __name(this, "AuthError");
10047
+ }
10062
10048
  constructor(errorCode, errorMessage, suberror) {
10063
10049
  const errorString = errorMessage ? `${errorCode}: ${errorMessage}` : errorCode;
10064
10050
  super(errorString);
@@ -10072,8 +10058,6 @@ var init_AuthError = __esm({
10072
10058
  this.correlationId = correlationId;
10073
10059
  }
10074
10060
  };
10075
- __name(_AuthError, "AuthError");
10076
- AuthError = _AuthError;
10077
10061
  __name(createAuthError, "createAuthError");
10078
10062
  }
10079
10063
  });
@@ -10181,7 +10165,7 @@ var init_ClientAuthErrorCodes = __esm({
10181
10165
  function createClientAuthError(errorCode, additionalMessage) {
10182
10166
  return new ClientAuthError(errorCode, additionalMessage);
10183
10167
  }
10184
- var ClientAuthErrorMessages, ClientAuthErrorMessage, _ClientAuthError, ClientAuthError;
10168
+ var ClientAuthErrorMessages, ClientAuthErrorMessage, ClientAuthError;
10185
10169
  var init_ClientAuthError = __esm({
10186
10170
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/error/ClientAuthError.mjs"() {
10187
10171
  "use strict";
@@ -10407,15 +10391,16 @@ var init_ClientAuthError = __esm({
10407
10391
  desc: ClientAuthErrorMessages[nestedAppAuthBridgeDisabled]
10408
10392
  }
10409
10393
  };
10410
- _ClientAuthError = class _ClientAuthError extends AuthError {
10394
+ ClientAuthError = class _ClientAuthError extends AuthError {
10395
+ static {
10396
+ __name(this, "ClientAuthError");
10397
+ }
10411
10398
  constructor(errorCode, additionalMessage) {
10412
10399
  super(errorCode, additionalMessage ? `${ClientAuthErrorMessages[errorCode]}: ${additionalMessage}` : ClientAuthErrorMessages[errorCode]);
10413
10400
  this.name = "ClientAuthError";
10414
10401
  Object.setPrototypeOf(this, _ClientAuthError.prototype);
10415
10402
  }
10416
10403
  };
10417
- __name(_ClientAuthError, "ClientAuthError");
10418
- ClientAuthError = _ClientAuthError;
10419
10404
  __name(createClientAuthError, "createClientAuthError");
10420
10405
  }
10421
10406
  });
@@ -10548,7 +10533,7 @@ var init_ClientConfigurationErrorCodes = __esm({
10548
10533
  function createClientConfigurationError(errorCode) {
10549
10534
  return new ClientConfigurationError(errorCode);
10550
10535
  }
10551
- var ClientConfigurationErrorMessages, ClientConfigurationErrorMessage, _ClientConfigurationError, ClientConfigurationError;
10536
+ var ClientConfigurationErrorMessages, ClientConfigurationErrorMessage, ClientConfigurationError;
10552
10537
  var init_ClientConfigurationError = __esm({
10553
10538
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/error/ClientConfigurationError.mjs"() {
10554
10539
  "use strict";
@@ -10668,25 +10653,29 @@ var init_ClientConfigurationError = __esm({
10668
10653
  desc: ClientConfigurationErrorMessages[authorityMismatch]
10669
10654
  }
10670
10655
  };
10671
- _ClientConfigurationError = class _ClientConfigurationError extends AuthError {
10656
+ ClientConfigurationError = class _ClientConfigurationError extends AuthError {
10657
+ static {
10658
+ __name(this, "ClientConfigurationError");
10659
+ }
10672
10660
  constructor(errorCode) {
10673
10661
  super(errorCode, ClientConfigurationErrorMessages[errorCode]);
10674
10662
  this.name = "ClientConfigurationError";
10675
10663
  Object.setPrototypeOf(this, _ClientConfigurationError.prototype);
10676
10664
  }
10677
10665
  };
10678
- __name(_ClientConfigurationError, "ClientConfigurationError");
10679
- ClientConfigurationError = _ClientConfigurationError;
10680
10666
  __name(createClientConfigurationError, "createClientConfigurationError");
10681
10667
  }
10682
10668
  });
10683
10669
 
10684
10670
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/utils/StringUtils.mjs
10685
- var _StringUtils, StringUtils;
10671
+ var StringUtils;
10686
10672
  var init_StringUtils = __esm({
10687
10673
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/utils/StringUtils.mjs"() {
10688
10674
  "use strict";
10689
- _StringUtils = class _StringUtils {
10675
+ StringUtils = class {
10676
+ static {
10677
+ __name(this, "StringUtils");
10678
+ }
10690
10679
  /**
10691
10680
  * Check if stringified object is empty
10692
10681
  * @param strObj
@@ -10764,8 +10753,6 @@ var init_StringUtils = __esm({
10764
10753
  return regex.test(input);
10765
10754
  }
10766
10755
  };
10767
- __name(_StringUtils, "StringUtils");
10768
- StringUtils = _StringUtils;
10769
10756
  }
10770
10757
  });
10771
10758
 
@@ -10809,7 +10796,7 @@ var init_UrlUtils = __esm({
10809
10796
  });
10810
10797
 
10811
10798
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/url/UrlString.mjs
10812
- var _UrlString, UrlString;
10799
+ var UrlString;
10813
10800
  var init_UrlString = __esm({
10814
10801
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/url/UrlString.mjs"() {
10815
10802
  "use strict";
@@ -10818,7 +10805,10 @@ var init_UrlString = __esm({
10818
10805
  init_Constants();
10819
10806
  init_UrlUtils();
10820
10807
  init_ClientConfigurationErrorCodes();
10821
- _UrlString = class _UrlString {
10808
+ UrlString = class _UrlString {
10809
+ static {
10810
+ __name(this, "UrlString");
10811
+ }
10822
10812
  get urlString() {
10823
10813
  return this._urlString;
10824
10814
  }
@@ -10949,31 +10939,28 @@ var init_UrlString = __esm({
10949
10939
  return !!getDeserializedResponse(response);
10950
10940
  }
10951
10941
  };
10952
- __name(_UrlString, "UrlString");
10953
- UrlString = _UrlString;
10954
10942
  }
10955
10943
  });
10956
10944
 
10957
10945
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/authority/AuthorityMetadata.mjs
10958
10946
  function getAliasesFromStaticSources(staticAuthorityOptions, logger) {
10959
- var _a;
10960
10947
  let staticAliases;
10961
10948
  const canonicalAuthority = staticAuthorityOptions.canonicalAuthority;
10962
10949
  if (canonicalAuthority) {
10963
10950
  const authorityHost = new UrlString(canonicalAuthority).getUrlComponents().HostNameAndPort;
10964
- staticAliases = getAliasesFromMetadata(authorityHost, (_a = staticAuthorityOptions.cloudDiscoveryMetadata) == null ? void 0 : _a.metadata, AuthorityMetadataSource.CONFIG, logger) || getAliasesFromMetadata(authorityHost, InstanceDiscoveryMetadata.metadata, AuthorityMetadataSource.HARDCODED_VALUES, logger) || staticAuthorityOptions.knownAuthorities;
10951
+ staticAliases = getAliasesFromMetadata(authorityHost, staticAuthorityOptions.cloudDiscoveryMetadata?.metadata, AuthorityMetadataSource.CONFIG, logger) || getAliasesFromMetadata(authorityHost, InstanceDiscoveryMetadata.metadata, AuthorityMetadataSource.HARDCODED_VALUES, logger) || staticAuthorityOptions.knownAuthorities;
10965
10952
  }
10966
10953
  return staticAliases || [];
10967
10954
  }
10968
10955
  function getAliasesFromMetadata(authorityHost, cloudDiscoveryMetadata, source, logger) {
10969
- logger == null ? void 0 : logger.trace(`getAliasesFromMetadata called with source: ${source}`);
10956
+ logger?.trace(`getAliasesFromMetadata called with source: ${source}`);
10970
10957
  if (authorityHost && cloudDiscoveryMetadata) {
10971
10958
  const metadata = getCloudDiscoveryMetadataFromNetworkResponse(cloudDiscoveryMetadata, authorityHost);
10972
10959
  if (metadata) {
10973
- logger == null ? void 0 : logger.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${source}, returning aliases`);
10960
+ logger?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${source}, returning aliases`);
10974
10961
  return metadata.aliases;
10975
10962
  } else {
10976
- logger == null ? void 0 : logger.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${source}`);
10963
+ logger?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${source}`);
10977
10964
  }
10978
10965
  }
10979
10966
  return null;
@@ -11595,14 +11582,14 @@ var init_FunctionWrappers = __esm({
11595
11582
  invoke = /* @__PURE__ */ __name((callback, eventName, logger, telemetryClient, correlationId) => {
11596
11583
  return (...args) => {
11597
11584
  logger.trace(`Executing function ${eventName}`);
11598
- const inProgressEvent = telemetryClient == null ? void 0 : telemetryClient.startMeasurement(eventName, correlationId);
11585
+ const inProgressEvent = telemetryClient?.startMeasurement(eventName, correlationId);
11599
11586
  if (correlationId) {
11600
11587
  const eventCount = eventName + "CallCount";
11601
- telemetryClient == null ? void 0 : telemetryClient.incrementFields({ [eventCount]: 1 }, correlationId);
11588
+ telemetryClient?.incrementFields({ [eventCount]: 1 }, correlationId);
11602
11589
  }
11603
11590
  try {
11604
11591
  const result = callback(...args);
11605
- inProgressEvent == null ? void 0 : inProgressEvent.end({
11592
+ inProgressEvent?.end({
11606
11593
  success: true
11607
11594
  });
11608
11595
  logger.trace(`Returning result from ${eventName}`);
@@ -11614,7 +11601,7 @@ var init_FunctionWrappers = __esm({
11614
11601
  } catch (e2) {
11615
11602
  logger.trace("Unable to print error message.");
11616
11603
  }
11617
- inProgressEvent == null ? void 0 : inProgressEvent.end({
11604
+ inProgressEvent?.end({
11618
11605
  success: false
11619
11606
  }, e);
11620
11607
  throw e;
@@ -11624,15 +11611,15 @@ var init_FunctionWrappers = __esm({
11624
11611
  invokeAsync = /* @__PURE__ */ __name((callback, eventName, logger, telemetryClient, correlationId) => {
11625
11612
  return (...args) => {
11626
11613
  logger.trace(`Executing function ${eventName}`);
11627
- const inProgressEvent = telemetryClient == null ? void 0 : telemetryClient.startMeasurement(eventName, correlationId);
11614
+ const inProgressEvent = telemetryClient?.startMeasurement(eventName, correlationId);
11628
11615
  if (correlationId) {
11629
11616
  const eventCount = eventName + "CallCount";
11630
- telemetryClient == null ? void 0 : telemetryClient.incrementFields({ [eventCount]: 1 }, correlationId);
11617
+ telemetryClient?.incrementFields({ [eventCount]: 1 }, correlationId);
11631
11618
  }
11632
- telemetryClient == null ? void 0 : telemetryClient.setPreQueueTime(eventName, correlationId);
11619
+ telemetryClient?.setPreQueueTime(eventName, correlationId);
11633
11620
  return callback(...args).then((response) => {
11634
11621
  logger.trace(`Returning result from ${eventName}`);
11635
- inProgressEvent == null ? void 0 : inProgressEvent.end({
11622
+ inProgressEvent?.end({
11636
11623
  success: true
11637
11624
  });
11638
11625
  return response;
@@ -11643,7 +11630,7 @@ var init_FunctionWrappers = __esm({
11643
11630
  } catch (e2) {
11644
11631
  logger.trace("Unable to print error message.");
11645
11632
  }
11646
- inProgressEvent == null ? void 0 : inProgressEvent.end({
11633
+ inProgressEvent?.end({
11647
11634
  success: false
11648
11635
  }, e);
11649
11636
  throw e;
@@ -11654,14 +11641,17 @@ var init_FunctionWrappers = __esm({
11654
11641
  });
11655
11642
 
11656
11643
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/authority/RegionDiscovery.mjs
11657
- var _RegionDiscovery, RegionDiscovery;
11644
+ var RegionDiscovery;
11658
11645
  var init_RegionDiscovery = __esm({
11659
11646
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/authority/RegionDiscovery.mjs"() {
11660
11647
  "use strict";
11661
11648
  init_Constants();
11662
11649
  init_PerformanceEvent();
11663
11650
  init_FunctionWrappers();
11664
- _RegionDiscovery = class _RegionDiscovery {
11651
+ RegionDiscovery = class _RegionDiscovery {
11652
+ static {
11653
+ __name(this, "RegionDiscovery");
11654
+ }
11665
11655
  constructor(networkInterface, logger, performanceClient, correlationId) {
11666
11656
  this.networkInterface = networkInterface;
11667
11657
  this.logger = logger;
@@ -11674,8 +11664,7 @@ var init_RegionDiscovery = __esm({
11674
11664
  * @returns Promise<string | null>
11675
11665
  */
11676
11666
  async detectRegion(environmentRegion, regionDiscoveryMetadata) {
11677
- var _a;
11678
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
11667
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RegionDiscoveryDetectRegion, this.correlationId);
11679
11668
  let autodetectedRegionName = environmentRegion;
11680
11669
  if (!autodetectedRegionName) {
11681
11670
  const options = _RegionDiscovery.IMDS_OPTIONS;
@@ -11716,8 +11705,7 @@ var init_RegionDiscovery = __esm({
11716
11705
  * @returns Promise<NetworkResponse<string>>
11717
11706
  */
11718
11707
  async getRegionFromIMDS(version3, options) {
11719
- var _a;
11720
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryGetRegionFromIMDS, this.correlationId);
11708
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RegionDiscoveryGetRegionFromIMDS, this.correlationId);
11721
11709
  return this.networkInterface.sendGetRequestAsync(`${Constants.IMDS_ENDPOINT}?api-version=${version3}&format=text`, options, Constants.IMDS_TIMEOUT);
11722
11710
  }
11723
11711
  /**
@@ -11726,8 +11714,7 @@ var init_RegionDiscovery = __esm({
11726
11714
  * @returns Promise<string | null>
11727
11715
  */
11728
11716
  async getCurrentVersion(options) {
11729
- var _a;
11730
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RegionDiscoveryGetCurrentVersion, this.correlationId);
11717
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RegionDiscoveryGetCurrentVersion, this.correlationId);
11731
11718
  try {
11732
11719
  const response = await this.networkInterface.sendGetRequestAsync(`${Constants.IMDS_ENDPOINT}?format=json`, options);
11733
11720
  if (response.status === ResponseCodes.httpBadRequest && response.body && response.body["newest-versions"] && response.body["newest-versions"].length > 0) {
@@ -11739,8 +11726,6 @@ var init_RegionDiscovery = __esm({
11739
11726
  }
11740
11727
  }
11741
11728
  };
11742
- __name(_RegionDiscovery, "RegionDiscovery");
11743
- RegionDiscovery = _RegionDiscovery;
11744
11729
  RegionDiscovery.IMDS_OPTIONS = {
11745
11730
  headers: {
11746
11731
  Metadata: "true"
@@ -11825,7 +11810,6 @@ function createIdTokenEntity(homeAccountId, environment, idToken, clientId, tena
11825
11810
  return idTokenEntity;
11826
11811
  }
11827
11812
  function createAccessTokenEntity(homeAccountId, environment, accessToken, clientId, tenantId, scopes, expiresOn, extExpiresOn, base64Decode, refreshOn, tokenType, userAssertionHash, keyId, requestedClaims, requestedClaimsHash) {
11828
- var _a, _b;
11829
11813
  const atEntity = {
11830
11814
  homeAccountId,
11831
11815
  credentialType: CredentialType.ACCESS_TOKEN,
@@ -11849,12 +11833,12 @@ function createAccessTokenEntity(homeAccountId, environment, accessToken, client
11849
11833
  atEntity.requestedClaims = requestedClaims;
11850
11834
  atEntity.requestedClaimsHash = requestedClaimsHash;
11851
11835
  }
11852
- if (((_a = atEntity.tokenType) == null ? void 0 : _a.toLowerCase()) !== AuthenticationScheme.BEARER.toLowerCase()) {
11836
+ if (atEntity.tokenType?.toLowerCase() !== AuthenticationScheme.BEARER.toLowerCase()) {
11853
11837
  atEntity.credentialType = CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME;
11854
11838
  switch (atEntity.tokenType) {
11855
11839
  case AuthenticationScheme.POP:
11856
11840
  const tokenClaims = extractTokenClaims(accessToken, base64Decode);
11857
- if (!((_b = tokenClaims == null ? void 0 : tokenClaims.cnf) == null ? void 0 : _b.kid)) {
11841
+ if (!tokenClaims?.cnf?.kid) {
11858
11842
  throw createClientAuthError(tokenClaimsCnfRequiredForSignedJwt);
11859
11843
  }
11860
11844
  atEntity.keyId = tokenClaims.cnf.kid;
@@ -12024,10 +12008,9 @@ var init_CacheHelpers = __esm({
12024
12008
 
12025
12009
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/authority/Authority.mjs
12026
12010
  function getTenantFromAuthorityString(authority) {
12027
- var _a;
12028
12011
  const authorityUrl = new UrlString(authority);
12029
12012
  const authorityUrlComponents = authorityUrl.getUrlComponents();
12030
- const tenantId = (_a = authorityUrlComponents.PathSegments.slice(-1)[0]) == null ? void 0 : _a.toLowerCase();
12013
+ const tenantId = authorityUrlComponents.PathSegments.slice(-1)[0]?.toLowerCase();
12031
12014
  switch (tenantId) {
12032
12015
  case AADAuthorityConstants.COMMON:
12033
12016
  case AADAuthorityConstants.ORGANIZATIONS:
@@ -12056,7 +12039,7 @@ function buildStaticAuthorityOptions(authOptions) {
12056
12039
  cloudDiscoveryMetadata
12057
12040
  };
12058
12041
  }
12059
- var _Authority, Authority;
12042
+ var Authority;
12060
12043
  var init_Authority = __esm({
12061
12044
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/authority/Authority.mjs"() {
12062
12045
  "use strict";
@@ -12078,7 +12061,10 @@ var init_Authority = __esm({
12078
12061
  init_CacheHelpers();
12079
12062
  init_ClientAuthErrorCodes();
12080
12063
  init_ClientConfigurationErrorCodes();
12081
- _Authority = class _Authority {
12064
+ Authority = class _Authority {
12065
+ static {
12066
+ __name(this, "Authority");
12067
+ }
12082
12068
  constructor(authority, networkInterface, cacheManager, authorityOptions, logger, correlationId, performanceClient, managedIdentity) {
12083
12069
  this.canonicalAuthority = authority;
12084
12070
  this._canonicalAuthority.validateAsUri();
@@ -12288,8 +12274,7 @@ var init_Authority = __esm({
12288
12274
  * and the /authorize, /token and logout endpoints.
12289
12275
  */
12290
12276
  async resolveEndpointsAsync() {
12291
- var _a, _b;
12292
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityResolveEndpointsAsync, this.correlationId);
12277
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityResolveEndpointsAsync, this.correlationId);
12293
12278
  const metadataEntity = this.getCurrentMetadataEntity();
12294
12279
  const cloudDiscoverySource = await invokeAsync(this.updateCloudDiscoveryMetadata.bind(this), PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.logger, this.performanceClient, this.correlationId)(metadataEntity);
12295
12280
  this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, metadataEntity.preferred_network);
@@ -12297,7 +12282,7 @@ var init_Authority = __esm({
12297
12282
  this.updateCachedMetadata(metadataEntity, cloudDiscoverySource, {
12298
12283
  source: endpointSource
12299
12284
  });
12300
- (_b = this.performanceClient) == null ? void 0 : _b.addFields({
12285
+ this.performanceClient?.addFields({
12301
12286
  cloudDiscoverySource,
12302
12287
  authorityEndpointSource: endpointSource
12303
12288
  }, this.correlationId);
@@ -12335,7 +12320,7 @@ var init_Authority = __esm({
12335
12320
  * @param endpointMetadataResult
12336
12321
  */
12337
12322
  updateCachedMetadata(metadataEntity, cloudDiscoverySource, endpointMetadataResult) {
12338
- if (cloudDiscoverySource !== AuthorityMetadataSource.CACHE && (endpointMetadataResult == null ? void 0 : endpointMetadataResult.source) !== AuthorityMetadataSource.CACHE) {
12323
+ if (cloudDiscoverySource !== AuthorityMetadataSource.CACHE && endpointMetadataResult?.source !== AuthorityMetadataSource.CACHE) {
12339
12324
  metadataEntity.expiresAt = generateAuthorityMetadataExpiresAt();
12340
12325
  metadataEntity.canonical_authority = this.canonicalAuthority;
12341
12326
  }
@@ -12348,12 +12333,11 @@ var init_Authority = __esm({
12348
12333
  * @param metadataEntity
12349
12334
  */
12350
12335
  async updateEndpointMetadata(metadataEntity) {
12351
- var _a, _b, _c;
12352
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateEndpointMetadata, this.correlationId);
12336
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityUpdateEndpointMetadata, this.correlationId);
12353
12337
  const localMetadata = this.updateEndpointMetadataFromLocalSources(metadataEntity);
12354
12338
  if (localMetadata) {
12355
12339
  if (localMetadata.source === AuthorityMetadataSource.HARDCODED_VALUES) {
12356
- if ((_b = this.authorityOptions.azureRegionConfiguration) == null ? void 0 : _b.azureRegion) {
12340
+ if (this.authorityOptions.azureRegionConfiguration?.azureRegion) {
12357
12341
  if (localMetadata.metadata) {
12358
12342
  const hardcodedMetadata = await invokeAsync(this.updateMetadataWithRegionalInformation.bind(this), PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.logger, this.performanceClient, this.correlationId)(localMetadata.metadata);
12359
12343
  updateAuthorityEndpointMetadata(metadataEntity, hardcodedMetadata, false);
@@ -12365,7 +12349,7 @@ var init_Authority = __esm({
12365
12349
  }
12366
12350
  let metadata = await invokeAsync(this.getEndpointMetadataFromNetwork.bind(this), PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.logger, this.performanceClient, this.correlationId)();
12367
12351
  if (metadata) {
12368
- if ((_c = this.authorityOptions.azureRegionConfiguration) == null ? void 0 : _c.azureRegion) {
12352
+ if (this.authorityOptions.azureRegionConfiguration?.azureRegion) {
12369
12353
  metadata = await invokeAsync(this.updateMetadataWithRegionalInformation.bind(this), PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.logger, this.performanceClient, this.correlationId)(metadata);
12370
12354
  }
12371
12355
  updateAuthorityEndpointMetadata(metadataEntity, metadata, true);
@@ -12444,8 +12428,7 @@ var init_Authority = __esm({
12444
12428
  * @param hasHardcodedMetadata boolean
12445
12429
  */
12446
12430
  async getEndpointMetadataFromNetwork() {
12447
- var _a;
12448
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.correlationId);
12431
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityGetEndpointMetadataFromNetwork, this.correlationId);
12449
12432
  const options = {};
12450
12433
  const openIdConfigurationEndpoint = this.defaultOpenIdConfigurationEndpoint;
12451
12434
  this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${openIdConfigurationEndpoint}`);
@@ -12477,16 +12460,15 @@ var init_Authority = __esm({
12477
12460
  * User selected Azure region will be used if configured.
12478
12461
  */
12479
12462
  async updateMetadataWithRegionalInformation(metadata) {
12480
- var _a, _b, _c;
12481
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
12482
- const userConfiguredAzureRegion = (_b = this.authorityOptions.azureRegionConfiguration) == null ? void 0 : _b.azureRegion;
12463
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId);
12464
+ const userConfiguredAzureRegion = this.authorityOptions.azureRegionConfiguration?.azureRegion;
12483
12465
  if (userConfiguredAzureRegion) {
12484
12466
  if (userConfiguredAzureRegion !== Constants.AZURE_REGION_AUTO_DISCOVER_FLAG) {
12485
12467
  this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.CONFIGURED_NO_AUTO_DETECTION;
12486
12468
  this.regionDiscoveryMetadata.region_used = userConfiguredAzureRegion;
12487
12469
  return _Authority.replaceWithRegionalInformation(metadata, userConfiguredAzureRegion);
12488
12470
  }
12489
- const autodetectedRegionName = await invokeAsync(this.regionDiscovery.detectRegion.bind(this.regionDiscovery), PerformanceEvents.RegionDiscoveryDetectRegion, this.logger, this.performanceClient, this.correlationId)((_c = this.authorityOptions.azureRegionConfiguration) == null ? void 0 : _c.environmentRegion, this.regionDiscoveryMetadata);
12471
+ const autodetectedRegionName = await invokeAsync(this.regionDiscovery.detectRegion.bind(this.regionDiscovery), PerformanceEvents.RegionDiscoveryDetectRegion, this.logger, this.performanceClient, this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion, this.regionDiscoveryMetadata);
12490
12472
  if (autodetectedRegionName) {
12491
12473
  this.regionDiscoveryMetadata.region_outcome = RegionDiscoveryOutcomes.AUTO_DETECTION_REQUESTED_SUCCESSFUL;
12492
12474
  this.regionDiscoveryMetadata.region_used = autodetectedRegionName;
@@ -12503,8 +12485,7 @@ var init_Authority = __esm({
12503
12485
  * @returns AuthorityMetadataSource
12504
12486
  */
12505
12487
  async updateCloudDiscoveryMetadata(metadataEntity) {
12506
- var _a;
12507
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId);
12488
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId);
12508
12489
  const localMetadataSource = this.updateCloudDiscoveryMetadataFromLocalSources(metadataEntity);
12509
12490
  if (localMetadataSource) {
12510
12491
  return localMetadataSource;
@@ -12586,8 +12567,7 @@ var init_Authority = __esm({
12586
12567
  * @param hasHardcodedMetadata boolean
12587
12568
  */
12588
12569
  async getCloudDiscoveryMetadataFromNetwork() {
12589
- var _a;
12590
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
12570
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
12591
12571
  const instanceDiscoveryEndpoint = `${Constants.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`;
12592
12572
  const options = {};
12593
12573
  let match = null;
@@ -12761,8 +12741,6 @@ Error Description: ${typedError.message}`);
12761
12741
  return ciamAuthority;
12762
12742
  }
12763
12743
  };
12764
- __name(_Authority, "Authority");
12765
- Authority = _Authority;
12766
12744
  Authority.reservedTenantDomains = /* @__PURE__ */ new Set([
12767
12745
  "{tenant}",
12768
12746
  "{tenantid}",
@@ -12782,7 +12760,7 @@ __export(AuthorityFactory_exports, {
12782
12760
  createDiscoveredInstance: () => createDiscoveredInstance
12783
12761
  });
12784
12762
  async function createDiscoveredInstance(authorityUri, networkClient, cacheManager, authorityOptions, logger, correlationId, performanceClient) {
12785
- performanceClient == null ? void 0 : performanceClient.addQueueMeasurement(PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance, correlationId);
12763
+ performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityFactoryCreateDiscoveredInstance, correlationId);
12786
12764
  const authorityUriFinal = Authority.transformCIAMAuthority(formatAuthorityUri(authorityUri));
12787
12765
  const acquireTokenAuthority = new Authority(authorityUriFinal, networkClient, cacheManager, authorityOptions, logger, correlationId, performanceClient);
12788
12766
  try {
@@ -12981,7 +12959,7 @@ var init_ICrypto = __esm({
12981
12959
  });
12982
12960
 
12983
12961
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/logger/Logger.mjs
12984
- var LogLevel, _Logger, Logger;
12962
+ var LogLevel, Logger;
12985
12963
  var init_Logger = __esm({
12986
12964
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/logger/Logger.mjs"() {
12987
12965
  "use strict";
@@ -12993,7 +12971,10 @@ var init_Logger = __esm({
12993
12971
  LogLevel2[LogLevel2["Verbose"] = 3] = "Verbose";
12994
12972
  LogLevel2[LogLevel2["Trace"] = 4] = "Trace";
12995
12973
  })(LogLevel || (LogLevel = {}));
12996
- _Logger = class _Logger {
12974
+ Logger = class _Logger {
12975
+ static {
12976
+ __name(this, "Logger");
12977
+ }
12997
12978
  constructor(loggerOptions, packageName, packageVersion) {
12998
12979
  this.level = LogLevel.Info;
12999
12980
  const defaultLoggerCallback = /* @__PURE__ */ __name(() => {
@@ -13153,8 +13134,6 @@ var init_Logger = __esm({
13153
13134
  return this.piiLoggingEnabled || false;
13154
13135
  }
13155
13136
  };
13156
- __name(_Logger, "Logger");
13157
- Logger = _Logger;
13158
13137
  }
13159
13138
  });
13160
13139
 
@@ -13169,7 +13148,7 @@ var init_packageMetadata = __esm({
13169
13148
  });
13170
13149
 
13171
13150
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/request/ScopeSet.mjs
13172
- var _ScopeSet, ScopeSet;
13151
+ var ScopeSet;
13173
13152
  var init_ScopeSet = __esm({
13174
13153
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/request/ScopeSet.mjs"() {
13175
13154
  "use strict";
@@ -13179,7 +13158,10 @@ var init_ScopeSet = __esm({
13179
13158
  init_Constants();
13180
13159
  init_ClientConfigurationErrorCodes();
13181
13160
  init_ClientAuthErrorCodes();
13182
- _ScopeSet = class _ScopeSet {
13161
+ ScopeSet = class _ScopeSet {
13162
+ static {
13163
+ __name(this, "ScopeSet");
13164
+ }
13183
13165
  constructor(inputScopes) {
13184
13166
  const scopeArr = inputScopes ? StringUtils.trimArrayEntries([...inputScopes]) : [];
13185
13167
  const filteredInput = scopeArr ? StringUtils.removeEmptyStringsFromArray(scopeArr) : [];
@@ -13353,8 +13335,6 @@ var init_ScopeSet = __esm({
13353
13335
  return this.printScopes().toLowerCase();
13354
13336
  }
13355
13337
  };
13356
- __name(_ScopeSet, "ScopeSet");
13357
- ScopeSet = _ScopeSet;
13358
13338
  }
13359
13339
  });
13360
13340
 
@@ -13448,7 +13428,7 @@ var init_TokenClaims = __esm({
13448
13428
  });
13449
13429
 
13450
13430
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/cache/entities/AccountEntity.mjs
13451
- var _AccountEntity, AccountEntity;
13431
+ var AccountEntity;
13452
13432
  var init_AccountEntity = __esm({
13453
13433
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/cache/entities/AccountEntity.mjs"() {
13454
13434
  "use strict";
@@ -13460,7 +13440,10 @@ var init_AccountEntity = __esm({
13460
13440
  init_TokenClaims();
13461
13441
  init_ProtocolMode();
13462
13442
  init_ClientAuthErrorCodes();
13463
- _AccountEntity = class _AccountEntity {
13443
+ AccountEntity = class _AccountEntity {
13444
+ static {
13445
+ __name(this, "AccountEntity");
13446
+ }
13464
13447
  /**
13465
13448
  * Generate Account Id key component as per the schema: <home_account_id>-<environment>
13466
13449
  */
@@ -13523,7 +13506,6 @@ var init_AccountEntity = __esm({
13523
13506
  * @param accountDetails
13524
13507
  */
13525
13508
  static createAccount(accountDetails, authority, base64Decode) {
13526
- var _a, _b, _c, _d, _e, _f;
13527
13509
  const account = new _AccountEntity();
13528
13510
  if (authority.authorityType === AuthorityType.Adfs) {
13529
13511
  account.authorityType = CacheAccountType.ADFS_ACCOUNT_TYPE;
@@ -13544,12 +13526,12 @@ var init_AccountEntity = __esm({
13544
13526
  throw createClientAuthError(invalidCacheEnvironment);
13545
13527
  }
13546
13528
  account.environment = env;
13547
- account.realm = (clientInfo == null ? void 0 : clientInfo.utid) || getTenantIdFromIdTokenClaims(accountDetails.idTokenClaims) || "";
13548
- account.localAccountId = (clientInfo == null ? void 0 : clientInfo.uid) || ((_a = accountDetails.idTokenClaims) == null ? void 0 : _a.oid) || ((_b = accountDetails.idTokenClaims) == null ? void 0 : _b.sub) || "";
13549
- const preferredUsername = ((_c = accountDetails.idTokenClaims) == null ? void 0 : _c.preferred_username) || ((_d = accountDetails.idTokenClaims) == null ? void 0 : _d.upn);
13550
- const email = ((_e = accountDetails.idTokenClaims) == null ? void 0 : _e.emails) ? accountDetails.idTokenClaims.emails[0] : null;
13529
+ account.realm = clientInfo?.utid || getTenantIdFromIdTokenClaims(accountDetails.idTokenClaims) || "";
13530
+ account.localAccountId = clientInfo?.uid || accountDetails.idTokenClaims?.oid || accountDetails.idTokenClaims?.sub || "";
13531
+ const preferredUsername = accountDetails.idTokenClaims?.preferred_username || accountDetails.idTokenClaims?.upn;
13532
+ const email = accountDetails.idTokenClaims?.emails ? accountDetails.idTokenClaims.emails[0] : null;
13551
13533
  account.username = preferredUsername || email || "";
13552
- account.name = ((_f = accountDetails.idTokenClaims) == null ? void 0 : _f.name) || "";
13534
+ account.name = accountDetails.idTokenClaims?.name || "";
13553
13535
  account.cloudGraphHostName = accountDetails.cloudGraphHostName;
13554
13536
  account.msGraphHost = accountDetails.msGraphHost;
13555
13537
  if (accountDetails.tenantProfiles) {
@@ -13572,7 +13554,6 @@ var init_AccountEntity = __esm({
13572
13554
  * @returns
13573
13555
  */
13574
13556
  static createFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
13575
- var _a;
13576
13557
  const account = new _AccountEntity();
13577
13558
  account.authorityType = accountInfo.authorityType || CacheAccountType.GENERIC_ACCOUNT_TYPE;
13578
13559
  account.homeAccountId = accountInfo.homeAccountId;
@@ -13584,7 +13565,7 @@ var init_AccountEntity = __esm({
13584
13565
  account.name = accountInfo.name;
13585
13566
  account.cloudGraphHostName = cloudGraphHostName;
13586
13567
  account.msGraphHost = msGraphHost;
13587
- account.tenantProfiles = Array.from(((_a = accountInfo.tenantProfiles) == null ? void 0 : _a.values()) || []);
13568
+ account.tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
13588
13569
  return account;
13589
13570
  }
13590
13571
  /**
@@ -13605,7 +13586,7 @@ var init_AccountEntity = __esm({
13605
13586
  }
13606
13587
  logger.warning("No client info in response");
13607
13588
  }
13608
- return (idTokenClaims == null ? void 0 : idTokenClaims.sub) || "";
13589
+ return idTokenClaims?.sub || "";
13609
13590
  }
13610
13591
  /**
13611
13592
  * Validates an entity: checks for all expected params
@@ -13636,8 +13617,6 @@ var init_AccountEntity = __esm({
13636
13617
  return accountA.homeAccountId === accountB.homeAccountId && accountA.localAccountId === accountB.localAccountId && accountA.username === accountB.username && accountA.tenantId === accountB.tenantId && accountA.environment === accountB.environment && accountA.nativeAccountId === accountB.nativeAccountId && claimsMatch;
13637
13618
  }
13638
13619
  };
13639
- __name(_AccountEntity, "AccountEntity");
13640
- AccountEntity = _AccountEntity;
13641
13620
  }
13642
13621
  });
13643
13622
 
@@ -13652,7 +13631,7 @@ var init_CacheErrorCodes = __esm({
13652
13631
  });
13653
13632
 
13654
13633
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/error/CacheError.mjs
13655
- var CacheErrorMessages, _CacheError, CacheError;
13634
+ var CacheErrorMessages, CacheError;
13656
13635
  var init_CacheError = __esm({
13657
13636
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/error/CacheError.mjs"() {
13658
13637
  "use strict";
@@ -13661,7 +13640,10 @@ var init_CacheError = __esm({
13661
13640
  [cacheQuotaExceededErrorCode]: "Exceeded cache storage capacity.",
13662
13641
  [cacheUnknownErrorCode]: "Unexpected error occurred when using cache storage."
13663
13642
  };
13664
- _CacheError = class _CacheError extends Error {
13643
+ CacheError = class _CacheError extends Error {
13644
+ static {
13645
+ __name(this, "CacheError");
13646
+ }
13665
13647
  constructor(errorCode, errorMessage) {
13666
13648
  const message = errorMessage || (CacheErrorMessages[errorCode] ? CacheErrorMessages[errorCode] : CacheErrorMessages[cacheUnknownErrorCode]);
13667
13649
  super(`${errorCode}: ${message}`);
@@ -13671,13 +13653,11 @@ var init_CacheError = __esm({
13671
13653
  this.errorMessage = message;
13672
13654
  }
13673
13655
  };
13674
- __name(_CacheError, "CacheError");
13675
- CacheError = _CacheError;
13676
13656
  }
13677
13657
  });
13678
13658
 
13679
13659
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/cache/CacheManager.mjs
13680
- var _CacheManager, CacheManager, _DefaultStorageClass, DefaultStorageClass;
13660
+ var CacheManager, DefaultStorageClass;
13681
13661
  var init_CacheManager = __esm({
13682
13662
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/cache/CacheManager.mjs"() {
13683
13663
  "use strict";
@@ -13693,7 +13673,10 @@ var init_CacheManager = __esm({
13693
13673
  init_CacheError();
13694
13674
  init_ClientAuthErrorCodes();
13695
13675
  init_CacheErrorCodes();
13696
- _CacheManager = class _CacheManager {
13676
+ CacheManager = class _CacheManager {
13677
+ static {
13678
+ __name(this, "CacheManager");
13679
+ }
13697
13680
  constructor(clientId, cryptoImpl, logger, staticAuthorityOptions) {
13698
13681
  this.clientId = clientId;
13699
13682
  this.cryptoImpl = cryptoImpl;
@@ -13750,7 +13733,7 @@ var init_CacheManager = __esm({
13750
13733
  });
13751
13734
  }
13752
13735
  getAccountInfoForTenantProfiles(accountEntity, accountFilter) {
13753
- return this.getTenantProfilesFromAccountEntity(accountEntity, accountFilter == null ? void 0 : accountFilter.tenantId, accountFilter);
13736
+ return this.getTenantProfilesFromAccountEntity(accountEntity, accountFilter?.tenantId, accountFilter);
13754
13737
  }
13755
13738
  getTenantedAccountInfoByFilter(accountInfo, tokenKeys, tenantProfile, tenantProfileFilter) {
13756
13739
  let tenantedAccountInfo = null;
@@ -13767,7 +13750,7 @@ var init_CacheManager = __esm({
13767
13750
  return null;
13768
13751
  }
13769
13752
  }
13770
- tenantedAccountInfo = updateAccountTenantProfileData(accountInfo, tenantProfile, idTokenClaims, idToken == null ? void 0 : idToken.secret);
13753
+ tenantedAccountInfo = updateAccountTenantProfileData(accountInfo, tenantProfile, idTokenClaims, idToken?.secret);
13771
13754
  return tenantedAccountInfo;
13772
13755
  }
13773
13756
  getTenantProfilesFromAccountEntity(accountEntity, targetTenantId, tenantProfileFilter) {
@@ -13832,7 +13815,6 @@ var init_CacheManager = __esm({
13832
13815
  * @param correlationId {?string} correlation id
13833
13816
  */
13834
13817
  async saveCacheRecord(cacheRecord, storeInCache, correlationId) {
13835
- var _a, _b, _c, _d;
13836
13818
  if (!cacheRecord) {
13837
13819
  throw createClientAuthError(invalidCacheRecord);
13838
13820
  }
@@ -13840,30 +13822,30 @@ var init_CacheManager = __esm({
13840
13822
  if (!!cacheRecord.account) {
13841
13823
  this.setAccount(cacheRecord.account);
13842
13824
  }
13843
- if (!!cacheRecord.idToken && (storeInCache == null ? void 0 : storeInCache.idToken) !== false) {
13825
+ if (!!cacheRecord.idToken && storeInCache?.idToken !== false) {
13844
13826
  this.setIdTokenCredential(cacheRecord.idToken);
13845
13827
  }
13846
- if (!!cacheRecord.accessToken && (storeInCache == null ? void 0 : storeInCache.accessToken) !== false) {
13828
+ if (!!cacheRecord.accessToken && storeInCache?.accessToken !== false) {
13847
13829
  await this.saveAccessToken(cacheRecord.accessToken);
13848
13830
  }
13849
- if (!!cacheRecord.refreshToken && (storeInCache == null ? void 0 : storeInCache.refreshToken) !== false) {
13831
+ if (!!cacheRecord.refreshToken && storeInCache?.refreshToken !== false) {
13850
13832
  this.setRefreshTokenCredential(cacheRecord.refreshToken);
13851
13833
  }
13852
13834
  if (!!cacheRecord.appMetadata) {
13853
13835
  this.setAppMetadata(cacheRecord.appMetadata);
13854
13836
  }
13855
13837
  } catch (e) {
13856
- (_a = this.commonLogger) == null ? void 0 : _a.error(`CacheManager.saveCacheRecord: failed`);
13838
+ this.commonLogger?.error(`CacheManager.saveCacheRecord: failed`);
13857
13839
  if (e instanceof Error) {
13858
- (_b = this.commonLogger) == null ? void 0 : _b.errorPii(`CacheManager.saveCacheRecord: ${e.message}`, correlationId);
13840
+ this.commonLogger?.errorPii(`CacheManager.saveCacheRecord: ${e.message}`, correlationId);
13859
13841
  if (e.name === "QuotaExceededError" || e.name === "NS_ERROR_DOM_QUOTA_REACHED" || e.message.includes("exceeded the quota")) {
13860
- (_c = this.commonLogger) == null ? void 0 : _c.error(`CacheManager.saveCacheRecord: exceeded storage quota`, correlationId);
13842
+ this.commonLogger?.error(`CacheManager.saveCacheRecord: exceeded storage quota`, correlationId);
13861
13843
  throw new CacheError(cacheQuotaExceededErrorCode);
13862
13844
  } else {
13863
13845
  throw new CacheError(e.name, e.message);
13864
13846
  }
13865
13847
  } else {
13866
- (_d = this.commonLogger) == null ? void 0 : _d.errorPii(`CacheManager.saveCacheRecord: ${e}`, correlationId);
13848
+ this.commonLogger?.errorPii(`CacheManager.saveCacheRecord: ${e}`, correlationId);
13867
13849
  throw new CacheError(cacheUnknownErrorCode);
13868
13850
  }
13869
13851
  }
@@ -13909,7 +13891,6 @@ var init_CacheManager = __esm({
13909
13891
  const allAccountKeys = this.getAccountKeys();
13910
13892
  const matchingAccounts = [];
13911
13893
  allAccountKeys.forEach((cacheKey) => {
13912
- var _a;
13913
13894
  if (!this.isAccountKey(cacheKey, accountFilter.homeAccountId)) {
13914
13895
  return;
13915
13896
  }
@@ -13936,10 +13917,10 @@ var init_CacheManager = __esm({
13936
13917
  return;
13937
13918
  }
13938
13919
  const tenantProfileFilter = {
13939
- localAccountId: accountFilter == null ? void 0 : accountFilter.localAccountId,
13940
- name: accountFilter == null ? void 0 : accountFilter.name
13920
+ localAccountId: accountFilter?.localAccountId,
13921
+ name: accountFilter?.name
13941
13922
  };
13942
- const matchingTenantProfiles = (_a = entity.tenantProfiles) == null ? void 0 : _a.filter((tenantProfile) => {
13923
+ const matchingTenantProfiles = entity.tenantProfiles?.filter((tenantProfile) => {
13943
13924
  return this.tenantProfileMatchesFilter(tenantProfile, tenantProfileFilter);
13944
13925
  });
13945
13926
  if (matchingTenantProfiles && matchingTenantProfiles.length === 0) {
@@ -14143,9 +14124,8 @@ var init_CacheManager = __esm({
14143
14124
  * @returns
14144
14125
  */
14145
14126
  updateOutdatedCachedAccount(accountKey, accountEntity, logger) {
14146
- var _a;
14147
14127
  if (accountEntity && accountEntity.isSingleTenant()) {
14148
- (_a = this.commonLogger) == null ? void 0 : _a.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");
14128
+ this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");
14149
14129
  const matchingAccountKeys = this.getAccountKeys().filter((key) => {
14150
14130
  return key.startsWith(accountEntity.homeAccountId);
14151
14131
  });
@@ -14177,7 +14157,7 @@ var init_CacheManager = __esm({
14177
14157
  }
14178
14158
  });
14179
14159
  this.setAccount(updatedAccount);
14180
- logger == null ? void 0 : logger.verbose("Updated an outdated account entity in the cache");
14160
+ logger?.verbose("Updated an outdated account entity in the cache");
14181
14161
  return updatedAccount;
14182
14162
  }
14183
14163
  return accountEntity;
@@ -14547,8 +14527,7 @@ var init_CacheManager = __esm({
14547
14527
  * @returns true if the downcased name properties are present and match in the filter and the entity
14548
14528
  */
14549
14529
  matchName(claims, name3) {
14550
- var _a;
14551
- return !!(name3.toLowerCase() === ((_a = claims.name) == null ? void 0 : _a.toLowerCase()));
14530
+ return !!(name3.toLowerCase() === claims.name?.toLowerCase());
14552
14531
  }
14553
14532
  /**
14554
14533
  * helper to match usernames
@@ -14557,7 +14536,7 @@ var init_CacheManager = __esm({
14557
14536
  * @returns
14558
14537
  */
14559
14538
  matchUsername(cachedUsername, filterUsername) {
14560
- return !!(cachedUsername && typeof cachedUsername === "string" && (filterUsername == null ? void 0 : filterUsername.toLowerCase()) === cachedUsername.toLowerCase());
14539
+ return !!(cachedUsername && typeof cachedUsername === "string" && filterUsername?.toLowerCase() === cachedUsername.toLowerCase());
14561
14540
  }
14562
14541
  /**
14563
14542
  * helper to match assertion
@@ -14615,8 +14594,7 @@ var init_CacheManager = __esm({
14615
14594
  * @param realm
14616
14595
  */
14617
14596
  matchRealm(entity, realm) {
14618
- var _a;
14619
- return !!(((_a = entity.realm) == null ? void 0 : _a.toLowerCase()) === realm.toLowerCase());
14597
+ return !!(entity.realm?.toLowerCase() === realm.toLowerCase());
14620
14598
  }
14621
14599
  /**
14622
14600
  * helper to match nativeAccountId
@@ -14721,9 +14699,10 @@ var init_CacheManager = __esm({
14721
14699
  return obj;
14722
14700
  }
14723
14701
  };
14724
- __name(_CacheManager, "CacheManager");
14725
- CacheManager = _CacheManager;
14726
- _DefaultStorageClass = class _DefaultStorageClass extends CacheManager {
14702
+ DefaultStorageClass = class extends CacheManager {
14703
+ static {
14704
+ __name(this, "DefaultStorageClass");
14705
+ }
14727
14706
  setAccount() {
14728
14707
  throw createClientAuthError(methodNotImplemented);
14729
14708
  }
@@ -14800,8 +14779,6 @@ var init_CacheManager = __esm({
14800
14779
  throw createClientAuthError(methodNotImplemented);
14801
14780
  }
14802
14781
  };
14803
- __name(_DefaultStorageClass, "DefaultStorageClass");
14804
- DefaultStorageClass = _DefaultStorageClass;
14805
14782
  }
14806
14783
  });
14807
14784
 
@@ -14900,12 +14877,15 @@ var init_ClientConfiguration = __esm({
14900
14877
  });
14901
14878
 
14902
14879
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/error/ServerError.mjs
14903
- var _ServerError, ServerError;
14880
+ var ServerError;
14904
14881
  var init_ServerError = __esm({
14905
14882
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/error/ServerError.mjs"() {
14906
14883
  "use strict";
14907
14884
  init_AuthError();
14908
- _ServerError = class _ServerError extends AuthError {
14885
+ ServerError = class _ServerError extends AuthError {
14886
+ static {
14887
+ __name(this, "ServerError");
14888
+ }
14909
14889
  constructor(errorCode, errorMessage, subError, errorNo, status) {
14910
14890
  super(errorCode, errorMessage, subError);
14911
14891
  this.name = "ServerError";
@@ -14914,19 +14894,20 @@ var init_ServerError = __esm({
14914
14894
  Object.setPrototypeOf(this, _ServerError.prototype);
14915
14895
  }
14916
14896
  };
14917
- __name(_ServerError, "ServerError");
14918
- ServerError = _ServerError;
14919
14897
  }
14920
14898
  });
14921
14899
 
14922
14900
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/network/ThrottlingUtils.mjs
14923
- var _ThrottlingUtils, ThrottlingUtils;
14901
+ var ThrottlingUtils;
14924
14902
  var init_ThrottlingUtils = __esm({
14925
14903
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/network/ThrottlingUtils.mjs"() {
14926
14904
  "use strict";
14927
14905
  init_Constants();
14928
14906
  init_ServerError();
14929
- _ThrottlingUtils = class _ThrottlingUtils {
14907
+ ThrottlingUtils = class _ThrottlingUtils {
14908
+ static {
14909
+ __name(this, "ThrottlingUtils");
14910
+ }
14930
14911
  /**
14931
14912
  * Prepares a RequestThumbprint to be stored as a key.
14932
14913
  * @param thumbprint
@@ -14940,7 +14921,6 @@ var init_ThrottlingUtils = __esm({
14940
14921
  * @param thumbprint
14941
14922
  */
14942
14923
  static preProcess(cacheManager, thumbprint) {
14943
- var _a;
14944
14924
  const key = _ThrottlingUtils.generateThrottlingStorageKey(thumbprint);
14945
14925
  const value = cacheManager.getThrottlingCache(key);
14946
14926
  if (value) {
@@ -14948,7 +14928,7 @@ var init_ThrottlingUtils = __esm({
14948
14928
  cacheManager.removeItem(key);
14949
14929
  return;
14950
14930
  }
14951
- throw new ServerError(((_a = value.errorCodes) == null ? void 0 : _a.join(" ")) || Constants.EMPTY_STRING, value.errorMessage, value.subError);
14931
+ throw new ServerError(value.errorCodes?.join(" ") || Constants.EMPTY_STRING, value.errorMessage, value.subError);
14952
14932
  }
14953
14933
  }
14954
14934
  /**
@@ -15012,13 +14992,11 @@ var init_ThrottlingUtils = __esm({
15012
14992
  cacheManager.removeItem(key);
15013
14993
  }
15014
14994
  };
15015
- __name(_ThrottlingUtils, "ThrottlingUtils");
15016
- ThrottlingUtils = _ThrottlingUtils;
15017
14995
  }
15018
14996
  });
15019
14997
 
15020
14998
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/network/NetworkManager.mjs
15021
- var _NetworkManager, NetworkManager;
14999
+ var NetworkManager;
15022
15000
  var init_NetworkManager = __esm({
15023
15001
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/network/NetworkManager.mjs"() {
15024
15002
  "use strict";
@@ -15026,7 +15004,10 @@ var init_NetworkManager = __esm({
15026
15004
  init_AuthError();
15027
15005
  init_ClientAuthError();
15028
15006
  init_ClientAuthErrorCodes();
15029
- _NetworkManager = class _NetworkManager {
15007
+ NetworkManager = class {
15008
+ static {
15009
+ __name(this, "NetworkManager");
15010
+ }
15030
15011
  constructor(networkClient, cacheManager) {
15031
15012
  this.networkClient = networkClient;
15032
15013
  this.cacheManager = cacheManager;
@@ -15053,8 +15034,6 @@ var init_NetworkManager = __esm({
15053
15034
  return response;
15054
15035
  }
15055
15036
  };
15056
- __name(_NetworkManager, "NetworkManager");
15057
- NetworkManager = _NetworkManager;
15058
15037
  }
15059
15038
  });
15060
15039
 
@@ -15071,14 +15050,17 @@ var init_CcsCredential = __esm({
15071
15050
  });
15072
15051
 
15073
15052
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/request/RequestValidator.mjs
15074
- var _RequestValidator, RequestValidator;
15053
+ var RequestValidator;
15075
15054
  var init_RequestValidator = __esm({
15076
15055
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/request/RequestValidator.mjs"() {
15077
15056
  "use strict";
15078
15057
  init_ClientConfigurationError();
15079
15058
  init_Constants();
15080
15059
  init_ClientConfigurationErrorCodes();
15081
- _RequestValidator = class _RequestValidator {
15060
+ RequestValidator = class {
15061
+ static {
15062
+ __name(this, "RequestValidator");
15063
+ }
15082
15064
  /**
15083
15065
  * Utility to check if the `redirectUri` in the request is a non-null value
15084
15066
  * @param redirectUri
@@ -15133,13 +15115,11 @@ var init_RequestValidator = __esm({
15133
15115
  }
15134
15116
  }
15135
15117
  };
15136
- __name(_RequestValidator, "RequestValidator");
15137
- RequestValidator = _RequestValidator;
15138
15118
  }
15139
15119
  });
15140
15120
 
15141
15121
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/request/RequestParameterBuilder.mjs
15142
- var _RequestParameterBuilder, RequestParameterBuilder;
15122
+ var RequestParameterBuilder;
15143
15123
  var init_RequestParameterBuilder = __esm({
15144
15124
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/request/RequestParameterBuilder.mjs"() {
15145
15125
  "use strict";
@@ -15149,7 +15129,10 @@ var init_RequestParameterBuilder = __esm({
15149
15129
  init_ClientConfigurationError();
15150
15130
  init_RequestValidator();
15151
15131
  init_ClientConfigurationErrorCodes();
15152
- _RequestParameterBuilder = class _RequestParameterBuilder {
15132
+ RequestParameterBuilder = class {
15133
+ static {
15134
+ __name(this, "RequestParameterBuilder");
15135
+ }
15153
15136
  constructor() {
15154
15137
  this.parameters = /* @__PURE__ */ new Map();
15155
15138
  }
@@ -15291,10 +15274,10 @@ var init_RequestParameterBuilder = __esm({
15291
15274
  * @param appTelemetry
15292
15275
  */
15293
15276
  addApplicationTelemetry(appTelemetry) {
15294
- if (appTelemetry == null ? void 0 : appTelemetry.appName) {
15277
+ if (appTelemetry?.appName) {
15295
15278
  this.parameters.set(X_APP_NAME, appTelemetry.appName);
15296
15279
  }
15297
- if (appTelemetry == null ? void 0 : appTelemetry.appVersion) {
15280
+ if (appTelemetry?.appVersion) {
15298
15281
  this.parameters.set(X_APP_VER, appTelemetry.appVersion);
15299
15282
  }
15300
15283
  }
@@ -15514,13 +15497,11 @@ var init_RequestParameterBuilder = __esm({
15514
15497
  return queryParameterArray.join("&");
15515
15498
  }
15516
15499
  };
15517
- __name(_RequestParameterBuilder, "RequestParameterBuilder");
15518
- RequestParameterBuilder = _RequestParameterBuilder;
15519
15500
  }
15520
15501
  });
15521
15502
 
15522
15503
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/client/BaseClient.mjs
15523
- var _BaseClient, BaseClient;
15504
+ var BaseClient;
15524
15505
  var init_BaseClient = __esm({
15525
15506
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/client/BaseClient.mjs"() {
15526
15507
  "use strict";
@@ -15534,7 +15515,10 @@ var init_BaseClient = __esm({
15534
15515
  init_RequestParameterBuilder();
15535
15516
  init_AuthorityFactory();
15536
15517
  init_PerformanceEvent();
15537
- _BaseClient = class _BaseClient {
15518
+ BaseClient = class {
15519
+ static {
15520
+ __name(this, "BaseClient");
15521
+ }
15538
15522
  constructor(configuration, performanceClient) {
15539
15523
  this.config = buildClientConfiguration(configuration);
15540
15524
  this.logger = new Logger(this.config.loggerOptions, name, version);
@@ -15577,14 +15561,13 @@ var init_BaseClient = __esm({
15577
15561
  * @param thumbprint
15578
15562
  */
15579
15563
  async executePostToTokenEndpoint(tokenEndpoint, queryString, headers, thumbprint, correlationId, queuedEvent) {
15580
- var _a, _b, _c, _d;
15581
15564
  if (queuedEvent) {
15582
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(queuedEvent, correlationId);
15565
+ this.performanceClient?.addQueueMeasurement(queuedEvent, correlationId);
15583
15566
  }
15584
15567
  const response = await this.networkManager.sendPostRequest(thumbprint, tokenEndpoint, { body: queryString, headers });
15585
- (_d = this.performanceClient) == null ? void 0 : _d.addFields({
15586
- refreshTokenSize: ((_b = response.body.refresh_token) == null ? void 0 : _b.length) || 0,
15587
- httpVerToken: ((_c = response.headers) == null ? void 0 : _c[HeaderNames.X_MS_HTTP_VERSION]) || ""
15568
+ this.performanceClient?.addFields({
15569
+ refreshTokenSize: response.body.refresh_token?.length || 0,
15570
+ httpVerToken: response.headers?.[HeaderNames.X_MS_HTTP_VERSION] || ""
15588
15571
  }, correlationId);
15589
15572
  if (this.config.serverTelemetryManager && response.status < 500 && response.status !== 429) {
15590
15573
  this.config.serverTelemetryManager.clearTelemetryCache();
@@ -15596,8 +15579,7 @@ var init_BaseClient = __esm({
15596
15579
  * @param updatedAuthority
15597
15580
  */
15598
15581
  async updateAuthority(cloudInstanceHostname, correlationId) {
15599
- var _a;
15600
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.UpdateTokenEndpointAuthority, correlationId);
15582
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.UpdateTokenEndpointAuthority, correlationId);
15601
15583
  const cloudInstanceAuthorityUri = `https://${cloudInstanceHostname}/${this.authority.tenant}/`;
15602
15584
  const cloudInstanceAuthority = await createDiscoveredInstance(cloudInstanceAuthorityUri, this.networkClient, this.cacheManager, this.authority.options, this.logger, correlationId, this.performanceClient);
15603
15585
  this.authority = cloudInstanceAuthority;
@@ -15614,8 +15596,6 @@ var init_BaseClient = __esm({
15614
15596
  return parameterBuilder.createQueryString();
15615
15597
  }
15616
15598
  };
15617
- __name(_BaseClient, "BaseClient");
15618
- BaseClient = _BaseClient;
15619
15599
  }
15620
15600
  });
15621
15601
 
@@ -15656,7 +15636,7 @@ function isInteractionRequiredError(errorCode, errorString, subError) {
15656
15636
  function createInteractionRequiredAuthError(errorCode) {
15657
15637
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
15658
15638
  }
15659
- var InteractionRequiredServerErrorMessage, InteractionRequiredAuthSubErrorMessage, InteractionRequiredAuthErrorMessages, InteractionRequiredAuthErrorMessage, _InteractionRequiredAuthError, InteractionRequiredAuthError;
15639
+ var InteractionRequiredServerErrorMessage, InteractionRequiredAuthSubErrorMessage, InteractionRequiredAuthErrorMessages, InteractionRequiredAuthErrorMessage, InteractionRequiredAuthError;
15660
15640
  var init_InteractionRequiredAuthError = __esm({
15661
15641
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/error/InteractionRequiredAuthError.mjs"() {
15662
15642
  "use strict";
@@ -15697,7 +15677,10 @@ var init_InteractionRequiredAuthError = __esm({
15697
15677
  desc: InteractionRequiredAuthErrorMessages[badToken]
15698
15678
  }
15699
15679
  };
15700
- _InteractionRequiredAuthError = class _InteractionRequiredAuthError extends AuthError {
15680
+ InteractionRequiredAuthError = class _InteractionRequiredAuthError extends AuthError {
15681
+ static {
15682
+ __name(this, "InteractionRequiredAuthError");
15683
+ }
15701
15684
  constructor(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims, errorNo) {
15702
15685
  super(errorCode, errorMessage, subError);
15703
15686
  Object.setPrototypeOf(this, _InteractionRequiredAuthError.prototype);
@@ -15709,22 +15692,23 @@ var init_InteractionRequiredAuthError = __esm({
15709
15692
  this.errorNo = errorNo;
15710
15693
  }
15711
15694
  };
15712
- __name(_InteractionRequiredAuthError, "InteractionRequiredAuthError");
15713
- InteractionRequiredAuthError = _InteractionRequiredAuthError;
15714
15695
  __name(isInteractionRequiredError, "isInteractionRequiredError");
15715
15696
  __name(createInteractionRequiredAuthError, "createInteractionRequiredAuthError");
15716
15697
  }
15717
15698
  });
15718
15699
 
15719
15700
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/utils/ProtocolUtils.mjs
15720
- var _ProtocolUtils, ProtocolUtils;
15701
+ var ProtocolUtils;
15721
15702
  var init_ProtocolUtils = __esm({
15722
15703
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/utils/ProtocolUtils.mjs"() {
15723
15704
  "use strict";
15724
15705
  init_Constants();
15725
15706
  init_ClientAuthError();
15726
15707
  init_ClientAuthErrorCodes();
15727
- _ProtocolUtils = class _ProtocolUtils {
15708
+ ProtocolUtils = class _ProtocolUtils {
15709
+ static {
15710
+ __name(this, "ProtocolUtils");
15711
+ }
15728
15712
  /**
15729
15713
  * Appends user state with random guid, or returns random guid.
15730
15714
  * @param userState
@@ -15779,13 +15763,11 @@ var init_ProtocolUtils = __esm({
15779
15763
  }
15780
15764
  }
15781
15765
  };
15782
- __name(_ProtocolUtils, "ProtocolUtils");
15783
- ProtocolUtils = _ProtocolUtils;
15784
15766
  }
15785
15767
  });
15786
15768
 
15787
15769
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/crypto/PopTokenGenerator.mjs
15788
- var KeyLocation, _PopTokenGenerator, PopTokenGenerator;
15770
+ var KeyLocation, PopTokenGenerator;
15789
15771
  var init_PopTokenGenerator = __esm({
15790
15772
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/crypto/PopTokenGenerator.mjs"() {
15791
15773
  "use strict";
@@ -15797,7 +15779,10 @@ var init_PopTokenGenerator = __esm({
15797
15779
  SW: "sw",
15798
15780
  UHW: "uhw"
15799
15781
  };
15800
- _PopTokenGenerator = class _PopTokenGenerator {
15782
+ PopTokenGenerator = class {
15783
+ static {
15784
+ __name(this, "PopTokenGenerator");
15785
+ }
15801
15786
  constructor(cryptoUtils, performanceClient) {
15802
15787
  this.cryptoUtils = cryptoUtils;
15803
15788
  this.performanceClient = performanceClient;
@@ -15809,8 +15794,7 @@ var init_PopTokenGenerator = __esm({
15809
15794
  * @returns
15810
15795
  */
15811
15796
  async generateCnf(request, logger) {
15812
- var _a;
15813
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);
15797
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.PopTokenGenerateCnf, request.correlationId);
15814
15798
  const reqCnf = await invokeAsync(this.generateKid.bind(this), PerformanceEvents.PopTokenGenerateCnf, logger, this.performanceClient, request.correlationId)(request);
15815
15799
  const reqCnfString = this.cryptoUtils.base64UrlEncode(JSON.stringify(reqCnf));
15816
15800
  return {
@@ -15824,8 +15808,7 @@ var init_PopTokenGenerator = __esm({
15824
15808
  * @returns
15825
15809
  */
15826
15810
  async generateKid(request) {
15827
- var _a;
15828
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.PopTokenGenerateKid, request.correlationId);
15811
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.PopTokenGenerateKid, request.correlationId);
15829
15812
  const kidThumbprint = await this.cryptoUtils.getPublicKeyThumbprint(request);
15830
15813
  return {
15831
15814
  kid: kidThumbprint,
@@ -15852,31 +15835,32 @@ var init_PopTokenGenerator = __esm({
15852
15835
  async signPayload(payload, keyId, request, claims) {
15853
15836
  const { resourceRequestMethod, resourceRequestUri, shrClaims, shrNonce, shrOptions } = request;
15854
15837
  const resourceUrlString = resourceRequestUri ? new UrlString(resourceRequestUri) : void 0;
15855
- const resourceUrlComponents = resourceUrlString == null ? void 0 : resourceUrlString.getUrlComponents();
15838
+ const resourceUrlComponents = resourceUrlString?.getUrlComponents();
15856
15839
  return this.cryptoUtils.signJwt({
15857
15840
  at: payload,
15858
15841
  ts: nowSeconds(),
15859
- m: resourceRequestMethod == null ? void 0 : resourceRequestMethod.toUpperCase(),
15860
- u: resourceUrlComponents == null ? void 0 : resourceUrlComponents.HostNameAndPort,
15842
+ m: resourceRequestMethod?.toUpperCase(),
15843
+ u: resourceUrlComponents?.HostNameAndPort,
15861
15844
  nonce: shrNonce || this.cryptoUtils.createNewGuid(),
15862
- p: resourceUrlComponents == null ? void 0 : resourceUrlComponents.AbsolutePath,
15863
- q: (resourceUrlComponents == null ? void 0 : resourceUrlComponents.QueryString) ? [[], resourceUrlComponents.QueryString] : void 0,
15845
+ p: resourceUrlComponents?.AbsolutePath,
15846
+ q: resourceUrlComponents?.QueryString ? [[], resourceUrlComponents.QueryString] : void 0,
15864
15847
  client_claims: shrClaims || void 0,
15865
15848
  ...claims
15866
15849
  }, keyId, shrOptions, request.correlationId);
15867
15850
  }
15868
15851
  };
15869
- __name(_PopTokenGenerator, "PopTokenGenerator");
15870
- PopTokenGenerator = _PopTokenGenerator;
15871
15852
  }
15872
15853
  });
15873
15854
 
15874
15855
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/cache/persistence/TokenCacheContext.mjs
15875
- var _TokenCacheContext, TokenCacheContext;
15856
+ var TokenCacheContext;
15876
15857
  var init_TokenCacheContext = __esm({
15877
15858
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/cache/persistence/TokenCacheContext.mjs"() {
15878
15859
  "use strict";
15879
- _TokenCacheContext = class _TokenCacheContext {
15860
+ TokenCacheContext = class {
15861
+ static {
15862
+ __name(this, "TokenCacheContext");
15863
+ }
15880
15864
  constructor(tokenCache, hasChanged) {
15881
15865
  this.cache = tokenCache;
15882
15866
  this.hasChanged = hasChanged;
@@ -15894,20 +15878,17 @@ var init_TokenCacheContext = __esm({
15894
15878
  return this.cache;
15895
15879
  }
15896
15880
  };
15897
- __name(_TokenCacheContext, "TokenCacheContext");
15898
- TokenCacheContext = _TokenCacheContext;
15899
15881
  }
15900
15882
  });
15901
15883
 
15902
15884
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/response/ResponseHandler.mjs
15903
15885
  function parseServerErrorNo(serverResponse) {
15904
- var _a, _b;
15905
15886
  const errorCodePrefix = "code=";
15906
- const errorCodePrefixIndex = (_a = serverResponse.error_uri) == null ? void 0 : _a.lastIndexOf(errorCodePrefix);
15907
- return errorCodePrefixIndex && errorCodePrefixIndex >= 0 ? (_b = serverResponse.error_uri) == null ? void 0 : _b.substring(errorCodePrefixIndex + errorCodePrefix.length) : void 0;
15887
+ const errorCodePrefixIndex = serverResponse.error_uri?.lastIndexOf(errorCodePrefix);
15888
+ return errorCodePrefixIndex && errorCodePrefixIndex >= 0 ? serverResponse.error_uri?.substring(errorCodePrefixIndex + errorCodePrefix.length) : void 0;
15908
15889
  }
15909
15890
  function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decode, idTokenClaims, clientInfo, environment, claimsTenantId, authCodePayload, nativeAccountId, logger) {
15910
- logger == null ? void 0 : logger.verbose("setCachedAccount called");
15891
+ logger?.verbose("setCachedAccount called");
15911
15892
  const accountKeys = cacheStorage.getAccountKeys();
15912
15893
  const baseAccountKey = accountKeys.find((accountKey) => {
15913
15894
  return accountKey.startsWith(homeAccountId);
@@ -15921,8 +15902,8 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
15921
15902
  idTokenClaims,
15922
15903
  clientInfo,
15923
15904
  environment,
15924
- cloudGraphHostName: authCodePayload == null ? void 0 : authCodePayload.cloud_graph_host_name,
15925
- msGraphHost: authCodePayload == null ? void 0 : authCodePayload.msgraph_host,
15905
+ cloudGraphHostName: authCodePayload?.cloud_graph_host_name,
15906
+ msGraphHost: authCodePayload?.msgraph_host,
15926
15907
  nativeAccountId
15927
15908
  }, authority, base64Decode);
15928
15909
  const tenantProfiles = baseAccount.tenantProfiles || [];
@@ -15935,7 +15916,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
15935
15916
  baseAccount.tenantProfiles = tenantProfiles;
15936
15917
  return baseAccount;
15937
15918
  }
15938
- var _ResponseHandler, ResponseHandler;
15919
+ var ResponseHandler;
15939
15920
  var init_ResponseHandler = __esm({
15940
15921
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/response/ResponseHandler.mjs"() {
15941
15922
  "use strict";
@@ -15955,7 +15936,10 @@ var init_ResponseHandler = __esm({
15955
15936
  init_CacheHelpers();
15956
15937
  init_ClientAuthErrorCodes();
15957
15938
  __name(parseServerErrorNo, "parseServerErrorNo");
15958
- _ResponseHandler = class _ResponseHandler {
15939
+ ResponseHandler = class _ResponseHandler {
15940
+ static {
15941
+ __name(this, "ResponseHandler");
15942
+ }
15959
15943
  constructor(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
15960
15944
  this.clientId = clientId;
15961
15945
  this.cacheStorage = cacheStorage;
@@ -16004,10 +15988,9 @@ var init_ResponseHandler = __esm({
16004
15988
  * @param refreshAccessToken
16005
15989
  */
16006
15990
  validateTokenResponse(serverResponse, refreshAccessToken) {
16007
- var _a;
16008
15991
  if (serverResponse.error || serverResponse.error_description || serverResponse.suberror) {
16009
15992
  const errString = `Error(s): ${serverResponse.error_codes || Constants.NOT_AVAILABLE} - Timestamp: ${serverResponse.timestamp || Constants.NOT_AVAILABLE} - Description: ${serverResponse.error_description || Constants.NOT_AVAILABLE} - Correlation ID: ${serverResponse.correlation_id || Constants.NOT_AVAILABLE} - Trace ID: ${serverResponse.trace_id || Constants.NOT_AVAILABLE}`;
16010
- const serverErrorNo = ((_a = serverResponse.error_codes) == null ? void 0 : _a.length) ? serverResponse.error_codes[0] : void 0;
15993
+ const serverErrorNo = serverResponse.error_codes?.length ? serverResponse.error_codes[0] : void 0;
16011
15994
  const serverError = new ServerError(serverResponse.error, errString, serverResponse.suberror, serverErrorNo, serverResponse.status);
16012
15995
  if (refreshAccessToken && serverResponse.status && serverResponse.status >= HttpStatus.SERVER_ERROR_RANGE_START && serverResponse.status <= HttpStatus.SERVER_ERROR_RANGE_END) {
16013
15996
  this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
@@ -16030,8 +16013,7 @@ ${serverError}`);
16030
16013
  * @param authority
16031
16014
  */
16032
16015
  async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId) {
16033
- var _a;
16034
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.HandleServerTokenResponse, serverTokenResponse.correlation_id);
16016
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.HandleServerTokenResponse, serverTokenResponse.correlation_id);
16035
16017
  let idTokenClaims;
16036
16018
  if (serverTokenResponse.id_token) {
16037
16019
  idTokenClaims = extractTokenClaims(serverTokenResponse.id_token || Constants.EMPTY_STRING, this.cryptoObj.base64Decode);
@@ -16157,7 +16139,6 @@ ${serverError}`);
16157
16139
  * @param stateString
16158
16140
  */
16159
16141
  static async generateAuthenticationResult(cryptoObj, authority, cacheRecord, fromTokenCache, request, idTokenClaims, requestState, serverTokenResponse, requestId) {
16160
- var _a, _b, _c, _d, _e;
16161
16142
  let accessToken = Constants.EMPTY_STRING;
16162
16143
  let responseScopes = [];
16163
16144
  let expiresOn = null;
@@ -16185,17 +16166,17 @@ ${serverError}`);
16185
16166
  if (cacheRecord.appMetadata) {
16186
16167
  familyId = cacheRecord.appMetadata.familyId === THE_FAMILY_ID ? THE_FAMILY_ID : "";
16187
16168
  }
16188
- const uid = (idTokenClaims == null ? void 0 : idTokenClaims.oid) || (idTokenClaims == null ? void 0 : idTokenClaims.sub) || "";
16189
- const tid = (idTokenClaims == null ? void 0 : idTokenClaims.tid) || "";
16190
- if ((serverTokenResponse == null ? void 0 : serverTokenResponse.spa_accountid) && !!cacheRecord.account) {
16191
- cacheRecord.account.nativeAccountId = serverTokenResponse == null ? void 0 : serverTokenResponse.spa_accountid;
16169
+ const uid = idTokenClaims?.oid || idTokenClaims?.sub || "";
16170
+ const tid = idTokenClaims?.tid || "";
16171
+ if (serverTokenResponse?.spa_accountid && !!cacheRecord.account) {
16172
+ cacheRecord.account.nativeAccountId = serverTokenResponse?.spa_accountid;
16192
16173
  }
16193
16174
  const accountInfo = cacheRecord.account ? updateAccountTenantProfileData(
16194
16175
  cacheRecord.account.getAccountInfo(),
16195
16176
  void 0,
16196
16177
  // tenantProfile optional
16197
16178
  idTokenClaims,
16198
- (_a = cacheRecord.idToken) == null ? void 0 : _a.secret
16179
+ cacheRecord.idToken?.secret
16199
16180
  ) : null;
16200
16181
  return {
16201
16182
  authority: authority.canonicalAuthority,
@@ -16203,7 +16184,7 @@ ${serverError}`);
16203
16184
  tenantId: tid,
16204
16185
  scopes: responseScopes,
16205
16186
  account: accountInfo,
16206
- idToken: ((_b = cacheRecord == null ? void 0 : cacheRecord.idToken) == null ? void 0 : _b.secret) || "",
16187
+ idToken: cacheRecord?.idToken?.secret || "",
16207
16188
  idTokenClaims: idTokenClaims || {},
16208
16189
  accessToken,
16209
16190
  fromCache: fromTokenCache,
@@ -16213,23 +16194,21 @@ ${serverError}`);
16213
16194
  correlationId: request.correlationId,
16214
16195
  requestId: requestId || Constants.EMPTY_STRING,
16215
16196
  familyId,
16216
- tokenType: ((_c = cacheRecord.accessToken) == null ? void 0 : _c.tokenType) || Constants.EMPTY_STRING,
16197
+ tokenType: cacheRecord.accessToken?.tokenType || Constants.EMPTY_STRING,
16217
16198
  state: requestState ? requestState.userRequestState : Constants.EMPTY_STRING,
16218
- cloudGraphHostName: ((_d = cacheRecord.account) == null ? void 0 : _d.cloudGraphHostName) || Constants.EMPTY_STRING,
16219
- msGraphHost: ((_e = cacheRecord.account) == null ? void 0 : _e.msGraphHost) || Constants.EMPTY_STRING,
16220
- code: serverTokenResponse == null ? void 0 : serverTokenResponse.spa_code,
16199
+ cloudGraphHostName: cacheRecord.account?.cloudGraphHostName || Constants.EMPTY_STRING,
16200
+ msGraphHost: cacheRecord.account?.msGraphHost || Constants.EMPTY_STRING,
16201
+ code: serverTokenResponse?.spa_code,
16221
16202
  fromNativeBroker: false
16222
16203
  };
16223
16204
  }
16224
16205
  };
16225
- __name(_ResponseHandler, "ResponseHandler");
16226
- ResponseHandler = _ResponseHandler;
16227
16206
  __name(buildAccountToCache, "buildAccountToCache");
16228
16207
  }
16229
16208
  });
16230
16209
 
16231
16210
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/client/AuthorizationCodeClient.mjs
16232
- var _AuthorizationCodeClient, AuthorizationCodeClient;
16211
+ var AuthorizationCodeClient;
16233
16212
  var init_AuthorizationCodeClient = __esm({
16234
16213
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/client/AuthorizationCodeClient.mjs"() {
16235
16214
  "use strict";
@@ -16253,12 +16232,14 @@ var init_AuthorizationCodeClient = __esm({
16253
16232
  init_ClientAssertionUtils();
16254
16233
  init_ClientAuthErrorCodes();
16255
16234
  init_ClientConfigurationErrorCodes();
16256
- _AuthorizationCodeClient = class _AuthorizationCodeClient extends BaseClient {
16235
+ AuthorizationCodeClient = class extends BaseClient {
16236
+ static {
16237
+ __name(this, "AuthorizationCodeClient");
16238
+ }
16257
16239
  constructor(configuration, performanceClient) {
16258
- var _a;
16259
16240
  super(configuration, performanceClient);
16260
16241
  this.includeRedirectUri = true;
16261
- this.oidcDefaultScopes = (_a = this.config.authOptions.authority.options.OIDCOptions) == null ? void 0 : _a.defaultScopes;
16242
+ this.oidcDefaultScopes = this.config.authOptions.authority.options.OIDCOptions?.defaultScopes;
16262
16243
  }
16263
16244
  /**
16264
16245
  * Creates the URL of the authorization request letting the user input credentials and consent to the
@@ -16271,8 +16252,7 @@ var init_AuthorizationCodeClient = __esm({
16271
16252
  * @param request
16272
16253
  */
16273
16254
  async getAuthCodeUrl(request) {
16274
- var _a;
16275
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.GetAuthCodeUrl, request.correlationId);
16255
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.GetAuthCodeUrl, request.correlationId);
16276
16256
  const queryString = await invokeAsync(this.createAuthCodeUrlQueryString.bind(this), PerformanceEvents.AuthClientCreateQueryString, this.logger, this.performanceClient, request.correlationId)(request);
16277
16257
  return UrlString.appendQueryString(this.authority.authorizationEndpoint, queryString);
16278
16258
  }
@@ -16282,14 +16262,13 @@ var init_AuthorizationCodeClient = __esm({
16282
16262
  * @param request
16283
16263
  */
16284
16264
  async acquireToken(request, authCodePayload) {
16285
- var _a, _b;
16286
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientAcquireToken, request.correlationId);
16265
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientAcquireToken, request.correlationId);
16287
16266
  if (!request.code) {
16288
16267
  throw createClientAuthError(requestCannotBeMade);
16289
16268
  }
16290
16269
  const reqTimestamp = nowSeconds();
16291
16270
  const response = await invokeAsync(this.executeTokenRequest.bind(this), PerformanceEvents.AuthClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(this.authority, request);
16292
- const requestId = (_b = response.headers) == null ? void 0 : _b[HeaderNames.X_MS_REQUEST_ID];
16271
+ const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
16293
16272
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient);
16294
16273
  responseHandler.validateTokenResponse(response.body);
16295
16274
  return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, authCodePayload, void 0, void 0, void 0, requestId);
@@ -16325,8 +16304,7 @@ var init_AuthorizationCodeClient = __esm({
16325
16304
  * @param request
16326
16305
  */
16327
16306
  async executeTokenRequest(authority, request) {
16328
- var _a, _b;
16329
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientExecuteTokenRequest, request.correlationId);
16307
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientExecuteTokenRequest, request.correlationId);
16330
16308
  const queryParametersString = this.createTokenQueryParameters(request);
16331
16309
  const endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
16332
16310
  const requestBody = await invokeAsync(this.createTokenRequestBody.bind(this), PerformanceEvents.AuthClientCreateTokenRequestBody, this.logger, this.performanceClient, request.correlationId)(request);
@@ -16344,7 +16322,7 @@ var init_AuthorizationCodeClient = __esm({
16344
16322
  }
16345
16323
  const headers = this.createTokenRequestHeaders(ccsCredential || request.ccsCredential);
16346
16324
  const thumbprint = {
16347
- clientId: ((_b = request.tokenBodyParameters) == null ? void 0 : _b.clientId) || this.config.authOptions.clientId,
16325
+ clientId: request.tokenBodyParameters?.clientId || this.config.authOptions.clientId,
16348
16326
  authority: authority.canonicalAuthority,
16349
16327
  scopes: request.scopes,
16350
16328
  claims: request.claims,
@@ -16361,10 +16339,9 @@ var init_AuthorizationCodeClient = __esm({
16361
16339
  * @param request
16362
16340
  */
16363
16341
  async createTokenRequestBody(request) {
16364
- var _a, _b;
16365
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);
16342
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateTokenRequestBody, request.correlationId);
16366
16343
  const parameterBuilder = new RequestParameterBuilder();
16367
- parameterBuilder.addClientId(((_b = request.tokenBodyParameters) == null ? void 0 : _b[CLIENT_ID]) || this.config.authOptions.clientId);
16344
+ parameterBuilder.addClientId(request.tokenBodyParameters?.[CLIENT_ID] || this.config.authOptions.clientId);
16368
16345
  if (!this.includeRedirectUri) {
16369
16346
  RequestValidator.validateRedirectUri(request.redirectUri);
16370
16347
  } else {
@@ -16457,10 +16434,9 @@ var init_AuthorizationCodeClient = __esm({
16457
16434
  * @param request
16458
16435
  */
16459
16436
  async createAuthCodeUrlQueryString(request) {
16460
- var _a, _b;
16461
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);
16437
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthClientCreateQueryString, request.correlationId);
16462
16438
  const parameterBuilder = new RequestParameterBuilder();
16463
- parameterBuilder.addClientId(((_b = request.extraQueryParameters) == null ? void 0 : _b[CLIENT_ID]) || this.config.authOptions.clientId);
16439
+ parameterBuilder.addClientId(request.extraQueryParameters?.[CLIENT_ID] || this.config.authOptions.clientId);
16464
16440
  const requestScopes = [
16465
16441
  ...request.scopes || [],
16466
16442
  ...request.extraScopesToConsent || []
@@ -16595,21 +16571,17 @@ var init_AuthorizationCodeClient = __esm({
16595
16571
  * @param account
16596
16572
  */
16597
16573
  extractAccountSid(account) {
16598
- var _a;
16599
- return ((_a = account.idTokenClaims) == null ? void 0 : _a.sid) || null;
16574
+ return account.idTokenClaims?.sid || null;
16600
16575
  }
16601
16576
  extractLoginHint(account) {
16602
- var _a;
16603
- return ((_a = account.idTokenClaims) == null ? void 0 : _a.login_hint) || null;
16577
+ return account.idTokenClaims?.login_hint || null;
16604
16578
  }
16605
16579
  };
16606
- __name(_AuthorizationCodeClient, "AuthorizationCodeClient");
16607
- AuthorizationCodeClient = _AuthorizationCodeClient;
16608
16580
  }
16609
16581
  });
16610
16582
 
16611
16583
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/client/RefreshTokenClient.mjs
16612
- var DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS, _RefreshTokenClient, RefreshTokenClient;
16584
+ var DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS, RefreshTokenClient;
16613
16585
  var init_RefreshTokenClient = __esm({
16614
16586
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/client/RefreshTokenClient.mjs"() {
16615
16587
  "use strict";
@@ -16637,16 +16609,18 @@ var init_RefreshTokenClient = __esm({
16637
16609
  init_ClientAuthErrorCodes();
16638
16610
  init_InteractionRequiredAuthErrorCodes();
16639
16611
  DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS = 300;
16640
- _RefreshTokenClient = class _RefreshTokenClient extends BaseClient {
16612
+ RefreshTokenClient = class extends BaseClient {
16613
+ static {
16614
+ __name(this, "RefreshTokenClient");
16615
+ }
16641
16616
  constructor(configuration, performanceClient) {
16642
16617
  super(configuration, performanceClient);
16643
16618
  }
16644
16619
  async acquireToken(request) {
16645
- var _a, _b;
16646
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
16620
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireToken, request.correlationId);
16647
16621
  const reqTimestamp = nowSeconds();
16648
16622
  const response = await invokeAsync(this.executeTokenRequest.bind(this), PerformanceEvents.RefreshTokenClientExecuteTokenRequest, this.logger, this.performanceClient, request.correlationId)(request, this.authority);
16649
- const requestId = (_b = response.headers) == null ? void 0 : _b[HeaderNames.X_MS_REQUEST_ID];
16623
+ const requestId = response.headers?.[HeaderNames.X_MS_REQUEST_ID];
16650
16624
  const responseHandler = new ResponseHandler(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin);
16651
16625
  responseHandler.validateTokenResponse(response.body);
16652
16626
  return invokeAsync(responseHandler.handleServerTokenResponse.bind(responseHandler), PerformanceEvents.HandleServerTokenResponse, this.logger, this.performanceClient, request.correlationId)(response.body, this.authority, reqTimestamp, request, void 0, void 0, true, request.forceCache, requestId);
@@ -16656,11 +16630,10 @@ var init_RefreshTokenClient = __esm({
16656
16630
  * @param request
16657
16631
  */
16658
16632
  async acquireTokenByRefreshToken(request) {
16659
- var _a;
16660
16633
  if (!request) {
16661
16634
  throw createClientConfigurationError(tokenRequestEmpty);
16662
16635
  }
16663
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId);
16636
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenByRefreshToken, request.correlationId);
16664
16637
  if (!request.account) {
16665
16638
  throw createClientAuthError(noAccountInSilentRequest);
16666
16639
  }
@@ -16685,8 +16658,7 @@ var init_RefreshTokenClient = __esm({
16685
16658
  * @param request
16686
16659
  */
16687
16660
  async acquireTokenWithCachedRefreshToken(request, foci) {
16688
- var _a;
16689
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
16661
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientAcquireTokenWithCachedRefreshToken, request.correlationId);
16690
16662
  const refreshToken = invoke(this.cacheManager.getRefreshToken.bind(this.cacheManager), PerformanceEvents.CacheManagerGetRefreshToken, this.logger, this.performanceClient, request.correlationId)(request.account, foci, void 0, this.performanceClient, request.correlationId);
16691
16663
  if (!refreshToken) {
16692
16664
  throw createInteractionRequiredAuthError(noTokensFound);
@@ -16720,14 +16692,13 @@ var init_RefreshTokenClient = __esm({
16720
16692
  * @param authority
16721
16693
  */
16722
16694
  async executeTokenRequest(request, authority) {
16723
- var _a, _b;
16724
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
16695
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientExecuteTokenRequest, request.correlationId);
16725
16696
  const queryParametersString = this.createTokenQueryParameters(request);
16726
16697
  const endpoint = UrlString.appendQueryString(authority.tokenEndpoint, queryParametersString);
16727
16698
  const requestBody = await invokeAsync(this.createTokenRequestBody.bind(this), PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, this.logger, this.performanceClient, request.correlationId)(request);
16728
16699
  const headers = this.createTokenRequestHeaders(request.ccsCredential);
16729
16700
  const thumbprint = {
16730
- clientId: ((_b = request.tokenBodyParameters) == null ? void 0 : _b.clientId) || this.config.authOptions.clientId,
16701
+ clientId: request.tokenBodyParameters?.clientId || this.config.authOptions.clientId,
16731
16702
  authority: authority.canonicalAuthority,
16732
16703
  scopes: request.scopes,
16733
16704
  claims: request.claims,
@@ -16744,15 +16715,14 @@ var init_RefreshTokenClient = __esm({
16744
16715
  * @param request
16745
16716
  */
16746
16717
  async createTokenRequestBody(request) {
16747
- var _a, _b, _c;
16748
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, request.correlationId);
16718
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.RefreshTokenClientCreateTokenRequestBody, request.correlationId);
16749
16719
  const correlationId = request.correlationId;
16750
16720
  const parameterBuilder = new RequestParameterBuilder();
16751
- parameterBuilder.addClientId(((_b = request.tokenBodyParameters) == null ? void 0 : _b[CLIENT_ID]) || this.config.authOptions.clientId);
16721
+ parameterBuilder.addClientId(request.tokenBodyParameters?.[CLIENT_ID] || this.config.authOptions.clientId);
16752
16722
  if (request.redirectUri) {
16753
16723
  parameterBuilder.addRedirectUri(request.redirectUri);
16754
16724
  }
16755
- parameterBuilder.addScopes(request.scopes, true, (_c = this.config.authOptions.authority.options.OIDCOptions) == null ? void 0 : _c.defaultScopes);
16725
+ parameterBuilder.addScopes(request.scopes, true, this.config.authOptions.authority.options.OIDCOptions?.defaultScopes);
16756
16726
  parameterBuilder.addGrantType(GrantType.REFRESH_TOKEN_GRANT);
16757
16727
  parameterBuilder.addClientInfo();
16758
16728
  parameterBuilder.addLibraryInfo(this.config.libraryInfo);
@@ -16812,13 +16782,11 @@ var init_RefreshTokenClient = __esm({
16812
16782
  return parameterBuilder.createQueryString();
16813
16783
  }
16814
16784
  };
16815
- __name(_RefreshTokenClient, "RefreshTokenClient");
16816
- RefreshTokenClient = _RefreshTokenClient;
16817
16785
  }
16818
16786
  });
16819
16787
 
16820
16788
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/client/SilentFlowClient.mjs
16821
- var _SilentFlowClient, SilentFlowClient;
16789
+ var SilentFlowClient;
16822
16790
  var init_SilentFlowClient = __esm({
16823
16791
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/client/SilentFlowClient.mjs"() {
16824
16792
  "use strict";
@@ -16834,7 +16802,10 @@ var init_SilentFlowClient = __esm({
16834
16802
  init_FunctionWrappers();
16835
16803
  init_Authority();
16836
16804
  init_ClientAuthErrorCodes();
16837
- _SilentFlowClient = class _SilentFlowClient extends BaseClient {
16805
+ SilentFlowClient = class extends BaseClient {
16806
+ static {
16807
+ __name(this, "SilentFlowClient");
16808
+ }
16838
16809
  constructor(configuration, performanceClient) {
16839
16810
  super(configuration, performanceClient);
16840
16811
  }
@@ -16844,11 +16815,10 @@ var init_SilentFlowClient = __esm({
16844
16815
  * @param request
16845
16816
  */
16846
16817
  async acquireToken(request) {
16847
- var _a;
16848
16818
  try {
16849
16819
  const [authResponse, cacheOutcome] = await this.acquireCachedToken({
16850
16820
  ...request,
16851
- scopes: ((_a = request.scopes) == null ? void 0 : _a.length) ? request.scopes : [...OIDC_DEFAULT_SCOPES]
16821
+ scopes: request.scopes?.length ? request.scopes : [...OIDC_DEFAULT_SCOPES]
16852
16822
  });
16853
16823
  if (cacheOutcome === CacheOutcome.PROACTIVELY_REFRESHED) {
16854
16824
  this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed.");
@@ -16871,8 +16841,7 @@ var init_SilentFlowClient = __esm({
16871
16841
  * @param request
16872
16842
  */
16873
16843
  async acquireCachedToken(request) {
16874
- var _a;
16875
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.SilentFlowClientAcquireCachedToken, request.correlationId);
16844
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.SilentFlowClientAcquireCachedToken, request.correlationId);
16876
16845
  let lastCacheOutcome = CacheOutcome.NOT_APPLICABLE;
16877
16846
  if (request.forceRefresh || !this.config.cacheOptions.claimsBasedCachingEnabled && !StringUtils.isEmptyObj(request.claims)) {
16878
16847
  this.setCacheOutcome(CacheOutcome.FORCE_REFRESH_OR_CLAIMS, request.correlationId);
@@ -16911,9 +16880,8 @@ var init_SilentFlowClient = __esm({
16911
16880
  ];
16912
16881
  }
16913
16882
  setCacheOutcome(cacheOutcome, correlationId) {
16914
- var _a, _b;
16915
- (_a = this.serverTelemetryManager) == null ? void 0 : _a.setCacheOutcome(cacheOutcome);
16916
- (_b = this.performanceClient) == null ? void 0 : _b.addFields({
16883
+ this.serverTelemetryManager?.setCacheOutcome(cacheOutcome);
16884
+ this.performanceClient?.addFields({
16917
16885
  cacheOutcome
16918
16886
  }, correlationId);
16919
16887
  if (cacheOutcome !== CacheOutcome.NOT_APPLICABLE) {
@@ -16925,14 +16893,13 @@ var init_SilentFlowClient = __esm({
16925
16893
  * @param cacheRecord
16926
16894
  */
16927
16895
  async generateResultFromCacheRecord(cacheRecord, request) {
16928
- var _a;
16929
- (_a = this.performanceClient) == null ? void 0 : _a.addQueueMeasurement(PerformanceEvents.SilentFlowClientGenerateResultFromCacheRecord, request.correlationId);
16896
+ this.performanceClient?.addQueueMeasurement(PerformanceEvents.SilentFlowClientGenerateResultFromCacheRecord, request.correlationId);
16930
16897
  let idTokenClaims;
16931
16898
  if (cacheRecord.idToken) {
16932
16899
  idTokenClaims = extractTokenClaims(cacheRecord.idToken.secret, this.config.cryptoInterface.base64Decode);
16933
16900
  }
16934
16901
  if (request.maxAge || request.maxAge === 0) {
16935
- const authTime = idTokenClaims == null ? void 0 : idTokenClaims.auth_time;
16902
+ const authTime = idTokenClaims?.auth_time;
16936
16903
  if (!authTime) {
16937
16904
  throw createClientAuthError(authTimeNotFound);
16938
16905
  }
@@ -16941,19 +16908,20 @@ var init_SilentFlowClient = __esm({
16941
16908
  return ResponseHandler.generateAuthenticationResult(this.cryptoUtils, this.authority, cacheRecord, true, request, idTokenClaims);
16942
16909
  }
16943
16910
  };
16944
- __name(_SilentFlowClient, "SilentFlowClient");
16945
- SilentFlowClient = _SilentFlowClient;
16946
16911
  }
16947
16912
  });
16948
16913
 
16949
16914
  // ../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/telemetry/server/ServerTelemetryManager.mjs
16950
- var _ServerTelemetryManager, ServerTelemetryManager;
16915
+ var ServerTelemetryManager;
16951
16916
  var init_ServerTelemetryManager = __esm({
16952
16917
  "../../node_modules/.store/@azure-msal-common-npm-14.13.0-f77242c157/package/dist/telemetry/server/ServerTelemetryManager.mjs"() {
16953
16918
  "use strict";
16954
16919
  init_Constants();
16955
16920
  init_AuthError();
16956
- _ServerTelemetryManager = class _ServerTelemetryManager {
16921
+ ServerTelemetryManager = class _ServerTelemetryManager {
16922
+ static {
16923
+ __name(this, "ServerTelemetryManager");
16924
+ }
16957
16925
  constructor(telemetryRequest, cacheManager) {
16958
16926
  this.cacheOutcome = CacheOutcome.NOT_APPLICABLE;
16959
16927
  this.cacheManager = cacheManager;
@@ -17120,8 +17088,6 @@ var init_ServerTelemetryManager = __esm({
17120
17088
  this.cacheOutcome = cacheOutcome;
17121
17089
  }
17122
17090
  };
17123
- __name(_ServerTelemetryManager, "ServerTelemetryManager");
17124
- ServerTelemetryManager = _ServerTelemetryManager;
17125
17091
  }
17126
17092
  });
17127
17093
 
@@ -17169,12 +17135,15 @@ var init_dist = __esm({
17169
17135
  });
17170
17136
 
17171
17137
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/serializer/Deserializer.mjs
17172
- var _Deserializer, Deserializer;
17138
+ var Deserializer;
17173
17139
  var init_Deserializer = __esm({
17174
17140
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/serializer/Deserializer.mjs"() {
17175
17141
  "use strict";
17176
17142
  init_dist();
17177
- _Deserializer = class _Deserializer {
17143
+ Deserializer = class {
17144
+ static {
17145
+ __name(this, "Deserializer");
17146
+ }
17178
17147
  /**
17179
17148
  * Parse the JSON blob in memory and deserialize the content
17180
17149
  * @param cachedJson
@@ -17191,7 +17160,6 @@ var init_Deserializer = __esm({
17191
17160
  const accountObjects = {};
17192
17161
  if (accounts) {
17193
17162
  Object.keys(accounts).map(function(key) {
17194
- var _a;
17195
17163
  const serializedAcc = accounts[key];
17196
17164
  const mappedAcc = {
17197
17165
  homeAccountId: serializedAcc.home_account_id,
@@ -17204,7 +17172,7 @@ var init_Deserializer = __esm({
17204
17172
  clientInfo: serializedAcc.client_info,
17205
17173
  lastModificationTime: serializedAcc.last_modification_time,
17206
17174
  lastModificationApp: serializedAcc.last_modification_app,
17207
- tenantProfiles: (_a = serializedAcc.tenantProfiles) == null ? void 0 : _a.map((serializedTenantProfile) => {
17175
+ tenantProfiles: serializedAcc.tenantProfiles?.map((serializedTenantProfile) => {
17208
17176
  return JSON.parse(serializedTenantProfile);
17209
17177
  })
17210
17178
  };
@@ -17325,8 +17293,6 @@ var init_Deserializer = __esm({
17325
17293
  };
17326
17294
  }
17327
17295
  };
17328
- __name(_Deserializer, "Deserializer");
17329
- Deserializer = _Deserializer;
17330
17296
  }
17331
17297
  });
17332
17298
 
@@ -17446,11 +17412,14 @@ var init_Constants2 = __esm({
17446
17412
  });
17447
17413
 
17448
17414
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/utils/NetworkUtils.mjs
17449
- var _NetworkUtils, NetworkUtils;
17415
+ var NetworkUtils;
17450
17416
  var init_NetworkUtils = __esm({
17451
17417
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/utils/NetworkUtils.mjs"() {
17452
17418
  "use strict";
17453
- _NetworkUtils = class _NetworkUtils {
17419
+ NetworkUtils = class {
17420
+ static {
17421
+ __name(this, "NetworkUtils");
17422
+ }
17454
17423
  static getNetworkResponse(headers, body, statusCode) {
17455
17424
  return {
17456
17425
  headers,
@@ -17482,22 +17451,23 @@ var init_NetworkUtils = __esm({
17482
17451
  return options;
17483
17452
  }
17484
17453
  };
17485
- __name(_NetworkUtils, "NetworkUtils");
17486
- NetworkUtils = _NetworkUtils;
17487
17454
  }
17488
17455
  });
17489
17456
 
17490
17457
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/network/HttpClient.mjs
17491
17458
  import http from "http";
17492
17459
  import https from "https";
17493
- var _HttpClient, HttpClient, networkRequestViaProxy, networkRequestViaHttps, parseBody;
17460
+ var HttpClient, networkRequestViaProxy, networkRequestViaHttps, parseBody;
17494
17461
  var init_HttpClient = __esm({
17495
17462
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/network/HttpClient.mjs"() {
17496
17463
  "use strict";
17497
17464
  init_dist();
17498
17465
  init_Constants2();
17499
17466
  init_NetworkUtils();
17500
- _HttpClient = class _HttpClient {
17467
+ HttpClient = class {
17468
+ static {
17469
+ __name(this, "HttpClient");
17470
+ }
17501
17471
  constructor(proxyUrl, customAgentOptions) {
17502
17472
  this.proxyUrl = proxyUrl || "";
17503
17473
  this.customAgentOptions = customAgentOptions || {};
@@ -17527,12 +17497,10 @@ var init_HttpClient = __esm({
17527
17497
  }
17528
17498
  }
17529
17499
  };
17530
- __name(_HttpClient, "HttpClient");
17531
- HttpClient = _HttpClient;
17532
17500
  networkRequestViaProxy = /* @__PURE__ */ __name((destinationUrlString, proxyUrlString, httpMethod, options, agentOptions, timeout) => {
17533
17501
  const destinationUrl = new URL(destinationUrlString);
17534
17502
  const proxyUrl = new URL(proxyUrlString);
17535
- const headers = (options == null ? void 0 : options.headers) || {};
17503
+ const headers = options?.headers || {};
17536
17504
  const tunnelRequestOptions = {
17537
17505
  host: proxyUrl.hostname,
17538
17506
  port: proxyUrl.port,
@@ -17545,7 +17513,7 @@ var init_HttpClient = __esm({
17545
17513
  }
17546
17514
  let postRequestStringContent = "";
17547
17515
  if (httpMethod === HttpMethod.POST) {
17548
- const body = (options == null ? void 0 : options.body) || "";
17516
+ const body = options?.body || "";
17549
17517
  postRequestStringContent = `Content-Type: application/x-www-form-urlencoded\r
17550
17518
  Content-Length: ${body.length}\r
17551
17519
  \r
@@ -17569,11 +17537,11 @@ Connection: close\r
17569
17537
  }
17570
17538
  request.end();
17571
17539
  request.on("connect", (response, socket) => {
17572
- const proxyStatusCode = (response == null ? void 0 : response.statusCode) || ProxyStatus.SERVER_ERROR;
17540
+ const proxyStatusCode = response?.statusCode || ProxyStatus.SERVER_ERROR;
17573
17541
  if (proxyStatusCode < ProxyStatus.SUCCESS_RANGE_START || proxyStatusCode > ProxyStatus.SUCCESS_RANGE_END) {
17574
17542
  request.destroy();
17575
17543
  socket.destroy();
17576
- reject(new Error(`Error connecting to proxy. Http status code: ${response.statusCode}. Http status message: ${(response == null ? void 0 : response.statusMessage) || "Unknown"}`));
17544
+ reject(new Error(`Error connecting to proxy. Http status code: ${response.statusCode}. Http status message: ${response?.statusMessage || "Unknown"}`));
17577
17545
  }
17578
17546
  socket.write(outgoingRequestString);
17579
17547
  const data = [];
@@ -17624,9 +17592,9 @@ Connection: close\r
17624
17592
  }, "networkRequestViaProxy");
17625
17593
  networkRequestViaHttps = /* @__PURE__ */ __name((urlString, httpMethod, options, agentOptions, timeout) => {
17626
17594
  const isPostRequest = httpMethod === HttpMethod.POST;
17627
- const body = (options == null ? void 0 : options.body) || "";
17595
+ const body = options?.body || "";
17628
17596
  const url = new URL(urlString);
17629
- const headers = (options == null ? void 0 : options.headers) || {};
17597
+ const headers = options?.headers || {};
17630
17598
  const customOptions = {
17631
17599
  method: httpMethod,
17632
17600
  headers,
@@ -17750,7 +17718,7 @@ var init_ManagedIdentityErrorCodes = __esm({
17750
17718
  function createManagedIdentityError(errorCode) {
17751
17719
  return new ManagedIdentityError(errorCode);
17752
17720
  }
17753
- var ManagedIdentityErrorMessages, _ManagedIdentityError, ManagedIdentityError;
17721
+ var ManagedIdentityErrorMessages, ManagedIdentityError;
17754
17722
  var init_ManagedIdentityError = __esm({
17755
17723
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/error/ManagedIdentityError.mjs"() {
17756
17724
  "use strict";
@@ -17777,28 +17745,32 @@ var init_ManagedIdentityError = __esm({
17777
17745
  [wwwAuthenticateHeaderMissing]: "A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is missing.",
17778
17746
  [wwwAuthenticateHeaderUnsupportedFormat]: "A 401 response was received form the Azure Arc Managed Identity, but the www-authenticate header is in an unsupported format."
17779
17747
  };
17780
- _ManagedIdentityError = class _ManagedIdentityError extends AuthError {
17748
+ ManagedIdentityError = class _ManagedIdentityError extends AuthError {
17749
+ static {
17750
+ __name(this, "ManagedIdentityError");
17751
+ }
17781
17752
  constructor(errorCode) {
17782
17753
  super(errorCode, ManagedIdentityErrorMessages[errorCode]);
17783
17754
  this.name = "ManagedIdentityError";
17784
17755
  Object.setPrototypeOf(this, _ManagedIdentityError.prototype);
17785
17756
  }
17786
17757
  };
17787
- __name(_ManagedIdentityError, "ManagedIdentityError");
17788
- ManagedIdentityError = _ManagedIdentityError;
17789
17758
  __name(createManagedIdentityError, "createManagedIdentityError");
17790
17759
  }
17791
17760
  });
17792
17761
 
17793
17762
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/config/ManagedIdentityId.mjs
17794
- var _ManagedIdentityId, ManagedIdentityId;
17763
+ var ManagedIdentityId;
17795
17764
  var init_ManagedIdentityId = __esm({
17796
17765
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/config/ManagedIdentityId.mjs"() {
17797
17766
  "use strict";
17798
17767
  init_ManagedIdentityError();
17799
17768
  init_Constants2();
17800
17769
  init_ManagedIdentityErrorCodes();
17801
- _ManagedIdentityId = class _ManagedIdentityId {
17770
+ ManagedIdentityId = class {
17771
+ static {
17772
+ __name(this, "ManagedIdentityId");
17773
+ }
17802
17774
  get id() {
17803
17775
  return this._id;
17804
17776
  }
@@ -17812,9 +17784,9 @@ var init_ManagedIdentityId = __esm({
17812
17784
  this._idType = value;
17813
17785
  }
17814
17786
  constructor(managedIdentityIdParams) {
17815
- const userAssignedClientId = managedIdentityIdParams == null ? void 0 : managedIdentityIdParams.userAssignedClientId;
17816
- const userAssignedResourceId = managedIdentityIdParams == null ? void 0 : managedIdentityIdParams.userAssignedResourceId;
17817
- const userAssignedObjectId = managedIdentityIdParams == null ? void 0 : managedIdentityIdParams.userAssignedObjectId;
17787
+ const userAssignedClientId = managedIdentityIdParams?.userAssignedClientId;
17788
+ const userAssignedResourceId = managedIdentityIdParams?.userAssignedResourceId;
17789
+ const userAssignedObjectId = managedIdentityIdParams?.userAssignedObjectId;
17818
17790
  if (userAssignedClientId) {
17819
17791
  if (userAssignedResourceId || userAssignedObjectId) {
17820
17792
  throw createManagedIdentityError(invalidManagedIdentityIdType);
@@ -17839,17 +17811,18 @@ var init_ManagedIdentityId = __esm({
17839
17811
  }
17840
17812
  }
17841
17813
  };
17842
- __name(_ManagedIdentityId, "ManagedIdentityId");
17843
- ManagedIdentityId = _ManagedIdentityId;
17844
17814
  }
17845
17815
  });
17846
17816
 
17847
17817
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/retry/LinearRetryPolicy.mjs
17848
- var _LinearRetryPolicy, LinearRetryPolicy;
17818
+ var LinearRetryPolicy;
17849
17819
  var init_LinearRetryPolicy = __esm({
17850
17820
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/retry/LinearRetryPolicy.mjs"() {
17851
17821
  "use strict";
17852
- _LinearRetryPolicy = class _LinearRetryPolicy {
17822
+ LinearRetryPolicy = class {
17823
+ static {
17824
+ __name(this, "LinearRetryPolicy");
17825
+ }
17853
17826
  constructor(maxRetries, retryDelay, httpStatusCodesToRetryOn) {
17854
17827
  this.maxRetries = maxRetries;
17855
17828
  this.retryDelay = retryDelay;
@@ -17880,19 +17853,20 @@ var init_LinearRetryPolicy = __esm({
17880
17853
  return false;
17881
17854
  }
17882
17855
  };
17883
- __name(_LinearRetryPolicy, "LinearRetryPolicy");
17884
- LinearRetryPolicy = _LinearRetryPolicy;
17885
17856
  }
17886
17857
  });
17887
17858
 
17888
17859
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/network/HttpClientWithRetries.mjs
17889
- var _HttpClientWithRetries, HttpClientWithRetries;
17860
+ var HttpClientWithRetries;
17890
17861
  var init_HttpClientWithRetries = __esm({
17891
17862
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/network/HttpClientWithRetries.mjs"() {
17892
17863
  "use strict";
17893
17864
  init_dist();
17894
17865
  init_Constants2();
17895
- _HttpClientWithRetries = class _HttpClientWithRetries {
17866
+ HttpClientWithRetries = class {
17867
+ static {
17868
+ __name(this, "HttpClientWithRetries");
17869
+ }
17896
17870
  constructor(httpClientNoRetries, retryPolicy2) {
17897
17871
  this.httpClientNoRetries = httpClientNoRetries;
17898
17872
  this.retryPolicy = retryPolicy2;
@@ -17920,13 +17894,11 @@ var init_HttpClientWithRetries = __esm({
17920
17894
  return this.sendNetworkRequestAsync(HttpMethod.POST, url, options);
17921
17895
  }
17922
17896
  };
17923
- __name(_HttpClientWithRetries, "HttpClientWithRetries");
17924
- HttpClientWithRetries = _HttpClientWithRetries;
17925
17897
  }
17926
17898
  });
17927
17899
 
17928
17900
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/error/NodeAuthError.mjs
17929
- var NodeAuthErrorMessage, _NodeAuthError, NodeAuthError;
17901
+ var NodeAuthErrorMessage, NodeAuthError;
17930
17902
  var init_NodeAuthError = __esm({
17931
17903
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/error/NodeAuthError.mjs"() {
17932
17904
  "use strict";
@@ -17965,7 +17937,10 @@ var init_NodeAuthError = __esm({
17965
17937
  desc: "Client certificate does not contain a SHA-1 or SHA-256 thumbprint."
17966
17938
  }
17967
17939
  };
17968
- _NodeAuthError = class _NodeAuthError extends AuthError {
17940
+ NodeAuthError = class _NodeAuthError extends AuthError {
17941
+ static {
17942
+ __name(this, "NodeAuthError");
17943
+ }
17969
17944
  constructor(errorCode, errorMessage) {
17970
17945
  super(errorCode, errorMessage);
17971
17946
  this.name = "NodeAuthError";
@@ -18019,8 +17994,6 @@ var init_NodeAuthError = __esm({
18019
17994
  return new _NodeAuthError(NodeAuthErrorMessage.thumbprintMissing.code, NodeAuthErrorMessage.thumbprintMissing.desc);
18020
17995
  }
18021
17996
  };
18022
- __name(_NodeAuthError, "NodeAuthError");
18023
- NodeAuthError = _NodeAuthError;
18024
17997
  }
18025
17998
  });
18026
17999
 
@@ -18028,9 +18001,9 @@ var init_NodeAuthError = __esm({
18028
18001
  function buildAppConfiguration({ auth, broker, cache, system, telemetry }) {
18029
18002
  const systemOptions = {
18030
18003
  ...DEFAULT_SYSTEM_OPTIONS2,
18031
- networkClient: new HttpClient(system == null ? void 0 : system.proxyUrl, system == null ? void 0 : system.customAgentOptions),
18032
- loggerOptions: (system == null ? void 0 : system.loggerOptions) || DEFAULT_LOGGER_OPTIONS,
18033
- disableInternalRetries: (system == null ? void 0 : system.disableInternalRetries) || false
18004
+ networkClient: new HttpClient(system?.proxyUrl, system?.customAgentOptions),
18005
+ loggerOptions: system?.loggerOptions || DEFAULT_LOGGER_OPTIONS,
18006
+ disableInternalRetries: system?.disableInternalRetries || false
18034
18007
  };
18035
18008
  if (!!auth.clientCertificate && !!!auth.clientCertificate.thumbprint && !!!auth.clientCertificate.thumbprintSha256) {
18036
18009
  throw NodeAuthError.createStateNotFoundError();
@@ -18045,14 +18018,14 @@ function buildAppConfiguration({ auth, broker, cache, system, telemetry }) {
18045
18018
  }
18046
18019
  function buildManagedIdentityConfiguration({ managedIdentityIdParams, system }) {
18047
18020
  const managedIdentityId = new ManagedIdentityId(managedIdentityIdParams);
18048
- const loggerOptions = (system == null ? void 0 : system.loggerOptions) || DEFAULT_LOGGER_OPTIONS;
18021
+ const loggerOptions = system?.loggerOptions || DEFAULT_LOGGER_OPTIONS;
18049
18022
  let networkClient;
18050
- if (system == null ? void 0 : system.networkClient) {
18023
+ if (system?.networkClient) {
18051
18024
  networkClient = system.networkClient;
18052
18025
  } else {
18053
- networkClient = new HttpClient(system == null ? void 0 : system.proxyUrl, system == null ? void 0 : system.customAgentOptions);
18026
+ networkClient = new HttpClient(system?.proxyUrl, system?.customAgentOptions);
18054
18027
  }
18055
- if (!(system == null ? void 0 : system.disableInternalRetries)) {
18028
+ if (!system?.disableInternalRetries) {
18056
18029
  const linearRetryPolicy = new LinearRetryPolicy(MANAGED_IDENTITY_MAX_RETRIES, MANAGED_IDENTITY_RETRY_DELAY, MANAGED_IDENTITY_HTTP_STATUS_CODES_TO_RETRY_ON);
18057
18030
  networkClient = new HttpClientWithRetries(networkClient, linearRetryPolicy);
18058
18031
  }
@@ -18217,12 +18190,15 @@ var init_esm_node = __esm({
18217
18190
  });
18218
18191
 
18219
18192
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/crypto/GuidGenerator.mjs
18220
- var _GuidGenerator, GuidGenerator;
18193
+ var GuidGenerator;
18221
18194
  var init_GuidGenerator = __esm({
18222
18195
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/crypto/GuidGenerator.mjs"() {
18223
18196
  "use strict";
18224
18197
  init_esm_node();
18225
- _GuidGenerator = class _GuidGenerator {
18198
+ GuidGenerator = class {
18199
+ static {
18200
+ __name(this, "GuidGenerator");
18201
+ }
18226
18202
  /**
18227
18203
  *
18228
18204
  * RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
@@ -18240,18 +18216,19 @@ var init_GuidGenerator = __esm({
18240
18216
  return regexGuid.test(guid);
18241
18217
  }
18242
18218
  };
18243
- __name(_GuidGenerator, "GuidGenerator");
18244
- GuidGenerator = _GuidGenerator;
18245
18219
  }
18246
18220
  });
18247
18221
 
18248
18222
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/utils/EncodingUtils.mjs
18249
- var _EncodingUtils, EncodingUtils;
18223
+ var EncodingUtils;
18250
18224
  var init_EncodingUtils = __esm({
18251
18225
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/utils/EncodingUtils.mjs"() {
18252
18226
  "use strict";
18253
18227
  init_dist();
18254
- _EncodingUtils = class _EncodingUtils {
18228
+ EncodingUtils = class _EncodingUtils {
18229
+ static {
18230
+ __name(this, "EncodingUtils");
18231
+ }
18255
18232
  /**
18256
18233
  * 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
18257
18234
  * 'base64': Base64 encoding.
@@ -18288,19 +18265,20 @@ var init_EncodingUtils = __esm({
18288
18265
  return _EncodingUtils.base64Decode(str);
18289
18266
  }
18290
18267
  };
18291
- __name(_EncodingUtils, "EncodingUtils");
18292
- EncodingUtils = _EncodingUtils;
18293
18268
  }
18294
18269
  });
18295
18270
 
18296
18271
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/crypto/HashUtils.mjs
18297
18272
  import crypto3 from "crypto";
18298
- var _HashUtils, HashUtils;
18273
+ var HashUtils;
18299
18274
  var init_HashUtils = __esm({
18300
18275
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/crypto/HashUtils.mjs"() {
18301
18276
  "use strict";
18302
18277
  init_Constants2();
18303
- _HashUtils = class _HashUtils {
18278
+ HashUtils = class {
18279
+ static {
18280
+ __name(this, "HashUtils");
18281
+ }
18304
18282
  /**
18305
18283
  * generate 'SHA256' hash
18306
18284
  * @param buffer
@@ -18309,14 +18287,12 @@ var init_HashUtils = __esm({
18309
18287
  return crypto3.createHash(Hash.SHA256).update(buffer).digest();
18310
18288
  }
18311
18289
  };
18312
- __name(_HashUtils, "HashUtils");
18313
- HashUtils = _HashUtils;
18314
18290
  }
18315
18291
  });
18316
18292
 
18317
18293
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/crypto/PkceGenerator.mjs
18318
18294
  import crypto4 from "crypto";
18319
- var _PkceGenerator, PkceGenerator;
18295
+ var PkceGenerator;
18320
18296
  var init_PkceGenerator = __esm({
18321
18297
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/crypto/PkceGenerator.mjs"() {
18322
18298
  "use strict";
@@ -18324,7 +18300,10 @@ var init_PkceGenerator = __esm({
18324
18300
  init_Constants2();
18325
18301
  init_EncodingUtils();
18326
18302
  init_HashUtils();
18327
- _PkceGenerator = class _PkceGenerator {
18303
+ PkceGenerator = class {
18304
+ static {
18305
+ __name(this, "PkceGenerator");
18306
+ }
18328
18307
  constructor() {
18329
18308
  this.hashUtils = new HashUtils();
18330
18309
  }
@@ -18362,13 +18341,11 @@ var init_PkceGenerator = __esm({
18362
18341
  return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(codeVerifier).toString("base64"), "base64");
18363
18342
  }
18364
18343
  };
18365
- __name(_PkceGenerator, "PkceGenerator");
18366
- PkceGenerator = _PkceGenerator;
18367
18344
  }
18368
18345
  });
18369
18346
 
18370
18347
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/crypto/CryptoProvider.mjs
18371
- var _CryptoProvider, CryptoProvider;
18348
+ var CryptoProvider;
18372
18349
  var init_CryptoProvider = __esm({
18373
18350
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/crypto/CryptoProvider.mjs"() {
18374
18351
  "use strict";
@@ -18376,7 +18353,10 @@ var init_CryptoProvider = __esm({
18376
18353
  init_EncodingUtils();
18377
18354
  init_PkceGenerator();
18378
18355
  init_HashUtils();
18379
- _CryptoProvider = class _CryptoProvider {
18356
+ CryptoProvider = class {
18357
+ static {
18358
+ __name(this, "CryptoProvider");
18359
+ }
18380
18360
  constructor() {
18381
18361
  this.pkceGenerator = new PkceGenerator();
18382
18362
  this.guidGenerator = new GuidGenerator();
@@ -18455,20 +18435,21 @@ var init_CryptoProvider = __esm({
18455
18435
  return EncodingUtils.base64EncodeUrl(this.hashUtils.sha256(plainText).toString("base64"), "base64");
18456
18436
  }
18457
18437
  };
18458
- __name(_CryptoProvider, "CryptoProvider");
18459
- CryptoProvider = _CryptoProvider;
18460
18438
  }
18461
18439
  });
18462
18440
 
18463
18441
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/NodeStorage.mjs
18464
- var _NodeStorage, NodeStorage;
18442
+ var NodeStorage;
18465
18443
  var init_NodeStorage = __esm({
18466
18444
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/NodeStorage.mjs"() {
18467
18445
  "use strict";
18468
18446
  init_dist();
18469
18447
  init_Deserializer();
18470
18448
  init_Serializer();
18471
- _NodeStorage = class _NodeStorage extends CacheManager {
18449
+ NodeStorage = class extends CacheManager {
18450
+ static {
18451
+ __name(this, "NodeStorage");
18452
+ }
18472
18453
  constructor(logger, clientId, cryptoImpl, staticAuthorityOptions) {
18473
18454
  super(clientId, cryptoImpl, logger, staticAuthorityOptions);
18474
18455
  this.cache = {};
@@ -18859,13 +18840,11 @@ var init_NodeStorage = __esm({
18859
18840
  return currentCacheKey;
18860
18841
  }
18861
18842
  };
18862
- __name(_NodeStorage, "NodeStorage");
18863
- NodeStorage = _NodeStorage;
18864
18843
  }
18865
18844
  });
18866
18845
 
18867
18846
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/TokenCache.mjs
18868
- var defaultSerializedCache, _TokenCache, TokenCache;
18847
+ var defaultSerializedCache, TokenCache;
18869
18848
  var init_TokenCache = __esm({
18870
18849
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/TokenCache.mjs"() {
18871
18850
  "use strict";
@@ -18879,7 +18858,10 @@ var init_TokenCache = __esm({
18879
18858
  RefreshToken: {},
18880
18859
  AppMetadata: {}
18881
18860
  };
18882
- _TokenCache = class _TokenCache {
18861
+ TokenCache = class {
18862
+ static {
18863
+ __name(this, "TokenCache");
18864
+ }
18883
18865
  constructor(storage, logger, cachePlugin) {
18884
18866
  this.cacheHasChanged = false;
18885
18867
  this.storage = storage;
@@ -19104,8 +19086,6 @@ var init_TokenCache = __esm({
19104
19086
  };
19105
19087
  }
19106
19088
  };
19107
- __name(_TokenCache, "TokenCache");
19108
- TokenCache = _TokenCache;
19109
19089
  }
19110
19090
  });
19111
19091
 
@@ -20141,7 +20121,10 @@ var require_semver = __commonJS({
20141
20121
  var { safeRe: re, t } = require_re();
20142
20122
  var parseOptions = require_parse_options();
20143
20123
  var { compareIdentifiers } = require_identifiers();
20144
- var _SemVer = class _SemVer {
20124
+ var SemVer = class _SemVer {
20125
+ static {
20126
+ __name(this, "SemVer");
20127
+ }
20145
20128
  constructor(version3, options) {
20146
20129
  options = parseOptions(options);
20147
20130
  if (version3 instanceof _SemVer) {
@@ -20407,8 +20390,6 @@ var require_semver = __commonJS({
20407
20390
  return this;
20408
20391
  }
20409
20392
  };
20410
- __name(_SemVer, "SemVer");
20411
- var SemVer = _SemVer;
20412
20393
  module.exports = SemVer;
20413
20394
  }
20414
20395
  });
@@ -20796,7 +20777,10 @@ var require_coerce = __commonJS({
20796
20777
  var require_lrucache = __commonJS({
20797
20778
  "../../node_modules/.store/semver-npm-7.7.4-746e538da5/package/internal/lrucache.js"(exports, module) {
20798
20779
  "use strict";
20799
- var _LRUCache = class _LRUCache {
20780
+ var LRUCache = class {
20781
+ static {
20782
+ __name(this, "LRUCache");
20783
+ }
20800
20784
  constructor() {
20801
20785
  this.max = 1e3;
20802
20786
  this.map = /* @__PURE__ */ new Map();
@@ -20826,8 +20810,6 @@ var require_lrucache = __commonJS({
20826
20810
  return this;
20827
20811
  }
20828
20812
  };
20829
- __name(_LRUCache, "LRUCache");
20830
- var LRUCache = _LRUCache;
20831
20813
  module.exports = LRUCache;
20832
20814
  }
20833
20815
  });
@@ -20837,7 +20819,10 @@ var require_range = __commonJS({
20837
20819
  "../../node_modules/.store/semver-npm-7.7.4-746e538da5/package/classes/range.js"(exports, module) {
20838
20820
  "use strict";
20839
20821
  var SPACE_CHARACTERS = /\s+/g;
20840
- var _Range = class _Range {
20822
+ var Range = class _Range {
20823
+ static {
20824
+ __name(this, "Range");
20825
+ }
20841
20826
  constructor(range, options) {
20842
20827
  options = parseOptions(options);
20843
20828
  if (range instanceof _Range) {
@@ -20975,8 +20960,6 @@ var require_range = __commonJS({
20975
20960
  return false;
20976
20961
  }
20977
20962
  };
20978
- __name(_Range, "Range");
20979
- var Range = _Range;
20980
20963
  module.exports = Range;
20981
20964
  var LRU = require_lrucache();
20982
20965
  var cache = new LRU();
@@ -21216,7 +21199,10 @@ var require_comparator = __commonJS({
21216
21199
  "../../node_modules/.store/semver-npm-7.7.4-746e538da5/package/classes/comparator.js"(exports, module) {
21217
21200
  "use strict";
21218
21201
  var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
21219
- var _Comparator = class _Comparator {
21202
+ var Comparator = class _Comparator {
21203
+ static {
21204
+ __name(this, "Comparator");
21205
+ }
21220
21206
  static get ANY() {
21221
21207
  return ANY;
21222
21208
  }
@@ -21314,8 +21300,6 @@ var require_comparator = __commonJS({
21314
21300
  return false;
21315
21301
  }
21316
21302
  };
21317
- __name(_Comparator, "Comparator");
21318
- var Comparator = _Comparator;
21319
21303
  module.exports = Comparator;
21320
21304
  var parseOptions = require_parse_options();
21321
21305
  var { safeRe: re, t } = require_re();
@@ -22905,7 +22889,7 @@ var require_package14 = __commonJS({
22905
22889
  });
22906
22890
 
22907
22891
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ClientAssertion.mjs
22908
- var import_jsonwebtoken, _ClientAssertion, ClientAssertion;
22892
+ var import_jsonwebtoken, ClientAssertion;
22909
22893
  var init_ClientAssertion = __esm({
22910
22894
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ClientAssertion.mjs"() {
22911
22895
  "use strict";
@@ -22913,7 +22897,10 @@ var init_ClientAssertion = __esm({
22913
22897
  init_dist();
22914
22898
  init_EncodingUtils();
22915
22899
  init_Constants2();
22916
- _ClientAssertion = class _ClientAssertion {
22900
+ ClientAssertion = class _ClientAssertion {
22901
+ static {
22902
+ __name(this, "ClientAssertion");
22903
+ }
22917
22904
  /**
22918
22905
  * Initialize the ClientAssertion class from the clientAssertion passed by the user
22919
22906
  * @param assertion - refer https://tools.ietf.org/html/rfc7521
@@ -23025,8 +23012,6 @@ var init_ClientAssertion = __esm({
23025
23012
  return certs;
23026
23013
  }
23027
23014
  };
23028
- __name(_ClientAssertion, "ClientAssertion");
23029
- ClientAssertion = _ClientAssertion;
23030
23015
  }
23031
23016
  });
23032
23017
 
@@ -23041,12 +23026,15 @@ var init_packageMetadata2 = __esm({
23041
23026
  });
23042
23027
 
23043
23028
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/UsernamePasswordClient.mjs
23044
- var _UsernamePasswordClient, UsernamePasswordClient;
23029
+ var UsernamePasswordClient;
23045
23030
  var init_UsernamePasswordClient = __esm({
23046
23031
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/UsernamePasswordClient.mjs"() {
23047
23032
  "use strict";
23048
23033
  init_dist();
23049
- _UsernamePasswordClient = class _UsernamePasswordClient extends BaseClient {
23034
+ UsernamePasswordClient = class extends BaseClient {
23035
+ static {
23036
+ __name(this, "UsernamePasswordClient");
23037
+ }
23050
23038
  constructor(configuration) {
23051
23039
  super(configuration);
23052
23040
  }
@@ -23128,13 +23116,11 @@ var init_UsernamePasswordClient = __esm({
23128
23116
  return parameterBuilder.createQueryString();
23129
23117
  }
23130
23118
  };
23131
- __name(_UsernamePasswordClient, "UsernamePasswordClient");
23132
- UsernamePasswordClient = _UsernamePasswordClient;
23133
23119
  }
23134
23120
  });
23135
23121
 
23136
23122
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ClientApplication.mjs
23137
- var _ClientApplication, ClientApplication;
23123
+ var ClientApplication;
23138
23124
  var init_ClientApplication = __esm({
23139
23125
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ClientApplication.mjs"() {
23140
23126
  "use strict";
@@ -23148,7 +23134,10 @@ var init_ClientApplication = __esm({
23148
23134
  init_packageMetadata2();
23149
23135
  init_NodeAuthError();
23150
23136
  init_UsernamePasswordClient();
23151
- _ClientApplication = class _ClientApplication {
23137
+ ClientApplication = class {
23138
+ static {
23139
+ __name(this, "ClientApplication");
23140
+ }
23152
23141
  /**
23153
23142
  * Constructor for the ClientApplication
23154
23143
  */
@@ -23348,7 +23337,7 @@ var init_ClientApplication = __esm({
23348
23337
  const userAzureCloudOptions = azureCloudOptions ? azureCloudOptions : this.config.auth.azureCloudOptions;
23349
23338
  const discoveredAuthority = await this.createAuthority(authority, requestCorrelationId, azureRegionConfiguration, userAzureCloudOptions);
23350
23339
  this.logger.info(`Building oauth client configuration with the following authority: ${discoveredAuthority.tokenEndpoint}.`, requestCorrelationId);
23351
- serverTelemetryManager == null ? void 0 : serverTelemetryManager.updateRegionDiscoveryMetadata(discoveredAuthority.regionDiscoveryMetadata);
23340
+ serverTelemetryManager?.updateRegionDiscoveryMetadata(discoveredAuthority.regionDiscoveryMetadata);
23352
23341
  const clientConfiguration = {
23353
23342
  authOptions: {
23354
23343
  clientId: this.config.auth.clientId,
@@ -23457,21 +23446,22 @@ var init_ClientApplication = __esm({
23457
23446
  void this.storage.clear();
23458
23447
  }
23459
23448
  };
23460
- __name(_ClientApplication, "ClientApplication");
23461
- ClientApplication = _ClientApplication;
23462
23449
  }
23463
23450
  });
23464
23451
 
23465
23452
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/network/LoopbackClient.mjs
23466
23453
  import http2 from "http";
23467
- var _LoopbackClient, LoopbackClient;
23454
+ var LoopbackClient;
23468
23455
  var init_LoopbackClient = __esm({
23469
23456
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/network/LoopbackClient.mjs"() {
23470
23457
  "use strict";
23471
23458
  init_dist();
23472
23459
  init_NodeAuthError();
23473
23460
  init_Constants2();
23474
- _LoopbackClient = class _LoopbackClient {
23461
+ LoopbackClient = class {
23462
+ static {
23463
+ __name(this, "LoopbackClient");
23464
+ }
23475
23465
  /**
23476
23466
  * Spins up a loopback server which returns the server response when the localhost redirectUri is hit
23477
23467
  * @param successTemplate
@@ -23537,18 +23527,19 @@ var init_LoopbackClient = __esm({
23537
23527
  }
23538
23528
  }
23539
23529
  };
23540
- __name(_LoopbackClient, "LoopbackClient");
23541
- LoopbackClient = _LoopbackClient;
23542
23530
  }
23543
23531
  });
23544
23532
 
23545
23533
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/DeviceCodeClient.mjs
23546
- var _DeviceCodeClient, DeviceCodeClient;
23534
+ var DeviceCodeClient;
23547
23535
  var init_DeviceCodeClient = __esm({
23548
23536
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/DeviceCodeClient.mjs"() {
23549
23537
  "use strict";
23550
23538
  init_dist();
23551
- _DeviceCodeClient = class _DeviceCodeClient extends BaseClient {
23539
+ DeviceCodeClient = class extends BaseClient {
23540
+ static {
23541
+ __name(this, "DeviceCodeClient");
23542
+ }
23552
23543
  constructor(configuration) {
23553
23544
  super(configuration);
23554
23545
  }
@@ -23724,13 +23715,11 @@ var init_DeviceCodeClient = __esm({
23724
23715
  return requestParameters.createQueryString();
23725
23716
  }
23726
23717
  };
23727
- __name(_DeviceCodeClient, "DeviceCodeClient");
23728
- DeviceCodeClient = _DeviceCodeClient;
23729
23718
  }
23730
23719
  });
23731
23720
 
23732
23721
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/PublicClientApplication.mjs
23733
- var _PublicClientApplication, PublicClientApplication;
23722
+ var PublicClientApplication;
23734
23723
  var init_PublicClientApplication = __esm({
23735
23724
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/PublicClientApplication.mjs"() {
23736
23725
  "use strict";
@@ -23740,7 +23729,10 @@ var init_PublicClientApplication = __esm({
23740
23729
  init_NodeAuthError();
23741
23730
  init_LoopbackClient();
23742
23731
  init_DeviceCodeClient();
23743
- _PublicClientApplication = class _PublicClientApplication extends ClientApplication {
23732
+ PublicClientApplication = class extends ClientApplication {
23733
+ static {
23734
+ __name(this, "PublicClientApplication");
23735
+ }
23744
23736
  /**
23745
23737
  * Important attributes in the Configuration object for auth are:
23746
23738
  * - clientID: the application ID of your application. You can obtain one by registering your application with our Application registration portal.
@@ -23799,7 +23791,6 @@ var init_PublicClientApplication = __esm({
23799
23791
  * Acquires a token interactively via the browser by requesting an authorization code then exchanging it for a token.
23800
23792
  */
23801
23793
  async acquireTokenInteractive(request) {
23802
- var _a;
23803
23794
  const correlationId = request.correlationId || this.cryptoProvider.createNewGuid();
23804
23795
  this.logger.trace("acquireTokenInteractive called", correlationId);
23805
23796
  const { openBrowser, successTemplate, errorTemplate, windowHandle, loopbackClient: customLoopbackClient, ...remainingProperties } = request;
@@ -23815,7 +23806,7 @@ var init_PublicClientApplication = __esm({
23815
23806
  ...remainingProperties.extraQueryParameters,
23816
23807
  ...remainingProperties.tokenQueryParameters
23817
23808
  },
23818
- accountId: (_a = remainingProperties.account) == null ? void 0 : _a.nativeAccountId
23809
+ accountId: remainingProperties.account?.nativeAccountId
23819
23810
  };
23820
23811
  return this.nativeBrokerPlugin.acquireTokenInteractive(brokerRequest, windowHandle);
23821
23812
  }
@@ -23945,18 +23936,19 @@ var init_PublicClientApplication = __esm({
23945
23936
  });
23946
23937
  }
23947
23938
  };
23948
- __name(_PublicClientApplication, "PublicClientApplication");
23949
- PublicClientApplication = _PublicClientApplication;
23950
23939
  }
23951
23940
  });
23952
23941
 
23953
23942
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ClientCredentialClient.mjs
23954
- var _ClientCredentialClient, ClientCredentialClient;
23943
+ var ClientCredentialClient;
23955
23944
  var init_ClientCredentialClient = __esm({
23956
23945
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ClientCredentialClient.mjs"() {
23957
23946
  "use strict";
23958
23947
  init_dist();
23959
- _ClientCredentialClient = class _ClientCredentialClient extends BaseClient {
23948
+ ClientCredentialClient = class extends BaseClient {
23949
+ static {
23950
+ __name(this, "ClientCredentialClient");
23951
+ }
23960
23952
  constructor(configuration, appTokenProvider) {
23961
23953
  super(configuration);
23962
23954
  this.appTokenProvider = appTokenProvider;
@@ -23985,7 +23977,6 @@ var init_ClientCredentialClient = __esm({
23985
23977
  * looks up cache if the tokens are cached already
23986
23978
  */
23987
23979
  async getCachedAuthenticationResult(request, config, cryptoUtils, authority, cacheManager, serverTelemetryManager) {
23988
- var _a, _b;
23989
23980
  const clientConfiguration = config;
23990
23981
  const managedIdentityConfiguration = config;
23991
23982
  let lastCacheOutcome = CacheOutcome.NOT_APPLICABLE;
@@ -23994,21 +23985,21 @@ var init_ClientCredentialClient = __esm({
23994
23985
  cacheContext = new TokenCacheContext(clientConfiguration.serializableCache, false);
23995
23986
  await clientConfiguration.persistencePlugin.beforeCacheAccess(cacheContext);
23996
23987
  }
23997
- const cachedAccessToken = this.readAccessTokenFromCache(authority, ((_a = managedIdentityConfiguration.managedIdentityId) == null ? void 0 : _a.id) || clientConfiguration.authOptions.clientId, new ScopeSet(request.scopes || []), cacheManager);
23988
+ const cachedAccessToken = this.readAccessTokenFromCache(authority, managedIdentityConfiguration.managedIdentityId?.id || clientConfiguration.authOptions.clientId, new ScopeSet(request.scopes || []), cacheManager);
23998
23989
  if (clientConfiguration.serializableCache && clientConfiguration.persistencePlugin && cacheContext) {
23999
23990
  await clientConfiguration.persistencePlugin.afterCacheAccess(cacheContext);
24000
23991
  }
24001
23992
  if (!cachedAccessToken) {
24002
- serverTelemetryManager == null ? void 0 : serverTelemetryManager.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
23993
+ serverTelemetryManager?.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
24003
23994
  return [null, CacheOutcome.NO_CACHED_ACCESS_TOKEN];
24004
23995
  }
24005
- if (TimeUtils_exports.isTokenExpired(cachedAccessToken.expiresOn, ((_b = clientConfiguration.systemOptions) == null ? void 0 : _b.tokenRenewalOffsetSeconds) || DEFAULT_TOKEN_RENEWAL_OFFSET_SEC)) {
24006
- serverTelemetryManager == null ? void 0 : serverTelemetryManager.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
23996
+ if (TimeUtils_exports.isTokenExpired(cachedAccessToken.expiresOn, clientConfiguration.systemOptions?.tokenRenewalOffsetSeconds || DEFAULT_TOKEN_RENEWAL_OFFSET_SEC)) {
23997
+ serverTelemetryManager?.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
24007
23998
  return [null, CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED];
24008
23999
  }
24009
24000
  if (cachedAccessToken.refreshOn && TimeUtils_exports.isTokenExpired(cachedAccessToken.refreshOn.toString(), 0)) {
24010
24001
  lastCacheOutcome = CacheOutcome.PROACTIVELY_REFRESHED;
24011
- serverTelemetryManager == null ? void 0 : serverTelemetryManager.setCacheOutcome(CacheOutcome.PROACTIVELY_REFRESHED);
24002
+ serverTelemetryManager?.setCacheOutcome(CacheOutcome.PROACTIVELY_REFRESHED);
24012
24003
  }
24013
24004
  return [
24014
24005
  await ResponseHandler.generateAuthenticationResult(cryptoUtils, authority, {
@@ -24123,19 +24114,20 @@ var init_ClientCredentialClient = __esm({
24123
24114
  return parameterBuilder.createQueryString();
24124
24115
  }
24125
24116
  };
24126
- __name(_ClientCredentialClient, "ClientCredentialClient");
24127
- ClientCredentialClient = _ClientCredentialClient;
24128
24117
  }
24129
24118
  });
24130
24119
 
24131
24120
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/OnBehalfOfClient.mjs
24132
- var _OnBehalfOfClient, OnBehalfOfClient;
24121
+ var OnBehalfOfClient;
24133
24122
  var init_OnBehalfOfClient = __esm({
24134
24123
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/OnBehalfOfClient.mjs"() {
24135
24124
  "use strict";
24136
24125
  init_dist();
24137
24126
  init_EncodingUtils();
24138
- _OnBehalfOfClient = class _OnBehalfOfClient extends BaseClient {
24127
+ OnBehalfOfClient = class extends BaseClient {
24128
+ static {
24129
+ __name(this, "OnBehalfOfClient");
24130
+ }
24139
24131
  constructor(configuration) {
24140
24132
  super(configuration);
24141
24133
  }
@@ -24164,14 +24156,13 @@ var init_OnBehalfOfClient = __esm({
24164
24156
  * @param request
24165
24157
  */
24166
24158
  async getCachedAuthenticationResult(request) {
24167
- var _a, _b;
24168
24159
  const cachedAccessToken = this.readAccessTokenFromCacheForOBO(this.config.authOptions.clientId, request);
24169
24160
  if (!cachedAccessToken) {
24170
- (_a = this.serverTelemetryManager) == null ? void 0 : _a.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
24161
+ this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
24171
24162
  this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.");
24172
24163
  throw createClientAuthError(ClientAuthErrorCodes_exports.tokenRefreshRequired);
24173
24164
  } else if (TimeUtils_exports.isTokenExpired(cachedAccessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) {
24174
- (_b = this.serverTelemetryManager) == null ? void 0 : _b.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
24165
+ this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
24175
24166
  this.logger.info(`OnbehalfofFlow:getCachedAuthenticationResult - Cached access token is expired or will expire within ${this.config.systemOptions.tokenRenewalOffsetSeconds} seconds.`);
24176
24167
  throw createClientAuthError(ClientAuthErrorCodes_exports.tokenRefreshRequired);
24177
24168
  }
@@ -24309,13 +24300,11 @@ var init_OnBehalfOfClient = __esm({
24309
24300
  return parameterBuilder.createQueryString();
24310
24301
  }
24311
24302
  };
24312
- __name(_OnBehalfOfClient, "OnBehalfOfClient");
24313
- OnBehalfOfClient = _OnBehalfOfClient;
24314
24303
  }
24315
24304
  });
24316
24305
 
24317
24306
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ConfidentialClientApplication.mjs
24318
- var _ConfidentialClientApplication, ConfidentialClientApplication;
24307
+ var ConfidentialClientApplication;
24319
24308
  var init_ConfidentialClientApplication = __esm({
24320
24309
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ConfidentialClientApplication.mjs"() {
24321
24310
  "use strict";
@@ -24325,7 +24314,10 @@ var init_ConfidentialClientApplication = __esm({
24325
24314
  init_dist();
24326
24315
  init_ClientCredentialClient();
24327
24316
  init_OnBehalfOfClient();
24328
- _ConfidentialClientApplication = class _ConfidentialClientApplication extends ClientApplication {
24317
+ ConfidentialClientApplication = class extends ClientApplication {
24318
+ static {
24319
+ __name(this, "ConfidentialClientApplication");
24320
+ }
24329
24321
  /**
24330
24322
  * Constructor for the ConfidentialClientApplication
24331
24323
  *
@@ -24467,13 +24459,11 @@ var init_ConfidentialClientApplication = __esm({
24467
24459
  }
24468
24460
  }
24469
24461
  };
24470
- __name(_ConfidentialClientApplication, "ConfidentialClientApplication");
24471
- ConfidentialClientApplication = _ConfidentialClientApplication;
24472
24462
  }
24473
24463
  });
24474
24464
 
24475
24465
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs
24476
- var ManagedIdentityUserAssignedIdQueryParameterNames, _BaseManagedIdentitySource, BaseManagedIdentitySource;
24466
+ var ManagedIdentityUserAssignedIdQueryParameterNames, BaseManagedIdentitySource;
24477
24467
  var init_BaseManagedIdentitySource = __esm({
24478
24468
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs"() {
24479
24469
  "use strict";
@@ -24486,7 +24476,10 @@ var init_BaseManagedIdentitySource = __esm({
24486
24476
  MANAGED_IDENTITY_OBJECT_ID: "object_id",
24487
24477
  MANAGED_IDENTITY_RESOURCE_ID: "mi_res_id"
24488
24478
  };
24489
- _BaseManagedIdentitySource = class _BaseManagedIdentitySource {
24479
+ BaseManagedIdentitySource = class {
24480
+ static {
24481
+ __name(this, "BaseManagedIdentitySource");
24482
+ }
24490
24483
  constructor(logger, nodeStorage, networkClient, cryptoProvider) {
24491
24484
  this.logger = logger;
24492
24485
  this.nodeStorage = nodeStorage;
@@ -24497,7 +24490,6 @@ var init_BaseManagedIdentitySource = __esm({
24497
24490
  return this.getServerTokenResponse(response);
24498
24491
  }
24499
24492
  getServerTokenResponse(response) {
24500
- var _a, _b;
24501
24493
  let refreshIn, expiresIn;
24502
24494
  if (response.body.expires_on) {
24503
24495
  expiresIn = response.body.expires_on - TimeUtils_exports.nowSeconds();
@@ -24515,8 +24507,8 @@ var init_BaseManagedIdentitySource = __esm({
24515
24507
  refresh_in: refreshIn,
24516
24508
  // error
24517
24509
  correlation_id: response.body.correlation_id || response.body.correlationId,
24518
- error: typeof response.body.error === "string" ? response.body.error : (_a = response.body.error) == null ? void 0 : _a.code,
24519
- error_description: response.body.message || (typeof response.body.error === "string" ? response.body.error_description : (_b = response.body.error) == null ? void 0 : _b.message),
24510
+ error: typeof response.body.error === "string" ? response.body.error : response.body.error?.code,
24511
+ error_description: response.body.message || (typeof response.body.error === "string" ? response.body.error_description : response.body.error?.message),
24520
24512
  error_codes: response.body.error_codes,
24521
24513
  timestamp: response.body.timestamp,
24522
24514
  trace_id: response.body.trace_id
@@ -24567,8 +24559,6 @@ var init_BaseManagedIdentitySource = __esm({
24567
24559
  }
24568
24560
  }
24569
24561
  };
24570
- __name(_BaseManagedIdentitySource, "BaseManagedIdentitySource");
24571
- BaseManagedIdentitySource = _BaseManagedIdentitySource;
24572
24562
  BaseManagedIdentitySource.getValidatedEnvVariableUrlString = (envVariableStringName, envVariable, sourceName, logger) => {
24573
24563
  try {
24574
24564
  return new UrlString(envVariable).urlString;
@@ -24581,12 +24571,15 @@ var init_BaseManagedIdentitySource = __esm({
24581
24571
  });
24582
24572
 
24583
24573
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/config/ManagedIdentityRequestParameters.mjs
24584
- var _ManagedIdentityRequestParameters, ManagedIdentityRequestParameters;
24574
+ var ManagedIdentityRequestParameters;
24585
24575
  var init_ManagedIdentityRequestParameters = __esm({
24586
24576
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/config/ManagedIdentityRequestParameters.mjs"() {
24587
24577
  "use strict";
24588
24578
  init_dist();
24589
- _ManagedIdentityRequestParameters = class _ManagedIdentityRequestParameters {
24579
+ ManagedIdentityRequestParameters = class {
24580
+ static {
24581
+ __name(this, "ManagedIdentityRequestParameters");
24582
+ }
24590
24583
  constructor(httpMethod, endpoint) {
24591
24584
  this.httpMethod = httpMethod;
24592
24585
  this._baseEndpoint = endpoint;
@@ -24610,13 +24603,11 @@ var init_ManagedIdentityRequestParameters = __esm({
24610
24603
  return parameterBuilder.createQueryString();
24611
24604
  }
24612
24605
  };
24613
- __name(_ManagedIdentityRequestParameters, "ManagedIdentityRequestParameters");
24614
- ManagedIdentityRequestParameters = _ManagedIdentityRequestParameters;
24615
24606
  }
24616
24607
  });
24617
24608
 
24618
24609
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/AppService.mjs
24619
- var APP_SERVICE_MSI_API_VERSION, _AppService, AppService;
24610
+ var APP_SERVICE_MSI_API_VERSION, AppService;
24620
24611
  var init_AppService = __esm({
24621
24612
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/AppService.mjs"() {
24622
24613
  "use strict";
@@ -24624,7 +24615,10 @@ var init_AppService = __esm({
24624
24615
  init_Constants2();
24625
24616
  init_ManagedIdentityRequestParameters();
24626
24617
  APP_SERVICE_MSI_API_VERSION = "2019-08-01";
24627
- _AppService = class _AppService extends BaseManagedIdentitySource {
24618
+ AppService = class _AppService extends BaseManagedIdentitySource {
24619
+ static {
24620
+ __name(this, "AppService");
24621
+ }
24628
24622
  constructor(logger, nodeStorage, networkClient, cryptoProvider, identityEndpoint, identityHeader) {
24629
24623
  super(logger, nodeStorage, networkClient, cryptoProvider);
24630
24624
  this.identityEndpoint = identityEndpoint;
@@ -24656,15 +24650,13 @@ var init_AppService = __esm({
24656
24650
  return request;
24657
24651
  }
24658
24652
  };
24659
- __name(_AppService, "AppService");
24660
- AppService = _AppService;
24661
24653
  }
24662
24654
  });
24663
24655
 
24664
24656
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/AzureArc.mjs
24665
24657
  import { statSync, readFileSync } from "fs";
24666
24658
  import path from "path";
24667
- var ARC_API_VERSION, SUPPORTED_AZURE_ARC_PLATFORMS, _AzureArc, AzureArc;
24659
+ var ARC_API_VERSION, SUPPORTED_AZURE_ARC_PLATFORMS, AzureArc;
24668
24660
  var init_AzureArc = __esm({
24669
24661
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/AzureArc.mjs"() {
24670
24662
  "use strict";
@@ -24679,7 +24671,10 @@ var init_AzureArc = __esm({
24679
24671
  win32: `${process.env["ProgramData"]}\\AzureConnectedMachineAgent\\Tokens\\`,
24680
24672
  linux: "/var/opt/azcmagent/tokens/"
24681
24673
  };
24682
- _AzureArc = class _AzureArc extends BaseManagedIdentitySource {
24674
+ AzureArc = class _AzureArc extends BaseManagedIdentitySource {
24675
+ static {
24676
+ __name(this, "AzureArc");
24677
+ }
24683
24678
  constructor(logger, nodeStorage, networkClient, cryptoProvider, identityEndpoint) {
24684
24679
  super(logger, nodeStorage, networkClient, cryptoProvider);
24685
24680
  this.identityEndpoint = identityEndpoint;
@@ -24764,13 +24759,11 @@ var init_AzureArc = __esm({
24764
24759
  return this.getServerTokenResponse(retryResponse || originalResponse);
24765
24760
  }
24766
24761
  };
24767
- __name(_AzureArc, "AzureArc");
24768
- AzureArc = _AzureArc;
24769
24762
  }
24770
24763
  });
24771
24764
 
24772
24765
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/CloudShell.mjs
24773
- var _CloudShell, CloudShell;
24766
+ var CloudShell;
24774
24767
  var init_CloudShell = __esm({
24775
24768
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/CloudShell.mjs"() {
24776
24769
  "use strict";
@@ -24779,7 +24772,10 @@ var init_CloudShell = __esm({
24779
24772
  init_Constants2();
24780
24773
  init_ManagedIdentityError();
24781
24774
  init_ManagedIdentityErrorCodes();
24782
- _CloudShell = class _CloudShell extends BaseManagedIdentitySource {
24775
+ CloudShell = class _CloudShell extends BaseManagedIdentitySource {
24776
+ static {
24777
+ __name(this, "CloudShell");
24778
+ }
24783
24779
  constructor(logger, nodeStorage, networkClient, cryptoProvider, msiEndpoint) {
24784
24780
  super(logger, nodeStorage, networkClient, cryptoProvider);
24785
24781
  this.msiEndpoint = msiEndpoint;
@@ -24808,13 +24804,11 @@ var init_CloudShell = __esm({
24808
24804
  return request;
24809
24805
  }
24810
24806
  };
24811
- __name(_CloudShell, "CloudShell");
24812
- CloudShell = _CloudShell;
24813
24807
  }
24814
24808
  });
24815
24809
 
24816
24810
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/Imds.mjs
24817
- var IMDS_TOKEN_PATH, DEFAULT_IMDS_ENDPOINT, IMDS_API_VERSION, _Imds, Imds;
24811
+ var IMDS_TOKEN_PATH, DEFAULT_IMDS_ENDPOINT, IMDS_API_VERSION, Imds;
24818
24812
  var init_Imds = __esm({
24819
24813
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/Imds.mjs"() {
24820
24814
  "use strict";
@@ -24824,7 +24818,10 @@ var init_Imds = __esm({
24824
24818
  IMDS_TOKEN_PATH = "/metadata/identity/oauth2/token";
24825
24819
  DEFAULT_IMDS_ENDPOINT = `http://169.254.169.254${IMDS_TOKEN_PATH}`;
24826
24820
  IMDS_API_VERSION = "2018-02-01";
24827
- _Imds = class _Imds extends BaseManagedIdentitySource {
24821
+ Imds = class _Imds extends BaseManagedIdentitySource {
24822
+ static {
24823
+ __name(this, "Imds");
24824
+ }
24828
24825
  constructor(logger, nodeStorage, networkClient, cryptoProvider, identityEndpoint) {
24829
24826
  super(logger, nodeStorage, networkClient, cryptoProvider);
24830
24827
  this.identityEndpoint = identityEndpoint;
@@ -24851,13 +24848,11 @@ var init_Imds = __esm({
24851
24848
  return request;
24852
24849
  }
24853
24850
  };
24854
- __name(_Imds, "Imds");
24855
- Imds = _Imds;
24856
24851
  }
24857
24852
  });
24858
24853
 
24859
24854
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/ServiceFabric.mjs
24860
- var SERVICE_FABRIC_MSI_API_VERSION, _ServiceFabric, ServiceFabric;
24855
+ var SERVICE_FABRIC_MSI_API_VERSION, ServiceFabric;
24861
24856
  var init_ServiceFabric = __esm({
24862
24857
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentitySources/ServiceFabric.mjs"() {
24863
24858
  "use strict";
@@ -24865,7 +24860,10 @@ var init_ServiceFabric = __esm({
24865
24860
  init_BaseManagedIdentitySource();
24866
24861
  init_Constants2();
24867
24862
  SERVICE_FABRIC_MSI_API_VERSION = "2019-07-01-preview";
24868
- _ServiceFabric = class _ServiceFabric extends BaseManagedIdentitySource {
24863
+ ServiceFabric = class _ServiceFabric extends BaseManagedIdentitySource {
24864
+ static {
24865
+ __name(this, "ServiceFabric");
24866
+ }
24869
24867
  constructor(logger, nodeStorage, networkClient, cryptoProvider, identityEndpoint, identityHeader) {
24870
24868
  super(logger, nodeStorage, networkClient, cryptoProvider);
24871
24869
  this.identityEndpoint = identityEndpoint;
@@ -24901,13 +24899,11 @@ var init_ServiceFabric = __esm({
24901
24899
  return request;
24902
24900
  }
24903
24901
  };
24904
- __name(_ServiceFabric, "ServiceFabric");
24905
- ServiceFabric = _ServiceFabric;
24906
24902
  }
24907
24903
  });
24908
24904
 
24909
24905
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentityClient.mjs
24910
- var _ManagedIdentityClient, ManagedIdentityClient;
24906
+ var ManagedIdentityClient;
24911
24907
  var init_ManagedIdentityClient = __esm({
24912
24908
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentityClient.mjs"() {
24913
24909
  "use strict";
@@ -24919,7 +24915,10 @@ var init_ManagedIdentityClient = __esm({
24919
24915
  init_ManagedIdentityError();
24920
24916
  init_Constants2();
24921
24917
  init_ManagedIdentityErrorCodes();
24922
- _ManagedIdentityClient = class _ManagedIdentityClient {
24918
+ ManagedIdentityClient = class _ManagedIdentityClient {
24919
+ static {
24920
+ __name(this, "ManagedIdentityClient");
24921
+ }
24923
24922
  constructor(logger, nodeStorage, networkClient, cryptoProvider) {
24924
24923
  this.logger = logger;
24925
24924
  this.nodeStorage = nodeStorage;
@@ -24957,13 +24956,11 @@ var init_ManagedIdentityClient = __esm({
24957
24956
  return source;
24958
24957
  }
24959
24958
  };
24960
- __name(_ManagedIdentityClient, "ManagedIdentityClient");
24961
- ManagedIdentityClient = _ManagedIdentityClient;
24962
24959
  }
24963
24960
  });
24964
24961
 
24965
24962
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentityApplication.mjs
24966
- var _ManagedIdentityApplication, ManagedIdentityApplication;
24963
+ var ManagedIdentityApplication;
24967
24964
  var init_ManagedIdentityApplication = __esm({
24968
24965
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/client/ManagedIdentityApplication.mjs"() {
24969
24966
  "use strict";
@@ -24975,7 +24972,10 @@ var init_ManagedIdentityApplication = __esm({
24975
24972
  init_ManagedIdentityClient();
24976
24973
  init_NodeStorage();
24977
24974
  init_Constants2();
24978
- _ManagedIdentityApplication = class _ManagedIdentityApplication {
24975
+ ManagedIdentityApplication = class _ManagedIdentityApplication {
24976
+ static {
24977
+ __name(this, "ManagedIdentityApplication");
24978
+ }
24979
24979
  constructor(configuration) {
24980
24980
  this.config = buildManagedIdentityConfiguration(configuration || {});
24981
24981
  this.logger = new Logger(this.config.system.loggerOptions, name2, version2);
@@ -25053,18 +25053,19 @@ var init_ManagedIdentityApplication = __esm({
25053
25053
  return ManagedIdentityClient.sourceName || this.managedIdentityClient.getManagedIdentitySource();
25054
25054
  }
25055
25055
  };
25056
- __name(_ManagedIdentityApplication, "ManagedIdentityApplication");
25057
- ManagedIdentityApplication = _ManagedIdentityApplication;
25058
25056
  }
25059
25057
  });
25060
25058
 
25061
25059
  // ../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/distributed/DistributedCachePlugin.mjs
25062
- var _DistributedCachePlugin, DistributedCachePlugin;
25060
+ var DistributedCachePlugin;
25063
25061
  var init_DistributedCachePlugin = __esm({
25064
25062
  "../../node_modules/.store/@azure-msal-node-npm-2.11.0-da4be621f1/package/dist/cache/distributed/DistributedCachePlugin.mjs"() {
25065
25063
  "use strict";
25066
25064
  init_dist();
25067
- _DistributedCachePlugin = class _DistributedCachePlugin {
25065
+ DistributedCachePlugin = class {
25066
+ static {
25067
+ __name(this, "DistributedCachePlugin");
25068
+ }
25068
25069
  constructor(client, partitionManager) {
25069
25070
  this.client = client;
25070
25071
  this.partitionManager = partitionManager;
@@ -25086,8 +25087,6 @@ var init_DistributedCachePlugin = __esm({
25086
25087
  }
25087
25088
  }
25088
25089
  };
25089
- __name(_DistributedCachePlugin, "DistributedCachePlugin");
25090
- DistributedCachePlugin = _DistributedCachePlugin;
25091
25090
  }
25092
25091
  });
25093
25092
 
@@ -25678,16 +25677,20 @@ var require_dist4 = __commonJS({
25678
25677
  }
25679
25678
  __name(isErrorResponse, "isErrorResponse");
25680
25679
  var CredentialUnavailableErrorName = "CredentialUnavailableError";
25681
- var _CredentialUnavailableError = class _CredentialUnavailableError extends Error {
25680
+ var CredentialUnavailableError = class extends Error {
25681
+ static {
25682
+ __name(this, "CredentialUnavailableError");
25683
+ }
25682
25684
  constructor(message) {
25683
25685
  super(message);
25684
25686
  this.name = CredentialUnavailableErrorName;
25685
25687
  }
25686
25688
  };
25687
- __name(_CredentialUnavailableError, "CredentialUnavailableError");
25688
- var CredentialUnavailableError = _CredentialUnavailableError;
25689
25689
  var AuthenticationErrorName = "AuthenticationError";
25690
- var _AuthenticationError = class _AuthenticationError extends Error {
25690
+ var AuthenticationError = class extends Error {
25691
+ static {
25692
+ __name(this, "AuthenticationError");
25693
+ }
25691
25694
  // eslint-disable-next-line @typescript-eslint/ban-types
25692
25695
  constructor(statusCode, errorBody) {
25693
25696
  let errorResponse = {
@@ -25729,10 +25732,11 @@ ${errorResponse.errorDescription}`);
25729
25732
  this.name = AuthenticationErrorName;
25730
25733
  }
25731
25734
  };
25732
- __name(_AuthenticationError, "AuthenticationError");
25733
- var AuthenticationError = _AuthenticationError;
25734
25735
  var AggregateAuthenticationErrorName = "AggregateAuthenticationError";
25735
- var _AggregateAuthenticationError = class _AggregateAuthenticationError extends Error {
25736
+ var AggregateAuthenticationError = class extends Error {
25737
+ static {
25738
+ __name(this, "AggregateAuthenticationError");
25739
+ }
25736
25740
  constructor(errors, errorMessage) {
25737
25741
  const errorDetail = errors.join("\n");
25738
25742
  super(`${errorMessage}
@@ -25741,8 +25745,6 @@ ${errorDetail}`);
25741
25745
  this.name = AggregateAuthenticationErrorName;
25742
25746
  }
25743
25747
  };
25744
- __name(_AggregateAuthenticationError, "AggregateAuthenticationError");
25745
- var AggregateAuthenticationError = _AggregateAuthenticationError;
25746
25748
  function convertOAuthErrorResponseToErrorResponse(errorBody) {
25747
25749
  return {
25748
25750
  error: errorBody.error,
@@ -25754,7 +25756,10 @@ ${errorDetail}`);
25754
25756
  };
25755
25757
  }
25756
25758
  __name(convertOAuthErrorResponseToErrorResponse, "convertOAuthErrorResponseToErrorResponse");
25757
- var _AuthenticationRequiredError = class _AuthenticationRequiredError extends Error {
25759
+ var AuthenticationRequiredError = class extends Error {
25760
+ static {
25761
+ __name(this, "AuthenticationRequiredError");
25762
+ }
25758
25763
  constructor(options) {
25759
25764
  super(options.message);
25760
25765
  this.scopes = options.scopes;
@@ -25762,8 +25767,6 @@ ${errorDetail}`);
25762
25767
  this.name = "AuthenticationRequiredError";
25763
25768
  }
25764
25769
  };
25765
- __name(_AuthenticationRequiredError, "AuthenticationRequiredError");
25766
- var AuthenticationRequiredError = _AuthenticationRequiredError;
25767
25770
  function createConfigurationErrorMessage(tenantId) {
25768
25771
  return `The current credential is not configured to acquire tokens for tenant ${tenantId}. To enable acquiring tokens for this tenant add it to the AdditionallyAllowedTenants on the credential options, or add "*" to AdditionallyAllowedTenants to allow acquiring tokens for any tenant.`;
25769
25772
  }
@@ -25882,7 +25885,10 @@ ${errorDetail}`);
25882
25885
  return authorityHost !== null && authorityHost !== void 0 ? authorityHost : DefaultAuthorityHost;
25883
25886
  }
25884
25887
  __name(getIdentityClientAuthorityHost, "getIdentityClientAuthorityHost");
25885
- var _IdentityClient = class _IdentityClient extends coreClient.ServiceClient {
25888
+ var IdentityClient = class extends coreClient.ServiceClient {
25889
+ static {
25890
+ __name(this, "IdentityClient");
25891
+ }
25886
25892
  constructor(options) {
25887
25893
  var _a, _b;
25888
25894
  const packageDetails = `azsdk-js-identity/${SDK_VERSION}`;
@@ -26076,8 +26082,6 @@ ${errorDetail}`);
26076
26082
  }
26077
26083
  }
26078
26084
  };
26079
- __name(_IdentityClient, "IdentityClient");
26080
- var IdentityClient = _IdentityClient;
26081
26085
  var CommonTenantId = "common";
26082
26086
  var AzureAccountClientId = "aebc6443-996d-45c2-90f0-388ff96faa56";
26083
26087
  var logger$p = credentialLogger("VisualStudioCodeCredential");
@@ -26132,7 +26136,10 @@ ${errorDetail}`);
26132
26136
  }
26133
26137
  }
26134
26138
  __name(getPropertyFromVSCode, "getPropertyFromVSCode");
26135
- var _VisualStudioCodeCredential = class _VisualStudioCodeCredential {
26139
+ var VisualStudioCodeCredential = class {
26140
+ static {
26141
+ __name(this, "VisualStudioCodeCredential");
26142
+ }
26136
26143
  /**
26137
26144
  * Creates an instance of VisualStudioCodeCredential to use for automatically authenticating via VSCode.
26138
26145
  *
@@ -26224,8 +26231,6 @@ ${errorDetail}`);
26224
26231
  }
26225
26232
  }
26226
26233
  };
26227
- __name(_VisualStudioCodeCredential, "VisualStudioCodeCredential");
26228
- var VisualStudioCodeCredential = _VisualStudioCodeCredential;
26229
26234
  var pluginContext = {
26230
26235
  cachePluginControl: msalNodeFlowCacheControl,
26231
26236
  nativeBrokerPluginControl: msalNodeFlowNativeBrokerControl,
@@ -27200,7 +27205,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27200
27205
  }
27201
27206
  __name(createMsalClient, "createMsalClient");
27202
27207
  var logger$h = credentialLogger("ClientAssertionCredential");
27203
- var _ClientAssertionCredential = class _ClientAssertionCredential {
27208
+ var ClientAssertionCredential = class {
27209
+ static {
27210
+ __name(this, "ClientAssertionCredential");
27211
+ }
27204
27212
  /**
27205
27213
  * Creates an instance of the ClientAssertionCredential with the details
27206
27214
  * needed to authenticate against Microsoft Entra ID with a client
@@ -27238,8 +27246,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27238
27246
  });
27239
27247
  }
27240
27248
  };
27241
- __name(_ClientAssertionCredential, "ClientAssertionCredential");
27242
- var ClientAssertionCredential = _ClientAssertionCredential;
27243
27249
  var credentialName$4 = "WorkloadIdentityCredential";
27244
27250
  var SupportedWorkloadEnvironmentVariables = [
27245
27251
  "AZURE_TENANT_ID",
@@ -27247,7 +27253,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27247
27253
  "AZURE_FEDERATED_TOKEN_FILE"
27248
27254
  ];
27249
27255
  var logger$g = credentialLogger(credentialName$4);
27250
- var _WorkloadIdentityCredential = class _WorkloadIdentityCredential {
27256
+ var WorkloadIdentityCredential = class {
27257
+ static {
27258
+ __name(this, "WorkloadIdentityCredential");
27259
+ }
27251
27260
  /**
27252
27261
  * WorkloadIdentityCredential supports Microsoft Entra Workload ID on Kubernetes.
27253
27262
  *
@@ -27311,8 +27320,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27311
27320
  return this.azureFederatedTokenFileContent;
27312
27321
  }
27313
27322
  };
27314
- __name(_WorkloadIdentityCredential, "WorkloadIdentityCredential");
27315
- var WorkloadIdentityCredential = _WorkloadIdentityCredential;
27316
27323
  var msiName = "ManagedIdentityCredential - Token Exchange";
27317
27324
  var logger$f = credentialLogger(msiName);
27318
27325
  function tokenExchangeMsi() {
@@ -27337,7 +27344,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27337
27344
  }
27338
27345
  __name(tokenExchangeMsi, "tokenExchangeMsi");
27339
27346
  var logger$e = credentialLogger("ManagedIdentityCredential");
27340
- var _ManagedIdentityCredential = class _ManagedIdentityCredential {
27347
+ var ManagedIdentityCredential = class _ManagedIdentityCredential {
27348
+ static {
27349
+ __name(this, "ManagedIdentityCredential");
27350
+ }
27341
27351
  /**
27342
27352
  * @internal
27343
27353
  * @hidden
@@ -27576,8 +27586,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27576
27586
  }
27577
27587
  }
27578
27588
  };
27579
- __name(_ManagedIdentityCredential, "ManagedIdentityCredential");
27580
- var ManagedIdentityCredential = _ManagedIdentityCredential;
27581
27589
  function ensureScopes(scopes) {
27582
27590
  return Array.isArray(scopes) ? scopes : [scopes];
27583
27591
  }
@@ -27638,7 +27646,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27638
27646
  }
27639
27647
  };
27640
27648
  var logger$d = credentialLogger("AzureCliCredential");
27641
- var _AzureCliCredential = class _AzureCliCredential {
27649
+ var AzureCliCredential2 = class {
27650
+ static {
27651
+ __name(this, "AzureCliCredential");
27652
+ }
27642
27653
  /**
27643
27654
  * Creates an instance of the {@link AzureCliCredential}.
27644
27655
  *
@@ -27738,8 +27749,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27738
27749
  };
27739
27750
  }
27740
27751
  };
27741
- __name(_AzureCliCredential, "AzureCliCredential");
27742
- var AzureCliCredential2 = _AzureCliCredential;
27743
27752
  var developerCliCredentialInternals = {
27744
27753
  /**
27745
27754
  * @internal
@@ -27786,7 +27795,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27786
27795
  }
27787
27796
  };
27788
27797
  var logger$c = credentialLogger("AzureDeveloperCliCredential");
27789
- var _AzureDeveloperCliCredential = class _AzureDeveloperCliCredential {
27798
+ var AzureDeveloperCliCredential = class {
27799
+ static {
27800
+ __name(this, "AzureDeveloperCliCredential");
27801
+ }
27790
27802
  /**
27791
27803
  * Creates an instance of the {@link AzureDeveloperCliCredential}.
27792
27804
  *
@@ -27863,8 +27875,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27863
27875
  });
27864
27876
  }
27865
27877
  };
27866
- __name(_AzureDeveloperCliCredential, "AzureDeveloperCliCredential");
27867
- var AzureDeveloperCliCredential = _AzureDeveloperCliCredential;
27868
27878
  var processUtils = {
27869
27879
  /**
27870
27880
  * Promisifying childProcess.execFile
@@ -27926,7 +27936,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
27926
27936
  if (isWindows) {
27927
27937
  commandStack.push(formatCommand("powershell"));
27928
27938
  }
27929
- var _AzurePowerShellCredential = class _AzurePowerShellCredential {
27939
+ var AzurePowerShellCredential = class {
27940
+ static {
27941
+ __name(this, "AzurePowerShellCredential");
27942
+ }
27930
27943
  /**
27931
27944
  * Creates an instance of the {@link AzurePowerShellCredential}.
27932
27945
  *
@@ -28028,10 +28041,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28028
28041
  });
28029
28042
  }
28030
28043
  };
28031
- __name(_AzurePowerShellCredential, "AzurePowerShellCredential");
28032
- var AzurePowerShellCredential = _AzurePowerShellCredential;
28033
28044
  var logger$a = credentialLogger("ChainedTokenCredential");
28034
- var _ChainedTokenCredential = class _ChainedTokenCredential {
28045
+ var ChainedTokenCredential = class {
28046
+ static {
28047
+ __name(this, "ChainedTokenCredential");
28048
+ }
28035
28049
  /**
28036
28050
  * Creates an instance of ChainedTokenCredential using the given credentials.
28037
28051
  *
@@ -28096,11 +28110,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28096
28110
  });
28097
28111
  }
28098
28112
  };
28099
- __name(_ChainedTokenCredential, "ChainedTokenCredential");
28100
- var ChainedTokenCredential = _ChainedTokenCredential;
28101
28113
  var credentialName$3 = "ClientCertificateCredential";
28102
28114
  var logger$9 = credentialLogger(credentialName$3);
28103
- var _ClientCertificateCredential = class _ClientCertificateCredential {
28115
+ var ClientCertificateCredential = class {
28116
+ static {
28117
+ __name(this, "ClientCertificateCredential");
28118
+ }
28104
28119
  constructor(tenantId, clientId, certificatePathOrConfiguration, options = {}) {
28105
28120
  if (!tenantId || !clientId) {
28106
28121
  throw new Error(`${credentialName$3}: tenantId and clientId are required parameters.`);
@@ -28183,10 +28198,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28183
28198
  };
28184
28199
  }
28185
28200
  };
28186
- __name(_ClientCertificateCredential, "ClientCertificateCredential");
28187
- var ClientCertificateCredential = _ClientCertificateCredential;
28188
28201
  var logger$8 = credentialLogger("ClientSecretCredential");
28189
- var _ClientSecretCredential = class _ClientSecretCredential {
28202
+ var ClientSecretCredential = class {
28203
+ static {
28204
+ __name(this, "ClientSecretCredential");
28205
+ }
28190
28206
  /**
28191
28207
  * Creates an instance of the ClientSecretCredential with the details
28192
28208
  * needed to authenticate against Microsoft Entra ID with a client
@@ -28222,10 +28238,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28222
28238
  });
28223
28239
  }
28224
28240
  };
28225
- __name(_ClientSecretCredential, "ClientSecretCredential");
28226
- var ClientSecretCredential = _ClientSecretCredential;
28227
28241
  var logger$7 = credentialLogger("UsernamePasswordCredential");
28228
- var _UsernamePasswordCredential = class _UsernamePasswordCredential {
28242
+ var UsernamePasswordCredential = class {
28243
+ static {
28244
+ __name(this, "UsernamePasswordCredential");
28245
+ }
28229
28246
  /**
28230
28247
  * Creates an instance of the UsernamePasswordCredential with the details
28231
28248
  * needed to authenticate against Microsoft Entra ID with a username
@@ -28267,8 +28284,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28267
28284
  });
28268
28285
  }
28269
28286
  };
28270
- __name(_UsernamePasswordCredential, "UsernamePasswordCredential");
28271
- var UsernamePasswordCredential = _UsernamePasswordCredential;
28272
28287
  var AllSupportedEnvironmentVariables = [
28273
28288
  "AZURE_TENANT_ID",
28274
28289
  "AZURE_CLIENT_ID",
@@ -28287,7 +28302,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28287
28302
  __name(getAdditionallyAllowedTenants, "getAdditionallyAllowedTenants");
28288
28303
  var credentialName$2 = "EnvironmentCredential";
28289
28304
  var logger$6 = credentialLogger(credentialName$2);
28290
- var _EnvironmentCredential = class _EnvironmentCredential {
28305
+ var EnvironmentCredential = class {
28306
+ static {
28307
+ __name(this, "EnvironmentCredential");
28308
+ }
28291
28309
  /**
28292
28310
  * Creates an instance of the EnvironmentCredential class and decides what credential to use depending on the available environment variables.
28293
28311
  *
@@ -28367,8 +28385,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28367
28385
  });
28368
28386
  }
28369
28387
  };
28370
- __name(_EnvironmentCredential, "EnvironmentCredential");
28371
- var EnvironmentCredential = _EnvironmentCredential;
28372
28388
  var logger$5 = credentialLogger("DefaultAzureCredential");
28373
28389
  function createDefaultManagedIdentityCredential(options = {}) {
28374
28390
  var _a, _b, _c, _d;
@@ -28432,7 +28448,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28432
28448
  return new EnvironmentCredential(options);
28433
28449
  }
28434
28450
  __name(createEnvironmentCredential, "createEnvironmentCredential");
28435
- var _UnavailableDefaultCredential = class _UnavailableDefaultCredential {
28451
+ var UnavailableDefaultCredential = class {
28452
+ static {
28453
+ __name(this, "UnavailableDefaultCredential");
28454
+ }
28436
28455
  constructor(credentialName2, message) {
28437
28456
  this.credentialName = credentialName2;
28438
28457
  this.credentialUnavailableErrorMessage = message;
@@ -28442,9 +28461,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28442
28461
  return Promise.resolve(null);
28443
28462
  }
28444
28463
  };
28445
- __name(_UnavailableDefaultCredential, "UnavailableDefaultCredential");
28446
- var UnavailableDefaultCredential = _UnavailableDefaultCredential;
28447
- var _DefaultAzureCredential = class _DefaultAzureCredential extends ChainedTokenCredential {
28464
+ var DefaultAzureCredential = class extends ChainedTokenCredential {
28465
+ static {
28466
+ __name(this, "DefaultAzureCredential");
28467
+ }
28448
28468
  constructor(options) {
28449
28469
  const credentialFunctions = [
28450
28470
  createEnvironmentCredential,
@@ -28465,9 +28485,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28465
28485
  super(...credentials);
28466
28486
  }
28467
28487
  };
28468
- __name(_DefaultAzureCredential, "DefaultAzureCredential");
28469
- var DefaultAzureCredential = _DefaultAzureCredential;
28470
- var _MsalNode = class _MsalNode {
28488
+ var MsalNode = class {
28489
+ static {
28490
+ __name(this, "MsalNode");
28491
+ }
28471
28492
  constructor(options) {
28472
28493
  var _a, _b, _c, _d, _e, _f;
28473
28494
  this.app = {};
@@ -28733,12 +28754,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28733
28754
  };
28734
28755
  }
28735
28756
  };
28736
- __name(_MsalNode, "MsalNode");
28737
- var MsalNode = _MsalNode;
28738
28757
  var interactiveBrowserMockable = {
28739
28758
  open
28740
28759
  };
28741
- var _MsalOpenBrowser = class _MsalOpenBrowser extends MsalNode {
28760
+ var MsalOpenBrowser = class extends MsalNode {
28761
+ static {
28762
+ __name(this, "MsalOpenBrowser");
28763
+ }
28742
28764
  constructor(options) {
28743
28765
  var _a, _b, _c, _d;
28744
28766
  super(options);
@@ -28821,10 +28843,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28821
28843
  }
28822
28844
  }
28823
28845
  };
28824
- __name(_MsalOpenBrowser, "MsalOpenBrowser");
28825
- var MsalOpenBrowser = _MsalOpenBrowser;
28826
28846
  var logger$4 = credentialLogger("InteractiveBrowserCredential");
28827
- var _InteractiveBrowserCredential = class _InteractiveBrowserCredential {
28847
+ var InteractiveBrowserCredential2 = class {
28848
+ static {
28849
+ __name(this, "InteractiveBrowserCredential");
28850
+ }
28828
28851
  /**
28829
28852
  * Creates an instance of InteractiveBrowserCredential with the details needed.
28830
28853
  *
@@ -28910,14 +28933,15 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28910
28933
  });
28911
28934
  }
28912
28935
  };
28913
- __name(_InteractiveBrowserCredential, "InteractiveBrowserCredential");
28914
- var InteractiveBrowserCredential2 = _InteractiveBrowserCredential;
28915
28936
  var logger$3 = credentialLogger("DeviceCodeCredential");
28916
28937
  function defaultDeviceCodePromptCallback(deviceCodeInfo) {
28917
28938
  console.log(deviceCodeInfo.message);
28918
28939
  }
28919
28940
  __name(defaultDeviceCodePromptCallback, "defaultDeviceCodePromptCallback");
28920
- var _DeviceCodeCredential = class _DeviceCodeCredential {
28941
+ var DeviceCodeCredential2 = class {
28942
+ static {
28943
+ __name(this, "DeviceCodeCredential");
28944
+ }
28921
28945
  /**
28922
28946
  * Creates an instance of DeviceCodeCredential with the details needed
28923
28947
  * to initiate the device code authorization flow with Microsoft Entra ID.
@@ -28985,12 +29009,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
28985
29009
  });
28986
29010
  }
28987
29011
  };
28988
- __name(_DeviceCodeCredential, "DeviceCodeCredential");
28989
- var DeviceCodeCredential2 = _DeviceCodeCredential;
28990
29012
  var credentialName$1 = "AzurePipelinesCredential";
28991
29013
  var logger$2 = credentialLogger(credentialName$1);
28992
29014
  var OIDC_API_VERSION = "7.1";
28993
- var _AzurePipelinesCredential = class _AzurePipelinesCredential {
29015
+ var AzurePipelinesCredential = class {
29016
+ static {
29017
+ __name(this, "AzurePipelinesCredential");
29018
+ }
28994
29019
  /**
28995
29020
  * AzurePipelinesCredential supports Federated Identity on Azure Pipelines through Service Connections.
28996
29021
  * @param tenantId - tenantId associated with the service connection
@@ -29078,10 +29103,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
29078
29103
  }
29079
29104
  }
29080
29105
  };
29081
- __name(_AzurePipelinesCredential, "AzurePipelinesCredential");
29082
- var AzurePipelinesCredential = _AzurePipelinesCredential;
29083
29106
  var logger$1 = credentialLogger("AuthorizationCodeCredential");
29084
- var _AuthorizationCodeCredential = class _AuthorizationCodeCredential {
29107
+ var AuthorizationCodeCredential = class {
29108
+ static {
29109
+ __name(this, "AuthorizationCodeCredential");
29110
+ }
29085
29111
  /**
29086
29112
  * @hidden
29087
29113
  * @internal
@@ -29119,8 +29145,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
29119
29145
  });
29120
29146
  }
29121
29147
  };
29122
- __name(_AuthorizationCodeCredential, "AuthorizationCodeCredential");
29123
- var AuthorizationCodeCredential = _AuthorizationCodeCredential;
29124
29148
  var readFileAsync = util.promisify(fs3.readFile);
29125
29149
  async function parseCertificate(configuration, sendCertificateChain) {
29126
29150
  const certificateParts = {};
@@ -29146,7 +29170,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
29146
29170
  return certificateParts;
29147
29171
  }
29148
29172
  __name(parseCertificate, "parseCertificate");
29149
- var _MsalOnBehalfOf = class _MsalOnBehalfOf extends MsalNode {
29173
+ var MsalOnBehalfOf = class extends MsalNode {
29174
+ static {
29175
+ __name(this, "MsalOnBehalfOf");
29176
+ }
29150
29177
  constructor(options) {
29151
29178
  super(options);
29152
29179
  this.logger.info("Initialized MSAL's On-Behalf-Of flow");
@@ -29190,11 +29217,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
29190
29217
  }
29191
29218
  }
29192
29219
  };
29193
- __name(_MsalOnBehalfOf, "MsalOnBehalfOf");
29194
- var MsalOnBehalfOf = _MsalOnBehalfOf;
29195
29220
  var credentialName = "OnBehalfOfCredential";
29196
29221
  var logger = credentialLogger(credentialName);
29197
- var _OnBehalfOfCredential = class _OnBehalfOfCredential {
29222
+ var OnBehalfOfCredential = class {
29223
+ static {
29224
+ __name(this, "OnBehalfOfCredential");
29225
+ }
29198
29226
  constructor(options) {
29199
29227
  this.options = options;
29200
29228
  const { clientSecret } = options;
@@ -29222,8 +29250,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
29222
29250
  });
29223
29251
  }
29224
29252
  };
29225
- __name(_OnBehalfOfCredential, "OnBehalfOfCredential");
29226
- var OnBehalfOfCredential = _OnBehalfOfCredential;
29227
29253
  function getBearerTokenProvider(credential, scopes, options) {
29228
29254
  const { abortSignal, tracingOptions } = options || {};
29229
29255
  const pipeline = coreRestPipeline.createEmptyPipeline();
@@ -29305,7 +29331,10 @@ var isNodeError = /* @__PURE__ */ __name((error) => {
29305
29331
  }, "isNodeError");
29306
29332
 
29307
29333
  // src/authentication/forks/msal-node-extensions/error/PersistenceError.ts
29308
- var _PersistenceError = class _PersistenceError extends Error {
29334
+ var PersistenceError = class _PersistenceError extends Error {
29335
+ static {
29336
+ __name(this, "PersistenceError");
29337
+ }
29309
29338
  // Short string denoting error
29310
29339
  errorCode;
29311
29340
  // Detailed description of error
@@ -29352,8 +29381,6 @@ var _PersistenceError = class _PersistenceError extends Error {
29352
29381
  return new _PersistenceError("CachePersistenceError", errorMessage);
29353
29382
  }
29354
29383
  };
29355
- __name(_PersistenceError, "PersistenceError");
29356
- var PersistenceError = _PersistenceError;
29357
29384
 
29358
29385
  // src/authentication/forks/msal-node-extensions/utils/Constants.ts
29359
29386
  var Constants3 = {
@@ -29390,7 +29417,10 @@ var ErrorCodes = {
29390
29417
  };
29391
29418
 
29392
29419
  // src/authentication/forks/msal-node-extensions/persistence/BasePersistence.ts
29393
- var _BasePersistence = class _BasePersistence {
29420
+ var BasePersistence = class {
29421
+ static {
29422
+ __name(this, "BasePersistence");
29423
+ }
29394
29424
  async verifyPersistence() {
29395
29425
  const persistenceValidator = await this.createForPersistenceValidation();
29396
29426
  try {
@@ -29413,14 +29443,15 @@ var _BasePersistence = class _BasePersistence {
29413
29443
  }
29414
29444
  }
29415
29445
  };
29416
- __name(_BasePersistence, "BasePersistence");
29417
- var BasePersistence = _BasePersistence;
29418
29446
 
29419
29447
  // src/authentication/forks/msal-node-extensions/persistence/FilePersistence.ts
29420
29448
  import { promises as fs } from "fs";
29421
29449
  import { dirname } from "path";
29422
29450
  init_dist();
29423
- var _FilePersistence = class _FilePersistence extends BasePersistence {
29451
+ var FilePersistence = class _FilePersistence extends BasePersistence {
29452
+ static {
29453
+ __name(this, "FilePersistence");
29454
+ }
29424
29455
  filePath;
29425
29456
  logger;
29426
29457
  constructor(fileLocation, loggerOptions) {
@@ -29552,11 +29583,9 @@ var _FilePersistence = class _FilePersistence extends BasePersistence {
29552
29583
  }
29553
29584
  }
29554
29585
  };
29555
- __name(_FilePersistence, "FilePersistence");
29556
- var FilePersistence = _FilePersistence;
29557
29586
 
29558
29587
  // src/authentication/forks/msal-node-extensions/persistence/NapiRsKeyRingPersistence.ts
29559
- var _NapiRsKeyRingPersistence = class _NapiRsKeyRingPersistence extends BasePersistence {
29588
+ var NapiRsKeyRingPersistence = class _NapiRsKeyRingPersistence extends BasePersistence {
29560
29589
  constructor(filePersistence, service, account) {
29561
29590
  super();
29562
29591
  this.service = service;
@@ -29564,6 +29593,11 @@ var _NapiRsKeyRingPersistence = class _NapiRsKeyRingPersistence extends BasePers
29564
29593
  this.entry = new Entry(service, account);
29565
29594
  this.filePersistence = filePersistence;
29566
29595
  }
29596
+ service;
29597
+ account;
29598
+ static {
29599
+ __name(this, "NapiRsKeyRingPersistence");
29600
+ }
29567
29601
  entry;
29568
29602
  filePersistence;
29569
29603
  static async create(fileLocation, serviceName, accountName, loggerOptions) {
@@ -29620,13 +29654,14 @@ var _NapiRsKeyRingPersistence = class _NapiRsKeyRingPersistence extends BasePers
29620
29654
  );
29621
29655
  }
29622
29656
  };
29623
- __name(_NapiRsKeyRingPersistence, "NapiRsKeyRingPersistence");
29624
- var NapiRsKeyRingPersistence = _NapiRsKeyRingPersistence;
29625
29657
 
29626
29658
  // src/authentication/forks/msal-node-extensions/persistence/FilePersistenceWithDataProtection.ts
29627
29659
  import { protectData, unprotectData } from "node-dpapi-prebuilt";
29628
29660
  import { dirname as dirname3 } from "path";
29629
- var _FilePersistenceWithDataProtection = class _FilePersistenceWithDataProtection extends BasePersistence {
29661
+ var FilePersistenceWithDataProtection = class _FilePersistenceWithDataProtection extends BasePersistence {
29662
+ static {
29663
+ __name(this, "FilePersistenceWithDataProtection");
29664
+ }
29630
29665
  filePersistence;
29631
29666
  scope;
29632
29667
  optionalEntropy;
@@ -29686,8 +29721,6 @@ var _FilePersistenceWithDataProtection = class _FilePersistenceWithDataProtectio
29686
29721
  return _FilePersistenceWithDataProtection.create(testCacheFileLocation, "CurrentUser");
29687
29722
  }
29688
29723
  };
29689
- __name(_FilePersistenceWithDataProtection, "FilePersistenceWithDataProtection");
29690
- var FilePersistenceWithDataProtection = _FilePersistenceWithDataProtection;
29691
29724
 
29692
29725
  // src/authentication/lock-file/getAuthenticationLockFilePath.ts
29693
29726
  import path2 from "path";
@@ -29706,9 +29739,8 @@ function getAuthenticationLockFilePath() {
29706
29739
  }
29707
29740
  __name(getAuthenticationLockFilePath, "getAuthenticationLockFilePath");
29708
29741
  function getIdentityServiceCachePath() {
29709
- var _a, _b;
29710
29742
  return path2.join(
29711
- ((_b = (_a = environmentInfo.windows) == null ? void 0 : _a.appData) == null ? void 0 : _b.replace(/(.Roaming)*$/, "\\Local")) ?? os.homedir(),
29743
+ environmentInfo.windows?.appData?.replace(/(.Roaming)*$/, "\\Local") ?? os.homedir(),
29712
29744
  ".IdentityService"
29713
29745
  );
29714
29746
  }
@@ -29766,7 +29798,10 @@ var msalPersistencePlatforms = {
29766
29798
  // src/authentication/forks/msal-node-extensions/lock/CrossPlatformLock.ts
29767
29799
  import { promises as fs2 } from "fs";
29768
29800
  import { pid } from "process";
29769
- var _CrossPlatformLock = class _CrossPlatformLock {
29801
+ var CrossPlatformLock = class {
29802
+ static {
29803
+ __name(this, "CrossPlatformLock");
29804
+ }
29770
29805
  lockFilePath;
29771
29806
  lockFileHandle;
29772
29807
  retryNumber;
@@ -29841,12 +29876,13 @@ var _CrossPlatformLock = class _CrossPlatformLock {
29841
29876
  });
29842
29877
  }
29843
29878
  };
29844
- __name(_CrossPlatformLock, "CrossPlatformLock");
29845
- var CrossPlatformLock = _CrossPlatformLock;
29846
29879
 
29847
29880
  // src/authentication/forks/msal-node-extensions/persistence/PersistenceCachePlugin.ts
29848
29881
  import { pid as pid2 } from "process";
29849
- var _PersistenceCachePlugin = class _PersistenceCachePlugin {
29882
+ var PersistenceCachePlugin = class {
29883
+ static {
29884
+ __name(this, "PersistenceCachePlugin");
29885
+ }
29850
29886
  persistence;
29851
29887
  lastSync;
29852
29888
  currentCache;
@@ -29918,13 +29954,10 @@ var _PersistenceCachePlugin = class _PersistenceCachePlugin {
29918
29954
  }
29919
29955
  }
29920
29956
  };
29921
- __name(_PersistenceCachePlugin, "PersistenceCachePlugin");
29922
- var PersistenceCachePlugin = _PersistenceCachePlugin;
29923
29957
 
29924
29958
  // src/authentication/forks/identity-cache-persistence/provider.ts
29925
29959
  async function createPersistence(options) {
29926
- var _a, _b;
29927
- const persistence = await ((_b = (_a = msalPersistencePlatforms)[process.platform]) == null ? void 0 : _b.call(_a, options));
29960
+ const persistence = await msalPersistencePlatforms[process.platform]?.(options);
29928
29961
  if (persistence === void 0) {
29929
29962
  throw new Error("no persistence providers are available on this platform");
29930
29963
  }
@@ -30094,7 +30127,6 @@ async function getCredential(options, context) {
30094
30127
  const { loginMethod, cachePath, tenantId } = options;
30095
30128
  const { reporter, azureLogger, telemetryClient } = context;
30096
30129
  return telemetryClient.tracer.startActiveSpan("GET_CREDENTIAL", async (span) => {
30097
- var _a;
30098
30130
  if (loginMethod == "azure-cli") {
30099
30131
  return new import_identity3.AzureCliCredential();
30100
30132
  }
@@ -30116,7 +30148,7 @@ async function getCredential(options, context) {
30116
30148
  if (authenticationRecord) {
30117
30149
  saveAuthenticationRecord(cachePath, authenticationRecord);
30118
30150
  }
30119
- (_a = tasks.interactiveAuthentication) == null ? void 0 : _a.complete({
30151
+ tasks.interactiveAuthentication?.complete({
30120
30152
  message: "You have successfully signed in."
30121
30153
  });
30122
30154
  span.setAttributes({