libre-webui 0.43.0 → 0.44.0

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 (152) hide show
  1. package/README.md +2 -0
  2. package/backend/dist/services/agentCliService.d.ts.map +1 -1
  3. package/backend/dist/services/agentCliService.js +1 -0
  4. package/backend/dist/services/agentCliService.js.map +1 -1
  5. package/backend/dist/services/pluginService.d.ts.map +1 -1
  6. package/backend/dist/services/pluginService.js +12 -9
  7. package/backend/dist/services/pluginService.js.map +1 -1
  8. package/backend/dist/services/workAgentHostLogins.d.ts.map +1 -1
  9. package/backend/dist/services/workAgentHostLogins.js +4 -0
  10. package/backend/dist/services/workAgentHostLogins.js.map +1 -1
  11. package/backend/dist/services/workModelProviderService.d.ts.map +1 -1
  12. package/backend/dist/services/workModelProviderService.js +13 -1
  13. package/backend/dist/services/workModelProviderService.js.map +1 -1
  14. package/backend/dist/utils/pluginChatAdapter.d.ts +15 -1
  15. package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
  16. package/backend/dist/utils/pluginChatAdapter.js +53 -5
  17. package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
  18. package/backend/dist/utils/pluginDefinitionTrust.d.ts.map +1 -1
  19. package/backend/dist/utils/pluginDefinitionTrust.js +5 -3
  20. package/backend/dist/utils/pluginDefinitionTrust.js.map +1 -1
  21. package/backend/dist/utils/pluginModelCatalog.d.ts +10 -0
  22. package/backend/dist/utils/pluginModelCatalog.d.ts.map +1 -1
  23. package/backend/dist/utils/pluginModelCatalog.js +24 -0
  24. package/backend/dist/utils/pluginModelCatalog.js.map +1 -1
  25. package/backend/package.json +2 -2
  26. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
  27. package/frontend/dist/artifact-runtime/babel.js +179 -173
  28. package/frontend/dist/artifact-runtime/chart.js +1 -1
  29. package/frontend/dist/artifact-runtime/d3.js +4 -4
  30. package/frontend/dist/artifact-runtime/framer-motion.js +2 -10
  31. package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
  32. package/frontend/dist/artifact-runtime/mathjs.js +1 -1
  33. package/frontend/dist/artifact-runtime/mermaid.js +368 -368
  34. package/frontend/dist/artifact-runtime/plotly.js +59 -59
  35. package/frontend/dist/artifact-runtime/recharts.js +45 -45
  36. package/frontend/dist/artifact-runtime/tailwind.js +18 -18
  37. package/frontend/dist/artifact-runtime/three.js +419 -397
  38. package/frontend/dist/artifact-runtime/tone.js +1 -1
  39. package/frontend/dist/assets/index-BM0txgxR.css +2 -0
  40. package/frontend/dist/assets/index-CekTqSoE.js +67 -0
  41. package/frontend/dist/assets/{markdown-math-Ngnvt50Q.css → markdown-math-Bv5fr4tV.css} +1 -1
  42. package/frontend/dist/index.html +30 -30
  43. package/frontend/dist/js/{ArtifactContainer-C0R4kYVM.js → ArtifactContainer-C7EEweSP.js} +1 -1
  44. package/frontend/dist/js/{ArtifactDemoPage-BQmbCyat.js → ArtifactDemoPage-B3yjn6Dw.js} +2 -2
  45. package/frontend/dist/js/{ArtifactSandboxFrame-CkDkrHpg.js → ArtifactSandboxFrame-DGC1hgTq.js} +6 -6
  46. package/frontend/dist/js/ArtifactSlideOutPanel-xamxqotB.js +1 -0
  47. package/frontend/dist/js/{AutomationModal-Cx1e_4df.js → AutomationModal-Dj0E2mSl.js} +1 -1
  48. package/frontend/dist/js/AutomationsPage-MTqU8Ap9.js +1 -0
  49. package/frontend/dist/js/{AvatarUpload-DGRQC20B.js → AvatarUpload-CrNLFoIi.js} +1 -1
  50. package/frontend/dist/js/{Button-DwZ26Lqc.js → Button-BGE6ZJv5.js} +1 -1
  51. package/frontend/dist/js/CalendarPage-BciFDr0S.js +1 -0
  52. package/frontend/dist/js/ChannelsPage-De96Q63V.js +1 -0
  53. package/frontend/dist/js/ChatPage-CTRKLQly.js +14 -0
  54. package/frontend/dist/js/ConnectModels-BPwpeVsJ.js +1 -0
  55. package/frontend/dist/js/EvaluationsPage-CT7EAYaj.js +2 -0
  56. package/frontend/dist/js/FirstTimeSetup-BXkaFkvk.js +1 -0
  57. package/frontend/dist/js/GalleryPage-BPUY12kj.js +1 -0
  58. package/frontend/dist/js/HomePage-16KFuUir.js +1 -0
  59. package/frontend/dist/js/{LanguageSwitcher-CASJ8p5d.js → LanguageSwitcher-MlITAZf6.js} +1 -1
  60. package/frontend/dist/js/{Logo-C-qwuy58.js → Logo-GlNrhpKp.js} +1 -1
  61. package/frontend/dist/js/{LogoMark-zP-mitdI.js → LogoMark-rgOHhWo-.js} +1 -1
  62. package/frontend/dist/js/{ModelManagerModals-BYhFWv22.js → ModelManagerModals-inYMmqa4.js} +1 -1
  63. package/frontend/dist/js/NotesPage-kYFIBBCu.js +3 -0
  64. package/frontend/dist/js/{PasswordStrengthMeter-Dow8ZeTs.js → PasswordStrengthMeter-ppDWQU9P.js} +1 -1
  65. package/frontend/dist/js/PersonasPage-mzAft_NC.js +13 -0
  66. package/frontend/dist/js/PluginUsagePage-DQvsXxpI.js +1 -0
  67. package/frontend/dist/js/{RichMessageContent-DJTLGpws.js → RichMessageContent-BW9UvzYw.js} +1 -1
  68. package/frontend/dist/js/{RichMessageContent-Bwpg3rfV.js → RichMessageContent-BraVuu1Q.js} +3 -3
  69. package/frontend/dist/js/SettingsModal-B-5JP50i.js +19 -0
  70. package/frontend/dist/js/SettingsToggle-BT6cbOnw.js +1 -0
  71. package/frontend/dist/js/{ShareDialog-DYwyeyaI.js → ShareDialog-CmgHPnKg.js} +1 -1
  72. package/frontend/dist/js/StrandsPage-Dg55juWQ.js +1 -0
  73. package/frontend/dist/js/{SystemPage-B4qFsAsb.js → SystemPage-PZhbWJCh.js} +1 -1
  74. package/frontend/dist/js/{TurnstileWidget-xx9lQV0b.js → TurnstileWidget-B_dl1YjT.js} +1 -1
  75. package/frontend/dist/js/{UserManagementPage-DhMRuhqj.js → UserManagementPage-BrogyZDQ.js} +1 -1
  76. package/frontend/dist/js/UserManagementPanel-DBwIOSOw.js +1 -0
  77. package/frontend/dist/js/{WhatsNewModal-DfR7W93-.js → WhatsNewModal-DunfwUe9.js} +1 -1
  78. package/frontend/dist/js/WorkPage-DQlsa18h.js +7 -0
  79. package/frontend/dist/js/api-DG2AKSTU.js +16 -0
  80. package/frontend/dist/js/api-DdDgFM-F.js +1 -0
  81. package/frontend/dist/js/{appNavigation-BifMRN3D.js → appNavigation-DXonlffV.js} +1 -1
  82. package/frontend/dist/js/{appStore-B6pAGo3p.js → appStore-DMmgXb-0.js} +2 -2
  83. package/frontend/dist/js/appVersion-Bl_QXi35.js +1 -0
  84. package/frontend/dist/js/authStore-ByVF8A2u.js +1 -0
  85. package/frontend/dist/js/{authStore-DdIb6km_.js → authStore-C89vePrB.js} +3 -3
  86. package/frontend/dist/js/chatStore-BooPA4cg.js +3 -0
  87. package/frontend/dist/js/{client-D_F_0LqX.js → client-D05vqJPO.js} +2 -2
  88. package/frontend/dist/js/{config-CHUQTU6j.js → config-DCQ2-rvE.js} +1 -1
  89. package/frontend/dist/js/{evaluationsApi-C0FKNJua.js → evaluationsApi-oCNxDBZ4.js} +1 -1
  90. package/frontend/dist/js/logger-DAQsBb8I.js +1 -0
  91. package/frontend/dist/js/markdown-html-DRL6swKb.js +2 -0
  92. package/frontend/dist/js/{markdown-math-BzLEmswF.js → markdown-math-CCWDDhWR.js} +3 -3
  93. package/frontend/dist/js/{markdownHtml-B1Ll_Qgp.js → markdownHtml-DpKMtcCu.js} +1 -1
  94. package/frontend/dist/js/markdownMath-CKB9Q-yN.js +1 -0
  95. package/frontend/dist/js/{messageCodeStyles-DVYyK8wm.js → messageCodeStyles-tSFFCV6k.js} +1 -1
  96. package/frontend/dist/js/rfb-xHgMEWMb.js +5 -0
  97. package/frontend/dist/js/router-vendor-DLHZHk4K.js +1 -0
  98. package/frontend/dist/js/{strandsApi-CeJLezXW.js → strandsApi-Fs6zV4CA.js} +1 -1
  99. package/frontend/dist/js/{teamEventStream-DOMyufrH.js → teamEventStream-DD_ASSs5.js} +1 -1
  100. package/frontend/dist/js/ui-DATtlADq.js +2 -0
  101. package/frontend/dist/js/ui-vendor-WdvBNwsu.js +1 -0
  102. package/frontend/dist/js/useChat-RXTiCFz0.js +13 -0
  103. package/frontend/dist/js/useDictation-YyALwnw6.js +1 -0
  104. package/frontend/dist/js/useQuery-DCqz3UJt.js +1 -0
  105. package/frontend/dist/js/{useTranslation-D9EScZXH.js → useTranslation-D-_KTORQ.js} +1 -1
  106. package/frontend/dist/js/utils-DsCVr_wG.js +1 -0
  107. package/frontend/dist/js/workApi-CbFQfwRZ.js +5 -0
  108. package/frontend/dist/js/workApi-CmH9c1xh.js +1 -0
  109. package/package.json +3 -3
  110. package/plugins/baseten.json +68 -0
  111. package/plugins/codex-oauth.json +1 -0
  112. package/plugins/modal.json +82 -0
  113. package/plugins/openai.json +2 -1
  114. package/plugins/openrouter.json +1 -0
  115. package/frontend/dist/assets/index-BnbO3eTY.js +0 -83
  116. package/frontend/dist/assets/index-CYKYBgsy.css +0 -2
  117. package/frontend/dist/js/ArtifactSlideOutPanel-DZnVzC0c.js +0 -1
  118. package/frontend/dist/js/AutomationsPage-D7UtYZ_0.js +0 -1
  119. package/frontend/dist/js/CalendarPage-WmA1i7MQ.js +0 -1
  120. package/frontend/dist/js/ChannelsPage-Bq4JQPR_.js +0 -1
  121. package/frontend/dist/js/ChatPage-Cd3fxx-N.js +0 -14
  122. package/frontend/dist/js/ConnectModels-BYul-veF.js +0 -1
  123. package/frontend/dist/js/EvaluationsPage-CV_Terzn.js +0 -2
  124. package/frontend/dist/js/FirstTimeSetup-CFhGy9a8.js +0 -1
  125. package/frontend/dist/js/GalleryPage-BRKZyq1w.js +0 -1
  126. package/frontend/dist/js/HomePage-DdpnBu-Z.js +0 -1
  127. package/frontend/dist/js/NotesPage-CmvVoWcH.js +0 -3
  128. package/frontend/dist/js/PersonasPage-BYKtoKWl.js +0 -13
  129. package/frontend/dist/js/PluginUsagePage-BVTOCxoE.js +0 -1
  130. package/frontend/dist/js/SettingsModal-CGyVfxOz.js +0 -19
  131. package/frontend/dist/js/SettingsToggle-BpD6NSri.js +0 -1
  132. package/frontend/dist/js/StrandsPage-CvXeYOYR.js +0 -1
  133. package/frontend/dist/js/UserManagementPanel-BVLSvRwa.js +0 -1
  134. package/frontend/dist/js/WorkPage-DSKBQEW0.js +0 -7
  135. package/frontend/dist/js/api-C5ps_CWQ.js +0 -1
  136. package/frontend/dist/js/api-D6IF0v9_.js +0 -16
  137. package/frontend/dist/js/appVersion-9UMn7b1T.js +0 -1
  138. package/frontend/dist/js/authStore-CDo5Co2D.js +0 -1
  139. package/frontend/dist/js/chatStore-hzQyRM9H.js +0 -3
  140. package/frontend/dist/js/logger-rEW7uQ8m.js +0 -1
  141. package/frontend/dist/js/markdown-html-BdYVneHE.js +0 -2
  142. package/frontend/dist/js/markdownMath-aI8uDQmz.js +0 -1
  143. package/frontend/dist/js/rfb-IV07oQgM.js +0 -5
  144. package/frontend/dist/js/router-vendor-qltZAWoz.js +0 -1
  145. package/frontend/dist/js/ui-D4Ytvr6d.js +0 -2
  146. package/frontend/dist/js/ui-vendor-BTcw5yZ6.js +0 -1
  147. package/frontend/dist/js/useChat-BEbNywiP.js +0 -13
  148. package/frontend/dist/js/useDictation-jTaorrHm.js +0 -1
  149. package/frontend/dist/js/useQuery-2_pQiHbl.js +0 -1
  150. package/frontend/dist/js/utils-BvvV-Cka.js +0 -1
  151. package/frontend/dist/js/workApi-CGvfDTRY.js +0 -1
  152. package/frontend/dist/js/workApi-_0oxRyak.js +0 -5
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t}from"./react-vendor-C1iE8mnY.js";var n=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,r=/^[\\/]{2}/;function i(e,t){return t+e.replace(/\\/g,`/`)}var a=`popstate`;function o(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function s(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return p(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:m(t)}return g(t,n,null,e)}function c(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=h(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),p(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:m(t))}function r(e,t){u(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return g(t,n,r,e)}function l(e,t){if(e===!1||e==null)throw Error(t)}function u(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function d(){return Math.random().toString(36).substring(2,10)}function f(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function p(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?h(t):t,state:n,key:t&&t.key||r||d(),mask:i}}function m({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function h(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,c=i.history,l=`POP`,u=null,d=m();d??(d=0,c.replaceState({...c.state,idx:d},``));function m(){return(c.state||{idx:null}).idx}function h(){l=`POP`;let e=m(),t=e==null?null:e-d;d=e,u&&u({action:l,location:b.location,delta:t})}function g(e,t){l=`PUSH`;let r=o(e)?e:p(b.location,e,t);n&&n(r,e),d=m()+1;let a=f(r,d),h=b.createHref(r.mask||r);try{c.pushState(a,``,h)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(h)}s&&u&&u({action:l,location:b.location,delta:1})}function v(e,t){l=`REPLACE`;let r=o(e)?e:p(b.location,e,t);n&&n(r,e),d=m();let i=f(r,d),a=b.createHref(r.mask||r);c.replaceState(i,``,a),s&&u&&u({action:l,location:b.location,delta:0})}function y(e){return _(i,e)}let b={get action(){return l},get location(){return e(i,c)},listen(e){if(u)throw Error(`A history only accepts one active listener`);return i.addEventListener(a,h),u=e,()=>{i.removeEventListener(a,h),u=null}},createHref(e){return t(i,e)},createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:g,replace:v,go(e){return c.go(e)}};return b}function _(e,t,n=!1){let i=`http://localhost`;e&&(i=e.location.origin===`null`?e.location.href:e.location.origin),l(i,`No window.location.(origin|href) available to create URL`);let a=typeof t==`string`?t:m(t);return a=a.replace(/ $/,`%20`),!n&&r.test(a)&&(a=i+a),new URL(a,i)}var v=e(t(),1),y=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},b=class extends Error{},x=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`,`unstable_validateParams`]);function S(e){return x.has(e)}var C=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`,`unstable_validateParams`]);function w(e){return C.has(e)}function T(e){return e.index===!0}function E(e){let t={};return e.Component&&Object.assign(t,{element:v.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function D(e,t=E,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(l(e.index!==!0||!e.children,`Cannot specify children on an index route`),l(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),T(e)){let n={...e,id:s};return r[s]=O(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=O(n,t(n)),e.children&&(n.children=D(e.children,t,o,r,i)),n}})}function O(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function ee(e,t,n=`/`){return k(e,t,n,!1)}function k(e,t,n,r,i){let a=V((typeof t==`string`?h(t):t).pathname||`/`,n);if(a==null)return null;let o=i??A(e),s=null,c=ue(a);for(let e=0;s==null&&e<o.length;++e)s=se(o[e],c,r);return s}function te(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function A(e){let t=j(e);return N(t),t}function j(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;l(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let u=U([r,c.relativePath]),d=n.concat(c);e.children&&e.children.length>0&&(l(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),j(e.children,t,d,u,o)),(e.path!=null||e.index)&&t.push({path:u,score:ae(u,e.index),routesMeta:d.map((e,t)=>{let[n,r]=le(e.relativePath,e.caseSensitive,t===d.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of M(e.path))a(e,t,!0,n)}),t}function M(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=M(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function N(e){e.sort((e,t)=>e.score===t.score?oe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var P=/^:[\w-]+$/,ne=/^:[\w-]+/,F=3.5,I=3,L=2,R=1,z=10,re=-2,ie=e=>e===`*`;function ae(e,t){let n=e.split(`/`),r=n.length;return n.some(ie)&&(r+=re),t&&(r+=L),n.filter(e=>!ie(e)).reduce((e,t)=>e+(P.test(t)?I:ne.test(t)?F:t===``?R:z),r)}function oe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function se(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ce(u,l,s.matcher,s.compiledParams):B(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=B({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:U([a,d.pathname]),pathnameBase:W(U([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=U([a,d.pathnameBase]))}return o}function B(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=le(e.path,e.caseSensitive,e.end);return ce(e,t,n,r)}function ce(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=ye(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=ye(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function le(e,t=!1,n=!0){u(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/((?:[^/?()[\]*^\\]|\\.)+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ue(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return u(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function V(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function de({basename:e,pathname:t}){return t===`/`?e:U([e,t])}var fe=e=>n.test(e);function pe(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?h(e):e,a;return n?(n=ve(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?me(n.substring(1),`/`):me(n,t)):a=t,{pathname:a,search:be(r),hash:xe(i)}}function me(e,t){let n=ye(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function he(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ge(e){let t=he(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function _e(e,t,n,r=!1){let i;typeof e==`string`?i=h(e):(i={...e},l(!i.pathname||!i.pathname.includes(`?`),H(`?`,`pathname`,`search`,i)),l(!i.pathname||!i.pathname.includes(`#`),H(`#`,`pathname`,`hash`,i)),l(!i.search||!i.search.includes(`#`),H(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=pe(i,s),u=o&&o!==`/`&&o.endsWith(`/`),d=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(u||d)&&(c.pathname+=`/`),c}var ve=e=>e.replace(/[\\/]{2,}/g,`/`),U=e=>ve(e.join(`/`));function ye(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var W=e=>ye(e).replace(/^\/*/,`/`),be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,xe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Se=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Ce=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function we(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function G(e){return U(e.map(e=>e.route.path).filter(Boolean))||`/`}function Te(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?h(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var Ee=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function De(e,t){let a=e;if(typeof a!=`string`||!n.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let o=a,s=!1;if(Ee)try{let e=new URL(window.location.href),n=r.test(a)?new URL(i(a,e.protocol)):new URL(a),o=V(n.pathname,t);n.origin===e.origin&&o!=null?a=o+n.search+n.hash:s=!0}catch{u(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:s,to:a}}var Oe=Symbol(`Uninstrumented`),ke=new WeakMap;function Ae(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>K(await q(n.lazy,void 0,()=>e(...t),Ie))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>K(await q(n[`lazy.middleware`],void 0,()=>t(...e),Ie))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>K(await q(n[`lazy.loader`],void 0,()=>t(...e),Ie))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>K(await q(n[`lazy.action`],void 0,()=>t(...e),Ie))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=Me(t.loader),i=async(...t)=>K(await q(n.loader,Le(t[0]),()=>e(...t),Ie));e.hydrate===!0&&(i.hydrate=!0),Ne(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=Me(t.action),i=async(...t)=>K(await q(n.action,Le(t[0]),()=>e(...t),Ie));Ne(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=Me(e),r=async(...e)=>K(await q(n.middleware,Le(e[0]),()=>t(...e),Ie));return Ne(r,t),r})),r}function je(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=Me(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?m(i):`.`,...J(e,a??{})};return K(await q(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=Pe(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...Ie(e),meta:o})))};Ne(r,t),e.navigate=r}if(n.fetch.length>0){let t=Me(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return K(await q(n.fetch,{href:o??`.`,fetcherKey:i,...J(e,s??{})},async()=>{let n=Pe(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...Ie(e),meta:c})))};Ne(r,t),e.fetch=r}return e}function Me(e){return e[Oe]??e}function Ne(e,t){e[Oe]=t}function Pe(e,t){return ke.set(e,t),()=>{ke.get(e)===t&&ke.delete(e)}}function Fe(e){let t=ke.get(e);return ke.delete(e),t}function K(e){if(e.type===`error`)throw e.value;return e.value}async function q(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,c=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=q(e,t,n,r,i,a-1),await s,l(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(c,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await c(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result||(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t)),i.result}function Ie(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function Le(e){let{request:t,context:n,params:r}=e;return{...e,request:Re(t),params:{...r},context:ze(n)}}function J(e,t){return{currentUrl:m(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Re(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ze(e){return{get:t=>e.get(t)}}var Be=class{#e=[];#t=[];#n;constructor(e){this.#n=e}update(e){this.#e=e,this.#t=A(e)}match(e,t=!1){return k(this.#e,e,this.#n,t,this.#t)}},Ve=new URL(`http://localhost`);function He(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Ve)}catch{return Ve}}function Y(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Ue(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function We(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Y(i,n),s=!Y(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Ue(e,i)||!Y(i,a)))throw Error(`External navigation is not allowed`)}var Ge=[`POST`,`PUT`,`PATCH`,`DELETE`],Ke=new Set(Ge),qe=[`GET`,...Ge],Je=new Set(qe),Ye=new Set([301,302,303,307,308]),Xe=new Set([307,308]),Ze={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qe={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$e={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},et=`remix-router-transitions`,tt=Symbol(`ResetLoaderData`);function nt(e,t){return e.unstable_routePatternMatching?(l(void 0,`You must call unstable_preloadRoutePattern() from "react-router/route-pattern" before enabling future.unstable_routePatternMatching.`),new(void 0)(t)):new Be(t)}var rt=class{#e;#t;#n;constructor(e,t){this.#e=e,this.#n=t,this.#n.update(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#t??this.#e}get hasHMRRoutes(){return this.#t!=null}setRoutes(e){this.#e=e,this.#t||this.#n.update(e)}setHmrRoutes(e){this.#t=e,this.#n.update(e)}commitHmrRoutes(){this.#t&&(this.#e=this.#t,this.#t=void 0,this.#n.update(this.#e))}},it=new WeakMap;function at(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;l(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let i=e.hydrationRouteProperties||[],a=e.mapRouteProperties,o=a||(()=>({}));if(e.instrumentations){let t=e.instrumentations;o=e=>({...a?.(e),...Ae(t.map(e=>e.route).filter(Boolean),e)})}let s={...e.future},c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let d=nt(s,c),f={},g=new rt(D(e.routes,o,void 0,f),d),v=e.dataStrategy||St,x=null,S=new Set,C=null,w=null,T=null,E=e.hydrationData!=null,O=d.match(e.history.location),ee=!1,k=null,A,j;if(O==null&&!e.patchRoutesOnNavigation){let t=X(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Gt(g.activeRoutes);A=!0,j=!A,O=n,k={[r.id]:t}}else if(O&&!e.hydrationData&&mt(O,e.history.location.pathname).active&&(O=null),!O){A=!1,j=!A,O=[];let t=mt(null,e.history.location.pathname);t.active&&t.matches&&(ee=!0,O=t.matches)}else if(O.some(e=>e.route.lazy))A=!1,j=!A;else if(!O.some(e=>ut(e.route)))A=!0,j=!A;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=O;if(n){let e=O.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}j=!1,A=!0,r.forEach(e=>{let r=dt(e.route,t,n);j||=r.renderFallback,A&&=!r.shouldLoad})}let M,N={historyAction:e.history.action,location:e.history.location,matches:O,initialized:A,renderFallback:j,navigation:Ze,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map},P=`POP`,ne=0,F,I=null,L=!1,R,z=!1,re=new Map,ie=null,ae=!1,oe=!1,se=new Set,B=new Map,ce=0,le=-1,ue=new Map,de=new Set,pe=new Map,me=new Map,H=new Set,he=new Map,ge,_e=null;function ve(){if(x=e.history.listen(({action:t,location:n,delta:r})=>{if(ge){ge(),ge=void 0;return}u(he.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=et({currentLocation:N.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ge=e});e.history.go(r*-1),Ye(i,{state:`blocked`,location:n,proceed(){Ye(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(N.blockers);e.set(i,$e),W({blockers:e})}}),I?.resolve(),I=null}else return s.unstable_customRouteDiscovery&&(ne+=r||0),G(t,n)}),n){mn(t,re);let e=()=>hn(t,re);t.addEventListener(`pagehide`,e),ie=()=>t.removeEventListener(`pagehide`,e)}return N.initialized||G(`POP`,N.location,{initialHydration:!0}),M}function U(){x&&x(),ie&&ie(),S.clear(),R&&R.abort(),N.fetchers.forEach((e,t)=>Ve(N.fetchers,t)),N.blockers.forEach((e,t)=>Je(t))}function ye(e){return S.add(e),()=>S.delete(e)}function W(e,t={}){let n=e.errors??null,r=n?it.get(n):void 0;r!==void 0&&(n=r),(e.errors!==void 0||e.initialized)&&(N.errors&&it.delete(N.errors),e.errors&&it.set(e.errors,n)),e.matches&&=e.matches.map(e=>{let t=f[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),N={...N,...e};let i=[],a=[];N.fetchers.forEach((e,t)=>{e.state===`idle`&&(H.has(t)?i.push(t):a.push(t))}),H.forEach(e=>{!N.fetchers.has(e)&&!B.has(e)&&i.push(e)}),[...S].forEach(e=>e(N,{deletedFetchers:i,newErrors:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),i.forEach(e=>Ve(N.fetchers,e)),a.forEach(e=>N.fetchers.delete(e))}function be(t,n,{flushSync:r}={}){let i=N.actionData!=null&&N.navigation.formMethod!=null&&Q(N.navigation.formMethod)&&N.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?N.actionData:null;let o=n.loaderData?Ht(N.loaderData,n.loaderData,n.matches||[],n.errors):N.loaderData,s=N.blockers;s.size>0&&!ae&&(s=new Map(s),s.forEach((e,t)=>s.set(t,$e)));let c=!ae&&pt(t,n.matches||N.matches),l=L===!0||N.navigation.formMethod!=null&&Q(N.navigation.formMethod)&&t.state?._isRedirect!==!0;g.commitHmrRoutes(),ae||P===`POP`||(P===`PUSH`?e.history.push(t,t.state):P===`REPLACE`&&e.history.replace(t,t.state));let u;if(P===`POP`&&!ae&&t!==N.location){let e=re.get(N.location.pathname);e&&e.has(t.pathname)?u={currentLocation:N.location,nextLocation:t}:re.has(t.pathname)&&(u={currentLocation:t,nextLocation:N.location})}else if(z){let e=re.get(N.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),re.set(N.location.pathname,e)),u={currentLocation:N.location,nextLocation:t}}W({...n,actionData:a,loaderData:o,historyAction:P,location:t,initialized:!0,renderFallback:!1,navigation:Ze,revalidation:`idle`,restoreScrollPosition:c,preventScrollReset:l,blockers:s},{viewTransitionOpts:u,flushSync:r===!0}),xe(),I?.resolve(),I=null,_e?.resolve(),_e=null}function xe(){ne=0,P=`POP`,L=!1,z=!1,ae=!1,oe=!1}async function Se(t,n){if(F&&await F,I?.resolve(),I=null,typeof t==`number`){I||=gn();let n=I.promise;return e.history.go(t),n}let i=Fe(M),{path:a,submission:o,error:s}=ct(!1,st(N.location,N.matches,c,t,n?.fromRouteId,n?.relative),n),l;if(n?.mask){let t=typeof n.mask==`string`?h(n.mask):{...N.location.mask,...n.mask};if(l={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},r.test(l.pathname))throw Error(`External navigation is not allowed`);l.pathname.startsWith(`\\`)&&(l.pathname=l.pathname.replace(/^\\+/,`/`)),We(typeof n.mask==`string`?n.mask:m(n.mask),m(l),e.history.createURL(`/`),`reject`)}let u=N.location,d=p(u,a,n&&n.state,void 0,l);d={...d,...e.history.encodeLocation(d)},We(t==null?e.history.createHref(N.location):typeof t==`string`?t:m(t),e.history.createHref(d.mask||d),e.history.createURL(`/`),`reject`);let f=n&&n.replace!=null?n.replace:void 0,g=`PUSH`;f===!0?g=`REPLACE`:f===!1||o!=null&&Q(o.formMethod)&&o.formAction===N.location.pathname+N.location.search&&(g=`REPLACE`);let _=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,v=(n&&n.flushSync)===!0,y=et({currentLocation:u,nextLocation:d,historyAction:g});y?Ye(y,{state:`blocked`,location:d,proceed(){Ye(y,{state:`proceeding`,proceed:void 0,reset:void 0,location:d}),Se(t,n)},reset(){let e=new Map(N.blockers);e.set(y,$e),W({blockers:e})}}):await G(g,d,{submission:o,pendingError:s,preventScrollReset:_,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:v,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:i})}function Ce(){if(F)return F.then(Ce);_e||=gn(),Le(),W({revalidation:`loading`});let e=_e.promise;return N.navigation.state===`submitting`?e:N.navigation.state===`idle`?(G(N.historyAction,N.location,{startUninterruptedRevalidation:!0,dataStrategyInitiator:`revalidation`}),e):(G(P||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,dataStrategyInitiator:`revalidation`,enableViewTransition:z===!0}),e)}async function G(t,n,r){F&&await F,R&&R.abort(),R=null,P=t,ae=(r&&r.startUninterruptedRevalidation)===!0,ft(N.location,N.matches),L=(r&&r.preventScrollReset)===!0,z=(r&&r.enableViewTransition)===!0;let i=r?.initialHydration&&N.matches&&N.matches.length>0&&!ee?N.matches:d.match(n),a=(r&&r.flushSync)===!0;if(i&&N.initialized&&!oe&&Jt(N.location,n)&&!(r&&r.submission&&Q(r.submission.formMethod))){be(n,{matches:i},{flushSync:a});return}let o=mt(i,n.pathname);if(o.active&&o.matches&&(i=o.matches),r?.instrumentationNavigateMetaReceiver){let t=cn(e.history,n,i);r.instrumentationNavigateMetaReceiver(t)}if(!i){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);be(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:a});return}let s=r&&r.overrideNavigation?{...r.overrideNavigation,matches:i,historyAction:t}:void 0;R=new AbortController;let c=Lt(e.history,n,R.signal,r&&r.submission),l=r?.initialHydration?`initialization`:r?.dataStrategyInitiator??`navigation`,u=e.getContext?await e.getContext():new y,f;if(r&&r.pendingError)f=[Wt(i).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Q(r.submission.formMethod)){let d=await Ee(c,l,n,r.submission,i,t,u,o.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:a});if(d.shortCircuited)return;if(d.pendingActionResult){let[e,t]=d.pendingActionResult;if(Z(t)&&we(t.error)&&t.error.status===404){R=null,be(n,{matches:d.matches,loaderData:{},errors:{[e]:t.error}});return}}i=d.matches||i,f=d.pendingActionResult,s=un(n,i,t,r.submission),a=!1,o.active=!1,c=Lt(e.history,c.url,c.signal)}let{shortCircuited:p,matches:m,loaderData:h,errors:g,workingFetchers:_}=await De(c,l,n,i,t,u,o.active,s,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,a,f,r&&r.callSiteDefaultShouldRevalidate);p||(R=null,be(n,{matches:m||i,...Ut(f),loaderData:h,errors:g,..._?{fetchers:_}:{}}))}function Te(){let t=gn();F=t.promise;let n=ne,r=I;I=null,R?.abort(),R=null,xe(),_e?.resolve(),_e=null;let i=new Map(N.blockers);i.forEach((e,t)=>{e.state===`proceeding`&&i.set(t,$e)});let a=new Map(N.fetchers),o=Ge(a);a.forEach((e,t)=>{e.state===`loading`&&!B.has(t)&&(a.set(t,$(e.data)),o=!0)}),se.clear(),W({navigation:Ze,revalidation:`idle`,blockers:i,...o?{fetchers:a}:{}});function s(){F=void 0,r?.resolve(),t.resolve()}return n?(ge=s,e.history.go(-n)):s(),t.promise}async function Ee(t,n,r,a,l,u,d,p,m,h={}){if(s.unstable_customRouteDiscovery||Le(),W({navigation:dn(r,l,u,a)},{flushSync:h.flushSync===!0}),p){let e=await gt(l,r.pathname,t.signal);if(s.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await Te(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Gt(g.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Wt(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:`error`,error:t}]}}}s.unstable_customRouteDiscovery&&Le();let _,v=sn(l,r);if(!v.route.action&&!v.route.lazy)_={type:`error`,error:X(405,{method:t.method,pathname:r.pathname,routeId:v.route.id})};else{let e=await q(t,r,Ot(o,f,t,r,l,v,m?[]:i,d),d,null,n,u);if(_=e[v.route.id],!_){for(let t of l)if(e[t.route.id]){_=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if($t(_)){let r;return r=h&&h.replace!=null?h.replace:It(_.response.headers.get(`Location`),new URL(t.url),c,e.history)===N.location.pathname+N.location.search,await K(t,_,!0,n,{submission:a,replace:r}),{shortCircuited:!0}}if(Z(_)){let e=Wt(l,v.route.id);return(h&&h.replace)!==!0&&(P=`PUSH`),{matches:l,pendingActionResult:[e.route.id,_,v.route.id]}}return{matches:l,pendingActionResult:[v.route.id,_]}}async function De(t,n,r,a,c,l,u,p,m,h,_,v,y,b,x){let S=p||un(r,a,c,m),C=m||h||ln(S),w=!ae&&!v;if(u){if(w){let e=Oe(b);W({navigation:S,...e===void 0?{}:{actionData:e}},{flushSync:y})}let e=await gt(a,r.pathname,t.signal);if(s.unstable_customRouteDiscovery&&t.signal.aborted||e.type===`aborted`)return{shortCircuited:!0};if(e.type===`cancelled`)return await Te(),{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Gt(g.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Wt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches,v&&!t.signal.aborted&&W({matches:a});else{let{error:e,notFoundMatches:t,route:n}=tt(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}}let{dsMatches:T,revalidatingFetchers:E}=lt(t,l,o,f,e.history,N,a,C,r,v?[]:i,v===!0,oe,se,H,pe,de,d,b,x);if(le=++ce,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=new Map(N.fetchers),t=Ge(e);return be(r,{matches:a,loaderData:{},errors:b&&Z(b[1])?{[b[0]]:b[1].error}:null,...Ut(b),...t?{fetchers:e}:{}},{flushSync:y}),{shortCircuited:!0}}if(w){let e={};if(!u){e.navigation=S;let t=Oe(b);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=ke(E)),W(e,{flushSync:y})}E.forEach(e=>{Y(e.key),e.controller&&B.set(e.key,e.controller)});let D=()=>E.forEach(e=>Y(e.key));R&&R.signal.addEventListener(`abort`,D);let{loaderResults:O,fetcherResults:ee}=await Ie(T,E,t,r,l,n,c);if(t.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener(`abort`,D),E.forEach(e=>B.delete(e.key));let k=Kt(O);if(k)return await K(t,k.result,!0,n,{replace:_}),{shortCircuited:!0};if(k=Kt(ee),k)return de.add(k.key),await K(t,k.result,!0,n,{replace:_}),{shortCircuited:!0};let te=new Map(N.fetchers),{loaderData:A,errors:j}=Vt(N,a,O,b,E,ee,te);if(v&&N.errors){let e=j??null;j={...N.errors,...j},it.set(j,e)}let M=Ge(te),P=Ke(le,te),ne=M||P||E.length>0;return{matches:a,loaderData:A,errors:j,...ne?{workingFetchers:te}:{}}}function Oe(e){if(e&&!Z(e[1]))return{[e[0]]:e[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function ke(e){let t=new Map(N.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=fn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Me(t,n,r,i){F&&await F,Y(t);let a=(i&&i.flushSync)===!0,o=Fe(M),s=st(N.location,N.matches,c,r,n,i?.relative),l=d.match(s),u=mt(l,s);if(u.active&&u.matches&&(l=u.matches),o&&o(cn(e.history,s,l)),!l){Re(t,n,X(404,{pathname:s}),{flushSync:a});return}let{path:f,submission:p,error:m}=ct(!0,s,i);if(m){Re(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new y,g=(i&&i.preventScrollReset)===!0;if(p&&Q(p.formMethod)){await Ne(t,n,f,l,h,u.active,a,g,p,i&&i.defaultShouldRevalidate);return}let _={routeId:n,path:f,isDiscovering:u.active};pe.set(t,_),await Pe(t,_,l,h,a,g,p)}async function Ne(t,n,r,a,c,u,p,m,h,g){s.unstable_customRouteDiscovery||Le(),pe.delete(t);let _=N.fetchers.get(t);J(t,pn(h,_),{flushSync:p});let v=new AbortController;s.unstable_customRouteDiscovery&&B.set(t,v);let y=Lt(e.history,r,v.signal,h);if(u){let e=await gt(a,new URL(y.url).pathname,y.signal,t);if(s.unstable_customRouteDiscovery&&y.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){B.delete(t),pe.delete(t),J(t,$(_?.data),{flushSync:p});return}if(e.type===`error`){Re(t,n,e.error,{flushSync:p});return}if(e.matches)a=e.matches;else{Re(t,n,X(404,{pathname:r}),{flushSync:p});return}}let b=sn(a,r);if(!b.route.action&&!b.route.lazy){Re(t,n,X(405,{method:h.formMethod,pathname:r,routeId:n}),{flushSync:p});return}s.unstable_customRouteDiscovery&&Le(),B.set(t,v);let x=ce,S=Ot(o,f,y,r,a,b,i,c),C=await q(y,r,S,c,t,`fetcher`),w=C[b.route.id];if(!w){for(let e of S)if(C[e.route.id]){w=C[e.route.id];break}}if(y.signal.aborted){B.get(t)===v&&B.delete(t);return}if(H.has(t)){if($t(w)||Z(w)){J(t,$(void 0));return}}else{if($t(w)){if(B.delete(t),le>x){J(t,$(void 0));return}return de.add(t),J(t,fn(h)),K(y,w,!1,`fetcher`,{fetcherSubmission:h,preventScrollReset:m})}if(Z(w)){Re(t,n,w.error);return}}let T=N.navigation.location||N.location,E=Lt(e.history,T,v.signal),D=N.navigation.state===`idle`?N.matches:d.match(N.navigation.location);l(D,`Didn't find any matches after fetcher action`);let O=++ce;ue.set(t,O);let{dsMatches:ee,revalidatingFetchers:k}=lt(E,c,o,f,e.history,N,D,h,T,i,!1,oe,se,H,pe,de,d,[b.route.id,w],g),te=fn(h,w.data),A=new Map(N.fetchers);A.set(t,te),k.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=A.get(t),r=fn(void 0,n?n.data:void 0);A.set(t,r),Y(t),e.controller&&B.set(t,e.controller)}),W({fetchers:A});let j=()=>k.forEach(e=>Y(e.key));v.signal.addEventListener(`abort`,j);let{loaderResults:M,fetcherResults:ne}=await Ie(ee,k,E,T,c,`fetcher`);if(v.signal.aborted){ue.get(t)===O&&ue.delete(t);return}v.signal.removeEventListener(`abort`,j),ue.delete(t),B.delete(t),k.forEach(e=>B.delete(e.key));let F=N.fetchers.has(t),I=e=>{if(!F)return e;let n=new Map(e.fetchers);return n.set(t,$(w.data)),{...e,fetchers:n}},L=Kt(M);if(L)return N=I(N),K(E,L.result,!1,`fetcher`,{preventScrollReset:m});if(L=Kt(ne),L)return de.add(L.key),N=I(N),K(E,L.result,!1,`fetcher`,{preventScrollReset:m});let z=new Map(N.fetchers);F&&z.set(t,$(w.data));let{loaderData:re,errors:ie}=Vt(N,D,M,void 0,k,ne,z);Ke(O,z),N.navigation.state===`loading`&&O>le?(l(P,`Expected pending action`),R&&R.abort(),be(N.navigation.location,{matches:D,loaderData:re,errors:ie,fetchers:z})):(W({errors:ie,loaderData:Ht(N.loaderData,re,D,ie),fetchers:z}),oe=!1)}async function Pe(t,n,r,a,c,l,u){let{routeId:d,path:p}=n,m=N.fetchers.get(t);J(t,fn(u,m?m.data:void 0),{flushSync:c});let h=new AbortController;s.unstable_customRouteDiscovery&&B.set(t,h);let g=Lt(e.history,p,h.signal);if(n.isDiscovering){let e=await gt(r,new URL(g.url).pathname,g.signal,t);if(s.unstable_customRouteDiscovery&&g.signal.aborted||e.type===`aborted`)return;if(e.type===`cancelled`){B.delete(t),pe.delete(t),J(t,$(m?.data),{flushSync:c});return}if(e.type===`error`){Re(t,d,e.error,{flushSync:c});return}if(e.matches)r=e.matches,n.isDiscovering=!1;else{Re(t,d,X(404,{pathname:p}),{flushSync:c});return}}let _=sn(r,p);B.set(t,h);let v=ce,y=await q(g,p,Ot(o,f,g,p,r,_,i,a),a,t,`fetcher`),b=y[_.route.id];if(!b){for(let e of r)if(y[e.route.id]){b=y[e.route.id];break}}if(B.get(t)===h&&B.delete(t),!g.signal.aborted){if(H.has(t))J(t,$(void 0));else{if($t(b)){if(le>v){J(t,$(void 0));return}de.add(t),await K(g,b,!1,`fetcher`,{preventScrollReset:l});return}Z(b)?Re(t,d,b.error):J(t,$(b.data))}}}async function K(r,i,a,o,{submission:s,fetcherSubmission:u,preventScrollReset:d,replace:f}={}){a||(I?.resolve(),I=null),i.response.headers.has(`X-Remix-Revalidate`)&&(oe=!0);let m=i.response.headers.get(`Location`);l(m,`Expected a Location header on the redirect Response`);let h=m,g=new URL(r.url);m=It(m,g,c,e.history),We(h,m,g,`allow-explicit`);let v=p(N.location,m,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(fe(m)){let n=_(t,m,!0);e=n.origin!==t.location.origin||V(n.pathname,c)==null}if(e){f?t.location.replace(m):t.location.assign(m);return}}R=null;let y=f===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:b,formAction:x,formEncType:S}=N.navigation;!s&&!u&&b&&x&&S&&(s=ln(N.navigation));let C=s||u;Xe.has(i.response.status)&&C&&Q(C.formMethod)?await G(y,v,{submission:{...C,formAction:m},preventScrollReset:d||L,enableViewTransition:a?z:void 0,dataStrategyInitiator:o}):await G(y,v,{overrideNavigation:un(v,[],y,s),fetcherSubmission:u,preventScrollReset:d||L,enableViewTransition:a?z:void 0,dataStrategyInitiator:o})}async function q(e,t,n,r,i,a,o=null){let s,l={};try{s=await kt(v,e,t,n,i,a,r,!1,o)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{l[t.route.id]={type:`error`,error:e}}),l}if(e.signal.aborted)return l;if(!Q(e.method))for(let e of n){if(s[e.route.id]?.type===`error`)break;s.hasOwnProperty(e.route.id)||N.loaderData.hasOwnProperty(e.route.id)||N.errors&&N.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(s[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(s))if(Qt(r)){let i=r.result;l[t]={type:`redirect`,response:Nt(i,e,t,n,c)}}else l[t]=await Mt(r);return l}async function Ie(e,t,n,r,i,a,o=null){let s=q(n,r,e,i,null,a,o),c=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await q(e.request,e.path,e.matches,i,e.key,a,o))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:X(404,{pathname:e.path})}})}));return{loaderResults:await s,fetcherResults:(await c).reduce((e,t)=>Object.assign(e,t),{})}}function Le(){oe=!0,pe.forEach((e,t)=>{s.unstable_customRouteDiscovery&&e.isDiscovering||(B.has(t)&&se.add(t),Y(t))})}function J(e,t,n={}){let r=new Map(N.fetchers);r.set(e,t),W({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function Re(e,t,n,r={}){let i=Wt(N.matches,t),a=new Map(N.fetchers);Ve(a,e),W({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function ze(e){return me.set(e,(me.get(e)||0)+1),H.has(e)&&H.delete(e),N.fetchers.get(e)||Qe}function Be(e,t){Y(e,t?.reason),pe.delete(e),se.delete(e),J(e,$(null))}function Ve(e,t){let n=N.fetchers.get(t);B.has(t)&&!(n&&n.state===`loading`&&ue.has(t))&&Y(t),pe.delete(t),ue.delete(t),de.delete(t),H.delete(t),se.delete(t),e.delete(t)}function He(e){let t=(me.get(e)||0)-1;t<=0?(me.delete(e),H.add(e)):me.set(e,t),W({fetchers:new Map(N.fetchers)})}function Y(e,t){let n=B.get(e);n&&(n.abort(t),B.delete(e))}function Ue(e,t){for(let n of e){let e=t.get(n);l(e,`Expected fetcher: ${n}`);let r=$(e.data);t.set(n,r)}}function Ge(e){let t=[],n=!1;for(let r of de){let i=e.get(r);l(i,`Expected fetcher: ${r}`),i.state===`loading`&&(de.delete(r),t.push(r),n=!0)}return Ue(t,e),n}function Ke(e,t){let n=[];for(let[r,i]of ue)if(i<e){let e=t.get(r);l(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Y(r),ue.delete(r),n.push(r))}return Ue(n,t),n.length>0}function qe(e,t){let n=N.blockers.get(e)||$e;return he.get(e)!==t&&he.set(e,t),n}function Je(e){N.blockers.delete(e),he.delete(e)}function Ye(e,t){let n=N.blockers.get(e)||$e;l(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(N.blockers);r.set(e,t),W({blockers:r})}function et({currentLocation:e,nextLocation:t,historyAction:n}){if(he.size===0)return;he.size>1&&u(!1,`A router only supports one blocker at a time`);let r=Array.from(he.entries()),[i,a]=r[r.length-1],o=N.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function tt(e){let t=X(404,{pathname:e}),n=g.activeRoutes,{matches:r,route:i}=Gt(n);return{notFoundMatches:r,route:i,error:t}}function at(e,t,n){if(C=e,T=t,w=n||null,!E&&N.navigation===Ze){E=!0;let e=pt(N.location,N.matches);e!=null&&W({restoreScrollPosition:e})}return()=>{C=null,T=null,w=null}}function ot(e,t){return w&&w(e,t.map(e=>te(e,N.loaderData)))||e.key}function ft(e,t){if(C&&T){let n=ot(e,t);C[n]=T()}}function pt(e,t){if(C){let n=ot(e,t),r=C[n];if(typeof r==`number`)return r}return null}function mt(t,n){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:d.match(n,!0)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:d.match(n,!0)}}return{active:!1,matches:null}}async function gt(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let a=t;for(;;){let t=f;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:a,fetcherKey:i,patch:(e,n)=>{r.aborted||ht(e,n,g,t,o,!1)}})}catch(e){if(s.unstable_customRouteDiscovery){if(r.aborted)return{type:`aborted`};if(e instanceof b)return{type:`cancelled`}}return{type:`error`,error:e,partialMatches:a}}if(r.aborted)return{type:`aborted`};let c=d.match(n),l=null;if(c&&(Object.keys(c[0].params).length===0||(l=d.match(n,!0),!(l&&a.length<l.length&&_t(a,l.slice(0,a.length))))))return{type:`success`,matches:c};if(l||=d.match(n,!0),!l||_t(a,l))return{type:`success`,matches:null};a=l}}function _t(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function vt(e){f={},g.setHmrRoutes(D(e,o,void 0,f))}function yt(e,t,n=!1){ht(e,t,g,f,o,n),g.hasHMRRoutes||W({})}return M={get basename(){return c},get future(){return s},get state(){return N},get routes(){return g.stableRoutes},match(e){return d.match(e)},get manifest(){return f},get window(){return t},initialize:ve,subscribe:ye,enableScrollRestoration:at,navigate:Se,fetch:Me,revalidate:Ce,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ze,resetFetcher:Be,deleteFetcher:He,dispose:U,getBlocker:qe,deleteBlocker:Je,patchRoutes:yt,_internalFetchControllers:B,_internalSetRoutes:vt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){W(e)}},e.instrumentations&&(M=je(M,e.instrumentations.map(e=>e.router).filter(Boolean))),M}function ot(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function st(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=_e(r||`.`,ge(o),V(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=on(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=de({basename:n,pathname:c.pathname})),m(c)}function ct(e,t,n){if(!n||!ot(n))return{path:t};if(n.formMethod&&!an(n.formMethod))return{path:t,error:X(405,{method:n.formMethod})};let r=()=>({path:t,error:X(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=qt(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Q(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!Q(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}l(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Rt(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Rt(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=zt(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=zt(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Q(c.formMethod))return{path:t,submission:c};let u=h(t);return e&&u.search&&on(u.search)&&o.append(`index`,``),u.search=`?${o}`,{path:m(u),submission:c}}function lt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let y=_?Z(_[1])?_[1].error:_[1].data:void 0,b=i.createURL(a.location),x=i.createURL(c),S;if(u&&a.errors){let e=Object.keys(a.errors)[0];S=o.findIndex(t=>t.route.id===e)}else if(_&&Z(_[1])){let e=_[0];S=o.findIndex(t=>t.route.id===e)-1}let C=_?_[1].statusCode:void 0,w=C&&C>=400,T={currentUrl:b,currentParams:a.matches[0]?.params||{},nextUrl:x,nextParams:o[0].params,...s,actionResult:y,actionStatus:C},E=G(o),D=o.map((i,o)=>{let{route:s}=i,f=null;if(S!=null&&o>S)f=!1;else if(s.lazy)f=!0;else if(!ut(s))f=!1;else if(u){let{shouldLoad:e}=dt(s,a.loaderData,a.errors);f=e}else ft(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Dt(n,r,e,c,E,i,l,t,f);let p=!1;typeof v==`boolean`?p=v:w?p=!1:d||b.pathname+b.search===x.pathname+x.search?p=!0:b.search===x.search?pt(a.matches[o],i)&&(p=!0):p=!0;let m={...T,defaultShouldRevalidate:p};return Dt(n,r,e,c,E,i,l,t,mt(i,m),m,v)}),O=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s)||e.isDiscovering)return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,_=g.match(e.path);if(!_){O.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let y=sn(_,e.path),b=new AbortController,x=Lt(i,e.path,b.signal),S=null;if(f.has(s))f.delete(s),S=Ot(n,r,x,e.path,_,y,l,t);else if(m)d&&(S=Ot(n,r,x,e.path,_,y,l,t));else{let i;i=typeof v==`boolean`?v:!w&&d;let a={...T,defaultShouldRevalidate:i};mt(y,a)&&(S=Ot(n,r,x,e.path,_,y,l,t,a))}S&&O.push({key:s,routeId:e.routeId,path:e.path,matches:S,match:y,request:x,controller:b})}),{dsMatches:D,revalidatingFetchers:O}}function ut(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function dt(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!ut(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function ft(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function pt(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function mt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function ht(e,t,n,r,i,a){let o;if(e){let t=r[e];l(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>gt(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=D(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=D([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function gt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>gt(e,t)))??!1}var _t=new WeakMap,vt=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(l(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=_t.get(i);o||(o={},_t.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=S(e),n=i[e]!==void 0;if(t)u(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)u(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},yt=new WeakMap;function bt(e,t,n,r,i){let a=n[e.id];if(l(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=yt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{l(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=w(e),o=a[e]!==void 0;i?u(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?u(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return yt.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=vt({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let d=s.length>0?Promise.all(s).then(()=>{}):void 0;return d?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:c}}async function xt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function St(e){return e.matches.some(e=>e.route.middleware)?Ct(e,()=>xt(e)):xt(e)}function Ct(e,t){return wt(e,t,e=>{if(rn(e))throw e;return e},Xt,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[Wt(r,a).route.id]:{type:`error`,result:t}}}}}async function wt(e,t,n,r,i){let{matches:a,...o}=e;return await Tt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Tt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Tt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Et(e,t,n,r,i){let a=vt({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=bt(r.route,Q(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Dt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Et(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?mt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?mt(a,{...l,defaultShouldRevalidate:e}):mt(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Q(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Q(n.method)||!p)?At({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Ot(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Dt(e,t,n,r,G(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Et(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function kt(e,t,n,r,i,a,o,s,c=null){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let l={request:t,url:Te(t,n),pattern:G(r),params:r[0].params,context:o,matches:r,unstable_initiator:a,unstable_navigationType:a===`navigation`?c:null},u=s?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=l;return Ct(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},d=await e({...l,fetcherKey:i,runClientMiddleware:u});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return d}async function At({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Q(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Te(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw X(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw X(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function jt(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Mt(e){let{result:t,type:n}=e;if(tn(t)){let e;try{e=await jt(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Ce(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?en(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Yt(t),statusCode:we(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:we(t)?t.status:void 0}:en(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Nt(e,t,n,r,i){let a=e.headers.get(`Location`);if(l(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!fe(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=st(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Pt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Ft(e){try{return Pt.includes(new URL(e).protocol)}catch{return!1}}function It(e,t,n,a){if(fe(e)){let a=e,o=r.test(a)?new URL(i(a,t.protocol)):new URL(a);if(Ft(o.toString()))throw Error(`Invalid redirect location`);let s=V(o.pathname,n)!=null;if(o.origin===t.origin&&s)return ve(o.pathname)+o.search+o.hash}try{if(Ft(a.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function Lt(e,t,n,r){let i=e.createURL(qt(t)).toString(),a={signal:n};if(r&&Q(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?Rt(r.formData):r.formData}return new Request(i,a)}function Rt(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function zt(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Bt(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,u={},d=n&&Z(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(l(!$t(p),`Cannot handle redirect results in processLoaderData`),Z(p)){let t=p.error;if(d!==void 0&&(t=d,d=void 0),o||={},i)o[f]=t;else{let n=Wt(e,f);o[n.route.id]??(o[n.route.id]=t)}r||(a[f]=tt),c||(c=!0,s=we(p.error)?p.error.status:500),p.headers&&(u[f]=p.headers)}else a[f]=p.data,p.statusCode&&p.statusCode!==200&&!c&&(s=p.statusCode),p.headers&&(u[f]=p.headers)}),d!==void 0&&n&&(o={[n[0]]:d},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function Vt(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=Bt(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(l(s,`Did not find corresponding fetcher result`),Z(s)){let t=Wt(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if($t(s))l(!1,`Unhandled fetcher revalidation redirect`);else{let e=$(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function Ht(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==tt).reduce((e,[t,n])=>(e[t]=n,e),{}),a=0;for(let o of n){let n=o.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&o.route.loader&&(i[n]=e[n],a++),r&&r.hasOwnProperty(n))break}return Object.keys(t).length===0&&a===Object.keys(e).length?e:i}function Ut(e){return e?Z(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Wt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function Gt(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function X(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Ce(e||500,o,Error(s),!0)}function Kt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if($t(r))return{key:n,result:r}}}function qt(e){return m({...typeof e==`string`?h(e):e,hash:``})}function Jt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Yt(e){return new Ce(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Xt(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Zt(t))}function Zt(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Qt(e){return tn(e.result)&&Ye.has(e.result.status)}function Z(e){return e.type===`error`}function $t(e){return(e&&e.type)===`redirect`}function en(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function tn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function nn(e){return Ye.has(e)}function rn(e){return tn(e)&&nn(e.status)&&e.headers.has(`Location`)}function an(e){return Je.has(e.toUpperCase())}function Q(e){return Ke.has(e.toUpperCase())}function on(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function sn(e,t){let n=typeof t==`string`?h(t).search:t.search;if(e[e.length-1].route.index&&on(n||``))return e[e.length-1];let r=he(e);return r[r.length-1]}function cn(e,t,n){return{url:Te(e.createURL(t),t),pattern:n?G(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function ln(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function un(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function dn(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function fn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function pn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function $(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function mn(e,t){try{let n=e.sessionStorage.getItem(et);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function hn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(et,JSON.stringify(n))}catch(e){u(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function gn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var _n=v.createContext(null);_n.displayName=`DataRouter`;var vn=v.createContext(null);vn.displayName=`DataRouterState`;var yn=v.createContext(null);yn.displayName=`DataRouterData`;var bn=v.createContext(null);bn.displayName=`DataRouterNavigation`;var xn=v.createContext(!1);function Sn(){return v.useContext(xn)}var Cn=v.createContext({isTransitioning:!1});Cn.displayName=`ViewTransition`;var wn=v.createContext(null);wn.displayName=`Fetchers`;var Tn=v.createContext(null);Tn.displayName=`Await`;var En=v.createContext(null);En.displayName=`Navigation`;var Dn=v.createContext(null);Dn.displayName=`Location`;var On=v.createContext({outlet:null,matches:[],isDataRoute:!1});On.displayName=`Route`;var kn=v.createContext(!1);kn.displayName=`IsDataRoute`;var An=v.createContext(void 0);An.displayName=`RouteId`;var jn=v.createContext(null);jn.displayName=`RouteError`;var Mn=`REACT_ROUTER_ERROR`,Nn=`REDIRECT`,Pn=`ROUTE_ERROR_RESPONSE`;function Fn(e){if(e.startsWith(`${Mn}:${Nn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function In(e){if(e.startsWith(`${Mn}:${Pn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Ce(t.status,t.statusText,t.data)}catch{}}function Ln(e,{relative:t}={}){l(Rn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=v.useContext(En),{hash:i,pathname:a,search:o}=Wn(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:U([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Rn(){return v.useContext(Dn)!=null}function zn(){return l(Rn(),`useLocation() may be used only in the context of a <Router> component.`),v.useContext(Dn).location}var Bn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Vn(){return v.useContext(kn)?cr():Hn()}function Hn(){l(Rn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=v.useContext(_n),{basename:t,navigator:n}=v.useContext(En),{matches:r}=v.useContext(On),{pathname:i}=zn(),a=JSON.stringify(ge(r)),o=v.useRef(!1);return v.useLayoutEffect(()=>{o.current=!0}),v.useCallback((r,s={})=>{if(u(o.current,Bn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=_e(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:U([t,c.pathname])),We(typeof r==`string`?r:m(r),n.createHref(c),He(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}v.createContext(null);function Un(){let{matches:e}=v.useContext(On);return e[e.length-1]?.params??{}}function Wn(e,{relative:t}={}){let{matches:n}=v.useContext(On),{pathname:r}=zn(),i=JSON.stringify(ge(n));return v.useMemo(()=>_e(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Gn(e,t){return Kn(e,t)}function Kn(e,t,n){l(Rn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=v.useContext(En),{matches:i}=v.useContext(On),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let c=zn(),u;if(t){let e=typeof t==`string`?h(t):t;l(s===`/`||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),u=e}else u=c;let d=u.pathname||`/`,f=d;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p;p=n?n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):n.router.match(n.state.location):ee(e,{pathname:f});let m=$n(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:U([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:U([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&m?v.createElement(Dn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...u},navigationType:`POP`}},m):m}function qn(){let e=ar(),t=we(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return v.createElement(v.Fragment,null,v.createElement(`h2`,null,`Unexpected Application Error!`),v.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?v.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Jn=v.createElement(qn,null),Yn=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=xn;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=In(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement(On.Provider,{value:this.props.routeContext},v.createElement(kn.Provider,{value:this.props.routeContext.isDataRoute},v.createElement(An.Provider,{value:this.props.routeContext.matches[this.props.routeContext.matches.length-1]?.route.id},v.createElement(jn.Provider,{value:e,children:this.props.component}))));return this.context?v.createElement(Zn,{error:e},t):t}},Xn=new WeakMap;function Zn({children:e,error:t}){let{basename:n,navigator:r}=v.useContext(En);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Fn(t.digest);if(e){let i=Xn.get(t);if(i)throw i;let a=De(e.location,n),o=a.absoluteURL||a.to;if(We(e.location,o,He(r),`allow-explicit`),Ft(o))throw Error(`Invalid redirect location`);if(Ee&&!Xn.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Xn.set(t,n),n}}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Qn({routeContext:e,match:t,children:n}){let r=v.useContext(_n);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(On.Provider,{value:e},v.createElement(kn.Provider,{value:e.isDataRoute},v.createElement(An.Provider,{value:t.route.id},n)))}function $n(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);l(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,u=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:G(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let l,d=!1,f=null,p=null;r&&(l=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Jn,o&&(s<0&&c===0?(ur(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=l?f:d?p:n.route.Component?v.createElement(n.route.Component,null):n.route.element?n.route.element:e,v.createElement(Qn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement(Yn,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):h()},null)}function er(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tr(e){let t=v.useContext(_n);return l(t,er(e)),t}function nr(e){let t=v.useContext(vn);return l(t,er(e)),t}function rr(e){let t=v.useContext(yn);return l(t,er(e)),t}function ir(e){let t=v.useContext(An);return l(t,`${e} can only be used on routes that contain a unique "id"`),t}function ar(){let e=v.useContext(jn),t=rr(`useRouteError`),n=ir(`useRouteError`);return e===void 0?t.errors?.[n]:e}var or=0;function sr(e){let{router:t,basename:n}=tr(`useBlocker`),r=nr(`useBlocker`),[i,a]=v.useState(``),o=v.useCallback(t=>{if(typeof e!=`function`)return!!e;if(n===`/`)return e(t);let{currentLocation:r,nextLocation:i,historyAction:a}=t;return e({currentLocation:{...r,pathname:V(r.pathname,n)||r.pathname},nextLocation:{...i,pathname:V(i.pathname,n)||i.pathname},historyAction:a})},[n,e]);return v.useEffect(()=>{let e=String(++or);return a(e),()=>t.deleteBlocker(e)},[t]),v.useEffect(()=>{i!==``&&t.getBlocker(i,o)},[t,i,o]),i&&r.blockers.has(i)?r.blockers.get(i):$e}function cr(){let{router:e}=tr(`useNavigate`),t=ir(`useNavigate`),n=v.useRef(!1);return v.useLayoutEffect(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{u(n.current,Bn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var lr={};function ur(e,t,n){!t&&!lr[e]&&(lr[e]=!0,u(!1,n))}function dr(e,t){if(e===!1||e==null)throw Error(t)}function fr(e,t,n){let r=typeof e==`string`?new URL(e,n??(typeof window>`u`?`server://singlefetch/`:window.location.origin)):new URL(e);return n&&r.origin!==n&&(r=new URL(r.pathname+r.search+r.hash,n)),r.pathname.endsWith(`/`)?r.pathname=`${r.pathname}_.${t}`:r.pathname=`${r.pathname}.${t}`,r}async function pr(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mr(e){return e!=null&&typeof e.page==`string`}function hr(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function gr(e,t,n){return xr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await pr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(hr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function _r(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function vr(e,t,{includeHydrateFallback:n}={}){return yr(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function yr(e){return[...new Set(e)]}function br(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function xr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!mr(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(br(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}var Sr={};function Cr(e,t){!e&&!Sr[t]&&(Sr[t]=!0,console.warn(t))}var wr=v.createContext(void 0);wr.displayName=`FrameworkContext`;function Tr(){let e=v.useContext(wr);return dr(e,`You must render this element inside a <HydratedRouter> element`),e}function Er(e,t){let n=v.useContext(wr),[r,i]=v.useState(!1),[a,o]=v.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=v.useRef(null);v.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),v.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Dr(s,p),onBlur:Dr(c,m),onMouseEnter:Dr(l,p),onMouseLeave:Dr(u,m),onTouchStart:Dr(d,p)}]:[a,f,{}]:[!1,f,{}]}function Dr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Or({page:e,...t}){let n=Sn(),{nonce:r}=Tr(),{router:i}=tr(`PrefetchPageLinks`),a=v.useMemo(()=>i.match(e),[i,i.routes,e]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?v.createElement(Ar,{page:e,matches:a,...t}):v.createElement(jr,{page:e,matches:a,...t})):null}function kr(e){let{manifest:t,routeModules:n}=Tr(),[r,i]=v.useState([]);return v.useEffect(()=>{let r=!1;return gr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Ar({page:e,matches:t,...n}){let r=zn(),{unstable_apiServerOrigin:i}=Tr(),a=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=fr(e,`rsc`,i),a=!1,o=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?a=!0:o.push(e.route.id);return a&&o.length>0&&n.searchParams.set(`_routes`,o.join(`,`)),[i?n.toString():n.pathname+n.search]},[e,r,t,i]);return v.createElement(v.Fragment,null,a.map(e=>v.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function jr({page:e,matches:t,...n}){let r=zn(),{manifest:i,routeModules:a,unstable_apiServerOrigin:o}=Tr(),{matches:s}=nr(`PrefetchPageLinks`),{loaderData:c}=rr(`PrefetchPageLinks`),l=v.useMemo(()=>_r(e,t,s,i,r,`data`),[e,t,s,i,r]),u=v.useMemo(()=>_r(e,t,s,i,r,`assets`),[e,t,s,i,r]),d=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!l.some(t=>t.route.id===e.route.id)&&e.route.id in c&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let u=fr(e,`data`,o);return s&&n.size>0&&u.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[o?u.toString():u.pathname+u.search]},[c,r,i,l,t,e,a,o]),f=v.useMemo(()=>vr(u,i),[u,i]),p=kr(u);return v.createElement(v.Fragment,null,d.map(e=>v.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),f.map(e=>v.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),p.map(({key:e,link:t})=>v.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Mr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var Nr=[`HydrateFallback`,`hydrateFallbackElement`],Pr=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Fr({router:e,flushSync:t,onError:n,useTransitions:r}){r=Sn()||r;let[i,a]=v.useState(e.state),[o,s]=(0,v.useOptimistic)(i),c=v.useRef(o),[l,u]=v.useState(),[d,f]=v.useState({isTransitioning:!1}),[p,m]=v.useState(),[h,g]=v.useState(),[_,y]=v.useState(),b=v.useRef(new Map),x=v.useRef(new WeakSet),S=v.useCallback((i,{deletedFetchers:o,newErrors:l,flushSync:d,viewTransitionOpts:_})=>{c.current=i,l&&i.errors&&it.has(i.errors)&&(x.current.has(i.errors)?l=null:x.current.add(i.errors)),l&&n&&Object.values(l).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:G(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&b.current.set(t,e.data)}),o.forEach(e=>b.current.delete(e)),Cr(d===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let S=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(Cr(_==null||S,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!S)t&&d?t(()=>a(i)):r===!1?a(i):v.startTransition(()=>{r===!0&&s(e=>Ir(e,i)),a(i)});else if(t&&d){t(()=>{h&&(p?.resolve(),h.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})})}),t(()=>g(n))}else h?(p?.resolve(),h.skipTransition(),y({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(u(i),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,p,r,s,n]);v.useLayoutEffect(()=>e.subscribe(S),[e,S]),v.useLayoutEffect(()=>{let t=e.state.errors,n=t?it.get(t):null;(c.current!==e.state||t&&n&&!x.current.has(t))&&S(e.state,{deletedFetchers:[],flushSync:!1,newErrors:n??null})},[e,S]),v.useEffect(()=>{d.isTransitioning&&!d.flushSync&&m(new Pr)},[d]),v.useEffect(()=>{if(p&&l&&e.window){let t=l,n=p.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):v.startTransition(()=>{r===!0&&s(e=>Ir(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),g(void 0),u(void 0),f({isTransitioning:!1})}),g(i)}},[l,p,e.window,r,s]),v.useEffect(()=>{p&&l&&o.location.key===l.location.key&&p.resolve()},[p,h,o.location,l]),v.useEffect(()=>{!d.isTransitioning&&_&&(u(_.state),f({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),y(void 0))},[d.isTransitioning,_]);let C=v.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),w=e.basename||`/`,T=v.useMemo(()=>({router:e,navigator:C,static:!1,basename:w,onError:n}),[e,C,w,n]),E=v.useMemo(()=>({historyAction:o.historyAction,location:o.location,matches:o.matches,initialized:o.initialized,renderFallback:o.renderFallback,restoreScrollPosition:o.restoreScrollPosition,preventScrollReset:o.preventScrollReset,blockers:o.blockers}),[o.historyAction,o.location,o.matches,o.initialized,o.renderFallback,o.restoreScrollPosition,o.preventScrollReset,o.blockers]),D=v.useMemo(()=>({navigation:o.navigation,revalidation:o.revalidation}),[o.navigation,o.revalidation]),O=v.useMemo(()=>({loaderData:o.loaderData,actionData:o.actionData,errors:o.errors}),[o.loaderData,o.actionData,o.errors]),ee=v.useMemo(()=>({fetchers:o.fetchers,fetcherData:b.current}),[o.fetchers]);return v.createElement(v.Fragment,null,v.createElement(_n.Provider,{value:T},v.createElement(vn.Provider,{value:E},v.createElement(bn.Provider,{value:D},v.createElement(yn.Provider,{value:O},v.createElement(wn.Provider,{value:ee},v.createElement(Cn.Provider,{value:d},v.createElement(Vr,{basename:w,location:o.location,navigationType:o.historyAction,navigator:C,useTransitions:r},v.createElement(Lr,{routes:e.routes,manifest:e.manifest,state:o,isStatic:!1,onError:n})))))))),null)}function Ir(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Lr=v.memo(Rr);function Rr({routes:e,manifest:t,state:n,isStatic:r,onError:i}){let a=v.useContext(_n);l(a,`You must render this element inside a <DataRouterContext.Provider> element`);let o=v.useContext(wr)?.routeDiscoveryRuntime;return v.useEffect(()=>{n.initialized&&o?.markReady()},[n.initialized,o]),Kn(e,void 0,{router:a.router,manifest:t,state:n,isStatic:r,onError:i})}function zr({to:e,replace:t,state:n,relative:r}){l(Rn(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=v.useContext(En);u(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=v.useContext(On),{pathname:s}=zn(),c=Vn(),d=_e(e,ge(o),s,r===`path`);We(typeof e==`string`?e:m(e),a.createHref(d),He(a),`reject`);let f=JSON.stringify(d);return v.useEffect(()=>{c(JSON.parse(f),{replace:t,state:n,relative:r})},[c,f,r,t,n]),null}function Br(e){l(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Vr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){l(!Rn(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=v.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=h(n));let{pathname:d=`/`,search:f=``,hash:p=``,state:m=null,key:g=`default`,mask:_}=n,y=v.useMemo(()=>{let e=V(d,s);return e==null?null:{location:{pathname:e,search:f,hash:p,state:m,key:g,mask:_},navigationType:r}},[s,d,f,p,m,g,r,_]);return u(y!=null,`<Router basename="${s}"> is not able to match the URL "${d}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:v.createElement(En.Provider,{value:c},v.createElement(Dn.Provider,{children:t,value:y}))}function Hr({children:e,location:t}){return Gn(Ur(e),t)}v.Component;function Ur(e,t=[]){let n=[];return v.Children.forEach(e,(e,r)=>{if(!v.isValidElement(e))return;let i=[...t,r];if(e.type===v.Fragment){n.push.apply(n,Ur(e.props.children,i));return}l(e.type===Br,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a=e.props;l(!a.index||!a.children,`An index route cannot have child routes.`);let o={id:a.id||i.join(`-`),caseSensitive:a.caseSensitive,element:a.element,Component:a.Component,index:a.index,path:a.path,middleware:a.middleware,loader:a.loader,action:a.action,hydrateFallbackElement:a.hydrateFallbackElement,HydrateFallback:a.HydrateFallback,errorElement:a.errorElement,ErrorBoundary:a.ErrorBoundary,shouldRevalidate:a.shouldRevalidate,handle:a.handle,lazy:a.lazy};a.children&&(o.children=Ur(a.children,i)),n.push(o)}),n}var Wr=`application/x-www-form-urlencoded`;function Gr(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Kr(e){return Gr(e)&&e.tagName.toLowerCase()===`button`}function qr(e){return Gr(e)&&e.tagName.toLowerCase()===`form`}function Jr(e){return Gr(e)&&e.tagName.toLowerCase()===`input`}function Yr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xr(e,t){return e.button===0&&(!t||t===`_self`)&&!Yr(e)}function Zr(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Qr(e,t){let n=Zr(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var $r=null;function ei(){if($r===null)try{new FormData(document.createElement(`form`),0),$r=!1}catch{$r=!0}return $r}var ti=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function ni(e){return e!=null&&!ti.has(e)?(u(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wr}"`),null):e}function ri(e,t){let n,r,i,a,o;if(qr(e)){let o=e.getAttribute(`action`);r=o?V(o,t):null,n=e.getAttribute(`method`)||`get`,i=ni(e.getAttribute(`enctype`))||Wr,a=new FormData(e)}else if(Kr(e)||Jr(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?V(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=ni(e.getAttribute(`formenctype`))||ni(o.getAttribute(`enctype`))||Wr,a=new FormData(o,e),!ei()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Gr(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=Wr,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}var ii=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{ii&&(window.__reactRouterVersion=`8`)}catch{}function ai(e,t){return at({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:s({window:t?.window}),hydrationData:t?.hydrationData||si(),routes:e,mapRouteProperties:E,hydrationRouteProperties:Nr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function oi(e,t){return at({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:c({window:t?.window}),hydrationData:t?.hydrationData||si(),routes:e,mapRouteProperties:E,hydrationRouteProperties:Nr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function si(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ci(e.errors)}),e}function ci(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Ce(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&Se.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var li=v.forwardRef(function({onClick:e,discover:t=`render`,prefetch:r=`none`,relative:i,reloadDocument:a,replace:o,mask:s,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h){let{basename:g,navigator:_,useTransitions:y}=v.useContext(En),b=typeof u==`string`&&n.test(u),x=De(u,g);u=x.to;let S=Ln(u,{relative:i}),C=zn(),w=null;if(s){let e=_e(s,[],C.mask?C.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:U([g,e.pathname])),w=_.createHref(e)}let[T,E,D]=Er(r,m),O=fi(u,{replace:o,mask:s,state:c,target:l,preventScrollReset:d,relative:i,viewTransition:f,defaultShouldRevalidate:p,useTransitions:y});function ee(t){e&&e(t),t.defaultPrevented||O(t)}let k=!(x.isExternal||a),te=v.createElement(`a`,{...m,...D,href:(k?w:void 0)||x.absoluteURL||S,onClick:k?ee:e,ref:Mr(h,E),target:l,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?v.createElement(v.Fragment,null,te,v.createElement(Or,{page:S})):te});li.displayName=`Link`;var ui=v.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Wn(a,{relative:c.relative}),d=zn(),f=v.useContext(bn),{navigator:p,basename:m}=v.useContext(En),h=f!=null&&vi(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,y=f?.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=V(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=_===g||!r&&_.startsWith(g)&&_.charAt(b)===`/`,S=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(b)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return v.createElement(li,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});ui.displayName=`NavLink`;var di=v.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:r,reloadDocument:i,replace:a,state:o,method:s=`get`,action:c,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p,...m},h)=>{let{useTransitions:g}=v.useContext(En),_=gi(),y=_i(c,{relative:u}),b=s.toLowerCase()===`get`?`get`:`post`,x=typeof c==`string`&&n.test(c);return v.createElement(`form`,{ref:h,method:b,action:y,onSubmit:i?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,i=n?.getAttribute(`formmethod`)||s,c=()=>_(n||e.currentTarget,{fetcherKey:t,method:i,navigate:r,replace:a,state:o,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:p});g&&r!==!1?v.startTransition(()=>c()):c()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});di.displayName=`Form`;function fi(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Vn(),d=zn(),f=Wn(e,{relative:o});return v.useCallback(p=>{if(Xr(p,t)){p.preventDefault();let t=n===void 0?m(d)===m(f):n,h=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?v.startTransition(()=>h()):h()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function pi(e){u(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(Zr(e)),n=v.useRef(!1),r=zn(),i=v.useMemo(()=>Qr(r.search,n.current?null:t.current),[r.search]),a=Vn();return[i,v.useCallback((e,t)=>{let r=Zr(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var mi=0,hi=()=>`__${String(++mi)}__`;function gi(){let{router:e}=tr(`useSubmit`),{basename:t}=v.useContext(En),n=ir(`useSubmit`),r=e.fetch,i=e.navigate;return v.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=ri(e,t);a.navigate===!1?await r(a.fetcherKey||hi(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,relative:a.relative,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function _i(e,{relative:t}={}){let{basename:n}=v.useContext(En),r=v.useContext(On);l(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Wn(e||`.`,{relative:t})},o=zn();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:U([n,a.pathname])),m(a)}function vi(e,{relative:t}={}){let n=v.useContext(Cn);l(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=tr(`useViewTransitionState`),i=Wn(e,{relative:t});if(!n.isTransitioning)return!1;let a=V(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=V(n.nextLocation.pathname,r)||n.nextLocation.pathname;return B(i.pathname,o)!=null||B(i.pathname,a)!=null}export{zr as a,Hr as c,Vn as d,Un as f,pi as i,sr as l,we as m,ai as n,Br as o,ar as p,oi as r,Fr as s,li as t,zn as u};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/OptimizedSyntaxHighlighter-DoJF0j0l.js","js/OptimizedSyntaxHighlighter-B8vbflQA.js","js/rolldown-runtime-XKyaHtl9.js","js/react-vendor-C1iE8mnY.js","js/syntax-highlight-CemL-n1v.js","js/markdown-core-CGWDtd6X.js","js/RichMessageContent-DJTLGpws.js","js/RichMessageContent-Bwpg3rfV.js","js/utils-BvvV-Cka.js","js/utils-vendor-CsC5rH1J.js","js/logger-rEW7uQ8m.js","js/appStore-B6pAGo3p.js","js/messageCodeStyles-DVYyK8wm.js","js/useTranslation-D9EScZXH.js","js/ui-vendor-BTcw5yZ6.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,r as n,t as r}from"./react-vendor-C1iE8mnY.js";import{t as i}from"./utils-BvvV-Cka.js";import{t as a}from"./useTranslation-D9EScZXH.js";import{o}from"./logger-rEW7uQ8m.js";import{t as s}from"./appStore-B6pAGo3p.js";import{n as c,qn as l,zt as u}from"./ui-vendor-BTcw5yZ6.js";import{t as d}from"./Button-DwZ26Lqc.js";import{t as f}from"./useDialogFocus-DpTun-ZV.js";import{a as p,c as m,i as h,n as g,o as _,r as v,t as y}from"./messageCodeStyles-DVYyK8wm.js";var b=e(t(),1),x=n(),S=r(),C=`w-full rounded-lg border border-line bg-surface-raised px-2.5 py-1.5 text-[13px] text-ink placeholder:text-ink-muted transition-[border-color,box-shadow] duration-150 focus:border-primary-500 focus:outline-hidden focus:ring-2 focus:ring-primary-500/30 dark:focus:border-primary-400 dark:focus:ring-primary-400/30`,w=`mb-1 block text-[11px] font-medium uppercase tracking-wide text-ink-muted rtl:normal-case rtl:tracking-normal`,T=({titleId:e,title:t,subtitle:n,onClose:r,children:a,footer:o,widthClassName:s=`max-w-lg`,testId:c})=>{let l=(0,b.useRef)(null),u=(0,b.useRef)(!1);return f(l,{onClose:r}),(0,x.createPortal)((0,S.jsx)(`div`,{className:`fixed inset-0 z-2147483647 flex items-center justify-center bg-gray-950/55 p-4 backdrop-blur-md`,onMouseDown:e=>{u.current=e.target===e.currentTarget},onClick:e=>{u.current&&e.target===e.currentTarget&&r(),u.current=!1},children:(0,S.jsx)(`div`,{ref:l,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-labelledby":e,"data-testid":c,className:i(`flex max-h-[90vh] w-full flex-col overflow-hidden rounded-3xl border border-black/[0.07] bg-white shadow-[0_24px_80px_rgba(0,0,0,0.24)] animate-scale-in dark:border-white/8 dark:bg-dark-25`,s),onClick:e=>e.stopPropagation(),children:(0,S.jsxs)(`div`,{"data-testid":`modal-scroll-region`,className:`min-h-0 overflow-y-auto p-6 scrollbar-thin`,children:[(0,S.jsx)(E,{titleId:e,title:t,subtitle:n,onClose:r}),a&&(0,S.jsx)(`div`,{className:`space-y-4`,children:a}),o&&(0,S.jsx)(`div`,{className:`mt-5 flex justify-end gap-3 border-t border-line pt-4`,children:o})]})})}),document.body)},E=({titleId:e,title:t,subtitle:n,onClose:r})=>{let{t:i}=a();return(0,S.jsxs)(`div`,{className:`mb-4 flex items-start justify-between gap-4`,children:[(0,S.jsxs)(`div`,{className:`min-w-0`,children:[(0,S.jsx)(`h3`,{id:e,className:`text-lg font-medium tracking-[-0.02em] text-ink`,children:t}),n&&(0,S.jsx)(`p`,{className:`mt-1 text-[12px] leading-5 text-ink-muted`,children:n})]}),(0,S.jsx)(`button`,{type:`button`,onClick:r,"aria-label":i(`common.close`),className:`shrink-0 rounded-xl p-2 transition-colors text-ink-muted hover:bg-interactive-hover hover:text-ink focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-500`,children:(0,S.jsx)(c,{size:20})})]})},D=({label:e,error:t,helper:n,className:r,id:a,...o})=>{let s=(0,b.useId)(),c=a||`input-${s}`,l=`${c}-feedback`,u=[o[`aria-describedby`],(t||n)&&l].filter(Boolean).join(` `)||void 0;return(0,S.jsxs)(`div`,{className:`space-y-1.5`,children:[e&&(0,S.jsx)(`label`,{htmlFor:c,className:`block text-sm font-medium tracking-[-0.005em] text-ink-muted`,children:e}),(0,S.jsx)(`input`,{id:c,className:i(`block w-full rounded-xl border border-line bg-surface-raised px-3.5 py-2.5 text-base text-ink shadow-none`,`placeholder:text-ink-muted transition-[background-color,border-color,box-shadow,color] duration-150 ease-out`,`focus:border-primary-500 focus:outline-hidden focus:ring-2 focus:ring-primary-500/30 focus-visible:outline-hidden dark:focus:border-primary-400 dark:focus:ring-primary-400/30`,`disabled:cursor-not-allowed disabled:bg-surface-subtle disabled:text-ink-subtle disabled:opacity-70`,t&&`border-error-500 focus:border-error-500 focus:ring-error-500/20`,r),...o,"aria-invalid":t?!0:o[`aria-invalid`],"aria-describedby":u}),t&&(0,S.jsx)(`p`,{id:l,role:`alert`,className:`text-xs leading-relaxed text-error-600 dark:text-error-400`,children:t}),n&&!t&&(0,S.jsx)(`p`,{id:l,className:`text-xs leading-relaxed text-ink-muted`,children:n})]})},O=b.forwardRef(({label:e,error:t,helper:n,className:r,id:a,...o},s)=>{let c=(0,b.useId)(),l=a||`textarea-${c}`,u=`${l}-feedback`,d=[o[`aria-describedby`],(t||n)&&u].filter(Boolean).join(` `)||void 0;return(0,S.jsxs)(`div`,{className:`space-y-1.5`,children:[e&&(0,S.jsx)(`label`,{htmlFor:l,className:`block text-sm font-medium tracking-[-0.005em] text-ink-muted`,children:e}),(0,S.jsx)(`textarea`,{ref:s,id:l,className:i(`block w-full resize-none rounded-xl border border-line bg-surface-raised px-3.5 py-2.5 text-base text-ink shadow-none`,`placeholder:text-ink-muted transition-[background-color,border-color,box-shadow,color] duration-150 ease-out`,`focus:border-primary-500 focus:outline-hidden focus:ring-2 focus:ring-primary-500/30 focus-visible:outline-hidden dark:focus:border-primary-400 dark:focus:ring-primary-400/30`,`disabled:cursor-not-allowed disabled:bg-surface-subtle disabled:text-ink-subtle disabled:opacity-70`,t&&`border-error-500 focus:border-error-500 focus:ring-error-500/20`,r),...o,"aria-invalid":t?!0:o[`aria-invalid`],"aria-describedby":d}),t&&(0,S.jsx)(`p`,{id:u,role:`alert`,className:`text-xs leading-relaxed text-error-600 dark:text-error-400`,children:t}),n&&!t&&(0,S.jsx)(`p`,{id:u,className:`text-xs leading-relaxed text-ink-muted`,children:n})]})});O.displayName=`Textarea`;var k=({label:e,error:t,helper:n,options:r,className:a,id:o,...s})=>{let c=(0,b.useId)(),l=o||`select-${c}`,u=`${l}-feedback`,d=[s[`aria-describedby`],(t||n)&&u].filter(Boolean).join(` `)||void 0;return(0,S.jsxs)(`div`,{className:`space-y-1.5`,children:[e&&(0,S.jsx)(`label`,{htmlFor:l,className:`block text-sm font-medium tracking-[-0.005em] text-ink-muted`,children:e}),(0,S.jsx)(`select`,{id:l,className:i(`block w-full rounded-xl border border-line bg-surface-raised px-3.5 py-2.5 text-base text-ink shadow-none`,`transition-[background-color,border-color,box-shadow,color] duration-150 ease-out`,`focus:border-primary-500 focus:outline-hidden focus:ring-2 focus:ring-primary-500/30 focus-visible:outline-hidden dark:focus:border-primary-400 dark:focus:ring-primary-400/30`,`disabled:cursor-not-allowed disabled:bg-surface-subtle disabled:text-ink-subtle disabled:opacity-70`,t&&`border-error-500 focus:border-error-500 focus:ring-error-500/20`,a),...s,"aria-invalid":t?!0:s[`aria-invalid`],"aria-describedby":d,children:r.map((e,t)=>(0,S.jsx)(`option`,{value:e.value,children:e.label},e.key??`${e.value}-${t}`))}),t&&(0,S.jsx)(`p`,{id:u,role:`alert`,className:`text-xs leading-relaxed text-error-600 dark:text-error-400`,children:t}),n&&!t&&(0,S.jsx)(`p`,{id:u,className:`text-xs leading-relaxed text-ink-muted`,children:n})]})},A=({className:e,...t})=>(0,S.jsx)(u,{...t,"aria-hidden":`true`,className:i(`h-3.5 w-3.5 shrink-0 animate-spin text-ink-subtle motion-reduce:animate-none`,e)}),j=b.lazy(()=>o(()=>import(`./OptimizedSyntaxHighlighter-DoJF0j0l.js`),__vite__mapDeps([0,1,2,3,4,5]))),M=8e4;function N({content:e}){return e?(0,S.jsx)(`div`,{dir:`auto`,className:`whitespace-pre-wrap wrap-break-word leading-relaxed`,children:e}):null}function P({content:e,language:t,complete:n}){let r=n?e.replace(/\r?\n$/,``):e,i=s(e=>e.theme.mode!==`light`),a=b.useRef(null),o=b.useRef(!0),c=b.useDeferredValue(r),l=r.length<=M,u=b.useCallback(e=>{a.current=e,e&&o.current&&(e.scrollTop=e.scrollHeight)},[]);b.useLayoutEffect(()=>{let e=a.current;e&&o.current&&(e.scrollTop=e.scrollHeight)},[r,c]);let d=b.useCallback(()=>{let e=a.current;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight;o.current=t<24},[]),f=b.useMemo(()=>({children:e,...t})=>(0,S.jsx)(`pre`,{...t,ref:u,onScroll:e=>{d(),t.onScroll?.(e)},children:e}),[u,d]),m=(0,S.jsx)(`pre`,{ref:u,onScroll:d,className:v,children:(0,S.jsx)(`code`,{children:r})});return(0,S.jsx)(p,{code:r,language:t,state:n?`complete`:`streaming`,children:l?(0,S.jsx)(b.Suspense,{fallback:m,children:(0,S.jsx)(j,{language:t||`text`,isDark:i,codeTheme:`night`,backgroundColor:i?y:g,borderRadius:0,customStyle:h,className:`m-0! rounded-none! border-none!`,showLineNumbers:!0,preTag:f,children:c})}):m})}var F=b.memo(({content:e,className:t,segments:n,isStreaming:r=!0})=>{let a=b.useMemo(()=>n??_(e),[e,n]),o=a[a.length-1],s=o?.type===`code`&&!o.complete;return(0,S.jsxs)(`div`,{className:i(`text-sm leading-relaxed text-ink`,t),children:[a.map((e,t)=>e.type===`code`?(0,S.jsx)(P,{...e},`${e.type}-${t}`):(0,S.jsx)(N,{content:e.content},`${e.type}-${t}`)),r&&!s&&(0,S.jsx)(A,{"data-testid":`message-streaming-cursor`,className:`ms-1 inline-block align-text-bottom`})]})});F.displayName=`StreamingMessageContent`;var I=b.lazy(()=>o(()=>import(`./RichMessageContent-DJTLGpws.js`),__vite__mapDeps([6,7,2,3,8,9,10,11,12,13,14,5])));function L({content:e,className:t}){return(0,S.jsx)(`div`,{dir:`auto`,className:i(`text-sm leading-relaxed text-ink whitespace-pre-wrap wrap-break-word`,t),children:e})}var R=b.memo(({content:e,className:t,isStreaming:n=!1})=>{let r=b.useMemo(()=>n?_(e):[],[e,n]),i=r.some(e=>e.type===`code`);if(n&&i)return(0,S.jsx)(F,{content:e,className:t,segments:r});let a;return a=m(e)?(0,S.jsx)(b.Suspense,{fallback:(0,S.jsx)(F,{content:e,className:t,isStreaming:!1}),children:(0,S.jsx)(I,{content:e,className:t})}):(0,S.jsx)(L,{content:e,className:t}),(0,S.jsxs)(S.Fragment,{children:[a,n&&(0,S.jsx)(`span`,{"data-testid":`message-streaming-cursor`,"aria-hidden":`true`,className:`ms-1 inline-block h-5 w-1 animate-pulse rounded-full bg-primary-500 align-text-bottom`})]})});R.displayName=`MessageContent`;var z=({children:e,htmlFor:t,className:n=``,required:r=!1})=>(0,S.jsxs)(`label`,{htmlFor:t,className:i(`text-sm font-medium tracking-[-0.005em] text-ink-muted`,n),children:[e,r&&(0,S.jsx)(`span`,{"aria-hidden":`true`,className:`ms-0.5 text-error-700 dark:text-error-400`,children:`*`})]}),B=({checked:e,onChange:t,disabled:n=!1,className:r=``,id:a,"aria-label":o,"aria-labelledby":s,"aria-describedby":c,"data-testid":l})=>(0,S.jsx)(`button`,{type:`button`,role:`switch`,id:a,"aria-checked":e,"aria-label":o,"aria-labelledby":s,"aria-describedby":c,"aria-disabled":n||void 0,"data-testid":l,disabled:n,onClick:()=>t(!e),className:i(`relative inline-flex h-6 w-11 shrink-0 items-center justify-center rounded-full bg-transparent`,`focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 focus-visible:ring-offset-canvas dark:focus-visible:ring-primary-400`,n?`cursor-not-allowed opacity-50`:`cursor-pointer`,r),children:(0,S.jsx)(`span`,{"aria-hidden":`true`,className:i(`relative inline-flex h-6 w-11 items-center rounded-full border shadow-inner`,`transition-[background-color,border-color] duration-150 ease-out motion-reduce:transition-none`,e?`border-primary-600/70 bg-primary-600`:`border-line-strong bg-surface-subtle`),children:(0,S.jsx)(`span`,{className:i(`inline-block h-4 w-4 rounded-full bg-white shadow-subtle ring-1 ring-black/5`,`transform transition-transform duration-150 ease-out motion-reduce:transition-none`,e?`translate-x-6 rtl:-translate-x-6`:`translate-x-1 rtl:-translate-x-1`)})})}),V={narrow:`max-w-4xl`,default:`max-w-6xl`,wide:`max-w-7xl`},H=({children:e,width:t=`default`,className:n,contentClassName:r,...a})=>(0,S.jsx)(`div`,{"data-testid":`page-scroll-region`,className:i(`scroll-region h-full min-h-0 scrollbar-thin`,n),...a,children:(0,S.jsx)(`div`,{className:i(`mx-auto w-full px-4 pb-16 pt-7 sm:px-6 sm:pb-20 sm:pt-10 lg:px-8`,V[t],r),children:e})}),U=({title:e,description:t,eyebrow:n,actions:r,meta:a,className:o,...s})=>(0,S.jsxs)(`header`,{className:i(`mb-8 flex flex-col gap-6 border-b border-line pb-7 text-start sm:mb-10 sm:pb-9 md:flex-row md:items-end md:justify-between`,o),...s,children:[(0,S.jsxs)(`div`,{className:`min-w-0 max-w-3xl`,children:[n&&(0,S.jsx)(`div`,{className:`mb-3 text-[11px] font-medium uppercase tracking-[0.18em] text-ink-muted rtl:tracking-normal`,children:n}),(0,S.jsx)(`h1`,{className:`text-balance text-3xl font-normal leading-[1.02] tracking-[-0.04em] text-ink sm:text-5xl sm:leading-none rtl:leading-[1.15] rtl:tracking-normal`,children:e}),t&&(0,S.jsx)(`p`,{className:`mt-4 max-w-2xl text-sm leading-6 text-ink-muted sm:text-base sm:leading-7`,children:t}),a&&(0,S.jsx)(`div`,{className:`mt-4`,children:a})]}),r&&(0,S.jsx)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-2 md:justify-end`,children:r})]}),W=({icon:e,label:t,destructive:n,disabled:r,testId:a,onClick:o})=>(0,S.jsx)(`button`,{type:`button`,onClick:o,disabled:r,title:t,"aria-label":t,"data-testid":a,className:i(`inline-flex h-8 w-8 items-center justify-center rounded-lg text-ink-muted transition-colors duration-150 disabled:cursor-not-allowed disabled:opacity-50`,n?`hover:bg-error-500/10 hover:text-error-600 dark:hover:text-error-400`:`hover:bg-interactive-hover hover:text-ink`),children:(0,S.jsx)(e,{className:`h-4 w-4`})}),G=({title:e,icon:t,description:n,actions:r,children:a,className:o,...s})=>(0,S.jsxs)(`div`,{className:i(`flex flex-wrap items-center justify-between gap-x-3 gap-y-2 border-b border-line px-4 py-3 text-start`,o),...s,children:[(0,S.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2`,children:[(0,S.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[t&&(0,S.jsx)(t,{className:`h-4 w-4 shrink-0 text-ink-muted`,"aria-hidden":`true`}),(0,S.jsxs)(`div`,{className:`min-w-0`,children:[(0,S.jsx)(`h1`,{className:`text-base font-semibold tracking-[-0.01em] text-ink rtl:tracking-normal`,children:e}),n&&(0,S.jsx)(`p`,{className:`mt-0.5 text-xs text-ink-muted`,children:n})]})]}),a]}),r&&(0,S.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:r})]}),K={sm:{root:`gap-1.5 px-3 py-6`,tile:`h-9 w-9`,icon:`h-4 w-4`,title:`text-sm`,text:`text-xs`},md:{root:`gap-2 px-4 py-16`,tile:`h-12 w-12`,icon:`h-5 w-5`,title:`text-base`,text:`text-sm`}},q=({icon:e,title:t,description:n,action:r,titleAs:a=`p`,size:o=`md`,testId:s,className:c})=>{let l=K[o];return(0,S.jsxs)(`div`,{"data-testid":s,className:i(`flex flex-col items-center text-center`,l.root,c),children:[(0,S.jsx)(`div`,{className:i(`mb-1 flex items-center justify-center rounded-xl bg-surface-subtle text-ink-muted`,l.tile),children:(0,S.jsx)(e,{className:l.icon,"aria-hidden":`true`})}),(0,S.jsx)(a,{className:i(`font-medium text-ink`,l.title),children:t}),n&&(0,S.jsx)(`p`,{className:i(`max-w-sm text-ink-muted`,l.text),children:n}),r&&(0,S.jsx)(`div`,{className:`mt-2`,children:r})]})},J={sm:{root:`gap-2 py-6`,spinner:`h-4 w-4`,text:`text-xs`},md:{root:`gap-3 py-16`,spinner:`h-6 w-6`,text:`text-sm`}},Y=({label:e,srOnly:t=!1,size:n=`md`,testId:r,className:o})=>{let{t:s}=a(),c=J[n];return(0,S.jsxs)(`div`,{role:`status`,"data-testid":r,className:i(`flex flex-col items-center justify-center text-center`,c.root,o),children:[(0,S.jsx)(`span`,{"aria-hidden":`true`,className:i(`animate-spin rounded-full border-2 border-line border-t-primary-500`,c.spinner)}),(0,S.jsx)(`span`,{className:t?`sr-only`:i(`text-ink-muted`,c.text),children:e??s(`common.loading`)})]})},X={sm:{root:`gap-2 px-3 py-6`,icon:`h-4 w-4`,text:`text-xs`},md:{root:`gap-3 px-4 py-16`,icon:`h-5 w-5`,text:`text-sm`}},Z=({message:e,icon:t=l,onRetry:n,size:r=`md`,testId:o,className:s})=>{let{t:c}=a(),u=X[r];return(0,S.jsxs)(`div`,{role:`alert`,"data-testid":o,className:i(`flex flex-col items-center justify-center text-center`,u.root,s),children:[(0,S.jsx)(t,{className:i(`text-error-600 dark:text-error-400`,u.icon),"aria-hidden":`true`}),(0,S.jsx)(`p`,{className:i(`max-w-sm text-ink`,u.text),children:e}),n&&(0,S.jsx)(d,{type:`button`,variant:`secondary`,size:`sm`,onClick:n,children:c(`common.retry`)})]})};export{C as _,W as a,B as c,F as d,A as f,T as g,D as h,G as i,z as l,O as m,Y as n,U as o,k as p,q as r,H as s,Z as t,R as u,w as v};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t}from"./react-vendor-C1iE8mnY.js";import{_ as n,g as r,h as i,m as a}from"./appStore-B6pAGo3p.js";var o=e(t(),1),s=e=>typeof e==`function`,c=(e,t)=>s(e)?e(t):e,l=(()=>{let e=0;return()=>(++e).toString()})(),u=(()=>{let e;return()=>{if(e===void 0&&typeof window<`u`){let t=matchMedia(`(prefers-reduced-motion: reduce)`);e=!t||t.matches}return e}})(),d=20,f=`default`,p=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return p(e,{type:+!!e.toasts.find(e=>e.id===r.id),toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||i===void 0?{...e,dismissed:!0,visible:!1}:e)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+a}))}}},m=[],h={toasts:[],pausedAt:void 0,settings:{toastLimit:d}},g={},_=(e,t=f)=>{g[t]=p(g[t]||h,e),m.forEach(([e,n])=>{e===t&&n(g[t])})},v=e=>Object.keys(g).forEach(t=>_(e,t)),y=e=>Object.keys(g).find(t=>g[t].toasts.some(t=>t.id===e)),b=(e=f)=>t=>{_(t,e)},x={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},S=(e={},t=f)=>{let[n,r]=(0,o.useState)(g[t]||h),i=(0,o.useRef)(g[t]);(0,o.useEffect)(()=>(i.current!==g[t]&&r(g[t]),m.push([t,r]),()=>{let e=m.findIndex(([e])=>e===t);e>-1&&m.splice(e,1)}),[t]);let a=n.toasts.map(t=>({...e,...e[t.type],...t,removeDelay:t.removeDelay||e[t.type]?.removeDelay||e?.removeDelay,duration:t.duration||e[t.type]?.duration||e?.duration||x[t.type],style:{...e.style,...e[t.type]?.style,...t.style}}));return{...n,toasts:a}},C=(e,t=`blank`,n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:`status`,"aria-live":`polite`},message:e,pauseDuration:0,...n,id:n?.id||l()}),w=e=>(t,n)=>{let r=C(t,e,n);return b(r.toasterId||y(r.id))({type:2,toast:r}),r.id},T=(e,t)=>w(`blank`)(e,t);T.error=w(`error`),T.success=w(`success`),T.loading=w(`loading`),T.custom=w(`custom`),T.dismiss=(e,t)=>{let n={type:3,toastId:e};t?b(t)(n):v(n)},T.dismissAll=e=>T.dismiss(void 0,e),T.remove=(e,t)=>{let n={type:4,toastId:e};t?b(t)(n):v(n)},T.removeAll=e=>T.remove(void 0,e),T.promise=(e,t,n)=>{let r=T.loading(t.loading,{...n,...n?.loading});return typeof e==`function`&&(e=e()),e.then(e=>{let i=t.success?c(t.success,e):void 0;return i?T.success(i,{id:r,...n,...n?.success}):T.dismiss(r),e}).catch(e=>{let i=t.error?c(t.error,e):void 0;i?T.error(i,{id:r,...n,...n?.error}):T.dismiss(r)}),e};var ee=1e3,te=(e,t=`default`)=>{let{toasts:n,pausedAt:r}=S(e,t),i=(0,o.useRef)(new Map).current,a=(0,o.useCallback)((e,t=ee)=>{if(i.has(e))return;let n=setTimeout(()=>{i.delete(e),s({type:4,toastId:e})},t);i.set(e,n)},[]);(0,o.useEffect)(()=>{if(r)return;let e=Date.now(),i=n.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(r<0)n.visible&&T.dismiss(n.id);else return setTimeout(()=>T.dismiss(n.id,t),r)});return()=>{i.forEach(e=>e&&clearTimeout(e))}},[n,r,t]);let s=(0,o.useCallback)(b(t),[t]),c=(0,o.useCallback)(()=>{s({type:5,time:Date.now()})},[s]),l=(0,o.useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),u=(0,o.useCallback)(()=>{r&&s({type:6,time:Date.now()})},[r,s]),d=(0,o.useCallback)((e,t)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:a}=t||{},o=n.filter(t=>(t.position||a)===(e.position||a)&&t.height),s=o.findIndex(t=>t.id===e.id),c=o.filter((e,t)=>t<s&&e.visible).length;return o.filter(e=>e.visible).slice(...r?[c+1]:[0,c]).reduce((e,t)=>e+(t.height||0)+i,0)},[n]);return(0,o.useEffect)(()=>{n.forEach(e=>{if(e.dismissed)a(e.id,e.removeDelay);else{let t=i.get(e.id);t&&(clearTimeout(t),i.delete(e.id))}})},[n,a]),{toasts:n,handlers:{updateHeight:l,startPause:c,endPause:u,calculateOffset:d}}},ne=a` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,re=a` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,ie=a` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,ae=n(`div`)` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||`#ff4b4b`}; position: relative; transform: rotate(45deg); animation: ${ne} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${re} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||`#fff`}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${ie} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,oe=a` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,se=n(`div`)` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||`#e0e0e0`}; border-right-color: ${e=>e.primary||`#616161`}; animation: ${oe} 1s linear infinite; `,ce=a` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,le=a` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,ue=n(`div`)` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||`#61d345`}; position: relative; transform: rotate(45deg); animation: ${ce} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${le} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||`#fff`}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,de=n(`div`)` position: absolute; `,fe=n(`div`)` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,pe=a` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,me=n(`div`)` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${pe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,he=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t===void 0?n===`blank`?null:o.createElement(fe,null,o.createElement(se,{...r}),n!==`loading`&&o.createElement(de,null,n===`error`?o.createElement(ae,{...r}):o.createElement(ue,{...r}))):typeof t==`string`?o.createElement(me,null,t):t},ge=e=>` 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,_e=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} `,ve=`0%{opacity:0;} 100%{opacity:1;}`,ye=`0%{opacity:1;} 100%{opacity:0;}`,be=n(`div`)` :where(&) { display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; } `,xe=n(`div`)` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,Se=(e,t)=>{let n=e.includes(`top`)?1:-1,[r,i]=u()?[ve,ye]:[ge(n),_e(n)];return{animation:t?`${a(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${a(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},E=o.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?Se(e.position||t||`top-center`,e.visible):{opacity:0},a=o.createElement(he,{toast:e}),s=o.createElement(xe,{...e.ariaProps},c(e.message,e));return o.createElement(be,{className:e.className,style:{...i,...n,...e.style}},typeof r==`function`?r({icon:a,message:s}):o.createElement(o.Fragment,null,a,s))});i(o.createElement);var Ce=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=o.useCallback(t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;r(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return o.createElement(`div`,{ref:a,className:t,style:n},i)},we=(e,t)=>{let n=e.includes(`top`),r=n?{top:0}:{bottom:0},i=e.includes(`center`)?{justifyContent:`center`}:e.includes(`right`)?{justifyContent:`flex-end`}:{};return{left:0,right:0,display:`flex`,position:`absolute`,transition:u()?void 0:`all 230ms cubic-bezier(.21,1.02,.73,1)`,transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},Te=r` z-index: 9999; > * { pointer-events: auto; } `,D=16,Ee=({reverseOrder:e,position:t=`top-center`,toastOptions:n,gutter:r,children:i,toasterId:a,containerStyle:s,containerClassName:l})=>{let{toasts:u,handlers:d}=te(n,a);return o.createElement(`div`,{"data-rht-toaster":a||``,style:{position:`fixed`,zIndex:9999,top:D,left:D,right:D,bottom:D,pointerEvents:`none`,...s},className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},u.map(n=>{let a=n.position||t,s=we(a,d.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return o.createElement(Ce,{id:n.id,key:n.id,onHeightUpdate:d.updateHeight,className:n.visible?Te:``,style:s},n.type===`custom`?c(n.message,n):i?i(n):o.createElement(E,{toast:n,position:a}))}))},De=T,Oe=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function ke(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Oe(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Ae=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},je=e=>{let t=Ae(e);return t.charAt(0).toUpperCase()+t.slice(1)},O=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),k={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function A(e){return e!=null}function Me(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??k.width,a=e.size??e.height??k.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?O(...c):O(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??k[`stroke-width`])*Number(e.size??e.width??k.width)/Number(t.size??t.width??k.width):t.strokeWidth??k[`stroke-width`];return[`svg`,{...Object.entries(k).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&A(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&A(t.width)&&{[r(`width`)]:t.width},...`height`in t&&A(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Ne(e,t={}){return Me(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Pe=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Fe=(0,o.createContext)({}),Ie=()=>(0,o.useContext)(Fe),Le=(0,o.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:s,className:c=``,children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=Ie()??{},b=!!l||Pe(f),[x,S,C=[]]=Ne(d,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:s??_,className:O(y,c),hasA11yProp:b,attributes:f});return(0,o.createElement)(x,{ref:p,...S},[...C.map(([e,t])=>(0,o.createElement)(e,t)),...Array.isArray(l)?l:[l]])});function j(e,t=[],n=[]){let r=typeof e==`string`?ke(e,t,n):e,i=(0,o.forwardRef)(({className:e,...t},n)=>(0,o.createElement)(Le,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=je(r.name)),i}var M={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};M.node;var Re=j(M),N={name:`archive-restore`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h2`,key:`tvwodi`}],[`path`,{d:`M20 8v11a2 2 0 0 1-2 2h-2`,key:`1gkqxj`}],[`path`,{d:`m9 15 3-3 3 3`,key:`1pd0qc`}],[`path`,{d:`M12 12v9`,key:`192myk`}]]};N.node;var ze=j(N),P={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};P.node;var Be=j(P),F={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};F.node;var Ve=j(F),I={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};I.node;var He=j(I),L={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};L.node;var Ue=j(L),R={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};R.node;var We=j(R),z={name:`audio-lines`,size:24,node:[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]};z.node;var Ge=j(z),B={name:`bell-ring`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`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`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]};B.node;var Ke=j(B),V={name:`bell`,size:24,node:[[`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`}]]};V.node;var qe=j(V),H={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};H.node;var Je=j(H),U={name:`book-text`,size:24,node:[[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,key:`k3hazp`}],[`path`,{d:`M8 11h8`,key:`vwpz6n`}],[`path`,{d:`M8 7h6`,key:`1f0q6e`}]]};U.node;var Ye=j(U),W={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};W.node;var Xe=j(W),G={name:`box`,size:24,node:[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]};G.node;var Ze=j(G),K={name:`boxes`,size:24,node:[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]};K.node;var Qe=j(K),q={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};q.node;var $e=j(q),J={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4`,key:`5nuw1p`}],[`path`,{d:`M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294`,key:`18ldcf`}],[`path`,{d:`M17.996 5.125a4 4 0 012.526 5.77`,key:`1sdu8q`}],[`path`,{d:`M18 18a4 4 0 002-7.465`,key:`7xqqvr`}],[`path`,{d:`M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517`,key:`t46ysz`}],[`path`,{d:`M6 18a4 4 0 01-2-7.465`,key:`1y2m15`}],[`path`,{d:`M6.004 5.125a4 4 0 00-2.526 5.77`,key:`3cw1ss`}]]};J.node;var et=j(J),Y={name:`briefcase`,size:24,node:[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]};Y.node;var tt=j(Y),X={name:`calendar-clock`,size:24,node:[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]};X.node;var nt=j(X),Z={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};Z.node;var rt=j(Z),Q={name:`camera`,size:24,node:[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]};Q.node;var it=j(Q),at={name:`chart-no-axes-combined`,size:24,node:[[`path`,{d:`M12 16v5`,key:`zza2cw`}],[`path`,{d:`M16 14.639V21`,key:`1s85h0`}],[`path`,{d:`M20 10.656V21`,key:`q45596`}],[`path`,{d:`m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15`,key:`1fw8x9`}],[`path`,{d:`M4 18.463V21`,key:`1otddq`}],[`path`,{d:`M8 14.656V21`,key:`1t2idw`}]]};at.node;var ot=j(at),st={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};st.node;var ct=j(st),lt={name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]};lt.node;var ut=j(lt),dt={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};dt.node;var ft=j(dt),pt={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};pt.node;var mt=j(pt),ht={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};ht.node;var gt=j(ht),_t={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};_t.node;var vt=j(_t),yt={name:`chevrons-down-up`,size:24,node:[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]};yt.node;var bt=j(yt),xt={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};xt.node;var St=j(xt),Ct={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Ct.node;var wt=j(Ct),Tt={name:`circle-arrow-up`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]],aliases:[`arrow-up-circle`]};Tt.node;var Et=j(Tt),Dt={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Dt.node;var Ot=j(Dt),kt={name:`circle-slash`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]};kt.node;var At=j(kt),jt={name:`circle-x`,size:24,node:[[`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`}]],aliases:[`x-circle`]};jt.node;var Mt=j(jt),Nt={name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};Nt.node;var Pt=j(Nt),Ft={name:`clock-3`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]};Ft.node;var It=j(Ft),Lt={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Lt.node;var Rt=j(Lt),zt={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};zt.node;var Bt=j(zt),Vt={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};Vt.node;var Ht=j(Vt),Ut={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};Ut.node;var Wt=j(Ut),Gt={name:`columns-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],aliases:[`columns`]};Gt.node;var Kt=j(Gt),qt={name:`compass`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]};qt.node;var Jt=j(qt),Yt={name:`container`,size:24,node:[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]};Yt.node;var Xt=j(Yt),Zt={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};Zt.node;var Qt=j(Zt),$t={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};$t.node;var en=j($t),tn={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};tn.node;var nn=j(tn),rn={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};rn.node;var an=j(rn),on={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};on.node;var sn=j(on),cn={name:`eraser`,size:24,node:[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]};cn.node;var ln=j(cn),un={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};un.node;var dn=j(un),fn={name:`eye-off`,size:24,node:[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};fn.node;var pn=j(fn),mn={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};mn.node;var hn=j(mn),gn={name:`face-slightly-smiling-plus`,size:24,node:[[`path`,{d:`M13.267 2.08a10 10 0 108.653 8.653`,key:`1wbpyh`}],[`path`,{d:`M15 10V9`,key:`4dkmfx`}],[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M16.472 15a6 6 0 01-8.943 0`,key:`7qomzy`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M9 10V9`,key:`1lazqi`}]],aliases:[`smile-plus`]};gn.node;var _n=j(gn),vn={name:`file-code`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]};vn.node;var yn=j(vn),bn={name:`file-diff`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};bn.node;var xn=j(bn),Sn={name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]};Sn.node;var Cn=j(Sn),wn={name:`file-plus-corner`,size:24,node:[[`path`,{d:`M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35`,key:`17jvcc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M14 19h6`,key:`bvotb8`}],[`path`,{d:`M17 16v6`,key:`18yu1i`}]],aliases:[`file-plus-2`]};wn.node;var Tn=j(wn),En={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};En.node;var Dn=j(En),On={name:`files`,size:24,node:[[`path`,{d:`M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8`,key:`14sh0y`}],[`path`,{d:`M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z`,key:`1970lx`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]};On.node;var kn=j(On),An={name:`film`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]};An.node;var jn=j(An),Mn={name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]};Mn.node;var Nn=j(Mn),Pn={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};Pn.node;var Fn=j(Pn),In={name:`folder-plus`,size:24,node:[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`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`}]]};In.node;var Ln=j(In),Rn={name:`folder-up`,size:24,node:[[`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`}],[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`m9 13 3-3 3 3`,key:`1pxg3c`}]]};Rn.node;var zn=j(Rn),Bn={name:`folder`,size:24,node:[[`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`}]]};Bn.node;var Vn=j(Bn),Hn={name:`funnel`,size:24,node:[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],aliases:[`filter`]};Hn.node;var Un=j(Hn),Wn={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};Wn.node;var Gn=j(Wn),Kn={name:`ghost`,size:24,node:[[`path`,{d:`M15 10v1`,key:`oj8wfp`}],[`path`,{d:`M7.528 20.472a1.6 1.6 0 012.277 0l1.057 1.056a1.6 1.6 0 002.276 0l1.057-1.056a1.6 1.6 0 012.277 0l1.114 1.114a1.4 1.4 0 002.414-1V10a8 8 0 00-16 0v10.586a1.4 1.4 0 002.414 1z`,key:`13lou3`}],[`path`,{d:`M9 10v1`,key:`1e14fa`}]]};Kn.node;var qn=j(Kn),Jn={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};Jn.node;var Yn=j(Jn),Xn={name:`git-commit-horizontal`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]],aliases:[`git-commit`]};Xn.node;var Zn=j(Xn),Qn={name:`git-compare-arrows`,size:24,node:[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]};Qn.node;var $n=j(Qn),er={name:`git-fork`,size:24,node:[[`circle`,{cx:`12`,cy:`18`,r:`3`,key:`1mpf1b`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`path`,{d:`M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9`,key:`1uq4wg`}],[`path`,{d:`M12 12v3`,key:`158kv8`}]]};er.node;var tr=j(er),nr={name:`git-merge`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M6 21V9a9 9 0 0 0 9 9`,key:`7kw0sc`}]]};nr.node;var rr=j(nr),ir={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};ir.node;var ar=j(ir),or={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};or.node;var sr=j(or),cr={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};cr.node;var lr=j(cr),ur={name:`hand`,size:24,node:[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]};ur.node;var dr=j(ur),fr={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};fr.node;var pr=j(fr),mr={name:`hash`,size:24,node:[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]};mr.node;var hr=j(mr),gr={name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]};gr.node;var _r=j(gr),vr={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};vr.node;var yr=j(vr),br={name:`image-off`,size:24,node:[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]};br.node;var xr=j(br),Sr={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};Sr.node;var Cr=j(Sr),wr={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};wr.node;var Tr=j(wr),Er={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};Er.node;var Dr=j(Er),Or={name:`key`,size:24,node:[[`path`,{d:`m2 21 9.6-9.6`,key:`9l79m3`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`,key:`fw8biw`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`,key:`4wxmhb`}]]};Or.node;var kr=j(Or),$={name:`keyboard`,size:24,node:[[`path`,{d:`M10 8h.01`,key:`1r9ogq`}],[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M14 8h.01`,key:`1primd`}],[`path`,{d:`M16 12h.01`,key:`1l6xoz`}],[`path`,{d:`M18 8h.01`,key:`emo2bl`}],[`path`,{d:`M6 8h.01`,key:`x9i8wu`}],[`path`,{d:`M7 16h10`,key:`wp8him`}],[`path`,{d:`M8 12h.01`,key:`czm47f`}],[`rect`,{width:`20`,height:`16`,x:`2`,y:`4`,rx:`2`,key:`18n3k1`}]]};$.node;var Ar=j($),jr={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};jr.node;var Mr=j(jr),Nr={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};Nr.node;var Pr=j(Nr),Fr={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};Fr.node;var Ir=j(Fr),Lr={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Lr.node;var Rr=j(Lr),zr={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};zr.node;var Br=j(zr),Vr={name:`list-x`,size:24,node:[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`m15.5 9.5 5 5`,key:`ytk86i`}],[`path`,{d:`m20.5 9.5-5 5`,key:`17o44f`}]]};Vr.node;var Hr=j(Vr),Ur={name:`loader`,size:24,node:[[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m16.2 7.8 2.9-2.9`,key:`r700ao`}],[`path`,{d:`M18 12h4`,key:`wj9ykh`}],[`path`,{d:`m16.2 16.2 2.9 2.9`,key:`1bxg5t`}],[`path`,{d:`M12 18v4`,key:`jadmvz`}],[`path`,{d:`m4.9 19.1 2.9-2.9`,key:`bwix9q`}],[`path`,{d:`M2 12h4`,key:`j09sii`}],[`path`,{d:`m4.9 4.9 2.9 2.9`,key:`giyufr`}]]};Ur.node;var Wr=j(Ur),Gr={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};Gr.node;var Kr=j(Gr),qr={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};qr.node;var Jr=j(qr),Yr={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};Yr.node;var Xr=j(Yr),Zr={name:`mail`,size:24,node:[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]};Zr.node;var Qr=j(Zr),$r={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};$r.node;var ei=j($r),ti={name:`memory-stick`,size:24,node:[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]};ti.node;var ni=j(ti),ri={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};ri.node;var ii=j(ri),ai={name:`message-square-plus`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]};ai.node;var oi=j(ai),si={name:`message-square-text`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]]};si.node;var ci=j(si),li={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};li.node;var ui=j(li),di={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};di.node;var fi=j(di),pi={name:`mic-off`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]};pi.node;var mi=j(pi),hi={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};hi.node;var gi=j(hi),_i={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};_i.node;var vi=j(_i),yi={name:`monitor-play`,size:24,node:[[`path`,{d:`M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z`,key:`vbtd3f`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]};yi.node;var bi=j(yi),xi={name:`monitor-smartphone`,size:24,node:[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]};xi.node;var Si=j(xi),Ci={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};Ci.node;var wi=j(Ci),Ti={name:`moon-star`,size:24,node:[[`path`,{d:`M18 5h4`,key:`1lhgn2`}],[`path`,{d:`M20 3v4`,key:`1olli1`}],[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Ti.node;var Ei=j(Ti),Di={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Di.node;var Oi=j(Di),ki={name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]};ki.node;var Ai=j(ki),ji={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};ji.node;var Mi=j(ji),Ni={name:`notebook-pen`,size:24,node:[[`path`,{d:`M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4`,key:`re6nr2`}],[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`path`,{d:`M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`pqwjuv`}]]};Ni.node;var Pi=j(Ni),Fi={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};Fi.node;var Ii=j(Fi),Li={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};Li.node;var Ri=j(Li),zi={name:`panel-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]],aliases:[`sidebar`]};zi.node;var Bi=j(zi),Vi={name:`panel-right-close`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}],[`path`,{d:`m8 9 3 3-3 3`,key:`12hl5m`}]]};Vi.node;var Hi=j(Vi),Ui={name:`paperclip`,size:24,node:[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]};Ui.node;var Wi=j(Ui),Gi={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]};Gi.node;var Ki=j(Gi),qi={name:`pen-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]],aliases:[`edit-3`]};qi.node;var Ji=j(qi),Yi={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};Yi.node;var Xi=j(Yi),Zi={name:`pin-off`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]};Zi.node;var Qi=j(Zi),$i={name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]};$i.node;var ea=j($i),ta={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};ta.node;var na=j(ta),ra={name:`plug`,size:24,node:[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]};ra.node;var ia=j(ra),aa={name:`plug-zap`,size:24,node:[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]],aliases:[`plug-zap-2`]};aa.node;var oa=j(aa),sa={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};sa.node;var ca=j(sa),la={name:`power-off`,size:24,node:[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};la.node;var ua=j(la),da={name:`puzzle`,size:24,node:[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]};da.node;var fa=j(da),pa={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};pa.node;var ma=j(pa),ha={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};ha.node;var ga=j(ha),_a={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};_a.node;var va=j(_a),ya={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};ya.node;var ba=j(ya),xa={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};xa.node;var Sa=j(xa),Ca={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};Ca.node;var wa=j(Ca),Ta={name:`search-x`,size:24,node:[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]};Ta.node;var Ea=j(Ta),Da={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Da.node;var Oa=j(Da),ka={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};ka.node;var Aa=j(ka),ja={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};ja.node;var Ma=j(ja),Na={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Na.node;var Pa=j(Na),Fa={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};Fa.node;var Ia=j(Fa),La={name:`share-2`,size:24,node:[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]};La.node;var Ra=j(La),za={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};za.node;var Ba=j(za),Va={name:`shield-off`,size:24,node:[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]};Va.node;var Ha=j(Va),Ua={name:`shield-question-mark`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`shield-question`]};Ua.node;var Wa=j(Ua),Ga={name:`shield`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]};Ga.node;var Ka=j(Ga),qa={name:`skip-forward`,size:24,node:[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]]};qa.node;var Ja=j(qa),Ya={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Ya.node;var Xa=j(Ya),Za={name:`sliders-vertical`,size:24,node:[[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M12 21v-9`,key:`17s77i`}],[`path`,{d:`M12 8V3`,key:`13r4qs`}],[`path`,{d:`M17 16h4`,key:`h1uq16`}],[`path`,{d:`M19 12V3`,key:`o1uvq1`}],[`path`,{d:`M19 21v-5`,key:`qua636`}],[`path`,{d:`M3 14h4`,key:`bcjad9`}],[`path`,{d:`M5 10V3`,key:`cb8scm`}],[`path`,{d:`M5 21v-7`,key:`1w1uti`}]],aliases:[`sliders`]};Za.node;var Qa=j(Za),$a={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};$a.node;var eo=j($a),to={name:`square-pen`,size:24,node:[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]],aliases:[`pen-box`,`edit`,`pen-square`]};to.node;var no=j(to),ro={name:`square-terminal`,size:24,node:[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]],aliases:[`terminal-square`]};ro.node;var io=j(ro),ao={name:`square-x`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-square`]};ao.node;var oo=j(ao),so={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};so.node;var co=j(so),lo={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};lo.node;var uo=j(lo),fo={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};fo.node;var po=j(fo),mo={name:`sunrise`,size:24,node:[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m4.93 10.93 1.41 1.41`,key:`2a7f42`}],[`path`,{d:`M2 18h2`,key:`j10viu`}],[`path`,{d:`M20 18h2`,key:`wocana`}],[`path`,{d:`m19.07 10.93-1.41 1.41`,key:`15zs5n`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`,key:`1lzouq`}]]};mo.node;var ho=j(mo),go={name:`sunset`,size:24,node:[[`path`,{d:`M12 10V2`,key:`16sf7g`}],[`path`,{d:`m4.93 10.93 1.41 1.41`,key:`2a7f42`}],[`path`,{d:`M2 18h2`,key:`j10viu`}],[`path`,{d:`M20 18h2`,key:`wocana`}],[`path`,{d:`m19.07 10.93-1.41 1.41`,key:`15zs5n`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}],[`path`,{d:`m16 6-4 4-4-4`,key:`6wukr`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`,key:`1lzouq`}]]};go.node;var _o=j(go),vo={name:`swords`,size:24,node:[[`path`,{d:`m13 19 6-6`,key:`gj6q8g`}],[`path`,{d:`M14.5 17.5 3.586 6.586A2 2 0 013 5.172V3h2.172a2 2 0 011.414.586L17.5 14.5`,key:`uwfxh8`}],[`path`,{d:`m14.828 6.172 2.586-2.586A2 2 0 0118.828 3H21v2.172a2 2 0 01-.586 1.414l-2.586 2.586`,key:`1f17hx`}],[`path`,{d:`m16 16 4 4`,key:`up5ibb`}],[`path`,{d:`m19 21 2-2`,key:`1phfkn`}],[`path`,{d:`m5 14 4 4`,key:`1gk0qx`}],[`path`,{d:`m5 21-2-2`,key:`1kw20b`}],[`path`,{d:`M7.5 16.5 4 20`,key:`14nozp`}]]};vo.node;var yo=j(vo),bo={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};bo.node;var xo=j(bo),So={name:`test-tube`,size:24,node:[[`path`,{d:`M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2`,key:`125lnx`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}],[`path`,{d:`M14.5 16h-5`,key:`1ox875`}]]};So.node;var Co=j(So),wo={name:`thumbs-down`,size:24,node:[[`path`,{d:`M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z`,key:`m61m77`}],[`path`,{d:`M17 14V2`,key:`8ymqnk`}]]};wo.node;var To=j(wo),Eo={name:`thumbs-up`,size:24,node:[[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}],[`path`,{d:`M7 10v12`,key:`1qc93n`}]]};Eo.node;var Do=j(Eo),Oo={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Oo.node;var ko=j(Oo),Ao={name:`trending-up`,size:24,node:[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]};Ao.node;var jo=j(Ao),Mo={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Mo.node;var No=j(Mo),Po={name:`trophy`,size:24,node:[[`path`,{d:`M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2`,key:`pwuv1l`}],[`path`,{d:`M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2`,key:`1y54w1`}],[`path`,{d:`M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3`,key:`e30mpu`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3`,key:`i0yafy`}]]};Po.node;var Fo=j(Po),Io={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Io.node;var Lo=j(Io),Ro={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Ro.node;var zo=j(Ro),Bo={name:`user-check`,size:24,node:[[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Bo.node;var Vo=j(Bo),Ho={name:`user-minus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Ho.node;var Uo=j(Ho),Wo={name:`user-plus`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]};Wo.node;var Go=j(Wo),Ko={name:`user-round`,size:24,node:[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]],aliases:[`user-2`]};Ko.node;var qo=j(Ko),Jo={name:`user`,size:24,node:[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]};Jo.node;var Yo=j(Jo),Xo={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};Xo.node;var Zo=j(Xo),Qo={name:`volume-2`,size:24,node:[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]};Qo.node;var $o=j(Qo),es={name:`volume-x`,size:24,node:[[`path`,{d:`M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z`,key:`1p7khw`}],[`path`,{d:`m16.5 14.5 5-5`,key:`cul3yw`}],[`path`,{d:`m16.5 9.5 5 5`,key:`1akey5`}]]};es.node;var ts=j(es),ns={name:`wand-sparkles`,size:24,node:[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]],aliases:[`wand-2`]};ns.node;var rs=j(ns),is={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};is.node;var as=j(is),os={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};os.node;var ss=j(os),cs={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};cs.node;var ls=j(cs);export{fa as $,ft as $n,pr as $t,io as A,an as An,ii as At,Ra as B,Rt as Bn,Rr as Bt,yo as C,yn as Cn,Re as Cr,vi as Ct,uo as D,dn as Dn,T as Dr,ui as Dt,po as E,pn as En,c as Er,fi as Et,Ja as F,Jt as Fn,Jr as Ft,Oa as G,Ot as Gn,kr as Gt,Pa as H,Pt as Hn,Pr as Ht,Ka as I,Kt as In,Kr as It,Sa as J,St as Jn,Cr as Jt,Ea as K,Et as Kn,Dr as Kt,Wa as L,Wt as Ln,Wr as Lt,eo as M,en as Mn,ei as Mt,Qa as N,Qt as Nn,Qr as Nt,co as O,ln as On,De as Or,ci as Ot,Xa as P,Xt as Pn,Xr as Pt,ma as Q,mt as Qn,hr as Qt,Ha as R,Ht as Rn,Hr as Rt,xo as S,xn as Sn,ze as Sr,bi as St,ho as T,hn as Tn,E as Tr,mi as Tt,Ma as U,Mt as Un,Mr as Ut,Ia as V,It as Vn,Ir as Vt,Aa as W,At as Wn,Ar as Wt,va as X,vt as Xn,yr as Xt,ba as Y,bt as Yn,xr as Yt,ga as Z,gt as Zn,_r as Zt,jo as _,jn as _n,We as _r,Ai as _t,ts as a,tr as an,nt as ar,ea as at,To as b,Tn as bn,Ve as br,wi as bt,Yo as c,Yn as cn,$e as cr,Ji as ct,Uo as d,Un as dn,Xe as dr,Hi as dt,dr as en,ut as er,ua as et,Vo as f,Vn as fn,Ye as fr,Bi as ft,No as g,Nn as gn,Ge as gr,Mi as gt,Fo as h,Fn as hn,Ke as hr,Pi as ht,rs as i,rr as in,rt as ir,na as it,no as j,nn as jn,ni as jt,oo as k,sn as kn,oi as kt,qo as l,qn as ln,Qe as lr,Ki as lt,Lo as m,Ln as mn,qe as mr,Ii as mt,ss as n,sr as nn,ot as nr,oa as nt,$o as o,$n as on,tt as or,Qi as ot,zo as p,zn as pn,Je as pr,Ri as pt,wa as q,wt as qn,Tr as qt,as as r,ar as rn,it as rr,ia as rt,Zo as s,Zn as sn,et as sr,Xi as st,ls as t,lr as tn,ct as tr,ca as tt,Go as u,Gn as un,Ze as ur,Wi as ut,ko as v,kn as vn,Ue as vr,Oi as vt,_o as w,_n as wn,Ee as wr,gi as wt,Co as x,Cn as xn,Be as xr,Si as xt,Do as y,Dn as yn,He as yr,Ei as yt,Ba as z,Bt as zn,Br as zt};
@@ -1,13 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t}from"./react-vendor-C1iE8mnY.js";import{a as n,c as r,s as i}from"./utils-BvvV-Cka.js";import{t as a}from"./useTranslation-D9EScZXH.js";import{g as o,t as s}from"./chatStore-hzQyRM9H.js";import{a as c,t as l}from"./logger-rEW7uQ8m.js";import{t as u}from"./appStore-B6pAGo3p.js";import{Or as d}from"./ui-vendor-BTcw5yZ6.js";import{t as f}from"./liveAnnouncerStore-B6mS-JWC.js";import{t as p}from"./config-CHUQTU6j.js";import{N as m,d as ee}from"./api-D6IF0v9_.js";import{n as h}from"./authStore-DdIb6km_.js";import{c as te,s as g}from"./artifactHtml-DDmfpcB0.js";var _=e(t(),1),v=/```([^\n`]*)\n([\s\S]*?)\n```/g,y=/^(?:%%|flowchart|graph|sequenceDiagram|classDiagram|stateDiagram(?:-v2)?|erDiagram|journey|gantt|pie|mindmap|timeline|gitGraph|quadrantChart|requirementDiagram|sankey-beta|xychart-beta|block-beta|architecture-beta|packet-beta|kanban|radar-beta|treemap-beta|C4Context)\b/i,b=/[\w@./-]+\.(?:html?|css|mjs|js|jsx|ts|tsx|svg|json|py)/i,x=[`html`,`react`,`svg`,`mermaid`,`chart`,`code`,`text`,`json`],ne=[{regex:/<artifact\s+type="([^"]+)"\s+title="([^"]+)"[^>]*>([\s\S]*?)<\/artifact>/gi,extract:e=>({type:A(e[1]),title:S(e[2]).trim()||`Artifact`,content:e[3].trim()})},{regex:/<artifact\s+type="([^"]+)"[^>]*>([\s\S]*?)<\/artifact>/gi,extract:e=>{let t=A(e[1]);return{type:t,title:`${t.toUpperCase()} Artifact`,content:e[2].trim()}}}];function S(e){if(typeof document<`u`){let t=document.createElement(`div`);return t.innerHTML=e,t.textContent||t.innerText||``}return w(C(e))}function C(e){return e.replace(/&(lt|gt|quot|apos|#39);/gi,(e,t)=>{switch(t.toLowerCase()){case`lt`:return`<`;case`gt`:return`>`;case`quot`:return`"`;case`apos`:case`#39`:return`'`;default:return``}}).replace(/&amp;/gi,`&`)}function w(e){let t=``,n=!1,r=null;for(let i=0;i<e.length;i+=1){let a=e[i];if(n){if(r){a===r&&(r=null);continue}if(a===`"`||a===`'`){r=a;continue}a===`>`&&(n=!1)}else{if(a===`<`){let t=e[i+1];if(t&&/[!/A-Za-z?]/.test(t)){n=!0;continue}}t+=a}}return t}function T(e){let t=e.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(t)return S(t[1]).trim()||null;let n=e.match(/<h1[^>]*>([\s\S]*?)<\/h1>/i);return n&&S(n[1]).trim()||null}function E(e){for(let t of[/export\s+default\s+(?:function|class)\s+([A-Z]\w*)/,/export\s+default\s+([A-Z]\w*)\s*(?:;|$)/m,/(?:function|class)\s+([A-Z]\w*)/,/const\s+([A-Z]\w*)\s*[:=]/,/(?:function|const|class)\s+(\w+)/]){let n=e.match(t);if(n)return n[1]}return null}function D(e){let t=e.match(/^\s*title\s+(.+)$/im);if(t)return t[1].trim();let n=e.trim().match(/^([A-Za-z][\w-]*)/);if(!n)return null;let r=n[1].replace(/-(?:beta|v2)$/i,``).replace(/([a-z])([A-Z])/g,`$1 $2`);return`${r.charAt(0).toUpperCase()}${r.slice(1)}`}function O(e){if(e.includes(`def main(`))return`Python Script`;let t=e.match(/class\s+(\w+)/);if(t)return`${t[1]} Class`;let n=e.match(/def\s+(\w+)/);return n&&n[1]!==`__init__`?`${n[1]} Function`:null}function k(e){let t=e.match(/function\s+(\w+)/);if(t)return`${t[1]} Function`;let n=e.match(/(?:const|let)\s+(\w+)\s*=/);return n?n[1]:null}function A(e){let t=e.trim().toLowerCase();return x.includes(t)?t:`text`}function j(e){if(!e)return;let t=e.trim().toLowerCase().replace(/^\./,``).replace(/[,:;]+$/,``);switch(t){case`htm`:case`html`:return`html`;case`js`:case`mjs`:case`javascript`:return`javascript`;case`jsx`:case`tsx`:case`react`:return`react`;case`ts`:case`typescript`:return`typescript`;case`py`:case`python`:return`python`;case`css`:case`svg`:case`json`:return t;default:return t||void 0}}function M(e){let t=[],n=new RegExp(v),r;for(;(r=n.exec(e))!==null;){let n=r[1].trim(),i=N(n,ie(e,r.index));t.push({raw:r[0],info:n,content:r[2].trim(),start:r.index,end:r.index+r[0].length,language:i.language,fileName:i.fileName})}return t}function N(e,t){let n=re(e)||t,r=e.split(/\s+/).filter(Boolean)[0]?.replace(/[{}[\]()]/g,``);return{language:(r&&!b.test(r)&&!r.includes(`=`)?j(r):void 0)||j(F(n)),fileName:n}}function re(e){let t=e.match(/(?:file(?:name)?|path|name)\s*=\s*["']?([^"'\s]+)["']?/i);if(t&&b.test(t[1]))return P(t[1]);let n=e.match(b);return n?P(n[0]):void 0}function ie(e,t){let n=e.slice(Math.max(0,t-180),t).split(`
2
- `).slice(-3).reverse();for(let e of n){let t=e.trim().replace(/^#{1,6}\s*/,``).replace(/^[-*]\s*/,``).replace(/[::]\s*$/,``).match(b);if(t)return P(t[0])}}function P(e){return e.replace(/^["'`]+|["'`:]+$/g,``)}function F(e){return e?.match(/\.([a-z0-9]+)$/i)?.[1]}function I(e){return e?.split(/[\\/]/).pop()}function L(e){let t=I(e);if(!t)return null;let n=t.replace(/\.[^.]+$/,``);return/^(index|main|app)$/i.test(n)?null:n.replace(/[-_]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function R(e){let t=Date.now();return{...e,id:`artifact-${t}-${r(9)}`,createdAt:t,updatedAt:t}}function z(e){let t=j(e.language)||j(F(e.fileName));switch(t){case`html`:return{type:`html`,title:T(e.content)||L(e.fileName)||`HTML Document`};case`svg`:return{type:`svg`,title:L(e.fileName)||`SVG Image`};case`react`:return{type:`react`,title:E(e.content)||L(e.fileName)||`React Component`,language:`jsx`};case`mermaid`:return{type:`mermaid`,title:D(e.content)||`Diagram`,language:`mermaid`};case`json`:return{type:`json`,title:L(e.fileName)||`JSON Data`};case`python`:return{type:`code`,title:O(e.content)||L(e.fileName)||`Python Code`,language:`python`};case`css`:return{type:`code`,title:L(e.fileName)||`CSS Styles`,language:`css`};case`javascript`:return{type:`code`,title:k(e.content)||L(e.fileName)||`JavaScript Code`,language:`javascript`};case`typescript`:return{type:`code`,title:L(e.fileName)||`TypeScript Code`,language:`typescript`};default:return t?{type:`code`,title:L(e.fileName)||`${t.toUpperCase()} Code`,language:t}:null}}function B(e){return(j(e.language)||j(F(e.fileName)))===`html`}function V(e){return(j(e.language)||j(F(e.fileName)))===`css`}function H(e){return(j(e.language)||j(F(e.fileName)))===`javascript`}function U(e){let t=M(e),n=t.filter(B);if(n.length===0)return null;let r=t.filter(V),i=t.filter(H);if(r.length===0&&i.length===0)return null;let a=n.find(e=>/(^|[/\\])index\.html?$/i.test(e.fileName||``))||n[0],o=ae(a.content,r,i),s=te(o,r.map(e=>e.content),i.map(e=>e.content));return q(s,`html`)?{artifact:R({type:`html`,title:T(s)||L(a.fileName)||`Interactive HTML App`,description:`Bundled generated HTML, CSS, and JavaScript files into one runnable artifact.`,content:s}),ranges:[a,...r,...i]}:null}function ae(e,t,n){let r=e;for(let e of t){let t=I(e.fileName);t&&(r=r.replace(RegExp(`<link\\b[^>]*href=["'][^"']*${K(t)}["'][^>]*>`,`gi`),``))}for(let e of n){let t=I(e.fileName);t&&(r=r.replace(RegExp(`<script\\b[^>]*src=["'][^"']*${K(t)}["'][^>]*>\\s*<\\/script>`,`gi`),``))}return r}function W(e){let t=/<!doctype\s+html|<html[\s>]/i.exec(e);if(!t||t.index===void 0)return null;let n=M(e);if(oe(t.index,n))return null;let r=t.index,i=/<\/html>/gi;i.lastIndex=r;let a=i.exec(e),o=a?a.index+a[0].length:e.length,s=e.slice(r,o).trim();return q(s,`html`)?{artifact:R({type:`html`,title:T(s)||`HTML Document`,content:s}),ranges:[{start:r,end:o}]}:null}function oe(e,t){return t.some(t=>e>=t.start&&e<=t.end)}function G(e,t){return[...t].sort((e,t)=>t.start-e.start).reduce((e,t)=>`${e.slice(0,t.start)}${e.slice(t.end)}`,e)}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function q(e,t){if(t===`html`){let t=e.trim(),n=/<[^>]+>/.test(t),r=/<(canvas|script|style|button|form|input|select|textarea|video|audio)\b/i.test(t)||/\bon(?:click|input|submit|keydown|keyup|mousemove)=/i.test(t);return n&&(g(t)||t.length>160||r)}if(t===`svg`)return/<svg[^>]*>/.test(e);if(t===`react`)return/<[A-Za-z][^>]*>/.test(e)&&/\b(?:export\s+default|return\s*[(<]|=>\s*[(<]|createRoot|render\s*\()/.test(e);if(t===`mermaid`)return y.test(e.trim());if(t===`json`)try{return JSON.parse(e),e.trim().length>100}catch{return!1}if(t===`code`){let t=e.split(`
3
- `).length,n=e.trim().length,r=/function|class|def |import |from |const |let |var |if |for |while |try |catch/.test(e);return(n>500||t>15)&&r}return e.trim().length>200}function se(e){let t=[],n=e;for(let e of ne){e.regex.lastIndex=0;let r=[],i;for(;(i=e.regex.exec(n))!==null;){let n=e.extract(i);q(n.content,n.type)&&(t.push(R({type:n.type,title:n.title,content:n.content})),r.push({start:i.index,end:i.index+i[0].length}))}n=G(n,r)}let r=U(n);for(;r;)t.push(r.artifact),n=G(n,r.ranges),r=U(n);let i=W(n);i&&(t.push(i.artifact),n=G(n,i.ranges));let a=M(n),o=[];for(let e of a){let n=z(e);n&&q(e.content,n.type)&&(t.push(R({type:n.type,title:n.title,content:e.content,language:n.language})),o.push(e))}return n=G(n,o),{content:n.trim(),artifacts:t}}var J=new Map;function ce(e,t,n=``){let r=J.get(e);if(n){if((!r||r.state===`none`)&&(J.set(e,{state:`open`,startedAt:Date.now()}),!t))return;let n=J.get(e);t&&n?.state===`open`&&J.set(e,{state:`done`,durationMs:Date.now()-n.startedAt});return}if(r&&r.state!==`open`||!t)return;let a=i(t);r?a.thinkingComplete&&J.set(e,{state:`done`,durationMs:Date.now()-r.startedAt}):a.thinkingComplete?J.set(e,{state:`none`}):J.set(e,{state:`open`,startedAt:Date.now()})}function le(e){let t=J.get(e);if(t){if(t.state===`done`)return t.durationMs;if(t.state===`open`)return Date.now()-t.startedAt}}function ue(e){let t=J.get(e);if(J.delete(e),t){if(t.state===`done`)return t.durationMs;if(t.state===`open`)return Date.now()-t.startedAt}}function Y(e){let t=e/1e3;if(t<.95)return`${Math.max(.1,Math.round(t*10)/10)}s`;if(t<60)return`${Math.round(t)}s`;let n=Math.floor(t/60),r=Math.round(t%60);return r>0?`${n}m ${r}s`:`${n}m`}var de=(e,t)=>{s.setState(n=>{let r=n=>n&&n.id===e?{...n,settings:{...n.settings,...t.length>0?{promptQueue:t}:{promptQueue:void 0}}}:n;return{currentSession:r(n.currentSession),sessions:n.sessions.map(e=>r(e))}})},fe=`…`,pe=/^[ \t]{0,3}(`{3,}|~{3,})/,me=(e,t)=>{let n=[],r=null;for(let i of e.split(`
4
- `))if(r===null){let e=pe.exec(i);e?(r=e[1],n.push(`${t}.`)):n.push(i)}else RegExp(`^[ \\t]{0,3}${r[0]}{${r.length},}[ \\t]*$`).test(i)&&(r=null);return n.join(`
5
- `)},he=(e,t)=>{let n=Array.from(e);if(n.length<=t)return e;let r=Math.max(1,t-1),i=n.slice(0,r).join(``),a=i.lastIndexOf(` `);return a>r*.6&&(i=i.slice(0,a)),`${i.replace(/[\s.,;:!?-]+$/,``)}${fe}`};function ge(e,{codeBlockLabel:t,maxLength:n=600}){return he(me(e.replace(/\r\n?/g,`
6
- `),t).replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]+)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]+)\]\[[^\]]*\]/g,`$1`).replace(/^[ \t]*\[[^\]]+\]:\s+\S+.*$/gm,``).replace(/<!--[\s\S]*?-->/g,` `).replace(/<\/?[A-Za-z][^>\n]*>/g,` `).replace(/`+([^`\n]+)`+/g,`$1`).replace(/^[ \t]*([-*_])([ \t]*\1){2,}[ \t]*$/gm,` `).replace(/^[ \t]*\|?[ \t]*:?-{2,}:?[ \t]*(\|[ \t]*:?-{2,}:?[ \t]*)*\|?[ \t]*$/gm,` `).replace(/^[ \t]{0,3}#{1,6}[ \t]+/gm,``).replace(/[ \t]+#+[ \t]*$/gm,``).replace(/^[ \t]*(?:>[ \t]?)+/gm,``).replace(/^[ \t]*(?:[-*+]|\d+[.)])[ \t]+(?:\[[ xX]\][ \t]+)?/gm,``).replace(/^\|/gm,``).replace(/\|[ \t]*$/gm,``).replace(/[ \t]*\|[ \t]*/g,`, `).replace(/\*\*(?=\S)([\s\S]*?\S)\*\*/g,`$1`).replace(/(?<!\w)__(?=\S)([\s\S]*?\S)__(?!\w)/g,`$1`).replace(/\*(?=\S)([^*\n]*?\S)\*/g,`$1`).replace(/(?<!\w)_(?=\S)([^_\n]*?\S)_(?!\w)/g,`$1`).replace(/~~(?=\S)([\s\S]*?\S)~~/g,`$1`).replace(/\\([\\`*_{}[\]()#+\-.!|>~])/g,`$1`).replace(/\s+/g,` `).trim(),n)}var _e=(e,t)=>{t?.add(e.assistantMessageId),e.cancelRequested=!0,e.jobId&&e.abort.abort()},ve=async e=>{if(!e.cancelledMessageIds.has(e.assistantMessageId))return!1;try{let t=await(e.cancelByIdentity??Q)(e.sessionId,e.assistantMessageId);await e.settle(t)}catch(t){e.onError?.(t)}return!0},ye=e=>{e.retainForContinuation||e.cancelledMessageIds.delete(e.assistantMessageId)},be=async(e,t,n={})=>{if(e.jobId=t.jobId,!e.cancelRequested)return`stream`;e.abort.abort();let[,r]=await Promise.allSettled([(n.byJob??Te)(t.jobId),(n.byIdentity??Q)(e.sessionId,e.assistantMessageId)]);if(r.status===`rejected`)throw r.reason;return r.value.completed?`completed`:`cancelled`},xe=async e=>{let t=await e.loadSession(e.sessionId);if(t.id!==e.sessionId)throw Error(`Reloaded chat session does not match the completed turn.`);if(!t.messages.find(t=>t.id===e.assistantMessageId&&t.role===`assistant`))throw Error(`Completed assistant message is absent from chat storage.`);return e.applySession(t),t},X=async e=>{try{let t=await e.json(),n=typeof t.error==`string`?t.error:typeof t.message==`string`?t.message:void 0;if(n)return Error(n)}catch{}return Error(`Chat event request failed with status ${e.status}.`)},Z=()=>{let e=localStorage.getItem(`auth-token`);return e?{Authorization:`Bearer ${e}`}:{}},Se=async e=>{let t=await fetch(`${p}/chat/sessions/${encodeURIComponent(e.sessionId)}/generations`,{method:`POST`,headers:{"Content-Type":`application/json`,...Z()},credentials:`same-origin`,signal:e.signal,body:JSON.stringify({message:e.message,images:e.images,userMessageId:e.userMessageId,assistantMessageId:e.assistantMessageId,options:e.options,webSearch:e.webSearch,tools:e.tools===!0,...e.toolSelection?{toolSelection:e.toolSelection}:{},regenerate:e.regenerate===!0,originalMessageId:e.originalMessageId,...e.modelOverride?{modelOverride:e.modelOverride}:{},...e.compare?{compare:!0}:{}})});if(!t.ok)throw await X(t);let n=await t.json();if(!n.data?.jobId)throw Error(`Chat generation response did not include a durable job.`);return n.data},Ce=async(e,t)=>{if(!e.body)throw Error(`Chat event stream has no response body.`);let n=e.body.getReader(),r=new TextDecoder,i=``,a=0,o=!1,s=e=>{let n,r=[];for(let t of e.split(`
7
- `))t.startsWith(`id:`)&&(n=Number(t.slice(3).trim())),t.startsWith(`data:`)&&r.push(t.slice(5).trimStart());if(!Number.isSafeInteger(n)||!r.length)return;let i=JSON.parse(r.join(`
8
- `)),s=n,c=i.type===`done`||i.type===`error`;t(s,i),a=s,o=c};try{for(;;){let{done:e,value:t}=await n.read();i+=r.decode(t,{stream:!e}).replace(/\r\n/g,`
9
- `);let a=i.indexOf(`
10
-
11
- `);for(;a>=0;)s(i.slice(0,a)),i=i.slice(a+2),a=i.indexOf(`
12
-
13
- `);if(e||o)break}}finally{await n.cancel().catch(()=>void 0),n.releaseLock()}return{cursor:a,terminal:o}},we=async e=>{let t=0,n=0;for(;!e.signal.aborted;){let r=new URL(`${p}/chat/sessions/${encodeURIComponent(e.sessionId)}/events`,window.location.origin);r.searchParams.set(`after`,String(t)),r.searchParams.set(`generation`,e.assistantMessageId);try{let i=await fetch(r,{headers:{Accept:`text/event-stream`,...Z()},credentials:`same-origin`,cache:`no-store`,signal:e.signal});if(!i.ok)throw await X(i);if((await Ce(i,(n,r)=>{e.onEvent(r),t=n})).terminal)return;n=0}catch(t){if(e.signal.aborted||(n+=1,n>8))throw t}await new Promise((t,r)=>{let i=window.setTimeout(()=>{e.signal.removeEventListener(`abort`,a),t()},Math.min(5e3,n*500+250)),a=()=>{window.clearTimeout(i),e.signal.removeEventListener(`abort`,a),r(e.signal.reason??Error(`Chat stream cancelled`))};e.signal.addEventListener(`abort`,a,{once:!0})})}},Te=async e=>{let t=await fetch(`${p}/jobs/${encodeURIComponent(e)}/cancel`,{method:`POST`,headers:Z(),credentials:`same-origin`});if(!t.ok)throw await X(t)},Q=async(e,t)=>{let n=await fetch(`${p}/chat/sessions/${encodeURIComponent(e)}/generations/${encodeURIComponent(t)}/cancel`,{method:`POST`,headers:Z(),credentials:`same-origin`});if(!n.ok)throw await X(n);let r=(await n.json()).data;if(!r)throw Error(`Chat cancellation response did not include a decision.`);let i=typeof r.jobId==`string`?r.jobId:void 0;if(r.completed!==!0&&r.pending!==!0&&!i)throw Error(`Chat cancellation response did not include a decision.`);return{completed:r.completed===!0,pending:r.pending===!0,...i?{jobId:i}:{},...typeof r.state==`string`?{state:r.state}:{}}},$=l(`use-chat`),Ee=new Set([`New Chat`,`New Demo Session`]),De=e=>!e||Ee.has(e),Oe=e=>{let t=s.getState();return t.currentSession?.id===e?t.currentSession.title:t.sessions.find(t=>t.id===e)?.title},ke=e=>{let t=s.getState(),n=t.getCurrentPersona();if(n?.name)return n.name;let r=t.currentSession?.model??``;return!r||r.startsWith(`persona:`)?e:(t.modelMetadata[r]??Object.entries(t.modelMetadata).find(([e])=>e.slice(e.indexOf(`/`)+1)===r)?.[1])?.label||r},Ae=e=>{let{t}=a(),r=(0,_.useCallback)(e=>{let n=ke(t(`chatMessage.assistant`)),r=ge(i(e).content,{codeBlockLabel:t(`chat.announce.codeBlock`)});f(r?t(`chat.announce.replyFinished`,{name:n,text:r}):t(`chat.announce.replyFinishedNoText`,{name:n}))},[t]),[l,p]=(0,_.useState)(``),[te,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(!1),[ne,S]=(0,_.useState)([]),[C,w]=(0,_.useState)([]),[T,E]=(0,_.useState)(null),{addMessage:D,updateMessage:O,updateMessageWithStatistics:k,applySessionTitle:A,setGeneratingTitleForSession:j,removeMessage:M}=s(),{setIsGenerating:N}=u(),re=(0,_.useRef)(null),ie=(0,_.useRef)(new Map),P=(0,_.useRef)(null),F=(0,_.useRef)(new Set),I=(0,_.useRef)(null),L=(0,_.useRef)(null),R=(0,_.useRef)(``),z=(0,_.useRef)(``),B=(0,_.useRef)(0),V=(0,_.useRef)(void 0),H=(0,_.useRef)(null),U=(0,_.useRef)(``),ae=(0,_.useRef)(``),W=(0,_.useCallback)(()=>{H.current!==null&&typeof window<`u`&&window.cancelAnimationFrame(H.current),H.current=null},[]),oe=(0,_.useCallback)((e,t=!1,n=``)=>{U.current=e,ae.current=n,t||typeof window>`u`?(W(),p(e),g(n)):H.current===null&&(H.current=window.requestAnimationFrame(()=>{H.current=null,p(U.current),g(ae.current)}))},[W]),G=(0,_.useCallback)(()=>{W(),U.current=``,ae.current=``,p(``),g(``)},[W]),K=(0,_.useCallback)((e,t)=>{s.setState(n=>{let r=n.currentSession?.id===e.id?n.currentSession:n.sessions.find(t=>t.id===e.id),i=r&&t!==void 0&&r.title!==t?{...e,title:r.title,updatedAt:Math.max(r.updatedAt,e.updatedAt)}:e;return{sessions:n.sessions.some(t=>t.id===e.id)?n.sessions.map(t=>t.id===e.id?i:t):[i,...n.sessions],currentSession:n.currentSession?.id===e.id?i:n.currentSession}})},[]),q=(0,_.useCallback)(async(e,t)=>{let n=Oe(e);await xe({sessionId:e,assistantMessageId:t,loadSession:async e=>{let t=await m.getSession(e);if(!t.success||!t.data)throw Error(t.error||`Completed chat session could not be reloaded.`);return t.data},applySession:e=>K(e,n)})},[K]),J=(0,_.useCallback)(async(e,t,n,r={})=>{n.completed?await q(e,t):M(e,t),ye({assistantMessageId:t,cancelledMessageIds:F.current,decision:n,retainForContinuation:r.retainForContinuation})},[q,M]),le=(0,_.useCallback)(async(e,n)=>{let r=u.getState().preferences.titleSettings;if(n&&r?.autoTitle&&r?.taskModel){$.debug(`Triggering auto-title generation...`),j(e);try{let i=await m.generateTitle(e,r.taskModel,n,r.taskProviderType,r.taskProviderId);if($.debug(`Title generation response:`,i),!i.success||!i.data?.title)throw Error(i.error||`Title generation returned no title`);A(e,i.data.title,i.data.updatedAt),i.data.source===`fallback`?d.error(t(`chat.toasts.titlePreviewFallback`)):d.success(t(`chat.toasts.titleGenerated`))}catch(e){$.error(`Failed to generate title:`,e),d.error(t(`chat.toasts.titleGenerationFailed`))}finally{s.getState().generatingTitleForSession===e&&j(null)}}},[A,j,t]);(0,_.useEffect)(()=>{let t=F.current;return()=>{let n=P.current,r=L.current;if(r){let e=!r.jobId;_e(r,t),Q(r.sessionId,r.assistantMessageId).then(t=>J(r.sessionId,r.assistantMessageId,t,{retainForContinuation:e})).catch(e=>$.error(`Failed to cancel durable chat generation:`,e)),r.jobId&&Te(r.jobId).catch(e=>$.error(`Failed to cancel durable chat generation:`,e)),L.current=null}n&&e&&!r&&h.send({type:`chat_cancel`,data:{sessionId:e,assistantMessageId:n}}),h.offMessage(`user_message`),h.offMessage(`assistant_chunk`),h.offMessage(`assistant_complete`),h.offMessage(`assistant_cancelled`),h.offMessage(`tool_status`),h.offMessage(`error`)}},[e,J]),(0,_.useEffect)(()=>{if(!e)h.offMessage(`user_message`),h.offMessage(`assistant_chunk`),h.offMessage(`assistant_complete`),h.offMessage(`assistant_cancelled`),h.offMessage(`tool_status`),h.offMessage(`tool_event`),h.offMessage(`error`);else return h.onMessage(`user_message`,()=>{}),h.onMessage(`assistant_chunk`,t=>{let n=t,r=n.messageId||P.current;r&&F.current.has(r)||r&&P.current&&r!==P.current||r&&(typeof n.total==`string`?R.current=n.total:typeof n.content==`string`&&(R.current+=n.content),typeof n.thinkingTotal==`string`?z.current=n.thinkingTotal:typeof n.thinking==`string`&&(z.current+=n.thinking),ce(r,R.current,z.current),oe(R.current,n.done,z.current),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{O(e,r,R.current),B.current=Date.now()},n.done?0:200))}),h.onMessage(`tool_status`,e=>{let t=e;S(e=>e.find(e=>e.toolCallId===t.toolCallId)?e.map(e=>e.toolCallId===t.toolCallId?{...e,phase:t.phase}:e):[...e,{toolCallId:t.toolCallId,name:t.name,phase:t.phase,startedAt:Date.now()}])}),h.onMessage(`tool_event`,e=>{let t=e;if(t.type&&t.messageId&&!(P.current&&t.messageId!==P.current)){if(t.type===`chat.tool-call.v1`&&t.toolCall){let e=t.toolCall;w(t=>t.find(t=>t.id===e.id)?t.map(t=>t.id===e.id?e:t):[...t,e])}else if(t.type===`chat.tool-result.v1`&&t.toolCallId)w(e=>e.map(e=>e.id===t.toolCallId?{...e,status:t.status??e.status,resultPreview:t.preview,isError:t.isError===!0,finishedAt:Date.now()}:e)),E(e=>e&&e.toolCall.id===t.toolCallId?null:e);else if(t.type===`chat.approval.v1`&&t.approvalId&&t.toolCall){let e=t.toolCall;w(t=>t.find(t=>t.id===e.id)?t.map(t=>t.id===e.id?e:t):[...t,e]),E({approvalId:t.approvalId,messageId:t.messageId,toolCall:e,expiresAt:t.expiresAt??Date.now()+12e4})}}}),h.onMessage(`assistant_complete`,t=>{let n=t;$.debug(`Hook: Received assistant_complete for session:`,e,`messageId:`,n.messageId,`with statistics:`,!!n.statistics);let a=n.messageId||P.current,o=!a||a===P.current;if(a&&F.current.delete(a),!o){if(n.truncated&&a){q(e,a);return}a&&k(e,a,n.content,n.statistics,n.providerMetadata,n.thinking);return}let s=P.current!==null;if(x(!1),G(),N(!1),S([]),w([]),E(null),n&&a){let t=R.current||n.content,o=z.current||n.thinking,c=ue(a),l=n.statistics?.thinking_duration_ms===void 0&&c!==void 0?{...n.statistics,thinking_duration_ms:c}:n.statistics;k(e,a,t,l,n.providerMetadata,o),s&&r(t);let{preferences:d,openArtifactPanel:f}=u.getState();if(d.autoOpenArtifactPanel!==!1){let{artifacts:e}=se(i(t).content);e.length>0&&f(e[e.length-1])}}P.current=null,R.current=``,z.current=``,window.setTimeout(()=>{re.current?.()},0),V.current&&clearTimeout(V.current),B.current=0}),h.onMessage(`assistant_cancelled`,t=>{let n=t,r=n.assistantMessageId;r&&n.sessionId===e&&F.current.has(r)&&(F.current.delete(r),M(e,r),P.current===r&&(x(!1),G(),y(null),N(!1),S([]),w([]),E(null),P.current=null,R.current=``,z.current=``))}),h.onMessage(`error`,e=>{let n=e;x(!1),G(),N(!1),w([]),E(null),P.current=null,z.current=``,n.code===`SESSION_NOT_FOUND`?($.warn(`Session not found, redirecting to create new session...`),d.error(t(`chat.toasts.sessionNotFoundRedirect`)),window.location.href=`/`):d.error(n.error)}),x(!1),G(),P.current=null,z.current=``,()=>{V.current&&clearTimeout(V.current),W()}},[e,O,k,N,oe,G,W,M,q,r,t]);let Y=(0,_.useCallback)(async(i,a,l,u,f,p,m)=>{if(!e||!i.trim()&&(!a||a.length===0))return;let ee;try{let te=s.getState(),g=te.currentSession,_={model:g?.personaId?`persona:${g.personaId}`:g?.model||``,providerType:g?.providerType,providerId:g?.providerId};if(!o(te.models,_)){d.error(t(`chat.model.selectBeforeSending`));return}N(!0),x(!0),G(),w([]),E(null),R.current=``,z.current=``,V.current&&clearTimeout(V.current),B.current=Date.now();let v=g?.isPrivate===!0,b=g?.messages?.some(e=>e.role===`user`),ne=!v&&!b&&De(g?.title),S=n();D(e,{id:S,role:`user`,content:i.trim(),images:a});let C=n();if(ee=C,P.current=C,z.current=``,y(C),D(e,{role:`assistant`,content:``,id:C}),ne&&le(e,i.trim()),c()){let t=`Demo response for: ${i.trim()}`;I.current=window.setTimeout(()=>{I.current=null,!F.current.has(C)&&(O(e,C,t),r(t),x(!1),G(),y(null),N(!1),P.current=null,R.current=``,z.current=``)},500);return}if(!v){let r=new AbortController,o={sessionId:e,assistantMessageId:C,abort:r};L.current=o;let c=await be(o,await Se({sessionId:e,message:i.trim(),images:a,userMessageId:S,assistantMessageId:C,options:{...g?.settings?.generationOptions??{},...l===void 0?{}:{format:l}},webSearch:u===!0,tools:f===!0,...f===!0&&p?{toolSelection:p}:{},signal:r.signal}));if(c!==`stream`){await J(e,C,{completed:c===`completed`,pending:!1,state:c===`completed`?`succeeded`:`cancelled`}),L.current===o&&(L.current=null);return}for(let r of m??[]){let o=n(),c=new AbortController;ie.current.set(o,c),s.getState().addPendingComparison({sessionId:e,assistantMessageId:o,model:r.model}),(async()=>{try{await Se({sessionId:e,message:i.trim(),images:a,userMessageId:S,assistantMessageId:o,options:{...g?.settings?.generationOptions??{},...l===void 0?{}:{format:l}},webSearch:!1,compare:!0,modelOverride:r,signal:c.signal}),await we({sessionId:e,assistantMessageId:o,signal:c.signal,onEvent:n=>{n.type===`done`?q(e,o):n.type===`error`&&d.error(t(`chat.toasts.comparisonError`,{model:r.model,error:String(n.error??t(`chat.toasts.generationFailed`))}))}})}catch(e){c.signal.aborted||($.error(`Comparison generation failed:`,e),d.error(t(`chat.toasts.comparisonError`,{model:r.model,error:t(`chat.toasts.comparisonFailed`)})))}finally{ie.current.delete(o),s.getState().removePendingComparison(o)}})()}await we({sessionId:e,assistantMessageId:C,signal:r.signal,onEvent:t=>{t.type===`chunk`?h.dispatchMessage(`assistant_chunk`,t):t.type===`done`?h.dispatchMessage(`assistant_complete`,t):typeof t.type==`string`&&(t.type.startsWith(`chat.tool`)||t.type.startsWith(`chat.approval`))?h.dispatchMessage(`tool_event`,t):t.type===`error`&&h.dispatchMessage(`error`,{...t,sessionId:e})}}),L.current?.assistantMessageId===C&&(L.current=null);return}h.isConnected||await h.connect();let T=v?g?.messages?.filter(e=>e.role!==`system`&&e.id!==C).map(e=>({role:e.role,content:e.content,thinking:e.thinking,images:e.images,providerMetadata:e.providerMetadata})):void 0;h.send({type:`chat_stream`,data:{sessionId:e,content:i.trim(),images:a,format:l,options:g?.settings?.generationOptions??{},assistantMessageId:C,isPrivate:v,...u===!0?{webSearch:!0}:{},...v?{model:g?.model,providerType:g?.providerType,providerId:g?.providerId,messageHistory:T}:{}}})}catch(n){let r=ee;if(r&&await ve({sessionId:e,assistantMessageId:r,cancelledMessageIds:F.current,settle:t=>J(e,r,t),onError:e=>$.error(`Failed to resolve cancelled durable chat generation:`,e)})){L.current?.assistantMessageId===r&&(L.current=null);return}if(n instanceof DOMException&&n.name===`AbortError`)return;$.error(`Failed to send message:`,n),x(!1),G(),y(null),N(!1),P.current=null,z.current=``,d.error(t(`chat.toasts.sendFailed`))}},[e,D,O,N,G,le,J,q,r,t]),fe=(0,_.useCallback)(()=>{let n=P.current;if(n){if(f(t(`chat.announce.generationStopped`)),F.current.add(n),I.current!==null)window.clearTimeout(I.current),I.current=null,M(e,n),F.current.delete(n);else if(L.current?.assistantMessageId===n){let t=L.current,r=!t.jobId;_e(t),Q(e,n).then(async i=>{await J(e,n,i,{retainForContinuation:r}),L.current===t&&(L.current=null)}).catch(e=>$.error(`Failed to cancel durable chat generation:`,e)),t.jobId&&Te(t.jobId).catch(e=>$.error(`Failed to cancel durable chat generation:`,e))}else h.send({type:`chat_cancel`,data:{sessionId:e,assistantMessageId:n}})||(M(e,n),F.current.delete(n))}V.current&&=(clearTimeout(V.current),void 0),x(!1),G(),y(null),N(!1),P.current=null,R.current=``,z.current=``},[N,G,M,e,J,t]),pe=(0,_.useCallback)(async()=>{let r=s.getState(),i=r.currentSession;if(!i||!e)return;if(!o(r.models,{model:i.personaId?`persona:${i.personaId}`:i.model,providerType:i.providerType,providerId:i.providerId})){d.error(t(`chat.model.selectBeforeRegenerating`));return}let a=i.messages,c=-1,l=-1;for(let e=a.length-1;e>=0;e--)if(a[e].role===`assistant`){l=e;break}if(l>0){for(let e=l-1;e>=0;e--)if(a[e].role===`user`){c=e;break}}if(c===-1||l===-1){d.error(t(`chat.toasts.noMessageToRegenerate`));return}let u=a[c],f=a[l],p;try{N(!0),x(!0),G(),R.current=``,z.current=``,V.current&&clearTimeout(V.current),B.current=Date.now();let t=n();p=t,P.current=t,z.current=``,y(t),D(e,{role:`assistant`,content:``,id:t,parentId:f.parentId||f.id,branchIndex:f.siblingCount||1,isActive:!0});let r=i.isPrivate===!0;if(!r){let n=new AbortController,r={sessionId:e,assistantMessageId:t,abort:n};L.current=r;let a=await be(r,await Se({sessionId:e,message:u.content,images:u.images,userMessageId:u.id,assistantMessageId:t,options:i.settings?.generationOptions??{},webSearch:!1,regenerate:!0,originalMessageId:f.id,signal:n.signal}));if(a!==`stream`){await J(e,t,{completed:a===`completed`,pending:!1,state:a===`completed`?`succeeded`:`cancelled`}),L.current===r&&(L.current=null);return}await we({sessionId:e,assistantMessageId:t,signal:n.signal,onEvent:t=>{t.type===`chunk`?h.dispatchMessage(`assistant_chunk`,t):t.type===`done`?h.dispatchMessage(`assistant_complete`,t):t.type===`error`&&h.dispatchMessage(`error`,{...t,sessionId:e})}}),L.current?.assistantMessageId===t&&(L.current=null);return}h.isConnected||await h.connect();let o=r?a.filter(e=>e.role!==`system`).map(e=>({role:e.role,content:e.content,thinking:e.thinking,images:e.images,providerMetadata:e.providerMetadata})):void 0;h.send({type:`chat_stream`,data:{sessionId:e,content:u.content,images:u.images,options:i.settings?.generationOptions??{},assistantMessageId:t,regenerate:!0,originalMessageId:f.id,isPrivate:r,...r?{model:i.model,providerType:i.providerType,providerId:i.providerId,messageHistory:o}:{}}})}catch(n){let r=p;if(r&&await ve({sessionId:e,assistantMessageId:r,cancelledMessageIds:F.current,settle:t=>J(e,r,t),onError:e=>$.error(`Failed to resolve cancelled durable chat regeneration:`,e)})){L.current?.assistantMessageId===r&&(L.current=null);return}$.error(`Failed to regenerate message:`,n),r&&M(e,r);try{let t=Oe(e),n=await m.getSession(e);n.success&&n.data&&K(n.data,t)}catch(e){$.error(`Failed to reload session after regenerate:`,e)}x(!1),G(),y(null),N(!1),P.current=null,z.current=``,d.error(t(`chat.toasts.regenerateFailed`))}},[e,N,G,D,M,K,J,t]),me=(0,_.useCallback)(async n=>{let r=s.getState().currentSession;if(!r||!e)return;let i=r.messages.find(e=>e.id===n);if(!i){d.error(t(`chat.toasts.messageNotFound`));return}if(i.isActive!==!1)return;let a=i.parentId||i.id,o=i.branchIndex||0;try{let i=await m.switchMessageBranch(e,n,o);if(i.success&&i.data){let i=r.messages.map(e=>e.id===a||e.parentId===a?{...e,isActive:e.id===n}:e),c={...r,messages:i,updatedAt:Date.now()};s.setState(t=>({sessions:t.sessions.map(t=>t.id===e?c:t),currentSession:c})),d.success(t(`chat.toasts.branchSwitched`,{number:o+1}))}else d.error(i.error||t(`chat.toasts.branchSelectFailed`))}catch(e){$.error(`Failed to select branch:`,e),d.error(t(`chat.toasts.branchSelectFailed`))}},[e,t]),he=(0,_.useCallback)(async(n,r)=>{if(!e||!r.trim())return;let i=s.getState(),a=i.currentSession;if(!a||a.id!==e)return;let o=a.messages.findIndex(e=>e.id===n);if(o===-1||a.messages[o].role!==`user`)return;let c=a.messages[o];try{if(!a.isPrivate){let t=await m.truncateMessagesFrom(e,n);if(!t.success)throw Error(t.error||`Failed to truncate session`)}i.truncateMessagesFrom(e,n),await Y(r,c.images)}catch(e){$.error(`Failed to edit message:`,e),d.error(t(`chat.toasts.editFailed`))}},[e,Y,t]),X=(0,_.useCallback)(async(e,n,r)=>{try{await ee.decideApproval(e,n,r),E(t=>t&&t.approvalId===e?null:t)}catch(e){$.error(`Failed to record the tool decision:`,e),d.error(t(`chat.toasts.toolDecisionFailed`))}},[t]),Z=(0,_.useCallback)(async()=>{if(!e)return;let t=s.getState().currentSession;if(!t||t.id!==e||t.isPrivate||u.getState().isGenerating)return;let n=t.settings?.promptQueue;if(n&&n.length!==0)try{let t=await m.claimQueuedPrompt(e,n[0].id);if(!t.success||!t.data)return;de(e,t.data.queue),await Y(t.data.entry.content)}catch(e){$.error(`Prompt queue drain failed:`,e)}},[e,Y]);return(0,_.useEffect)(()=>{re.current=Z},[Z]),(0,_.useEffect)(()=>{if(!e)return;let t=window.setTimeout(()=>{re.current?.()},400);return()=>window.clearTimeout(t)},[e]),{sendMessage:Y,stopGeneration:fe,cancelComparison:(0,_.useCallback)(async t=>{if(e){ie.current.get(t)?.abort();try{await Q(e,t)}catch(e){$.error(`Failed to cancel the comparison generation:`,e)}finally{s.getState().removePendingComparison(t)}}},[e]),regenerateLastMessage:pe,editAndResendMessage:he,selectBranch:me,isStreaming:b,streamingMessage:l,streamingThinking:te,streamingMessageId:v,toolActivities:ne,activeToolCalls:C,pendingToolApproval:T,decideToolApproval:X}};export{le as a,Y as i,Ae as n,se as o,de as r,De as t};