@workflow/web 4.1.0-beta.46 → 4.1.0-beta.47

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 (24) hide show
  1. package/build/client/assets/{entry.client-BjpmGyLC.js → entry.client-BiVEcoV8.js} +1 -1
  2. package/build/client/assets/{highlighted-body-B3W2YXNL-CCnn-bn-.js → highlighted-body-B3W2YXNL-B2Qjtd6a.js} +1 -1
  3. package/build/client/assets/{home-ClC-EMyL.js → home-3vHAnkef.js} +1 -1
  4. package/build/client/assets/{index-DklpUtP3.js → index-BmZS3y7B.js} +13 -13
  5. package/build/client/assets/manifest-54e6ae64.js +1 -0
  6. package/build/client/assets/{mermaid-3ZIDBTTL-D95wSBpg.js → mermaid-3ZIDBTTL-BFtRJrXs.js} +3 -3
  7. package/build/client/assets/root-Qfp_mn5S.js +26 -0
  8. package/build/client/assets/root-aMfmV5uh.css +1 -0
  9. package/build/client/assets/{run-detail-Brs1Rm25.js → run-detail-DTTdMaKq.js} +1 -1
  10. package/build/client/assets/server-build-CiTtikBY.css +1 -0
  11. package/build/client/assets/{workflow-graph-viewer-BZlGoIt2.js → workflow-graph-viewer-kC8rw29h.js} +1 -1
  12. package/build/server/assets/{app-oogZ8ZwV.js → app-CnRXtjrV.js} +33 -8
  13. package/build/server/assets/{highlighted-body-B3W2YXNL-z6TbPMtP.js → highlighted-body-B3W2YXNL-Dbvlczoc.js} +2 -2
  14. package/build/server/assets/{index-BL4Kw0eA.js → index-DymBv9ds.js} +10 -9
  15. package/build/server/assets/{mermaid-3ZIDBTTL-XSKOerl0.js → mermaid-3ZIDBTTL-DL0Nr5XO.js} +2 -2
  16. package/build/server/assets/{server-build-BnrnOzxz.js → server-build-VXKZr6Mi.js} +2264 -229
  17. package/build/server/assets/{token-Ct_osLcf.js → token-BV_eEV9j.js} +2 -2
  18. package/build/server/assets/{token-util-DQ6afx9q.js → token-util-ClsVcJbP.js} +2 -2
  19. package/build/server/index.js +2 -2
  20. package/package.json +6 -6
  21. package/build/client/assets/manifest-7a6ad03e.js +0 -1
  22. package/build/client/assets/root-Dae_xV-y.js +0 -26
  23. package/build/client/assets/root-DtrAdcW8.css +0 -1
  24. package/build/client/assets/server-build-8B6V768r.css +0 -1
@@ -14,7 +14,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
14
14
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
15
15
  var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
16
16
  var _a2, _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn, _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn, _reader;
17
- import { a as requireReact, S as ServerRouter, c as createReadableStreamFromReadable, r as reactExports, g as getDefaultExportFromCjs, R as React, b as ReactExports, w as withComponentProps, M as Meta, L as Links, d as ScrollRestoration, e as Scripts, O as Outlet, u as useNavigate, f as useSearchParams, h as Link$1, i as useLocation, j as useParams } from "./app-oogZ8ZwV.js";
17
+ import { a as requireReact, S as ServerRouter, c as createReadableStreamFromReadable, r as reactExports, g as getDefaultExportFromCjs, R as React, b as ReactExports, w as withComponentProps, d as withErrorBoundaryProps, M as Meta, L as Links, e as ScrollRestoration, f as Scripts, O as Outlet, u as useNavigate, h as useSearchParams, i as Link$1, j as useRouteError, k as isRouteErrorResponse, l as useLocation, m as useParams } from "./app-CnRXtjrV.js";
18
18
  import require$$0$4, { PassThrough } from "node:stream";
19
19
  import require$$0 from "util";
20
20
  import require$$1 from "crypto";
@@ -24,7 +24,7 @@ import minproc from "node:process";
24
24
  import path$3, { join as join$1, resolve, dirname, isAbsolute, sep as sep$1 } from "node:path";
25
25
  import { fileURLToPath } from "node:url";
26
26
  import { createRequire } from "module";
27
- import fs$1, { readdir, readlink, readFile, mkdir, access, constants as constants$5, writeFile, unlink, rm } from "node:fs/promises";
27
+ import fs$1, { readdir, readlink, readFile, mkdir, access, constants as constants$6, writeFile, unlink, rm } from "node:fs/promises";
28
28
  import crypto, { createHash, webcrypto } from "node:crypto";
29
29
  import require$$1$1 from "tty";
30
30
  import require$$0$1 from "os";
@@ -30696,7 +30696,7 @@ function ErrorCard({ title, className, details = "Unknown error" }) {
30696
30696
  color: "var(--ds-red-900)"
30697
30697
  }, children: details }) })] }) });
30698
30698
  }
30699
- class ErrorBoundary extends reactExports.Component {
30699
+ let ErrorBoundary$1 = class ErrorBoundary extends reactExports.Component {
30700
30700
  constructor(props) {
30701
30701
  super(props);
30702
30702
  this.state = { hasError: false, error: null };
@@ -30727,7 +30727,7 @@ ${err.stack}` : (err == null ? void 0 : err.message) ?? "Unknown error";
30727
30727
  }
30728
30728
  return this.props.children;
30729
30729
  }
30730
- }
30730
+ };
30731
30731
  const ve$2 = 0, At$1 = 1, Jt$1 = 2, zn = 4;
30732
30732
  function un$1(t) {
30733
30733
  return () => t;
@@ -33496,7 +33496,7 @@ const bn$1 = {
33496
33496
  offsetBottom: 0,
33497
33497
  offsetTop: 0,
33498
33498
  top: 0
33499
- }, { ceil: Rn$1, floor: we$1, max: re$3, min: Oe$1, round: Hn$1 } = Math;
33499
+ }, { ceil: Rn$1, floor: we$1, max: re$4, min: Oe$1, round: Hn$1 } = Math;
33500
33500
  function En$1(t, e, n) {
33501
33501
  return Array.from({ length: e - t + 1 }).map((o, r2) => ({ data: n === null ? null : n[r2 + t], index: r2 + t }));
33502
33502
  }
@@ -33621,7 +33621,7 @@ const Fr = /* @__PURE__ */ K$3(
33621
33621
  }
33622
33622
  const ge2 = io$1(nn2, He2, nt2);
33623
33623
  let Yt2, Nt2;
33624
- lt2 ? q2 === 0 && at2 === 0 && mt2 > 0 ? (Yt2 = 0, Nt2 = mt2 - 1) : (Yt2 = ge2 * we$1((q2 + vt2) / (ct2 + vt2)), Nt2 = ge2 * Rn$1((at2 + vt2) / (ct2 + vt2)) - 1, Nt2 = Oe$1(H2 - 1, re$3(Nt2, ge2 - 1)), Yt2 = Oe$1(Nt2, re$3(0, Yt2))) : (Yt2 = 0, Nt2 = -1);
33624
+ lt2 ? q2 === 0 && at2 === 0 && mt2 > 0 ? (Yt2 = 0, Nt2 = mt2 - 1) : (Yt2 = ge2 * we$1((q2 + vt2) / (ct2 + vt2)), Nt2 = ge2 * Rn$1((at2 + vt2) / (ct2 + vt2)) - 1, Nt2 = Oe$1(H2 - 1, re$4(Nt2, ge2 - 1)), Yt2 = Oe$1(Nt2, re$4(0, Yt2))) : (Yt2 = 0, Nt2 = -1);
33625
33625
  const on2 = En$1(Yt2, Nt2, it2), { bottom: rn2, top: sn2 } = Bn$1(st2, gt, Tt, on2), ln2 = Rn$1(H2 / ge2), co2 = ln2 * ct2 + (ln2 - 1) * vt2 - rn2;
33626
33626
  return { bottom: rn2, itemHeight: ct2, items: on2, itemWidth: He2, offsetBottom: co2, offsetTop: sn2, top: sn2 };
33627
33627
  }
@@ -33695,7 +33695,7 @@ const Fr = /* @__PURE__ */ K$3(
33695
33695
  k$2(([H2, q2, at2, gt, Tt]) => {
33696
33696
  const st2 = $n$1(H2), { align: it2, behavior: mt2, offset: lt2 } = st2;
33697
33697
  let Z2 = st2.index;
33698
- Z2 === "LAST" && (Z2 = gt - 1), Z2 = re$3(0, Z2, Oe$1(gt - 1, Z2));
33698
+ Z2 === "LAST" && (Z2 = gt - 1), Z2 = re$4(0, Z2, Oe$1(gt - 1, Z2));
33699
33699
  let nt2 = Me$1(q2, Tt, at2, Z2);
33700
33700
  return it2 === "end" ? nt2 = Hn$1(nt2 - q2.height + at2.height) : it2 === "center" && (nt2 = Hn$1(nt2 - q2.height / 2 + at2.height / 2)), lt2 && (nt2 += lt2), { behavior: mt2, top: nt2 };
33701
33701
  })
@@ -33760,7 +33760,7 @@ const Fr = /* @__PURE__ */ K$3(
33760
33760
  tt$1(je$2, It, he$3, Zn, _t$1, qe$1, Wt$1)
33761
33761
  );
33762
33762
  function io$1(t, e, n) {
33763
- return re$3(1, we$1((t + n) / (we$1(e) + n)));
33763
+ return re$4(1, we$1((t + n) / (we$1(e) + n)));
33764
33764
  }
33765
33765
  function Bn$1(t, e, n, o) {
33766
33766
  const { height: r2 } = n;
@@ -33770,7 +33770,7 @@ function Bn$1(t, e, n, o) {
33770
33770
  return { bottom: Me$1(t, e, n, o[o.length - 1].index) + r2, top: s2 };
33771
33771
  }
33772
33772
  function Me$1(t, e, n, o) {
33773
- const r2 = io$1(t.width, n.width, e.column), s2 = we$1(o / r2), i = s2 * n.height + re$3(0, s2 - 1) * e.row;
33773
+ const r2 = io$1(t.width, n.width, e.column), s2 = we$1(o / r2), i = s2 * n.height + re$4(0, s2 - 1) * e.row;
33774
33774
  return i > 0 ? i + e.row : i;
33775
33775
  }
33776
33776
  const Lr = /* @__PURE__ */ K$3(() => {
@@ -40104,7 +40104,7 @@ const hastToReact = {
40104
40104
  };
40105
40105
  const cap$2 = /[A-Z]/g;
40106
40106
  const dash$1 = /-[a-z]/g;
40107
- const valid$1 = /^data[-\w.:]+$/i;
40107
+ const valid$2 = /^data[-\w.:]+$/i;
40108
40108
  function find$2(schema, value) {
40109
40109
  const normal = normalize$1(value);
40110
40110
  let property = value;
@@ -40112,7 +40112,7 @@ function find$2(schema, value) {
40112
40112
  if (normal in schema.normal) {
40113
40113
  return schema.property[schema.normal[normal]];
40114
40114
  }
40115
- if (normal.length > 4 && normal.slice(0, 4) === "data" && valid$1.test(value)) {
40115
+ if (normal.length > 4 && normal.slice(0, 4) === "data" && valid$2.test(value)) {
40116
40116
  if (value.charAt(4) === "-") {
40117
40117
  const rest = value.slice(5).replace(dash$1, camelcase$1);
40118
40118
  property = "data" + rest.charAt(0).toUpperCase() + rest.slice(1);
@@ -41769,7 +41769,7 @@ const svg$1 = create$1({
41769
41769
  zoomAndPan: null
41770
41770
  }
41771
41771
  });
41772
- const valid = /^data[-\w.:]+$/i;
41772
+ const valid$1 = /^data[-\w.:]+$/i;
41773
41773
  const dash = /-[a-z]/g;
41774
41774
  const cap$1 = /[A-Z]/g;
41775
41775
  function find$1(schema, value) {
@@ -41779,7 +41779,7 @@ function find$1(schema, value) {
41779
41779
  if (normal in schema.normal) {
41780
41780
  return schema.property[schema.normal[normal]];
41781
41781
  }
41782
- if (normal.length > 4 && normal.slice(0, 4) === "data" && valid.test(value)) {
41782
+ if (normal.length > 4 && normal.slice(0, 4) === "data" && valid$1.test(value)) {
41783
41783
  if (value.charAt(4) === "-") {
41784
41784
  const rest = value.slice(5).replace(dash, camelcase);
41785
41785
  prop = "data" + rest.charAt(0).toUpperCase() + rest.slice(1);
@@ -59179,12 +59179,12 @@ function name(name2, options) {
59179
59179
  const re2 = settings.jsx ? nameReJsx : nameRe;
59180
59180
  return re2.test(name2);
59181
59181
  }
59182
- const re$2 = /[ \t\n\f\r]/g;
59182
+ const re$3 = /[ \t\n\f\r]/g;
59183
59183
  function whitespace(thing) {
59184
59184
  return typeof thing === "object" ? thing.type === "text" ? empty$1(thing.value) : false : empty$1(thing);
59185
59185
  }
59186
59186
  function empty$1(value) {
59187
- return value.replace(re$2, "") === "";
59187
+ return value.replace(re$3, "") === "";
59188
59188
  }
59189
59189
  var cjs$1 = {};
59190
59190
  var inlineStyleParser;
@@ -59898,11 +59898,11 @@ function findComponentFromName(state, name$1, allowExpression) {
59898
59898
  if (!allowExpression) {
59899
59899
  result = { type: "Literal", value: name$1 };
59900
59900
  } else if (name$1.includes(".")) {
59901
- const identifiers = name$1.split(".");
59901
+ const identifiers2 = name$1.split(".");
59902
59902
  let index2 = -1;
59903
59903
  let node2;
59904
- while (++index2 < identifiers.length) {
59905
- const prop = name(identifiers[index2]) ? { type: "Identifier", name: identifiers[index2] } : { type: "Literal", value: identifiers[index2] };
59904
+ while (++index2 < identifiers2.length) {
59905
+ const prop = name(identifiers2[index2]) ? { type: "Identifier", name: identifiers2[index2] } : { type: "Literal", value: identifiers2[index2] };
59906
59906
  node2 = node2 ? {
59907
59907
  type: "MemberExpression",
59908
59908
  object: node2,
@@ -63675,7 +63675,7 @@ var Re$1 = (() => {
63675
63675
  } catch {
63676
63676
  return false;
63677
63677
  }
63678
- })(), m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u4) => new RegExp(`^( {0,3}${u4})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}#`), htmlBeginRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}>`) }, Te = /^(?:[ \t]*(?:\n|$))+/, Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, N$1 = / {0,3}(?:[*+-]|\d{1,9}[.)])/, re$1 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, se$1 = k(re$1).replace(/bull/g, N$1).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Pe = k(re$1).replace(/bull/g, N$1).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Q$1 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Se$1 = /^[^\n]+/, F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), _e$1 = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N$1).getRegex(), q$1 = "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", j = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Le = k("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", j).replace("tag", q$1).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ie = k(Q$1).replace("hr", I).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[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q$1).getRegex(), Me = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex(), U = { blockquote: Me, code: Oe, def: $e, fences: we, heading: ye, hr: I, html: Le, lheading: se$1, list: _e$1, newline: Te, paragraph: ie, table: _, text: Se$1 }, te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).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[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q$1).getRegex(), ze$1 = { ...U, lheading: Pe, table: te, paragraph: k(Q$1).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q$1).getRegex() }, Ce$1 = { ...U, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(Q$1).replace("hr", I).replace("heading", ` *#{1,6} *[^
63678
+ })(), m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u4) => new RegExp(`^( {0,3}${u4})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}#`), htmlBeginRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (u4) => new RegExp(`^ {0,${Math.min(3, u4 - 1)}}>`) }, Te = /^(?:[ \t]*(?:\n|$))+/, Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, N$1 = / {0,3}(?:[*+-]|\d{1,9}[.)])/, re$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, se$1 = k(re$2).replace(/bull/g, N$1).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Pe = k(re$2).replace(/bull/g, N$1).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Q$1 = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Se$1 = /^[^\n]+/, F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), _e$1 = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N$1).getRegex(), q$1 = "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", j = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Le = k("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", j).replace("tag", q$1).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ie = k(Q$1).replace("hr", I).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[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q$1).getRegex(), Me = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex(), U = { blockquote: Me, code: Oe, def: $e, fences: we, heading: ye, hr: I, html: Le, lheading: se$1, list: _e$1, newline: Te, paragraph: ie, table: _, text: Se$1 }, te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).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[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q$1).getRegex(), ze$1 = { ...U, lheading: Pe, table: te, paragraph: k(Q$1).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q$1).getRegex() }, Ce$1 = { ...U, html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: k(Q$1).replace("hr", I).replace("heading", ` *#{1,6} *[^
63679
63679
  ]`).replace("lheading", se$1).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ie$1 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, oe$1 = /^( {2,}|\\)\n(?!\s*$)/, Ee$1 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, v = /[\p{P}\p{S}]/u, K$1 = /[\s\p{P}\p{S}]/u, ae = /[^\s\p{P}\p{S}]/u, Be = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K$1).getRegex(), le = /(?!~)[\p{P}\p{S}]/u, De$1 = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ue$1 = /(?![*_])[\p{P}\p{S}]/u, ve$1 = /(?![*_])[\s\p{P}\p{S}]/u, Ge$1 = /(?:[^\s\p{P}\p{S}]|[*_])/u, He$1 = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Re$1 ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), pe$1 = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ze$1 = k(pe$1, "u").replace(/punct/g, v).getRegex(), Ne = k(pe$1, "u").replace(/punct/g, le).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Qe$1 = k(ce, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K$1).replace(/punct/g, v).getRegex(), Fe$1 = k(ce, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, De$1).replace(/punct/g, le).getRegex(), je$1 = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K$1).replace(/punct/g, v).getRegex(), Ue = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ue$1).getRegex(), Ke = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", We$1 = k(Ke, "gu").replace(/notPunctSpace/g, Ge$1).replace(/punctSpace/g, ve$1).replace(/punct/g, ue$1).getRegex(), Xe = k(/\\(punct)/, "gu").replace(/punct/g, v).getRegex(), Je = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ve$1 = k(j).replace("(?:-->|$)", "-->").getRegex(), Ye$1 = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ve$1).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), D = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, et$1 = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", D).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he$2 = k(/^!?\[(label)\]\[(ref)\]/).replace("label", D).replace("ref", F).getRegex(), ke$1 = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex(), tt = k("reflink|nolink(?!\\()", "g").replace("reflink", he$2).replace("nolink", ke$1).getRegex(), ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, W = { _backpedal: _, anyPunctuation: Xe, autolink: Je, blockSkip: He$1, br: oe$1, code: Ie$1, del: _, delLDelim: _, delRDelim: _, emStrongLDelim: Ze$1, emStrongRDelimAst: Qe$1, emStrongRDelimUnd: je$1, escape: Ae, link: et$1, nolink: ke$1, punctuation: Be, reflink: he$2, reflinkSearch: tt, tag: Ye$1, text: Ee$1, url: _ }, nt = { ...W, link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(), reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex() }, Z$1 = { ...W, emStrongRDelimAst: Fe$1, emStrongLDelim: Ne, delLDelim: Ue, delRDelim: We$1, url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex() }, rt$1 = { ...Z$1, br: k(oe$1).replace("{2,}", "*").getRegex(), text: k(Z$1.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, E = { normal: U, gfm: ze$1, pedantic: Ce$1 }, z$2 = { normal: W, gfm: Z$1, breaks: rt$1, pedantic: nt };
63680
63680
  var st$1 = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, de$2 = (u4) => st$1[u4];
63681
63681
  function O(u4, e) {
@@ -64899,7 +64899,7 @@ var tn = f("block", "before:content-[counter(line)]", "before:inline-block", "be
64899
64899
  var et = ({ className: e, language: t, style: o, isIncomplete: n, ...s2 }) => jsxRuntimeExports.jsx("div", { className: f("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2", e), "data-incomplete": n || void 0, "data-language": t, "data-streamdown": "code-block", style: { contentVisibility: "auto", containIntrinsicSize: "auto 200px", ...o }, ...s2 });
64900
64900
  var Se = reactExports.createContext({ code: "" }), de$1 = () => reactExports.useContext(Se);
64901
64901
  var ot = ({ language: e }) => jsxRuntimeExports.jsx("div", { className: "flex h-8 items-center text-muted-foreground text-xs", "data-language": e, "data-streamdown": "code-block-header", children: jsxRuntimeExports.jsx("span", { className: "ml-1 font-mono lowercase", children: e }) });
64902
- var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-z6TbPMtP.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
64902
+ var cn$1 = /\n+$/, dn = reactExports.lazy(() => import("./highlighted-body-B3W2YXNL-Dbvlczoc.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), rt = ({ code: e, language: t, className: o, children: n, isIncomplete: s2 = false, ...r2 }) => {
64903
64903
  let i = reactExports.useMemo(() => e.replace(cn$1, ""), [e]), c = reactExports.useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: i.split(`
64904
64904
  `).map((a2) => [{ content: a2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [i]);
64905
64905
  return jsxRuntimeExports.jsx(Se.Provider, { value: { code: e }, children: jsxRuntimeExports.jsxs(et, { isIncomplete: s2, language: t, children: [jsxRuntimeExports.jsx(ot, { language: t }), n ? jsxRuntimeExports.jsx("div", { className: "pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end", children: jsxRuntimeExports.jsx("div", { className: "pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur", "data-streamdown": "code-block-actions", children: n }) }) : null, jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(Qe, { className: o, language: t, result: c, ...r2 }), children: jsxRuntimeExports.jsx(dn, { className: o, code: i, language: t, raw: c, ...r2 }) })] }) });
@@ -65061,10 +65061,10 @@ var Pt = ({ chart: e, children: t, className: o, onDownload: n, config: s2, onEr
65061
65061
  };
65062
65062
  }, []), jsxRuntimeExports.jsxs("div", { className: "relative", ref: a2, children: [jsxRuntimeExports.jsx("button", { className: f("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", o), disabled: l, onClick: () => c(!i), title: "Download diagram", type: "button", children: t != null ? t : jsxRuntimeExports.jsx(Z, { size: 14 }) }), i ? jsxRuntimeExports.jsxs("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => d2("svg"), title: "Download diagram as SVG", type: "button", children: "SVG" }), jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => d2("png"), title: "Download diagram as PNG", type: "button", children: "PNG" }), jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => d2("mmd"), title: "Download diagram as MMD", type: "button", children: "MMD" })] }) : null] });
65063
65063
  };
65064
- var re = 0, On = () => {
65065
- re += 1, re === 1 && (document.body.style.overflow = "hidden");
65064
+ var re$1 = 0, On = () => {
65065
+ re$1 += 1, re$1 === 1 && (document.body.style.overflow = "hidden");
65066
65066
  }, Vn = () => {
65067
- re = Math.max(0, re - 1), re === 0 && (document.body.style.overflow = "");
65067
+ re$1 = Math.max(0, re$1 - 1), re$1 === 0 && (document.body.style.overflow = "");
65068
65068
  }, Lt = ({ chart: e, config: t, onFullscreen: o, onExit: n, className: s2, ...r2 }) => {
65069
65069
  let [i, c] = reactExports.useState(false), { isAnimating: a2, controls: l } = reactExports.useContext(R), m2 = (() => {
65070
65070
  if (typeof l == "boolean") return l;
@@ -65221,7 +65221,7 @@ var Dt = ({ children: e, className: t, onDownload: o, onError: n }) => {
65221
65221
  }, []), jsxRuntimeExports.jsxs("div", { className: "relative", ref: i, children: [jsxRuntimeExports.jsx("button", { className: f("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50", t), disabled: c, onClick: () => r2(!s2), title: "Download table", type: "button", children: e != null ? e : jsxRuntimeExports.jsx(Z, { size: 14 }) }), s2 ? jsxRuntimeExports.jsxs("div", { className: "absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg", children: [jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => a2("csv"), title: "Download table as CSV", type: "button", children: "CSV" }), jsxRuntimeExports.jsx("button", { className: "w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40", onClick: () => a2("markdown"), title: "Download table as Markdown", type: "button", children: "Markdown" })] }) : null] });
65222
65222
  };
65223
65223
  var Vt = ({ children: e, className: t, showControls: o, ...n }) => jsxRuntimeExports.jsxs("div", { className: "my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2", "data-streamdown": "table-wrapper", children: [o ? jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-end gap-1", children: [jsxRuntimeExports.jsx(Ht, {}), jsxRuntimeExports.jsx(Dt, {})] }) : null, jsxRuntimeExports.jsx("div", { className: "border-collapse overflow-x-auto overscroll-y-auto rounded-md border border-border bg-background", children: jsxRuntimeExports.jsx("table", { className: f("w-full divide-y divide-border", t), "data-streamdown": "table", ...n, children: e }) })] });
65224
- var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-XSKOerl0.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
65224
+ var Jn = reactExports.lazy(() => import("./mermaid-3ZIDBTTL-DL0Nr5XO.js").then((e) => ({ default: e.Mermaid }))), Kn = /language-([^\s]+)/;
65225
65225
  function ke(e, t) {
65226
65226
  if (!(e != null && e.position || t != null && t.position)) return true;
65227
65227
  if (!(e != null && e.position && (t != null && t.position))) return false;
@@ -70592,7 +70592,7 @@ const WorkflowTraceViewer = ({ run, events: events2, isLoading, error: error2, s
70592
70592
  e.currentTarget.style.background = "var(--ds-gray-alpha-100)";
70593
70593
  }, onMouseLeave: (e) => {
70594
70594
  e.currentTarget.style.background = "transparent";
70595
- }, children: jsxRuntimeExports.jsx(X$3, { size: 16 }) }) })] }), jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto", children: jsxRuntimeExports.jsx(ErrorBoundary, { title: "Failed to load entity details", children: jsxRuntimeExports.jsx(EntityDetailPanel, { run, onStreamClick, spanDetailData: spanDetailData ?? null, spanDetailError, spanDetailLoading, onSpanSelect: handleSpanSelect, onWakeUpSleep, onLoadEventData, onResolveHook, encryptionKey, onDecrypt, isDecrypting, selectedSpan }) }) })] })] });
70595
+ }, children: jsxRuntimeExports.jsx(X$3, { size: 16 }) }) })] }), jsxRuntimeExports.jsx("div", { className: "flex-1 overflow-y-auto", children: jsxRuntimeExports.jsx(ErrorBoundary$1, { title: "Failed to load entity details", children: jsxRuntimeExports.jsx(EntityDetailPanel, { run, onStreamClick, spanDetailData: spanDetailData ?? null, spanDetailError, spanDetailLoading, onSpanSelect: handleSpanSelect, onWakeUpSleep, onLoadEventData, onResolveHook, encryptionKey, onDecrypt, isDecrypting, selectedSpan }) }) })] })] });
70596
70596
  };
70597
70597
  function deserializeChunkText(text2) {
70598
70598
  try {
@@ -74035,7 +74035,6 @@ class RetryableError extends Error {
74035
74035
  }
74036
74036
  }
74037
74037
  const VERCEL_403_ERROR_MESSAGE = "Your current vercel account does not have access to this resource. Use `vercel login` or `vercel switch` to ensure you are linked to the right account.";
74038
- const MAX_QUEUE_DELIVERIES = 48;
74039
74038
  const NEVER = Object.freeze({
74040
74039
  status: "aborted"
74041
74040
  });
@@ -87955,6 +87954,34 @@ const QueuePayloadSchema = union([
87955
87954
  StepInvokePayloadSchema,
87956
87955
  HealthCheckPayloadSchema
87957
87956
  ]);
87957
+ async function reenqueueActiveRuns(runs, enqueue, label) {
87958
+ let reenqueued = 0;
87959
+ for (const status of ["pending", "running"]) {
87960
+ let cursor;
87961
+ let hasMore = true;
87962
+ while (hasMore) {
87963
+ const page = await runs.list({
87964
+ status,
87965
+ resolveData: "none",
87966
+ pagination: { cursor }
87967
+ });
87968
+ for (const run of page.data) {
87969
+ try {
87970
+ const queueName = `__wkf_workflow_${run.workflowName}`;
87971
+ await enqueue(queueName, { runId: run.runId });
87972
+ reenqueued++;
87973
+ } catch (err) {
87974
+ console.warn(`[${label}] Failed to re-enqueue run ${run.runId}: ${err}`);
87975
+ }
87976
+ }
87977
+ hasMore = page.hasMore;
87978
+ cursor = page.cursor ?? void 0;
87979
+ }
87980
+ }
87981
+ if (reenqueued > 0) {
87982
+ console.log(`[${label}] Re-enqueued ${reenqueued} active run(s) on startup`);
87983
+ }
87984
+ }
87958
87985
  const zodJsonSchema = lazy(() => {
87959
87986
  return union([
87960
87987
  string$1(),
@@ -89253,6 +89280,7 @@ const runtimeLogger = createLogger("runtime");
89253
89280
  createLogger("webhook");
89254
89281
  createLogger("events");
89255
89282
  createLogger("adapter");
89283
+ const MAX_QUEUE_DELIVERIES = 48;
89256
89284
  const execFileAsync = promisify(execFile);
89257
89285
  function parsePort$1(value, radix = 10) {
89258
89286
  const port = parseInt(value, radix);
@@ -89849,7 +89877,7 @@ async function ensureDataDir(dataDir) {
89849
89877
  }
89850
89878
  }
89851
89879
  try {
89852
- await access(absolutePath, constants$5.R_OK);
89880
+ await access(absolutePath, constants$6.R_OK);
89853
89881
  } catch (error2) {
89854
89882
  const nodeError = error2;
89855
89883
  throw new DataDirAccessError(`Data directory "${absolutePath}" is not readable: ${nodeError.message}`, absolutePath, nodeError.code);
@@ -89915,6 +89943,101 @@ async function initDataDir(dataDir) {
89915
89943
  throw error2;
89916
89944
  }
89917
89945
  }
89946
+ let otelApiPromise$1 = null;
89947
+ async function getOtelApi$1() {
89948
+ if (!otelApiPromise$1) {
89949
+ otelApiPromise$1 = import("./index-meg9qk8y.js").catch(() => null);
89950
+ }
89951
+ return otelApiPromise$1;
89952
+ }
89953
+ let tracerPromise$1 = null;
89954
+ async function getTracer$1() {
89955
+ if (!tracerPromise$1) {
89956
+ tracerPromise$1 = getOtelApi$1().then((otel) => otel ? otel.trace.getTracer("workflow") : null);
89957
+ }
89958
+ return tracerPromise$1;
89959
+ }
89960
+ async function trace$1(spanName2, ...args) {
89961
+ const [tracer, otel] = await Promise.all([getTracer$1(), getOtelApi$1()]);
89962
+ const { fn: fn2, opts } = typeof args[0] === "function" ? { fn: args[0], opts: {} } : { fn: args[1], opts: args[0] };
89963
+ if (!fn2)
89964
+ throw new Error("Function to trace must be provided");
89965
+ if (!tracer || !otel) {
89966
+ return await fn2();
89967
+ }
89968
+ return tracer.startActiveSpan(spanName2, opts, async (span) => {
89969
+ try {
89970
+ const result = await fn2(span);
89971
+ span.setStatus({ code: otel.SpanStatusCode.OK });
89972
+ return result;
89973
+ } catch (e) {
89974
+ span.setStatus({
89975
+ code: otel.SpanStatusCode.ERROR,
89976
+ message: e.message
89977
+ });
89978
+ throw e;
89979
+ } finally {
89980
+ span.end();
89981
+ }
89982
+ });
89983
+ }
89984
+ async function getSpanKind$1(field) {
89985
+ const otel = await getOtelApi$1();
89986
+ if (!otel)
89987
+ return void 0;
89988
+ return otel.SpanKind[field];
89989
+ }
89990
+ function SemanticConvention$1(...names) {
89991
+ return (value) => Object.fromEntries(names.map((name2) => [name2, value]));
89992
+ }
89993
+ const PeerService$1 = SemanticConvention$1("peer.service");
89994
+ const RpcSystem$1 = SemanticConvention$1("rpc.system");
89995
+ const RpcService$1 = SemanticConvention$1("rpc.service");
89996
+ const RpcMethod$1 = SemanticConvention$1("rpc.method");
89997
+ const WORLD_LOCAL_SERVICE = {
89998
+ peerService: "world-local",
89999
+ rpcSystem: "local",
90000
+ rpcService: "world-local"
90001
+ };
90002
+ function extractEventType$1(args) {
90003
+ if (args.length >= 2 && typeof args[1] === "object" && args[1] !== null) {
90004
+ const data = args[1];
90005
+ if (typeof data.eventType === "string") {
90006
+ return data.eventType;
90007
+ }
90008
+ }
90009
+ return void 0;
90010
+ }
90011
+ function instrumentObject$1(prefix, o) {
90012
+ const handlers2 = {};
90013
+ for (const key of Object.keys(o)) {
90014
+ if (typeof o[key] !== "function") {
90015
+ handlers2[key] = o[key];
90016
+ } else {
90017
+ const f2 = o[key];
90018
+ const methodName = String(key);
90019
+ handlers2[key] = async (...args) => {
90020
+ let spanName2 = `${prefix}.${methodName}`;
90021
+ if (prefix === "world.events" && methodName === "create") {
90022
+ const eventType = extractEventType$1(args);
90023
+ if (eventType) {
90024
+ spanName2 = `${prefix}.${methodName} ${eventType}`;
90025
+ }
90026
+ }
90027
+ return trace$1(spanName2, { kind: await getSpanKind$1("INTERNAL") }, async (span) => {
90028
+ span == null ? void 0 : span.setAttributes({
90029
+ ...PeerService$1(WORLD_LOCAL_SERVICE.peerService),
90030
+ ...RpcSystem$1(WORLD_LOCAL_SERVICE.rpcSystem),
90031
+ ...RpcService$1(WORLD_LOCAL_SERVICE.rpcService),
90032
+ ...RpcMethod$1(spanName2)
90033
+ });
90034
+ return f2(...args);
90035
+ });
90036
+ };
90037
+ }
90038
+ }
90039
+ return handlers2;
90040
+ }
89918
90041
  var MultipartParseError = class extends Error {
89919
90042
  constructor(message2) {
89920
90043
  super(message2);
@@ -90361,7 +90484,7 @@ var StreamingMultipartParser = class {
90361
90484
  const balanced = (a2, b2, str) => {
90362
90485
  const ma = a2 instanceof RegExp ? maybeMatch(a2, str) : a2;
90363
90486
  const mb = b2 instanceof RegExp ? maybeMatch(b2, str) : b2;
90364
- const r2 = ma !== null && mb != null && range(ma, mb, str);
90487
+ const r2 = ma !== null && mb != null && range$1(ma, mb, str);
90365
90488
  return r2 && {
90366
90489
  start: r2[0],
90367
90490
  end: r2[1],
@@ -90374,7 +90497,7 @@ const maybeMatch = (reg, str) => {
90374
90497
  const m2 = str.match(reg);
90375
90498
  return m2 ? m2[0] : null;
90376
90499
  };
90377
- const range = (a2, b2, str) => {
90500
+ const range$1 = (a2, b2, str) => {
90378
90501
  let begs, beg, left, right = void 0, result;
90379
90502
  let ai = str.indexOf(a2);
90380
90503
  let bi = str.indexOf(b2, ai + 1);
@@ -92369,8 +92492,8 @@ function requireGetVercelOidcToken() {
92369
92492
  }
92370
92493
  try {
92371
92494
  const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([
92372
- await import("./token-util-DQ6afx9q.js").then((n) => n.t),
92373
- await import("./token-Ct_osLcf.js").then((n) => n.t)
92495
+ await import("./token-util-ClsVcJbP.js").then((n) => n.t),
92496
+ await import("./token-BV_eEV9j.js").then((n) => n.t)
92374
92497
  ]);
92375
92498
  if (!token || isExpired(getTokenPayload(token), options == null ? void 0 : options.expirationBufferMs)) {
92376
92499
  await refreshToken(options);
@@ -95846,11 +95969,11 @@ function requireErrors() {
95846
95969
  };
95847
95970
  return errors;
95848
95971
  }
95849
- var constants$4;
95850
- var hasRequiredConstants$4;
95851
- function requireConstants$4() {
95852
- if (hasRequiredConstants$4) return constants$4;
95853
- hasRequiredConstants$4 = 1;
95972
+ var constants$5;
95973
+ var hasRequiredConstants$5;
95974
+ function requireConstants$5() {
95975
+ if (hasRequiredConstants$5) return constants$5;
95976
+ hasRequiredConstants$5 = 1;
95854
95977
  const wellknownHeaderNames = (
95855
95978
  /** @type {const} */
95856
95979
  [
@@ -95967,12 +96090,12 @@ function requireConstants$4() {
95967
96090
  const lowerCasedKey = key.toLowerCase();
95968
96091
  headerNameLowerCasedRecord[key] = headerNameLowerCasedRecord[lowerCasedKey] = lowerCasedKey;
95969
96092
  }
95970
- constants$4 = {
96093
+ constants$5 = {
95971
96094
  wellknownHeaderNames,
95972
96095
  headerNameLowerCasedRecord,
95973
96096
  getHeaderNameAsBuffer
95974
96097
  };
95975
- return constants$4;
96098
+ return constants$5;
95976
96099
  }
95977
96100
  var tree_1;
95978
96101
  var hasRequiredTree;
@@ -95982,7 +96105,7 @@ function requireTree() {
95982
96105
  const {
95983
96106
  wellknownHeaderNames,
95984
96107
  headerNameLowerCasedRecord
95985
- } = requireConstants$4();
96108
+ } = requireConstants$5();
95986
96109
  class TstNode {
95987
96110
  /**
95988
96111
  * @param {string} key
@@ -96133,7 +96256,7 @@ function requireUtil$5() {
96133
96256
  const { EventEmitter: EE } = require$$6;
96134
96257
  const timers2 = requireTimers();
96135
96258
  const { InvalidArgumentError, ConnectTimeoutError } = requireErrors();
96136
- const { headerNameLowerCasedRecord } = requireConstants$4();
96259
+ const { headerNameLowerCasedRecord } = requireConstants$5();
96137
96260
  const { tree } = requireTree();
96138
96261
  const [nodeMajor, nodeMinor] = process.versions.node.split(".", 2).map((v2) => Number(v2));
96139
96262
  class BodyAsyncIterable {
@@ -97201,7 +97324,7 @@ function requireRequest$1() {
97201
97324
  getProtocolFromUrlString
97202
97325
  } = requireUtil$5();
97203
97326
  const { channels } = requireDiagnostics();
97204
- const { headerNameLowerCasedRecord } = requireConstants$4();
97327
+ const { headerNameLowerCasedRecord } = requireConstants$5();
97205
97328
  const invalidPathRegex = /[^\u0021-\u00ff]/;
97206
97329
  const kHandler = Symbol("handler");
97207
97330
  class Request2 {
@@ -97990,7 +98113,7 @@ function requireConnect() {
97990
98113
  connect = buildConnector;
97991
98114
  return connect;
97992
98115
  }
97993
- var constants$3 = {};
98116
+ var constants$4 = {};
97994
98117
  var utils = {};
97995
98118
  var hasRequiredUtils;
97996
98119
  function requireUtils() {
@@ -98007,10 +98130,10 @@ function requireUtils() {
98007
98130
  }
98008
98131
  return utils;
98009
98132
  }
98010
- var hasRequiredConstants$3;
98011
- function requireConstants$3() {
98012
- if (hasRequiredConstants$3) return constants$3;
98013
- hasRequiredConstants$3 = 1;
98133
+ var hasRequiredConstants$4;
98134
+ function requireConstants$4() {
98135
+ if (hasRequiredConstants$4) return constants$4;
98136
+ hasRequiredConstants$4 = 1;
98014
98137
  (function(exports$1) {
98015
98138
  Object.defineProperty(exports$1, "__esModule", { value: true });
98016
98139
  exports$1.SPECIAL_HEADERS = exports$1.MINOR = exports$1.MAJOR = exports$1.HTAB_SP_VCHAR_OBS_TEXT = exports$1.QUOTED_STRING = exports$1.CONNECTION_TOKEN_CHARS = exports$1.HEADER_CHARS = exports$1.TOKEN = exports$1.HEX = exports$1.URL_CHAR = exports$1.USERINFO_CHARS = exports$1.MARK = exports$1.ALPHANUM = exports$1.NUM = exports$1.HEX_MAP = exports$1.NUM_MAP = exports$1.ALPHA = exports$1.STATUSES_HTTP = exports$1.H_METHOD_MAP = exports$1.METHOD_MAP = exports$1.METHODS_RTSP = exports$1.METHODS_ICE = exports$1.METHODS_HTTP = exports$1.HEADER_STATE = exports$1.FINISH = exports$1.STATUSES = exports$1.METHODS = exports$1.LENIENT_FLAGS = exports$1.FLAGS = exports$1.TYPE = exports$1.ERROR = void 0;
@@ -98628,8 +98751,8 @@ function requireConstants$3() {
98628
98751
  H_METHOD_MAP: exports$1.H_METHOD_MAP,
98629
98752
  STATUSES_HTTP: exports$1.STATUSES_HTTP
98630
98753
  };
98631
- })(constants$3);
98632
- return constants$3;
98754
+ })(constants$4);
98755
+ return constants$4;
98633
98756
  }
98634
98757
  var llhttpWasm = { exports: {} };
98635
98758
  llhttpWasm.exports;
@@ -98667,11 +98790,11 @@ function requireLlhttp_simdWasm() {
98667
98790
  })(llhttp_simdWasm);
98668
98791
  return llhttp_simdWasm.exports;
98669
98792
  }
98670
- var constants$2;
98671
- var hasRequiredConstants$2;
98672
- function requireConstants$2() {
98673
- if (hasRequiredConstants$2) return constants$2;
98674
- hasRequiredConstants$2 = 1;
98793
+ var constants$3;
98794
+ var hasRequiredConstants$3;
98795
+ function requireConstants$3() {
98796
+ if (hasRequiredConstants$3) return constants$3;
98797
+ hasRequiredConstants$3 = 1;
98675
98798
  const corsSafeListedMethods = (
98676
98799
  /** @type {const} */
98677
98800
  ["GET", "HEAD", "POST"]
@@ -98866,7 +98989,7 @@ function requireConstants$2() {
98866
98989
  ]
98867
98990
  );
98868
98991
  const subresourceSet = new Set(subresource);
98869
- constants$2 = {
98992
+ constants$3 = {
98870
98993
  subresource,
98871
98994
  forbiddenMethods,
98872
98995
  requestBodyHeader,
@@ -98889,7 +99012,7 @@ function requireConstants$2() {
98889
99012
  forbiddenMethodsSet,
98890
99013
  referrerPolicyTokens: referrerPolicyTokensSet
98891
99014
  };
98892
- return constants$2;
99015
+ return constants$3;
98893
99016
  }
98894
99017
  var global$2;
98895
99018
  var hasRequiredGlobal$1;
@@ -100058,7 +100181,7 @@ function requireUtil$4() {
100058
100181
  hasRequiredUtil$4 = 1;
100059
100182
  const { Transform: Transform2 } = require$$0$4;
100060
100183
  const zlib = require$$3$1;
100061
- const { redirectStatusSet, referrerPolicyTokens, badPortsSet } = requireConstants$2();
100184
+ const { redirectStatusSet, referrerPolicyTokens, badPortsSet } = requireConstants$3();
100062
100185
  const { getGlobalOrigin } = requireGlobal$1();
100063
100186
  const { collectAnHTTPQuotedString, parseMIMEType } = requireDataUrl();
100064
100187
  const { performance: performance2 } = require$$5$2;
@@ -101676,7 +101799,7 @@ function requireClientH1() {
101676
101799
  kHTTPContext,
101677
101800
  kClosed
101678
101801
  } = requireSymbols();
101679
- const constants2 = requireConstants$3();
101802
+ const constants2 = requireConstants$4();
101680
101803
  const EMPTY_BUF = Buffer.alloc(0);
101681
101804
  const FastBuffer = Buffer[Symbol.species];
101682
101805
  const removeAllListeners = util2.removeAllListeners;
@@ -112682,7 +112805,7 @@ function requireResponse() {
112682
112805
  const {
112683
112806
  redirectStatusSet,
112684
112807
  nullBodyStatus
112685
- } = requireConstants$2();
112808
+ } = requireConstants$3();
112686
112809
  const { webidl } = requireWebidl();
112687
112810
  const { URLSerializer } = requireDataUrl();
112688
112811
  const { kConstruct } = requireSymbols();
@@ -113113,7 +113236,7 @@ function requireRequest() {
113113
113236
  requestCredentials,
113114
113237
  requestCache,
113115
113238
  requestDuplex
113116
- } = requireConstants$2();
113239
+ } = requireConstants$3();
113117
113240
  const { kEnumerableProperty, normalizedMethodRecordsBase, normalizedMethodRecords } = util2;
113118
113241
  const { webidl } = requireWebidl();
113119
113242
  const { URLSerializer } = requireDataUrl();
@@ -114049,7 +114172,7 @@ function requireFetch() {
114049
114172
  safeMethodsSet,
114050
114173
  requestBodyHeader,
114051
114174
  subresourceSet
114052
- } = requireConstants$2();
114175
+ } = requireConstants$3();
114053
114176
  const EE = require$$6;
114054
114177
  const { Readable, pipeline, finished, isErrored, isReadable } = require$$0$4;
114055
114178
  const { addAbortListener, bufferToLowerCasedHeaderName } = requireUtil$5();
@@ -115800,18 +115923,18 @@ function requireCachestorage() {
115800
115923
  };
115801
115924
  return cachestorage;
115802
115925
  }
115803
- var constants$1;
115804
- var hasRequiredConstants$1;
115805
- function requireConstants$1() {
115806
- if (hasRequiredConstants$1) return constants$1;
115807
- hasRequiredConstants$1 = 1;
115926
+ var constants$2;
115927
+ var hasRequiredConstants$2;
115928
+ function requireConstants$2() {
115929
+ if (hasRequiredConstants$2) return constants$2;
115930
+ hasRequiredConstants$2 = 1;
115808
115931
  const maxAttributeValueSize = 1024;
115809
115932
  const maxNameValuePairSize = 4096;
115810
- constants$1 = {
115933
+ constants$2 = {
115811
115934
  maxAttributeValueSize,
115812
115935
  maxNameValuePairSize
115813
115936
  };
115814
- return constants$1;
115937
+ return constants$2;
115815
115938
  }
115816
115939
  var util$2;
115817
115940
  var hasRequiredUtil$2;
@@ -115984,12 +116107,12 @@ function requireUtil$2() {
115984
116107
  return util$2;
115985
116108
  }
115986
116109
  var parse$1;
115987
- var hasRequiredParse;
115988
- function requireParse() {
115989
- if (hasRequiredParse) return parse$1;
115990
- hasRequiredParse = 1;
116110
+ var hasRequiredParse$1;
116111
+ function requireParse$1() {
116112
+ if (hasRequiredParse$1) return parse$1;
116113
+ hasRequiredParse$1 = 1;
115991
116114
  const { collectASequenceOfCodePointsFast } = requireInfra();
115992
- const { maxNameValuePairSize, maxAttributeValueSize } = requireConstants$1();
116115
+ const { maxNameValuePairSize, maxAttributeValueSize } = requireConstants$2();
115993
116116
  const { isCTLExcludingHtab } = requireUtil$2();
115994
116117
  const assert2 = require$$0$3;
115995
116118
  const { unescape: qsUnescape } = require$$5$1;
@@ -116129,7 +116252,7 @@ var hasRequiredCookies;
116129
116252
  function requireCookies() {
116130
116253
  if (hasRequiredCookies) return cookies;
116131
116254
  hasRequiredCookies = 1;
116132
- const { parseSetCookie } = requireParse();
116255
+ const { parseSetCookie } = requireParse$1();
116133
116256
  const { stringify: stringify2 } = requireUtil$2();
116134
116257
  const { webidl } = requireWebidl();
116135
116258
  const { Headers: Headers2 } = requireHeaders$1();
@@ -116539,11 +116662,11 @@ function requireEvents() {
116539
116662
  };
116540
116663
  return events;
116541
116664
  }
116542
- var constants;
116543
- var hasRequiredConstants;
116544
- function requireConstants() {
116545
- if (hasRequiredConstants) return constants;
116546
- hasRequiredConstants = 1;
116665
+ var constants$1;
116666
+ var hasRequiredConstants$1;
116667
+ function requireConstants$1() {
116668
+ if (hasRequiredConstants$1) return constants$1;
116669
+ hasRequiredConstants$1 = 1;
116547
116670
  const uid = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
116548
116671
  const staticPropertyDescriptors = {
116549
116672
  enumerable: true,
@@ -116582,7 +116705,7 @@ function requireConstants() {
116582
116705
  arrayBuffer: 3,
116583
116706
  blob: 4
116584
116707
  };
116585
- constants = {
116708
+ constants$1 = {
116586
116709
  uid,
116587
116710
  sentCloseFrameState,
116588
116711
  staticPropertyDescriptors,
@@ -116593,14 +116716,14 @@ function requireConstants() {
116593
116716
  emptyBuffer,
116594
116717
  sendHints
116595
116718
  };
116596
- return constants;
116719
+ return constants$1;
116597
116720
  }
116598
116721
  var util$1;
116599
116722
  var hasRequiredUtil$1;
116600
116723
  function requireUtil$1() {
116601
116724
  if (hasRequiredUtil$1) return util$1;
116602
116725
  hasRequiredUtil$1 = 1;
116603
- const { states, opcodes } = requireConstants();
116726
+ const { states, opcodes } = requireConstants$1();
116604
116727
  const { isUtf8 } = require$$0$7;
116605
116728
  const { removeHTTPWhitespace } = requireDataUrl();
116606
116729
  const { collectASequenceOfCodePointsFast } = requireInfra();
@@ -116774,7 +116897,7 @@ function requireFrame() {
116774
116897
  if (hasRequiredFrame) return frame$1;
116775
116898
  hasRequiredFrame = 1;
116776
116899
  const { runtimeFeatures: runtimeFeatures2 } = requireRuntimeFeatures();
116777
- const { maxUnsigned16Bit, opcodes } = requireConstants();
116900
+ const { maxUnsigned16Bit, opcodes } = requireConstants$1();
116778
116901
  const BUFFER_SIZE = 8 * 1024;
116779
116902
  let buffer = null;
116780
116903
  let bufIdx = BUFFER_SIZE;
@@ -116879,7 +117002,7 @@ var hasRequiredConnection;
116879
117002
  function requireConnection() {
116880
117003
  if (hasRequiredConnection) return connection;
116881
117004
  hasRequiredConnection = 1;
116882
- const { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = requireConstants();
117005
+ const { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = requireConstants$1();
116883
117006
  const { parseExtensions, isClosed, isClosing, isEstablished, isConnecting, validateCloseCodeAndReason } = requireUtil$1();
116884
117007
  const { makeRequest: makeRequest2 } = requireRequest();
116885
117008
  const { fetching } = requireFetch();
@@ -117098,7 +117221,7 @@ function requireReceiver() {
117098
117221
  hasRequiredReceiver = 1;
117099
117222
  const { Writable } = require$$0$4;
117100
117223
  const assert2 = require$$0$3;
117101
- const { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = requireConstants();
117224
+ const { parserStates, opcodes, states, emptyBuffer, sentCloseFrameState } = requireConstants$1();
117102
117225
  const {
117103
117226
  isValidStatusCode,
117104
117227
  isValidOpcode,
@@ -117419,7 +117542,7 @@ function requireSender() {
117419
117542
  if (hasRequiredSender) return sender;
117420
117543
  hasRequiredSender = 1;
117421
117544
  const { WebsocketFrameSend } = requireFrame();
117422
- const { opcodes, sendHints } = requireConstants();
117545
+ const { opcodes, sendHints } = requireConstants$1();
117423
117546
  const FixedQueue = requireFixedQueue();
117424
117547
  class SendQueue {
117425
117548
  constructor(socket) {
@@ -117515,7 +117638,7 @@ function requireWebsocket() {
117515
117638
  const { webidl } = requireWebidl();
117516
117639
  const { URLSerializer } = requireDataUrl();
117517
117640
  const { environmentSettingsObject } = requireUtil$4();
117518
- const { staticPropertyDescriptors, states, sentCloseFrameState, sendHints, opcodes } = requireConstants();
117641
+ const { staticPropertyDescriptors, states, sentCloseFrameState, sendHints, opcodes } = requireConstants$1();
117519
117642
  const {
117520
117643
  isConnecting,
117521
117644
  isEstablished,
@@ -118086,7 +118209,7 @@ function requireWebsocketstream() {
118086
118209
  hasRequiredWebsocketstream = 1;
118087
118210
  const { createDeferredPromise } = requirePromise();
118088
118211
  const { environmentSettingsObject } = requireUtil$4();
118089
- const { states, opcodes, sentCloseFrameState } = requireConstants();
118212
+ const { states, opcodes, sentCloseFrameState } = requireConstants$1();
118090
118213
  const { webidl } = requireWebidl();
118091
118214
  const { getURLRecord, isValidSubprotocol, isEstablished, utf8Decode } = requireUtil$1();
118092
118215
  const { establishWebSocketConnection, failWebsocketConnection, closeWebSocketConnection } = requireConnection();
@@ -119306,10 +119429,10 @@ function createQueue$2(config2) {
119306
119429
  });
119307
119430
  return { messageId };
119308
119431
  };
119309
- const HeaderParser = z.object({
119432
+ const HeaderParser = object$1({
119310
119433
  "x-vqs-queue-name": ValidQueueName,
119311
119434
  "x-vqs-message-id": MessageId,
119312
- "x-vqs-message-attempt": z.coerce.number()
119435
+ "x-vqs-message-attempt": number()
119313
119436
  });
119314
119437
  const createQueueHandler = (prefix, handler) => {
119315
119438
  return async (req) => {
@@ -119357,101 +119480,25 @@ function createQueue$2(config2) {
119357
119480
  }
119358
119481
  };
119359
119482
  }
119360
- let otelApiPromise$1 = null;
119361
- async function getOtelApi$1() {
119362
- if (!otelApiPromise$1) {
119363
- otelApiPromise$1 = import("./index-meg9qk8y.js").catch(() => null);
119364
- }
119365
- return otelApiPromise$1;
119483
+ function hashToken(token) {
119484
+ return createHash("sha256").update(token).digest("hex");
119366
119485
  }
119367
- let tracerPromise$1 = null;
119368
- async function getTracer$1() {
119369
- if (!tracerPromise$1) {
119370
- tracerPromise$1 = getOtelApi$1().then((otel) => otel ? otel.trace.getTracer("workflow") : null);
119486
+ const monotonicUlid$1 = monotonicFactory(() => Math.random());
119487
+ const getObjectCreatedAt = (idPrefix) => (filename) => {
119488
+ const cleanName = stripTag(filename.replace(/\.json$/, "")) + ".json";
119489
+ const replaceRegex = new RegExp(`^${idPrefix}_`, "g");
119490
+ const dashIndex = cleanName.indexOf("-");
119491
+ if (dashIndex === -1) {
119492
+ const ulid3 = cleanName.replace(/\.json$/, "").replace(replaceRegex, "");
119493
+ return ulidToDate(ulid3);
119371
119494
  }
119372
- return tracerPromise$1;
119373
- }
119374
- async function trace$1(spanName2, ...args) {
119375
- const [tracer, otel] = await Promise.all([getTracer$1(), getOtelApi$1()]);
119376
- const { fn: fn2, opts } = typeof args[0] === "function" ? { fn: args[0], opts: {} } : { fn: args[1], opts: args[0] };
119377
- if (!fn2)
119378
- throw new Error("Function to trace must be provided");
119379
- if (!tracer || !otel) {
119380
- return await fn2();
119495
+ if (idPrefix === "step") {
119496
+ return null;
119381
119497
  }
119382
- return tracer.startActiveSpan(spanName2, opts, async (span) => {
119383
- try {
119384
- const result = await fn2(span);
119385
- span.setStatus({ code: otel.SpanStatusCode.OK });
119386
- return result;
119387
- } catch (e) {
119388
- span.setStatus({
119389
- code: otel.SpanStatusCode.ERROR,
119390
- message: e.message
119391
- });
119392
- throw e;
119393
- } finally {
119394
- span.end();
119395
- }
119396
- });
119397
- }
119398
- async function getSpanKind$1(field) {
119399
- const otel = await getOtelApi$1();
119400
- if (!otel)
119401
- return void 0;
119402
- return otel.SpanKind[field];
119403
- }
119404
- function SemanticConvention$1(...names) {
119405
- return (value) => Object.fromEntries(names.map((name2) => [name2, value]));
119406
- }
119407
- const PeerService$1 = SemanticConvention$1("peer.service");
119408
- const RpcSystem$1 = SemanticConvention$1("rpc.system");
119409
- const RpcService$1 = SemanticConvention$1("rpc.service");
119410
- const RpcMethod$1 = SemanticConvention$1("rpc.method");
119411
- const WORLD_LOCAL_SERVICE = {
119412
- peerService: "world-local",
119413
- rpcSystem: "local",
119414
- rpcService: "world-local"
119498
+ const id2 = cleanName.substring(dashIndex + 1).replace(/\.json$/, "");
119499
+ const ulid2 = id2.replace(replaceRegex, "");
119500
+ return ulidToDate(ulid2);
119415
119501
  };
119416
- function extractEventType$1(args) {
119417
- if (args.length >= 2 && typeof args[1] === "object" && args[1] !== null) {
119418
- const data = args[1];
119419
- if (typeof data.eventType === "string") {
119420
- return data.eventType;
119421
- }
119422
- }
119423
- return void 0;
119424
- }
119425
- function instrumentObject$1(prefix, o) {
119426
- const handlers2 = {};
119427
- for (const key of Object.keys(o)) {
119428
- if (typeof o[key] !== "function") {
119429
- handlers2[key] = o[key];
119430
- } else {
119431
- const f2 = o[key];
119432
- const methodName = String(key);
119433
- handlers2[key] = async (...args) => {
119434
- let spanName2 = `${prefix}.${methodName}`;
119435
- if (prefix === "world.events" && methodName === "create") {
119436
- const eventType = extractEventType$1(args);
119437
- if (eventType) {
119438
- spanName2 = `${prefix}.${methodName} ${eventType}`;
119439
- }
119440
- }
119441
- return trace$1(spanName2, { kind: await getSpanKind$1("INTERNAL") }, async (span) => {
119442
- span == null ? void 0 : span.setAttributes({
119443
- ...PeerService$1(WORLD_LOCAL_SERVICE.peerService),
119444
- ...RpcSystem$1(WORLD_LOCAL_SERVICE.rpcSystem),
119445
- ...RpcService$1(WORLD_LOCAL_SERVICE.rpcService),
119446
- ...RpcMethod$1(spanName2)
119447
- });
119448
- return f2(...args);
119449
- });
119450
- };
119451
- }
119452
- }
119453
- return handlers2;
119454
- }
119455
119502
  function filterRunData$1(run, resolveData) {
119456
119503
  if (resolveData === "none") {
119457
119504
  return {
@@ -119479,25 +119526,6 @@ function filterHookData$1(hook, resolveData) {
119479
119526
  }
119480
119527
  return hook;
119481
119528
  }
119482
- function hashToken(token) {
119483
- return createHash("sha256").update(token).digest("hex");
119484
- }
119485
- const monotonicUlid$1 = monotonicFactory(() => Math.random());
119486
- const getObjectCreatedAt = (idPrefix) => (filename) => {
119487
- const cleanName = stripTag(filename.replace(/\.json$/, "")) + ".json";
119488
- const replaceRegex = new RegExp(`^${idPrefix}_`, "g");
119489
- const dashIndex = cleanName.indexOf("-");
119490
- if (dashIndex === -1) {
119491
- const ulid3 = cleanName.replace(/\.json$/, "").replace(replaceRegex, "");
119492
- return ulidToDate(ulid3);
119493
- }
119494
- if (idPrefix === "step") {
119495
- return null;
119496
- }
119497
- const id2 = cleanName.substring(dashIndex + 1).replace(/\.json$/, "");
119498
- const ulid2 = id2.replace(replaceRegex, "");
119499
- return ulidToDate(ulid2);
119500
- };
119501
119529
  function createHooksStorage(basedir, tag) {
119502
119530
  async function findHookByToken(token) {
119503
119531
  const hooksDir = path$3.join(basedir, "hooks");
@@ -119686,6 +119714,9 @@ function createEventsStorage(basedir, tag) {
119686
119714
  run: currentRun
119687
119715
  };
119688
119716
  }
119717
+ if (data.eventType === "run_started") {
119718
+ throw new RunExpiredError(`Workflow run "${effectiveRunId}" is already in terminal state "${currentRun.status}"`);
119719
+ }
119689
119720
  if (runTerminalEvents.includes(data.eventType) || data.eventType === "run_cancelled") {
119690
119721
  throw new EntityConflictError(`Cannot transition run from terminal state "${currentRun.status}"`);
119691
119722
  }
@@ -119729,6 +119760,9 @@ function createEventsStorage(basedir, tag) {
119729
119760
  createdAt: now2,
119730
119761
  specVersion: effectiveSpecVersion
119731
119762
  };
119763
+ if (data.eventType === "run_started" && "eventData" in event) {
119764
+ delete event.eventData;
119765
+ }
119732
119766
  let run;
119733
119767
  let step;
119734
119768
  let hook;
@@ -119754,6 +119788,9 @@ function createEventsStorage(basedir, tag) {
119754
119788
  await writeJSON(taggedPath(basedir, "runs", effectiveRunId, tag), run);
119755
119789
  } else if (data.eventType === "run_started") {
119756
119790
  if (currentRun) {
119791
+ if (currentRun.status === "running") {
119792
+ return { run: currentRun };
119793
+ }
119757
119794
  run = {
119758
119795
  runId: currentRun.runId,
119759
119796
  deploymentId: currentRun.deploymentId,
@@ -120062,12 +120099,25 @@ function createEventsStorage(basedir, tag) {
120062
120099
  await writeJSON(taggedPath(basedir, "events", compositeKey, tag), event);
120063
120100
  const resolveData = (params == null ? void 0 : params.resolveData) ?? DEFAULT_RESOLVE_DATA_OPTION$1;
120064
120101
  const filteredEvent = stripEventDataRefs(event, resolveData);
120102
+ let events2;
120103
+ if (data.eventType === "run_started" && run) {
120104
+ const allEvents = await paginatedFileSystemQuery({
120105
+ directory: path$3.join(basedir, "events"),
120106
+ schema: EventSchema,
120107
+ filePrefix: `${effectiveRunId}-`,
120108
+ sortOrder: "asc",
120109
+ getCreatedAt: getObjectCreatedAt("evnt"),
120110
+ getId: (e) => e.eventId
120111
+ });
120112
+ events2 = allEvents.data;
120113
+ }
120065
120114
  return {
120066
120115
  event: filteredEvent,
120067
120116
  run,
120068
120117
  step,
120069
120118
  hook,
120070
- wait
120119
+ wait,
120120
+ events: events2
120071
120121
  };
120072
120122
  },
120073
120123
  async get(runId, eventId, params) {
@@ -120535,12 +120585,14 @@ function createLocalWorld(args) {
120535
120585
  const mergedConfig = { ...config.value, ...definedArgs };
120536
120586
  const tag = mergedConfig.tag;
120537
120587
  const queue = createQueue$2(mergedConfig);
120588
+ const storage = createStorage$1(mergedConfig.dataDir, tag);
120538
120589
  return {
120539
120590
  ...queue,
120540
- ...createStorage$1(mergedConfig.dataDir, tag),
120591
+ ...storage,
120541
120592
  ...instrumentObject$1("world.streams", createStreamer$1(mergedConfig.dataDir, tag)),
120542
120593
  async start() {
120543
120594
  await initDataDir(mergedConfig.dataDir);
120595
+ await reenqueueActiveRuns(storage.runs, queue.queue, "world-local");
120544
120596
  },
120545
120597
  async close() {
120546
120598
  await queue.close();
@@ -120550,7 +120602,7 @@ function createLocalWorld(args) {
120550
120602
  const basedir = mergedConfig.dataDir;
120551
120603
  const hooksDir = path$3.join(basedir, "hooks");
120552
120604
  const taggedHookFiles = await listTaggedFiles(hooksDir, tag);
120553
- const { HookSchema: HookSchema2 } = await import("./index-BL4Kw0eA.js");
120605
+ const { HookSchema: HookSchema2 } = await import("./index-DymBv9ds.js");
120554
120606
  await Promise.all(taggedHookFiles.map(async (hookFile) => {
120555
120607
  const hook = await readJSON(path$3.join(hooksDir, hookFile), HookSchema2);
120556
120608
  if (hook == null ? void 0 : hook.token) {
@@ -120799,7 +120851,7 @@ function instrumentObject(prefix, o) {
120799
120851
  }
120800
120852
  return handlers2;
120801
120853
  }
120802
- const version$1 = "4.1.0-beta.45";
120854
+ const version$1 = "4.1.0-beta.47";
120803
120855
  const HTTP_DEBUG_ENABLED = typeof process !== "undefined" && typeof process.env.DEBUG === "string" && (process.env.DEBUG.includes("workflow:") || process.env.DEBUG === "*");
120804
120856
  function httpLog(method, endpoint, status, ms2) {
120805
120857
  if (HTTP_DEBUG_ENABLED) {
@@ -125187,6 +125239,1961 @@ const BASE64_LOOKUP = new Uint8Array(128).fill(255);
125187
125239
  for (let i = 0; i < BASE64_CHARS.length; i++) {
125188
125240
  BASE64_LOOKUP[BASE64_CHARS.charCodeAt(i)] = i;
125189
125241
  }
125242
+ var re = { exports: {} };
125243
+ var constants;
125244
+ var hasRequiredConstants;
125245
+ function requireConstants() {
125246
+ if (hasRequiredConstants) return constants;
125247
+ hasRequiredConstants = 1;
125248
+ const SEMVER_SPEC_VERSION = "2.0.0";
125249
+ const MAX_LENGTH = 256;
125250
+ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
125251
+ 9007199254740991;
125252
+ const MAX_SAFE_COMPONENT_LENGTH = 16;
125253
+ const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
125254
+ const RELEASE_TYPES = [
125255
+ "major",
125256
+ "premajor",
125257
+ "minor",
125258
+ "preminor",
125259
+ "patch",
125260
+ "prepatch",
125261
+ "prerelease"
125262
+ ];
125263
+ constants = {
125264
+ MAX_LENGTH,
125265
+ MAX_SAFE_COMPONENT_LENGTH,
125266
+ MAX_SAFE_BUILD_LENGTH,
125267
+ MAX_SAFE_INTEGER,
125268
+ RELEASE_TYPES,
125269
+ SEMVER_SPEC_VERSION,
125270
+ FLAG_INCLUDE_PRERELEASE: 1,
125271
+ FLAG_LOOSE: 2
125272
+ };
125273
+ return constants;
125274
+ }
125275
+ var debug_1;
125276
+ var hasRequiredDebug;
125277
+ function requireDebug() {
125278
+ if (hasRequiredDebug) return debug_1;
125279
+ hasRequiredDebug = 1;
125280
+ const debug2 = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
125281
+ };
125282
+ debug_1 = debug2;
125283
+ return debug_1;
125284
+ }
125285
+ var hasRequiredRe;
125286
+ function requireRe() {
125287
+ if (hasRequiredRe) return re.exports;
125288
+ hasRequiredRe = 1;
125289
+ (function(module, exports$1) {
125290
+ const {
125291
+ MAX_SAFE_COMPONENT_LENGTH,
125292
+ MAX_SAFE_BUILD_LENGTH,
125293
+ MAX_LENGTH
125294
+ } = requireConstants();
125295
+ const debug2 = requireDebug();
125296
+ exports$1 = module.exports = {};
125297
+ const re2 = exports$1.re = [];
125298
+ const safeRe = exports$1.safeRe = [];
125299
+ const src2 = exports$1.src = [];
125300
+ const safeSrc = exports$1.safeSrc = [];
125301
+ const t = exports$1.t = {};
125302
+ let R2 = 0;
125303
+ const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
125304
+ const safeRegexReplacements = [
125305
+ ["\\s", 1],
125306
+ ["\\d", MAX_LENGTH],
125307
+ [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
125308
+ ];
125309
+ const makeSafeRegex = (value) => {
125310
+ for (const [token, max2] of safeRegexReplacements) {
125311
+ value = value.split(`${token}*`).join(`${token}{0,${max2}}`).split(`${token}+`).join(`${token}{1,${max2}}`);
125312
+ }
125313
+ return value;
125314
+ };
125315
+ const createToken = (name2, value, isGlobal) => {
125316
+ const safe = makeSafeRegex(value);
125317
+ const index2 = R2++;
125318
+ debug2(name2, index2, value);
125319
+ t[name2] = index2;
125320
+ src2[index2] = value;
125321
+ safeSrc[index2] = safe;
125322
+ re2[index2] = new RegExp(value, isGlobal ? "g" : void 0);
125323
+ safeRe[index2] = new RegExp(safe, isGlobal ? "g" : void 0);
125324
+ };
125325
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
125326
+ createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
125327
+ createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
125328
+ createToken("MAINVERSION", `(${src2[t.NUMERICIDENTIFIER]})\\.(${src2[t.NUMERICIDENTIFIER]})\\.(${src2[t.NUMERICIDENTIFIER]})`);
125329
+ createToken("MAINVERSIONLOOSE", `(${src2[t.NUMERICIDENTIFIERLOOSE]})\\.(${src2[t.NUMERICIDENTIFIERLOOSE]})\\.(${src2[t.NUMERICIDENTIFIERLOOSE]})`);
125330
+ createToken("PRERELEASEIDENTIFIER", `(?:${src2[t.NONNUMERICIDENTIFIER]}|${src2[t.NUMERICIDENTIFIER]})`);
125331
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src2[t.NONNUMERICIDENTIFIER]}|${src2[t.NUMERICIDENTIFIERLOOSE]})`);
125332
+ createToken("PRERELEASE", `(?:-(${src2[t.PRERELEASEIDENTIFIER]}(?:\\.${src2[t.PRERELEASEIDENTIFIER]})*))`);
125333
+ createToken("PRERELEASELOOSE", `(?:-?(${src2[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src2[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
125334
+ createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
125335
+ createToken("BUILD", `(?:\\+(${src2[t.BUILDIDENTIFIER]}(?:\\.${src2[t.BUILDIDENTIFIER]})*))`);
125336
+ createToken("FULLPLAIN", `v?${src2[t.MAINVERSION]}${src2[t.PRERELEASE]}?${src2[t.BUILD]}?`);
125337
+ createToken("FULL", `^${src2[t.FULLPLAIN]}$`);
125338
+ createToken("LOOSEPLAIN", `[v=\\s]*${src2[t.MAINVERSIONLOOSE]}${src2[t.PRERELEASELOOSE]}?${src2[t.BUILD]}?`);
125339
+ createToken("LOOSE", `^${src2[t.LOOSEPLAIN]}$`);
125340
+ createToken("GTLT", "((?:<|>)?=?)");
125341
+ createToken("XRANGEIDENTIFIERLOOSE", `${src2[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
125342
+ createToken("XRANGEIDENTIFIER", `${src2[t.NUMERICIDENTIFIER]}|x|X|\\*`);
125343
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src2[t.XRANGEIDENTIFIER]})(?:\\.(${src2[t.XRANGEIDENTIFIER]})(?:\\.(${src2[t.XRANGEIDENTIFIER]})(?:${src2[t.PRERELEASE]})?${src2[t.BUILD]}?)?)?`);
125344
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src2[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src2[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src2[t.XRANGEIDENTIFIERLOOSE]})(?:${src2[t.PRERELEASELOOSE]})?${src2[t.BUILD]}?)?)?`);
125345
+ createToken("XRANGE", `^${src2[t.GTLT]}\\s*${src2[t.XRANGEPLAIN]}$`);
125346
+ createToken("XRANGELOOSE", `^${src2[t.GTLT]}\\s*${src2[t.XRANGEPLAINLOOSE]}$`);
125347
+ createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
125348
+ createToken("COERCE", `${src2[t.COERCEPLAIN]}(?:$|[^\\d])`);
125349
+ createToken("COERCEFULL", src2[t.COERCEPLAIN] + `(?:${src2[t.PRERELEASE]})?(?:${src2[t.BUILD]})?(?:$|[^\\d])`);
125350
+ createToken("COERCERTL", src2[t.COERCE], true);
125351
+ createToken("COERCERTLFULL", src2[t.COERCEFULL], true);
125352
+ createToken("LONETILDE", "(?:~>?)");
125353
+ createToken("TILDETRIM", `(\\s*)${src2[t.LONETILDE]}\\s+`, true);
125354
+ exports$1.tildeTrimReplace = "$1~";
125355
+ createToken("TILDE", `^${src2[t.LONETILDE]}${src2[t.XRANGEPLAIN]}$`);
125356
+ createToken("TILDELOOSE", `^${src2[t.LONETILDE]}${src2[t.XRANGEPLAINLOOSE]}$`);
125357
+ createToken("LONECARET", "(?:\\^)");
125358
+ createToken("CARETTRIM", `(\\s*)${src2[t.LONECARET]}\\s+`, true);
125359
+ exports$1.caretTrimReplace = "$1^";
125360
+ createToken("CARET", `^${src2[t.LONECARET]}${src2[t.XRANGEPLAIN]}$`);
125361
+ createToken("CARETLOOSE", `^${src2[t.LONECARET]}${src2[t.XRANGEPLAINLOOSE]}$`);
125362
+ createToken("COMPARATORLOOSE", `^${src2[t.GTLT]}\\s*(${src2[t.LOOSEPLAIN]})$|^$`);
125363
+ createToken("COMPARATOR", `^${src2[t.GTLT]}\\s*(${src2[t.FULLPLAIN]})$|^$`);
125364
+ createToken("COMPARATORTRIM", `(\\s*)${src2[t.GTLT]}\\s*(${src2[t.LOOSEPLAIN]}|${src2[t.XRANGEPLAIN]})`, true);
125365
+ exports$1.comparatorTrimReplace = "$1$2$3";
125366
+ createToken("HYPHENRANGE", `^\\s*(${src2[t.XRANGEPLAIN]})\\s+-\\s+(${src2[t.XRANGEPLAIN]})\\s*$`);
125367
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src2[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src2[t.XRANGEPLAINLOOSE]})\\s*$`);
125368
+ createToken("STAR", "(<|>)?=?\\s*\\*");
125369
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
125370
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
125371
+ })(re, re.exports);
125372
+ return re.exports;
125373
+ }
125374
+ var parseOptions_1;
125375
+ var hasRequiredParseOptions;
125376
+ function requireParseOptions() {
125377
+ if (hasRequiredParseOptions) return parseOptions_1;
125378
+ hasRequiredParseOptions = 1;
125379
+ const looseOption = Object.freeze({ loose: true });
125380
+ const emptyOpts = Object.freeze({});
125381
+ const parseOptions2 = (options) => {
125382
+ if (!options) {
125383
+ return emptyOpts;
125384
+ }
125385
+ if (typeof options !== "object") {
125386
+ return looseOption;
125387
+ }
125388
+ return options;
125389
+ };
125390
+ parseOptions_1 = parseOptions2;
125391
+ return parseOptions_1;
125392
+ }
125393
+ var identifiers;
125394
+ var hasRequiredIdentifiers;
125395
+ function requireIdentifiers() {
125396
+ if (hasRequiredIdentifiers) return identifiers;
125397
+ hasRequiredIdentifiers = 1;
125398
+ const numeric2 = /^[0-9]+$/;
125399
+ const compareIdentifiers = (a2, b2) => {
125400
+ if (typeof a2 === "number" && typeof b2 === "number") {
125401
+ return a2 === b2 ? 0 : a2 < b2 ? -1 : 1;
125402
+ }
125403
+ const anum = numeric2.test(a2);
125404
+ const bnum = numeric2.test(b2);
125405
+ if (anum && bnum) {
125406
+ a2 = +a2;
125407
+ b2 = +b2;
125408
+ }
125409
+ return a2 === b2 ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a2 < b2 ? -1 : 1;
125410
+ };
125411
+ const rcompareIdentifiers = (a2, b2) => compareIdentifiers(b2, a2);
125412
+ identifiers = {
125413
+ compareIdentifiers,
125414
+ rcompareIdentifiers
125415
+ };
125416
+ return identifiers;
125417
+ }
125418
+ var semver$2;
125419
+ var hasRequiredSemver$1;
125420
+ function requireSemver$1() {
125421
+ if (hasRequiredSemver$1) return semver$2;
125422
+ hasRequiredSemver$1 = 1;
125423
+ const debug2 = requireDebug();
125424
+ const { MAX_LENGTH, MAX_SAFE_INTEGER } = requireConstants();
125425
+ const { safeRe: re2, t } = requireRe();
125426
+ const parseOptions2 = requireParseOptions();
125427
+ const { compareIdentifiers } = requireIdentifiers();
125428
+ class SemVer {
125429
+ constructor(version2, options) {
125430
+ options = parseOptions2(options);
125431
+ if (version2 instanceof SemVer) {
125432
+ if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
125433
+ return version2;
125434
+ } else {
125435
+ version2 = version2.version;
125436
+ }
125437
+ } else if (typeof version2 !== "string") {
125438
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
125439
+ }
125440
+ if (version2.length > MAX_LENGTH) {
125441
+ throw new TypeError(
125442
+ `version is longer than ${MAX_LENGTH} characters`
125443
+ );
125444
+ }
125445
+ debug2("SemVer", version2, options);
125446
+ this.options = options;
125447
+ this.loose = !!options.loose;
125448
+ this.includePrerelease = !!options.includePrerelease;
125449
+ const m2 = version2.trim().match(options.loose ? re2[t.LOOSE] : re2[t.FULL]);
125450
+ if (!m2) {
125451
+ throw new TypeError(`Invalid Version: ${version2}`);
125452
+ }
125453
+ this.raw = version2;
125454
+ this.major = +m2[1];
125455
+ this.minor = +m2[2];
125456
+ this.patch = +m2[3];
125457
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
125458
+ throw new TypeError("Invalid major version");
125459
+ }
125460
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
125461
+ throw new TypeError("Invalid minor version");
125462
+ }
125463
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
125464
+ throw new TypeError("Invalid patch version");
125465
+ }
125466
+ if (!m2[4]) {
125467
+ this.prerelease = [];
125468
+ } else {
125469
+ this.prerelease = m2[4].split(".").map((id2) => {
125470
+ if (/^[0-9]+$/.test(id2)) {
125471
+ const num = +id2;
125472
+ if (num >= 0 && num < MAX_SAFE_INTEGER) {
125473
+ return num;
125474
+ }
125475
+ }
125476
+ return id2;
125477
+ });
125478
+ }
125479
+ this.build = m2[5] ? m2[5].split(".") : [];
125480
+ this.format();
125481
+ }
125482
+ format() {
125483
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
125484
+ if (this.prerelease.length) {
125485
+ this.version += `-${this.prerelease.join(".")}`;
125486
+ }
125487
+ return this.version;
125488
+ }
125489
+ toString() {
125490
+ return this.version;
125491
+ }
125492
+ compare(other) {
125493
+ debug2("SemVer.compare", this.version, this.options, other);
125494
+ if (!(other instanceof SemVer)) {
125495
+ if (typeof other === "string" && other === this.version) {
125496
+ return 0;
125497
+ }
125498
+ other = new SemVer(other, this.options);
125499
+ }
125500
+ if (other.version === this.version) {
125501
+ return 0;
125502
+ }
125503
+ return this.compareMain(other) || this.comparePre(other);
125504
+ }
125505
+ compareMain(other) {
125506
+ if (!(other instanceof SemVer)) {
125507
+ other = new SemVer(other, this.options);
125508
+ }
125509
+ if (this.major < other.major) {
125510
+ return -1;
125511
+ }
125512
+ if (this.major > other.major) {
125513
+ return 1;
125514
+ }
125515
+ if (this.minor < other.minor) {
125516
+ return -1;
125517
+ }
125518
+ if (this.minor > other.minor) {
125519
+ return 1;
125520
+ }
125521
+ if (this.patch < other.patch) {
125522
+ return -1;
125523
+ }
125524
+ if (this.patch > other.patch) {
125525
+ return 1;
125526
+ }
125527
+ return 0;
125528
+ }
125529
+ comparePre(other) {
125530
+ if (!(other instanceof SemVer)) {
125531
+ other = new SemVer(other, this.options);
125532
+ }
125533
+ if (this.prerelease.length && !other.prerelease.length) {
125534
+ return -1;
125535
+ } else if (!this.prerelease.length && other.prerelease.length) {
125536
+ return 1;
125537
+ } else if (!this.prerelease.length && !other.prerelease.length) {
125538
+ return 0;
125539
+ }
125540
+ let i = 0;
125541
+ do {
125542
+ const a2 = this.prerelease[i];
125543
+ const b2 = other.prerelease[i];
125544
+ debug2("prerelease compare", i, a2, b2);
125545
+ if (a2 === void 0 && b2 === void 0) {
125546
+ return 0;
125547
+ } else if (b2 === void 0) {
125548
+ return 1;
125549
+ } else if (a2 === void 0) {
125550
+ return -1;
125551
+ } else if (a2 === b2) {
125552
+ continue;
125553
+ } else {
125554
+ return compareIdentifiers(a2, b2);
125555
+ }
125556
+ } while (++i);
125557
+ }
125558
+ compareBuild(other) {
125559
+ if (!(other instanceof SemVer)) {
125560
+ other = new SemVer(other, this.options);
125561
+ }
125562
+ let i = 0;
125563
+ do {
125564
+ const a2 = this.build[i];
125565
+ const b2 = other.build[i];
125566
+ debug2("build compare", i, a2, b2);
125567
+ if (a2 === void 0 && b2 === void 0) {
125568
+ return 0;
125569
+ } else if (b2 === void 0) {
125570
+ return 1;
125571
+ } else if (a2 === void 0) {
125572
+ return -1;
125573
+ } else if (a2 === b2) {
125574
+ continue;
125575
+ } else {
125576
+ return compareIdentifiers(a2, b2);
125577
+ }
125578
+ } while (++i);
125579
+ }
125580
+ // preminor will bump the version up to the next minor release, and immediately
125581
+ // down to pre-release. premajor and prepatch work the same way.
125582
+ inc(release, identifier, identifierBase) {
125583
+ if (release.startsWith("pre")) {
125584
+ if (!identifier && identifierBase === false) {
125585
+ throw new Error("invalid increment argument: identifier is empty");
125586
+ }
125587
+ if (identifier) {
125588
+ const match2 = `-${identifier}`.match(this.options.loose ? re2[t.PRERELEASELOOSE] : re2[t.PRERELEASE]);
125589
+ if (!match2 || match2[1] !== identifier) {
125590
+ throw new Error(`invalid identifier: ${identifier}`);
125591
+ }
125592
+ }
125593
+ }
125594
+ switch (release) {
125595
+ case "premajor":
125596
+ this.prerelease.length = 0;
125597
+ this.patch = 0;
125598
+ this.minor = 0;
125599
+ this.major++;
125600
+ this.inc("pre", identifier, identifierBase);
125601
+ break;
125602
+ case "preminor":
125603
+ this.prerelease.length = 0;
125604
+ this.patch = 0;
125605
+ this.minor++;
125606
+ this.inc("pre", identifier, identifierBase);
125607
+ break;
125608
+ case "prepatch":
125609
+ this.prerelease.length = 0;
125610
+ this.inc("patch", identifier, identifierBase);
125611
+ this.inc("pre", identifier, identifierBase);
125612
+ break;
125613
+ // If the input is a non-prerelease version, this acts the same as
125614
+ // prepatch.
125615
+ case "prerelease":
125616
+ if (this.prerelease.length === 0) {
125617
+ this.inc("patch", identifier, identifierBase);
125618
+ }
125619
+ this.inc("pre", identifier, identifierBase);
125620
+ break;
125621
+ case "release":
125622
+ if (this.prerelease.length === 0) {
125623
+ throw new Error(`version ${this.raw} is not a prerelease`);
125624
+ }
125625
+ this.prerelease.length = 0;
125626
+ break;
125627
+ case "major":
125628
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
125629
+ this.major++;
125630
+ }
125631
+ this.minor = 0;
125632
+ this.patch = 0;
125633
+ this.prerelease = [];
125634
+ break;
125635
+ case "minor":
125636
+ if (this.patch !== 0 || this.prerelease.length === 0) {
125637
+ this.minor++;
125638
+ }
125639
+ this.patch = 0;
125640
+ this.prerelease = [];
125641
+ break;
125642
+ case "patch":
125643
+ if (this.prerelease.length === 0) {
125644
+ this.patch++;
125645
+ }
125646
+ this.prerelease = [];
125647
+ break;
125648
+ // This probably shouldn't be used publicly.
125649
+ // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
125650
+ case "pre": {
125651
+ const base = Number(identifierBase) ? 1 : 0;
125652
+ if (this.prerelease.length === 0) {
125653
+ this.prerelease = [base];
125654
+ } else {
125655
+ let i = this.prerelease.length;
125656
+ while (--i >= 0) {
125657
+ if (typeof this.prerelease[i] === "number") {
125658
+ this.prerelease[i]++;
125659
+ i = -2;
125660
+ }
125661
+ }
125662
+ if (i === -1) {
125663
+ if (identifier === this.prerelease.join(".") && identifierBase === false) {
125664
+ throw new Error("invalid increment argument: identifier already exists");
125665
+ }
125666
+ this.prerelease.push(base);
125667
+ }
125668
+ }
125669
+ if (identifier) {
125670
+ let prerelease = [identifier, base];
125671
+ if (identifierBase === false) {
125672
+ prerelease = [identifier];
125673
+ }
125674
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
125675
+ if (isNaN(this.prerelease[1])) {
125676
+ this.prerelease = prerelease;
125677
+ }
125678
+ } else {
125679
+ this.prerelease = prerelease;
125680
+ }
125681
+ }
125682
+ break;
125683
+ }
125684
+ default:
125685
+ throw new Error(`invalid increment argument: ${release}`);
125686
+ }
125687
+ this.raw = this.format();
125688
+ if (this.build.length) {
125689
+ this.raw += `+${this.build.join(".")}`;
125690
+ }
125691
+ return this;
125692
+ }
125693
+ }
125694
+ semver$2 = SemVer;
125695
+ return semver$2;
125696
+ }
125697
+ var parse_1;
125698
+ var hasRequiredParse;
125699
+ function requireParse() {
125700
+ if (hasRequiredParse) return parse_1;
125701
+ hasRequiredParse = 1;
125702
+ const SemVer = requireSemver$1();
125703
+ const parse2 = (version2, options, throwErrors = false) => {
125704
+ if (version2 instanceof SemVer) {
125705
+ return version2;
125706
+ }
125707
+ try {
125708
+ return new SemVer(version2, options);
125709
+ } catch (er2) {
125710
+ if (!throwErrors) {
125711
+ return null;
125712
+ }
125713
+ throw er2;
125714
+ }
125715
+ };
125716
+ parse_1 = parse2;
125717
+ return parse_1;
125718
+ }
125719
+ var valid_1;
125720
+ var hasRequiredValid$1;
125721
+ function requireValid$1() {
125722
+ if (hasRequiredValid$1) return valid_1;
125723
+ hasRequiredValid$1 = 1;
125724
+ const parse2 = requireParse();
125725
+ const valid2 = (version2, options) => {
125726
+ const v2 = parse2(version2, options);
125727
+ return v2 ? v2.version : null;
125728
+ };
125729
+ valid_1 = valid2;
125730
+ return valid_1;
125731
+ }
125732
+ var clean_1;
125733
+ var hasRequiredClean;
125734
+ function requireClean() {
125735
+ if (hasRequiredClean) return clean_1;
125736
+ hasRequiredClean = 1;
125737
+ const parse2 = requireParse();
125738
+ const clean = (version2, options) => {
125739
+ const s2 = parse2(version2.trim().replace(/^[=v]+/, ""), options);
125740
+ return s2 ? s2.version : null;
125741
+ };
125742
+ clean_1 = clean;
125743
+ return clean_1;
125744
+ }
125745
+ var inc_1;
125746
+ var hasRequiredInc;
125747
+ function requireInc() {
125748
+ if (hasRequiredInc) return inc_1;
125749
+ hasRequiredInc = 1;
125750
+ const SemVer = requireSemver$1();
125751
+ const inc = (version2, release, options, identifier, identifierBase) => {
125752
+ if (typeof options === "string") {
125753
+ identifierBase = identifier;
125754
+ identifier = options;
125755
+ options = void 0;
125756
+ }
125757
+ try {
125758
+ return new SemVer(
125759
+ version2 instanceof SemVer ? version2.version : version2,
125760
+ options
125761
+ ).inc(release, identifier, identifierBase).version;
125762
+ } catch (er2) {
125763
+ return null;
125764
+ }
125765
+ };
125766
+ inc_1 = inc;
125767
+ return inc_1;
125768
+ }
125769
+ var diff_1;
125770
+ var hasRequiredDiff;
125771
+ function requireDiff() {
125772
+ if (hasRequiredDiff) return diff_1;
125773
+ hasRequiredDiff = 1;
125774
+ const parse2 = requireParse();
125775
+ const diff = (version1, version2) => {
125776
+ const v1 = parse2(version1, null, true);
125777
+ const v2 = parse2(version2, null, true);
125778
+ const comparison = v1.compare(v2);
125779
+ if (comparison === 0) {
125780
+ return null;
125781
+ }
125782
+ const v1Higher = comparison > 0;
125783
+ const highVersion = v1Higher ? v1 : v2;
125784
+ const lowVersion = v1Higher ? v2 : v1;
125785
+ const highHasPre = !!highVersion.prerelease.length;
125786
+ const lowHasPre = !!lowVersion.prerelease.length;
125787
+ if (lowHasPre && !highHasPre) {
125788
+ if (!lowVersion.patch && !lowVersion.minor) {
125789
+ return "major";
125790
+ }
125791
+ if (lowVersion.compareMain(highVersion) === 0) {
125792
+ if (lowVersion.minor && !lowVersion.patch) {
125793
+ return "minor";
125794
+ }
125795
+ return "patch";
125796
+ }
125797
+ }
125798
+ const prefix = highHasPre ? "pre" : "";
125799
+ if (v1.major !== v2.major) {
125800
+ return prefix + "major";
125801
+ }
125802
+ if (v1.minor !== v2.minor) {
125803
+ return prefix + "minor";
125804
+ }
125805
+ if (v1.patch !== v2.patch) {
125806
+ return prefix + "patch";
125807
+ }
125808
+ return "prerelease";
125809
+ };
125810
+ diff_1 = diff;
125811
+ return diff_1;
125812
+ }
125813
+ var major_1;
125814
+ var hasRequiredMajor;
125815
+ function requireMajor() {
125816
+ if (hasRequiredMajor) return major_1;
125817
+ hasRequiredMajor = 1;
125818
+ const SemVer = requireSemver$1();
125819
+ const major = (a2, loose) => new SemVer(a2, loose).major;
125820
+ major_1 = major;
125821
+ return major_1;
125822
+ }
125823
+ var minor_1;
125824
+ var hasRequiredMinor;
125825
+ function requireMinor() {
125826
+ if (hasRequiredMinor) return minor_1;
125827
+ hasRequiredMinor = 1;
125828
+ const SemVer = requireSemver$1();
125829
+ const minor = (a2, loose) => new SemVer(a2, loose).minor;
125830
+ minor_1 = minor;
125831
+ return minor_1;
125832
+ }
125833
+ var patch_1;
125834
+ var hasRequiredPatch;
125835
+ function requirePatch() {
125836
+ if (hasRequiredPatch) return patch_1;
125837
+ hasRequiredPatch = 1;
125838
+ const SemVer = requireSemver$1();
125839
+ const patch2 = (a2, loose) => new SemVer(a2, loose).patch;
125840
+ patch_1 = patch2;
125841
+ return patch_1;
125842
+ }
125843
+ var prerelease_1;
125844
+ var hasRequiredPrerelease;
125845
+ function requirePrerelease() {
125846
+ if (hasRequiredPrerelease) return prerelease_1;
125847
+ hasRequiredPrerelease = 1;
125848
+ const parse2 = requireParse();
125849
+ const prerelease = (version2, options) => {
125850
+ const parsed = parse2(version2, options);
125851
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
125852
+ };
125853
+ prerelease_1 = prerelease;
125854
+ return prerelease_1;
125855
+ }
125856
+ var compare_1;
125857
+ var hasRequiredCompare;
125858
+ function requireCompare() {
125859
+ if (hasRequiredCompare) return compare_1;
125860
+ hasRequiredCompare = 1;
125861
+ const SemVer = requireSemver$1();
125862
+ const compare = (a2, b2, loose) => new SemVer(a2, loose).compare(new SemVer(b2, loose));
125863
+ compare_1 = compare;
125864
+ return compare_1;
125865
+ }
125866
+ var rcompare_1;
125867
+ var hasRequiredRcompare;
125868
+ function requireRcompare() {
125869
+ if (hasRequiredRcompare) return rcompare_1;
125870
+ hasRequiredRcompare = 1;
125871
+ const compare = requireCompare();
125872
+ const rcompare = (a2, b2, loose) => compare(b2, a2, loose);
125873
+ rcompare_1 = rcompare;
125874
+ return rcompare_1;
125875
+ }
125876
+ var compareLoose_1;
125877
+ var hasRequiredCompareLoose;
125878
+ function requireCompareLoose() {
125879
+ if (hasRequiredCompareLoose) return compareLoose_1;
125880
+ hasRequiredCompareLoose = 1;
125881
+ const compare = requireCompare();
125882
+ const compareLoose = (a2, b2) => compare(a2, b2, true);
125883
+ compareLoose_1 = compareLoose;
125884
+ return compareLoose_1;
125885
+ }
125886
+ var compareBuild_1;
125887
+ var hasRequiredCompareBuild;
125888
+ function requireCompareBuild() {
125889
+ if (hasRequiredCompareBuild) return compareBuild_1;
125890
+ hasRequiredCompareBuild = 1;
125891
+ const SemVer = requireSemver$1();
125892
+ const compareBuild = (a2, b2, loose) => {
125893
+ const versionA = new SemVer(a2, loose);
125894
+ const versionB = new SemVer(b2, loose);
125895
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
125896
+ };
125897
+ compareBuild_1 = compareBuild;
125898
+ return compareBuild_1;
125899
+ }
125900
+ var sort_1;
125901
+ var hasRequiredSort;
125902
+ function requireSort() {
125903
+ if (hasRequiredSort) return sort_1;
125904
+ hasRequiredSort = 1;
125905
+ const compareBuild = requireCompareBuild();
125906
+ const sort = (list2, loose) => list2.sort((a2, b2) => compareBuild(a2, b2, loose));
125907
+ sort_1 = sort;
125908
+ return sort_1;
125909
+ }
125910
+ var rsort_1;
125911
+ var hasRequiredRsort;
125912
+ function requireRsort() {
125913
+ if (hasRequiredRsort) return rsort_1;
125914
+ hasRequiredRsort = 1;
125915
+ const compareBuild = requireCompareBuild();
125916
+ const rsort = (list2, loose) => list2.sort((a2, b2) => compareBuild(b2, a2, loose));
125917
+ rsort_1 = rsort;
125918
+ return rsort_1;
125919
+ }
125920
+ var gt_1;
125921
+ var hasRequiredGt;
125922
+ function requireGt() {
125923
+ if (hasRequiredGt) return gt_1;
125924
+ hasRequiredGt = 1;
125925
+ const compare = requireCompare();
125926
+ const gt = (a2, b2, loose) => compare(a2, b2, loose) > 0;
125927
+ gt_1 = gt;
125928
+ return gt_1;
125929
+ }
125930
+ var lt_1;
125931
+ var hasRequiredLt;
125932
+ function requireLt() {
125933
+ if (hasRequiredLt) return lt_1;
125934
+ hasRequiredLt = 1;
125935
+ const compare = requireCompare();
125936
+ const lt2 = (a2, b2, loose) => compare(a2, b2, loose) < 0;
125937
+ lt_1 = lt2;
125938
+ return lt_1;
125939
+ }
125940
+ var eq_1;
125941
+ var hasRequiredEq;
125942
+ function requireEq() {
125943
+ if (hasRequiredEq) return eq_1;
125944
+ hasRequiredEq = 1;
125945
+ const compare = requireCompare();
125946
+ const eq = (a2, b2, loose) => compare(a2, b2, loose) === 0;
125947
+ eq_1 = eq;
125948
+ return eq_1;
125949
+ }
125950
+ var neq_1;
125951
+ var hasRequiredNeq;
125952
+ function requireNeq() {
125953
+ if (hasRequiredNeq) return neq_1;
125954
+ hasRequiredNeq = 1;
125955
+ const compare = requireCompare();
125956
+ const neq = (a2, b2, loose) => compare(a2, b2, loose) !== 0;
125957
+ neq_1 = neq;
125958
+ return neq_1;
125959
+ }
125960
+ var gte_1;
125961
+ var hasRequiredGte;
125962
+ function requireGte() {
125963
+ if (hasRequiredGte) return gte_1;
125964
+ hasRequiredGte = 1;
125965
+ const compare = requireCompare();
125966
+ const gte2 = (a2, b2, loose) => compare(a2, b2, loose) >= 0;
125967
+ gte_1 = gte2;
125968
+ return gte_1;
125969
+ }
125970
+ var lte_1;
125971
+ var hasRequiredLte;
125972
+ function requireLte() {
125973
+ if (hasRequiredLte) return lte_1;
125974
+ hasRequiredLte = 1;
125975
+ const compare = requireCompare();
125976
+ const lte2 = (a2, b2, loose) => compare(a2, b2, loose) <= 0;
125977
+ lte_1 = lte2;
125978
+ return lte_1;
125979
+ }
125980
+ var cmp_1;
125981
+ var hasRequiredCmp;
125982
+ function requireCmp() {
125983
+ if (hasRequiredCmp) return cmp_1;
125984
+ hasRequiredCmp = 1;
125985
+ const eq = requireEq();
125986
+ const neq = requireNeq();
125987
+ const gt = requireGt();
125988
+ const gte2 = requireGte();
125989
+ const lt2 = requireLt();
125990
+ const lte2 = requireLte();
125991
+ const cmp = (a2, op, b2, loose) => {
125992
+ switch (op) {
125993
+ case "===":
125994
+ if (typeof a2 === "object") {
125995
+ a2 = a2.version;
125996
+ }
125997
+ if (typeof b2 === "object") {
125998
+ b2 = b2.version;
125999
+ }
126000
+ return a2 === b2;
126001
+ case "!==":
126002
+ if (typeof a2 === "object") {
126003
+ a2 = a2.version;
126004
+ }
126005
+ if (typeof b2 === "object") {
126006
+ b2 = b2.version;
126007
+ }
126008
+ return a2 !== b2;
126009
+ case "":
126010
+ case "=":
126011
+ case "==":
126012
+ return eq(a2, b2, loose);
126013
+ case "!=":
126014
+ return neq(a2, b2, loose);
126015
+ case ">":
126016
+ return gt(a2, b2, loose);
126017
+ case ">=":
126018
+ return gte2(a2, b2, loose);
126019
+ case "<":
126020
+ return lt2(a2, b2, loose);
126021
+ case "<=":
126022
+ return lte2(a2, b2, loose);
126023
+ default:
126024
+ throw new TypeError(`Invalid operator: ${op}`);
126025
+ }
126026
+ };
126027
+ cmp_1 = cmp;
126028
+ return cmp_1;
126029
+ }
126030
+ var coerce_1;
126031
+ var hasRequiredCoerce;
126032
+ function requireCoerce() {
126033
+ if (hasRequiredCoerce) return coerce_1;
126034
+ hasRequiredCoerce = 1;
126035
+ const SemVer = requireSemver$1();
126036
+ const parse2 = requireParse();
126037
+ const { safeRe: re2, t } = requireRe();
126038
+ const coerce2 = (version2, options) => {
126039
+ if (version2 instanceof SemVer) {
126040
+ return version2;
126041
+ }
126042
+ if (typeof version2 === "number") {
126043
+ version2 = String(version2);
126044
+ }
126045
+ if (typeof version2 !== "string") {
126046
+ return null;
126047
+ }
126048
+ options = options || {};
126049
+ let match2 = null;
126050
+ if (!options.rtl) {
126051
+ match2 = version2.match(options.includePrerelease ? re2[t.COERCEFULL] : re2[t.COERCE]);
126052
+ } else {
126053
+ const coerceRtlRegex = options.includePrerelease ? re2[t.COERCERTLFULL] : re2[t.COERCERTL];
126054
+ let next2;
126055
+ while ((next2 = coerceRtlRegex.exec(version2)) && (!match2 || match2.index + match2[0].length !== version2.length)) {
126056
+ if (!match2 || next2.index + next2[0].length !== match2.index + match2[0].length) {
126057
+ match2 = next2;
126058
+ }
126059
+ coerceRtlRegex.lastIndex = next2.index + next2[1].length + next2[2].length;
126060
+ }
126061
+ coerceRtlRegex.lastIndex = -1;
126062
+ }
126063
+ if (match2 === null) {
126064
+ return null;
126065
+ }
126066
+ const major = match2[2];
126067
+ const minor = match2[3] || "0";
126068
+ const patch2 = match2[4] || "0";
126069
+ const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
126070
+ const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
126071
+ return parse2(`${major}.${minor}.${patch2}${prerelease}${build}`, options);
126072
+ };
126073
+ coerce_1 = coerce2;
126074
+ return coerce_1;
126075
+ }
126076
+ var lrucache;
126077
+ var hasRequiredLrucache;
126078
+ function requireLrucache() {
126079
+ if (hasRequiredLrucache) return lrucache;
126080
+ hasRequiredLrucache = 1;
126081
+ class LRUCache {
126082
+ constructor() {
126083
+ this.max = 1e3;
126084
+ this.map = /* @__PURE__ */ new Map();
126085
+ }
126086
+ get(key) {
126087
+ const value = this.map.get(key);
126088
+ if (value === void 0) {
126089
+ return void 0;
126090
+ } else {
126091
+ this.map.delete(key);
126092
+ this.map.set(key, value);
126093
+ return value;
126094
+ }
126095
+ }
126096
+ delete(key) {
126097
+ return this.map.delete(key);
126098
+ }
126099
+ set(key, value) {
126100
+ const deleted = this.delete(key);
126101
+ if (!deleted && value !== void 0) {
126102
+ if (this.map.size >= this.max) {
126103
+ const firstKey = this.map.keys().next().value;
126104
+ this.delete(firstKey);
126105
+ }
126106
+ this.map.set(key, value);
126107
+ }
126108
+ return this;
126109
+ }
126110
+ }
126111
+ lrucache = LRUCache;
126112
+ return lrucache;
126113
+ }
126114
+ var range;
126115
+ var hasRequiredRange;
126116
+ function requireRange() {
126117
+ if (hasRequiredRange) return range;
126118
+ hasRequiredRange = 1;
126119
+ const SPACE_CHARACTERS = /\s+/g;
126120
+ class Range {
126121
+ constructor(range2, options) {
126122
+ options = parseOptions2(options);
126123
+ if (range2 instanceof Range) {
126124
+ if (range2.loose === !!options.loose && range2.includePrerelease === !!options.includePrerelease) {
126125
+ return range2;
126126
+ } else {
126127
+ return new Range(range2.raw, options);
126128
+ }
126129
+ }
126130
+ if (range2 instanceof Comparator) {
126131
+ this.raw = range2.value;
126132
+ this.set = [[range2]];
126133
+ this.formatted = void 0;
126134
+ return this;
126135
+ }
126136
+ this.options = options;
126137
+ this.loose = !!options.loose;
126138
+ this.includePrerelease = !!options.includePrerelease;
126139
+ this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
126140
+ this.set = this.raw.split("||").map((r2) => this.parseRange(r2.trim())).filter((c) => c.length);
126141
+ if (!this.set.length) {
126142
+ throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
126143
+ }
126144
+ if (this.set.length > 1) {
126145
+ const first = this.set[0];
126146
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
126147
+ if (this.set.length === 0) {
126148
+ this.set = [first];
126149
+ } else if (this.set.length > 1) {
126150
+ for (const c of this.set) {
126151
+ if (c.length === 1 && isAny2(c[0])) {
126152
+ this.set = [c];
126153
+ break;
126154
+ }
126155
+ }
126156
+ }
126157
+ }
126158
+ this.formatted = void 0;
126159
+ }
126160
+ get range() {
126161
+ if (this.formatted === void 0) {
126162
+ this.formatted = "";
126163
+ for (let i = 0; i < this.set.length; i++) {
126164
+ if (i > 0) {
126165
+ this.formatted += "||";
126166
+ }
126167
+ const comps = this.set[i];
126168
+ for (let k2 = 0; k2 < comps.length; k2++) {
126169
+ if (k2 > 0) {
126170
+ this.formatted += " ";
126171
+ }
126172
+ this.formatted += comps[k2].toString().trim();
126173
+ }
126174
+ }
126175
+ }
126176
+ return this.formatted;
126177
+ }
126178
+ format() {
126179
+ return this.range;
126180
+ }
126181
+ toString() {
126182
+ return this.range;
126183
+ }
126184
+ parseRange(range2) {
126185
+ const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
126186
+ const memoKey = memoOpts + ":" + range2;
126187
+ const cached2 = cache2.get(memoKey);
126188
+ if (cached2) {
126189
+ return cached2;
126190
+ }
126191
+ const loose = this.options.loose;
126192
+ const hr2 = loose ? re2[t.HYPHENRANGELOOSE] : re2[t.HYPHENRANGE];
126193
+ range2 = range2.replace(hr2, hyphenReplace(this.options.includePrerelease));
126194
+ debug2("hyphen replace", range2);
126195
+ range2 = range2.replace(re2[t.COMPARATORTRIM], comparatorTrimReplace);
126196
+ debug2("comparator trim", range2);
126197
+ range2 = range2.replace(re2[t.TILDETRIM], tildeTrimReplace);
126198
+ debug2("tilde trim", range2);
126199
+ range2 = range2.replace(re2[t.CARETTRIM], caretTrimReplace);
126200
+ debug2("caret trim", range2);
126201
+ let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
126202
+ if (loose) {
126203
+ rangeList = rangeList.filter((comp) => {
126204
+ debug2("loose invalid filter", comp, this.options);
126205
+ return !!comp.match(re2[t.COMPARATORLOOSE]);
126206
+ });
126207
+ }
126208
+ debug2("range list", rangeList);
126209
+ const rangeMap = /* @__PURE__ */ new Map();
126210
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
126211
+ for (const comp of comparators) {
126212
+ if (isNullSet(comp)) {
126213
+ return [comp];
126214
+ }
126215
+ rangeMap.set(comp.value, comp);
126216
+ }
126217
+ if (rangeMap.size > 1 && rangeMap.has("")) {
126218
+ rangeMap.delete("");
126219
+ }
126220
+ const result = [...rangeMap.values()];
126221
+ cache2.set(memoKey, result);
126222
+ return result;
126223
+ }
126224
+ intersects(range2, options) {
126225
+ if (!(range2 instanceof Range)) {
126226
+ throw new TypeError("a Range is required");
126227
+ }
126228
+ return this.set.some((thisComparators) => {
126229
+ return isSatisfiable(thisComparators, options) && range2.set.some((rangeComparators) => {
126230
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
126231
+ return rangeComparators.every((rangeComparator) => {
126232
+ return thisComparator.intersects(rangeComparator, options);
126233
+ });
126234
+ });
126235
+ });
126236
+ });
126237
+ }
126238
+ // if ANY of the sets match ALL of its comparators, then pass
126239
+ test(version2) {
126240
+ if (!version2) {
126241
+ return false;
126242
+ }
126243
+ if (typeof version2 === "string") {
126244
+ try {
126245
+ version2 = new SemVer(version2, this.options);
126246
+ } catch (er2) {
126247
+ return false;
126248
+ }
126249
+ }
126250
+ for (let i = 0; i < this.set.length; i++) {
126251
+ if (testSet(this.set[i], version2, this.options)) {
126252
+ return true;
126253
+ }
126254
+ }
126255
+ return false;
126256
+ }
126257
+ }
126258
+ range = Range;
126259
+ const LRU = requireLrucache();
126260
+ const cache2 = new LRU();
126261
+ const parseOptions2 = requireParseOptions();
126262
+ const Comparator = requireComparator();
126263
+ const debug2 = requireDebug();
126264
+ const SemVer = requireSemver$1();
126265
+ const {
126266
+ safeRe: re2,
126267
+ t,
126268
+ comparatorTrimReplace,
126269
+ tildeTrimReplace,
126270
+ caretTrimReplace
126271
+ } = requireRe();
126272
+ const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = requireConstants();
126273
+ const isNullSet = (c) => c.value === "<0.0.0-0";
126274
+ const isAny2 = (c) => c.value === "";
126275
+ const isSatisfiable = (comparators, options) => {
126276
+ let result = true;
126277
+ const remainingComparators = comparators.slice();
126278
+ let testComparator = remainingComparators.pop();
126279
+ while (result && remainingComparators.length) {
126280
+ result = remainingComparators.every((otherComparator) => {
126281
+ return testComparator.intersects(otherComparator, options);
126282
+ });
126283
+ testComparator = remainingComparators.pop();
126284
+ }
126285
+ return result;
126286
+ };
126287
+ const parseComparator = (comp, options) => {
126288
+ comp = comp.replace(re2[t.BUILD], "");
126289
+ debug2("comp", comp, options);
126290
+ comp = replaceCarets(comp, options);
126291
+ debug2("caret", comp);
126292
+ comp = replaceTildes(comp, options);
126293
+ debug2("tildes", comp);
126294
+ comp = replaceXRanges(comp, options);
126295
+ debug2("xrange", comp);
126296
+ comp = replaceStars(comp, options);
126297
+ debug2("stars", comp);
126298
+ return comp;
126299
+ };
126300
+ const isX = (id2) => !id2 || id2.toLowerCase() === "x" || id2 === "*";
126301
+ const replaceTildes = (comp, options) => {
126302
+ return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
126303
+ };
126304
+ const replaceTilde = (comp, options) => {
126305
+ const r2 = options.loose ? re2[t.TILDELOOSE] : re2[t.TILDE];
126306
+ return comp.replace(r2, (_2, M2, m2, p2, pr2) => {
126307
+ debug2("tilde", comp, _2, M2, m2, p2, pr2);
126308
+ let ret;
126309
+ if (isX(M2)) {
126310
+ ret = "";
126311
+ } else if (isX(m2)) {
126312
+ ret = `>=${M2}.0.0 <${+M2 + 1}.0.0-0`;
126313
+ } else if (isX(p2)) {
126314
+ ret = `>=${M2}.${m2}.0 <${M2}.${+m2 + 1}.0-0`;
126315
+ } else if (pr2) {
126316
+ debug2("replaceTilde pr", pr2);
126317
+ ret = `>=${M2}.${m2}.${p2}-${pr2} <${M2}.${+m2 + 1}.0-0`;
126318
+ } else {
126319
+ ret = `>=${M2}.${m2}.${p2} <${M2}.${+m2 + 1}.0-0`;
126320
+ }
126321
+ debug2("tilde return", ret);
126322
+ return ret;
126323
+ });
126324
+ };
126325
+ const replaceCarets = (comp, options) => {
126326
+ return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
126327
+ };
126328
+ const replaceCaret = (comp, options) => {
126329
+ debug2("caret", comp, options);
126330
+ const r2 = options.loose ? re2[t.CARETLOOSE] : re2[t.CARET];
126331
+ const z2 = options.includePrerelease ? "-0" : "";
126332
+ return comp.replace(r2, (_2, M2, m2, p2, pr2) => {
126333
+ debug2("caret", comp, _2, M2, m2, p2, pr2);
126334
+ let ret;
126335
+ if (isX(M2)) {
126336
+ ret = "";
126337
+ } else if (isX(m2)) {
126338
+ ret = `>=${M2}.0.0${z2} <${+M2 + 1}.0.0-0`;
126339
+ } else if (isX(p2)) {
126340
+ if (M2 === "0") {
126341
+ ret = `>=${M2}.${m2}.0${z2} <${M2}.${+m2 + 1}.0-0`;
126342
+ } else {
126343
+ ret = `>=${M2}.${m2}.0${z2} <${+M2 + 1}.0.0-0`;
126344
+ }
126345
+ } else if (pr2) {
126346
+ debug2("replaceCaret pr", pr2);
126347
+ if (M2 === "0") {
126348
+ if (m2 === "0") {
126349
+ ret = `>=${M2}.${m2}.${p2}-${pr2} <${M2}.${m2}.${+p2 + 1}-0`;
126350
+ } else {
126351
+ ret = `>=${M2}.${m2}.${p2}-${pr2} <${M2}.${+m2 + 1}.0-0`;
126352
+ }
126353
+ } else {
126354
+ ret = `>=${M2}.${m2}.${p2}-${pr2} <${+M2 + 1}.0.0-0`;
126355
+ }
126356
+ } else {
126357
+ debug2("no pr");
126358
+ if (M2 === "0") {
126359
+ if (m2 === "0") {
126360
+ ret = `>=${M2}.${m2}.${p2}${z2} <${M2}.${m2}.${+p2 + 1}-0`;
126361
+ } else {
126362
+ ret = `>=${M2}.${m2}.${p2}${z2} <${M2}.${+m2 + 1}.0-0`;
126363
+ }
126364
+ } else {
126365
+ ret = `>=${M2}.${m2}.${p2} <${+M2 + 1}.0.0-0`;
126366
+ }
126367
+ }
126368
+ debug2("caret return", ret);
126369
+ return ret;
126370
+ });
126371
+ };
126372
+ const replaceXRanges = (comp, options) => {
126373
+ debug2("replaceXRanges", comp, options);
126374
+ return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
126375
+ };
126376
+ const replaceXRange = (comp, options) => {
126377
+ comp = comp.trim();
126378
+ const r2 = options.loose ? re2[t.XRANGELOOSE] : re2[t.XRANGE];
126379
+ return comp.replace(r2, (ret, gtlt, M2, m2, p2, pr2) => {
126380
+ debug2("xRange", comp, ret, gtlt, M2, m2, p2, pr2);
126381
+ const xM = isX(M2);
126382
+ const xm = xM || isX(m2);
126383
+ const xp = xm || isX(p2);
126384
+ const anyX = xp;
126385
+ if (gtlt === "=" && anyX) {
126386
+ gtlt = "";
126387
+ }
126388
+ pr2 = options.includePrerelease ? "-0" : "";
126389
+ if (xM) {
126390
+ if (gtlt === ">" || gtlt === "<") {
126391
+ ret = "<0.0.0-0";
126392
+ } else {
126393
+ ret = "*";
126394
+ }
126395
+ } else if (gtlt && anyX) {
126396
+ if (xm) {
126397
+ m2 = 0;
126398
+ }
126399
+ p2 = 0;
126400
+ if (gtlt === ">") {
126401
+ gtlt = ">=";
126402
+ if (xm) {
126403
+ M2 = +M2 + 1;
126404
+ m2 = 0;
126405
+ p2 = 0;
126406
+ } else {
126407
+ m2 = +m2 + 1;
126408
+ p2 = 0;
126409
+ }
126410
+ } else if (gtlt === "<=") {
126411
+ gtlt = "<";
126412
+ if (xm) {
126413
+ M2 = +M2 + 1;
126414
+ } else {
126415
+ m2 = +m2 + 1;
126416
+ }
126417
+ }
126418
+ if (gtlt === "<") {
126419
+ pr2 = "-0";
126420
+ }
126421
+ ret = `${gtlt + M2}.${m2}.${p2}${pr2}`;
126422
+ } else if (xm) {
126423
+ ret = `>=${M2}.0.0${pr2} <${+M2 + 1}.0.0-0`;
126424
+ } else if (xp) {
126425
+ ret = `>=${M2}.${m2}.0${pr2} <${M2}.${+m2 + 1}.0-0`;
126426
+ }
126427
+ debug2("xRange return", ret);
126428
+ return ret;
126429
+ });
126430
+ };
126431
+ const replaceStars = (comp, options) => {
126432
+ debug2("replaceStars", comp, options);
126433
+ return comp.trim().replace(re2[t.STAR], "");
126434
+ };
126435
+ const replaceGTE0 = (comp, options) => {
126436
+ debug2("replaceGTE0", comp, options);
126437
+ return comp.trim().replace(re2[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
126438
+ };
126439
+ const hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to2, tM, tm, tp, tpr) => {
126440
+ if (isX(fM)) {
126441
+ from = "";
126442
+ } else if (isX(fm)) {
126443
+ from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
126444
+ } else if (isX(fp)) {
126445
+ from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
126446
+ } else if (fpr) {
126447
+ from = `>=${from}`;
126448
+ } else {
126449
+ from = `>=${from}${incPr ? "-0" : ""}`;
126450
+ }
126451
+ if (isX(tM)) {
126452
+ to2 = "";
126453
+ } else if (isX(tm)) {
126454
+ to2 = `<${+tM + 1}.0.0-0`;
126455
+ } else if (isX(tp)) {
126456
+ to2 = `<${tM}.${+tm + 1}.0-0`;
126457
+ } else if (tpr) {
126458
+ to2 = `<=${tM}.${tm}.${tp}-${tpr}`;
126459
+ } else if (incPr) {
126460
+ to2 = `<${tM}.${tm}.${+tp + 1}-0`;
126461
+ } else {
126462
+ to2 = `<=${to2}`;
126463
+ }
126464
+ return `${from} ${to2}`.trim();
126465
+ };
126466
+ const testSet = (set2, version2, options) => {
126467
+ for (let i = 0; i < set2.length; i++) {
126468
+ if (!set2[i].test(version2)) {
126469
+ return false;
126470
+ }
126471
+ }
126472
+ if (version2.prerelease.length && !options.includePrerelease) {
126473
+ for (let i = 0; i < set2.length; i++) {
126474
+ debug2(set2[i].semver);
126475
+ if (set2[i].semver === Comparator.ANY) {
126476
+ continue;
126477
+ }
126478
+ if (set2[i].semver.prerelease.length > 0) {
126479
+ const allowed = set2[i].semver;
126480
+ if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
126481
+ return true;
126482
+ }
126483
+ }
126484
+ }
126485
+ return false;
126486
+ }
126487
+ return true;
126488
+ };
126489
+ return range;
126490
+ }
126491
+ var comparator;
126492
+ var hasRequiredComparator;
126493
+ function requireComparator() {
126494
+ if (hasRequiredComparator) return comparator;
126495
+ hasRequiredComparator = 1;
126496
+ const ANY = Symbol("SemVer ANY");
126497
+ class Comparator {
126498
+ static get ANY() {
126499
+ return ANY;
126500
+ }
126501
+ constructor(comp, options) {
126502
+ options = parseOptions2(options);
126503
+ if (comp instanceof Comparator) {
126504
+ if (comp.loose === !!options.loose) {
126505
+ return comp;
126506
+ } else {
126507
+ comp = comp.value;
126508
+ }
126509
+ }
126510
+ comp = comp.trim().split(/\s+/).join(" ");
126511
+ debug2("comparator", comp, options);
126512
+ this.options = options;
126513
+ this.loose = !!options.loose;
126514
+ this.parse(comp);
126515
+ if (this.semver === ANY) {
126516
+ this.value = "";
126517
+ } else {
126518
+ this.value = this.operator + this.semver.version;
126519
+ }
126520
+ debug2("comp", this);
126521
+ }
126522
+ parse(comp) {
126523
+ const r2 = this.options.loose ? re2[t.COMPARATORLOOSE] : re2[t.COMPARATOR];
126524
+ const m2 = comp.match(r2);
126525
+ if (!m2) {
126526
+ throw new TypeError(`Invalid comparator: ${comp}`);
126527
+ }
126528
+ this.operator = m2[1] !== void 0 ? m2[1] : "";
126529
+ if (this.operator === "=") {
126530
+ this.operator = "";
126531
+ }
126532
+ if (!m2[2]) {
126533
+ this.semver = ANY;
126534
+ } else {
126535
+ this.semver = new SemVer(m2[2], this.options.loose);
126536
+ }
126537
+ }
126538
+ toString() {
126539
+ return this.value;
126540
+ }
126541
+ test(version2) {
126542
+ debug2("Comparator.test", version2, this.options.loose);
126543
+ if (this.semver === ANY || version2 === ANY) {
126544
+ return true;
126545
+ }
126546
+ if (typeof version2 === "string") {
126547
+ try {
126548
+ version2 = new SemVer(version2, this.options);
126549
+ } catch (er2) {
126550
+ return false;
126551
+ }
126552
+ }
126553
+ return cmp(version2, this.operator, this.semver, this.options);
126554
+ }
126555
+ intersects(comp, options) {
126556
+ if (!(comp instanceof Comparator)) {
126557
+ throw new TypeError("a Comparator is required");
126558
+ }
126559
+ if (this.operator === "") {
126560
+ if (this.value === "") {
126561
+ return true;
126562
+ }
126563
+ return new Range(comp.value, options).test(this.value);
126564
+ } else if (comp.operator === "") {
126565
+ if (comp.value === "") {
126566
+ return true;
126567
+ }
126568
+ return new Range(this.value, options).test(comp.semver);
126569
+ }
126570
+ options = parseOptions2(options);
126571
+ if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
126572
+ return false;
126573
+ }
126574
+ if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
126575
+ return false;
126576
+ }
126577
+ if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
126578
+ return true;
126579
+ }
126580
+ if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
126581
+ return true;
126582
+ }
126583
+ if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
126584
+ return true;
126585
+ }
126586
+ if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
126587
+ return true;
126588
+ }
126589
+ if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
126590
+ return true;
126591
+ }
126592
+ return false;
126593
+ }
126594
+ }
126595
+ comparator = Comparator;
126596
+ const parseOptions2 = requireParseOptions();
126597
+ const { safeRe: re2, t } = requireRe();
126598
+ const cmp = requireCmp();
126599
+ const debug2 = requireDebug();
126600
+ const SemVer = requireSemver$1();
126601
+ const Range = requireRange();
126602
+ return comparator;
126603
+ }
126604
+ var satisfies_1;
126605
+ var hasRequiredSatisfies;
126606
+ function requireSatisfies() {
126607
+ if (hasRequiredSatisfies) return satisfies_1;
126608
+ hasRequiredSatisfies = 1;
126609
+ const Range = requireRange();
126610
+ const satisfies = (version2, range2, options) => {
126611
+ try {
126612
+ range2 = new Range(range2, options);
126613
+ } catch (er2) {
126614
+ return false;
126615
+ }
126616
+ return range2.test(version2);
126617
+ };
126618
+ satisfies_1 = satisfies;
126619
+ return satisfies_1;
126620
+ }
126621
+ var toComparators_1;
126622
+ var hasRequiredToComparators;
126623
+ function requireToComparators() {
126624
+ if (hasRequiredToComparators) return toComparators_1;
126625
+ hasRequiredToComparators = 1;
126626
+ const Range = requireRange();
126627
+ const toComparators = (range2, options) => new Range(range2, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
126628
+ toComparators_1 = toComparators;
126629
+ return toComparators_1;
126630
+ }
126631
+ var maxSatisfying_1;
126632
+ var hasRequiredMaxSatisfying;
126633
+ function requireMaxSatisfying() {
126634
+ if (hasRequiredMaxSatisfying) return maxSatisfying_1;
126635
+ hasRequiredMaxSatisfying = 1;
126636
+ const SemVer = requireSemver$1();
126637
+ const Range = requireRange();
126638
+ const maxSatisfying = (versions, range2, options) => {
126639
+ let max2 = null;
126640
+ let maxSV = null;
126641
+ let rangeObj = null;
126642
+ try {
126643
+ rangeObj = new Range(range2, options);
126644
+ } catch (er2) {
126645
+ return null;
126646
+ }
126647
+ versions.forEach((v2) => {
126648
+ if (rangeObj.test(v2)) {
126649
+ if (!max2 || maxSV.compare(v2) === -1) {
126650
+ max2 = v2;
126651
+ maxSV = new SemVer(max2, options);
126652
+ }
126653
+ }
126654
+ });
126655
+ return max2;
126656
+ };
126657
+ maxSatisfying_1 = maxSatisfying;
126658
+ return maxSatisfying_1;
126659
+ }
126660
+ var minSatisfying_1;
126661
+ var hasRequiredMinSatisfying;
126662
+ function requireMinSatisfying() {
126663
+ if (hasRequiredMinSatisfying) return minSatisfying_1;
126664
+ hasRequiredMinSatisfying = 1;
126665
+ const SemVer = requireSemver$1();
126666
+ const Range = requireRange();
126667
+ const minSatisfying = (versions, range2, options) => {
126668
+ let min2 = null;
126669
+ let minSV = null;
126670
+ let rangeObj = null;
126671
+ try {
126672
+ rangeObj = new Range(range2, options);
126673
+ } catch (er2) {
126674
+ return null;
126675
+ }
126676
+ versions.forEach((v2) => {
126677
+ if (rangeObj.test(v2)) {
126678
+ if (!min2 || minSV.compare(v2) === 1) {
126679
+ min2 = v2;
126680
+ minSV = new SemVer(min2, options);
126681
+ }
126682
+ }
126683
+ });
126684
+ return min2;
126685
+ };
126686
+ minSatisfying_1 = minSatisfying;
126687
+ return minSatisfying_1;
126688
+ }
126689
+ var minVersion_1;
126690
+ var hasRequiredMinVersion;
126691
+ function requireMinVersion() {
126692
+ if (hasRequiredMinVersion) return minVersion_1;
126693
+ hasRequiredMinVersion = 1;
126694
+ const SemVer = requireSemver$1();
126695
+ const Range = requireRange();
126696
+ const gt = requireGt();
126697
+ const minVersion = (range2, loose) => {
126698
+ range2 = new Range(range2, loose);
126699
+ let minver = new SemVer("0.0.0");
126700
+ if (range2.test(minver)) {
126701
+ return minver;
126702
+ }
126703
+ minver = new SemVer("0.0.0-0");
126704
+ if (range2.test(minver)) {
126705
+ return minver;
126706
+ }
126707
+ minver = null;
126708
+ for (let i = 0; i < range2.set.length; ++i) {
126709
+ const comparators = range2.set[i];
126710
+ let setMin = null;
126711
+ comparators.forEach((comparator2) => {
126712
+ const compver = new SemVer(comparator2.semver.version);
126713
+ switch (comparator2.operator) {
126714
+ case ">":
126715
+ if (compver.prerelease.length === 0) {
126716
+ compver.patch++;
126717
+ } else {
126718
+ compver.prerelease.push(0);
126719
+ }
126720
+ compver.raw = compver.format();
126721
+ /* fallthrough */
126722
+ case "":
126723
+ case ">=":
126724
+ if (!setMin || gt(compver, setMin)) {
126725
+ setMin = compver;
126726
+ }
126727
+ break;
126728
+ case "<":
126729
+ case "<=":
126730
+ break;
126731
+ /* istanbul ignore next */
126732
+ default:
126733
+ throw new Error(`Unexpected operation: ${comparator2.operator}`);
126734
+ }
126735
+ });
126736
+ if (setMin && (!minver || gt(minver, setMin))) {
126737
+ minver = setMin;
126738
+ }
126739
+ }
126740
+ if (minver && range2.test(minver)) {
126741
+ return minver;
126742
+ }
126743
+ return null;
126744
+ };
126745
+ minVersion_1 = minVersion;
126746
+ return minVersion_1;
126747
+ }
126748
+ var valid;
126749
+ var hasRequiredValid;
126750
+ function requireValid() {
126751
+ if (hasRequiredValid) return valid;
126752
+ hasRequiredValid = 1;
126753
+ const Range = requireRange();
126754
+ const validRange = (range2, options) => {
126755
+ try {
126756
+ return new Range(range2, options).range || "*";
126757
+ } catch (er2) {
126758
+ return null;
126759
+ }
126760
+ };
126761
+ valid = validRange;
126762
+ return valid;
126763
+ }
126764
+ var outside_1;
126765
+ var hasRequiredOutside;
126766
+ function requireOutside() {
126767
+ if (hasRequiredOutside) return outside_1;
126768
+ hasRequiredOutside = 1;
126769
+ const SemVer = requireSemver$1();
126770
+ const Comparator = requireComparator();
126771
+ const { ANY } = Comparator;
126772
+ const Range = requireRange();
126773
+ const satisfies = requireSatisfies();
126774
+ const gt = requireGt();
126775
+ const lt2 = requireLt();
126776
+ const lte2 = requireLte();
126777
+ const gte2 = requireGte();
126778
+ const outside = (version2, range2, hilo, options) => {
126779
+ version2 = new SemVer(version2, options);
126780
+ range2 = new Range(range2, options);
126781
+ let gtfn, ltefn, ltfn, comp, ecomp;
126782
+ switch (hilo) {
126783
+ case ">":
126784
+ gtfn = gt;
126785
+ ltefn = lte2;
126786
+ ltfn = lt2;
126787
+ comp = ">";
126788
+ ecomp = ">=";
126789
+ break;
126790
+ case "<":
126791
+ gtfn = lt2;
126792
+ ltefn = gte2;
126793
+ ltfn = gt;
126794
+ comp = "<";
126795
+ ecomp = "<=";
126796
+ break;
126797
+ default:
126798
+ throw new TypeError('Must provide a hilo val of "<" or ">"');
126799
+ }
126800
+ if (satisfies(version2, range2, options)) {
126801
+ return false;
126802
+ }
126803
+ for (let i = 0; i < range2.set.length; ++i) {
126804
+ const comparators = range2.set[i];
126805
+ let high = null;
126806
+ let low = null;
126807
+ comparators.forEach((comparator2) => {
126808
+ if (comparator2.semver === ANY) {
126809
+ comparator2 = new Comparator(">=0.0.0");
126810
+ }
126811
+ high = high || comparator2;
126812
+ low = low || comparator2;
126813
+ if (gtfn(comparator2.semver, high.semver, options)) {
126814
+ high = comparator2;
126815
+ } else if (ltfn(comparator2.semver, low.semver, options)) {
126816
+ low = comparator2;
126817
+ }
126818
+ });
126819
+ if (high.operator === comp || high.operator === ecomp) {
126820
+ return false;
126821
+ }
126822
+ if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) {
126823
+ return false;
126824
+ } else if (low.operator === ecomp && ltfn(version2, low.semver)) {
126825
+ return false;
126826
+ }
126827
+ }
126828
+ return true;
126829
+ };
126830
+ outside_1 = outside;
126831
+ return outside_1;
126832
+ }
126833
+ var gtr_1;
126834
+ var hasRequiredGtr;
126835
+ function requireGtr() {
126836
+ if (hasRequiredGtr) return gtr_1;
126837
+ hasRequiredGtr = 1;
126838
+ const outside = requireOutside();
126839
+ const gtr = (version2, range2, options) => outside(version2, range2, ">", options);
126840
+ gtr_1 = gtr;
126841
+ return gtr_1;
126842
+ }
126843
+ var ltr_1;
126844
+ var hasRequiredLtr;
126845
+ function requireLtr() {
126846
+ if (hasRequiredLtr) return ltr_1;
126847
+ hasRequiredLtr = 1;
126848
+ const outside = requireOutside();
126849
+ const ltr = (version2, range2, options) => outside(version2, range2, "<", options);
126850
+ ltr_1 = ltr;
126851
+ return ltr_1;
126852
+ }
126853
+ var intersects_1;
126854
+ var hasRequiredIntersects;
126855
+ function requireIntersects() {
126856
+ if (hasRequiredIntersects) return intersects_1;
126857
+ hasRequiredIntersects = 1;
126858
+ const Range = requireRange();
126859
+ const intersects = (r1, r2, options) => {
126860
+ r1 = new Range(r1, options);
126861
+ r2 = new Range(r2, options);
126862
+ return r1.intersects(r2, options);
126863
+ };
126864
+ intersects_1 = intersects;
126865
+ return intersects_1;
126866
+ }
126867
+ var simplify;
126868
+ var hasRequiredSimplify;
126869
+ function requireSimplify() {
126870
+ if (hasRequiredSimplify) return simplify;
126871
+ hasRequiredSimplify = 1;
126872
+ const satisfies = requireSatisfies();
126873
+ const compare = requireCompare();
126874
+ simplify = (versions, range2, options) => {
126875
+ const set2 = [];
126876
+ let first = null;
126877
+ let prev = null;
126878
+ const v2 = versions.sort((a2, b2) => compare(a2, b2, options));
126879
+ for (const version2 of v2) {
126880
+ const included = satisfies(version2, range2, options);
126881
+ if (included) {
126882
+ prev = version2;
126883
+ if (!first) {
126884
+ first = version2;
126885
+ }
126886
+ } else {
126887
+ if (prev) {
126888
+ set2.push([first, prev]);
126889
+ }
126890
+ prev = null;
126891
+ first = null;
126892
+ }
126893
+ }
126894
+ if (first) {
126895
+ set2.push([first, null]);
126896
+ }
126897
+ const ranges = [];
126898
+ for (const [min2, max2] of set2) {
126899
+ if (min2 === max2) {
126900
+ ranges.push(min2);
126901
+ } else if (!max2 && min2 === v2[0]) {
126902
+ ranges.push("*");
126903
+ } else if (!max2) {
126904
+ ranges.push(`>=${min2}`);
126905
+ } else if (min2 === v2[0]) {
126906
+ ranges.push(`<=${max2}`);
126907
+ } else {
126908
+ ranges.push(`${min2} - ${max2}`);
126909
+ }
126910
+ }
126911
+ const simplified = ranges.join(" || ");
126912
+ const original = typeof range2.raw === "string" ? range2.raw : String(range2);
126913
+ return simplified.length < original.length ? simplified : range2;
126914
+ };
126915
+ return simplify;
126916
+ }
126917
+ var subset_1;
126918
+ var hasRequiredSubset;
126919
+ function requireSubset() {
126920
+ if (hasRequiredSubset) return subset_1;
126921
+ hasRequiredSubset = 1;
126922
+ const Range = requireRange();
126923
+ const Comparator = requireComparator();
126924
+ const { ANY } = Comparator;
126925
+ const satisfies = requireSatisfies();
126926
+ const compare = requireCompare();
126927
+ const subset = (sub, dom, options = {}) => {
126928
+ if (sub === dom) {
126929
+ return true;
126930
+ }
126931
+ sub = new Range(sub, options);
126932
+ dom = new Range(dom, options);
126933
+ let sawNonNull = false;
126934
+ OUTER: for (const simpleSub of sub.set) {
126935
+ for (const simpleDom of dom.set) {
126936
+ const isSub = simpleSubset(simpleSub, simpleDom, options);
126937
+ sawNonNull = sawNonNull || isSub !== null;
126938
+ if (isSub) {
126939
+ continue OUTER;
126940
+ }
126941
+ }
126942
+ if (sawNonNull) {
126943
+ return false;
126944
+ }
126945
+ }
126946
+ return true;
126947
+ };
126948
+ const minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
126949
+ const minimumVersion = [new Comparator(">=0.0.0")];
126950
+ const simpleSubset = (sub, dom, options) => {
126951
+ if (sub === dom) {
126952
+ return true;
126953
+ }
126954
+ if (sub.length === 1 && sub[0].semver === ANY) {
126955
+ if (dom.length === 1 && dom[0].semver === ANY) {
126956
+ return true;
126957
+ } else if (options.includePrerelease) {
126958
+ sub = minimumVersionWithPreRelease;
126959
+ } else {
126960
+ sub = minimumVersion;
126961
+ }
126962
+ }
126963
+ if (dom.length === 1 && dom[0].semver === ANY) {
126964
+ if (options.includePrerelease) {
126965
+ return true;
126966
+ } else {
126967
+ dom = minimumVersion;
126968
+ }
126969
+ }
126970
+ const eqSet = /* @__PURE__ */ new Set();
126971
+ let gt, lt2;
126972
+ for (const c of sub) {
126973
+ if (c.operator === ">" || c.operator === ">=") {
126974
+ gt = higherGT(gt, c, options);
126975
+ } else if (c.operator === "<" || c.operator === "<=") {
126976
+ lt2 = lowerLT(lt2, c, options);
126977
+ } else {
126978
+ eqSet.add(c.semver);
126979
+ }
126980
+ }
126981
+ if (eqSet.size > 1) {
126982
+ return null;
126983
+ }
126984
+ let gtltComp;
126985
+ if (gt && lt2) {
126986
+ gtltComp = compare(gt.semver, lt2.semver, options);
126987
+ if (gtltComp > 0) {
126988
+ return null;
126989
+ } else if (gtltComp === 0 && (gt.operator !== ">=" || lt2.operator !== "<=")) {
126990
+ return null;
126991
+ }
126992
+ }
126993
+ for (const eq of eqSet) {
126994
+ if (gt && !satisfies(eq, String(gt), options)) {
126995
+ return null;
126996
+ }
126997
+ if (lt2 && !satisfies(eq, String(lt2), options)) {
126998
+ return null;
126999
+ }
127000
+ for (const c of dom) {
127001
+ if (!satisfies(eq, String(c), options)) {
127002
+ return false;
127003
+ }
127004
+ }
127005
+ return true;
127006
+ }
127007
+ let higher, lower2;
127008
+ let hasDomLT, hasDomGT;
127009
+ let needDomLTPre = lt2 && !options.includePrerelease && lt2.semver.prerelease.length ? lt2.semver : false;
127010
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
127011
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt2.operator === "<" && needDomLTPre.prerelease[0] === 0) {
127012
+ needDomLTPre = false;
127013
+ }
127014
+ for (const c of dom) {
127015
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
127016
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
127017
+ if (gt) {
127018
+ if (needDomGTPre) {
127019
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
127020
+ needDomGTPre = false;
127021
+ }
127022
+ }
127023
+ if (c.operator === ">" || c.operator === ">=") {
127024
+ higher = higherGT(gt, c, options);
127025
+ if (higher === c && higher !== gt) {
127026
+ return false;
127027
+ }
127028
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
127029
+ return false;
127030
+ }
127031
+ }
127032
+ if (lt2) {
127033
+ if (needDomLTPre) {
127034
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
127035
+ needDomLTPre = false;
127036
+ }
127037
+ }
127038
+ if (c.operator === "<" || c.operator === "<=") {
127039
+ lower2 = lowerLT(lt2, c, options);
127040
+ if (lower2 === c && lower2 !== lt2) {
127041
+ return false;
127042
+ }
127043
+ } else if (lt2.operator === "<=" && !satisfies(lt2.semver, String(c), options)) {
127044
+ return false;
127045
+ }
127046
+ }
127047
+ if (!c.operator && (lt2 || gt) && gtltComp !== 0) {
127048
+ return false;
127049
+ }
127050
+ }
127051
+ if (gt && hasDomLT && !lt2 && gtltComp !== 0) {
127052
+ return false;
127053
+ }
127054
+ if (lt2 && hasDomGT && !gt && gtltComp !== 0) {
127055
+ return false;
127056
+ }
127057
+ if (needDomGTPre || needDomLTPre) {
127058
+ return false;
127059
+ }
127060
+ return true;
127061
+ };
127062
+ const higherGT = (a2, b2, options) => {
127063
+ if (!a2) {
127064
+ return b2;
127065
+ }
127066
+ const comp = compare(a2.semver, b2.semver, options);
127067
+ return comp > 0 ? a2 : comp < 0 ? b2 : b2.operator === ">" && a2.operator === ">=" ? b2 : a2;
127068
+ };
127069
+ const lowerLT = (a2, b2, options) => {
127070
+ if (!a2) {
127071
+ return b2;
127072
+ }
127073
+ const comp = compare(a2.semver, b2.semver, options);
127074
+ return comp < 0 ? a2 : comp > 0 ? b2 : b2.operator === "<" && a2.operator === "<=" ? b2 : a2;
127075
+ };
127076
+ subset_1 = subset;
127077
+ return subset_1;
127078
+ }
127079
+ var semver$1;
127080
+ var hasRequiredSemver;
127081
+ function requireSemver() {
127082
+ if (hasRequiredSemver) return semver$1;
127083
+ hasRequiredSemver = 1;
127084
+ const internalRe = requireRe();
127085
+ const constants2 = requireConstants();
127086
+ const SemVer = requireSemver$1();
127087
+ const identifiers2 = requireIdentifiers();
127088
+ const parse2 = requireParse();
127089
+ const valid2 = requireValid$1();
127090
+ const clean = requireClean();
127091
+ const inc = requireInc();
127092
+ const diff = requireDiff();
127093
+ const major = requireMajor();
127094
+ const minor = requireMinor();
127095
+ const patch2 = requirePatch();
127096
+ const prerelease = requirePrerelease();
127097
+ const compare = requireCompare();
127098
+ const rcompare = requireRcompare();
127099
+ const compareLoose = requireCompareLoose();
127100
+ const compareBuild = requireCompareBuild();
127101
+ const sort = requireSort();
127102
+ const rsort = requireRsort();
127103
+ const gt = requireGt();
127104
+ const lt2 = requireLt();
127105
+ const eq = requireEq();
127106
+ const neq = requireNeq();
127107
+ const gte2 = requireGte();
127108
+ const lte2 = requireLte();
127109
+ const cmp = requireCmp();
127110
+ const coerce2 = requireCoerce();
127111
+ const Comparator = requireComparator();
127112
+ const Range = requireRange();
127113
+ const satisfies = requireSatisfies();
127114
+ const toComparators = requireToComparators();
127115
+ const maxSatisfying = requireMaxSatisfying();
127116
+ const minSatisfying = requireMinSatisfying();
127117
+ const minVersion = requireMinVersion();
127118
+ const validRange = requireValid();
127119
+ const outside = requireOutside();
127120
+ const gtr = requireGtr();
127121
+ const ltr = requireLtr();
127122
+ const intersects = requireIntersects();
127123
+ const simplifyRange = requireSimplify();
127124
+ const subset = requireSubset();
127125
+ semver$1 = {
127126
+ parse: parse2,
127127
+ valid: valid2,
127128
+ clean,
127129
+ inc,
127130
+ diff,
127131
+ major,
127132
+ minor,
127133
+ patch: patch2,
127134
+ prerelease,
127135
+ compare,
127136
+ rcompare,
127137
+ compareLoose,
127138
+ compareBuild,
127139
+ sort,
127140
+ rsort,
127141
+ gt,
127142
+ lt: lt2,
127143
+ eq,
127144
+ neq,
127145
+ gte: gte2,
127146
+ lte: lte2,
127147
+ cmp,
127148
+ coerce: coerce2,
127149
+ Comparator,
127150
+ Range,
127151
+ satisfies,
127152
+ toComparators,
127153
+ maxSatisfying,
127154
+ minSatisfying,
127155
+ minVersion,
127156
+ validRange,
127157
+ outside,
127158
+ gtr,
127159
+ ltr,
127160
+ intersects,
127161
+ simplifyRange,
127162
+ subset,
127163
+ SemVer,
127164
+ re: internalRe.re,
127165
+ src: internalRe.src,
127166
+ tokens: internalRe.t,
127167
+ SEMVER_SPEC_VERSION: constants2.SEMVER_SPEC_VERSION,
127168
+ RELEASE_TYPES: constants2.RELEASE_TYPES,
127169
+ compareIdentifiers: identifiers2.compareIdentifiers,
127170
+ rcompareIdentifiers: identifiers2.rcompareIdentifiers
127171
+ };
127172
+ return semver$1;
127173
+ }
127174
+ var semverExports = requireSemver();
127175
+ const semver = /* @__PURE__ */ getDefaultExportFromCjs(semverExports);
127176
+ const FORMAT_VERSION_TABLE = [
127177
+ { format: SerializationFormat.ENCRYPTED, minVersion: "4.2.0-beta.64" }
127178
+ // Future entries:
127179
+ // { format: SerializationFormat.CBOR, minVersion: '5.x.y' },
127180
+ // { format: SerializationFormat.ENCRYPTED_V2, minVersion: '5.x.y' },
127181
+ ];
127182
+ const BASELINE_FORMATS = /* @__PURE__ */ new Set([
127183
+ SerializationFormat.DEVALUE_V1
127184
+ ]);
127185
+ function getRunCapabilities(workflowCoreVersion) {
127186
+ if (!workflowCoreVersion || !semver.valid(workflowCoreVersion)) {
127187
+ return { supportedFormats: BASELINE_FORMATS };
127188
+ }
127189
+ const formats = new Set(BASELINE_FORMATS);
127190
+ for (const { format: format2, minVersion } of FORMAT_VERSION_TABLE) {
127191
+ if (semver.gte(workflowCoreVersion, minVersion)) {
127192
+ formats.add(format2);
127193
+ }
127194
+ }
127195
+ return { supportedFormats: formats };
127196
+ }
125190
127197
  async function getHookByTokenWithKey(token) {
125191
127198
  var _a3;
125192
127199
  const world = getWorld();
@@ -125202,7 +127209,7 @@ async function getHookByTokenWithKey(token) {
125202
127209
  async function resumeHook$2(tokenOrHook, payload, encryptionKeyOverride) {
125203
127210
  return await waitedUntil(() => {
125204
127211
  return trace$2("hook.resume", async (span) => {
125205
- var _a3, _b, _c, _d;
127212
+ var _a3, _b, _c, _d, _e2;
125206
127213
  const world = getWorld();
125207
127214
  try {
125208
127215
  let hook;
@@ -125227,6 +127234,11 @@ async function resumeHook$2(tokenOrHook, payload, encryptionKeyOverride) {
125227
127234
  ...HookId(hook.hookId),
125228
127235
  ...WorkflowRunId(hook.runId)
125229
127236
  });
127237
+ const rawVersion = (_b = workflowRun.executionContext) == null ? void 0 : _b.workflowCoreVersion;
127238
+ const { supportedFormats } = getRunCapabilities(typeof rawVersion === "string" ? rawVersion : void 0);
127239
+ if (!supportedFormats.has(SerializationFormat.ENCRYPTED)) {
127240
+ encryptionKey = void 0;
127241
+ }
125230
127242
  const ops = [];
125231
127243
  const v1Compat = isLegacySpecVersion(hook.specVersion);
125232
127244
  const dehydratedPayload = await dehydrateStepReturnValue(payload, hook.runId, encryptionKey, ops, globalThis, v1Compat);
@@ -125245,17 +127257,17 @@ async function resumeHook$2(tokenOrHook, payload, encryptionKeyOverride) {
125245
127257
  span == null ? void 0 : span.setAttributes({
125246
127258
  ...WorkflowName(workflowRun.workflowName)
125247
127259
  });
125248
- const traceCarrier = (_b = workflowRun.executionContext) == null ? void 0 : _b.traceCarrier;
127260
+ const traceCarrier = (_c = workflowRun.executionContext) == null ? void 0 : _c.traceCarrier;
125249
127261
  if (traceCarrier) {
125250
127262
  const context = await getSpanContextForTraceCarrier(traceCarrier);
125251
127263
  if (context) {
125252
- (_c = span == null ? void 0 : span.addLink) == null ? void 0 : _c.call(span, { context });
127264
+ (_d = span == null ? void 0 : span.addLink) == null ? void 0 : _d.call(span, { context });
125253
127265
  }
125254
127266
  }
125255
127267
  await world.queue(getWorkflowQueueName(workflowRun.workflowName), {
125256
127268
  runId: hook.runId,
125257
127269
  // attach the trace carrier from the workflow run
125258
- traceCarrier: ((_d = workflowRun.executionContext) == null ? void 0 : _d.traceCarrier) ?? void 0
127270
+ traceCarrier: ((_e2 = workflowRun.executionContext) == null ? void 0 : _e2.traceCarrier) ?? void 0
125259
127271
  }, {
125260
127272
  deploymentId: workflowRun.deploymentId
125261
127273
  });
@@ -125270,13 +127282,13 @@ async function resumeHook$2(tokenOrHook, payload, encryptionKeyOverride) {
125270
127282
  });
125271
127283
  });
125272
127284
  }
125273
- const version = "4.2.0-beta.74";
127285
+ const version = "4.2.0-beta.76";
125274
127286
  const ulid = monotonicFactory();
125275
127287
  async function start$1(workflow, argsOrOptions, options) {
125276
127288
  return await waitedUntil(() => {
125277
127289
  const workflowName = workflow == null ? void 0 : workflow.workflowId;
125278
127290
  if (!workflowName) {
125279
- throw new WorkflowRuntimeError(`'start' received an invalid workflow function. Ensure the Workflow Development Kit is configured correctly and the function includes a 'use workflow' directive.`, { slug: "start-invalid-workflow-function" });
127291
+ throw new WorkflowRuntimeError(`'start' received an invalid workflow function. Ensure the Workflow SDK is configured correctly and the function includes a 'use workflow' directive.`, { slug: "start-invalid-workflow-function" });
125280
127292
  }
125281
127293
  return trace$2(`workflow.start ${workflowName}`, async (span) => {
125282
127294
  var _a3;
@@ -127116,8 +129128,30 @@ const root$1 = withComponentProps(function App({
127116
129128
  })
127117
129129
  });
127118
129130
  });
129131
+ const ErrorBoundary2 = withErrorBoundaryProps(function ErrorBoundary3() {
129132
+ const error2 = useRouteError();
129133
+ const isNotFound = isRouteErrorResponse(error2) && error2.status === 404;
129134
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
129135
+ className: "min-h-screen flex items-center justify-center",
129136
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
129137
+ className: "text-center",
129138
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx("h1", {
129139
+ className: "text-4xl font-bold mb-4",
129140
+ children: isNotFound ? "404" : "Error"
129141
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx("p", {
129142
+ className: "text-muted-foreground mb-6",
129143
+ children: isNotFound ? "This page does not exist." : "Something went wrong."
129144
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Link$1, {
129145
+ to: "/",
129146
+ className: "text-primary underline",
129147
+ children: "Go to dashboard"
129148
+ })]
129149
+ })
129150
+ });
129151
+ });
127119
129152
  const route0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
127120
129153
  __proto__: null,
129154
+ ErrorBoundary: ErrorBoundary2,
127121
129155
  Layout,
127122
129156
  action: action$1,
127123
129157
  default: root$1,
@@ -147103,7 +149137,7 @@ const home = withComponentProps(function Home() {
147103
149137
  })]
147104
149138
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, {
147105
149139
  value: "runs",
147106
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, {
149140
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, {
147107
149141
  title: "Failed to load workflow runs",
147108
149142
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(RunsTable, {
147109
149143
  onRunClick: handleRunClick
@@ -147111,7 +149145,7 @@ const home = withComponentProps(function Home() {
147111
149145
  })
147112
149146
  }), /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, {
147113
149147
  value: "hooks",
147114
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, {
149148
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, {
147115
149149
  title: "Failed to load hooks",
147116
149150
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(HooksTable, {
147117
149151
  onHookClick: handleHookSelect,
@@ -147120,7 +149154,7 @@ const home = withComponentProps(function Home() {
147120
149154
  })
147121
149155
  }), isLocalBackend && /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, {
147122
149156
  value: "workflows",
147123
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, {
149157
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, {
147124
149158
  title: "Failed to load workflow graph data",
147125
149159
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(WorkflowsList, {})
147126
149160
  })
@@ -149057,7 +151091,7 @@ function RunDetailView({
149057
151091
  "Streams"
149058
151092
  ] })
149059
151093
  ] }),
149060
- /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, { value: "trace", className: "mt-0 flex-1 min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { title: "Failed to load trace viewer", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
151094
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, { value: "trace", className: "mt-0 flex-1 min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { title: "Failed to load trace viewer", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
149061
151095
  WorkflowTraceViewer,
149062
151096
  {
149063
151097
  error: error2,
@@ -149080,7 +151114,7 @@ function RunDetailView({
149080
151114
  isDecrypting
149081
151115
  }
149082
151116
  ) }) }) }),
149083
- /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, { value: "events", className: "mt-0 flex-1 min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { title: "Failed to load events list", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
151117
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, { value: "events", className: "mt-0 flex-1 min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { title: "Failed to load events list", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-full", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
149084
151118
  EventListView,
149085
151119
  {
149086
151120
  events: eventsListData,
@@ -149097,7 +151131,7 @@ function RunDetailView({
149097
151131
  isDecrypting
149098
151132
  }
149099
151133
  ) }) }) }),
149100
- /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, { value: "streams", className: "mt-0 flex-1 min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { title: "Failed to load stream data", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "h-full flex gap-4", children: [
151134
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, { value: "streams", className: "mt-0 flex-1 min-h-0", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, { title: "Failed to load stream data", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "h-full flex gap-4", children: [
149101
151135
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
149102
151136
  "div",
149103
151137
  {
@@ -149222,7 +151256,7 @@ const runDetail = withComponentProps(function RunDetailPage() {
149222
151256
  const eventId = searchParams.get("eventId");
149223
151257
  const hookId = searchParams.get("hookId");
149224
151258
  const selectedId = stepId || eventId || hookId || void 0;
149225
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, {
151259
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary$1, {
149226
151260
  title: "Failed to load run details",
149227
151261
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(RunDetailView, {
149228
151262
  runId,
@@ -149388,7 +151422,7 @@ const route4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
149388
151422
  __proto__: null,
149389
151423
  loader
149390
151424
  }, Symbol.toStringTag, { value: "Module" }));
149391
- const serverManifest = { "entry": { "module": "/assets/entry.client-BjpmGyLC.js", "imports": ["/assets/index-DklpUtP3.js"], "css": [] }, "routes": { "root": { "id": "root", "parentId": void 0, "path": "", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/root-Dae_xV-y.js", "imports": ["/assets/index-DklpUtP3.js", "/assets/mermaid-3ZIDBTTL-D95wSBpg.js"], "css": ["/assets/root-DtrAdcW8.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/home": { "id": "routes/home", "parentId": "root", "path": void 0, "index": true, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/home-ClC-EMyL.js", "imports": ["/assets/index-DklpUtP3.js", "/assets/workflow-graph-viewer-BZlGoIt2.js", "/assets/mermaid-3ZIDBTTL-D95wSBpg.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/run-detail": { "id": "routes/run-detail", "parentId": "root", "path": "run/:runId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/run-detail-Brs1Rm25.js", "imports": ["/assets/index-DklpUtP3.js", "/assets/workflow-graph-viewer-BZlGoIt2.js", "/assets/mermaid-3ZIDBTTL-D95wSBpg.js", "/assets/encryption-8OvC6eoJ.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.rpc": { "id": "routes/api.rpc", "parentId": "root", "path": "api/rpc", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.rpc-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.stream.$streamId": { "id": "routes/api.stream.$streamId", "parentId": "root", "path": "api/stream/:streamId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.stream._streamId-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 } }, "url": "/assets/manifest-7a6ad03e.js", "version": "7a6ad03e", "sri": void 0 };
151425
+ const serverManifest = { "entry": { "module": "/assets/entry.client-BiVEcoV8.js", "imports": ["/assets/index-BmZS3y7B.js"], "css": [] }, "routes": { "root": { "id": "root", "parentId": void 0, "path": "", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": true, "module": "/assets/root-Qfp_mn5S.js", "imports": ["/assets/index-BmZS3y7B.js", "/assets/mermaid-3ZIDBTTL-BFtRJrXs.js"], "css": ["/assets/root-aMfmV5uh.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/home": { "id": "routes/home", "parentId": "root", "path": void 0, "index": true, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/home-3vHAnkef.js", "imports": ["/assets/index-BmZS3y7B.js", "/assets/workflow-graph-viewer-kC8rw29h.js", "/assets/mermaid-3ZIDBTTL-BFtRJrXs.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/run-detail": { "id": "routes/run-detail", "parentId": "root", "path": "run/:runId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": false, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": true, "hasErrorBoundary": false, "module": "/assets/run-detail-DTTdMaKq.js", "imports": ["/assets/index-BmZS3y7B.js", "/assets/workflow-graph-viewer-kC8rw29h.js", "/assets/mermaid-3ZIDBTTL-BFtRJrXs.js", "/assets/encryption-8OvC6eoJ.js"], "css": ["/assets/workflow-graph-viewer-yls6qlc0.css", "/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.rpc": { "id": "routes/api.rpc", "parentId": "root", "path": "api/rpc", "index": void 0, "caseSensitive": void 0, "hasAction": true, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.rpc-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 }, "routes/api.stream.$streamId": { "id": "routes/api.stream.$streamId", "parentId": "root", "path": "api/stream/:streamId", "index": void 0, "caseSensitive": void 0, "hasAction": false, "hasLoader": true, "hasClientAction": false, "hasClientLoader": false, "hasClientMiddleware": false, "hasDefaultExport": false, "hasErrorBoundary": false, "module": "/assets/api.stream._streamId-l0sNRNKZ.js", "imports": [], "css": [], "clientActionModule": void 0, "clientLoaderModule": void 0, "clientMiddlewareModule": void 0, "hydrateFallbackModule": void 0 } }, "url": "/assets/manifest-54e6ae64.js", "version": "54e6ae64", "sri": void 0 };
149392
151426
  const assetsBuildDirectory = "build/client";
149393
151427
  const basename = "/";
149394
151428
  const future = { "unstable_optimizeDeps": false, "unstable_subResourceIntegrity": false, "unstable_trailingSlashAwareDataRequests": false, "unstable_previewServerPrerendering": false, "v8_middleware": false, "v8_splitRouteModules": false, "v8_viteEnvironmentApi": false };
@@ -149481,19 +151515,20 @@ export {
149481
151515
  SerializedDataSchema as h,
149482
151516
  StructuredErrorSchema as i,
149483
151517
  isLegacySpecVersion as j,
149484
- SPEC_VERSION_CURRENT as k,
149485
- SPEC_VERSION_LEGACY as l,
149486
- StepSchema as m,
149487
- StepStatusSchema as n,
149488
- WaitSchema as o,
149489
- WaitStatusSchema as p,
149490
- jsxRuntimeExports as q,
149491
- requiresNewerWorld as r,
151518
+ requiresNewerWorld as k,
151519
+ SPEC_VERSION_CURRENT as l,
151520
+ SPEC_VERSION_LEGACY as m,
151521
+ StepSchema as n,
151522
+ StepStatusSchema as o,
151523
+ WaitSchema as p,
151524
+ WaitStatusSchema as q,
151525
+ reenqueueActiveRuns as r,
149492
151526
  stripEventDataRefs as s,
149493
- Qe as t,
151527
+ jsxRuntimeExports as t,
149494
151528
  ulidToDate as u,
149495
151529
  validateUlidTimestamp as v,
149496
- requireTokenUtil as w,
149497
- requireTokenError as x,
149498
- serverBuild as y
151530
+ Qe as w,
151531
+ requireTokenUtil as x,
151532
+ requireTokenError as y,
151533
+ serverBuild as z
149499
151534
  };