rari 0.16.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/api-routes-Dc2tv31o.mjs +1 -0
  2. package/dist/cli.d.mts +1 -1
  3. package/dist/cli.mjs +39 -39
  4. package/dist/constants-CRK2JRKf.mjs +1 -0
  5. package/dist/{define-CRafeveU.mjs → define-B_ozIapW.mjs} +1 -1
  6. package/dist/dist-paths-C4EV064W.mjs +1 -0
  7. package/dist/{execute-B1z6YRUF.mjs → execute-CbhDMAQ3.mjs} +1 -1
  8. package/dist/feed-NrJzjZyg.mjs +10 -0
  9. package/dist/font/google-catalog.d.mts +1952 -0
  10. package/dist/font/google.d.mts +1 -1946
  11. package/dist/font/google.mjs +1 -1
  12. package/dist/form-state-DAygOjc8.mjs +1 -0
  13. package/dist/get-client-component-s7qprTUa.mjs +1 -0
  14. package/dist/headers.d.mts +1 -1
  15. package/dist/image/static.d.mts +1 -0
  16. package/dist/image/static.mjs +1 -0
  17. package/dist/image.d.mts +4 -35
  18. package/dist/image.mjs +1 -1
  19. package/dist/index.d.mts +6 -1
  20. package/dist/index.mjs +1 -1
  21. package/dist/mdx/define.mjs +1 -1
  22. package/dist/mdx.mjs +1 -1
  23. package/dist/navigation-transition-store-CSKrbtbK.mjs +1 -0
  24. package/dist/path-CTEC1xmy.mjs +1 -0
  25. package/dist/platform.mjs +1 -1
  26. package/dist/preload-modules-Dv_GzGCm.mjs +2 -0
  27. package/dist/proxy/RariResponse.mjs +1 -1
  28. package/dist/proxy/runtime-executor.mjs +1 -1
  29. package/dist/regex-constants-DzXwNGh2.mjs +1 -0
  30. package/dist/{robots-B1bFAd4J.mjs → robots-BOPIkPcN.mjs} +1 -1
  31. package/dist/router-Cl4J7j1A.mjs +1 -0
  32. package/dist/router.d.mts +8 -5
  33. package/dist/router.mjs +1 -1
  34. package/dist/{rsc-vite-build-Cpu5suGN.mjs → rsc-vite-build-CSnu8C3P.mjs} +1 -1
  35. package/dist/runtime/AppRouterProvider.mjs +1 -1
  36. package/dist/runtime/ClientRouter.mjs +4 -4
  37. package/dist/runtime/ErrorBoundaryWrapper.mjs +1 -1
  38. package/dist/runtime/call-server.mjs +1 -1
  39. package/dist/runtime/entry-client.d.mts +1 -1
  40. package/dist/runtime/entry-client.mjs +3 -3
  41. package/dist/runtime/flight-router-state.d.mts +1 -0
  42. package/dist/runtime/flight-router-state.mjs +1 -1
  43. package/dist/runtime/merge-flight-refresh.d.mts +4 -0
  44. package/dist/runtime/merge-flight-refresh.mjs +1 -1
  45. package/dist/runtime/rsc-client-runtime.d.mts +1 -1
  46. package/dist/runtime/rsc-client-runtime.mjs +1 -1
  47. package/dist/serialize-router-state-uOGGpmBr.mjs +1 -0
  48. package/dist/sitemap--bdIkWl5.mjs +13 -0
  49. package/dist/static-modules-DBL6iFbg.d.mts +61 -0
  50. package/dist/{types-Q-x_0kVB.d.mts → types-C8N3Hc8I.d.mts} +1 -0
  51. package/dist/{types-xTbuE-Js.d.mts → types-DfSnnFaF.d.mts} +3 -1
  52. package/dist/vite.d.mts +3 -1
  53. package/dist/vite.mjs +141 -197
  54. package/dist/{xml-EW5iM39h.mjs → xml-DPsk9WTz.mjs} +1 -1
  55. package/package.json +22 -19
  56. package/dist/api-routes-ChRr3O5-.mjs +0 -1
  57. package/dist/constants-BFdy-wPN.mjs +0 -1
  58. package/dist/feed-uUGeOZmR.mjs +0 -10
  59. package/dist/form-state-DZJs9bve.mjs +0 -1
  60. package/dist/get-client-component-DU5z65us.mjs +0 -1
  61. package/dist/path-C74rvUep.mjs +0 -1
  62. package/dist/preload-modules-1i2BJqux.mjs +0 -2
  63. package/dist/prompt-uaCPq0_A-BW0EkzOD.mjs +0 -45
  64. package/dist/regex-constants-DBMCJbMw.mjs +0 -1
  65. package/dist/router-D6X8JHst.mjs +0 -1
  66. package/dist/runtime/LoadingErrorBoundary.d.mts +0 -10
  67. package/dist/runtime/LoadingErrorBoundary.mjs +0 -1
  68. package/dist/sitemap-DJY3OiJ0.mjs +0 -13
@@ -1 +1 @@
1
- import{c as e}from"./regex-constants-DBMCJbMw.mjs";function t(t){return t.replace(e.AMPERSAND,`&`).replace(e.LT,`<`).replace(e.GT,`>`).replace(e.QUOTE,`"`).replace(e.APOS,`'`)}export{t};
1
+ import{c as e}from"./regex-constants-DzXwNGh2.mjs";function t(t){return t.replace(e.AMPERSAND,`&`).replace(e.LT,`<`).replace(e.GT,`>`).replace(e.QUOTE,`"`).replace(e.APOS,`'`)}export{t};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rari",
3
3
  "type": "module",
4
- "version": "0.16.0",
4
+ "version": "0.17.1",
5
5
  "description": "Runtime Accelerated Rendering Infrastructure (rari)",
6
6
  "author": "Ryan Skinner",
7
7
  "license": "MIT",
@@ -15,14 +15,14 @@
15
15
  "url": "https://github.com/rari-build/rari/issues"
16
16
  },
17
17
  "keywords": [
18
+ "deno",
19
+ "framework",
18
20
  "react",
19
- "server-components",
20
21
  "rsc",
21
- "ssr",
22
- "vite",
23
22
  "rust",
24
- "deno",
25
- "framework"
23
+ "server-components",
24
+ "ssr",
25
+ "vite"
26
26
  ],
27
27
  "sideEffects": [
28
28
  "./dist/runtime/entry-client.mjs",
@@ -38,6 +38,9 @@
38
38
  "types": "./dist/image.d.mts",
39
39
  "default": "./dist/image.mjs"
40
40
  },
41
+ "./image/static": {
42
+ "types": "./dist/image/static.d.mts"
43
+ },
41
44
  "./font": {
42
45
  "types": "./dist/font.d.mts",
43
46
  "default": "./dist/font.mjs"
@@ -47,7 +50,7 @@
47
50
  "default": "./dist/font/local.mjs"
48
51
  },
49
52
  "./font/google": {
50
- "types": "./dist/font/google.d.mts",
53
+ "types": "./dist/font/google-catalog.d.mts",
51
54
  "default": "./dist/font/google.mjs"
52
55
  },
53
56
  "./mdx": {
@@ -135,11 +138,11 @@
135
138
  "dist"
136
139
  ],
137
140
  "engines": {
138
- "node": ">=24.21.0"
141
+ "node": "^24.21.0 || >=26.0.0"
139
142
  },
140
143
  "peerDependencies": {
141
144
  "@mdx-js/mdx": "^3.1.1",
142
- "@rari/use-cache": "^0.15.17",
145
+ "@rari/use-cache": "^0.17.1",
143
146
  "oxc-transform-react": "^0.151.0",
144
147
  "react": "^19.3.0",
145
148
  "react-dom": "^19.3.0"
@@ -161,28 +164,28 @@
161
164
  "react-server-dom-webpack": "^19.3.0"
162
165
  },
163
166
  "optionalDependencies": {
164
- "rari-darwin-arm64": "0.16.0",
165
- "rari-darwin-x64": "0.16.0",
166
- "rari-linux-arm64": "0.16.0",
167
- "rari-linux-x64": "0.16.0",
168
- "rari-win32-arm64": "0.16.0",
169
- "rari-win32-x64": "0.16.0"
167
+ "rari-darwin-arm64": "0.17.1",
168
+ "rari-darwin-x64": "0.17.1",
169
+ "rari-linux-arm64": "0.17.1",
170
+ "rari-linux-x64": "0.17.1",
171
+ "rari-win32-arm64": "0.17.1",
172
+ "rari-win32-x64": "0.17.1"
170
173
  },
171
174
  "devDependencies": {
172
175
  "@mdx-js/mdx": "^3.1.1",
173
176
  "@rari/deploy": "0.0.0",
174
177
  "@rari/logger": "0.0.0",
175
- "@rari/use-cache": "0.16.0",
176
- "@types/node": "^26.6.2",
178
+ "@rari/use-cache": "0.17.1",
179
+ "@types/node": "^26.6.3",
177
180
  "@types/react": "^19.3.0",
178
181
  "@types/react-dom": "^19.3.0",
179
182
  "oxc-transform-react": "^0.151.0",
180
183
  "typescript": "npm:@typescript/typescript6@^6.0.2",
181
184
  "typescript-7": "npm:typescript@^7.0.2",
182
- "vite-plus": "^0.3.3"
185
+ "vite-plus": "^1.0.0"
183
186
  },
184
187
  "scripts": {
185
- "build": "pnpm typecheck && vp pack",
188
+ "build": "pnpm typecheck && vp pack && node ./scripts/update-google-fonts.ts --types-only",
186
189
  "clean": "node --eval \"import('node:fs').then(fs => fs.rmSync('dist', { recursive: true, force: true }))\"",
187
190
  "lint": "vp lint",
188
191
  "lint:fix": "vp lint --fix",
@@ -1 +0,0 @@
1
- var e=class extends Response{static json(e,t){return Response.json(e,t)}static redirect(e,t=307){return/^https?:\/\//i.test(e)?Response.redirect(e,t):new Response(null,{status:t,headers:{location:e}})}static noContent(e){return new Response(null,{...e,status:204})}};export{e as t};
@@ -1 +0,0 @@
1
- const e=[640,750,828,1080,1200,1920,2048,3840],t=[16,32,48,64,96,128,256,384],n=[`avif`],r=[25,50,75,100],i=60;export{r as a,i,n,t as r,e as t};
@@ -1,10 +0,0 @@
1
- import{v as e}from"./type-guards-BJXKlA6x.mjs";import{t}from"./xml-EW5iM39h.mjs";import{i as n,n as r,r as i,t as a}from"./execute-B1z6YRUF.mjs";import{promises as o}from"node:fs";import s from"node:path";function c(t){return e(t)&&typeof t.title==`string`&&typeof t.description==`string`&&typeof t.link==`string`&&Array.isArray(t.items)}async function l(e){if(typeof e==`function`){let t=e(),n=t instanceof Promise?await t:t;if(!c(n))throw Error(`Feed default export must resolve to a feed object`);return n}if(!c(e))throw Error(`Feed default export must be a feed object`);return e}function u(e){return(typeof e==`string`?new Date(e):e).toUTCString()}function d(e){return e==null||e===``?``:typeof e==`string`?` <dc:creator>${t(e)}</dc:creator>`:e.email!=null&&e.email!==``?` <author>${t(`${e.email} (${e.name})`)}</author>`:` <dc:creator>${t(e.name)}</dc:creator>`}function f(e){let n=[` <item>`];n.push(` <title>${t(e.title)}</title>`),n.push(` <link>${t(e.url)}</link>`),e.description!=null&&e.description!==``&&n.push(` <description>${t(e.description)}</description>`),e.content!=null&&e.content!==``&&n.push(` <content:encoded><![CDATA[${e.content.replace(/\]\]>/g,`]]]]><![CDATA[>`)}]]></content:encoded>`);let r=d(e.author);if(r&&n.push(r),e.pubDate!=null&&n.push(` <pubDate>${u(e.pubDate)}</pubDate>`),n.push(` <guid isPermaLink="${e.guid!=null&&e.guid!==``?`false`:`true`}">${t(e.guid!=null&&e.guid!==``?e.guid:e.url)}</guid>`),e.categories)for(let r of e.categories)n.push(` <category>${t(r)}</category>`);if(e.enclosure){let r=[`url="${t(e.enclosure.url)}"`];e.enclosure.length!==void 0&&r.push(`length="${e.enclosure.length}"`),r.push(`type="${t(e.enclosure.type!=null&&e.enclosure.type!==``?e.enclosure.type:`application/octet-stream`)}"`),n.push(` <enclosure ${r.join(` `)} />`)}return n.push(` </item>`),n.join(`
2
- `)}function p(e){let n=e.items.some(e=>e.content!=null&&e.content!==``),r=e.items.some(e=>{let t=e.author;return t==null||t===``?!1:typeof t==`string`||t.email==null||t.email===``}),i=[];n&&i.push(`xmlns:content="http://purl.org/rss/1.0/modules/content/"`),r&&i.push(`xmlns:dc="http://purl.org/dc/elements/1.1/"`),i.push(`xmlns:atom="http://www.w3.org/2005/Atom"`);let a=[`<?xml version="1.0" encoding="UTF-8"?>`,`<rss version="2.0"${i.length>0?` ${i.join(` `)}`:``}>`,` <channel>`,` <title>${t(e.title)}</title>`,` <link>${t(e.link)}</link>`,` <description>${t(e.description)}</description>`,` <atom:link href="${t(`${e.link.replace(/\/+$/,``)}/feed.xml`)}" rel="self" type="application/rss+xml" />`];e.language!=null&&e.language!==``&&a.push(` <language>${t(e.language)}</language>`),e.copyright!=null&&e.copyright!==``&&a.push(` <copyright>${t(e.copyright)}</copyright>`),e.lastBuildDate!=null&&a.push(` <lastBuildDate>${u(e.lastBuildDate)}</lastBuildDate>`),e.ttl!==void 0&&a.push(` <ttl>${e.ttl}</ttl>`),e.image&&(a.push(` <image>`),a.push(` <url>${t(e.image.url)}</url>`),a.push(` <title>${t(e.image.title)}</title>`),a.push(` <link>${t(e.image.link)}</link>`),e.image.width!==void 0&&a.push(` <width>${e.image.width}</width>`),e.image.height!==void 0&&a.push(` <height>${e.image.height}</height>`),a.push(` </image>`));for(let t of e.items)a.push(f(t));return a.push(` </channel>`),a.push(`</rss>`),a.join(`
3
- `)}
4
- /* v8 ignore start - file system operations, better tested in integration/e2e */
5
- async function m(e,t=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`]){return n({appDir:e,staticFileName:`feed.xml`,dynamicBaseName:`feed`,extensions:t})}
6
- /* v8 ignore stop */
7
- /* v8 ignore start - file system operations and dynamic imports, better tested in integration/e2e */
8
- async function h(e){let{appDir:t,outDir:n,extensions:c,aliases:u={}}=e,d=await m(t,c);if(!d)return!1;await o.mkdir(n,{recursive:!0});let f=s.join(n,`feed.xml`);if(d.type===`static`)return await o.copyFile(d.path,f),!0;try{let e=await o.readFile(d.path,`utf-8`),n=await a({virtualId:`\0virtual:feed`,sourcePath:d.path,sourceCode:e,aliases:u,projectRoot:r(t),kind:`feed`,pluginName:`virtual-feed`,label:`feed`}),s=p(await l(i(n,`Feed`)));return await o.writeFile(f,s),!0}catch(e){return console.error(`[rari] Failed to build/execute feed file:`,e),!1}}
9
- /* v8 ignore stop */
10
- export{h as generateFeedFile};
@@ -1 +0,0 @@
1
- function e(e,t){let n=!0,r=/* @__PURE__ */ new Set;for(let i of t.keys())if(!r.has(i)){r.add(i);try{let n=t.getAll(i).filter(e=>typeof e==`string`),r=new Set(n),a=e.elements.namedItem(i);if(a instanceof RadioNodeList){a.forEach(e=>{e instanceof HTMLInputElement&&(e.type===`radio`||e.type===`checkbox`?e.checked=r.has(e.value):n.length===1&&(e.value=n[0]))});continue}if(a instanceof HTMLSelectElement&&a.multiple){for(let e of a.options)e.selected=r.has(e.value);continue}(a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement||a instanceof HTMLSelectElement)&&(a instanceof HTMLInputElement&&(a.type===`checkbox`||a.type===`radio`)?a.checked=r.has(a.value):n.length>0&&(a.value=n[0]))}catch{n=!1}}for(let t of e.elements)try{if(t instanceof HTMLInputElement&&(t.type===`checkbox`||t.type===`radio`)){t.name!==``&&!r.has(t.name)&&(t.checked=!1);continue}if(t instanceof HTMLSelectElement&&t.multiple){if(t.name===``||r.has(t.name))continue;for(let e of t.options)e.selected=!1}}catch{n=!1}return n}function t(){let e=/* @__PURE__ */ new Map;return typeof document>`u`||document.querySelectorAll(`form`).forEach((t,n)=>{e.set(`form-${n}`,new FormData(t))}),e}function n(t){typeof document<`u`&&document.querySelectorAll(`form`).forEach((n,r)=>{let i=t.get(`form-${r}`);i&&e(n,i)})}export{t as n,n as r,e as t};
@@ -1 +0,0 @@
1
- import{m as e,u as t,v as n,w as r}from"./type-guards-BJXKlA6x.mjs";import{o as i}from"./path-C74rvUep.mjs";import{n as a,r as o,t as s}from"./rari-global-5vGzhToD.mjs";import*as c from"react";function l(e){return e.startsWith(`./`)?[e,e.slice(2)]:[e,`./${e}`]}function u(e){let t=i(e),n=/* @__PURE__ */ new Set([t]),r=t.indexOf(`/src/`);r!==-1&&n.add(t.slice(r+1));let a=t.indexOf(`/components/`);return a!==-1&&n.add(t.slice(a+1)),[...n]}function d(e,t){if(t!==void 0)return t;let n=e.exportName;if(n!=null&&n!==``)return n}function f(e,t){let n=i(e),r=i(t);return!!(n===r||r.includes(`/`)&&n.endsWith(`/${r}`)||n.includes(`/`)&&r.endsWith(`/${n}`))}function p(e,t,n){for(let r of u(e))for(let e of l(r)){let r=Object.values(n).find(t=>t.path!==``&&f(t.path,e));if(r)return{info:r,exportName:d(r,t)}}return null}function m(e){return e.loading=!0,e.loadPromise=e.loader().then(t=>(e.component=t,e.registered=!0,e.loading=!1,t)).catch(t=>{throw console.error(`[rari] Failed to load component ${e.id}:`,t),e.loading=!1,e.loadError=t,e.loadPromise=void 0,t}),e.loadPromise}async function h(e,t){return e.component==null?e.loadPromise?(await e.loadPromise,g(e,t)):e.loader?await m(e)==null?null:g(e,t):null:g(e,t)}function g(t,r){let i=t.component;if(i==null)return null;if(e(i))return i;if(!n(i))return null;if(r==null||r===``||r==="default")return i.default??i;if(r in i)return i[r];let a=i.default;return n(a)&&r in a?a[r]:null}function _(e){let t=i(e);return t===e?[t]:[t,e]}function v(e){let t=o(),n=a(),r=s(),c=i(e);for(let n of _(e))if(n in t){let e=t[n],r=n.indexOf(`#`);return{info:e,exportName:d(e,r===-1?void 0:n.slice(r+1))}}let u=c.indexOf(`#`),f=u===-1?c:c.slice(0,u),m=u===-1?void 0:c.slice(u+1);for(let n of _(e)){let e=n.indexOf(`#`),r=e===-1?n:n.slice(0,e);if(r in t)return{info:t[r],exportName:d(t[r],m)}}let h=c===e?[f]:[f,e.includes(`#`)?e.slice(0,e.indexOf(`#`)):e];for(let e of h){for(let r of l(e))if(r in n){let e=n[r];if(e!==``&&e in t)return{info:t[e],exportName:d(t[e],m)}}if(e in r){let n=r[e];if(n!==``&&n in t)return{info:t[n],exportName:d(t[n],m)}}}return p(f,m,t)}function y(e){return r(e)}function b(e){return e.component!=null||e.loader==null?e.loadPromise:e.loadError==null?e.loadPromise?e.loadPromise:m(e):Promise.reject(y(e.loadError))}function x(t,r,i){let a=d(t,i),o=g({...t,component:r},a);if(o==null)return n(r)&&(`default`in r||`__esModule`in r)?r:e(r)?{default:r,[a!=null&&a!==``?a:`default`]:r,__esModule:!0}:r;let s=a!=null&&a!==``?a:`default`;return{...n(r)?r:{},default:o,[s]:o,__esModule:!0}}function S(e,n,r,i){let a=d(e,i),o=a!=null&&a!==``?a:`default`,s=i=>{if(e.loadError!=null)throw y(e.loadError);if(e.component!=null){let r=g(e,a);if(r==null)throw Error(`[rari] Lazy component "${n}" loaded but export "${o}" is missing`);if(!t(r))throw Error(`[rari] Lazy component "${n}" export "${o}" is not a component`);return c.createElement(r,i)}throw r};return s.displayName=`Lazy(${e.displayName??e.exportName??n})`,{default:s,[o]:s,__esModule:!0}}function C(e){let t=v(e);if(!t)return import.meta.env.DEV&&console.warn(`[rari] __rari_rsc_require__: component "${e}" not found in registry`),{};let{info:n,exportName:r}=t;if(n.component!=null)return x(n,n.component,r);if(n.loader){if(n.loadError!=null)return S(n,e,Promise.resolve(),r);let t=b(n);if(t)return S(n,e,t,r)}return{}}async function w(e){let t=v(e);return t?h(t.info,t.exportName):null}function T(){typeof window<`u`&&Reflect.set(globalThis,`__rari_chunk_load__`,async e=>{let t=o(),n=i(e),r=e in t?t[e]:n in t?t[n]:Object.values(t).find(t=>t.path===e||t.path===n);if(r&&r.component==null&&r.loader!=null){let e=b(r);if(e)return e.then(()=>void 0)}return r?.loadPromise==null?Promise.resolve():r.loadPromise.then(()=>void 0)})}export{T as n,C as r,w as t};
@@ -1 +0,0 @@
1
- import{t as e,u as t}from"./regex-constants-DBMCJbMw.mjs";function n(e,n={}){let{collapseSlashes:r=!1,ensureLeadingSlash:i=!0}=n,a=r?e.replace(t,`/`):e;if(a===`/`)return`/`;if(!a)return i?`/`:``;for(;a.endsWith(`/`)&&a.length>1;)a=a.slice(0,-1);return i&&!a.startsWith(`/`)&&(a=`/${a}`),a}function r(e,t=`http://localhost`){let n=URL.parse(e,t);if(n!=null)return n.pathname;let r=e.split(/[?#]/,1)[0]??e;return r===``?`/`:r}function i(t){return t.replace(e,`/`)}function a(){return globalThis.process?.platform===`win32`}function o(e,t){let n=i(e),r=i(t).replace(/\/+$/,``);return a()&&(n=n.toLowerCase(),r=r.toLowerCase()),n===r||n.startsWith(`${r}/`)}function s(e,t=`assets`){let n=(e??t).replace(/^\/+|\/+$/g,``);return n===``?t:n}const c=/\?.*$/;function l(e){return e.replace(c,``)}export{l as a,r as i,s as n,i as o,n as r,o as t};
@@ -1,2 +0,0 @@
1
- import{f as e}from"./type-guards-BJXKlA6x.mjs";import{o as t}from"./path-C74rvUep.mjs";import{t as n}from"./get-client-component-DU5z65us.mjs";async function r(r,i){let a=r.split(`
2
- `),o=/* @__PURE__ */ new Set;for(let n of a){let r=n.trim();if(!r)continue;let a=r.indexOf(`:`);if(a===-1)continue;let s=r.substring(a+1);if(s.startsWith(`I`))try{let n=s.substring(1),r=JSON.parse(n);if(e(r)){let e=r[0];if(!e.includes(`/`)&&e.startsWith(`$`))continue;let n=typeof r[2]==`string`?r[2]:void 0,a=t(e),s;s=a.includes(`#`)?a:n!=null&&n!==``&&n!=="default"?`${a}#${n}`:a,(!i||!i.has(s))&&o.add(s)}}catch{}}o.size>0&&await Promise.all(Array.from(o,async e=>{try{if(await n(e)==null){console.warn(`[rari] Failed to preload component: ${e}`);return}i?.add(e)}catch(t){console.error(`[rari] Error preloading component ${e}:`,t)}}))}export{r as t};
@@ -1,45 +0,0 @@
1
- import e,{stdin as t,stdout as n}from"node:process";import{WriteStream as r}from"node:tty";import i from"node:readline";function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var o,s;function c(){if(s)return o;s=1;let e={to(e,t){return t?`[${t+1};${e+1}H`:`[${e+1}G`},move(e,t){let n=``;return e<0?n+=`[${-e}D`:e>0&&(n+=`[${e}C`),t<0?n+=`[${-t}A`:t>0&&(n+=`[${t}B`),n},up:(e=1)=>`[${e}A`,down:(e=1)=>`[${e}B`,forward:(e=1)=>`[${e}C`,backward:(e=1)=>`[${e}D`,nextLine:(e=1)=>`\x1B[E`.repeat(e),prevLine:(e=1)=>`\x1B[F`.repeat(e),left:`\x1B[G`,hide:`\x1B[?25l`,show:`\x1B[?25h`,save:`\x1B7`,restore:`\x1B8`};return o={cursor:e,scroll:{up:(e=1)=>`\x1B[S`.repeat(e),down:(e=1)=>`\x1B[T`.repeat(e)},erase:{screen:`\x1B[2J`,up:(e=1)=>`\x1B[1J`.repeat(e),down:(e=1)=>`\x1B[J`.repeat(e),line:`\x1B[2K`,lineEnd:`\x1B[K`,lineStart:`\x1B[1K`,lines(t){let n=``;for(let r=0;r<t;r++)n+=this.line+(r<t-1?e.up():``);return t&&(n+=e.left),n}},beep:`\x07`},o}var l=c(),u={exports:{}},d;function ee(){if(d)return u.exports;d=1;let e=process||{},t=e.argv||[],n=e.env||{},r=!(n.NO_COLOR||t.includes(`--no-color`))&&(!!n.FORCE_COLOR||t.includes(`--color`)||e.platform===`win32`||(e.stdout||{}).isTTY&&n.TERM!==`dumb`||!!n.CI),i=(e,t,n=e)=>r=>{let i=``+r,o=i.indexOf(t,e.length);return~o?e+a(i,t,n,o)+t:e+i+t},a=(e,t,n,r)=>{let i=``,a=0;do i+=e.substring(a,r)+n,a=r+t.length,r=e.indexOf(t,a);while(~r);return i+e.substring(a)},o=(e=r)=>{let t=e?i:()=>String;return{isColorSupported:e,reset:t(`\x1B[0m`,`\x1B[0m`),bold:t(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:t(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:t(`\x1B[3m`,`\x1B[23m`),underline:t(`\x1B[4m`,`\x1B[24m`),inverse:t(`\x1B[7m`,`\x1B[27m`),hidden:t(`\x1B[8m`,`\x1B[28m`),strikethrough:t(`\x1B[9m`,`\x1B[29m`),black:t(`\x1B[30m`,`\x1B[39m`),red:t(`\x1B[31m`,`\x1B[39m`),green:t(`\x1B[32m`,`\x1B[39m`),yellow:t(`\x1B[33m`,`\x1B[39m`),blue:t(`\x1B[34m`,`\x1B[39m`),magenta:t(`\x1B[35m`,`\x1B[39m`),cyan:t(`\x1B[36m`,`\x1B[39m`),white:t(`\x1B[37m`,`\x1B[39m`),gray:t(`\x1B[90m`,`\x1B[39m`),bgBlack:t(`\x1B[40m`,`\x1B[49m`),bgRed:t(`\x1B[41m`,`\x1B[49m`),bgGreen:t(`\x1B[42m`,`\x1B[49m`),bgYellow:t(`\x1B[43m`,`\x1B[49m`),bgBlue:t(`\x1B[44m`,`\x1B[49m`),bgMagenta:t(`\x1B[45m`,`\x1B[49m`),bgCyan:t(`\x1B[46m`,`\x1B[49m`),bgWhite:t(`\x1B[47m`,`\x1B[49m`),blackBright:t(`\x1B[90m`,`\x1B[39m`),redBright:t(`\x1B[91m`,`\x1B[39m`),greenBright:t(`\x1B[92m`,`\x1B[39m`),yellowBright:t(`\x1B[93m`,`\x1B[39m`),blueBright:t(`\x1B[94m`,`\x1B[39m`),magentaBright:t(`\x1B[95m`,`\x1B[39m`),cyanBright:t(`\x1B[96m`,`\x1B[39m`),whiteBright:t(`\x1B[97m`,`\x1B[39m`),bgBlackBright:t(`\x1B[100m`,`\x1B[49m`),bgRedBright:t(`\x1B[101m`,`\x1B[49m`),bgGreenBright:t(`\x1B[102m`,`\x1B[49m`),bgYellowBright:t(`\x1B[103m`,`\x1B[49m`),bgBlueBright:t(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:t(`\x1B[105m`,`\x1B[49m`),bgCyanBright:t(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:t(`\x1B[107m`,`\x1B[49m`)}};return u.exports=o(),u.exports.createColors=o,u.exports}const f=/*@__PURE__*/ a(/* @__PURE__ */ ee());function te({onlyFirst:e=!1}={}){let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))`].join(`|`);return new RegExp(t,e?void 0:`g`)}const p=te();function m(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(p,``)}function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var g={exports:{}};(function(e){var t={};e.exports=t,t.eastAsianWidth=function(e){var t=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,r=t;return 55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t&=1023,n&=1023,r=t<<10|n,r+=65536),r==12288||65281<=r&&r<=65376||65504<=r&&r<=65510?`F`:r==8361||65377<=r&&r<=65470||65474<=r&&r<=65479||65482<=r&&r<=65487||65490<=r&&r<=65495||65498<=r&&r<=65500||65512<=r&&r<=65518?`H`:4352<=r&&r<=4447||4515<=r&&r<=4519||4602<=r&&r<=4607||9001<=r&&r<=9002||11904<=r&&r<=11929||11931<=r&&r<=12019||12032<=r&&r<=12245||12272<=r&&r<=12283||12289<=r&&r<=12350||12353<=r&&r<=12438||12441<=r&&r<=12543||12549<=r&&r<=12589||12593<=r&&r<=12686||12688<=r&&r<=12730||12736<=r&&r<=12771||12784<=r&&r<=12830||12832<=r&&r<=12871||12880<=r&&r<=13054||13056<=r&&r<=19903||19968<=r&&r<=42124||42128<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||55216<=r&&r<=55238||55243<=r&&r<=55291||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65106||65108<=r&&r<=65126||65128<=r&&r<=65131||110592<=r&&r<=110593||127488<=r&&r<=127490||127504<=r&&r<=127546||127552<=r&&r<=127560||127568<=r&&r<=127569||131072<=r&&r<=194367||177984<=r&&r<=196605||196608<=r&&r<=262141?`W`:32<=r&&r<=126||162<=r&&r<=163||165<=r&&r<=166||r==172||r==175||10214<=r&&r<=10221||10629<=r&&r<=10630?`Na`:r==161||r==164||167<=r&&r<=168||r==170||173<=r&&r<=174||176<=r&&r<=180||182<=r&&r<=186||188<=r&&r<=191||r==198||r==208||215<=r&&r<=216||222<=r&&r<=225||r==230||232<=r&&r<=234||236<=r&&r<=237||r==240||242<=r&&r<=243||247<=r&&r<=250||r==252||r==254||r==257||r==273||r==275||r==283||294<=r&&r<=295||r==299||305<=r&&r<=307||r==312||319<=r&&r<=322||r==324||328<=r&&r<=331||r==333||338<=r&&r<=339||358<=r&&r<=359||r==363||r==462||r==464||r==466||r==468||r==470||r==472||r==474||r==476||r==593||r==609||r==708||r==711||713<=r&&r<=715||r==717||r==720||728<=r&&r<=731||r==733||r==735||768<=r&&r<=879||913<=r&&r<=929||931<=r&&r<=937||945<=r&&r<=961||963<=r&&r<=969||r==1025||1040<=r&&r<=1103||r==1105||r==8208||8211<=r&&r<=8214||8216<=r&&r<=8217||8220<=r&&r<=8221||8224<=r&&r<=8226||8228<=r&&r<=8231||r==8240||8242<=r&&r<=8243||r==8245||r==8251||r==8254||r==8308||r==8319||8321<=r&&r<=8324||r==8364||r==8451||r==8453||r==8457||r==8467||r==8470||8481<=r&&r<=8482||r==8486||r==8491||8531<=r&&r<=8532||8539<=r&&r<=8542||8544<=r&&r<=8555||8560<=r&&r<=8569||r==8585||8592<=r&&r<=8601||8632<=r&&r<=8633||r==8658||r==8660||r==8679||r==8704||8706<=r&&r<=8707||8711<=r&&r<=8712||r==8715||r==8719||r==8721||r==8725||r==8730||8733<=r&&r<=8736||r==8739||r==8741||8743<=r&&r<=8748||r==8750||8756<=r&&r<=8759||8764<=r&&r<=8765||r==8776||r==8780||r==8786||8800<=r&&r<=8801||8804<=r&&r<=8807||8810<=r&&r<=8811||8814<=r&&r<=8815||8834<=r&&r<=8835||8838<=r&&r<=8839||r==8853||r==8857||r==8869||r==8895||r==8978||9312<=r&&r<=9449||9451<=r&&r<=9547||9552<=r&&r<=9587||9600<=r&&r<=9615||9618<=r&&r<=9621||9632<=r&&r<=9633||9635<=r&&r<=9641||9650<=r&&r<=9651||9654<=r&&r<=9655||9660<=r&&r<=9661||9664<=r&&r<=9665||9670<=r&&r<=9672||r==9675||9678<=r&&r<=9681||9698<=r&&r<=9701||r==9711||9733<=r&&r<=9734||r==9737||9742<=r&&r<=9743||9748<=r&&r<=9749||r==9756||r==9758||r==9792||r==9794||9824<=r&&r<=9825||9827<=r&&r<=9829||9831<=r&&r<=9834||9836<=r&&r<=9837||r==9839||9886<=r&&r<=9887||9918<=r&&r<=9919||9924<=r&&r<=9933||9935<=r&&r<=9953||r==9955||9960<=r&&r<=9983||r==10045||r==10071||10102<=r&&r<=10111||11093<=r&&r<=11097||12872<=r&&r<=12879||57344<=r&&r<=63743||65024<=r&&r<=65039||r==65533||127232<=r&&r<=127242||127248<=r&&r<=127277||127280<=r&&r<=127337||127344<=r&&r<=127386||917760<=r&&r<=917999||983040<=r&&r<=1048573||1048576<=r&&r<=1114109?`A`:`N`},t.characterLength=function(e){var t=this.eastAsianWidth(e);return t==`F`||t==`W`||t==`A`?2:1};function n(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}t.length=function(e){for(var t=n(e),r=0,i=0;i<t.length;i++)r+=this.characterLength(t[i]);return r},t.slice=function(e,r,i){textLen=t.length(e),r||=0,i||=1,r<0&&(r=textLen+r),i<0&&(i=textLen+i);for(var a=``,o=0,s=n(e),c=0;c<s.length;c++){var l=s[c],u=t.length(l);if(o>=r-+(u==2)){if(o+u<=i)a+=l;else break}o+=u}return a}})(g);var _=g.exports;const ne=h(_),re=h(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function v(e,t={}){if(typeof e!=`string`||e.length===0||(t={ambiguousIsNarrow:!0,...t},e=m(e),e.length===0))return 0;e=e.replace(re(),` `);let n=t.ambiguousIsNarrow?1:2,r=0;for(let t of e){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159||e>=768&&e<=879))switch(ne.eastAsianWidth(t)){case`F`:case`W`:r+=2;break;case`A`:r+=n;break;default:r+=1}}return r}const y=(e=0)=>t=>`\x1B[${t+e}m`,b=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,x=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,S={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(S.modifier);const ie=Object.keys(S.color),C=Object.keys(S.bgColor);[...ie,...C];function ae(){let e=/* @__PURE__ */ new Map;for(let[t,n]of Object.entries(S)){for(let[t,r]of Object.entries(n))S[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[t]=S[t],e.set(r[0],r[1]);Object.defineProperty(S,t,{value:n,enumerable:!1})}return Object.defineProperty(S,"codes",{value:e,enumerable:!1}),S.color.close=`\x1B[39m`,S.bgColor.close=`\x1B[49m`,S.color.ansi=y(),S.color.ansi256=b(),S.color.ansi16m=x(),S.bgColor.ansi=y(10),S.bgColor.ansi256=b(10),S.bgColor.ansi16m=x(10),Object.defineProperties(S,{rgbToAnsi256:{value:(e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>S.rgbToAnsi256(...S.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>S.ansi256ToAnsi(S.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>S.ansi256ToAnsi(S.hexToAnsi256(e)),enumerable:!1}}),S}const oe=ae(),w=/* @__PURE__ */ new Set([`\x1B`,`›`]),T=`]8;;`,E=e=>`${w.values().next().value}[${e}m`,D=e=>`${w.values().next().value}${T}${e}`,O=e=>e.split(` `).map(e=>v(e)),k=(e,t,n)=>{let r=[...t],i=!1,a=!1,o=v(m(e[e.length-1]));for(let[t,s]of r.entries()){let c=v(s);if(o+c<=n?e[e.length-1]+=s:(e.push(s),o=0),w.has(s)&&(i=!0,a=r.slice(t+1).join(``).startsWith(T)),i){a?s===`\x07`&&(i=!1,a=!1):s===`m`&&(i=!1);continue}o+=c,o===n&&t<r.length-1&&(e.push(``),o=0)}!o&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},se=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(v(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},ce=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=O(e),s=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let e=v(s[s.length-1]);if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),e=0),(e>0||n.trim===!1)&&(s[s.length-1]+=` `,e++)),n.hard&&o[r]>t){let n=t-e,a=1+Math.floor((o[r]-n-1)/t);Math.floor((o[r]-1)/t)<a&&s.push(``),k(s,i,t);continue}if(e+o[r]>t&&e>0&&o[r]>0){if(n.wordWrap===!1&&e<t){k(s,i,t);continue}s.push(``)}if(e+o[r]>t&&n.wordWrap===!1){k(s,i,t);continue}s[s.length-1]+=i}n.trim!==!1&&(s=s.map(e=>se(e)));let c=[...s.join(`
2
- `)];for(let[e,t]of c.entries()){if(r+=t,w.has(t)){let{groups:t}=RegExp(`(?:\\[(?<code>\\d+)m|\\${T}(?<uri>.*))`).exec(c.slice(e).join(``))||{groups:{}};if(t.code!==void 0){let e=Number.parseFloat(t.code);i=e===39?void 0:e}else t.uri!==void 0&&(a=t.uri.length===0?void 0:t.uri)}let n=oe.codes.get(Number(i));c[e+1]===`
3
- `?(a&&(r+=D(``)),i&&n&&(r+=E(n))):t===`
4
- `&&(i&&n&&(r+=E(i)),a&&(r+=D(a)))}return r};function A(e,t,n){return String(e).normalize().replace(/\r\n/g,`
5
- `).split(`
6
- `).map(e=>ce(e,t,n)).join(`
7
- `)}const j={actions:/* @__PURE__ */ new Set([`up`,`down`,`left`,`right`,`space`,`enter`,`cancel`]),aliases:/* @__PURE__ */ new Map([[`k`,`up`],[`j`,`down`],[`h`,`left`],[`l`,`right`],[``,`cancel`],[`escape`,`cancel`]])};function M(e,t){if(typeof e==`string`)return j.aliases.get(e)===t;for(let n of e)if(n!==void 0&&M(n,t))return!0;return!1}function le(e,t){if(e===t)return;let n=e.split(`
8
- `),r=t.split(`
9
- `),i=[];for(let e=0;e<Math.max(n.length,r.length);e++)n[e]!==r[e]&&i.push(e);return i}globalThis.process.platform.startsWith(`win`);const N=Symbol(`clack:cancel`);function P(e,t){let n=e;n.isTTY&&n.setRawMode(t)}var ue=Object.defineProperty,F=(e,t,n)=>t in e?ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t,n)=>(F(e,typeof t==`symbol`?t:t+``,n),n),L=class{constructor(e,r=!0){I(this,`input`),I(this,`output`),I(this,`_abortSignal`),I(this,`rl`),I(this,`opts`),I(this,`_render`),I(this,`_track`,!1),I(this,`_prevFrame`,``),I(this,`_subscribers`,/* @__PURE__ */ new Map),I(this,`_cursor`,0),I(this,`state`,`initial`),I(this,`error`,``),I(this,`value`);let{input:i=t,output:a=n,render:o,signal:s,...c}=e;this.opts=c,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=r,this._abortSignal=s,this.input=i,this.output=a}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let n=this._subscribers.get(e)??[],r=[];for(let e of n)e.cb(...t),e.once&&r.push(()=>n.splice(n.indexOf(e),1));for(let e of r)e()}prompt(){return new Promise((e,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state=`cancel`,this.close(),e(N);this._abortSignal.addEventListener(`abort`,()=>{this.state=`cancel`,this.close()},{once:!0})}let n=new r(0);n._write=(e,t,n)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,``),this._cursor=this.rl?.cursor??0,this.emit(`value`,this.value)),n()},this.input.pipe(n),this.rl=i.createInterface({input:this.input,output:n,tabSize:2,prompt:``,escapeCodeTimeout:50}),i.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on(`keypress`,this.onKeypress),P(this.input,!0),this.output.on(`resize`,this.render),this.render(),this.once(`submit`,()=>{this.output.write(l.cursor.show),this.output.off(`resize`,this.render),P(this.input,!1),e(this.value)}),this.once(`cancel`,()=>{this.output.write(l.cursor.show),this.output.off(`resize`,this.render),P(this.input,!1),e(N)})})}onKeypress(e,t){if(this.state===`error`&&(this.state=`active`),t?.name&&(!this._track&&j.aliases.has(t.name)&&this.emit(`cursor`,j.aliases.get(t.name)),j.actions.has(t.name)&&this.emit(`cursor`,t.name)),e&&(e.toLowerCase()===`y`||e.toLowerCase()===`n`)&&this.emit(`confirm`,e.toLowerCase()===`y`),e===` `&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit(`value`,this.opts.placeholder))),e&&this.emit(`key`,e.toLowerCase()),t?.name===`return`){if(this.opts.validate){let e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state=`error`,this.rl?.write(this.value))}this.state!==`error`&&(this.state=`submit`)}M([e,t?.name,t?.sequence],`cancel`)&&(this.state=`cancel`),(this.state===`submit`||this.state===`cancel`)&&this.emit(`finalize`),this.render(),(this.state===`submit`||this.state===`cancel`)&&this.close()}close(){this.input.unpipe(),this.input.removeListener(`keypress`,this.onKeypress),this.output.write(`
10
- `),P(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let e=A(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
11
- `).length-1;this.output.write(l.cursor.move(-999,e*-1))}render(){let e=A(this._render(this)??``,process.stdout.columns,{hard:!0});if(e!==this._prevFrame){if(this.state===`initial`)this.output.write(l.cursor.hide);else{let t=le(this._prevFrame,e);if(this.restoreCursor(),t&&t?.length===1){let n=t[0];this.output.write(l.cursor.move(0,n)),this.output.write(l.erase.lines(1));let r=e.split(`
12
- `);this.output.write(r[n]),this._prevFrame=e,this.output.write(l.cursor.move(0,r.length-n-1));return}if(t&&t?.length>1){let n=t[0];this.output.write(l.cursor.move(0,n)),this.output.write(l.erase.down());let r=e.split(`
13
- `).slice(n);this.output.write(r.join(`
14
- `)),this._prevFrame=e;return}this.output.write(l.erase.down())}this.output.write(e),this.state===`initial`&&(this.state=`active`),this._prevFrame=e}}},R=class extends L{get cursor(){return+!this.value}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on(`value`,()=>{this.value=this._value}),this.on(`confirm`,e=>{this.output.write(l.cursor.move(0,-1)),this.value=e,this.state=`submit`,this.close()}),this.on(`cursor`,()=>{this.value=!this.value})}},z=Object.defineProperty,B=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t,n)=>(B(e,typeof t==`symbol`?t:t+``,n),n);let H=class extends L{constructor(e){super(e,!1),V(this,`options`),V(this,`cursor`,0),this.options=e.options,this.value=[...e.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),0),this.on(`key`,e=>{e===`a`&&this.toggleAll()}),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case`down`:case`right`:this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case`space`:this.toggleValue()}})}get _value(){return this.options[this.cursor].value}toggleAll(){let e=this.value.length===this.options.length;this.value=e?[]:this.options.map(e=>e.value)}toggleValue(){let e=this.value.includes(this._value);this.value=e?this.value.filter(e=>e!==this._value):[...this.value,this._value]}};var U=Object.defineProperty,de=(e,t,n)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W=(e,t,n)=>(de(e,typeof t==`symbol`?t:t+``,n),n),fe=class extends L{constructor(e){super(e,!1),W(this,`options`),W(this,`cursor`,0),this.options=e.options,this.cursor=this.options.findIndex(({value:t})=>t===e.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on(`cursor`,e=>{switch(e){case`left`:case`up`:this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case`down`:case`right`:this.cursor=this.cursor===this.options.length-1?0:this.cursor+1}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}},pe=class extends L{get valueWithCursor(){if(this.state===`submit`)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let e=this.value.slice(0,this.cursor),[t,...n]=this.value.slice(this.cursor);return`${e}${f.inverse(t)}${n.join(``)}`}get cursor(){return this._cursor}constructor(e){super(e),this.on(`finalize`,()=>{this.value||=e.defaultValue})}};function me(){return e.platform===`win32`?!!e.env.CI||!!e.env.WT_SESSION||!!e.env.TERMINUS_SUBLIME||e.env.ConEmuTask===`{cmd::Cmder}`||e.env.TERM_PROGRAM===`Terminus-Sublime`||e.env.TERM_PROGRAM===`vscode`||e.env.TERM===`xterm-256color`||e.env.TERM===`alacritty`||e.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:e.env.TERM!==`linux`}const he=me(),G=(e,t)=>he?e:t,ge=G(`❯`,`>`),_e=G(`■`,`x`),ve=G(`▲`,`x`),ye=G(`✔`,`√`),K=G(``),q=G(``),J=G(`●`,`>`),Y=G(`○`,` `),be=G(`◻`,`[•]`),X=G(`◼`,`[+]`),xe=G(`◻`,`[ ]`),Z=e=>{switch(e){case`initial`:case`active`:return f.cyan(ge);case`cancel`:return f.red(_e);case`error`:return f.yellow(ve);case`submit`:return f.green(ye)}},Q=e=>{let{cursor:t,options:n,style:r}=e,i=e.maxItems??1/0,a=Math.max(process.stdout.rows-4,0),o=Math.min(a,Math.max(i,5)),s=0;t>=s+o-3?s=Math.max(Math.min(t-o+3,n.length-o),0):t<s+2&&(s=Math.max(t-2,0));let c=o<n.length&&s>0,l=o<n.length&&s+o<n.length;return n.slice(s,s+o).map((e,n,i)=>{let a=n===0&&c,o=n===i.length-1&&l;return a||o?f.dim(`...`):r(e,n+s===t)})},Se=e=>new pe({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,render(){let t=`${f.gray(K)}
15
- ${Z(this.state)} ${e.message}
16
- `,n=e.placeholder?f.inverse(e.placeholder[0])+f.dim(e.placeholder.slice(1)):f.inverse(f.hidden(`_`)),r=this.value?this.valueWithCursor:n;switch(this.state){case`error`:return`${t.trim()}
17
- ${f.yellow(K)} ${r}
18
- ${f.yellow(q)} ${f.yellow(this.error)}
19
- `;case`submit`:return`${t}${f.gray(K)} ${f.dim(this.value||e.placeholder)}`;case`cancel`:return`${t}${f.gray(K)} ${f.strikethrough(f.dim(this.value??``))}${this.value?.trim()?`
20
- ${f.gray(K)}`:``}`;default:return`${t}${f.cyan(K)} ${r}
21
- ${f.cyan(q)}
22
- `}}}).prompt(),Ce=e=>{let t=e.active??`Yes`,n=e.inactive??`No`;return new R({active:t,inactive:n,initialValue:e.initialValue??!0,render(){let r=`${f.gray(K)}
23
- ${Z(this.state)} ${e.message}
24
- `,i=this.value?t:n;switch(this.state){case`submit`:return`${r}${f.gray(K)} ${f.dim(i)}`;case`cancel`:return`${r}${f.gray(K)} ${f.strikethrough(f.dim(i))}
25
- ${f.gray(K)}`;default:return`${r}${f.cyan(K)} ${this.value?`${f.green(J)} ${t}`:`${f.dim(Y)} ${f.dim(t)}`} ${f.dim(`/`)} ${this.value?`${f.dim(Y)} ${f.dim(n)}`:`${f.green(J)} ${n}`}
26
- ${f.cyan(q)}
27
- `}}}).prompt()},we=e=>{let t=(e,t)=>{let n=e.label??String(e.value);switch(t){case`selected`:return`${f.dim(n)}`;case`active`:return`${f.green(J)} ${n} ${e.hint?f.dim(`(${e.hint})`):``}`;case`cancelled`:return`${f.strikethrough(f.dim(n))}`;default:return`${f.dim(Y)} ${f.dim(n)}`}};return new fe({options:e.options,initialValue:e.initialValue,render(){let n=`${f.gray(K)}
28
- ${Z(this.state)} ${e.message}
29
- `;switch(this.state){case`submit`:return`${n}${f.gray(K)} ${t(this.options[this.cursor],`selected`)}`;case`cancel`:return`${n}${f.gray(K)} ${t(this.options[this.cursor],`cancelled`)}
30
- ${f.gray(K)}`;default:return`${n}${f.cyan(K)} ${Q({cursor:this.cursor,options:this.options,maxItems:e.maxItems,style:(e,n)=>t(e,n?`active`:`inactive`)}).join(`
31
- ${f.cyan(K)} `)}
32
- ${f.cyan(q)}
33
- `}}}).prompt()},Te=e=>{let t=(e,t)=>{let n=e.label??String(e.value);return t===`active`?`${f.cyan(be)} ${n} ${e.hint?f.dim(`(${e.hint})`):``}`:t===`selected`?`${f.green(X)} ${f.dim(n)}`:t===`cancelled`?`${f.strikethrough(f.dim(n))}`:t===`active-selected`?`${f.green(X)} ${n} ${e.hint?f.dim(`(${e.hint})`):``}`:t===`submitted`?`${f.dim(n)}`:`${f.dim(xe)} ${f.dim(n)}`};return new H({options:e.options,initialValues:e.initialValues,required:e.required??!0,cursorAt:e.cursorAt,validate(e){if(this.required&&e.length===0)return`Please select at least one option.
34
- ${f.reset(f.dim(`Press ${f.gray(f.bgWhite(f.inverse(` space `)))} to select, ${f.gray(f.bgWhite(f.inverse(` enter `)))} to submit`))}`},render(){let n=`${f.gray(K)}
35
- ${Z(this.state)} ${e.message}
36
- `,r=(e,n)=>{let r=this.value.includes(e.value);return n&&r?t(e,`active-selected`):r?t(e,`selected`):t(e,n?`active`:`inactive`)};switch(this.state){case`submit`:return`${n}${f.gray(K)} ${this.options.filter(({value:e})=>this.value.includes(e)).map(e=>t(e,`submitted`)).join(f.dim(`, `))||f.dim(`none`)}`;case`cancel`:{let e=this.options.filter(({value:e})=>this.value.includes(e)).map(e=>t(e,`cancelled`)).join(f.dim(`, `));return`${n}${f.gray(K)} ${e.trim()?`${e}
37
- ${f.gray(K)}`:``}`}case`error`:{let t=this.error.split(`
38
- `).map((e,t)=>t===0?`${f.yellow(q)} ${f.yellow(e)}`:` ${e}`).join(`
39
- `);return`${n+f.yellow(K)} ${Q({options:this.options,cursor:this.cursor,maxItems:e.maxItems,style:r}).join(`
40
- ${f.yellow(K)} `)}
41
- ${t}
42
- `}default:return`${n}${f.cyan(K)} ${Q({options:this.options,cursor:this.cursor,maxItems:e.maxItems,style:r}).join(`
43
- ${f.cyan(K)} `)}
44
- ${f.cyan(q)}
45
- `}}}).prompt()};`${f.gray(K)}`;const Ee=Symbol.for(`cancel`);async function $(e,t={}){let n=e=>{if(typeof e!=`symbol`||e.toString()!==`Symbol(clack:cancel)`)return e;switch(t.cancel){case`reject`:{let e=/* @__PURE__ */ Error(`Prompt cancelled.`);throw e.name=`ConsolaPromptCancelledError`,Error.captureStackTrace&&Error.captureStackTrace(e,$),e}case`undefined`:return;case`null`:return null;case`symbol`:return Ee;default:case`default`:return t.default??t.initial}};if(!t.type||t.type===`text`)return await Se({message:e,defaultValue:t.default,placeholder:t.placeholder,initialValue:t.initial}).then(n);if(t.type===`confirm`)return await Ce({message:e,initialValue:t.initial}).then(n);if(t.type===`select`)return await we({message:e,options:t.options.map(e=>typeof e==`string`?{value:e,label:e}:e),initialValue:t.initial}).then(n);if(t.type===`multiselect`)return await Te({message:e,options:t.options.map(e=>typeof e==`string`?{value:e,label:e}:e),required:t.required,initialValues:t.initial}).then(n);throw Error(`Unknown prompt type: ${t.type}`)}export{$ as prompt};
@@ -1 +0,0 @@
1
- const e=/\.(?:tsx?|jsx?)$/,t=/^[A-Z]:\\/i,n=/\\/g,r=/[/\\]/,i=/\/{2,}/g,a=/\/$/,o=/^src\//,s=/^https?:\/\//,c={AMPERSAND:/&/g,LT:/</g,GT:/>/g,QUOTE:/"/g,APOS:/'/g},l=/[^\w/-]/g,u=/export\s+(?:function|const|class)\s+(\w+)/,d=/export\s+(?:default\s+)?(?:async\s+)?(?:function|class)[\s{(]/,f=/export\s+default\s+(?:(?:async\s+)?\(|(?:async\s+)?[a-zA-Z_$][\w$]*\s*=>)/,p=/export\s+(?:const|let|var)\s+[a-zA-Z_$][\w$]*(?:\s*:[^;]*[^;=\s])?\s*=\s*(?:async\s+)?(?:function[\s*(]|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,m=/\.[^.]*$/,h=/['"]/g;export{d as a,c,r as d,a as f,t as g,e as h,f as i,s as l,o as m,l as n,u as o,h as p,p as r,m as s,n as t,i as u};
@@ -1 +0,0 @@
1
- import{n as e}from"./navigate-DuyUa6qD.mjs";import{i as t,v as n}from"./type-guards-BJXKlA6x.mjs";import{c as r}from"react/compiler-runtime";import{createContext as i,use as a,useEffect as o,useRef as s,useState as c}from"react";import{jsx as l}from"react/jsx-runtime";function u(e){return n(e)&&typeof e.to==`string`}function d(e){return n(e)&&typeof e.navigate==`function`}const f=i(null);function p(n){let i=r(12),{children:a,initialPathname:p}=n,[y,b]=c(p),[x,S]=c(v),C=s(null),w,T;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{let e=e=>{let n=t(e,u);n&&(b(n.to),S(new URLSearchParams(window.location.search)))};return window.addEventListener(`rari:navigate`,e),()=>{window.removeEventListener(`rari:navigate`,e)}},T=[],i[0]=w,i[1]=T):(w=i[0],T=i[1]),o(w,T);let E,D;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>{let n=e();n&&(C.current=n);let r=e=>{let n=t(e,d);n&&(C.current=n.navigate)},i=()=>{C.current=null};return window.addEventListener(`rari:register-navigate`,r),window.addEventListener(`rari:deregister-navigate`,i),()=>{window.removeEventListener(`rari:register-navigate`,r),window.removeEventListener(`rari:deregister-navigate`,i)}},D=[],i[2]=E,i[3]=D):(E=i[2],D=i[3]),o(E,D);let O,k;i[4]===Symbol.for(`react.memo_cache_sentinel`)?(O=async(e,t)=>{C.current?await C.current(e,t):(console.warn(`[rari] Router not ready, falling back to window.location`),window.location.href=e)},k=async(e,t)=>{C.current?await C.current(e,{...t,replace:!0}):(console.warn(`[rari] Router not ready, falling back to window.location`),window.location.replace(e))},i[4]=O,i[5]=k):(O=i[4],k=i[5]);let A;i[6]!==y||i[7]!==x?(A={pathname:y,searchParams:x,push:O,replace:k,back:_,forward:g,refresh:h,prefetch:m},i[6]=y,i[7]=x,i[8]=A):A=i[8];let j=A,M;return i[9]!==a||i[10]!==j?(M=/* @__PURE__ */ l(f,{value:j,children:a}),i[9]=a,i[10]=j,i[11]=M):M=i[11],M}async function m(e){try{let t=new URL(e,window.location.origin);await fetch(t.pathname+t.search,{headers:{Accept:`text/x-component`},priority:`low`})}catch(e){console.warn(`[rari] Prefetch failed:`,e)}}function h(){window.dispatchEvent(new CustomEvent(`rari:app-router-rerender`))}function g(){window.history.forward()}function _(){window.history.back()}function v(){return typeof window<`u`?new URLSearchParams(window.location.search):new URLSearchParams}function y(){let e=a(f);if(!e)throw Error(`useRouter must be used within a RouterProvider`);return e}function b(){return y().pathname}function x(){return y().searchParams}export{x as i,b as n,y as r,p as t};
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- //#region src/runtime/boundaries/loading-error-boundary.d.ts
3
- interface LoadingErrorBoundaryProps {
4
- children: React.ReactNode;
5
- }
6
- export declare class LoadingErrorBoundary extends React.Component<LoadingErrorBoundaryProps> {
7
- componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
8
- render(): React.ReactNode;
9
- }
10
- //#endregion
@@ -1 +0,0 @@
1
- "use client";import*as e from"react";var t=class extends e.Component{componentDidCatch(e,t){console.error(`[rari] Loading: Loading component failed to render:`,e),console.error(`[rari] Loading: Error info:`,t)}render(){return this.props.children}};export{t as LoadingErrorBoundary};
@@ -1,13 +0,0 @@
1
- import{v as e}from"./type-guards-BJXKlA6x.mjs";import{t}from"./xml-EW5iM39h.mjs";import{i as n,n as r,t as i}from"./execute-B1z6YRUF.mjs";import{promises as a}from"node:fs";import o from"node:path";const s=/[^\w-]/g;function c(e){return(typeof e==`string`?new Date(e):e).toISOString()}function l(e){return[` <image:image>`,` <image:loc>${t(e)}</image:loc>`,` </image:image>`].join(`
2
- `)}function u(e){let n=[` <image:image>`,` <image:loc>${t(e.loc)}</image:loc>`];return e.title!=null&&e.title!==``&&n.push(` <image:title>${t(e.title)}</image:title>`),e.caption!=null&&e.caption!==``&&n.push(` <image:caption>${t(e.caption)}</image:caption>`),e.geoLocation!=null&&e.geoLocation!==``&&n.push(` <image:geo_location>${t(e.geoLocation)}</image:geo_location>`),e.license!=null&&e.license!==``&&n.push(` <image:license>${t(e.license)}</image:license>`),n.push(` </image:image>`),n.join(`
3
- `)}function d(e){let t=[];for(let n of e)typeof n==`string`?t.push(l(n)):t.push(u(n));return t.join(`
4
- `)}function f(e){let n=[];if(n.push(` <video:video>`),n.push(` <video:title>${t(e.title)}</video:title>`),n.push(` <video:thumbnail_loc>${t(e.thumbnail_loc)}</video:thumbnail_loc>`),n.push(` <video:description>${t(e.description)}</video:description>`),e.content_loc!=null&&e.content_loc!==``&&n.push(` <video:content_loc>${t(e.content_loc)}</video:content_loc>`),e.player_loc!=null&&e.player_loc!==``&&n.push(` <video:player_loc>${t(e.player_loc)}</video:player_loc>`),e.duration!==void 0&&n.push(` <video:duration>${e.duration}</video:duration>`),e.expiration_date!=null&&e.expiration_date!==``&&n.push(` <video:expiration_date>${t(e.expiration_date)}</video:expiration_date>`),e.rating!==void 0&&n.push(` <video:rating>${e.rating}</video:rating>`),e.view_count!==void 0&&n.push(` <video:view_count>${e.view_count}</video:view_count>`),e.publication_date!=null&&e.publication_date!==``&&n.push(` <video:publication_date>${t(e.publication_date)}</video:publication_date>`),e.family_friendly!==void 0&&n.push(` <video:family_friendly>${e.family_friendly?`yes`:`no`}</video:family_friendly>`),e.requires_subscription!==void 0&&n.push(` <video:requires_subscription>${e.requires_subscription?`yes`:`no`}</video:requires_subscription>`),e.live!==void 0&&n.push(` <video:live>${e.live?`yes`:`no`}</video:live>`),e.restriction&&n.push(` <video:restriction relationship="${t(e.restriction.relationship)}">${t(e.restriction.content)}</video:restriction>`),e.platform&&n.push(` <video:platform relationship="${t(e.platform.relationship)}">${t(e.platform.content)}</video:platform>`),e.uploader){let r=e.uploader.info!=null&&e.uploader.info!==``?` info="${t(e.uploader.info)}"`:``;n.push(` <video:uploader${r}>${t(e.uploader.name)}</video:uploader>`)}if(e.tag)for(let r of e.tag)n.push(` <video:tag>${t(r)}</video:tag>`);return n.push(` </video:video>`),n.join(`
5
- `)}function p(e){return e.map(e=>f(e)).join(`
6
- `)}function m(e){let t=e.some(e=>e.images&&e.images.length>0),n=e.some(e=>e.videos&&e.videos.length>0),r=e.some(e=>e.alternates?.languages),i=[`xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"`];return t&&i.push(`xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"`),n&&i.push(`xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"`),r&&i.push(`xmlns:xhtml="http://www.w3.org/1999/xhtml"`),i}function h(e,n){e.push(` <url>`),e.push(` <loc>${t(n.url)}</loc>`),n.lastModified!=null&&e.push(` <lastmod>${c(n.lastModified)}</lastmod>`),n.changeFrequency&&e.push(` <changefreq>${n.changeFrequency}</changefreq>`),n.priority!==void 0&&e.push(` <priority>${n.priority}</priority>`)}function g(e,n){if(n.alternates?.languages)for(let[r,i]of Object.entries(n.alternates.languages))e.push(` <xhtml:link rel="alternate" hreflang="${t(r)}" href="${t(i)}" />`)}function _(e,t){t.images&&t.images.length>0&&e.push(d(t.images)),t.videos&&t.videos.length>0&&e.push(p(t.videos))}function v(e){let t=[`<?xml version="1.0" encoding="UTF-8"?>`,`<urlset ${m(e).join(` `)}>`];for(let n of e)h(t,n),g(t,n),_(t,n),t.push(` </url>`);return t.push(`</urlset>`),t.join(`
7
- `)}
8
- /* v8 ignore start - file system operations, better tested in integration/e2e */
9
- async function y(e,t=[`.ts`,`.tsx`,`.js`,`.jsx`,`.mjs`,`.json`]){let r=await n({appDir:e,staticFileName:`sitemap.xml`,dynamicBaseName:`sitemap`,extensions:t});return r?[r]:[]}function b(e){return typeof e==`function`||Array.isArray(e)}function x(t){return e(t)?b(t.default):!1}async function S(e,t,n={},r){let a=await i({virtualId:`\0virtual:sitemap`,sourcePath:e.path,sourceCode:t,aliases:n,projectRoot:r,kind:`sitemap`,pluginName:`virtual-sitemap`,label:`sitemap`});if(!x(a))throw Error(`Sitemap module must export a default sitemap array or sitemap generator function`);return a}async function C(e,t){let n=await e.generateSitemaps(),r=o.join(t,`sitemap`);await a.mkdir(r,{recursive:!0});let i=/* @__PURE__ */ new Map;for(let{id:t}of n)try{let n=t.replace(s,`_`);(!n||n.length===0)&&(n=`_`);let c=i.get(n);if(c!==void 0)throw Error(`Duplicate sanitized sitemap ID "${n}": original IDs "${c}" and "${t}" collide`);i.set(n,t);let l=typeof e.default==`function`?await e.default({id:t}):e.default;if(!Array.isArray(l))throw Error(`Sitemap default export must resolve to a sitemap entry array`);let u=v(l),d=o.join(r,`${n}.xml`);await a.writeFile(d,u)}catch(e){throw Error(`Failed to generate sitemap for id "${t}"`,{cause:e})}}async function w(e,t){let n=typeof e.default==`function`?await e.default():e.default;if(!Array.isArray(n))throw Error(`Sitemap default export must resolve to a sitemap entry array`);let r=v(n),i=o.join(t,`sitemap.xml`);await a.writeFile(i,r)}
10
- /* v8 ignore start - file system operations and dynamic imports, better tested in integration/e2e */
11
- async function T(e){let{appDir:t,extensions:n,outDir:i,aliases:s={}}=e,c=await y(t,n);if(c.length===0)return!1;await a.mkdir(i,{recursive:!0});let l=c[0];if(l.type===`static`){let e=o.join(i,`sitemap.xml`);return await a.copyFile(l.path,e),!0}try{let e=await S(l,await a.readFile(l.path,`utf-8`),s,r(t));return typeof e.generateSitemaps==`function`?await C(e,i):await w(e,i),!0}catch(e){return console.error(`[rari] Failed to build/execute sitemap file:`,e),!1}}
12
- /* v8 ignore stop */
13
- export{T as generateSitemapFiles};