@kubb/plugin-ts 3.18.2 → 4.0.0

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.
Files changed (42) hide show
  1. package/dist/{components-6F5RoYuJ.js → components-BKIt6l3E.js} +48 -357
  2. package/dist/components-BKIt6l3E.js.map +1 -0
  3. package/dist/{components-B-Jx1kI5.cjs → components-CTopmaD3.cjs} +60 -363
  4. package/dist/components-CTopmaD3.cjs.map +1 -0
  5. package/dist/components.cjs +1 -1
  6. package/dist/components.d.cts +1 -1
  7. package/dist/components.d.ts +1 -1
  8. package/dist/components.js +1 -1
  9. package/dist/generators.cjs +2 -2
  10. package/dist/generators.d.cts +1 -1
  11. package/dist/generators.d.ts +1 -1
  12. package/dist/generators.js +2 -2
  13. package/dist/index.cjs +2 -2
  14. package/dist/index.d.cts +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +2 -2
  17. package/dist/{plugin-BXxI6FcR.cjs → plugin-CxMJgMjV.cjs} +33 -23
  18. package/dist/{plugin-BXxI6FcR.cjs.map → plugin-CxMJgMjV.cjs.map} +1 -1
  19. package/dist/{plugin-CldbLff9.js → plugin-nmU_mIiP.js} +11 -12
  20. package/dist/{plugin-CldbLff9.js.map → plugin-nmU_mIiP.js.map} +1 -1
  21. package/dist/{types-BWn5y2Wo.d.ts → types-BLgrg7-y.d.cts} +4 -3
  22. package/dist/{types-Bnh-xEll.d.cts → types-C7OjrC1J.d.ts} +4 -3
  23. package/package.json +9 -9
  24. package/src/generators/__snapshots__/enumAllOf.ts +3 -3
  25. package/src/generators/__snapshots__/enumArray.ts +2 -2
  26. package/src/generators/__snapshots__/enumArray20.ts +3 -3
  27. package/src/generators/__snapshots__/enumInObject.ts +3 -3
  28. package/src/generators/__snapshots__/enumItems.ts +3 -3
  29. package/src/generators/__snapshots__/enumNames.ts +2 -2
  30. package/src/generators/__snapshots__/enumNamesConst.ts +2 -2
  31. package/src/generators/__snapshots__/enumNamesLiteral.ts +2 -2
  32. package/src/generators/__snapshots__/enumNamesPascalConst.ts +3 -3
  33. package/src/generators/__snapshots__/enumNamesType.ts +2 -2
  34. package/src/generators/__snapshots__/enumNullableMember.ts +3 -3
  35. package/src/generators/__snapshots__/enumNullableType.ts +3 -3
  36. package/src/generators/__snapshots__/enumString.ts +3 -3
  37. package/src/generators/__snapshots__/enumVarNamesType.ts +3 -3
  38. package/src/generators/__snapshots__/fooBase.ts +2 -2
  39. package/src/plugin.ts +5 -2
  40. package/src/types.ts +1 -2
  41. package/dist/components-6F5RoYuJ.js.map +0 -1
  42. package/dist/components-B-Jx1kI5.cjs.map +0 -1
@@ -60,11 +60,6 @@ function OasType({ name, typeName, api }) {
60
60
  //#region ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
61
61
  var require_react_production_min = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js": ((exports) => {
62
62
  var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator;
63
- function A(a) {
64
- if (null === a || "object" !== typeof a) return null;
65
- a = z && a[z] || a["@@iterator"];
66
- return "function" === typeof a ? a : null;
67
- }
68
63
  var B = {
69
64
  isMounted: function() {
70
65
  return !1;
@@ -105,271 +100,7 @@ var require_react_production_min = /* @__PURE__ */ __commonJS({ "../../node_modu
105
100
  __self: !0,
106
101
  __source: !0
107
102
  };
108
- function M(a, b, e) {
109
- var d, c = {}, k = null, h = null;
110
- if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
111
- var g = arguments.length - 2;
112
- if (1 === g) c.children = e;
113
- else if (1 < g) {
114
- for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
115
- c.children = f;
116
- }
117
- if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
118
- return {
119
- $$typeof: l,
120
- type: a,
121
- key: k,
122
- ref: h,
123
- props: c,
124
- _owner: K.current
125
- };
126
- }
127
- function N(a, b) {
128
- return {
129
- $$typeof: l,
130
- type: a.type,
131
- key: b,
132
- ref: a.ref,
133
- props: a.props,
134
- _owner: a._owner
135
- };
136
- }
137
- function O(a) {
138
- return "object" === typeof a && null !== a && a.$$typeof === l;
139
- }
140
- function escape(a) {
141
- var b = {
142
- "=": "=0",
143
- ":": "=2"
144
- };
145
- return "$" + a.replace(/[=:]/g, function(a$1) {
146
- return b[a$1];
147
- });
148
- }
149
- var P = /\/+/g;
150
- function Q(a, b) {
151
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
152
- }
153
- function R(a, b, e, d, c) {
154
- var k = typeof a;
155
- if ("undefined" === k || "boolean" === k) a = null;
156
- var h = !1;
157
- if (null === a) h = !0;
158
- else switch (k) {
159
- case "string":
160
- case "number":
161
- h = !0;
162
- break;
163
- case "object": switch (a.$$typeof) {
164
- case l:
165
- case n: h = !0;
166
- }
167
- }
168
- if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a$1) {
169
- return a$1;
170
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
171
- h = 0;
172
- d = "" === d ? "." : d + ":";
173
- if (I(a)) for (var g = 0; g < a.length; g++) {
174
- k = a[g];
175
- var f = d + Q(k, g);
176
- h += R(k, b, e, f, c);
177
- }
178
- else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
179
- else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
180
- return h;
181
- }
182
- function S(a, b, e) {
183
- if (null == a) return a;
184
- var d = [], c = 0;
185
- R(a, d, "", "", function(a$1) {
186
- return b.call(e, a$1, c++);
187
- });
188
- return d;
189
- }
190
- function T(a) {
191
- if (-1 === a._status) {
192
- var b = a._result;
193
- b = b();
194
- b.then(function(b$1) {
195
- if (0 === a._status || -1 === a._status) a._status = 1, a._result = b$1;
196
- }, function(b$1) {
197
- if (0 === a._status || -1 === a._status) a._status = 2, a._result = b$1;
198
- });
199
- -1 === a._status && (a._status = 0, a._result = b);
200
- }
201
- if (1 === a._status) return a._result.default;
202
- throw a._result;
203
- }
204
- var U = { current: null }, V = { transition: null }, W = {
205
- ReactCurrentDispatcher: U,
206
- ReactCurrentBatchConfig: V,
207
- ReactCurrentOwner: K
208
- };
209
- function X() {
210
- throw Error("act(...) is not supported in production builds of React.");
211
- }
212
- exports.Children = {
213
- map: S,
214
- forEach: function(a, b, e) {
215
- S(a, function() {
216
- b.apply(this, arguments);
217
- }, e);
218
- },
219
- count: function(a) {
220
- var b = 0;
221
- S(a, function() {
222
- b++;
223
- });
224
- return b;
225
- },
226
- toArray: function(a) {
227
- return S(a, function(a$1) {
228
- return a$1;
229
- }) || [];
230
- },
231
- only: function(a) {
232
- if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
233
- return a;
234
- }
235
- };
236
- exports.Component = E;
237
103
  exports.Fragment = p;
238
- exports.Profiler = r;
239
- exports.PureComponent = G;
240
- exports.StrictMode = q;
241
- exports.Suspense = w;
242
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
243
- exports.act = X;
244
- exports.cloneElement = function(a, b, e) {
245
- if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
246
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
247
- if (null != b) {
248
- void 0 !== b.ref && (k = b.ref, h = K.current);
249
- void 0 !== b.key && (c = "" + b.key);
250
- if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
251
- for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
252
- }
253
- var f = arguments.length - 2;
254
- if (1 === f) d.children = e;
255
- else if (1 < f) {
256
- g = Array(f);
257
- for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
258
- d.children = g;
259
- }
260
- return {
261
- $$typeof: l,
262
- type: a.type,
263
- key: c,
264
- ref: k,
265
- props: d,
266
- _owner: h
267
- };
268
- };
269
- exports.createContext = function(a) {
270
- a = {
271
- $$typeof: u,
272
- _currentValue: a,
273
- _currentValue2: a,
274
- _threadCount: 0,
275
- Provider: null,
276
- Consumer: null,
277
- _defaultValue: null,
278
- _globalName: null
279
- };
280
- a.Provider = {
281
- $$typeof: t,
282
- _context: a
283
- };
284
- return a.Consumer = a;
285
- };
286
- exports.createElement = M;
287
- exports.createFactory = function(a) {
288
- var b = M.bind(null, a);
289
- b.type = a;
290
- return b;
291
- };
292
- exports.createRef = function() {
293
- return { current: null };
294
- };
295
- exports.forwardRef = function(a) {
296
- return {
297
- $$typeof: v,
298
- render: a
299
- };
300
- };
301
- exports.isValidElement = O;
302
- exports.lazy = function(a) {
303
- return {
304
- $$typeof: y,
305
- _payload: {
306
- _status: -1,
307
- _result: a
308
- },
309
- _init: T
310
- };
311
- };
312
- exports.memo = function(a, b) {
313
- return {
314
- $$typeof: x,
315
- type: a,
316
- compare: void 0 === b ? null : b
317
- };
318
- };
319
- exports.startTransition = function(a) {
320
- var b = V.transition;
321
- V.transition = {};
322
- try {
323
- a();
324
- } finally {
325
- V.transition = b;
326
- }
327
- };
328
- exports.unstable_act = X;
329
- exports.useCallback = function(a, b) {
330
- return U.current.useCallback(a, b);
331
- };
332
- exports.useContext = function(a) {
333
- return U.current.useContext(a);
334
- };
335
- exports.useDebugValue = function() {};
336
- exports.useDeferredValue = function(a) {
337
- return U.current.useDeferredValue(a);
338
- };
339
- exports.useEffect = function(a, b) {
340
- return U.current.useEffect(a, b);
341
- };
342
- exports.useId = function() {
343
- return U.current.useId();
344
- };
345
- exports.useImperativeHandle = function(a, b, e) {
346
- return U.current.useImperativeHandle(a, b, e);
347
- };
348
- exports.useInsertionEffect = function(a, b) {
349
- return U.current.useInsertionEffect(a, b);
350
- };
351
- exports.useLayoutEffect = function(a, b) {
352
- return U.current.useLayoutEffect(a, b);
353
- };
354
- exports.useMemo = function(a, b) {
355
- return U.current.useMemo(a, b);
356
- };
357
- exports.useReducer = function(a, b, e) {
358
- return U.current.useReducer(a, b, e);
359
- };
360
- exports.useRef = function(a) {
361
- return U.current.useRef(a);
362
- };
363
- exports.useState = function(a) {
364
- return U.current.useState(a);
365
- };
366
- exports.useSyncExternalStore = function(a, b, e) {
367
- return U.current.useSyncExternalStore(a, b, e);
368
- };
369
- exports.useTransition = function() {
370
- return U.current.useTransition();
371
- };
372
- exports.version = "18.3.1";
373
104
  }) });
374
105
 
375
106
  //#endregion
@@ -457,8 +188,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
457
188
  printWarning("error", format, args);
458
189
  }
459
190
  function printWarning(level, format, args) {
460
- var ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
461
- var stack = ReactDebugCurrentFrame$2.getStackAddendum();
191
+ var stack = ReactSharedInternals.ReactDebugCurrentFrame.getStackAddendum();
462
192
  if (stack !== "") {
463
193
  format += "%s";
464
194
  args = args.concat([stack]);
@@ -561,7 +291,6 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
561
291
  var defineDeprecationWarning = function(methodName, info) {
562
292
  Object.defineProperty(Component.prototype, methodName, { get: function() {
563
293
  warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
564
- return void 0;
565
294
  } });
566
295
  };
567
296
  for (var fnName in deprecatedAPIs) if (deprecatedAPIs.hasOwnProperty(fnName)) defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
@@ -590,9 +319,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
590
319
  return isArrayImpl(a);
591
320
  }
592
321
  function typeName(value) {
593
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
594
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
595
- return type;
322
+ return typeof Symbol === "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
596
323
  }
597
324
  function willCoercionThrow(value) {
598
325
  try {
@@ -634,12 +361,8 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
634
361
  case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
635
362
  }
636
363
  if (typeof type === "object") switch (type.$$typeof) {
637
- case REACT_CONTEXT_TYPE:
638
- var context = type;
639
- return getContextName(context) + ".Consumer";
640
- case REACT_PROVIDER_TYPE:
641
- var provider = type;
642
- return getContextName(provider._context) + ".Provider";
364
+ case REACT_CONTEXT_TYPE: return getContextName(type) + ".Consumer";
365
+ case REACT_PROVIDER_TYPE: return getContextName(type._context) + ".Provider";
643
366
  case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef");
644
367
  case REACT_MEMO_TYPE:
645
368
  var outerName = type.displayName || null;
@@ -664,8 +387,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
664
387
  __self: true,
665
388
  __source: true
666
389
  };
667
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
668
- didWarnAboutStringRefs = {};
390
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs = {};
669
391
  function hasValidRef(config) {
670
392
  if (hasOwnProperty.call(config, "ref")) {
671
393
  var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
@@ -813,8 +535,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
813
535
  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
814
536
  }
815
537
  function cloneAndReplaceKey(oldElement, newKey) {
816
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
817
- return newElement;
538
+ return ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
818
539
  }
819
540
  /**
820
541
  * Clone and return a new ReactElement using element as the starting point.
@@ -870,16 +591,15 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
870
591
  * @param {string} key to be escaped.
871
592
  * @return {string} the escaped key.
872
593
  */
873
- function escape$1(key) {
594
+ function escape(key) {
874
595
  var escapeRegex = /[=:]/g;
875
596
  var escaperLookup = {
876
597
  "=": "=0",
877
598
  ":": "=2"
878
599
  };
879
- var escapedString = key.replace(escapeRegex, function(match) {
600
+ return "$" + key.replace(escapeRegex, function(match) {
880
601
  return escaperLookup[match];
881
602
  });
882
- return "$" + escapedString;
883
603
  }
884
604
  /**
885
605
  * TODO: Test that a single child and an array with one item have the same key
@@ -900,7 +620,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
900
620
  function getElementKey(element, index) {
901
621
  if (typeof element === "object" && element !== null && element.key != null) {
902
622
  checkKeyStringCoercion(element.key);
903
- return escape$1("" + element.key);
623
+ return escape("" + element.key);
904
624
  }
905
625
  return index.toString(36);
906
626
  }
@@ -1172,13 +892,12 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1172
892
  } else throw payload._result;
1173
893
  }
1174
894
  function lazy(ctor) {
1175
- var payload = {
1176
- _status: Uninitialized,
1177
- _result: ctor
1178
- };
1179
895
  var lazyType = {
1180
896
  $$typeof: REACT_LAZY_TYPE,
1181
- _payload: payload,
897
+ _payload: {
898
+ _status: Uninitialized,
899
+ _result: ctor
900
+ },
1182
901
  _init: lazyInitializer
1183
902
  };
1184
903
  var defaultProps;
@@ -1234,8 +953,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1234
953
  });
1235
954
  return elementType;
1236
955
  }
1237
- var REACT_MODULE_REFERENCE;
1238
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
956
+ var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1239
957
  function isValidElementType(type) {
1240
958
  if (typeof type === "string" || typeof type === "function") return true;
1241
959
  if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) return true;
@@ -1280,60 +998,46 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1280
998
  return dispatcher.useContext(Context);
1281
999
  }
1282
1000
  function useState(initialState) {
1283
- var dispatcher = resolveDispatcher();
1284
- return dispatcher.useState(initialState);
1001
+ return resolveDispatcher().useState(initialState);
1285
1002
  }
1286
1003
  function useReducer(reducer, initialArg, init) {
1287
- var dispatcher = resolveDispatcher();
1288
- return dispatcher.useReducer(reducer, initialArg, init);
1004
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1289
1005
  }
1290
1006
  function useRef(initialValue) {
1291
- var dispatcher = resolveDispatcher();
1292
- return dispatcher.useRef(initialValue);
1007
+ return resolveDispatcher().useRef(initialValue);
1293
1008
  }
1294
1009
  function useEffect(create, deps) {
1295
- var dispatcher = resolveDispatcher();
1296
- return dispatcher.useEffect(create, deps);
1010
+ return resolveDispatcher().useEffect(create, deps);
1297
1011
  }
1298
1012
  function useInsertionEffect(create, deps) {
1299
- var dispatcher = resolveDispatcher();
1300
- return dispatcher.useInsertionEffect(create, deps);
1013
+ return resolveDispatcher().useInsertionEffect(create, deps);
1301
1014
  }
1302
1015
  function useLayoutEffect(create, deps) {
1303
- var dispatcher = resolveDispatcher();
1304
- return dispatcher.useLayoutEffect(create, deps);
1016
+ return resolveDispatcher().useLayoutEffect(create, deps);
1305
1017
  }
1306
1018
  function useCallback(callback, deps) {
1307
- var dispatcher = resolveDispatcher();
1308
- return dispatcher.useCallback(callback, deps);
1019
+ return resolveDispatcher().useCallback(callback, deps);
1309
1020
  }
1310
1021
  function useMemo(create, deps) {
1311
- var dispatcher = resolveDispatcher();
1312
- return dispatcher.useMemo(create, deps);
1022
+ return resolveDispatcher().useMemo(create, deps);
1313
1023
  }
1314
1024
  function useImperativeHandle(ref, create, deps) {
1315
- var dispatcher = resolveDispatcher();
1316
- return dispatcher.useImperativeHandle(ref, create, deps);
1025
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1317
1026
  }
1318
1027
  function useDebugValue(value, formatterFn) {
1319
- var dispatcher = resolveDispatcher();
1320
- return dispatcher.useDebugValue(value, formatterFn);
1028
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1321
1029
  }
1322
1030
  function useTransition() {
1323
- var dispatcher = resolveDispatcher();
1324
- return dispatcher.useTransition();
1031
+ return resolveDispatcher().useTransition();
1325
1032
  }
1326
1033
  function useDeferredValue(value) {
1327
- var dispatcher = resolveDispatcher();
1328
- return dispatcher.useDeferredValue(value);
1034
+ return resolveDispatcher().useDeferredValue(value);
1329
1035
  }
1330
1036
  function useId() {
1331
- var dispatcher = resolveDispatcher();
1332
- return dispatcher.useId();
1037
+ return resolveDispatcher().useId();
1333
1038
  }
1334
1039
  function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1335
- var dispatcher = resolveDispatcher();
1336
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1040
+ return resolveDispatcher().useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1337
1041
  }
1338
1042
  var disabledDepth = 0;
1339
1043
  var prevLog;
@@ -1404,9 +1108,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1404
1108
  return "\n" + prefix + name;
1405
1109
  }
1406
1110
  var reentry = false;
1407
- var componentFrameCache;
1408
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1409
- componentFrameCache = new PossiblyWeakMap();
1111
+ var componentFrameCache = new (typeof WeakMap === "function" ? WeakMap : Map)();
1410
1112
  function describeNativeComponentFrame(fn, construct) {
1411
1113
  if (!fn || reentry) return "";
1412
1114
  var frame = componentFrameCache.get(fn);
@@ -1415,8 +1117,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1415
1117
  reentry = true;
1416
1118
  var previousPrepareStackTrace = Error.prepareStackTrace;
1417
1119
  Error.prepareStackTrace = void 0;
1418
- var previousDispatcher;
1419
- previousDispatcher = ReactCurrentDispatcher$1.current;
1120
+ var previousDispatcher = ReactCurrentDispatcher$1.current;
1420
1121
  ReactCurrentDispatcher$1.current = null;
1421
1122
  disableLogs();
1422
1123
  try {
@@ -1553,8 +1254,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1553
1254
  setExtraStackFrame(stack);
1554
1255
  } else setExtraStackFrame(null);
1555
1256
  }
1556
- var propTypesMisspellWarningShown;
1557
- propTypesMisspellWarningShown = false;
1257
+ var propTypesMisspellWarningShown = false;
1558
1258
  function getDeclarationErrorAddendum() {
1559
1259
  if (ReactCurrentOwner.current) {
1560
1260
  var name = getComponentNameFromType(ReactCurrentOwner.current.type);
@@ -1741,8 +1441,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1741
1441
  } finally {
1742
1442
  ReactCurrentBatchConfig.transition = prevTransition;
1743
1443
  if (prevTransition === null && currentTransition._updatedFibers) {
1744
- var updatedFibersCount = currentTransition._updatedFibers.size;
1745
- if (updatedFibersCount > 10) warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1444
+ if (currentTransition._updatedFibers.size > 10) warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1746
1445
  currentTransition._updatedFibers.clear();
1747
1446
  }
1748
1447
  }
@@ -1752,8 +1451,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1752
1451
  function enqueueTask(task) {
1753
1452
  if (enqueueTaskImpl === null) try {
1754
1453
  var requireString = ("require" + Math.random()).slice(0, 7);
1755
- var nodeRequire = module && module[requireString];
1756
- enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
1454
+ enqueueTaskImpl = (module && module[requireString]).call(module, "timers").setImmediate;
1757
1455
  } catch (_err) {
1758
1456
  enqueueTaskImpl = function(callback) {
1759
1457
  if (didWarnAboutMessageChannel === false) {
@@ -1821,19 +1519,15 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1821
1519
  flushActQueue(_queue);
1822
1520
  ReactCurrentActQueue.current = null;
1823
1521
  }
1824
- var _thenable = { then: function(resolve, reject) {
1522
+ return { then: function(resolve, reject) {
1825
1523
  if (ReactCurrentActQueue.current === null) {
1826
1524
  ReactCurrentActQueue.current = [];
1827
1525
  recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1828
1526
  } else resolve(returnValue);
1829
1527
  } };
1830
- return _thenable;
1831
- } else {
1832
- var _thenable2 = { then: function(resolve, reject) {
1833
- resolve(returnValue);
1834
- } };
1835
- return _thenable2;
1836
- }
1528
+ } else return { then: function(resolve, reject) {
1529
+ resolve(returnValue);
1530
+ } };
1837
1531
  }
1838
1532
  }
1839
1533
  function popActScope(prevActScopeDepth) {
@@ -1952,11 +1646,11 @@ const typeKeywordMapper = {
1952
1646
  null: () => factory.keywordTypeNodes.null,
1953
1647
  nullish: void 0,
1954
1648
  array: (nodes) => {
1955
- if (!nodes) return void 0;
1649
+ if (!nodes) return;
1956
1650
  return factory.createArrayDeclaration({ nodes });
1957
1651
  },
1958
1652
  tuple: (nodes, rest, min, max) => {
1959
- if (!nodes) return void 0;
1653
+ if (!nodes) return;
1960
1654
  if (max) {
1961
1655
  nodes = nodes.slice(0, max);
1962
1656
  if (nodes.length < max && rest) nodes = [...nodes, ...Array(max - nodes.length).fill(rest)];
@@ -1966,18 +1660,18 @@ const typeKeywordMapper = {
1966
1660
  return factory.createTupleTypeNode(nodes);
1967
1661
  },
1968
1662
  enum: (name) => {
1969
- if (!name) return void 0;
1663
+ if (!name) return;
1970
1664
  return factory.createTypeReferenceNode(name, void 0);
1971
1665
  },
1972
1666
  union: (nodes) => {
1973
- if (!nodes) return void 0;
1667
+ if (!nodes) return;
1974
1668
  return factory.createUnionDeclaration({
1975
1669
  withParentheses: true,
1976
1670
  nodes
1977
1671
  });
1978
1672
  },
1979
1673
  const: (name, format) => {
1980
- if (name === null || name === void 0 || name === "") return void 0;
1674
+ if (name === null || name === void 0 || name === "") return;
1981
1675
  if (format === "boolean") {
1982
1676
  if (name === true) return factory.createLiteralTypeNode(factory.createTrue());
1983
1677
  return factory.createLiteralTypeNode(factory.createFalse());
@@ -1992,7 +1686,7 @@ const typeKeywordMapper = {
1992
1686
  url: () => factory.keywordTypeNodes.string,
1993
1687
  default: void 0,
1994
1688
  and: (nodes) => {
1995
- if (!nodes) return void 0;
1689
+ if (!nodes) return;
1996
1690
  return factory.createIntersectionDeclaration({
1997
1691
  withParentheses: true,
1998
1692
  nodes
@@ -2011,7 +1705,7 @@ const typeKeywordMapper = {
2011
1705
  readOnly: void 0,
2012
1706
  writeOnly: void 0,
2013
1707
  ref: (propertyName) => {
2014
- if (!propertyName) return void 0;
1708
+ if (!propertyName) return;
2015
1709
  return factory.createTypeReferenceNode(propertyName, void 0);
2016
1710
  },
2017
1711
  blob: () => factory.createTypeReferenceNode("Blob", []),
@@ -2035,7 +1729,7 @@ const typeKeywordMapper = {
2035
1729
  */
2036
1730
  function parse({ current, siblings, name }, options) {
2037
1731
  const value = typeKeywordMapper[current.keyword];
2038
- if (!value) return void 0;
1732
+ if (!value) return;
2039
1733
  if (isKeyword(current, schemaKeywords.union)) return typeKeywordMapper.union(current.args.map((schema) => parse({
2040
1734
  parent: current,
2041
1735
  name,
@@ -2074,8 +1768,7 @@ function parse({ current, siblings, name }, options) {
2074
1768
  const schemas = item[1];
2075
1769
  return schemas && typeof schemas.map === "function";
2076
1770
  }).map(([name$1, schemas]) => {
2077
- const nameSchema = schemas.find((schema) => schema.keyword === schemaKeywords.name);
2078
- const mappedName = nameSchema?.args || name$1;
1771
+ const mappedName = schemas.find((schema) => schema.keyword === schemaKeywords.name)?.args || name$1;
2079
1772
  if (options.mapper?.[mappedName]) return options.mapper?.[mappedName];
2080
1773
  const isNullish = schemas.some((schema) => schema.keyword === schemaKeywords.nullish);
2081
1774
  const isNullable = schemas.some((schema) => schema.keyword === schemaKeywords.nullable);
@@ -2126,8 +1819,7 @@ function parse({ current, siblings, name }, options) {
2126
1819
  current: schema,
2127
1820
  siblings
2128
1821
  }, options)).filter(Boolean).at(0);
2129
- const isNullable = current.args?.additionalProperties.some((schema) => isKeyword(schema, schemaKeywords.nullable));
2130
- if (isNullable) additionalProperties = factory.createUnionDeclaration({ nodes: [additionalProperties, factory.keywordTypeNodes.null] });
1822
+ if (current.args?.additionalProperties.some((schema) => isKeyword(schema, schemaKeywords.nullable))) additionalProperties = factory.createUnionDeclaration({ nodes: [additionalProperties, factory.keywordTypeNodes.null] });
2131
1823
  additionalProperties = factory.createIndexSignature(additionalProperties);
2132
1824
  }
2133
1825
  return typeKeywordMapper.object([...properties, additionalProperties].filter(Boolean));
@@ -2136,7 +1828,6 @@ function parse({ current, siblings, name }, options) {
2136
1828
  if (isKeyword(current, schemaKeywords.date)) return typeKeywordMapper.date(current.args.type);
2137
1829
  if (isKeyword(current, schemaKeywords.time)) return typeKeywordMapper.time(current.args.type);
2138
1830
  if (current.keyword in typeKeywordMapper) return value();
2139
- return void 0;
2140
1831
  }
2141
1832
 
2142
1833
  //#endregion
@@ -2237,4 +1928,4 @@ function Type$1({ name, typedName, tree, keysToOmit, schema, optionalType, synta
2237
1928
 
2238
1929
  //#endregion
2239
1930
  export { OasType, Type$1 as Type };
2240
- //# sourceMappingURL=components-6F5RoYuJ.js.map
1931
+ //# sourceMappingURL=components-BKIt6l3E.js.map