@liip/liipgpt 3.4.2 → 3.4.4

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 (54) hide show
  1. package/button/liipgpt-button.iife.js +85 -85
  2. package/chat/liipgpt-chat.iife.js +103 -103
  3. package/config/index.cjs +95 -85
  4. package/config/index.js +82 -78
  5. package/configurator/_app/env.js +1 -1
  6. package/configurator/_app/immutable/chunks/B3eztMjm.js +1 -0
  7. package/configurator/_app/immutable/chunks/B5LAyE-f.js +1 -0
  8. package/configurator/_app/immutable/chunks/BUm3woLX.js +1 -0
  9. package/configurator/_app/immutable/chunks/BdP-K7KO.js +3 -0
  10. package/configurator/_app/immutable/chunks/C8mohMXa.js +1 -0
  11. package/configurator/_app/immutable/chunks/CNhGYG1q.js +0 -0
  12. package/configurator/_app/immutable/chunks/CaZV0epm.js +1 -0
  13. package/configurator/_app/immutable/chunks/D1hYfEew.js +1 -0
  14. package/configurator/_app/immutable/chunks/D7iAOzgH.js +1 -0
  15. package/configurator/_app/immutable/chunks/DC7iQzPK.js +16 -0
  16. package/configurator/_app/immutable/chunks/DEv5Ueqk.js +324 -0
  17. package/configurator/_app/immutable/chunks/DJ-KAQCp.js +143 -0
  18. package/configurator/_app/immutable/chunks/DUJlwB59.js +15 -0
  19. package/configurator/_app/immutable/chunks/DevUxHro.js +89 -0
  20. package/configurator/_app/immutable/chunks/DopJiv6A.js +1 -0
  21. package/configurator/_app/immutable/chunks/DpTUJVdo.js +1 -0
  22. package/configurator/_app/immutable/chunks/az2UTMiX.js +1 -0
  23. package/configurator/_app/immutable/entry/app.Bl6ijR0o.js +2 -0
  24. package/configurator/_app/immutable/entry/start.ByoY54BX.js +1 -0
  25. package/configurator/_app/immutable/nodes/{0.Bgy3i8FQ.js → 0.DQUsz_zn.js} +3 -3
  26. package/configurator/_app/immutable/nodes/1.DRz2V13W.js +1 -0
  27. package/configurator/_app/immutable/nodes/2.DJcyAYWL.js +31 -0
  28. package/configurator/_app/immutable/nodes/3.B_llVVii.js +954 -0
  29. package/configurator/_app/version.json +1 -1
  30. package/configurator/index.html +10 -11
  31. package/configurator/sidebar.html +10 -11
  32. package/index.cjs +866 -1838
  33. package/index.js +830 -1832
  34. package/package.json +36 -36
  35. package/configurator/_app/immutable/chunks/6gGOJNBB.js +0 -1
  36. package/configurator/_app/immutable/chunks/BVWYCVQL.js +0 -113
  37. package/configurator/_app/immutable/chunks/BXQ0Z8wW.js +0 -1
  38. package/configurator/_app/immutable/chunks/Bg7q39r6.js +0 -1
  39. package/configurator/_app/immutable/chunks/CR5-hwU3.js +0 -1
  40. package/configurator/_app/immutable/chunks/CfJtR48A.js +0 -2
  41. package/configurator/_app/immutable/chunks/CqmBCC3F.js +0 -1
  42. package/configurator/_app/immutable/chunks/D0zq2rZV.js +0 -143
  43. package/configurator/_app/immutable/chunks/DGC7CooX.js +0 -1
  44. package/configurator/_app/immutable/chunks/DGqm4WKo.js +0 -15
  45. package/configurator/_app/immutable/chunks/Do2M-_FB.js +0 -324
  46. package/configurator/_app/immutable/chunks/DsnmJJEf.js +0 -1
  47. package/configurator/_app/immutable/chunks/g9pTgyF6.js +0 -1
  48. package/configurator/_app/immutable/chunks/hrZ0qwUL.js +0 -1
  49. package/configurator/_app/immutable/chunks/w7MLzsSQ.js +0 -1
  50. package/configurator/_app/immutable/entry/app.ConDGFGi.js +0 -2
  51. package/configurator/_app/immutable/entry/start.k8RQt7wE.js +0 -1
  52. package/configurator/_app/immutable/nodes/1.WSWj9VWy.js +0 -1
  53. package/configurator/_app/immutable/nodes/2.DRCudqRI.js +0 -31
  54. package/configurator/_app/immutable/nodes/3.CMaEAJPV.js +0 -954
package/index.js CHANGED
@@ -1,16 +1,20 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __returnValue = (v) => v;
3
+ function __exportSetter(name, newValue) {
4
+ this[name] = __returnValue.bind(null, newValue);
5
+ }
2
6
  var __export = (target, all) => {
3
7
  for (var name in all)
4
8
  __defProp(target, name, {
5
9
  get: all[name],
6
10
  enumerable: true,
7
11
  configurable: true,
8
- set: (newValue) => all[name] = () => newValue
12
+ set: __exportSetter.bind(all, name)
9
13
  });
10
14
  };
11
15
 
12
- // node_modules/.pnpm/dompurify@3.3.1/node_modules/dompurify/dist/purify.es.mjs
13
- /*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */
16
+ // node_modules/.bun/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.mjs
17
+ /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
14
18
  var {
15
19
  entries,
16
20
  setPrototypeOf,
@@ -28,17 +32,17 @@ var {
28
32
  construct
29
33
  } = typeof Reflect !== "undefined" && Reflect;
30
34
  if (!freeze) {
31
- freeze = function freeze(x) {
35
+ freeze = function freeze2(x) {
32
36
  return x;
33
37
  };
34
38
  }
35
39
  if (!seal) {
36
- seal = function seal(x) {
40
+ seal = function seal2(x) {
37
41
  return x;
38
42
  };
39
43
  }
40
44
  if (!apply) {
41
- apply = function apply(func, thisArg) {
45
+ apply = function apply2(func, thisArg) {
42
46
  for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2;_key < _len; _key++) {
43
47
  args[_key - 2] = arguments[_key];
44
48
  }
@@ -46,7 +50,7 @@ if (!apply) {
46
50
  };
47
51
  }
48
52
  if (!construct) {
49
- construct = function construct(Func) {
53
+ construct = function construct2(Func) {
50
54
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1;_key2 < _len2; _key2++) {
51
55
  args[_key2 - 1] = arguments[_key2];
52
56
  }
@@ -241,7 +245,7 @@ var _createHooksMap = function _createHooksMap2() {
241
245
  function createDOMPurify() {
242
246
  let window2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
243
247
  const DOMPurify = (root) => createDOMPurify(root);
244
- DOMPurify.version = "3.3.1";
248
+ DOMPurify.version = "3.3.3";
245
249
  DOMPurify.removed = [];
246
250
  if (!window2 || !window2.document || window2.document.nodeType !== NODE_TYPE.document || !window2.Element) {
247
251
  DOMPurify.isSupported = false;
@@ -381,10 +385,10 @@ function createDOMPurify() {
381
385
  let transformCaseFunc = null;
382
386
  let CONFIG = null;
383
387
  const formElement = document2.createElement("form");
384
- const isRegexOrFunction = function isRegexOrFunction(testValue) {
388
+ const isRegexOrFunction = function isRegexOrFunction2(testValue) {
385
389
  return testValue instanceof RegExp || testValue instanceof Function;
386
390
  };
387
- const _parseConfig = function _parseConfig() {
391
+ const _parseConfig = function _parseConfig2() {
388
392
  let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
389
393
  if (CONFIG && CONFIG === cfg) {
390
394
  return;
@@ -441,7 +445,7 @@ function createDOMPurify() {
441
445
  }
442
446
  if (USE_PROFILES) {
443
447
  ALLOWED_TAGS = addToSet({}, text);
444
- ALLOWED_ATTR = [];
448
+ ALLOWED_ATTR = create(null);
445
449
  if (USE_PROFILES.html === true) {
446
450
  addToSet(ALLOWED_TAGS, html$1);
447
451
  addToSet(ALLOWED_ATTR, html);
@@ -462,6 +466,12 @@ function createDOMPurify() {
462
466
  addToSet(ALLOWED_ATTR, xml);
463
467
  }
464
468
  }
469
+ if (!objectHasOwnProperty(cfg, "ADD_TAGS")) {
470
+ EXTRA_ELEMENT_HANDLING.tagCheck = null;
471
+ }
472
+ if (!objectHasOwnProperty(cfg, "ADD_ATTR")) {
473
+ EXTRA_ELEMENT_HANDLING.attributeCheck = null;
474
+ }
465
475
  if (cfg.ADD_TAGS) {
466
476
  if (typeof cfg.ADD_TAGS === "function") {
467
477
  EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
@@ -531,7 +541,7 @@ function createDOMPurify() {
531
541
  };
532
542
  const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
533
543
  const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
534
- const _checkValidNamespace = function _checkValidNamespace(element) {
544
+ const _checkValidNamespace = function _checkValidNamespace2(element) {
535
545
  let parent = getParentNode(element);
536
546
  if (!parent || !parent.tagName) {
537
547
  parent = {
@@ -576,7 +586,7 @@ function createDOMPurify() {
576
586
  }
577
587
  return false;
578
588
  };
579
- const _forceRemove = function _forceRemove(node) {
589
+ const _forceRemove = function _forceRemove2(node) {
580
590
  arrayPush(DOMPurify.removed, {
581
591
  element: node
582
592
  });
@@ -586,7 +596,7 @@ function createDOMPurify() {
586
596
  remove(node);
587
597
  }
588
598
  };
589
- const _removeAttribute = function _removeAttribute(name, element) {
599
+ const _removeAttribute = function _removeAttribute2(name, element) {
590
600
  try {
591
601
  arrayPush(DOMPurify.removed, {
592
602
  attribute: element.getAttributeNode(name),
@@ -611,7 +621,7 @@ function createDOMPurify() {
611
621
  }
612
622
  }
613
623
  };
614
- const _initDocument = function _initDocument(dirty) {
624
+ const _initDocument = function _initDocument2(dirty) {
615
625
  let doc = null;
616
626
  let leadingWhitespace = null;
617
627
  if (FORCE_BODY) {
@@ -644,13 +654,13 @@ function createDOMPurify() {
644
654
  }
645
655
  return WHOLE_DOCUMENT ? doc.documentElement : body;
646
656
  };
647
- const _createNodeIterator = function _createNodeIterator(root) {
657
+ const _createNodeIterator = function _createNodeIterator2(root) {
648
658
  return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
649
659
  };
650
- const _isClobbered = function _isClobbered(element) {
660
+ const _isClobbered = function _isClobbered2(element) {
651
661
  return element instanceof HTMLFormElement && (typeof element.nodeName !== "string" || typeof element.textContent !== "string" || typeof element.removeChild !== "function" || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== "function" || typeof element.setAttribute !== "function" || typeof element.namespaceURI !== "string" || typeof element.insertBefore !== "function" || typeof element.hasChildNodes !== "function");
652
662
  };
653
- const _isNode = function _isNode(value) {
663
+ const _isNode = function _isNode2(value) {
654
664
  return typeof Node2 === "function" && value instanceof Node2;
655
665
  };
656
666
  function _executeHooks(hooks2, currentNode, data) {
@@ -658,7 +668,7 @@ function createDOMPurify() {
658
668
  hook.call(DOMPurify, currentNode, data, CONFIG);
659
669
  });
660
670
  }
661
- const _sanitizeElements = function _sanitizeElements(currentNode) {
671
+ const _sanitizeElements = function _sanitizeElements2(currentNode) {
662
672
  let content = null;
663
673
  _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
664
674
  if (_isClobbered(currentNode)) {
@@ -729,7 +739,10 @@ function createDOMPurify() {
729
739
  _executeHooks(hooks.afterSanitizeElements, currentNode, null);
730
740
  return false;
731
741
  };
732
- const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
742
+ const _isValidAttribute = function _isValidAttribute2(lcTag, lcName, value) {
743
+ if (FORBID_ATTR[lcName]) {
744
+ return false;
745
+ }
733
746
  if (SANITIZE_DOM && (lcName === "id" || lcName === "name") && ((value in document2) || (value in formElement))) {
734
747
  return false;
735
748
  }
@@ -759,10 +772,10 @@ function createDOMPurify() {
759
772
  ;
760
773
  return true;
761
774
  };
762
- const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
775
+ const _isBasicCustomElement = function _isBasicCustomElement2(tagName) {
763
776
  return tagName !== "annotation-xml" && stringMatch(tagName, CUSTOM_ELEMENT2);
764
777
  };
765
- const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
778
+ const _sanitizeAttributes = function _sanitizeAttributes2(currentNode) {
766
779
  _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
767
780
  const {
768
781
  attributes
@@ -798,7 +811,7 @@ function createDOMPurify() {
798
811
  _removeAttribute(name, currentNode);
799
812
  value = SANITIZE_NAMED_PROPS_PREFIX + value;
800
813
  }
801
- if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
814
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) {
802
815
  _removeAttribute(name, currentNode);
803
816
  continue;
804
817
  }
@@ -862,7 +875,7 @@ function createDOMPurify() {
862
875
  }
863
876
  _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
864
877
  };
865
- const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
878
+ const _sanitizeShadowDOM = function _sanitizeShadowDOM2(fragment) {
866
879
  let shadowNode = null;
867
880
  const shadowIterator = _createNodeIterator(fragment);
868
881
  _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
@@ -871,7 +884,7 @@ function createDOMPurify() {
871
884
  _sanitizeElements(shadowNode);
872
885
  _sanitizeAttributes(shadowNode);
873
886
  if (shadowNode.content instanceof DocumentFragment) {
874
- _sanitizeShadowDOM(shadowNode.content);
887
+ _sanitizeShadowDOM2(shadowNode.content);
875
888
  }
876
889
  }
877
890
  _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
@@ -1012,7 +1025,7 @@ function createDOMPurify() {
1012
1025
  }
1013
1026
  var purify = createDOMPurify();
1014
1027
 
1015
- // node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.js
1028
+ // node_modules/.bun/marked@15.0.12/node_modules/marked/lib/marked.esm.js
1016
1029
  function _getDefaults() {
1017
1030
  return {
1018
1031
  async: false,
@@ -1121,7 +1134,7 @@ var def = edit(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?
1121
1134
  var list = edit(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bullet).getRegex();
1122
1135
  var _tag = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";
1123
1136
  var _comment = /<!--(?:-?>|[\s\S]*?(?:-->|$))/;
1124
- var html2 = edit("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", _comment).replace("tag", _tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
1137
+ var html2 = edit("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))", "i").replace("comment", _comment).replace("tag", _tag).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();
1125
1138
  var paragraph = edit(_paragraph).replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex();
1126
1139
  var blockquote = edit(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", paragraph).getRegex();
1127
1140
  var blockNormal = {
@@ -1139,7 +1152,7 @@ var blockNormal = {
1139
1152
  table: noopTest,
1140
1153
  text: blockText
1141
1154
  };
1142
- var gfmTable = edit("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex();
1155
+ var gfmTable = edit("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", hr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3}\t)[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", _tag).getRegex();
1143
1156
  var blockGfm = {
1144
1157
  ...blockNormal,
1145
1158
  lheading: lheadingGfm,
@@ -3243,20 +3256,17 @@ class MarkdownRenderer {
3243
3256
  return html3;
3244
3257
  }
3245
3258
  }
3246
- // node_modules/.pnpm/esm-env@1.2.2/node_modules/esm-env/true.js
3259
+ // node_modules/.bun/esm-env@1.2.2/node_modules/esm-env/true.js
3247
3260
  var true_default = true;
3248
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/shared/utils.js
3261
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/utils.js
3249
3262
  var is_array = Array.isArray;
3250
3263
  var index_of = Array.prototype.indexOf;
3251
3264
  var includes = Array.prototype.includes;
3252
- var array_from = Array.from;
3253
- var object_keys = Object.keys;
3254
3265
  var define_property = Object.defineProperty;
3255
3266
  var get_descriptor = Object.getOwnPropertyDescriptor;
3256
3267
  var object_prototype = Object.prototype;
3257
3268
  var array_prototype = Array.prototype;
3258
3269
  var get_prototype_of = Object.getPrototypeOf;
3259
- var is_extensible = Object.isExtensible;
3260
3270
  var noop = () => {};
3261
3271
  function run_all(arr) {
3262
3272
  for (var i = 0;i < arr.length; i++) {
@@ -3273,7 +3283,7 @@ function deferred() {
3273
3283
  return { promise, resolve, reject };
3274
3284
  }
3275
3285
 
3276
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/constants.js
3286
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/constants.js
3277
3287
  var DERIVED = 1 << 1;
3278
3288
  var EFFECT = 1 << 2;
3279
3289
  var RENDER_EFFECT = 1 << 3;
@@ -3289,6 +3299,7 @@ var MAYBE_DIRTY = 1 << 12;
3289
3299
  var INERT = 1 << 13;
3290
3300
  var DESTROYED = 1 << 14;
3291
3301
  var REACTION_RAN = 1 << 15;
3302
+ var DESTROYING = 1 << 25;
3292
3303
  var EFFECT_TRANSPARENT = 1 << 16;
3293
3304
  var EAGER_EFFECT = 1 << 17;
3294
3305
  var HEAD_EFFECT = 1 << 18;
@@ -3310,17 +3321,27 @@ var STALE_REACTION = new class StaleReactionError extends Error {
3310
3321
  var IS_XHTML = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
3311
3322
  var COMMENT_NODE = 8;
3312
3323
 
3313
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/reactivity/equality.js
3324
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/equality.js
3314
3325
  function equals(value) {
3315
3326
  return value === this.v;
3316
3327
  }
3317
3328
  function safe_not_equal(a, b) {
3318
3329
  return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
3319
3330
  }
3320
- function safe_equals(value) {
3321
- return !safe_not_equal(value, this.v);
3331
+
3332
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/errors.js
3333
+ function invariant_violation(message) {
3334
+ if (true_default) {
3335
+ const error = new Error(`invariant_violation
3336
+ An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${message}"
3337
+ https://svelte.dev/e/invariant_violation`);
3338
+ error.name = "Svelte error";
3339
+ throw error;
3340
+ } else {
3341
+ throw new Error(`https://svelte.dev/e/invariant_violation`);
3342
+ }
3322
3343
  }
3323
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/errors.js
3344
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/errors.js
3324
3345
  function derived_references_self() {
3325
3346
  if (true_default) {
3326
3347
  const error = new Error(`derived_references_self
@@ -3343,28 +3364,6 @@ https://svelte.dev/e/effect_update_depth_exceeded`);
3343
3364
  throw new Error(`https://svelte.dev/e/effect_update_depth_exceeded`);
3344
3365
  }
3345
3366
  }
3346
- function hydration_failed() {
3347
- if (true_default) {
3348
- const error = new Error(`hydration_failed
3349
- Failed to hydrate the application
3350
- https://svelte.dev/e/hydration_failed`);
3351
- error.name = "Svelte error";
3352
- throw error;
3353
- } else {
3354
- throw new Error(`https://svelte.dev/e/hydration_failed`);
3355
- }
3356
- }
3357
- function rune_outside_svelte(rune) {
3358
- if (true_default) {
3359
- const error = new Error(`rune_outside_svelte
3360
- The \`${rune}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
3361
- https://svelte.dev/e/rune_outside_svelte`);
3362
- error.name = "Svelte error";
3363
- throw error;
3364
- } else {
3365
- throw new Error(`https://svelte.dev/e/rune_outside_svelte`);
3366
- }
3367
- }
3368
3367
  function state_descriptors_fixed() {
3369
3368
  if (true_default) {
3370
3369
  const error = new Error(`state_descriptors_fixed
@@ -3410,12 +3409,12 @@ https://svelte.dev/e/svelte_boundary_reset_onerror`);
3410
3409
  }
3411
3410
  }
3412
3411
 
3413
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/flags/index.js
3412
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/flags/index.js
3414
3413
  var async_mode_flag = false;
3415
3414
  var legacy_mode_flag = false;
3416
3415
  var tracing_mode_flag = false;
3417
3416
 
3418
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/constants.js
3417
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/constants.js
3419
3418
  var EACH_INDEX_REACTIVE = 1 << 1;
3420
3419
  var EACH_IS_CONTROLLED = 1 << 2;
3421
3420
  var EACH_IS_ANIMATED = 1 << 3;
@@ -3439,9 +3438,8 @@ var ELEMENT_IS_INPUT = 1 << 2;
3439
3438
  var UNINITIALIZED = Symbol();
3440
3439
  var FILENAME = Symbol("filename");
3441
3440
  var HMR = Symbol("hmr");
3442
- var NAMESPACE_HTML = "http://www.w3.org/1999/xhtml";
3443
3441
 
3444
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dev/tracing.js
3442
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dev/tracing.js
3445
3443
  var tracing_expressions = null;
3446
3444
  function tag2(source, label) {
3447
3445
  source.label = label;
@@ -3453,7 +3451,7 @@ function tag_proxy(value, label) {
3453
3451
  return value;
3454
3452
  }
3455
3453
 
3456
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/shared/dev.js
3454
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/shared/dev.js
3457
3455
  function get_error(label) {
3458
3456
  const error = new Error;
3459
3457
  const stack = get_stack();
@@ -3497,8 +3495,15 @@ function get_stack() {
3497
3495
  }
3498
3496
  return new_lines;
3499
3497
  }
3498
+ function invariant(condition, message) {
3499
+ if (!true_default) {
3500
+ throw new Error("invariant(...) was not guarded by if (DEV)");
3501
+ }
3502
+ if (!condition)
3503
+ invariant_violation(message);
3504
+ }
3500
3505
 
3501
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/context.js
3506
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/context.js
3502
3507
  var component_context = null;
3503
3508
  function set_component_context(context) {
3504
3509
  component_context = context;
@@ -3511,45 +3516,11 @@ var dev_current_component_function = null;
3511
3516
  function set_dev_current_component_function(fn) {
3512
3517
  dev_current_component_function = fn;
3513
3518
  }
3514
- function push(props, runes = false, fn) {
3515
- component_context = {
3516
- p: component_context,
3517
- i: false,
3518
- c: null,
3519
- e: null,
3520
- s: props,
3521
- x: null,
3522
- l: legacy_mode_flag && !runes ? { s: null, u: null, $: [] } : null
3523
- };
3524
- if (true_default) {
3525
- component_context.function = fn;
3526
- dev_current_component_function = fn;
3527
- }
3528
- }
3529
- function pop(component) {
3530
- var context = component_context;
3531
- var effects = context.e;
3532
- if (effects !== null) {
3533
- context.e = null;
3534
- for (var fn of effects) {
3535
- create_user_effect(fn);
3536
- }
3537
- }
3538
- if (component !== undefined) {
3539
- context.x = component;
3540
- }
3541
- context.i = true;
3542
- component_context = context.p;
3543
- if (true_default) {
3544
- dev_current_component_function = component_context?.function ?? null;
3545
- }
3546
- return component ?? {};
3547
- }
3548
3519
  function is_runes() {
3549
3520
  return !legacy_mode_flag || component_context !== null && component_context.l === null;
3550
3521
  }
3551
3522
 
3552
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/task.js
3523
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/task.js
3553
3524
  var micro_tasks = [];
3554
3525
  function run_micro_tasks() {
3555
3526
  var tasks = micro_tasks;
@@ -3566,15 +3537,19 @@ function queue_micro_task(fn) {
3566
3537
  }
3567
3538
  micro_tasks.push(fn);
3568
3539
  }
3569
- function flush_tasks() {
3570
- while (micro_tasks.length > 0) {
3571
- run_micro_tasks();
3572
- }
3573
- }
3574
3540
 
3575
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/warnings.js
3541
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/warnings.js
3576
3542
  var bold = "font-weight: bold";
3577
3543
  var normal = "font-weight: normal";
3544
+ function await_reactivity_loss(name) {
3545
+ if (true_default) {
3546
+ console.warn(`%c[svelte] await_reactivity_loss
3547
+ %cDetected reactivity loss when reading \`${name}\`. This happens when state is read in an async function after an earlier \`await\`
3548
+ https://svelte.dev/e/await_reactivity_loss`, bold, normal);
3549
+ } else {
3550
+ console.warn(`https://svelte.dev/e/await_reactivity_loss`);
3551
+ }
3552
+ }
3578
3553
  function hydration_mismatch(location) {
3579
3554
  if (true_default) {
3580
3555
  console.warn(`%c[svelte] hydration_mismatch
@@ -3584,33 +3559,6 @@ https://svelte.dev/e/hydration_mismatch`, bold, normal);
3584
3559
  console.warn(`https://svelte.dev/e/hydration_mismatch`);
3585
3560
  }
3586
3561
  }
3587
- function lifecycle_double_unmount() {
3588
- if (true_default) {
3589
- console.warn(`%c[svelte] lifecycle_double_unmount
3590
- %cTried to unmount a component that was not mounted
3591
- https://svelte.dev/e/lifecycle_double_unmount`, bold, normal);
3592
- } else {
3593
- console.warn(`https://svelte.dev/e/lifecycle_double_unmount`);
3594
- }
3595
- }
3596
- function state_proxy_equality_mismatch(operator) {
3597
- if (true_default) {
3598
- console.warn(`%c[svelte] state_proxy_equality_mismatch
3599
- %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results
3600
- https://svelte.dev/e/state_proxy_equality_mismatch`, bold, normal);
3601
- } else {
3602
- console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
3603
- }
3604
- }
3605
- function state_proxy_unmount() {
3606
- if (true_default) {
3607
- console.warn(`%c[svelte] state_proxy_unmount
3608
- %cTried to unmount a state proxy, rather than a component
3609
- https://svelte.dev/e/state_proxy_unmount`, bold, normal);
3610
- } else {
3611
- console.warn(`https://svelte.dev/e/state_proxy_unmount`);
3612
- }
3613
- }
3614
3562
  function svelte_boundary_reset_noop() {
3615
3563
  if (true_default) {
3616
3564
  console.warn(`%c[svelte] svelte_boundary_reset_noop
@@ -3621,11 +3569,8 @@ https://svelte.dev/e/svelte_boundary_reset_noop`, bold, normal);
3621
3569
  }
3622
3570
  }
3623
3571
 
3624
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/hydration.js
3572
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/hydration.js
3625
3573
  var hydrating = false;
3626
- function set_hydrating(value) {
3627
- hydrating = value;
3628
- }
3629
3574
  var hydrate_node;
3630
3575
  function set_hydrate_node(node) {
3631
3576
  if (node === null) {
@@ -3668,7 +3613,7 @@ function skip_nodes(remove = true) {
3668
3613
  }
3669
3614
  }
3670
3615
 
3671
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/proxy.js
3616
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/proxy.js
3672
3617
  var regex_is_valid_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
3673
3618
  function proxy(value) {
3674
3619
  if (typeof value !== "object" || value === null || STATE_SYMBOL in value) {
@@ -3895,14 +3840,6 @@ function get_label(path, prop) {
3895
3840
  return `${path}.${prop}`;
3896
3841
  return /^\d+$/.test(prop) ? `${path}[${prop}]` : `${path}['${prop}']`;
3897
3842
  }
3898
- function get_proxied_value(value) {
3899
- try {
3900
- if (value !== null && typeof value === "object" && STATE_SYMBOL in value) {
3901
- return value[STATE_SYMBOL];
3902
- }
3903
- } catch {}
3904
- return value;
3905
- }
3906
3843
  var ARRAY_MUTATING_METHODS = new Set([
3907
3844
  "copyWithin",
3908
3845
  "fill",
@@ -3931,116 +3868,17 @@ function inspectable_array(array) {
3931
3868
  });
3932
3869
  }
3933
3870
 
3934
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dev/equality.js
3935
- function init_array_prototype_warnings() {
3936
- const array_prototype2 = Array.prototype;
3937
- const cleanup = Array.__svelte_cleanup;
3938
- if (cleanup) {
3939
- cleanup();
3940
- }
3941
- const { indexOf, lastIndexOf, includes: includes2 } = array_prototype2;
3942
- array_prototype2.indexOf = function(item, from_index) {
3943
- const index = indexOf.call(this, item, from_index);
3944
- if (index === -1) {
3945
- for (let i = from_index ?? 0;i < this.length; i += 1) {
3946
- if (get_proxied_value(this[i]) === item) {
3947
- state_proxy_equality_mismatch("array.indexOf(...)");
3948
- break;
3949
- }
3950
- }
3951
- }
3952
- return index;
3953
- };
3954
- array_prototype2.lastIndexOf = function(item, from_index) {
3955
- const index = lastIndexOf.call(this, item, from_index ?? this.length - 1);
3956
- if (index === -1) {
3957
- for (let i = 0;i <= (from_index ?? this.length - 1); i += 1) {
3958
- if (get_proxied_value(this[i]) === item) {
3959
- state_proxy_equality_mismatch("array.lastIndexOf(...)");
3960
- break;
3961
- }
3962
- }
3963
- }
3964
- return index;
3965
- };
3966
- array_prototype2.includes = function(item, from_index) {
3967
- const has = includes2.call(this, item, from_index);
3968
- if (!has) {
3969
- for (let i = 0;i < this.length; i += 1) {
3970
- if (get_proxied_value(this[i]) === item) {
3971
- state_proxy_equality_mismatch("array.includes(...)");
3972
- break;
3973
- }
3974
- }
3975
- }
3976
- return has;
3977
- };
3978
- Array.__svelte_cleanup = () => {
3979
- array_prototype2.indexOf = indexOf;
3980
- array_prototype2.lastIndexOf = lastIndexOf;
3981
- array_prototype2.includes = includes2;
3982
- };
3983
- }
3984
-
3985
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/operations.js
3986
- var $window;
3987
- var $document;
3871
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/operations.js
3988
3872
  var is_firefox;
3989
- var first_child_getter;
3990
3873
  var next_sibling_getter;
3991
- function init_operations() {
3992
- if ($window !== undefined) {
3993
- return;
3994
- }
3995
- $window = window;
3996
- $document = document;
3997
- is_firefox = /Firefox/.test(navigator.userAgent);
3998
- var element_prototype = Element.prototype;
3999
- var node_prototype = Node.prototype;
4000
- var text_prototype = Text.prototype;
4001
- first_child_getter = get_descriptor(node_prototype, "firstChild").get;
4002
- next_sibling_getter = get_descriptor(node_prototype, "nextSibling").get;
4003
- if (is_extensible(element_prototype)) {
4004
- element_prototype.__click = undefined;
4005
- element_prototype.__className = undefined;
4006
- element_prototype.__attributes = null;
4007
- element_prototype.__style = undefined;
4008
- element_prototype.__e = undefined;
4009
- }
4010
- if (is_extensible(text_prototype)) {
4011
- text_prototype.__t = undefined;
4012
- }
4013
- if (true_default) {
4014
- element_prototype.__svelte_meta = null;
4015
- init_array_prototype_warnings();
4016
- }
4017
- }
4018
3874
  function create_text(value = "") {
4019
3875
  return document.createTextNode(value);
4020
3876
  }
4021
- function get_first_child(node) {
4022
- return first_child_getter.call(node);
4023
- }
4024
3877
  function get_next_sibling(node) {
4025
3878
  return next_sibling_getter.call(node);
4026
3879
  }
4027
- function clear_text_content(node) {
4028
- node.textContent = "";
4029
- }
4030
- function should_defer_append() {
4031
- if (!async_mode_flag)
4032
- return false;
4033
- if (eager_block_effects !== null)
4034
- return false;
4035
- var flags = active_effect.f;
4036
- return (flags & REACTION_RAN) !== 0;
4037
- }
4038
- function create_element(tag3, namespace, is) {
4039
- let options2 = is ? { is } : undefined;
4040
- return document.createElementNS(namespace ?? NAMESPACE_HTML, tag3, options2);
4041
- }
4042
3880
 
4043
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/error-handling.js
3881
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/error-handling.js
4044
3882
  var adjustments = new WeakMap;
4045
3883
  function handle_error(error) {
4046
3884
  var effect = active_effect;
@@ -4113,7 +3951,7 @@ function apply_adjustments(error) {
4113
3951
  }
4114
3952
  }
4115
3953
 
4116
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/reactivity/status.js
3954
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/status.js
4117
3955
  var STATUS_MASK = ~(DIRTY | MAYBE_DIRTY | CLEAN);
4118
3956
  function set_signal_status(signal, status) {
4119
3957
  signal.f = signal.f & STATUS_MASK | status;
@@ -4126,7 +3964,7 @@ function update_derived_status(derived) {
4126
3964
  }
4127
3965
  }
4128
3966
 
4129
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/reactivity/utils.js
3967
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/utils.js
4130
3968
  function clear_marked(deps) {
4131
3969
  if (deps === null)
4132
3970
  return;
@@ -4148,17 +3986,70 @@ function defer_effect(effect, dirty_effects, maybe_dirty_effects) {
4148
3986
  set_signal_status(effect, CLEAN);
4149
3987
  }
4150
3988
 
4151
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/reactivity/batch.js
3989
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/store/shared/index.js
3990
+ var subscriber_queue = [];
3991
+ function writable(value, start = noop) {
3992
+ let stop = null;
3993
+ const subscribers = new Set;
3994
+ function set2(new_value) {
3995
+ if (safe_not_equal(value, new_value)) {
3996
+ value = new_value;
3997
+ if (stop) {
3998
+ const run_queue = !subscriber_queue.length;
3999
+ for (const subscriber of subscribers) {
4000
+ subscriber[1]();
4001
+ subscriber_queue.push(subscriber, value);
4002
+ }
4003
+ if (run_queue) {
4004
+ for (let i = 0;i < subscriber_queue.length; i += 2) {
4005
+ subscriber_queue[i][0](subscriber_queue[i + 1]);
4006
+ }
4007
+ subscriber_queue.length = 0;
4008
+ }
4009
+ }
4010
+ }
4011
+ }
4012
+ function update(fn) {
4013
+ set2(fn(value));
4014
+ }
4015
+ function subscribe(run, invalidate = noop) {
4016
+ const subscriber = [run, invalidate];
4017
+ subscribers.add(subscriber);
4018
+ if (subscribers.size === 1) {
4019
+ stop = start(set2, update) || noop;
4020
+ }
4021
+ run(value);
4022
+ return () => {
4023
+ subscribers.delete(subscriber);
4024
+ if (subscribers.size === 0 && stop) {
4025
+ stop();
4026
+ stop = null;
4027
+ }
4028
+ };
4029
+ }
4030
+ return { set: set2, update, subscribe };
4031
+ }
4032
+
4033
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/store.js
4034
+ var legacy_is_updating_store = false;
4035
+ var IS_UNMOUNTED = Symbol();
4036
+
4037
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/batch.js
4152
4038
  var batches = new Set;
4153
4039
  var current_batch = null;
4154
4040
  var previous_batch = null;
4155
4041
  var batch_values = null;
4156
- var queued_root_effects = [];
4157
4042
  var last_scheduled_effect = null;
4158
4043
  var is_flushing_sync = false;
4044
+ var is_processing = false;
4159
4045
  var collected_effects = null;
4046
+ var legacy_updates = null;
4047
+ var flush_count = 0;
4048
+ var source_stacks = true_default ? new Set : null;
4049
+ var uid = 1;
4160
4050
 
4161
4051
  class Batch {
4052
+ id = uid++;
4162
4053
  current = new Map;
4163
4054
  previous = new Map;
4164
4055
  #commit_callbacks = new Set;
@@ -4166,6 +4057,7 @@ class Batch {
4166
4057
  #pending = 0;
4167
4058
  #blocking_pending = 0;
4168
4059
  #deferred = null;
4060
+ #roots = [];
4169
4061
  #dirty_effects = new Set;
4170
4062
  #maybe_dirty_effects = new Set;
4171
4063
  #skipped_branches = new Map;
@@ -4185,23 +4077,53 @@ class Batch {
4185
4077
  this.#skipped_branches.delete(effect);
4186
4078
  for (var e of tracked.d) {
4187
4079
  set_signal_status(e, DIRTY);
4188
- schedule_effect(e);
4080
+ this.schedule(e);
4189
4081
  }
4190
4082
  for (e of tracked.m) {
4191
4083
  set_signal_status(e, MAYBE_DIRTY);
4192
- schedule_effect(e);
4084
+ this.schedule(e);
4193
4085
  }
4194
4086
  }
4195
4087
  }
4196
- process(root_effects) {
4197
- queued_root_effects = [];
4088
+ #process() {
4089
+ if (flush_count++ > 1000) {
4090
+ batches.delete(this);
4091
+ infinite_loop_guard();
4092
+ }
4093
+ if (!this.#is_deferred()) {
4094
+ for (const e of this.#dirty_effects) {
4095
+ this.#maybe_dirty_effects.delete(e);
4096
+ set_signal_status(e, DIRTY);
4097
+ this.schedule(e);
4098
+ }
4099
+ for (const e of this.#maybe_dirty_effects) {
4100
+ set_signal_status(e, MAYBE_DIRTY);
4101
+ this.schedule(e);
4102
+ }
4103
+ }
4104
+ const roots = this.#roots;
4105
+ this.#roots = [];
4198
4106
  this.apply();
4199
4107
  var effects = collected_effects = [];
4200
4108
  var render_effects = [];
4201
- for (const root of root_effects) {
4202
- this.#traverse_effect_tree(root, effects, render_effects);
4109
+ var updates = legacy_updates = [];
4110
+ for (const root of roots) {
4111
+ try {
4112
+ this.#traverse(root, effects, render_effects);
4113
+ } catch (e) {
4114
+ reset_all(root);
4115
+ throw e;
4116
+ }
4117
+ }
4118
+ current_batch = null;
4119
+ if (updates.length > 0) {
4120
+ var batch = Batch.ensure();
4121
+ for (const e of updates) {
4122
+ batch.schedule(e);
4123
+ }
4203
4124
  }
4204
4125
  collected_effects = null;
4126
+ legacy_updates = null;
4205
4127
  if (this.#is_deferred()) {
4206
4128
  this.#defer_effects(render_effects);
4207
4129
  this.#defer_effects(effects);
@@ -4209,24 +4131,39 @@ class Batch {
4209
4131
  reset_branch(e, t);
4210
4132
  }
4211
4133
  } else {
4212
- previous_batch = this;
4213
- current_batch = null;
4134
+ if (this.#pending === 0) {
4135
+ batches.delete(this);
4136
+ }
4137
+ this.#dirty_effects.clear();
4138
+ this.#maybe_dirty_effects.clear();
4214
4139
  for (const fn of this.#commit_callbacks)
4215
4140
  fn(this);
4216
4141
  this.#commit_callbacks.clear();
4217
- if (this.#pending === 0) {
4218
- this.#commit();
4219
- }
4142
+ previous_batch = this;
4220
4143
  flush_queued_effects(render_effects);
4221
4144
  flush_queued_effects(effects);
4222
- this.#dirty_effects.clear();
4223
- this.#maybe_dirty_effects.clear();
4224
4145
  previous_batch = null;
4225
4146
  this.#deferred?.resolve();
4226
4147
  }
4227
- batch_values = null;
4148
+ var next_batch = current_batch;
4149
+ if (this.#roots.length > 0) {
4150
+ const batch2 = next_batch ??= this;
4151
+ batch2.#roots.push(...this.#roots.filter((r) => !batch2.#roots.includes(r)));
4152
+ }
4153
+ if (next_batch !== null) {
4154
+ batches.add(next_batch);
4155
+ if (true_default) {
4156
+ for (const source2 of this.current.keys()) {
4157
+ source_stacks.add(source2);
4158
+ }
4159
+ }
4160
+ next_batch.#process();
4161
+ }
4162
+ if (!batches.has(this)) {
4163
+ this.#commit();
4164
+ }
4228
4165
  }
4229
- #traverse_effect_tree(root, effects, render_effects) {
4166
+ #traverse(root, effects, render_effects) {
4230
4167
  root.f ^= CLEAN;
4231
4168
  var effect = root.first;
4232
4169
  while (effect !== null) {
@@ -4267,9 +4204,9 @@ class Batch {
4267
4204
  defer_effect(effects[i], this.#dirty_effects, this.#maybe_dirty_effects);
4268
4205
  }
4269
4206
  }
4270
- capture(source2, value) {
4271
- if (value !== UNINITIALIZED && !this.previous.has(source2)) {
4272
- this.previous.set(source2, value);
4207
+ capture(source2, old_value) {
4208
+ if (old_value !== UNINITIALIZED && !this.previous.has(source2)) {
4209
+ this.previous.set(source2, old_value);
4273
4210
  }
4274
4211
  if ((source2.f & ERROR_VALUE) === 0) {
4275
4212
  this.current.set(source2, source2.v);
@@ -4278,115 +4215,105 @@ class Batch {
4278
4215
  }
4279
4216
  activate() {
4280
4217
  current_batch = this;
4281
- this.apply();
4282
4218
  }
4283
4219
  deactivate() {
4284
- if (current_batch !== this)
4285
- return;
4286
4220
  current_batch = null;
4287
4221
  batch_values = null;
4288
4222
  }
4289
4223
  flush() {
4290
- if (queued_root_effects.length > 0) {
4224
+ var source_stacks2 = true_default ? new Set : null;
4225
+ try {
4226
+ is_processing = true;
4291
4227
  current_batch = this;
4292
- flush_effects();
4293
- } else if (this.#pending === 0 && !this.is_fork) {
4294
- for (const fn of this.#commit_callbacks)
4295
- fn(this);
4296
- this.#commit_callbacks.clear();
4297
- this.#commit();
4298
- this.#deferred?.resolve();
4228
+ this.#process();
4229
+ } finally {
4230
+ flush_count = 0;
4231
+ last_scheduled_effect = null;
4232
+ collected_effects = null;
4233
+ legacy_updates = null;
4234
+ is_processing = false;
4235
+ current_batch = null;
4236
+ batch_values = null;
4237
+ old_values.clear();
4238
+ if (true_default) {
4239
+ for (const source2 of source_stacks2) {
4240
+ source2.updated = null;
4241
+ }
4242
+ }
4299
4243
  }
4300
- this.deactivate();
4301
4244
  }
4302
4245
  discard() {
4303
4246
  for (const fn of this.#discard_callbacks)
4304
4247
  fn(this);
4305
4248
  this.#discard_callbacks.clear();
4249
+ batches.delete(this);
4306
4250
  }
4307
4251
  #commit() {
4308
- if (batches.size > 1) {
4309
- this.previous.clear();
4310
- var previous_batch2 = current_batch;
4311
- var previous_batch_values = batch_values;
4312
- var is_earlier = true;
4313
- for (const batch of batches) {
4314
- if (batch === this) {
4315
- is_earlier = false;
4316
- continue;
4317
- }
4318
- const sources = [];
4319
- for (const [source2, value] of this.current) {
4320
- if (batch.current.has(source2)) {
4321
- if (is_earlier && value !== batch.current.get(source2)) {
4322
- batch.current.set(source2, value);
4323
- } else {
4324
- continue;
4325
- }
4252
+ for (const batch of batches) {
4253
+ var is_earlier = batch.id < this.id;
4254
+ var sources = [];
4255
+ for (const [source3, value] of this.current) {
4256
+ if (batch.current.has(source3)) {
4257
+ if (is_earlier && value !== batch.current.get(source3)) {
4258
+ batch.current.set(source3, value);
4259
+ } else {
4260
+ continue;
4326
4261
  }
4327
- sources.push(source2);
4328
4262
  }
4329
- if (sources.length === 0) {
4330
- continue;
4263
+ sources.push(source3);
4264
+ }
4265
+ var others = [...batch.current.keys()].filter((s) => !this.current.has(s));
4266
+ if (others.length === 0) {
4267
+ if (is_earlier) {
4268
+ batch.discard();
4331
4269
  }
4332
- const others = [...batch.current.keys()].filter((s) => !this.current.has(s));
4333
- if (others.length > 0) {
4334
- var prev_queued_root_effects = queued_root_effects;
4335
- queued_root_effects = [];
4336
- const marked2 = new Set;
4337
- const checked = new Map;
4338
- for (const source2 of sources) {
4339
- mark_effects(source2, others, marked2, checked);
4340
- }
4341
- if (queued_root_effects.length > 0) {
4342
- current_batch = batch;
4343
- batch.apply();
4344
- for (const root of queued_root_effects) {
4345
- batch.#traverse_effect_tree(root, [], []);
4346
- }
4347
- batch.deactivate();
4270
+ } else if (sources.length > 0) {
4271
+ if (true_default) {
4272
+ invariant(batch.#roots.length === 0, "Batch has scheduled roots");
4273
+ }
4274
+ batch.activate();
4275
+ var marked2 = new Set;
4276
+ var checked = new Map;
4277
+ for (var source2 of sources) {
4278
+ mark_effects(source2, others, marked2, checked);
4279
+ }
4280
+ if (batch.#roots.length > 0) {
4281
+ batch.apply();
4282
+ for (var root of batch.#roots) {
4283
+ batch.#traverse(root, [], []);
4348
4284
  }
4349
- queued_root_effects = prev_queued_root_effects;
4285
+ batch.#roots = [];
4350
4286
  }
4287
+ batch.deactivate();
4351
4288
  }
4352
- current_batch = previous_batch2;
4353
- batch_values = previous_batch_values;
4354
4289
  }
4355
- this.#skipped_branches.clear();
4356
- batches.delete(this);
4357
4290
  }
4358
4291
  increment(blocking) {
4359
4292
  this.#pending += 1;
4360
4293
  if (blocking)
4361
4294
  this.#blocking_pending += 1;
4362
4295
  }
4363
- decrement(blocking) {
4296
+ decrement(blocking, skip) {
4364
4297
  this.#pending -= 1;
4365
4298
  if (blocking)
4366
4299
  this.#blocking_pending -= 1;
4367
- if (this.#decrement_queued)
4300
+ if (this.#decrement_queued || skip)
4368
4301
  return;
4369
4302
  this.#decrement_queued = true;
4370
4303
  queue_micro_task(() => {
4371
4304
  this.#decrement_queued = false;
4372
- if (!this.#is_deferred()) {
4373
- this.revive();
4374
- } else if (queued_root_effects.length > 0) {
4375
- this.flush();
4376
- }
4305
+ this.flush();
4377
4306
  });
4378
4307
  }
4379
- revive() {
4380
- for (const e of this.#dirty_effects) {
4381
- this.#maybe_dirty_effects.delete(e);
4382
- set_signal_status(e, DIRTY);
4383
- schedule_effect(e);
4308
+ transfer_effects(dirty_effects, maybe_dirty_effects) {
4309
+ for (const e of dirty_effects) {
4310
+ this.#dirty_effects.add(e);
4384
4311
  }
4385
- for (const e of this.#maybe_dirty_effects) {
4386
- set_signal_status(e, MAYBE_DIRTY);
4387
- schedule_effect(e);
4312
+ for (const e of maybe_dirty_effects) {
4313
+ this.#maybe_dirty_effects.add(e);
4388
4314
  }
4389
- this.flush();
4315
+ dirty_effects.clear();
4316
+ maybe_dirty_effects.clear();
4390
4317
  }
4391
4318
  oncommit(fn) {
4392
4319
  this.#commit_callbacks.add(fn);
@@ -4400,24 +4327,28 @@ class Batch {
4400
4327
  static ensure() {
4401
4328
  if (current_batch === null) {
4402
4329
  const batch = current_batch = new Batch;
4403
- batches.add(current_batch);
4404
- if (!is_flushing_sync) {
4405
- queue_micro_task(() => {
4406
- if (current_batch !== batch) {
4407
- return;
4408
- }
4409
- batch.flush();
4410
- });
4330
+ if (!is_processing) {
4331
+ batches.add(current_batch);
4332
+ if (!is_flushing_sync) {
4333
+ queue_micro_task(() => {
4334
+ if (current_batch !== batch) {
4335
+ return;
4336
+ }
4337
+ batch.flush();
4338
+ });
4339
+ }
4411
4340
  }
4412
4341
  }
4413
4342
  return current_batch;
4414
4343
  }
4415
4344
  apply() {
4416
- if (!async_mode_flag || !this.is_fork && batches.size === 1)
4345
+ if (!async_mode_flag || !this.is_fork && batches.size === 1) {
4346
+ batch_values = null;
4417
4347
  return;
4348
+ }
4418
4349
  batch_values = new Map(this.current);
4419
4350
  for (const batch of batches) {
4420
- if (batch === this)
4351
+ if (batch === this || batch.is_fork)
4421
4352
  continue;
4422
4353
  for (const [source2, previous] of batch.previous) {
4423
4354
  if (!batch_values.has(source2)) {
@@ -4426,80 +4357,52 @@ class Batch {
4426
4357
  }
4427
4358
  }
4428
4359
  }
4429
- }
4430
- function flushSync(fn) {
4431
- var was_flushing_sync = is_flushing_sync;
4432
- is_flushing_sync = true;
4433
- try {
4434
- var result;
4435
- if (fn) {
4436
- if (current_batch !== null) {
4437
- flush_effects();
4438
- }
4439
- result = fn();
4440
- }
4441
- while (true) {
4442
- flush_tasks();
4443
- if (queued_root_effects.length === 0) {
4444
- current_batch?.flush();
4445
- if (queued_root_effects.length === 0) {
4446
- last_scheduled_effect = null;
4447
- return result;
4360
+ schedule(effect) {
4361
+ last_scheduled_effect = effect;
4362
+ if (effect.b?.is_pending && (effect.f & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 && (effect.f & REACTION_RAN) === 0) {
4363
+ effect.b.defer_effect(effect);
4364
+ return;
4365
+ }
4366
+ var e = effect;
4367
+ while (e.parent !== null) {
4368
+ e = e.parent;
4369
+ var flags = e.f;
4370
+ if (collected_effects !== null && e === active_effect) {
4371
+ if (async_mode_flag)
4372
+ return;
4373
+ if ((active_reaction === null || (active_reaction.f & DERIVED) === 0) && !legacy_is_updating_store) {
4374
+ return;
4375
+ }
4376
+ }
4377
+ if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
4378
+ if ((flags & CLEAN) === 0) {
4379
+ return;
4448
4380
  }
4381
+ e.f ^= CLEAN;
4449
4382
  }
4450
- flush_effects();
4451
4383
  }
4452
- } finally {
4453
- is_flushing_sync = was_flushing_sync;
4384
+ this.#roots.push(e);
4454
4385
  }
4455
4386
  }
4456
- function flush_effects() {
4457
- var source_stacks = true_default ? new Set : null;
4458
- try {
4459
- var flush_count = 0;
4460
- while (queued_root_effects.length > 0) {
4461
- var batch = Batch.ensure();
4462
- if (flush_count++ > 1000) {
4463
- if (true_default) {
4464
- var updates = new Map;
4465
- for (const source2 of batch.current.keys()) {
4466
- for (const [stack, update2] of source2.updated ?? []) {
4467
- var entry = updates.get(stack);
4468
- if (!entry) {
4469
- entry = { error: update2.error, count: 0 };
4470
- updates.set(stack, entry);
4471
- }
4472
- entry.count += update2.count;
4473
- }
4474
- }
4475
- for (const update2 of updates.values()) {
4476
- if (update2.error) {
4477
- console.error(update2.error);
4478
- }
4479
- }
4480
- }
4481
- infinite_loop_guard();
4482
- }
4483
- batch.process(queued_root_effects);
4484
- old_values.clear();
4485
- if (true_default) {
4486
- for (const source2 of batch.current.keys()) {
4487
- source_stacks.add(source2);
4387
+ function infinite_loop_guard() {
4388
+ if (true_default) {
4389
+ var updates = new Map;
4390
+ for (const source2 of current_batch.current.keys()) {
4391
+ for (const [stack, update2] of source2.updated ?? []) {
4392
+ var entry = updates.get(stack);
4393
+ if (!entry) {
4394
+ entry = { error: update2.error, count: 0 };
4395
+ updates.set(stack, entry);
4488
4396
  }
4397
+ entry.count += update2.count;
4489
4398
  }
4490
4399
  }
4491
- } finally {
4492
- queued_root_effects = [];
4493
- last_scheduled_effect = null;
4494
- collected_effects = null;
4495
- if (true_default) {
4496
- for (const source2 of source_stacks) {
4497
- source2.updated = null;
4400
+ for (const update2 of updates.values()) {
4401
+ if (update2.error) {
4402
+ console.error(update2.error);
4498
4403
  }
4499
4404
  }
4500
4405
  }
4501
- }
4502
- function infinite_loop_guard() {
4503
4406
  try {
4504
4407
  effect_update_depth_exceeded();
4505
4408
  } catch (error) {
@@ -4584,29 +4487,8 @@ function depends_on(reaction, sources, checked) {
4584
4487
  checked.set(reaction, false);
4585
4488
  return false;
4586
4489
  }
4587
- function schedule_effect(signal) {
4588
- var effect = last_scheduled_effect = signal;
4589
- var boundary = effect.b;
4590
- if (boundary?.is_pending && (signal.f & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 && (signal.f & REACTION_RAN) === 0) {
4591
- boundary.defer_effect(signal);
4592
- return;
4593
- }
4594
- while (effect.parent !== null) {
4595
- effect = effect.parent;
4596
- var flags = effect.f;
4597
- if (collected_effects !== null && effect === active_effect) {
4598
- if (async_mode_flag || (signal.f & RENDER_EFFECT) === 0) {
4599
- return;
4600
- }
4601
- }
4602
- if ((flags & (ROOT_EFFECT | BRANCH_EFFECT)) !== 0) {
4603
- if ((flags & CLEAN) === 0) {
4604
- return;
4605
- }
4606
- effect.f ^= CLEAN;
4607
- }
4608
- }
4609
- queued_root_effects.push(effect);
4490
+ function schedule_effect(effect) {
4491
+ current_batch.schedule(effect);
4610
4492
  }
4611
4493
  function reset_branch(effect, tracked) {
4612
4494
  if ((effect.f & BRANCH_EFFECT) !== 0 && (effect.f & CLEAN) !== 0) {
@@ -4624,8 +4506,16 @@ function reset_branch(effect, tracked) {
4624
4506
  e = e.next;
4625
4507
  }
4626
4508
  }
4509
+ function reset_all(effect) {
4510
+ set_signal_status(effect, CLEAN);
4511
+ var e = effect.first;
4512
+ while (e !== null) {
4513
+ reset_all(e);
4514
+ e = e.next;
4515
+ }
4516
+ }
4627
4517
 
4628
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/reactivity/create-subscriber.js
4518
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/reactivity/create-subscriber.js
4629
4519
  function createSubscriber(start) {
4630
4520
  let subscribers = 0;
4631
4521
  let version = source(0);
@@ -4656,12 +4546,8 @@ function createSubscriber(start) {
4656
4546
  };
4657
4547
  }
4658
4548
 
4659
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
4549
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
4660
4550
  var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED;
4661
- function boundary(node, props, children, transform_error) {
4662
- new Boundary(node, props, children, transform_error);
4663
- }
4664
-
4665
4551
  class Boundary {
4666
4552
  parent;
4667
4553
  is_pending = false;
@@ -4749,7 +4635,6 @@ class Boundary {
4749
4635
  var anchor = create_text();
4750
4636
  fragment.append(anchor);
4751
4637
  this.#main_effect = this.#run(() => {
4752
- Batch.ensure();
4753
4638
  return branch(() => this.#children(anchor));
4754
4639
  });
4755
4640
  if (this.#pending_count === 0) {
@@ -4758,7 +4643,7 @@ class Boundary {
4758
4643
  pause_effect(this.#pending_effect, () => {
4759
4644
  this.#pending_effect = null;
4760
4645
  });
4761
- this.#resolve();
4646
+ this.#resolve(current_batch);
4762
4647
  }
4763
4648
  });
4764
4649
  }
@@ -4776,24 +4661,15 @@ class Boundary {
4776
4661
  const pending = this.#props.pending;
4777
4662
  this.#pending_effect = branch(() => pending(this.#anchor));
4778
4663
  } else {
4779
- this.#resolve();
4664
+ this.#resolve(current_batch);
4780
4665
  }
4781
4666
  } catch (error) {
4782
4667
  this.error(error);
4783
4668
  }
4784
4669
  }
4785
- #resolve() {
4670
+ #resolve(batch) {
4786
4671
  this.is_pending = false;
4787
- for (const e of this.#dirty_effects) {
4788
- set_signal_status(e, DIRTY);
4789
- schedule_effect(e);
4790
- }
4791
- for (const e of this.#maybe_dirty_effects) {
4792
- set_signal_status(e, MAYBE_DIRTY);
4793
- schedule_effect(e);
4794
- }
4795
- this.#dirty_effects.clear();
4796
- this.#maybe_dirty_effects.clear();
4672
+ batch.transfer_effects(this.#dirty_effects, this.#maybe_dirty_effects);
4797
4673
  }
4798
4674
  defer_effect(effect) {
4799
4675
  defer_effect(effect, this.#dirty_effects, this.#maybe_dirty_effects);
@@ -4812,6 +4688,7 @@ class Boundary {
4812
4688
  set_active_reaction(this.#effect);
4813
4689
  set_component_context(this.#effect.ctx);
4814
4690
  try {
4691
+ Batch.ensure();
4815
4692
  return fn();
4816
4693
  } catch (e) {
4817
4694
  handle_error(e);
@@ -4822,16 +4699,16 @@ class Boundary {
4822
4699
  set_component_context(previous_ctx);
4823
4700
  }
4824
4701
  }
4825
- #update_pending_count(d) {
4702
+ #update_pending_count(d, batch) {
4826
4703
  if (!this.has_pending_snippet()) {
4827
4704
  if (this.parent) {
4828
- this.parent.#update_pending_count(d);
4705
+ this.parent.#update_pending_count(d, batch);
4829
4706
  }
4830
4707
  return;
4831
4708
  }
4832
4709
  this.#pending_count += d;
4833
4710
  if (this.#pending_count === 0) {
4834
- this.#resolve();
4711
+ this.#resolve(batch);
4835
4712
  if (this.#pending_effect) {
4836
4713
  pause_effect(this.#pending_effect, () => {
4837
4714
  this.#pending_effect = null;
@@ -4843,8 +4720,8 @@ class Boundary {
4843
4720
  }
4844
4721
  }
4845
4722
  }
4846
- update_pending_count(d) {
4847
- this.#update_pending_count(d);
4723
+ update_pending_count(d, batch) {
4724
+ this.#update_pending_count(d, batch);
4848
4725
  this.#local_pending_count += d;
4849
4726
  if (!this.#effect_pending || this.#pending_count_update_queued)
4850
4727
  return;
@@ -4900,7 +4777,6 @@ class Boundary {
4900
4777
  });
4901
4778
  }
4902
4779
  this.#run(() => {
4903
- Batch.ensure();
4904
4780
  this.#render();
4905
4781
  });
4906
4782
  };
@@ -4914,7 +4790,6 @@ class Boundary {
4914
4790
  }
4915
4791
  if (failed) {
4916
4792
  this.#failed_effect = this.#run(() => {
4917
- Batch.ensure();
4918
4793
  try {
4919
4794
  return branch(() => {
4920
4795
  var effect = active_effect;
@@ -4946,7 +4821,8 @@ class Boundary {
4946
4821
  }
4947
4822
  }
4948
4823
 
4949
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/reactivity/deriveds.js
4824
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/deriveds.js
4825
+ var reactivity_loss_tracker = null;
4950
4826
  var recent_async_deriveds = new Set;
4951
4827
  function destroy_derived_effects(derived2) {
4952
4828
  var effects = derived2.effects;
@@ -5000,11 +4876,13 @@ function execute_derived(derived2) {
5000
4876
  return value;
5001
4877
  }
5002
4878
  function update_derived(derived2) {
4879
+ var old_value = derived2.v;
5003
4880
  var value = execute_derived(derived2);
5004
4881
  if (!derived2.equals(value)) {
5005
4882
  derived2.wv = increment_write_version();
5006
4883
  if (!current_batch?.is_fork || derived2.deps === null) {
5007
4884
  derived2.v = value;
4885
+ current_batch?.capture(derived2, old_value);
5008
4886
  if (derived2.deps === null) {
5009
4887
  set_signal_status(derived2, CLEAN);
5010
4888
  return;
@@ -5046,7 +4924,7 @@ function unfreeze_derived_effects(derived2) {
5046
4924
  }
5047
4925
  }
5048
4926
 
5049
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/reactivity/sources.js
4927
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/sources.js
5050
4928
  var eager_effects = new Set;
5051
4929
  var old_values = new Map;
5052
4930
  function set_eager_effects(v) {
@@ -5078,16 +4956,6 @@ function state(v, stack2) {
5078
4956
  push_reaction_value(s);
5079
4957
  return s;
5080
4958
  }
5081
- function mutable_source(initial_value, immutable = false, trackable = true) {
5082
- const s = source(initial_value);
5083
- if (!immutable) {
5084
- s.equals = safe_equals;
5085
- }
5086
- if (legacy_mode_flag && trackable && component_context !== null && component_context.l !== null) {
5087
- (component_context.l.s ??= []).push(s);
5088
- }
5089
- return s;
5090
- }
5091
4959
  function set(source2, value, should_proxy = false) {
5092
4960
  if (active_reaction !== null && (!untracking || (active_reaction.f & EAGER_EFFECT) !== 0) && is_runes() && (active_reaction.f & (DERIVED | BLOCK_EFFECT | ASYNC | EAGER_EFFECT)) !== 0 && (current_sources === null || !includes.call(current_sources, source2))) {
5093
4961
  state_unsafe_mutation();
@@ -5096,9 +4964,9 @@ function set(source2, value, should_proxy = false) {
5096
4964
  if (true_default) {
5097
4965
  tag_proxy(new_value, source2.label);
5098
4966
  }
5099
- return internal_set(source2, new_value);
4967
+ return internal_set(source2, new_value, legacy_updates);
5100
4968
  }
5101
- function internal_set(source2, value) {
4969
+ function internal_set(source2, value, updated_during_traversal = null) {
5102
4970
  if (!source2.equals(value)) {
5103
4971
  var old_value = source2.v;
5104
4972
  if (is_destroying_effect) {
@@ -5135,10 +5003,12 @@ function internal_set(source2, value) {
5135
5003
  if ((source2.f & DIRTY) !== 0) {
5136
5004
  execute_derived(derived2);
5137
5005
  }
5138
- update_derived_status(derived2);
5006
+ if (batch_values === null) {
5007
+ update_derived_status(derived2);
5008
+ }
5139
5009
  }
5140
5010
  source2.wv = increment_write_version();
5141
- mark_reactions(source2, DIRTY);
5011
+ mark_reactions(source2, DIRTY, updated_during_traversal);
5142
5012
  if (is_runes() && active_effect !== null && (active_effect.f & CLEAN) !== 0 && (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0) {
5143
5013
  if (untracked_writes === null) {
5144
5014
  set_untracked_writes([source2]);
@@ -5167,7 +5037,7 @@ function flush_eager_effects() {
5167
5037
  function increment(source2) {
5168
5038
  set(source2, source2.v + 1);
5169
5039
  }
5170
- function mark_reactions(signal, status) {
5040
+ function mark_reactions(signal, status, updated_during_traversal) {
5171
5041
  var reactions = signal.reactions;
5172
5042
  if (reactions === null)
5173
5043
  return;
@@ -5193,21 +5063,26 @@ function mark_reactions(signal, status) {
5193
5063
  if (flags2 & CONNECTED) {
5194
5064
  reaction.f |= WAS_MARKED;
5195
5065
  }
5196
- mark_reactions(derived2, MAYBE_DIRTY);
5066
+ mark_reactions(derived2, MAYBE_DIRTY, updated_during_traversal);
5197
5067
  }
5198
5068
  } else if (not_dirty) {
5069
+ var effect = reaction;
5199
5070
  if ((flags2 & BLOCK_EFFECT) !== 0 && eager_block_effects !== null) {
5200
- eager_block_effects.add(reaction);
5071
+ eager_block_effects.add(effect);
5072
+ }
5073
+ if (updated_during_traversal !== null) {
5074
+ updated_during_traversal.push(effect);
5075
+ } else {
5076
+ schedule_effect(effect);
5201
5077
  }
5202
- schedule_effect(reaction);
5203
5078
  }
5204
5079
  }
5205
5080
  }
5206
5081
 
5207
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/legacy.js
5082
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/legacy.js
5208
5083
  var captured_signals = null;
5209
5084
 
5210
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
5085
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
5211
5086
  function without_reactive_context(fn) {
5212
5087
  var previous_reaction = active_reaction;
5213
5088
  var previous_effect = active_effect;
@@ -5221,7 +5096,7 @@ function without_reactive_context(fn) {
5221
5096
  }
5222
5097
  }
5223
5098
 
5224
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/runtime.js
5099
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/runtime.js
5225
5100
  var is_updating_effect = false;
5226
5101
  var is_destroying_effect = false;
5227
5102
  function set_is_destroying_effect(value) {
@@ -5511,12 +5386,19 @@ function get(signal) {
5511
5386
  }
5512
5387
  }
5513
5388
  if (true_default) {
5389
+ if (!untracking && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & REACTION_IS_UPDATING) === 0) {
5390
+ reactivity_loss_tracker.warned = true;
5391
+ await_reactivity_loss(signal.label);
5392
+ var trace = get_error("traced at");
5393
+ if (trace)
5394
+ console.warn(trace);
5395
+ }
5514
5396
  recent_async_deriveds.delete(signal);
5515
5397
  if (tracing_mode_flag && !untracking && tracing_expressions !== null && active_reaction !== null && tracing_expressions.reaction === active_reaction) {
5516
5398
  if (signal.trace) {
5517
5399
  signal.trace();
5518
5400
  } else {
5519
- var trace = get_error("traced at");
5401
+ trace = get_error("traced at");
5520
5402
  if (trace) {
5521
5403
  var entry = tracing_expressions.entries.get(signal);
5522
5404
  if (entry === undefined) {
@@ -5602,7 +5484,7 @@ function untrack(fn) {
5602
5484
  }
5603
5485
  }
5604
5486
 
5605
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/reactivity/effects.js
5487
+ // node_modules/.bun/svelte@5.54.0/node_modules/svelte/src/internal/client/reactivity/effects.js
5606
5488
  function push_effect(effect, parent_effect) {
5607
5489
  var parent_last = parent_effect.last;
5608
5490
  if (parent_last === null) {
@@ -5647,7 +5529,7 @@ function create_effect(type, fn) {
5647
5529
  if (collected_effects !== null) {
5648
5530
  collected_effects.push(effect);
5649
5531
  } else {
5650
- schedule_effect(effect);
5532
+ Batch.ensure().schedule(effect);
5651
5533
  }
5652
5534
  } else if (fn !== null) {
5653
5535
  try {
@@ -5678,33 +5560,6 @@ function create_effect(type, fn) {
5678
5560
  function effect_tracking() {
5679
5561
  return active_reaction !== null && !untracking;
5680
5562
  }
5681
- function create_user_effect(fn) {
5682
- return create_effect(EFFECT | USER_EFFECT, fn);
5683
- }
5684
- function effect_root(fn) {
5685
- Batch.ensure();
5686
- const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn);
5687
- return () => {
5688
- destroy_effect(effect);
5689
- };
5690
- }
5691
- function component_root(fn) {
5692
- Batch.ensure();
5693
- const effect = create_effect(ROOT_EFFECT | EFFECT_PRESERVED, fn);
5694
- return (options2 = {}) => {
5695
- return new Promise((fulfil) => {
5696
- if (options2.outro) {
5697
- pause_effect(effect, () => {
5698
- destroy_effect(effect);
5699
- fulfil(undefined);
5700
- });
5701
- } else {
5702
- destroy_effect(effect);
5703
- fulfil(undefined);
5704
- }
5705
- });
5706
- };
5707
- }
5708
5563
  function render_effect(fn, flags2 = 0) {
5709
5564
  return create_effect(RENDER_EFFECT | flags2, fn);
5710
5565
  }
@@ -5718,1006 +5573,150 @@ function block2(fn, flags2 = 0) {
5718
5573
  function branch(fn) {
5719
5574
  return create_effect(BRANCH_EFFECT | EFFECT_PRESERVED, fn);
5720
5575
  }
5721
- function execute_effect_teardown(effect) {
5722
- var teardown2 = effect.teardown;
5723
- if (teardown2 !== null) {
5724
- const previously_destroying_effect = is_destroying_effect;
5725
- const previous_reaction = active_reaction;
5726
- set_is_destroying_effect(true);
5727
- set_active_reaction(null);
5728
- try {
5729
- teardown2.call(null);
5730
- } finally {
5731
- set_is_destroying_effect(previously_destroying_effect);
5732
- set_active_reaction(previous_reaction);
5733
- }
5734
- }
5735
- }
5736
- function destroy_effect_children(signal, remove_dom = false) {
5737
- var effect = signal.first;
5738
- signal.first = signal.last = null;
5739
- while (effect !== null) {
5740
- const controller = effect.ac;
5741
- if (controller !== null) {
5742
- without_reactive_context(() => {
5743
- controller.abort(STALE_REACTION);
5744
- });
5745
- }
5746
- var next2 = effect.next;
5747
- if ((effect.f & ROOT_EFFECT) !== 0) {
5748
- effect.parent = null;
5749
- } else {
5750
- destroy_effect(effect, remove_dom);
5751
- }
5752
- effect = next2;
5753
- }
5754
- }
5755
- function destroy_block_effect_children(signal) {
5756
- var effect = signal.first;
5757
- while (effect !== null) {
5758
- var next2 = effect.next;
5759
- if ((effect.f & BRANCH_EFFECT) === 0) {
5760
- destroy_effect(effect);
5761
- }
5762
- effect = next2;
5763
- }
5764
- }
5765
- function destroy_effect(effect, remove_dom = true) {
5766
- var removed = false;
5767
- if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes !== null && effect.nodes.end !== null) {
5768
- remove_effect_dom(effect.nodes.start, effect.nodes.end);
5769
- removed = true;
5770
- }
5771
- destroy_effect_children(effect, remove_dom && !removed);
5772
- remove_reactions(effect, 0);
5773
- set_signal_status(effect, DESTROYED);
5774
- var transitions = effect.nodes && effect.nodes.t;
5775
- if (transitions !== null) {
5776
- for (const transition of transitions) {
5777
- transition.stop();
5778
- }
5779
- }
5780
- execute_effect_teardown(effect);
5781
- var parent = effect.parent;
5782
- if (parent !== null && parent.first !== null) {
5783
- unlink_effect(effect);
5784
- }
5785
- if (true_default) {
5786
- effect.component_function = null;
5787
- }
5788
- effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null;
5789
- }
5790
- function remove_effect_dom(node, end) {
5791
- while (node !== null) {
5792
- var next2 = node === end ? null : get_next_sibling(node);
5793
- node.remove();
5794
- node = next2;
5795
- }
5796
- }
5797
- function unlink_effect(effect) {
5798
- var parent = effect.parent;
5799
- var prev = effect.prev;
5800
- var next2 = effect.next;
5801
- if (prev !== null)
5802
- prev.next = next2;
5803
- if (next2 !== null)
5804
- next2.prev = prev;
5805
- if (parent !== null) {
5806
- if (parent.first === effect)
5807
- parent.first = next2;
5808
- if (parent.last === effect)
5809
- parent.last = prev;
5810
- }
5811
- }
5812
- function pause_effect(effect, callback, destroy = true) {
5813
- var transitions = [];
5814
- pause_children(effect, transitions, true);
5815
- var fn = () => {
5816
- if (destroy)
5817
- destroy_effect(effect);
5818
- if (callback)
5819
- callback();
5820
- };
5821
- var remaining = transitions.length;
5822
- if (remaining > 0) {
5823
- var check = () => --remaining || fn();
5824
- for (var transition of transitions) {
5825
- transition.out(check);
5826
- }
5827
- } else {
5828
- fn();
5829
- }
5830
- }
5831
- function pause_children(effect, transitions, local) {
5832
- if ((effect.f & INERT) !== 0)
5833
- return;
5834
- effect.f ^= INERT;
5835
- var t = effect.nodes && effect.nodes.t;
5836
- if (t !== null) {
5837
- for (const transition of t) {
5838
- if (transition.is_global || local) {
5839
- transitions.push(transition);
5840
- }
5841
- }
5842
- }
5843
- var child = effect.first;
5844
- while (child !== null) {
5845
- var sibling = child.next;
5846
- var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
5847
- pause_children(child, transitions, transparent ? local : false);
5848
- child = sibling;
5849
- }
5850
- }
5851
- function resume_effect(effect) {
5852
- resume_children(effect, true);
5853
- }
5854
- function resume_children(effect, local) {
5855
- if ((effect.f & INERT) === 0)
5856
- return;
5857
- effect.f ^= INERT;
5858
- if ((effect.f & CLEAN) === 0) {
5859
- set_signal_status(effect, DIRTY);
5860
- schedule_effect(effect);
5861
- }
5862
- var child = effect.first;
5863
- while (child !== null) {
5864
- var sibling = child.next;
5865
- var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0;
5866
- resume_children(child, transparent ? local : false);
5867
- child = sibling;
5868
- }
5869
- var t = effect.nodes && effect.nodes.t;
5870
- if (t !== null) {
5871
- for (const transition of t) {
5872
- if (transition.is_global || local) {
5873
- transition.in();
5874
- }
5875
- }
5876
- }
5877
- }
5878
- function move_effect(effect, fragment) {
5879
- if (!effect.nodes)
5880
- return;
5881
- var node = effect.nodes.start;
5882
- var end = effect.nodes.end;
5883
- while (node !== null) {
5884
- var next2 = node === end ? null : get_next_sibling(node);
5885
- fragment.append(node);
5886
- node = next2;
5887
- }
5888
- }
5889
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/utils.js
5890
- var DOM_BOOLEAN_ATTRIBUTES = [
5891
- "allowfullscreen",
5892
- "async",
5893
- "autofocus",
5894
- "autoplay",
5895
- "checked",
5896
- "controls",
5897
- "default",
5898
- "disabled",
5899
- "formnovalidate",
5900
- "indeterminate",
5901
- "inert",
5902
- "ismap",
5903
- "loop",
5904
- "multiple",
5905
- "muted",
5906
- "nomodule",
5907
- "novalidate",
5908
- "open",
5909
- "playsinline",
5910
- "readonly",
5911
- "required",
5912
- "reversed",
5913
- "seamless",
5914
- "selected",
5915
- "webkitdirectory",
5916
- "defer",
5917
- "disablepictureinpicture",
5918
- "disableremoteplayback"
5919
- ];
5920
- var DOM_PROPERTIES = [
5921
- ...DOM_BOOLEAN_ATTRIBUTES,
5922
- "formNoValidate",
5923
- "isMap",
5924
- "noModule",
5925
- "playsInline",
5926
- "readOnly",
5927
- "value",
5928
- "volume",
5929
- "defaultValue",
5930
- "defaultChecked",
5931
- "srcObject",
5932
- "noValidate",
5933
- "allowFullscreen",
5934
- "disablePictureInPicture",
5935
- "disableRemotePlayback"
5936
- ];
5937
- var PASSIVE_EVENTS = ["touchstart", "touchmove"];
5938
- function is_passive_event(name) {
5939
- return PASSIVE_EVENTS.includes(name);
5940
- }
5941
- var STATE_CREATION_RUNES = [
5942
- "$state",
5943
- "$state.raw",
5944
- "$derived",
5945
- "$derived.by"
5946
- ];
5947
- var RUNES = [
5948
- ...STATE_CREATION_RUNES,
5949
- "$state.eager",
5950
- "$state.snapshot",
5951
- "$props",
5952
- "$props.id",
5953
- "$bindable",
5954
- "$effect",
5955
- "$effect.pre",
5956
- "$effect.tracking",
5957
- "$effect.root",
5958
- "$effect.pending",
5959
- "$inspect",
5960
- "$inspect().with",
5961
- "$inspect.trace",
5962
- "$host"
5963
- ];
5964
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dev/css.js
5965
- var all_styles = new Map;
5966
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/events.js
5967
- var event_symbol = Symbol("events");
5968
- var all_registered_events = new Set;
5969
- var root_event_handles = new Set;
5970
- var last_propagated_event = null;
5971
- function handle_event_propagation(event) {
5972
- var handler_element = this;
5973
- var owner_document = handler_element.ownerDocument;
5974
- var event_name = event.type;
5975
- var path = event.composedPath?.() || [];
5976
- var current_target = path[0] || event.target;
5977
- last_propagated_event = event;
5978
- var path_idx = 0;
5979
- var handled_at = last_propagated_event === event && event[event_symbol];
5980
- if (handled_at) {
5981
- var at_idx = path.indexOf(handled_at);
5982
- if (at_idx !== -1 && (handler_element === document || handler_element === window)) {
5983
- event[event_symbol] = handler_element;
5984
- return;
5985
- }
5986
- var handler_idx = path.indexOf(handler_element);
5987
- if (handler_idx === -1) {
5988
- return;
5989
- }
5990
- if (at_idx <= handler_idx) {
5991
- path_idx = at_idx;
5992
- }
5993
- }
5994
- current_target = path[path_idx] || event.target;
5995
- if (current_target === handler_element)
5996
- return;
5997
- define_property(event, "currentTarget", {
5998
- configurable: true,
5999
- get() {
6000
- return current_target || owner_document;
6001
- }
6002
- });
6003
- var previous_reaction = active_reaction;
6004
- var previous_effect = active_effect;
6005
- set_active_reaction(null);
6006
- set_active_effect(null);
6007
- try {
6008
- var throw_error;
6009
- var other_errors = [];
6010
- while (current_target !== null) {
6011
- var parent_element = current_target.assignedSlot || current_target.parentNode || current_target.host || null;
6012
- try {
6013
- var delegated = current_target[event_symbol]?.[event_name];
6014
- if (delegated != null && (!current_target.disabled || event.target === current_target)) {
6015
- delegated.call(current_target, event);
6016
- }
6017
- } catch (error) {
6018
- if (throw_error) {
6019
- other_errors.push(error);
6020
- } else {
6021
- throw_error = error;
6022
- }
6023
- }
6024
- if (event.cancelBubble || parent_element === handler_element || parent_element === null) {
6025
- break;
6026
- }
6027
- current_target = parent_element;
6028
- }
6029
- if (throw_error) {
6030
- for (let error of other_errors) {
6031
- queueMicrotask(() => {
6032
- throw error;
6033
- });
6034
- }
6035
- throw throw_error;
6036
- }
6037
- } finally {
6038
- event[event_symbol] = handler_element;
6039
- delete event.currentTarget;
6040
- set_active_reaction(previous_reaction);
6041
- set_active_effect(previous_effect);
6042
- }
6043
- }
6044
-
6045
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/reconciler.js
6046
- var policy = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
6047
- createHTML: (html3) => {
6048
- return html3;
6049
- }
6050
- });
6051
-
6052
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/template.js
6053
- function assign_nodes(start, end) {
6054
- var effect = active_effect;
6055
- if (effect.nodes === null) {
6056
- effect.nodes = { start, end, a: null, t: null };
6057
- }
6058
- }
6059
- function append(anchor, dom) {
6060
- if (hydrating) {
6061
- var effect = active_effect;
6062
- if ((effect.f & REACTION_RAN) === 0 || effect.nodes.end === null) {
6063
- effect.nodes.end = hydrate_node;
6064
- }
6065
- hydrate_next();
6066
- return;
6067
- }
6068
- if (anchor === null) {
6069
- return;
6070
- }
6071
- anchor.before(dom);
6072
- }
6073
-
6074
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/render.js
6075
- var should_intro = true;
6076
- function mount(component, options2) {
6077
- return _mount(component, options2);
6078
- }
6079
- function hydrate(component, options2) {
6080
- init_operations();
6081
- options2.intro = options2.intro ?? false;
6082
- const target = options2.target;
6083
- const was_hydrating = hydrating;
6084
- const previous_hydrate_node = hydrate_node;
6085
- try {
6086
- var anchor = get_first_child(target);
6087
- while (anchor && (anchor.nodeType !== COMMENT_NODE || anchor.data !== HYDRATION_START)) {
6088
- anchor = get_next_sibling(anchor);
6089
- }
6090
- if (!anchor) {
6091
- throw HYDRATION_ERROR;
6092
- }
6093
- set_hydrating(true);
6094
- set_hydrate_node(anchor);
6095
- const instance = _mount(component, { ...options2, anchor });
6096
- set_hydrating(false);
6097
- return instance;
6098
- } catch (error) {
6099
- if (error instanceof Error && error.message.split(`
6100
- `).some((line) => line.startsWith("https://svelte.dev/e/"))) {
6101
- throw error;
6102
- }
6103
- if (error !== HYDRATION_ERROR) {
6104
- console.warn("Failed to hydrate: ", error);
6105
- }
6106
- if (options2.recover === false) {
6107
- hydration_failed();
6108
- }
6109
- init_operations();
6110
- clear_text_content(target);
6111
- set_hydrating(false);
6112
- return mount(component, options2);
6113
- } finally {
6114
- set_hydrating(was_hydrating);
6115
- set_hydrate_node(previous_hydrate_node);
6116
- }
6117
- }
6118
- var listeners = new Map;
6119
- function _mount(Component, { target, anchor, props = {}, events, context, intro = true, transformError }) {
6120
- init_operations();
6121
- var component = undefined;
6122
- var unmount = component_root(() => {
6123
- var anchor_node = anchor ?? target.appendChild(create_text());
6124
- boundary(anchor_node, {
6125
- pending: () => {}
6126
- }, (anchor_node2) => {
6127
- push({});
6128
- var ctx = component_context;
6129
- if (context)
6130
- ctx.c = context;
6131
- if (events) {
6132
- props.$$events = events;
6133
- }
6134
- if (hydrating) {
6135
- assign_nodes(anchor_node2, null);
6136
- }
6137
- should_intro = intro;
6138
- component = Component(anchor_node2, props) || {};
6139
- should_intro = true;
6140
- if (hydrating) {
6141
- active_effect.nodes.end = hydrate_node;
6142
- if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || hydrate_node.data !== HYDRATION_END) {
6143
- hydration_mismatch();
6144
- throw HYDRATION_ERROR;
6145
- }
6146
- }
6147
- pop();
6148
- }, transformError);
6149
- var registered_events = new Set;
6150
- var event_handle = (events2) => {
6151
- for (var i = 0;i < events2.length; i++) {
6152
- var event_name = events2[i];
6153
- if (registered_events.has(event_name))
6154
- continue;
6155
- registered_events.add(event_name);
6156
- var passive = is_passive_event(event_name);
6157
- for (const node of [target, document]) {
6158
- var counts = listeners.get(node);
6159
- if (counts === undefined) {
6160
- counts = new Map;
6161
- listeners.set(node, counts);
6162
- }
6163
- var count = counts.get(event_name);
6164
- if (count === undefined) {
6165
- node.addEventListener(event_name, handle_event_propagation, { passive });
6166
- counts.set(event_name, 1);
6167
- } else {
6168
- counts.set(event_name, count + 1);
6169
- }
6170
- }
6171
- }
6172
- };
6173
- event_handle(array_from(all_registered_events));
6174
- root_event_handles.add(event_handle);
6175
- return () => {
6176
- for (var event_name of registered_events) {
6177
- for (const node of [target, document]) {
6178
- var counts = listeners.get(node);
6179
- var count = counts.get(event_name);
6180
- if (--count == 0) {
6181
- node.removeEventListener(event_name, handle_event_propagation);
6182
- counts.delete(event_name);
6183
- if (counts.size === 0) {
6184
- listeners.delete(node);
6185
- }
6186
- } else {
6187
- counts.set(event_name, count);
6188
- }
6189
- }
6190
- }
6191
- root_event_handles.delete(event_handle);
6192
- if (anchor_node !== anchor) {
6193
- anchor_node.parentNode?.removeChild(anchor_node);
6194
- }
6195
- };
6196
- });
6197
- mounted_components.set(component, unmount);
6198
- return component;
6199
- }
6200
- var mounted_components = new WeakMap;
6201
- function unmount(component, options2) {
6202
- const fn = mounted_components.get(component);
6203
- if (fn) {
6204
- mounted_components.delete(component);
6205
- return fn(options2);
6206
- }
6207
- if (true_default) {
6208
- if (STATE_SYMBOL in component) {
6209
- state_proxy_unmount();
6210
- } else {
6211
- lifecycle_double_unmount();
6212
- }
6213
- }
6214
- return Promise.resolve();
6215
- }
6216
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/blocks/branches.js
6217
- class BranchManager {
6218
- anchor;
6219
- #batches = new Map;
6220
- #onscreen = new Map;
6221
- #offscreen = new Map;
6222
- #outroing = new Set;
6223
- #transition = true;
6224
- constructor(anchor, transition = true) {
6225
- this.anchor = anchor;
6226
- this.#transition = transition;
6227
- }
6228
- #commit = (batch) => {
6229
- if (!this.#batches.has(batch))
6230
- return;
6231
- var key = this.#batches.get(batch);
6232
- var onscreen = this.#onscreen.get(key);
6233
- if (onscreen) {
6234
- resume_effect(onscreen);
6235
- this.#outroing.delete(key);
6236
- } else {
6237
- var offscreen = this.#offscreen.get(key);
6238
- if (offscreen) {
6239
- this.#onscreen.set(key, offscreen.effect);
6240
- this.#offscreen.delete(key);
6241
- offscreen.fragment.lastChild.remove();
6242
- this.anchor.before(offscreen.fragment);
6243
- onscreen = offscreen.effect;
6244
- }
6245
- }
6246
- for (const [b, k] of this.#batches) {
6247
- this.#batches.delete(b);
6248
- if (b === batch) {
6249
- break;
6250
- }
6251
- const offscreen2 = this.#offscreen.get(k);
6252
- if (offscreen2) {
6253
- destroy_effect(offscreen2.effect);
6254
- this.#offscreen.delete(k);
6255
- }
6256
- }
6257
- for (const [k, effect] of this.#onscreen) {
6258
- if (k === key || this.#outroing.has(k))
6259
- continue;
6260
- const on_destroy = () => {
6261
- const keys = Array.from(this.#batches.values());
6262
- if (keys.includes(k)) {
6263
- var fragment = document.createDocumentFragment();
6264
- move_effect(effect, fragment);
6265
- fragment.append(create_text());
6266
- this.#offscreen.set(k, { effect, fragment });
6267
- } else {
6268
- destroy_effect(effect);
6269
- }
6270
- this.#outroing.delete(k);
6271
- this.#onscreen.delete(k);
6272
- };
6273
- if (this.#transition || !onscreen) {
6274
- this.#outroing.add(k);
6275
- pause_effect(effect, on_destroy, false);
6276
- } else {
6277
- on_destroy();
6278
- }
6279
- }
6280
- };
6281
- #discard = (batch) => {
6282
- this.#batches.delete(batch);
6283
- const keys = Array.from(this.#batches.values());
6284
- for (const [k, branch2] of this.#offscreen) {
6285
- if (!keys.includes(k)) {
6286
- destroy_effect(branch2.effect);
6287
- this.#offscreen.delete(k);
6288
- }
5576
+ function execute_effect_teardown(effect) {
5577
+ var teardown2 = effect.teardown;
5578
+ if (teardown2 !== null) {
5579
+ const previously_destroying_effect = is_destroying_effect;
5580
+ const previous_reaction = active_reaction;
5581
+ set_is_destroying_effect(true);
5582
+ set_active_reaction(null);
5583
+ try {
5584
+ teardown2.call(null);
5585
+ } finally {
5586
+ set_is_destroying_effect(previously_destroying_effect);
5587
+ set_active_reaction(previous_reaction);
6289
5588
  }
6290
- };
6291
- ensure(key, fn) {
6292
- var batch = current_batch;
6293
- var defer = should_defer_append();
6294
- if (fn && !this.#onscreen.has(key) && !this.#offscreen.has(key)) {
6295
- if (defer) {
6296
- var fragment = document.createDocumentFragment();
6297
- var target = create_text();
6298
- fragment.append(target);
6299
- this.#offscreen.set(key, {
6300
- effect: branch(() => fn(target)),
6301
- fragment
6302
- });
6303
- } else {
6304
- this.#onscreen.set(key, branch(() => fn(this.anchor)));
6305
- }
5589
+ }
5590
+ }
5591
+ function destroy_effect_children(signal, remove_dom = false) {
5592
+ var effect = signal.first;
5593
+ signal.first = signal.last = null;
5594
+ while (effect !== null) {
5595
+ const controller = effect.ac;
5596
+ if (controller !== null) {
5597
+ without_reactive_context(() => {
5598
+ controller.abort(STALE_REACTION);
5599
+ });
6306
5600
  }
6307
- this.#batches.set(batch, key);
6308
- if (defer) {
6309
- for (const [k, effect] of this.#onscreen) {
6310
- if (k === key) {
6311
- batch.unskip_effect(effect);
6312
- } else {
6313
- batch.skip_effect(effect);
6314
- }
6315
- }
6316
- for (const [k, branch2] of this.#offscreen) {
6317
- if (k === key) {
6318
- batch.unskip_effect(branch2.effect);
6319
- } else {
6320
- batch.skip_effect(branch2.effect);
6321
- }
6322
- }
6323
- batch.oncommit(this.#commit);
6324
- batch.ondiscard(this.#discard);
5601
+ var next2 = effect.next;
5602
+ if ((effect.f & ROOT_EFFECT) !== 0) {
5603
+ effect.parent = null;
6325
5604
  } else {
6326
- if (hydrating) {
6327
- this.anchor = hydrate_node;
6328
- }
6329
- this.#commit(batch);
5605
+ destroy_effect(effect, remove_dom);
6330
5606
  }
5607
+ effect = next2;
6331
5608
  }
6332
5609
  }
6333
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/blocks/key.js
6334
- var NAN = Symbol("NaN");
6335
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/timing.js
6336
- var now = true_default ? () => performance.now() : () => Date.now();
6337
- var raf = {
6338
- tick: (_) => (true_default ? requestAnimationFrame : noop)(_),
6339
- now: () => now(),
6340
- tasks: new Set
6341
- };
6342
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/shared/attributes.js
6343
- var replacements = {
6344
- translate: new Map([
6345
- [true, "yes"],
6346
- [false, "no"]
6347
- ])
6348
- };
6349
- var whitespace = [...`
6350
- \r\f \v\uFEFF`];
6351
-
6352
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/attributes.js
6353
- var CLASS = Symbol("class");
6354
- var STYLE = Symbol("style");
6355
- var IS_CUSTOM_ELEMENT = Symbol("is custom element");
6356
- var IS_HTML = Symbol("is html");
6357
- var setters_cache = new Map;
6358
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js
6359
- var pending = new Set;
6360
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js
6361
- class ResizeObserverSingleton {
6362
- #listeners = new WeakMap;
6363
- #observer;
6364
- #options;
6365
- static entries = new WeakMap;
6366
- constructor(options2) {
6367
- this.#options = options2;
6368
- }
6369
- observe(element, listener) {
6370
- var listeners2 = this.#listeners.get(element) || new Set;
6371
- listeners2.add(listener);
6372
- this.#listeners.set(element, listeners2);
6373
- this.#getObserver().observe(element, this.#options);
6374
- return () => {
6375
- var listeners3 = this.#listeners.get(element);
6376
- listeners3.delete(listener);
6377
- if (listeners3.size === 0) {
6378
- this.#listeners.delete(element);
6379
- this.#observer.unobserve(element);
6380
- }
6381
- };
6382
- }
6383
- #getObserver() {
6384
- return this.#observer ?? (this.#observer = new ResizeObserver((entries2) => {
6385
- for (var entry of entries2) {
6386
- ResizeObserverSingleton.entries.set(entry.target, entry);
6387
- for (var listener of this.#listeners.get(entry.target) || []) {
6388
- listener(entry);
6389
- }
6390
- }
6391
- }));
5610
+ function destroy_block_effect_children(signal) {
5611
+ var effect = signal.first;
5612
+ while (effect !== null) {
5613
+ var next2 = effect.next;
5614
+ if ((effect.f & BRANCH_EFFECT) === 0) {
5615
+ destroy_effect(effect);
5616
+ }
5617
+ effect = next2;
6392
5618
  }
6393
5619
  }
6394
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/reactivity/store.js
6395
- var IS_UNMOUNTED = Symbol();
6396
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/legacy/legacy-client.js
6397
- function createClassComponent(options2) {
6398
- return new Svelte4Component(options2);
6399
- }
6400
- class Svelte4Component {
6401
- #events;
6402
- #instance;
6403
- constructor(options2) {
6404
- var sources = new Map;
6405
- var add_source = (key, value) => {
6406
- var s = mutable_source(value, false, false);
6407
- sources.set(key, s);
6408
- return s;
6409
- };
6410
- const props = new Proxy({ ...options2.props || {}, $$events: {} }, {
6411
- get(target, prop) {
6412
- return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
6413
- },
6414
- has(target, prop) {
6415
- if (prop === LEGACY_PROPS)
6416
- return true;
6417
- get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
6418
- return Reflect.has(target, prop);
6419
- },
6420
- set(target, prop, value) {
6421
- set(sources.get(prop) ?? add_source(prop, value), value);
6422
- return Reflect.set(target, prop, value);
6423
- }
6424
- });
6425
- this.#instance = (options2.hydrate ? hydrate : mount)(options2.component, {
6426
- target: options2.target,
6427
- anchor: options2.anchor,
6428
- props,
6429
- context: options2.context,
6430
- intro: options2.intro ?? false,
6431
- recover: options2.recover,
6432
- transformError: options2.transformError
6433
- });
6434
- if (!async_mode_flag && (!options2?.props?.$$host || options2.sync === false)) {
6435
- flushSync();
6436
- }
6437
- this.#events = props.$$events;
6438
- for (const key of Object.keys(this.#instance)) {
6439
- if (key === "$set" || key === "$destroy" || key === "$on")
6440
- continue;
6441
- define_property(this, key, {
6442
- get() {
6443
- return this.#instance[key];
6444
- },
6445
- set(value) {
6446
- this.#instance[key] = value;
6447
- },
6448
- enumerable: true
6449
- });
5620
+ function destroy_effect(effect, remove_dom = true) {
5621
+ var removed = false;
5622
+ if ((remove_dom || (effect.f & HEAD_EFFECT) !== 0) && effect.nodes !== null && effect.nodes.end !== null) {
5623
+ remove_effect_dom(effect.nodes.start, effect.nodes.end);
5624
+ removed = true;
5625
+ }
5626
+ set_signal_status(effect, DESTROYING);
5627
+ destroy_effect_children(effect, remove_dom && !removed);
5628
+ remove_reactions(effect, 0);
5629
+ var transitions = effect.nodes && effect.nodes.t;
5630
+ if (transitions !== null) {
5631
+ for (const transition of transitions) {
5632
+ transition.stop();
6450
5633
  }
6451
- this.#instance.$set = (next2) => {
6452
- Object.assign(props, next2);
6453
- };
6454
- this.#instance.$destroy = () => {
6455
- unmount(this.#instance);
6456
- };
6457
5634
  }
6458
- $set(props) {
6459
- this.#instance.$set(props);
5635
+ execute_effect_teardown(effect);
5636
+ effect.f ^= DESTROYING;
5637
+ effect.f |= DESTROYED;
5638
+ var parent = effect.parent;
5639
+ if (parent !== null && parent.first !== null) {
5640
+ unlink_effect(effect);
6460
5641
  }
6461
- $on(event2, callback) {
6462
- this.#events[event2] = this.#events[event2] || [];
6463
- const cb = (...args) => callback.call(this, ...args);
6464
- this.#events[event2].push(cb);
6465
- return () => {
6466
- this.#events[event2] = this.#events[event2].filter((fn) => fn !== cb);
6467
- };
5642
+ if (true_default) {
5643
+ effect.component_function = null;
6468
5644
  }
6469
- $destroy() {
6470
- this.#instance.$destroy();
5645
+ effect.next = effect.prev = effect.teardown = effect.ctx = effect.deps = effect.fn = effect.nodes = effect.ac = null;
5646
+ }
5647
+ function remove_effect_dom(node, end) {
5648
+ while (node !== null) {
5649
+ var next2 = node === end ? null : get_next_sibling(node);
5650
+ node.remove();
5651
+ node = next2;
6471
5652
  }
6472
5653
  }
6473
-
6474
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/internal/client/dom/elements/custom-element.js
6475
- var SvelteElement;
6476
- if (typeof HTMLElement === "function") {
6477
- SvelteElement = class extends HTMLElement {
6478
- $$ctor;
6479
- $$s;
6480
- $$c;
6481
- $$cn = false;
6482
- $$d = {};
6483
- $$r = false;
6484
- $$p_d = {};
6485
- $$l = {};
6486
- $$l_u = new Map;
6487
- $$me;
6488
- $$shadowRoot = null;
6489
- constructor($$componentCtor, $$slots, shadow_root_init) {
6490
- super();
6491
- this.$$ctor = $$componentCtor;
6492
- this.$$s = $$slots;
6493
- if (shadow_root_init) {
6494
- this.$$shadowRoot = this.attachShadow(shadow_root_init);
6495
- }
6496
- }
6497
- addEventListener(type, listener, options2) {
6498
- this.$$l[type] = this.$$l[type] || [];
6499
- this.$$l[type].push(listener);
6500
- if (this.$$c) {
6501
- const unsub = this.$$c.$on(type, listener);
6502
- this.$$l_u.set(listener, unsub);
6503
- }
6504
- super.addEventListener(type, listener, options2);
6505
- }
6506
- removeEventListener(type, listener, options2) {
6507
- super.removeEventListener(type, listener, options2);
6508
- if (this.$$c) {
6509
- const unsub = this.$$l_u.get(listener);
6510
- if (unsub) {
6511
- unsub();
6512
- this.$$l_u.delete(listener);
6513
- }
6514
- }
6515
- }
6516
- async connectedCallback() {
6517
- this.$$cn = true;
6518
- if (!this.$$c) {
6519
- let create_slot = function(name) {
6520
- return (anchor) => {
6521
- const slot = create_element("slot");
6522
- if (name !== "default")
6523
- slot.name = name;
6524
- append(anchor, slot);
6525
- };
6526
- };
6527
- await Promise.resolve();
6528
- if (!this.$$cn || this.$$c) {
6529
- return;
6530
- }
6531
- const $$slots = {};
6532
- const existing_slots = get_custom_elements_slots(this);
6533
- for (const name of this.$$s) {
6534
- if (name in existing_slots) {
6535
- if (name === "default" && !this.$$d.children) {
6536
- this.$$d.children = create_slot(name);
6537
- $$slots.default = true;
6538
- } else {
6539
- $$slots[name] = create_slot(name);
6540
- }
6541
- }
6542
- }
6543
- for (const attribute of this.attributes) {
6544
- const name = this.$$g_p(attribute.name);
6545
- if (!(name in this.$$d)) {
6546
- this.$$d[name] = get_custom_element_value(name, attribute.value, this.$$p_d, "toProp");
6547
- }
6548
- }
6549
- for (const key in this.$$p_d) {
6550
- if (!(key in this.$$d) && this[key] !== undefined) {
6551
- this.$$d[key] = this[key];
6552
- delete this[key];
6553
- }
6554
- }
6555
- this.$$c = createClassComponent({
6556
- component: this.$$ctor,
6557
- target: this.$$shadowRoot || this,
6558
- props: {
6559
- ...this.$$d,
6560
- $$slots,
6561
- $$host: this
6562
- }
6563
- });
6564
- this.$$me = effect_root(() => {
6565
- render_effect(() => {
6566
- this.$$r = true;
6567
- for (const key of object_keys(this.$$c)) {
6568
- if (!this.$$p_d[key]?.reflect)
6569
- continue;
6570
- this.$$d[key] = this.$$c[key];
6571
- const attribute_value = get_custom_element_value(key, this.$$d[key], this.$$p_d, "toAttribute");
6572
- if (attribute_value == null) {
6573
- this.removeAttribute(this.$$p_d[key].attribute || key);
6574
- } else {
6575
- this.setAttribute(this.$$p_d[key].attribute || key, attribute_value);
6576
- }
6577
- }
6578
- this.$$r = false;
6579
- });
6580
- });
6581
- for (const type in this.$$l) {
6582
- for (const listener of this.$$l[type]) {
6583
- const unsub = this.$$c.$on(type, listener);
6584
- this.$$l_u.set(listener, unsub);
6585
- }
6586
- }
6587
- this.$$l = {};
6588
- }
6589
- }
6590
- attributeChangedCallback(attr, _oldValue, newValue) {
6591
- if (this.$$r)
6592
- return;
6593
- attr = this.$$g_p(attr);
6594
- this.$$d[attr] = get_custom_element_value(attr, newValue, this.$$p_d, "toProp");
6595
- this.$$c?.$set({ [attr]: this.$$d[attr] });
6596
- }
6597
- disconnectedCallback() {
6598
- this.$$cn = false;
6599
- Promise.resolve().then(() => {
6600
- if (!this.$$cn && this.$$c) {
6601
- this.$$c.$destroy();
6602
- this.$$me();
6603
- this.$$c = undefined;
6604
- }
6605
- });
6606
- }
6607
- $$g_p(attribute_name) {
6608
- return object_keys(this.$$p_d).find((key) => this.$$p_d[key].attribute === attribute_name || !this.$$p_d[key].attribute && key.toLowerCase() === attribute_name) || attribute_name;
6609
- }
6610
- };
5654
+ function unlink_effect(effect) {
5655
+ var parent = effect.parent;
5656
+ var prev = effect.prev;
5657
+ var next2 = effect.next;
5658
+ if (prev !== null)
5659
+ prev.next = next2;
5660
+ if (next2 !== null)
5661
+ next2.prev = prev;
5662
+ if (parent !== null) {
5663
+ if (parent.first === effect)
5664
+ parent.first = next2;
5665
+ if (parent.last === effect)
5666
+ parent.last = prev;
5667
+ }
6611
5668
  }
6612
- function get_custom_element_value(prop, value, props_definition, transform) {
6613
- const type = props_definition[prop]?.type;
6614
- value = type === "Boolean" && typeof value !== "boolean" ? value != null : value;
6615
- if (!transform || !props_definition[prop]) {
6616
- return value;
6617
- } else if (transform === "toAttribute") {
6618
- switch (type) {
6619
- case "Object":
6620
- case "Array":
6621
- return value == null ? null : JSON.stringify(value);
6622
- case "Boolean":
6623
- return value ? "" : null;
6624
- case "Number":
6625
- return value == null ? null : value;
6626
- default:
6627
- return value;
5669
+ function pause_effect(effect, callback, destroy = true) {
5670
+ var transitions = [];
5671
+ pause_children(effect, transitions, true);
5672
+ var fn = () => {
5673
+ if (destroy)
5674
+ destroy_effect(effect);
5675
+ if (callback)
5676
+ callback();
5677
+ };
5678
+ var remaining = transitions.length;
5679
+ if (remaining > 0) {
5680
+ var check = () => --remaining || fn();
5681
+ for (var transition of transitions) {
5682
+ transition.out(check);
6628
5683
  }
6629
5684
  } else {
6630
- switch (type) {
6631
- case "Object":
6632
- case "Array":
6633
- return value && JSON.parse(value);
6634
- case "Boolean":
6635
- return value;
6636
- case "Number":
6637
- return value != null ? +value : value;
6638
- default:
6639
- return value;
6640
- }
5685
+ fn();
6641
5686
  }
6642
5687
  }
6643
- function get_custom_elements_slots(element) {
6644
- const result = {};
6645
- element.childNodes.forEach((node) => {
6646
- result[node.slot || "default"] = true;
6647
- });
6648
- return result;
6649
- }
6650
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/index-client.js
6651
- if (true_default) {
6652
- let throw_rune_error = function(rune) {
6653
- if (!(rune in globalThis)) {
6654
- let value;
6655
- Object.defineProperty(globalThis, rune, {
6656
- configurable: true,
6657
- get: () => {
6658
- if (value !== undefined) {
6659
- return value;
6660
- }
6661
- rune_outside_svelte(rune);
6662
- },
6663
- set: (v) => {
6664
- value = v;
6665
- }
6666
- });
6667
- }
6668
- };
6669
- throw_rune_error("$state");
6670
- throw_rune_error("$effect");
6671
- throw_rune_error("$derived");
6672
- throw_rune_error("$inspect");
6673
- throw_rune_error("$props");
6674
- throw_rune_error("$bindable");
6675
- }
6676
-
6677
- // node_modules/.pnpm/svelte@5.53.6/node_modules/svelte/src/store/shared/index.js
6678
- var subscriber_queue = [];
6679
- function writable(value, start = noop) {
6680
- let stop = null;
6681
- const subscribers = new Set;
6682
- function set2(new_value) {
6683
- if (safe_not_equal(value, new_value)) {
6684
- value = new_value;
6685
- if (stop) {
6686
- const run_queue = !subscriber_queue.length;
6687
- for (const subscriber of subscribers) {
6688
- subscriber[1]();
6689
- subscriber_queue.push(subscriber, value);
6690
- }
6691
- if (run_queue) {
6692
- for (let i = 0;i < subscriber_queue.length; i += 2) {
6693
- subscriber_queue[i][0](subscriber_queue[i + 1]);
6694
- }
6695
- subscriber_queue.length = 0;
6696
- }
5688
+ function pause_children(effect, transitions, local) {
5689
+ if ((effect.f & INERT) !== 0)
5690
+ return;
5691
+ effect.f ^= INERT;
5692
+ var t = effect.nodes && effect.nodes.t;
5693
+ if (t !== null) {
5694
+ for (const transition of t) {
5695
+ if (transition.is_global || local) {
5696
+ transitions.push(transition);
6697
5697
  }
6698
5698
  }
6699
5699
  }
6700
- function update2(fn) {
6701
- set2(fn(value));
5700
+ var child = effect.first;
5701
+ while (child !== null) {
5702
+ var sibling = child.next;
5703
+ var transparent = (child.f & EFFECT_TRANSPARENT) !== 0 || (child.f & BRANCH_EFFECT) !== 0 && (effect.f & BLOCK_EFFECT) !== 0;
5704
+ pause_children(child, transitions, transparent ? local : false);
5705
+ child = sibling;
6702
5706
  }
6703
- function subscribe(run3, invalidate = noop) {
6704
- const subscriber = [run3, invalidate];
6705
- subscribers.add(subscriber);
6706
- if (subscribers.size === 1) {
6707
- stop = start(set2, update2) || noop;
6708
- }
6709
- run3(value);
6710
- return () => {
6711
- subscribers.delete(subscriber);
6712
- if (subscribers.size === 0 && stop) {
6713
- stop();
6714
- stop = null;
6715
- }
6716
- };
5707
+ }
5708
+ function move_effect(effect, fragment) {
5709
+ if (!effect.nodes)
5710
+ return;
5711
+ var node = effect.nodes.start;
5712
+ var end = effect.nodes.end;
5713
+ while (node !== null) {
5714
+ var next2 = node === end ? null : get_next_sibling(node);
5715
+ fragment.append(node);
5716
+ node = next2;
6717
5717
  }
6718
- return { set: set2, update: update2, subscribe };
6719
5718
  }
6720
- // node_modules/.pnpm/inside-out-async@2.0.2/node_modules/inside-out-async/dist/index.mjs
5719
+ // node_modules/.bun/inside-out-async@2.0.2/node_modules/inside-out-async/dist/index.mjs
6721
5720
  function withResolvers() {
6722
5721
  let reject;
6723
5722
  let resolve;
@@ -6799,9 +5798,9 @@ var getDomainName = (url) => {
6799
5798
  };
6800
5799
 
6801
5800
  // src/lib/client/utils/html-to-text.ts
6802
- function htmlToText(html4) {
6803
- const text3 = html4.replace(/<[^>]*>/g, "").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"');
6804
- return text3;
5801
+ function htmlToText(html3) {
5802
+ const text2 = html3.replace(/<[^>]*>/g, "").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"');
5803
+ return text2;
6805
5804
  }
6806
5805
 
6807
5806
  // src/lib/client/chat-result-builder.ts
@@ -6862,14 +5861,14 @@ class ChatResultBuilder {
6862
5861
  id
6863
5862
  }));
6864
5863
  }
6865
- updateText(text3) {
5864
+ updateText(text2) {
6866
5865
  this.store.update((current) => {
6867
- const nextMarkdown = current.message.markdown + text3;
6868
- const html4 = this.options.markdownRenderer.toHTML(nextMarkdown, current.references);
5866
+ const nextMarkdown = current.message.markdown + text2;
5867
+ const html3 = this.options.markdownRenderer.toHTML(nextMarkdown, current.references);
6869
5868
  return {
6870
5869
  ...current,
6871
5870
  state: "streaming",
6872
- message: { markdown: nextMarkdown, html: html4, text: "" }
5871
+ message: { markdown: nextMarkdown, html: html3, text: "" }
6873
5872
  };
6874
5873
  });
6875
5874
  }
@@ -6965,7 +5964,7 @@ class Conversation {
6965
5964
  }
6966
5965
  }
6967
5966
 
6968
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
5967
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
6969
5968
  var exports_external = {};
6970
5969
  __export(exports_external, {
6971
5970
  xor: () => xor,
@@ -7076,7 +6075,7 @@ __export(exports_external, {
7076
6075
  httpUrl: () => httpUrl,
7077
6076
  hostname: () => hostname2,
7078
6077
  hex: () => hex2,
7079
- hash: () => hash2,
6078
+ hash: () => hash,
7080
6079
  guid: () => guid2,
7081
6080
  gte: () => _gte,
7082
6081
  gt: () => _gt,
@@ -7206,7 +6205,7 @@ __export(exports_external, {
7206
6205
  $brand: () => $brand
7207
6206
  });
7208
6207
 
7209
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/index.js
6208
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
7210
6209
  var exports_core2 = {};
7211
6210
  __export(exports_core2, {
7212
6211
  version: () => version,
@@ -7484,12 +6483,12 @@ __export(exports_core2, {
7484
6483
  $ZodAny: () => $ZodAny
7485
6484
  });
7486
6485
 
7487
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
6486
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
7488
6487
  var NEVER = Object.freeze({
7489
6488
  status: "aborted"
7490
6489
  });
7491
6490
  function $constructor(name, initializer, params) {
7492
- function init2(inst, def2) {
6491
+ function init(inst, def2) {
7493
6492
  if (!inst._zod) {
7494
6493
  Object.defineProperty(inst, "_zod", {
7495
6494
  value: {
@@ -7522,14 +6521,14 @@ function $constructor(name, initializer, params) {
7522
6521
  function _(def2) {
7523
6522
  var _a;
7524
6523
  const inst = params?.Parent ? new Definition : this;
7525
- init2(inst, def2);
6524
+ init(inst, def2);
7526
6525
  (_a = inst._zod).deferred ?? (_a.deferred = []);
7527
6526
  for (const fn of inst._zod.deferred) {
7528
6527
  fn();
7529
6528
  }
7530
6529
  return inst;
7531
6530
  }
7532
- Object.defineProperty(_, "init", { value: init2 });
6531
+ Object.defineProperty(_, "init", { value: init });
7533
6532
  Object.defineProperty(_, Symbol.hasInstance, {
7534
6533
  value: (inst) => {
7535
6534
  if (params?.Parent && inst instanceof params.Parent)
@@ -7560,7 +6559,7 @@ function config(newConfig) {
7560
6559
  Object.assign(globalConfig, newConfig);
7561
6560
  return globalConfig;
7562
6561
  }
7563
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
6562
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
7564
6563
  var exports_util = {};
7565
6564
  __export(exports_util, {
7566
6565
  unwrapMessage: () => unwrapMessage,
@@ -7687,9 +6686,9 @@ function floatSafeRemainder(val, step) {
7687
6686
  return valInt % stepInt / 10 ** decCount;
7688
6687
  }
7689
6688
  var EVALUATING = Symbol("evaluating");
7690
- function defineLazy(object, key2, getter) {
6689
+ function defineLazy(object, key, getter) {
7691
6690
  let value = undefined;
7692
- Object.defineProperty(object, key2, {
6691
+ Object.defineProperty(object, key, {
7693
6692
  get() {
7694
6693
  if (value === EVALUATING) {
7695
6694
  return;
@@ -7701,7 +6700,7 @@ function defineLazy(object, key2, getter) {
7701
6700
  return value;
7702
6701
  },
7703
6702
  set(v) {
7704
- Object.defineProperty(object, key2, {
6703
+ Object.defineProperty(object, key, {
7705
6704
  value: v
7706
6705
  });
7707
6706
  },
@@ -7711,8 +6710,8 @@ function defineLazy(object, key2, getter) {
7711
6710
  function objectClone(obj) {
7712
6711
  return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
7713
6712
  }
7714
- function assignProp(target, prop2, value) {
7715
- Object.defineProperty(target, prop2, {
6713
+ function assignProp(target, prop, value) {
6714
+ Object.defineProperty(target, prop, {
7716
6715
  value,
7717
6716
  writable: true,
7718
6717
  enumerable: true,
@@ -7733,11 +6732,11 @@ function cloneDef(schema) {
7733
6732
  function getElementAtPath(obj, path) {
7734
6733
  if (!path)
7735
6734
  return obj;
7736
- return path.reduce((acc, key2) => acc?.[key2], obj);
6735
+ return path.reduce((acc, key) => acc?.[key], obj);
7737
6736
  }
7738
6737
  function promiseAllObject(promisesObj) {
7739
6738
  const keys = Object.keys(promisesObj);
7740
- const promises = keys.map((key2) => promisesObj[key2]);
6739
+ const promises = keys.map((key) => promisesObj[key]);
7741
6740
  return Promise.all(promises).then((results) => {
7742
6741
  const resolvedObj = {};
7743
6742
  for (let i = 0;i < keys.length; i++) {
@@ -7801,8 +6800,8 @@ function shallowClone(o) {
7801
6800
  }
7802
6801
  function numKeys(data) {
7803
6802
  let keyCount = 0;
7804
- for (const key2 in data) {
7805
- if (Object.prototype.hasOwnProperty.call(data, key2)) {
6803
+ for (const key in data) {
6804
+ if (Object.prototype.hasOwnProperty.call(data, key)) {
7806
6805
  keyCount++;
7807
6806
  }
7808
6807
  }
@@ -7882,33 +6881,33 @@ function normalizeParams(_params) {
7882
6881
  function createTransparentProxy(getter) {
7883
6882
  let target;
7884
6883
  return new Proxy({}, {
7885
- get(_, prop2, receiver) {
6884
+ get(_, prop, receiver) {
7886
6885
  target ?? (target = getter());
7887
- return Reflect.get(target, prop2, receiver);
6886
+ return Reflect.get(target, prop, receiver);
7888
6887
  },
7889
- set(_, prop2, value, receiver) {
6888
+ set(_, prop, value, receiver) {
7890
6889
  target ?? (target = getter());
7891
- return Reflect.set(target, prop2, value, receiver);
6890
+ return Reflect.set(target, prop, value, receiver);
7892
6891
  },
7893
- has(_, prop2) {
6892
+ has(_, prop) {
7894
6893
  target ?? (target = getter());
7895
- return Reflect.has(target, prop2);
6894
+ return Reflect.has(target, prop);
7896
6895
  },
7897
- deleteProperty(_, prop2) {
6896
+ deleteProperty(_, prop) {
7898
6897
  target ?? (target = getter());
7899
- return Reflect.deleteProperty(target, prop2);
6898
+ return Reflect.deleteProperty(target, prop);
7900
6899
  },
7901
6900
  ownKeys(_) {
7902
6901
  target ?? (target = getter());
7903
6902
  return Reflect.ownKeys(target);
7904
6903
  },
7905
- getOwnPropertyDescriptor(_, prop2) {
6904
+ getOwnPropertyDescriptor(_, prop) {
7906
6905
  target ?? (target = getter());
7907
- return Reflect.getOwnPropertyDescriptor(target, prop2);
6906
+ return Reflect.getOwnPropertyDescriptor(target, prop);
7908
6907
  },
7909
- defineProperty(_, prop2, descriptor) {
6908
+ defineProperty(_, prop, descriptor) {
7910
6909
  target ?? (target = getter());
7911
- return Reflect.defineProperty(target, prop2, descriptor);
6910
+ return Reflect.defineProperty(target, prop, descriptor);
7912
6911
  }
7913
6912
  });
7914
6913
  }
@@ -7945,13 +6944,13 @@ function pick(schema, mask) {
7945
6944
  const def2 = mergeDefs(schema._zod.def, {
7946
6945
  get shape() {
7947
6946
  const newShape = {};
7948
- for (const key2 in mask) {
7949
- if (!(key2 in currDef.shape)) {
7950
- throw new Error(`Unrecognized key: "${key2}"`);
6947
+ for (const key in mask) {
6948
+ if (!(key in currDef.shape)) {
6949
+ throw new Error(`Unrecognized key: "${key}"`);
7951
6950
  }
7952
- if (!mask[key2])
6951
+ if (!mask[key])
7953
6952
  continue;
7954
- newShape[key2] = currDef.shape[key2];
6953
+ newShape[key] = currDef.shape[key];
7955
6954
  }
7956
6955
  assignProp(this, "shape", newShape);
7957
6956
  return newShape;
@@ -7970,13 +6969,13 @@ function omit(schema, mask) {
7970
6969
  const def2 = mergeDefs(schema._zod.def, {
7971
6970
  get shape() {
7972
6971
  const newShape = { ...schema._zod.def.shape };
7973
- for (const key2 in mask) {
7974
- if (!(key2 in currDef.shape)) {
7975
- throw new Error(`Unrecognized key: "${key2}"`);
6972
+ for (const key in mask) {
6973
+ if (!(key in currDef.shape)) {
6974
+ throw new Error(`Unrecognized key: "${key}"`);
7976
6975
  }
7977
- if (!mask[key2])
6976
+ if (!mask[key])
7978
6977
  continue;
7979
- delete newShape[key2];
6978
+ delete newShape[key];
7980
6979
  }
7981
6980
  assignProp(this, "shape", newShape);
7982
6981
  return newShape;
@@ -7993,8 +6992,8 @@ function extend(schema, shape) {
7993
6992
  const hasChecks = checks && checks.length > 0;
7994
6993
  if (hasChecks) {
7995
6994
  const existingShape = schema._zod.def.shape;
7996
- for (const key2 in shape) {
7997
- if (Object.getOwnPropertyDescriptor(existingShape, key2) !== undefined) {
6995
+ for (const key in shape) {
6996
+ if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
7998
6997
  throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
7999
6998
  }
8000
6999
  }
@@ -8047,23 +7046,23 @@ function partial(Class, schema, mask) {
8047
7046
  const oldShape = schema._zod.def.shape;
8048
7047
  const shape = { ...oldShape };
8049
7048
  if (mask) {
8050
- for (const key2 in mask) {
8051
- if (!(key2 in oldShape)) {
8052
- throw new Error(`Unrecognized key: "${key2}"`);
7049
+ for (const key in mask) {
7050
+ if (!(key in oldShape)) {
7051
+ throw new Error(`Unrecognized key: "${key}"`);
8053
7052
  }
8054
- if (!mask[key2])
7053
+ if (!mask[key])
8055
7054
  continue;
8056
- shape[key2] = Class ? new Class({
7055
+ shape[key] = Class ? new Class({
8057
7056
  type: "optional",
8058
- innerType: oldShape[key2]
8059
- }) : oldShape[key2];
7057
+ innerType: oldShape[key]
7058
+ }) : oldShape[key];
8060
7059
  }
8061
7060
  } else {
8062
- for (const key2 in oldShape) {
8063
- shape[key2] = Class ? new Class({
7061
+ for (const key in oldShape) {
7062
+ shape[key] = Class ? new Class({
8064
7063
  type: "optional",
8065
- innerType: oldShape[key2]
8066
- }) : oldShape[key2];
7064
+ innerType: oldShape[key]
7065
+ }) : oldShape[key];
8067
7066
  }
8068
7067
  }
8069
7068
  assignProp(this, "shape", shape);
@@ -8079,22 +7078,22 @@ function required(Class, schema, mask) {
8079
7078
  const oldShape = schema._zod.def.shape;
8080
7079
  const shape = { ...oldShape };
8081
7080
  if (mask) {
8082
- for (const key2 in mask) {
8083
- if (!(key2 in shape)) {
8084
- throw new Error(`Unrecognized key: "${key2}"`);
7081
+ for (const key in mask) {
7082
+ if (!(key in shape)) {
7083
+ throw new Error(`Unrecognized key: "${key}"`);
8085
7084
  }
8086
- if (!mask[key2])
7085
+ if (!mask[key])
8087
7086
  continue;
8088
- shape[key2] = new Class({
7087
+ shape[key] = new Class({
8089
7088
  type: "nonoptional",
8090
- innerType: oldShape[key2]
7089
+ innerType: oldShape[key]
8091
7090
  });
8092
7091
  }
8093
7092
  } else {
8094
- for (const key2 in oldShape) {
8095
- shape[key2] = new Class({
7093
+ for (const key in oldShape) {
7094
+ shape[key] = new Class({
8096
7095
  type: "nonoptional",
8097
- innerType: oldShape[key2]
7096
+ innerType: oldShape[key]
8098
7097
  });
8099
7098
  }
8100
7099
  }
@@ -8234,7 +7233,7 @@ class Class {
8234
7233
  constructor(..._args) {}
8235
7234
  }
8236
7235
 
8237
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
7236
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
8238
7237
  var initializer = (inst, def2) => {
8239
7238
  inst.name = "$ZodError";
8240
7239
  Object.defineProperty(inst, "_zod", {
@@ -8371,7 +7370,7 @@ function prettifyError(error) {
8371
7370
  `);
8372
7371
  }
8373
7372
 
8374
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
7373
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
8375
7374
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
8376
7375
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
8377
7376
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -8458,7 +7457,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
8458
7457
  return _safeParseAsync(_Err)(schema, value, _ctx);
8459
7458
  };
8460
7459
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
8461
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
7460
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
8462
7461
  var exports_regexes = {};
8463
7462
  __export(exports_regexes, {
8464
7463
  xid: () => xid,
@@ -8615,7 +7614,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
8615
7614
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
8616
7615
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
8617
7616
 
8618
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
7617
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
8619
7618
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def2) => {
8620
7619
  var _a;
8621
7620
  inst._zod ?? (inst._zod = {});
@@ -9162,7 +8161,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
9162
8161
  };
9163
8162
  });
9164
8163
 
9165
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
8164
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
9166
8165
  class Doc {
9167
8166
  constructor(args = []) {
9168
8167
  this.content = [];
@@ -9200,14 +8199,14 @@ class Doc {
9200
8199
  }
9201
8200
  }
9202
8201
 
9203
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
8202
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
9204
8203
  var version = {
9205
8204
  major: 4,
9206
8205
  minor: 3,
9207
8206
  patch: 6
9208
8207
  };
9209
8208
 
9210
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
8209
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
9211
8210
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def2) => {
9212
8211
  var _a;
9213
8212
  inst ?? (inst = {});
@@ -9805,11 +8804,11 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def2) => {
9805
8804
  return payload;
9806
8805
  };
9807
8806
  });
9808
- function handleArrayResult(result, final, index2) {
8807
+ function handleArrayResult(result, final, index) {
9809
8808
  if (result.issues.length) {
9810
- final.issues.push(...prefixIssues(index2, result.issues));
8809
+ final.issues.push(...prefixIssues(index, result.issues));
9811
8810
  }
9812
- final.value[index2] = result.value;
8811
+ final.value[index] = result.value;
9813
8812
  }
9814
8813
  var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def2) => {
9815
8814
  $ZodType.init(inst, def2);
@@ -9844,19 +8843,19 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def2) => {
9844
8843
  return payload;
9845
8844
  };
9846
8845
  });
9847
- function handlePropertyResult(result, final, key2, input, isOptionalOut) {
8846
+ function handlePropertyResult(result, final, key, input, isOptionalOut) {
9848
8847
  if (result.issues.length) {
9849
- if (isOptionalOut && !(key2 in input)) {
8848
+ if (isOptionalOut && !(key in input)) {
9850
8849
  return;
9851
8850
  }
9852
- final.issues.push(...prefixIssues(key2, result.issues));
8851
+ final.issues.push(...prefixIssues(key, result.issues));
9853
8852
  }
9854
8853
  if (result.value === undefined) {
9855
- if (key2 in input) {
9856
- final.value[key2] = undefined;
8854
+ if (key in input) {
8855
+ final.value[key] = undefined;
9857
8856
  }
9858
8857
  } else {
9859
- final.value[key2] = result.value;
8858
+ final.value[key] = result.value;
9860
8859
  }
9861
8860
  }
9862
8861
  function normalizeDef(def2) {
@@ -9881,18 +8880,18 @@ function handleCatchall(proms, input, payload, ctx, def2, inst) {
9881
8880
  const _catchall = def2.catchall._zod;
9882
8881
  const t = _catchall.def.type;
9883
8882
  const isOptionalOut = _catchall.optout === "optional";
9884
- for (const key2 in input) {
9885
- if (keySet.has(key2))
8883
+ for (const key in input) {
8884
+ if (keySet.has(key))
9886
8885
  continue;
9887
8886
  if (t === "never") {
9888
- unrecognized.push(key2);
8887
+ unrecognized.push(key);
9889
8888
  continue;
9890
8889
  }
9891
- const r = _catchall.run({ value: input[key2], issues: [] }, ctx);
8890
+ const r = _catchall.run({ value: input[key], issues: [] }, ctx);
9892
8891
  if (r instanceof Promise) {
9893
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key2, input, isOptionalOut)));
8892
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
9894
8893
  } else {
9895
- handlePropertyResult(r, payload, key2, input, isOptionalOut);
8894
+ handlePropertyResult(r, payload, key, input, isOptionalOut);
9896
8895
  }
9897
8896
  }
9898
8897
  if (unrecognized.length) {
@@ -9928,12 +8927,12 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def2) => {
9928
8927
  defineLazy(inst._zod, "propValues", () => {
9929
8928
  const shape = def2.shape;
9930
8929
  const propValues = {};
9931
- for (const key2 in shape) {
9932
- const field = shape[key2]._zod;
8930
+ for (const key in shape) {
8931
+ const field = shape[key]._zod;
9933
8932
  if (field.values) {
9934
- propValues[key2] ?? (propValues[key2] = new Set);
8933
+ propValues[key] ?? (propValues[key] = new Set);
9935
8934
  for (const v of field.values)
9936
- propValues[key2].add(v);
8935
+ propValues[key].add(v);
9937
8936
  }
9938
8937
  }
9939
8938
  return propValues;
@@ -9956,14 +8955,14 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def2) => {
9956
8955
  payload.value = {};
9957
8956
  const proms = [];
9958
8957
  const shape = value.shape;
9959
- for (const key2 of value.keys) {
9960
- const el = shape[key2];
8958
+ for (const key of value.keys) {
8959
+ const el = shape[key];
9961
8960
  const isOptionalOut = el._zod.optout === "optional";
9962
- const r = el._zod.run({ value: input[key2], issues: [] }, ctx);
8961
+ const r = el._zod.run({ value: input[key], issues: [] }, ctx);
9963
8962
  if (r instanceof Promise) {
9964
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key2, input, isOptionalOut)));
8963
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
9965
8964
  } else {
9966
- handlePropertyResult(r, payload, key2, input, isOptionalOut);
8965
+ handlePropertyResult(r, payload, key, input, isOptionalOut);
9967
8966
  }
9968
8967
  }
9969
8968
  if (!catchall) {
@@ -9979,23 +8978,23 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def2) =
9979
8978
  const generateFastpass = (shape) => {
9980
8979
  const doc = new Doc(["shape", "payload", "ctx"]);
9981
8980
  const normalized = _normalized.value;
9982
- const parseStr = (key2) => {
9983
- const k = esc(key2);
8981
+ const parseStr = (key) => {
8982
+ const k = esc(key);
9984
8983
  return `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
9985
8984
  };
9986
8985
  doc.write(`const input = payload.value;`);
9987
8986
  const ids = Object.create(null);
9988
8987
  let counter = 0;
9989
- for (const key2 of normalized.keys) {
9990
- ids[key2] = `key_${counter++}`;
8988
+ for (const key of normalized.keys) {
8989
+ ids[key] = `key_${counter++}`;
9991
8990
  }
9992
8991
  doc.write(`const newResult = {};`);
9993
- for (const key2 of normalized.keys) {
9994
- const id = ids[key2];
9995
- const k = esc(key2);
9996
- const schema = shape[key2];
8992
+ for (const key of normalized.keys) {
8993
+ const id = ids[key];
8994
+ const k = esc(key);
8995
+ const schema = shape[key];
9997
8996
  const isOptionalOut = schema?._zod?.optout === "optional";
9998
- doc.write(`const ${id} = ${parseStr(key2)};`);
8997
+ doc.write(`const ${id} = ${parseStr(key)};`);
9999
8998
  if (isOptionalOut) {
10000
8999
  doc.write(`
10001
9000
  if (${id}.issues.length) {
@@ -10114,7 +9113,7 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def2) => {
10114
9113
  if (single) {
10115
9114
  return first(payload, ctx);
10116
9115
  }
10117
- let async2 = false;
9116
+ let async = false;
10118
9117
  const results = [];
10119
9118
  for (const option of def2.options) {
10120
9119
  const result = option._zod.run({
@@ -10123,14 +9122,14 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def2) => {
10123
9122
  }, ctx);
10124
9123
  if (result instanceof Promise) {
10125
9124
  results.push(result);
10126
- async2 = true;
9125
+ async = true;
10127
9126
  } else {
10128
9127
  if (result.issues.length === 0)
10129
9128
  return result;
10130
9129
  results.push(result);
10131
9130
  }
10132
9131
  }
10133
- if (!async2)
9132
+ if (!async)
10134
9133
  return handleUnionResults(results, payload, inst, ctx);
10135
9134
  return Promise.all(results).then((results2) => {
10136
9135
  return handleUnionResults(results2, payload, inst, ctx);
@@ -10170,7 +9169,7 @@ var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def2) => {
10170
9169
  if (single) {
10171
9170
  return first(payload, ctx);
10172
9171
  }
10173
- let async2 = false;
9172
+ let async = false;
10174
9173
  const results = [];
10175
9174
  for (const option of def2.options) {
10176
9175
  const result = option._zod.run({
@@ -10179,12 +9178,12 @@ var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def2) => {
10179
9178
  }, ctx);
10180
9179
  if (result instanceof Promise) {
10181
9180
  results.push(result);
10182
- async2 = true;
9181
+ async = true;
10183
9182
  } else {
10184
9183
  results.push(result);
10185
9184
  }
10186
9185
  }
10187
- if (!async2)
9186
+ if (!async)
10188
9187
  return handleExclusiveUnionResults(results, payload, inst, ctx);
10189
9188
  return Promise.all(results).then((results2) => {
10190
9189
  return handleExclusiveUnionResults(results2, payload, inst, ctx);
@@ -10263,8 +9262,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
10263
9262
  const input = payload.value;
10264
9263
  const left = def2.left._zod.run({ value: input, issues: [] }, ctx);
10265
9264
  const right = def2.right._zod.run({ value: input, issues: [] }, ctx);
10266
- const async2 = left instanceof Promise || right instanceof Promise;
10267
- if (async2) {
9265
+ const async = left instanceof Promise || right instanceof Promise;
9266
+ if (async) {
10268
9267
  return Promise.all([left, right]).then(([left2, right2]) => {
10269
9268
  return handleIntersectionResults(payload, left2, right2);
10270
9269
  });
@@ -10281,17 +9280,17 @@ function mergeValues(a, b) {
10281
9280
  }
10282
9281
  if (isPlainObject(a) && isPlainObject(b)) {
10283
9282
  const bKeys = Object.keys(b);
10284
- const sharedKeys = Object.keys(a).filter((key2) => bKeys.indexOf(key2) !== -1);
9283
+ const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
10285
9284
  const newObj = { ...a, ...b };
10286
- for (const key2 of sharedKeys) {
10287
- const sharedValue = mergeValues(a[key2], b[key2]);
9285
+ for (const key of sharedKeys) {
9286
+ const sharedValue = mergeValues(a[key], b[key]);
10288
9287
  if (!sharedValue.valid) {
10289
9288
  return {
10290
9289
  valid: false,
10291
- mergeErrorPath: [key2, ...sharedValue.mergeErrorPath]
9290
+ mergeErrorPath: [key, ...sharedValue.mergeErrorPath]
10292
9291
  };
10293
9292
  }
10294
- newObj[key2] = sharedValue.data;
9293
+ newObj[key] = sharedValue.data;
10295
9294
  }
10296
9295
  return { valid: true, data: newObj };
10297
9296
  }
@@ -10300,14 +9299,14 @@ function mergeValues(a, b) {
10300
9299
  return { valid: false, mergeErrorPath: [] };
10301
9300
  }
10302
9301
  const newArray = [];
10303
- for (let index2 = 0;index2 < a.length; index2++) {
10304
- const itemA = a[index2];
10305
- const itemB = b[index2];
9302
+ for (let index = 0;index < a.length; index++) {
9303
+ const itemA = a[index];
9304
+ const itemB = b[index];
10306
9305
  const sharedValue = mergeValues(itemA, itemB);
10307
9306
  if (!sharedValue.valid) {
10308
9307
  return {
10309
9308
  valid: false,
10310
- mergeErrorPath: [index2, ...sharedValue.mergeErrorPath]
9309
+ mergeErrorPath: [index, ...sharedValue.mergeErrorPath]
10311
9310
  };
10312
9311
  }
10313
9312
  newArray.push(sharedValue.data);
@@ -10423,11 +9422,11 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def2) => {
10423
9422
  return payload;
10424
9423
  };
10425
9424
  });
10426
- function handleTupleResult(result, final, index2) {
9425
+ function handleTupleResult(result, final, index) {
10427
9426
  if (result.issues.length) {
10428
- final.issues.push(...prefixIssues(index2, result.issues));
9427
+ final.issues.push(...prefixIssues(index, result.issues));
10429
9428
  }
10430
- final.value[index2] = result.value;
9429
+ final.value[index] = result.value;
10431
9430
  }
10432
9431
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
10433
9432
  $ZodType.init(inst, def2);
@@ -10447,30 +9446,30 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
10447
9446
  if (values) {
10448
9447
  payload.value = {};
10449
9448
  const recordKeys = new Set;
10450
- for (const key2 of values) {
10451
- if (typeof key2 === "string" || typeof key2 === "number" || typeof key2 === "symbol") {
10452
- recordKeys.add(typeof key2 === "number" ? key2.toString() : key2);
10453
- const result = def2.valueType._zod.run({ value: input[key2], issues: [] }, ctx);
9449
+ for (const key of values) {
9450
+ if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
9451
+ recordKeys.add(typeof key === "number" ? key.toString() : key);
9452
+ const result = def2.valueType._zod.run({ value: input[key], issues: [] }, ctx);
10454
9453
  if (result instanceof Promise) {
10455
9454
  proms.push(result.then((result2) => {
10456
9455
  if (result2.issues.length) {
10457
- payload.issues.push(...prefixIssues(key2, result2.issues));
9456
+ payload.issues.push(...prefixIssues(key, result2.issues));
10458
9457
  }
10459
- payload.value[key2] = result2.value;
9458
+ payload.value[key] = result2.value;
10460
9459
  }));
10461
9460
  } else {
10462
9461
  if (result.issues.length) {
10463
- payload.issues.push(...prefixIssues(key2, result.issues));
9462
+ payload.issues.push(...prefixIssues(key, result.issues));
10464
9463
  }
10465
- payload.value[key2] = result.value;
9464
+ payload.value[key] = result.value;
10466
9465
  }
10467
9466
  }
10468
9467
  }
10469
9468
  let unrecognized;
10470
- for (const key2 in input) {
10471
- if (!recordKeys.has(key2)) {
9469
+ for (const key in input) {
9470
+ if (!recordKeys.has(key)) {
10472
9471
  unrecognized = unrecognized ?? [];
10473
- unrecognized.push(key2);
9472
+ unrecognized.push(key);
10474
9473
  }
10475
9474
  }
10476
9475
  if (unrecognized && unrecognized.length > 0) {
@@ -10483,16 +9482,16 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
10483
9482
  }
10484
9483
  } else {
10485
9484
  payload.value = {};
10486
- for (const key2 of Reflect.ownKeys(input)) {
10487
- if (key2 === "__proto__")
9485
+ for (const key of Reflect.ownKeys(input)) {
9486
+ if (key === "__proto__")
10488
9487
  continue;
10489
- let keyResult = def2.keyType._zod.run({ value: key2, issues: [] }, ctx);
9488
+ let keyResult = def2.keyType._zod.run({ value: key, issues: [] }, ctx);
10490
9489
  if (keyResult instanceof Promise) {
10491
9490
  throw new Error("Async schemas not supported in object keys currently");
10492
9491
  }
10493
- const checkNumericKey = typeof key2 === "string" && number.test(key2) && keyResult.issues.length;
9492
+ const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
10494
9493
  if (checkNumericKey) {
10495
- const retryResult = def2.keyType._zod.run({ value: Number(key2), issues: [] }, ctx);
9494
+ const retryResult = def2.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
10496
9495
  if (retryResult instanceof Promise) {
10497
9496
  throw new Error("Async schemas not supported in object keys currently");
10498
9497
  }
@@ -10502,30 +9501,30 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def2) => {
10502
9501
  }
10503
9502
  if (keyResult.issues.length) {
10504
9503
  if (def2.mode === "loose") {
10505
- payload.value[key2] = input[key2];
9504
+ payload.value[key] = input[key];
10506
9505
  } else {
10507
9506
  payload.issues.push({
10508
9507
  code: "invalid_key",
10509
9508
  origin: "record",
10510
9509
  issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
10511
- input: key2,
10512
- path: [key2],
9510
+ input: key,
9511
+ path: [key],
10513
9512
  inst
10514
9513
  });
10515
9514
  }
10516
9515
  continue;
10517
9516
  }
10518
- const result = def2.valueType._zod.run({ value: input[key2], issues: [] }, ctx);
9517
+ const result = def2.valueType._zod.run({ value: input[key], issues: [] }, ctx);
10519
9518
  if (result instanceof Promise) {
10520
9519
  proms.push(result.then((result2) => {
10521
9520
  if (result2.issues.length) {
10522
- payload.issues.push(...prefixIssues(key2, result2.issues));
9521
+ payload.issues.push(...prefixIssues(key, result2.issues));
10523
9522
  }
10524
9523
  payload.value[keyResult.value] = result2.value;
10525
9524
  }));
10526
9525
  } else {
10527
9526
  if (result.issues.length) {
10528
- payload.issues.push(...prefixIssues(key2, result.issues));
9527
+ payload.issues.push(...prefixIssues(key, result.issues));
10529
9528
  }
10530
9529
  payload.value[keyResult.value] = result.value;
10531
9530
  }
@@ -10552,15 +9551,15 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def2) => {
10552
9551
  }
10553
9552
  const proms = [];
10554
9553
  payload.value = new Map;
10555
- for (const [key2, value] of input) {
10556
- const keyResult = def2.keyType._zod.run({ value: key2, issues: [] }, ctx);
9554
+ for (const [key, value] of input) {
9555
+ const keyResult = def2.keyType._zod.run({ value: key, issues: [] }, ctx);
10557
9556
  const valueResult = def2.valueType._zod.run({ value, issues: [] }, ctx);
10558
9557
  if (keyResult instanceof Promise || valueResult instanceof Promise) {
10559
9558
  proms.push(Promise.all([keyResult, valueResult]).then(([keyResult2, valueResult2]) => {
10560
- handleMapResult(keyResult2, valueResult2, payload, key2, input, inst, ctx);
9559
+ handleMapResult(keyResult2, valueResult2, payload, key, input, inst, ctx);
10561
9560
  }));
10562
9561
  } else {
10563
- handleMapResult(keyResult, valueResult, payload, key2, input, inst, ctx);
9562
+ handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
10564
9563
  }
10565
9564
  }
10566
9565
  if (proms.length)
@@ -10568,10 +9567,10 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def2) => {
10568
9567
  return payload;
10569
9568
  };
10570
9569
  });
10571
- function handleMapResult(keyResult, valueResult, final, key2, input, inst, ctx) {
9570
+ function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
10572
9571
  if (keyResult.issues.length) {
10573
- if (propertyKeyTypes.has(typeof key2)) {
10574
- final.issues.push(...prefixIssues(key2, keyResult.issues));
9572
+ if (propertyKeyTypes.has(typeof key)) {
9573
+ final.issues.push(...prefixIssues(key, keyResult.issues));
10575
9574
  } else {
10576
9575
  final.issues.push({
10577
9576
  code: "invalid_key",
@@ -10583,15 +9582,15 @@ function handleMapResult(keyResult, valueResult, final, key2, input, inst, ctx)
10583
9582
  }
10584
9583
  }
10585
9584
  if (valueResult.issues.length) {
10586
- if (propertyKeyTypes.has(typeof key2)) {
10587
- final.issues.push(...prefixIssues(key2, valueResult.issues));
9585
+ if (propertyKeyTypes.has(typeof key)) {
9586
+ final.issues.push(...prefixIssues(key, valueResult.issues));
10588
9587
  } else {
10589
9588
  final.issues.push({
10590
9589
  origin: "map",
10591
9590
  code: "invalid_element",
10592
9591
  input,
10593
9592
  inst,
10594
- key: key2,
9593
+ key,
10595
9594
  issues: valueResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))
10596
9595
  });
10597
9596
  }
@@ -11169,7 +10168,7 @@ function handleRefineResult(result, payload, input, inst) {
11169
10168
  payload.issues.push(issue(_iss));
11170
10169
  }
11171
10170
  }
11172
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/index.js
10171
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
11173
10172
  var exports_locales = {};
11174
10173
  __export(exports_locales, {
11175
10174
  zhTW: () => zh_TW_default,
@@ -11223,7 +10222,7 @@ __export(exports_locales, {
11223
10222
  ar: () => ar_default
11224
10223
  });
11225
10224
 
11226
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ar.js
10225
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
11227
10226
  var error = () => {
11228
10227
  const Sizable = {
11229
10228
  string: { unit: "حرف", verb: "أن يحوي" },
@@ -11329,7 +10328,7 @@ function ar_default() {
11329
10328
  localeError: error()
11330
10329
  };
11331
10330
  }
11332
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/az.js
10331
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/az.js
11333
10332
  var error2 = () => {
11334
10333
  const Sizable = {
11335
10334
  string: { unit: "simvol", verb: "olmalıdır" },
@@ -11434,7 +10433,7 @@ function az_default() {
11434
10433
  localeError: error2()
11435
10434
  };
11436
10435
  }
11437
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/be.js
10436
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/be.js
11438
10437
  function getBelarusianPlural(count, one, few, many) {
11439
10438
  const absCount = Math.abs(count);
11440
10439
  const lastDigit = absCount % 10;
@@ -11590,7 +10589,7 @@ function be_default() {
11590
10589
  localeError: error3()
11591
10590
  };
11592
10591
  }
11593
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/bg.js
10592
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/bg.js
11594
10593
  var error4 = () => {
11595
10594
  const Sizable = {
11596
10595
  string: { unit: "символа", verb: "да съдържа" },
@@ -11710,7 +10709,7 @@ function bg_default() {
11710
10709
  localeError: error4()
11711
10710
  };
11712
10711
  }
11713
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ca.js
10712
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ca.js
11714
10713
  var error5 = () => {
11715
10714
  const Sizable = {
11716
10715
  string: { unit: "caràcters", verb: "contenir" },
@@ -11817,7 +10816,7 @@ function ca_default() {
11817
10816
  localeError: error5()
11818
10817
  };
11819
10818
  }
11820
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/cs.js
10819
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/cs.js
11821
10820
  var error6 = () => {
11822
10821
  const Sizable = {
11823
10822
  string: { unit: "znaků", verb: "mít" },
@@ -11928,7 +10927,7 @@ function cs_default() {
11928
10927
  localeError: error6()
11929
10928
  };
11930
10929
  }
11931
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/da.js
10930
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/da.js
11932
10931
  var error7 = () => {
11933
10932
  const Sizable = {
11934
10933
  string: { unit: "tegn", verb: "havde" },
@@ -12043,7 +11042,7 @@ function da_default() {
12043
11042
  localeError: error7()
12044
11043
  };
12045
11044
  }
12046
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/de.js
11045
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/de.js
12047
11046
  var error8 = () => {
12048
11047
  const Sizable = {
12049
11048
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -12151,7 +11150,7 @@ function de_default() {
12151
11150
  localeError: error8()
12152
11151
  };
12153
11152
  }
12154
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/en.js
11153
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
12155
11154
  var error9 = () => {
12156
11155
  const Sizable = {
12157
11156
  string: { unit: "characters", verb: "to have" },
@@ -12257,7 +11256,7 @@ function en_default() {
12257
11256
  localeError: error9()
12258
11257
  };
12259
11258
  }
12260
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/eo.js
11259
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/eo.js
12261
11260
  var error10 = () => {
12262
11261
  const Sizable = {
12263
11262
  string: { unit: "karaktrojn", verb: "havi" },
@@ -12366,7 +11365,7 @@ function eo_default() {
12366
11365
  localeError: error10()
12367
11366
  };
12368
11367
  }
12369
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/es.js
11368
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/es.js
12370
11369
  var error11 = () => {
12371
11370
  const Sizable = {
12372
11371
  string: { unit: "caracteres", verb: "tener" },
@@ -12498,7 +11497,7 @@ function es_default() {
12498
11497
  localeError: error11()
12499
11498
  };
12500
11499
  }
12501
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fa.js
11500
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fa.js
12502
11501
  var error12 = () => {
12503
11502
  const Sizable = {
12504
11503
  string: { unit: "کاراکتر", verb: "داشته باشد" },
@@ -12612,7 +11611,7 @@ function fa_default() {
12612
11611
  localeError: error12()
12613
11612
  };
12614
11613
  }
12615
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fi.js
11614
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fi.js
12616
11615
  var error13 = () => {
12617
11616
  const Sizable = {
12618
11617
  string: { unit: "merkkiä", subject: "merkkijonon" },
@@ -12724,7 +11723,7 @@ function fi_default() {
12724
11723
  localeError: error13()
12725
11724
  };
12726
11725
  }
12727
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr.js
11726
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr.js
12728
11727
  var error14 = () => {
12729
11728
  const Sizable = {
12730
11729
  string: { unit: "caractères", verb: "avoir" },
@@ -12832,7 +11831,7 @@ function fr_default() {
12832
11831
  localeError: error14()
12833
11832
  };
12834
11833
  }
12835
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
11834
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
12836
11835
  var error15 = () => {
12837
11836
  const Sizable = {
12838
11837
  string: { unit: "caractères", verb: "avoir" },
@@ -12939,7 +11938,7 @@ function fr_CA_default() {
12939
11938
  localeError: error15()
12940
11939
  };
12941
11940
  }
12942
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/he.js
11941
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/he.js
12943
11942
  var error16 = () => {
12944
11943
  const TypeNames = {
12945
11944
  string: { label: "מחרוזת", gender: "f" },
@@ -13132,7 +12131,7 @@ function he_default() {
13132
12131
  localeError: error16()
13133
12132
  };
13134
12133
  }
13135
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hu.js
12134
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hu.js
13136
12135
  var error17 = () => {
13137
12136
  const Sizable = {
13138
12137
  string: { unit: "karakter", verb: "legyen" },
@@ -13240,7 +12239,7 @@ function hu_default() {
13240
12239
  localeError: error17()
13241
12240
  };
13242
12241
  }
13243
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/hy.js
12242
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hy.js
13244
12243
  function getArmenianPlural(count, one, many) {
13245
12244
  return Math.abs(count) === 1 ? one : many;
13246
12245
  }
@@ -13387,7 +12386,7 @@ function hy_default() {
13387
12386
  localeError: error18()
13388
12387
  };
13389
12388
  }
13390
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/id.js
12389
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/id.js
13391
12390
  var error19 = () => {
13392
12391
  const Sizable = {
13393
12392
  string: { unit: "karakter", verb: "memiliki" },
@@ -13493,7 +12492,7 @@ function id_default() {
13493
12492
  localeError: error19()
13494
12493
  };
13495
12494
  }
13496
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/is.js
12495
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/is.js
13497
12496
  var error20 = () => {
13498
12497
  const Sizable = {
13499
12498
  string: { unit: "stafi", verb: "að hafa" },
@@ -13602,7 +12601,7 @@ function is_default() {
13602
12601
  localeError: error20()
13603
12602
  };
13604
12603
  }
13605
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/it.js
12604
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/it.js
13606
12605
  var error21 = () => {
13607
12606
  const Sizable = {
13608
12607
  string: { unit: "caratteri", verb: "avere" },
@@ -13710,7 +12709,7 @@ function it_default() {
13710
12709
  localeError: error21()
13711
12710
  };
13712
12711
  }
13713
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ja.js
12712
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ja.js
13714
12713
  var error22 = () => {
13715
12714
  const Sizable = {
13716
12715
  string: { unit: "文字", verb: "である" },
@@ -13817,7 +12816,7 @@ function ja_default() {
13817
12816
  localeError: error22()
13818
12817
  };
13819
12818
  }
13820
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ka.js
12819
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ka.js
13821
12820
  var error23 = () => {
13822
12821
  const Sizable = {
13823
12822
  string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
@@ -13929,7 +12928,7 @@ function ka_default() {
13929
12928
  localeError: error23()
13930
12929
  };
13931
12930
  }
13932
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/km.js
12931
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/km.js
13933
12932
  var error24 = () => {
13934
12933
  const Sizable = {
13935
12934
  string: { unit: "តួអក្សរ", verb: "គួរមាន" },
@@ -14040,11 +13039,11 @@ function km_default() {
14040
13039
  };
14041
13040
  }
14042
13041
 
14043
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/kh.js
13042
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/kh.js
14044
13043
  function kh_default() {
14045
13044
  return km_default();
14046
13045
  }
14047
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ko.js
13046
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ko.js
14048
13047
  var error25 = () => {
14049
13048
  const Sizable = {
14050
13049
  string: { unit: "문자", verb: "to have" },
@@ -14155,9 +13154,9 @@ function ko_default() {
14155
13154
  localeError: error25()
14156
13155
  };
14157
13156
  }
14158
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/lt.js
14159
- var capitalizeFirstCharacter = (text3) => {
14160
- return text3.charAt(0).toUpperCase() + text3.slice(1);
13157
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/lt.js
13158
+ var capitalizeFirstCharacter = (text2) => {
13159
+ return text2.charAt(0).toUpperCase() + text2.slice(1);
14161
13160
  };
14162
13161
  function getUnitTypeFromNumber(number2) {
14163
13162
  const abs = Math.abs(number2);
@@ -14358,7 +13357,7 @@ function lt_default() {
14358
13357
  localeError: error26()
14359
13358
  };
14360
13359
  }
14361
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/mk.js
13360
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/mk.js
14362
13361
  var error27 = () => {
14363
13362
  const Sizable = {
14364
13363
  string: { unit: "знаци", verb: "да имаат" },
@@ -14467,7 +13466,7 @@ function mk_default() {
14467
13466
  localeError: error27()
14468
13467
  };
14469
13468
  }
14470
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ms.js
13469
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ms.js
14471
13470
  var error28 = () => {
14472
13471
  const Sizable = {
14473
13472
  string: { unit: "aksara", verb: "mempunyai" },
@@ -14574,7 +13573,7 @@ function ms_default() {
14574
13573
  localeError: error28()
14575
13574
  };
14576
13575
  }
14577
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/nl.js
13576
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/nl.js
14578
13577
  var error29 = () => {
14579
13578
  const Sizable = {
14580
13579
  string: { unit: "tekens", verb: "heeft" },
@@ -14684,7 +13683,7 @@ function nl_default() {
14684
13683
  localeError: error29()
14685
13684
  };
14686
13685
  }
14687
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/no.js
13686
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/no.js
14688
13687
  var error30 = () => {
14689
13688
  const Sizable = {
14690
13689
  string: { unit: "tegn", verb: "å ha" },
@@ -14792,7 +13791,7 @@ function no_default() {
14792
13791
  localeError: error30()
14793
13792
  };
14794
13793
  }
14795
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ota.js
13794
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ota.js
14796
13795
  var error31 = () => {
14797
13796
  const Sizable = {
14798
13797
  string: { unit: "harf", verb: "olmalıdır" },
@@ -14901,7 +13900,7 @@ function ota_default() {
14901
13900
  localeError: error31()
14902
13901
  };
14903
13902
  }
14904
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ps.js
13903
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ps.js
14905
13904
  var error32 = () => {
14906
13905
  const Sizable = {
14907
13906
  string: { unit: "توکي", verb: "ولري" },
@@ -15015,7 +14014,7 @@ function ps_default() {
15015
14014
  localeError: error32()
15016
14015
  };
15017
14016
  }
15018
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pl.js
14017
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pl.js
15019
14018
  var error33 = () => {
15020
14019
  const Sizable = {
15021
14020
  string: { unit: "znaków", verb: "mieć" },
@@ -15124,7 +14123,7 @@ function pl_default() {
15124
14123
  localeError: error33()
15125
14124
  };
15126
14125
  }
15127
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/pt.js
14126
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pt.js
15128
14127
  var error34 = () => {
15129
14128
  const Sizable = {
15130
14129
  string: { unit: "caracteres", verb: "ter" },
@@ -15232,7 +14231,7 @@ function pt_default() {
15232
14231
  localeError: error34()
15233
14232
  };
15234
14233
  }
15235
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ru.js
14234
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ru.js
15236
14235
  function getRussianPlural(count, one, few, many) {
15237
14236
  const absCount = Math.abs(count);
15238
14237
  const lastDigit = absCount % 10;
@@ -15388,7 +14387,7 @@ function ru_default() {
15388
14387
  localeError: error35()
15389
14388
  };
15390
14389
  }
15391
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sl.js
14390
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sl.js
15392
14391
  var error36 = () => {
15393
14392
  const Sizable = {
15394
14393
  string: { unit: "znakov", verb: "imeti" },
@@ -15497,7 +14496,7 @@ function sl_default() {
15497
14496
  localeError: error36()
15498
14497
  };
15499
14498
  }
15500
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/sv.js
14499
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sv.js
15501
14500
  var error37 = () => {
15502
14501
  const Sizable = {
15503
14502
  string: { unit: "tecken", verb: "att ha" },
@@ -15607,7 +14606,7 @@ function sv_default() {
15607
14606
  localeError: error37()
15608
14607
  };
15609
14608
  }
15610
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ta.js
14609
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ta.js
15611
14610
  var error38 = () => {
15612
14611
  const Sizable = {
15613
14612
  string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
@@ -15717,7 +14716,7 @@ function ta_default() {
15717
14716
  localeError: error38()
15718
14717
  };
15719
14718
  }
15720
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/th.js
14719
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/th.js
15721
14720
  var error39 = () => {
15722
14721
  const Sizable = {
15723
14722
  string: { unit: "ตัวอักษร", verb: "ควรมี" },
@@ -15827,7 +14826,7 @@ function th_default() {
15827
14826
  localeError: error39()
15828
14827
  };
15829
14828
  }
15830
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/tr.js
14829
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/tr.js
15831
14830
  var error40 = () => {
15832
14831
  const Sizable = {
15833
14832
  string: { unit: "karakter", verb: "olmalı" },
@@ -15932,7 +14931,7 @@ function tr_default() {
15932
14931
  localeError: error40()
15933
14932
  };
15934
14933
  }
15935
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uk.js
14934
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uk.js
15936
14935
  var error41 = () => {
15937
14936
  const Sizable = {
15938
14937
  string: { unit: "символів", verb: "матиме" },
@@ -16041,11 +15040,11 @@ function uk_default() {
16041
15040
  };
16042
15041
  }
16043
15042
 
16044
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ua.js
15043
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ua.js
16045
15044
  function ua_default() {
16046
15045
  return uk_default();
16047
15046
  }
16048
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/ur.js
15047
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ur.js
16049
15048
  var error42 = () => {
16050
15049
  const Sizable = {
16051
15050
  string: { unit: "حروف", verb: "ہونا" },
@@ -16155,7 +15154,7 @@ function ur_default() {
16155
15154
  localeError: error42()
16156
15155
  };
16157
15156
  }
16158
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/uz.js
15157
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uz.js
16159
15158
  var error43 = () => {
16160
15159
  const Sizable = {
16161
15160
  string: { unit: "belgi", verb: "bo‘lishi kerak" },
@@ -16264,7 +15263,7 @@ function uz_default() {
16264
15263
  localeError: error43()
16265
15264
  };
16266
15265
  }
16267
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/vi.js
15266
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/vi.js
16268
15267
  var error44 = () => {
16269
15268
  const Sizable = {
16270
15269
  string: { unit: "ký tự", verb: "có" },
@@ -16372,7 +15371,7 @@ function vi_default() {
16372
15371
  localeError: error44()
16373
15372
  };
16374
15373
  }
16375
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
15374
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
16376
15375
  var error45 = () => {
16377
15376
  const Sizable = {
16378
15377
  string: { unit: "字符", verb: "包含" },
@@ -16481,7 +15480,7 @@ function zh_CN_default() {
16481
15480
  localeError: error45()
16482
15481
  };
16483
15482
  }
16484
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
15483
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
16485
15484
  var error46 = () => {
16486
15485
  const Sizable = {
16487
15486
  string: { unit: "字元", verb: "擁有" },
@@ -16588,7 +15587,7 @@ function zh_TW_default() {
16588
15587
  localeError: error46()
16589
15588
  };
16590
15589
  }
16591
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/locales/yo.js
15590
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/yo.js
16592
15591
  var error47 = () => {
16593
15592
  const Sizable = {
16594
15593
  string: { unit: "àmi", verb: "ní" },
@@ -16695,7 +15694,7 @@ function yo_default() {
16695
15694
  localeError: error47()
16696
15695
  };
16697
15696
  }
16698
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
15697
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
16699
15698
  var _a;
16700
15699
  var $output = Symbol("ZodOutput");
16701
15700
  var $input = Symbol("ZodInput");
@@ -16745,7 +15744,7 @@ function registry() {
16745
15744
  }
16746
15745
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
16747
15746
  var globalRegistry = globalThis.__zod_globalRegistry;
16748
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
15747
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
16749
15748
  function _string(Class2, params) {
16750
15749
  return new Class2({
16751
15750
  type: "string",
@@ -17351,10 +16350,10 @@ function _toUpperCase() {
17351
16350
  function _slugify() {
17352
16351
  return _overwrite((input) => slugify(input));
17353
16352
  }
17354
- function _array(Class2, element2, params) {
16353
+ function _array(Class2, element, params) {
17355
16354
  return new Class2({
17356
16355
  type: "array",
17357
- element: element2,
16356
+ element,
17358
16357
  ...normalizeParams(params)
17359
16358
  });
17360
16359
  }
@@ -17665,7 +16664,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
17665
16664
  const inst = new Class2(def2);
17666
16665
  return inst;
17667
16666
  }
17668
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
16667
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
17669
16668
  function initializeContext(params) {
17670
16669
  let target = params?.target ?? "draft-2020-12";
17671
16670
  if (target === "draft-4")
@@ -17785,8 +16784,8 @@ function extractDefs(ctx, schema) {
17785
16784
  if (defId)
17786
16785
  seen.defId = defId;
17787
16786
  const schema2 = seen.schema;
17788
- for (const key2 in schema2) {
17789
- delete schema2[key2];
16787
+ for (const key in schema2) {
16788
+ delete schema2[key];
17790
16789
  }
17791
16790
  schema2.$ref = ref;
17792
16791
  };
@@ -17853,20 +16852,20 @@ function finalize(ctx, schema) {
17853
16852
  Object.assign(schema2, _cached);
17854
16853
  const isParentRef = zodSchema._zod.parent === ref;
17855
16854
  if (isParentRef) {
17856
- for (const key2 in schema2) {
17857
- if (key2 === "$ref" || key2 === "allOf")
16855
+ for (const key in schema2) {
16856
+ if (key === "$ref" || key === "allOf")
17858
16857
  continue;
17859
- if (!(key2 in _cached)) {
17860
- delete schema2[key2];
16858
+ if (!(key in _cached)) {
16859
+ delete schema2[key];
17861
16860
  }
17862
16861
  }
17863
16862
  }
17864
16863
  if (refSchema.$ref && refSeen.def) {
17865
- for (const key2 in schema2) {
17866
- if (key2 === "$ref" || key2 === "allOf")
16864
+ for (const key in schema2) {
16865
+ if (key === "$ref" || key === "allOf")
17867
16866
  continue;
17868
- if (key2 in refSeen.def && JSON.stringify(schema2[key2]) === JSON.stringify(refSeen.def[key2])) {
17869
- delete schema2[key2];
16867
+ if (key in refSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(refSeen.def[key])) {
16868
+ delete schema2[key];
17870
16869
  }
17871
16870
  }
17872
16871
  }
@@ -17878,11 +16877,11 @@ function finalize(ctx, schema) {
17878
16877
  if (parentSeen?.schema.$ref) {
17879
16878
  schema2.$ref = parentSeen.schema.$ref;
17880
16879
  if (parentSeen.def) {
17881
- for (const key2 in schema2) {
17882
- if (key2 === "$ref" || key2 === "allOf")
16880
+ for (const key in schema2) {
16881
+ if (key === "$ref" || key === "allOf")
17883
16882
  continue;
17884
- if (key2 in parentSeen.def && JSON.stringify(schema2[key2]) === JSON.stringify(parentSeen.def[key2])) {
17885
- delete schema2[key2];
16883
+ if (key in parentSeen.def && JSON.stringify(schema2[key]) === JSON.stringify(parentSeen.def[key])) {
16884
+ delete schema2[key];
17886
16885
  }
17887
16886
  }
17888
16887
  }
@@ -17973,8 +16972,8 @@ function isTransforming(_schema, _ctx) {
17973
16972
  return isTransforming(def2.in, ctx) || isTransforming(def2.out, ctx);
17974
16973
  }
17975
16974
  if (def2.type === "object") {
17976
- for (const key2 in def2.shape) {
17977
- if (isTransforming(def2.shape[key2], ctx))
16975
+ for (const key in def2.shape) {
16976
+ if (isTransforming(def2.shape[key], ctx))
17978
16977
  return true;
17979
16978
  }
17980
16979
  return false;
@@ -18010,7 +17009,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
18010
17009
  extractDefs(ctx, schema);
18011
17010
  return finalize(ctx, schema);
18012
17011
  };
18013
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
17012
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
18014
17013
  var formatMap = {
18015
17014
  guid: "uuid",
18016
17015
  url: "uri",
@@ -18265,15 +17264,15 @@ var objectProcessor = (schema, ctx, _json, params) => {
18265
17264
  json.type = "object";
18266
17265
  json.properties = {};
18267
17266
  const shape = def2.shape;
18268
- for (const key2 in shape) {
18269
- json.properties[key2] = process(shape[key2], ctx, {
17267
+ for (const key in shape) {
17268
+ json.properties[key] = process(shape[key], ctx, {
18270
17269
  ...params,
18271
- path: [...params.path, "properties", key2]
17270
+ path: [...params.path, "properties", key]
18272
17271
  });
18273
17272
  }
18274
17273
  const allKeys = new Set(Object.keys(shape));
18275
- const requiredKeys = new Set([...allKeys].filter((key2) => {
18276
- const v = def2.shape[key2]._zod;
17274
+ const requiredKeys = new Set([...allKeys].filter((key) => {
17275
+ const v = def2.shape[key]._zod;
18277
17276
  if (ctx.io === "input") {
18278
17277
  return v.optin === undefined;
18279
17278
  } else {
@@ -18538,9 +17537,9 @@ function toJSONSchema(input, params) {
18538
17537
  };
18539
17538
  ctx2.external = external;
18540
17539
  for (const entry of registry2._idmap.entries()) {
18541
- const [key2, schema] = entry;
17540
+ const [key, schema] = entry;
18542
17541
  extractDefs(ctx2, schema);
18543
- schemas[key2] = finalize(ctx2, schema);
17542
+ schemas[key] = finalize(ctx2, schema);
18544
17543
  }
18545
17544
  if (Object.keys(defs).length > 0) {
18546
17545
  const defsSegment = ctx2.target === "draft-2020-12" ? "$defs" : "definitions";
@@ -18555,7 +17554,7 @@ function toJSONSchema(input, params) {
18555
17554
  extractDefs(ctx, input);
18556
17555
  return finalize(ctx, input);
18557
17556
  }
18558
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
17557
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
18559
17558
  class JSONSchemaGenerator {
18560
17559
  get metadataRegistry() {
18561
17560
  return this.ctx.metadataRegistry;
@@ -18614,9 +17613,9 @@ class JSONSchemaGenerator {
18614
17613
  return plainResult;
18615
17614
  }
18616
17615
  }
18617
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
17616
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
18618
17617
  var exports_json_schema = {};
18619
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
17618
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
18620
17619
  var exports_schemas2 = {};
18621
17620
  __export(exports_schemas2, {
18622
17621
  xor: () => xor,
@@ -18684,7 +17683,7 @@ __export(exports_schemas2, {
18684
17683
  httpUrl: () => httpUrl,
18685
17684
  hostname: () => hostname2,
18686
17685
  hex: () => hex2,
18687
- hash: () => hash2,
17686
+ hash: () => hash,
18688
17687
  guid: () => guid2,
18689
17688
  function: () => _function,
18690
17689
  float64: () => float64,
@@ -18785,7 +17784,7 @@ __export(exports_schemas2, {
18785
17784
  ZodAny: () => ZodAny
18786
17785
  });
18787
17786
 
18788
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/checks.js
17787
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
18789
17788
  var exports_checks2 = {};
18790
17789
  __export(exports_checks2, {
18791
17790
  uppercase: () => _uppercase,
@@ -18819,7 +17818,7 @@ __export(exports_checks2, {
18819
17818
  endsWith: () => _endsWith
18820
17819
  });
18821
17820
 
18822
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
17821
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
18823
17822
  var exports_iso = {};
18824
17823
  __export(exports_iso, {
18825
17824
  time: () => time2,
@@ -18860,7 +17859,7 @@ function duration2(params) {
18860
17859
  return _isoDuration(ZodISODuration, params);
18861
17860
  }
18862
17861
 
18863
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
17862
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
18864
17863
  var initializer2 = (inst, issues) => {
18865
17864
  $ZodError.init(inst, issues);
18866
17865
  inst.name = "ZodError";
@@ -18895,7 +17894,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
18895
17894
  Parent: Error
18896
17895
  });
18897
17896
 
18898
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
17897
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
18899
17898
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
18900
17899
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
18901
17900
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -18909,7 +17908,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
18909
17908
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
18910
17909
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
18911
17910
 
18912
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
17911
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
18913
17912
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def2) => {
18914
17913
  $ZodType.init(inst, def2);
18915
17914
  Object.assign(inst["~standard"], {
@@ -19224,7 +18223,7 @@ function hostname2(_params) {
19224
18223
  function hex2(_params) {
19225
18224
  return _stringFormat(ZodCustomStringFormat, "hex", exports_regexes.hex, _params);
19226
18225
  }
19227
- function hash2(alg, params) {
18226
+ function hash(alg, params) {
19228
18227
  const enc = params?.enc ?? "hex";
19229
18228
  const format = `${alg}_${enc}`;
19230
18229
  const regex = exports_regexes[format];
@@ -19403,8 +18402,8 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def2) => {
19403
18402
  inst.length = (len, params) => inst.check(_length(len, params));
19404
18403
  inst.unwrap = () => inst.element;
19405
18404
  });
19406
- function array(element2, params) {
19407
- return _array(ZodArray, element2, params);
18405
+ function array(element, params) {
18406
+ return _array(ZodArray, element, params);
19408
18407
  }
19409
18408
  function keyof(schema) {
19410
18409
  const shape = schema._zod.def.shape;
@@ -19985,7 +18984,7 @@ function json(params) {
19985
18984
  function preprocess(fn, schema) {
19986
18985
  return pipe(transform(fn), schema);
19987
18986
  }
19988
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
18987
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
19989
18988
  var ZodIssueCode = {
19990
18989
  invalid_type: "invalid_type",
19991
18990
  too_big: "too_big",
@@ -20009,7 +19008,7 @@ function getErrorMap() {
20009
19008
  }
20010
19009
  var ZodFirstPartyTypeKind;
20011
19010
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
20012
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
19011
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
20013
19012
  var z = {
20014
19013
  ...exports_schemas2,
20015
19014
  ...exports_checks2,
@@ -20097,11 +19096,11 @@ function resolveRef(ref, ctx) {
20097
19096
  }
20098
19097
  const defsKey = ctx.version === "draft-2020-12" ? "$defs" : "definitions";
20099
19098
  if (path[0] === defsKey) {
20100
- const key2 = path[1];
20101
- if (!key2 || !ctx.defs[key2]) {
19099
+ const key = path[1];
19100
+ if (!key || !ctx.defs[key]) {
20102
19101
  throw new Error(`Reference not found: ${ref}`);
20103
19102
  }
20104
- return ctx.defs[key2];
19103
+ return ctx.defs[key];
20105
19104
  }
20106
19105
  throw new Error(`Reference not found: ${ref}`);
20107
19106
  }
@@ -20287,9 +19286,9 @@ function convertBaseSchema(schema, ctx) {
20287
19286
  const shape = {};
20288
19287
  const properties = schema.properties || {};
20289
19288
  const requiredSet = new Set(schema.required || []);
20290
- for (const [key2, propSchema] of Object.entries(properties)) {
19289
+ for (const [key, propSchema] of Object.entries(properties)) {
20291
19290
  const propZodSchema = convertSchema(propSchema, ctx);
20292
- shape[key2] = requiredSet.has(key2) ? propZodSchema : propZodSchema.optional();
19291
+ shape[key] = requiredSet.has(key) ? propZodSchema : propZodSchema.optional();
20293
19292
  }
20294
19293
  if (schema.propertyNames) {
20295
19294
  const keySchema = convertSchema(schema.propertyNames, ctx);
@@ -20372,8 +19371,8 @@ function convertBaseSchema(schema, ctx) {
20372
19371
  zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
20373
19372
  }
20374
19373
  } else if (items !== undefined) {
20375
- const element2 = convertSchema(items, ctx);
20376
- let arraySchema = z.array(element2);
19374
+ const element = convertSchema(items, ctx);
19375
+ let arraySchema = z.array(element);
20377
19376
  if (typeof schema.minItems === "number") {
20378
19377
  arraySchema = arraySchema.min(schema.minItems);
20379
19378
  }
@@ -20433,20 +19432,20 @@ function convertSchema(schema, ctx) {
20433
19432
  }
20434
19433
  const extraMeta = {};
20435
19434
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
20436
- for (const key2 of coreMetadataKeys) {
20437
- if (key2 in schema) {
20438
- extraMeta[key2] = schema[key2];
19435
+ for (const key of coreMetadataKeys) {
19436
+ if (key in schema) {
19437
+ extraMeta[key] = schema[key];
20439
19438
  }
20440
19439
  }
20441
19440
  const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
20442
- for (const key2 of contentMetadataKeys) {
20443
- if (key2 in schema) {
20444
- extraMeta[key2] = schema[key2];
19441
+ for (const key of contentMetadataKeys) {
19442
+ if (key in schema) {
19443
+ extraMeta[key] = schema[key];
20445
19444
  }
20446
19445
  }
20447
- for (const key2 of Object.keys(schema)) {
20448
- if (!RECOGNIZED_KEYS.has(key2)) {
20449
- extraMeta[key2] = schema[key2];
19446
+ for (const key of Object.keys(schema)) {
19447
+ if (!RECOGNIZED_KEYS.has(key)) {
19448
+ extraMeta[key] = schema[key];
20450
19449
  }
20451
19450
  }
20452
19451
  if (Object.keys(extraMeta).length > 0) {
@@ -20470,7 +19469,7 @@ function fromJSONSchema(schema, params) {
20470
19469
  };
20471
19470
  return convertSchema(schema, ctx);
20472
19471
  }
20473
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
19472
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
20474
19473
  var exports_coerce = {};
20475
19474
  __export(exports_coerce, {
20476
19475
  string: () => string3,
@@ -20495,7 +19494,7 @@ function date4(params) {
20495
19494
  return _coercedDate(ZodDate, params);
20496
19495
  }
20497
19496
 
20498
- // node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/external.js
19497
+ // node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
20499
19498
  config(en_default());
20500
19499
  // src/lib/client/schemas/search-reference-schema.ts
20501
19500
  var metadataValueSchema = exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean(), exports_external.array(exports_external.string()), exports_external.array(exports_external.number()), exports_external.array(exports_external.boolean())]);
@@ -21124,17 +20123,7 @@ var chatConfigSchema = completeChatConfigSchema.partial();
21124
20123
  var chatConfigSchemaWithLegacyThemeName = exports_external.intersection(chatConfigSchema, exports_external.object({
21125
20124
  theme: exports_external.object({ name: exports_external.string().optional() }).optional()
21126
20125
  }));
21127
-
21128
- // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/stringify.js
21129
- var byteToHex = [];
21130
- for (let i = 0;i < 256; ++i) {
21131
- byteToHex.push((i + 256).toString(16).slice(1));
21132
- }
21133
- function unsafeStringify(arr, offset = 0) {
21134
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
21135
- }
21136
-
21137
- // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/rng.js
20126
+ // node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/rng.js
21138
20127
  var getRandomValues;
21139
20128
  var rnds8 = new Uint8Array(16);
21140
20129
  function rng() {
@@ -21147,26 +20136,35 @@ function rng() {
21147
20136
  return getRandomValues(rnds8);
21148
20137
  }
21149
20138
 
21150
- // node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v7.js
20139
+ // node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/stringify.js
20140
+ var byteToHex = [];
20141
+ for (let i = 0;i < 256; ++i) {
20142
+ byteToHex.push((i + 256).toString(16).slice(1));
20143
+ }
20144
+ function unsafeStringify(arr, offset = 0) {
20145
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
20146
+ }
20147
+
20148
+ // node_modules/.bun/uuid@13.0.0/node_modules/uuid/dist/v7.js
21151
20149
  var _state = {};
21152
20150
  function v7(options2, buf, offset) {
21153
20151
  let bytes;
21154
20152
  if (options2) {
21155
20153
  bytes = v7Bytes(options2.random ?? options2.rng?.() ?? rng(), options2.msecs, options2.seq, buf, offset);
21156
20154
  } else {
21157
- const now2 = Date.now();
20155
+ const now = Date.now();
21158
20156
  const rnds = rng();
21159
- updateV7State(_state, now2, rnds);
20157
+ updateV7State(_state, now, rnds);
21160
20158
  bytes = v7Bytes(rnds, _state.msecs, _state.seq, buf, offset);
21161
20159
  }
21162
20160
  return buf ?? unsafeStringify(bytes);
21163
20161
  }
21164
- function updateV7State(state2, now2, rnds) {
20162
+ function updateV7State(state2, now, rnds) {
21165
20163
  state2.msecs ??= -Infinity;
21166
20164
  state2.seq ??= 0;
21167
- if (now2 > state2.msecs) {
20165
+ if (now > state2.msecs) {
21168
20166
  state2.seq = rnds[6] << 23 | rnds[7] << 16 | rnds[8] << 8 | rnds[9];
21169
- state2.msecs = now2;
20167
+ state2.msecs = now;
21170
20168
  } else {
21171
20169
  state2.seq = state2.seq + 1 | 0;
21172
20170
  if (state2.seq === 0) {
@@ -21218,17 +20216,17 @@ class ServerStorage {
21218
20216
  clear() {
21219
20217
  storage.clear();
21220
20218
  }
21221
- getItem(key2) {
21222
- return storage.get(key2) || null;
20219
+ getItem(key) {
20220
+ return storage.get(key) || null;
21223
20221
  }
21224
- key(index2) {
21225
- return Array.from(storage.keys())[index2] || null;
20222
+ key(index) {
20223
+ return Array.from(storage.keys())[index] || null;
21226
20224
  }
21227
- removeItem(key2) {
21228
- storage.delete(key2);
20225
+ removeItem(key) {
20226
+ storage.delete(key);
21229
20227
  }
21230
- setItem(key2, value) {
21231
- storage.set(key2, String(value));
20228
+ setItem(key, value) {
20229
+ storage.set(key, String(value));
21232
20230
  }
21233
20231
  }
21234
20232
  var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
@@ -21237,7 +20235,7 @@ var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
21237
20235
  var getUserData = async (restClient) => {
21238
20236
  try {
21239
20237
  const userId = agnosticStorage.getItem("liipgpt:uID") || agnosticStorage.getItem("uID");
21240
- const init2 = {
20238
+ const init = {
21241
20239
  method: "POST",
21242
20240
  headers: {
21243
20241
  Accept: "application/json",
@@ -21248,9 +20246,9 @@ var getUserData = async (restClient) => {
21248
20246
  uID: userId
21249
20247
  })
21250
20248
  };
21251
- const response = await restClient.fetchData("/login", userDataResponseSchema, {}, init2).catch((e) => {
20249
+ const response = await restClient.fetchData("/login", userDataResponseSchema, {}, init).catch((e) => {
21252
20250
  console.log("Failed to /login use /log", e);
21253
- return restClient.fetchData("/log", userDataResponseSchema, {}, init2);
20251
+ return restClient.fetchData("/log", userDataResponseSchema, {}, init);
21254
20252
  });
21255
20253
  if ("maintenance" in response && response.maintenance) {
21256
20254
  return { mode: "maintenance" };
@@ -21269,7 +20267,7 @@ var getUserData = async (restClient) => {
21269
20267
  }
21270
20268
  };
21271
20269
 
21272
- // node_modules/.pnpm/sse.js@2.8.0/node_modules/sse.js/lib/sse.js
20270
+ // node_modules/.bun/sse.js@2.8.0/node_modules/sse.js/lib/sse.js
21273
20271
  var SSE = function(url2, options2) {
21274
20272
  if (!(this instanceof SSE)) {
21275
20273
  return new SSE(url2, options2);
@@ -21308,9 +20306,9 @@ var SSE = function(url2, options2) {
21308
20306
  return;
21309
20307
  }
21310
20308
  const filtered = [];
21311
- this.listeners[type].forEach(function(element2) {
21312
- if (element2 !== listener) {
21313
- filtered.push(element2);
20309
+ this.listeners[type].forEach(function(element) {
20310
+ if (element !== listener) {
20311
+ filtered.push(element);
21314
20312
  }
21315
20313
  });
21316
20314
  if (filtered.length === 0) {
@@ -21370,16 +20368,16 @@ var SSE = function(url2, options2) {
21370
20368
  }
21371
20369
  };
21372
20370
  this._setReadyState = function(state2) {
21373
- const event2 = new CustomEvent("readystatechange");
21374
- event2.readyState = state2;
20371
+ const event = new CustomEvent("readystatechange");
20372
+ event.readyState = state2;
21375
20373
  this.readyState = state2;
21376
- this.dispatchEvent(event2);
20374
+ this.dispatchEvent(event);
21377
20375
  };
21378
20376
  this._onStreamFailure = function(e) {
21379
- const event2 = new CustomEvent("error");
21380
- event2.responseCode = e.currentTarget.status;
21381
- event2.data = e.currentTarget.response;
21382
- this.dispatchEvent(event2);
20377
+ const event = new CustomEvent("error");
20378
+ event.responseCode = e.currentTarget.status;
20379
+ event.data = e.currentTarget.response;
20380
+ this.dispatchEvent(event);
21383
20381
  this._markClosed();
21384
20382
  };
21385
20383
  this._onStreamAbort = function() {
@@ -21427,13 +20425,13 @@ var SSE = function(url2, options2) {
21427
20425
  }
21428
20426
  const e = { id: null, retry: null, data: null, event: null };
21429
20427
  chunk.split(/\n|\r\n|\r/).forEach(function(line) {
21430
- const index2 = line.indexOf(this.FIELD_SEPARATOR);
20428
+ const index = line.indexOf(this.FIELD_SEPARATOR);
21431
20429
  let field, value;
21432
- if (index2 > 0) {
21433
- const skip = line[index2 + 1] === " " ? 2 : 1;
21434
- field = line.substring(0, index2);
21435
- value = line.substring(index2 + skip);
21436
- } else if (index2 < 0) {
20430
+ if (index > 0) {
20431
+ const skip = line[index + 1] === " " ? 2 : 1;
20432
+ field = line.substring(0, index);
20433
+ value = line.substring(index + skip);
20434
+ } else if (index < 0) {
21437
20435
  field = line;
21438
20436
  value = "";
21439
20437
  } else {
@@ -21458,11 +20456,11 @@ var SSE = function(url2, options2) {
21458
20456
  if (e.data === null) {
21459
20457
  return null;
21460
20458
  }
21461
- const event2 = new CustomEvent(e.event || "message");
21462
- event2.id = e.id;
21463
- event2.data = e.data || "";
21464
- event2.lastEventId = this.lastEventId;
21465
- return event2;
20459
+ const event = new CustomEvent(e.event || "message");
20460
+ event.id = e.id;
20461
+ event.data = e.data || "";
20462
+ event.lastEventId = this.lastEventId;
20463
+ return event;
21466
20464
  };
21467
20465
  this._onReadyStateChange = function() {
21468
20466
  if (!this.xhr) {
@@ -21473,15 +20471,15 @@ var SSE = function(url2, options2) {
21473
20471
  const headerPairs = this.xhr.getAllResponseHeaders().trim().split(`\r
21474
20472
  `);
21475
20473
  for (const headerPair of headerPairs) {
21476
- const [key2, ...valueParts] = headerPair.split(":");
20474
+ const [key, ...valueParts] = headerPair.split(":");
21477
20475
  const value = valueParts.join(":").trim();
21478
- headers[key2.trim().toLowerCase()] = headers[key2.trim().toLowerCase()] || [];
21479
- headers[key2.trim().toLowerCase()].push(value);
20476
+ headers[key.trim().toLowerCase()] = headers[key.trim().toLowerCase()] || [];
20477
+ headers[key.trim().toLowerCase()].push(value);
21480
20478
  }
21481
- const event2 = new CustomEvent("open");
21482
- event2.responseCode = this.xhr.status;
21483
- event2.headers = headers;
21484
- this.dispatchEvent(event2);
20479
+ const event = new CustomEvent("open");
20480
+ event.responseCode = this.xhr.status;
20481
+ event.headers = headers;
20482
+ this.dispatchEvent(event);
21485
20483
  this._setReadyState(SSE.OPEN);
21486
20484
  }
21487
20485
  };
@@ -21542,16 +20540,16 @@ class SseSubscription {
21542
20540
  sseoptions.headers["api-key"] = options2.apiKey;
21543
20541
  }
21544
20542
  this.eventSource = new (options2.EventSource ?? SSE)(url2, sseoptions);
21545
- this.eventSource.onmessage = (event2) => {
20543
+ this.eventSource.onmessage = (event) => {
21546
20544
  try {
21547
- const data = JSON.parse(event2.data);
20545
+ const data = JSON.parse(event.data);
21548
20546
  options2.onMessage(data);
21549
20547
  } catch (error48) {
21550
20548
  options2.onError(new CustomEvent("parse-error", { detail: error48 }));
21551
20549
  }
21552
20550
  };
21553
- this.eventSource.onerror = (event2) => {
21554
- options2.onError(event2);
20551
+ this.eventSource.onerror = (event) => {
20552
+ options2.onError(event);
21555
20553
  if (this.isClosed()) {
21556
20554
  this.close();
21557
20555
  }
@@ -21712,8 +20710,8 @@ class ChatResponse {
21712
20710
  await this.chatResponseData.readyForFeedback.toPromise();
21713
20711
  return true;
21714
20712
  }
21715
- subscribe(run3, invalidate) {
21716
- return this.chatResponseData.readableStore.subscribe(run3, invalidate);
20713
+ subscribe(run, invalidate) {
20714
+ return this.chatResponseData.readableStore.subscribe(run, invalidate);
21717
20715
  }
21718
20716
  getContent() {
21719
20717
  return this.chatResponseData.content.toPromise();
@@ -21769,8 +20767,8 @@ class LiipGPTClientPrimitive {
21769
20767
  setMarkedExtensions(...extensions) {
21770
20768
  this.markedExtensions = extensions;
21771
20769
  }
21772
- setNewTabSrText(text3) {
21773
- this._newTabSrText = text3;
20770
+ setNewTabSrText(text2) {
20771
+ this._newTabSrText = text2;
21774
20772
  }
21775
20773
  getMetadata() {
21776
20774
  return this.internalData.metadata;
@@ -21869,9 +20867,9 @@ class LiipGPTClientPrimitive {
21869
20867
  }
21870
20868
  options2.onMessage?.(data);
21871
20869
  },
21872
- onError: (event2) => {
21873
- console.error(" sse-error:", event2);
21874
- if ("data" in event2 && !event2.data && "responseCode" in event2 && event2.responseCode === 0) {
20870
+ onError: (event) => {
20871
+ console.error(" sse-error:", event);
20872
+ if ("data" in event && !event.data && "responseCode" in event && event.responseCode === 0) {
21875
20873
  return;
21876
20874
  }
21877
20875
  chatResultBuilder.pushError("sse-error");