@usechain/chain-hub 0.0.0-stage → 1.1.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.
- package/LICENSE +21 -0
- package/README.md +209 -2
- package/dist/index.d.ts +9 -0
- package/dist/index.js +32318 -0
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/CatalogPage-DH4aZzR2.js +1 -0
- package/dist/web/assets/CatalogPage-M8VZyfIe.js +1 -0
- package/dist/web/assets/HealthPage-C2uKV9FU.js +1 -0
- package/dist/web/assets/HealthPage-DUbZiwpY.js +1 -0
- package/dist/web/assets/IntegrationsPage-BziKwfEq.js +1 -0
- package/dist/web/assets/IntegrationsPage-rJcPXOty.js +1 -0
- package/dist/web/assets/LearningsPage-DBJ9M7V5.js +2 -0
- package/dist/web/assets/LearningsPage-Da6i4TeB.js +2 -0
- package/dist/web/assets/LibraryPage-BP6IKKuN.js +4 -0
- package/dist/web/assets/LibraryPage-C9uf78JX.js +4 -0
- package/dist/web/assets/MarkdownSourceEditor-CV1ZTZzI.js +39 -0
- package/dist/web/assets/MarkdownSourceEditor-Xh-yr_Pu.js +39 -0
- package/dist/web/assets/OverviewPage-DeApcxoJ.js +1 -0
- package/dist/web/assets/OverviewPage-DhNIr7N8.js +1 -0
- package/dist/web/assets/SettingsPage-BCoxInUI.js +1 -0
- package/dist/web/assets/SettingsPage-BmRmIO3z.js +1 -0
- package/dist/web/assets/SetupPage-BUmmsWEo.js +1 -0
- package/dist/web/assets/SetupPage-CmXMvqM5.js +1 -0
- package/dist/web/assets/SkillRelinkDialog-C5PU7vKu.js +1 -0
- package/dist/web/assets/SkillRelinkDialog-DEY3IqVA.js +1 -0
- package/dist/web/assets/alert-Mr-ofzoN.js +1 -0
- package/dist/web/assets/alert-YumgHBdn.js +1 -0
- package/dist/web/assets/badge-C2BSIZMN.js +1 -0
- package/dist/web/assets/badge-CcASMiB4.js +1 -0
- package/dist/web/assets/format-time-D8VGlAcs.js +1 -0
- package/dist/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/web/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/dist/web/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/dist/web/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/dist/web/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/dist/web/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/dist/web/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/dist/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/web/assets/index-D3L-4LuU.css +1 -0
- package/dist/web/assets/index-ltESF1KS.js +172 -0
- package/dist/web/assets/index-mFc_WQtU.css +1 -0
- package/dist/web/assets/index-ommOzjM4.js +172 -0
- package/dist/web/assets/libesm-CHGPMFhL.js +6 -0
- package/dist/web/assets/select-DJSrFTH0.js +1 -0
- package/dist/web/assets/tabs-B9fkoXIl.js +1 -0
- package/dist/web/assets/utils-BEATUXr4.js +1 -0
- package/dist/web/assets/vendor-react-BgntYnUn.js +12 -0
- package/dist/web/assets/vendor-ui-qVCZmmA-.js +41 -0
- package/dist/web/favicon-32.png +0 -0
- package/dist/web/favicon.svg +2 -0
- package/dist/web/icon-192.png +0 -0
- package/dist/web/icon-512.png +0 -0
- package/dist/web/icon-maskable-512.png +0 -0
- package/dist/web/index.html +37 -0
- package/dist/web/logo.svg +2 -0
- package/dist/web/site.webmanifest +25 -0
- package/package.json +42 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{i as e}from"./utils-BEATUXr4.js";import{J as t,X as n,Z as r}from"./vendor-react-BgntYnUn.js";var i=e(r(),1),a=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function o(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:a(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var s=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},c=e=>{let t=s(e);return t.charAt(0).toUpperCase()+t.slice(1)},l=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),u={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 d(e){return e!=null}function f(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??u.width,a=e.size??e.height??u.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)??[],f=t.includeDefaultClasses===!1?l(...c):l(`lucide`,...s,...c),p=t.absoluteStrokeWidth?Number(t.strokeWidth??u[`stroke-width`])*Number(e.size??e.width??u.width)/Number(t.size??t.width??u.width):t.strokeWidth??u[`stroke-width`];return[`svg`,{...Object.entries(u).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&d(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&d(t.width)&&{[r(`width`)]:t.width},...`height`in t&&d(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:p,...f&&{[r(`class`)]:f},[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 p(e,t={}){return f(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var m=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},h=(0,i.createContext)({}),g=()=>(0,i.useContext)(h),_=(0,i.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:a,absoluteStrokeWidth:o,nonScalingStroke:s,className:c=``,children:u,iconNode:d=[],icon:f={node:d,aliases:[],size:24},...h},_)=>{let{size:v=24,strokeWidth:y=2,absoluteStrokeWidth:b=!1,nonScalingStroke:x=!1,color:S=`currentColor`,className:C=``}=g()??{},w=!!u||m(h),[T,E,D=[]]=p(f,{color:e??S,width:n??t??v,height:r??t??v,strokeWidth:a??y,absoluteStrokeWidth:o??b,nonScalingStroke:s??x,className:l(C,c),hasA11yProp:w,attributes:h});return(0,i.createElement)(T,{ref:_,...E},[...D.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(u)?u:[u]])});function v(e,t=[],n=[]){let r=typeof e==`string`?o(e,t,n):e,a=(0,i.forwardRef)(({className:e,...t},n)=>(0,i.createElement)(_,{ref:n,icon:r,className:e,...t}));return r.name&&(a.displayName=c(r.name)),a}var y={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`}]]};y.node;var b=v(y),x={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};x.node;var S=v(x),C={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};C.node;var w=v(C),T={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};T.node;var E=v(T),D={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`}]]};D.node;var ee=v(D),te={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`}]]};te.node;var ne=v(te),O={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};O.node;var k=v(O),re={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};re.node;var ie=v(re),ae={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};ae.node;var oe=v(ae),se={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};se.node;var ce=v(se),le={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`]};le.node;var ue=v(le),de={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`]};de.node;var fe=v(de),pe={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`]};pe.node;var me=v(pe),he={name:`clipboard-copy`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]};he.node;var ge=v(he),_e={name:`cloud-check`,size:24,node:[[`path`,{d:`m17 15-5.5 5.5L9 18`,key:`15q87x`}],[`path`,{d:`M5.516 16.07A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 3.501 7.327`,key:`1xtj56`}]]};_e.node;var ve=v(_e),ye={name:`cloud-off`,size:24,node:[[`path`,{d:`M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057`,key:`1uxyv8`}],[`path`,{d:`M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78`,key:`99tcn7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};ye.node;var be=v(ye),xe={name:`cloud-upload`,size:24,node:[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]],aliases:[`upload-cloud`]};xe.node;var Se=v(xe),Ce={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`}]]};Ce.node;var we=v(Ce),Te={name:`command`,size:24,node:[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]};Te.node;var Ee=v(Te),De={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`}]]};De.node;var Oe=v(De),ke={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`}]]};ke.node;var Ae=v(ke),je={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`}]]};je.node;var Me=v(je),Ne={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`}]]};Ne.node;var Pe=v(Ne),Fe={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`}]]};Fe.node;var Ie=v(Fe),Le={name:`folder-git-2`,size:24,node:[[`path`,{d:`M18 19a5 5 0 0 1-5-5v8`,key:`sz5oeg`}],[`path`,{d:`M9 20H4a2 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.9H20a2 2 0 0 1 2 2v5`,key:`1w6njk`}],[`circle`,{cx:`13`,cy:`12`,r:`2`,key:`1j92g6`}],[`circle`,{cx:`20`,cy:`19`,r:`2`,key:`1obnsp`}]]};Le.node;var Re=v(Le),ze={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`}]]};ze.node;var Be=v(ze),Ve={name:`folder-tree`,size:24,node:[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]};Ve.node;var He=v(Ve),Ue={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`}]]};Ue.node;var We=v(Ue),Ge={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`}]]};Ge.node;var Ke=v(Ge),qe={name:`heart-pulse`,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`}],[`path`,{d:`M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27`,key:`auskq0`}]]};qe.node;var Je=v(qe),Ye={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};Ye.node;var Xe=v(Ye),Ze={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`}]]};Ze.node;var Qe=v(Ze),$e={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`}]]};$e.node;var et=v($e),tt={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};tt.node;var nt=v(tt),rt={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`}]]};rt.node;var it=v(rt),at={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};at.node;var ot=v(at),st={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`}]]};st.node;var ct=v(st),lt={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`}]]};lt.node;var ut=v(lt),dt={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`}]]};dt.node;var ft=v(dt),pt={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`}]]};pt.node;var mt=v(pt),ht={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`]};ht.node;var gt=v(ht),_t={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`}]]};_t.node;var vt=v(_t),yt={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};yt.node;var bt=v(yt),xt={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`}]]};xt.node;var St=v(xt),Ct={name:`scan-search`,size:24,node:[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]]};Ct.node;var wt=v(Ct),Tt={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Tt.node;var Et=v(Tt),Dt={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`}]]};Dt.node;var Ot=v(Dt),kt={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`}]]};kt.node;var At=v(kt),jt={name:`shield-alert`,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:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};jt.node;var Mt=v(jt),Nt={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`}]]};Nt.node;var Pt=v(Nt),Ft={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`]};Ft.node;var It=v(Ft),Lt={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`]};Lt.node;var Rt=v(Lt),zt={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`}]]};zt.node;var Bt=v(zt),Vt={name:`store`,size:24,node:[[`path`,{d:`M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5`,key:`slp6dd`}],[`path`,{d:`M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244`,key:`o0xfot`}],[`path`,{d:`M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05`,key:`wn3emo`}]]};Vt.node;var Ht=v(Vt),Ut={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`}]]};Ut.node;var Wt=v(Ut),Gt={name:`table`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M3 15h18`,key:`5xshup`}]]};Gt.node;var Kt=v(Gt),qt={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`]};qt.node;var Jt=v(qt),Yt={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`]};Yt.node;var Xt=v(Yt),Zt={name:`unlink`,size:24,node:[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]};Zt.node;var Qt=v(Zt),$t={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`}]]};$t.node;var en=v($t),tn={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};tn.node;var nn=v(tn),rn=1,an=.9,on=.8,sn=.17,cn=.1,ln=.999,un=.9999,dn=.99,fn=/[\\\/_+.#"@\[\(\{&]/,pn=/[\\\/_+.#"@\[\(\{&]/g,mn=/[\s-]/,hn=/[\s-]/g;function gn(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?rn:dn;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=gn(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=rn:fn.test(e.charAt(l-1))?(d*=on,p=e.slice(i,l-1).match(pn),p&&i>0&&(d*=ln**+p.length)):mn.test(e.charAt(l-1))?(d*=an,m=e.slice(i,l-1).match(hn),m&&i>0&&(d*=ln**+m.length)):(d*=sn,i>0&&(d*=ln**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=un)),(d<cn&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=gn(e,t,n,r,l+1,a+2,o),f*cn>d&&(d=f*cn)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function _n(e){return e.toLowerCase().replace(hn,` `)}function vn(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,gn(e,t,_n(e),_n(t),0,0,{})}var yn=Object.defineProperty,bn=(e,t)=>yn(e,`name`,{value:t,configurable:!0}),xn=!!(typeof window<`u`&&window.document&&window.document.createElement);function A(e,t,{checkForDefaultPrevented:n=!0}={}){return bn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}bn(A,`composeEventHandlers`);function Sn(e){if(!xn)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}bn(Sn,`getOwnerWindow`);function Cn(e){if(!xn)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}bn(Cn,`getOwnerDocument`);function wn(e,t=!1){let{activeElement:n}=Cn(e);if(!n?.nodeName)return null;if(Tn(n)&&n.contentDocument)return wn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Cn(n).getElementById(e);if(t)return t}}return n}bn(wn,`getActiveElement`);function Tn(e){return e.tagName===`IFRAME`}bn(Tn,`isFrame`);var En=Object.defineProperty,Dn=(e,t)=>En(e,`name`,{value:t,configurable:!0});function On(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Dn(On,`setRef`);function j(...e){return t=>{let n=!1,r=e.map(e=>{let r=On(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():On(e[t],null)}}}}Dn(j,`composeRefs`);function M(...e){return i.useCallback(j(...e),e)}Dn(M,`useComposedRefs`);var N=t(),kn=Object.defineProperty,P=(e,t)=>kn(e,`name`,{value:t,configurable:!0});function An(e,t){let n=i.createContext(t);n.displayName=e+`Context`;let r=P(e=>{let{children:t,...r}=e,a=i.useMemo(()=>r,Object.values(r));return(0,N.jsx)(n.Provider,{value:a,children:t})},`Provider`);r.displayName=e+`Provider`;function a(r,a={}){let{optional:o=!1}=a,s=i.useContext(n);if(s)return s;if(t!==void 0)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return P(a,`useContext`),[r,a]}P(An,`createContext`);function jn(e,t=[]){let n=[];function r(t,r){let a=i.createContext(r);a.displayName=t+`Context`;let o=n.length;n=[...n,r];let s=P(t=>{let{scope:n,children:r,...s}=t,c=n?.[e]?.[o]||a,l=i.useMemo(()=>s,Object.values(s));return(0,N.jsx)(c.Provider,{value:l,children:r})},`Provider`);s.displayName=t+`Provider`;function c(n,s,c={}){let{optional:l=!1}=c,u=s?.[e]?.[o]||a,d=i.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return P(c,`useContext`),[s,c]}P(r,`createContext`);let a=P(()=>{let t=n.map(e=>i.createContext(e));return P(function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return a.scopeName=e,[r,Mn(a,...t)]}P(jn,`createContextScope`);function Mn(...e){let t=e[0];if(e.length===1)return t;let n=P(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return P(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}P(Mn,`composeContextScopes`);var F=globalThis?.document?i.useLayoutEffect:()=>{},Nn=Object.defineProperty,Pn=(e,t)=>Nn(e,`name`,{value:t,configurable:!0}),Fn=i.useId||(()=>void 0),In=0;function I(e){let[t,n]=i.useState(Fn());return F(()=>{e||n(e=>e??String(In++))},[e]),e||(t?`radix-${t}`:``)}Pn(I,`useId`);var Ln=Object.defineProperty,Rn=(e,t)=>Ln(e,`name`,{value:t,configurable:!0}),zn=i.useEffectEvent,Bn=i.useInsertionEffect;function Vn(e){if(typeof zn==`function`)return zn(e);let t=i.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Bn==`function`?Bn(()=>{t.current=e}):F(()=>{t.current=e}),i.useMemo(()=>((...e)=>t.current?.(...e)),[])}Rn(Vn,`useEffectEvent`);var Hn=Object.defineProperty,Un=(e,t)=>Hn(e,`name`,{value:t,configurable:!0}),Wn=i.useInsertionEffect||F;function Gn({prop:e,defaultProp:t,onChange:n=Un(()=>{},`onChange`),caller:r}){let[a,o,s]=Kn({defaultProp:t,onChange:n}),c=e!==void 0;return[c?e:a,i.useCallback(t=>{if(c){let n=qn(t)?t(e):t;n!==e&&s.current?.(n)}else o(t)},[c,e,o,s])]}Un(Gn,`useControllableState`);function Kn({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),a=i.useRef(n),o=i.useRef(t);return Wn(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}Un(Kn,`useUncontrolledState`);function qn(e){return typeof e==`function`}Un(qn,`isFunction`);var Jn=Symbol(`RADIX:SYNC_STATE`);function Yn(e,t,n,r){let{prop:a,defaultProp:o,onChange:s,caller:c}=t,l=a!==void 0,u=Vn(s),d=[{...n,state:o}];r&&d.push(r);let[f,p]=i.useReducer((t,n)=>{if(n.type===Jn)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=i.useRef(m);i.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=i.useMemo(()=>a===void 0?f:{...f,state:a},[f,a]);return i.useEffect(()=>{l&&!Object.is(a,f.state)&&p({type:Jn,state:a})},[a,f.state,l]),[g,p]}Un(Yn,`useControllableStateReducer`);var Xn=e(n(),1),Zn=Object.defineProperty,L=(e,t)=>Zn(e,`name`,{value:t,configurable:!0});function Qn(e){let t=i.forwardRef((t,n)=>{let{children:r,...a}=t,o=null,s=!1,c=[];r=cr(r),i.Children.forEach(r,e=>{if(ir(e)){s=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;or(n)&&typeof fr==`function`;)n=fr(n._payload);o=tr(t,n),c.push(o?.props?.children)}else c.push(e)}),o?o=i.cloneElement(o,void 0,c):!s&&i.Children.count(r)===1&&i.isValidElement(r)&&(o=r);let l=o?rr(o):void 0,u=M(n,l);if(!o){if(r||r===0)throw Error(s?dr(e):ur(e));return r}let d=nr(a,o.props??{});return o.type!==i.Fragment&&(d.ref=n?u:l),i.cloneElement(o,d)});return t.displayName=`${e}.Slot`,t}L(Qn,`createSlot`);var $n=Symbol.for(`radix.slottable`);function er(e){let t=L(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=$n,t}L(er,`createSlottable`);var tr=L((e,t)=>`child`in e.props?i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null:i.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function nr(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=lr(a,i))}return{...e,...n}}L(nr,`mergeProps`);function rr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}L(rr,`getElementRef`);function ir(e){return i.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===$n}L(ir,`isSlottable`);var ar=Symbol.for(`react.lazy`);function or(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ar&&`_payload`in e&&sr(e._payload)}L(or,`isLazyComponent`);function sr(e){return typeof e==`object`&&!!e&&`then`in e}L(sr,`isPromiseLike`);function cr(e){let t=e;for(;or(t)&&typeof fr==`function`;)t=fr(t._payload);return t}L(cr,`useUnwrappedLazy`);function lr(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}L(lr,`concatAriaDescribedby`);var ur=L(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),dr=L(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),fr=i.use,pr=Object.defineProperty,mr=(e,t)=>pr(e,`name`,{value:t,configurable:!0}),R=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Qn(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,N.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hr(e,t){e&&Xn.flushSync(()=>e.dispatchEvent(t))}mr(hr,`dispatchDiscreteCustomEvent`);var gr=Object.defineProperty,_r=(e,t)=>gr(e,`name`,{value:t,configurable:!0}),vr=i.useInsertionEffect;function z(e){let t=i.useRef(e);return typeof vr==`function`?vr(()=>{t.current=e}):F(()=>{t.current=e}),i.useMemo(()=>((...e)=>t.current?.(...e)),[])}_r(z,`useCallbackRef`);var yr=Object.defineProperty,B=(e,t)=>yr(e,`name`,{value:t,configurable:!0}),br=`dismissableLayer.update`,xr=`dismissableLayer.pointerDownOutside`,Sr=`dismissableLayer.focusOutside`,Cr,wr=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Tr=i.forwardRef(B(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...u}=e,d=i.useContext(wr),[f,p]=i.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=i.useState({}),g=M(t,p),_=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=v?_.indexOf(v):-1,b=f?_.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=i.useRef(!1),w=Or(e=>{o?.(e),c?.(e),e.defaultPrevented||l?.()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return S&&!t},[d.branches,S])}),T=kr(e=>{if(r&&C.current)return;let t=e.target;[...d.branches].some(e=>e.contains(t))||(s?.(e),c?.(e),e.defaultPrevented||l?.())},m),E=f?b===_.length-1:!1,D=z(e=>{e.key===`Escape`&&(a?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))});return i.useEffect(()=>{if(E)return m.addEventListener(`keydown`,D,{capture:!0}),()=>m.removeEventListener(`keydown`,D,{capture:!0})},[m,E,D]),i.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Cr=m.body.style.pointerEvents,m.body.style.pointerEvents=`none`),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ar(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Cr))}},[f,m,n,d]),i.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ar())},[f,d]),i.useEffect(()=>{let e=B(()=>h({}),`handleUpdate`);return document.addEventListener(br,e),()=>document.removeEventListener(br,e)},[]),(0,N.jsx)(R.div,{...u,ref:g,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:A(e.onFocusCapture,T.onFocusCapture),onBlurCapture:A(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function Er(){let e=i.useContext(wr),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}B(Er,`useDismissableLayerSurface`);var Dr=B(()=>!0,`IS_TRUE`);function Or(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:o,shouldHandlePointerDownOutside:s=Dr}=t,c=z(e),l=i.useRef(!1),u=i.useRef(!1),d=i.useRef(new Map),f=i.useRef(()=>{});return i.useEffect(()=>{function e(){u.current=!1,a.current=!1,d.current.clear()}B(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}B(t,`isOutsideInteractionIntercepted`);function i(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}B(i,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}B(p,`handleInteractionBubble`);let m=B(i=>{if(i.target&&!l.current){let o=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||jr(xr,c,p,{discrete:!0})};if(B(o,`handleAndDispatchPointerDownOutsideEvent`),!s(i.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:i};u.current=!0,a.current=r&&i.button===0,d.current.clear(),!r||i.button!==0?o():(n.removeEventListener(`click`,f.current),f.current=o,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,i,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,i,!0),n.removeEventListener(e,p)}},[n,c,r,a,o,s]),{onPointerDownCapture:B(()=>l.current=!0,`onPointerDownCapture`)}}B(Or,`usePointerDownOutside`);function kr(e,t=globalThis?.document){let n=z(e),r=i.useRef(!1);return i.useEffect(()=>{let e=B(e=>{e.target&&!r.current&&jr(Sr,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:B(()=>r.current=!0,`onFocusCapture`),onBlurCapture:B(()=>r.current=!1,`onBlurCapture`)}}B(kr,`useFocusOutside`);function Ar(){let e=new CustomEvent(br);document.dispatchEvent(e)}B(Ar,`dispatchUpdate`);function jr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?hr(i,a):i.dispatchEvent(a)}B(jr,`handleAndDispatchCustomEvent`);var Mr=Object.defineProperty,V=(e,t)=>Mr(e,`name`,{value:t,configurable:!0}),Nr=`focusScope.autoFocusOnMount`,Pr=`focusScope.autoFocusOnUnmount`,Fr={bubbles:!1,cancelable:!0},Ir=i.forwardRef(V(function(e,t){let{loop:n=!1,trapped:r=!1,branches:a,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[l,u]=i.useState(null),d=z(o),f=z(s),p=i.useRef(null),m=M(t,u),h=i.useRef(a);i.useEffect(()=>{h.current=a});let g=i.useCallback(e=>e?l?.contains(e)?!0:!!h.current?.some(t=>t.contains(e)):!1,[l]),_=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(_.paused||!l)return;let t=e.target;g(t)?p.current=t:H(p.current,{select:!0})},t=function(e){if(_.paused||!l)return;let t=e.relatedTarget;t!==null&&(g(t)||H(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&H(l)};V(e,`handleFocusIn`),V(t,`handleFocusOut`),V(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,l,_.paused,g]),i.useEffect(()=>{if(l){qr.add(_);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(Nr,Fr);l.addEventListener(Nr,d),l.dispatchEvent(t),t.defaultPrevented||(Vr(Xr(Ur(l)),{select:!0}),document.activeElement===e&&H(l))}return()=>{l.removeEventListener(Nr,d);let t=l.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Pr,Fr);l.addEventListener(Pr,f),l.dispatchEvent(r),r.defaultPrevented||H(e??t.body,{select:!0}),l.removeEventListener(Pr,f),qr.remove(_)},0)}}},[l,d,f,_]);let v=i.useCallback(e=>{if(!n&&!r||_.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Hr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&H(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&H(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,_.paused]);return(0,N.jsx)(R.div,{tabIndex:-1,...c,ref:m,onKeyDown:v})},`FocusScope`)),Lr=i.createContext(null);function Rr({registry:e,children:t}){return e?(0,N.jsx)(Lr.Provider,{value:e,children:t}):t}V(Rr,`FocusScopeBranchProvider`);function zr(){let[e,t]=i.useState([]);return{nodes:e,registry:i.useMemo(()=>({add:V(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:V(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}V(zr,`useFocusScopeBranchRegistry`);function Br(e){let t=i.useContext(Lr);i.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}V(Br,`useFocusScopeBranch`);function Vr(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(H(r,{select:t}),document.activeElement!==n)return}V(Vr,`focusFirst`);function Hr(e){let t=Ur(e);return[Wr(t,e),Wr(t.reverse(),e)]}V(Hr,`getTabbableEdges`);function Ur(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:V(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}V(Ur,`getTabbableCandidates`);function Wr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Gr(r,{upTo:t})))return r}V(Wr,`findVisible`);function Gr(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}V(Gr,`isHidden`);function Kr(e){return e.tagName===`INPUT`&&typeof e.select==`function`}V(Kr,`isSelectableInput`);function H(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&Kr(e)&&t&&e.select()}}V(H,`focus`);var qr=Jr();function Jr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Yr(e,t),e.unshift(t)},remove(t){e=Yr(e,t),e[0]?.resume()}}}V(Jr,`createFocusScopesStack`);function Yr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}V(Yr,`arrayRemove`);function Xr(e){return e.filter(e=>e.tagName!==`A`)}V(Xr,`removeLinks`);var Zr=Object.defineProperty,Qr=i.forwardRef(((e,t)=>Zr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[a,o]=i.useState(!1);F(()=>o(!0),[]);let s=n||a&&globalThis?.document?.body;return s?Xn.createPortal((0,N.jsx)(R.div,{...r,ref:t}),s):null},`Portal`)),$r=Object.defineProperty,U=(e,t)=>$r(e,`name`,{value:t,configurable:!0});function ei(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}U(ei,`useStateMachine`);var ti=U(e=>{let{present:t,children:n}=e,r=ni(t),a=typeof n==`function`?n({present:r.isPresent}):i.Children.only(n),o=ii(r.ref,ai(a));return typeof n==`function`||r.isPresent?i.cloneElement(a,{ref:o}):null},`Presence`);function ni(e){let[t,n]=i.useState(),r=i.useRef(null),a=i.useRef(e),o=i.useRef(`none`),s=i.useRef(void 0),[c,l]=ei(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return i.useEffect(()=>{c===`mounted`?(o.current=s.current??W(r.current),s.current=void 0):o.current=`none`},[c]),F(()=>{let t=r.current,n=a.current;if(n!==e){let r=o.current,i=W(t);e?(s.current=i,l(`MOUNT`)):i===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),a.current=e}},[e,l]),F(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=U(i=>{let o=W(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&o&&(l(`ANIMATION_END`),!a.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=U(e=>{e.target===t&&(o.current=W(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,i),t.addEventListener(`animationend`,i),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,i),t.removeEventListener(`animationend`,i)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(c),ref:i.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,s.current=W(t)}else r.current=null;n(e)},[])}}U(ni,`usePresence`);function ri(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}U(ri,`setRef`);function ii(...e){let t=i.useRef(e);return t.current=e,i.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=ri(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():ri(n[e],null)}}},[])}U(ii,`useStableComposedRefs`);function W(e){return e?.animationName||`none`}U(W,`getAnimationName`);function ai(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}U(ai,`getElementRef`);var oi=Object.defineProperty,si=(e,t)=>oi(e,`name`,{value:t,configurable:!0}),ci=0,li=null;function ui(e){return di(),e.children}si(ui,`FocusGuards`);function di(){i.useEffect(()=>{li||={start:fi(),end:fi()};let{start:e,end:t}=li;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),ci++,()=>{ci===1&&(li?.start.remove(),li?.end.remove(),li=null),ci=Math.max(0,ci-1)}},[])}si(di,`useFocusGuards`);function fi(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}si(fi,`createFocusGuard`);var G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},G.apply(this,arguments)};function pi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function mi(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var hi=`right-scroll-bar-position`,gi=`width-before-scroll-bar`,_i=`with-scroll-bars-hidden`,vi=`--removed-body-scroll-bar-size`;function yi(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function bi(e,t){var n=(0,i.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var xi=typeof window<`u`?i.useLayoutEffect:i.useEffect,Si=new WeakMap;function Ci(e,t){var n=bi(t||null,function(t){return e.forEach(function(e){return yi(e,t)})});return xi(function(){var t=Si.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||yi(e,null)}),i.forEach(function(e){r.has(e)||yi(e,a)})}Si.set(n,e)},[e]),n}function wi(e){return e}function Ti(e,t){t===void 0&&(t=wi);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ei(e){e===void 0&&(e={});var t=Ti(null);return t.options=G({async:!0,ssr:!1},e),t}var Di=function(e){var t=e.sideCar,n=pi(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return i.createElement(r,G({},n))};Di.isSideCarExport=!0;function Oi(e,t){return e.useMedium(t),Di}var ki=Ei(),Ai=function(){},ji=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:Ai,onWheelCapture:Ai,onTouchMoveCapture:Ai}),a=r[0],o=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=pi(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Ci([n,t]),w=G(G({},x),a);return i.createElement(i.Fragment,null,d&&i.createElement(S,{sideCar:ki,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:n,gapMode:b}),s?i.cloneElement(i.Children.only(c),G(G({},w),{ref:C})):i.createElement(y,G({},w,{className:l,ref:C}),c))});ji.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ji.classNames={fullWidth:gi,zeroRight:hi};var Mi=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ni(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Mi();return t&&e.setAttribute(`nonce`,t),e}function Pi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Fi(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ii=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ni())&&(Pi(t,n),Fi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Li=function(){var e=Ii();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ri=function(){var e=Li();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},zi={left:0,top:0,right:0,gap:0},Bi=function(e){return parseInt(e||``,10)||0},Vi=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Bi(n),Bi(r),Bi(i)]},Hi=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return zi;var t=Vi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ui=Ri(),Wi=`data-scroll-locked`,Gi=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
2
|
+
.${_i} {
|
|
3
|
+
overflow: hidden ${r};
|
|
4
|
+
padding-right: ${s}px ${r};
|
|
5
|
+
}
|
|
6
|
+
body[${Wi}] {
|
|
7
|
+
overflow: hidden ${r};
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
10
|
+
padding-left: ${i}px;
|
|
11
|
+
padding-top: ${a}px;
|
|
12
|
+
padding-right: ${o}px;
|
|
13
|
+
margin-left:0;
|
|
14
|
+
margin-top:0;
|
|
15
|
+
margin-right: ${s}px ${r};
|
|
16
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.${hi} {
|
|
20
|
+
right: ${s}px ${r};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.${gi} {
|
|
24
|
+
margin-right: ${s}px ${r};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.${hi} .${hi} {
|
|
28
|
+
right: 0 ${r};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.${gi} .${gi} {
|
|
32
|
+
margin-right: 0 ${r};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
body[${Wi}] {
|
|
36
|
+
${vi}: ${s}px;
|
|
37
|
+
}
|
|
38
|
+
`},Ki=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},qi=function(){i.useEffect(function(){return document.body.setAttribute(Wi,(Ki()+1).toString()),function(){var e=Ki()-1;e<=0?document.body.removeAttribute(Wi):document.body.setAttribute(Wi,e.toString())}},[])},Ji=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?`margin`:r;qi();var o=i.useMemo(function(){return Hi(a)},[a]);return i.createElement(Ui,{styles:Gi(o,!t,a,n?``:`!important`)})},Yi=!1;if(typeof window<`u`)try{var Xi=Object.defineProperty({},"passive",{get:function(){return Yi=!0,!0}});window.addEventListener(`test`,Xi,Xi),window.removeEventListener(`test`,Xi,Xi)}catch{Yi=!1}var K=Yi?{passive:!1}:!1,Zi=function(e){return e.tagName===`TEXTAREA`},Qi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Zi(e)&&n[t]===`visible`)},$i=function(e){return Qi(e,`overflowY`)},ea=function(e){return Qi(e,`overflowX`)},ta=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ia(e,r)){var i=aa(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},na=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},ra=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ia=function(e,t){return e===`v`?$i(t):ea(t)},aa=function(e,t){return e===`v`?na(t):ra(t)},oa=function(e,t){return e===`h`&&t===`rtl`?-1:1},sa=function(e,t,n,r,i){var a=oa(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=aa(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ia(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},ca=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},la=function(e){return[e.deltaX,e.deltaY]},ua=function(e){return e&&`current`in e?e.current:e},da=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fa=function(e){return`
|
|
39
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
40
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
41
|
+
`},pa=0,q=[];function ma(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),a=i.useState(pa++)[0],o=i.useState(Ri)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=mi([e.lockRef.current],(e.shards||[]).map(ua),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var i=ca(e),a=n.current,o=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=ta(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ta(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(o||c)&&(r.current=l),!l)return!0;var h=r.current||l;return sa(h,t,e,h===`h`?o:c,!0)},[]),l=i.useCallback(function(e){var n=e;if(q.length&&q[q.length-1]===o){var r=`deltaY`in n?la(n):ca(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&da(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var a=(s.current.shards||[]).map(ua).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?c(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=i.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ha(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=i.useCallback(function(e){n.current=ca(e),r.current=void 0},[]),f=i.useCallback(function(t){u(t.type,la(t),t.target,c(t,e.lockRef.current))},[]),p=i.useCallback(function(t){u(t.type,ca(t),t.target,c(t,e.lockRef.current))},[]);i.useEffect(function(){return q.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,K),document.addEventListener(`touchmove`,l,K),document.addEventListener(`touchstart`,d,K),function(){q=q.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,K),document.removeEventListener(`touchmove`,l,K),document.removeEventListener(`touchstart`,d,K)}},[]);var m=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(o,{styles:fa(a)}):null,m?i.createElement(Ji,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ha(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ga=Oi(ki,ma),_a=i.forwardRef(function(e,t){return i.createElement(ji,G({},e,{ref:t,sideCar:ga}))});_a.classNames=ji.classNames;var va=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},J=new WeakMap,ya=new WeakMap,ba={},xa=0,Sa=function(e){return e&&(e.host||Sa(e.parentNode))},Ca=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Sa(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},wa=function(e,t,n,r){var i=Ca(t,Array.isArray(e)?e:[e]);ba[n]||(ba[n]=new WeakMap);var a=ba[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(J.get(e)||0)+1,l=(a.get(e)||0)+1;J.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ya.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),xa++,function(){o.forEach(function(e){var t=J.get(e)-1,i=a.get(e)-1;J.set(e,t),a.set(e,i),t||(ya.has(e)||e.removeAttribute(r),ya.delete(e)),i||e.removeAttribute(n)}),xa--,xa||(J=new WeakMap,J=new WeakMap,ya=new WeakMap,ba={})}},Ta=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||va(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),wa(r,i,n,`aria-hidden`)):function(){return null}},Ea=Object.defineProperty,Y=(e,t)=>Ea(e,`name`,{value:t,configurable:!0}),Da=`Dialog`,[Oa,ka]=jn(Da),[Aa,X]=Oa(Da),ja=Y(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=i.useRef(null),l=i.useRef(null),{nodes:u,registry:d}=zr(),[f,p]=Gn({prop:r,defaultProp:a??!1,onChange:o,caller:Da}),[m,h]=i.useState(0),[g,_]=i.useState(0);return(0,N.jsx)(Aa,{scope:t,triggerRef:c,contentRef:l,contentId:I(),titleId:I(),descriptionId:I(),titlePresent:m>0,descriptionPresent:g>0,setTitleCount:h,setDescriptionCount:_,open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(e=>!e),[p]),modal:s,branchNodes:u,branchRegistry:d,children:n})},`Dialog`),Ma=`DialogPortal`,[Na,Pa]=Oa(Ma,{forceMount:void 0}),Fa=Y(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=X(Ma,t);return(0,N.jsx)(Na,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,N.jsx)(ti,{present:n||o.open,children:(0,N.jsx)(Qr,{asChild:!0,container:a,children:e})}))})},`DialogPortal`),Ia=`DialogOverlay`,La=i.forwardRef(Y(function(e,t){let n=Pa(Ia,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=X(Ia,e.__scopeDialog);return a.modal?(0,N.jsx)(ti,{present:r||a.open,children:(0,N.jsx)(za,{...i,ref:t})}):null},`DialogOverlay`)),Ra=Qn(`DialogOverlay.RemoveScroll`),za=i.forwardRef(Y(function(e,t){let{__scopeDialog:n,...r}=e,a=X(Ia,n),o=M(t,Er());return(0,N.jsx)(_a,{as:Ra,allowPinchZoom:!0,shards:i.useMemo(()=>[a.contentRef,...a.branchNodes.map(e=>({current:e}))],[a.contentRef,a.branchNodes]),children:(0,N.jsx)(R.div,{"data-state":Ka(a.open),...r,ref:o,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Ba=`DialogContent`,Va=i.forwardRef(Y(function(e,t){let n=Pa(Ba,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=X(Ba,e.__scopeDialog);return(0,N.jsx)(ti,{present:r||a.open,children:a.modal?(0,N.jsx)(Ha,{...i,ref:t}):(0,N.jsx)(Ua,{...i,ref:t})})},`DialogContent`)),Ha=i.forwardRef(Y(function(e,t){let n=X(Ba,e.__scopeDialog),r=i.useRef(null),a=M(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return Ta(e)},[]),(0,N.jsx)(Wa,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:A(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:A(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Ua=i.forwardRef(Y(function(e,t){let n=X(Ba,e.__scopeDialog),r=i.useRef(!1),a=i.useRef(!1);return(0,N.jsx)(Wa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&a.current&&t.preventDefault()}})},`DialogContentNonModal`)),Wa=i.forwardRef(Y(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=X(Ba,n);return di(),(0,N.jsx)(Rr,{registry:l.branchRegistry,children:(0,N.jsx)(Ir,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,N.jsx)(Tr,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?Ga(o,l.descriptionId):o,"data-state":Ka(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`));function Ga(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Y(Ga,`concatAriaDescribedby`);function Ka(e){return e?`open`:`closed`}Y(Ka,`getState`);var qa=`[cmdk-group=""]`,Ja=`[cmdk-group-items=""]`,Ya=`[cmdk-group-heading=""]`,Xa=`[cmdk-item=""]`,Za=`${Xa}:not([aria-disabled="true"])`,Qa=`cmdk-item-select`,Z=`data-value`,$a=(e,t,n)=>vn(e,t,n),eo=i.createContext(void 0),to=()=>i.useContext(eo),no=i.createContext(void 0),ro=()=>i.useContext(no),io=i.createContext(void 0),ao=i.forwardRef((e,t)=>{let n=yo(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),r=yo(()=>new Set),a=yo(()=>new Map),o=yo(()=>new Map),s=yo(()=>new Set),c=vo(e),{label:l,children:u,value:d,onValueChange:f,filter:p,shouldFilter:m,loop:h,disablePointerSelection:g=!1,vimBindings:_=!0,...v}=e,y=I(),b=I(),x=I(),S=i.useRef(null),C=xo();Q(()=>{if(d!==void 0){let e=d.trim();n.current.value=e,w.emit()}},[d]),Q(()=>{C(6,ne)},[]);let w=i.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)te(),D(),C(1,ee);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(x);e?e.focus():(i=document.getElementById(y))==null||i.focus()}if(C(7,()=>{n.current.selectedItemId=O()?.id,w.emit()}),r||C(5,ne),c.current?.value!==void 0){let e=t??``;(o=(a=c.current).onValueChange)==null||o.call(a,e);return}}w.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),T=i.useMemo(()=>({value:(e,t,r)=>{t!==o.current.get(e)?.value&&(o.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),C(2,()=>{D(),w.emit()}))},item:(e,t)=>(r.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),C(3,()=>{te(),D(),n.current.value||ee(),w.emit()}),()=>{o.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=O();C(4,()=>{te(),t?.getAttribute(`id`)===e&&ee(),w.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>c.current.shouldFilter,label:l||e[`aria-label`],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:y,inputId:x,labelId:b,listInnerRef:S}),[]);function E(e,t){let r=c.current?.filter??$a;return e?r(e,n.current.search,t):0}function D(){if(!n.current.search||c.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=a.current.get(n),i=0;r.forEach(t=>{let n=e.get(t);i=Math.max(n,i)}),t.push([n,i])});let r=S.current;k().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(Ja);t?t.appendChild(e.parentElement===t?e:e.closest(`${Ja} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Ja} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=S.current?.querySelector(`${qa}[${Z}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function ee(){let e=k().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(Z);w.setState(`value`,e||void 0)}function te(){if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of r.current){let r=E(o.current.get(t)?.value??``,o.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of a.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function ne(){var e;let t=O();t&&(t.parentElement?.firstChild===t&&((e=t.closest(qa)?.querySelector(Ya))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function O(){return S.current?.querySelector(`${Xa}[aria-selected="true"]`)}function k(){return Array.from(S.current?.querySelectorAll(Za)||[])}function re(e){let t=k()[e];t&&w.setState(`value`,t.getAttribute(Z))}function ie(e){var t;let n=O(),r=k(),i=r.findIndex(e=>e===n),a=r[i+e];(t=c.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState(`value`,a.getAttribute(Z))}function ae(e){let t=O()?.closest(qa),n;for(;t&&!n;)t=e>0?go(t,qa):_o(t,qa),n=t?.querySelector(Za);n?w.setState(`value`,n.getAttribute(Z)):ie(e)}let oe=()=>re(k().length-1),se=e=>{e.preventDefault(),e.metaKey?oe():e.altKey?ae(1):ie(1)},ce=e=>{e.preventDefault(),e.metaKey?re(0):e.altKey?ae(-1):ie(-1)};return i.createElement(R.div,{ref:t,tabIndex:-1,...v,"cmdk-root":``,onKeyDown:e=>{var t;(t=v.onKeyDown)==null||t.call(v,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:_&&e.ctrlKey&&se(e);break;case`ArrowDown`:se(e);break;case`p`:case`k`:_&&e.ctrlKey&&ce(e);break;case`ArrowUp`:ce(e);break;case`Home`:e.preventDefault(),re(0);break;case`End`:e.preventDefault(),oe();break;case`Enter`:{e.preventDefault();let t=O();if(t){let e=new Event(Qa);t.dispatchEvent(e)}}}}},i.createElement(`label`,{"cmdk-label":``,htmlFor:T.inputId,id:T.labelId,style:wo},l),Co(e,e=>i.createElement(no.Provider,{value:w},i.createElement(eo.Provider,{value:T},e))))}),oo=i.forwardRef((e,t)=>{let n=I(),r=i.useRef(null),a=i.useContext(io),o=to(),s=vo(e),c=s.current?.forceMount??a?.forceMount;Q(()=>{if(!c)return o.item(n,a?.id)},[c]);let l=bo(n,r,[e.value,e.children,r],e.keywords),u=ro(),d=$(e=>e.value&&e.value===l.current),f=$(e=>c||o.filter()===!1?!0:!e.search||e.filtered.items.get(n)>0);i.useEffect(()=>{let t=r.current;if(t&&!e.disabled)return t.addEventListener(Qa,p),()=>t.removeEventListener(Qa,p)},[f,e.onSelect,e.disabled]);function p(){var e,t;m(),(t=(e=s.current).onSelect)==null||t.call(e,l.current)}function m(){u.setState(`value`,l.current,!0)}if(!f)return null;let{disabled:h,value:g,onSelect:_,forceMount:v,keywords:y,...b}=e;return i.createElement(R.div,{ref:j(r,t),...b,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!h,"aria-selected":!!d,"data-disabled":!!h,"data-selected":!!d,onPointerMove:h||o.getDisablePointerSelection()?void 0:m,onClick:h?void 0:p},e.children)}),so=i.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,s=I(),c=i.useRef(null),l=i.useRef(null),u=I(),d=to(),f=$(e=>a||d.filter()===!1?!0:!e.search||e.filtered.groups.has(s));Q(()=>d.group(s),[]),bo(s,c,[e.value,e.heading,l]);let p=i.useMemo(()=>({id:s,forceMount:a}),[a]);return i.createElement(R.div,{ref:j(c,t),...o,"cmdk-group":``,role:`presentation`,hidden:!f||void 0},n&&i.createElement(`div`,{ref:l,"cmdk-group-heading":``,"aria-hidden":!0,id:u},n),Co(e,e=>i.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?u:void 0},i.createElement(io.Provider,{value:p},e))))}),co=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=i.useRef(null),o=$(e=>!e.search);return!n&&!o?null:i.createElement(R.div,{ref:j(a,t),...r,"cmdk-separator":``,role:`separator`})}),lo=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,o=ro(),s=$(e=>e.search),c=$(e=>e.selectedItemId),l=to();return i.useEffect(()=>{e.value!=null&&o.setState(`search`,e.value)},[e.value]),i.createElement(R.input,{ref:t,...r,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":c,id:l.inputId,type:`text`,value:a?e.value:s,onChange:e=>{a||o.setState(`search`,e.target.value),n?.(e.target.value)}})}),uo=i.forwardRef((e,t)=>{let{children:n,label:r=`Suggestions`,...a}=e,o=i.useRef(null),s=i.useRef(null),c=$(e=>e.selectedItemId),l=to();return i.useEffect(()=>{if(s.current&&o.current){let e=s.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement(R.div,{ref:j(o,t),...a,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:l.listId},Co(e,e=>i.createElement(`div`,{ref:j(s,l.listInnerRef),"cmdk-list-sizer":``},e)))}),fo=i.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:s,...c}=e;return i.createElement(ja,{open:n,onOpenChange:r},i.createElement(Fa,{container:s},i.createElement(La,{"cmdk-overlay":``,className:a}),i.createElement(Va,{"aria-label":e.label,"cmdk-dialog":``,className:o},i.createElement(ao,{ref:t,...c}))))}),po=i.forwardRef((e,t)=>$(e=>e.filtered.count===0)?i.createElement(R.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),mo=i.forwardRef((e,t)=>{let{progress:n,children:r,label:a=`Loading...`,...o}=e;return i.createElement(R.div,{ref:t,...o,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Co(e,e=>i.createElement(`div`,{"aria-hidden":!0},e)))}),ho=Object.assign(ao,{List:uo,Item:oo,Input:lo,Group:so,Separator:co,Dialog:fo,Empty:po,Loading:mo});function go(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function _o(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function vo(e){let t=i.useRef(e);return Q(()=>{t.current=e}),t}var Q=typeof window>`u`?i.useEffect:i.useLayoutEffect;function yo(e){let t=i.useRef();return t.current===void 0&&(t.current=e()),t}function $(e){let t=ro(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function bo(e,t,n,r=[]){let a=i.useRef(),o=to();return Q(()=>{var i;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():a.current}})(),c=r.map(e=>e.trim());o.value(e,s,c),(i=t.current)==null||i.setAttribute(Z,s),a.current=s}),a}var xo=()=>{let[e,t]=i.useState(),n=yo(()=>new Map);return Q(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function So(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function Co({asChild:e,children:t},n){return e&&i.isValidElement(t)?i.cloneElement(So(t),{ref:t.ref},n(t.props.children)):n(t)}var wo={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`};export{ve as $,ut as A,We as B,wt as C,gt as D,vt as E,et as F,Pe as G,Be as H,Qe as I,Oe as J,Me as K,Xe as L,ot as M,it as N,mt as O,nt as P,be as Q,Je as R,Et as S,bt as T,Re as U,He as V,Ie as W,we as X,Ee as Y,Se as Z,It as _,ho as a,oe as at,At as b,en as c,ne as ct,Jt as d,w as dt,ge as et,Kt as f,S as ft,Rt as g,Bt as h,lo as i,ce as it,ct as j,ft as k,Qt as l,ee as lt,Ht as m,so as n,fe as nt,oo as o,ie as ot,Wt as p,b as pt,Ae as q,po as r,ue as rt,nn as s,k as st,uo as t,me as tt,Xt as u,E as ut,Pt as v,St as w,Ot as x,Mt as y,Ke as z};
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><style>.i{stroke:#1C1D1F;fill:none}.f{fill:#1C1D1F}.a{fill:#D9482B}@media (prefers-color-scheme:dark){.i{stroke:#F2F0EB}.f{fill:#F2F0EB}.a{fill:#FF8A5B}}</style><path class="i" d="M45.44 18.56A19 19 0 1 0 45.44 45.44" stroke-width="10" stroke-linecap="round"/><line class="i" x1="32" y1="32" x2="52" y2="32" stroke-width="6" stroke-linecap="round"/><circle class="f" cx="32" cy="32" r="8"/><circle class="a" cx="56" cy="32" r="6"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Chain Hub</title>
|
|
7
|
+
<meta name="theme-color" content="#f2f0eb" media="(prefers-color-scheme: light)" />
|
|
8
|
+
<meta name="theme-color" content="#1c1d1f" media="(prefers-color-scheme: dark)" />
|
|
9
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
10
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png" />
|
|
11
|
+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
12
|
+
<link rel="manifest" href="/site.webmanifest" />
|
|
13
|
+
<script>
|
|
14
|
+
(function () {
|
|
15
|
+
try {
|
|
16
|
+
var key = 'chain-hub-theme';
|
|
17
|
+
var stored = localStorage.getItem(key);
|
|
18
|
+
var pref = stored === 'light' || stored === 'dark' || stored === 'system' ? stored : 'light';
|
|
19
|
+
var dark =
|
|
20
|
+
pref === 'dark' ||
|
|
21
|
+
(pref === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);
|
|
22
|
+
if (dark) document.documentElement.classList.add('dark');
|
|
23
|
+
else document.documentElement.classList.remove('dark');
|
|
24
|
+
document.documentElement.style.colorScheme = dark ? 'dark' : 'light';
|
|
25
|
+
} catch (_) {}
|
|
26
|
+
})();
|
|
27
|
+
</script>
|
|
28
|
+
<script type="module" crossorigin src="/assets/index-ltESF1KS.js"></script>
|
|
29
|
+
<link rel="modulepreload" crossorigin href="/assets/utils-BEATUXr4.js">
|
|
30
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BgntYnUn.js">
|
|
31
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-ui-qVCZmmA-.js">
|
|
32
|
+
<link rel="stylesheet" crossorigin href="/assets/index-mFc_WQtU.css">
|
|
33
|
+
</head>
|
|
34
|
+
<body>
|
|
35
|
+
<div id="root"></div>
|
|
36
|
+
</body>
|
|
37
|
+
</html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Chain Hub"><path d="M46.14 17.86A20 20 0 1 0 46.14 46.14" fill="none" stroke="#1C1D1F" stroke-width="8" stroke-linecap="round"/><line x1="32" y1="32" x2="51" y2="32" stroke="#1C1D1F" stroke-width="4" stroke-linecap="round"/><circle cx="32" cy="32" r="7" fill="#1C1D1F"/><circle cx="55" cy="32" r="5" fill="#D9482B"/></svg>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Chain Hub",
|
|
3
|
+
"short_name": "Chain Hub",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "/icon-192.png",
|
|
7
|
+
"sizes": "192x192",
|
|
8
|
+
"type": "image/png"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "/icon-512.png",
|
|
12
|
+
"sizes": "512x512",
|
|
13
|
+
"type": "image/png"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "/icon-maskable-512.png",
|
|
17
|
+
"sizes": "512x512",
|
|
18
|
+
"type": "image/png",
|
|
19
|
+
"purpose": "maskable"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"theme_color": "#1C1D1F",
|
|
23
|
+
"background_color": "#1C1D1F",
|
|
24
|
+
"display": "standalone"
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usechain/chain-hub",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Chain Hub CLI — local-first AI workspace control plane for Cursor, Claude Code, Windsurf, and Zed.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/martijnbokma/chain-hub.git",
|
|
10
|
+
"directory": "packages/cli"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=22.13.0"
|
|
14
|
+
},
|
|
15
|
+
"bin": {
|
|
16
|
+
"chain": "dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"main": "dist/index.js",
|
|
19
|
+
"types": "dist/index.d.ts",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsup",
|
|
25
|
+
"dev": "tsup --watch",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:coverage": "vitest run --coverage",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"smoke": "node scripts/smoke-pack.mjs"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"commander": "^12.1.0",
|
|
33
|
+
"yaml": "^2.9.1"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@chain-hub/contracts": "0.1.0",
|
|
37
|
+
"@chain-hub/domain": "0.1.0",
|
|
38
|
+
"@chain-hub/server": "0.1.0",
|
|
39
|
+
"@chain-hub/storage": "0.1.0",
|
|
40
|
+
"tsup": "^8.2.4",
|
|
41
|
+
"tsx": "^4.23.15",
|
|
42
|
+
"vitest": "^5.0.5"
|
|
43
|
+
}
|
|
44
|
+
}
|