@superblocksteam/cli 1.99.99-next.2 → 2.0.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -43023,7 +43023,7 @@ var require_service_pb3 = __commonJS({
43023
43023
  exports2.VerifyResponse = exports2.VerifyRequest = exports2.SignResponse = exports2.SignRequest = exports2.Resource_ApiLiteral = exports2.Resource_Literal = exports2.Resource = void 0;
43024
43024
  var protobuf_1 = require_cjs();
43025
43025
  var utils_pb_1 = require_utils_pb();
43026
- var Resource = class _Resource extends protobuf_1.Message {
43026
+ var Resource2 = class _Resource extends protobuf_1.Message {
43027
43027
  /**
43028
43028
  * @generated from oneof security.v1.Resource.config
43029
43029
  */
@@ -43063,7 +43063,7 @@ var require_service_pb3 = __commonJS({
43063
43063
  return protobuf_1.proto3.util.equals(_Resource, a, b);
43064
43064
  }
43065
43065
  };
43066
- exports2.Resource = Resource;
43066
+ exports2.Resource = Resource2;
43067
43067
  var Resource_Literal = class _Resource_Literal extends protobuf_1.Message {
43068
43068
  /**
43069
43069
  * @generated from field: google.protobuf.Value data = 1;
@@ -43186,7 +43186,7 @@ var require_service_pb3 = __commonJS({
43186
43186
  static runtime = protobuf_1.proto3;
43187
43187
  static typeName = "security.v1.SignRequest";
43188
43188
  static fields = protobuf_1.proto3.util.newFieldList(() => [
43189
- { no: 1, name: "resource", kind: "message", T: Resource }
43189
+ { no: 1, name: "resource", kind: "message", T: Resource2 }
43190
43190
  ]);
43191
43191
  static fromBinary(bytes, options8) {
43192
43192
  return new _SignRequest().fromBinary(bytes, options8);
@@ -43242,7 +43242,7 @@ var require_service_pb3 = __commonJS({
43242
43242
  static runtime = protobuf_1.proto3;
43243
43243
  static typeName = "security.v1.VerifyRequest";
43244
43244
  static fields = protobuf_1.proto3.util.newFieldList(() => [
43245
- { no: 1, name: "resources", kind: "message", T: Resource, repeated: true }
43245
+ { no: 1, name: "resources", kind: "message", T: Resource2, repeated: true }
43246
43246
  ]);
43247
43247
  static fromBinary(bytes, options8) {
43248
43248
  return new _VerifyRequest().fromBinary(bytes, options8);
@@ -107940,9 +107940,9 @@ var require_src10 = __commonJS({
107940
107940
  }
107941
107941
  });
107942
107942
 
107943
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js
107943
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js
107944
107944
  var require_default_service_name = __commonJS({
107945
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js"(exports2) {
107945
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js"(exports2) {
107946
107946
  "use strict";
107947
107947
  init_cjs_shims();
107948
107948
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -107954,9 +107954,9 @@ var require_default_service_name = __commonJS({
107954
107954
  }
107955
107955
  });
107956
107956
 
107957
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/index.js
107957
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/index.js
107958
107958
  var require_node7 = __commonJS({
107959
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/index.js"(exports2) {
107959
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/index.js"(exports2) {
107960
107960
  "use strict";
107961
107961
  init_cjs_shims();
107962
107962
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -107968,9 +107968,9 @@ var require_node7 = __commonJS({
107968
107968
  }
107969
107969
  });
107970
107970
 
107971
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/index.js
107971
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/index.js
107972
107972
  var require_platform5 = __commonJS({
107973
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/index.js"(exports2) {
107973
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/index.js"(exports2) {
107974
107974
  "use strict";
107975
107975
  init_cjs_shims();
107976
107976
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -107982,18 +107982,18 @@ var require_platform5 = __commonJS({
107982
107982
  }
107983
107983
  });
107984
107984
 
107985
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/Resource.js
107985
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/Resource.js
107986
107986
  var require_Resource = __commonJS({
107987
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/Resource.js"(exports2) {
107987
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/Resource.js"(exports2) {
107988
107988
  "use strict";
107989
107989
  init_cjs_shims();
107990
107990
  Object.defineProperty(exports2, "__esModule", { value: true });
107991
107991
  exports2.Resource = void 0;
107992
107992
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
107993
- var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
107994
- var core_1 = require_src9();
107993
+ var semantic_conventions_1 = (init_esm3(), __toCommonJS(esm_exports3));
107994
+ var core_1 = require_src5();
107995
107995
  var platform_1 = require_platform5();
107996
- var Resource = class _Resource {
107996
+ var Resource2 = class _Resource {
107997
107997
  constructor(attributes, asyncAttributesPromise) {
107998
107998
  var _a17;
107999
107999
  this._attributes = attributes;
@@ -108069,14 +108069,14 @@ var require_Resource = __commonJS({
108069
108069
  return new _Resource(mergedSyncAttributes, mergedAttributesPromise);
108070
108070
  }
108071
108071
  };
108072
- exports2.Resource = Resource;
108073
- Resource.EMPTY = new Resource({});
108072
+ exports2.Resource = Resource2;
108073
+ Resource2.EMPTY = new Resource2({});
108074
108074
  }
108075
108075
  });
108076
108076
 
108077
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/utils.js
108077
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/utils.js
108078
108078
  var require_utils11 = __commonJS({
108079
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/utils.js"(exports2) {
108079
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/utils.js"(exports2) {
108080
108080
  "use strict";
108081
108081
  init_cjs_shims();
108082
108082
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108108,9 +108108,9 @@ var require_utils11 = __commonJS({
108108
108108
  }
108109
108109
  });
108110
108110
 
108111
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
108111
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
108112
108112
  var require_execAsync = __commonJS({
108113
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js"(exports2) {
108113
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js"(exports2) {
108114
108114
  "use strict";
108115
108115
  init_cjs_shims();
108116
108116
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108121,9 +108121,9 @@ var require_execAsync = __commonJS({
108121
108121
  }
108122
108122
  });
108123
108123
 
108124
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
108124
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
108125
108125
  var require_getMachineId_darwin = __commonJS({
108126
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js"(exports2) {
108126
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js"(exports2) {
108127
108127
  "use strict";
108128
108128
  init_cjs_shims();
108129
108129
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108150,9 +108150,9 @@ var require_getMachineId_darwin = __commonJS({
108150
108150
  }
108151
108151
  });
108152
108152
 
108153
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
108153
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
108154
108154
  var require_getMachineId_linux = __commonJS({
108155
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js"(exports2) {
108155
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js"(exports2) {
108156
108156
  "use strict";
108157
108157
  init_cjs_shims();
108158
108158
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108175,9 +108175,9 @@ var require_getMachineId_linux = __commonJS({
108175
108175
  }
108176
108176
  });
108177
108177
 
108178
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
108178
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
108179
108179
  var require_getMachineId_bsd = __commonJS({
108180
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js"(exports2) {
108180
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js"(exports2) {
108181
108181
  "use strict";
108182
108182
  init_cjs_shims();
108183
108183
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108204,9 +108204,9 @@ var require_getMachineId_bsd = __commonJS({
108204
108204
  }
108205
108205
  });
108206
108206
 
108207
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
108207
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
108208
108208
  var require_getMachineId_win = __commonJS({
108209
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js"(exports2) {
108209
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js"(exports2) {
108210
108210
  "use strict";
108211
108211
  init_cjs_shims();
108212
108212
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108235,9 +108235,9 @@ var require_getMachineId_win = __commonJS({
108235
108235
  }
108236
108236
  });
108237
108237
 
108238
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
108238
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
108239
108239
  var require_getMachineId_unsupported = __commonJS({
108240
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js"(exports2) {
108240
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js"(exports2) {
108241
108241
  "use strict";
108242
108242
  init_cjs_shims();
108243
108243
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108251,9 +108251,9 @@ var require_getMachineId_unsupported = __commonJS({
108251
108251
  }
108252
108252
  });
108253
108253
 
108254
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId.js
108254
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId.js
108255
108255
  var require_getMachineId = __commonJS({
108256
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId.js"(exports2) {
108256
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId.js"(exports2) {
108257
108257
  "use strict";
108258
108258
  init_cjs_shims();
108259
108259
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108280,14 +108280,14 @@ var require_getMachineId = __commonJS({
108280
108280
  }
108281
108281
  });
108282
108282
 
108283
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetectorSync.js
108283
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetectorSync.js
108284
108284
  var require_HostDetectorSync = __commonJS({
108285
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetectorSync.js"(exports2) {
108285
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetectorSync.js"(exports2) {
108286
108286
  "use strict";
108287
108287
  init_cjs_shims();
108288
108288
  Object.defineProperty(exports2, "__esModule", { value: true });
108289
108289
  exports2.hostDetectorSync = void 0;
108290
- var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
108290
+ var semantic_conventions_1 = (init_esm3(), __toCommonJS(esm_exports3));
108291
108291
  var Resource_1 = require_Resource();
108292
108292
  var os_1 = __require("os");
108293
108293
  var utils_1 = require_utils11();
@@ -108314,9 +108314,9 @@ var require_HostDetectorSync = __commonJS({
108314
108314
  }
108315
108315
  });
108316
108316
 
108317
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetector.js
108317
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetector.js
108318
108318
  var require_HostDetector = __commonJS({
108319
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetector.js"(exports2) {
108319
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetector.js"(exports2) {
108320
108320
  "use strict";
108321
108321
  init_cjs_shims();
108322
108322
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108331,14 +108331,14 @@ var require_HostDetector = __commonJS({
108331
108331
  }
108332
108332
  });
108333
108333
 
108334
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetectorSync.js
108334
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetectorSync.js
108335
108335
  var require_OSDetectorSync = __commonJS({
108336
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetectorSync.js"(exports2) {
108336
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetectorSync.js"(exports2) {
108337
108337
  "use strict";
108338
108338
  init_cjs_shims();
108339
108339
  Object.defineProperty(exports2, "__esModule", { value: true });
108340
108340
  exports2.osDetectorSync = void 0;
108341
- var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
108341
+ var semantic_conventions_1 = (init_esm3(), __toCommonJS(esm_exports3));
108342
108342
  var Resource_1 = require_Resource();
108343
108343
  var os_1 = __require("os");
108344
108344
  var utils_1 = require_utils11();
@@ -108355,9 +108355,9 @@ var require_OSDetectorSync = __commonJS({
108355
108355
  }
108356
108356
  });
108357
108357
 
108358
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetector.js
108358
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetector.js
108359
108359
  var require_OSDetector = __commonJS({
108360
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetector.js"(exports2) {
108360
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetector.js"(exports2) {
108361
108361
  "use strict";
108362
108362
  init_cjs_shims();
108363
108363
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108372,15 +108372,15 @@ var require_OSDetector = __commonJS({
108372
108372
  }
108373
108373
  });
108374
108374
 
108375
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetectorSync.js
108375
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetectorSync.js
108376
108376
  var require_ProcessDetectorSync = __commonJS({
108377
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetectorSync.js"(exports2) {
108377
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetectorSync.js"(exports2) {
108378
108378
  "use strict";
108379
108379
  init_cjs_shims();
108380
108380
  Object.defineProperty(exports2, "__esModule", { value: true });
108381
108381
  exports2.processDetectorSync = void 0;
108382
108382
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
108383
- var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
108383
+ var semantic_conventions_1 = (init_esm3(), __toCommonJS(esm_exports3));
108384
108384
  var Resource_1 = require_Resource();
108385
108385
  var os5 = __require("os");
108386
108386
  var ProcessDetectorSync = class {
@@ -108414,9 +108414,9 @@ var require_ProcessDetectorSync = __commonJS({
108414
108414
  }
108415
108415
  });
108416
108416
 
108417
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetector.js
108417
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetector.js
108418
108418
  var require_ProcessDetector = __commonJS({
108419
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetector.js"(exports2) {
108419
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetector.js"(exports2) {
108420
108420
  "use strict";
108421
108421
  init_cjs_shims();
108422
108422
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108431,14 +108431,14 @@ var require_ProcessDetector = __commonJS({
108431
108431
  }
108432
108432
  });
108433
108433
 
108434
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetectorSync.js
108434
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetectorSync.js
108435
108435
  var require_ServiceInstanceIdDetectorSync = __commonJS({
108436
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetectorSync.js"(exports2) {
108436
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetectorSync.js"(exports2) {
108437
108437
  "use strict";
108438
108438
  init_cjs_shims();
108439
108439
  Object.defineProperty(exports2, "__esModule", { value: true });
108440
108440
  exports2.serviceInstanceIdDetectorSync = void 0;
108441
- var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
108441
+ var semantic_conventions_1 = (init_esm3(), __toCommonJS(esm_exports3));
108442
108442
  var Resource_1 = require_Resource();
108443
108443
  var crypto_1 = __require("crypto");
108444
108444
  var ServiceInstanceIdDetectorSync = class {
@@ -108453,9 +108453,9 @@ var require_ServiceInstanceIdDetectorSync = __commonJS({
108453
108453
  }
108454
108454
  });
108455
108455
 
108456
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/index.js
108456
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/index.js
108457
108457
  var require_node8 = __commonJS({
108458
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/index.js"(exports2) {
108458
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/index.js"(exports2) {
108459
108459
  "use strict";
108460
108460
  init_cjs_shims();
108461
108461
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108491,9 +108491,9 @@ var require_node8 = __commonJS({
108491
108491
  }
108492
108492
  });
108493
108493
 
108494
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/index.js
108494
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/index.js
108495
108495
  var require_platform6 = __commonJS({
108496
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/index.js"(exports2) {
108496
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/index.js"(exports2) {
108497
108497
  "use strict";
108498
108498
  init_cjs_shims();
108499
108499
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108523,14 +108523,14 @@ var require_platform6 = __commonJS({
108523
108523
  }
108524
108524
  });
108525
108525
 
108526
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetectorSync.js
108526
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetectorSync.js
108527
108527
  var require_BrowserDetectorSync = __commonJS({
108528
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetectorSync.js"(exports2) {
108528
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetectorSync.js"(exports2) {
108529
108529
  "use strict";
108530
108530
  init_cjs_shims();
108531
108531
  Object.defineProperty(exports2, "__esModule", { value: true });
108532
108532
  exports2.browserDetectorSync = void 0;
108533
- var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
108533
+ var semantic_conventions_1 = (init_esm3(), __toCommonJS(esm_exports3));
108534
108534
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
108535
108535
  var Resource_1 = require_Resource();
108536
108536
  var BrowserDetectorSync = class {
@@ -108570,9 +108570,9 @@ var require_BrowserDetectorSync = __commonJS({
108570
108570
  }
108571
108571
  });
108572
108572
 
108573
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetector.js
108573
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetector.js
108574
108574
  var require_BrowserDetector = __commonJS({
108575
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetector.js"(exports2) {
108575
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetector.js"(exports2) {
108576
108576
  "use strict";
108577
108577
  init_cjs_shims();
108578
108578
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108587,16 +108587,16 @@ var require_BrowserDetector = __commonJS({
108587
108587
  }
108588
108588
  });
108589
108589
 
108590
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetectorSync.js
108590
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetectorSync.js
108591
108591
  var require_EnvDetectorSync = __commonJS({
108592
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetectorSync.js"(exports2) {
108592
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetectorSync.js"(exports2) {
108593
108593
  "use strict";
108594
108594
  init_cjs_shims();
108595
108595
  Object.defineProperty(exports2, "__esModule", { value: true });
108596
108596
  exports2.envDetectorSync = void 0;
108597
108597
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
108598
- var core_1 = require_src9();
108599
- var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
108598
+ var core_1 = require_src5();
108599
+ var semantic_conventions_1 = (init_esm3(), __toCommonJS(esm_exports3));
108600
108600
  var Resource_1 = require_Resource();
108601
108601
  var EnvDetectorSync = class {
108602
108602
  constructor() {
@@ -108703,9 +108703,9 @@ var require_EnvDetectorSync = __commonJS({
108703
108703
  }
108704
108704
  });
108705
108705
 
108706
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetector.js
108706
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetector.js
108707
108707
  var require_EnvDetector = __commonJS({
108708
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetector.js"(exports2) {
108708
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetector.js"(exports2) {
108709
108709
  "use strict";
108710
108710
  init_cjs_shims();
108711
108711
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108727,9 +108727,9 @@ var require_EnvDetector = __commonJS({
108727
108727
  }
108728
108728
  });
108729
108729
 
108730
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/index.js
108730
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/index.js
108731
108731
  var require_detectors = __commonJS({
108732
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/index.js"(exports2) {
108732
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/index.js"(exports2) {
108733
108733
  "use strict";
108734
108734
  init_cjs_shims();
108735
108735
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108775,9 +108775,9 @@ var require_detectors = __commonJS({
108775
108775
  }
108776
108776
  });
108777
108777
 
108778
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/utils.js
108778
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/utils.js
108779
108779
  var require_utils12 = __commonJS({
108780
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/utils.js"(exports2) {
108780
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/utils.js"(exports2) {
108781
108781
  "use strict";
108782
108782
  init_cjs_shims();
108783
108783
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108789,9 +108789,9 @@ var require_utils12 = __commonJS({
108789
108789
  }
108790
108790
  });
108791
108791
 
108792
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detect-resources.js
108792
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detect-resources.js
108793
108793
  var require_detect_resources = __commonJS({
108794
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detect-resources.js"(exports2) {
108794
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detect-resources.js"(exports2) {
108795
108795
  "use strict";
108796
108796
  init_cjs_shims();
108797
108797
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108862,9 +108862,9 @@ var require_detect_resources = __commonJS({
108862
108862
  }
108863
108863
  });
108864
108864
 
108865
- // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/index.js
108865
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/index.js
108866
108866
  var require_src11 = __commonJS({
108867
- "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/index.js"(exports2) {
108867
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.30.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/index.js"(exports2) {
108868
108868
  "use strict";
108869
108869
  init_cjs_shims();
108870
108870
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -108921,6 +108921,987 @@ var require_src11 = __commonJS({
108921
108921
  }
108922
108922
  });
108923
108923
 
108924
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js
108925
+ var require_default_service_name2 = __commonJS({
108926
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/default-service-name.js"(exports2) {
108927
+ "use strict";
108928
+ init_cjs_shims();
108929
+ Object.defineProperty(exports2, "__esModule", { value: true });
108930
+ exports2.defaultServiceName = void 0;
108931
+ function defaultServiceName() {
108932
+ return `unknown_service:${process.argv0}`;
108933
+ }
108934
+ exports2.defaultServiceName = defaultServiceName;
108935
+ }
108936
+ });
108937
+
108938
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/index.js
108939
+ var require_node9 = __commonJS({
108940
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/node/index.js"(exports2) {
108941
+ "use strict";
108942
+ init_cjs_shims();
108943
+ Object.defineProperty(exports2, "__esModule", { value: true });
108944
+ exports2.defaultServiceName = void 0;
108945
+ var default_service_name_1 = require_default_service_name2();
108946
+ Object.defineProperty(exports2, "defaultServiceName", { enumerable: true, get: function() {
108947
+ return default_service_name_1.defaultServiceName;
108948
+ } });
108949
+ }
108950
+ });
108951
+
108952
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/index.js
108953
+ var require_platform7 = __commonJS({
108954
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/platform/index.js"(exports2) {
108955
+ "use strict";
108956
+ init_cjs_shims();
108957
+ Object.defineProperty(exports2, "__esModule", { value: true });
108958
+ exports2.defaultServiceName = void 0;
108959
+ var node_1 = require_node9();
108960
+ Object.defineProperty(exports2, "defaultServiceName", { enumerable: true, get: function() {
108961
+ return node_1.defaultServiceName;
108962
+ } });
108963
+ }
108964
+ });
108965
+
108966
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/Resource.js
108967
+ var require_Resource2 = __commonJS({
108968
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/Resource.js"(exports2) {
108969
+ "use strict";
108970
+ init_cjs_shims();
108971
+ Object.defineProperty(exports2, "__esModule", { value: true });
108972
+ exports2.Resource = void 0;
108973
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
108974
+ var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
108975
+ var core_1 = require_src9();
108976
+ var platform_1 = require_platform7();
108977
+ var Resource2 = class _Resource {
108978
+ constructor(attributes, asyncAttributesPromise) {
108979
+ var _a17;
108980
+ this._attributes = attributes;
108981
+ this.asyncAttributesPending = asyncAttributesPromise != null;
108982
+ this._syncAttributes = (_a17 = this._attributes) !== null && _a17 !== void 0 ? _a17 : {};
108983
+ this._asyncAttributesPromise = asyncAttributesPromise === null || asyncAttributesPromise === void 0 ? void 0 : asyncAttributesPromise.then((asyncAttributes) => {
108984
+ this._attributes = Object.assign({}, this._attributes, asyncAttributes);
108985
+ this.asyncAttributesPending = false;
108986
+ return asyncAttributes;
108987
+ }, (err) => {
108988
+ api_1.diag.debug("a resource's async attributes promise rejected: %s", err);
108989
+ this.asyncAttributesPending = false;
108990
+ return {};
108991
+ });
108992
+ }
108993
+ /**
108994
+ * Returns an empty Resource
108995
+ */
108996
+ static empty() {
108997
+ return _Resource.EMPTY;
108998
+ }
108999
+ /**
109000
+ * Returns a Resource that identifies the SDK in use.
109001
+ */
109002
+ static default() {
109003
+ return new _Resource({
109004
+ [semantic_conventions_1.SEMRESATTRS_SERVICE_NAME]: (0, platform_1.defaultServiceName)(),
109005
+ [semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: core_1.SDK_INFO[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],
109006
+ [semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_NAME]: core_1.SDK_INFO[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_NAME],
109007
+ [semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_VERSION]: core_1.SDK_INFO[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_VERSION]
109008
+ });
109009
+ }
109010
+ get attributes() {
109011
+ var _a17;
109012
+ if (this.asyncAttributesPending) {
109013
+ api_1.diag.error("Accessing resource attributes before async attributes settled");
109014
+ }
109015
+ return (_a17 = this._attributes) !== null && _a17 !== void 0 ? _a17 : {};
109016
+ }
109017
+ /**
109018
+ * Returns a promise that will never be rejected. Resolves when all async attributes have finished being added to
109019
+ * this Resource's attributes. This is useful in exporters to block until resource detection
109020
+ * has finished.
109021
+ */
109022
+ async waitForAsyncAttributes() {
109023
+ if (this.asyncAttributesPending) {
109024
+ await this._asyncAttributesPromise;
109025
+ }
109026
+ }
109027
+ /**
109028
+ * Returns a new, merged {@link Resource} by merging the current Resource
109029
+ * with the other Resource. In case of a collision, other Resource takes
109030
+ * precedence.
109031
+ *
109032
+ * @param other the Resource that will be merged with this.
109033
+ * @returns the newly merged Resource.
109034
+ */
109035
+ merge(other) {
109036
+ var _a17;
109037
+ if (!other)
109038
+ return this;
109039
+ const mergedSyncAttributes = Object.assign(Object.assign({}, this._syncAttributes), (_a17 = other._syncAttributes) !== null && _a17 !== void 0 ? _a17 : other.attributes);
109040
+ if (!this._asyncAttributesPromise && !other._asyncAttributesPromise) {
109041
+ return new _Resource(mergedSyncAttributes);
109042
+ }
109043
+ const mergedAttributesPromise = Promise.all([
109044
+ this._asyncAttributesPromise,
109045
+ other._asyncAttributesPromise
109046
+ ]).then(([thisAsyncAttributes, otherAsyncAttributes]) => {
109047
+ var _a18;
109048
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, this._syncAttributes), thisAsyncAttributes), (_a18 = other._syncAttributes) !== null && _a18 !== void 0 ? _a18 : other.attributes), otherAsyncAttributes);
109049
+ });
109050
+ return new _Resource(mergedSyncAttributes, mergedAttributesPromise);
109051
+ }
109052
+ };
109053
+ exports2.Resource = Resource2;
109054
+ Resource2.EMPTY = new Resource2({});
109055
+ }
109056
+ });
109057
+
109058
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/utils.js
109059
+ var require_utils13 = __commonJS({
109060
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/utils.js"(exports2) {
109061
+ "use strict";
109062
+ init_cjs_shims();
109063
+ Object.defineProperty(exports2, "__esModule", { value: true });
109064
+ exports2.normalizeType = exports2.normalizeArch = void 0;
109065
+ var normalizeArch = (nodeArchString) => {
109066
+ switch (nodeArchString) {
109067
+ case "arm":
109068
+ return "arm32";
109069
+ case "ppc":
109070
+ return "ppc32";
109071
+ case "x64":
109072
+ return "amd64";
109073
+ default:
109074
+ return nodeArchString;
109075
+ }
109076
+ };
109077
+ exports2.normalizeArch = normalizeArch;
109078
+ var normalizeType = (nodePlatform) => {
109079
+ switch (nodePlatform) {
109080
+ case "sunos":
109081
+ return "solaris";
109082
+ case "win32":
109083
+ return "windows";
109084
+ default:
109085
+ return nodePlatform;
109086
+ }
109087
+ };
109088
+ exports2.normalizeType = normalizeType;
109089
+ }
109090
+ });
109091
+
109092
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
109093
+ var require_execAsync2 = __commonJS({
109094
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js"(exports2) {
109095
+ "use strict";
109096
+ init_cjs_shims();
109097
+ Object.defineProperty(exports2, "__esModule", { value: true });
109098
+ exports2.execAsync = void 0;
109099
+ var child_process3 = __require("child_process");
109100
+ var util7 = __require("util");
109101
+ exports2.execAsync = util7.promisify(child_process3.exec);
109102
+ }
109103
+ });
109104
+
109105
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js
109106
+ var require_getMachineId_darwin2 = __commonJS({
109107
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js"(exports2) {
109108
+ "use strict";
109109
+ init_cjs_shims();
109110
+ Object.defineProperty(exports2, "__esModule", { value: true });
109111
+ exports2.getMachineId = void 0;
109112
+ var execAsync_1 = require_execAsync2();
109113
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109114
+ async function getMachineId() {
109115
+ try {
109116
+ const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
109117
+ const idLine = result.stdout.split("\n").find((line3) => line3.includes("IOPlatformUUID"));
109118
+ if (!idLine) {
109119
+ return "";
109120
+ }
109121
+ const parts = idLine.split('" = "');
109122
+ if (parts.length === 2) {
109123
+ return parts[1].slice(0, -1);
109124
+ }
109125
+ } catch (e) {
109126
+ api_1.diag.debug(`error reading machine id: ${e}`);
109127
+ }
109128
+ return "";
109129
+ }
109130
+ exports2.getMachineId = getMachineId;
109131
+ }
109132
+ });
109133
+
109134
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
109135
+ var require_getMachineId_linux2 = __commonJS({
109136
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js"(exports2) {
109137
+ "use strict";
109138
+ init_cjs_shims();
109139
+ Object.defineProperty(exports2, "__esModule", { value: true });
109140
+ exports2.getMachineId = void 0;
109141
+ var fs_1 = __require("fs");
109142
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109143
+ async function getMachineId() {
109144
+ const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
109145
+ for (const path45 of paths) {
109146
+ try {
109147
+ const result = await fs_1.promises.readFile(path45, { encoding: "utf8" });
109148
+ return result.trim();
109149
+ } catch (e) {
109150
+ api_1.diag.debug(`error reading machine id: ${e}`);
109151
+ }
109152
+ }
109153
+ return "";
109154
+ }
109155
+ exports2.getMachineId = getMachineId;
109156
+ }
109157
+ });
109158
+
109159
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
109160
+ var require_getMachineId_bsd2 = __commonJS({
109161
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js"(exports2) {
109162
+ "use strict";
109163
+ init_cjs_shims();
109164
+ Object.defineProperty(exports2, "__esModule", { value: true });
109165
+ exports2.getMachineId = void 0;
109166
+ var fs_1 = __require("fs");
109167
+ var execAsync_1 = require_execAsync2();
109168
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109169
+ async function getMachineId() {
109170
+ try {
109171
+ const result = await fs_1.promises.readFile("/etc/hostid", { encoding: "utf8" });
109172
+ return result.trim();
109173
+ } catch (e) {
109174
+ api_1.diag.debug(`error reading machine id: ${e}`);
109175
+ }
109176
+ try {
109177
+ const result = await (0, execAsync_1.execAsync)("kenv -q smbios.system.uuid");
109178
+ return result.stdout.trim();
109179
+ } catch (e) {
109180
+ api_1.diag.debug(`error reading machine id: ${e}`);
109181
+ }
109182
+ return "";
109183
+ }
109184
+ exports2.getMachineId = getMachineId;
109185
+ }
109186
+ });
109187
+
109188
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js
109189
+ var require_getMachineId_win2 = __commonJS({
109190
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-win.js"(exports2) {
109191
+ "use strict";
109192
+ init_cjs_shims();
109193
+ Object.defineProperty(exports2, "__esModule", { value: true });
109194
+ exports2.getMachineId = void 0;
109195
+ var process5 = __require("process");
109196
+ var execAsync_1 = require_execAsync2();
109197
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109198
+ async function getMachineId() {
109199
+ const args = "QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid";
109200
+ let command = "%windir%\\System32\\REG.exe";
109201
+ if (process5.arch === "ia32" && "PROCESSOR_ARCHITEW6432" in process5.env) {
109202
+ command = "%windir%\\sysnative\\cmd.exe /c " + command;
109203
+ }
109204
+ try {
109205
+ const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
109206
+ const parts = result.stdout.split("REG_SZ");
109207
+ if (parts.length === 2) {
109208
+ return parts[1].trim();
109209
+ }
109210
+ } catch (e) {
109211
+ api_1.diag.debug(`error reading machine id: ${e}`);
109212
+ }
109213
+ return "";
109214
+ }
109215
+ exports2.getMachineId = getMachineId;
109216
+ }
109217
+ });
109218
+
109219
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js
109220
+ var require_getMachineId_unsupported2 = __commonJS({
109221
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-unsupported.js"(exports2) {
109222
+ "use strict";
109223
+ init_cjs_shims();
109224
+ Object.defineProperty(exports2, "__esModule", { value: true });
109225
+ exports2.getMachineId = void 0;
109226
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109227
+ async function getMachineId() {
109228
+ api_1.diag.debug("could not read machine-id: unsupported platform");
109229
+ return "";
109230
+ }
109231
+ exports2.getMachineId = getMachineId;
109232
+ }
109233
+ });
109234
+
109235
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId.js
109236
+ var require_getMachineId2 = __commonJS({
109237
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId.js"(exports2) {
109238
+ "use strict";
109239
+ init_cjs_shims();
109240
+ Object.defineProperty(exports2, "__esModule", { value: true });
109241
+ exports2.getMachineId = void 0;
109242
+ var process5 = __require("process");
109243
+ var getMachineId;
109244
+ exports2.getMachineId = getMachineId;
109245
+ switch (process5.platform) {
109246
+ case "darwin":
109247
+ exports2.getMachineId = getMachineId = require_getMachineId_darwin2().getMachineId;
109248
+ break;
109249
+ case "linux":
109250
+ exports2.getMachineId = getMachineId = require_getMachineId_linux2().getMachineId;
109251
+ break;
109252
+ case "freebsd":
109253
+ exports2.getMachineId = getMachineId = require_getMachineId_bsd2().getMachineId;
109254
+ break;
109255
+ case "win32":
109256
+ exports2.getMachineId = getMachineId = require_getMachineId_win2().getMachineId;
109257
+ break;
109258
+ default:
109259
+ exports2.getMachineId = getMachineId = require_getMachineId_unsupported2().getMachineId;
109260
+ }
109261
+ }
109262
+ });
109263
+
109264
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetectorSync.js
109265
+ var require_HostDetectorSync2 = __commonJS({
109266
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetectorSync.js"(exports2) {
109267
+ "use strict";
109268
+ init_cjs_shims();
109269
+ Object.defineProperty(exports2, "__esModule", { value: true });
109270
+ exports2.hostDetectorSync = void 0;
109271
+ var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
109272
+ var Resource_1 = require_Resource2();
109273
+ var os_1 = __require("os");
109274
+ var utils_1 = require_utils13();
109275
+ var getMachineId_1 = require_getMachineId2();
109276
+ var HostDetectorSync = class {
109277
+ detect(_config) {
109278
+ const attributes = {
109279
+ [semantic_conventions_1.SEMRESATTRS_HOST_NAME]: (0, os_1.hostname)(),
109280
+ [semantic_conventions_1.SEMRESATTRS_HOST_ARCH]: (0, utils_1.normalizeArch)((0, os_1.arch)())
109281
+ };
109282
+ return new Resource_1.Resource(attributes, this._getAsyncAttributes());
109283
+ }
109284
+ _getAsyncAttributes() {
109285
+ return (0, getMachineId_1.getMachineId)().then((machineId) => {
109286
+ const attributes = {};
109287
+ if (machineId) {
109288
+ attributes[semantic_conventions_1.SEMRESATTRS_HOST_ID] = machineId;
109289
+ }
109290
+ return attributes;
109291
+ });
109292
+ }
109293
+ };
109294
+ exports2.hostDetectorSync = new HostDetectorSync();
109295
+ }
109296
+ });
109297
+
109298
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetector.js
109299
+ var require_HostDetector2 = __commonJS({
109300
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/HostDetector.js"(exports2) {
109301
+ "use strict";
109302
+ init_cjs_shims();
109303
+ Object.defineProperty(exports2, "__esModule", { value: true });
109304
+ exports2.hostDetector = void 0;
109305
+ var HostDetectorSync_1 = require_HostDetectorSync2();
109306
+ var HostDetector = class {
109307
+ detect(_config) {
109308
+ return Promise.resolve(HostDetectorSync_1.hostDetectorSync.detect(_config));
109309
+ }
109310
+ };
109311
+ exports2.hostDetector = new HostDetector();
109312
+ }
109313
+ });
109314
+
109315
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetectorSync.js
109316
+ var require_OSDetectorSync2 = __commonJS({
109317
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetectorSync.js"(exports2) {
109318
+ "use strict";
109319
+ init_cjs_shims();
109320
+ Object.defineProperty(exports2, "__esModule", { value: true });
109321
+ exports2.osDetectorSync = void 0;
109322
+ var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
109323
+ var Resource_1 = require_Resource2();
109324
+ var os_1 = __require("os");
109325
+ var utils_1 = require_utils13();
109326
+ var OSDetectorSync = class {
109327
+ detect(_config) {
109328
+ const attributes = {
109329
+ [semantic_conventions_1.SEMRESATTRS_OS_TYPE]: (0, utils_1.normalizeType)((0, os_1.platform)()),
109330
+ [semantic_conventions_1.SEMRESATTRS_OS_VERSION]: (0, os_1.release)()
109331
+ };
109332
+ return new Resource_1.Resource(attributes);
109333
+ }
109334
+ };
109335
+ exports2.osDetectorSync = new OSDetectorSync();
109336
+ }
109337
+ });
109338
+
109339
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetector.js
109340
+ var require_OSDetector2 = __commonJS({
109341
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/OSDetector.js"(exports2) {
109342
+ "use strict";
109343
+ init_cjs_shims();
109344
+ Object.defineProperty(exports2, "__esModule", { value: true });
109345
+ exports2.osDetector = void 0;
109346
+ var OSDetectorSync_1 = require_OSDetectorSync2();
109347
+ var OSDetector = class {
109348
+ detect(_config) {
109349
+ return Promise.resolve(OSDetectorSync_1.osDetectorSync.detect(_config));
109350
+ }
109351
+ };
109352
+ exports2.osDetector = new OSDetector();
109353
+ }
109354
+ });
109355
+
109356
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetectorSync.js
109357
+ var require_ProcessDetectorSync2 = __commonJS({
109358
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetectorSync.js"(exports2) {
109359
+ "use strict";
109360
+ init_cjs_shims();
109361
+ Object.defineProperty(exports2, "__esModule", { value: true });
109362
+ exports2.processDetectorSync = void 0;
109363
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109364
+ var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
109365
+ var Resource_1 = require_Resource2();
109366
+ var os5 = __require("os");
109367
+ var ProcessDetectorSync = class {
109368
+ detect(_config) {
109369
+ const attributes = {
109370
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_PID]: process.pid,
109371
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]: process.title,
109372
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]: process.execPath,
109373
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_COMMAND_ARGS]: [
109374
+ process.argv[0],
109375
+ ...process.execArgv,
109376
+ ...process.argv.slice(1)
109377
+ ],
109378
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_VERSION]: process.versions.node,
109379
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_NAME]: "nodejs",
109380
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]: "Node.js"
109381
+ };
109382
+ if (process.argv.length > 1) {
109383
+ attributes[semantic_conventions_1.SEMRESATTRS_PROCESS_COMMAND] = process.argv[1];
109384
+ }
109385
+ try {
109386
+ const userInfo = os5.userInfo();
109387
+ attributes[semantic_conventions_1.SEMRESATTRS_PROCESS_OWNER] = userInfo.username;
109388
+ } catch (e) {
109389
+ api_1.diag.debug(`error obtaining process owner: ${e}`);
109390
+ }
109391
+ return new Resource_1.Resource(attributes);
109392
+ }
109393
+ };
109394
+ exports2.processDetectorSync = new ProcessDetectorSync();
109395
+ }
109396
+ });
109397
+
109398
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetector.js
109399
+ var require_ProcessDetector2 = __commonJS({
109400
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ProcessDetector.js"(exports2) {
109401
+ "use strict";
109402
+ init_cjs_shims();
109403
+ Object.defineProperty(exports2, "__esModule", { value: true });
109404
+ exports2.processDetector = void 0;
109405
+ var ProcessDetectorSync_1 = require_ProcessDetectorSync2();
109406
+ var ProcessDetector = class {
109407
+ detect(config2) {
109408
+ return Promise.resolve(ProcessDetectorSync_1.processDetectorSync.detect(config2));
109409
+ }
109410
+ };
109411
+ exports2.processDetector = new ProcessDetector();
109412
+ }
109413
+ });
109414
+
109415
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetectorSync.js
109416
+ var require_ServiceInstanceIdDetectorSync2 = __commonJS({
109417
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetectorSync.js"(exports2) {
109418
+ "use strict";
109419
+ init_cjs_shims();
109420
+ Object.defineProperty(exports2, "__esModule", { value: true });
109421
+ exports2.serviceInstanceIdDetectorSync = void 0;
109422
+ var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
109423
+ var Resource_1 = require_Resource2();
109424
+ var crypto_1 = __require("crypto");
109425
+ var ServiceInstanceIdDetectorSync = class {
109426
+ detect(_config) {
109427
+ const attributes = {
109428
+ [semantic_conventions_1.SEMRESATTRS_SERVICE_INSTANCE_ID]: (0, crypto_1.randomUUID)()
109429
+ };
109430
+ return new Resource_1.Resource(attributes);
109431
+ }
109432
+ };
109433
+ exports2.serviceInstanceIdDetectorSync = new ServiceInstanceIdDetectorSync();
109434
+ }
109435
+ });
109436
+
109437
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/index.js
109438
+ var require_node10 = __commonJS({
109439
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/index.js"(exports2) {
109440
+ "use strict";
109441
+ init_cjs_shims();
109442
+ Object.defineProperty(exports2, "__esModule", { value: true });
109443
+ exports2.serviceInstanceIdDetectorSync = exports2.processDetectorSync = exports2.processDetector = exports2.osDetectorSync = exports2.osDetector = exports2.hostDetectorSync = exports2.hostDetector = void 0;
109444
+ var HostDetector_1 = require_HostDetector2();
109445
+ Object.defineProperty(exports2, "hostDetector", { enumerable: true, get: function() {
109446
+ return HostDetector_1.hostDetector;
109447
+ } });
109448
+ var HostDetectorSync_1 = require_HostDetectorSync2();
109449
+ Object.defineProperty(exports2, "hostDetectorSync", { enumerable: true, get: function() {
109450
+ return HostDetectorSync_1.hostDetectorSync;
109451
+ } });
109452
+ var OSDetector_1 = require_OSDetector2();
109453
+ Object.defineProperty(exports2, "osDetector", { enumerable: true, get: function() {
109454
+ return OSDetector_1.osDetector;
109455
+ } });
109456
+ var OSDetectorSync_1 = require_OSDetectorSync2();
109457
+ Object.defineProperty(exports2, "osDetectorSync", { enumerable: true, get: function() {
109458
+ return OSDetectorSync_1.osDetectorSync;
109459
+ } });
109460
+ var ProcessDetector_1 = require_ProcessDetector2();
109461
+ Object.defineProperty(exports2, "processDetector", { enumerable: true, get: function() {
109462
+ return ProcessDetector_1.processDetector;
109463
+ } });
109464
+ var ProcessDetectorSync_1 = require_ProcessDetectorSync2();
109465
+ Object.defineProperty(exports2, "processDetectorSync", { enumerable: true, get: function() {
109466
+ return ProcessDetectorSync_1.processDetectorSync;
109467
+ } });
109468
+ var ServiceInstanceIdDetectorSync_1 = require_ServiceInstanceIdDetectorSync2();
109469
+ Object.defineProperty(exports2, "serviceInstanceIdDetectorSync", { enumerable: true, get: function() {
109470
+ return ServiceInstanceIdDetectorSync_1.serviceInstanceIdDetectorSync;
109471
+ } });
109472
+ }
109473
+ });
109474
+
109475
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/index.js
109476
+ var require_platform8 = __commonJS({
109477
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/platform/index.js"(exports2) {
109478
+ "use strict";
109479
+ init_cjs_shims();
109480
+ Object.defineProperty(exports2, "__esModule", { value: true });
109481
+ exports2.serviceInstanceIdDetectorSync = exports2.processDetectorSync = exports2.processDetector = exports2.osDetectorSync = exports2.osDetector = exports2.hostDetectorSync = exports2.hostDetector = void 0;
109482
+ var node_1 = require_node10();
109483
+ Object.defineProperty(exports2, "hostDetector", { enumerable: true, get: function() {
109484
+ return node_1.hostDetector;
109485
+ } });
109486
+ Object.defineProperty(exports2, "hostDetectorSync", { enumerable: true, get: function() {
109487
+ return node_1.hostDetectorSync;
109488
+ } });
109489
+ Object.defineProperty(exports2, "osDetector", { enumerable: true, get: function() {
109490
+ return node_1.osDetector;
109491
+ } });
109492
+ Object.defineProperty(exports2, "osDetectorSync", { enumerable: true, get: function() {
109493
+ return node_1.osDetectorSync;
109494
+ } });
109495
+ Object.defineProperty(exports2, "processDetector", { enumerable: true, get: function() {
109496
+ return node_1.processDetector;
109497
+ } });
109498
+ Object.defineProperty(exports2, "processDetectorSync", { enumerable: true, get: function() {
109499
+ return node_1.processDetectorSync;
109500
+ } });
109501
+ Object.defineProperty(exports2, "serviceInstanceIdDetectorSync", { enumerable: true, get: function() {
109502
+ return node_1.serviceInstanceIdDetectorSync;
109503
+ } });
109504
+ }
109505
+ });
109506
+
109507
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetectorSync.js
109508
+ var require_BrowserDetectorSync2 = __commonJS({
109509
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetectorSync.js"(exports2) {
109510
+ "use strict";
109511
+ init_cjs_shims();
109512
+ Object.defineProperty(exports2, "__esModule", { value: true });
109513
+ exports2.browserDetectorSync = void 0;
109514
+ var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
109515
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109516
+ var Resource_1 = require_Resource2();
109517
+ var BrowserDetectorSync = class {
109518
+ detect(config2) {
109519
+ var _a17, _b, _c;
109520
+ const isBrowser = typeof navigator !== "undefined" && ((_b = (_a17 = global.process) === null || _a17 === void 0 ? void 0 : _a17.versions) === null || _b === void 0 ? void 0 : _b.node) === void 0 && // Node.js v21 adds `navigator`
109521
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
109522
+ // @ts-ignore don't have Bun types
109523
+ ((_c = global.Bun) === null || _c === void 0 ? void 0 : _c.version) === void 0;
109524
+ if (!isBrowser) {
109525
+ return Resource_1.Resource.empty();
109526
+ }
109527
+ const browserResource = {
109528
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_NAME]: "browser",
109529
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]: "Web Browser",
109530
+ [semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_VERSION]: navigator.userAgent
109531
+ };
109532
+ return this._getResourceAttributes(browserResource, config2);
109533
+ }
109534
+ /**
109535
+ * Validates process resource attribute map from process variables
109536
+ *
109537
+ * @param browserResource The un-sanitized resource attributes from process as key/value pairs.
109538
+ * @param config: Config
109539
+ * @returns The sanitized resource attributes.
109540
+ */
109541
+ _getResourceAttributes(browserResource, _config) {
109542
+ if (browserResource[semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_VERSION] === "") {
109543
+ api_1.diag.debug("BrowserDetector failed: Unable to find required browser resources. ");
109544
+ return Resource_1.Resource.empty();
109545
+ } else {
109546
+ return new Resource_1.Resource(Object.assign({}, browserResource));
109547
+ }
109548
+ }
109549
+ };
109550
+ exports2.browserDetectorSync = new BrowserDetectorSync();
109551
+ }
109552
+ });
109553
+
109554
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetector.js
109555
+ var require_BrowserDetector2 = __commonJS({
109556
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/BrowserDetector.js"(exports2) {
109557
+ "use strict";
109558
+ init_cjs_shims();
109559
+ Object.defineProperty(exports2, "__esModule", { value: true });
109560
+ exports2.browserDetector = void 0;
109561
+ var BrowserDetectorSync_1 = require_BrowserDetectorSync2();
109562
+ var BrowserDetector = class {
109563
+ detect(config2) {
109564
+ return Promise.resolve(BrowserDetectorSync_1.browserDetectorSync.detect(config2));
109565
+ }
109566
+ };
109567
+ exports2.browserDetector = new BrowserDetector();
109568
+ }
109569
+ });
109570
+
109571
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetectorSync.js
109572
+ var require_EnvDetectorSync2 = __commonJS({
109573
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetectorSync.js"(exports2) {
109574
+ "use strict";
109575
+ init_cjs_shims();
109576
+ Object.defineProperty(exports2, "__esModule", { value: true });
109577
+ exports2.envDetectorSync = void 0;
109578
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109579
+ var core_1 = require_src9();
109580
+ var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
109581
+ var Resource_1 = require_Resource2();
109582
+ var EnvDetectorSync = class {
109583
+ constructor() {
109584
+ this._MAX_LENGTH = 255;
109585
+ this._COMMA_SEPARATOR = ",";
109586
+ this._LABEL_KEY_VALUE_SPLITTER = "=";
109587
+ this._ERROR_MESSAGE_INVALID_CHARS = "should be a ASCII string with a length greater than 0 and not exceed " + this._MAX_LENGTH + " characters.";
109588
+ this._ERROR_MESSAGE_INVALID_VALUE = "should be a ASCII string with a length not exceed " + this._MAX_LENGTH + " characters.";
109589
+ }
109590
+ /**
109591
+ * Returns a {@link Resource} populated with attributes from the
109592
+ * OTEL_RESOURCE_ATTRIBUTES environment variable. Note this is an async
109593
+ * function to conform to the Detector interface.
109594
+ *
109595
+ * @param config The resource detection config
109596
+ */
109597
+ detect(_config) {
109598
+ const attributes = {};
109599
+ const env3 = (0, core_1.getEnv)();
109600
+ const rawAttributes = env3.OTEL_RESOURCE_ATTRIBUTES;
109601
+ const serviceName = env3.OTEL_SERVICE_NAME;
109602
+ if (rawAttributes) {
109603
+ try {
109604
+ const parsedAttributes = this._parseResourceAttributes(rawAttributes);
109605
+ Object.assign(attributes, parsedAttributes);
109606
+ } catch (e) {
109607
+ api_1.diag.debug(`EnvDetector failed: ${e.message}`);
109608
+ }
109609
+ }
109610
+ if (serviceName) {
109611
+ attributes[semantic_conventions_1.SEMRESATTRS_SERVICE_NAME] = serviceName;
109612
+ }
109613
+ return new Resource_1.Resource(attributes);
109614
+ }
109615
+ /**
109616
+ * Creates an attribute map from the OTEL_RESOURCE_ATTRIBUTES environment
109617
+ * variable.
109618
+ *
109619
+ * OTEL_RESOURCE_ATTRIBUTES: A comma-separated list of attributes describing
109620
+ * the source in more detail, e.g. “key1=val1,key2=val2”. Domain names and
109621
+ * paths are accepted as attribute keys. Values may be quoted or unquoted in
109622
+ * general. If a value contains whitespace, =, or " characters, it must
109623
+ * always be quoted.
109624
+ *
109625
+ * @param rawEnvAttributes The resource attributes as a comma-separated list
109626
+ * of key/value pairs.
109627
+ * @returns The sanitized resource attributes.
109628
+ */
109629
+ _parseResourceAttributes(rawEnvAttributes) {
109630
+ if (!rawEnvAttributes)
109631
+ return {};
109632
+ const attributes = {};
109633
+ const rawAttributes = rawEnvAttributes.split(this._COMMA_SEPARATOR, -1);
109634
+ for (const rawAttribute of rawAttributes) {
109635
+ const keyValuePair = rawAttribute.split(this._LABEL_KEY_VALUE_SPLITTER, -1);
109636
+ if (keyValuePair.length !== 2) {
109637
+ continue;
109638
+ }
109639
+ let [key2, value2] = keyValuePair;
109640
+ key2 = key2.trim();
109641
+ value2 = value2.trim().split(/^"|"$/).join("");
109642
+ if (!this._isValidAndNotEmpty(key2)) {
109643
+ throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);
109644
+ }
109645
+ if (!this._isValid(value2)) {
109646
+ throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);
109647
+ }
109648
+ attributes[key2] = decodeURIComponent(value2);
109649
+ }
109650
+ return attributes;
109651
+ }
109652
+ /**
109653
+ * Determines whether the given String is a valid printable ASCII string with
109654
+ * a length not exceed _MAX_LENGTH characters.
109655
+ *
109656
+ * @param str The String to be validated.
109657
+ * @returns Whether the String is valid.
109658
+ */
109659
+ _isValid(name17) {
109660
+ return name17.length <= this._MAX_LENGTH && this._isBaggageOctetString(name17);
109661
+ }
109662
+ // https://www.w3.org/TR/baggage/#definition
109663
+ _isBaggageOctetString(str2) {
109664
+ for (let i2 = 0; i2 < str2.length; i2++) {
109665
+ const ch = str2.charCodeAt(i2);
109666
+ if (ch < 33 || ch === 44 || ch === 59 || ch === 92 || ch > 126) {
109667
+ return false;
109668
+ }
109669
+ }
109670
+ return true;
109671
+ }
109672
+ /**
109673
+ * Determines whether the given String is a valid printable ASCII string with
109674
+ * a length greater than 0 and not exceed _MAX_LENGTH characters.
109675
+ *
109676
+ * @param str The String to be validated.
109677
+ * @returns Whether the String is valid and not empty.
109678
+ */
109679
+ _isValidAndNotEmpty(str2) {
109680
+ return str2.length > 0 && this._isValid(str2);
109681
+ }
109682
+ };
109683
+ exports2.envDetectorSync = new EnvDetectorSync();
109684
+ }
109685
+ });
109686
+
109687
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetector.js
109688
+ var require_EnvDetector2 = __commonJS({
109689
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/EnvDetector.js"(exports2) {
109690
+ "use strict";
109691
+ init_cjs_shims();
109692
+ Object.defineProperty(exports2, "__esModule", { value: true });
109693
+ exports2.envDetector = void 0;
109694
+ var EnvDetectorSync_1 = require_EnvDetectorSync2();
109695
+ var EnvDetector = class {
109696
+ /**
109697
+ * Returns a {@link Resource} populated with attributes from the
109698
+ * OTEL_RESOURCE_ATTRIBUTES environment variable. Note this is an async
109699
+ * function to conform to the Detector interface.
109700
+ *
109701
+ * @param config The resource detection config
109702
+ */
109703
+ detect(config2) {
109704
+ return Promise.resolve(EnvDetectorSync_1.envDetectorSync.detect(config2));
109705
+ }
109706
+ };
109707
+ exports2.envDetector = new EnvDetector();
109708
+ }
109709
+ });
109710
+
109711
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/index.js
109712
+ var require_detectors2 = __commonJS({
109713
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detectors/index.js"(exports2) {
109714
+ "use strict";
109715
+ init_cjs_shims();
109716
+ Object.defineProperty(exports2, "__esModule", { value: true });
109717
+ exports2.envDetectorSync = exports2.browserDetectorSync = exports2.envDetector = exports2.browserDetector = exports2.serviceInstanceIdDetectorSync = exports2.processDetectorSync = exports2.processDetector = exports2.osDetectorSync = exports2.osDetector = exports2.hostDetectorSync = exports2.hostDetector = void 0;
109718
+ var platform_1 = require_platform8();
109719
+ Object.defineProperty(exports2, "hostDetector", { enumerable: true, get: function() {
109720
+ return platform_1.hostDetector;
109721
+ } });
109722
+ Object.defineProperty(exports2, "hostDetectorSync", { enumerable: true, get: function() {
109723
+ return platform_1.hostDetectorSync;
109724
+ } });
109725
+ Object.defineProperty(exports2, "osDetector", { enumerable: true, get: function() {
109726
+ return platform_1.osDetector;
109727
+ } });
109728
+ Object.defineProperty(exports2, "osDetectorSync", { enumerable: true, get: function() {
109729
+ return platform_1.osDetectorSync;
109730
+ } });
109731
+ Object.defineProperty(exports2, "processDetector", { enumerable: true, get: function() {
109732
+ return platform_1.processDetector;
109733
+ } });
109734
+ Object.defineProperty(exports2, "processDetectorSync", { enumerable: true, get: function() {
109735
+ return platform_1.processDetectorSync;
109736
+ } });
109737
+ Object.defineProperty(exports2, "serviceInstanceIdDetectorSync", { enumerable: true, get: function() {
109738
+ return platform_1.serviceInstanceIdDetectorSync;
109739
+ } });
109740
+ var BrowserDetector_1 = require_BrowserDetector2();
109741
+ Object.defineProperty(exports2, "browserDetector", { enumerable: true, get: function() {
109742
+ return BrowserDetector_1.browserDetector;
109743
+ } });
109744
+ var EnvDetector_1 = require_EnvDetector2();
109745
+ Object.defineProperty(exports2, "envDetector", { enumerable: true, get: function() {
109746
+ return EnvDetector_1.envDetector;
109747
+ } });
109748
+ var BrowserDetectorSync_1 = require_BrowserDetectorSync2();
109749
+ Object.defineProperty(exports2, "browserDetectorSync", { enumerable: true, get: function() {
109750
+ return BrowserDetectorSync_1.browserDetectorSync;
109751
+ } });
109752
+ var EnvDetectorSync_1 = require_EnvDetectorSync2();
109753
+ Object.defineProperty(exports2, "envDetectorSync", { enumerable: true, get: function() {
109754
+ return EnvDetectorSync_1.envDetectorSync;
109755
+ } });
109756
+ }
109757
+ });
109758
+
109759
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/utils.js
109760
+ var require_utils14 = __commonJS({
109761
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/utils.js"(exports2) {
109762
+ "use strict";
109763
+ init_cjs_shims();
109764
+ Object.defineProperty(exports2, "__esModule", { value: true });
109765
+ exports2.isPromiseLike = void 0;
109766
+ var isPromiseLike = (val) => {
109767
+ return val !== null && typeof val === "object" && typeof val.then === "function";
109768
+ };
109769
+ exports2.isPromiseLike = isPromiseLike;
109770
+ }
109771
+ });
109772
+
109773
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detect-resources.js
109774
+ var require_detect_resources2 = __commonJS({
109775
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/detect-resources.js"(exports2) {
109776
+ "use strict";
109777
+ init_cjs_shims();
109778
+ Object.defineProperty(exports2, "__esModule", { value: true });
109779
+ exports2.detectResourcesSync = exports2.detectResources = void 0;
109780
+ var Resource_1 = require_Resource2();
109781
+ var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109782
+ var utils_1 = require_utils14();
109783
+ var detectResources = async (config2 = {}) => {
109784
+ const resources = await Promise.all((config2.detectors || []).map(async (d) => {
109785
+ try {
109786
+ const resource = await d.detect(config2);
109787
+ api_1.diag.debug(`${d.constructor.name} found resource.`, resource);
109788
+ return resource;
109789
+ } catch (e) {
109790
+ api_1.diag.debug(`${d.constructor.name} failed: ${e.message}`);
109791
+ return Resource_1.Resource.empty();
109792
+ }
109793
+ }));
109794
+ logResources(resources);
109795
+ return resources.reduce((acc, resource) => acc.merge(resource), Resource_1.Resource.empty());
109796
+ };
109797
+ exports2.detectResources = detectResources;
109798
+ var detectResourcesSync = (config2 = {}) => {
109799
+ var _a17;
109800
+ const resources = ((_a17 = config2.detectors) !== null && _a17 !== void 0 ? _a17 : []).map((d) => {
109801
+ try {
109802
+ const resourceOrPromise = d.detect(config2);
109803
+ let resource;
109804
+ if ((0, utils_1.isPromiseLike)(resourceOrPromise)) {
109805
+ const createPromise = async () => {
109806
+ var _a18;
109807
+ const resolvedResource = await resourceOrPromise;
109808
+ await ((_a18 = resolvedResource.waitForAsyncAttributes) === null || _a18 === void 0 ? void 0 : _a18.call(resolvedResource));
109809
+ return resolvedResource.attributes;
109810
+ };
109811
+ resource = new Resource_1.Resource({}, createPromise());
109812
+ } else {
109813
+ resource = resourceOrPromise;
109814
+ }
109815
+ if (resource.waitForAsyncAttributes) {
109816
+ void resource.waitForAsyncAttributes().then(() => api_1.diag.debug(`${d.constructor.name} found resource.`, resource));
109817
+ } else {
109818
+ api_1.diag.debug(`${d.constructor.name} found resource.`, resource);
109819
+ }
109820
+ return resource;
109821
+ } catch (e) {
109822
+ api_1.diag.error(`${d.constructor.name} failed: ${e.message}`);
109823
+ return Resource_1.Resource.empty();
109824
+ }
109825
+ });
109826
+ const mergedResources = resources.reduce((acc, resource) => acc.merge(resource), Resource_1.Resource.empty());
109827
+ if (mergedResources.waitForAsyncAttributes) {
109828
+ void mergedResources.waitForAsyncAttributes().then(() => {
109829
+ logResources(resources);
109830
+ });
109831
+ }
109832
+ return mergedResources;
109833
+ };
109834
+ exports2.detectResourcesSync = detectResourcesSync;
109835
+ var logResources = (resources) => {
109836
+ resources.forEach((resource) => {
109837
+ if (Object.keys(resource.attributes).length > 0) {
109838
+ const resourceDebugString = JSON.stringify(resource.attributes, null, 4);
109839
+ api_1.diag.verbose(resourceDebugString);
109840
+ }
109841
+ });
109842
+ };
109843
+ }
109844
+ });
109845
+
109846
+ // ../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/index.js
109847
+ var require_src12 = __commonJS({
109848
+ "../../../../node_modules/.pnpm/@opentelemetry+resources@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/src/index.js"(exports2) {
109849
+ "use strict";
109850
+ init_cjs_shims();
109851
+ Object.defineProperty(exports2, "__esModule", { value: true });
109852
+ exports2.detectResources = exports2.detectResourcesSync = exports2.serviceInstanceIdDetectorSync = exports2.processDetectorSync = exports2.processDetector = exports2.osDetectorSync = exports2.osDetector = exports2.hostDetectorSync = exports2.hostDetector = exports2.envDetectorSync = exports2.envDetector = exports2.browserDetectorSync = exports2.browserDetector = exports2.defaultServiceName = exports2.Resource = void 0;
109853
+ var Resource_1 = require_Resource2();
109854
+ Object.defineProperty(exports2, "Resource", { enumerable: true, get: function() {
109855
+ return Resource_1.Resource;
109856
+ } });
109857
+ var platform_1 = require_platform7();
109858
+ Object.defineProperty(exports2, "defaultServiceName", { enumerable: true, get: function() {
109859
+ return platform_1.defaultServiceName;
109860
+ } });
109861
+ var detectors_1 = require_detectors2();
109862
+ Object.defineProperty(exports2, "browserDetector", { enumerable: true, get: function() {
109863
+ return detectors_1.browserDetector;
109864
+ } });
109865
+ Object.defineProperty(exports2, "browserDetectorSync", { enumerable: true, get: function() {
109866
+ return detectors_1.browserDetectorSync;
109867
+ } });
109868
+ Object.defineProperty(exports2, "envDetector", { enumerable: true, get: function() {
109869
+ return detectors_1.envDetector;
109870
+ } });
109871
+ Object.defineProperty(exports2, "envDetectorSync", { enumerable: true, get: function() {
109872
+ return detectors_1.envDetectorSync;
109873
+ } });
109874
+ Object.defineProperty(exports2, "hostDetector", { enumerable: true, get: function() {
109875
+ return detectors_1.hostDetector;
109876
+ } });
109877
+ Object.defineProperty(exports2, "hostDetectorSync", { enumerable: true, get: function() {
109878
+ return detectors_1.hostDetectorSync;
109879
+ } });
109880
+ Object.defineProperty(exports2, "osDetector", { enumerable: true, get: function() {
109881
+ return detectors_1.osDetector;
109882
+ } });
109883
+ Object.defineProperty(exports2, "osDetectorSync", { enumerable: true, get: function() {
109884
+ return detectors_1.osDetectorSync;
109885
+ } });
109886
+ Object.defineProperty(exports2, "processDetector", { enumerable: true, get: function() {
109887
+ return detectors_1.processDetector;
109888
+ } });
109889
+ Object.defineProperty(exports2, "processDetectorSync", { enumerable: true, get: function() {
109890
+ return detectors_1.processDetectorSync;
109891
+ } });
109892
+ Object.defineProperty(exports2, "serviceInstanceIdDetectorSync", { enumerable: true, get: function() {
109893
+ return detectors_1.serviceInstanceIdDetectorSync;
109894
+ } });
109895
+ var detect_resources_1 = require_detect_resources2();
109896
+ Object.defineProperty(exports2, "detectResourcesSync", { enumerable: true, get: function() {
109897
+ return detect_resources_1.detectResourcesSync;
109898
+ } });
109899
+ Object.defineProperty(exports2, "detectResources", { enumerable: true, get: function() {
109900
+ return detect_resources_1.detectResources;
109901
+ } });
109902
+ }
109903
+ });
109904
+
108924
109905
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-logs@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-logs/build/src/LogRecord.js
108925
109906
  var require_LogRecord2 = __commonJS({
108926
109907
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-logs@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-logs/build/src/LogRecord.js"(exports2) {
@@ -109213,7 +110194,7 @@ var require_LoggerProvider = __commonJS({
109213
110194
  exports2.LoggerProvider = exports2.DEFAULT_LOGGER_NAME = void 0;
109214
110195
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109215
110196
  var api_logs_1 = require_src6();
109216
- var resources_1 = require_src11();
110197
+ var resources_1 = require_src12();
109217
110198
  var core_1 = require_src9();
109218
110199
  var Logger_1 = require_Logger();
109219
110200
  var config_1 = require_config();
@@ -109587,7 +110568,7 @@ var require_BatchLogRecordProcessor = __commonJS({
109587
110568
  });
109588
110569
 
109589
110570
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-logs@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-logs/build/src/platform/node/index.js
109590
- var require_node9 = __commonJS({
110571
+ var require_node11 = __commonJS({
109591
110572
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-logs@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-logs/build/src/platform/node/index.js"(exports2) {
109592
110573
  "use strict";
109593
110574
  init_cjs_shims();
@@ -109601,13 +110582,13 @@ var require_node9 = __commonJS({
109601
110582
  });
109602
110583
 
109603
110584
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-logs@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-logs/build/src/platform/index.js
109604
- var require_platform7 = __commonJS({
110585
+ var require_platform9 = __commonJS({
109605
110586
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-logs@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-logs/build/src/platform/index.js"(exports2) {
109606
110587
  "use strict";
109607
110588
  init_cjs_shims();
109608
110589
  Object.defineProperty(exports2, "__esModule", { value: true });
109609
110590
  exports2.BatchLogRecordProcessor = void 0;
109610
- var node_1 = require_node9();
110591
+ var node_1 = require_node11();
109611
110592
  Object.defineProperty(exports2, "BatchLogRecordProcessor", { enumerable: true, get: function() {
109612
110593
  return node_1.BatchLogRecordProcessor;
109613
110594
  } });
@@ -109615,7 +110596,7 @@ var require_platform7 = __commonJS({
109615
110596
  });
109616
110597
 
109617
110598
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-logs@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-logs/build/src/index.js
109618
- var require_src12 = __commonJS({
110599
+ var require_src13 = __commonJS({
109619
110600
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-logs@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-logs/build/src/index.js"(exports2) {
109620
110601
  "use strict";
109621
110602
  init_cjs_shims();
@@ -109645,7 +110626,7 @@ var require_src12 = __commonJS({
109645
110626
  Object.defineProperty(exports2, "InMemoryLogRecordExporter", { enumerable: true, get: function() {
109646
110627
  return InMemoryLogRecordExporter_1.InMemoryLogRecordExporter;
109647
110628
  } });
109648
- var platform_1 = require_platform7();
110629
+ var platform_1 = require_platform9();
109649
110630
  Object.defineProperty(exports2, "BatchLogRecordProcessor", { enumerable: true, get: function() {
109650
110631
  return platform_1.BatchLogRecordProcessor;
109651
110632
  } });
@@ -109685,7 +110666,7 @@ var require_MetricData = __commonJS({
109685
110666
  });
109686
110667
 
109687
110668
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-metrics@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-metrics/build/src/utils.js
109688
- var require_utils13 = __commonJS({
110669
+ var require_utils15 = __commonJS({
109689
110670
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-metrics@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-metrics/build/src/utils.js"(exports2) {
109690
110671
  "use strict";
109691
110672
  init_cjs_shims();
@@ -109850,7 +110831,7 @@ var require_InstrumentDescriptor = __commonJS({
109850
110831
  Object.defineProperty(exports2, "__esModule", { value: true });
109851
110832
  exports2.isValidName = exports2.isDescriptorCompatibleWith = exports2.createInstrumentDescriptorWithView = exports2.createInstrumentDescriptor = exports2.InstrumentType = void 0;
109852
110833
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
109853
- var utils_1 = require_utils13();
110834
+ var utils_1 = require_utils15();
109854
110835
  var InstrumentType;
109855
110836
  (function(InstrumentType2) {
109856
110837
  InstrumentType2["COUNTER"] = "COUNTER";
@@ -109910,7 +110891,7 @@ var require_Histogram = __commonJS({
109910
110891
  var types_1 = require_types14();
109911
110892
  var MetricData_1 = require_MetricData();
109912
110893
  var InstrumentDescriptor_1 = require_InstrumentDescriptor();
109913
- var utils_1 = require_utils13();
110894
+ var utils_1 = require_utils15();
109914
110895
  function createNewEmptyCheckpoint(boundaries) {
109915
110896
  const counts = boundaries.map(() => 0);
109916
110897
  counts.push(0);
@@ -111360,7 +112341,7 @@ var require_MetricReader = __commonJS({
111360
112341
  Object.defineProperty(exports2, "__esModule", { value: true });
111361
112342
  exports2.MetricReader = void 0;
111362
112343
  var api = (init_esm2(), __toCommonJS(esm_exports2));
111363
- var utils_1 = require_utils13();
112344
+ var utils_1 = require_utils15();
111364
112345
  var AggregationSelector_1 = require_AggregationSelector();
111365
112346
  var MetricReader = class {
111366
112347
  constructor(options8) {
@@ -111486,7 +112467,7 @@ var require_PeriodicExportingMetricReader = __commonJS({
111486
112467
  var api = (init_esm2(), __toCommonJS(esm_exports2));
111487
112468
  var core_1 = require_src9();
111488
112469
  var MetricReader_1 = require_MetricReader();
111489
- var utils_1 = require_utils13();
112470
+ var utils_1 = require_utils15();
111490
112471
  var PeriodicExportingMetricReader = class extends MetricReader_1.MetricReader {
111491
112472
  constructor(options8) {
111492
112473
  var _a17, _b, _c, _d;
@@ -111922,7 +112903,7 @@ var require_HashMap = __commonJS({
111922
112903
  init_cjs_shims();
111923
112904
  Object.defineProperty(exports2, "__esModule", { value: true });
111924
112905
  exports2.AttributeHashMap = exports2.HashMap = void 0;
111925
- var utils_1 = require_utils13();
112906
+ var utils_1 = require_utils15();
111926
112907
  var HashMap = class {
111927
112908
  constructor(_hash) {
111928
112909
  this._hash = _hash;
@@ -112465,7 +113446,7 @@ var require_ObservableRegistry = __commonJS({
112465
113446
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
112466
113447
  var Instruments_1 = require_Instruments();
112467
113448
  var ObservableResult_1 = require_ObservableResult();
112468
- var utils_1 = require_utils13();
113449
+ var utils_1 = require_utils15();
112469
113450
  var ObservableRegistry = class {
112470
113451
  constructor() {
112471
113452
  this._callbacks = [];
@@ -112645,7 +113626,7 @@ var require_MeterSharedState = __commonJS({
112645
113626
  exports2.MeterSharedState = void 0;
112646
113627
  var InstrumentDescriptor_1 = require_InstrumentDescriptor();
112647
113628
  var Meter_1 = require_Meter();
112648
- var utils_1 = require_utils13();
113629
+ var utils_1 = require_utils15();
112649
113630
  var AsyncMetricStorage_1 = require_AsyncMetricStorage();
112650
113631
  var MetricStorageRegistry_1 = require_MetricStorageRegistry();
112651
113632
  var MultiWritableMetricStorage_1 = require_MultiWritableMetricStorage();
@@ -112738,7 +113719,7 @@ var require_MeterProviderSharedState = __commonJS({
112738
113719
  init_cjs_shims();
112739
113720
  Object.defineProperty(exports2, "__esModule", { value: true });
112740
113721
  exports2.MeterProviderSharedState = void 0;
112741
- var utils_1 = require_utils13();
113722
+ var utils_1 = require_utils15();
112742
113723
  var ViewRegistry_1 = require_ViewRegistry();
112743
113724
  var MeterSharedState_1 = require_MeterSharedState();
112744
113725
  var MeterProviderSharedState = class {
@@ -112835,7 +113816,7 @@ var require_MeterProvider = __commonJS({
112835
113816
  Object.defineProperty(exports2, "__esModule", { value: true });
112836
113817
  exports2.MeterProvider = void 0;
112837
113818
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
112838
- var resources_1 = require_src11();
113819
+ var resources_1 = require_src12();
112839
113820
  var MeterProviderSharedState_1 = require_MeterProviderSharedState();
112840
113821
  var MetricCollector_1 = require_MetricCollector();
112841
113822
  function prepareResource(mergeWithDefaults, providedResource) {
@@ -113139,7 +114120,7 @@ var require_View = __commonJS({
113139
114120
  });
113140
114121
 
113141
114122
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-metrics@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-metrics/build/src/index.js
113142
- var require_src13 = __commonJS({
114123
+ var require_src14 = __commonJS({
113143
114124
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-metrics@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-metrics/build/src/index.js"(exports2) {
113144
114125
  "use strict";
113145
114126
  init_cjs_shims();
@@ -113206,7 +114187,7 @@ var require_src13 = __commonJS({
113206
114187
  Object.defineProperty(exports2, "View", { enumerable: true, get: function() {
113207
114188
  return View_1.View;
113208
114189
  } });
113209
- var utils_1 = require_utils13();
114190
+ var utils_1 = require_utils15();
113210
114191
  Object.defineProperty(exports2, "TimeoutError", { enumerable: true, get: function() {
113211
114192
  return utils_1.TimeoutError;
113212
114193
  } });
@@ -113508,7 +114489,7 @@ var require_AsyncLocalStorageContextManager2 = __commonJS({
113508
114489
  });
113509
114490
 
113510
114491
  // ../../../../node_modules/.pnpm/@opentelemetry+context-async-hooks@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/index.js
113511
- var require_src14 = __commonJS({
114492
+ var require_src15 = __commonJS({
113512
114493
  "../../../../node_modules/.pnpm/@opentelemetry+context-async-hooks@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/index.js"(exports2) {
113513
114494
  "use strict";
113514
114495
  init_cjs_shims();
@@ -113776,7 +114757,7 @@ var require_B3Propagator = __commonJS({
113776
114757
  });
113777
114758
 
113778
114759
  // ../../../../node_modules/.pnpm/@opentelemetry+propagator-b3@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/propagator-b3/build/src/index.js
113779
- var require_src15 = __commonJS({
114760
+ var require_src16 = __commonJS({
113780
114761
  "../../../../node_modules/.pnpm/@opentelemetry+propagator-b3@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/propagator-b3/build/src/index.js"(exports2) {
113781
114762
  "use strict";
113782
114763
  init_cjs_shims();
@@ -114570,7 +115551,7 @@ var require_RandomIdGenerator3 = __commonJS({
114570
115551
  });
114571
115552
 
114572
115553
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/node/index.js
114573
- var require_node10 = __commonJS({
115554
+ var require_node12 = __commonJS({
114574
115555
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/node/index.js"(exports2) {
114575
115556
  "use strict";
114576
115557
  init_cjs_shims();
@@ -114588,13 +115569,13 @@ var require_node10 = __commonJS({
114588
115569
  });
114589
115570
 
114590
115571
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/index.js
114591
- var require_platform8 = __commonJS({
115572
+ var require_platform10 = __commonJS({
114592
115573
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/src/platform/index.js"(exports2) {
114593
115574
  "use strict";
114594
115575
  init_cjs_shims();
114595
115576
  Object.defineProperty(exports2, "__esModule", { value: true });
114596
115577
  exports2.RandomIdGenerator = exports2.BatchSpanProcessor = void 0;
114597
- var node_1 = require_node10();
115578
+ var node_1 = require_node12();
114598
115579
  Object.defineProperty(exports2, "BatchSpanProcessor", { enumerable: true, get: function() {
114599
115580
  return node_1.BatchSpanProcessor;
114600
115581
  } });
@@ -114615,7 +115596,7 @@ var require_Tracer = __commonJS({
114615
115596
  var core_1 = require_src9();
114616
115597
  var Span_1 = require_Span();
114617
115598
  var utility_1 = require_utility();
114618
- var platform_1 = require_platform8();
115599
+ var platform_1 = require_platform10();
114619
115600
  var Tracer = class {
114620
115601
  /**
114621
115602
  * Constructs a new Tracer instance.
@@ -114799,12 +115780,12 @@ var require_BasicTracerProvider = __commonJS({
114799
115780
  exports2.BasicTracerProvider = exports2.ForceFlushState = void 0;
114800
115781
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
114801
115782
  var core_1 = require_src9();
114802
- var resources_1 = require_src11();
114803
- var _1 = require_src16();
115783
+ var resources_1 = require_src12();
115784
+ var _1 = require_src17();
114804
115785
  var config_1 = require_config2();
114805
115786
  var MultiSpanProcessor_1 = require_MultiSpanProcessor();
114806
115787
  var NoopSpanProcessor_1 = require_NoopSpanProcessor();
114807
- var platform_1 = require_platform8();
115788
+ var platform_1 = require_platform10();
114808
115789
  var utility_1 = require_utility();
114809
115790
  var ForceFlushState;
114810
115791
  (function(ForceFlushState2) {
@@ -115158,7 +116139,7 @@ var require_SimpleSpanProcessor = __commonJS({
115158
116139
  });
115159
116140
 
115160
116141
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/src/index.js
115161
- var require_src16 = __commonJS({
116142
+ var require_src17 = __commonJS({
115162
116143
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-trace-base@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-base/build/src/index.js"(exports2) {
115163
116144
  "use strict";
115164
116145
  init_cjs_shims();
@@ -115175,7 +116156,7 @@ var require_src16 = __commonJS({
115175
116156
  Object.defineProperty(exports2, "ForceFlushState", { enumerable: true, get: function() {
115176
116157
  return BasicTracerProvider_1.ForceFlushState;
115177
116158
  } });
115178
- var platform_1 = require_platform8();
116159
+ var platform_1 = require_platform10();
115179
116160
  Object.defineProperty(exports2, "BatchSpanProcessor", { enumerable: true, get: function() {
115180
116161
  return platform_1.BatchSpanProcessor;
115181
116162
  } });
@@ -115311,7 +116292,7 @@ var require_JaegerPropagator = __commonJS({
115311
116292
  });
115312
116293
 
115313
116294
  // ../../../../node_modules/.pnpm/@opentelemetry+propagator-jaeger@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/propagator-jaeger/build/src/index.js
115314
- var require_src17 = __commonJS({
116295
+ var require_src18 = __commonJS({
115315
116296
  "../../../../node_modules/.pnpm/@opentelemetry+propagator-jaeger@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/propagator-jaeger/build/src/index.js"(exports2) {
115316
116297
  "use strict";
115317
116298
  init_cjs_shims();
@@ -115337,11 +116318,11 @@ var require_NodeTracerProvider = __commonJS({
115337
116318
  init_cjs_shims();
115338
116319
  Object.defineProperty(exports2, "__esModule", { value: true });
115339
116320
  exports2.NodeTracerProvider = void 0;
115340
- var context_async_hooks_1 = require_src14();
115341
- var propagator_b3_1 = require_src15();
115342
- var sdk_trace_base_1 = require_src16();
116321
+ var context_async_hooks_1 = require_src15();
116322
+ var propagator_b3_1 = require_src16();
116323
+ var sdk_trace_base_1 = require_src17();
115343
116324
  var semver8 = require_semver2();
115344
- var propagator_jaeger_1 = require_src17();
116325
+ var propagator_jaeger_1 = require_src18();
115345
116326
  var NodeTracerProvider = class extends sdk_trace_base_1.BasicTracerProvider {
115346
116327
  constructor(config2 = {}) {
115347
116328
  super(config2);
@@ -115372,7 +116353,7 @@ var require_NodeTracerProvider = __commonJS({
115372
116353
  });
115373
116354
 
115374
116355
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-trace-node@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-node/build/src/index.js
115375
- var require_src18 = __commonJS({
116356
+ var require_src19 = __commonJS({
115376
116357
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-trace-node@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-trace-node/build/src/index.js"(exports2) {
115377
116358
  "use strict";
115378
116359
  init_cjs_shims();
@@ -115382,7 +116363,7 @@ var require_src18 = __commonJS({
115382
116363
  Object.defineProperty(exports2, "NodeTracerProvider", { enumerable: true, get: function() {
115383
116364
  return NodeTracerProvider_1.NodeTracerProvider;
115384
116365
  } });
115385
- var sdk_trace_base_1 = require_src16();
116366
+ var sdk_trace_base_1 = require_src17();
115386
116367
  Object.defineProperty(exports2, "AlwaysOffSampler", { enumerable: true, get: function() {
115387
116368
  return sdk_trace_base_1.AlwaysOffSampler;
115388
116369
  } });
@@ -116099,7 +117080,7 @@ var require_types18 = __commonJS({
116099
117080
  });
116100
117081
 
116101
117082
  // ../../../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/node/index.js
116102
- var require_node11 = __commonJS({
117083
+ var require_node13 = __commonJS({
116103
117084
  "../../../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/node/index.js"(exports2) {
116104
117085
  "use strict";
116105
117086
  init_cjs_shims();
@@ -116325,13 +117306,13 @@ var require_browser2 = __commonJS({
116325
117306
  });
116326
117307
 
116327
117308
  // ../../../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/index.js
116328
- var require_platform9 = __commonJS({
117309
+ var require_platform11 = __commonJS({
116329
117310
  "../../../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/index.js"(exports2) {
116330
117311
  "use strict";
116331
117312
  init_cjs_shims();
116332
117313
  Object.defineProperty(exports2, "__esModule", { value: true });
116333
117314
  exports2.OTLPExporterBrowserBase = exports2.CompressionAlgorithm = exports2.OTLPExporterNodeBase = void 0;
116334
- var node_1 = require_node11();
117315
+ var node_1 = require_node13();
116335
117316
  Object.defineProperty(exports2, "OTLPExporterNodeBase", { enumerable: true, get: function() {
116336
117317
  return node_1.OTLPExporterNodeBase;
116337
117318
  } });
@@ -116346,7 +117327,7 @@ var require_platform9 = __commonJS({
116346
117327
  });
116347
117328
 
116348
117329
  // ../../../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/src/index.js
116349
- var require_src19 = __commonJS({
117330
+ var require_src20 = __commonJS({
116350
117331
  "../../../../node_modules/.pnpm/@opentelemetry+otlp-exporter-base@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-exporter-base/build/src/index.js"(exports2) {
116351
117332
  "use strict";
116352
117333
  init_cjs_shims();
@@ -116364,7 +117345,7 @@ var require_src19 = __commonJS({
116364
117345
  };
116365
117346
  Object.defineProperty(exports2, "__esModule", { value: true });
116366
117347
  exports2.getSharedConfigurationFromEnvironment = exports2.getSharedConfigurationDefaults = exports2.mergeOtlpSharedConfigurationWithDefaults = exports2.validateAndNormalizeHeaders = exports2.OTLPExporterError = exports2.OTLPExporterBase = void 0;
116367
- __exportStar(require_platform9(), exports2);
117348
+ __exportStar(require_platform11(), exports2);
116368
117349
  var OTLPExporterBase_1 = require_OTLPExporterBase();
116369
117350
  Object.defineProperty(exports2, "OTLPExporterBase", { enumerable: true, get: function() {
116370
117351
  return OTLPExporterBase_1.OTLPExporterBase;
@@ -116678,7 +117659,7 @@ var require_internal4 = __commonJS({
116678
117659
  Object.defineProperty(exports2, "__esModule", { value: true });
116679
117660
  exports2.toMetric = exports2.toScopeMetrics = exports2.toResourceMetrics = void 0;
116680
117661
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
116681
- var sdk_metrics_1 = require_src13();
117662
+ var sdk_metrics_1 = require_src14();
116682
117663
  var common_1 = require_common4();
116683
117664
  var internal_1 = require_internal();
116684
117665
  var internal_2 = require_internal3();
@@ -119080,7 +120061,7 @@ var require_root = __commonJS({
119080
120061
  resource.v1 = function() {
119081
120062
  var v12 = {};
119082
120063
  v12.Resource = function() {
119083
- function Resource(properties) {
120064
+ function Resource2(properties) {
119084
120065
  this.attributes = [];
119085
120066
  if (properties) {
119086
120067
  for (var keys = Object.keys(properties), i2 = 0; i2 < keys.length; ++i2)
@@ -119088,12 +120069,12 @@ var require_root = __commonJS({
119088
120069
  this[keys[i2]] = properties[keys[i2]];
119089
120070
  }
119090
120071
  }
119091
- Resource.prototype.attributes = $util.emptyArray;
119092
- Resource.prototype.droppedAttributesCount = null;
119093
- Resource.create = function create(properties) {
119094
- return new Resource(properties);
120072
+ Resource2.prototype.attributes = $util.emptyArray;
120073
+ Resource2.prototype.droppedAttributesCount = null;
120074
+ Resource2.create = function create(properties) {
120075
+ return new Resource2(properties);
119095
120076
  };
119096
- Resource.encode = function encode3(message, writer) {
120077
+ Resource2.encode = function encode3(message, writer) {
119097
120078
  if (!writer)
119098
120079
  writer = $Writer.create();
119099
120080
  if (message.attributes != null && message.attributes.length)
@@ -119109,10 +120090,10 @@ var require_root = __commonJS({
119109
120090
  ).uint32(message.droppedAttributesCount);
119110
120091
  return writer;
119111
120092
  };
119112
- Resource.encodeDelimited = function encodeDelimited(message, writer) {
120093
+ Resource2.encodeDelimited = function encodeDelimited(message, writer) {
119113
120094
  return this.encode(message, writer).ldelim();
119114
120095
  };
119115
- Resource.decode = function decode(reader, length) {
120096
+ Resource2.decode = function decode(reader, length) {
119116
120097
  if (!(reader instanceof $Reader))
119117
120098
  reader = $Reader.create(reader);
119118
120099
  var end = length === void 0 ? reader.len : reader.pos + length, message = new $root.opentelemetry.proto.resource.v1.Resource();
@@ -119136,12 +120117,12 @@ var require_root = __commonJS({
119136
120117
  }
119137
120118
  return message;
119138
120119
  };
119139
- Resource.decodeDelimited = function decodeDelimited(reader) {
120120
+ Resource2.decodeDelimited = function decodeDelimited(reader) {
119140
120121
  if (!(reader instanceof $Reader))
119141
120122
  reader = new $Reader(reader);
119142
120123
  return this.decode(reader, reader.uint32());
119143
120124
  };
119144
- Resource.verify = function verify(message) {
120125
+ Resource2.verify = function verify(message) {
119145
120126
  if (typeof message !== "object" || message === null)
119146
120127
  return "object expected";
119147
120128
  if (message.attributes != null && message.hasOwnProperty("attributes")) {
@@ -119159,7 +120140,7 @@ var require_root = __commonJS({
119159
120140
  }
119160
120141
  return null;
119161
120142
  };
119162
- Resource.fromObject = function fromObject(object2) {
120143
+ Resource2.fromObject = function fromObject(object2) {
119163
120144
  if (object2 instanceof $root.opentelemetry.proto.resource.v1.Resource)
119164
120145
  return object2;
119165
120146
  var message = new $root.opentelemetry.proto.resource.v1.Resource();
@@ -119177,7 +120158,7 @@ var require_root = __commonJS({
119177
120158
  message.droppedAttributesCount = object2.droppedAttributesCount >>> 0;
119178
120159
  return message;
119179
120160
  };
119180
- Resource.toObject = function toObject(message, options8) {
120161
+ Resource2.toObject = function toObject(message, options8) {
119181
120162
  if (!options8)
119182
120163
  options8 = {};
119183
120164
  var object2 = {};
@@ -119194,16 +120175,16 @@ var require_root = __commonJS({
119194
120175
  object2.droppedAttributesCount = message.droppedAttributesCount;
119195
120176
  return object2;
119196
120177
  };
119197
- Resource.prototype.toJSON = function toJSON2() {
120178
+ Resource2.prototype.toJSON = function toJSON2() {
119198
120179
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
119199
120180
  };
119200
- Resource.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
120181
+ Resource2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
119201
120182
  if (typeUrlPrefix === void 0) {
119202
120183
  typeUrlPrefix = "type.googleapis.com";
119203
120184
  }
119204
120185
  return typeUrlPrefix + "/opentelemetry.proto.resource.v1.Resource";
119205
120186
  };
119206
- return Resource;
120187
+ return Resource2;
119207
120188
  }();
119208
120189
  return v12;
119209
120190
  }();
@@ -126102,7 +127083,7 @@ var require_serializers2 = __commonJS({
126102
127083
  });
126103
127084
 
126104
127085
  // ../../../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/src/index.js
126105
- var require_src20 = __commonJS({
127086
+ var require_src21 = __commonJS({
126106
127087
  "../../../../node_modules/.pnpm/@opentelemetry+otlp-transformer@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-transformer/build/src/index.js"(exports2) {
126107
127088
  "use strict";
126108
127089
  init_cjs_shims();
@@ -126181,8 +127162,8 @@ var require_OTLPLogExporter = __commonJS({
126181
127162
  init_cjs_shims();
126182
127163
  Object.defineProperty(exports2, "__esModule", { value: true });
126183
127164
  exports2.OTLPLogExporter = void 0;
126184
- var otlp_exporter_base_1 = require_src19();
126185
- var otlp_transformer_1 = require_src20();
127165
+ var otlp_exporter_base_1 = require_src20();
127166
+ var otlp_transformer_1 = require_src21();
126186
127167
  var version_1 = require_version6();
126187
127168
  var USER_AGENT = {
126188
127169
  "User-Agent": `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`
@@ -126197,7 +127178,7 @@ var require_OTLPLogExporter = __commonJS({
126197
127178
  });
126198
127179
 
126199
127180
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/index.js
126200
- var require_node12 = __commonJS({
127181
+ var require_node14 = __commonJS({
126201
127182
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/node/index.js"(exports2) {
126202
127183
  "use strict";
126203
127184
  init_cjs_shims();
@@ -126211,13 +127192,13 @@ var require_node12 = __commonJS({
126211
127192
  });
126212
127193
 
126213
127194
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/index.js
126214
- var require_platform10 = __commonJS({
127195
+ var require_platform12 = __commonJS({
126215
127196
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/platform/index.js"(exports2) {
126216
127197
  "use strict";
126217
127198
  init_cjs_shims();
126218
127199
  Object.defineProperty(exports2, "__esModule", { value: true });
126219
127200
  exports2.OTLPLogExporter = void 0;
126220
- var node_1 = require_node12();
127201
+ var node_1 = require_node14();
126221
127202
  Object.defineProperty(exports2, "OTLPLogExporter", { enumerable: true, get: function() {
126222
127203
  return node_1.OTLPLogExporter;
126223
127204
  } });
@@ -126225,13 +127206,13 @@ var require_platform10 = __commonJS({
126225
127206
  });
126226
127207
 
126227
127208
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/index.js
126228
- var require_src21 = __commonJS({
127209
+ var require_src22 = __commonJS({
126229
127210
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-http/build/src/index.js"(exports2) {
126230
127211
  "use strict";
126231
127212
  init_cjs_shims();
126232
127213
  Object.defineProperty(exports2, "__esModule", { value: true });
126233
127214
  exports2.OTLPLogExporter = void 0;
126234
- var platform_1 = require_platform10();
127215
+ var platform_1 = require_platform12();
126235
127216
  Object.defineProperty(exports2, "OTLPLogExporter", { enumerable: true, get: function() {
126236
127217
  return platform_1.OTLPLogExporter;
126237
127218
  } });
@@ -134645,7 +135626,7 @@ var require_common5 = __commonJS({
134645
135626
  });
134646
135627
 
134647
135628
  // ../../../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/index.js
134648
- var require_src22 = __commonJS({
135629
+ var require_src23 = __commonJS({
134649
135630
  "../../../../node_modules/.pnpm/protobufjs@7.4.0/node_modules/protobufjs/src/index.js"(exports2, module2) {
134650
135631
  "use strict";
134651
135632
  init_cjs_shims();
@@ -134664,7 +135645,7 @@ var require_protobufjs = __commonJS({
134664
135645
  init_cjs_shims();
134665
135646
  (function() {
134666
135647
  "use strict";
134667
- module2.exports = require_src22();
135648
+ module2.exports = require_src23();
134668
135649
  })(...arguments);
134669
135650
  {
134670
135651
  const dc = require_dc_polyfill();
@@ -137356,7 +138337,7 @@ var require_umd = __commonJS({
137356
138337
  });
137357
138338
 
137358
138339
  // ../../../../node_modules/.pnpm/@grpc+proto-loader@0.7.13/node_modules/@grpc/proto-loader/build/src/index.js
137359
- var require_src23 = __commonJS({
138340
+ var require_src24 = __commonJS({
137360
138341
  "../../../../node_modules/.pnpm/@grpc+proto-loader@0.7.13/node_modules/@grpc/proto-loader/build/src/index.js"(exports2) {
137361
138342
  "use strict";
137362
138343
  init_cjs_shims();
@@ -138110,7 +139091,7 @@ var require_channelz = __commonJS({
138110
139091
  if (loadedChannelzDefinition) {
138111
139092
  return loadedChannelzDefinition;
138112
139093
  }
138113
- const loaderLoadSync = require_src23().loadSync;
139094
+ const loaderLoadSync = require_src24().loadSync;
138114
139095
  const loadedProto = loaderLoadSync("channelz.proto", {
138115
139096
  keepCase: true,
138116
139097
  longs: String,
@@ -146462,7 +147443,7 @@ var require_load_balancer_outlier_detection = __commonJS({
146462
147443
  });
146463
147444
 
146464
147445
  // ../../../../node_modules/.pnpm/@grpc+grpc-js@1.13.0/node_modules/@grpc/grpc-js/build/src/index.js
146465
- var require_src24 = __commonJS({
147446
+ var require_src25 = __commonJS({
146466
147447
  "../../../../node_modules/.pnpm/@grpc+grpc-js@1.13.0/node_modules/@grpc/grpc-js/build/src/index.js"(exports2, module2) {
146467
147448
  init_cjs_shims();
146468
147449
  (function() {
@@ -146660,7 +147641,7 @@ var require_create_service_client_constructor = __commonJS({
146660
147641
  init_cjs_shims();
146661
147642
  Object.defineProperty(exports2, "__esModule", { value: true });
146662
147643
  exports2.createServiceClientConstructor = void 0;
146663
- var grpc = require_src24();
147644
+ var grpc = require_src25();
146664
147645
  function createServiceClientConstructor(path45, name17) {
146665
147646
  const serviceDefinition = {
146666
147647
  export: {
@@ -146703,7 +147684,7 @@ var require_grpc_exporter_transport = __commonJS({
146703
147684
  const {
146704
147685
  credentials
146705
147686
  // eslint-disable-next-line @typescript-eslint/no-var-requires
146706
- } = require_src24();
147687
+ } = require_src25();
146707
147688
  return credentials.createInsecure();
146708
147689
  }
146709
147690
  exports2.createInsecureCredentials = createInsecureCredentials;
@@ -146711,7 +147692,7 @@ var require_grpc_exporter_transport = __commonJS({
146711
147692
  const {
146712
147693
  credentials
146713
147694
  // eslint-disable-next-line @typescript-eslint/no-var-requires
146714
- } = require_src24();
147695
+ } = require_src25();
146715
147696
  return credentials.createSsl(rootCert, privateKey, certChain);
146716
147697
  }
146717
147698
  exports2.createSslCredentials = createSslCredentials;
@@ -146719,7 +147700,7 @@ var require_grpc_exporter_transport = __commonJS({
146719
147700
  const {
146720
147701
  Metadata
146721
147702
  // eslint-disable-next-line @typescript-eslint/no-var-requires
146722
- } = require_src24();
147703
+ } = require_src25();
146723
147704
  return new Metadata();
146724
147705
  }
146725
147706
  exports2.createEmptyMetadata = createEmptyMetadata;
@@ -146804,7 +147785,7 @@ var require_otlp_grpc_configuration = __commonJS({
146804
147785
  init_cjs_shims();
146805
147786
  Object.defineProperty(exports2, "__esModule", { value: true });
146806
147787
  exports2.getOtlpGrpcDefaultConfiguration = exports2.mergeOtlpGrpcConfigurationWithDefaults = exports2.validateAndNormalizeUrl = void 0;
146807
- var otlp_exporter_base_1 = require_src19();
147788
+ var otlp_exporter_base_1 = require_src20();
146808
147789
  var grpc_exporter_transport_1 = require_grpc_exporter_transport();
146809
147790
  var version_1 = require_version7();
146810
147791
  var url_1 = __require("url");
@@ -146878,7 +147859,7 @@ var require_otlp_grpc_env_configuration = __commonJS({
146878
147859
  exports2.getOtlpGrpcConfigurationFromEnv = void 0;
146879
147860
  var core_1 = require_src9();
146880
147861
  var grpc_exporter_transport_1 = require_grpc_exporter_transport();
146881
- var otlp_exporter_base_1 = require_src19();
147862
+ var otlp_exporter_base_1 = require_src20();
146882
147863
  var fs26 = __require("fs");
146883
147864
  var path45 = __require("path");
146884
147865
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
@@ -146996,7 +147977,7 @@ var require_OTLPGRPCExporterNodeBase = __commonJS({
146996
147977
  Object.defineProperty(exports2, "__esModule", { value: true });
146997
147978
  exports2.OTLPGRPCExporterNodeBase = void 0;
146998
147979
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
146999
- var otlp_exporter_base_1 = require_src19();
147980
+ var otlp_exporter_base_1 = require_src20();
147000
147981
  var grpc_exporter_transport_1 = require_grpc_exporter_transport();
147001
147982
  var otlp_grpc_configuration_1 = require_otlp_grpc_configuration();
147002
147983
  var otlp_grpc_env_configuration_1 = require_otlp_grpc_env_configuration();
@@ -147067,7 +148048,7 @@ var require_OTLPGRPCExporterNodeBase = __commonJS({
147067
148048
  });
147068
148049
 
147069
148050
  // ../../../../node_modules/.pnpm/@opentelemetry+otlp-grpc-exporter-base@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/index.js
147070
- var require_src25 = __commonJS({
148051
+ var require_src26 = __commonJS({
147071
148052
  "../../../../node_modules/.pnpm/@opentelemetry+otlp-grpc-exporter-base@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/index.js"(exports2) {
147072
148053
  "use strict";
147073
148054
  init_cjs_shims();
@@ -147087,8 +148068,8 @@ var require_OTLPLogExporter2 = __commonJS({
147087
148068
  init_cjs_shims();
147088
148069
  Object.defineProperty(exports2, "__esModule", { value: true });
147089
148070
  exports2.OTLPLogExporter = void 0;
147090
- var otlp_grpc_exporter_base_1 = require_src25();
147091
- var otlp_transformer_1 = require_src20();
148071
+ var otlp_grpc_exporter_base_1 = require_src26();
148072
+ var otlp_transformer_1 = require_src21();
147092
148073
  var OTLPLogExporter = class extends otlp_grpc_exporter_base_1.OTLPGRPCExporterNodeBase {
147093
148074
  constructor(config2 = {}) {
147094
148075
  super(config2, otlp_transformer_1.ProtobufLogsSerializer, "LogsExportService", "/opentelemetry.proto.collector.logs.v1.LogsService/Export", "LOGS");
@@ -147099,7 +148080,7 @@ var require_OTLPLogExporter2 = __commonJS({
147099
148080
  });
147100
148081
 
147101
148082
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-grpc@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-grpc/build/src/index.js
147102
- var require_src26 = __commonJS({
148083
+ var require_src27 = __commonJS({
147103
148084
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-grpc@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-grpc/build/src/index.js"(exports2) {
147104
148085
  "use strict";
147105
148086
  init_cjs_shims();
@@ -147138,8 +148119,8 @@ var require_OTLPLogExporter3 = __commonJS({
147138
148119
  init_cjs_shims();
147139
148120
  Object.defineProperty(exports2, "__esModule", { value: true });
147140
148121
  exports2.OTLPLogExporter = void 0;
147141
- var otlp_exporter_base_1 = require_src19();
147142
- var otlp_transformer_1 = require_src20();
148122
+ var otlp_exporter_base_1 = require_src20();
148123
+ var otlp_transformer_1 = require_src21();
147143
148124
  var version_1 = require_version8();
147144
148125
  var USER_AGENT = {
147145
148126
  "User-Agent": `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`
@@ -147154,7 +148135,7 @@ var require_OTLPLogExporter3 = __commonJS({
147154
148135
  });
147155
148136
 
147156
148137
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/platform/node/index.js
147157
- var require_node13 = __commonJS({
148138
+ var require_node15 = __commonJS({
147158
148139
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/platform/node/index.js"(exports2) {
147159
148140
  "use strict";
147160
148141
  init_cjs_shims();
@@ -147168,13 +148149,13 @@ var require_node13 = __commonJS({
147168
148149
  });
147169
148150
 
147170
148151
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/platform/index.js
147171
- var require_platform11 = __commonJS({
148152
+ var require_platform13 = __commonJS({
147172
148153
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/platform/index.js"(exports2) {
147173
148154
  "use strict";
147174
148155
  init_cjs_shims();
147175
148156
  Object.defineProperty(exports2, "__esModule", { value: true });
147176
148157
  exports2.OTLPLogExporter = void 0;
147177
- var node_1 = require_node13();
148158
+ var node_1 = require_node15();
147178
148159
  Object.defineProperty(exports2, "OTLPLogExporter", { enumerable: true, get: function() {
147179
148160
  return node_1.OTLPLogExporter;
147180
148161
  } });
@@ -147182,13 +148163,13 @@ var require_platform11 = __commonJS({
147182
148163
  });
147183
148164
 
147184
148165
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/index.js
147185
- var require_src27 = __commonJS({
148166
+ var require_src28 = __commonJS({
147186
148167
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-logs-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-logs-otlp-proto/build/src/index.js"(exports2) {
147187
148168
  "use strict";
147188
148169
  init_cjs_shims();
147189
148170
  Object.defineProperty(exports2, "__esModule", { value: true });
147190
148171
  exports2.OTLPLogExporter = void 0;
147191
- var platform_1 = require_platform11();
148172
+ var platform_1 = require_platform13();
147192
148173
  Object.defineProperty(exports2, "OTLPLogExporter", { enumerable: true, get: function() {
147193
148174
  return platform_1.OTLPLogExporter;
147194
148175
  } });
@@ -147213,8 +148194,8 @@ var require_OTLPTraceExporter = __commonJS({
147213
148194
  init_cjs_shims();
147214
148195
  Object.defineProperty(exports2, "__esModule", { value: true });
147215
148196
  exports2.OTLPTraceExporter = void 0;
147216
- var otlp_exporter_base_1 = require_src19();
147217
- var otlp_transformer_1 = require_src20();
148197
+ var otlp_exporter_base_1 = require_src20();
148198
+ var otlp_transformer_1 = require_src21();
147218
148199
  var version_1 = require_version9();
147219
148200
  var USER_AGENT = {
147220
148201
  "User-Agent": `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`
@@ -147229,7 +148210,7 @@ var require_OTLPTraceExporter = __commonJS({
147229
148210
  });
147230
148211
 
147231
148212
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/platform/node/index.js
147232
- var require_node14 = __commonJS({
148213
+ var require_node16 = __commonJS({
147233
148214
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/platform/node/index.js"(exports2) {
147234
148215
  "use strict";
147235
148216
  init_cjs_shims();
@@ -147243,13 +148224,13 @@ var require_node14 = __commonJS({
147243
148224
  });
147244
148225
 
147245
148226
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/platform/index.js
147246
- var require_platform12 = __commonJS({
148227
+ var require_platform14 = __commonJS({
147247
148228
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/platform/index.js"(exports2) {
147248
148229
  "use strict";
147249
148230
  init_cjs_shims();
147250
148231
  Object.defineProperty(exports2, "__esModule", { value: true });
147251
148232
  exports2.OTLPTraceExporter = void 0;
147252
- var node_1 = require_node14();
148233
+ var node_1 = require_node16();
147253
148234
  Object.defineProperty(exports2, "OTLPTraceExporter", { enumerable: true, get: function() {
147254
148235
  return node_1.OTLPTraceExporter;
147255
148236
  } });
@@ -147257,13 +148238,13 @@ var require_platform12 = __commonJS({
147257
148238
  });
147258
148239
 
147259
148240
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/index.js
147260
- var require_src28 = __commonJS({
148241
+ var require_src29 = __commonJS({
147261
148242
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-proto@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-proto/build/src/index.js"(exports2) {
147262
148243
  "use strict";
147263
148244
  init_cjs_shims();
147264
148245
  Object.defineProperty(exports2, "__esModule", { value: true });
147265
148246
  exports2.OTLPTraceExporter = void 0;
147266
- var platform_1 = require_platform12();
148247
+ var platform_1 = require_platform14();
147267
148248
  Object.defineProperty(exports2, "OTLPTraceExporter", { enumerable: true, get: function() {
147268
148249
  return platform_1.OTLPTraceExporter;
147269
148250
  } });
@@ -147288,9 +148269,9 @@ var require_OTLPTraceExporter2 = __commonJS({
147288
148269
  init_cjs_shims();
147289
148270
  Object.defineProperty(exports2, "__esModule", { value: true });
147290
148271
  exports2.OTLPTraceExporter = void 0;
147291
- var otlp_exporter_base_1 = require_src19();
148272
+ var otlp_exporter_base_1 = require_src20();
147292
148273
  var version_1 = require_version10();
147293
- var otlp_transformer_1 = require_src20();
148274
+ var otlp_transformer_1 = require_src21();
147294
148275
  var USER_AGENT = {
147295
148276
  "User-Agent": `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`
147296
148277
  };
@@ -147304,7 +148285,7 @@ var require_OTLPTraceExporter2 = __commonJS({
147304
148285
  });
147305
148286
 
147306
148287
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/node/index.js
147307
- var require_node15 = __commonJS({
148288
+ var require_node17 = __commonJS({
147308
148289
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/node/index.js"(exports2) {
147309
148290
  "use strict";
147310
148291
  init_cjs_shims();
@@ -147326,7 +148307,7 @@ var require_node15 = __commonJS({
147326
148307
  });
147327
148308
 
147328
148309
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/index.js
147329
- var require_platform13 = __commonJS({
148310
+ var require_platform15 = __commonJS({
147330
148311
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/platform/index.js"(exports2) {
147331
148312
  "use strict";
147332
148313
  init_cjs_shims();
@@ -147343,12 +148324,12 @@ var require_platform13 = __commonJS({
147343
148324
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
147344
148325
  };
147345
148326
  Object.defineProperty(exports2, "__esModule", { value: true });
147346
- __exportStar(require_node15(), exports2);
148327
+ __exportStar(require_node17(), exports2);
147347
148328
  }
147348
148329
  });
147349
148330
 
147350
148331
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/index.js
147351
- var require_src29 = __commonJS({
148332
+ var require_src30 = __commonJS({
147352
148333
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-http@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-http/build/src/index.js"(exports2) {
147353
148334
  "use strict";
147354
148335
  init_cjs_shims();
@@ -147365,7 +148346,7 @@ var require_src29 = __commonJS({
147365
148346
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
147366
148347
  };
147367
148348
  Object.defineProperty(exports2, "__esModule", { value: true });
147368
- __exportStar(require_platform13(), exports2);
148349
+ __exportStar(require_platform15(), exports2);
147369
148350
  }
147370
148351
  });
147371
148352
 
@@ -147376,8 +148357,8 @@ var require_OTLPTraceExporter3 = __commonJS({
147376
148357
  init_cjs_shims();
147377
148358
  Object.defineProperty(exports2, "__esModule", { value: true });
147378
148359
  exports2.OTLPTraceExporter = void 0;
147379
- var otlp_grpc_exporter_base_1 = require_src25();
147380
- var otlp_transformer_1 = require_src20();
148360
+ var otlp_grpc_exporter_base_1 = require_src26();
148361
+ var otlp_transformer_1 = require_src21();
147381
148362
  var OTLPTraceExporter = class extends otlp_grpc_exporter_base_1.OTLPGRPCExporterNodeBase {
147382
148363
  constructor(config2 = {}) {
147383
148364
  super(config2, otlp_transformer_1.ProtobufTraceSerializer, "TraceExportService", "/opentelemetry.proto.collector.trace.v1.TraceService/Export", "TRACES");
@@ -147388,7 +148369,7 @@ var require_OTLPTraceExporter3 = __commonJS({
147388
148369
  });
147389
148370
 
147390
148371
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-grpc@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js
147391
- var require_src30 = __commonJS({
148372
+ var require_src31 = __commonJS({
147392
148373
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-trace-otlp-grpc@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js"(exports2) {
147393
148374
  "use strict";
147394
148375
  init_cjs_shims();
@@ -147468,7 +148449,7 @@ var require_util9 = __commonJS({
147468
148449
  });
147469
148450
 
147470
148451
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-zipkin@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-zipkin/build/src/platform/node/index.js
147471
- var require_node16 = __commonJS({
148452
+ var require_node18 = __commonJS({
147472
148453
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-zipkin@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-zipkin/build/src/platform/node/index.js"(exports2) {
147473
148454
  "use strict";
147474
148455
  init_cjs_shims();
@@ -147482,13 +148463,13 @@ var require_node16 = __commonJS({
147482
148463
  });
147483
148464
 
147484
148465
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-zipkin@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-zipkin/build/src/platform/index.js
147485
- var require_platform14 = __commonJS({
148466
+ var require_platform16 = __commonJS({
147486
148467
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-zipkin@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-zipkin/build/src/platform/index.js"(exports2) {
147487
148468
  "use strict";
147488
148469
  init_cjs_shims();
147489
148470
  Object.defineProperty(exports2, "__esModule", { value: true });
147490
148471
  exports2.prepareSend = void 0;
147491
- var node_1 = require_node16();
148472
+ var node_1 = require_node18();
147492
148473
  Object.defineProperty(exports2, "prepareSend", { enumerable: true, get: function() {
147493
148474
  return node_1.prepareSend;
147494
148475
  } });
@@ -147583,7 +148564,7 @@ var require_transform = __commonJS({
147583
148564
  });
147584
148565
 
147585
148566
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-zipkin@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-zipkin/build/src/utils.js
147586
- var require_utils14 = __commonJS({
148567
+ var require_utils16 = __commonJS({
147587
148568
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-zipkin@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-zipkin/build/src/utils.js"(exports2) {
147588
148569
  "use strict";
147589
148570
  init_cjs_shims();
@@ -147607,10 +148588,10 @@ var require_zipkin = __commonJS({
147607
148588
  exports2.ZipkinExporter = void 0;
147608
148589
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
147609
148590
  var core_1 = require_src9();
147610
- var index_1 = require_platform14();
148591
+ var index_1 = require_platform16();
147611
148592
  var transform_1 = require_transform();
147612
148593
  var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
147613
- var utils_1 = require_utils14();
148594
+ var utils_1 = require_utils16();
147614
148595
  var ZipkinExporter = class {
147615
148596
  constructor(config2 = {}) {
147616
148597
  this.DEFAULT_SERVICE_NAME = "OpenTelemetry Service";
@@ -147701,13 +148682,13 @@ var require_zipkin = __commonJS({
147701
148682
  });
147702
148683
 
147703
148684
  // ../../../../node_modules/.pnpm/@opentelemetry+exporter-zipkin@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-zipkin/build/src/index.js
147704
- var require_src31 = __commonJS({
148685
+ var require_src32 = __commonJS({
147705
148686
  "../../../../node_modules/.pnpm/@opentelemetry+exporter-zipkin@1.28.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/exporter-zipkin/build/src/index.js"(exports2) {
147706
148687
  "use strict";
147707
148688
  init_cjs_shims();
147708
148689
  Object.defineProperty(exports2, "__esModule", { value: true });
147709
148690
  exports2.ZipkinExporter = exports2.prepareSend = void 0;
147710
- var platform_1 = require_platform14();
148691
+ var platform_1 = require_platform16();
147711
148692
  Object.defineProperty(exports2, "prepareSend", { enumerable: true, get: function() {
147712
148693
  return platform_1.prepareSend;
147713
148694
  } });
@@ -147719,7 +148700,7 @@ var require_src31 = __commonJS({
147719
148700
  });
147720
148701
 
147721
148702
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-node@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-node/build/src/utils.js
147722
- var require_utils15 = __commonJS({
148703
+ var require_utils17 = __commonJS({
147723
148704
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-node@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-node/build/src/utils.js"(exports2) {
147724
148705
  "use strict";
147725
148706
  init_cjs_shims();
@@ -147727,12 +148708,12 @@ var require_utils15 = __commonJS({
147727
148708
  exports2.getSpanProcessorsFromEnv = exports2.getOtlpProtocolFromEnv = exports2.filterBlanksAndNulls = exports2.getResourceDetectorsFromEnv = void 0;
147728
148709
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
147729
148710
  var core_1 = require_src9();
147730
- var exporter_trace_otlp_proto_1 = require_src28();
147731
- var exporter_trace_otlp_http_1 = require_src29();
147732
- var exporter_trace_otlp_grpc_1 = require_src30();
147733
- var exporter_zipkin_1 = require_src31();
147734
- var resources_1 = require_src11();
147735
- var sdk_trace_base_1 = require_src16();
148711
+ var exporter_trace_otlp_proto_1 = require_src29();
148712
+ var exporter_trace_otlp_http_1 = require_src30();
148713
+ var exporter_trace_otlp_grpc_1 = require_src31();
148714
+ var exporter_zipkin_1 = require_src32();
148715
+ var resources_1 = require_src12();
148716
+ var sdk_trace_base_1 = require_src17();
147736
148717
  var RESOURCE_DETECTOR_ENVIRONMENT = "env";
147737
148718
  var RESOURCE_DETECTOR_HOST = "host";
147738
148719
  var RESOURCE_DETECTOR_OS = "os";
@@ -147851,17 +148832,17 @@ var require_sdk = __commonJS({
147851
148832
  var api_1 = (init_esm2(), __toCommonJS(esm_exports2));
147852
148833
  var api_logs_1 = require_src6();
147853
148834
  var instrumentation_1 = require_src7();
147854
- var resources_1 = require_src11();
147855
- var sdk_logs_1 = require_src12();
147856
- var exporter_logs_otlp_http_1 = require_src21();
147857
- var exporter_logs_otlp_grpc_1 = require_src26();
147858
- var exporter_logs_otlp_proto_1 = require_src27();
147859
- var sdk_metrics_1 = require_src13();
147860
- var sdk_trace_base_1 = require_src16();
147861
- var sdk_trace_node_1 = require_src18();
148835
+ var resources_1 = require_src12();
148836
+ var sdk_logs_1 = require_src13();
148837
+ var exporter_logs_otlp_http_1 = require_src22();
148838
+ var exporter_logs_otlp_grpc_1 = require_src27();
148839
+ var exporter_logs_otlp_proto_1 = require_src28();
148840
+ var sdk_metrics_1 = require_src14();
148841
+ var sdk_trace_base_1 = require_src17();
148842
+ var sdk_trace_node_1 = require_src19();
147862
148843
  var semantic_conventions_1 = (init_esm4(), __toCommonJS(esm_exports4));
147863
148844
  var core_1 = require_src9();
147864
- var utils_1 = require_utils15();
148845
+ var utils_1 = require_utils17();
147865
148846
  var NodeSDK2 = class {
147866
148847
  /**
147867
148848
  * Create a new NodeJS SDK instance
@@ -148075,7 +149056,7 @@ var require_sdk = __commonJS({
148075
149056
  });
148076
149057
 
148077
149058
  // ../../../../node_modules/.pnpm/@opentelemetry+sdk-node@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-node/build/src/index.js
148078
- var require_src32 = __commonJS({
149059
+ var require_src33 = __commonJS({
148079
149060
  "../../../../node_modules/.pnpm/@opentelemetry+sdk-node@0.55.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/sdk-node/build/src/index.js"(exports2) {
148080
149061
  "use strict";
148081
149062
  init_cjs_shims();
@@ -148084,11 +149065,11 @@ var require_src32 = __commonJS({
148084
149065
  exports2.api = (init_esm2(), __toCommonJS(esm_exports2));
148085
149066
  exports2.contextBase = (init_esm2(), __toCommonJS(esm_exports2));
148086
149067
  exports2.core = require_src9();
148087
- exports2.logs = require_src12();
148088
- exports2.metrics = require_src13();
148089
- exports2.node = require_src18();
148090
- exports2.resources = require_src11();
148091
- exports2.tracing = require_src16();
149068
+ exports2.logs = require_src13();
149069
+ exports2.metrics = require_src14();
149070
+ exports2.node = require_src19();
149071
+ exports2.resources = require_src12();
149072
+ exports2.tracing = require_src17();
148092
149073
  var sdk_1 = require_sdk();
148093
149074
  Object.defineProperty(exports2, "NodeSDK", { enumerable: true, get: function() {
148094
149075
  return sdk_1.NodeSDK;
@@ -149286,7 +150267,7 @@ var require_browser3 = __commonJS({
149286
150267
  });
149287
150268
 
149288
150269
  // ../../../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/node.js
149289
- var require_node17 = __commonJS({
150270
+ var require_node19 = __commonJS({
149290
150271
  "../../../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/node.js"(exports2, module2) {
149291
150272
  init_cjs_shims();
149292
150273
  var tty3 = __require("tty");
@@ -149407,13 +150388,13 @@ var require_node17 = __commonJS({
149407
150388
  });
149408
150389
 
149409
150390
  // ../../../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/index.js
149410
- var require_src33 = __commonJS({
150391
+ var require_src34 = __commonJS({
149411
150392
  "../../../../node_modules/.pnpm/debug@2.6.9/node_modules/debug/src/index.js"(exports2, module2) {
149412
150393
  init_cjs_shims();
149413
150394
  if (typeof process !== "undefined" && process.type === "renderer") {
149414
150395
  module2.exports = require_browser3();
149415
150396
  } else {
149416
- module2.exports = require_node17();
150397
+ module2.exports = require_node19();
149417
150398
  }
149418
150399
  }
149419
150400
  });
@@ -153721,7 +154702,7 @@ var require_json2 = __commonJS({
153721
154702
  var bytes = require_bytes();
153722
154703
  var contentType = require_content_type();
153723
154704
  var createError2 = require_http_errors();
153724
- var debug5 = require_src33()("body-parser:json");
154705
+ var debug5 = require_src34()("body-parser:json");
153725
154706
  var read3 = require_read();
153726
154707
  var typeis = require_type_is();
153727
154708
  module2.exports = json2;
@@ -153854,7 +154835,7 @@ var require_raw = __commonJS({
153854
154835
  "use strict";
153855
154836
  init_cjs_shims();
153856
154837
  var bytes = require_bytes();
153857
- var debug5 = require_src33()("body-parser:raw");
154838
+ var debug5 = require_src34()("body-parser:raw");
153858
154839
  var read3 = require_read();
153859
154840
  var typeis = require_type_is();
153860
154841
  module2.exports = raw;
@@ -153912,7 +154893,7 @@ var require_text = __commonJS({
153912
154893
  init_cjs_shims();
153913
154894
  var bytes = require_bytes();
153914
154895
  var contentType = require_content_type();
153915
- var debug5 = require_src33()("body-parser:text");
154896
+ var debug5 = require_src34()("body-parser:text");
153916
154897
  var read3 = require_read();
153917
154898
  var typeis = require_type_is();
153918
154899
  module2.exports = text2;
@@ -154830,7 +155811,7 @@ var require_formats = __commonJS({
154830
155811
  });
154831
155812
 
154832
155813
  // ../../../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/utils.js
154833
- var require_utils16 = __commonJS({
155814
+ var require_utils18 = __commonJS({
154834
155815
  "../../../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/utils.js"(exports2, module2) {
154835
155816
  "use strict";
154836
155817
  init_cjs_shims();
@@ -155041,7 +156022,7 @@ var require_stringify2 = __commonJS({
155041
156022
  "use strict";
155042
156023
  init_cjs_shims();
155043
156024
  var getSideChannel = require_side_channel();
155044
- var utils2 = require_utils16();
156025
+ var utils2 = require_utils18();
155045
156026
  var formats = require_formats();
155046
156027
  var has = Object.prototype.hasOwnProperty;
155047
156028
  var arrayPrefixGenerators = {
@@ -155321,7 +156302,7 @@ var require_parse4 = __commonJS({
155321
156302
  "../../../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/parse.js"(exports2, module2) {
155322
156303
  "use strict";
155323
156304
  init_cjs_shims();
155324
- var utils2 = require_utils16();
156305
+ var utils2 = require_utils18();
155325
156306
  var has = Object.prototype.hasOwnProperty;
155326
156307
  var isArray2 = Array.isArray;
155327
156308
  var defaults3 = {
@@ -155568,7 +156549,7 @@ var require_urlencoded = __commonJS({
155568
156549
  var bytes = require_bytes();
155569
156550
  var contentType = require_content_type();
155570
156551
  var createError2 = require_http_errors();
155571
- var debug5 = require_src33()("body-parser:urlencoded");
156552
+ var debug5 = require_src34()("body-parser:urlencoded");
155572
156553
  var deprecate = require_depd()("body-parser");
155573
156554
  var read3 = require_read();
155574
156555
  var typeis = require_type_is();
@@ -181170,7 +182151,7 @@ var require_constants12 = __commonJS({
181170
182151
  });
181171
182152
 
181172
182153
  // ../../../../node_modules/.pnpm/@babel+types@7.26.10/node_modules/@babel/types/lib/definitions/utils.js
181173
- var require_utils17 = __commonJS({
182154
+ var require_utils19 = __commonJS({
181174
182155
  "../../../../node_modules/.pnpm/@babel+types@7.26.10/node_modules/@babel/types/lib/definitions/utils.js"(exports2) {
181175
182156
  "use strict";
181176
182157
  init_cjs_shims();
@@ -181459,7 +182440,7 @@ var require_core6 = __commonJS({
181459
182440
  var _helperValidatorIdentifier = require_lib2();
181460
182441
  var _helperStringParser = require_lib9();
181461
182442
  var _index = require_constants12();
181462
- var _utils = require_utils17();
182443
+ var _utils = require_utils19();
181463
182444
  var defineType = (0, _utils.defineAliasedType)("Standardized");
181464
182445
  defineType("ArrayExpression", {
181465
182446
  fields: {
@@ -183098,7 +184079,7 @@ var require_flow = __commonJS({
183098
184079
  "use strict";
183099
184080
  init_cjs_shims();
183100
184081
  var _core = require_core6();
183101
- var _utils = require_utils17();
184082
+ var _utils = require_utils19();
183102
184083
  var defineType = (0, _utils.defineAliasedType)("Flow");
183103
184084
  var defineInterfaceishType = (name17) => {
183104
184085
  const isDeclareClass = name17 === "DeclareClass";
@@ -183596,7 +184577,7 @@ var require_jsx = __commonJS({
183596
184577
  "../../../../node_modules/.pnpm/@babel+types@7.26.10/node_modules/@babel/types/lib/definitions/jsx.js"() {
183597
184578
  "use strict";
183598
184579
  init_cjs_shims();
183599
- var _utils = require_utils17();
184580
+ var _utils = require_utils19();
183600
184581
  var defineType = (0, _utils.defineAliasedType)("JSX");
183601
184582
  defineType("JSXAttribute", {
183602
184583
  visitor: ["name", "value"],
@@ -183761,7 +184742,7 @@ var require_placeholders = __commonJS({
183761
184742
  value: true
183762
184743
  });
183763
184744
  exports2.PLACEHOLDERS_FLIPPED_ALIAS = exports2.PLACEHOLDERS_ALIAS = exports2.PLACEHOLDERS = void 0;
183764
- var _utils = require_utils17();
184745
+ var _utils = require_utils19();
183765
184746
  var PLACEHOLDERS = exports2.PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBody", "Pattern"];
183766
184747
  var PLACEHOLDERS_ALIAS = exports2.PLACEHOLDERS_ALIAS = {
183767
184748
  Declaration: ["Statement"],
@@ -183788,7 +184769,7 @@ var require_misc = __commonJS({
183788
184769
  "../../../../node_modules/.pnpm/@babel+types@7.26.10/node_modules/@babel/types/lib/definitions/misc.js"() {
183789
184770
  "use strict";
183790
184771
  init_cjs_shims();
183791
- var _utils = require_utils17();
184772
+ var _utils = require_utils19();
183792
184773
  var _placeholders = require_placeholders();
183793
184774
  var _core = require_core6();
183794
184775
  var defineType = (0, _utils.defineAliasedType)("Miscellaneous");
@@ -183825,7 +184806,7 @@ var require_experimental2 = __commonJS({
183825
184806
  "../../../../node_modules/.pnpm/@babel+types@7.26.10/node_modules/@babel/types/lib/definitions/experimental.js"() {
183826
184807
  "use strict";
183827
184808
  init_cjs_shims();
183828
- var _utils = require_utils17();
184809
+ var _utils = require_utils19();
183829
184810
  (0, _utils.default)("ArgumentPlaceholder", {});
183830
184811
  (0, _utils.default)("BindExpression", {
183831
184812
  visitor: ["object", "callee"],
@@ -183965,7 +184946,7 @@ var require_typescript = __commonJS({
183965
184946
  "../../../../node_modules/.pnpm/@babel+types@7.26.10/node_modules/@babel/types/lib/definitions/typescript.js"() {
183966
184947
  "use strict";
183967
184948
  init_cjs_shims();
183968
- var _utils = require_utils17();
184949
+ var _utils = require_utils19();
183969
184950
  var _core = require_core6();
183970
184951
  var _is = require_is();
183971
184952
  var defineType = (0, _utils.defineAliasedType)("TypeScript");
@@ -184585,7 +185566,7 @@ var require_definitions = __commonJS({
184585
185566
  require_misc();
184586
185567
  require_experimental2();
184587
185568
  require_typescript();
184588
- var _utils = require_utils17();
185569
+ var _utils = require_utils19();
184589
185570
  var _placeholders = require_placeholders();
184590
185571
  var _deprecatedAliases = require_deprecated_aliases();
184591
185572
  Object.keys(_deprecatedAliases.DEPRECATED_ALIASES).forEach((deprecatedAlias) => {
@@ -184907,7 +185888,7 @@ var require_lowercase = __commonJS({
184907
185888
  exports2.yieldExpression = yieldExpression;
184908
185889
  var _validate = require_validate2();
184909
185890
  var _deprecationWarning = require_deprecationWarning();
184910
- var utils2 = require_utils17();
185891
+ var utils2 = require_utils19();
184911
185892
  var {
184912
185893
  validateInternal: validate2
184913
185894
  } = _validate;
@@ -198056,7 +199037,7 @@ var require_parentheses = __commonJS({
198056
199037
  exports2.UpdateExpression = UpdateExpression;
198057
199038
  exports2.AwaitExpression = exports2.YieldExpression = YieldExpression;
198058
199039
  var _t = require_lib10();
198059
- var _index = require_node18();
199040
+ var _index = require_node20();
198060
199041
  var {
198061
199042
  isArrayTypeAnnotation,
198062
199043
  isBinaryExpression,
@@ -198286,7 +199267,7 @@ var require_parentheses = __commonJS({
198286
199267
  });
198287
199268
 
198288
199269
  // ../../../../node_modules/.pnpm/@babel+generator@7.26.10/node_modules/@babel/generator/lib/node/index.js
198289
- var require_node18 = __commonJS({
199270
+ var require_node20 = __commonJS({
198290
199271
  "../../../../node_modules/.pnpm/@babel+generator@7.26.10/node_modules/@babel/generator/lib/node/index.js"(exports2) {
198291
199272
  "use strict";
198292
199273
  init_cjs_shims();
@@ -198683,7 +199664,7 @@ var require_expressions = __commonJS({
198683
199664
  exports2.YieldExpression = YieldExpression;
198684
199665
  exports2._shouldPrintDecoratorsBeforeExport = _shouldPrintDecoratorsBeforeExport;
198685
199666
  var _t = require_lib10();
198686
- var _index = require_node18();
199667
+ var _index = require_node20();
198687
199668
  var {
198688
199669
  isCallExpression: isCallExpression3,
198689
199670
  isLiteral,
@@ -198979,7 +199960,7 @@ var require_statements = __commonJS({
198979
199960
  exports2.WhileStatement = WhileStatement;
198980
199961
  exports2.WithStatement = WithStatement;
198981
199962
  var _t = require_lib10();
198982
- var _index = require_node18();
199963
+ var _index = require_node20();
198983
199964
  var {
198984
199965
  isFor,
198985
199966
  isForStatement,
@@ -199472,7 +200453,7 @@ var require_methods = __commonJS({
199472
200453
  exports2._predicate = _predicate;
199473
200454
  exports2._shouldPrintArrowParamsParens = _shouldPrintArrowParamsParens;
199474
200455
  var _t = require_lib10();
199475
- var _index = require_node18();
200456
+ var _index = require_node20();
199476
200457
  var {
199477
200458
  isIdentifier: isIdentifier2
199478
200459
  } = _t;
@@ -199678,7 +200659,7 @@ var require_modules = __commonJS({
199678
200659
  exports2.ImportSpecifier = ImportSpecifier;
199679
200660
  exports2._printAttributes = _printAttributes;
199680
200661
  var _t = require_lib10();
199681
- var _index = require_node18();
200662
+ var _index = require_node20();
199682
200663
  var {
199683
200664
  isClassDeclaration,
199684
200665
  isExportDefaultSpecifier,
@@ -200540,7 +201521,7 @@ var require_flow2 = __commonJS({
200540
201521
  exports2._variance = _variance;
200541
201522
  var _t = require_lib10();
200542
201523
  var _modules = require_modules();
200543
- var _index = require_node18();
201524
+ var _index = require_node20();
200544
201525
  var _types2 = require_types22();
200545
201526
  var {
200546
201527
  isDeclareExportDeclaration,
@@ -202240,7 +203221,7 @@ var require_printer = __commonJS({
202240
203221
  });
202241
203222
  exports2.default = void 0;
202242
203223
  var _buffer = require_buffer();
202243
- var n = require_node18();
203224
+ var n = require_node20();
202244
203225
  var _t = require_lib10();
202245
203226
  var _tokenMap = require_token_map();
202246
203227
  var generatorFunctions = require_generators();
@@ -213335,7 +214316,7 @@ var require_fs = __commonJS({
213335
214316
  });
213336
214317
 
213337
214318
  // ../../../../node_modules/.pnpm/@babel+core@7.24.0/node_modules/@babel/core/lib/config/files/utils.js
213338
- var require_utils18 = __commonJS({
214319
+ var require_utils20 = __commonJS({
213339
214320
  "../../../../node_modules/.pnpm/@babel+core@7.24.0/node_modules/@babel/core/lib/config/files/utils.js"(exports2) {
213340
214321
  "use strict";
213341
214322
  init_cjs_shims();
@@ -213513,7 +214494,7 @@ var require_package3 = __commonJS({
213513
214494
  };
213514
214495
  return data;
213515
214496
  }
213516
- var _utils = require_utils18();
214497
+ var _utils = require_utils20();
213517
214498
  var _configError = require_config_error();
213518
214499
  var PACKAGE_FILENAME = "package.json";
213519
214500
  var readConfigPackage = (0, _utils.makeStaticFileCache)((filepath, content2) => {
@@ -214200,7 +215181,7 @@ var require_region2 = __commonJS({
214200
215181
  });
214201
215182
 
214202
215183
  // ../../../../node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/node.js
214203
- var require_node19 = __commonJS({
215184
+ var require_node21 = __commonJS({
214204
215185
  "../../../../node_modules/.pnpm/browserslist@4.24.4/node_modules/browserslist/node.js"(exports2, module2) {
214205
215186
  init_cjs_shims();
214206
215187
  var feature = require_feature().default;
@@ -214678,7 +215659,7 @@ var require_browserslist = __commonJS({
214678
215659
  var jsEOL = require_release_schedule();
214679
215660
  var path45 = __require("path");
214680
215661
  var BrowserslistError = require_error3();
214681
- var env3 = require_node19();
215662
+ var env3 = require_node21();
214682
215663
  var parseWithoutCache = require_parse6();
214683
215664
  var YEAR = 365.259641 * 24 * 60 * 60 * 1e3;
214684
215665
  var ANDROID_EVERGREEN_FIRST = "37";
@@ -216617,7 +217598,7 @@ var require_targets = __commonJS({
216617
217598
  });
216618
217599
 
216619
217600
  // ../../../../node_modules/.pnpm/@babel+helper-compilation-targets@7.26.5/node_modules/@babel/helper-compilation-targets/lib/utils.js
216620
- var require_utils19 = __commonJS({
217601
+ var require_utils21 = __commonJS({
216621
217602
  "../../../../node_modules/.pnpm/@babel+helper-compilation-targets@7.26.5/node_modules/@babel/helper-compilation-targets/lib/utils.js"(exports2) {
216622
217603
  "use strict";
216623
217604
  init_cjs_shims();
@@ -216761,7 +217742,7 @@ var require_debug4 = __commonJS({
216761
217742
  exports2.getInclusionReasons = getInclusionReasons;
216762
217743
  var _semver = require_semver3();
216763
217744
  var _pretty = require_pretty();
216764
- var _utils = require_utils19();
217745
+ var _utils = require_utils21();
216765
217746
  function getInclusionReasons(item, targetVersions, list) {
216766
217747
  const minVersions = list[item] || {};
216767
217748
  return Object.keys(targetVersions).reduce((result, env3) => {
@@ -217633,7 +218614,7 @@ var require_filter_items = __commonJS({
217633
218614
  exports2.targetsSupported = targetsSupported;
217634
218615
  var _semver = require_semver3();
217635
218616
  var _plugins = require_plugins4();
217636
- var _utils = require_utils19();
218617
+ var _utils = require_utils21();
217637
218618
  function targetsSupported(target, support) {
217638
218619
  const targetEnvironments = Object.keys(target);
217639
218620
  if (targetEnvironments.length === 0) {
@@ -217741,7 +218722,7 @@ var require_lib18 = __commonJS({
217741
218722
  var _helperValidatorOption = require_lib17();
217742
218723
  var _nativeModules = require_native_modules2();
217743
218724
  var _lruCache = require_lru_cache();
217744
- var _utils = require_utils19();
218725
+ var _utils = require_utils21();
217745
218726
  var _targets = require_targets();
217746
218727
  var _options = require_options2();
217747
218728
  var _pretty = require_pretty();
@@ -227471,7 +228452,7 @@ var require_configuration2 = __commonJS({
227471
228452
  }
227472
228453
  var _caching = require_caching();
227473
228454
  var _configApi = require_config_api();
227474
- var _utils = require_utils18();
228455
+ var _utils = require_utils20();
227475
228456
  var _moduleTypes = require_module_types();
227476
228457
  var _patternToRegex = require_pattern_to_regex();
227477
228458
  var _configError = require_config_error();
@@ -230376,7 +231357,7 @@ var require_finalhandler = __commonJS({
230376
231357
  "../../../../node_modules/.pnpm/finalhandler@1.3.1/node_modules/finalhandler/index.js"(exports2, module2) {
230377
231358
  "use strict";
230378
231359
  init_cjs_shims();
230379
- var debug5 = require_src33()("finalhandler");
231360
+ var debug5 = require_src34()("finalhandler");
230380
231361
  var encodeUrl = require_encodeurl();
230381
231362
  var escapeHtml = require_escape_html();
230382
231363
  var onFinished = require_on_finished();
@@ -230673,7 +231654,7 @@ var require_layer = __commonJS({
230673
231654
  "use strict";
230674
231655
  init_cjs_shims();
230675
231656
  var pathRegexp = require_path_to_regexp();
230676
- var debug5 = require_src33()("express:router:layer");
231657
+ var debug5 = require_src34()("express:router:layer");
230677
231658
  var hasOwnProperty4 = Object.prototype.hasOwnProperty;
230678
231659
  module2.exports = Layer;
230679
231660
  function Layer(path45, options8, fn) {
@@ -230813,7 +231794,7 @@ var require_route2 = __commonJS({
230813
231794
  "../../../../node_modules/.pnpm/express@4.21.2/node_modules/express/lib/router/route.js"(exports2, module2) {
230814
231795
  "use strict";
230815
231796
  init_cjs_shims();
230816
- var debug5 = require_src33()("express:router:route");
231797
+ var debug5 = require_src34()("express:router:route");
230817
231798
  var flatten = require_array_flatten();
230818
231799
  var Layer = require_layer();
230819
231800
  var methods = require_methods2();
@@ -230945,7 +231926,7 @@ var require_router = __commonJS({
230945
231926
  var Layer = require_layer();
230946
231927
  var methods = require_methods2();
230947
231928
  var mixin = require_utils_merge();
230948
- var debug5 = require_src33()("express:router");
231929
+ var debug5 = require_src34()("express:router");
230949
231930
  var deprecate = require_depd()("express");
230950
231931
  var flatten = require_array_flatten();
230951
231932
  var parseUrl = require_parseurl();
@@ -231390,7 +232371,7 @@ var require_view = __commonJS({
231390
232371
  "../../../../node_modules/.pnpm/express@4.21.2/node_modules/express/lib/view.js"(exports2, module2) {
231391
232372
  "use strict";
231392
232373
  init_cjs_shims();
231393
- var debug5 = require_src33()("express:view");
232374
+ var debug5 = require_src34()("express:view");
231394
232375
  var path45 = __require("path");
231395
232376
  var fs26 = __require("fs");
231396
232377
  var dirname9 = path45.dirname;
@@ -231971,7 +232952,7 @@ var require_send = __commonJS({
231971
232952
  "use strict";
231972
232953
  init_cjs_shims();
231973
232954
  var createError2 = require_http_errors();
231974
- var debug5 = require_src33()("send");
232955
+ var debug5 = require_src34()("send");
231975
232956
  var deprecate = require_depd()("send");
231976
232957
  var destroy = require_destroy();
231977
232958
  var encodeUrl = require_encodeurl2();
@@ -233343,7 +234324,7 @@ var require_proxy_addr = __commonJS({
233343
234324
  });
233344
234325
 
233345
234326
  // ../../../../node_modules/.pnpm/express@4.21.2/node_modules/express/lib/utils.js
233346
- var require_utils21 = __commonJS({
234327
+ var require_utils24 = __commonJS({
233347
234328
  "../../../../node_modules/.pnpm/express@4.21.2/node_modules/express/lib/utils.js"(exports2) {
233348
234329
  "use strict";
233349
234330
  init_cjs_shims();
@@ -233490,12 +234471,12 @@ var require_application3 = __commonJS({
233490
234471
  var methods = require_methods2();
233491
234472
  var middleware = require_init();
233492
234473
  var query = require_query();
233493
- var debug5 = require_src33()("express:application");
234474
+ var debug5 = require_src34()("express:application");
233494
234475
  var View = require_view();
233495
234476
  var http2 = __require("http");
233496
- var compileETag = require_utils21().compileETag;
233497
- var compileQueryParser = require_utils21().compileQueryParser;
233498
- var compileTrust = require_utils21().compileTrust;
234477
+ var compileETag = require_utils24().compileETag;
234478
+ var compileQueryParser = require_utils24().compileQueryParser;
234479
+ var compileTrust = require_utils24().compileTrust;
233499
234480
  var deprecate = require_depd()("express");
233500
234481
  var flatten = require_array_flatten();
233501
234482
  var merge3 = require_utils_merge();
@@ -234736,15 +235717,15 @@ var require_response3 = __commonJS({
234736
235717
  var encodeUrl = require_encodeurl();
234737
235718
  var escapeHtml = require_escape_html();
234738
235719
  var http2 = __require("http");
234739
- var isAbsolute3 = require_utils21().isAbsolute;
235720
+ var isAbsolute3 = require_utils24().isAbsolute;
234740
235721
  var onFinished = require_on_finished();
234741
235722
  var path45 = __require("path");
234742
235723
  var statuses = require_statuses();
234743
235724
  var merge3 = require_utils_merge();
234744
235725
  var sign2 = require_cookie_signature().sign;
234745
- var normalizeType = require_utils21().normalizeType;
234746
- var normalizeTypes = require_utils21().normalizeTypes;
234747
- var setCharset = require_utils21().setCharset;
235726
+ var normalizeType = require_utils24().normalizeType;
235727
+ var normalizeTypes = require_utils24().normalizeTypes;
235728
+ var setCharset = require_utils24().setCharset;
234748
235729
  var cookie = require_cookie();
234749
235730
  var send = require_send();
234750
235731
  var extname3 = path45.extname;
@@ -235996,7 +236977,7 @@ var require_glob_parent2 = __commonJS({
235996
236977
  });
235997
236978
 
235998
236979
  // ../../../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
235999
- var require_utils23 = __commonJS({
236980
+ var require_utils25 = __commonJS({
236000
236981
  "../../../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports2) {
236001
236982
  "use strict";
236002
236983
  init_cjs_shims();
@@ -236083,7 +237064,7 @@ var require_stringify4 = __commonJS({
236083
237064
  "../../../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports2, module2) {
236084
237065
  "use strict";
236085
237066
  init_cjs_shims();
236086
- var utils2 = require_utils23();
237067
+ var utils2 = require_utils25();
236087
237068
  module2.exports = (ast, options8 = {}) => {
236088
237069
  const stringify3 = (node, parent = {}) => {
236089
237070
  const invalidBlock = options8.escapeInvalid && utils2.isInvalidBrace(parent);
@@ -236540,7 +237521,7 @@ var require_compile3 = __commonJS({
236540
237521
  "use strict";
236541
237522
  init_cjs_shims();
236542
237523
  var fill2 = require_fill_range2();
236543
- var utils2 = require_utils23();
237524
+ var utils2 = require_utils25();
236544
237525
  var compile = (ast, options8 = {}) => {
236545
237526
  const walk = (node, parent = {}) => {
236546
237527
  const invalidBlock = utils2.isInvalidBrace(parent);
@@ -236594,7 +237575,7 @@ var require_expand2 = __commonJS({
236594
237575
  init_cjs_shims();
236595
237576
  var fill2 = require_fill_range2();
236596
237577
  var stringify3 = require_stringify4();
236597
- var utils2 = require_utils23();
237578
+ var utils2 = require_utils25();
236598
237579
  var append3 = (queue = "", stash = "", enclose = false) => {
236599
237580
  const result = [];
236600
237581
  queue = [].concat(queue);
@@ -237286,7 +238267,7 @@ var require_constants15 = __commonJS({
237286
238267
  });
237287
238268
 
237288
238269
  // ../../../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
237289
- var require_utils24 = __commonJS({
238270
+ var require_utils26 = __commonJS({
237290
238271
  "../../../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports2) {
237291
238272
  "use strict";
237292
238273
  init_cjs_shims();
@@ -237352,7 +238333,7 @@ var require_scan2 = __commonJS({
237352
238333
  "../../../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports2, module2) {
237353
238334
  "use strict";
237354
238335
  init_cjs_shims();
237355
- var utils2 = require_utils24();
238336
+ var utils2 = require_utils26();
237356
238337
  var {
237357
238338
  CHAR_ASTERISK,
237358
238339
  /* * */
@@ -237684,7 +238665,7 @@ var require_parse10 = __commonJS({
237684
238665
  "use strict";
237685
238666
  init_cjs_shims();
237686
238667
  var constants2 = require_constants15();
237687
- var utils2 = require_utils24();
238668
+ var utils2 = require_utils26();
237688
238669
  var {
237689
238670
  MAX_LENGTH,
237690
238671
  POSIX_REGEX_SOURCE,
@@ -238460,7 +239441,7 @@ var require_picomatch3 = __commonJS({
238460
239441
  var path45 = __require("path");
238461
239442
  var scan = require_scan2();
238462
239443
  var parse12 = require_parse10();
238463
- var utils2 = require_utils24();
239444
+ var utils2 = require_utils26();
238464
239445
  var constants2 = require_constants15();
238465
239446
  var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
238466
239447
  var picomatch = (glob3, options8, returnState = false) => {
@@ -238611,7 +239592,7 @@ var require_micromatch2 = __commonJS({
238611
239592
  var util7 = __require("util");
238612
239593
  var braces = require_braces2();
238613
239594
  var picomatch = require_picomatch4();
238614
- var utils2 = require_utils24();
239595
+ var utils2 = require_utils26();
238615
239596
  var isEmptyString = (v) => v === "" || v === "./";
238616
239597
  var hasBraces = (v) => {
238617
239598
  const index = v.indexOf("{");
@@ -239094,7 +240075,7 @@ var require_string4 = __commonJS({
239094
240075
  });
239095
240076
 
239096
240077
  // ../../../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
239097
- var require_utils25 = __commonJS({
240078
+ var require_utils27 = __commonJS({
239098
240079
  "../../../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports2) {
239099
240080
  "use strict";
239100
240081
  init_cjs_shims();
@@ -239124,7 +240105,7 @@ var require_tasks2 = __commonJS({
239124
240105
  init_cjs_shims();
239125
240106
  Object.defineProperty(exports2, "__esModule", { value: true });
239126
240107
  exports2.convertPatternGroupToTask = exports2.convertPatternGroupsToTasks = exports2.groupPatternsByBaseDirectory = exports2.getNegativePatternsAsPositive = exports2.getPositivePatterns = exports2.convertPatternsToTasks = exports2.generate = void 0;
239127
- var utils2 = require_utils25();
240108
+ var utils2 = require_utils27();
239128
240109
  function generate2(input, settings) {
239129
240110
  const patterns = processPatterns(input, settings);
239130
240111
  const ignore = processPatterns(settings.ignore, settings);
@@ -239476,7 +240457,7 @@ var require_fs7 = __commonJS({
239476
240457
  });
239477
240458
 
239478
240459
  // ../../../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
239479
- var require_utils26 = __commonJS({
240460
+ var require_utils28 = __commonJS({
239480
240461
  "../../../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports2) {
239481
240462
  "use strict";
239482
240463
  init_cjs_shims();
@@ -239514,7 +240495,7 @@ var require_async8 = __commonJS({
239514
240495
  var fsStat = require_out5();
239515
240496
  var rpl = require_run_parallel2();
239516
240497
  var constants_1 = require_constants16();
239517
- var utils2 = require_utils26();
240498
+ var utils2 = require_utils28();
239518
240499
  var common2 = require_common7();
239519
240500
  function read3(directory, settings, callback) {
239520
240501
  if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
@@ -239624,7 +240605,7 @@ var require_sync8 = __commonJS({
239624
240605
  exports2.readdir = exports2.readdirWithFileTypes = exports2.read = void 0;
239625
240606
  var fsStat = require_out5();
239626
240607
  var constants_1 = require_constants16();
239627
- var utils2 = require_utils26();
240608
+ var utils2 = require_utils28();
239628
240609
  var common2 = require_common7();
239629
240610
  function read3(directory, settings) {
239630
240611
  if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
@@ -240463,7 +241444,7 @@ var require_reader4 = __commonJS({
240463
241444
  Object.defineProperty(exports2, "__esModule", { value: true });
240464
241445
  var path45 = __require("path");
240465
241446
  var fsStat = require_out5();
240466
- var utils2 = require_utils25();
241447
+ var utils2 = require_utils27();
240467
241448
  var Reader = class {
240468
241449
  constructor(_settings) {
240469
241450
  this._settings = _settings;
@@ -240599,7 +241580,7 @@ var require_matcher2 = __commonJS({
240599
241580
  "use strict";
240600
241581
  init_cjs_shims();
240601
241582
  Object.defineProperty(exports2, "__esModule", { value: true });
240602
- var utils2 = require_utils25();
241583
+ var utils2 = require_utils27();
240603
241584
  var Matcher = class {
240604
241585
  constructor(_patterns, _settings, _micromatchOptions) {
240605
241586
  this._patterns = _patterns;
@@ -240689,7 +241670,7 @@ var require_deep2 = __commonJS({
240689
241670
  "use strict";
240690
241671
  init_cjs_shims();
240691
241672
  Object.defineProperty(exports2, "__esModule", { value: true });
240692
- var utils2 = require_utils25();
241673
+ var utils2 = require_utils27();
240693
241674
  var partial_1 = require_partial3();
240694
241675
  var DeepFilter = class {
240695
241676
  constructor(_settings, _micromatchOptions) {
@@ -240755,7 +241736,7 @@ var require_entry3 = __commonJS({
240755
241736
  "use strict";
240756
241737
  init_cjs_shims();
240757
241738
  Object.defineProperty(exports2, "__esModule", { value: true });
240758
- var utils2 = require_utils25();
241739
+ var utils2 = require_utils27();
240759
241740
  var EntryFilter = class {
240760
241741
  constructor(_settings, _micromatchOptions) {
240761
241742
  this._settings = _settings;
@@ -240844,7 +241825,7 @@ var require_error5 = __commonJS({
240844
241825
  "use strict";
240845
241826
  init_cjs_shims();
240846
241827
  Object.defineProperty(exports2, "__esModule", { value: true });
240847
- var utils2 = require_utils25();
241828
+ var utils2 = require_utils27();
240848
241829
  var ErrorFilter = class {
240849
241830
  constructor(_settings) {
240850
241831
  this._settings = _settings;
@@ -240866,7 +241847,7 @@ var require_entry4 = __commonJS({
240866
241847
  "use strict";
240867
241848
  init_cjs_shims();
240868
241849
  Object.defineProperty(exports2, "__esModule", { value: true });
240869
- var utils2 = require_utils25();
241850
+ var utils2 = require_utils27();
240870
241851
  var EntryTransformer = class {
240871
241852
  constructor(_settings) {
240872
241853
  this._settings = _settings;
@@ -241163,7 +242144,7 @@ var require_out8 = __commonJS({
241163
242144
  var stream_1 = require_stream8();
241164
242145
  var sync_1 = require_sync12();
241165
242146
  var settings_1 = require_settings8();
241166
- var utils2 = require_utils25();
242147
+ var utils2 = require_utils27();
241167
242148
  async function FastGlob(source2, options8) {
241168
242149
  assertPatternsInput(source2);
241169
242150
  const works = getWorks(source2, async_1.default, options8);
@@ -243884,7 +244865,7 @@ var require_package6 = __commonJS({
243884
244865
  });
243885
244866
 
243886
244867
  // ../../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js
243887
- var require_node20 = __commonJS({
244868
+ var require_node22 = __commonJS({
243888
244869
  "../../../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/node.js"(exports2, module2) {
243889
244870
  init_cjs_shims();
243890
244871
  module2.exports = __require("util").deprecate;
@@ -245839,7 +246820,7 @@ var require_stream_writable = __commonJS({
245839
246820
  var Duplex;
245840
246821
  Writable2.WritableState = WritableState;
245841
246822
  var internalUtil = {
245842
- deprecate: require_node20()
246823
+ deprecate: require_node22()
245843
246824
  };
245844
246825
  var Stream2 = require_stream9();
245845
246826
  var Buffer2 = __require("buffer").Buffer;
@@ -249283,7 +250264,7 @@ var require_development = __commonJS({
249283
250264
  });
249284
250265
 
249285
250266
  // ../../../../node_modules/.pnpm/@dabh+diagnostics@2.0.3/node_modules/@dabh/diagnostics/node/index.js
249286
- var require_node21 = __commonJS({
250267
+ var require_node23 = __commonJS({
249287
250268
  "../../../../node_modules/.pnpm/@dabh+diagnostics@2.0.3/node_modules/@dabh/diagnostics/node/index.js"(exports2, module2) {
249288
250269
  init_cjs_shims();
249289
250270
  if (process.env.NODE_ENV === "production") {
@@ -249402,7 +250383,7 @@ var require_file3 = __commonJS({
249402
250383
  var { MESSAGE } = require_triple_beam();
249403
250384
  var { Stream: Stream2, PassThrough } = require_readable();
249404
250385
  var TransportStream = require_winston_transport();
249405
- var debug5 = require_node21()("winston:file");
250386
+ var debug5 = require_node23()("winston:file");
249406
250387
  var os5 = __require("os");
249407
250388
  var tailFile = require_tail_file();
249408
250389
  module2.exports = class File extends TransportStream {
@@ -250651,7 +251632,7 @@ var require_exception_handler = __commonJS({
250651
251632
  init_cjs_shims();
250652
251633
  var os5 = __require("os");
250653
251634
  var asyncForEach = require_forEach();
250654
- var debug5 = require_node21()("winston:exception");
251635
+ var debug5 = require_node23()("winston:exception");
250655
251636
  var once = require_one_time();
250656
251637
  var stackTrace = require_stack_trace();
250657
251638
  var ExceptionStream = require_exception_stream();
@@ -250891,7 +251872,7 @@ var require_rejection_handler = __commonJS({
250891
251872
  init_cjs_shims();
250892
251873
  var os5 = __require("os");
250893
251874
  var asyncForEach = require_forEach();
250894
- var debug5 = require_node21()("winston:rejection");
251875
+ var debug5 = require_node23()("winston:rejection");
250895
251876
  var once = require_one_time();
250896
251877
  var stackTrace = require_stack_trace();
250897
251878
  var RejectionStream = require_rejection_stream();
@@ -251676,7 +252657,7 @@ var require_create_logger = __commonJS({
251676
252657
  var { LEVEL } = require_triple_beam();
251677
252658
  var config2 = require_config5();
251678
252659
  var Logger = require_logger();
251679
- var debug5 = require_node21()("winston:create-logger");
252660
+ var debug5 = require_node23()("winston:create-logger");
251680
252661
  function isLevelEnabledFunctionName(level) {
251681
252662
  return "is" + level.charAt(0).toUpperCase() + level.slice(1) + "Enabled";
251682
252663
  }
@@ -262738,12 +263719,14 @@ init_esm2();
262738
263719
  var import_context_async_hooks = __toESM(require_src4(), 1);
262739
263720
  var import_instrumentation_express = __toESM(require_src8(), 1);
262740
263721
  var import_instrumentation_http = __toESM(require_src10(), 1);
262741
- var import_sdk_node = __toESM(require_src32(), 1);
263722
+ var import_resources = __toESM(require_src11(), 1);
263723
+ var import_sdk_node = __toESM(require_src33(), 1);
263724
+ init_esm();
262742
263725
 
262743
263726
  // ../sdk/package.json
262744
263727
  var package_default = {
262745
263728
  name: "@superblocksteam/sdk",
262746
- version: "1.99.99-next.2",
263729
+ version: "2.0.0-next.10",
262747
263730
  type: "module",
262748
263731
  description: "Superblocks JS SDK",
262749
263732
  homepage: "https://www.superblocks.com",
@@ -262772,14 +263755,16 @@ var package_default = {
262772
263755
  dependencies: {
262773
263756
  "@opentelemetry/api": "^1.9.0",
262774
263757
  "@opentelemetry/context-async-hooks": "^2.0.1",
263758
+ "@opentelemetry/resources": "^1.28.0",
263759
+ "@opentelemetry/semantic-conventions": "^1.28.0",
262775
263760
  "@opentelemetry/instrumentation-express": "^0.45.0",
262776
263761
  "@opentelemetry/instrumentation-http": "^0.55.0",
262777
263762
  "@opentelemetry/sdk-node": "^0.55.0",
262778
263763
  "@rollup/wasm-node": "^4.35.0",
262779
263764
  "@superblocksteam/bucketeer-sdk": "0.4.1",
262780
263765
  "@superblocksteam/shared": "0.9122.0",
262781
- "@superblocksteam/util": "1.99.99-next.2",
262782
- "@superblocksteam/vite-plugin-file-sync": "1.99.99-next.2",
263766
+ "@superblocksteam/util": "2.0.0-next.10",
263767
+ "@superblocksteam/vite-plugin-file-sync": "2.0.0-next.10",
262783
263768
  "@vitejs/plugin-react": "^4.3.4",
262784
263769
  axios: "^1.4.0",
262785
263770
  chokidar: "^4.0.3",
@@ -262847,8 +263832,12 @@ var package_default = {
262847
263832
  };
262848
263833
 
262849
263834
  // ../sdk/dist/dev-utils/dev-tracer.js
263835
+ var ATTR_DEPLOYMENT_ENVIRONMENT = "deployment.environment";
262850
263836
  var sdk = new import_sdk_node.NodeSDK({
262851
- serviceName: "sdk-dev-server",
263837
+ resource: import_resources.Resource.default().merge(new import_resources.Resource({
263838
+ [ATTR_SERVICE_NAME]: "sdk-dev-server",
263839
+ [ATTR_DEPLOYMENT_ENVIRONMENT]: process.env.SUPERBLOCKS_CLI_ENV
263840
+ })),
262852
263841
  contextManager: new import_context_async_hooks.AsyncLocalStorageContextManager(),
262853
263842
  instrumentations: [
262854
263843
  // Configure HTTP instrumentation with custom attributes
@@ -262919,11 +263908,12 @@ init_cjs_shims();
262919
263908
 
262920
263909
  // ../../../library-shared/dist/utils/properties.js
262921
263910
  init_cjs_shims();
262922
- function PropertyInfo(value2, type2 = "STATIC") {
263911
+ function PropertyInfo(value2, type2 = "STATIC", extra) {
262923
263912
  return {
262924
263913
  __info: true,
262925
263914
  value: value2,
262926
- type: type2
263915
+ type: type2,
263916
+ ...extra
262927
263917
  };
262928
263918
  }
262929
263919
  var Property = {
@@ -262933,7 +263923,7 @@ var Property = {
262933
263923
  Expression: (value2) => PropertyInfo(value2, "EXPRESSION"),
262934
263924
  Event: (value2) => PropertyInfo(value2, "EVENT"),
262935
263925
  Dimension: (value2) => PropertyInfo(value2, "DIMENSION"),
262936
- Computed: (value2) => PropertyInfo(value2, "COMPUTED"),
263926
+ Computed: (value2, args) => PropertyInfo(value2, "COMPUTED", args ? { args } : {}),
262937
263927
  Any: (value2, type2 = "STATIC") => PropertyInfo(value2, type2)
262938
263928
  };
262939
263929
  function isPropertyInfo(value2) {
@@ -262955,6 +263945,13 @@ function containsStringInterpolation(value2) {
262955
263945
  return false;
262956
263946
  }
262957
263947
 
263948
+ // ../../../library-shared/dist/utils/binding-identifier.js
263949
+ init_cjs_shims();
263950
+
263951
+ // ../../../library-shared/dist/types/binding-identifiers.js
263952
+ init_cjs_shims();
263953
+ var BindingMetaSymbol = Symbol("binding-meta");
263954
+
262958
263955
  // ../../../library-shared/dist/layout.js
262959
263956
  init_cjs_shims();
262960
263957
  var Dim;
@@ -274736,6 +275733,10 @@ function nodeToValue(node, context2) {
274736
275733
  }
274737
275734
  if (context2 && context2[contextName] && typeof context2[contextName] === "object") {
274738
275735
  return context2[contextName][value2];
275736
+ } else if (context2 === void 0) {
275737
+ const parts = memberExpressionToParts(node);
275738
+ const expression = parts.join(".");
275739
+ return expression;
274739
275740
  }
274740
275741
  return null;
274741
275742
  }
@@ -274751,6 +275752,28 @@ function nodeToValue(node, context2) {
274751
275752
  return null;
274752
275753
  }
274753
275754
  }
275755
+ function memberExpressionToParts(node) {
275756
+ const parts = [];
275757
+ let current = node;
275758
+ while (current.type === "MemberExpression" || current.type === "OptionalMemberExpression") {
275759
+ const property = current.property;
275760
+ if (Array.isArray(property)) {
275761
+ break;
275762
+ }
275763
+ if (property.type === "Identifier") {
275764
+ parts.unshift(property.name);
275765
+ }
275766
+ const object2 = current.object;
275767
+ if (Array.isArray(object2)) {
275768
+ break;
275769
+ }
275770
+ current = object2;
275771
+ }
275772
+ if (current.type === "Identifier") {
275773
+ parts.unshift(current.name);
275774
+ }
275775
+ return parts;
275776
+ }
274754
275777
  function getIdentiferName(attr) {
274755
275778
  switch (attr.type) {
274756
275779
  case "JSXIdentifier":
@@ -275036,11 +276059,11 @@ function isValidJSXExpression(value2) {
275036
276059
  }
275037
276060
  }
275038
276061
  var transformers = {
275039
- oneLineArrow: (value2) => value2.startsWith("{") ? `() => (${value2})` : `() => ${value2}`,
275040
- multiLineArrow: (value2) => `() => {
276062
+ oneLineArrow: (value2, argsString) => value2.startsWith("{") ? `(${argsString}) => (${value2})` : `(${argsString}) => ${value2}`,
276063
+ multiLineArrow: (value2, argsString) => `(${argsString}) => {
275041
276064
  ${value2}
275042
276065
  }`,
275043
- traditional: (value2) => `function (this: any) {
276066
+ traditional: (value2, argsString) => `function (this: any${argsString ? `, ${argsString}` : ""}) {
275044
276067
  ${value2}
275045
276068
  }`,
275046
276069
  computed: (value2) => `sbComputed(${value2})`
@@ -275048,24 +276071,28 @@ var transformers = {
275048
276071
  function findFirstValidExpression(testCases) {
275049
276072
  return testCases.find(isValidJSXExpression);
275050
276073
  }
275051
- function toCodeComputed(value2) {
276074
+ function toCodeComputed(value2, info) {
276075
+ let argsString = "";
276076
+ if (isComputedPropertyInfo(info)) {
276077
+ argsString = info.args ? `{ ${info.args.join(", ")} }` : "";
276078
+ }
275052
276079
  const { hasThisReference, hasReturnStatement } = getFunctionBodyThisExpressionData(value2);
275053
276080
  if (hasThisReference) {
275054
276081
  if (!hasReturnStatement) {
275055
- return transformers.computed(transformers.traditional(`return ${value2}`));
276082
+ return transformers.computed(transformers.traditional(`return ${value2}`, argsString));
275056
276083
  }
275057
- return transformers.computed(transformers.traditional(value2));
276084
+ return transformers.computed(transformers.traditional(value2, argsString));
275058
276085
  }
275059
276086
  const computedTestCases = [
275060
- transformers.oneLineArrow(value2),
275061
- transformers.multiLineArrow(value2),
275062
- transformers.traditional(value2)
276087
+ transformers.oneLineArrow(value2, argsString),
276088
+ transformers.multiLineArrow(value2, argsString),
276089
+ transformers.traditional(value2, argsString)
275063
276090
  ];
275064
276091
  const validComputedExpression = findFirstValidExpression(computedTestCases);
275065
276092
  if (validComputedExpression) {
275066
276093
  return transformers.computed(validComputedExpression);
275067
276094
  }
275068
- return transformers.computed(transformers.multiLineArrow(value2));
276095
+ return transformers.computed(transformers.multiLineArrow(value2, argsString));
275069
276096
  }
275070
276097
 
275071
276098
  // ../../../vite-plugin-file-sync/dist/parsing/computed/to-value-computed.js
@@ -275081,7 +276108,7 @@ function toValueComputed(expression) {
275081
276108
 
275082
276109
  // ../../../vite-plugin-file-sync/dist/parsing/computed/index.js
275083
276110
  var parser5 = {
275084
- toCode: (value2) => toCodeComputed(value2),
276111
+ toCode: (value2, info) => toCodeComputed(value2, info),
275085
276112
  toValue: (code) => toValueComputed(code)
275086
276113
  };
275087
276114
 
@@ -275242,6 +276269,26 @@ init_cjs_shims();
275242
276269
 
275243
276270
  // ../../../vite-plugin-file-sync/dist/parsing/events/to-code-events.js
275244
276271
  var import_shared10 = __toESM(require_dist3(), 1);
276272
+ var getDynamicValue = (value2) => {
276273
+ if (value2 === void 0) {
276274
+ return "undefined";
276275
+ } else if (isComputedPropertyInfo(value2)) {
276276
+ return parser5.toCode(value2.value);
276277
+ } else if (containsStringInterpolation(value2)) {
276278
+ return `sbComputed(() => \`${value2}\`)`;
276279
+ }
276280
+ if (typeof value2 === "object" && value2 != null) {
276281
+ return JSON.stringify(value2);
276282
+ }
276283
+ if (typeof value2 === "string") {
276284
+ let strValue = `"${value2}"`;
276285
+ if (value2.includes('"')) {
276286
+ strValue = `\`${value2}\``;
276287
+ }
276288
+ return strValue;
276289
+ }
276290
+ return value2;
276291
+ };
275245
276292
  function toCodeEventFlow(stepDefs_) {
275246
276293
  if (!stepDefs_.length) {
275247
276294
  return "SbEventFlow.start()";
@@ -275293,32 +276340,29 @@ function toCodeEventFlow(stepDefs_) {
275293
276340
  break;
275294
276341
  }
275295
276342
  case TriggerStepType.SET_STATE_VAR: {
275296
- const name17 = `${stepDef.state?.scope === import_shared10.ApplicationScope.APP ? "App." : ""}${stepDef.state?.name ?? ""}`;
275297
- const value2 = stepDef.value ?? "";
275298
- if (isComputedPropertyInfo(value2)) {
275299
- const computedValue = parser5.toCode(value2.value);
275300
- code = `${code}.setStateVar("${name17}", ${computedValue})`;
275301
- } else if (containsStringInterpolation(value2)) {
275302
- code = `${code}.setStateVar("${name17}", sbComputed(() => \`${value2}\`))`;
275303
- } else if (typeof value2 === "string" && (0, import_shared10.containsBindingsAnywhere)(value2)) {
275304
- code = `${code}.setStateVar("${name17}", SB\`${value2}\`)`;
275305
- } else if (typeof value2 === "object" && value2 != null) {
275306
- code = `${code}.setStateVar("${name17}", ${JSON.stringify(value2)})`;
275307
- } else if (typeof value2 === "string") {
275308
- let strValue = `"${value2}"`;
275309
- if (value2.includes('"')) {
275310
- strValue = `\`${value2}\``;
275311
- }
275312
- code = `${code}.setStateVar("${name17}", ${strValue})`;
275313
- } else {
275314
- code = `${code}.setStateVar("${name17}", ${value2})`;
275315
- }
276343
+ const variableName = stepDef.state?.name !== void 0 ? `${stepDef.state?.scope === import_shared10.ApplicationScope.APP ? "App." : ""}${stepDef.state.name}` : "undefined";
276344
+ const value2 = stepDef.value;
276345
+ const valueToCode = getDynamicValue(value2);
276346
+ code = `${code}.setStateVar(${variableName}, ${valueToCode})`;
276347
+ break;
276348
+ }
276349
+ case TriggerStepType.RESET_STATE_VAR: {
276350
+ const variableName = stepDef.state?.name !== void 0 ? `${stepDef.state?.scope === import_shared10.ApplicationScope.APP ? "App." : ""}${stepDef.state.name}` : "undefined";
276351
+ code = `${code}.resetStateVar(${variableName})`;
275316
276352
  break;
275317
276353
  }
275318
276354
  case TriggerStepType.CONTROL_MODAL: {
275319
276355
  code = `${code}.controlModal("${stepDef.name}", "${stepDef.direction ?? "open"}")`;
275320
276356
  break;
275321
276357
  }
276358
+ case TriggerStepType.SHOW_ALERT: {
276359
+ const message = stepDef.message ?? "";
276360
+ const styleArg = `"${stepDef.style ?? "success"}"`;
276361
+ const durationArg = `, ${stepDef.alertDuration ?? 4}`;
276362
+ const positionArg = stepDef.alertPosition !== void 0 ? `, "${stepDef.alertPosition}"` : ``;
276363
+ code = `${code}.showAlert(${getDynamicValue(message)}, ${styleArg}${durationArg}${positionArg})`;
276364
+ break;
276365
+ }
275322
276366
  default:
275323
276367
  getLogger().warn(`No support for writing event flow for step type ${stepDef.type}`);
275324
276368
  }
@@ -275336,7 +276380,7 @@ var getApiCallbackNode = (nodePath) => {
275336
276380
  }
275337
276381
  return [];
275338
276382
  };
275339
- function getStateVarValue(valueNodePath) {
276383
+ function getDynamicValue2(valueNodePath) {
275340
276384
  if (isSbComputedNode(valueNodePath)) {
275341
276385
  return Property.Computed(parser5.toValue(valueNodePath));
275342
276386
  } else if (isDimNode(valueNodePath)) {
@@ -275455,25 +276499,44 @@ function toValueEventFlow(nodePath, existingSteps = [], parentId) {
275455
276499
  return existingSteps;
275456
276500
  }
275457
276501
  const name17 = nodeToValue(expression.node);
275458
- const value2 = getStateVarValue(valueNodePath);
275459
- const isAppScoped = name17.includes("App");
275460
- const variableName = isAppScoped ? name17.split(".")[1] : name17;
275461
- if (!variableName)
275462
- return existingSteps;
276502
+ const value2 = getDynamicValue2(valueNodePath);
276503
+ const isAppScoped = name17 && name17.startsWith("App.");
276504
+ const variableName = isAppScoped ? name17.split(".", 2)[1] : name17;
275463
276505
  return [
275464
276506
  ...existingSteps,
275465
276507
  {
275466
276508
  id: id2,
275467
276509
  type: import_shared11.TriggerStepType.SET_STATE_VAR,
275468
- state: {
275469
- id: variableName,
276510
+ state: variableName ? {
275470
276511
  name: variableName,
275471
276512
  scope: isAppScoped ? import_shared11.ApplicationScope.APP : import_shared11.ApplicationScope.PAGE
275472
- },
276513
+ } : void 0,
275473
276514
  value: value2
275474
276515
  }
275475
276516
  ];
275476
276517
  }
276518
+ case "resetStateVar": {
276519
+ if (args.length !== 1) {
276520
+ return existingSteps;
276521
+ }
276522
+ if (!args[0]?.node) {
276523
+ return existingSteps;
276524
+ }
276525
+ const name17 = nodeToValue(args[0].node);
276526
+ const isAppScoped = name17 && name17.startsWith("App.");
276527
+ const variableName = isAppScoped ? name17.split(".", 2)[1] : name17;
276528
+ return [
276529
+ ...existingSteps,
276530
+ {
276531
+ id: id2,
276532
+ type: import_shared11.TriggerStepType.RESET_STATE_VAR,
276533
+ state: variableName ? {
276534
+ name: variableName,
276535
+ scope: isAppScoped ? import_shared11.ApplicationScope.APP : import_shared11.ApplicationScope.PAGE
276536
+ } : void 0
276537
+ }
276538
+ ];
276539
+ }
275477
276540
  case "controlModal": {
275478
276541
  if (args.length !== 2) {
275479
276542
  return existingSteps;
@@ -275493,6 +276556,23 @@ function toValueEventFlow(nodePath, existingSteps = [], parentId) {
275493
276556
  }
275494
276557
  ];
275495
276558
  }
276559
+ case "showAlert": {
276560
+ const message = args[0] ? getDynamicValue2(args[0]) : "";
276561
+ const type2 = args[1] ? nodeToValue(args[1].node) : "success";
276562
+ const duration = args[2] ? nodeToValue(args[2].node) : 4;
276563
+ const position = args[3] ? nodeToValue(args[3].node) : void 0;
276564
+ return [
276565
+ ...existingSteps,
276566
+ {
276567
+ id: id2,
276568
+ type: import_shared11.TriggerStepType.SHOW_ALERT,
276569
+ message,
276570
+ style: type2,
276571
+ alertDuration: duration,
276572
+ alertPosition: position
276573
+ }
276574
+ ];
276575
+ }
275496
276576
  default:
275497
276577
  logger3.warn(`unknown event: ${eventName}`);
275498
276578
  return existingSteps;
@@ -276021,15 +277101,15 @@ function generateJSXElement({ id: id2, tagName, properties, children }) {
276021
277101
  jsxElement.children = childElements;
276022
277102
  return jsxElement;
276023
277103
  }
276024
- function generateJSXAttribute(name17, { value: value2, type: type2 }) {
276025
- const valueNode = getPropertyExpression(Property.Any(value2, type2), name17);
277104
+ function generateJSXAttribute(name17, info) {
277105
+ const valueNode = getPropertyExpression(info, name17);
276026
277106
  if (import_types11.default.isStringLiteral(valueNode)) {
276027
277107
  return import_types11.default.jsxAttribute(import_types11.default.jsxIdentifier(name17), valueNode);
276028
277108
  } else {
276029
277109
  return import_types11.default.jsxAttribute(import_types11.default.jsxIdentifier(name17), import_types11.default.jsxExpressionContainer(valueNode));
276030
277110
  }
276031
277111
  }
276032
- function writeNestedProperty({ node, paths, value: value2, type: type2 }) {
277112
+ function writeNestedProperty({ node, paths, info }) {
276033
277113
  let currentNode = node;
276034
277114
  const cleanedPaths = paths.map((path45) => {
276035
277115
  if (path45.startsWith("[")) {
@@ -276048,16 +277128,16 @@ function writeNestedProperty({ node, paths, value: value2, type: type2 }) {
276048
277128
  if (currentNode.isObjectExpression()) {
276049
277129
  let property = currentNode.get("properties").find((prop) => prop.isObjectProperty() && getIdentiferName(prop.node.key) === currentKey);
276050
277130
  if (!property) {
276051
- const value4 = cleanedPaths.length > 0 ? import_types11.default.objectExpression([]) : import_types11.default.stringLiteral("");
277131
+ const value3 = cleanedPaths.length > 0 ? import_types11.default.objectExpression([]) : import_types11.default.stringLiteral("");
276052
277132
  property = currentNode.pushContainer("properties", [
276053
- import_types11.default.objectProperty(import_types11.default.identifier(currentKey.toString()), value4)
277133
+ import_types11.default.objectProperty(import_types11.default.identifier(currentKey.toString()), value3)
276054
277134
  ])[0];
276055
277135
  }
276056
- const value3 = property?.get("value");
276057
- if (!value3) {
277136
+ const value2 = property?.get("value");
277137
+ if (!value2) {
276058
277138
  break;
276059
277139
  }
276060
- currentNode = Array.isArray(value3) ? value3[0] : value3;
277140
+ currentNode = Array.isArray(value2) ? value2[0] : value2;
276061
277141
  } else if (currentNode.isArrayExpression() && typeof currentKey === "number") {
276062
277142
  const index = currentKey;
276063
277143
  const nodeAtIndex = currentNode.get("elements")[index];
@@ -276082,7 +277162,7 @@ function writeNestedProperty({ node, paths, value: value2, type: type2 }) {
276082
277162
  }
276083
277163
  } else {
276084
277164
  currentNode = currentNode.pushContainer("elements", [
276085
- import_types11.default.stringLiteral(String(value2))
277165
+ import_types11.default.stringLiteral(String(info.value))
276086
277166
  ])[0];
276087
277167
  }
276088
277168
  } else {
@@ -276091,18 +277171,19 @@ function writeNestedProperty({ node, paths, value: value2, type: type2 }) {
276091
277171
  }
276092
277172
  }
276093
277173
  if (currentNode) {
276094
- const valueNode = getPropertyExpression(Property.Any(value2, type2), "");
277174
+ const valueNode = getPropertyExpression(info, "");
276095
277175
  currentNode.replaceWith(valueNode);
276096
277176
  }
276097
277177
  }
276098
- function getPropertyExpression({ value: value2, type: type2 }, fieldName = "") {
277178
+ function getPropertyExpression(info, fieldName = "") {
276099
277179
  const logger3 = getLogger();
277180
+ const { value: value2, type: type2 } = info;
276100
277181
  try {
276101
277182
  if (type2 === "BINDING") {
276102
277183
  const cleanedValue = typeof value2 === "string" ? value2.replaceAll("${", "\\${") : value2;
276103
277184
  return stringToTaggedTemplate(cleanedValue);
276104
277185
  } else if (type2 === "TEMPLATE") {
276105
- const code = parsingRegistry.TEMPLATE.toCode(value2);
277186
+ const code = parsingRegistry.TEMPLATE.toCode(value2, info);
276106
277187
  const expression = parseExpression(code);
276107
277188
  if (expression) {
276108
277189
  return expression;
@@ -276110,7 +277191,7 @@ function getPropertyExpression({ value: value2, type: type2 }, fieldName = "") {
276110
277191
  return import_types11.default.stringLiteral(code);
276111
277192
  }
276112
277193
  } else if (type2 === "DIMENSION") {
276113
- const code = parsingRegistry.DIMENSION.toCode(value2);
277194
+ const code = parsingRegistry.DIMENSION.toCode(value2, info);
276114
277195
  const expression = parseExpression(code);
276115
277196
  if (expression) {
276116
277197
  return expression;
@@ -276119,7 +277200,7 @@ function getPropertyExpression({ value: value2, type: type2 }, fieldName = "") {
276119
277200
  }
276120
277201
  }
276121
277202
  if (type2 === "EVENT") {
276122
- const code = parsingRegistry.EVENT.toCode(value2);
277203
+ const code = parsingRegistry.EVENT.toCode(value2, info);
276123
277204
  const expression = parseExpression(code);
276124
277205
  if (expression) {
276125
277206
  return expression;
@@ -276143,7 +277224,7 @@ function getPropertyExpression({ value: value2, type: type2 }, fieldName = "") {
276143
277224
  }
276144
277225
  if (parsed === void 0) {
276145
277226
  try {
276146
- const code = parsingRegistry.COMPUTED.toCode(value2);
277227
+ const code = parsingRegistry.COMPUTED.toCode(value2, info);
276147
277228
  const computedExpression = parseExpression(code);
276148
277229
  if (computedExpression) {
276149
277230
  return computedExpression;
@@ -277023,7 +278104,7 @@ function findBindComponentsInScopeUsage(usage) {
277023
278104
  return [];
277024
278105
  }
277025
278106
  const allBindNames = findBindNamesInComponentPath(componentPath);
277026
- return Array.from(new Set(allBindNames));
278107
+ return allBindNames;
277027
278108
  }
277028
278109
  function findBindNamesInComponentPath(componentPath) {
277029
278110
  const bindNames = [];
@@ -279137,7 +280218,7 @@ var require_glob_parent = __commonJS3({
279137
280218
  };
279138
280219
  }
279139
280220
  });
279140
- var require_utils20 = __commonJS3({
280221
+ var require_utils22 = __commonJS3({
279141
280222
  "node_modules/braces/lib/utils.js"(exports2) {
279142
280223
  "use strict";
279143
280224
  exports2.isInteger = (num) => {
@@ -279220,7 +280301,7 @@ var require_utils20 = __commonJS3({
279220
280301
  var require_stringify3 = __commonJS3({
279221
280302
  "node_modules/braces/lib/stringify.js"(exports2, module2) {
279222
280303
  "use strict";
279223
- var utils2 = require_utils20();
280304
+ var utils2 = require_utils22();
279224
280305
  module2.exports = (ast, options8 = {}) => {
279225
280306
  const stringify22 = (node, parent = {}) => {
279226
280307
  const invalidBlock = options8.escapeInvalid && utils2.isInvalidBrace(parent);
@@ -279665,7 +280746,7 @@ var require_compile2 = __commonJS3({
279665
280746
  "node_modules/braces/lib/compile.js"(exports2, module2) {
279666
280747
  "use strict";
279667
280748
  var fill2 = require_fill_range();
279668
- var utils2 = require_utils20();
280749
+ var utils2 = require_utils22();
279669
280750
  var compile = (ast, options8 = {}) => {
279670
280751
  const walk = (node, parent = {}) => {
279671
280752
  const invalidBlock = utils2.isInvalidBrace(parent);
@@ -279716,7 +280797,7 @@ var require_expand = __commonJS3({
279716
280797
  "use strict";
279717
280798
  var fill2 = require_fill_range();
279718
280799
  var stringify22 = require_stringify3();
279719
- var utils2 = require_utils20();
280800
+ var utils2 = require_utils22();
279720
280801
  var append3 = (queue = "", stash = "", enclose = false) => {
279721
280802
  const result = [];
279722
280803
  queue = [].concat(queue);
@@ -280394,7 +281475,7 @@ var require_constants22 = __commonJS3({
280394
281475
  };
280395
281476
  }
280396
281477
  });
280397
- var require_utils22 = __commonJS3({
281478
+ var require_utils23 = __commonJS3({
280398
281479
  "node_modules/micromatch/node_modules/picomatch/lib/utils.js"(exports2) {
280399
281480
  "use strict";
280400
281481
  var path132 = __require2("path");
@@ -280456,7 +281537,7 @@ var require_utils22 = __commonJS3({
280456
281537
  var require_scan = __commonJS3({
280457
281538
  "node_modules/micromatch/node_modules/picomatch/lib/scan.js"(exports2, module2) {
280458
281539
  "use strict";
280459
- var utils2 = require_utils22();
281540
+ var utils2 = require_utils23();
280460
281541
  var {
280461
281542
  CHAR_ASTERISK,
280462
281543
  /* * */
@@ -280785,7 +281866,7 @@ var require_parse22 = __commonJS3({
280785
281866
  "node_modules/micromatch/node_modules/picomatch/lib/parse.js"(exports2, module2) {
280786
281867
  "use strict";
280787
281868
  var constants2 = require_constants22();
280788
- var utils2 = require_utils22();
281869
+ var utils2 = require_utils23();
280789
281870
  var {
280790
281871
  MAX_LENGTH,
280791
281872
  POSIX_REGEX_SOURCE,
@@ -281558,7 +282639,7 @@ var require_picomatch = __commonJS3({
281558
282639
  var path132 = __require2("path");
281559
282640
  var scan = require_scan();
281560
282641
  var parse72 = require_parse22();
281561
- var utils2 = require_utils22();
282642
+ var utils2 = require_utils23();
281562
282643
  var constants2 = require_constants22();
281563
282644
  var isObject3 = (val) => val && typeof val === "object" && !Array.isArray(val);
281564
282645
  var picomatch = (glob3, options8, returnState = false) => {
@@ -281703,7 +282784,7 @@ var require_micromatch = __commonJS3({
281703
282784
  var util22 = __require2("util");
281704
282785
  var braces = require_braces();
281705
282786
  var picomatch = require_picomatch2();
281706
- var utils2 = require_utils22();
282787
+ var utils2 = require_utils23();
281707
282788
  var isEmptyString = (v) => v === "" || v === "./";
281708
282789
  var hasBraces = (v) => {
281709
282790
  const index = v.indexOf("{");
@@ -286296,7 +287377,7 @@ var require_package5 = __commonJS3({
286296
287377
  };
286297
287378
  }
286298
287379
  });
286299
- var require_src34 = __commonJS3({
287380
+ var require_src35 = __commonJS3({
286300
287381
  "node_modules/editorconfig/src/index.js"(exports2) {
286301
287382
  "use strict";
286302
287383
  var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
@@ -290069,7 +291150,7 @@ function partition2(array2, predicate) {
290069
291150
  return result;
290070
291151
  }
290071
291152
  var partition_default = partition2;
290072
- var import_editorconfig = __toESM2(require_src34(), 1);
291153
+ var import_editorconfig = __toESM2(require_src35(), 1);
290073
291154
  async function isDirectory(directory, options8) {
290074
291155
  const allowSymlinks = (options8 == null ? void 0 : options8.allowSymlinks) ?? true;
290075
291156
  let stats;
@@ -300546,6 +301627,7 @@ var SbScopeManager = class extends EventEmitter5 {
300546
301627
  pageAndAppScopes = /* @__PURE__ */ new Map();
300547
301628
  scopeIdToFilePath = {};
300548
301629
  sourceTracker;
301630
+ filePathsWithDuplicateComponentNames = /* @__PURE__ */ new Set();
300549
301631
  // this maps scope name to file name to the node where the scope is being spread
300550
301632
  scopeNameToScopeUsage = {};
300551
301633
  constructor(sourceTracker) {
@@ -300781,7 +301863,7 @@ var SbScopeManager = class extends EventEmitter5 {
300781
301863
  const entityNode = this.sourceTracker.getElementToLocation(entityId);
300782
301864
  const filePath = this.sourceTracker.getElementToFilePath(entityId);
300783
301865
  if (!entityNode || !(0, import_types20.isObjectProperty)(entityNode.node)) {
300784
- throw new Error("Entity to update not found" + entityId);
301866
+ throw new Error("Entity to update not found " + entityId);
300785
301867
  }
300786
301868
  if (!filePath) {
300787
301869
  throw new Error("File path not found for entity: " + entityId);
@@ -300866,7 +301948,12 @@ var SbScopeManager = class extends EventEmitter5 {
300866
301948
  key2.replaceWith(import_types20.default.identifier(newName));
300867
301949
  }
300868
301950
  scopeDef.entityNames = scopeDef.entityNames.map((name17) => name17 === oldName ? newName : name17);
300869
- scopeDef.scopeNameToEntityId[newName] = entityId;
301951
+ const newEntityId = getScopeElementId(scopeDef.id, newName);
301952
+ this.sourceTracker.deleteElementToLocation(entityId);
301953
+ this.sourceTracker.deleteElementToFilePath(entityId);
301954
+ scopeDef.scopeNameToEntityId[newName] = newEntityId;
301955
+ this.sourceTracker.setElementToLocation(newEntityId, entityNode);
301956
+ this.sourceTracker.setElementToFilePath(newEntityId, filePath);
300870
301957
  delete scopeDef.scopeNameToEntityId[oldName];
300871
301958
  const updatedFiles = this.updateScopeUsages(scopeDef.name, scopeDef.entityNames);
300872
301959
  updateDestructuredEntitiesParam(scopeDef);
@@ -300924,11 +302011,11 @@ var SbScopeManager = class extends EventEmitter5 {
300924
302011
  updateDestructuredEntitiesParam(scopeDef);
300925
302012
  return [...updatedFiles, filePath];
300926
302013
  }
300927
- renameScopeComponent({ newName, oldName, scopeName }) {
302014
+ renameScopeComponent({ newName, oldName, scopeName, componentFilePath }) {
300928
302015
  if (!oldName) {
300929
302016
  return this.addScopeComponent(scopeName, newName);
300930
302017
  }
300931
- const { scopeDefinition: scopeDef } = this.getScopeDefinitionAndFilePathByNameOrId({
302018
+ const { scopeDefinition: scopeDef, filePath: scopeFile } = this.getScopeDefinitionAndFilePathByNameOrId({
300932
302019
  identifier: scopeName,
300933
302020
  type: "name"
300934
302021
  });
@@ -300938,11 +302025,11 @@ var SbScopeManager = class extends EventEmitter5 {
300938
302025
  const componentTypeId = getScopeElementId(scopeDef.id, oldName);
300939
302026
  const filePath = this.sourceTracker.getElementToFilePath(componentTypeId);
300940
302027
  if (!filePath) {
300941
- return [];
302028
+ return this.resetScope(scopeFile);
300942
302029
  }
300943
302030
  const componentNode = this.sourceTracker.getElementToLocation(componentTypeId);
300944
302031
  if (!componentNode) {
300945
- return [];
302032
+ return this.resetScope(scopeFile);
300946
302033
  }
300947
302034
  const key2 = componentNode.get("key");
300948
302035
  if (key2) {
@@ -300958,6 +302045,10 @@ var SbScopeManager = class extends EventEmitter5 {
300958
302045
  this.sourceTracker.setElementToLocation(newComponentTypeId, componentNode);
300959
302046
  this.sourceTracker.setElementToFilePath(newComponentTypeId, filePath);
300960
302047
  updateDestructuredEntitiesParam(scopeDef);
302048
+ if (this.filePathsWithDuplicateComponentNames.has(componentFilePath)) {
302049
+ const reconciledFiles = this.reconcileBindPropertiesAndScopeDefinitions();
302050
+ return [...updatedFiles, ...reconciledFiles, filePath];
302051
+ }
300961
302052
  return [...updatedFiles, filePath];
300962
302053
  }
300963
302054
  getScopeUsage(ast, filePath) {
@@ -300968,6 +302059,7 @@ var SbScopeManager = class extends EventEmitter5 {
300968
302059
  buildScopeDestructuredUsageMap(ast, filePath, allScopeNames, this.scopeNameToScopeUsage);
300969
302060
  }
300970
302061
  reconcileBindPropertiesAndScopeDefinitions() {
302062
+ this.filePathsWithDuplicateComponentNames.clear();
300971
302063
  for (const [scopeName, scopeUsages] of Object.entries(this.scopeNameToScopeUsage)) {
300972
302064
  const { scopeDefinition: scopeDef } = this.getScopeDefinitionAndFilePathByNameOrId({
300973
302065
  identifier: scopeName,
@@ -300977,10 +302069,15 @@ var SbScopeManager = class extends EventEmitter5 {
300977
302069
  continue;
300978
302070
  }
300979
302071
  const missingComponents = /* @__PURE__ */ new Set();
300980
- for (const [_, usages] of Object.entries(scopeUsages)) {
302072
+ const seenNames = /* @__PURE__ */ new Set();
302073
+ for (const [filePath, usages] of Object.entries(scopeUsages)) {
300981
302074
  for (const usage of usages) {
300982
302075
  const bindNames = findBindComponentsInScopeUsage(usage);
300983
302076
  for (const bindName of bindNames) {
302077
+ if (seenNames.has(bindName)) {
302078
+ this.filePathsWithDuplicateComponentNames.add(filePath);
302079
+ }
302080
+ seenNames.add(bindName);
300984
302081
  if (!scopeDef.entityNames.includes(bindName)) {
300985
302082
  missingComponents.add(bindName);
300986
302083
  }
@@ -301594,7 +302691,7 @@ var SourceTracker = class {
301594
302691
  * And you want to update the `accessor` property, you can use this function to do so, passing a property path like
301595
302692
  * `columns.name.accessor`, rather than the entire columns object.
301596
302693
  */
301597
- setNestedAttribute = ({ openingTag, property, value: value2, type: type2 }) => {
302694
+ setNestedAttribute = ({ openingTag, property, info }) => {
301598
302695
  const [parent, ...paths] = splitJSPathAdvanced(property, []);
301599
302696
  let parentAttr = openingTag.get("attributes").find((attr) => attr.isJSXAttribute() && attr.node.name.name === parent);
301600
302697
  if (!parentAttr && parent) {
@@ -301611,14 +302708,13 @@ var SourceTracker = class {
301611
302708
  writeNestedProperty({
301612
302709
  node: currentNode,
301613
302710
  paths,
301614
- value: value2,
301615
- type: type2
302711
+ info
301616
302712
  });
301617
302713
  };
301618
- setAttribute = (openingTag, property, value2, type2) => {
302714
+ setAttribute = (openingTag, property, info) => {
301619
302715
  const paths = splitJSPath(property);
301620
302716
  if (Array.isArray(paths) && paths.length > 1) {
301621
- this.setNestedAttribute({ openingTag, property, value: value2, type: type2 });
302717
+ this.setNestedAttribute({ openingTag, property, info });
301622
302718
  return;
301623
302719
  }
301624
302720
  let attr = openingTag.get("attributes").find((attr2) => attr2.isJSXAttribute() && attr2.node.name.name === property);
@@ -301627,6 +302723,7 @@ var SourceTracker = class {
301627
302723
  import_types22.default.jsxAttribute(import_types22.default.jsxIdentifier(property), import_types22.default.stringLiteral(""))
301628
302724
  ])[0];
301629
302725
  }
302726
+ const value2 = info.value;
301630
302727
  if (value2 === void 0 || typeof value2 === "string" && value2 === "") {
301631
302728
  attr.remove();
301632
302729
  return;
@@ -301636,7 +302733,7 @@ var SourceTracker = class {
301636
302733
  throw new Error("Attribute name not found");
301637
302734
  }
301638
302735
  const attrValue = attr.get("value");
301639
- const jsxAttribute = generateJSXAttribute(property, Property.Any(value2, type2));
302736
+ const jsxAttribute = generateJSXAttribute(property, info);
301640
302737
  if (jsxAttribute.value) {
301641
302738
  attrValue.replaceWith(jsxAttribute.value);
301642
302739
  }
@@ -301653,10 +302750,10 @@ var SourceTracker = class {
301653
302750
  element.node.closingElement = import_types22.default.jsxClosingElement(import_types22.default.jsxIdentifier(getTagName(openingElement.node.name) ?? ""));
301654
302751
  }
301655
302752
  };
301656
- setProperty = async ({ source: source2, property, value: value2, type: type2 }) => {
302753
+ setProperty = async ({ source: source2, property, info }) => {
301657
302754
  await this.setProperties({
301658
302755
  source: source2,
301659
- changes: { [property]: { value: value2, type: type2 } }
302756
+ changes: { [property]: info }
301660
302757
  });
301661
302758
  };
301662
302759
  setProperties = async ({ source: source2, changes }) => {
@@ -301680,11 +302777,10 @@ var SourceTracker = class {
301680
302777
  if (!openingTag.isJSXOpeningElement()) {
301681
302778
  throw new Error(`Element ${source2.id} is not a JSXOpeningElement`);
301682
302779
  }
301683
- for (const [key2, { value: value2, type: type2 }] of Object.entries(changes)) {
301684
- const processedValue = value2;
301685
- const jsxAttribute = this.setAttribute(openingTag, key2, processedValue, type2);
301686
- if (type2 in REQUIRED_IMPORTS_BY_PROPERTY_TYPE) {
301687
- const requiredImports = REQUIRED_IMPORTS_BY_PROPERTY_TYPE[type2];
302780
+ for (const [key2, info] of Object.entries(changes)) {
302781
+ const jsxAttribute = this.setAttribute(openingTag, key2, info);
302782
+ if (info.type in REQUIRED_IMPORTS_BY_PROPERTY_TYPE) {
302783
+ const requiredImports = REQUIRED_IMPORTS_BY_PROPERTY_TYPE[info.type];
301688
302784
  if (requiredImports) {
301689
302785
  for (const { importName, importPath } of requiredImports) {
301690
302786
  if (!this.fileToMeta[fileName].imports[importName]) {
@@ -301700,7 +302796,7 @@ var SourceTracker = class {
301700
302796
  }
301701
302797
  }
301702
302798
  }
301703
- if (type2 === "EVENT" && jsxAttribute) {
302799
+ if (info.type === "EVENT" && jsxAttribute) {
301704
302800
  const referencedGlobalFunctions = getVariableReferences(jsxAttribute, GLOBAL_LIBRARY_NAMES);
301705
302801
  referencedGlobalFunctions.forEach((funcName) => {
301706
302802
  if (!this.fileToMeta[fileName].imports[funcName]) {
@@ -301715,7 +302811,7 @@ var SourceTracker = class {
301715
302811
  }
301716
302812
  });
301717
302813
  }
301718
- if (ATTRIBUTE_TYPES_WITH_STATE_ACCESS.includes(type2) && jsxAttribute) {
302814
+ if (ATTRIBUTE_TYPES_WITH_STATE_ACCESS.includes(info.type) && jsxAttribute) {
301719
302815
  const elementLocation = this.getElementToLocation(source2.id);
301720
302816
  const scopeImports = this.sbScopeManager.getAndUpdateScopeImportsForCodeSnippet({
301721
302817
  jsxAttribute,
@@ -301791,7 +302887,8 @@ var SourceTracker = class {
301791
302887
  const changedFiles = this.sbScopeManager.renameScopeComponent({
301792
302888
  oldName: hasNameAttribute ? oldName : void 0,
301793
302889
  newName,
301794
- scopeName
302890
+ scopeName,
302891
+ componentFilePath: filePath
301795
302892
  });
301796
302893
  changedFiles.forEach((file) => {
301797
302894
  this.changedFiles.add(file);
@@ -302499,13 +303596,12 @@ export default registerPage(Page, { name: "${name17}" });
302499
303596
  }
302500
303597
  };
302501
303598
  handleSetProperty = async (payload, writeFile8 = true) => {
302502
- const { element: { source: source2 }, property, value: { value: value2, type: type2 }, transaction } = payload;
303599
+ const { element: { source: source2 }, property, value: value2, transaction } = payload;
302503
303600
  this.trackTransaction(transaction?.id);
302504
303601
  await this.sourceTracker?.setProperty({
302505
303602
  source: source2,
302506
303603
  property,
302507
- value: value2,
302508
- type: type2
303604
+ info: value2
302509
303605
  });
302510
303606
  if (writeFile8) {
302511
303607
  const changes = await this.sourceTracker?.getAndFlushChanges() ?? [];
@@ -303271,7 +304367,7 @@ var LockService = class extends EventEmitter7 {
303271
304367
  }
303272
304368
  } catch (error) {
303273
304369
  if (error instanceof import_shared19.ConflictError) {
303274
- logger3.error(`[lock-service] Lock is already acquired by another user. Please try again later.`, getErrorMeta(error));
304370
+ logger3.error(`[lock-service] ${error.message}`);
303275
304371
  this.emit("statusChange", LockServiceStatus.FAILED_TO_ACQUIRE_LOCK);
303276
304372
  this.status = LockServiceStatus.FAILED_TO_ACQUIRE_LOCK;
303277
304373
  await this.shutdown();
@@ -303326,20 +304422,15 @@ var LockService = class extends EventEmitter7 {
303326
304422
  return true;
303327
304423
  }
303328
304424
  } catch (error) {
303329
- if (error instanceof import_shared19.ConflictError) {
303330
- logger3.error("[lock-service] Lock has been overridden by another user", getErrorMeta(error));
303331
- this.emit("statusChange", LockServiceStatus.LOCK_INVALID);
303332
- this.status = LockServiceStatus.LOCK_INVALID;
303333
- await this.shutdownAndExit();
303334
- } else if (error instanceof import_shared19.NotFoundError) {
303335
- logger3.error("[lock-service] Lock is not found, shutting down", getErrorMeta(error));
304425
+ if (error instanceof import_shared19.NotFoundError) {
304426
+ logger3.info(`[lock-service] Lock was removed, shutting down: ${error.message}`);
303336
304427
  this.emit("statusChange", LockServiceStatus.LOCK_INVALID);
303337
304428
  this.status = LockServiceStatus.LOCK_INVALID;
303338
304429
  await this.shutdownAndExit();
303339
304430
  } else {
303340
304431
  logger3.error("[lock-service] error checking and updating lock", getErrorMeta(error));
304432
+ throw error;
303341
304433
  }
303342
- throw error;
303343
304434
  }
303344
304435
  }
303345
304436
  this.status = LockServiceStatus.IDLE;
@@ -304128,7 +305219,7 @@ var fileSyncVitePlugin = (pluginParams, options8) => {
304128
305219
  }
304129
305220
  if (lockService) {
304130
305221
  lockService.on("statusChange", (status) => {
304131
- if (status === LockServiceStatus.FAILED_TO_ACQUIRE_LOCK || status === LockServiceStatus.RELEASING) {
305222
+ if (status === LockServiceStatus.RELEASING || status === LockServiceStatus.LOCK_INVALID) {
304132
305223
  socketManager.callEditorClients(async (socket) => {
304133
305224
  try {
304134
305225
  await socket.call.releasingLock();
@@ -304136,10 +305227,6 @@ var fileSyncVitePlugin = (pluginParams, options8) => {
304136
305227
  logger3.error("Failed to send releasingLock", getErrorMeta(err));
304137
305228
  }
304138
305229
  });
304139
- } else if (status === LockServiceStatus.LOCK_INVALID) {
304140
- sendError(makeServerError(new Error("Error renewing connection to editing session. Please refresh the page.")));
304141
- } else if (status === LockServiceStatus.LOCK_RELEASED) {
304142
- sendError(makeServerError(new Error("Editing session is no longer active. Please refresh the page or move to local mode.")));
304143
305230
  }
304144
305231
  });
304145
305232
  }
@@ -307541,7 +308628,7 @@ async function startVite({ app, httpServer: httpServer2, root: root2, mode, port
307541
308628
  };
307542
308629
  const isCustomBuildEnabled2 = await isCustomComponentsEnabled();
307543
308630
  const customFolder = path21.join(root2, "custom");
307544
- const cdnUrl = "https://assets-cdn.superblocks.com/library/1.99.99-next.2";
308631
+ const cdnUrl = "https://assets-cdn.superblocks.com/library/2.0.0-next.10";
307545
308632
  const env3 = loadEnv(mode, root2, "");
307546
308633
  const hmrPort = await getFreePort();
307547
308634
  const hmrOptions = {
@@ -313873,7 +314960,7 @@ var templates = {
313873
314960
  "shim-loader.mjs": 'import path from "path";\nimport { pathToFileURL } from "url";\n\nconst overrideMap = {\n "@superblocksteam/library": "./dist/superblocks-library-shim/index.js",\n};\n\nexport async function resolve(specifier, context, nextResolve) {\n if (overrideMap[specifier]) {\n const fullPath = path.resolve(overrideMap[specifier]);\n return {\n shortCircuit: true,\n url: pathToFileURL(fullPath).href,\n };\n }\n\n return nextResolve(specifier, context);\n}\n',
313874
314961
  "src/do-eval-to-sdk.ts": 'import fs from "fs";\nimport path from "path";\nimport { fileURLToPath } from "url";\n\n// finds all JavaScript files in the `dist/apis-to-transform` directory,\n// imports each module, converts its JSON representation to SDK,\n// and outputs a JSON map with filenames as keys and SDK content as values.\n\nasync function main() {\n const __filename = fileURLToPath(import.meta.url);\n const __dirname = path.dirname(__filename);\n\n const apisDir = path.resolve(__dirname, "./to-sdk");\n\n const files = fs.readdirSync(apisDir);\n\n const jsFiles = files.filter(\n (file) => file.endsWith(".js") && file !== "__template__.js",\n );\n\n const results: Record<string, string> = {};\n\n for (const jsFile of jsFiles) {\n const filePath = path.join(apisDir, jsFile);\n const absolutePath = path.resolve(filePath);\n\n try {\n const fileUrl = new URL(`file://${absolutePath}`);\n const module = await import(fileUrl.href);\n\n const defaultExport = module.default;\n\n if (defaultExport && typeof defaultExport.toSDK === "function") {\n const sdkData = await defaultExport.toSDK();\n\n results[jsFile] = sdkData;\n } else {\n console.warn(`${jsFile}: Default export doesn\'t have a toSDK method`);\n }\n } catch (error) {\n console.error(`Error processing ${jsFile}:`, error);\n }\n }\n\n console.log(JSON.stringify(results, null, 2));\n}\n\nmain().catch((error) => {\n console.error("Error:", error);\n process.exit(1);\n});\n',
313875
314962
  "src/do-eval-to-yaml.ts": 'import fs from "fs";\nimport path from "path";\nimport { fileURLToPath } from "url";\nimport yaml from "yaml";\n\n// finds all JavaScript files in the `dist/apis-to-transform` directory,\n// imports each module, converts its JSON representation to YAML,\n// and outputs a JSON map with filenames as keys and YAML content as values.\n\nasync function main() {\n const __filename = fileURLToPath(import.meta.url);\n const __dirname = path.dirname(__filename);\n\n const apisDir = path.resolve(__dirname, "./to-yaml");\n\n const files = fs.readdirSync(apisDir);\n\n const jsFiles = files.filter((file) => file.endsWith(".js"));\n\n const results: Record<string, string> = {};\n\n for (const jsFile of jsFiles) {\n const filePath = path.join(apisDir, jsFile);\n const absolutePath = path.resolve(filePath);\n\n try {\n const fileUrl = new URL(`file://${absolutePath}`);\n const module = await import(fileUrl.href);\n\n const defaultExport = module.default;\n\n if (defaultExport && typeof defaultExport.toJSON === "function") {\n const jsonData = await defaultExport.toJSON();\n\n const yamlContent = yaml.stringify(jsonData);\n\n results[jsFile] = yamlContent;\n } else {\n console.warn(`${jsFile}: Default export doesn\'t have a toJSON method`);\n }\n } catch (error) {\n console.error(`Error processing ${jsFile}:`, error);\n }\n }\n\n console.log(JSON.stringify(results, null, 2));\n}\n\nmain().catch((error) => {\n console.error("Error:", error);\n process.exit(1);\n});\n',
313876
- "src/superblocks-library-shim/index.ts": '/* eslint-disable */\nimport typescript_eslint_parser from "@typescript-eslint/parser";\nimport { CallExpression, ExpressionStatement, FunctionExpression, Node, parse, Program, UnaryExpression } from "acorn";\nimport { ESLint } from "eslint";\nimport { format } from "prettier";\n\nexport type JsonValue =\n | undefined\n | null\n | number\n | string\n | boolean\n | Array<JsonValue>\n | { [key: string]: JsonValue };\nexport type State = { [key: string]: JsonValue };\nexport type Binding<T> = T | ((state: State) => T);\n\nexport const code = (\n fn: string,\n options: { iife?: boolean } = { iife: false },\n): string => {\n // Parse the function string\n const ast = parse(fn, {\n ecmaVersion: "latest",\n sourceType: "script",\n });\n\n // Find the function declaration/expression\n let functionNode;\n\n // Walk through the AST to find the function\n if (ast.body[0].type === "FunctionDeclaration") {\n // Function declaration: function name() {}\n functionNode = ast.body[0];\n } else if (\n ast.body[0].type === "ExpressionStatement" &&\n (ast.body[0].expression.type === "FunctionExpression" ||\n ast.body[0].expression.type === "ArrowFunctionExpression")\n ) {\n // Function expression: const name = function() {} or const name = () => {}\n functionNode = ast.body[0].expression;\n } else if (\n ast.body[0].type === "VariableDeclaration" &&\n (ast.body[0].declarations[0]?.init?.type === "FunctionExpression" ||\n ast.body[0].declarations[0]?.init?.type === "ArrowFunctionExpression")\n ) {\n // Variable declaration: const name = function() {} or const name = () => {}\n functionNode = ast.body[0].declarations[0]?.init;\n }\n\n if (!functionNode) {\n throw new Error("Could not find a function in the provided string");\n }\n\n // Get the function body\n const body = functionNode.body;\n\n // Extract the source from the original string\n // For arrow functions with an expression body, we return the expression\n if (\n functionNode.type === "ArrowFunctionExpression" &&\n body.type !== "BlockStatement"\n ) {\n // Arrow function with expression body: () => 42\n const expressionCode = fn.substring(fn.indexOf("=>") + 2).trim();\n return options.iife\n ? `(() => ${expressionCode})()`\n : `return ${expressionCode}`;\n }\n\n // For functions with block bodies, extract content between braces\n const start = body.start + 1; // Skip the opening brace\n const end = body.end - 1; // Skip the closing brace\n\n // Get the raw body content\n const rawBodyLines = fn.substring(start, end).split("\\n");\n\n if (rawBodyLines.length <= 1) {\n // Single line body, just trim it\n const bodyCode = rawBodyLines[0].trim();\n\n if (options.iife) {\n const paramStart = fn.indexOf("(");\n const paramEnd = fn.indexOf(")", paramStart);\n const params = fn.substring(paramStart, paramEnd + 1);\n return `(${params} => { ${bodyCode} })()`;\n }\n\n return bodyCode;\n }\n\n // For multi-line bodies, normalize indentation\n // Find the minimum indentation level (ignoring empty lines)\n let minIndent = Infinity;\n for (const line of rawBodyLines) {\n const trimmedLine = line.trimStart();\n if (trimmedLine.length > 0) {\n const indent = line.length - trimmedLine.length;\n minIndent = Math.min(minIndent, indent);\n }\n }\n\n // Remove the common indentation from each line\n const normalizedLines = rawBodyLines.map((line) => {\n if (line.trimStart().length === 0) return "";\n return line.substring(minIndent);\n });\n\n // Join the normalized lines\n const bodyCode = normalizedLines\n .join(" ")\n .replace(/\\s{2,}/g, " ")\n .trim();\n\n if (options.iife) {\n const paramStart = fn.indexOf("(");\n const paramEnd = fn.indexOf(")", paramStart);\n const params = fn.substring(paramStart, paramEnd + 1);\n return `(${params} => { ${bodyCode} })()`;\n }\n\n return bodyCode;\n};\n\nasync function binding(binding: Binding<string>): Promise<string> {\n if (typeof binding === "function") {\n return await toJS(binding);\n }\n\n return binding;\n}\n\ninterface Codec {\n toJSON(): Promise<JsonValue>;\n toSDK(entities: string[]): Promise<string>;\n}\n\nexport abstract class Block implements Codec {\n protected name: string;\n\n constructor(name: string) {\n this.name = name;\n }\n\n public abstract toJSON(): Promise<JsonValue>;\n public abstract toSDK(entities: string[]): Promise<string>;\n\n public static fromJSON(json: any, entities: string[]): Block {\n if (json?.step) {\n return Integration.fromJSON(json, entities);\n }\n\n if ("conditional" in json) {\n return Conditional.fromJSON(json, entities);\n }\n\n if ("loop" in json) {\n return Loop.fromJSON(json, entities);\n }\n\n if ("parallel" in json) {\n return Parallel.fromJSON(json, entities);\n }\n\n if ("tryCatch" in json) {\n return TryCatch.fromJSON(json, entities);\n }\n\n if ("variables" in json) {\n return Variables.fromJSON(json, entities);\n }\n\n if ("throw" in json) {\n return Throw.fromJSON(json, entities);\n }\n\n if ("return" in json) {\n return Return.fromJSON(json, entities);\n }\n\n throw new Error("mysterious block");\n }\n}\n\nexport abstract class Integration extends Block {\n protected integration: string;\n\n constructor(name: string, integration: string) {\n super(name);\n\n this.integration = integration;\n }\n\n public abstract toJSON(): Promise<JsonValue>;\n public abstract toSDK(entities: string[]): Promise<string>;\n\n public static fromJSON(json: any, entities: string[]): Block {\n if ("javascript" in json?.step) {\n return JavaScript.fromJSON(json, entities);\n }\n\n if ("python" in json?.step) {\n return Python.fromJSON(json, entities);\n }\n\n if ("postgres" in json?.step) {\n return PostgreSQL.fromJSON(json, entities);\n }\n\n if ("databricks" in json?.step) {\n return Databricks.fromJSON(json, entities);\n }\n\n if ("email" in json?.step) {\n return Email.fromJSON(json, entities);\n }\n\n if ("restapi" in json?.step) {\n return RestApi.fromJSON(json, entities);\n }\n\n throw new Error("mysterious integration");\n }\n}\n\nexport class Python extends Integration {\n private fn: string;\n\n constructor(name: string, config: {\n fn: string;\n }) {\n super(name, "python");\n\n this.fn = config.fn;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: "python",\n python: {\n body: this.fn,\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Python("${this.name}", { fn: ${this.fn} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Python {\n return new Python(json?.name, {\n fn: json?.step?.python?.body,\n });\n }\n}\n\nexport class JavaScript extends Integration {\n private fn: (_: State) => JsonValue;\n\n constructor(\n name: string,\n config: {\n fn: (_: State) => JsonValue;\n },\n ) {\n super(name, "javascript");\n\n this.fn = config.fn;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: "javascript",\n javascript: {\n body: await toJSBody(this.fn, { block: false, function: true }),\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new JavaScript("${this.name}", { fn: ${signature(code(this.fn.toString()), entities)} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): JavaScript {\n const args = [json?.step?.javascript?.body]\n const references = referenced(json?.step?.javascript?.body, entities)\n\n if (references.length > 0) {\n args.unshift(`{ ${references.join(", ")} }`)\n }\n\n return new JavaScript(json?.name, {\n fn: new Function(...args) as (_: State) => JsonValue,\n });\n }\n}\n\n// TODO(Frank): There is way too much in common between Snowflake and PostgreSQL. Need to add a parent class for these.\nexport class Snowflake extends Integration {\n private statement: Binding<string>;\n\n constructor(\n name: string,\n integration: string,\n config: {\n statement: Binding<string>;\n },\n ) {\n super(name, integration);\n\n this.statement = config.statement;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: this.integration,\n snowflake: {\n body: await binding(this.statement),\n usePreparedSql: false,\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Snowflake("${this.name}", "${this.integration}", { statement: ${typeof this.statement === "function" ? signatureV2(await toJSBody(this.statement), entities) : `"${this.statement}"`} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Snowflake {\n return new Snowflake(json?.name, json?.step?.integration, {\n statement: fromBinding(\n json?.step?.snowflake?.body as string | undefined,\n entities,\n ),\n });\n }\n}\n\nexport class PostgreSQL extends Integration {\n private statement: Binding<string>;\n\n constructor(\n name: string,\n integration: string,\n config: {\n statement: Binding<string>;\n },\n ) {\n super(name, integration);\n\n this.statement = config.statement;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: this.integration,\n postgres: {\n body: await binding(this.statement),\n usePreparedSql: false,\n operation: "run_sql",\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new PostgreSQL("${this.name}", "${this.integration}", { statement: ${typeof this.statement === "function" ? signatureV2(await toJSBody(this.statement), entities) : `"${this.statement}"`} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): PostgreSQL {\n return new PostgreSQL(json?.name, json?.step?.integration, {\n statement: fromBinding(\n json?.step?.postgres?.body as string | undefined,\n entities,\n ),\n });\n }\n}\n\nexport class RestApi extends Integration {\n private method: string;\n private url: Binding<string>;\n private headers?: { key: Binding<string>; value: Binding<string> }[];\n private params?: { key: Binding<string>; value: Binding<string> }[];\n private body?: Binding<string>;\n\n constructor(\n name: string,\n config: {\n method: string;\n url?: Binding<string>;\n headers?: { key: Binding<string>; value: Binding<string> }[];\n params?: { key: Binding<string>; value: Binding<string> }[];\n body?: Binding<string>;\n },\n ) {\n super(name, "restapi");\n\n this.method = config.method;\n this.url = config.url;\n this.headers = config.headers;\n this.params = config.params;\n this.body = config.body;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: "restapi",\n restapi: {\n httpMethod: this.method,\n ...(this.url ? { url: await binding(this.url) } : {}),\n ...(this.headers ? { headers: await Promise.all(this.headers.map(async (header) => ({ key: await binding(header.key), value: await binding(header.value) }))) } : {}),\n ...(this.params ? { params: await Promise.all(this.params.map(async (param) => ({ key: await binding(param.key), value: await binding(param.value) }))) } : {}),\n ...(this.body ? { body: await binding(this.body) } : {}),\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n const parts: string[] = [`method: "${this.method}"`];\n\n if (this.url) {\n parts.push(\n `url: ${\n typeof this.url === "function"\n ? signatureV2(await toJSBody(this.url), entities)\n : `"${this.url}"`\n }`,\n );\n }\n\n if (this.headers) {\n const headers = this.headers\n .map(async (h) =>\n `{ key: ${\n typeof h.key === "function"\n ? signatureV2(await toJSBody(h.key), entities)\n : `"${h.key}"`\n }, value: ${\n typeof h.value === "function"\n ? signatureV2(await toJSBody(h.value), entities)\n : `"${h.value}"`\n } }`,\n )\n .join(", ");\n parts.push(`headers: [${headers}]`);\n }\n\n if (this.params) {\n const params = this.params\n .map(async (p) =>\n `{ key: ${\n typeof p.key === "function"\n ? signatureV2(await toJSBody(p.key), entities)\n : `"${p.key}"`\n }, value: ${\n typeof p.value === "function"\n ? signatureV2(await toJSBody(p.value), entities)\n : `"${p.value}"`\n } }`,\n )\n .join(", ");\n parts.push(`params: [${params}]`);\n }\n\n if (this.body) {\n parts.push(\n `body: ${\n typeof this.body === "function"\n ? signatureV2(await toJSBody(this.body), entities)\n : JSON.stringify(this.body)\n }`,\n );\n }\n\n return `new RestApi("${this.name}", { ${parts.join(", ")} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): RestApi {\n return new RestApi(json?.name, {\n method: json?.step?.restapi?.httpMethod,\n url: fromBinding(json?.step?.restapi?.url, entities),\n headers: json?.step?.restapi?.headers?.map((header: any) => ({ key: fromBinding(header.key, entities), value: fromBinding(header.value, entities) })),\n params: json?.step?.restapi?.params?.map((param: any) => ({ key: fromBinding(param.key, entities), value: fromBinding(param.value, entities) })),\n body: fromBinding(json?.step?.restapi?.body, entities),\n });\n }\n}\n\nexport class Email extends Integration {\n private subject: Binding<string>;\n private from: Binding<string>; // comma separated list\n private to: Binding<string>; // comma separated list\n private cc?: Binding<string>; // comma separated list\n private bcc?: Binding<string>; // comma separated list\n private body: Binding<string>;\n\n constructor(\n name: string,\n config: {\n from: Binding<string>;\n to: Binding<string>;\n subject: Binding<string>;\n cc?: Binding<string>;\n bcc?: Binding<string>;\n body?: Binding<string>;\n },\n ) {\n super(name, "email");\n\n this.from = config.from;\n this.to = config.to;\n this.subject = config.subject;\n this.cc = config.cc;\n this.bcc = config.bcc;\n this.body = config.body;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: "email",\n email: {\n ...(this.from ? { emailFrom: await binding(this.from) } : {}),\n ...(this.to ? { emailTo: await binding(this.to) } : {}),\n ...(this.cc ? { emailCc: await binding(this.cc) } : {}),\n ...(this.bcc ? { emailBcc: await binding(this.bcc) } : {}),\n ...(this.subject ? { emailSubject: await binding(this.subject) } : {}),\n ...(this.body ? { emailBody: await binding(this.body) } : {}),\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n const parts: string[] = [];\n\n if (this.from) {\n parts.push(\n `from: ${\n typeof this.from === "function"\n ? signatureV2(code(this.from.toString()), entities)\n : `"${this.from}"`\n }`,\n );\n }\n\n if (this.to) {\n parts.push(\n `to: ${\n typeof this.to === "function"\n ? signatureV2(code(this.to.toString()), entities)\n : `"${this.to}"`\n }`,\n );\n }\n\n if (this.cc) {\n parts.push(\n `cc: ${\n typeof this.cc === "function"\n ? signatureV2(code(this.cc.toString()), entities)\n : `"${this.cc}"`\n }`,\n );\n }\n\n if (this.bcc) {\n parts.push(\n `bcc: ${\n typeof this.bcc === "function"\n ? signatureV2(code(this.bcc.toString()), entities)\n : `"${this.bcc}"`\n }`,\n );\n }\n\n if (this.subject) {\n parts.push(\n `subject: ${\n typeof this.subject === "function"\n ? signatureV2(code(this.subject.toString()), entities)\n : `"${this.subject}"`\n }`,\n );\n }\n\n if (this.body) {\n parts.push(\n `body: ${\n typeof this.body === "function"\n ? signatureV2(code(this.body.toString()), entities)\n : `"${this.body}"`\n }`,\n );\n }\n\n return `new Email("${this.name}", { ${parts.join(", ")} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Email {\n return new Email(json?.name, {\n from: fromBinding(json?.step?.email?.emailFrom, entities),\n to: fromBinding(json?.step?.email?.emailTo, entities),\n subject: fromBinding(json?.step?.email?.emailSubject, entities),\n body: fromBinding(json?.step?.email?.emailBody, entities),\n cc: json?.step?.email?.emailCc ? fromBinding(json?.step?.email?.emailCc, entities) : undefined,\n bcc: json?.step?.email?.emailBcc ? fromBinding(json?.step?.email?.emailBcc, entities) : undefined,\n });\n }\n}\n\nexport class Databricks extends Integration {\n private statement: Binding<string>;\n\n constructor(\n name: string,\n integration: string,\n config: {\n statement: Binding<string>;\n },\n ) {\n super(name, integration);\n\n this.statement = config.statement;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: this.integration,\n databricks: {\n runSql: {\n sqlBody: await binding(this.statement),\n useParameterized: false,\n },\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Databricks("${this.name}", "${this.integration}", { statement: ${typeof this.statement === "function" ? signatureV2(await toJSBody(this.statement), entities) : `"${this.statement}"`} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Databricks {\n return new Databricks(json?.name, json?.step?.integration, {\n statement: fromBinding(\n json?.step?.databricks?.runSql?.sqlBody as string,\n entities,\n ),\n });\n }\n}\n\nexport type Condition = {\n when: Binding<boolean>;\n then: Block[];\n};\n\nasync function conditionToSDK(condition: Condition, entities: string[]): Promise<string> {\n return `{ when: ${typeof condition.when === "function" ? signatureV2(await toJSBody(condition.when), entities) : condition.when}, then: [${(await Promise.all(condition.then.map(async (block) => await block.toSDK(entities)))).join(",")}] }`\n}\n\nexport type Conditions = {\n if: Condition;\n elif?: Condition[];\n else?: Block[];\n};\n\nexport class Conditional extends Block {\n public conditions: Conditions;\n\n constructor(name: string, config: Conditions) {\n super(name);\n\n this.conditions = config;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n conditional: {\n if: {\n condition: await toJS<boolean>(this.conditions.if.when),\n blocks: await Promise.all(this.conditions.if.then.map(async (block) => await block.toJSON())),\n },\n ...await (async () =>\n this.conditions.elif\n ? {\n elseIf: await Promise.all(this.conditions.elif.map(async (condition) => ({\n condition: await toJS<boolean>(condition.when),\n blocks: await Promise.all(condition.then.map(async (block) => await block.toJSON())),\n }))),\n }\n : { elseIf: [] })(),\n else: this.conditions.else ? {\n blocks: await Promise.all(this.conditions.else.map(async (block) => await block.toJSON()))\n } : undefined,\n },\n };\n }\n\n public static fromJSON(json: any, entities: string[]): Conditional {\n return new Conditional(json?.name, {\n if: {\n when: fromJS<boolean>(json?.conditional?.if?.condition, entities),\n then: json?.conditional?.if?.blocks.map((block: any) =>\n Block.fromJSON(block, entities),\n ),\n },\n elif: json?.conditional?.elseIf ? json?.conditional?.elseIf?.map((condition: any) => ({\n when: fromJS<boolean>(condition.condition, entities),\n then: condition.blocks.map((block: any) => Block.fromJSON(block, entities)),\n })) : [],\n else: json?.conditional?.else ? json?.conditional?.else?.blocks?.map((block: any) => Block.fromJSON(block, entities)) : [],\n });\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Conditional("${this.name}", { if: ${await conditionToSDK(this.conditions.if, entities)}, elif: [${this.conditions.elif ? (await Promise.all(this.conditions.elif?.map(async (condition) => await conditionToSDK(condition, entities)))).join(",") : \'\'}], else: ${this.conditions.else ? (await Promise.all(this.conditions.else?.map(async (block) => await block.toSDK(entities)))).join(",") : "undefined"} })`;\n }\n}\n\nexport class Parallel extends Block {\n private over: Binding<JsonValue[]>;\n private blocks: Block[];\n private variables: { item: string };\n\n constructor(\n name: string,\n config: {\n over: Binding<JsonValue[]>;\n variables: { item: string };\n blocks: Block[];\n },\n ) {\n super(name);\n\n this.over = config.over;\n this.blocks = config.blocks;\n this.variables = config.variables;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n parallel: {\n dynamic: {\n blocks: await Promise.all(this.blocks?.map(async (block) => await block.toJSON())),\n paths: await toJS<JsonValue[]>(this.over),\n variables: this.variables,\n },\n wait: "WAIT_ALL",\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Parallel("${this.name}", { over: ${typeof this.over === "function" ? signatureV2(await toJSBody(this.over), entities) : this.over}, variables: ${this.variables}, blocks: ${await Promise.all(this.blocks.map(async (block) => await block.toSDK(entities)).join(","))} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Parallel {\n return new Parallel(json?.name, {\n over: fromJS<JsonValue[]>(json?.parallel?.dynamic?.paths, entities),\n variables: {\n item: json?.parallel?.dynamic?.variables?.item,\n },\n blocks: json?.parallel?.dynamic?.blocks.map((block: any) =>\n Block.fromJSON(block, entities),\n ),\n });\n }\n}\n\nexport class Loop extends Block {\n private over: Binding<JsonValue[]>; // NOTE(Frank): Only for each loops are supported at the moment.\n private blocks: Block[];\n private variables: { item: string; index: string };\n\n constructor(\n name: string,\n config: {\n over: Binding<JsonValue[]>;\n variables: { item: string; index: string };\n blocks: Block[];\n },\n ) {\n super(name);\n\n this.over = config.over;\n this.variables = config.variables;\n this.blocks = config.blocks;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n loop: {\n range: await toJS<JsonValue[]>(this.over),\n type: "TYPE_FOREACH",\n variables: this.variables,\n blocks: await Promise.all(this.blocks.map(async (block) => await block.toJSON())),\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Loop("${this.name}", { over: ${typeof this.over === "function" ? signatureV2(await toJSBody(this.over), entities) : this.over}, variables: ${this.variables}, blocks: ${await Promise.all(this.blocks.map(async (block) => await block.toSDK(entities)).join(","))} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Loop {\n return new Loop(json?.name, {\n over: fromJS<JsonValue[]>(json?.loop?.range, entities),\n variables: {\n item: json?.loop?.variables?.item,\n index: json?.loop?.variables?.index,\n },\n blocks: json?.loop?.blocks.map((block: any) =>\n Block.fromJSON(block, entities),\n ),\n });\n }\n}\n\nexport class Variables extends Block {\n private variables: { key: string, value: Binding<JsonValue> }[];\n\n constructor(\n name: string,\n variables: { key: string, value: Binding<JsonValue> }[],\n ) {\n super(name);\n\n this.variables = variables;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n variables: {\n items: await Promise.all(this.variables.map(async (variable) => {\n return {\n key: variable.key,\n value: await toJS<JsonValue>(variable.value),\n type: "TYPE_SIMPLE",\n mode: "MODE_READWRITE",\n };\n }))\n },\n };\n }\n \n public async toSDK(entities: string[]): Promise<string> {\n return `new Variables("${this.name}", [${this.variables?.map((variable) => `{ key: "${variable.key}", value: ${typeof variable.value === "function" ? signature(code(variable.value.toString(), { iife: true }), entities) : variable.value} }`).join(",")}])`;\n }\n\n public static fromJSON(json: any, entities: string[]): Variables {\n return new Variables(json?.name, json?.variables?.items?.map((variable: any) => ({\n key: variable.key,\n value: fromBinding(variable.value, entities),\n })));\n }\n}\n\nexport class TryCatch extends Block {\n private try: Block[];\n private catch: Block[];\n private finally?: Block[];\n private variables: { error: string };\n\n constructor(\n name: string,\n config: {\n try: Block[];\n catch: Block[];\n finally?: Block[];\n variables: { error: string };\n },\n ) {\n super(name);\n\n this.try = config.try;\n this.catch = config.catch;\n this.finally = config.finally;\n this.variables = config.variables;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n tryCatch: {\n try: { blocks: await Promise.all(this.try.map(async (block) => await block.toJSON())) },\n catch: { blocks: await Promise.all(this.catch.map(async (block) => await block.toJSON())) },\n finally: { blocks: this.finally ? await Promise.all(this.finally.map(async (block) => await block.toJSON())) : [] },\n variables: this.variables,\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new TryCatch("${this.name}", { try: ${await Promise.all(this.try.map(async (block) => await block.toSDK(entities)).join(","))}, catch: ${await Promise.all(this.catch.map(async (block) => await block.toSDK(entities)).join(","))}, finally: ${this.finally?.map(async (block) => await block.toSDK(entities)).join(", ")} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): TryCatch {\n return new TryCatch(json?.name, {\n try: json?.tryCatch?.try.blocks.map((block: any) => Block.fromJSON(block, entities)),\n catch: json?.tryCatch?.catch.blocks.map((block: any) => Block.fromJSON(block, entities)),\n finally: json?.tryCatch?.finally?.blocks.map((block: any) => Block.fromJSON(block, entities)),\n variables: {\n error: json?.tryCatch?.variables?.error,\n },\n });\n }\n}\n\nexport class Throw extends Block {\n private error: Binding<JsonValue>;\n\n constructor(\n name: string,\n config: {\n error: Binding<JsonValue>;\n },\n ) {\n super(name);\n\n this.error = config.error;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n throw: {\n error: await toJS(this.error),\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Throw("${this.name}", { error: ${typeof this.error === "function" ? signature(code(this.error.toString()), entities) : JSON.stringify(this.error)} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Throw {\n return new Throw(json?.name, {\n error: fromJS(json?.throw?.error, entities),\n });\n }\n}\n\nexport class Return extends Block {\n private data: Binding<JsonValue>;\n\n constructor(\n name: string,\n config: {\n data: Binding<JsonValue>;\n },\n ) {\n super(name);\n\n this.data = config.data;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n return: {\n data: await toJS(this.data),\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Return("${this.name}", { data: ${typeof this.data === "function" ? signature(code(this.data.toString()), entities) : JSON.stringify(this.data)} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Return {\n return new Return(json?.name, {\n data: fromJS(json?.return?.data, entities),\n });\n }\n}\n\nexport class Api {\n private blocks: Block[];\n private name: string;\n\n constructor(name: string, blocks: Block[]) {\n this.name = name;\n this.blocks = blocks;\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n const imports =\n "import { Api, JavaScript, Python, PostgreSQL, Snowflake, Databricks, Conditional, Parallel, Loop, TryCatch, Variables, Throw, Return } from \'@superblocksteam/library\'";\n return `${imports}\\n\\nexport default new Api("${this.name}", [${(await Promise.all(this.blocks.map(async (block) => await block.toSDK(entities)))).join(",")}])`;\n }\n\n public static fromJSON(json: any, entities: string[]): Api {\n // NOTE(Frank): Would probs unmarshal this into the protobuf types and then do the conversion.\n return new Api(\n json?.metadata?.name as string,\n (json.blocks as any[]).map((block) => Block.fromJSON(block, entities)),\n );\n }\n\n public async toJSON(): Promise<JsonValue> {\n const api: {\n metadata: {\n name: string;\n timestamps: {\n updated: string;\n };\n };\n trigger: {\n application: {};\n };\n blocks: JsonValue[];\n } = {\n metadata: {\n name: this.name,\n timestamps: {\n updated: new Date().toISOString(),\n },\n },\n trigger: {\n application: {},\n },\n blocks: [],\n };\n\n api.blocks = await Promise.all(this.blocks.map(async (block) => await block.toJSON()));\n\n return api;\n }\n}\n\nfunction referenced(data: string, entities: string[]): string[] {\n return entities.reduce((acc: string[], entity: string) => {\n if (data.includes(entity)) {\n acc.push(entity);\n }\n return acc;\n }, []);\n}\n\nfunction signature(data: string, entities: string[]): string {\n return `({ ${referenced(data, entities).join(", ")} }) => {${data}}`;\n}\n\nfunction signatureV2(data: string, entities: string[]): string {\n return `({ ${referenced(data, entities).join(", ")} }) => ${data}`;\n}\n\n/**\n * Converts a string binding, which comprise 99% of dynamic integration fields, into a function returning an interpolated string.\n *\n * fromBinding("https://{{ \'goo\' + \'gle\' }}.com/{{ Dropdown1.value }}", [\'Dropdown1\']) -> ({ Dropdown1 }) => `https://${\'goo\' + \'gle\'}.com/${Dropdown1.value}`\n *\n * @param value - The value to convert.\n * @param entities - The master list of possible entities that could be referenced in the binding.\n *\n * @returns The converted value.\n */\nexport function fromBinding(value: string, entities: string[]): Binding<string> {\n if (!value) {\n return "";\n }\n\n const regex = /\\{\\{\\s*([^}]*)\\s*\\}\\}/g;\n const converted: string = value.replace(regex, (match, content) => `\\${${content.trim()}}`);\n\n // there were no bindings to convert\n if (converted === value) {\n return value;\n }\n\n const args: string[] = [`return \\`${converted}\\``]\n const references: string[] = referenced(converted, entities);\n\n // only add the arguments if we have references\n if (references.length > 0) {\n args.unshift(`{ ${references} }`);\n }\n\n return new Function(...args) as (_: State) => string;\n}\n\nasync function beautifyAndOptionallyCondense<T extends JsonValue>(value: ((state: State) => T), node: Node, options: { condense?: boolean, block?: boolean } = { condense: true, block: true }) {\n let start: number = node.start;\n let end: number = node.end;\n\n if (!options.block) {\n start += 1;\n end -= 1;\n }\n \n const beautified = await beautify(value.toString().slice(start, end))\n\n if (options.condense) {\n return beautified.replace(/\\s*\\n\\s*/g, \' \').replace(/\\s+/g, \' \').trim();\n }\n\n return beautified\n}\n\nfunction createAst(value: string): Program {\n return parse(value, {\n ecmaVersion: "latest",\n sourceType: "script",\n preserveParens: false,\n });\n}\n\nasync function toJSBody<T extends JsonValue>(value: ((state: State) => T), options: { block?: boolean, condense?: boolean, function?: boolean } = { block: true, condense: true, function: false }): Promise<string> {\n if (typeof value !== "function") {\n return `{{ ${JSON.stringify(value)} }}`\n }\n\n // parse the code\n const ast = createAst(value.toString());\n const program = ast.body[0];\n\n switch (program.type) {\n case "ExpressionStatement":\n const body = ((program as ExpressionStatement).expression as FunctionExpression).body;\n\n if (body.type === \'BlockStatement\') {\n return await beautifyAndOptionallyCondense(value, body, options)\n }\n\n return `${options.function ? "return " : ""}${value.toString().slice(body.start, body.end)}`\n case "FunctionDeclaration":\n let contents = value.toString().slice(program.body.start, program.body.end)\n\n if (program.body.type !== \'BlockStatement\') {\n return contents\n }\n \n if (!options.function && program.body.body.length === 1 && program.body.body[0].type === \'ReturnStatement\') {\n return value.toString().slice(program.body.body[0].argument.start, program.body.body[0].argument.end)\n }\n\n return await beautifyAndOptionallyCondense(value, program.body, options)\n\n default:\n throw new Error("you found a case we haven\'t handled yet")\n }\n}\n\nexport async function toJS<T extends JsonValue>(value: Binding<T>): Promise<string> {\n if (typeof value !== "function") {\n return `{{ ${JSON.stringify(value)} }}`\n }\n\n const body = await toJSBody(value)\n return `{{ (() => ${body})() }}`\n}\n\nexport function fromJS<T extends JsonValue>(\n value: string,\n entities: string[] = [],\n): Binding<T> {\n // determine if there are entities referenced in the value\n const refs = referenced(value, entities).join(", ")\n\n\n // remove any surrounding whitespace\n value = value.trim()\n\n // require bindings\n if (!value.startsWith("{{") || !value.endsWith("}}")) {\n throw new Error("bindings must always be wrapped in double curly braces");\n }\n\n // remove the double curly braces and trim whitespace\n value = value.slice(2, -2).trim();\n\n let unaryOps: string[] = [];\n let call = (createAst(value).body[0] as ExpressionStatement).expression;\n\n while (call?.type === \'UnaryExpression\') {\n unaryOps.push((call as UnaryExpression).operator);\n call = (call as unknown as UnaryExpression).argument as CallExpression;\n }\n \n const fn = (call as CallExpression).callee;\n let body = value;\n let prefix = "return ";\n\n // handle iife\n if (fn?.type === "ArrowFunctionExpression") {\n // i\'m not happy with this but I don\'t see another immediate way to handle this.\n // this will result in a correct result but one that isn\'t idemopotent.\n if (unaryOps.length > 0) {\n return new Function(`{ ${refs} }`, `${prefix}${body}`) as (_: State) => T;\n }\n\n\n body = value.slice(fn.body.start, fn.body.end)\n\n if (fn.body.type === \'BlockStatement\') {\n // drop the opening "{" and closing "}"\n body = body.slice(1, -1)\n prefix = ""\n } \n } else if (refs.length === 0) {\n // we\'re not an iife nor do we have references.\n // we might have to revisit this implementation since this technically reduces to a static value down to it\'s most minimal form.\n return eval(value) as T\n }\n\n // we\'re either an iife or a static value with refs.\n return new Function(`{ ${refs} }`, `${prefix}${body}`) as (_: State) => T;\n}\n\nexport async function beautify(code: string): Promise<string> {\n const eslint = new ESLint({\n fix: true,\n overrideConfigFile: true,\n baseConfig: {\n languageOptions: {\n parser: typescript_eslint_parser,\n parserOptions: {\n ecmaVersion: 2020,\n sourceType: "module",\n },\n },\n rules: {\n "arrow-body-style": "error",\n },\n },\n });\n\n code = (await eslint.lintText(code))[0]?.output || code;\n\n return await format(code, {\n parser: "typescript",\n tabWidth: 2,\n // singleQuote: true,\n trailingComma: "none",\n semi: true,\n bracketSpacing: true,\n arrowParens: "always",\n bracketSameLine: false,\n embeddedLanguageFormatting: "auto",\n quoteProps: "as-needed",\n insertPragma: false,\n requirePragma: false,\n useTabs: false,\n endOfLine: "auto",\n arrowFunctionParentheses: "always",\n // plugins: ["prettier-plugin-organize-imports"],\n });\n}\n',
314963
+ "src/superblocks-library-shim/index.ts": '/* eslint-disable */\nimport typescript_eslint_parser from "@typescript-eslint/parser";\nimport { CallExpression, ExpressionStatement, FunctionExpression, Node, parse, Program, UnaryExpression } from "acorn";\nimport { ESLint } from "eslint";\nimport { format } from "prettier";\n\nexport type JsonValue =\n | undefined\n | null\n | number\n | string\n | boolean\n | Array<JsonValue>\n | { [key: string]: JsonValue };\nexport type State = { [key: string]: JsonValue };\nexport type Binding<T> = T | ((state: State) => T);\n\nexport const code = (\n fn: string,\n options: { iife?: boolean } = { iife: false },\n): string => {\n // Parse the function string\n const ast = parse(fn, {\n ecmaVersion: "latest",\n sourceType: "script",\n });\n\n // Find the function declaration/expression\n let functionNode;\n\n // Walk through the AST to find the function\n if (ast.body[0].type === "FunctionDeclaration") {\n // Function declaration: function name() {}\n functionNode = ast.body[0];\n } else if (\n ast.body[0].type === "ExpressionStatement" &&\n (ast.body[0].expression.type === "FunctionExpression" ||\n ast.body[0].expression.type === "ArrowFunctionExpression")\n ) {\n // Function expression: const name = function() {} or const name = () => {}\n functionNode = ast.body[0].expression;\n } else if (\n ast.body[0].type === "VariableDeclaration" &&\n (ast.body[0].declarations[0]?.init?.type === "FunctionExpression" ||\n ast.body[0].declarations[0]?.init?.type === "ArrowFunctionExpression")\n ) {\n // Variable declaration: const name = function() {} or const name = () => {}\n functionNode = ast.body[0].declarations[0]?.init;\n }\n\n if (!functionNode) {\n throw new Error("Could not find a function in the provided string");\n }\n\n // Get the function body\n const body = functionNode.body;\n\n // Extract the source from the original string\n // For arrow functions with an expression body, we return the expression\n if (\n functionNode.type === "ArrowFunctionExpression" &&\n body.type !== "BlockStatement"\n ) {\n // Arrow function with expression body: () => 42\n const expressionCode = fn.substring(fn.indexOf("=>") + 2).trim();\n return options.iife\n ? `(() => ${expressionCode})()`\n : `return ${expressionCode}`;\n }\n\n // For functions with block bodies, extract content between braces\n const start = body.start + 1; // Skip the opening brace\n const end = body.end - 1; // Skip the closing brace\n\n // Get the raw body content\n const rawBodyLines = fn.substring(start, end).split("\\n");\n\n if (rawBodyLines.length <= 1) {\n // Single line body, just trim it\n const bodyCode = rawBodyLines[0].trim();\n\n if (options.iife) {\n const paramStart = fn.indexOf("(");\n const paramEnd = fn.indexOf(")", paramStart);\n const params = fn.substring(paramStart, paramEnd + 1);\n return `(${params} => { ${bodyCode} })()`;\n }\n\n return bodyCode;\n }\n\n // For multi-line bodies, normalize indentation\n // Find the minimum indentation level (ignoring empty lines)\n let minIndent = Infinity;\n for (const line of rawBodyLines) {\n const trimmedLine = line.trimStart();\n if (trimmedLine.length > 0) {\n const indent = line.length - trimmedLine.length;\n minIndent = Math.min(minIndent, indent);\n }\n }\n\n // Remove the common indentation from each line\n const normalizedLines = rawBodyLines.map((line) => {\n if (line.trimStart().length === 0) return "";\n return line.substring(minIndent);\n });\n\n // Join the normalized lines\n const bodyCode = normalizedLines\n .join(" ")\n .replace(/\\s{2,}/g, " ")\n .trim();\n\n if (options.iife) {\n const paramStart = fn.indexOf("(");\n const paramEnd = fn.indexOf(")", paramStart);\n const params = fn.substring(paramStart, paramEnd + 1);\n return `(${params} => { ${bodyCode} })()`;\n }\n\n return bodyCode;\n};\n\nasync function binding(binding: Binding<string>): Promise<string> {\n if (typeof binding === "function") {\n return await toJS(binding);\n }\n\n return binding;\n}\n\ninterface Codec {\n toJSON(): Promise<JsonValue>;\n toSDK(entities: string[]): Promise<string>;\n}\n\nexport abstract class Block implements Codec {\n protected name: string;\n\n constructor(name: string) {\n this.name = name;\n }\n\n public abstract toJSON(): Promise<JsonValue>;\n public abstract toSDK(entities: string[]): Promise<string>;\n\n public static fromJSON(json: any, entities: string[]): Block {\n if (json?.step) {\n return Integration.fromJSON(json, entities);\n }\n\n if ("conditional" in json) {\n return Conditional.fromJSON(json, entities);\n }\n\n if ("loop" in json) {\n return Loop.fromJSON(json, entities);\n }\n\n if ("parallel" in json) {\n return Parallel.fromJSON(json, entities);\n }\n\n if ("tryCatch" in json) {\n return TryCatch.fromJSON(json, entities);\n }\n\n if ("variables" in json) {\n return Variables.fromJSON(json, entities);\n }\n\n if ("throw" in json) {\n return Throw.fromJSON(json, entities);\n }\n\n if ("return" in json) {\n return Return.fromJSON(json, entities);\n }\n\n throw new Error("mysterious block");\n }\n}\n\nexport abstract class Integration extends Block {\n protected integration: string;\n\n constructor(name: string, integration: string) {\n super(name);\n\n this.integration = integration;\n }\n\n public abstract toJSON(): Promise<JsonValue>;\n public abstract toSDK(entities: string[]): Promise<string>;\n\n public static fromJSON(json: any, entities: string[]): Block {\n if ("javascript" in json?.step) {\n return JavaScript.fromJSON(json, entities);\n }\n\n if ("python" in json?.step) {\n return Python.fromJSON(json, entities);\n }\n\n if ("postgres" in json?.step) {\n return PostgreSQL.fromJSON(json, entities);\n }\n\n if ("databricks" in json?.step) {\n return Databricks.fromJSON(json, entities);\n }\n\n if ("email" in json?.step) {\n return Email.fromJSON(json, entities);\n }\n\n if ("restapi" in json?.step) {\n return RestApi.fromJSON(json, entities);\n }\n\n throw new Error("mysterious integration");\n }\n}\n\nexport class Python extends Integration {\n private fn: string;\n\n constructor(name: string, config: {\n fn: string;\n }) {\n super(name, "python");\n\n this.fn = config.fn;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: "python",\n python: {\n body: this.fn,\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Python("${this.name}", { fn: ${this.fn} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Python {\n return new Python(json?.name, {\n fn: json?.step?.python?.body,\n });\n }\n}\n\nexport class JavaScript extends Integration {\n private fn: (_: State) => JsonValue;\n\n constructor(\n name: string,\n config: {\n fn: (_: State) => JsonValue;\n },\n ) {\n super(name, "javascript");\n\n this.fn = config.fn;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: "javascript",\n javascript: {\n body: await toJSBody(this.fn, { block: false, function: true }),\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new JavaScript("${this.name}", { fn: ${signature(code(this.fn.toString()), entities)} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): JavaScript {\n const args = [json?.step?.javascript?.body]\n const references = referenced(json?.step?.javascript?.body, entities)\n\n if (references.length > 0) {\n args.unshift(`{ ${references.join(", ")} }`)\n }\n\n return new JavaScript(json?.name, {\n fn: new Function(...args) as (_: State) => JsonValue,\n });\n }\n}\n\n// TODO(Frank): There is way too much in common between Snowflake and PostgreSQL. Need to add a parent class for these.\nexport class Snowflake extends Integration {\n private statement: Binding<string>;\n\n constructor(\n name: string,\n integration: string,\n config: {\n statement: Binding<string>;\n },\n ) {\n super(name, integration);\n\n this.statement = config.statement;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: this.integration,\n snowflake: {\n body: await binding(this.statement),\n usePreparedSql: false,\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Snowflake("${this.name}", "${this.integration}", { statement: ${typeof this.statement === "function" ? signatureV2(await toJSBody(this.statement), entities) : `"${this.statement}"`} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Snowflake {\n return new Snowflake(json?.name, json?.step?.integration, {\n statement: fromBinding(\n json?.step?.snowflake?.body as string | undefined,\n entities,\n ),\n });\n }\n}\n\nexport class PostgreSQL extends Integration {\n private statement: Binding<string>;\n\n constructor(\n name: string,\n integration: string,\n config: {\n statement: Binding<string>;\n },\n ) {\n super(name, integration);\n\n this.statement = config.statement;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: this.integration,\n postgres: {\n body: await binding(this.statement),\n usePreparedSql: false,\n operation: "run_sql",\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new PostgreSQL("${this.name}", "${this.integration}", { statement: ${typeof this.statement === "function" ? signatureV2(await toJSBody(this.statement), entities) : `"${this.statement}"`} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): PostgreSQL {\n return new PostgreSQL(json?.name, json?.step?.integration, {\n statement: fromBinding(\n json?.step?.postgres?.body as string | undefined,\n entities,\n ),\n });\n }\n}\n\nexport class RestApi extends Integration {\n private method: string;\n private url: Binding<string>;\n private headers?: { key: Binding<string>; value: Binding<string> }[];\n private params?: { key: Binding<string>; value: Binding<string> }[];\n private body?: Binding<string>;\n\n constructor(\n name: string,\n config: {\n method: string;\n url?: Binding<string>;\n headers?: { key: Binding<string>; value: Binding<string> }[];\n params?: { key: Binding<string>; value: Binding<string> }[];\n body?: Binding<string>;\n },\n ) {\n super(name, "restapi");\n\n this.method = config.method;\n this.url = config.url;\n this.headers = config.headers;\n this.params = config.params;\n this.body = config.body;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: "restapi",\n restapi: {\n httpMethod: this.method,\n ...(this.url ? { path: await binding(this.url) } : {}),\n ...(this.headers ? { headers: await Promise.all(this.headers.map(async (header) => ({ key: await binding(header.key), value: await binding(header.value) }))) } : {}),\n ...(this.params ? { params: await Promise.all(this.params.map(async (param) => ({ key: await binding(param.key), value: await binding(param.value) }))) } : {}),\n ...(this.body ? { body: await binding(this.body) } : {}),\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n const parts: string[] = [`method: "${this.method}"`];\n\n if (this.url) {\n parts.push(\n `url: ${\n typeof this.url === "function"\n ? signatureV2(await toJSBody(this.url), entities)\n : `"${this.url}"`\n }`,\n );\n }\n\n if (this.headers) {\n const headers = this.headers\n .map(async (h) =>\n `{ key: ${\n typeof h.key === "function"\n ? signatureV2(await toJSBody(h.key), entities)\n : `"${h.key}"`\n }, value: ${\n typeof h.value === "function"\n ? signatureV2(await toJSBody(h.value), entities)\n : `"${h.value}"`\n } }`,\n )\n .join(", ");\n parts.push(`headers: [${headers}]`);\n }\n\n if (this.params) {\n const params = this.params\n .map(async (p) =>\n `{ key: ${\n typeof p.key === "function"\n ? signatureV2(await toJSBody(p.key), entities)\n : `"${p.key}"`\n }, value: ${\n typeof p.value === "function"\n ? signatureV2(await toJSBody(p.value), entities)\n : `"${p.value}"`\n } }`,\n )\n .join(", ");\n parts.push(`params: [${params}]`);\n }\n\n if (this.body) {\n parts.push(\n `body: ${\n typeof this.body === "function"\n ? signatureV2(await toJSBody(this.body), entities)\n : JSON.stringify(this.body)\n }`,\n );\n }\n\n return `new RestApi("${this.name}", { ${parts.join(", ")} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): RestApi {\n return new RestApi(json?.name, {\n method: json?.step?.restapi?.httpMethod,\n url: fromBinding(json?.step?.restapi?.path, entities),\n headers: json?.step?.restapi?.headers?.map((header: any) => ({ key: fromBinding(header.key, entities), value: fromBinding(header.value, entities) })),\n params: json?.step?.restapi?.params?.map((param: any) => ({ key: fromBinding(param.key, entities), value: fromBinding(param.value, entities) })),\n body: fromBinding(json?.step?.restapi?.body, entities),\n });\n }\n}\n\nexport class Email extends Integration {\n private subject: Binding<string>;\n private from: Binding<string>; // comma separated list\n private to: Binding<string>; // comma separated list\n private cc?: Binding<string>; // comma separated list\n private bcc?: Binding<string>; // comma separated list\n private body: Binding<string>;\n\n constructor(\n name: string,\n config: {\n from: Binding<string>;\n to: Binding<string>;\n subject: Binding<string>;\n cc?: Binding<string>;\n bcc?: Binding<string>;\n body?: Binding<string>;\n },\n ) {\n super(name, "email");\n\n this.from = config.from;\n this.to = config.to;\n this.subject = config.subject;\n this.cc = config.cc;\n this.bcc = config.bcc;\n this.body = config.body;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: "email",\n email: {\n ...(this.from ? { emailFrom: await binding(this.from) } : {}),\n ...(this.to ? { emailTo: await binding(this.to) } : {}),\n ...(this.cc ? { emailCc: await binding(this.cc) } : {}),\n ...(this.bcc ? { emailBcc: await binding(this.bcc) } : {}),\n ...(this.subject ? { emailSubject: await binding(this.subject) } : {}),\n ...(this.body ? { emailBody: await binding(this.body) } : {}),\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n const parts: string[] = [];\n\n if (this.from) {\n parts.push(\n `from: ${\n typeof this.from === "function"\n ? signatureV2(code(this.from.toString()), entities)\n : `"${this.from}"`\n }`,\n );\n }\n\n if (this.to) {\n parts.push(\n `to: ${\n typeof this.to === "function"\n ? signatureV2(code(this.to.toString()), entities)\n : `"${this.to}"`\n }`,\n );\n }\n\n if (this.cc) {\n parts.push(\n `cc: ${\n typeof this.cc === "function"\n ? signatureV2(code(this.cc.toString()), entities)\n : `"${this.cc}"`\n }`,\n );\n }\n\n if (this.bcc) {\n parts.push(\n `bcc: ${\n typeof this.bcc === "function"\n ? signatureV2(code(this.bcc.toString()), entities)\n : `"${this.bcc}"`\n }`,\n );\n }\n\n if (this.subject) {\n parts.push(\n `subject: ${\n typeof this.subject === "function"\n ? signatureV2(code(this.subject.toString()), entities)\n : `"${this.subject}"`\n }`,\n );\n }\n\n if (this.body) {\n parts.push(\n `body: ${\n typeof this.body === "function"\n ? signatureV2(code(this.body.toString()), entities)\n : `"${this.body}"`\n }`,\n );\n }\n\n return `new Email("${this.name}", { ${parts.join(", ")} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Email {\n return new Email(json?.name, {\n from: fromBinding(json?.step?.email?.emailFrom, entities),\n to: fromBinding(json?.step?.email?.emailTo, entities),\n subject: fromBinding(json?.step?.email?.emailSubject, entities),\n body: fromBinding(json?.step?.email?.emailBody, entities),\n cc: json?.step?.email?.emailCc ? fromBinding(json?.step?.email?.emailCc, entities) : undefined,\n bcc: json?.step?.email?.emailBcc ? fromBinding(json?.step?.email?.emailBcc, entities) : undefined,\n });\n }\n}\n\nexport class Databricks extends Integration {\n private statement: Binding<string>;\n\n constructor(\n name: string,\n integration: string,\n config: {\n statement: Binding<string>;\n },\n ) {\n super(name, integration);\n\n this.statement = config.statement;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n step: {\n integration: this.integration,\n databricks: {\n runSql: {\n sqlBody: await binding(this.statement),\n useParameterized: false,\n },\n },\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Databricks("${this.name}", "${this.integration}", { statement: ${typeof this.statement === "function" ? signatureV2(await toJSBody(this.statement), entities) : `"${this.statement}"`} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Databricks {\n return new Databricks(json?.name, json?.step?.integration, {\n statement: fromBinding(\n json?.step?.databricks?.runSql?.sqlBody as string,\n entities,\n ),\n });\n }\n}\n\nexport type Condition = {\n when: Binding<boolean>;\n then: Block[];\n};\n\nasync function conditionToSDK(condition: Condition, entities: string[]): Promise<string> {\n return `{ when: ${typeof condition.when === "function" ? signatureV2(await toJSBody(condition.when), entities) : condition.when}, then: [${(await Promise.all(condition.then.map(async (block) => await block.toSDK(entities)))).join(",")}] }`\n}\n\nexport type Conditions = {\n if: Condition;\n elif?: Condition[];\n else?: Block[];\n};\n\nexport class Conditional extends Block {\n public conditions: Conditions;\n\n constructor(name: string, config: Conditions) {\n super(name);\n\n this.conditions = config;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n conditional: {\n if: {\n condition: await toJS<boolean>(this.conditions.if.when),\n blocks: await Promise.all(this.conditions.if.then.map(async (block) => await block.toJSON())),\n },\n ...await (async () =>\n this.conditions.elif\n ? {\n elseIf: await Promise.all(this.conditions.elif.map(async (condition) => ({\n condition: await toJS<boolean>(condition.when),\n blocks: await Promise.all(condition.then.map(async (block) => await block.toJSON())),\n }))),\n }\n : { elseIf: [] })(),\n else: this.conditions.else ? {\n blocks: await Promise.all(this.conditions.else.map(async (block) => await block.toJSON()))\n } : undefined,\n },\n };\n }\n\n public static fromJSON(json: any, entities: string[]): Conditional {\n return new Conditional(json?.name, {\n if: {\n when: fromJS<boolean>(json?.conditional?.if?.condition, entities),\n then: json?.conditional?.if?.blocks.map((block: any) =>\n Block.fromJSON(block, entities),\n ),\n },\n elif: json?.conditional?.elseIf ? json?.conditional?.elseIf?.map((condition: any) => ({\n when: fromJS<boolean>(condition.condition, entities),\n then: condition.blocks.map((block: any) => Block.fromJSON(block, entities)),\n })) : [],\n else: json?.conditional?.else ? json?.conditional?.else?.blocks?.map((block: any) => Block.fromJSON(block, entities)) : [],\n });\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Conditional("${this.name}", { if: ${await conditionToSDK(this.conditions.if, entities)}, elif: [${this.conditions.elif ? (await Promise.all(this.conditions.elif?.map(async (condition) => await conditionToSDK(condition, entities)))).join(",") : \'\'}], else: ${this.conditions.else ? (await Promise.all(this.conditions.else?.map(async (block) => await block.toSDK(entities)))).join(",") : "undefined"} })`;\n }\n}\n\nexport class Parallel extends Block {\n private over: Binding<JsonValue[]>;\n private blocks: Block[];\n private variables: { item: string };\n\n constructor(\n name: string,\n config: {\n over: Binding<JsonValue[]>;\n variables: { item: string };\n blocks: Block[];\n },\n ) {\n super(name);\n\n this.over = config.over;\n this.blocks = config.blocks;\n this.variables = config.variables;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n parallel: {\n dynamic: {\n blocks: await Promise.all(this.blocks?.map(async (block) => await block.toJSON())),\n paths: await toJS<JsonValue[]>(this.over),\n variables: this.variables,\n },\n wait: "WAIT_ALL",\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Parallel("${this.name}", { over: ${typeof this.over === "function" ? signatureV2(await toJSBody(this.over), entities) : this.over}, variables: ${this.variables}, blocks: ${await Promise.all(this.blocks.map(async (block) => await block.toSDK(entities)).join(","))} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Parallel {\n return new Parallel(json?.name, {\n over: fromJS<JsonValue[]>(json?.parallel?.dynamic?.paths, entities),\n variables: {\n item: json?.parallel?.dynamic?.variables?.item,\n },\n blocks: json?.parallel?.dynamic?.blocks.map((block: any) =>\n Block.fromJSON(block, entities),\n ),\n });\n }\n}\n\nexport class Loop extends Block {\n private over: Binding<JsonValue[]>; // NOTE(Frank): Only for each loops are supported at the moment.\n private blocks: Block[];\n private variables: { item: string; index: string };\n\n constructor(\n name: string,\n config: {\n over: Binding<JsonValue[]>;\n variables: { item: string; index: string };\n blocks: Block[];\n },\n ) {\n super(name);\n\n this.over = config.over;\n this.variables = config.variables;\n this.blocks = config.blocks;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n loop: {\n range: await toJS<JsonValue[]>(this.over),\n type: "TYPE_FOREACH",\n variables: this.variables,\n blocks: await Promise.all(this.blocks.map(async (block) => await block.toJSON())),\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Loop("${this.name}", { over: ${typeof this.over === "function" ? signatureV2(await toJSBody(this.over), entities) : this.over}, variables: ${this.variables}, blocks: ${await Promise.all(this.blocks.map(async (block) => await block.toSDK(entities)).join(","))} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Loop {\n return new Loop(json?.name, {\n over: fromJS<JsonValue[]>(json?.loop?.range, entities),\n variables: {\n item: json?.loop?.variables?.item,\n index: json?.loop?.variables?.index,\n },\n blocks: json?.loop?.blocks.map((block: any) =>\n Block.fromJSON(block, entities),\n ),\n });\n }\n}\n\nexport class Variables extends Block {\n private variables: { key: string, value: Binding<JsonValue> }[];\n\n constructor(\n name: string,\n variables: { key: string, value: Binding<JsonValue> }[],\n ) {\n super(name);\n\n this.variables = variables;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n variables: {\n items: await Promise.all(this.variables.map(async (variable) => {\n return {\n key: variable.key,\n value: await toJS<JsonValue>(variable.value),\n type: "TYPE_SIMPLE",\n mode: "MODE_READWRITE",\n };\n }))\n },\n };\n }\n \n public async toSDK(entities: string[]): Promise<string> {\n return `new Variables("${this.name}", [${this.variables?.map((variable) => `{ key: "${variable.key}", value: ${typeof variable.value === "function" ? signature(code(variable.value.toString(), { iife: true }), entities) : variable.value} }`).join(",")}])`;\n }\n\n public static fromJSON(json: any, entities: string[]): Variables {\n return new Variables(json?.name, json?.variables?.items?.map((variable: any) => ({\n key: variable.key,\n value: fromBinding(variable.value, entities),\n })));\n }\n}\n\nexport class TryCatch extends Block {\n private try: Block[];\n private catch: Block[];\n private finally?: Block[];\n private variables: { error: string };\n\n constructor(\n name: string,\n config: {\n try: Block[];\n catch: Block[];\n finally?: Block[];\n variables: { error: string };\n },\n ) {\n super(name);\n\n this.try = config.try;\n this.catch = config.catch;\n this.finally = config.finally;\n this.variables = config.variables;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n tryCatch: {\n try: { blocks: await Promise.all(this.try.map(async (block) => await block.toJSON())) },\n catch: { blocks: await Promise.all(this.catch.map(async (block) => await block.toJSON())) },\n finally: { blocks: this.finally ? await Promise.all(this.finally.map(async (block) => await block.toJSON())) : [] },\n variables: this.variables,\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new TryCatch("${this.name}", { try: ${await Promise.all(this.try.map(async (block) => await block.toSDK(entities)).join(","))}, catch: ${await Promise.all(this.catch.map(async (block) => await block.toSDK(entities)).join(","))}, finally: ${this.finally?.map(async (block) => await block.toSDK(entities)).join(", ")} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): TryCatch {\n return new TryCatch(json?.name, {\n try: json?.tryCatch?.try.blocks.map((block: any) => Block.fromJSON(block, entities)),\n catch: json?.tryCatch?.catch.blocks.map((block: any) => Block.fromJSON(block, entities)),\n finally: json?.tryCatch?.finally?.blocks.map((block: any) => Block.fromJSON(block, entities)),\n variables: {\n error: json?.tryCatch?.variables?.error,\n },\n });\n }\n}\n\nexport class Throw extends Block {\n private error: Binding<JsonValue>;\n\n constructor(\n name: string,\n config: {\n error: Binding<JsonValue>;\n },\n ) {\n super(name);\n\n this.error = config.error;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n throw: {\n error: await toJS(this.error),\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Throw("${this.name}", { error: ${typeof this.error === "function" ? signature(code(this.error.toString()), entities) : JSON.stringify(this.error)} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Throw {\n return new Throw(json?.name, {\n error: fromJS(json?.throw?.error, entities),\n });\n }\n}\n\nexport class Return extends Block {\n private data: Binding<JsonValue>;\n\n constructor(\n name: string,\n config: {\n data: Binding<JsonValue>;\n },\n ) {\n super(name);\n\n this.data = config.data;\n }\n\n public async toJSON(): Promise<JsonValue> {\n return {\n name: this.name,\n return: {\n data: await toJS(this.data),\n },\n };\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n return `new Return("${this.name}", { data: ${typeof this.data === "function" ? signature(code(this.data.toString()), entities) : JSON.stringify(this.data)} })`;\n }\n\n public static fromJSON(json: any, entities: string[]): Return {\n return new Return(json?.name, {\n data: fromJS(json?.return?.data, entities),\n });\n }\n}\n\nexport class Api {\n private blocks: Block[];\n private name: string;\n\n constructor(name: string, blocks: Block[]) {\n this.name = name;\n this.blocks = blocks;\n }\n\n public async toSDK(entities: string[]): Promise<string> {\n const imports =\n "import { Api, JavaScript, Python, PostgreSQL, Snowflake, Databricks, Conditional, Parallel, Loop, TryCatch, Variables, Throw, Return } from \'@superblocksteam/library\'";\n return `${imports}\\n\\nexport default new Api("${this.name}", [${(await Promise.all(this.blocks.map(async (block) => await block.toSDK(entities)))).join(",")}])`;\n }\n\n public static fromJSON(json: any, entities: string[]): Api {\n // NOTE(Frank): Would probs unmarshal this into the protobuf types and then do the conversion.\n return new Api(\n json?.metadata?.name as string,\n (json.blocks as any[]).map((block) => Block.fromJSON(block, entities)),\n );\n }\n\n public async toJSON(): Promise<JsonValue> {\n const api: {\n metadata: {\n name: string;\n timestamps: {\n updated: string;\n };\n };\n trigger: {\n application: {};\n };\n blocks: JsonValue[];\n } = {\n metadata: {\n name: this.name,\n timestamps: {\n updated: new Date().toISOString(),\n },\n },\n trigger: {\n application: {},\n },\n blocks: [],\n };\n\n api.blocks = await Promise.all(this.blocks.map(async (block) => await block.toJSON()));\n\n return api;\n }\n}\n\nfunction referenced(data: string, entities: string[]): string[] {\n return entities.reduce((acc: string[], entity: string) => {\n if (data.includes(entity)) {\n acc.push(entity);\n }\n return acc;\n }, []);\n}\n\nfunction signature(data: string, entities: string[]): string {\n return `({ ${referenced(data, entities).join(", ")} }) => {${data}}`;\n}\n\nfunction signatureV2(data: string, entities: string[]): string {\n return `({ ${referenced(data, entities).join(", ")} }) => ${data}`;\n}\n\n/**\n * Converts a string binding, which comprise 99% of dynamic integration fields, into a function returning an interpolated string.\n *\n * fromBinding("https://{{ \'goo\' + \'gle\' }}.com/{{ Dropdown1.value }}", [\'Dropdown1\']) -> ({ Dropdown1 }) => `https://${\'goo\' + \'gle\'}.com/${Dropdown1.value}`\n *\n * @param value - The value to convert.\n * @param entities - The master list of possible entities that could be referenced in the binding.\n *\n * @returns The converted value.\n */\nexport function fromBinding(value: string, entities: string[]): Binding<string> {\n if (!value) {\n return "";\n }\n\n const regex = /\\{\\{\\s*([^}]*)\\s*\\}\\}/g;\n const converted: string = value.replace(regex, (match, content) => `\\${${content.trim()}}`);\n\n // there were no bindings to convert\n if (converted === value) {\n return value;\n }\n\n const args: string[] = [`return \\`${converted}\\``]\n const references: string[] = referenced(converted, entities);\n\n // only add the arguments if we have references\n if (references.length > 0) {\n args.unshift(`{ ${references} }`);\n }\n\n return new Function(...args) as (_: State) => string;\n}\n\nasync function beautifyAndOptionallyCondense<T extends JsonValue>(value: ((state: State) => T), node: Node, options: { condense?: boolean, block?: boolean } = { condense: true, block: true }) {\n let start: number = node.start;\n let end: number = node.end;\n\n if (!options.block) {\n start += 1;\n end -= 1;\n }\n \n const beautified = await beautify(value.toString().slice(start, end))\n\n if (options.condense) {\n return beautified.replace(/\\s*\\n\\s*/g, \' \').replace(/\\s+/g, \' \').trim();\n }\n\n return beautified\n}\n\nfunction createAst(value: string): Program {\n return parse(value, {\n ecmaVersion: "latest",\n sourceType: "script",\n preserveParens: false,\n });\n}\n\nasync function toJSBody<T extends JsonValue>(value: ((state: State) => T), options: { block?: boolean, condense?: boolean, function?: boolean } = { block: true, condense: true, function: false }): Promise<string> {\n if (typeof value !== "function") {\n return `{{ ${JSON.stringify(value)} }}`\n }\n\n // parse the code\n const ast = createAst(value.toString());\n const program = ast.body[0];\n\n switch (program.type) {\n case "ExpressionStatement":\n const body = ((program as ExpressionStatement).expression as FunctionExpression).body;\n\n if (body.type === \'BlockStatement\') {\n return await beautifyAndOptionallyCondense(value, body, options)\n }\n\n return `${options.function ? "return " : ""}${value.toString().slice(body.start, body.end)}`\n case "FunctionDeclaration":\n let contents = value.toString().slice(program.body.start, program.body.end)\n\n if (program.body.type !== \'BlockStatement\') {\n return contents\n }\n \n if (!options.function && program.body.body.length === 1 && program.body.body[0].type === \'ReturnStatement\') {\n return value.toString().slice(program.body.body[0].argument.start, program.body.body[0].argument.end)\n }\n\n return await beautifyAndOptionallyCondense(value, program.body, options)\n\n default:\n throw new Error("you found a case we haven\'t handled yet")\n }\n}\n\nexport async function toJS<T extends JsonValue>(value: Binding<T>): Promise<string> {\n if (typeof value !== "function") {\n return `{{ ${JSON.stringify(value)} }}`\n }\n\n const body = await toJSBody(value)\n return `{{ (() => ${body})() }}`\n}\n\nexport function fromJS<T extends JsonValue>(\n value: string,\n entities: string[] = [],\n): Binding<T> {\n // determine if there are entities referenced in the value\n const refs = referenced(value, entities).join(", ")\n\n\n // remove any surrounding whitespace\n value = value.trim()\n\n // require bindings\n if (!value.startsWith("{{") || !value.endsWith("}}")) {\n throw new Error("bindings must always be wrapped in double curly braces");\n }\n\n // remove the double curly braces and trim whitespace\n value = value.slice(2, -2).trim();\n\n let unaryOps: string[] = [];\n let call = (createAst(value).body[0] as ExpressionStatement).expression;\n\n while (call?.type === \'UnaryExpression\') {\n unaryOps.push((call as UnaryExpression).operator);\n call = (call as unknown as UnaryExpression).argument as CallExpression;\n }\n \n const fn = (call as CallExpression).callee;\n let body = value;\n let prefix = "return ";\n\n // handle iife\n if (fn?.type === "ArrowFunctionExpression") {\n // i\'m not happy with this but I don\'t see another immediate way to handle this.\n // this will result in a correct result but one that isn\'t idemopotent.\n if (unaryOps.length > 0) {\n return new Function(`{ ${refs} }`, `${prefix}${body}`) as (_: State) => T;\n }\n\n\n body = value.slice(fn.body.start, fn.body.end)\n\n if (fn.body.type === \'BlockStatement\') {\n // drop the opening "{" and closing "}"\n body = body.slice(1, -1)\n prefix = ""\n } \n } else if (refs.length === 0) {\n // we\'re not an iife nor do we have references.\n // we might have to revisit this implementation since this technically reduces to a static value down to it\'s most minimal form.\n return eval(value) as T\n }\n\n // we\'re either an iife or a static value with refs.\n return new Function(`{ ${refs} }`, `${prefix}${body}`) as (_: State) => T;\n}\n\nexport async function beautify(code: string): Promise<string> {\n const eslint = new ESLint({\n fix: true,\n overrideConfigFile: true,\n baseConfig: {\n languageOptions: {\n parser: typescript_eslint_parser,\n parserOptions: {\n ecmaVersion: 2020,\n sourceType: "module",\n },\n },\n rules: {\n "arrow-body-style": "error",\n },\n },\n });\n\n code = (await eslint.lintText(code))[0]?.output || code;\n\n return await format(code, {\n parser: "typescript",\n tabWidth: 2,\n // singleQuote: true,\n trailingComma: "none",\n semi: true,\n bracketSpacing: true,\n arrowParens: "always",\n bracketSameLine: false,\n embeddedLanguageFormatting: "auto",\n quoteProps: "as-needed",\n insertPragma: false,\n requirePragma: false,\n useTabs: false,\n endOfLine: "auto",\n arrowFunctionParentheses: "always",\n // plugins: ["prettier-plugin-organize-imports"],\n });\n}\n',
313877
314964
  "src/to-sdk/__template__.ts": 'import { Api } from "@superblocksteam/library";\n\nconst json = {};\n\nconst entities = [];\n\nconst api = Api.fromJSON(json, entities);\n\nexport default {\n toSDK: async () => await api.toSDK(entities),\n};\n',
313878
314965
  "tsconfig.json": '{\n "compilerOptions": {\n "target": "ES2020",\n "module": "ESNext",\n "moduleResolution": "bundler",\n "baseUrl": ".",\n "outDir": "dist",\n "rootDir": "src",\n "esModuleInterop": true,\n "resolveJsonModule": true,\n "skipLibCheck": true,\n "types": [\n "node"\n ],\n "paths": {\n "@superblocksteam/library": [\n "src/superblocks-library-shim"\n ]\n }\n },\n "include": [\n "src"\n ],\n "exclude": [\n "node_modules",\n "dist",\n ]\n}'
313879
314966
  }
@@ -314264,7 +315351,7 @@ init_cjs_shims();
314264
315351
  init_cjs_shims();
314265
315352
  var generated = {};
314266
315353
  try {
314267
- generated = await import("./generated-PKJZWHNO.js");
315354
+ generated = await import("./generated-3GKPEXCV.js");
314268
315355
  } catch (_error) {
314269
315356
  getLogger().warn("[ai-service] Generated markdown modules not found. Run `pnpm generate:markdown` first.");
314270
315357
  }