@hot-updater/console 0.30.1 → 0.30.3

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 (39) hide show
  1. package/.output/nitro.json +3 -3
  2. package/.output/public/assets/dist-BKho179_.js +53 -0
  3. package/.output/public/assets/main-CoPJhqkz.js +10 -0
  4. package/.output/public/assets/routes-CVEbccVq.js +10 -0
  5. package/.output/server/__tanstack-start-server-fn-resolver-DB7Vwz3A.mjs +61 -0
  6. package/.output/server/_chunks/ssr-renderer.mjs +2 -2
  7. package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +3 -7
  8. package/.output/server/_libs/@radix-ui/react-select+[...].mjs +1 -1
  9. package/.output/server/_libs/@tanstack/react-form+[...].mjs +7 -7
  10. package/.output/server/_libs/@tanstack/react-router+[...].mjs +9 -12
  11. package/.output/server/_libs/@tanstack/react-table+[...].mjs +11 -1
  12. package/.output/server/_libs/h3+rou3+srvx.mjs +101 -49
  13. package/.output/server/_libs/hookable.mjs +2 -2
  14. package/.output/server/_libs/isaacs__fs-minipass+minipass.mjs +35 -1
  15. package/.output/server/_libs/jszip+[...].mjs +1 -1
  16. package/.output/server/_libs/lucide-react.mjs +7 -1
  17. package/.output/server/_libs/minizlib.mjs +25 -2
  18. package/.output/server/_libs/radix-ui__react-direction.mjs +2 -0
  19. package/.output/server/_libs/radix-ui__react-separator.mjs +1 -2
  20. package/.output/server/_libs/semver.mjs +1 -0
  21. package/.output/server/_libs/{tar.mjs → tar+yallist.mjs} +1346 -24
  22. package/.output/server/_libs/unctx.mjs +82 -0
  23. package/.output/server/_ssr/{api-rpc-Cr26KHOK.mjs → api-rpc-kX2sZt80.mjs} +14 -15
  24. package/.output/server/_ssr/{config.server-TLOyHGWx.mjs → config.server-8YQWTTc0.mjs} +1 -1
  25. package/.output/server/_ssr/createServerFn-CdeRXnVy.mjs +320 -0
  26. package/.output/server/_ssr/{deleteBundle-DWUxu9-K.mjs → deleteBundle-BiJvjt0k.mjs} +1 -1
  27. package/.output/server/_ssr/{extract-timestamp-from-uuidv7-B90UBADU.mjs → extract-timestamp-from-uuidv7-DO_lXhMa.mjs} +1 -1
  28. package/.output/server/_ssr/{promoteBundle-DtMHuubR.mjs → promoteBundle-BBOSMtwu.mjs} +3 -3
  29. package/.output/server/_ssr/{router-CdSyFCJa.mjs → router-fogqFSFT.mjs} +4 -4
  30. package/.output/server/_ssr/{routes-D8wYJKp6.mjs → routes-CgYYFBNT.mjs} +7 -6
  31. package/.output/server/_ssr/{sidebar-DXng0IOP.mjs → sidebar-B6a7DDef.mjs} +1 -1
  32. package/.output/server/_ssr/ssr.mjs +7 -380
  33. package/.output/server/_ssr/start-DsRb6TkZ.mjs +4 -0
  34. package/.output/server/{_tanstack-start-manifest_v-CKbZoQZl.mjs → _tanstack-start-manifest_v-OXy-e32b.mjs} +4 -4
  35. package/.output/server/index.mjs +59 -41
  36. package/package.json +8 -8
  37. package/.output/public/assets/main-BUiDyfP0.js +0 -61
  38. package/.output/public/assets/routes-D5XuYXnS.js +0 -10
  39. package/.output/server/_ssr/start-DQK0r85G.mjs +0 -4
@@ -1,12 +1,12 @@
1
1
  import { n as HTTPError, o as toRequest } from "../_libs/h3+rou3+srvx.mjs";
2
- //#region ../../node_modules/.pnpm/nitro@3.0.260311-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_6e1d935189b5e0f3fabe50b3ea4f847c/node_modules/nitro/dist/runtime/vite.mjs
2
+ //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_97f61cc24ed75a40553113785315eaba/node_modules/nitro/dist/runtime/vite.mjs
3
3
  function fetchViteEnv(viteEnvName, input, init) {
4
4
  const viteEnv = (globalThis.__nitro_vite_envs__ || {})[viteEnvName];
5
5
  if (!viteEnv) throw HTTPError.status(404);
6
6
  return Promise.resolve(viteEnv.fetch(toRequest(input, init)));
7
7
  }
8
8
  //#endregion
9
- //#region ../../node_modules/.pnpm/nitro@3.0.260311-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_6e1d935189b5e0f3fabe50b3ea4f847c/node_modules/nitro/dist/runtime/internal/vite/ssr-renderer.mjs
9
+ //#region ../../node_modules/.pnpm/nitro@3.0.260415-beta_@electric-sql+pglite@0.2.17_@libsql+client@0.15.15_better-sqlite3_97f61cc24ed75a40553113785315eaba/node_modules/nitro/dist/runtime/internal/vite/ssr-renderer.mjs
10
10
  /** @param {{ req: Request }} HTTPEvent */
11
11
  function ssrRenderer({ req }) {
12
12
  return fetchViteEnv("ssr", req);
@@ -42,6 +42,7 @@ var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42
42
  }));
43
43
  //#endregion
44
44
  //#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.2_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
45
+ var import_jsx_runtime = require_jsx_runtime();
45
46
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
46
47
  function setRef(ref, value) {
47
48
  if (typeof ref === "function") return ref(value);
@@ -69,7 +70,7 @@ function useComposedRefs(...refs) {
69
70
  }
70
71
  //#endregion
71
72
  //#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.3_@types+react@19.2.14_react@19.2.4/node_modules/@radix-ui/react-slot/dist/index.mjs
72
- var import_jsx_runtime = require_jsx_runtime();
73
+ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
73
74
  /* @__NO_SIDE_EFFECTS__ */
74
75
  function createSlot(ownerName) {
75
76
  const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
@@ -163,7 +164,6 @@ function getElementRef$1(element) {
163
164
  }
164
165
  //#endregion
165
166
  //#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.3_@types+react-dom@19.2.3_@types+react@19.2.14__@types+re_1181ea5061ec9212248424669240e4ec/node_modules/@radix-ui/react-primitive/dist/index.mjs
166
- var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
167
167
  var Primitive = [
168
168
  "a",
169
169
  "button",
@@ -302,11 +302,7 @@ function useControllableState({ prop, defaultProp, onChange = () => {}, caller }
302
302
  const isControlledRef = import_react.useRef(prop !== void 0);
303
303
  import_react.useEffect(() => {
304
304
  const wasControlled = isControlledRef.current;
305
- if (wasControlled !== isControlled) {
306
- const from = wasControlled ? "controlled" : "uncontrolled";
307
- const to = isControlled ? "controlled" : "uncontrolled";
308
- console.warn(`${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);
309
- }
305
+ if (wasControlled !== isControlled) console.warn(`${caller} is changing from ${wasControlled ? "controlled" : "uncontrolled"} to ${isControlled ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`);
310
306
  isControlledRef.current = isControlled;
311
307
  }, [isControlled, caller]);
312
308
  }
@@ -7,6 +7,7 @@ import { t as useDirection } from "../radix-ui__react-direction.mjs";
7
7
  import { a as createPopperScope, i as Root2$1, n as Arrow, r as Content, t as Anchor } from "./react-popper+[...].mjs";
8
8
  import { t as clamp } from "../radix-ui__number.mjs";
9
9
  //#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.14__@ty_fa89646d7248b32d1762bf88948f6339/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
10
+ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
10
11
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
11
12
  var import_jsx_runtime = require_jsx_runtime();
12
13
  var VISUALLY_HIDDEN_STYLES = Object.freeze({
@@ -51,7 +52,6 @@ function usePrevious(value) {
51
52
  }
52
53
  //#endregion
53
54
  //#region ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@19.2.3_@types+react@19.2.14__@types+react_53894a32562cb9eeb6aef8b357a4f4e3/node_modules/@radix-ui/react-select/dist/index.mjs
54
- var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
55
55
  var OPEN_KEYS = [
56
56
  " ",
57
57
  "Enter",
@@ -1,7 +1,7 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "../../_runtime.mjs";
2
2
  import { P as require_jsx_runtime } from "../@radix-ui/react-alert-dialog+[...].mjs";
3
- import { a as uuid, i as functionalUpdate, n as FieldApi, r as FormApi, t as mergeAndUpdate } from "./form-core+[...].mjs";
4
3
  import { u as require_react } from "../@floating-ui/react-dom+[...].mjs";
4
+ import { a as uuid, i as functionalUpdate, n as FieldApi, r as FormApi, t as mergeAndUpdate } from "./form-core+[...].mjs";
5
5
  //#region ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.4/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
6
6
  /**
7
7
  * @license React
@@ -150,11 +150,11 @@ function useStore(atom, selector, compare = defaultCompare) {
150
150
  return (0, import_with_selector.useSyncExternalStoreWithSelector)(subscribe, boundGetSnapshot, boundGetSnapshot, selector, compare);
151
151
  }
152
152
  //#endregion
153
- //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.4_srvx@0.11.9__r_f96d776af2f7418a6f160b0cfeec673e/node_modules/@tanstack/react-form/dist/esm/useIsomorphicLayoutEffect.js
153
+ //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.5_srvx@0.11.15___626f04d33fa368240a754ea58864b26b/node_modules/@tanstack/react-form/dist/esm/useIsomorphicLayoutEffect.js
154
+ var import_jsx_runtime = require_jsx_runtime();
154
155
  var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react.useLayoutEffect : import_react.useEffect;
155
156
  //#endregion
156
- //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.4_srvx@0.11.9__r_f96d776af2f7418a6f160b0cfeec673e/node_modules/@tanstack/react-form/dist/esm/useField.js
157
- var import_jsx_runtime = require_jsx_runtime();
157
+ //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.5_srvx@0.11.15___626f04d33fa368240a754ea58864b26b/node_modules/@tanstack/react-form/dist/esm/useField.js
158
158
  function useField(opts) {
159
159
  const [prevOptions, setPrevOptions] = (0, import_react.useState)(() => ({
160
160
  form: opts.form,
@@ -221,16 +221,16 @@ var Field = (({ children, ...fieldOptions }) => {
221
221
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: (0, import_react.useMemo)(() => functionalUpdate(children, fieldApi), [children, fieldApi]) });
222
222
  });
223
223
  //#endregion
224
- //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.4_srvx@0.11.9__r_f96d776af2f7418a6f160b0cfeec673e/node_modules/@tanstack/react-form/dist/esm/useUUID.js
224
+ //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.5_srvx@0.11.15___626f04d33fa368240a754ea58864b26b/node_modules/@tanstack/react-form/dist/esm/useUUID.js
225
225
  function useUUID() {
226
226
  return (0, import_react.useState)(() => uuid())[0];
227
227
  }
228
228
  //#endregion
229
- //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.4_srvx@0.11.9__r_f96d776af2f7418a6f160b0cfeec673e/node_modules/@tanstack/react-form/dist/esm/useFormId.js
229
+ //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.5_srvx@0.11.15___626f04d33fa368240a754ea58864b26b/node_modules/@tanstack/react-form/dist/esm/useFormId.js
230
230
  var _React = import_react;
231
231
  var useFormId = "19.2.4".split(".")[0] === "17" ? useUUID : _React.useId;
232
232
  //#endregion
233
- //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.4_srvx@0.11.9__r_f96d776af2f7418a6f160b0cfeec673e/node_modules/@tanstack/react-form/dist/esm/useForm.js
233
+ //#region ../../node_modules/.pnpm/@tanstack+react-form@1.28.5_@tanstack+react-start@1.166.11_crossws@0.4.5_srvx@0.11.15___626f04d33fa368240a754ea58864b26b/node_modules/@tanstack/react-form/dist/esm/useForm.js
234
234
  function LocalSubscribe({ form, selector = (state) => state, children }) {
235
235
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: functionalUpdate(children, useStore(form.store, selector)) });
236
236
  }
@@ -1,8 +1,8 @@
1
1
  import { n as __require, r as __toESM, t as __commonJSMin } from "../../_runtime.mjs";
2
2
  import { P as require_jsx_runtime } from "../@radix-ui/react-alert-dialog+[...].mjs";
3
+ import { l as require_react_dom, u as require_react } from "../@floating-ui/react-dom+[...].mjs";
3
4
  import "./form-core+[...].mjs";
4
5
  import { n as parseHref } from "../tanstack__history.mjs";
5
- import { l as require_react_dom, u as require_react } from "../@floating-ui/react-dom+[...].mjs";
6
6
  import { n as useStore } from "./react-form+[...].mjs";
7
7
  import { PassThrough, Readable } from "node:stream";
8
8
  import { ReadableStream as ReadableStream$1 } from "node:stream/web";
@@ -22,8 +22,6 @@ function functionalUpdate(updater, previous) {
22
22
  if (isFunction(updater)) return updater(previous);
23
23
  return updater;
24
24
  }
25
- Object.prototype.hasOwnProperty;
26
- Object.prototype.propertyIsEnumerable;
27
25
  var createNull = () => /* @__PURE__ */ Object.create(null);
28
26
  var nullReplaceEqualDeep = (prev, next) => replaceEqualDeep(prev, next, createNull);
29
27
  function replaceEqualDeep(prev, _next, _makeObj = () => ({}), _depth = 0) {
@@ -3157,8 +3155,12 @@ var BaseRootRoute = class extends BaseRoute {
3157
3155
  }
3158
3156
  };
3159
3157
  //#endregion
3160
- //#region ../../node_modules/.pnpm/@tanstack+react-router@1.167.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-router/dist/esm/utils.js
3158
+ //#region ../../node_modules/.pnpm/@tanstack+router-core@1.167.0/node_modules/@tanstack/router-core/dist/esm/ssr/constants.js
3159
+ var import_jsx_runtime = require_jsx_runtime();
3161
3160
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
3161
+ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
3162
+ //#endregion
3163
+ //#region ../../node_modules/.pnpm/@tanstack+react-router@1.167.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-router/dist/esm/utils.js
3162
3164
  var reactUse = import_react.use;
3163
3165
  typeof window !== "undefined" ? import_react.useLayoutEffect : import_react.useEffect;
3164
3166
  function useIntersectionObserver(ref, callback, intersectionObserverOptions = {}, options = {}) {
@@ -3185,7 +3187,6 @@ function useForwardedRef(ref) {
3185
3187
  }
3186
3188
  //#endregion
3187
3189
  //#region ../../node_modules/.pnpm/@tanstack+react-router@1.167.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-router/dist/esm/CatchBoundary.js
3188
- var import_jsx_runtime = require_jsx_runtime();
3189
3190
  function CatchBoundary(props) {
3190
3191
  const errorComponent = props.errorComponent ?? ErrorComponent;
3191
3192
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CatchBoundaryImpl, {
@@ -3419,7 +3420,6 @@ function useRouteContext(opts) {
3419
3420
  }
3420
3421
  //#endregion
3421
3422
  //#region ../../node_modules/.pnpm/@tanstack+react-router@1.167.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-router/dist/esm/link.js
3422
- var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1);
3423
3423
  function useLinkProps(options, forwardedRef) {
3424
3424
  const router = useRouter();
3425
3425
  const innerRef = useForwardedRef(forwardedRef);
@@ -12991,8 +12991,8 @@ var require_react_dom_server_node_production = /* @__PURE__ */ __commonJSMin(((e
12991
12991
  exports.version = "19.2.4";
12992
12992
  }));
12993
12993
  //#endregion
12994
- //#region ../../node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/server.node.js
12995
- var require_server_node = /* @__PURE__ */ __commonJSMin(((exports) => {
12994
+ //#region ../../node_modules/.pnpm/isbot@5.1.36/node_modules/isbot/index.mjs
12995
+ var import_server_node = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
12996
12996
  var l = require_react_dom_server_legacy_node_production(), s = require_react_dom_server_node_production();
12997
12997
  exports.version = l.version;
12998
12998
  exports.renderToString = l.renderToString;
@@ -13001,9 +13001,7 @@ var require_server_node = /* @__PURE__ */ __commonJSMin(((exports) => {
13001
13001
  exports.renderToReadableStream = s.renderToReadableStream;
13002
13002
  exports.resumeToPipeableStream = s.resumeToPipeableStream;
13003
13003
  exports.resume = s.resume;
13004
- }));
13005
- //#endregion
13006
- //#region ../../node_modules/.pnpm/isbot@5.1.36/node_modules/isbot/index.mjs
13004
+ })))(), 1);
13007
13005
  var fullPattern = " daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bmanus-user/|\\bort/|\\bperl\\b|\\bsecurityheaders\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/";
13008
13006
  var naivePattern = /bot|crawl|http|lighthouse|scan|search|spider/i;
13009
13007
  var pattern;
@@ -13021,7 +13019,6 @@ function isbot(userAgent) {
13021
13019
  }
13022
13020
  //#endregion
13023
13021
  //#region ../../node_modules/.pnpm/@tanstack+react-router@1.167.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-router/dist/esm/ssr/renderRouterToStream.js
13024
- var import_server_node = /* @__PURE__ */ __toESM(require_server_node(), 1);
13025
13022
  var renderRouterToStream = async ({ request, router, responseHeaders, children }) => {
13026
13023
  if (typeof import_server_node.renderToReadableStream === "function") {
13027
13024
  const stream = await import_server_node.renderToReadableStream(children, {
@@ -1,6 +1,7 @@
1
1
  import { r as __toESM } from "../../_runtime.mjs";
2
2
  import { u as require_react } from "../@floating-ui/react-dom+[...].mjs";
3
3
  //#region ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
4
+ var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
4
5
  /**
5
6
  * table-core
6
7
  *
@@ -2326,7 +2327,16 @@ function getCoreRowModel() {
2326
2327
  }
2327
2328
  //#endregion
2328
2329
  //#region ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@tanstack/react-table/build/lib/index.mjs
2329
- var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
2330
+ /**
2331
+ * react-table
2332
+ *
2333
+ * Copyright (c) TanStack
2334
+ *
2335
+ * This source code is licensed under the MIT license found in the
2336
+ * LICENSE.md file in the root directory of this source tree.
2337
+ *
2338
+ * @license MIT
2339
+ */
2330
2340
  /**
2331
2341
  * If rendering headers, cells, or footers with custom markup, use flexRender instead of `cell.getValue()` or `cell.renderValue()`.
2332
2342
  */
@@ -1,19 +1,9 @@
1
1
  import nodeHTTP from "node:http";
2
2
  import { PassThrough, Readable } from "node:stream";
3
+ import { pipeline } from "node:stream/promises";
3
4
  import nodeHTTPS from "node:https";
4
5
  import nodeHTTP2 from "node:http2";
5
- //#region ../../node_modules/.pnpm/srvx@0.11.9/node_modules/srvx/dist/_chunks/_utils.mjs
6
- var noColor = /* @__PURE__ */ (() => {
7
- const env = globalThis.process?.env ?? {};
8
- return env.NO_COLOR === "1" || env.TERM === "dumb";
9
- })();
10
- var _c = (c, r = 39) => (t) => noColor ? t : `\u001B[${c}m${t}\u001B[${r}m`;
11
- var bold = /* @__PURE__ */ _c(1, 22);
12
- var red = /* @__PURE__ */ _c(31);
13
- var green = /* @__PURE__ */ _c(32);
14
- var gray = /* @__PURE__ */ _c(90);
15
- //#endregion
16
- //#region ../../node_modules/.pnpm/srvx@0.11.9/node_modules/srvx/dist/_chunks/_url.mjs
6
+ //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/_chunks/_url.mjs
17
7
  function lazyInherit(target, source, sourceKey) {
18
8
  for (const key of [...Object.getOwnPropertyNames(source), ...Object.getOwnPropertySymbols(source)]) {
19
9
  if (key === "constructor") continue;
@@ -68,7 +58,8 @@ var FastURL = /* @__PURE__ */ (() => {
68
58
  #searchParams;
69
59
  #pos;
70
60
  constructor(url) {
71
- if (typeof url === "string") this.#href = url;
61
+ if (typeof url === "string") if (url[0] === "/") this.#href = url;
62
+ else this.#url = new NativeURL(url);
72
63
  else if (_needsNormRE.test(url.pathname)) this.#url = new NativeURL(`${url.protocol || "http:"}//${url.host || "localhost"}${url.pathname}${url.search || ""}`);
73
64
  else {
74
65
  this.#protocol = url.protocol;
@@ -156,7 +147,7 @@ var FastURL = /* @__PURE__ */ (() => {
156
147
  return FastURL;
157
148
  })();
158
149
  //#endregion
159
- //#region ../../node_modules/.pnpm/srvx@0.11.9/node_modules/srvx/dist/_chunks/_utils2.mjs
150
+ //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/_chunks/_utils2.mjs
160
151
  function resolvePortAndHost(opts) {
161
152
  const _port = opts.port ?? globalThis.process?.env.PORT ?? 3e3;
162
153
  const port = typeof _port === "number" ? _port : Number.parseInt(_port, 10);
@@ -227,7 +218,18 @@ function createWaitUntil() {
227
218
  };
228
219
  }
229
220
  //#endregion
230
- //#region ../../node_modules/.pnpm/srvx@0.11.9/node_modules/srvx/dist/_chunks/_plugins.mjs
221
+ //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/_chunks/_utils.mjs
222
+ var noColor = /* @__PURE__ */ (() => {
223
+ const env = globalThis.process?.env ?? {};
224
+ return env.NO_COLOR === "1" || env.TERM === "dumb";
225
+ })();
226
+ var _c = (c, r = 39) => (t) => noColor ? t : `\u001B[${c}m${t}\u001B[${r}m`;
227
+ var bold = /* @__PURE__ */ _c(1, 22);
228
+ var red = /* @__PURE__ */ _c(31);
229
+ var green = /* @__PURE__ */ _c(32);
230
+ var gray = /* @__PURE__ */ _c(90);
231
+ //#endregion
232
+ //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/_chunks/_plugins.mjs
231
233
  function wrapFetch(server) {
232
234
  const fetchHandler = server.options.fetch;
233
235
  const middleware = server.options.middleware || [];
@@ -283,7 +285,7 @@ var gracefulShutdownPlugin = (server) => {
283
285
  for (const sig of ["SIGINT", "SIGTERM"]) globalThis.process.on(sig, shutdown);
284
286
  };
285
287
  //#endregion
286
- //#region ../../node_modules/.pnpm/srvx@0.11.9/node_modules/srvx/dist/adapters/node.mjs
288
+ //#region ../../node_modules/.pnpm/srvx@0.11.15/node_modules/srvx/dist/adapters/node.mjs
287
289
  async function sendNodeResponse(nodeRes, webRes) {
288
290
  if (!webRes) {
289
291
  nodeRes.statusCode = 500;
@@ -291,15 +293,14 @@ async function sendNodeResponse(nodeRes, webRes) {
291
293
  }
292
294
  if (webRes._toNodeResponse) {
293
295
  const res = webRes._toNodeResponse();
294
- writeHead(nodeRes, res.status, res.statusText, res.headers);
295
296
  if (res.body) {
296
- if (res.body instanceof ReadableStream) return streamBody(res.body, nodeRes);
297
- else if (typeof res.body?.pipe === "function") {
298
- res.body.pipe(nodeRes);
299
- return new Promise((resolve) => nodeRes.on("close", resolve));
300
- }
297
+ if (res.body instanceof ReadableStream) {
298
+ writeHead(nodeRes, res.status, res.statusText, res.headers);
299
+ return streamBody(res.body, nodeRes);
300
+ } else if (typeof res.body?.pipe === "function") return pipeBody(res.body, nodeRes, res.status, res.statusText, res.headers);
301
+ writeHead(nodeRes, res.status, res.statusText, res.headers);
301
302
  nodeRes.write(res.body);
302
- }
303
+ } else writeHead(nodeRes, res.status, res.statusText, res.headers);
303
304
  return endNodeResponse(nodeRes);
304
305
  }
305
306
  const rawHeaders = [...webRes.headers];
@@ -314,6 +315,40 @@ function writeHead(nodeRes, status, statusText, rawHeaders) {
314
315
  function endNodeResponse(nodeRes) {
315
316
  return new Promise((resolve) => nodeRes.end(resolve));
316
317
  }
318
+ function pipeBody(stream, nodeRes, status, statusText, headers) {
319
+ if (nodeRes.destroyed) {
320
+ stream.destroy?.();
321
+ return;
322
+ }
323
+ if (typeof stream.on !== "function" || typeof stream.destroy !== "function") {
324
+ writeHead(nodeRes, status, statusText, headers);
325
+ stream.pipe(nodeRes);
326
+ return new Promise((resolve) => nodeRes.on("close", resolve));
327
+ }
328
+ if (stream.destroyed) {
329
+ writeHead(nodeRes, 500, "Internal Server Error", []);
330
+ return endNodeResponse(nodeRes);
331
+ }
332
+ return new Promise((resolve) => {
333
+ function onEarlyError() {
334
+ stream.off("readable", onReadable);
335
+ stream.destroy();
336
+ writeHead(nodeRes, 500, "Internal Server Error", []);
337
+ endNodeResponse(nodeRes).then(resolve);
338
+ }
339
+ function onReadable() {
340
+ stream.off("error", onEarlyError);
341
+ if (nodeRes.destroyed) {
342
+ stream.destroy();
343
+ return resolve();
344
+ }
345
+ writeHead(nodeRes, status, statusText, headers);
346
+ pipeline(stream, nodeRes).catch(() => {}).then(() => resolve());
347
+ }
348
+ stream.once("error", onEarlyError);
349
+ stream.once("readable", onReadable);
350
+ });
351
+ }
317
352
  function streamBody(stream, nodeRes) {
318
353
  if (nodeRes.destroyed) {
319
354
  stream.cancel();
@@ -355,9 +390,8 @@ var NodeRequestURL = class extends FastURL {
355
390
  const pathname = qIndex === -1 ? path : path?.slice(0, qIndex) || "/";
356
391
  const search = qIndex === -1 ? "" : path?.slice(qIndex) || "";
357
392
  let host = req.headers.host || req.headers[":authority"];
358
- if (host) {
359
- if (!HOST_RE.test(host)) throw new TypeError(`Invalid host header: ${host}`);
360
- } else if (req.socket) host = `${req.socket.localFamily === "IPv6" ? "[" + req.socket.localAddress + "]" : req.socket.localAddress}:${req.socket?.localPort || "80"}`;
393
+ if (host && !HOST_RE.test(host)) host = "_invalid_";
394
+ else if (!host) if (req.socket) host = `${req.socket.localFamily === "IPv6" ? "[" + req.socket.localAddress + "]" : req.socket.localAddress}:${req.socket?.localPort || "80"}`;
361
395
  else host = "localhost";
362
396
  const protocol = req.socket?.encrypted || req.headers["x-forwarded-proto"] === "https" || req.headers[":scheme"] === "https" ? "https:" : "http:";
363
397
  super({
@@ -417,17 +451,8 @@ var NodeRequestHeaders = /* @__PURE__ */ (() => {
417
451
  const value = this.#req.headers["set-cookie"];
418
452
  return Array.isArray(value) ? value : value ? [value] : [];
419
453
  }
420
- *_entries() {
421
- const rawHeaders = this.#req.rawHeaders;
422
- const len = rawHeaders.length;
423
- for (let i = 0; i < len; i += 2) {
424
- const key = rawHeaders[i];
425
- if (key.charCodeAt(0) === 58) continue;
426
- yield [key.toLowerCase(), rawHeaders[i + 1]];
427
- }
428
- }
429
454
  entries() {
430
- return this.#headers ? this.#headers.entries() : this._entries();
455
+ return this._headers.entries();
431
456
  }
432
457
  [Symbol.iterator]() {
433
458
  return this.entries();
@@ -679,6 +704,7 @@ var NodeServer = class {
679
704
  waitUntil;
680
705
  #isSecure;
681
706
  #listeningPromise;
707
+ #listenError;
682
708
  #wait;
683
709
  constructor(options) {
684
710
  this.options = {
@@ -732,16 +758,30 @@ var NodeServer = class {
732
758
  else if (this.#isSecure) server = nodeHTTPS.createServer(this.serveOptions, handler);
733
759
  else server = nodeHTTP.createServer(this.serveOptions, handler);
734
760
  this.node.server = server;
735
- if (!options.manual) this.serve();
761
+ if (!options.manual) this.serve().catch(() => {});
736
762
  }
737
763
  serve() {
738
- if (this.#listeningPromise) return Promise.resolve(this.#listeningPromise).then(() => this);
739
- this.#listeningPromise = new Promise((resolve) => {
740
- this.node.server.listen(this.serveOptions, () => {
764
+ if (this.#listeningPromise) return this.#listeningPromise.then(() => this);
765
+ const server = this.node?.server;
766
+ if (!server) return Promise.reject(/* @__PURE__ */ new Error("Server not initialized"));
767
+ this.#listenError = void 0;
768
+ this.#listeningPromise = new Promise((resolve, reject) => {
769
+ const onError = (error) => {
770
+ server.off("listening", onListening);
771
+ this.#listenError = error;
772
+ this.#listeningPromise = void 0;
773
+ reject(error);
774
+ };
775
+ const onListening = () => {
776
+ server.off("error", onError);
741
777
  printListening(this.options, this.url);
742
778
  resolve();
743
- });
779
+ };
780
+ server.once("error", onError);
781
+ server.once("listening", onListening);
782
+ server.listen(this.serveOptions);
744
783
  });
784
+ return this.#listeningPromise.then(() => this);
745
785
  }
746
786
  get url() {
747
787
  const addr = this.node?.server?.address();
@@ -749,6 +789,7 @@ var NodeServer = class {
749
789
  return typeof addr === "string" ? addr : fmtURL(addr.address, addr.port, this.#isSecure);
750
790
  }
751
791
  ready() {
792
+ if (this.#listenError) return Promise.reject(this.#listenError);
752
793
  return Promise.resolve(this.#listeningPromise).then(() => this);
753
794
  }
754
795
  async close(closeAll) {
@@ -767,10 +808,14 @@ var NullProtoObj = /* @__PURE__ */ (() => {
767
808
  return e.prototype = Object.create(null), Object.freeze(e.prototype), e;
768
809
  })();
769
810
  //#endregion
770
- //#region ../../node_modules/.pnpm/h3@2.0.1-rc.16_crossws@0.4.4_srvx@0.11.9_/node_modules/h3/dist/h3-ByfIX5Jk.mjs
811
+ //#region ../../node_modules/.pnpm/h3@2.0.1-rc.20_crossws@0.4.5_srvx@0.11.15_/node_modules/h3/dist/h3-Bz4OPZv_.mjs
812
+ function decodePathname(pathname) {
813
+ return decodeURI(pathname.includes("%25") ? pathname.replace(/%25/g, "%2525") : pathname);
814
+ }
771
815
  var kEventNS = "h3.internal.event.";
772
816
  var kEventRes = /* @__PURE__ */ Symbol.for(`${kEventNS}res`);
773
817
  var kEventResHeaders = /* @__PURE__ */ Symbol.for(`${kEventNS}res.headers`);
818
+ var kEventResErrHeaders = /* @__PURE__ */ Symbol.for(`${kEventNS}res.err.headers`);
774
819
  var H3Event = class {
775
820
  app;
776
821
  req;
@@ -782,7 +827,9 @@ var H3Event = class {
782
827
  this.req = req;
783
828
  this.app = app;
784
829
  const _url = req._url;
785
- this.url = _url && _url instanceof URL ? _url : new FastURL(req.url);
830
+ const url = _url && _url instanceof URL ? _url : new FastURL(req.url);
831
+ if (url.pathname.includes("%")) url.pathname = decodePathname(url.pathname);
832
+ this.url = url;
786
833
  }
787
834
  get res() {
788
835
  return this[kEventRes] ||= new H3EventResponse();
@@ -818,6 +865,9 @@ var H3EventResponse = class {
818
865
  get headers() {
819
866
  return this[kEventResHeaders] ||= new Headers();
820
867
  }
868
+ get errHeaders() {
869
+ return this[kEventResErrHeaders] ||= new Headers();
870
+ }
821
871
  };
822
872
  var DISALLOWED_STATUS_CHARS = /[^\u0009\u0020-\u007E]/g;
823
873
  function sanitizeStatusMessage(statusMessage = "") {
@@ -857,8 +907,8 @@ var HTTPError = class HTTPError extends Error {
857
907
  messageInput = arg1;
858
908
  details = arg2;
859
909
  } else details = arg1;
860
- const status = sanitizeStatusCode(details?.status || (details?.cause)?.status || details?.status || details?.statusCode, 500);
861
- const statusText = sanitizeStatusMessage(details?.statusText || (details?.cause)?.statusText || details?.statusText || details?.statusMessage);
910
+ const status = sanitizeStatusCode(details?.status || details?.statusCode || (details?.cause)?.status || (details?.cause)?.statusCode, 500);
911
+ const statusText = sanitizeStatusMessage(details?.statusText || details?.statusMessage || (details?.cause)?.statusText || (details?.cause)?.statusMessage);
862
912
  const message = messageInput || details?.message || (details?.cause)?.message || details?.statusText || details?.statusMessage || [
863
913
  "HTTPError",
864
914
  status,
@@ -944,7 +994,8 @@ function prepareResponse(val, event, config, nested) {
944
994
  }
945
995
  if (error.unhandled && !config.silent) console.error(error);
946
996
  const { onError } = config;
947
- return onError && !nested ? Promise.resolve(onError(error, event)).catch((error) => error).then((newVal) => prepareResponse(newVal ?? val, event, config, true)) : errorResponse(error, config.debug);
997
+ const errHeaders = event[kEventRes]?.[kEventResErrHeaders];
998
+ return onError && !nested ? Promise.resolve(onError(error, event)).catch((error) => error).then((newVal) => prepareResponse(newVal ?? val, event, config, true)) : errorResponse(error, config.debug, errHeaders);
948
999
  }
949
1000
  const preparedRes = event[kEventRes];
950
1001
  const preparedHeaders = preparedRes?.[kEventResHeaders];
@@ -1027,14 +1078,16 @@ function prepareResponseBody(val, event, config) {
1027
1078
  function nullBody(method, status) {
1028
1079
  return method === "HEAD" || status === 100 || status === 101 || status === 102 || status === 204 || status === 205 || status === 304;
1029
1080
  }
1030
- function errorResponse(error, debug) {
1081
+ function errorResponse(error, debug, errHeaders) {
1082
+ let headers = error.headers ? mergeHeaders$1(jsonHeaders, error.headers) : new Headers(jsonHeaders);
1083
+ if (errHeaders) headers = mergeHeaders$1(headers, errHeaders);
1031
1084
  return new NodeResponse(JSON.stringify({
1032
1085
  ...error.toJSON(),
1033
1086
  stack: debug && error.stack ? error.stack.split("\n").map((l) => l.trim()) : void 0
1034
1087
  }, void 0, debug ? 2 : void 0), {
1035
1088
  status: error.status,
1036
1089
  statusText: error.statusText,
1037
- headers: error.headers ? mergeHeaders$1(jsonHeaders, error.headers) : new Headers(jsonHeaders)
1090
+ headers
1038
1091
  });
1039
1092
  }
1040
1093
  function callMiddleware(event, middleware, handler, index = 0) {
@@ -1153,6 +1206,5 @@ var H3Core = class {
1153
1206
  return routeMiddleware ? [...globalMiddleware, ...routeMiddleware] : globalMiddleware;
1154
1207
  }
1155
1208
  };
1156
- new TextEncoder();
1157
1209
  //#endregion
1158
1210
  export { toEventHandler as a, serve as c, defineLazyEventHandler as i, HTTPError as n, toRequest as o, defineHandler as r, NodeResponse as s, H3Core as t };
@@ -1,8 +1,8 @@
1
- //#region ../../node_modules/.pnpm/hookable@6.0.1/node_modules/hookable/dist/index.mjs
1
+ //#region ../../node_modules/.pnpm/hookable@6.1.1/node_modules/hookable/dist/index.mjs
2
2
  function callHooks(hooks, args, startIndex, task) {
3
3
  for (let i = startIndex; i < hooks.length; i += 1) try {
4
4
  const result = task ? task.run(() => hooks[i](...args)) : hooks[i](...args);
5
- if (result instanceof Promise) return result.then(() => callHooks(hooks, args, i + 1, task));
5
+ if (result && typeof result.then === "function") return Promise.resolve(result).then(() => callHooks(hooks, args, i + 1, task));
6
6
  } catch (error) {
7
7
  return Promise.reject(error);
8
8
  }
@@ -1116,5 +1116,39 @@ var WriteStream = class extends EE {
1116
1116
  }
1117
1117
  }
1118
1118
  };
1119
+ var WriteStreamSync = class extends WriteStream {
1120
+ [_open]() {
1121
+ let fd;
1122
+ if (this[_defaultFlag] && this[_flags] === "r+") try {
1123
+ fd = fs.openSync(this[_path], this[_flags], this[_mode]);
1124
+ } catch (er) {
1125
+ if (er?.code === "ENOENT") {
1126
+ this[_flags] = "w";
1127
+ return this[_open]();
1128
+ } else throw er;
1129
+ }
1130
+ else fd = fs.openSync(this[_path], this[_flags], this[_mode]);
1131
+ this[_onopen](null, fd);
1132
+ }
1133
+ [_close]() {
1134
+ if (this[_autoClose] && typeof this[_fd] === "number") {
1135
+ const fd = this[_fd];
1136
+ this[_fd] = void 0;
1137
+ fs.closeSync(fd);
1138
+ this.emit("close");
1139
+ }
1140
+ }
1141
+ [_write](buf) {
1142
+ let threw = true;
1143
+ try {
1144
+ this[_onwrite](null, fs.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
1145
+ threw = false;
1146
+ } finally {
1147
+ if (threw) try {
1148
+ this[_close]();
1149
+ } catch {}
1150
+ }
1151
+ }
1152
+ };
1119
1153
  //#endregion
1120
- export { Minipass as i, ReadStreamSync as n, WriteStream as r, ReadStream as t };
1154
+ export { Minipass as a, WriteStreamSync as i, ReadStreamSync as n, WriteStream as r, ReadStream as t };
@@ -1909,7 +1909,7 @@ var require_setImmediate = /* @__PURE__ */ __commonJSMin((() => {
1909
1909
  else installSetTimeoutImplementation();
1910
1910
  attachTo.setImmediate = setImmediate;
1911
1911
  attachTo.clearImmediate = clearImmediate;
1912
- })(typeof self === "undefined" ? typeof global === "undefined" ? exports : global : self);
1912
+ })(typeof self === "undefined" ? typeof global === "undefined" ? void 0 : global : self);
1913
1913
  }));
1914
1914
  //#endregion
1915
1915
  //#region ../../node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/lib/utils.js
@@ -1,6 +1,7 @@
1
1
  import { r as __toESM } from "../_runtime.mjs";
2
2
  import { u as require_react } from "./@floating-ui/react-dom+[...].mjs";
3
3
  //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
4
+ var import_react = /* @__PURE__ */ __toESM(require_react());
4
5
  /**
5
6
  * @license lucide-react v0.577.0 - ISC
6
7
  *
@@ -73,7 +74,12 @@ var hasA11yProp = (props) => {
73
74
  };
74
75
  //#endregion
75
76
  //#region ../../node_modules/.pnpm/lucide-react@0.577.0_react@19.2.4/node_modules/lucide-react/dist/esm/Icon.js
76
- var import_react = /* @__PURE__ */ __toESM(require_react());
77
+ /**
78
+ * @license lucide-react v0.577.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */
77
83
  var Icon = (0, import_react.forwardRef)(({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => (0, import_react.createElement)("svg", {
78
84
  ref,
79
85
  ...defaultAttributes,