@sentio/runtime 4.3.2-rc.1 → 4.3.3-rc.1

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { a as diag, c as init_consoleLogger, d as __commonJSMin, f as __esmMin, g as __toESM, h as __toCommonJS, i as metrics, l as DiagLogLevel, m as __require, n as init_esm$2, o as init_diag_api, p as __exportAll, r as init_metrics_api, s as DiagConsoleLogger, t as esm_exports$2, u as init_types$1 } from "./esm-CSGQo6hb.js";
3
- import { B as protoCamelCase, C as hasCustomJsonRepresentation, D as BinaryReader, E as formatVal, F as base64Decode, I as base64Encode, L as scalarZeroValue, M as isFieldError, N as MethodOptions_IdempotencyLevel, O as BinaryWriter, P as messageDesc, R as ScalarType, S as create, T as checkField, V as protoSnakeCase, a as ExecutionConfigSchema, b as readField$1, g as ValueSchema, h as StructSchema, j as FieldError, k as WireType, m as NullValue, n as PluginManager, p as ListValueSchema, s as ProcessConfigResponseSchema, u as ProcessorV3, v as fileDesc, w as isWrapperDesc, x as reflect, y as fromBinary, z as protoInt64 } from "./plugin-CteRSWq4.js";
4
- import { _ as require_lib, d as ConnectError, f as codeFromString, g as configureEndpoints, m as Code, n as GLOBAL_CONFIG, p as codeToString, t as ProcessorServiceImplV3, x as locatePackageJson } from "./service-v3-fWCR8MDp.js";
3
+ import { A as WireType, B as protoInt64, C as create, D as formatVal, E as checkField, F as messageDesc, H as protoSnakeCase, I as base64Decode, L as base64Encode, M as FieldError, N as isFieldError, O as BinaryReader, P as MethodOptions_IdempotencyLevel, R as scalarZeroValue, S as reflect, T as isWrapperDesc, V as protoCamelCase, a as ExecutionConfigSchema, b as makeReadContext$1, g as ValueSchema, h as StructSchema, k as BinaryWriter, m as NullValue, n as PluginManager, p as ListValueSchema, s as ProcessConfigResponseSchema, u as ProcessorV3, v as fileDesc, w as hasCustomJsonRepresentation, x as readField$1, y as fromBinary, z as ScalarType } from "./plugin-9jInRbdc.js";
4
+ import { _ as require_lib, d as ConnectError, f as codeFromString, g as configureEndpoints, m as Code, n as GLOBAL_CONFIG, p as codeToString, t as ProcessorServiceImplV3, x as locatePackageJson } from "./service-v3-iQMJsLkX.js";
5
5
  import * as path$4 from "path";
6
6
  import { dirname, join } from "path";
7
7
  import * as fs$7 from "fs";
@@ -20,7 +20,7 @@ import childProcess from "node:child_process";
20
20
  import path$1 from "node:path";
21
21
  import fs$1 from "node:fs";
22
22
 
23
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js
23
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js
24
24
  /**
25
25
  * Describes the file google/protobuf/any.proto.
26
26
  */
@@ -32,7 +32,7 @@ const file_google_protobuf_any = /*@__PURE__*/ fileDesc("Chlnb29nbGUvcHJvdG9idWY
32
32
  const AnySchema = /*@__PURE__*/ messageDesc(file_google_protobuf_any, 0);
33
33
 
34
34
  //#endregion
35
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js
35
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js
36
36
  const LEGACY_REQUIRED$1 = 3;
37
37
  const writeDefaults = { writeUnknownFields: true };
38
38
  function makeWriteOptions$1(options) {
@@ -181,7 +181,7 @@ function writeTypeOfScalar(type) {
181
181
  }
182
182
 
183
183
  //#endregion
184
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js
184
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js
185
185
  function anyPack(schema, message, into) {
186
186
  let ret = false;
187
187
  if (!into) {
@@ -213,7 +213,7 @@ function typeUrlToName(url) {
213
213
  }
214
214
 
215
215
  //#endregion
216
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/extensions.js
216
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/extensions.js
217
217
  /**
218
218
  * Retrieve an extension value from a message.
219
219
  *
@@ -228,11 +228,12 @@ function typeUrlToName(url) {
228
228
  *
229
229
  * If the extension does not extend the given message, an error is raised.
230
230
  */
231
- function getExtension(message, extension) {
231
+ function getExtension(message, extension, options) {
232
232
  assertExtendee(extension, message);
233
233
  const ufs = filterUnknownFields(message.$unknown, extension);
234
234
  const [container, field, get] = createExtensionContainer(extension);
235
- for (const uf of ufs) readField$1(container, new BinaryReader(uf.data), field, uf.wireType, { readUnknownFields: true });
235
+ const ctx = makeReadContext$1(options);
236
+ for (const uf of ufs) readField$1(container, new BinaryReader(uf.data), field, uf.wireType, ctx);
236
237
  return get();
237
238
  }
238
239
  /**
@@ -303,7 +304,7 @@ function assertExtendee(extension, message) {
303
304
  }
304
305
 
305
306
  //#endregion
306
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/to-json.js
307
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/to-json.js
307
308
  const LEGACY_REQUIRED = 3;
308
309
  const IMPLICIT = 2;
309
310
  const jsonWriteDefaults = {
@@ -534,24 +535,32 @@ function timestampToJson(val) {
534
535
  }
535
536
 
536
537
  //#endregion
537
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/from-json.js
538
- const jsonReadDefaults = { ignoreUnknownFields: false };
539
- function makeReadOptions(options) {
540
- return options ? Object.assign(Object.assign({}, jsonReadDefaults), options) : jsonReadDefaults;
538
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/from-json.js
539
+ function makeReadContext(options) {
540
+ return Object.assign(Object.assign({
541
+ ignoreUnknownFields: false,
542
+ recursionLimit: 100
543
+ }, options), { depth: 0 });
541
544
  }
542
545
  /**
543
546
  * Parse a message from a JSON string.
547
+ *
548
+ * Duplicate keys are rejected.
544
549
  */
545
550
  function fromJsonString(schema, json, options) {
546
551
  return fromJson(schema, parseJsonString(json, schema.typeName), options);
547
552
  }
548
553
  /**
549
554
  * Parse a message from a JSON value.
555
+ *
556
+ * Duplicate keys are rejected, but a value parsed by JSON.parse has already
557
+ * dropped duplicates (the last one wins). Use `fromJsonString` for strict
558
+ * duplicate-key checking.
550
559
  */
551
560
  function fromJson(schema, json, options) {
552
561
  const msg = reflect(schema);
553
562
  try {
554
- readMessage(msg, json, makeReadOptions(options));
563
+ readMessage(msg, json, makeReadContext(options));
555
564
  } catch (e) {
556
565
  if (isFieldError(e)) throw new Error(`cannot decode ${e.field()} from JSON: ${e.message}`, { cause: e });
557
566
  throw e;
@@ -568,95 +577,106 @@ function getJsonField(desc, jsonKey) {
568
577
  }
569
578
  return (_a = messageJsonFields.get(desc)) === null || _a === void 0 ? void 0 : _a.get(jsonKey);
570
579
  }
571
- function readMessage(msg, json, opts) {
580
+ function readMessage(msg, json, ctx) {
572
581
  var _a;
573
- if (tryWktFromJson(msg, json, opts)) return;
582
+ if (++ctx.depth > ctx.recursionLimit) throw new Error(`cannot decode ${msg.desc} from JSON: maximum recursion depth of ${ctx.recursionLimit} reached`);
583
+ if (tryWktFromJson(msg, json, ctx)) {
584
+ ctx.depth--;
585
+ return;
586
+ }
574
587
  if (json == null || Array.isArray(json) || typeof json != "object") throw new Error(`cannot decode ${msg.desc} from JSON: ${formatVal(json)}`);
575
588
  const oneofSeen = /* @__PURE__ */ new Map();
589
+ const fieldSeen = /* @__PURE__ */ new Set();
576
590
  for (const [jsonKey, jsonValue] of Object.entries(json)) {
577
591
  const field = getJsonField(msg.desc, jsonKey);
578
592
  if (field) {
593
+ if (fieldSeen.has(field)) throw new FieldError(field, "set multiple times");
594
+ fieldSeen.add(field);
595
+ if (field.oneof && jsonValue === null && field.fieldKind == "scalar") continue;
579
596
  if (field.oneof) {
580
- if (jsonValue === null && field.fieldKind == "scalar") continue;
581
597
  const seen = oneofSeen.get(field.oneof);
582
598
  if (seen !== void 0) throw new FieldError(field.oneof, `oneof set multiple times by ${seen.name} and ${field.name}`);
583
599
  oneofSeen.set(field.oneof, field);
584
600
  }
585
- readField(msg, field, jsonValue, opts);
601
+ readField(msg, field, jsonValue, ctx);
586
602
  } else {
587
603
  let extension = void 0;
588
- if (jsonKey.startsWith("[") && jsonKey.endsWith("]") && (extension = (_a = opts.registry) === null || _a === void 0 ? void 0 : _a.getExtension(jsonKey.substring(1, jsonKey.length - 1))) && extension.extendee.typeName === msg.desc.typeName) {
604
+ if (jsonKey.startsWith("[") && jsonKey.endsWith("]") && (extension = (_a = ctx.registry) === null || _a === void 0 ? void 0 : _a.getExtension(jsonKey.substring(1, jsonKey.length - 1))) && extension.extendee.typeName === msg.desc.typeName) {
589
605
  const [container, field, get] = createExtensionContainer(extension);
590
- readField(container, field, jsonValue, opts);
606
+ readField(container, field, jsonValue, ctx);
591
607
  setExtension(msg.message, extension, get());
592
608
  }
593
- if (!extension && !opts.ignoreUnknownFields) throw new Error(`cannot decode ${msg.desc} from JSON: key "${jsonKey}" is unknown`);
609
+ if (!extension && !ctx.ignoreUnknownFields) throw new Error(`cannot decode ${msg.desc} from JSON: key "${jsonKey}" is unknown`);
594
610
  }
595
611
  }
612
+ ctx.depth--;
596
613
  }
597
- function readField(msg, field, json, opts) {
614
+ function readField(msg, field, json, ctx) {
598
615
  switch (field.fieldKind) {
599
616
  case "scalar":
600
617
  readScalarField(msg, field, json);
601
618
  break;
602
619
  case "enum":
603
- readEnumField(msg, field, json, opts);
620
+ readEnumField(msg, field, json, ctx);
604
621
  break;
605
622
  case "message":
606
- readMessageField(msg, field, json, opts);
623
+ readMessageField(msg, field, json, ctx);
607
624
  break;
608
625
  case "list":
609
- readListField(msg.get(field), json, opts);
626
+ readListField(msg.get(field), json, ctx);
610
627
  break;
611
628
  case "map":
612
- readMapField(msg.get(field), json, opts);
629
+ readMapField(msg.get(field), json, ctx);
613
630
  break;
614
631
  }
615
632
  }
616
- function readListOrMapItem(field, json, opts) {
633
+ function readListOrMapItem(field, json, ctx) {
617
634
  if (field.scalar && json !== null) return scalarFromJson(field, json);
618
635
  if (field.message && !isResetSentinelNullValue(field, json)) {
619
636
  const msgValue = reflect(field.message);
620
- readMessage(msgValue, json, opts);
637
+ readMessage(msgValue, json, ctx);
621
638
  return msgValue;
622
639
  }
623
- if (field.enum && !isResetSentinelNullValue(field, json)) return readEnum(field.enum, json, opts.ignoreUnknownFields);
640
+ if (field.enum && !isResetSentinelNullValue(field, json)) return readEnum(field.enum, json, ctx.ignoreUnknownFields);
624
641
  throw new FieldError(field, `${field.fieldKind === "list" ? "list item" : "map value"} must not be null`);
625
642
  }
626
- function readMapField(map, json, opts) {
643
+ function readMapField(map, json, ctx) {
627
644
  if (json === null) return;
628
645
  const field = map.field();
629
646
  if (typeof json != "object" || Array.isArray(json)) throw new FieldError(field, "expected object, got " + formatVal(json));
647
+ const seen = /* @__PURE__ */ new Set();
630
648
  for (const [jsonMapKey, jsonMapValue] of Object.entries(json)) {
631
649
  const key = mapKeyFromJson(field.mapKey, jsonMapKey);
632
- const value = readListOrMapItem(field, jsonMapValue, opts);
650
+ if (seen.has(key)) throw new FieldError(field, `duplicate map key "${jsonMapKey}"`);
651
+ seen.add(key);
652
+ const value = readListOrMapItem(field, jsonMapValue, ctx);
633
653
  if (value !== tokenIgnoredUnknownEnum) map.set(key, value);
634
654
  }
635
655
  }
636
- function readListField(list, json, opts) {
656
+ function readListField(list, json, ctx) {
637
657
  if (json === null) return;
638
658
  const field = list.field();
639
659
  if (!Array.isArray(json)) throw new FieldError(field, "expected Array, got " + formatVal(json));
640
660
  for (const jsonItem of json) {
641
- const value = readListOrMapItem(field, jsonItem, opts);
661
+ const value = readListOrMapItem(field, jsonItem, ctx);
642
662
  if (value !== tokenIgnoredUnknownEnum) list.add(value);
643
663
  }
644
664
  }
645
- function readMessageField(msg, field, json, opts) {
665
+ function readMessageField(msg, field, json, ctx) {
646
666
  if (isResetSentinelNullValue(field, json)) {
647
667
  msg.clear(field);
648
668
  return;
649
669
  }
650
670
  const msgValue = msg.isSet(field) ? msg.get(field) : reflect(field.message);
651
- readMessage(msgValue, json, opts);
671
+ readMessage(msgValue, json, ctx);
652
672
  msg.set(field, msgValue);
653
673
  }
654
- function readEnumField(msg, field, json, opts) {
674
+ function readEnumField(msg, field, json, ctx) {
655
675
  if (isResetSentinelNullValue(field, json)) {
656
676
  msg.clear(field);
657
677
  return;
658
678
  }
659
- const enumValue = readEnum(field.enum, json, opts.ignoreUnknownFields);
679
+ const enumValue = readEnum(field.enum, json, ctx.ignoreUnknownFields);
660
680
  if (enumValue !== tokenIgnoredUnknownEnum) msg.set(field, enumValue);
661
681
  }
662
682
  function readScalarField(msg, field, json) {
@@ -739,7 +759,8 @@ function scalarFromJson(field, json) {
739
759
  }
740
760
  /**
741
761
  * Try to parse a JSON value to a map key for the reflect API.
742
- *
762
+ * Canonicalizes 64-bit integers given as string, so that "01 and "1" are one
763
+ * key, and duplicates can raise an error.
743
764
  * Returns the input if the JSON value cannot be converted.
744
765
  */
745
766
  function mapKeyFromJson(type, jsonString) {
@@ -755,6 +776,11 @@ function mapKeyFromJson(type, jsonString) {
755
776
  case ScalarType.UINT32:
756
777
  case ScalarType.SFIXED32:
757
778
  case ScalarType.SINT32: return int32FromJson(jsonString);
779
+ case ScalarType.INT64:
780
+ case ScalarType.SINT64:
781
+ case ScalarType.SFIXED64:
782
+ case ScalarType.UINT64:
783
+ case ScalarType.FIXED64: return /^-?0+$/.test(jsonString) ? "0" : jsonString.replace(/^(-?)0+(?=\d)/, "$1");
758
784
  default: return jsonString;
759
785
  }
760
786
  }
@@ -773,19 +799,89 @@ function int32FromJson(json) {
773
799
  }
774
800
  return json;
775
801
  }
802
+ /**
803
+ * Parse a JSON string, rejecting duplicate object keys (which JSON.parse would
804
+ * otherwise silently merge).
805
+ */
776
806
  function parseJsonString(jsonString, typeName) {
807
+ let json;
777
808
  try {
778
- return JSON.parse(jsonString);
809
+ json = JSON.parse(jsonString);
779
810
  } catch (e) {
780
811
  const message = e instanceof Error ? e.message : String(e);
781
812
  throw new Error(`cannot decode message ${typeName} from JSON: ${message}`, { cause: e });
782
813
  }
814
+ checkDuplicateKeys(jsonString, typeName);
815
+ return json;
816
+ }
817
+ /**
818
+ * Scan a JSON string for duplicate object member names at any depth, throwing
819
+ * if any are found. JSON.parse() silently keeps the last of duplicate keys, so
820
+ * this raw-string scan is the only way to reject them. It must only be called
821
+ * with a string that JSON.parse() has already accepted, so it can assume the
822
+ * input is well-formed.
823
+ */
824
+ function checkDuplicateKeys(jsonString, typeName) {
825
+ const stack = [];
826
+ let expectKey = false;
827
+ let i = 0;
828
+ while (i < jsonString.length) switch (jsonString[i]) {
829
+ case "{":
830
+ stack.push(/* @__PURE__ */ new Set());
831
+ expectKey = true;
832
+ i++;
833
+ break;
834
+ case "[":
835
+ stack.push(null);
836
+ expectKey = false;
837
+ i++;
838
+ break;
839
+ case "}":
840
+ case "]":
841
+ stack.pop();
842
+ expectKey = false;
843
+ i++;
844
+ break;
845
+ case ",":
846
+ expectKey = stack[stack.length - 1] != null;
847
+ i++;
848
+ break;
849
+ case ":":
850
+ expectKey = false;
851
+ i++;
852
+ break;
853
+ case "\"": {
854
+ const open = i++;
855
+ let escaped = false;
856
+ while (i < jsonString.length) {
857
+ if (jsonString[i] == "\\") {
858
+ escaped = true;
859
+ i += 2;
860
+ continue;
861
+ }
862
+ if (jsonString[i] == "\"") break;
863
+ i++;
864
+ }
865
+ const close = i++;
866
+ const seen = stack[stack.length - 1];
867
+ if (expectKey && seen) {
868
+ const name = escaped ? JSON.parse(jsonString.substring(open, close + 1)) : jsonString.substring(open + 1, close);
869
+ if (seen.has(name)) throw new Error(`cannot decode message ${typeName} from JSON: duplicate object key "${name}"`);
870
+ seen.add(name);
871
+ }
872
+ expectKey = false;
873
+ break;
874
+ }
875
+ default:
876
+ i++;
877
+ break;
878
+ }
783
879
  }
784
- function tryWktFromJson(msg, jsonValue, opts) {
880
+ function tryWktFromJson(msg, jsonValue, ctx) {
785
881
  if (!msg.desc.typeName.startsWith("google.protobuf.")) return false;
786
882
  switch (msg.desc.typeName) {
787
883
  case "google.protobuf.Any":
788
- anyFromJson(msg.message, jsonValue, opts);
884
+ anyFromJson(msg.message, jsonValue, ctx);
789
885
  return true;
790
886
  case "google.protobuf.Timestamp":
791
887
  timestampFromJson(msg.message, jsonValue);
@@ -797,13 +893,13 @@ function tryWktFromJson(msg, jsonValue, opts) {
797
893
  fieldMaskFromJson(msg.message, jsonValue);
798
894
  return true;
799
895
  case "google.protobuf.Struct":
800
- structFromJson(msg.message, jsonValue);
896
+ structFromJson(msg.message, jsonValue, ctx);
801
897
  return true;
802
898
  case "google.protobuf.Value":
803
- valueFromJson(msg.message, jsonValue);
899
+ valueFromJson(msg.message, jsonValue, ctx);
804
900
  return true;
805
901
  case "google.protobuf.ListValue":
806
- listValueFromJson(msg.message, jsonValue);
902
+ listValueFromJson(msg.message, jsonValue, ctx);
807
903
  return true;
808
904
  default:
809
905
  if (isWrapperDesc(msg.desc)) {
@@ -815,7 +911,7 @@ function tryWktFromJson(msg, jsonValue, opts) {
815
911
  return false;
816
912
  }
817
913
  }
818
- function anyFromJson(any, json, opts) {
914
+ function anyFromJson(any, json, ctx) {
819
915
  var _a;
820
916
  if (json === null || Array.isArray(json) || typeof json != "object") throw new Error(`cannot decode message ${any.$typeName} from JSON: expected object but got ${formatVal(json)}`);
821
917
  if (Object.keys(json).length == 0) return;
@@ -823,16 +919,16 @@ function anyFromJson(any, json, opts) {
823
919
  if (typeof typeUrl != "string" || typeUrl == "") throw new Error(`cannot decode message ${any.$typeName} from JSON: "@type" is empty`);
824
920
  const typeName = typeUrl.includes("/") ? typeUrl.substring(typeUrl.lastIndexOf("/") + 1) : typeUrl;
825
921
  if (!typeName.length) throw new Error(`cannot decode message ${any.$typeName} from JSON: "@type" is invalid`);
826
- const desc = (_a = opts.registry) === null || _a === void 0 ? void 0 : _a.getMessage(typeName);
922
+ const desc = (_a = ctx.registry) === null || _a === void 0 ? void 0 : _a.getMessage(typeName);
827
923
  if (!desc) throw new Error(`cannot decode message ${any.$typeName} from JSON: ${typeUrl} is not in the type registry`);
828
924
  const msg = reflect(desc);
829
925
  if (hasCustomJsonRepresentation(desc) && Object.prototype.hasOwnProperty.call(json, "value")) {
830
926
  const value = json.value;
831
- readMessage(msg, value, opts);
927
+ readMessage(msg, value, ctx);
832
928
  } else {
833
929
  const copy = Object.assign({}, json);
834
930
  delete copy["@type"];
835
- readMessage(msg, copy, opts);
931
+ readMessage(msg, copy, ctx);
836
932
  }
837
933
  anyPack(msg.desc, msg.message, any);
838
934
  }
@@ -867,15 +963,16 @@ function fieldMaskFromJson(fieldMask, json) {
867
963
  return protoSnakeCase(path);
868
964
  });
869
965
  }
870
- function structFromJson(struct, json) {
966
+ function structFromJson(struct, json, ctx) {
871
967
  if (typeof json != "object" || json == null || Array.isArray(json)) throw new Error(`cannot decode message ${struct.$typeName} from JSON ${formatVal(json)}`);
872
968
  for (const [k, v] of Object.entries(json)) {
873
969
  const parsedV = create(ValueSchema);
874
- valueFromJson(parsedV, v);
970
+ valueFromJson(parsedV, v, ctx);
875
971
  struct.fields[k] = parsedV;
876
972
  }
877
973
  }
878
- function valueFromJson(value, json) {
974
+ function valueFromJson(value, json, ctx) {
975
+ if (++ctx.depth > ctx.recursionLimit) throw new Error(`cannot decode ${value.$typeName} from JSON: maximum recursion depth of ${ctx.recursionLimit} reached`);
879
976
  switch (typeof json) {
880
977
  case "number":
881
978
  value.kind = {
@@ -902,14 +999,14 @@ function valueFromJson(value, json) {
902
999
  };
903
1000
  else if (Array.isArray(json)) {
904
1001
  const listValue = create(ListValueSchema);
905
- listValueFromJson(listValue, json);
1002
+ listValueFromJson(listValue, json, ctx);
906
1003
  value.kind = {
907
1004
  case: "listValue",
908
1005
  value: listValue
909
1006
  };
910
1007
  } else {
911
1008
  const struct = create(StructSchema);
912
- structFromJson(struct, json);
1009
+ structFromJson(struct, json, ctx);
913
1010
  value.kind = {
914
1011
  case: "structValue",
915
1012
  value: struct
@@ -918,19 +1015,20 @@ function valueFromJson(value, json) {
918
1015
  break;
919
1016
  default: throw new Error(`cannot decode message ${value.$typeName} from JSON ${formatVal(json)}`);
920
1017
  }
1018
+ ctx.depth--;
921
1019
  return value;
922
1020
  }
923
- function listValueFromJson(listValue, json) {
1021
+ function listValueFromJson(listValue, json, ctx) {
924
1022
  if (!Array.isArray(json)) throw new Error(`cannot decode message ${listValue.$typeName} from JSON ${formatVal(json)}`);
925
1023
  for (const e of json) {
926
1024
  const value = create(ValueSchema);
927
- valueFromJson(value, e);
1025
+ valueFromJson(value, e, ctx);
928
1026
  listValue.values.push(value);
929
1027
  }
930
1028
  }
931
1029
 
932
1030
  //#endregion
933
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/signals.js
1031
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/signals.js
934
1032
  /**
935
1033
  * Create an AbortController that is automatically aborted if one of the given
936
1034
  * signals is aborted.
@@ -999,7 +1097,7 @@ function getAbortSignalReason(signal) {
999
1097
  }
1000
1098
 
1001
1099
  //#endregion
1002
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/context-values.js
1100
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/context-values.js
1003
1101
  /**
1004
1102
  * createContextValues creates a new ContextValues.
1005
1103
  */
@@ -1020,7 +1118,7 @@ function createContextValues() {
1020
1118
  }
1021
1119
 
1022
1120
  //#endregion
1023
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/implementation.js
1121
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/implementation.js
1024
1122
  /**
1025
1123
  * Create a new HandlerContext.
1026
1124
  *
@@ -1085,7 +1183,7 @@ function createServiceImplSpec(service, impl) {
1085
1183
  }
1086
1184
 
1087
1185
  //#endregion
1088
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/trailer.js
1186
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/trailer.js
1089
1187
  /**
1090
1188
  * Parse a gRPC-web trailer, a set of header fields separated by CRLF.
1091
1189
  *
@@ -1131,7 +1229,7 @@ function createTrailerSerialization() {
1131
1229
  }
1132
1230
 
1133
1231
  //#endregion
1134
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/headers.js
1232
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/headers.js
1135
1233
  /**
1136
1234
  * @private Internal code, does not follow semantic versioning.
1137
1235
  */
@@ -1144,7 +1242,7 @@ const headerGrpcMessage = "Grpc-Message";
1144
1242
  const headerStatusDetailsBin = "Grpc-Status-Details-Bin";
1145
1243
 
1146
1244
  //#endregion
1147
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/content-type.js
1245
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/content-type.js
1148
1246
  /**
1149
1247
  * Regular Expression that matches any valid gRPC-web Content-Type header value.
1150
1248
  * Note that this includes application/grpc-web-text with the additional base64
@@ -1170,7 +1268,7 @@ function parseContentType$2(contentType) {
1170
1268
  }
1171
1269
 
1172
1270
  //#endregion
1173
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/parse-timeout.js
1271
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/parse-timeout.js
1174
1272
  /**
1175
1273
  * Parse a gRPC Timeout (Deadline) header.
1176
1274
  *
@@ -1196,7 +1294,7 @@ function parseTimeout$1(value, maxTimeoutMs) {
1196
1294
  }
1197
1295
 
1198
1296
  //#endregion
1199
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/gen/status_pb.js
1297
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/gen/status_pb.js
1200
1298
  /**
1201
1299
  * Describes the file status.proto.
1202
1300
  */
@@ -1208,7 +1306,7 @@ const file_status = /*@__PURE__*/ fileDesc("CgxzdGF0dXMucHJvdG8SCmdvb2dsZS5ycGMi
1208
1306
  const StatusSchema = /*@__PURE__*/ messageDesc(file_status, 0);
1209
1307
 
1210
1308
  //#endregion
1211
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/http-headers.js
1309
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/http-headers.js
1212
1310
  function encodeBinaryHeader(value, desc) {
1213
1311
  let bytes;
1214
1312
  if (desc !== void 0) bytes = toBinary(desc, value);
@@ -1229,7 +1327,7 @@ function appendHeaders(...headers) {
1229
1327
  }
1230
1328
 
1231
1329
  //#endregion
1232
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/trailer-status.js
1330
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/trailer-status.js
1233
1331
  /**
1234
1332
  * The value of the Grpc-Status header or trailer in case of success.
1235
1333
  * Used by the gRPC and gRPC-web protocols.
@@ -1269,7 +1367,7 @@ function setTrailerStatus(target, error) {
1269
1367
  }
1270
1368
 
1271
1369
  //#endregion
1272
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/compression.js
1370
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/compression.js
1273
1371
  /**
1274
1372
  * Validates the request encoding and determines the accepted response encoding.
1275
1373
  *
@@ -1310,7 +1408,7 @@ function compressionNegotiate(available, requested, accepted, headerNameAcceptEn
1310
1408
  }
1311
1409
 
1312
1410
  //#endregion
1313
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/limit-io.js
1411
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/limit-io.js
1314
1412
  /**
1315
1413
  * At most, allow ~4GiB to be received or sent per message.
1316
1414
  * zlib used by Node.js caps maxOutputLength at this value. It also happens to
@@ -1365,7 +1463,7 @@ function assertReadMaxBytes(readMaxBytes, bytesRead, totalSizeKnown = false) {
1365
1463
  }
1366
1464
 
1367
1465
  //#endregion
1368
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/envelope.js
1466
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/envelope.js
1369
1467
  /**
1370
1468
  * Create an EnvelopeDecoder. The `readMaxBytes` argument limits the maximum
1371
1469
  * size for individual messages.
@@ -1491,7 +1589,7 @@ function encodeEnvelope(flags, data) {
1491
1589
  }
1492
1590
 
1493
1591
  //#endregion
1494
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/async-iterable.js
1592
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/async-iterable.js
1495
1593
  var __asyncValues$2 = void 0 && (void 0).__asyncValues || function(o) {
1496
1594
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1497
1595
  var m = o[Symbol.asyncIterator], i;
@@ -2097,7 +2195,7 @@ function createAsyncIterable(items) {
2097
2195
  }
2098
2196
 
2099
2197
  //#endregion
2100
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/content-type-matcher.js
2198
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/content-type-matcher.js
2101
2199
  const contentTypeMatcherCacheSize = 1024;
2102
2200
  /**
2103
2201
  * Create a function that returns true if the given mime type is supported.
@@ -2121,7 +2219,7 @@ function contentTypeMatcher(...supported) {
2121
2219
  }
2122
2220
 
2123
2221
  //#endregion
2124
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/create-method-url.js
2222
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/create-method-url.js
2125
2223
  /**
2126
2224
  * Create a URL for the given RPC. This simply adds the qualified
2127
2225
  * service name, a slash, and the method name to the path of the given
@@ -2142,7 +2240,7 @@ function createMethodUrl(baseUrl, method) {
2142
2240
  }
2143
2241
 
2144
2242
  //#endregion
2145
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/normalize.js
2243
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/normalize.js
2146
2244
  /**
2147
2245
  * Takes a partial protobuf messages of the
2148
2246
  * specified message type as input, and returns full instances.
@@ -2172,7 +2270,7 @@ function normalizeIterable(desc, input) {
2172
2270
  }
2173
2271
 
2174
2272
  //#endregion
2175
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/interceptor.js
2273
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/interceptor.js
2176
2274
  /**
2177
2275
  * applyInterceptors takes the given UnaryFn or ServerStreamingFn, and wraps
2178
2276
  * it with each of the given interceptors, returning a new UnaryFn or
@@ -2185,7 +2283,7 @@ function applyInterceptors(next, interceptors) {
2185
2283
  }
2186
2284
 
2187
2285
  //#endregion
2188
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/invoke-implementation.js
2286
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/invoke-implementation.js
2189
2287
  var __await$1 = void 0 && (void 0).__await || function(v) {
2190
2288
  return this instanceof __await$1 ? (this.v = v, this) : new __await$1(v);
2191
2289
  };
@@ -2395,7 +2493,7 @@ function copyHeaders(from, to) {
2395
2493
  }
2396
2494
 
2397
2495
  //#endregion
2398
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/serialization.js
2496
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/serialization.js
2399
2497
  /**
2400
2498
  * Sets default JSON serialization options for connect-es.
2401
2499
  *
@@ -2500,7 +2598,7 @@ function createJsonSerialization(desc, options) {
2500
2598
  }
2501
2599
 
2502
2600
  //#endregion
2503
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/universal.js
2601
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/universal.js
2504
2602
  /**
2505
2603
  * Assert that the given UniversalServerRequest has a byte stream body, not
2506
2604
  * a JSON value.
@@ -2550,7 +2648,7 @@ const uResponseMethodNotAllowed = { status: 405 };
2550
2648
  const uResponseVersionNotSupported = { status: 505 };
2551
2649
 
2552
2650
  //#endregion
2553
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler.js
2651
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol/universal-handler.js
2554
2652
  /**
2555
2653
  * Asserts that the options are within sane limits, and returns default values
2556
2654
  * where no value is provided.
@@ -2642,7 +2740,7 @@ function negotiateProtocol(protocolHandlers) {
2642
2740
  }
2643
2741
 
2644
2742
  //#endregion
2645
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/handler-factory.js
2743
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc-web/handler-factory.js
2646
2744
  const protocolName$2 = "grpc-web";
2647
2745
  const methodPost$2 = "POST";
2648
2746
  /**
@@ -2727,7 +2825,7 @@ function createHandler$1(opt, trailerSerialization, spec) {
2727
2825
  }
2728
2826
 
2729
2827
  //#endregion
2730
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/content-type.js
2828
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/content-type.js
2731
2829
  /**
2732
2830
  * Regular Expression that matches any valid gRPC Content-Type header value.
2733
2831
  *
@@ -2748,7 +2846,7 @@ function parseContentType$1(contentType) {
2748
2846
  }
2749
2847
 
2750
2848
  //#endregion
2751
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/handler-factory.js
2849
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-grpc/handler-factory.js
2752
2850
  const protocolName$1 = "grpc";
2753
2851
  const methodPost$1 = "POST";
2754
2852
  /**
@@ -2829,7 +2927,7 @@ function createHandler(opt, spec) {
2829
2927
  }
2830
2928
 
2831
2929
  //#endregion
2832
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/content-type.js
2930
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/content-type.js
2833
2931
  /**
2834
2932
  * Regular Expression that matches any valid Connect Content-Type header value.
2835
2933
  *
@@ -2887,7 +2985,7 @@ function parseEncodingQuery(encoding) {
2887
2985
  }
2888
2986
 
2889
2987
  //#endregion
2890
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/error-json.js
2988
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/error-json.js
2891
2989
  var __rest = void 0 && (void 0).__rest || function(s, e) {
2892
2990
  var t = {};
2893
2991
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -2977,7 +3075,7 @@ function errorToJsonBytes(error, jsonWriteOptions) {
2977
3075
  }
2978
3076
 
2979
3077
  //#endregion
2980
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/end-stream.js
3078
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/end-stream.js
2981
3079
  /**
2982
3080
  * Parse an EndStreamResponse of the Connect protocol.
2983
3081
  * Throws a ConnectError on malformed input.
@@ -3060,7 +3158,7 @@ function createEndStreamSerialization(options) {
3060
3158
  }
3061
3159
 
3062
3160
  //#endregion
3063
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/headers.js
3161
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/headers.js
3064
3162
  /**
3065
3163
  * @private Internal code, does not follow semantic versioning.
3066
3164
  */
@@ -3074,7 +3172,7 @@ const headerTimeout = "Connect-Timeout-Ms";
3074
3172
  const headerProtocolVersion = "Connect-Protocol-Version";
3075
3173
 
3076
3174
  //#endregion
3077
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/http-status.js
3175
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/http-status.js
3078
3176
  /**
3079
3177
  * Returns a HTTP status code for the given Connect code.
3080
3178
  * See https://connectrpc.com/docs/protocol#error-codes
@@ -3104,7 +3202,7 @@ function codeToHttpStatus(code) {
3104
3202
  }
3105
3203
 
3106
3204
  //#endregion
3107
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/parse-timeout.js
3205
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/parse-timeout.js
3108
3206
  /**
3109
3207
  * Parse a Connect Timeout (Deadline) header.
3110
3208
  *
@@ -3123,7 +3221,7 @@ function parseTimeout(value, maxTimeoutMs) {
3123
3221
  }
3124
3222
 
3125
3223
  //#endregion
3126
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/query-params.js
3224
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/query-params.js
3127
3225
  /**
3128
3226
  * @private Internal code, does not follow semantic versioning.
3129
3227
  */
@@ -3134,7 +3232,7 @@ const paramBase64 = "base64";
3134
3232
  const paramMessage = "message";
3135
3233
 
3136
3234
  //#endregion
3137
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/trailer-mux.js
3235
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/trailer-mux.js
3138
3236
  /**
3139
3237
  * In unary RPCs, Connect transports trailing metadata as response header
3140
3238
  * fields, prefixed with "trailer-".
@@ -3152,7 +3250,7 @@ function trailerMux(header, trailer) {
3152
3250
  }
3153
3251
 
3154
3252
  //#endregion
3155
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/version.js
3253
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/version.js
3156
3254
  /**
3157
3255
  * The only know value for the header Connect-Protocol-Version.
3158
3256
  *
@@ -3183,7 +3281,7 @@ function requireProtocolVersionParam(queryParams) {
3183
3281
  }
3184
3282
 
3185
3283
  //#endregion
3186
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/protocol-connect/handler-factory.js
3284
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/protocol-connect/handler-factory.js
3187
3285
  const protocolName = "connect";
3188
3286
  const methodPost = "POST";
3189
3287
  const methodGet = "GET";
@@ -3371,7 +3469,7 @@ function createStreamHandler(opt, spec, serialization, endStreamSerialization) {
3371
3469
  }
3372
3470
 
3373
3471
  //#endregion
3374
- //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0/node_modules/@connectrpc/connect/dist/esm/router.js
3472
+ //#region ../../node_modules/.pnpm/@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1/node_modules/@connectrpc/connect/dist/esm/router.js
3375
3473
  /**
3376
3474
  * Create a new ConnectRouter.
3377
3475
  */
@@ -3408,7 +3506,7 @@ function whichProtocols(options, base) {
3408
3506
  }
3409
3507
 
3410
3508
  //#endregion
3411
- //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.0_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0_/node_modules/@connectrpc/connect-node/dist/esm/node-universal-header.js
3509
+ //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.1_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1_/node_modules/@connectrpc/connect-node/dist/esm/node-universal-header.js
3412
3510
  /**
3413
3511
  * Convert a Node.js header object to a fetch API Headers object.
3414
3512
  *
@@ -3459,7 +3557,7 @@ function appendWebHeader(o, key, value) {
3459
3557
  }
3460
3558
 
3461
3559
  //#endregion
3462
- //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.0_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0_/node_modules/@connectrpc/connect-node/dist/esm/node-error.js
3560
+ //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.1_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1_/node_modules/@connectrpc/connect-node/dist/esm/node-error.js
3463
3561
  /**
3464
3562
  * Similar to ConnectError.from(), this function turns any value into
3465
3563
  * a ConnectError, but special cases some Node.js specific error codes and
@@ -3546,7 +3644,7 @@ var H2Code;
3546
3644
  })(H2Code || (H2Code = {}));
3547
3645
 
3548
3646
  //#endregion
3549
- //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.0_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0_/node_modules/@connectrpc/connect-node/dist/esm/node-universal-handler.js
3647
+ //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.1_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1_/node_modules/@connectrpc/connect-node/dist/esm/node-universal-handler.js
3550
3648
  var __asyncValues = void 0 && (void 0).__asyncValues || function(o) {
3551
3649
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3552
3650
  var m = o[Symbol.asyncIterator], i;
@@ -3741,7 +3839,7 @@ function write(stream, data) {
3741
3839
  }
3742
3840
 
3743
3841
  //#endregion
3744
- //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.0_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0_/node_modules/@connectrpc/connect-node/dist/esm/compression.js
3842
+ //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.1_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1_/node_modules/@connectrpc/connect-node/dist/esm/compression.js
3745
3843
  const gzip = promisify(zlib$4.gzip);
3746
3844
  const gunzip = promisify(zlib$4.gunzip);
3747
3845
  const brotliCompress = promisify(zlib$4.brotliCompress);
@@ -3808,7 +3906,7 @@ function wrapZLibErrors(promise, readMaxBytes) {
3808
3906
  }
3809
3907
 
3810
3908
  //#endregion
3811
- //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.0_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.0_/node_modules/@connectrpc/connect-node/dist/esm/connect-node-adapter.js
3909
+ //#region ../../node_modules/.pnpm/@connectrpc+connect-node@2.1.1_@bufbuild+protobuf@2.12.1_@connectrpc+connect@2.1.1_@bufbuild+protobuf@2.12.1_/node_modules/@connectrpc/connect-node/dist/esm/connect-node-adapter.js
3812
3910
  /**
3813
3911
  * Create a Node.js request handler from a ConnectRouter.
3814
3912
  *