@kimuson/claude-code-viewer 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/main.js +65 -24
  2. package/dist/main.js.map +3 -3
  3. package/dist/static/assets/{AuthProvider-Ds-c4CWc.js → AuthProvider-BuZnJ5E7.js} +2 -2
  4. package/dist/static/assets/NotFound-Dwvf0Bo3.js +1 -0
  5. package/dist/static/assets/ProtectedRoute-CTOJTf-s.js +1 -0
  6. package/dist/static/assets/card-5CIj0Vrs.js +1 -0
  7. package/dist/static/assets/createLucideIcon-CRmASjPp.js +1 -0
  8. package/dist/static/assets/{dist-CG2L4mx5.js → dist-B0PGU2Rq.js} +1 -1
  9. package/dist/static/assets/dist-DiNC9I1q.js +84 -0
  10. package/dist/static/assets/{eye-SsvAY8oF.js → eye-DomqS332.js} +1 -1
  11. package/dist/static/assets/{index-DNPVlDui.css → index-B5oyQ9A3.css} +1 -1
  12. package/dist/static/assets/index-PituKE8G.js +20 -0
  13. package/dist/static/assets/{input-B_6IT1CP.js → input-DxYncE22.js} +1 -1
  14. package/dist/static/assets/{label-Cw6sZ5kQ.js → label-BIlZTnVW.js} +1 -1
  15. package/dist/static/assets/{login-CKSjZM5v.js → login-BgVcUPOp.js} +1 -1
  16. package/dist/static/assets/markdown-parser-vendor-Dm3WZMeS.js +29 -0
  17. package/dist/static/assets/{projects-DH0K12HM.js → projects-BrdJ1LSG.js} +1 -1
  18. package/dist/static/assets/{refractor-vendor-B-OUwWR7.js → refractor-vendor-CoTYH44G.js} +1 -1
  19. package/dist/static/assets/{routes-CzLZwWu9.js → routes-BCc9450k.js} +1 -1
  20. package/dist/static/assets/session-BruJZygw.js +2 -0
  21. package/dist/static/assets/session-DXLe2gKP.js +13 -0
  22. package/dist/static/assets/session-DheVJS_-.js +1 -0
  23. package/dist/static/assets/{syntax-highlighter-vendor-CwGXx8v4.js → syntax-highlighter-vendor-E92u2I9N.js} +4 -4
  24. package/dist/static/assets/{xterm-vendor-DRG2K165.js → xterm-vendor-C7zPO6uk.js} +3 -3
  25. package/dist/static/index.html +11 -9
  26. package/dist/static/sw.js +1 -1
  27. package/package.json +11 -8
  28. package/dist/static/assets/ProtectedRoute-BTfjJdM-.js +0 -1
  29. package/dist/static/assets/card-DGrqtTaC.js +0 -1
  30. package/dist/static/assets/createLucideIcon-BL_meogc.js +0 -1
  31. package/dist/static/assets/dist-Cartj9I0.js +0 -84
  32. package/dist/static/assets/index-Bmg7UpkS.js +0 -20
  33. package/dist/static/assets/markdown-parser-vendor-D9j1a-bm.js +0 -29
  34. package/dist/static/assets/session-DItKrSkz.js +0 -12
  35. package/dist/static/assets/session-DdZMHc5j.js +0 -1
  36. /package/dist/static/assets/{messages-BugsdlC4.js → messages-CCdvpjPA.js} +0 -0
  37. /package/dist/static/assets/{messages-C9GGR_pN.js → messages-CXMLmBXL.js} +0 -0
  38. /package/dist/static/assets/{messages-CXGVSZXJ.js → messages-D1gyj6vH.js} +0 -0
  39. /package/dist/static/assets/{workbox-window.prod.es5-DaBTyiAs.js → workbox-window.prod.es5-DHdPsNjM.js} +0 -0
@@ -11,16 +11,18 @@
11
11
  <meta name="theme-color" content="#0a0a0a" />
12
12
  <meta name="description" content="Web Viewer for Claude Code history" />
13
13
  <title>Claude Code Viewer</title>
14
- <script type="module" crossorigin src="/assets/index-Bmg7UpkS.js"></script>
14
+ <script type="module" crossorigin src="/assets/index-PituKE8G.js"></script>
15
15
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-Dw2cE7zH.js">
16
- <link rel="modulepreload" crossorigin href="/assets/markdown-parser-vendor-D9j1a-bm.js">
17
- <link rel="modulepreload" crossorigin href="/assets/dist-CG2L4mx5.js">
18
- <link rel="modulepreload" crossorigin href="/assets/card-DGrqtTaC.js">
19
- <link rel="modulepreload" crossorigin href="/assets/createLucideIcon-BL_meogc.js">
20
- <link rel="modulepreload" crossorigin href="/assets/AuthProvider-Ds-c4CWc.js">
21
- <link rel="modulepreload" crossorigin href="/assets/input-B_6IT1CP.js">
22
- <link rel="modulepreload" crossorigin href="/assets/dist-Cartj9I0.js">
23
- <link rel="stylesheet" crossorigin href="/assets/index-DNPVlDui.css">
16
+ <link rel="modulepreload" crossorigin href="/assets/markdown-parser-vendor-Dm3WZMeS.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/card-5CIj0Vrs.js">
18
+ <link rel="modulepreload" crossorigin href="/assets/createLucideIcon-CRmASjPp.js">
19
+ <link rel="modulepreload" crossorigin href="/assets/AuthProvider-BuZnJ5E7.js">
20
+ <link rel="modulepreload" crossorigin href="/assets/input-DxYncE22.js">
21
+ <link rel="modulepreload" crossorigin href="/assets/dist-DiNC9I1q.js">
22
+ <link rel="modulepreload" crossorigin href="/assets/session-BruJZygw.js">
23
+ <link rel="modulepreload" crossorigin href="/assets/dist-B0PGU2Rq.js">
24
+ <link rel="modulepreload" crossorigin href="/assets/NotFound-Dwvf0Bo3.js">
25
+ <link rel="stylesheet" crossorigin href="/assets/index-B5oyQ9A3.css">
24
26
  <link rel="manifest" href="/manifest.webmanifest"></head>
25
27
  <body>
26
28
  <div id="app"></div>
package/dist/static/sw.js CHANGED
@@ -1 +1 @@
1
- try{self[`workbox:core:7.3.0`]&&_()}catch{}var e=(e,...t)=>{let n=e;return t.length>0&&(n+=` :: ${JSON.stringify(t)}`),n},t=class extends Error{constructor(t,n){let r=e(t,n);super(r),this.name=t,this.details=n}};function n(e){e.then(()=>{})}var r=(e,t)=>t.some(t=>e instanceof t),i,a;function o(){return i||=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]}function s(){return a||=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey]}var c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap;function ee(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`success`,i),e.removeEventListener(`error`,a)},i=()=>{t(v(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(`success`,i),e.addEventListener(`error`,a)});return t.then(t=>{t instanceof IDBCursor&&c.set(t,e)}).catch(()=>{}),f.set(t,e),t}function te(e){if(l.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`complete`,i),e.removeEventListener(`error`,a),e.removeEventListener(`abort`,a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(`AbortError`,`AbortError`)),r()};e.addEventListener(`complete`,i),e.addEventListener(`error`,a),e.addEventListener(`abort`,a)});l.set(e,t)}var p={get(e,t,n){if(e instanceof IDBTransaction){if(t===`done`)return l.get(e);if(t===`objectStoreNames`)return e.objectStoreNames||u.get(e);if(t===`store`)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return v(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t===`done`||t===`store`)?!0:t in e}};function m(e){p=e(p)}function h(e){return e===IDBDatabase.prototype.transaction&&!(`objectStoreNames`in IDBTransaction.prototype)?function(t,...n){let r=e.call(y(this),t,...n);return u.set(r,t.sort?t.sort():[t]),v(r)}:s().includes(e)?function(...t){return e.apply(y(this),t),v(c.get(this))}:function(...t){return v(e.apply(y(this),t))}}function g(e){return typeof e==`function`?h(e):(e instanceof IDBTransaction&&te(e),r(e,o())?new Proxy(e,p):e)}function v(e){if(e instanceof IDBRequest)return ee(e);if(d.has(e))return d.get(e);let t=g(e);return t!==e&&(d.set(e,t),f.set(t,e)),t}var y=e=>f.get(e);function ne(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let o=indexedDB.open(e,t),s=v(o);return r&&o.addEventListener(`upgradeneeded`,e=>{r(v(o.result),e.oldVersion,e.newVersion,v(o.transaction),e)}),n&&o.addEventListener(`blocked`,e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener(`close`,()=>a()),i&&e.addEventListener(`versionchange`,e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}function re(e,{blocked:t}={}){let n=indexedDB.deleteDatabase(e);return t&&n.addEventListener(`blocked`,e=>t(e.oldVersion,e)),v(n).then(()=>void 0)}var ie=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`],b=[`put`,`add`,`delete`,`clear`],x=new Map;function S(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t==`string`))return;if(x.get(t))return x.get(t);let n=t.replace(/FromIndex$/,``),r=t!==n,i=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||ie.includes(n)))return;let a=async function(e,...t){let a=this.transaction(e,i?`readwrite`:`readonly`),o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return x.set(t,a),a}m(e=>({...e,get:(t,n,r)=>S(t,n)||e.get(t,n,r),has:(t,n)=>!!S(t,n)||e.has(t,n)}));try{self[`workbox:expiration:7.3.0`]&&_()}catch{}var C=`workbox-expiration`,w=`cache-entries`,T=e=>{let t=new URL(e,location.href);return t.hash=``,t.href},ae=class{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){let t=e.createObjectStore(w,{keyPath:`id`});t.createIndex(`cacheName`,`cacheName`,{unique:!1}),t.createIndex(`timestamp`,`timestamp`,{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&re(this._cacheName)}async setTimestamp(e,t){e=T(e);let n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(w,`readwrite`,{durability:`relaxed`});await r.store.put(n),await r.done}async getTimestamp(e){return(await(await this.getDb()).get(w,this._getId(e)))?.timestamp}async expireEntries(e,t){let n=await this.getDb(),r=await n.transaction(w).store.index(`timestamp`).openCursor(null,`prev`),i=[],a=0;for(;r;){let n=r.value;n.cacheName===this._cacheName&&(e&&n.timestamp<e||t&&a>=t?i.push(r.value):a++),r=await r.continue()}let o=[];for(let e of i)await n.delete(w,e.id),o.push(e.url);return o}_getId(e){return this._cacheName+`|`+T(e)}async getDb(){return this._db||=await ne(C,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)}),this._db}},oe=class{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ae(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;let e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(let e of t)await r.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,n(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){let t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t===void 0?!0:t<n}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}},E={googleAnalytics:`googleAnalytics`,precache:`precache-v2`,prefix:`workbox`,runtime:`runtime`,suffix:typeof registration<`u`?registration.scope:``},D=e=>[E.prefix,e,E.suffix].filter(e=>e&&e.length>0).join(`-`),se=e=>{for(let t of Object.keys(E))e(t)},O={updateDetails:e=>{se(t=>{typeof e[t]==`string`&&(E[t]=e[t])})},getGoogleAnalyticsName:e=>e||D(E.googleAnalytics),getPrecacheName:e=>e||D(E.precache),getPrefix:()=>E.prefix,getRuntimeName:e=>e||D(E.runtime),getSuffix:()=>E.suffix},ce=e=>new URL(String(e),location.href).href.replace(RegExp(`^${location.origin}`),``),k=new Set;function le(e){k.add(e)}var A=class{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:r,cachedResponse:i})=>{if(!i)return null;let a=this._isResponseDateFresh(i),o=this._getCacheExpiration(r);n(o.expireEntries());let s=o.updateTimestamp(t.url);if(e)try{e.waitUntil(s)}catch{}return a?i:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{let n=this._getCacheExpiration(e);await n.updateTimestamp(t.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&le(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===O.getRuntimeName())throw new t(`expire-custom-caches-only`);let n=this._cacheExpirations.get(e);return n||(n=new oe(e,this._config),this._cacheExpirations.set(e,n)),n}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;let t=this._getDateHeaderTimestamp(e);return t===null?!0:t>=Date.now()-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has(`date`))return null;let t=e.headers.get(`date`),n=new Date(t).getTime();return isNaN(n)?null:n}async deleteCacheAndMetadata(){for(let[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}};function j(e,t){let n=t();return e.waitUntil(n),n}try{self[`workbox:precaching:7.3.0`]&&_()}catch{}var M=`__WB_REVISION__`;function N(e){if(!e)throw new t(`add-to-cache-list-unexpected-type`,{entry:e});if(typeof e==`string`){let t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}let{revision:n,url:r}=e;if(!r)throw new t(`add-to-cache-list-unexpected-type`,{entry:e});if(!n){let e=new URL(r,location.href);return{cacheKey:e.href,url:e.href}}let i=new URL(r,location.href),a=new URL(r,location.href);return i.searchParams.set(M,n),{cacheKey:i.href,url:a.href}}var P=class{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type===`install`&&t&&t.originalRequest&&t.originalRequest instanceof Request){let e=t.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}},F=class{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{let n=t?.cacheKey||this._precacheController.getCacheKeyForURL(e.url);return n?new Request(n,{headers:e.headers}):e},this._precacheController=e}},I;function L(){if(I===void 0){let e=new Response(``);if(`body`in e)try{new Response(e.body),I=!0}catch{I=!1}I=!1}return I}async function R(e,n){let r=null;if(e.url&&(r=new URL(e.url).origin),r!==self.location.origin)throw new t(`cross-origin-copy-response`,{origin:r});let i=e.clone(),a={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=n?n(a):a,s=L()?i.body:await i.blob();return new Response(s,o)}function z(e,t){let n=new URL(e);for(let e of t)n.searchParams.delete(e);return n.href}async function B(e,t,n,r){let i=z(t.url,n);if(t.url===i)return e.match(t,r);let a=Object.assign(Object.assign({},r),{ignoreSearch:!0}),o=await e.keys(t,a);for(let t of o)if(i===z(t.url,n))return e.match(t,r)}var V=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function H(){for(let e of k)await e()}function U(e){return new Promise(t=>setTimeout(t,e))}try{self[`workbox:strategies:7.3.0`]&&_()}catch{}function W(e){return typeof e==`string`?new Request(e):e}var ue=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new V,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(let e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){let{event:n}=this,r=W(e);if(r.mode===`navigate`&&n instanceof FetchEvent&&n.preloadResponse){let e=await n.preloadResponse;if(e)return e}let i=this.hasCallback(`fetchDidFail`)?r.clone():null;try{for(let e of this.iterateCallbacks(`requestWillFetch`))r=await e({request:r.clone(),event:n})}catch(e){if(e instanceof Error)throw new t(`plugin-error-request-will-fetch`,{thrownErrorMessage:e.message})}let a=r.clone();try{let e;e=await fetch(r,r.mode===`navigate`?void 0:this._strategy.fetchOptions);for(let t of this.iterateCallbacks(`fetchDidSucceed`))e=await t({event:n,request:a,response:e});return e}catch(e){throw i&&await this.runCallbacks(`fetchDidFail`,{error:e,event:n,originalRequest:i.clone(),request:a.clone()}),e}}async fetchAndCachePut(e){let t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){let t=W(e),n,{cacheName:r,matchOptions:i}=this._strategy,a=await this.getCacheKey(t,`read`),o=Object.assign(Object.assign({},i),{cacheName:r});n=await caches.match(a,o);for(let e of this.iterateCallbacks(`cachedResponseWillBeUsed`))n=await e({cacheName:r,matchOptions:i,cachedResponse:n,request:a,event:this.event})||void 0;return n}async cachePut(e,n){let r=W(e);await U(0);let i=await this.getCacheKey(r,`write`);if(!n)throw new t(`cache-put-with-no-response`,{url:ce(i.url)});let a=await this._ensureResponseSafeToCache(n);if(!a)return!1;let{cacheName:o,matchOptions:s}=this._strategy,c=await self.caches.open(o),l=this.hasCallback(`cacheDidUpdate`),u=l?await B(c,i.clone(),[`__WB_REVISION__`],s):null;try{await c.put(i,l?a.clone():a)}catch(e){if(e instanceof Error)throw e.name===`QuotaExceededError`&&await H(),e}for(let e of this.iterateCallbacks(`cacheDidUpdate`))await e({cacheName:o,oldResponse:u,newResponse:a.clone(),request:i,event:this.event});return!0}async getCacheKey(e,t){let n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let r=e;for(let e of this.iterateCallbacks(`cacheKeyWillBeUsed`))r=W(await e({mode:t,request:r,event:this.event,params:this.params}));this._cacheKeys[n]=r}return this._cacheKeys[n]}hasCallback(e){for(let t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(let n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(let t of this._strategy.plugins)if(typeof t[e]==`function`){let n=this._pluginStateMap.get(t);yield r=>{let i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){for(;this._extendLifetimePromises.length;){let e=this._extendLifetimePromises.splice(0),t=(await Promise.allSettled(e)).find(e=>e.status===`rejected`);if(t)throw t.reason}}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(let e of this.iterateCallbacks(`cacheWillUpdate`))if(t=await e({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}},G=class{constructor(e={}){this.cacheName=O.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){let[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});let t=e.event,n=typeof e.request==`string`?new Request(e.request):e.request,r=`params`in e?e.params:void 0,i=new ue(this,{event:t,request:n,params:r}),a=this._getResponse(i,n,t);return[a,this._awaitComplete(a,i,n,t)]}async _getResponse(e,n,r){await e.runCallbacks(`handlerWillStart`,{event:r,request:n});let i;try{if(i=await this._handle(n,e),!i||i.type===`error`)throw new t(`no-response`,{url:n.url})}catch(t){if(t instanceof Error){for(let a of e.iterateCallbacks(`handlerDidError`))if(i=await a({error:t,event:r,request:n}),i)break}if(!i)throw t}for(let t of e.iterateCallbacks(`handlerWillRespond`))i=await t({event:r,request:n,response:i});return i}async _awaitComplete(e,t,n,r){let i,a;try{i=await e}catch{}try{await t.runCallbacks(`handlerDidRespond`,{event:r,request:n,response:i}),await t.doneWaiting()}catch(e){e instanceof Error&&(a=e)}if(await t.runCallbacks(`handlerDidComplete`,{event:r,request:n,response:i,error:a}),t.destroy(),a)throw a}},K=class e extends G{constructor(t={}){t.cacheName=O.getPrecacheName(t.cacheName),super(t),this._fallbackToNetwork=t.fallbackToNetwork!==!1,this.plugins.push(e.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){return await t.cacheMatch(e)||(t.event&&t.event.type===`install`?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,n){let r,i=n.params||{};if(this._fallbackToNetwork){let t=i.integrity,a=e.integrity,o=!a||a===t;r=await n.fetch(new Request(e,{integrity:e.mode===`no-cors`?void 0:a||t})),t&&o&&e.mode!==`no-cors`&&(this._useDefaultCacheabilityPluginIfNeeded(),await n.cachePut(e,r.clone()))}else throw new t(`missing-precache-entry`,{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,n){this._useDefaultCacheabilityPluginIfNeeded();let r=await n.fetch(e);if(!await n.cachePut(e,r.clone()))throw new t(`bad-precaching-response`,{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let t=null,n=0;for(let[r,i]of this.plugins.entries())i!==e.copyRedirectedCacheableResponsesPlugin&&(i===e.defaultPrecacheCacheabilityPlugin&&(t=r),i.cacheWillUpdate&&n++);n===0?this.plugins.push(e.defaultPrecacheCacheabilityPlugin):n>1&&t!==null&&this.plugins.splice(t,1)}};K.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:e}){return!e||e.status>=400?null:e}},K.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:e}){return e.redirected?await R(e):e}};var de=class{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new K({cacheName:O.getPrecacheName(e),plugins:[...t,new F({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||=(self.addEventListener(`install`,this.install),self.addEventListener(`activate`,this.activate),!0)}addToCacheList(e){let n=[];for(let r of e){typeof r==`string`?n.push(r):r&&r.revision===void 0&&n.push(r.url);let{cacheKey:e,url:i}=N(r),a=typeof r!=`string`&&r.revision?`reload`:`default`;if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==e)throw new t(`add-to-cache-list-conflicting-entries`,{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:e});if(typeof r!=`string`&&r.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==r.integrity)throw new t(`add-to-cache-list-conflicting-integrities`,{url:i});this._cacheKeysToIntegrities.set(e,r.integrity)}if(this._urlsToCacheKeys.set(i,e),this._urlsToCacheModes.set(i,a),n.length>0){let e=`Workbox is precaching URLs without revision info: ${n.join(`, `)}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return j(e,async()=>{let t=new P;this.strategy.plugins.push(t);for(let[t,n]of this._urlsToCacheKeys){let r=this._cacheKeysToIntegrities.get(n),i=this._urlsToCacheModes.get(t),a=new Request(t,{integrity:r,cache:i,credentials:`same-origin`});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:a,event:e}))}let{updatedURLs:n,notUpdatedURLs:r}=t;return{updatedURLs:n,notUpdatedURLs:r}})}activate(e){return j(e,async()=>{let e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),n=new Set(this._urlsToCacheKeys.values()),r=[];for(let i of t)n.has(i.url)||(await e.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){let t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){let t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){let n=this.getCacheKeyForURL(e);if(!n)throw new t(`non-precached-url`,{url:e});return t=>(t.request=new Request(e),t.params=Object.assign({cacheKey:n},t.params),this.strategy.handle(t))}},q,J=()=>(q||=new de,q);try{self[`workbox:routing:7.3.0`]&&_()}catch{}var Y=e=>e&&typeof e==`object`?e:{handle:e},X=class{constructor(e,t,n=`GET`){this.handler=Y(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=Y(e)}},fe=class extends X{constructor(e,t,n){super(({url:t})=>{let n=e.exec(t.href);if(n&&!(t.origin!==location.origin&&n.index!==0))return n.slice(1)},t,n)}},pe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener(`fetch`,(e=>{let{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)}))}addCacheListener(){self.addEventListener(`message`,(e=>{if(e.data&&e.data.type===`CACHE_URLS`){let{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(t=>{typeof t==`string`&&(t=[t]);let n=new Request(...t);return this.handleRequest({request:n,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}}))}handleRequest({request:e,event:t}){let n=new URL(e.url,location.href);if(!n.protocol.startsWith(`http`))return;let r=n.origin===location.origin,{params:i,route:a}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:n}),o=a&&a.handler,s=e.method;if(!o&&this._defaultHandlerMap.has(s)&&(o=this._defaultHandlerMap.get(s)),!o)return;let c;try{c=o.handle({url:n,request:e,event:t,params:i})}catch(e){c=Promise.reject(e)}let l=a&&a.catchHandler;return c instanceof Promise&&(this._catchHandler||l)&&(c=c.catch(async r=>{if(l)try{return await l.handle({url:n,request:e,event:t,params:i})}catch(e){e instanceof Error&&(r=e)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw r})),c}findMatchingRoute({url:e,sameOrigin:t,request:n,event:r}){let i=this._routes.get(n.method)||[];for(let a of i){let i,o=a.match({url:e,sameOrigin:t,request:n,event:r});if(o)return i=o,(Array.isArray(i)&&i.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o==`boolean`)&&(i=void 0),{route:a,params:i}}return{}}setDefaultHandler(e,t=`GET`){this._defaultHandlerMap.set(t,Y(e))}setCatchHandler(e){this._catchHandler=Y(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t(`unregister-route-but-not-found-with-method`,{method:e.method});let n=this._routes.get(e.method).indexOf(e);if(n>-1)this._routes.get(e.method).splice(n,1);else throw new t(`unregister-route-route-not-registered`)}},Z,me=()=>(Z||(Z=new pe,Z.addFetchListener(),Z.addCacheListener()),Z);function Q(e,n,r){let i;if(typeof e==`string`){let t=new URL(e,location.href);i=new X(({url:e})=>e.href===t.href,n,r)}else if(e instanceof RegExp)i=new fe(e,n,r);else if(typeof e==`function`)i=new X(e,n,r);else if(e instanceof X)i=e;else throw new t(`unsupported-route-type`,{moduleName:`workbox-routing`,funcName:`registerRoute`,paramName:`capture`});return me().registerRoute(i),i}function he(e,t=[]){for(let n of[...e.searchParams.keys()])t.some(e=>e.test(n))&&e.searchParams.delete(n);return e}function*ge(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:n=`index.html`,cleanURLs:r=!0,urlManipulation:i}={}){let a=new URL(e,location.href);a.hash=``,yield a.href;let o=he(a,t);if(yield o.href,n&&o.pathname.endsWith(`/`)){let e=new URL(o.href);e.pathname+=n,yield e.href}if(r){let e=new URL(o.href);e.pathname+=`.html`,yield e.href}if(i){let e=i({url:a});for(let t of e)yield t.href}}var _e=class extends X{constructor(e,t){super(({request:n})=>{let r=e.getURLsToCacheKeys();for(let i of ge(n.url,t)){let t=r.get(i);if(t)return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}},e.strategy)}};function ve(e){Q(new _e(J(),e))}var ye=`-precache-`,be=async(e,t=ye)=>{let n=(await self.caches.keys()).filter(n=>n.includes(t)&&n.includes(self.registration.scope)&&n!==e);return await Promise.all(n.map(e=>self.caches.delete(e))),n};function xe(){self.addEventListener(`activate`,(e=>{let t=O.getPrecacheName();e.waitUntil(be(t).then(e=>{}))}))}function $(e){return J().createHandlerBoundToURL(e)}function Se(e){J().precache(e)}function Ce(e,t){Se(e),ve(t)}var we=class extends X{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(e=>this._match(e),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!==`navigate`)return!1;let n=e.pathname+e.search;for(let e of this._denylist)if(e.test(n))return!1;return!!this._allowlist.some(e=>e.test(n))}},Te={cacheWillUpdate:async({response:e})=>e.status===200||e.status===0?e:null},Ee=class extends G{constructor(e={}){super(e),this.plugins.some(e=>`cacheWillUpdate`in e)||this.plugins.unshift(Te),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,n){let r=[],i=[],a;if(this._networkTimeoutSeconds){let{id:t,promise:o}=this._getTimeoutPromise({request:e,logs:r,handler:n});a=t,i.push(o)}let o=this._getNetworkPromise({timeoutId:a,request:e,logs:r,handler:n});i.push(o);let s=await n.waitUntil((async()=>await n.waitUntil(Promise.race(i))||await o)());if(!s)throw new t(`no-response`,{url:e.url});return s}_getTimeoutPromise({request:e,logs:t,handler:n}){let r;return{promise:new Promise(t=>{r=setTimeout(async()=>{t(await n.cacheMatch(e))},this._networkTimeoutSeconds*1e3)}),id:r}}async _getNetworkPromise({timeoutId:e,request:t,logs:n,handler:r}){let i,a;try{a=await r.fetchAndCachePut(t)}catch(e){e instanceof Error&&(i=e)}return e&&clearTimeout(e),(i||!a)&&(a=await r.cacheMatch(t)),a}},De=class extends G{constructor(e={}){super(e),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,n){let r,i;try{let t=[n.fetch(e)];if(this._networkTimeoutSeconds){let e=U(this._networkTimeoutSeconds*1e3);t.push(e)}if(i=await Promise.race(t),!i)throw Error(`Timed out the network response after ${this._networkTimeoutSeconds} seconds.`)}catch(e){e instanceof Error&&(r=e)}if(!i)throw new t(`no-response`,{url:e.url,error:r});return i}};Ce([{"revision":"949625f78cd8af61415658f8d18348a6","url":"index.html"},{"revision":"17c979def623728f51d6366b8cc9a9fa","url":"icon-maskable-512x512.png"},{"revision":"c6fdf51d474ddaffd7f6eae78b98617d","url":"icon-maskable-192x192.png"},{"revision":"3c2b8343871429861982aaebd87cb3fd","url":"icon-512x512.png"},{"revision":"6fbf57d0a7e87f24825a540ee2680e31","url":"icon-192x192.png"},{"revision":"4d206474ef1d07340d4877fd8d55d1f2","url":"favicon.ico"},{"revision":"240b426534684434a379fabf89e4e7de","url":"apple-touch-icon.png"},{"revision":null,"url":"assets/xterm-vendor-DRG2K165.js"},{"revision":null,"url":"assets/xterm-vendor-BrP-ENHg.css"},{"revision":null,"url":"assets/workbox-window.prod.es5-DaBTyiAs.js"},{"revision":null,"url":"assets/syntax-highlighter-vendor-CwGXx8v4.js"},{"revision":null,"url":"assets/session-DdZMHc5j.js"},{"revision":null,"url":"assets/session-DItKrSkz.js"},{"revision":null,"url":"assets/routes-CzLZwWu9.js"},{"revision":null,"url":"assets/rolldown-runtime-Dw2cE7zH.js"},{"revision":null,"url":"assets/refractor-vendor-B-OUwWR7.js"},{"revision":null,"url":"assets/projects-DH0K12HM.js"},{"revision":null,"url":"assets/messages-CXGVSZXJ.js"},{"revision":null,"url":"assets/messages-C9GGR_pN.js"},{"revision":null,"url":"assets/messages-BugsdlC4.js"},{"revision":null,"url":"assets/markdown-parser-vendor-D9j1a-bm.js"},{"revision":null,"url":"assets/login-CKSjZM5v.js"},{"revision":null,"url":"assets/label-Cw6sZ5kQ.js"},{"revision":null,"url":"assets/input-B_6IT1CP.js"},{"revision":null,"url":"assets/index-DNPVlDui.css"},{"revision":null,"url":"assets/index-Bmg7UpkS.js"},{"revision":null,"url":"assets/eye-SsvAY8oF.js"},{"revision":null,"url":"assets/dist-Cartj9I0.js"},{"revision":null,"url":"assets/dist-CG2L4mx5.js"},{"revision":null,"url":"assets/createLucideIcon-BL_meogc.js"},{"revision":null,"url":"assets/card-DGrqtTaC.js"},{"revision":null,"url":"assets/ProtectedRoute-BTfjJdM-.js"},{"revision":null,"url":"assets/AuthProvider-Ds-c4CWc.js"},{"revision":"240b426534684434a379fabf89e4e7de","url":"apple-touch-icon.png"},{"revision":"4d206474ef1d07340d4877fd8d55d1f2","url":"favicon.ico"},{"revision":"6fbf57d0a7e87f24825a540ee2680e31","url":"icon-192x192.png"},{"revision":"3c2b8343871429861982aaebd87cb3fd","url":"icon-512x512.png"},{"revision":"c6fdf51d474ddaffd7f6eae78b98617d","url":"icon-maskable-192x192.png"},{"revision":"17c979def623728f51d6366b8cc9a9fa","url":"icon-maskable-512x512.png"},{"revision":"aba1d187e457a57dabd71890aaf77577","url":"manifest.webmanifest"}]),xe(),Q(new we($(`/index.html`),{denylist:[/^\/api\//]})),Q(/\/api\/sse/,new De),Q(/^.*\/api\/.*/i,new Ee({cacheName:`api-cache`,plugins:[new A({maxEntries:100,maxAgeSeconds:3600})]})),self.addEventListener(`push`,e=>{if(!e.data)return;let t=e.data.json();e.waitUntil(self.registration.showNotification(t.title,{body:t.body,icon:`/icon-192x192.png`,badge:`/icon-192x192.png`,data:{url:t.url}}))}),self.addEventListener(`notificationclick`,e=>{e.notification.close();let t=e.notification.data?.url??`/`;e.waitUntil(self.clients.matchAll({type:`window`,includeUncontrolled:!0}).then(e=>{let[n]=e;return n?n.focus().then(e=>e?.navigate(t)):self.clients.openWindow(t)}))});
1
+ try{self[`workbox:core:7.3.0`]&&_()}catch{}var e=(e,...t)=>{let n=e;return t.length>0&&(n+=` :: ${JSON.stringify(t)}`),n},t=class extends Error{constructor(t,n){let r=e(t,n);super(r),this.name=t,this.details=n}};function n(e){e.then(()=>{})}var r=(e,t)=>t.some(t=>e instanceof t),i,a;function o(){return i||=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]}function s(){return a||=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey]}var c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap;function ee(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`success`,i),e.removeEventListener(`error`,a)},i=()=>{t(v(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(`success`,i),e.addEventListener(`error`,a)});return t.then(t=>{t instanceof IDBCursor&&c.set(t,e)}).catch(()=>{}),f.set(t,e),t}function te(e){if(l.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`complete`,i),e.removeEventListener(`error`,a),e.removeEventListener(`abort`,a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(`AbortError`,`AbortError`)),r()};e.addEventListener(`complete`,i),e.addEventListener(`error`,a),e.addEventListener(`abort`,a)});l.set(e,t)}var p={get(e,t,n){if(e instanceof IDBTransaction){if(t===`done`)return l.get(e);if(t===`objectStoreNames`)return e.objectStoreNames||u.get(e);if(t===`store`)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return v(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t===`done`||t===`store`)?!0:t in e}};function m(e){p=e(p)}function h(e){return e===IDBDatabase.prototype.transaction&&!(`objectStoreNames`in IDBTransaction.prototype)?function(t,...n){let r=e.call(y(this),t,...n);return u.set(r,t.sort?t.sort():[t]),v(r)}:s().includes(e)?function(...t){return e.apply(y(this),t),v(c.get(this))}:function(...t){return v(e.apply(y(this),t))}}function g(e){return typeof e==`function`?h(e):(e instanceof IDBTransaction&&te(e),r(e,o())?new Proxy(e,p):e)}function v(e){if(e instanceof IDBRequest)return ee(e);if(d.has(e))return d.get(e);let t=g(e);return t!==e&&(d.set(e,t),f.set(t,e)),t}var y=e=>f.get(e);function ne(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let o=indexedDB.open(e,t),s=v(o);return r&&o.addEventListener(`upgradeneeded`,e=>{r(v(o.result),e.oldVersion,e.newVersion,v(o.transaction),e)}),n&&o.addEventListener(`blocked`,e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener(`close`,()=>a()),i&&e.addEventListener(`versionchange`,e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}function re(e,{blocked:t}={}){let n=indexedDB.deleteDatabase(e);return t&&n.addEventListener(`blocked`,e=>t(e.oldVersion,e)),v(n).then(()=>void 0)}var ie=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`],b=[`put`,`add`,`delete`,`clear`],x=new Map;function S(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t==`string`))return;if(x.get(t))return x.get(t);let n=t.replace(/FromIndex$/,``),r=t!==n,i=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||ie.includes(n)))return;let a=async function(e,...t){let a=this.transaction(e,i?`readwrite`:`readonly`),o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return x.set(t,a),a}m(e=>({...e,get:(t,n,r)=>S(t,n)||e.get(t,n,r),has:(t,n)=>!!S(t,n)||e.has(t,n)}));try{self[`workbox:expiration:7.3.0`]&&_()}catch{}var C=`workbox-expiration`,w=`cache-entries`,T=e=>{let t=new URL(e,location.href);return t.hash=``,t.href},ae=class{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){let t=e.createObjectStore(w,{keyPath:`id`});t.createIndex(`cacheName`,`cacheName`,{unique:!1}),t.createIndex(`timestamp`,`timestamp`,{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&re(this._cacheName)}async setTimestamp(e,t){e=T(e);let n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(w,`readwrite`,{durability:`relaxed`});await r.store.put(n),await r.done}async getTimestamp(e){return(await(await this.getDb()).get(w,this._getId(e)))?.timestamp}async expireEntries(e,t){let n=await this.getDb(),r=await n.transaction(w).store.index(`timestamp`).openCursor(null,`prev`),i=[],a=0;for(;r;){let n=r.value;n.cacheName===this._cacheName&&(e&&n.timestamp<e||t&&a>=t?i.push(r.value):a++),r=await r.continue()}let o=[];for(let e of i)await n.delete(w,e.id),o.push(e.url);return o}_getId(e){return this._cacheName+`|`+T(e)}async getDb(){return this._db||=await ne(C,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)}),this._db}},oe=class{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ae(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;let e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),r=await self.caches.open(this._cacheName);for(let e of t)await r.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,n(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){let t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t===void 0?!0:t<n}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}},E={googleAnalytics:`googleAnalytics`,precache:`precache-v2`,prefix:`workbox`,runtime:`runtime`,suffix:typeof registration<`u`?registration.scope:``},D=e=>[E.prefix,e,E.suffix].filter(e=>e&&e.length>0).join(`-`),se=e=>{for(let t of Object.keys(E))e(t)},O={updateDetails:e=>{se(t=>{typeof e[t]==`string`&&(E[t]=e[t])})},getGoogleAnalyticsName:e=>e||D(E.googleAnalytics),getPrecacheName:e=>e||D(E.precache),getPrefix:()=>E.prefix,getRuntimeName:e=>e||D(E.runtime),getSuffix:()=>E.suffix},ce=e=>new URL(String(e),location.href).href.replace(RegExp(`^${location.origin}`),``),k=new Set;function le(e){k.add(e)}var A=class{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:r,cachedResponse:i})=>{if(!i)return null;let a=this._isResponseDateFresh(i),o=this._getCacheExpiration(r);n(o.expireEntries());let s=o.updateTimestamp(t.url);if(e)try{e.waitUntil(s)}catch{}return a?i:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{let n=this._getCacheExpiration(e);await n.updateTimestamp(t.url),await n.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&le(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===O.getRuntimeName())throw new t(`expire-custom-caches-only`);let n=this._cacheExpirations.get(e);return n||(n=new oe(e,this._config),this._cacheExpirations.set(e,n)),n}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;let t=this._getDateHeaderTimestamp(e);return t===null?!0:t>=Date.now()-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has(`date`))return null;let t=e.headers.get(`date`),n=new Date(t).getTime();return isNaN(n)?null:n}async deleteCacheAndMetadata(){for(let[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}};function j(e,t){let n=t();return e.waitUntil(n),n}try{self[`workbox:precaching:7.3.0`]&&_()}catch{}var M=`__WB_REVISION__`;function N(e){if(!e)throw new t(`add-to-cache-list-unexpected-type`,{entry:e});if(typeof e==`string`){let t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}let{revision:n,url:r}=e;if(!r)throw new t(`add-to-cache-list-unexpected-type`,{entry:e});if(!n){let e=new URL(r,location.href);return{cacheKey:e.href,url:e.href}}let i=new URL(r,location.href),a=new URL(r,location.href);return i.searchParams.set(M,n),{cacheKey:i.href,url:a.href}}var P=class{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type===`install`&&t&&t.originalRequest&&t.originalRequest instanceof Request){let e=t.originalRequest.url;n?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return n}}},F=class{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{let n=t?.cacheKey||this._precacheController.getCacheKeyForURL(e.url);return n?new Request(n,{headers:e.headers}):e},this._precacheController=e}},I;function L(){if(I===void 0){let e=new Response(``);if(`body`in e)try{new Response(e.body),I=!0}catch{I=!1}I=!1}return I}async function R(e,n){let r=null;if(e.url&&(r=new URL(e.url).origin),r!==self.location.origin)throw new t(`cross-origin-copy-response`,{origin:r});let i=e.clone(),a={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=n?n(a):a,s=L()?i.body:await i.blob();return new Response(s,o)}function z(e,t){let n=new URL(e);for(let e of t)n.searchParams.delete(e);return n.href}async function B(e,t,n,r){let i=z(t.url,n);if(t.url===i)return e.match(t,r);let a=Object.assign(Object.assign({},r),{ignoreSearch:!0}),o=await e.keys(t,a);for(let t of o)if(i===z(t.url,n))return e.match(t,r)}var V=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function H(){for(let e of k)await e()}function U(e){return new Promise(t=>setTimeout(t,e))}try{self[`workbox:strategies:7.3.0`]&&_()}catch{}function W(e){return typeof e==`string`?new Request(e):e}var ue=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new V,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(let e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){let{event:n}=this,r=W(e);if(r.mode===`navigate`&&n instanceof FetchEvent&&n.preloadResponse){let e=await n.preloadResponse;if(e)return e}let i=this.hasCallback(`fetchDidFail`)?r.clone():null;try{for(let e of this.iterateCallbacks(`requestWillFetch`))r=await e({request:r.clone(),event:n})}catch(e){if(e instanceof Error)throw new t(`plugin-error-request-will-fetch`,{thrownErrorMessage:e.message})}let a=r.clone();try{let e;e=await fetch(r,r.mode===`navigate`?void 0:this._strategy.fetchOptions);for(let t of this.iterateCallbacks(`fetchDidSucceed`))e=await t({event:n,request:a,response:e});return e}catch(e){throw i&&await this.runCallbacks(`fetchDidFail`,{error:e,event:n,originalRequest:i.clone(),request:a.clone()}),e}}async fetchAndCachePut(e){let t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){let t=W(e),n,{cacheName:r,matchOptions:i}=this._strategy,a=await this.getCacheKey(t,`read`),o=Object.assign(Object.assign({},i),{cacheName:r});n=await caches.match(a,o);for(let e of this.iterateCallbacks(`cachedResponseWillBeUsed`))n=await e({cacheName:r,matchOptions:i,cachedResponse:n,request:a,event:this.event})||void 0;return n}async cachePut(e,n){let r=W(e);await U(0);let i=await this.getCacheKey(r,`write`);if(!n)throw new t(`cache-put-with-no-response`,{url:ce(i.url)});let a=await this._ensureResponseSafeToCache(n);if(!a)return!1;let{cacheName:o,matchOptions:s}=this._strategy,c=await self.caches.open(o),l=this.hasCallback(`cacheDidUpdate`),u=l?await B(c,i.clone(),[`__WB_REVISION__`],s):null;try{await c.put(i,l?a.clone():a)}catch(e){if(e instanceof Error)throw e.name===`QuotaExceededError`&&await H(),e}for(let e of this.iterateCallbacks(`cacheDidUpdate`))await e({cacheName:o,oldResponse:u,newResponse:a.clone(),request:i,event:this.event});return!0}async getCacheKey(e,t){let n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let r=e;for(let e of this.iterateCallbacks(`cacheKeyWillBeUsed`))r=W(await e({mode:t,request:r,event:this.event,params:this.params}));this._cacheKeys[n]=r}return this._cacheKeys[n]}hasCallback(e){for(let t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(let n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(let t of this._strategy.plugins)if(typeof t[e]==`function`){let n=this._pluginStateMap.get(t);yield r=>{let i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){for(;this._extendLifetimePromises.length;){let e=this._extendLifetimePromises.splice(0),t=(await Promise.allSettled(e)).find(e=>e.status===`rejected`);if(t)throw t.reason}}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(let e of this.iterateCallbacks(`cacheWillUpdate`))if(t=await e({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}},G=class{constructor(e={}){this.cacheName=O.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){let[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});let t=e.event,n=typeof e.request==`string`?new Request(e.request):e.request,r=`params`in e?e.params:void 0,i=new ue(this,{event:t,request:n,params:r}),a=this._getResponse(i,n,t);return[a,this._awaitComplete(a,i,n,t)]}async _getResponse(e,n,r){await e.runCallbacks(`handlerWillStart`,{event:r,request:n});let i;try{if(i=await this._handle(n,e),!i||i.type===`error`)throw new t(`no-response`,{url:n.url})}catch(t){if(t instanceof Error){for(let a of e.iterateCallbacks(`handlerDidError`))if(i=await a({error:t,event:r,request:n}),i)break}if(!i)throw t}for(let t of e.iterateCallbacks(`handlerWillRespond`))i=await t({event:r,request:n,response:i});return i}async _awaitComplete(e,t,n,r){let i,a;try{i=await e}catch{}try{await t.runCallbacks(`handlerDidRespond`,{event:r,request:n,response:i}),await t.doneWaiting()}catch(e){e instanceof Error&&(a=e)}if(await t.runCallbacks(`handlerDidComplete`,{event:r,request:n,response:i,error:a}),t.destroy(),a)throw a}},K=class e extends G{constructor(t={}){t.cacheName=O.getPrecacheName(t.cacheName),super(t),this._fallbackToNetwork=t.fallbackToNetwork!==!1,this.plugins.push(e.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){return await t.cacheMatch(e)||(t.event&&t.event.type===`install`?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,n){let r,i=n.params||{};if(this._fallbackToNetwork){let t=i.integrity,a=e.integrity,o=!a||a===t;r=await n.fetch(new Request(e,{integrity:e.mode===`no-cors`?void 0:a||t})),t&&o&&e.mode!==`no-cors`&&(this._useDefaultCacheabilityPluginIfNeeded(),await n.cachePut(e,r.clone()))}else throw new t(`missing-precache-entry`,{cacheName:this.cacheName,url:e.url});return r}async _handleInstall(e,n){this._useDefaultCacheabilityPluginIfNeeded();let r=await n.fetch(e);if(!await n.cachePut(e,r.clone()))throw new t(`bad-precaching-response`,{url:e.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let t=null,n=0;for(let[r,i]of this.plugins.entries())i!==e.copyRedirectedCacheableResponsesPlugin&&(i===e.defaultPrecacheCacheabilityPlugin&&(t=r),i.cacheWillUpdate&&n++);n===0?this.plugins.push(e.defaultPrecacheCacheabilityPlugin):n>1&&t!==null&&this.plugins.splice(t,1)}};K.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:e}){return!e||e.status>=400?null:e}},K.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:e}){return e.redirected?await R(e):e}};var de=class{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new K({cacheName:O.getPrecacheName(e),plugins:[...t,new F({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||=(self.addEventListener(`install`,this.install),self.addEventListener(`activate`,this.activate),!0)}addToCacheList(e){let n=[];for(let r of e){typeof r==`string`?n.push(r):r&&r.revision===void 0&&n.push(r.url);let{cacheKey:e,url:i}=N(r),a=typeof r!=`string`&&r.revision?`reload`:`default`;if(this._urlsToCacheKeys.has(i)&&this._urlsToCacheKeys.get(i)!==e)throw new t(`add-to-cache-list-conflicting-entries`,{firstEntry:this._urlsToCacheKeys.get(i),secondEntry:e});if(typeof r!=`string`&&r.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==r.integrity)throw new t(`add-to-cache-list-conflicting-integrities`,{url:i});this._cacheKeysToIntegrities.set(e,r.integrity)}if(this._urlsToCacheKeys.set(i,e),this._urlsToCacheModes.set(i,a),n.length>0){let e=`Workbox is precaching URLs without revision info: ${n.join(`, `)}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return j(e,async()=>{let t=new P;this.strategy.plugins.push(t);for(let[t,n]of this._urlsToCacheKeys){let r=this._cacheKeysToIntegrities.get(n),i=this._urlsToCacheModes.get(t),a=new Request(t,{integrity:r,cache:i,credentials:`same-origin`});await Promise.all(this.strategy.handleAll({params:{cacheKey:n},request:a,event:e}))}let{updatedURLs:n,notUpdatedURLs:r}=t;return{updatedURLs:n,notUpdatedURLs:r}})}activate(e){return j(e,async()=>{let e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),n=new Set(this._urlsToCacheKeys.values()),r=[];for(let i of t)n.has(i.url)||(await e.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){let t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){let t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){let n=this.getCacheKeyForURL(e);if(!n)throw new t(`non-precached-url`,{url:e});return t=>(t.request=new Request(e),t.params=Object.assign({cacheKey:n},t.params),this.strategy.handle(t))}},q,J=()=>(q||=new de,q);try{self[`workbox:routing:7.3.0`]&&_()}catch{}var Y=e=>e&&typeof e==`object`?e:{handle:e},X=class{constructor(e,t,n=`GET`){this.handler=Y(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=Y(e)}},fe=class extends X{constructor(e,t,n){super(({url:t})=>{let n=e.exec(t.href);if(n&&!(t.origin!==location.origin&&n.index!==0))return n.slice(1)},t,n)}},pe=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener(`fetch`,(e=>{let{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)}))}addCacheListener(){self.addEventListener(`message`,(e=>{if(e.data&&e.data.type===`CACHE_URLS`){let{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(t=>{typeof t==`string`&&(t=[t]);let n=new Request(...t);return this.handleRequest({request:n,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}}))}handleRequest({request:e,event:t}){let n=new URL(e.url,location.href);if(!n.protocol.startsWith(`http`))return;let r=n.origin===location.origin,{params:i,route:a}=this.findMatchingRoute({event:t,request:e,sameOrigin:r,url:n}),o=a&&a.handler,s=e.method;if(!o&&this._defaultHandlerMap.has(s)&&(o=this._defaultHandlerMap.get(s)),!o)return;let c;try{c=o.handle({url:n,request:e,event:t,params:i})}catch(e){c=Promise.reject(e)}let l=a&&a.catchHandler;return c instanceof Promise&&(this._catchHandler||l)&&(c=c.catch(async r=>{if(l)try{return await l.handle({url:n,request:e,event:t,params:i})}catch(e){e instanceof Error&&(r=e)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw r})),c}findMatchingRoute({url:e,sameOrigin:t,request:n,event:r}){let i=this._routes.get(n.method)||[];for(let a of i){let i,o=a.match({url:e,sameOrigin:t,request:n,event:r});if(o)return i=o,(Array.isArray(i)&&i.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o==`boolean`)&&(i=void 0),{route:a,params:i}}return{}}setDefaultHandler(e,t=`GET`){this._defaultHandlerMap.set(t,Y(e))}setCatchHandler(e){this._catchHandler=Y(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t(`unregister-route-but-not-found-with-method`,{method:e.method});let n=this._routes.get(e.method).indexOf(e);if(n>-1)this._routes.get(e.method).splice(n,1);else throw new t(`unregister-route-route-not-registered`)}},Z,me=()=>(Z||(Z=new pe,Z.addFetchListener(),Z.addCacheListener()),Z);function Q(e,n,r){let i;if(typeof e==`string`){let t=new URL(e,location.href);i=new X(({url:e})=>e.href===t.href,n,r)}else if(e instanceof RegExp)i=new fe(e,n,r);else if(typeof e==`function`)i=new X(e,n,r);else if(e instanceof X)i=e;else throw new t(`unsupported-route-type`,{moduleName:`workbox-routing`,funcName:`registerRoute`,paramName:`capture`});return me().registerRoute(i),i}function he(e,t=[]){for(let n of[...e.searchParams.keys()])t.some(e=>e.test(n))&&e.searchParams.delete(n);return e}function*ge(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:n=`index.html`,cleanURLs:r=!0,urlManipulation:i}={}){let a=new URL(e,location.href);a.hash=``,yield a.href;let o=he(a,t);if(yield o.href,n&&o.pathname.endsWith(`/`)){let e=new URL(o.href);e.pathname+=n,yield e.href}if(r){let e=new URL(o.href);e.pathname+=`.html`,yield e.href}if(i){let e=i({url:a});for(let t of e)yield t.href}}var _e=class extends X{constructor(e,t){super(({request:n})=>{let r=e.getURLsToCacheKeys();for(let i of ge(n.url,t)){let t=r.get(i);if(t)return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}},e.strategy)}};function ve(e){Q(new _e(J(),e))}var ye=`-precache-`,be=async(e,t=ye)=>{let n=(await self.caches.keys()).filter(n=>n.includes(t)&&n.includes(self.registration.scope)&&n!==e);return await Promise.all(n.map(e=>self.caches.delete(e))),n};function xe(){self.addEventListener(`activate`,(e=>{let t=O.getPrecacheName();e.waitUntil(be(t).then(e=>{}))}))}function $(e){return J().createHandlerBoundToURL(e)}function Se(e){J().precache(e)}function Ce(e,t){Se(e),ve(t)}var we=class extends X{constructor(e,{allowlist:t=[/./],denylist:n=[]}={}){super(e=>this._match(e),e),this._allowlist=t,this._denylist=n}_match({url:e,request:t}){if(t&&t.mode!==`navigate`)return!1;let n=e.pathname+e.search;for(let e of this._denylist)if(e.test(n))return!1;return!!this._allowlist.some(e=>e.test(n))}},Te={cacheWillUpdate:async({response:e})=>e.status===200||e.status===0?e:null},Ee=class extends G{constructor(e={}){super(e),this.plugins.some(e=>`cacheWillUpdate`in e)||this.plugins.unshift(Te),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,n){let r=[],i=[],a;if(this._networkTimeoutSeconds){let{id:t,promise:o}=this._getTimeoutPromise({request:e,logs:r,handler:n});a=t,i.push(o)}let o=this._getNetworkPromise({timeoutId:a,request:e,logs:r,handler:n});i.push(o);let s=await n.waitUntil((async()=>await n.waitUntil(Promise.race(i))||await o)());if(!s)throw new t(`no-response`,{url:e.url});return s}_getTimeoutPromise({request:e,logs:t,handler:n}){let r;return{promise:new Promise(t=>{r=setTimeout(async()=>{t(await n.cacheMatch(e))},this._networkTimeoutSeconds*1e3)}),id:r}}async _getNetworkPromise({timeoutId:e,request:t,logs:n,handler:r}){let i,a;try{a=await r.fetchAndCachePut(t)}catch(e){e instanceof Error&&(i=e)}return e&&clearTimeout(e),(i||!a)&&(a=await r.cacheMatch(t)),a}},De=class extends G{constructor(e={}){super(e),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,n){let r,i;try{let t=[n.fetch(e)];if(this._networkTimeoutSeconds){let e=U(this._networkTimeoutSeconds*1e3);t.push(e)}if(i=await Promise.race(t),!i)throw Error(`Timed out the network response after ${this._networkTimeoutSeconds} seconds.`)}catch(e){e instanceof Error&&(r=e)}if(!i)throw new t(`no-response`,{url:e.url,error:r});return i}};Ce([{"revision":"64e41ff9025c02e2920565afdc68bd0a","url":"index.html"},{"revision":"17c979def623728f51d6366b8cc9a9fa","url":"icon-maskable-512x512.png"},{"revision":"c6fdf51d474ddaffd7f6eae78b98617d","url":"icon-maskable-192x192.png"},{"revision":"3c2b8343871429861982aaebd87cb3fd","url":"icon-512x512.png"},{"revision":"6fbf57d0a7e87f24825a540ee2680e31","url":"icon-192x192.png"},{"revision":"4d206474ef1d07340d4877fd8d55d1f2","url":"favicon.ico"},{"revision":"240b426534684434a379fabf89e4e7de","url":"apple-touch-icon.png"},{"revision":null,"url":"assets/xterm-vendor-C7zPO6uk.js"},{"revision":null,"url":"assets/xterm-vendor-BrP-ENHg.css"},{"revision":null,"url":"assets/workbox-window.prod.es5-DHdPsNjM.js"},{"revision":null,"url":"assets/syntax-highlighter-vendor-E92u2I9N.js"},{"revision":null,"url":"assets/session-DheVJS_-.js"},{"revision":null,"url":"assets/session-DXLe2gKP.js"},{"revision":null,"url":"assets/session-BruJZygw.js"},{"revision":null,"url":"assets/routes-BCc9450k.js"},{"revision":null,"url":"assets/rolldown-runtime-Dw2cE7zH.js"},{"revision":null,"url":"assets/refractor-vendor-CoTYH44G.js"},{"revision":null,"url":"assets/projects-BrdJ1LSG.js"},{"revision":null,"url":"assets/messages-D1gyj6vH.js"},{"revision":null,"url":"assets/messages-CXMLmBXL.js"},{"revision":null,"url":"assets/messages-CCdvpjPA.js"},{"revision":null,"url":"assets/markdown-parser-vendor-Dm3WZMeS.js"},{"revision":null,"url":"assets/login-BgVcUPOp.js"},{"revision":null,"url":"assets/label-BIlZTnVW.js"},{"revision":null,"url":"assets/input-DxYncE22.js"},{"revision":null,"url":"assets/index-PituKE8G.js"},{"revision":null,"url":"assets/index-B5oyQ9A3.css"},{"revision":null,"url":"assets/eye-DomqS332.js"},{"revision":null,"url":"assets/dist-DiNC9I1q.js"},{"revision":null,"url":"assets/dist-B0PGU2Rq.js"},{"revision":null,"url":"assets/createLucideIcon-CRmASjPp.js"},{"revision":null,"url":"assets/card-5CIj0Vrs.js"},{"revision":null,"url":"assets/ProtectedRoute-CTOJTf-s.js"},{"revision":null,"url":"assets/NotFound-Dwvf0Bo3.js"},{"revision":null,"url":"assets/AuthProvider-BuZnJ5E7.js"},{"revision":"240b426534684434a379fabf89e4e7de","url":"apple-touch-icon.png"},{"revision":"4d206474ef1d07340d4877fd8d55d1f2","url":"favicon.ico"},{"revision":"6fbf57d0a7e87f24825a540ee2680e31","url":"icon-192x192.png"},{"revision":"3c2b8343871429861982aaebd87cb3fd","url":"icon-512x512.png"},{"revision":"c6fdf51d474ddaffd7f6eae78b98617d","url":"icon-maskable-192x192.png"},{"revision":"17c979def623728f51d6366b8cc9a9fa","url":"icon-maskable-512x512.png"},{"revision":"aba1d187e457a57dabd71890aaf77577","url":"manifest.webmanifest"}]),xe(),Q(new we($(`/index.html`),{denylist:[/^\/api\//]})),Q(/\/api\/sse/,new De),Q(/^.*\/api\/.*/i,new Ee({cacheName:`api-cache`,plugins:[new A({maxEntries:100,maxAgeSeconds:3600})]})),self.addEventListener(`push`,e=>{if(!e.data)return;let t=e.data.json();e.waitUntil(self.registration.showNotification(t.title,{body:t.body,icon:`/icon-192x192.png`,badge:`/icon-192x192.png`,data:{url:t.url}}))}),self.addEventListener(`notificationclick`,e=>{e.notification.close();let t=e.notification.data?.url??`/`;e.waitUntil(self.clients.matchAll({type:`window`,includeUncontrolled:!0}).then(e=>{let[n]=e;return n?n.focus().then(e=>e?.navigate(t)):self.clients.openWindow(t)}))});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimuson/claude-code-viewer",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "A full-featured web-based Claude Code client that provides complete interactive functionality for managing Claude Code projects.",
5
5
  "homepage": "https://github.com/d-kimuson/claude-code-viewer",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "@effect/rpc": "0.75.0",
27
27
  "@effect/sql": "0.51.0",
28
28
  "@effect/workflow": "0.18.0",
29
- "@hono/node-server": "1.19.12",
29
+ "@hono/node-server": "1.19.14",
30
30
  "@hono/zod-validator": "0.7.6",
31
31
  "@hookform/resolvers": "5.2.2",
32
32
  "@lingui/core": "5.9.4",
@@ -57,7 +57,7 @@
57
57
  "drizzle-orm": "1.0.0-beta.20",
58
58
  "effect": "3.21.0",
59
59
  "es-toolkit": "1.45.1",
60
- "hono": "4.12.9",
60
+ "hono": "4.12.12",
61
61
  "jotai": "2.19.0",
62
62
  "lucide-react": "1.7.0",
63
63
  "parse-git-diff": "0.0.20",
@@ -89,6 +89,7 @@
89
89
  "@tailwindcss/postcss": "4.2.2",
90
90
  "@tanstack/router-plugin": "1.167.12",
91
91
  "@tsconfig/strictest": "2.0.8",
92
+ "@types/inquirer": "9.0.9",
92
93
  "@types/node": "25.5.0",
93
94
  "@types/picomatch": "^4.0.3",
94
95
  "@types/react": "19.2.14",
@@ -98,10 +99,12 @@
98
99
  "@types/ws": "8.18.1",
99
100
  "@typescript/native-preview": "7.0.0-dev.20260401.1",
100
101
  "@vitejs/plugin-react-swc": "4.3.0",
102
+ "changelogithub": "14.0.0",
101
103
  "dotenv": "17.4.0",
102
104
  "drizzle-kit": "1.0.0-beta.20",
103
105
  "esbuild": "0.27.5",
104
106
  "gatecheck": "0.0.1-beta.5",
107
+ "inquirer": "13.3.0",
105
108
  "jsdom": "^29.0.1",
106
109
  "lefthook": "2.1.4",
107
110
  "npm-run-all2": "8.0.4",
@@ -109,13 +112,12 @@
109
112
  "oxlint": "^1.58.0",
110
113
  "oxlint-tsgolint": "^0.19.0",
111
114
  "playwright": "1.59.1",
112
- "release-it": "19.2.4",
113
- "release-it-pnpm": "4.6.6",
114
115
  "tailwindcss": "4.2.2",
115
116
  "tw-animate-css": "1.4.0",
116
- "vite": "8.0.3",
117
+ "vite": "8.0.8",
117
118
  "vite-plugin-pwa": "^1.2.0",
118
119
  "vitest": "4.1.2",
120
+ "webpack": "5.106.1",
119
121
  "workbox-build": "^7.4.0",
120
122
  "workbox-expiration": "^7.4.0",
121
123
  "workbox-precaching": "^7.4.0",
@@ -124,7 +126,7 @@
124
126
  "workbox-window": "^7.4.0"
125
127
  },
126
128
  "engines": {
127
- "node": ">=22.13.0"
129
+ "node": ">=24.0.0"
128
130
  },
129
131
  "scripts": {
130
132
  "dev": "run-p 'dev:*'",
@@ -147,6 +149,7 @@
147
149
  "e2e:start-server": "./scripts/e2e/start_server.sh",
148
150
  "e2e:capture-snapshots": "./scripts/e2e/capture_snapshots.sh",
149
151
  "lingui:extract": "lingui extract --clean && node ./scripts/lingui-sort.js",
150
- "lingui:compile": "lingui compile --typescript"
152
+ "lingui:compile": "lingui compile --typescript",
153
+ "release": "node scripts/release.ts"
151
154
  }
152
155
  }
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{d as t,f as n}from"./markdown-parser-vendor-D9j1a-bm.js";import{B as r,D as i,F as a,I as o,T as s,_ as c,a as l,ct as u,l as d,n as f}from"./AuthProvider-Ds-c4CWc.js";import{$ as p,A as m,C as h,D as g,E as _,M as v,N as y,O as b,S as x,T as S,Y as C,_ as w,b as T,et as E,j as D,k as O,v as k,w as A,x as j,y as M}from"./dist-Cartj9I0.js";import{n as N}from"./dist-CG2L4mx5.js";import{t as P}from"./createLucideIcon-BL_meogc.js";import{c as ee,f as F,l as te,s as I}from"./card-DGrqtTaC.js";var ne=P(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),re=P(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),ie=P(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),ae=P(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),oe=P(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),se=P(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),ce=P(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),le=P(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ue=P(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),L=e(n(),1),R=t(),de=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),fe=`VisuallyHidden`,pe=L.forwardRef((e,t)=>(0,R.jsx)(m.span,{...e,ref:t,style:{...de,...e.style}}));pe.displayName=fe;var me=pe,he=`Collapsible`,[ge,_e]=O(he),[ve,ye]=ge(he),be=L.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=_({prop:r,defaultProp:i??!1,onChange:o,caller:he});return(0,R.jsx)(ve,{scope:n,disabled:a,contentId:A(),open:c,onOpenToggle:L.useCallback(()=>l(e=>!e),[l]),children:(0,R.jsx)(m.div,{"data-state":Ee(c),"data-disabled":a?``:void 0,...s,ref:t})})});be.displayName=he;var xe=`CollapsibleTrigger`,Se=L.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=ye(xe,n);return(0,R.jsx)(m.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Ee(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:b(e.onClick,i.onOpenToggle)})});Se.displayName=xe;var Ce=`CollapsibleContent`,we=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=ye(Ce,e.__scopeCollapsible);return(0,R.jsx)(S,{present:n||i.open,children:({present:e})=>(0,R.jsx)(Te,{...r,ref:t,present:e})})});we.displayName=Ce;var Te=L.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=ye(Ce,n),[s,c]=L.useState(r),l=L.useRef(null),u=F(t,l),d=L.useRef(0),f=d.current,p=L.useRef(0),h=p.current,_=o.open||s,v=L.useRef(_),y=L.useRef(void 0);return L.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),g(()=>{let e=l.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,v.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),c(r)}},[o.open,r]),(0,R.jsx)(m.div,{"data-state":Ee(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!_,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:_&&i})});function Ee(e){return e?`open`:`closed`}var De=be;function Oe(e){let t=L.useRef({value:e,previous:e});return L.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ke(e){let[t,n]=L.useState(void 0);return g(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var Ae=`Checkbox`,[je,Me]=O(Ae),[Ne,Pe]=je(Ae);function Fe(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=_({prop:n,defaultProp:i??!1,onChange:c,caller:Ae}),[m,h]=L.useState(null),[g,v]=L.useState(null),y=L.useRef(!1),b=m?!!o||!!m.closest(`form`):!0,x={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:y,required:l,defaultChecked:z(i)?!1:i,isFormControl:b,bubbleInput:g,setBubbleInput:v};return(0,R.jsx)(Ne,{scope:t,...x,children:Ue(d)?d(x):r})}var Ie=`CheckboxTrigger`,Le=L.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i)=>{let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:h}=Pe(Ie,e),g=F(i,u),_=L.useRef(c);return L.useEffect(()=>{let e=a?.form;if(e){let t=()=>d(_.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,R.jsx)(m.button,{type:`button`,role:`checkbox`,"aria-checked":z(c)?`mixed`:c,"aria-required":l,"data-state":We(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:g,onKeyDown:b(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:b(n,e=>{d(e=>z(e)?!0:!e),h&&p&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})});Le.displayName=Ie;var Re=L.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,R.jsx)(Fe,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Le,{...d,ref:t,__scopeCheckbox:n}),e&&(0,R.jsx)(He,{__scopeCheckbox:n})]})})});Re.displayName=Ae;var ze=`CheckboxIndicator`,Be=L.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Pe(ze,n);return(0,R.jsx)(S,{present:r||z(a.checked)||a.checked===!0,children:(0,R.jsx)(m.span,{"data-state":We(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});Be.displayName=ze;var Ve=`CheckboxBubbleInput`,He=L.forwardRef(({__scopeCheckbox:e,...t},n)=>{let{control:r,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:c,name:l,value:u,form:d,bubbleInput:f,setBubbleInput:p}=Pe(Ve,e),h=F(n,p),g=Oe(a),_=ke(r);L.useEffect(()=>{let e=f;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=!i.current;if(g!==a&&n){let t=new Event(`click`,{bubbles:r});e.indeterminate=z(a),n.call(e,z(a)?!1:a),e.dispatchEvent(t)}},[f,g,a,i]);let v=L.useRef(z(a)?!1:a);return(0,R.jsx)(m.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:o??v.current,required:s,disabled:c,name:l,value:u,form:d,...t,tabIndex:-1,ref:h,style:{...t.style,..._,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})});He.displayName=Ve;function Ue(e){return typeof e==`function`}function z(e){return e===`indeterminate`}function We(e){return z(e)?`indeterminate`:e?`checked`:`unchecked`}var Ge=[`top`,`right`,`bottom`,`left`],B=Math.min,V=Math.max,Ke=Math.round,qe=Math.floor,H=e=>({x:e,y:e}),Je={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ye(e,t,n){return V(e,B(t,n))}function U(e,t){return typeof e==`function`?e(t):e}function W(e){return e.split(`-`)[0]}function Xe(e){return e.split(`-`)[1]}function Ze(e){return e===`x`?`y`:`x`}function Qe(e){return e===`y`?`height`:`width`}function G(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function $e(e){return Ze(G(e))}function et(e,t,n){n===void 0&&(n=!1);let r=Xe(e),i=$e(e),a=Qe(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=lt(o)),[o,lt(o)]}function tt(e){let t=lt(e);return[nt(e),t,nt(t)]}function nt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var rt=[`left`,`right`],it=[`right`,`left`],at=[`top`,`bottom`],ot=[`bottom`,`top`];function st(e,t,n){switch(e){case`top`:case`bottom`:return n?t?it:rt:t?rt:it;case`left`:case`right`:return t?at:ot;default:return[]}}function ct(e,t,n,r){let i=Xe(e),a=st(W(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(nt)))),a}function lt(e){let t=W(e);return Je[t]+e.slice(t.length)}function ut(e){return{top:0,right:0,bottom:0,left:0,...e}}function dt(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ut(e)}function ft(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function pt(e,t,n){let{reference:r,floating:i}=e,a=G(t),o=$e(t),s=Qe(o),c=W(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Xe(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function mt(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=U(t,e),p=dt(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ft(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ft(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var ht=50,gt=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:mt},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=pt(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<ht&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=pt(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},_t=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=U(e,t)||{};if(l==null)return{};let d=dt(u),f={x:n,y:r},p=$e(i),m=Qe(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=B(d[_],T),D=B(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Ye(O,A,k),M=!c.arrow&&Xe(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),vt=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=U(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=W(r),_=G(o),v=W(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[lt(o)]:tt(o)),x=p!==`none`;!d&&x&&b.push(...ct(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=et(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==G(t))||T.every(e=>G(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=G(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function yt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bt(e){return Ge.some(t=>e[t]>=0)}var xt=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=U(e,t);switch(i){case`referenceHidden`:{let e=yt(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:bt(e)}}}case`escaped`:{let e=yt(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:bt(e)}}}default:return{}}}}},St=new Set([`left`,`top`]);async function Ct(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=W(n),s=Xe(n),c=G(n)===`y`,l=St.has(o)?-1:1,u=a&&c?-1:1,d=U(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var wt=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ct(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Tt=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=U(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=G(W(i)),p=Ze(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Ye(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Ye(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Et=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=U(e,t),u={x:n,y:r},d=G(i),f=Ze(d),p=u[f],m=u[d],h=U(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=St.has(W(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Dt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=U(e,t),u=await o.detectOverflow(t,l),d=W(i),f=Xe(i),p=G(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=B(h-u[g],v),x=B(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=V(u.left,0),t=V(u.right,0),n=V(u.top,0),r=V(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:V(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:V(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ot(){return typeof window<`u`}function kt(e){return At(e)?(e.nodeName||``).toLowerCase():`#document`}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function q(e){return((At(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function At(e){return Ot()?e instanceof Node||e instanceof K(e).Node:!1}function J(e){return Ot()?e instanceof Element||e instanceof K(e).Element:!1}function Y(e){return Ot()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function jt(e){return!Ot()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function Mt(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Nt(e){return/^(table|td|th)$/.test(kt(e))}function Pt(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ft=/transform|translate|scale|rotate|perspective|filter/,It=/paint|layout|strict|content/,X=e=>!!e&&e!==`none`,Lt;function Rt(e){let t=J(e)?Z(e):e;return X(t.transform)||X(t.translate)||X(t.scale)||X(t.rotate)||X(t.perspective)||!Bt()&&(X(t.backdropFilter)||X(t.filter))||Ft.test(t.willChange||``)||It.test(t.contain||``)}function zt(e){let t=Q(e);for(;Y(t)&&!Vt(t);){if(Rt(t))return t;if(Pt(t))return null;t=Q(t)}return null}function Bt(){return Lt??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Lt}function Vt(e){return/^(html|body|#document)$/.test(kt(e))}function Z(e){return K(e).getComputedStyle(e)}function Ht(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(kt(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||jt(e)&&e.host||q(e);return jt(t)?t.host:t}function Ut(e){let t=Q(e);return Vt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&Mt(t)?t:Ut(t)}function Wt(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ut(e),i=r===e.ownerDocument?.body,a=K(r);if(i){let e=Gt(a);return t.concat(a,a.visualViewport||[],Mt(r)?r:[],e&&n?Wt(e):[])}else return t.concat(r,Wt(r,[],n))}function Gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kt(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Y(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ke(n)!==a||Ke(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function qt(e){return J(e)?e:e.contextElement}function Jt(e){let t=qt(e);if(!Y(t))return H(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Kt(t),o=(a?Ke(n.width):n.width)/r,s=(a?Ke(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Yt=H(0);function Xt(e){let t=K(e);return!Bt()||!t.visualViewport?Yt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==K(e)?!1:t}function Qt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=qt(e),o=H(1);t&&(r?J(r)&&(o=Jt(r)):o=Jt(e));let s=Zt(a,n,r)?Xt(a):H(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=K(a),t=r&&J(r)?K(r):r,n=e,i=Gt(n);for(;i&&r&&t!==n;){let e=Jt(i),t=i.getBoundingClientRect(),r=Z(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=K(i),i=Gt(n)}}return ft({width:u,height:d,x:c,y:l})}function $t(e,t){let n=Ht(e).scrollLeft;return t?t.left+n:Qt(q(e)).left+n}function en(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-$t(e,n),y:n.top+t.scrollTop}}function tn(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=q(r),s=t?Pt(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=H(1),u=H(0),d=Y(r);if((d||!d&&!a)&&((kt(r)!==`body`||Mt(o))&&(c=Ht(r)),d)){let e=Qt(r);l=Jt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?en(o,c):H(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function nn(e){return Array.from(e.getClientRects())}function rn(e){let t=q(e),n=Ht(e),r=e.ownerDocument.body,i=V(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=V(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+$t(e),s=-n.scrollTop;return Z(r).direction===`rtl`&&(o+=V(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var an=25;function on(e,t){let n=K(e),r=q(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Bt();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=$t(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=an&&(a-=o)}else l<=an&&(a+=l);return{width:a,height:o,x:s,y:c}}function sn(e,t){let n=Qt(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Y(e)?Jt(e):H(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function cn(e,t,n){let r;if(t===`viewport`)r=on(e,n);else if(t===`document`)r=rn(q(e));else if(J(t))r=sn(t,n);else{let n=Xt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ft(r)}function ln(e,t){let n=Q(e);return n===t||!J(n)||Vt(n)?!1:Z(n).position===`fixed`||ln(n,t)}function un(e,t){let n=t.get(e);if(n)return n;let r=Wt(e,[],!1).filter(e=>J(e)&&kt(e)!==`body`),i=null,a=Z(e).position===`fixed`,o=a?Q(e):e;for(;J(o)&&!Vt(o);){let t=Z(o),n=Rt(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Mt(o)&&!n&&ln(e,o))?r=r.filter(e=>e!==o):i=t,o=Q(o)}return t.set(e,r),r}function dn(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Pt(t)?[]:un(t,this._c):[].concat(n),r],o=cn(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=cn(t,a[e],i);s=V(n.top,s),c=B(n.right,c),l=B(n.bottom,l),u=V(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function fn(e){let{width:t,height:n}=Kt(e);return{width:t,height:n}}function pn(e,t,n){let r=Y(t),i=q(t),a=n===`fixed`,o=Qt(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=H(0);function l(){c.x=$t(i)}if(r||!r&&!a)if((kt(t)!==`body`||Mt(i))&&(s=Ht(t)),r){let e=Qt(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?en(i,s):H(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function mn(e){return Z(e).position===`static`}function hn(e,t){if(!Y(e)||Z(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return q(e)===n&&(n=n.ownerDocument.body),n}function gn(e,t){let n=K(e);if(Pt(e))return n;if(!Y(e)){let t=Q(e);for(;t&&!Vt(t);){if(J(t)&&!mn(t))return t;t=Q(t)}return n}let r=hn(e,t);for(;r&&Nt(r)&&mn(r);)r=hn(r,t);return r&&Vt(r)&&mn(r)&&!Rt(r)?n:r||zt(e)||n}var _n=async function(e){let t=this.getOffsetParent||gn,n=this.getDimensions,r=await n(e.floating);return{reference:pn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function vn(e){return Z(e).direction===`rtl`}var yn={convertOffsetParentRelativeRectToViewportRelativeRect:tn,getDocumentElement:q,getClippingRect:dn,getOffsetParent:gn,getElementRects:_n,getClientRects:nn,getDimensions:fn,getScale:Jt,isElement:J,isRTL:vn};function bn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xn(e,t){let n=null,r,i=q(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=qe(d),h=qe(i.clientWidth-(u+f)),g=qe(i.clientHeight-(d+p)),_=qe(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:V(0,B(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!bn(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Sn(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=qt(e),u=i||a?[...l?Wt(l):[],...t?Wt(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?xn(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Qt(e):null;c&&g();function g(){let t=Qt(e);h&&!bn(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Cn=wt,wn=Tt,Tn=vt,En=Dt,Dn=xt,On=_t,kn=Et,An=(e,t,n)=>{let r=new Map,i={platform:yn,...n},a={...i.platform,_c:r};return gt(e,t,{...i,platform:a})},jn=e(E(),1),Mn=typeof document<`u`?L.useLayoutEffect:function(){};function Nn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Nn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Nn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Pn(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fn(e,t){let n=Pn(e);return Math.round(t*n)/n}function In(e){let t=L.useRef(e);return Mn(()=>{t.current=e}),t}function Ln(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=L.useState(r);Nn(f,r)||p(r);let[m,h]=L.useState(null),[g,_]=L.useState(null),v=L.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=L.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=L.useRef(null),C=L.useRef(null),w=L.useRef(u),T=c!=null,E=In(c),D=In(i),O=In(l),k=L.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),An(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Nn(w.current,t)&&(w.current=t,jn.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Mn(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=L.useRef(!1);Mn(()=>(A.current=!0,()=>{A.current=!1}),[]),Mn(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=L.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=L.useMemo(()=>({reference:b,floating:x}),[b,x]),N=L.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Fn(M.floating,u.x),r=Fn(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Pn(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return L.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Rn=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:On({element:r.current,padding:i}).fn(n):r?On({element:r,padding:i}).fn(n):{}}}},zn=(e,t)=>{let n=Cn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bn=(e,t)=>{let n=wn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Vn=(e,t)=>({fn:kn(e).fn,options:[e,t]}),Hn=(e,t)=>{let n=Tn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Un=(e,t)=>{let n=En(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wn=(e,t)=>{let n=Dn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gn=(e,t)=>{let n=Rn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kn=`Arrow`,qn=L.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,R.jsx)(m.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,R.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});qn.displayName=Kn;var Jn=qn,Yn=`Popper`,[Xn,Zn]=O(Yn),[Qn,$n]=Xn(Yn),er=e=>{let{__scopePopper:t,children:n}=e,[r,i]=L.useState(null);return(0,R.jsx)(Qn,{scope:t,anchor:r,onAnchorChange:i,children:n})};er.displayName=Yn;var tr=`PopperAnchor`,nr=L.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=$n(tr,n),o=L.useRef(null),s=F(t,o),c=L.useRef(null);return L.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,R.jsx)(m.div,{...i,ref:s})});nr.displayName=tr;var rr=`PopperContent`,[ir,ar]=Xn(rr),or=L.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:_,...v}=e,y=$n(rr,n),[b,x]=L.useState(null),S=F(t,e=>x(e)),[C,w]=L.useState(null),T=ke(C),E=T?.width??0,D=T?.height??0,O=r+(a===`center`?``:`-`+a),k=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},A=Array.isArray(l)?l:[l],j=A.length>0,M={padding:k,boundary:A.filter(ur),altBoundary:j},{refs:N,floatingStyles:P,placement:ee,isPositioned:te,middlewareData:I}=Ln({strategy:`fixed`,placement:O,whileElementsMounted:(...e)=>Sn(...e,{animationFrame:p===`always`}),elements:{reference:y.anchor},middleware:[zn({mainAxis:i+D,alignmentAxis:o}),c&&Bn({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Vn():void 0,...M}),c&&Hn({...M}),Un({...M,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),C&&Gn({element:C,padding:s}),dr({arrowWidth:E,arrowHeight:D}),f&&Wn({strategy:`referenceHidden`,...M})]}),[ne,re]=fr(ee),ie=h(_);g(()=>{te&&ie?.()},[te,ie]);let ae=I.arrow?.x,oe=I.arrow?.y,se=I.arrow?.centerOffset!==0,[ce,le]=L.useState();return g(()=>{b&&le(window.getComputedStyle(b).zIndex)},[b]),(0,R.jsx)(`div`,{ref:N.setFloating,"data-radix-popper-content-wrapper":``,style:{...P,transform:te?P.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ce,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,R.jsx)(ir,{scope:n,placedSide:ne,onArrowChange:w,arrowX:ae,arrowY:oe,shouldHideArrow:se,children:(0,R.jsx)(m.div,{"data-side":ne,"data-align":re,...v,ref:S,style:{...v.style,animation:te?void 0:`none`}})})})});or.displayName=rr;var sr=`PopperArrow`,cr={top:`bottom`,right:`left`,bottom:`top`,left:`right`},lr=L.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=ar(sr,n),a=cr[i.placedSide];return(0,R.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,R.jsx)(Jn,{...r,ref:t,style:{...r.style,display:`block`}})})});lr.displayName=sr;function ur(e){return e!==null}var dr=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=fr(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function fr(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var pr=er,mr=nr,hr=or,gr=lr,_r=`Popover`,[vr,yr]=O(_r,[Zn]),br=Zn(),[xr,$]=vr(_r),Sr=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=br(t),c=L.useRef(null),[l,u]=L.useState(!1),[d,f]=_({prop:r,defaultProp:i??!1,onChange:a,caller:_r});return(0,R.jsx)(pr,{...s,children:(0,R.jsx)(xr,{scope:t,contentId:A(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:L.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:L.useCallback(()=>u(!0),[]),onCustomAnchorRemove:L.useCallback(()=>u(!1),[]),modal:o,children:n})})};Sr.displayName=_r;var Cr=`PopoverAnchor`,wr=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=$(Cr,n),a=br(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return L.useEffect(()=>(o(),()=>s()),[o,s]),(0,R.jsx)(mr,{...a,...r,ref:t})});wr.displayName=Cr;var Tr=`PopoverTrigger`,Er=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=$(Tr,n),a=br(n),o=F(t,i.triggerRef),s=(0,R.jsx)(m.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Vr(i.open),...r,ref:o,onClick:b(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,R.jsx)(mr,{asChild:!0,...a,children:s})});Er.displayName=Tr;var Dr=`PopoverPortal`,[Or,kr]=vr(Dr,{forceMount:void 0}),Ar=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=$(Dr,t);return(0,R.jsx)(Or,{scope:t,forceMount:n,children:(0,R.jsx)(S,{present:n||a.open,children:(0,R.jsx)(T,{asChild:!0,container:i,children:r})})})};Ar.displayName=Dr;var jr=`PopoverContent`,Mr=L.forwardRef((e,t)=>{let n=kr(jr,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=$(jr,e.__scopePopover);return(0,R.jsx)(S,{present:r||a.open,children:a.modal?(0,R.jsx)(Pr,{...i,ref:t}):(0,R.jsx)(Fr,{...i,ref:t})})});Mr.displayName=jr;var Nr=D(`PopoverContent.RemoveScroll`),Pr=L.forwardRef((e,t)=>{let n=$(jr,e.__scopePopover),r=L.useRef(null),i=F(t,r),a=L.useRef(!1);return L.useEffect(()=>{let e=r.current;if(e)return w(e)},[]),(0,R.jsx)(k,{as:Nr,allowPinchZoom:!0,children:(0,R.jsx)(Ir,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:b(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:b(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),Fr=L.forwardRef((e,t)=>{let n=$(jr,e.__scopePopover),r=L.useRef(!1),i=L.useRef(!1);return(0,R.jsx)(Ir,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Ir=L.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=$(jr,n),p=br(n);return M(),(0,R.jsx)(j,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,R.jsx)(x,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,R.jsx)(hr,{"data-state":Vr(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),Lr=`PopoverClose`,Rr=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=$(Lr,n);return(0,R.jsx)(m.button,{type:`button`,...r,ref:t,onClick:b(e.onClick,()=>i.onOpenChange(!1))})});Rr.displayName=Lr;var zr=`PopoverArrow`,Br=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=br(n);return(0,R.jsx)(gr,{...i,...r,ref:t})});Br.displayName=zr;function Vr(e){return e?`open`:`closed`}var Hr=Sr,Ur=Er,Wr=Ar,Gr=Mr,[Kr,qr]=O(`Tooltip`,[Zn]),Jr=Zn(),Yr=`TooltipProvider`,Xr=700,Zr=`tooltip.open`,[Qr,$r]=Kr(Yr),ei=e=>{let{__scopeTooltip:t,delayDuration:n=Xr,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=L.useRef(!0),s=L.useRef(!1),c=L.useRef(0);return L.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,R.jsx)(Qr,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:L.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:L.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:L.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};ei.displayName=Yr;var ti=`Tooltip`,[ni,ri]=Kr(ti),ii=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=$r(ti,e.__scopeTooltip),l=Jr(t),[u,d]=L.useState(null),f=A(),p=L.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=L.useRef(!1),[v,y]=_({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(Zr))):c.onClose(),a?.(e)},caller:ti}),b=L.useMemo(()=>v?g.current?`delayed-open`:`instant-open`:`closed`,[v]),x=L.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,y(!0)},[y]),S=L.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),C=L.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,y(!0),p.current=0},h)},[h,y]);return L.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,R.jsx)(pr,{...l,children:(0,R.jsx)(ni,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:u,onTriggerChange:d,onTriggerEnter:L.useCallback(()=>{c.isOpenDelayedRef.current?C():x()},[c.isOpenDelayedRef,C,x]),onTriggerLeave:L.useCallback(()=>{m?S():(window.clearTimeout(p.current),p.current=0)},[S,m]),onOpen:x,onClose:S,disableHoverableContent:m,children:n})})};ii.displayName=ti;var ai=`TooltipTrigger`,oi=L.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=ri(ai,n),a=$r(ai,n),o=Jr(n),s=F(t,L.useRef(null),i.onTriggerChange),c=L.useRef(!1),l=L.useRef(!1),u=L.useCallback(()=>c.current=!1,[]);return L.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,R.jsx)(mr,{asChild:!0,...o,children:(0,R.jsx)(m.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:b(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:b(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:b(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:b(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:b(e.onBlur,i.onClose),onClick:b(e.onClick,i.onClose)})})});oi.displayName=ai;var si=`TooltipPortal`,[ci,li]=Kr(si,{forceMount:void 0}),ui=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=ri(si,t);return(0,R.jsx)(ci,{scope:t,forceMount:n,children:(0,R.jsx)(S,{present:n||a.open,children:(0,R.jsx)(T,{asChild:!0,container:i,children:r})})})};ui.displayName=si;var di=`TooltipContent`,fi=L.forwardRef((e,t)=>{let n=li(di,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=ri(di,e.__scopeTooltip);return(0,R.jsx)(S,{present:r||o.open,children:o.disableHoverableContent?(0,R.jsx)(_i,{side:i,...a,ref:t}):(0,R.jsx)(pi,{side:i,...a,ref:t})})}),pi=L.forwardRef((e,t)=>{let n=ri(di,e.__scopeTooltip),r=$r(di,e.__scopeTooltip),i=L.useRef(null),a=F(t,i),[o,s]=L.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=L.useCallback(()=>{s(null),d(!1)},[d]),p=L.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=xi(r,bi(r,n.getBoundingClientRect())),a=Si(t.getBoundingClientRect());s(wi([...i,...a])),d(!0)},[d]);return L.useEffect(()=>()=>f(),[f]),L.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),L.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Ci(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,R.jsx)(_i,{...e,ref:a})}),[mi,hi]=Kr(ti,{isInside:!1}),gi=v(`TooltipContent`),_i=L.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=ri(di,n),l=Jr(n),{onClose:u}=c;return L.useEffect(()=>(document.addEventListener(Zr,u),()=>document.removeEventListener(Zr,u)),[u]),L.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,R.jsx)(x,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,R.jsxs)(hr,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,R.jsx)(gi,{children:r}),(0,R.jsx)(mi,{scope:n,isInside:!0,children:(0,R.jsx)(me,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});fi.displayName=di;var vi=`TooltipArrow`,yi=L.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Jr(n);return hi(vi,n).isInside?null:(0,R.jsx)(gr,{...i,...r,ref:t})});yi.displayName=vi;function bi(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function xi(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Si(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Ci(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function wi(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),Ti(t)}function Ti(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Ei=ei,Di=ii,Oi=oi,ki=ui,Ai=fi,ji=yi,Mi=ee(`inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`}},defaultVariants:{variant:`default`}}),Ni=({className:e,variant:t,asChild:n=!1,...r})=>(0,R.jsx)(n?te:`span`,{"data-slot":`badge`,className:I(Mi({variant:t}),e),...r}),Pi=({delayDuration:e=0,...t})=>(0,R.jsx)(Ei,{"data-slot":`tooltip-provider`,delayDuration:e,...t}),Fi=({...e})=>(0,R.jsx)(Pi,{children:(0,R.jsx)(Di,{"data-slot":`tooltip`,...e})}),Ii=({...e})=>(0,R.jsx)(Oi,{"data-slot":`tooltip-trigger`,...e}),Li=({className:e,sideOffset:t=0,children:n,...r})=>(0,R.jsx)(ki,{children:(0,R.jsxs)(Ai,{"data-slot":`tooltip-content`,sideOffset:t,className:I(`bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance max-md:hidden`,e),...r,children:[n,(0,R.jsx)(ji,{className:`bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]`})]})}),Ri=({...e})=>(0,R.jsx)(Hr,{"data-slot":`popover`,...e}),zi=({...e})=>(0,R.jsx)(Ur,{"data-slot":`popover-trigger`,...e}),Bi=({className:e,align:t=`center`,sideOffset:n=4,...r})=>(0,R.jsx)(Wr,{children:(0,R.jsx)(Gr,{"data-slot":`popover-content`,align:t,sideOffset:n,className:I(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...r})}),Vi=({sessionId:e})=>{let t=r(),{data:n}=C(c),o=(0,L.useMemo)(()=>n?.notifications??[],[n?.notifications]),s=a({mutationFn:async e=>{await i.api.notifications[`:sessionId`].consume.$post({param:{sessionId:e},json:{types:[`session_paused`,`session_completed`]}})},onSuccess:()=>{t.invalidateQueries({queryKey:c.queryKey})}}),l=(0,L.useRef)(null);(0,L.useEffect)(()=>{if(e===void 0||e===``){l.current=null;return}n!==void 0&&l.current!==e&&(l.current=e,o.some(t=>t.sessionId===e&&(t.type===`session_paused`||t.type===`session_completed`))&&s.mutate(e))},[e,n,o,s]);let u=o.length;return(0,R.jsx)(Pi,{children:(0,R.jsxs)(Ri,{children:[(0,R.jsxs)(Fi,{children:[(0,R.jsx)(Ii,{asChild:!0,children:(0,R.jsx)(zi,{asChild:!0,children:(0,R.jsxs)(`button`,{type:`button`,className:I(`relative w-11 h-11 md:w-7 md:h-7 flex items-center justify-center rounded transition-colors`,u>0?`text-primary`:`hover:bg-muted text-muted-foreground hover:text-foreground`),"aria-label":`Notifications`,children:[(0,R.jsx)(ne,{className:`w-3.5 h-3.5`}),u>0&&(0,R.jsx)(`span`,{className:`absolute -top-0.5 -right-0.5 md:top-0 md:right-0 flex h-3.5 w-3.5 items-center justify-center rounded-full bg-primary text-[9px] font-bold text-primary-foreground`,children:u>9?`9+`:u})]})})}),(0,R.jsx)(Li,{side:`bottom`,className:`text-xs`,children:(0,R.jsx)(N,{id:`notification.title`})})]}),(0,R.jsxs)(Bi,{align:`end`,className:`w-[calc(100vw-2rem)] sm:w-80 p-0 z-[53]`,sideOffset:8,collisionPadding:16,children:[(0,R.jsxs)(`div`,{className:`flex items-center justify-between border-b px-3 py-2`,children:[(0,R.jsx)(`p`,{className:`text-sm font-medium`,children:(0,R.jsx)(N,{id:`notification.title`})}),u>0&&(0,R.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:u})]}),(0,R.jsx)(`div`,{className:`max-h-[300px] overflow-y-auto`,children:o.length===0?(0,R.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-8 text-muted-foreground`,children:[(0,R.jsx)(re,{className:`w-5 h-5 mb-2`}),(0,R.jsx)(`p`,{className:`text-xs`,children:(0,R.jsx)(N,{id:`notification.empty`})})]}):(0,R.jsx)(`div`,{className:`p-1.5 space-y-0.5`,children:o.map(e=>(0,R.jsxs)(p,{to:`/projects/$projectId/session`,params:{projectId:e.projectId},search:{sessionId:e.sessionId},className:`flex items-start gap-2.5 rounded-md p-2 text-sm transition-colors hover:bg-muted/50`,onClick:()=>s.mutate(e.sessionId),children:[(0,R.jsx)(`div`,{className:`mt-0.5 h-2 w-2 rounded-full bg-primary flex-shrink-0`}),(0,R.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,R.jsx)(`p`,{className:`text-xs font-medium truncate`,children:e.type===`session_paused`?(0,R.jsx)(N,{id:`notification.session_paused`}):e.type===`session_completed`?(0,R.jsx)(N,{id:`notification.session_completed`}):e.type===`permission_requested`?(0,R.jsx)(N,{id:`notification.permission_requested`}):(0,R.jsx)(N,{id:`notification.question_asked`})}),(0,R.jsx)(`p`,{className:`text-[11px] text-muted-foreground font-mono truncate`,children:e.sessionId}),(0,R.jsx)(`p`,{className:`text-[10px] text-muted-foreground mt-0.5`,children:y(new Date(e.createdAt),{target:`time`})})]})]},e.id))})})]})]})})},Hi=({className:e,...t})=>(0,R.jsx)(Re,{"data-slot":`checkbox`,className:I(`peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,e),...t,children:(0,R.jsx)(Be,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:(0,R.jsx)(re,{className:`size-3.5`})})}),Ui=({...e})=>(0,R.jsx)(De,{"data-slot":`collapsible`,...e}),Wi=({...e})=>(0,R.jsx)(Se,{"data-slot":`collapsible-trigger`,...e}),Gi=({...e})=>(0,R.jsx)(we,{"data-slot":`collapsible-content`,...e}),Ki=()=>{let{data:e}=o({queryKey:d.queryKey,queryFn:d.queryFn}),t=(0,L.useMemo)(()=>new Set(e.flags.filter(e=>e.enabled).map(e=>e.name)),[e.flags]),n=(0,L.useCallback)(e=>t.has(e),[t]);return{flags:e.flags,isFlagEnabled:n}},qi=e=>{switch(e){case`tool-approval`:return{title:(0,R.jsx)(N,{id:`system_info.feature.tool_approval.title`}),description:(0,R.jsx)(N,{id:`system_info.feature.tool_approval.description`})};case`agent-sdk`:return{title:(0,R.jsx)(N,{id:`system_info.feature.agent_sdk.title`}),description:(0,R.jsx)(N,{id:`system_info.feature.agent_sdk.description`})};case`sidechain-separation`:return{title:(0,R.jsx)(N,{id:`system_info.feature.sidechain_separation.title`}),description:(0,R.jsx)(N,{id:`system_info.feature.sidechain_separation.description`})};case`uuid-on-sdk-message`:return{title:(0,R.jsx)(N,{id:`system_info.feature.uuid_on_sdk_message.title`}),description:(0,R.jsx)(N,{id:`system_info.feature.uuid_on_sdk_message.description`})};case`run-skills-directly`:return{title:(0,R.jsx)(N,{id:`system_info.feature.run_skills_directly.title`}),description:(0,R.jsx)(N,{id:`system_info.feature.run_skills_directly.description`})};default:return{title:e,description:(0,R.jsx)(N,{id:`system_info.feature.unknown.description`})}}},Ji=()=>{let[e,t]=(0,L.useState)(!1),{data:n}=o({...s}),{data:r}=o({...l}),{flags:i}=Ki();return(0,R.jsxs)(`div`,{className:`h-full flex flex-col`,children:[(0,R.jsxs)(`div`,{className:`border-b border-sidebar-border p-4`,children:[(0,R.jsx)(`h2`,{className:`font-semibold text-lg`,children:(0,R.jsx)(N,{id:`system_info.title`})}),(0,R.jsx)(`p`,{className:`text-xs text-sidebar-foreground/70`,children:(0,R.jsx)(N,{id:`system_info.description`})})]}),(0,R.jsxs)(`div`,{className:`flex-1 overflow-y-auto p-4 space-y-6`,children:[(0,R.jsxs)(`div`,{className:`space-y-3`,children:[(0,R.jsx)(`h3`,{className:`font-medium text-sm text-sidebar-foreground`,children:(0,R.jsx)(N,{id:`system_info.viewer_version`})}),(0,R.jsxs)(`div`,{className:`flex justify-between items-center pl-2`,children:[(0,R.jsx)(`span`,{className:`text-xs text-sidebar-foreground/70`,children:(0,R.jsx)(N,{id:`system_info.version_label`})}),(0,R.jsxs)(Ni,{variant:`secondary`,className:`text-xs font-mono`,children:[`v`,n?.version||`Unknown`]})]})]}),(0,R.jsxs)(`div`,{className:`space-y-3`,children:[(0,R.jsx)(`h3`,{className:`font-medium text-sm text-sidebar-foreground`,children:(0,R.jsx)(N,{id:`system_info.claude_code`})}),(0,R.jsxs)(`div`,{className:`space-y-2 pl-2`,children:[(0,R.jsxs)(`div`,{className:`space-y-1`,children:[(0,R.jsx)(`div`,{className:`text-xs text-sidebar-foreground/70`,children:(0,R.jsx)(N,{id:`system_info.executable_path`})}),(0,R.jsx)(`div`,{className:`text-xs text-sidebar-foreground font-mono break-all`,children:r?.executablePath||(0,R.jsx)(`span`,{className:`text-sidebar-foreground/50`,children:(0,R.jsx)(N,{id:`system_info.unknown`})})})]}),(0,R.jsxs)(`div`,{className:`flex justify-between items-center pt-1`,children:[(0,R.jsx)(`span`,{className:`text-xs text-sidebar-foreground/70`,children:(0,R.jsx)(N,{id:`system_info.version_label`})}),(0,R.jsx)(Ni,{variant:`secondary`,className:`text-xs font-mono`,children:r?.version??(0,R.jsx)(N,{id:`system_info.unknown`})})]})]})]}),(0,R.jsx)(`div`,{className:`space-y-3`,children:(0,R.jsxs)(Ui,{open:e,onOpenChange:t,children:[(0,R.jsxs)(Wi,{className:`flex w-full items-center justify-between group`,children:[(0,R.jsx)(`h3`,{className:`font-medium text-sm text-sidebar-foreground`,children:(0,R.jsx)(N,{id:`system_info.available_features`})}),e?(0,R.jsx)(ie,{className:`h-4 w-4 text-sidebar-foreground/70 group-hover:text-sidebar-foreground transition-colors`}):(0,R.jsx)(ae,{className:`h-4 w-4 text-sidebar-foreground/70 group-hover:text-sidebar-foreground transition-colors`})]}),(0,R.jsx)(Gi,{className:`pt-3`,children:(0,R.jsx)(Pi,{children:(0,R.jsx)(`ul`,{className:`space-y-2 pl-2`,children:i.map(({name:e,enabled:t})=>{let n=qi(e);return(0,R.jsxs)(`li`,{className:`flex items-start gap-2`,children:[t?(0,R.jsx)(oe,{className:`h-3.5 w-3.5 text-green-500 dark:text-green-400 mt-0.5 flex-shrink-0`}):(0,R.jsx)(se,{className:`h-3.5 w-3.5 text-sidebar-foreground/30 mt-0.5 flex-shrink-0`}),(0,R.jsxs)(Fi,{children:[(0,R.jsx)(Ii,{asChild:!0,children:(0,R.jsx)(`span`,{className:t?`text-xs text-sidebar-foreground cursor-help`:`text-xs text-sidebar-foreground/50 line-through cursor-help`,children:n.title})}),(0,R.jsx)(Li,{side:`right`,className:`max-w-xs text-xs`,children:n.description})]})]},e)})})})})]})})]})]})},Yi=({children:e})=>{let{isAuthenticated:t}=f(),n=u();return(0,L.useEffect)(()=>{t||n({to:`/login`})},[t,n]),t?(0,R.jsx)(R.Fragment,{children:e}):null};export{ie as A,de as C,se as D,ce as E,ne as M,oe as O,Oe as S,le as T,mr as _,Gi as a,pr as b,Vi as c,zi as d,Fi as f,Ni as g,Ii as h,Ui as i,re as j,ae as k,Ri as l,Pi as m,Ji as n,Wi as o,Li as p,Ki as r,Hi as s,Yi as t,Bi as u,gr as v,ue as w,Zn as x,hr as y};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{d as t,f as n}from"./markdown-parser-vendor-D9j1a-bm.js";var r=e(n(),1);function i(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():i(e[t],null)}}}}function o(...e){return r.useCallback(a(...e),e)}var s=t(),c=Symbol.for(`react.lazy`),l=r.use;function u(e){return typeof e==`object`&&!!e&&`then`in e}function d(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===c&&`_payload`in e&&u(e._payload)}function f(e){let t=m(e),n=r.forwardRef((e,n)=>{let{children:i,...a}=e;d(i)&&typeof l==`function`&&(i=l(i._payload));let o=r.Children.toArray(i),c=o.find(g);if(c){let e=c.props.children,i=o.map(t=>t===c?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t);return(0,s.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,s.jsx)(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var p=f(`Slot`);function m(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(d(n)&&typeof l==`function`&&(n=l(n._payload)),r.isValidElement(n)){let e=_(n),o=ee(i,n.props);return n.type!==r.Fragment&&(o.ref=t?a(t,e):e),r.cloneElement(n,o)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var h=Symbol(`radix.slottable`);function g(e){return r.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===h}function ee(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function _(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function v(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=v(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function y(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=v(e))&&(r&&(r+=` `),r+=t);return r}var b=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,x=y,S=(e,t)=>n=>{if(t?.variants==null)return x(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=b(t)||b(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return x(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},C=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},w=(e,t)=>({classGroupId:e,validator:t}),te=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),T=`-`,E=[],ne=`arbitrary..`,D=e=>{let t=A(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return k(e);let n=e.split(T);return O(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?C(i,t):t:i||E}return n[e]||E}}},O=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=O(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(T):e.slice(t).join(T),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},k=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ne+r:void 0})(),A=e=>{let{theme:t,classGroups:n}=e;return re(n,t)},re=(e,t)=>{let n=te();for(let r in e){let i=e[r];j(i,n,r,t)}return n},j=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];M(i,t,n,r)}},M=(e,t,n,r)=>{if(typeof e==`string`){ie(e,t,n);return}if(typeof e==`function`){ae(e,t,n,r);return}oe(e,t,n,r)},ie=(e,t,n)=>{let r=e===``?t:N(t,e);r.classGroupId=n},ae=(e,t,n,r)=>{if(P(e)){j(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(w(n,e))},oe=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];j(o,N(t,a),n,r)}},N=(e,t)=>{let n=e,r=t.split(T),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=te(),n.nextPart.set(t,i)),n=i}return n},P=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,F=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},I=`!`,L=`:`,R=[],se=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),z=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===L){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(I)?(c=s.slice(0,-1),l=!0):s.startsWith(I)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return se(t,l,c,u)};if(t){let e=t+L,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):se(R,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},B=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ce=e=>({cache:F(e.cacheSize),parseClassName:z(e),sortModifiers:B(e),...D(e)}),V=/\s+/,le=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(V),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),ee=d?g+I:g,_=ee+h;if(o.indexOf(_)>-1)continue;o.push(_);let v=i(h,m);for(let e=0;e<v.length;++e){let t=v[e];o.push(ee+t)}c=t+(c.length>0?` `+c:c)}return c},ue=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=de(n))&&(i&&(i+=` `),i+=r);return i},de=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=de(e[r]))&&(n&&(n+=` `),n+=t);return n},fe=(e,...t)=>{let n,r,i,a,o=o=>(n=ce(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=le(e,n);return i(e,a),a};return a=o,(...e)=>a(ue(...e))},pe=[],H=e=>{let t=t=>t[e]||pe;return t.isThemeGetter=!0,t},me=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,he=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ge=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ve=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ye=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,be=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>ge.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),Se=e=>e.endsWith(`%`)&&W(e.slice(0,-1)),K=e=>_e.test(e),Ce=()=>!0,we=e=>ve.test(e)&&!ye.test(e),Te=()=>!1,Ee=e=>be.test(e),De=e=>xe.test(e),Oe=e=>!q(e)&&!Y(e),ke=e=>Z(e,We,Te),q=e=>me.test(e),J=e=>Z(e,Ge,we),Ae=e=>Z(e,Ke,W),je=e=>Z(e,Je,Ce),Me=e=>Z(e,qe,Te),Ne=e=>Z(e,He,Te),Pe=e=>Z(e,Ue,De),Fe=e=>Z(e,Ye,Ee),Y=e=>he.test(e),X=e=>Q(e,Ge),Ie=e=>Q(e,qe),Le=e=>Q(e,He),Re=e=>Q(e,We),ze=e=>Q(e,Ue),Be=e=>Q(e,Ye,!0),Ve=e=>Q(e,Je,!0),Z=(e,t,n)=>{let r=me.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Q=(e,t,n=!1)=>{let r=he.exec(e);return r?r[1]?t(r[1]):n:!1},He=e=>e===`position`||e===`percentage`,Ue=e=>e===`image`||e===`url`,We=e=>e===`length`||e===`size`||e===`bg-size`,Ge=e=>e===`length`,Ke=e=>e===`number`,qe=e=>e===`family-name`,Je=e=>e===`number`||e===`weight`,Ye=e=>e===`shadow`,Xe=fe(()=>{let e=H(`color`),t=H(`font`),n=H(`text`),r=H(`font-weight`),i=H(`tracking`),a=H(`leading`),o=H(`breakpoint`),s=H(`container`),c=H(`spacing`),l=H(`radius`),u=H(`shadow`),d=H(`inset-shadow`),f=H(`text-shadow`),p=H(`drop-shadow`),m=H(`blur`),h=H(`perspective`),g=H(`aspect`),ee=H(`ease`),_=H(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),Y,q],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],S=()=>[`auto`,`contain`,`none`],C=()=>[Y,q,c],w=()=>[U,`full`,`auto`,...C()],te=()=>[G,`none`,`subgrid`,Y,q],T=()=>[`auto`,{span:[`full`,G,Y,q]},G,Y,q],E=()=>[G,`auto`,Y,q],ne=()=>[`auto`,`min`,`max`,`fr`,Y,q],D=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...C()],A=()=>[U,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...C()],re=()=>[U,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...C()],j=()=>[U,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...C()],M=()=>[e,Y,q],ie=()=>[...y(),Le,Ne,{position:[Y,q]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,Re,ke,{size:[Y,q]}],N=()=>[Se,X,J],P=()=>[``,`none`,`full`,l,Y,q],F=()=>[``,W,X,J],I=()=>[`solid`,`dashed`,`dotted`,`double`],L=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[W,Se,Le,Ne],se=()=>[``,`none`,m,Y,q],z=()=>[`none`,W,Y,q],B=()=>[`none`,W,Y,q],ce=()=>[W,Y,q],V=()=>[U,`full`,...C()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[K],breakpoint:[K],color:[Ce],container:[K],"drop-shadow":[K],ease:[`in`,`out`,`in-out`],font:[Oe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[K],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[K],shadow:[K],spacing:[`px`,W],text:[K],"text-shadow":[K],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,U,q,Y,g]}],container:[`container`],columns:[{columns:[W,q,Y,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[G,`auto`,Y,q]}],basis:[{basis:[U,`full`,`auto`,s,...C()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[W,U,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,W,Y,q]}],shrink:[{shrink:[``,W,Y,q]}],order:[{order:[G,`first`,`last`,`none`,Y,q]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...D(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...D()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":C()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":C()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...j()]}],"min-block-size":[{"min-block":[`auto`,...j()]}],"max-block-size":[{"max-block":[`none`,...j()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,X,J]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ve,je]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Se,q]}],"font-family":[{font:[Ie,Me,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Y,q]}],"line-clamp":[{"line-clamp":[W,`none`,Y,Ae]}],leading:[{leading:[a,...C()]}],"list-image":[{"list-image":[`none`,Y,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Y,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...I(),`wavy`]}],"text-decoration-thickness":[{decoration:[W,`from-font`,`auto`,Y,J]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[W,`auto`,Y,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:C()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Y,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Y,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},G,Y,q],radial:[``,Y,q],conic:[G,Y,q]},ze,Pe]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-bs":[{"border-bs":F()}],"border-w-be":[{"border-be":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":F()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...I(),`hidden`,`none`]}],"divide-style":[{divide:[...I(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...I(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[W,Y,q]}],"outline-w":[{outline:[``,W,X,J]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`none`,u,Be,Fe]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,Be,Fe]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:F()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[W,J]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,Be,Fe]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[W,Y,q]}],"mix-blend":[{"mix-blend":[...L(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":L()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[Y,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Y,q]}],filter:[{filter:[``,`none`,Y,q]}],blur:[{blur:se()}],brightness:[{brightness:[W,Y,q]}],contrast:[{contrast:[W,Y,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Be,Fe]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,W,Y,q]}],"hue-rotate":[{"hue-rotate":[W,Y,q]}],invert:[{invert:[``,W,Y,q]}],saturate:[{saturate:[W,Y,q]}],sepia:[{sepia:[``,W,Y,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Y,q]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[W,Y,q]}],"backdrop-contrast":[{"backdrop-contrast":[W,Y,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,W,Y,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,Y,q]}],"backdrop-invert":[{"backdrop-invert":[``,W,Y,q]}],"backdrop-opacity":[{"backdrop-opacity":[W,Y,q]}],"backdrop-saturate":[{"backdrop-saturate":[W,Y,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,W,Y,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Y,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[W,`initial`,Y,q]}],ease:[{ease:[`linear`,`initial`,ee,Y,q]}],delay:[{delay:[W,Y,q]}],animate:[{animate:[`none`,_,Y,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Y,q]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:z()}],"rotate-x":[{"rotate-x":z()}],"rotate-y":[{"rotate-y":z()}],"rotate-z":[{"rotate-z":z()}],scale:[{scale:B()}],"scale-x":[{"scale-x":B()}],"scale-y":[{"scale-y":B()}],"scale-z":[{"scale-z":B()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[Y,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":[`translate-none`],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Y,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Y,q]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[W,X,J,Ae]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),$=(...e)=>Xe(y(e)),Ze=S(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),Qe=({className:e,variant:t,size:n,asChild:r=!1,...i})=>(0,s.jsx)(r?p:`button`,{"data-slot":`button`,className:$(Ze({variant:t,size:n,className:e})),...i}),$e=({className:e,...t})=>(0,s.jsx)(`div`,{"data-slot":`card`,className:$(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm`,e),...t}),et=({className:e,...t})=>(0,s.jsx)(`div`,{"data-slot":`card-header`,className:$(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...t}),tt=({className:e,...t})=>(0,s.jsx)(`div`,{"data-slot":`card-title`,className:$(`leading-none font-semibold`,e),...t}),nt=({className:e,...t})=>(0,s.jsx)(`div`,{"data-slot":`card-description`,className:$(`text-muted-foreground text-sm`,e),...t}),rt=({className:e,...t})=>(0,s.jsx)(`div`,{"data-slot":`card-content`,className:$(`px-6`,e),...t});export{tt as a,S as c,a as d,o as f,et as i,p as l,rt as n,Qe as o,nt as r,$ as s,$e as t,f as u};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-Dw2cE7zH.js";import{f as t}from"./markdown-parser-vendor-D9j1a-bm.js";var n=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),r=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),a=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},o={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},s=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},c=e(t()),l=(0,c.createContext)({}),u=()=>(0,c.useContext)(l),d=(0,c.forwardRef)(({color:e,size:t,strokeWidth:r,absoluteStrokeWidth:i,className:a=``,children:l,iconNode:d,...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,color:_=`currentColor`,className:v=``}=u()??{},y=i??g?Number(r??h)*24/Number(t??m):r??h;return(0,c.createElement)(`svg`,{ref:p,...o,width:t??m??o.width,height:t??m??o.height,stroke:e??_,strokeWidth:y,className:n(`lucide`,v,a),...!l&&!s(f)&&{"aria-hidden":`true`},...f},[...d.map(([e,t])=>(0,c.createElement)(e,t)),...Array.isArray(l)?l:[l]])}),f=(e,t)=>{let i=(0,c.forwardRef)(({className:i,...o},s)=>(0,c.createElement)(d,{ref:s,iconNode:t,className:n(`lucide-${r(a(e))}`,`lucide-${e}`,i),...o}));return i.displayName=a(e),i};export{f as t};