claudekit-cli 3.36.0-dev.22 → 3.36.0-dev.23

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.
@@ -18,7 +18,7 @@ var Nx=Object.defineProperty;var Ax=(n,e,t)=>e in n?Nx(n,e,{enumerable:!0,config
18
18
  */var sm=n=>{throw TypeError(n)},Bx=(n,e,t)=>e.has(n)||sm("Cannot "+t),Za=(n,e,t)=>(Bx(n,e,"read from private field"),t?t.call(n):e.get(n)),Fx=(n,e,t)=>e.has(n)?sm("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),Pd="popstate";function Vx(n={}){function e(r,i){let{pathname:s,search:o,hash:a}=r.location;return Di("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function t(r,i){return typeof i=="string"?i:on(i)}return _x(e,t,null,n)}function he(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function Ee(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function zx(){return Math.random().toString(36).substring(2,10)}function Nd(n,e){return{usr:n.state,key:n.key,idx:e}}function Di(n,e,t=null,r){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof e=="string"?Vn(e):e,state:t,key:e&&e.key||r||zx()}}function on({pathname:n="/",search:e="",hash:t=""}){return e&&e!=="?"&&(n+=e.charAt(0)==="?"?e:"?"+e),t&&t!=="#"&&(n+=t.charAt(0)==="#"?t:"#"+t),n}function Vn(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substring(t),n=n.substring(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substring(r),n=n.substring(0,r)),n&&(e.pathname=n)}return e}function _x(n,e,t,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a="POP",l=null,c=d();c==null&&(c=0,o.replaceState({...o.state,idx:c},""));function d(){return(o.state||{idx:null}).idx}function u(){a="POP";let x=d(),w=x==null?null:x-c;c=x,l&&l({action:a,location:b.location,delta:w})}function f(x,w){a="PUSH";let v=Di(b.location,x,w);c=d()+1;let S=Nd(v,c),j=b.createHref(v);try{o.pushState(S,"",j)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(j)}s&&l&&l({action:a,location:b.location,delta:1})}function p(x,w){a="REPLACE";let v=Di(b.location,x,w);c=d();let S=Nd(v,c),j=b.createHref(v);o.replaceState(S,"",j),s&&l&&l({action:a,location:b.location,delta:0})}function m(x){return om(x)}let b={get action(){return a},get location(){return n(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Pd,u),l=x,()=>{i.removeEventListener(Pd,u),l=null}},createHref(x){return e(i,x)},createURL:m,encodeLocation(x){let w=m(x);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:f,replace:p,go(x){return o.go(x)}};return b}function om(n,e=!1){let t="http://localhost";typeof window<"u"&&(t=window.location.origin!=="null"?window.location.origin:window.location.href),he(t,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:on(n);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=t+r),new URL(r,t)}var gi,Ad=class{constructor(n){if(Fx(this,gi,new Map),n)for(let[e,t]of n)this.set(e,t)}get(n){if(Za(this,gi).has(n))return Za(this,gi).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,e){Za(this,gi).set(n,e)}};gi=new WeakMap;var Hx=new Set(["lazy","caseSensitive","path","id","index","children"]);function Wx(n){return Hx.has(n)}var Ux=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Kx(n){return Ux.has(n)}function Gx(n){return n.index===!0}function Ti(n,e,t=[],r={},i=!1){return n.map((s,o)=>{let a=[...t,String(o)],l=typeof s.id=="string"?s.id:a.join("-");if(he(s.index!==!0||!s.children,"Cannot specify children on an index route"),he(i||!r[l],`Found a route id collision on id "${l}". Route id's must be globally unique within Data Router usages`),Gx(s)){let c={...s,id:l};return r[l]=Md(c,e(c)),c}else{let c={...s,id:l,children:void 0};return r[l]=Md(c,e(c)),s.children&&(c.children=Ti(s.children,e,a,r,i)),c}})}function Md(n,e){return Object.assign(n,{...e,...typeof e.lazy=="object"&&e.lazy!=null?{lazy:{...n.lazy,...e.lazy}}:{}})}function jn(n,e,t="/"){return bi(n,e,t,!1)}function bi(n,e,t,r){let i=typeof e=="string"?Vn(e):e,s=Rt(i.pathname||"/",t);if(s==null)return null;let o=am(n);Jx(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=oy(s);a=iy(o[l],c,r)}return a}function qx(n,e){let{route:t,pathname:r,params:i}=n;return{id:t.id,pathname:r,params:i,data:e[t.id],loaderData:e[t.id],handle:t.handle}}function am(n,e=[],t=[],r="",i=!1){let s=(o,a,l=i,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&l)return;he(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let u=rn([r,d.relativePath]),f=t.concat(d);o.children&&o.children.length>0&&(he(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),am(o.children,e,f,u,l)),!(o.path==null&&!o.index)&&e.push({path:u,score:ny(u,o.index),routesMeta:f})};return n.forEach((o,a)=>{if(o.path===""||!o.path?.includes("?"))s(o,a);else for(let l of lm(o.path))s(o,a,!0,l)}),e}function lm(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,i=t.endsWith("?"),s=t.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=lm(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>n.startsWith("/")&&l===""?"/":l)}function Jx(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:ry(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}var Yx=/^:[\w-]+$/,Qx=3,Xx=2,Zx=1,ey=10,ty=-2,Dd=n=>n==="*";function ny(n,e){let t=n.split("/"),r=t.length;return t.some(Dd)&&(r+=ty),e&&(r+=Xx),t.filter(i=>!Dd(i)).reduce((i,s)=>i+(Yx.test(s)?Qx:s===""?Zx:ey),r)}function ry(n,e){return n.length===e.length&&n.slice(0,-1).every((r,i)=>r===e[i])?n[n.length-1]-e[e.length-1]:0}function iy(n,e,t=!1){let{routesMeta:r}=n,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=s==="/"?e:e.slice(s.length)||"/",u=Zo({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&t&&!r[r.length-1].route.index&&(u=Zo({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:rn([s,u.pathname]),pathnameBase:cy(rn([s,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(s=rn([s,u.pathnameBase]))}return o}function Zo(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,r]=sy(n.path,n.caseSensitive,n.end),i=e.match(t);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:u},f)=>{if(d==="*"){let m=a[f]||"";o=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const p=a[f];return u&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:n}}function sy(n,e=!1,t=!0){Ee(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],i="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),i+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?i+="\\/*$":n!==""&&n!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function oy(n){try{return n.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ee(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),n}}function Rt(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function ay({basename:n,pathname:e}){return e==="/"?n:rn([n,e])}var cm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Na=n=>cm.test(n);function ly(n,e="/"){let{pathname:t,search:r="",hash:i=""}=typeof n=="string"?Vn(n):n,s;if(t)if(Na(t))s=t;else{if(t.includes("//")){let o=t;t=t.replace(/\/\/+/g,"/"),Ee(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${t}`)}t.startsWith("/")?s=Td(t.substring(1),"/"):s=Td(t,e)}else s=e;return{pathname:s,search:hy(r),hash:dy(i)}}function Td(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(i=>{i===".."?t.length>1&&t.pop():i!=="."&&t.push(i)}),t.length>1?t.join("/"):"/"}function el(n,e,t,r){return`Cannot include a '${n}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function hm(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Aa(n){let e=hm(n);return e.map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)}function Ma(n,e,t,r=!1){let i;typeof n=="string"?i=Vn(n):(i={...n},he(!i.pathname||!i.pathname.includes("?"),el("?","pathname","search",i)),he(!i.pathname||!i.pathname.includes("#"),el("#","pathname","hash",i)),he(!i.search||!i.search.includes("#"),el("#","search","hash",i)));let s=n===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=t;else{let u=e.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),u-=1;i.pathname=f.join("/")}a=u>=0?e[u]:"/"}let l=ly(i,a),c=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var rn=n=>n.join("/").replace(/\/\/+/g,"/"),cy=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),hy=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,dy=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Is=class{constructor(n,e,t,r=!1){this.status=n,this.statusText=e||"",this.internal=r,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function Ei(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function $s(n){return n.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var dm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function um(n,e){let t=n;if(typeof t!="string"||!cm.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let r=t,i=!1;if(dm)try{let s=new URL(window.location.href),o=t.startsWith("//")?new URL(s.protocol+t):new URL(t),a=Rt(o.pathname,e);o.origin===s.origin&&a!=null?t=a+o.search+o.hash:i=!0}catch{Ee(!1,`<Link to="${t}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:t}}var An=Symbol("Uninstrumented");function uy(n,e){let t={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(i=>i({id:e.id,index:e.index,path:e.path,instrument(s){let o=Object.keys(t);for(let a of o)s[a]&&t[a].push(s[a])}}));let r={};if(typeof e.lazy=="function"&&t.lazy.length>0){let i=vr(t.lazy,e.lazy,()=>{});i&&(r.lazy=i)}if(typeof e.lazy=="object"){let i=e.lazy;["middleware","loader","action"].forEach(s=>{let o=i[s],a=t[`lazy.${s}`];if(typeof o=="function"&&a.length>0){let l=vr(a,o,()=>{});l&&(r.lazy=Object.assign(r.lazy||{},{[s]:l}))}})}return["loader","action"].forEach(i=>{let s=e[i];if(typeof s=="function"&&t[i].length>0){let o=s[An]??s,a=vr(t[i],o,(...l)=>Ed(l[0]));a&&(a[An]=o,r[i]=a)}}),e.middleware&&e.middleware.length>0&&t.middleware.length>0&&(r.middleware=e.middleware.map(i=>{let s=i[An]??i,o=vr(t.middleware,s,(...a)=>Ed(a[0]));return o?(o[An]=s,o):i})),r}function fy(n,e){let t={navigate:[],fetch:[]};if(e.forEach(r=>r({instrument(i){let s=Object.keys(i);for(let o of s)i[o]&&t[o].push(i[o])}})),t.navigate.length>0){let r=n.navigate[An]??n.navigate,i=vr(t.navigate,r,(...s)=>{let[o,a]=s;return{to:typeof o=="number"||typeof o=="string"?o:o?on(o):".",...Rd(n,a??{})}});i&&(i[An]=r,n.navigate=i)}if(t.fetch.length>0){let r=n.fetch[An]??n.fetch,i=vr(t.fetch,r,(...s)=>{let[o,,a,l]=s;return{href:a??".",fetcherKey:o,...Rd(n,l??{})}});i&&(i[An]=r,n.fetch=i)}return n}function vr(n,e,t){return n.length===0?null:async(...r)=>{let i=await fm(n,t(...r),()=>e(...r),n.length-1);if(i.type==="error")throw i.value;return i.value}}async function fm(n,e,t,r){let i=n[r],s;if(i){let o,a=async()=>(o?console.error("You cannot call instrumented handlers more than once"):o=fm(n,e,t,r-1),s=await o,he(s,"Expected a result"),s.type==="error"&&s.value instanceof Error?{status:"error",error:s.value}:{status:"success",error:void 0});try{await i(a,e)}catch(l){console.error("An instrumentation function threw an error:",l)}o||await a(),await o}else try{s={type:"success",value:await t()}}catch(o){s={type:"error",value:o}}return s||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Ed(n){let{request:e,context:t,params:r,unstable_pattern:i}=n;return{request:py(e),params:{...r},unstable_pattern:i,context:my(t)}}function Rd(n,e){return{currentUrl:on(n.state.location),..."formMethod"in e?{formMethod:e.formMethod}:{},..."formEncType"in e?{formEncType:e.formEncType}:{},..."formData"in e?{formData:e.formData}:{},..."body"in e?{body:e.body}:{}}}function py(n){return{method:n.method,url:n.url,headers:{get:(...e)=>n.headers.get(...e)}}}function my(n){if(by(n)){let e={...n};return Object.freeze(e),e}else return{get:e=>n.get(e)}}var gy=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function by(n){if(n===null||typeof n!="object")return!1;const e=Object.getPrototypeOf(n);return e===Object.prototype||e===null||Object.getOwnPropertyNames(e).sort().join("\0")===gy}var pm=["POST","PUT","PATCH","DELETE"],xy=new Set(pm),yy=["GET",...pm],vy=new Set(yy),mm=new Set([301,302,303,307,308]),wy=new Set([307,308]),tl={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ky={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},si={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Sy=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),gm="remix-router-transitions",bm=Symbol("ResetLoaderData");function Cy(n){const e=n.window?n.window:typeof window<"u"?window:void 0,t=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u";he(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=n.hydrationRouteProperties||[],i=n.mapRouteProperties||Sy,s=i;if(n.unstable_instrumentations){let C=n.unstable_instrumentations;s=P=>({...i(P),...uy(C.map(M=>M.route).filter(Boolean),P)})}let o={},a=Ti(n.routes,s,void 0,o),l,c=n.basename||"/";c.startsWith("/")||(c=`/${c}`);let d=n.dataStrategy||Ay,u={...n.future},f=null,p=new Set,m=null,b=null,x=null,w=n.hydrationData!=null,v=jn(a,n.history.location,c),S=!1,j=null,k;if(v==null&&!n.patchRoutesOnNavigation){let C=Pt(404,{pathname:n.history.location.pathname}),{matches:P,route:M}=oo(a);k=!0,v=P,j={[M.id]:C}}else if(v&&!n.hydrationData&&to(v,a,n.history.location.pathname).active&&(v=null),v)if(v.some(C=>C.route.lazy))k=!1;else if(!v.some(C=>hh(C.route)))k=!0;else{let C=n.hydrationData?n.hydrationData.loaderData:null,P=n.hydrationData?n.hydrationData.errors:null;if(P){let M=v.findIndex($=>P[$.route.id]!==void 0);k=v.slice(0,M+1).every($=>!cc($.route,C,P))}else k=v.every(M=>!cc(M.route,C,P))}else{k=!1,v=[];let C=to(null,a,n.history.location.pathname);C.active&&C.matches&&(S=!0,v=C.matches)}let O,y={historyAction:n.history.action,location:n.history.location,matches:v,initialized:k,navigation:tl,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||j,fetchers:new Map,blockers:new Map},D="POP",A=null,R=!1,N,L=!1,W=new Map,F=null,B=!1,q=!1,de=new Set,z=new Map,J=0,ie=-1,le=new Map,fe=new Set,we=new Map,ke=new Map,Ae=new Set,Qe=new Map,mt,Y=null;function Me(){if(f=n.history.listen(({action:C,location:P,delta:M})=>{if(mt){mt(),mt=void 0;return}Ee(Qe.size===0||M!=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 $=vd({currentLocation:y.location,nextLocation:P,historyAction:C});if($&&M!=null){let V=new Promise(Z=>{mt=Z});n.history.go(M*-1),eo($,{state:"blocked",location:P,proceed(){eo($,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),V.then(()=>n.history.go(M))},reset(){let Z=new Map(y.blockers);Z.set($,si),ve({blockers:Z})}}),A?.resolve(),A=null;return}return oe(C,P)}),t){Gy(e,W);let C=()=>qy(e,W);e.addEventListener("pagehide",C),F=()=>e.removeEventListener("pagehide",C)}return y.initialized||oe("POP",y.location,{initialHydration:!0}),O}function Se(){f&&f(),F&&F(),p.clear(),N&&N.abort(),y.fetchers.forEach((C,P)=>Ya(P)),y.blockers.forEach((C,P)=>yd(P))}function Ie(C){return p.add(C),()=>p.delete(C)}function ve(C,P={}){C.matches&&(C.matches=C.matches.map(V=>{let Z=o[V.route.id],Q=V.route;return Q.element!==Z.element||Q.errorElement!==Z.errorElement||Q.hydrateFallbackElement!==Z.hydrateFallbackElement?{...V,route:Z}:V})),y={...y,...C};let M=[],$=[];y.fetchers.forEach((V,Z)=>{V.state==="idle"&&(Ae.has(Z)?M.push(Z):$.push(Z))}),Ae.forEach(V=>{!y.fetchers.has(V)&&!z.has(V)&&M.push(V)}),[...p].forEach(V=>V(y,{deletedFetchers:M,newErrors:C.errors??null,viewTransitionOpts:P.viewTransitionOpts,flushSync:P.flushSync===!0})),M.forEach(V=>Ya(V)),$.forEach(V=>y.fetchers.delete(V))}function gt(C,P,{flushSync:M}={}){let $=y.actionData!=null&&y.navigation.formMethod!=null&&Ze(y.navigation.formMethod)&&y.navigation.state==="loading"&&C.state?._isRedirect!==!0,V;P.actionData?Object.keys(P.actionData).length>0?V=P.actionData:V=null:$?V=y.actionData:V=null;let Z=P.loaderData?Wd(y.loaderData,P.loaderData,P.matches||[],P.errors):y.loaderData,Q=y.blockers;Q.size>0&&(Q=new Map(Q),Q.forEach((se,te)=>Q.set(te,si)));let X=B?!1:kd(C,P.matches||y.matches),ee=R===!0||y.navigation.formMethod!=null&&Ze(y.navigation.formMethod)&&C.state?._isRedirect!==!0;l&&(a=l,l=void 0),B||D==="POP"||(D==="PUSH"?n.history.push(C,C.state):D==="REPLACE"&&n.history.replace(C,C.state));let re;if(D==="POP"){let se=W.get(y.location.pathname);se&&se.has(C.pathname)?re={currentLocation:y.location,nextLocation:C}:W.has(C.pathname)&&(re={currentLocation:C,nextLocation:y.location})}else if(L){let se=W.get(y.location.pathname);se?se.add(C.pathname):(se=new Set([C.pathname]),W.set(y.location.pathname,se)),re={currentLocation:y.location,nextLocation:C}}ve({...P,actionData:V,loaderData:Z,historyAction:D,location:C,initialized:!0,navigation:tl,revalidation:"idle",restoreScrollPosition:X,preventScrollReset:ee,blockers:Q},{viewTransitionOpts:re,flushSync:M===!0}),D="POP",R=!1,L=!1,B=!1,q=!1,A?.resolve(),A=null,Y?.resolve(),Y=null}async function I(C,P){if(A?.resolve(),A=null,typeof C=="number"){A||(A=qd());let xe=A.promise;return n.history.go(C),xe}let M=lc(y.location,y.matches,c,C,P?.fromRouteId,P?.relative),{path:$,submission:V,error:Z}=Ld(!1,M,P),Q=y.location,X=Di(y.location,$,P&&P.state);X={...X,...n.history.encodeLocation(X)};let ee=P&&P.replace!=null?P.replace:void 0,re="PUSH";ee===!0?re="REPLACE":ee===!1||V!=null&&Ze(V.formMethod)&&V.formAction===y.location.pathname+y.location.search&&(re="REPLACE");let se=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,te=(P&&P.flushSync)===!0,be=vd({currentLocation:Q,nextLocation:X,historyAction:re});if(be){eo(be,{state:"blocked",location:X,proceed(){eo(be,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),I(C,P)},reset(){let xe=new Map(y.blockers);xe.set(be,si),ve({blockers:xe})}});return}await oe(re,X,{submission:V,pendingError:Z,preventScrollReset:se,replace:P&&P.replace,enableViewTransition:P&&P.viewTransition,flushSync:te,callSiteDefaultShouldRevalidate:P&&P.unstable_defaultShouldRevalidate})}function G(){Y||(Y=qd()),Ja(),ve({revalidation:"loading"});let C=Y.promise;return y.navigation.state==="submitting"?C:y.navigation.state==="idle"?(oe(y.historyAction,y.location,{startUninterruptedRevalidation:!0}),C):(oe(D||y.historyAction,y.navigation.location,{overrideNavigation:y.navigation,enableViewTransition:L===!0}),C)}async function oe(C,P,M){N&&N.abort(),N=null,D=C,B=(M&&M.startUninterruptedRevalidation)===!0,Cx(y.location,y.matches),R=(M&&M.preventScrollReset)===!0,L=(M&&M.enableViewTransition)===!0;let $=l||a,V=M&&M.overrideNavigation,Z=M?.initialHydration&&y.matches&&y.matches.length>0&&!S?y.matches:jn($,P,c),Q=(M&&M.flushSync)===!0;if(Z&&y.initialized&&!q&&$y(y.location,P)&&!(M&&M.submission&&Ze(M.submission.formMethod))){gt(P,{matches:Z},{flushSync:Q});return}let X=to(Z,$,P.pathname);if(X.active&&X.matches&&(Z=X.matches),!Z){let{error:We,notFoundMatches:it,route:Ce}=Qa(P.pathname);gt(P,{matches:it,loaderData:{},errors:{[Ce.id]:We}},{flushSync:Q});return}N=new AbortController;let ee=br(n.history,P,N.signal,M&&M.submission),re=n.getContext?await n.getContext():new Ad,se;if(M&&M.pendingError)se=[On(Z).route.id,{type:"error",error:M.pendingError}];else if(M&&M.submission&&Ze(M.submission.formMethod)){let We=await De(ee,P,M.submission,Z,re,X.active,M&&M.initialHydration===!0,{replace:M.replace,flushSync:Q});if(We.shortCircuited)return;if(We.pendingActionResult){let[it,Ce]=We.pendingActionResult;if(vt(Ce)&&Ei(Ce.error)&&Ce.error.status===404){N=null,gt(P,{matches:We.matches,loaderData:{},errors:{[it]:Ce.error}});return}}Z=We.matches||Z,se=We.pendingActionResult,V=nl(P,M.submission),Q=!1,X.active=!1,ee=br(n.history,ee.url,ee.signal)}let{shortCircuited:te,matches:be,loaderData:xe,errors:Ke}=await Ut(ee,P,Z,re,X.active,V,M&&M.submission,M&&M.fetcherSubmission,M&&M.replace,M&&M.initialHydration===!0,Q,se,M&&M.callSiteDefaultShouldRevalidate);te||(N=null,gt(P,{matches:be||Z,...Ud(se),loaderData:xe,errors:Ke}))}async function De(C,P,M,$,V,Z,Q,X={}){Ja();let ee=Uy(P,M);if(ve({navigation:ee},{flushSync:X.flushSync===!0}),Z){let te=await no($,P.pathname,C.signal);if(te.type==="aborted")return{shortCircuited:!0};if(te.type==="error"){if(te.partialMatches.length===0){let{matches:xe,route:Ke}=oo(a);return{matches:xe,pendingActionResult:[Ke.id,{type:"error",error:te.error}]}}let be=On(te.partialMatches).route.id;return{matches:te.partialMatches,pendingActionResult:[be,{type:"error",error:te.error}]}}else if(te.matches)$=te.matches;else{let{notFoundMatches:be,error:xe,route:Ke}=Qa(P.pathname);return{matches:be,pendingActionResult:[Ke.id,{type:"error",error:xe}]}}}let re,se=Vo($,P);if(!se.route.action&&!se.route.lazy)re={type:"error",error:Pt(405,{method:C.method,pathname:P.pathname,routeId:se.route.id})};else{let te=Or(s,o,C,$,se,Q?[]:r,V),be=await ni(C,te,V,null);if(re=be[se.route.id],!re){for(let xe of $)if(be[xe.route.id]){re=be[xe.route.id];break}}if(C.signal.aborted)return{shortCircuited:!0}}if(er(re)){let te;return X&&X.replace!=null?te=X.replace:te=zd(re.response.headers.get("Location"),new URL(C.url),c)===y.location.pathname+y.location.search,await Wn(C,re,!0,{submission:M,replace:te}),{shortCircuited:!0}}if(vt(re)){let te=On($,se.route.id);return(X&&X.replace)!==!0&&(D="PUSH"),{matches:$,pendingActionResult:[te.route.id,re,se.route.id]}}return{matches:$,pendingActionResult:[se.route.id,re]}}async function Ut(C,P,M,$,V,Z,Q,X,ee,re,se,te,be){let xe=Z||nl(P,Q),Ke=Q||X||Gd(xe),We=!B&&!re;if(V){if(We){let Xe=Zs(te);ve({navigation:xe,...Xe!==void 0?{actionData:Xe}:{}},{flushSync:se})}let ge=await no(M,P.pathname,C.signal);if(ge.type==="aborted")return{shortCircuited:!0};if(ge.type==="error"){if(ge.partialMatches.length===0){let{matches:pr,route:Gn}=oo(a);return{matches:pr,loaderData:{},errors:{[Gn.id]:ge.error}}}let Xe=On(ge.partialMatches).route.id;return{matches:ge.partialMatches,loaderData:{},errors:{[Xe]:ge.error}}}else if(ge.matches)M=ge.matches;else{let{error:Xe,notFoundMatches:pr,route:Gn}=Qa(P.pathname);return{matches:pr,loaderData:{},errors:{[Gn.id]:Xe}}}}let it=l||a,{dsMatches:Ce,revalidatingFetchers:jt}=Id(C,$,s,o,n.history,y,M,Ke,P,re?[]:r,re===!0,q,de,Ae,we,fe,it,c,n.patchRoutesOnNavigation!=null,te,be);if(ie=++J,!n.dataStrategy&&!Ce.some(ge=>ge.shouldLoad)&&!Ce.some(ge=>ge.route.middleware&&ge.route.middleware.length>0)&&jt.length===0){let ge=bd();return gt(P,{matches:M,loaderData:{},errors:te&&vt(te[1])?{[te[0]]:te[1].error}:null,...Ud(te),...ge?{fetchers:new Map(y.fetchers)}:{}},{flushSync:se}),{shortCircuited:!0}}if(We){let ge={};if(!V){ge.navigation=xe;let Xe=Zs(te);Xe!==void 0&&(ge.actionData=Xe)}jt.length>0&&(ge.fetchers=ti(jt)),ve(ge,{flushSync:se})}jt.forEach(ge=>{fn(ge.key),ge.controller&&z.set(ge.key,ge.controller)});let Un=()=>jt.forEach(ge=>fn(ge.key));N&&N.signal.addEventListener("abort",Un);let{loaderResults:ri,fetcherResults:wn}=await pd(Ce,jt,C,$);if(C.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Un),jt.forEach(ge=>z.delete(ge.key));let Kt=ao(ri);if(Kt)return await Wn(C,Kt.result,!0,{replace:ee}),{shortCircuited:!0};if(Kt=ao(wn),Kt)return fe.add(Kt.key),await Wn(C,Kt.result,!0,{replace:ee}),{shortCircuited:!0};let{loaderData:Xa,errors:ii}=Hd(y,M,ri,te,jt,wn);re&&y.errors&&(ii={...y.errors,...ii});let Kn=bd(),ro=xd(ie),io=Kn||ro||jt.length>0;return{matches:M,loaderData:Xa,errors:ii,...io?{fetchers:new Map(y.fetchers)}:{}}}function Zs(C){if(C&&!vt(C[1]))return{[C[0]]:C[1].data};if(y.actionData)return Object.keys(y.actionData).length===0?null:y.actionData}function ti(C){return C.forEach(P=>{let M=y.fetchers.get(P.key),$=oi(void 0,M?M.data:void 0);y.fetchers.set(P.key,$)}),new Map(y.fetchers)}async function bx(C,P,M,$){fn(C);let V=($&&$.flushSync)===!0,Z=l||a,Q=lc(y.location,y.matches,c,M,P,$?.relative),X=jn(Z,Q,c),ee=to(X,Z,Q);if(ee.active&&ee.matches&&(X=ee.matches),!X){un(C,P,Pt(404,{pathname:Q}),{flushSync:V});return}let{path:re,submission:se,error:te}=Ld(!0,Q,$);if(te){un(C,P,te,{flushSync:V});return}let be=n.getContext?await n.getContext():new Ad,xe=($&&$.preventScrollReset)===!0;if(se&&Ze(se.formMethod)){await xx(C,P,re,X,be,ee.active,V,xe,se,$&&$.unstable_defaultShouldRevalidate);return}we.set(C,{routeId:P,path:re}),await yx(C,P,re,X,be,ee.active,V,xe,se)}async function xx(C,P,M,$,V,Z,Q,X,ee,re){Ja(),we.delete(C);let se=y.fetchers.get(C);dn(C,Ky(ee,se),{flushSync:Q});let te=new AbortController,be=br(n.history,M,te.signal,ee);if(Z){let Re=await no($,new URL(be.url).pathname,be.signal,C);if(Re.type==="aborted")return;if(Re.type==="error"){un(C,P,Re.error,{flushSync:Q});return}else if(Re.matches)$=Re.matches;else{un(C,P,Pt(404,{pathname:M}),{flushSync:Q});return}}let xe=Vo($,M);if(!xe.route.action&&!xe.route.lazy){let Re=Pt(405,{method:ee.formMethod,pathname:M,routeId:P});un(C,P,Re,{flushSync:Q});return}z.set(C,te);let Ke=J,We=Or(s,o,be,$,xe,r,V),it=await ni(be,We,V,C),Ce=it[xe.route.id];if(!Ce){for(let Re of We)if(it[Re.route.id]){Ce=it[Re.route.id];break}}if(be.signal.aborted){z.get(C)===te&&z.delete(C);return}if(Ae.has(C)){if(er(Ce)||vt(Ce)){dn(C,pn(void 0));return}}else{if(er(Ce))if(z.delete(C),ie>Ke){dn(C,pn(void 0));return}else return fe.add(C),dn(C,oi(ee)),Wn(be,Ce,!1,{fetcherSubmission:ee,preventScrollReset:X});if(vt(Ce)){un(C,P,Ce.error);return}}let jt=y.navigation.location||y.location,Un=br(n.history,jt,te.signal),ri=l||a,wn=y.navigation.state!=="idle"?jn(ri,y.navigation.location,c):y.matches;he(wn,"Didn't find any matches after fetcher action");let Kt=++J;le.set(C,Kt);let Xa=oi(ee,Ce.data);y.fetchers.set(C,Xa);let{dsMatches:ii,revalidatingFetchers:Kn}=Id(Un,V,s,o,n.history,y,wn,ee,jt,r,!1,q,de,Ae,we,fe,ri,c,n.patchRoutesOnNavigation!=null,[xe.route.id,Ce],re);Kn.filter(Re=>Re.key!==C).forEach(Re=>{let so=Re.key,Cd=y.fetchers.get(so),Px=oi(void 0,Cd?Cd.data:void 0);y.fetchers.set(so,Px),fn(so),Re.controller&&z.set(so,Re.controller)}),ve({fetchers:new Map(y.fetchers)});let ro=()=>Kn.forEach(Re=>fn(Re.key));te.signal.addEventListener("abort",ro);let{loaderResults:io,fetcherResults:ge}=await pd(ii,Kn,Un,V);if(te.signal.aborted)return;if(te.signal.removeEventListener("abort",ro),le.delete(C),z.delete(C),Kn.forEach(Re=>z.delete(Re.key)),y.fetchers.has(C)){let Re=pn(Ce.data);y.fetchers.set(C,Re)}let Xe=ao(io);if(Xe)return Wn(Un,Xe.result,!1,{preventScrollReset:X});if(Xe=ao(ge),Xe)return fe.add(Xe.key),Wn(Un,Xe.result,!1,{preventScrollReset:X});let{loaderData:pr,errors:Gn}=Hd(y,wn,io,void 0,Kn,ge);xd(Kt),y.navigation.state==="loading"&&Kt>ie?(he(D,"Expected pending action"),N&&N.abort(),gt(y.navigation.location,{matches:wn,loaderData:pr,errors:Gn,fetchers:new Map(y.fetchers)})):(ve({errors:Gn,loaderData:Wd(y.loaderData,pr,wn,Gn),fetchers:new Map(y.fetchers)}),q=!1)}async function yx(C,P,M,$,V,Z,Q,X,ee){let re=y.fetchers.get(C);dn(C,oi(ee,re?re.data:void 0),{flushSync:Q});let se=new AbortController,te=br(n.history,M,se.signal);if(Z){let Ce=await no($,new URL(te.url).pathname,te.signal,C);if(Ce.type==="aborted")return;if(Ce.type==="error"){un(C,P,Ce.error,{flushSync:Q});return}else if(Ce.matches)$=Ce.matches;else{un(C,P,Pt(404,{pathname:M}),{flushSync:Q});return}}let be=Vo($,M);z.set(C,se);let xe=J,Ke=Or(s,o,te,$,be,r,V),it=(await ni(te,Ke,V,C))[be.route.id];if(z.get(C)===se&&z.delete(C),!te.signal.aborted){if(Ae.has(C)){dn(C,pn(void 0));return}if(er(it))if(ie>xe){dn(C,pn(void 0));return}else{fe.add(C),await Wn(te,it,!1,{preventScrollReset:X});return}if(vt(it)){un(C,P,it.error);return}dn(C,pn(it.data))}}async function Wn(C,P,M,{submission:$,fetcherSubmission:V,preventScrollReset:Z,replace:Q}={}){M||(A?.resolve(),A=null),P.response.headers.has("X-Remix-Revalidate")&&(q=!0);let X=P.response.headers.get("Location");he(X,"Expected a Location header on the redirect Response"),X=zd(X,new URL(C.url),c);let ee=Di(y.location,X,{_isRedirect:!0});if(t){let Ke=!1;if(P.response.headers.has("X-Remix-Reload-Document"))Ke=!0;else if(Na(X)){const We=om(X,!0);Ke=We.origin!==e.location.origin||Rt(We.pathname,c)==null}if(Ke){Q?e.location.replace(X):e.location.assign(X);return}}N=null;let re=Q===!0||P.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:se,formAction:te,formEncType:be}=y.navigation;!$&&!V&&se&&te&&be&&($=Gd(y.navigation));let xe=$||V;if(wy.has(P.response.status)&&xe&&Ze(xe.formMethod))await oe(re,ee,{submission:{...xe,formAction:X},preventScrollReset:Z||R,enableViewTransition:M?L:void 0});else{let Ke=nl(ee,$);await oe(re,ee,{overrideNavigation:Ke,fetcherSubmission:V,preventScrollReset:Z||R,enableViewTransition:M?L:void 0})}}async function ni(C,P,M,$){let V,Z={};try{V=await Dy(d,C,P,$,M,!1)}catch(Q){return P.filter(X=>X.shouldLoad).forEach(X=>{Z[X.route.id]={type:"error",error:Q}}),Z}if(C.signal.aborted)return Z;if(!Ze(C.method))for(let Q of P){if(V[Q.route.id]?.type==="error")break;!V.hasOwnProperty(Q.route.id)&&!y.loaderData.hasOwnProperty(Q.route.id)&&(!y.errors||!y.errors.hasOwnProperty(Q.route.id))&&Q.shouldCallHandler()&&(V[Q.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Q.route.id}`)})}for(let[Q,X]of Object.entries(V))if(zy(X)){let ee=X.result;Z[Q]={type:"redirect",response:Ly(ee,C,Q,P,c)}}else Z[Q]=await Ry(X);return Z}async function pd(C,P,M,$){let V=ni(M,C,$,null),Z=Promise.all(P.map(async ee=>{if(ee.matches&&ee.match&&ee.request&&ee.controller){let se=(await ni(ee.request,ee.matches,$,ee.key))[ee.match.route.id];return{[ee.key]:se}}else return Promise.resolve({[ee.key]:{type:"error",error:Pt(404,{pathname:ee.path})}})})),Q=await V,X=(await Z).reduce((ee,re)=>Object.assign(ee,re),{});return{loaderResults:Q,fetcherResults:X}}function Ja(){q=!0,we.forEach((C,P)=>{z.has(P)&&de.add(P),fn(P)})}function dn(C,P,M={}){y.fetchers.set(C,P),ve({fetchers:new Map(y.fetchers)},{flushSync:(M&&M.flushSync)===!0})}function un(C,P,M,$={}){let V=On(y.matches,P);Ya(C),ve({errors:{[V.route.id]:M},fetchers:new Map(y.fetchers)},{flushSync:($&&$.flushSync)===!0})}function md(C){return ke.set(C,(ke.get(C)||0)+1),Ae.has(C)&&Ae.delete(C),y.fetchers.get(C)||ky}function vx(C,P){fn(C,P?.reason),dn(C,pn(null))}function Ya(C){let P=y.fetchers.get(C);z.has(C)&&!(P&&P.state==="loading"&&le.has(C))&&fn(C),we.delete(C),le.delete(C),fe.delete(C),Ae.delete(C),de.delete(C),y.fetchers.delete(C)}function wx(C){let P=(ke.get(C)||0)-1;P<=0?(ke.delete(C),Ae.add(C)):ke.set(C,P),ve({fetchers:new Map(y.fetchers)})}function fn(C,P){let M=z.get(C);M&&(M.abort(P),z.delete(C))}function gd(C){for(let P of C){let M=md(P),$=pn(M.data);y.fetchers.set(P,$)}}function bd(){let C=[],P=!1;for(let M of fe){let $=y.fetchers.get(M);he($,`Expected fetcher: ${M}`),$.state==="loading"&&(fe.delete(M),C.push(M),P=!0)}return gd(C),P}function xd(C){let P=[];for(let[M,$]of le)if($<C){let V=y.fetchers.get(M);he(V,`Expected fetcher: ${M}`),V.state==="loading"&&(fn(M),le.delete(M),P.push(M))}return gd(P),P.length>0}function kx(C,P){let M=y.blockers.get(C)||si;return Qe.get(C)!==P&&Qe.set(C,P),M}function yd(C){y.blockers.delete(C),Qe.delete(C)}function eo(C,P){let M=y.blockers.get(C)||si;he(M.state==="unblocked"&&P.state==="blocked"||M.state==="blocked"&&P.state==="blocked"||M.state==="blocked"&&P.state==="proceeding"||M.state==="blocked"&&P.state==="unblocked"||M.state==="proceeding"&&P.state==="unblocked",`Invalid blocker state transition: ${M.state} -> ${P.state}`);let $=new Map(y.blockers);$.set(C,P),ve({blockers:$})}function vd({currentLocation:C,nextLocation:P,historyAction:M}){if(Qe.size===0)return;Qe.size>1&&Ee(!1,"A router only supports one blocker at a time");let $=Array.from(Qe.entries()),[V,Z]=$[$.length-1],Q=y.blockers.get(V);if(!(Q&&Q.state==="proceeding")&&Z({currentLocation:C,nextLocation:P,historyAction:M}))return V}function Qa(C){let P=Pt(404,{pathname:C}),M=l||a,{matches:$,route:V}=oo(M);return{notFoundMatches:$,route:V,error:P}}function Sx(C,P,M){if(m=C,x=P,b=M||null,!w&&y.navigation===tl){w=!0;let $=kd(y.location,y.matches);$!=null&&ve({restoreScrollPosition:$})}return()=>{m=null,x=null,b=null}}function wd(C,P){return b&&b(C,P.map($=>qx($,y.loaderData)))||C.key}function Cx(C,P){if(m&&x){let M=wd(C,P);m[M]=x()}}function kd(C,P){if(m){let M=wd(C,P),$=m[M];if(typeof $=="number")return $}return null}function to(C,P,M){if(n.patchRoutesOnNavigation)if(C){if(Object.keys(C[0].params).length>0)return{active:!0,matches:bi(P,M,c,!0)}}else return{active:!0,matches:bi(P,M,c,!0)||[]};return{active:!1,matches:null}}async function no(C,P,M,$){if(!n.patchRoutesOnNavigation)return{type:"success",matches:C};let V=C;for(;;){let Z=l==null,Q=l||a,X=o;try{await n.patchRoutesOnNavigation({signal:M,path:P,matches:V,fetcherKey:$,patch:(se,te)=>{M.aborted||$d(se,te,Q,X,s,!1)}})}catch(se){return{type:"error",error:se,partialMatches:V}}finally{Z&&!M.aborted&&(a=[...a])}if(M.aborted)return{type:"aborted"};let ee=jn(Q,P,c),re=null;if(ee){if(Object.keys(ee[0].params).length===0)return{type:"success",matches:ee};if(re=bi(Q,P,c,!0),!(re&&V.length<re.length&&Sd(V,re.slice(0,V.length))))return{type:"success",matches:ee}}if(re||(re=bi(Q,P,c,!0)),!re||Sd(V,re))return{type:"success",matches:null};V=re}}function Sd(C,P){return C.length===P.length&&C.every((M,$)=>M.route.id===P[$].route.id)}function jx(C){o={},l=Ti(C,s,void 0,o)}function Ox(C,P,M=!1){let $=l==null;$d(C,P,l||a,o,s,M),$&&(a=[...a],ve({}))}return O={get basename(){return c},get future(){return u},get state(){return y},get routes(){return a},get window(){return e},initialize:Me,subscribe:Ie,enableScrollRestoration:Sx,navigate:I,fetch:bx,revalidate:G,createHref:C=>n.history.createHref(C),encodeLocation:C=>n.history.encodeLocation(C),getFetcher:md,resetFetcher:vx,deleteFetcher:wx,dispose:Se,getBlocker:kx,deleteBlocker:yd,patchRoutes:Ox,_internalFetchControllers:z,_internalSetRoutes:jx,_internalSetStateDoNotUseOrYouWillBreakYourApp(C){ve(C)}},n.unstable_instrumentations&&(O=fy(O,n.unstable_instrumentations.map(C=>C.router).filter(Boolean))),O}function jy(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function lc(n,e,t,r,i,s){let o,a;if(i){o=[];for(let c of e)if(o.push(c),c.route.id===i){a=c;break}}else o=e,a=e[e.length-1];let l=Ma(r||".",Aa(o),Rt(n.pathname,t)||n.pathname,s==="path");if(r==null&&(l.search=n.search,l.hash=n.hash),(r==null||r===""||r===".")&&a){let c=uh(l.search);if(a.route.index&&!c)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!a.route.index&&c){let d=new URLSearchParams(l.search),u=d.getAll("index");d.delete("index"),u.filter(p=>p).forEach(p=>d.append("index",p));let f=d.toString();l.search=f?`?${f}`:""}}return t!=="/"&&(l.pathname=ay({basename:t,pathname:l.pathname})),on(l)}function Ld(n,e,t){if(!t||!jy(t))return{path:e};if(t.formMethod&&!Wy(t.formMethod))return{path:e,error:Pt(405,{method:t.formMethod})};let r=()=>({path:e,error:Pt(400,{type:"invalid-body"})}),s=(t.formMethod||"get").toUpperCase(),o=Sm(e);if(t.body!==void 0){if(t.formEncType==="text/plain"){if(!Ze(s))return r();let u=typeof t.body=="string"?t.body:t.body instanceof FormData||t.body instanceof URLSearchParams?Array.from(t.body.entries()).reduce((f,[p,m])=>`${f}${p}=${m}
19
19
  `,""):String(t.body);return{path:e,submission:{formMethod:s,formAction:o,formEncType:t.formEncType,formData:void 0,json:void 0,text:u}}}else if(t.formEncType==="application/json"){if(!Ze(s))return r();try{let u=typeof t.body=="string"?JSON.parse(t.body):t.body;return{path:e,submission:{formMethod:s,formAction:o,formEncType:t.formEncType,formData:void 0,json:u,text:void 0}}}catch{return r()}}}he(typeof FormData=="function","FormData is not available in this environment");let a,l;if(t.formData)a=dc(t.formData),l=t.formData;else if(t.body instanceof FormData)a=dc(t.body),l=t.body;else if(t.body instanceof URLSearchParams)a=t.body,l=_d(a);else if(t.body==null)a=new URLSearchParams,l=new FormData;else try{a=new URLSearchParams(t.body),l=_d(a)}catch{return r()}let c={formMethod:s,formAction:o,formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(Ze(c.formMethod))return{path:e,submission:c};let d=Vn(e);return n&&d.search&&uh(d.search)&&a.append("index",""),d.search=`?${a}`,{path:on(d),submission:c}}function Id(n,e,t,r,i,s,o,a,l,c,d,u,f,p,m,b,x,w,v,S,j){let k=S?vt(S[1])?S[1].error:S[1].data:void 0,O=i.createURL(s.location),y=i.createURL(l),D;if(d&&s.errors){let B=Object.keys(s.errors)[0];D=o.findIndex(q=>q.route.id===B)}else if(S&&vt(S[1])){let B=S[0];D=o.findIndex(q=>q.route.id===B)-1}let A=S?S[1].statusCode:void 0,R=A&&A>=400,N={currentUrl:O,currentParams:s.matches[0]?.params||{},nextUrl:y,nextParams:o[0].params,...a,actionResult:k,actionStatus:A},L=$s(o),W=o.map((B,q)=>{let{route:de}=B,z=null;if(D!=null&&q>D?z=!1:de.lazy?z=!0:hh(de)?d?z=cc(de,s.loaderData,s.errors):Oy(s.loaderData,s.matches[q],B)&&(z=!0):z=!1,z!==null)return hc(t,r,n,L,B,c,e,z);let J=!1;typeof j=="boolean"?J=j:R?J=!1:(u||O.pathname+O.search===y.pathname+y.search||O.search!==y.search||Py(s.matches[q],B))&&(J=!0);let ie={...N,defaultShouldRevalidate:J},le=ki(B,ie);return hc(t,r,n,L,B,c,e,le,ie,j)}),F=[];return m.forEach((B,q)=>{if(d||!o.some(ke=>ke.route.id===B.routeId)||p.has(q))return;let de=s.fetchers.get(q),z=de&&de.state!=="idle"&&de.data===void 0,J=jn(x,B.path,w);if(!J){if(v&&z)return;F.push({key:q,routeId:B.routeId,path:B.path,matches:null,match:null,request:null,controller:null});return}if(b.has(q))return;let ie=Vo(J,B.path),le=new AbortController,fe=br(i,B.path,le.signal),we=null;if(f.has(q))f.delete(q),we=Or(t,r,fe,J,ie,c,e);else if(z)u&&(we=Or(t,r,fe,J,ie,c,e));else{let ke;typeof j=="boolean"?ke=j:R?ke=!1:ke=u;let Ae={...N,defaultShouldRevalidate:ke};ki(ie,Ae)&&(we=Or(t,r,fe,J,ie,c,e,Ae))}we&&F.push({key:q,routeId:B.routeId,path:B.path,matches:we,match:ie,request:fe,controller:le})}),{dsMatches:W,revalidatingFetchers:F}}function hh(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function cc(n,e,t){if(n.lazy)return!0;if(!hh(n))return!1;let r=e!=null&&n.id in e,i=t!=null&&t[n.id]!==void 0;return!r&&i?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!r&&!i}function Oy(n,e,t){let r=!e||t.route.id!==e.route.id,i=!n.hasOwnProperty(t.route.id);return r||i}function Py(n,e){let t=n.route.path;return n.pathname!==e.pathname||t!=null&&t.endsWith("*")&&n.params["*"]!==e.params["*"]}function ki(n,e){if(n.route.shouldRevalidate){let t=n.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}function $d(n,e,t,r,i,s){let o;if(n){let c=r[n];he(c,`No route found to patch children into: routeId = ${n}`),c.children||(c.children=[]),o=c.children}else o=t;let a=[],l=[];if(e.forEach(c=>{let d=o.find(u=>xm(c,u));d?l.push({existingRoute:d,newRoute:c}):a.push(c)}),a.length>0){let c=Ti(a,i,[n||"_","patch",String(o?.length||"0")],r);o.push(...c)}if(s&&l.length>0)for(let c=0;c<l.length;c++){let{existingRoute:d,newRoute:u}=l[c],f=d,[p]=Ti([u],i,[],{},!0);Object.assign(f,{element:p.element?p.element:f.element,errorElement:p.errorElement?p.errorElement:f.errorElement,hydrateFallbackElement:p.hydrateFallbackElement?p.hydrateFallbackElement:f.hydrateFallbackElement})}}function xm(n,e){return"id"in n&&"id"in e&&n.id===e.id?!0:n.index===e.index&&n.path===e.path&&n.caseSensitive===e.caseSensitive?(!n.children||n.children.length===0)&&(!e.children||e.children.length===0)?!0:n.children.every((t,r)=>e.children?.some(i=>xm(t,i))):!1}var Bd=new WeakMap,ym=({key:n,route:e,manifest:t,mapRouteProperties:r})=>{let i=t[e.id];if(he(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let s=i.lazy[n];if(!s)return;let o=Bd.get(i);o||(o={},Bd.set(i,o));let a=o[n];if(a)return a;let l=(async()=>{let c=Wx(n),u=i[n]!==void 0&&n!=="hasErrorBoundary";if(c)Ee(!c,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),o[n]=Promise.resolve();else if(u)Ee(!1,`Route "${i.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let f=await s();f!=null&&(Object.assign(i,{[n]:f}),Object.assign(i,r(i)))}typeof i.lazy=="object"&&(i.lazy[n]=void 0,Object.values(i.lazy).every(f=>f===void 0)&&(i.lazy=void 0))})();return o[n]=l,l},Fd=new WeakMap;function Ny(n,e,t,r,i){let s=t[n.id];if(he(s,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let d=Fd.get(s);if(d)return{lazyRoutePromise:d,lazyHandlerPromise:d};let u=(async()=>{he(typeof n.lazy=="function","No lazy route function found");let f=await n.lazy(),p={};for(let m in f){let b=f[m];if(b===void 0)continue;let x=Kx(m),v=s[m]!==void 0&&m!=="hasErrorBoundary";x?Ee(!x,"Route property "+m+" is not a supported property to be returned from a lazy route function. This property will be ignored."):v?Ee(!v,`Route "${s.id}" has a static property "${m}" defined but its lazy function is also returning a value for this property. The lazy route property "${m}" will be ignored.`):p[m]=b}Object.assign(s,p),Object.assign(s,{...r(s),lazy:void 0})})();return Fd.set(s,u),u.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:u}}let o=Object.keys(n.lazy),a=[],l;for(let d of o){if(i&&i.includes(d))continue;let u=ym({key:d,route:n,manifest:t,mapRouteProperties:r});u&&(a.push(u),d===e&&(l=u))}let c=a.length>0?Promise.all(a).then(()=>{}):void 0;return c?.catch(()=>{}),l?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:l}}async function Vd(n){let e=n.matches.filter(i=>i.shouldLoad),t={};return(await Promise.all(e.map(i=>i.resolve()))).forEach((i,s)=>{t[e[s].route.id]=i}),t}async function Ay(n){return n.matches.some(e=>e.route.middleware)?vm(n,()=>Vd(n)):Vd(n)}function vm(n,e){return My(n,e,r=>{if(Hy(r))throw r;return r},Fy,t);function t(r,i,s){if(s)return Promise.resolve(Object.assign(s.value,{[i]:{type:"error",result:r}}));{let{matches:o}=n,a=Math.min(Math.max(o.findIndex(c=>c.route.id===i),0),Math.max(o.findIndex(c=>c.shouldCallHandler()),0)),l=On(o,o[a].route.id).route.id;return Promise.resolve({[l]:{type:"error",result:r}})}}}async function My(n,e,t,r,i){let{matches:s,request:o,params:a,context:l,unstable_pattern:c}=n,d=s.flatMap(f=>f.route.middleware?f.route.middleware.map(p=>[f.route.id,p]):[]);return await wm({request:o,params:a,context:l,unstable_pattern:c},d,e,t,r,i)}async function wm(n,e,t,r,i,s,o=0){let{request:a}=n;if(a.signal.aborted)throw a.signal.reason??new Error(`Request aborted: ${a.method} ${a.url}`);let l=e[o];if(!l)return await t();let[c,d]=l,u,f=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");try{return u={value:await wm(n,e,t,r,i,s,o+1)},u.value}catch(p){return u={value:await s(p,c,u)},u.value}};try{let p=await d(n,f),m=p!=null?r(p):void 0;return i(m)?m:u?m??u.value:(u={value:await f()},u.value)}catch(p){return await s(p,c,u)}}function km(n,e,t,r,i){let s=ym({key:"middleware",route:r.route,manifest:e,mapRouteProperties:n}),o=Ny(r.route,Ze(t.method)?"action":"loader",e,n,i);return{middleware:s,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function hc(n,e,t,r,i,s,o,a,l=null,c){let d=!1,u=km(n,e,t,i,s);return{...i,_lazyPromises:u,shouldLoad:a,shouldRevalidateArgs:l,shouldCallHandler(f){return d=!0,l?typeof c=="boolean"?ki(i,{...l,defaultShouldRevalidate:c}):typeof f=="boolean"?ki(i,{...l,defaultShouldRevalidate:f}):ki(i,l):a},resolve(f){let{lazy:p,loader:m,middleware:b}=i.route,x=d||a||f&&!Ze(t.method)&&(p||m),w=b&&b.length>0&&!m&&!p;return x&&(Ze(t.method)||!w)?Ty({request:t,unstable_pattern:r,match:i,lazyHandlerPromise:u?.handler,lazyRoutePromise:u?.route,handlerOverride:f,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function Or(n,e,t,r,i,s,o,a=null){return r.map(l=>l.route.id!==i.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:a,shouldCallHandler:()=>!1,_lazyPromises:km(n,e,t,l,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:hc(n,e,t,$s(r),l,s,o,!0,a))}async function Dy(n,e,t,r,i,s){t.some(c=>c._lazyPromises?.middleware)&&await Promise.all(t.map(c=>c._lazyPromises?.middleware));let o={request:e,unstable_pattern:$s(t),params:t[0].params,context:i,matches:t},l=await n({...o,fetcherKey:r,runClientMiddleware:c=>{let d=o;return vm(d,()=>c({...d,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(t.flatMap(c=>[c._lazyPromises?.handler,c._lazyPromises?.route]))}catch{}return l}async function Ty({request:n,unstable_pattern:e,match:t,lazyHandlerPromise:r,lazyRoutePromise:i,handlerOverride:s,scopedContext:o}){let a,l,c=Ze(n.method),d=c?"action":"loader",u=f=>{let p,m=new Promise((w,v)=>p=v);l=()=>p(),n.signal.addEventListener("abort",l);let b=w=>typeof f!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):f({request:n,unstable_pattern:e,params:t.params,context:o},...w!==void 0?[w]:[]),x=(async()=>{try{return{type:"data",result:await(s?s(v=>b(v)):b())}}catch(w){return{type:"error",result:w}}})();return Promise.race([x,m])};try{let f=c?t.route.action:t.route.loader;if(r||i)if(f){let p,[m]=await Promise.all([u(f).catch(b=>{p=b}),r,i]);if(p!==void 0)throw p;a=m}else{await r;let p=c?t.route.action:t.route.loader;if(p)[a]=await Promise.all([u(p),i]);else if(d==="action"){let m=new URL(n.url),b=m.pathname+m.search;throw Pt(405,{method:n.method,pathname:b,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(f)a=await u(f);else{let p=new URL(n.url),m=p.pathname+p.search;throw Pt(404,{pathname:m})}}catch(f){return{type:"error",result:f}}finally{l&&n.signal.removeEventListener("abort",l)}return a}async function Ey(n){let e=n.headers.get("Content-Type");return e&&/\bapplication\/json\b/.test(e)?n.body==null?null:n.json():n.text()}async function Ry(n){let{result:e,type:t}=n;if(dh(e)){let r;try{r=await Ey(e)}catch(i){return{type:"error",error:i}}return t==="error"?{type:"error",error:new Is(e.status,e.statusText,r),statusCode:e.status,headers:e.headers}:{type:"data",data:r,statusCode:e.status,headers:e.headers}}return t==="error"?Kd(e)?e.data instanceof Error?{type:"error",error:e.data,statusCode:e.init?.status,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"error",error:By(e),statusCode:Ei(e)?e.status:void 0,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"error",error:e,statusCode:Ei(e)?e.status:void 0}:Kd(e)?{type:"data",data:e.data,statusCode:e.init?.status,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"data",data:e}}function Ly(n,e,t,r,i){let s=n.headers.get("Location");if(he(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Na(s)){let o=r.slice(0,r.findIndex(a=>a.route.id===t)+1);s=lc(new URL(e.url),o,i,s),n.headers.set("Location",s)}return n}function zd(n,e,t){if(Na(n)){let r=n,i=r.startsWith("//")?new URL(e.protocol+r):new URL(r),s=Rt(i.pathname,t)!=null;if(i.origin===e.origin&&s)return i.pathname+i.search+i.hash}return n}function br(n,e,t,r){let i=n.createURL(Sm(e)).toString(),s={signal:t};if(r&&Ze(r.formMethod)){let{formMethod:o,formEncType:a}=r;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(r.json)):a==="text/plain"?s.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?s.body=dc(r.formData):s.body=r.formData}return new Request(i,s)}function dc(n){let e=new URLSearchParams;for(let[t,r]of n.entries())e.append(t,typeof r=="string"?r:r.name);return e}function _d(n){let e=new FormData;for(let[t,r]of n.entries())e.append(t,r);return e}function Iy(n,e,t,r=!1,i=!1){let s={},o=null,a,l=!1,c={},d=t&&vt(t[1])?t[1].error:void 0;return n.forEach(u=>{if(!(u.route.id in e))return;let f=u.route.id,p=e[f];if(he(!er(p),"Cannot handle redirect results in processLoaderData"),vt(p)){let m=p.error;if(d!==void 0&&(m=d,d=void 0),o=o||{},i)o[f]=m;else{let b=On(n,f);o[b.route.id]==null&&(o[b.route.id]=m)}r||(s[f]=bm),l||(l=!0,a=Ei(p.error)?p.error.status:500),p.headers&&(c[f]=p.headers)}else s[f]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(a=p.statusCode),p.headers&&(c[f]=p.headers)}),d!==void 0&&t&&(o={[t[0]]:d},t[2]&&(s[t[2]]=void 0)),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:c}}function Hd(n,e,t,r,i,s){let{loaderData:o,errors:a}=Iy(e,t,r);return i.filter(l=>!l.matches||l.matches.some(c=>c.shouldLoad)).forEach(l=>{let{key:c,match:d,controller:u}=l;if(u&&u.signal.aborted)return;let f=s[c];if(he(f,"Did not find corresponding fetcher result"),vt(f)){let p=On(n.matches,d?.route.id);a&&a[p.route.id]||(a={...a,[p.route.id]:f.error}),n.fetchers.delete(c)}else if(er(f))he(!1,"Unhandled fetcher revalidation redirect");else{let p=pn(f.data);n.fetchers.set(c,p)}}),{loaderData:o,errors:a}}function Wd(n,e,t,r){let i=Object.entries(e).filter(([,s])=>s!==bm).reduce((s,[o,a])=>(s[o]=a,s),{});for(let s of t){let o=s.route.id;if(!e.hasOwnProperty(o)&&n.hasOwnProperty(o)&&s.route.loader&&(i[o]=n[o]),r&&r.hasOwnProperty(o))break}return i}function Ud(n){return n?vt(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function On(n,e){return(e?n.slice(0,n.findIndex(r=>r.route.id===e)+1):[...n]).reverse().find(r=>r.route.hasErrorBoundary===!0)||n[0]}function oo(n){let e=n.length===1?n[0]:n.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Pt(n,{pathname:e,routeId:t,method:r,type:i,message:s}={}){let o="Unknown Server Error",a="Unknown @remix-run/router error";return n===400?(o="Bad Request",r&&e&&t?a=`You made a ${r} request to "${e}" but did not provide a \`loader\` for route "${t}", so there is no way to handle the request.`:i==="invalid-body"&&(a="Unable to encode submission body")):n===403?(o="Forbidden",a=`Route "${t}" does not match URL "${e}"`):n===404?(o="Not Found",a=`No route matches URL "${e}"`):n===405&&(o="Method Not Allowed",r&&e&&t?a=`You made a ${r.toUpperCase()} request to "${e}" but did not provide an \`action\` for route "${t}", so there is no way to handle the request.`:r&&(a=`Invalid request method "${r.toUpperCase()}"`)),new Is(n||500,o,new Error(a),!0)}function ao(n){let e=Object.entries(n);for(let t=e.length-1;t>=0;t--){let[r,i]=e[t];if(er(i))return{key:r,result:i}}}function Sm(n){let e=typeof n=="string"?Vn(n):n;return on({...e,hash:""})}function $y(n,e){return n.pathname!==e.pathname||n.search!==e.search?!1:n.hash===""?e.hash!=="":n.hash===e.hash?!0:e.hash!==""}function By(n){return new Is(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)}function Fy(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([e,t])=>typeof e=="string"&&Vy(t))}function Vy(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function zy(n){return dh(n.result)&&mm.has(n.result.status)}function vt(n){return n.type==="error"}function er(n){return(n&&n.type)==="redirect"}function Kd(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function dh(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function _y(n){return mm.has(n)}function Hy(n){return dh(n)&&_y(n.status)&&n.headers.has("Location")}function Wy(n){return vy.has(n.toUpperCase())}function Ze(n){return xy.has(n.toUpperCase())}function uh(n){return new URLSearchParams(n).getAll("index").some(e=>e==="")}function Vo(n,e){let t=typeof e=="string"?Vn(e).search:e.search;if(n[n.length-1].route.index&&uh(t||""))return n[n.length-1];let r=hm(n);return r[r.length-1]}function Gd(n){let{formMethod:e,formAction:t,formEncType:r,text:i,formData:s,json:o}=n;if(!(!e||!t||!r)){if(i!=null)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:t,formEncType:r,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:o,text:void 0}}}function nl(n,e){return e?{state:"loading",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Uy(n,e){return{state:"submitting",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function oi(n,e){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ky(n,e){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e?e.data:void 0}}function pn(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function Gy(n,e){try{let t=n.sessionStorage.getItem(gm);if(t){let r=JSON.parse(t);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function qy(n,e){if(e.size>0){let t={};for(let[r,i]of e)t[r]=[...i];try{n.sessionStorage.setItem(gm,JSON.stringify(t))}catch(r){Ee(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function qd(){let n,e,t=new Promise((r,i)=>{n=async s=>{r(s);try{await t}catch{}},e=async s=>{i(s);try{await t}catch{}}});return{promise:t,resolve:n,reject:e}}var hr=g.createContext(null);hr.displayName="DataRouter";var Bs=g.createContext(null);Bs.displayName="DataRouterState";var Cm=g.createContext(!1);function Jy(){return g.useContext(Cm)}var fh=g.createContext({isTransitioning:!1});fh.displayName="ViewTransition";var jm=g.createContext(new Map);jm.displayName="Fetchers";var Yy=g.createContext(null);Yy.displayName="Await";var kt=g.createContext(null);kt.displayName="Navigation";var Da=g.createContext(null);Da.displayName="Location";var It=g.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var ph=g.createContext(null);ph.displayName="RouteError";var Om="REACT_ROUTER_ERROR",Qy="REDIRECT",Xy="ROUTE_ERROR_RESPONSE";function Zy(n){if(n.startsWith(`${Om}:${Qy}:{`))try{let e=JSON.parse(n.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function e1(n){if(n.startsWith(`${Om}:${Xy}:{`))try{let e=JSON.parse(n.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new Is(e.status,e.statusText,e.data)}catch{}}function t1(n,{relative:e}={}){he(Wr(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:r}=g.useContext(kt),{hash:i,pathname:s,search:o}=Fs(n,{relative:e}),a=s;return t!=="/"&&(a=s==="/"?t:rn([t,s])),r.createHref({pathname:a,search:o,hash:i})}function Wr(){return g.useContext(Da)!=null}function _t(){return he(Wr(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Da).location}var Pm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nm(n){g.useContext(kt).static||g.useLayoutEffect(n)}function an(){let{isDataRoute:n}=g.useContext(It);return n?g1():n1()}function n1(){he(Wr(),"useNavigate() may be used only in the context of a <Router> component.");let n=g.useContext(hr),{basename:e,navigator:t}=g.useContext(kt),{matches:r}=g.useContext(It),{pathname:i}=_t(),s=JSON.stringify(Aa(r)),o=g.useRef(!1);return Nm(()=>{o.current=!0}),g.useCallback((l,c={})=>{if(Ee(o.current,Pm),!o.current)return;if(typeof l=="number"){t.go(l);return}let d=Ma(l,JSON.parse(s),i,c.relative==="path");n==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:rn([e,d.pathname])),(c.replace?t.replace:t.push)(d,c.state,c)},[e,t,s,i,n])}var Am=g.createContext(null);function r1(){return g.useContext(Am)}function i1(n){let e=g.useContext(It).outlet;return g.useMemo(()=>e&&g.createElement(Am.Provider,{value:n},e),[e,n])}function Mm(){let{matches:n}=g.useContext(It),e=n[n.length-1];return e?e.params:{}}function Fs(n,{relative:e}={}){let{matches:t}=g.useContext(It),{pathname:r}=_t(),i=JSON.stringify(Aa(t));return g.useMemo(()=>Ma(n,JSON.parse(i),r,e==="path"),[n,i,r,e])}function s1(n,e,t,r,i){he(Wr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(kt),{matches:o}=g.useContext(It),a=o[o.length-1],l=a?a.params:{},c=a?a.pathname:"/",d=a?a.pathnameBase:"/",u=a&&a.route;{let v=u&&u.path||"";Tm(c,!u||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
20
20
 
21
- Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let f=_t(),p;p=f;let m=p.pathname||"/",b=m;if(d!=="/"){let v=d.replace(/^\//,"").split("/");b="/"+m.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=jn(n,{pathname:b});return Ee(u||x!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Ee(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),h1(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:rn([d,s.encodeLocation?s.encodeLocation(v.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?d:rn([d,s.encodeLocation?s.encodeLocation(v.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),o,t,r,i)}function o1(){let n=m1(),e=Ei(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",n),o=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:s},"ErrorBoundary")," or"," ",g.createElement("code",{style:s},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},e),t?g.createElement("pre",{style:i},t):null,o)}var a1=g.createElement(o1,null),Dm=class extends g.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,e){return e.location!==n.location||e.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:e.error,location:e.location,revalidation:n.revalidation||e.revalidation}}componentDidCatch(n,e){this.props.onError?this.props.onError(n,e):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const t=e1(n.digest);t&&(n=t)}let e=n!==void 0?g.createElement(It.Provider,{value:this.props.routeContext},g.createElement(ph.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?g.createElement(l1,{error:n},e):e}};Dm.contextType=Cm;var rl=new WeakMap;function l1({children:n,error:e}){let{basename:t}=g.useContext(kt);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=Zy(e.digest);if(r){let i=rl.get(e);if(i)throw i;let s=um(r.location,t);if(dm&&!rl.get(e))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw rl.set(e,o),o}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return n}function c1({routeContext:n,match:e,children:t}){let r=g.useContext(hr);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),g.createElement(It.Provider,{value:n},t)}function h1(n,e=[],t=null,r=null,i=null){if(n==null){if(!t)return null;if(t.errors)n=t.matches;else if(e.length===0&&!t.initialized&&t.matches.length>0)n=t.matches;else return null}let s=n,o=t?.errors;if(o!=null){let d=s.findIndex(u=>u.route.id&&o?.[u.route.id]!==void 0);he(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,l=-1;if(t)for(let d=0;d<s.length;d++){let u=s[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=d),u.route.id){let{loaderData:f,errors:p}=t,m=u.route.loader&&!f.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||m){a=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}let c=t&&r?(d,u)=>{r(d,{location:t.location,params:t.matches?.[0]?.params??{},unstable_pattern:$s(t.matches),errorInfo:u})}:void 0;return s.reduceRight((d,u,f)=>{let p,m=!1,b=null,x=null;t&&(p=o&&u.route.id?o[u.route.id]:void 0,b=u.route.errorElement||a1,a&&(l<0&&f===0?(Tm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,x=null):l===f&&(m=!0,x=u.route.hydrateFallbackElement||null)));let w=e.concat(s.slice(0,f+1)),v=()=>{let S;return p?S=b:m?S=x:u.route.Component?S=g.createElement(u.route.Component,null):u.route.element?S=u.route.element:S=d,g.createElement(c1,{match:u,routeContext:{outlet:d,matches:w,isDataRoute:t!=null},children:S})};return t&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?g.createElement(Dm,{location:t.location,revalidation:t.revalidation,component:b,error:p,children:v(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:c}):v()},null)}function mh(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d1(n){let e=g.useContext(hr);return he(e,mh(n)),e}function u1(n){let e=g.useContext(Bs);return he(e,mh(n)),e}function f1(n){let e=g.useContext(It);return he(e,mh(n)),e}function gh(n){let e=f1(n),t=e.matches[e.matches.length-1];return he(t.route.id,`${n} can only be used on routes that contain a unique "id"`),t.route.id}function p1(){return gh("useRouteId")}function m1(){let n=g.useContext(ph),e=u1("useRouteError"),t=gh("useRouteError");return n!==void 0?n:e.errors?.[t]}function g1(){let{router:n}=d1("useNavigate"),e=gh("useNavigate"),t=g.useRef(!1);return Nm(()=>{t.current=!0}),g.useCallback(async(i,s={})=>{Ee(t.current,Pm),t.current&&(typeof i=="number"?await n.navigate(i):await n.navigate(i,{fromRouteId:e,...s}))},[n,e])}var Jd={};function Tm(n,e,t){!e&&!Jd[n]&&(Jd[n]=!0,Ee(!1,t))}var Yd={};function Qd(n,e){!n&&!Yd[e]&&(Yd[e]=!0,console.warn(e))}var b1="useOptimistic",Xd=Mx[b1],x1=()=>{};function y1(n){return Xd?Xd(n):[n,x1]}function v1(n){let e={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&Ee(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(e,{element:g.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&Ee(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(e,{hydrateFallbackElement:g.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&Ee(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(e,{errorElement:g.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),e}var w1=["HydrateFallback","hydrateFallbackElement"],k1=class{constructor(){this.status="pending",this.promise=new Promise((n,e)=>{this.resolve=t=>{this.status==="pending"&&(this.status="resolved",n(t))},this.reject=t=>{this.status==="pending"&&(this.status="rejected",e(t))}})}};function S1({router:n,flushSync:e,onError:t,unstable_useTransitions:r}){r=Jy()||r;let[s,o]=g.useState(n.state),[a,l]=y1(s),[c,d]=g.useState(),[u,f]=g.useState({isTransitioning:!1}),[p,m]=g.useState(),[b,x]=g.useState(),[w,v]=g.useState(),S=g.useRef(new Map),j=g.useCallback((D,{deletedFetchers:A,newErrors:R,flushSync:N,viewTransitionOpts:L})=>{R&&t&&Object.values(R).forEach(F=>t(F,{location:D.location,params:D.matches[0]?.params??{},unstable_pattern:$s(D.matches)})),D.fetchers.forEach((F,B)=>{F.data!==void 0&&S.current.set(B,F.data)}),A.forEach(F=>S.current.delete(F)),Qd(N===!1||e!=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 W=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Qd(L==null||W,"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."),!L||!W){e&&N?e(()=>o(D)):r===!1?o(D):g.startTransition(()=>{r===!0&&l(F=>Zd(F,D)),o(D)});return}if(e&&N){e(()=>{b&&(p?.resolve(),b.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let F=n.window.document.startViewTransition(()=>{e(()=>o(D))});F.finished.finally(()=>{e(()=>{m(void 0),x(void 0),d(void 0),f({isTransitioning:!1})})}),e(()=>x(F));return}b?(p?.resolve(),b.skipTransition(),v({state:D,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(d(D),f({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,e,b,p,r,l,t]);g.useLayoutEffect(()=>n.subscribe(j),[n,j]),g.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new k1)},[u]),g.useEffect(()=>{if(p&&c&&n.window){let D=c,A=p.promise,R=n.window.document.startViewTransition(async()=>{r===!1?o(D):g.startTransition(()=>{r===!0&&l(N=>Zd(N,D)),o(D)}),await A});R.finished.finally(()=>{m(void 0),x(void 0),d(void 0),f({isTransitioning:!1})}),x(R)}},[c,p,n.window,r,l]),g.useEffect(()=>{p&&c&&a.location.key===c.location.key&&p.resolve()},[p,b,a.location,c]),g.useEffect(()=>{!u.isTransitioning&&w&&(d(w.state),f({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),v(void 0))},[u.isTransitioning,w]);let k=g.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:D=>n.navigate(D),push:(D,A,R)=>n.navigate(D,{state:A,preventScrollReset:R?.preventScrollReset}),replace:(D,A,R)=>n.navigate(D,{replace:!0,state:A,preventScrollReset:R?.preventScrollReset})}),[n]),O=n.basename||"/",y=g.useMemo(()=>({router:n,navigator:k,static:!1,basename:O,onError:t}),[n,k,O,t]);return g.createElement(g.Fragment,null,g.createElement(hr.Provider,{value:y},g.createElement(Bs.Provider,{value:a},g.createElement(jm.Provider,{value:S.current},g.createElement(fh.Provider,{value:u},g.createElement(P1,{basename:O,location:a.location,navigationType:a.historyAction,navigator:k,unstable_useTransitions:r},g.createElement(C1,{routes:n.routes,future:n.future,state:a,onError:t})))))),null)}function Zd(n,e){return{...n,navigation:e.navigation.state!=="idle"?e.navigation:n.navigation,revalidation:e.revalidation!=="idle"?e.revalidation:n.revalidation,actionData:e.navigation.state!=="submitting"?e.actionData:n.actionData,fetchers:e.fetchers}}var C1=g.memo(j1);function j1({routes:n,future:e,state:t,onError:r}){return s1(n,void 0,t,r,e)}function il({to:n,replace:e,state:t,relative:r}){he(Wr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=g.useContext(kt);Ee(!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:s}=g.useContext(It),{pathname:o}=_t(),a=an(),l=Ma(n,Aa(s),o,r==="path"),c=JSON.stringify(l);return g.useEffect(()=>{a(JSON.parse(c),{replace:e,state:t,relative:r})},[a,c,r,e,t]),null}function O1(n){return i1(n.context)}function P1({basename:n="/",children:e=null,location:t,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:o}){he(!Wr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=n.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:a,navigator:i,static:s,unstable_useTransitions:o,future:{}}),[a,i,s,o]);typeof t=="string"&&(t=Vn(t));let{pathname:c="/",search:d="",hash:u="",state:f=null,key:p="default"}=t,m=g.useMemo(()=>{let b=Rt(c,a);return b==null?null:{location:{pathname:b,search:d,hash:u,state:f,key:p},navigationType:r}},[a,c,d,u,f,p,r]);return Ee(m!=null,`<Router basename="${a}"> is not able to match the URL "${c}${d}${u}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:g.createElement(kt.Provider,{value:l},g.createElement(Da.Provider,{children:e,value:m}))}var zo="get",_o="application/x-www-form-urlencoded";function Ta(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function N1(n){return Ta(n)&&n.tagName.toLowerCase()==="button"}function A1(n){return Ta(n)&&n.tagName.toLowerCase()==="form"}function M1(n){return Ta(n)&&n.tagName.toLowerCase()==="input"}function D1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function T1(n,e){return n.button===0&&(!e||e==="_self")&&!D1(n)}function uc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((e,t)=>{let r=n[t];return e.concat(Array.isArray(r)?r.map(i=>[t,i]):[[t,r]])},[]))}function E1(n,e){let t=uc(n);return e&&e.forEach((r,i)=>{t.has(i)||e.getAll(i).forEach(s=>{t.append(i,s)})}),t}var lo=null;function R1(){if(lo===null)try{new FormData(document.createElement("form"),0),lo=!1}catch{lo=!0}return lo}var L1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sl(n){return n!=null&&!L1.has(n)?(Ee(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_o}"`),null):n}function I1(n,e){let t,r,i,s,o;if(A1(n)){let a=n.getAttribute("action");r=a?Rt(a,e):null,t=n.getAttribute("method")||zo,i=sl(n.getAttribute("enctype"))||_o,s=new FormData(n)}else if(N1(n)||M1(n)&&(n.type==="submit"||n.type==="image")){let a=n.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=n.getAttribute("formaction")||a.getAttribute("action");if(r=l?Rt(l,e):null,t=n.getAttribute("formmethod")||a.getAttribute("method")||zo,i=sl(n.getAttribute("formenctype"))||sl(a.getAttribute("enctype"))||_o,s=new FormData(a,n),!R1()){let{name:c,type:d,value:u}=n;if(d==="image"){let f=c?`${c}.`:"";s.append(`${f}x`,"0"),s.append(`${f}y`,"0")}else c&&s.append(c,u)}}else{if(Ta(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=zo,r=null,i=_o,o=n}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:t.toLowerCase(),encType:i,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function bh(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function $1(n,e,t){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname=`_root.${t}`:e&&Rt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.${t}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${t}`,r}async function B1(n,e){if(n.id in e)return e[n.id];try{let t=await import(n.module);return e[n.id]=t,t}catch(t){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function F1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function V1(n,e,t){let r=await Promise.all(n.map(async i=>{let s=e.routes[i.route.id];if(s){let o=await B1(s,t);return o.links?o.links():[]}return[]}));return W1(r.flat(1).filter(F1).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function eu(n,e,t,r,i,s){let o=(l,c)=>t[c]?l.route.id!==t[c].route.id:!0,a=(l,c)=>t[c].pathname!==l.pathname||t[c].route.path?.endsWith("*")&&t[c].params["*"]!==l.params["*"];return s==="assets"?e.filter((l,c)=>o(l,c)||a(l,c)):s==="data"?e.filter((l,c)=>{let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(o(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let u=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function z1(n,e,{includeHydrateFallback:t}={}){return _1(n.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),t&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function _1(n){return[...new Set(n)]}function H1(n){let e={},t=Object.keys(n).sort();for(let r of t)e[r]=n[r];return e}function W1(n,e){let t=new Set;return new Set(e),n.reduce((r,i)=>{let s=JSON.stringify(H1(i));return t.has(s)||(t.add(s),r.push({key:s,link:i})),r},[])}function Em(){let n=g.useContext(hr);return bh(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function U1(){let n=g.useContext(Bs);return bh(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var xh=g.createContext(void 0);xh.displayName="FrameworkContext";function Rm(){let n=g.useContext(xh);return bh(n,"You must render this element inside a <HydratedRouter> element"),n}function K1(n,e){let t=g.useContext(xh),[r,i]=g.useState(!1),[s,o]=g.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:u}=e,f=g.useRef(null);g.useEffect(()=>{if(n==="render"&&o(!0),n==="viewport"){let b=w=>{w.forEach(v=>{o(v.isIntersecting)})},x=new IntersectionObserver(b,{threshold:.5});return f.current&&x.observe(f.current),()=>{x.disconnect()}}},[n]),g.useEffect(()=>{if(r){let b=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(b)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return t?n!=="intent"?[s,f,{}]:[s,f,{onFocus:ai(a,p),onBlur:ai(l,m),onMouseEnter:ai(c,p),onMouseLeave:ai(d,m),onTouchStart:ai(u,p)}]:[!1,f,{}]}function ai(n,e){return t=>{n&&n(t),t.defaultPrevented||e(t)}}function G1({page:n,...e}){let{router:t}=Em(),r=g.useMemo(()=>jn(t.routes,n,t.basename),[t.routes,n,t.basename]);return r?g.createElement(J1,{page:n,matches:r,...e}):null}function q1(n){let{manifest:e,routeModules:t}=Rm(),[r,i]=g.useState([]);return g.useEffect(()=>{let s=!1;return V1(n,e,t).then(o=>{s||i(o)}),()=>{s=!0}},[n,e,t]),r}function J1({page:n,matches:e,...t}){let r=_t(),{manifest:i,routeModules:s}=Rm(),{basename:o}=Em(),{loaderData:a,matches:l}=U1(),c=g.useMemo(()=>eu(n,e,l,i,r,"data"),[n,e,l,i,r]),d=g.useMemo(()=>eu(n,e,l,i,r,"assets"),[n,e,l,i,r]),u=g.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let m=new Set,b=!1;if(e.forEach(w=>{let v=i.routes[w.route.id];!v||!v.hasLoader||(!c.some(S=>S.route.id===w.route.id)&&w.route.id in a&&s[w.route.id]?.shouldRevalidate||v.hasClientLoader?b=!0:m.add(w.route.id))}),m.size===0)return[];let x=$1(n,o,"data");return b&&m.size>0&&x.searchParams.set("_routes",e.filter(w=>m.has(w.route.id)).map(w=>w.route.id).join(",")),[x.pathname+x.search]},[o,a,r,i,c,e,n,s]),f=g.useMemo(()=>z1(d,i),[d,i]),p=q1(d);return g.createElement(g.Fragment,null,u.map(m=>g.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...t})),f.map(m=>g.createElement("link",{key:m,rel:"modulepreload",href:m,...t})),p.map(({key:m,link:b})=>g.createElement("link",{key:m,nonce:t.nonce,...b})))}function Y1(...n){return e=>{n.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}var Q1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Q1&&(window.__reactRouterVersion="7.11.0")}catch{}function X1(n,e){return Cy({basename:e?.basename,getContext:e?.getContext,future:e?.future,history:Vx({window:e?.window}),hydrationData:Z1(),routes:n,mapRouteProperties:v1,hydrationRouteProperties:w1,dataStrategy:e?.dataStrategy,patchRoutesOnNavigation:e?.patchRoutesOnNavigation,window:e?.window,unstable_instrumentations:e?.unstable_instrumentations}).initialize()}function Z1(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:ev(n.errors)}),n}function ev(n){if(!n)return null;let e=Object.entries(n),t={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")t[r]=new Is(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",t[r]=o}catch{}}if(t[r]==null){let s=new Error(i.message);s.stack="",t[r]=s}}else t[r]=i;return t}var Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Im=g.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:i,reloadDocument:s,replace:o,state:a,target:l,to:c,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:f,...p},m){let{basename:b,unstable_useTransitions:x}=g.useContext(kt),w=typeof c=="string"&&Lm.test(c),v=um(c,b);c=v.to;let S=t1(c,{relative:i}),[j,k,O]=K1(r,p),y=iv(c,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:u,unstable_defaultShouldRevalidate:f,unstable_useTransitions:x});function D(R){e&&e(R),R.defaultPrevented||y(R)}let A=g.createElement("a",{...p,...O,href:v.absoluteURL||S,onClick:v.isExternal||s?e:D,ref:Y1(m,k),target:l,"data-discover":!w&&t==="render"?"true":void 0});return j&&!w?g.createElement(g.Fragment,null,A,g.createElement(G1,{page:S})):A});Im.displayName="Link";var tv=g.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:i=!1,style:s,to:o,viewTransition:a,children:l,...c},d){let u=Fs(o,{relative:c.relative}),f=_t(),p=g.useContext(Bs),{navigator:m,basename:b}=g.useContext(kt),x=p!=null&&hv(u)&&a===!0,w=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,v=f.pathname,S=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),S=S?S.toLowerCase():null,w=w.toLowerCase()),S&&b&&(S=Rt(S,b)||S);const j=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let k=v===w||!i&&v.startsWith(w)&&v.charAt(j)==="/",O=S!=null&&(S===w||!i&&S.startsWith(w)&&S.charAt(w.length)==="/"),y={isActive:k,isPending:O,isTransitioning:x},D=k?e:void 0,A;typeof r=="function"?A=r(y):A=[r,k?"active":null,O?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let R=typeof s=="function"?s(y):s;return g.createElement(Im,{...c,"aria-current":D,className:A,ref:d,style:R,to:o,viewTransition:a},typeof l=="function"?l(y):l)});tv.displayName="NavLink";var nv=g.forwardRef(({discover:n="render",fetcherKey:e,navigate:t,reloadDocument:r,replace:i,state:s,method:o=zo,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:f,...p},m)=>{let{unstable_useTransitions:b}=g.useContext(kt),x=lv(),w=cv(a,{relative:c}),v=o.toLowerCase()==="get"?"get":"post",S=typeof a=="string"&&Lm.test(a),j=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let O=k.nativeEvent.submitter,y=O?.getAttribute("formmethod")||o,D=()=>x(O||k.currentTarget,{fetcherKey:e,method:y,navigate:t,replace:i,state:s,relative:c,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:f});b&&t!==!1?g.startTransition(()=>D()):D()};return g.createElement("form",{ref:m,method:v,action:w,onSubmit:r?l:j,...p,"data-discover":!S&&n==="render"?"true":void 0})});nv.displayName="Form";function rv(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $m(n){let e=g.useContext(hr);return he(e,rv(n)),e}function iv(n,{target:e,replace:t,state:r,preventScrollReset:i,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a,unstable_useTransitions:l}={}){let c=an(),d=_t(),u=Fs(n,{relative:s});return g.useCallback(f=>{if(T1(f,e)){f.preventDefault();let p=t!==void 0?t:on(d)===on(u),m=()=>c(n,{replace:p,state:r,preventScrollReset:i,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a});l?g.startTransition(()=>m()):m()}},[d,c,u,t,r,e,n,i,s,o,a,l])}function sv(n){Ee(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 e=g.useRef(uc(n)),t=g.useRef(!1),r=_t(),i=g.useMemo(()=>E1(r.search,t.current?null:e.current),[r.search]),s=an(),o=g.useCallback((a,l)=>{const c=uc(typeof a=="function"?a(new URLSearchParams(i)):a);t.current=!0,s("?"+c,l)},[s,i]);return[i,o]}var ov=0,av=()=>`__${String(++ov)}__`;function lv(){let{router:n}=$m("useSubmit"),{basename:e}=g.useContext(kt),t=p1(),r=n.fetch,i=n.navigate;return g.useCallback(async(s,o={})=>{let{action:a,method:l,encType:c,formData:d,body:u}=I1(s,e);if(o.navigate===!1){let f=o.fetcherKey||av();await r(f,t,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:u,formMethod:o.method||l,formEncType:o.encType||c,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:u,formMethod:o.method||l,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:t,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,e,t])}function cv(n,{relative:e}={}){let{basename:t}=g.useContext(kt),r=g.useContext(It);he(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...Fs(n||".",{relative:e})},o=_t();if(n==null){s.search=o.search;let a=new URLSearchParams(s.search),l=a.getAll("index");if(l.some(d=>d==="")){a.delete("index"),l.filter(u=>u).forEach(u=>a.append("index",u));let d=a.toString();s.search=d?`?${d}`:""}}return(!n||n===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(s.pathname=s.pathname==="/"?t:rn([t,s.pathname])),on(s)}function hv(n,{relative:e}={}){let t=g.useContext(fh);he(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$m("useViewTransitionState"),i=Fs(n,{relative:e});if(!t.isTransitioning)return!1;let s=Rt(t.currentLocation.pathname,r)||t.currentLocation.pathname,o=Rt(t.nextLocation.pathname,r)||t.nextLocation.pathname;return Zo(i.pathname,o)!=null||Zo(i.pathname,s)!=null}function dv(n){return g.createElement(S1,{flushSync:nm.flushSync,...n})}const uv={en:{loading:"Loading...",error:"Error",selectProject:"Select a project to view dashboard",controlCenter:"Control Center",settings:"Settings",sync:"Sync",offline:"Offline",switchToLight:"Switch to light mode",switchToDark:"Switch to dark mode",settingsSection:"Settings",configEditor:"Config Editor",projects:"Projects",addProject:"Add Project",global:"Global",skills:"Skills",health:"Health",collapse:"Collapse",expand:"Expand",installing:"Installing...",manage:"Manage",uninstall:"Uninstall",installGlobally:"Install Globally",installGloballyDesc:"Available to all projects instead of current project only",selectAtLeastOneAgent:"Please select at least one agent",installationFailed:"Installation failed",allSkills:"All Skills",refresh:"Refresh",browseAndManageSkills:"Browse and manage skills for your agents",detected:"Detected",notDetected:"Not detected",sessions:"sessions",noSessions:"No sessions",terminal:"Terminal",terminalSub:"Open bash at path",editor:"Editor",editorSub:"Open in VS Code",useGlobalFallback:"Use global fallback",openAtPath:"Open at project path",openAppOnly:"Open app only",actionOptionsLoadFailed:"Could not load editor/terminal options",launch:"Launch",launchSub:"Start Claude Code",config:"Config",configSub:"Manage project settings",recentSessions:"Recent Sessions",viewAllHistory:"View All History",showLess:"Show Less",actionFailed:"Action failed",loadingSessions:"Loading sessions...",noSessionsFound:"No sessions found",configuration:"Claude Settings",activeKit:"Active Kit",aiModel:"Model",hooks:"Hooks",active:"active",mcpServers:"MCP Servers",connected:"connected",editProjectConfig:"Edit Project Config",globalSettings:"(Global)",globalSkills:"Global Skills",loadingSkills:"Loading skills...",noDescription:"No description",browseSkillsMarketplace:"Browse Skills Marketplace",backToDashboard:"Back to Dashboard",educationalConfigEditor:"Educational Config Editor",discard:"Discard",saveChanges:"Save Changes",mergedView:"Merged View",localConfig:"Local (.ck.json)",globalConfig:"Global",syntaxValid:"Syntax Valid",configurationHelp:"Configuration Help",field:"Field",type:"Type",default:"Default",description:"Description",validValues:"Valid Values",systemEffect:"System Effect",exampleUsage:"Example Usage",knowledgeBase:"Knowledge Base",clickToSeeHelp:"Click on any configuration field to see detailed documentation and usage examples.",extractedFrom:"Extracted from ClaudeKit v2.x Specification",resetToDefault:"Reset",saving:"Saving...",saved:"Saved",confirmReset:"Reset to Default?",confirmResetMessage:"All changes will be lost and replaced with default values.",confirm:"Confirm",saveFailed:"Save failed",configTab:"Config",systemTab:"System",formTab:"Form",jsonTab:"JSON",readOnly:"Read-only",installedKit:"Installed Kit",kitVersion:"Kit Version",installedOn:"Installed On",noKitInstalled:"No kit installed",components:"Components",agents:"Agents",commands:"Commands",workflows:"Workflows",kitSkills:"Skills",fileOwnership:"File Ownership",ownershipCk:"kit-managed",ownershipUser:"user-owned",ownershipModified:"modified",componentInventory:"Component Inventory",installedHooks:"Installed Hooks",installedMcpServers:"MCP Servers",lastChecked:"Last update check",staleIndicator:"Stale",skippedVersion:"Skipped",filesModifiedFromDefaults:"files modified from kit defaults",cliCard:"ClaudeKit CLI",checkForUpdates:"Check for Updates",checking:"Checking...",upToDate:"Up to date",updateAvailable:"Update available",updateNow:"Update Now",updating:"Updating...",updateSuccess:"Update Complete!",updateFailed:"Update Failed",closeModal:"Close",showDetails:"Show Details",hideDetails:"Hide Details",environment:"Environment",claudeConfigPath:"Claude config",nodeVersion:"Node",bunVersion:"Bun",osVersion:"OS",channelStable:"Stable",channelBeta:"Beta",betaBadge:"Beta",latestVersion:"Latest",selectVersion:"Select version",loadingVersions:"Loading versions...",prereleaseLabel:"Pre",currentVersionLabel:"Current",checkAll:"Check All",checkingAll:"Checking...",updateAll:"Update All",updatesAvailable:"{count} updates available",allUpToDate:"All up to date",systemControlTower:"System Control Tower",systemOverviewTitle:"Update & Runtime Overview",systemOverviewDesc:"Track CLI and kit health, then run upgrades from one place.",installedComponentsHeading:"Installed Components",updateReadiness:"Update Readiness",checkedComponents:"Checked",activeChannel:"Channel",readyToScan:"Ready to scan",noTrackedFiles:"No tracked files detected",kitsLabel:"Kits",componentFilterAll:"All",componentFilterUpdates:"Updates",componentFilterUpdatesCount:"Updates ({count})",componentFilterUpToDate:"Up to date",componentFilterUpToDateCount:"Up to date ({count})",componentFilterCli:"CLI",componentFilterKits:"Kits",noComponentsMatchFilter:"No components match the current filter.",runCheckAllForFilter:"Run Check All to populate this filter.",noUpdatesFound:"No updates found. Checked components are up to date.",noUpToDateYet:"No components are up to date yet.",configWorkspaceHint:"Edit configuration or manage system updates from one workspace.",settingsJsonHeading:"Claude Settings JSON",settingsJsonMissing:"No settings file found at ~/.claude/settings.json.",settingsJsonLoadFailed:"Failed to load ~/.claude/settings.json.",settingsBackupSaved:"Backup saved",hookDiagnosticsTitle:"Hook Diagnostics",hookDiagnosticsDesc:"Inspect recent hook activity and failures without opening JSONL files manually.",hookDiagnosticsPathPending:"Resolving log path...",hookDiagnosticsScopeGlobal:"Global hooks",hookDiagnosticsEntries:"Entries",hookDiagnosticsCrashes:"Crashes",hookDiagnosticsWarnings:"Warnings",hookDiagnosticsBlocks:"Blocks",hookDiagnosticsLastEvent:"Last event",hookDiagnosticsLoading:"Loading hook diagnostics...",hookDiagnosticsLoadFailed:"Failed to load hook diagnostics",hookDiagnosticsMissing:"No hook log file found for this scope yet.",hookDiagnosticsEmpty:"Hook log is present but contains no readable entries.",hookDiagnosticsParseErrorsNotice:"Skipped {count} malformed log line(s) while loading diagnostics.",hookDiagnosticsTruncatedNotice:"Showing a bounded recent window to keep diagnostics responsive on large logs.",hookDiagnosticsToolLabel:"tool",hookDiagnosticsTargetLabel:"target",hookDiagnosticsUnknown:"Unknown",addProjectTitle:"Add Project",addProjectDescription:"Add a new ClaudeKit project to the control center",projectPath:"Project Path",pathPlaceholder:"/path/to/project",alias:"Alias",aliasOptional:"(optional)",aliasPlaceholder:"my-project",aliasDescription:"Custom display name for the project",pathRequired:"Path is required",failedToAdd:"Failed to add project",cancel:"Cancel",adding:"Adding...",somethingWentWrong:"Something went wrong",reloadApp:"Reload App",serverNotRunning:"Server Not Running",startServerMessage:"The Config UI requires the backend server to be running.",runThisCommand:"Run this command",tryAgain:"Try Again",projectConfig:"Project Config",inheritedFromGlobal:"Inherited from Global",localOverride:"Local Override",viewGlobalConfig:"This field inherits from global config. View",onboardingTitle:"Welcome to ClaudeKit",onboardingSubtitle:"Choose your kit and get started in minutes",kitEngineerName:"ClaudeKit Engineer",kitEngineerTagline:"AI-powered coding with skills, hooks, and multi-agent workflows",kitMarketingName:"ClaudeKit Marketing",kitMarketingTagline:"Content automation: campaigns, social media, analytics",featureAgents:"AI Agents",featureAgentsDesc:"Specialized agents for different tasks",featureHooks:"Lifecycle Hooks",featureHooksDesc:"Customize Claude's behavior at key moments",featureSkills:"Skills Library",featureSkillsDesc:"Pre-built capabilities you can activate",featureMultiAgent:"Multi-Agent Workflows",featureMultiAgentDesc:"Coordinate multiple agents for complex tasks",featureContent:"Content Generation",featureContentDesc:"Automated content creation and optimization",featureSocial:"Social Media Tools",featureSocialDesc:"Scheduling, analytics, and engagement automation",stepChooseKit:"Choose Kit",stepConfigure:"Configure",stepInstall:"Install",back:"Back",next:"Next",install:"Install",installSuccess:"Installation Complete!",installSuccessDesc:"{kit} is ready to use",getStarted:"Get Started",goToDashboard:"Go to Dashboard",kitConfig:"Kit Config",kitConfigSubtitle:"Configure ClaudeKit Engineer settings",scopeGlobal:"Global",scopeProject:"Project",sectionGeneral:"General",sectionPaths:"Paths",sectionPrivacy:"Privacy & Trust",sectionProject:"Project Detection",sectionIntegrations:"Integrations",sectionHooks:"Hooks",sectionAdvanced:"Advanced",fieldCodingLevel:"Coding Level",fieldCodingLevelDesc:"Your coding experience level (-1=auto, 0=beginner, 1=intermediate, 2=advanced, 3=expert, 4=tech-lead, 5=god-mode)",fieldStatusline:"Statusline Mode",fieldStatuslineDesc:"How much info to show in the status line",fieldThinkingLanguage:"Thinking Language",fieldThinkingLanguageDesc:"Language for Claude's internal reasoning (null=English)",fieldResponseLanguage:"Response Language",fieldResponseLanguageDesc:"Language for Claude's responses (null=match user)",fieldDocsPath:"Docs Directory",fieldDocsPathDesc:"Path to documentation directory",fieldPlansPath:"Plans Directory",fieldPlansPathDesc:"Path to plans directory",fieldPrivacyBlock:"Privacy Block",fieldPrivacyBlockDesc:"Block access to sensitive files (.env, credentials)",fieldTrustEnabled:"Trust Mode",fieldTrustEnabledDesc:"Enable auto-approval for tool calls",fieldTrustPassphrase:"Trust Passphrase",fieldTrustPassphraseDesc:"Passphrase to enable trust mode",fieldProjectType:"Project Type",fieldProjectTypeDesc:"Override auto-detected project type",fieldPackageManager:"Package Manager",fieldPackageManagerDesc:"Override auto-detected package manager",fieldFramework:"Framework",fieldFrameworkDesc:"Override auto-detected framework",fieldGeminiModel:"Gemini Model",fieldGeminiModelDesc:"Gemini model for CLI commands",fieldResearchUseGemini:"Use Gemini for Research",fieldResearchUseGeminiDesc:"Use Gemini CLI instead of WebSearch",fieldDocsMaxLoc:"Max Lines per Doc",fieldDocsMaxLocDesc:"Maximum lines of code per documentation file",fieldPlanNamingFormat:"Plan Naming Format",fieldPlanNamingFormatDesc:"Format for plan directory names",fieldPlanDateFormat:"Plan Date Format",fieldPlanDateFormatDesc:"Date format for plan names (moment.js)",fieldPlanValidationMode:"Validation Mode",fieldPlanValidationModeDesc:"How to validate plans before implementation",fieldPlanMinQuestions:"Min Questions",fieldPlanMinQuestionsDesc:"Minimum validation questions",fieldPlanMaxQuestions:"Max Questions",fieldPlanMaxQuestionsDesc:"Maximum validation questions",fieldAssertions:"Assertions",fieldAssertionsDesc:"Code assertions and rules to enforce",fieldHookSessionInit:"Session Init",fieldHookSessionInitDesc:"Project detection and environment setup",fieldHookSubagentInit:"Subagent Init",fieldHookSubagentInitDesc:"Inject context to subagents",fieldHookDescriptiveName:"Descriptive Name",fieldHookDescriptiveNameDesc:"Enforce kebab-case descriptive file naming for scripts",fieldHookDevRulesReminder:"Dev Rules Reminder",fieldHookDevRulesReminderDesc:"Inject development rules context",fieldHookUsageContextAwareness:"Usage Context Awareness",fieldHookUsageContextAwarenessDesc:"Usage limits awareness",fieldHookContextTracking:"Context Tracking",fieldHookContextTrackingDesc:"Context window tracking (% used, token counts)",fieldHookScoutBlock:"Scout Block",fieldHookScoutBlockDesc:"Block heavy directories from exploration",fieldHookPrivacyBlock:"Privacy Block Hook",fieldHookPrivacyBlockDesc:"Block sensitive files from reading",fieldHookPostEditSimplify:"Post-Edit Simplify",fieldHookPostEditSimplifyDesc:"Simplify reminder after edits",skillsPageTitle:"Skills Management",skillsPageDesc:"Install ClaudeKit skills to your coding agents",availableSkills:"Available Skills",installedSkills:"Installed Skills",noSkillsFound:"No skills found",installSkill:"Install",uninstallSkill:"Uninstall",manageSkill:"Manage",syncRegistry:"Sync",installSkillTitle:"Install Skill",selectAgents:"Select target agents",installLocation:"Installation location",globalInstall:"Global",projectInstall:"Project",confirmInstall:"Install to selected agents",installingSkill:"Installing...",skillInstallSuccess:"Skill installed successfully",skillInstallFailed:"Installation failed",agentClaudeCode:"Claude Code",agentCursor:"Cursor",agentCodex:"Codex",agentOpencode:"OpenCode",agentGoose:"Goose",agentGeminiCli:"Gemini CLI",agentAntigravity:"Antigravity",agentGithubCopilot:"GitHub Copilot",agentAmp:"Amp",agentKilo:"Kilo",agentRoo:"Roo",agentWindsurf:"Windsurf",agentCline:"Cline",agentOpenhands:"OpenHands",installed:"Installed",notInstalled:"Not installed",allAgents:"All Agents",filterByAgent:"Filter by agent",skillsTitle:"Skills",skillsSubtitle:"Browse, install, and manage skills for your coding agents",availableCount:"Available",installedCount:"Installed",agentsCount:"Agents",searchSkills:"Search skills...",searchShortcut:"/",sortAZ:"A-Z",sortCategory:"Category",sortInstalledFirst:"Installed first",listView:"List view",gridView:"Grid view",categoryAll:"All",categoryAI:"AI",categoryUIUX:"UI/UX",categoryBackend:"Backend",categorySecurity:"Security",categoryDevOps:"DevOps",categoryDatabase:"Database",categoryDevelopment:"Development",categoryResearch:"Research",categoryGeneral:"General",categoryCore:"Core",categoryDocumentation:"Documentation",categoryTooling:"Tooling",categoryMedia:"Media",categoryFrameworks:"Frameworks",skillsCountLabel:"{count} skills",installToAll:"Install to All Detected",scopeLabel:"Installation Scope",agentInstalled:"Installed",agentNotInstalled:"Not installed",skillSource:"Source location",skillSourceBadge:"Source",detailPanelClose:"Close",versionLabel:"v{version}",installAllToAllAgents:"Install All to All Agents",bulkInstallFailed:"Bulk install failed",noAgentsDetected:"No agents detected",kitBadgeEngineer:"Engineer",kitBadgeMarketing:"Marketing",customizedBadge:"Customized",installedVersionLabel:"Installed Version",installedAtLabel:"Installed At",sourceTimestampLabel:"Source Date",kitLabel:"Kit",skillMetadata:"Skill Info",migrate:"Migrate",migrateTitle:"Migrate",migrateSubtitle:"Migrate your Claude Code stack to other providers",migrateDetectedProviders:"Detected",migrateSelectedProviders:"Selected",migrateDiscovering:"Discovering migration sources...",migrateRefresh:"Refresh Discovery",migrateRun:"Run Migration",migrateRunning:"Migrating...",migrateSourceSummary:"Source Summary",migratePresetCodex:"Codex",migratePresetAntigravity:"Antigravity",migratePresetCore:"Codex + Antigravity + Droid",migratePresetDetected:"All Detected",migrateScope:"Scope",migrateScopeProject:"Project",migrateScopeGlobal:"Global",migrateTypes:"Portable Types",migrateTypeAgents:"Subagents",migrateTypeCommands:"Commands",migrateTypeSkills:"Skills",migrateTypeConfig:"Config",migrateTypeRules:"Rules",migrateTypeHooks:"Hooks",migrateSearchProviders:"Search providers...",migrateSelectVisible:"Select Visible",migrateClearSelection:"Clear Selection",migrateProvidersHeading:"Target Providers",migrateProvidersCountSuffix:"providers",migrateNoProvidersMatch:"No providers match current filters.",migrateSelectButton:"Select",migrateSelectedButton:"Selected",migrateSelectProviderAction:"Select Provider",migrateUnselectProvider:"Unselect Provider",migrateCapabilitiesLabel:"types",migrateCapabilitiesSection:"Capability Matrix",migrateSupported:"Supported",migrateUnsupportedShort:"Unsupported",migrateIncludedEnabled:"Enabled",migrateIncludedDisabled:"Disabled",migrateLatestTarget:"Latest Target",migrateNoResultForProvider:"No migration result for this provider yet.",migrateActionSummaryTitle:"Ready to Migrate",migrateGlobalOnlyCommandsShort:"Commands global-only",migrateNoProviders:"No providers available.",migrateUnsupported:"Will be skipped (unsupported)",migrateGlobalForced:"Codex commands are global-only. Scope will be forced to global.",migrateResults:"Migration Results",migrateInstalled:"Installed",migrateSkipped:"Skipped",migrateFailed:"Failed",migrateProvider:"Provider",migrateStatus:"Status",migratePath:"Path",migrateError:"Error",migrateStatusInstalled:"Installed",migrateStatusSkipped:"Skipped",migrateStatusFailed:"Failed",migrateNoResults:"No migration results yet.",migrateDetectFailed:"Failed to discover migration data",migrateExecuteFailed:"Migration execution failed",migrateSelectProvider:"Select at least one provider",migrateNoTypesEnabled:"Enable at least one portable type",migrateDetectedTag:"Detected",migrateNotDetectedTag:"Not detected",migrateFilterRecommended:"Recommended",migrateActionInstall:"Install",migrateActionUpdate:"Update",migrateActionSkip:"Skip",migrateActionConflict:"Conflict",migrateActionDelete:"Delete",migrateUnchanged:"unchanged",migrateConflictSectionTitle:"Conflicts",migrateConflictUseCK:"Use CK",migrateConflictKeepMine:"Keep Mine",migrateConflictSmartMerge:"Smart Merge",migrateConflictShowDiff:"Show Diff",migrateConflictHideDiff:"Hide Diff",migrateConflictResolved:"Resolved",migrateConflictManual:"Manual",migrateConflictOverwriteAll:"Overwrite All",migrateConflictKeepAll:"Keep All",migrateSummaryTitle:"Migration Complete",migrateSummaryNewMigration:"New Migration",migrateType:"Type",migrateItem:"Item",migrateReconciling:"Analyzing changes...",migrateReviewPlan:"Review Plan",migrateExecutePlan:"Execute Migration",migrateExecuting:"Executing migration...",migrateResolveConflicts:"Resolve all conflicts before executing",migrateSummarySubtitle:"items migrated",migrateSummarySearchPlaceholder:"Search items...",migrateSummaryFilterAll:"All",migrateSummaryCollapseAll:"Collapse all",migrateSummaryExpandAll:"Expand all",migrateSummaryNoResults:"No items match your search",migrateSummaryProviders:"Providers",migrateTypeUnknown:"Other",kanbanTitle:"Plan Kanban",kanbanNoFile:"No plan file specified. Use ?file= parameter.",kanbanNoPhases:"No phases detected in this plan",kanbanError400:"Invalid request — missing file parameter",kanbanError403:"Access denied — file is outside the project directory",kanbanError404:"Plan file not found",kanbanComplete:"complete",kanbanStatus_pending:"Pending","kanbanStatus_in-progress":"In Progress",kanbanStatus_completed:"Completed",kanbanPhases:"phases",kanbanProgress:"Progress",kanbanLoadError:"Failed to load plan data",developmentFeature:"Development",betaFeature:"Beta",experimentalFeature:"Experimental"},vi:{loading:"Đang tải...",error:"Lỗi",selectProject:"Chọn dự án để xem bảng điều khiển",controlCenter:"Trung tâm điều khiển",settings:"Cài đặt",sync:"Đồng bộ",offline:"Ngoại tuyến",switchToLight:"Chuyển sang chế độ sáng",switchToDark:"Chuyển sang chế độ tối",settingsSection:"Cài đặt",configEditor:"Trình chỉnh sửa cấu hình",projects:"Dự án",addProject:"Thêm dự án",global:"Toàn cục",skills:"Kỹ năng",health:"Sức khỏe",collapse:"Thu gọn",expand:"Mở rộng",installing:"Đang cài đặt...",manage:"Quản lý",uninstall:"Gỡ cài đặt",installGlobally:"Cài đặt toàn cục",installGloballyDesc:"Khả dụng cho tất cả dự án thay vì chỉ dự án hiện tại",selectAtLeastOneAgent:"Vui lòng chọn ít nhất một agent",installationFailed:"Cài đặt thất bại",allSkills:"Tất cả kỹ năng",refresh:"Làm mới",browseAndManageSkills:"Duyệt và quản lý kỹ năng cho agents của bạn",detected:"Đã phát hiện",notDetected:"Chưa phát hiện",sessions:"phiên",noSessions:"Không có phiên",terminal:"Terminal",terminalSub:"Mở bash tại đường dẫn",editor:"Trình soạn thảo",editorSub:"Mở trong VS Code",useGlobalFallback:"Dùng fallback global",openAtPath:"Mở tại đường dẫn dự án",openAppOnly:"Chỉ mở ứng dụng",actionOptionsLoadFailed:"Không thể tải tùy chọn editor/terminal",launch:"Khởi chạy",launchSub:"Bắt đầu Claude Code",config:"Cấu hình",configSub:"Quản lý cài đặt dự án",recentSessions:"Phiên gần đây",viewAllHistory:"Xem tất cả lịch sử",showLess:"Thu gọn",actionFailed:"Thao tác thất bại",loadingSessions:"Đang tải phiên...",noSessionsFound:"Không tìm thấy phiên nào",configuration:"Cài đặt Claude",activeKit:"Kit hoạt động",aiModel:"Mô hình",hooks:"Hooks",active:"hoạt động",mcpServers:"Máy chủ MCP",connected:"kết nối",editProjectConfig:"Chỉnh sửa cấu hình dự án",globalSettings:"(Toàn cục)",globalSkills:"Kỹ năng toàn cục",loadingSkills:"Đang tải kỹ năng...",noDescription:"Không có mô tả",browseSkillsMarketplace:"Duyệt Skills Marketplace",backToDashboard:"Quay lại bảng điều khiển",educationalConfigEditor:"Trình chỉnh sửa cấu hình hướng dẫn",discard:"Hủy bỏ",saveChanges:"Lưu thay đổi",mergedView:"Chế độ gộp",localConfig:"Cục bộ (.ck.json)",globalConfig:"Toàn cục",syntaxValid:"Cú pháp hợp lệ",configurationHelp:"Hướng dẫn cấu hình",field:"Trường",type:"Kiểu",default:"Mặc định",description:"Mô tả",validValues:"Giá trị hợp lệ",systemEffect:"Hiệu ứng hệ thống",exampleUsage:"Ví dụ sử dụng",knowledgeBase:"Cơ sở kiến thức",clickToSeeHelp:"Nhấp vào bất kỳ trường cấu hình nào để xem tài liệu chi tiết và ví dụ sử dụng.",extractedFrom:"Trích xuất từ ClaudeKit v2.x Specification",resetToDefault:"Đặt lại",saving:"Đang lưu...",saved:"Đã lưu",confirmReset:"Đặt lại về mặc định?",confirmResetMessage:"Tất cả thay đổi sẽ bị mất và được thay thế bằng giá trị mặc định.",confirm:"Xác nhận",saveFailed:"Lưu thất bại",configTab:"Cấu hình",systemTab:"Hệ thống",formTab:"Biểu mẫu",jsonTab:"JSON",readOnly:"Chỉ đọc",installedKit:"Kit đã cài",kitVersion:"Phiên bản Kit",installedOn:"Cài đặt vào",noKitInstalled:"Chưa cài kit",components:"Thành phần",agents:"Agents",commands:"Commands",workflows:"Workflows",kitSkills:"Skills",fileOwnership:"Quyền sở hữu tệp",ownershipCk:"do kit quản lý",ownershipUser:"do người dùng",ownershipModified:"đã chỉnh sửa",componentInventory:"Thành phần đã cài",installedHooks:"Hooks đã cài",installedMcpServers:"MCP Servers",lastChecked:"Kiểm tra cập nhật",staleIndicator:"Cũ",skippedVersion:"Đã bỏ qua",filesModifiedFromDefaults:"tệp đã sửa so với mặc định",cliCard:"ClaudeKit CLI",checkForUpdates:"Kiểm tra cập nhật",checking:"Đang kiểm tra...",upToDate:"Đã cập nhật",updateAvailable:"Có bản cập nhật",updateNow:"Cập nhật ngay",updating:"Đang cập nhật...",updateSuccess:"Cập nhật hoàn tất!",updateFailed:"Cập nhật thất bại",closeModal:"Đóng",showDetails:"Xem chi tiết",hideDetails:"Ẩn chi tiết",environment:"Môi trường",claudeConfigPath:"Cấu hình Claude",nodeVersion:"Node",bunVersion:"Bun",osVersion:"Hệ điều hành",channelStable:"Ổn định",channelBeta:"Beta",betaBadge:"Beta",latestVersion:"Mới nhất",selectVersion:"Chọn phiên bản",loadingVersions:"Đang tải...",prereleaseLabel:"Thử nghiệm",currentVersionLabel:"Hiện tại",checkAll:"Kiểm tra tất cả",checkingAll:"Đang kiểm tra...",updateAll:"Cập nhật tất cả",updatesAvailable:"{count} bản cập nhật",allUpToDate:"Tất cả đã cập nhật",systemControlTower:"Trung tâm hệ thống",systemOverviewTitle:"Tổng quan cập nhật & môi trường",systemOverviewDesc:"Theo dõi CLI và kit, rồi nâng cấp từ một nơi.",installedComponentsHeading:"Thành phần đã cài",updateReadiness:"Mức sẵn sàng cập nhật",checkedComponents:"Đã kiểm tra",activeChannel:"Kênh",readyToScan:"Sẵn sàng kiểm tra",noTrackedFiles:"Không phát hiện tệp theo dõi",kitsLabel:"Kit",componentFilterAll:"Tất cả",componentFilterUpdates:"Bản cập nhật",componentFilterUpdatesCount:"Bản cập nhật ({count})",componentFilterUpToDate:"Đã cập nhật",componentFilterUpToDateCount:"Đã cập nhật ({count})",componentFilterCli:"CLI",componentFilterKits:"Kit",noComponentsMatchFilter:"Không có thành phần phù hợp bộ lọc hiện tại.",runCheckAllForFilter:"Hãy chạy Kiểm tra tất cả để nạp dữ liệu cho bộ lọc này.",noUpdatesFound:"Không có bản cập nhật. Các thành phần đã kiểm tra đều mới nhất.",noUpToDateYet:"Chưa có thành phần nào ở trạng thái đã cập nhật.",configWorkspaceHint:"Chỉnh sửa cấu hình hoặc quản lý cập nhật hệ thống trong một màn hình.",settingsJsonHeading:"JSON Cài đặt Claude",settingsJsonMissing:"Không tìm thấy tệp ~/.claude/settings.json.",settingsJsonLoadFailed:"Không thể tải ~/.claude/settings.json.",settingsBackupSaved:"Đã lưu bản sao lưu",hookDiagnosticsTitle:"Chẩn đoán Hook",hookDiagnosticsDesc:"Xem hoạt động hook gần đây và lỗi mà không cần mở tệp JSONL thủ công.",hookDiagnosticsPathPending:"Đang xác định đường dẫn log...",hookDiagnosticsScopeGlobal:"Hook toàn cục",hookDiagnosticsEntries:"Bản ghi",hookDiagnosticsCrashes:"Sự cố",hookDiagnosticsWarnings:"Cảnh báo",hookDiagnosticsBlocks:"Chặn",hookDiagnosticsLastEvent:"Sự kiện cuối",hookDiagnosticsLoading:"Đang tải chẩn đoán hook...",hookDiagnosticsLoadFailed:"Không thể tải chẩn đoán hook",hookDiagnosticsMissing:"Chưa tìm thấy tệp log hook cho phạm vi này.",hookDiagnosticsEmpty:"Tệp log hook có tồn tại nhưng không có bản ghi đọc được.",hookDiagnosticsParseErrorsNotice:"Đã bỏ qua {count} dòng log bị lỗi khi tải chẩn đoán.",hookDiagnosticsTruncatedNotice:"Đang hiển thị cửa sổ bản ghi gần đây để giữ giao diện phản hồi tốt với log lớn.",hookDiagnosticsToolLabel:"công cụ",hookDiagnosticsTargetLabel:"mục tiêu",hookDiagnosticsUnknown:"Không rõ",addProjectTitle:"Thêm dự án",addProjectDescription:"Thêm dự án ClaudeKit mới vào trung tâm điều khiển",projectPath:"Đường dẫn dự án",pathPlaceholder:"/đường/dẫn/dự/án",alias:"Bí danh",aliasOptional:"(tùy chọn)",aliasPlaceholder:"dự-án-của-tôi",aliasDescription:"Tên hiển thị tùy chỉnh cho dự án",pathRequired:"Đường dẫn bắt buộc",failedToAdd:"Không thể thêm dự án",cancel:"Hủy",adding:"Đang thêm...",somethingWentWrong:"Đã xảy ra lỗi",reloadApp:"Tải lại ứng dụng",serverNotRunning:"Máy chủ không chạy",startServerMessage:"Config UI yêu cầu máy chủ backend đang chạy.",runThisCommand:"Chạy lệnh này",tryAgain:"Thử lại",projectConfig:"Cấu hình dự án",inheritedFromGlobal:"Kế thừa từ toàn cục",localOverride:"Ghi đè cục bộ",viewGlobalConfig:"Trường này kế thừa từ cấu hình toàn cục. Xem",onboardingTitle:"Chào mừng đến ClaudeKit",onboardingSubtitle:"Chọn kit của bạn và bắt đầu trong vài phút",kitEngineerName:"ClaudeKit Engineer",kitEngineerTagline:"Lập trình AI với skills, hooks và multi-agent",kitMarketingName:"ClaudeKit Marketing",kitMarketingTagline:"Tự động hóa nội dung: chiến dịch, mạng xã hội, phân tích",featureAgents:"AI Agents",featureAgentsDesc:"Các agent chuyên biệt cho từng tác vụ",featureHooks:"Lifecycle Hooks",featureHooksDesc:"Tùy chỉnh hành vi của Claude tại các thời điểm quan trọng",featureSkills:"Thư viện Skills",featureSkillsDesc:"Các khả năng có sẵn bạn có thể kích hoạt",featureMultiAgent:"Multi-Agent Workflows",featureMultiAgentDesc:"Phối hợp nhiều agent cho các tác vụ phức tạp",featureContent:"Tạo nội dung",featureContentDesc:"Tự động tạo và tối ưu nội dung",featureSocial:"Công cụ mạng xã hội",featureSocialDesc:"Lên lịch, phân tích và tự động tương tác",stepChooseKit:"Chọn Kit",stepConfigure:"Cấu hình",stepInstall:"Cài đặt",back:"Quay lại",next:"Tiếp theo",install:"Cài đặt",installSuccess:"Cài đặt hoàn tất!",installSuccessDesc:"{kit} đã sẵn sàng sử dụng",getStarted:"Bắt đầu",goToDashboard:"Đi đến Dashboard",kitConfig:"Cấu hình Kit",kitConfigSubtitle:"Cấu hình ClaudeKit Engineer",scopeGlobal:"Toàn cục",scopeProject:"Dự án",sectionGeneral:"Cài đặt chung",sectionPaths:"Đường dẫn",sectionPrivacy:"Bảo mật & Tin cậy",sectionProject:"Phát hiện dự án",sectionIntegrations:"Tích hợp",sectionHooks:"Hooks",sectionAdvanced:"Nâng cao",fieldCodingLevel:"Cấp độ lập trình",fieldCodingLevelDesc:"Cấp độ kinh nghiệm (-1=tự động, 0=mới bắt đầu, 1=trung cấp, 2=nâng cao, 3=chuyên gia, 4=tech-lead, 5=thần)",fieldStatusline:"Chế độ thanh trạng thái",fieldStatuslineDesc:"Lượng thông tin hiển thị trên thanh trạng thái",fieldThinkingLanguage:"Ngôn ngữ suy nghĩ",fieldThinkingLanguageDesc:"Ngôn ngữ cho suy luận nội bộ của Claude (null=Tiếng Anh)",fieldResponseLanguage:"Ngôn ngữ phản hồi",fieldResponseLanguageDesc:"Ngôn ngữ cho phản hồi của Claude (null=theo người dùng)",fieldDocsPath:"Thư mục tài liệu",fieldDocsPathDesc:"Đường dẫn đến thư mục tài liệu",fieldPlansPath:"Thư mục kế hoạch",fieldPlansPathDesc:"Đường dẫn đến thư mục kế hoạch",fieldPrivacyBlock:"Chặn quyền riêng tư",fieldPrivacyBlockDesc:"Chặn truy cập file nhạy cảm (.env, credentials)",fieldTrustEnabled:"Chế độ tin cậy",fieldTrustEnabledDesc:"Tự động phê duyệt các tool calls",fieldTrustPassphrase:"Mật khẩu tin cậy",fieldTrustPassphraseDesc:"Mật khẩu để bật chế độ tin cậy",fieldProjectType:"Loại dự án",fieldProjectTypeDesc:"Ghi đè loại dự án tự động phát hiện",fieldPackageManager:"Trình quản lý gói",fieldPackageManagerDesc:"Ghi đè trình quản lý gói tự động phát hiện",fieldFramework:"Framework",fieldFrameworkDesc:"Ghi đè framework tự động phát hiện",fieldGeminiModel:"Mô hình Gemini",fieldGeminiModelDesc:"Mô hình Gemini cho các lệnh CLI",fieldResearchUseGemini:"Dùng Gemini cho nghiên cứu",fieldResearchUseGeminiDesc:"Dùng Gemini CLI thay vì WebSearch",fieldDocsMaxLoc:"Số dòng tối đa/tài liệu",fieldDocsMaxLocDesc:"Số dòng code tối đa cho mỗi file tài liệu",fieldPlanNamingFormat:"Định dạng tên kế hoạch",fieldPlanNamingFormatDesc:"Định dạng cho tên thư mục kế hoạch",fieldPlanDateFormat:"Định dạng ngày kế hoạch",fieldPlanDateFormatDesc:"Định dạng ngày cho tên kế hoạch (moment.js)",fieldPlanValidationMode:"Chế độ xác thực",fieldPlanValidationModeDesc:"Cách xác thực kế hoạch trước khi triển khai",fieldPlanMinQuestions:"Số câu hỏi tối thiểu",fieldPlanMinQuestionsDesc:"Số câu hỏi xác thực tối thiểu",fieldPlanMaxQuestions:"Số câu hỏi tối đa",fieldPlanMaxQuestionsDesc:"Số câu hỏi xác thực tối đa",fieldAssertions:"Assertions",fieldAssertionsDesc:"Các assertions và quy tắc cần thực thi",fieldHookSessionInit:"Khởi tạo phiên",fieldHookSessionInitDesc:"Phát hiện dự án và thiết lập môi trường",fieldHookSubagentInit:"Khởi tạo subagent",fieldHookSubagentInitDesc:"Inject context vào subagents",fieldHookDescriptiveName:"Tên mô tả",fieldHookDescriptiveNameDesc:"Bắt buộc đặt tên file dạng kebab-case mô tả cho scripts",fieldHookDevRulesReminder:"Nhắc nhở quy tắc dev",fieldHookDevRulesReminderDesc:"Inject context quy tắc phát triển",fieldHookUsageContextAwareness:"Nhận thức ngữ cảnh sử dụng",fieldHookUsageContextAwarenessDesc:"Nhận thức giới hạn sử dụng",fieldHookContextTracking:"Theo dõi ngữ cảnh",fieldHookContextTrackingDesc:"Theo dõi cửa sổ ngữ cảnh (% đã dùng, số token)",fieldHookScoutBlock:"Chặn Scout",fieldHookScoutBlockDesc:"Chặn thư mục nặng khỏi việc khám phá",fieldHookPrivacyBlock:"Hook chặn quyền riêng tư",fieldHookPrivacyBlockDesc:"Chặn đọc file nhạy cảm",fieldHookPostEditSimplify:"Đơn giản sau chỉnh sửa",fieldHookPostEditSimplifyDesc:"Nhắc đơn giản sau khi chỉnh sửa",skillsPageTitle:"Quản lý Kỹ năng",skillsPageDesc:"Cài đặt kỹ năng ClaudeKit cho các agent lập trình",availableSkills:"Kỹ năng có sẵn",installedSkills:"Kỹ năng đã cài",noSkillsFound:"Không tìm thấy kỹ năng",installSkill:"Cài đặt",uninstallSkill:"Gỡ cài đặt",manageSkill:"Quản lý",syncRegistry:"Đồng bộ",installSkillTitle:"Cài đặt Kỹ năng",selectAgents:"Chọn agent đích",installLocation:"Vị trí cài đặt",globalInstall:"Toàn cục",projectInstall:"Dự án",confirmInstall:"Cài đặt cho các agent đã chọn",installingSkill:"Đang cài đặt...",skillInstallSuccess:"Cài đặt kỹ năng thành công",skillInstallFailed:"Cài đặt thất bại",agentClaudeCode:"Claude Code",agentCursor:"Cursor",agentCodex:"Codex",agentOpencode:"OpenCode",agentGoose:"Goose",agentGeminiCli:"Gemini CLI",agentAntigravity:"Antigravity",agentGithubCopilot:"GitHub Copilot",agentAmp:"Amp",agentKilo:"Kilo",agentRoo:"Roo",agentWindsurf:"Windsurf",agentCline:"Cline",agentOpenhands:"OpenHands",installed:"Đã cài",notInstalled:"Chưa cài",allAgents:"Tất cả Agent",filterByAgent:"Lọc theo agent",skillsTitle:"Kỹ năng",skillsSubtitle:"Duyệt, cài đặt và quản lý kỹ năng cho coding agents",availableCount:"Có sẵn",installedCount:"Đã cài",agentsCount:"Agents",searchSkills:"Tìm kiếm kỹ năng...",searchShortcut:"/",sortAZ:"A-Z",sortCategory:"Danh mục",sortInstalledFirst:"Đã cài trước",listView:"Dạng danh sách",gridView:"Dạng lưới",categoryAll:"Tất cả",categoryAI:"AI",categoryUIUX:"UI/UX",categoryBackend:"Backend",categorySecurity:"Bảo mật",categoryDevOps:"DevOps",categoryDatabase:"Cơ sở dữ liệu",categoryDevelopment:"Phát triển",categoryResearch:"Nghiên cứu",categoryGeneral:"Tổng quát",categoryCore:"Cốt lõi",categoryDocumentation:"Tài liệu",categoryTooling:"Công cụ",categoryMedia:"Phương tiện",categoryFrameworks:"Framework",skillsCountLabel:"{count} kỹ năng",installToAll:"Cài cho tất cả đã phát hiện",scopeLabel:"Phạm vi cài đặt",agentInstalled:"Đã cài",agentNotInstalled:"Chưa cài",skillSource:"Vị trí nguồn",skillSourceBadge:"Nguồn",detailPanelClose:"Đóng",versionLabel:"v{version}",installAllToAllAgents:"Cài tất cả cho tất cả Agent",bulkInstallFailed:"Cài hàng loạt thất bại",noAgentsDetected:"Không phát hiện agent nào",kitBadgeEngineer:"Engineer",kitBadgeMarketing:"Marketing",customizedBadge:"Đã tùy chỉnh",installedVersionLabel:"Phiên bản cài đặt",installedAtLabel:"Cài đặt lúc",sourceTimestampLabel:"Ngày nguồn",kitLabel:"Kit",skillMetadata:"Thông tin Skill",migrate:"Di trú",migrateTitle:"Di trú",migrateSubtitle:"Chuyển toàn bộ stack Claude Code sang provider khác",migrateDetectedProviders:"Đã phát hiện",migrateSelectedProviders:"Đã chọn",migrateDiscovering:"Đang quét nguồn di trú...",migrateRefresh:"Làm mới quét",migrateRun:"Chạy di trú",migrateRunning:"Đang di trú...",migrateSourceSummary:"Tổng quan nguồn",migratePresetCodex:"Codex",migratePresetAntigravity:"Antigravity",migratePresetCore:"Codex + Antigravity + Droid",migratePresetDetected:"Tất cả đã phát hiện",migrateScope:"Phạm vi",migrateScopeProject:"Dự án",migrateScopeGlobal:"Toàn cục",migrateTypes:"Loại di trú",migrateTypeAgents:"Subagents",migrateTypeCommands:"Commands",migrateTypeSkills:"Skills",migrateTypeConfig:"Config",migrateTypeRules:"Rules",migrateTypeHooks:"Hooks",migrateSearchProviders:"Tìm provider...",migrateSelectVisible:"Chọn phần đang hiện",migrateClearSelection:"Bỏ chọn tất cả",migrateProvidersHeading:"Provider đích",migrateProvidersCountSuffix:"provider",migrateNoProvidersMatch:"Không có provider khớp bộ lọc hiện tại.",migrateSelectButton:"Chọn",migrateSelectedButton:"Đã chọn",migrateSelectProviderAction:"Chọn provider",migrateUnselectProvider:"Bỏ chọn provider",migrateCapabilitiesLabel:"loại",migrateCapabilitiesSection:"Ma trận khả năng",migrateSupported:"Hỗ trợ",migrateUnsupportedShort:"Không hỗ trợ",migrateIncludedEnabled:"Đang bật",migrateIncludedDisabled:"Đang tắt",migrateLatestTarget:"Đích gần nhất",migrateNoResultForProvider:"Chưa có kết quả di trú cho provider này.",migrateActionSummaryTitle:"Sẵn sàng di trú",migrateGlobalOnlyCommandsShort:"Commands chỉ global",migrateNoProviders:"Không có provider khả dụng.",migrateUnsupported:"Sẽ bỏ qua (không hỗ trợ)",migrateGlobalForced:"Lệnh Codex chỉ hỗ trợ global. Phạm vi sẽ tự chuyển global.",migrateResults:"Kết quả di trú",migrateInstalled:"Đã cài",migrateSkipped:"Đã bỏ qua",migrateFailed:"Lỗi",migrateProvider:"Provider",migrateStatus:"Trạng thái",migratePath:"Đường dẫn",migrateError:"Lỗi",migrateStatusInstalled:"Đã cài",migrateStatusSkipped:"Đã bỏ qua",migrateStatusFailed:"Lỗi",migrateNoResults:"Chưa có kết quả di trú.",migrateDetectFailed:"Không thể quét dữ liệu di trú",migrateExecuteFailed:"Chạy di trú thất bại",migrateSelectProvider:"Vui lòng chọn ít nhất một provider",migrateNoTypesEnabled:"Bật ít nhất một loại di trú",migrateDetectedTag:"Đã phát hiện",migrateNotDetectedTag:"Chưa phát hiện",migrateFilterRecommended:"Đề xuất",migrateActionInstall:"Cài",migrateActionUpdate:"Cập nhật",migrateActionSkip:"Bỏ qua",migrateActionConflict:"Xung đột",migrateActionDelete:"Xóa",migrateUnchanged:"chưa thay đổi",migrateConflictSectionTitle:"Xung đột",migrateConflictUseCK:"Dùng CK",migrateConflictKeepMine:"Giữ của tôi",migrateConflictSmartMerge:"Merge thông minh",migrateConflictShowDiff:"Hiện diff",migrateConflictHideDiff:"Ẩn diff",migrateConflictResolved:"Đã giải quyết",migrateConflictManual:"Thủ công",migrateConflictOverwriteAll:"Ghi đè tất cả",migrateConflictKeepAll:"Giữ tất cả",migrateSummaryTitle:"Di trú hoàn tất",migrateSummaryNewMigration:"Di trú mới",migrateType:"Loại",migrateItem:"Mục",migrateReconciling:"Đang phân tích thay đổi...",migrateReviewPlan:"Xem kế hoạch",migrateExecutePlan:"Thực hiện di trú",migrateExecuting:"Đang thực hiện di trú...",migrateResolveConflicts:"Giải quyết xung đột trước khi thực hiện",migrateSummarySubtitle:"mục đã di trú",migrateSummarySearchPlaceholder:"Tìm kiếm...",migrateSummaryFilterAll:"Tất cả",migrateSummaryCollapseAll:"Thu gọn",migrateSummaryExpandAll:"Mở rộng",migrateSummaryNoResults:"Không tìm thấy mục nào",migrateSummaryProviders:"Provider",migrateTypeUnknown:"Khác",kanbanTitle:"Bảng Kanban Kế hoạch",kanbanNoFile:"Chưa chọn file kế hoạch. Dùng tham số ?file=.",kanbanNoPhases:"Không phát hiện giai đoạn nào trong kế hoạch này",kanbanError400:"Yêu cầu không hợp lệ — thiếu tham số file",kanbanError403:"Truy cập bị từ chối — file nằm ngoài thư mục dự án",kanbanError404:"Không tìm thấy file kế hoạch",kanbanComplete:"hoàn thành",kanbanStatus_pending:"Chờ xử lý","kanbanStatus_in-progress":"Đang thực hiện",kanbanStatus_completed:"Hoàn thành",kanbanPhases:"giai đoạn",kanbanProgress:"Tiến độ",kanbanLoadError:"Không thể tải dữ liệu kế hoạch",developmentFeature:"Đang phát triển",betaFeature:"Beta",experimentalFeature:"Thử nghiệm"}},yh=g.createContext(null),Bm="ck-dashboard-lang";function fv(){const n=localStorage.getItem(Bm);return n==="en"||n==="vi"?n:navigator.language.startsWith("vi")?"vi":"en"}function pv({children:n}){const[e,t]=g.useState(fv),r=g.useCallback(o=>{localStorage.setItem(Bm,o),t(o)},[]),i=g.useCallback(o=>uv[e][o],[e]),s=g.useMemo(()=>({lang:e,setLang:r,t:i}),[e,r,i]);return h.jsx(yh.Provider,{value:s,children:n})}function ce(){const n=g.useContext(yh);if(!n)throw new Error("useI18n must be used within I18nProvider");return n}class mv extends g.Component{constructor(){super(...arguments);jd(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("App error:",t,r.componentStack)}render(){if(this.state.hasError){const t=this.state.error?.name==="ServerUnavailableError";return h.jsx(yh.Consumer,{children:r=>h.jsx("div",{className:"flex h-screen items-center justify-center bg-dash-bg",children:h.jsx("div",{className:"text-center space-y-4 max-w-md px-6",children:t?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"w-16 h-16 mx-auto rounded-full bg-orange-500/10 border border-orange-500/30 flex items-center justify-center text-3xl",children:"🔌"}),h.jsx("h1",{className:"text-2xl font-bold text-orange-500",children:r?.t("serverNotRunning")??"Server Not Running"}),h.jsx("p",{className:"text-dash-text-secondary",children:r?.t("startServerMessage")??"The Config UI requires the backend server to be running."}),h.jsxs("div",{className:"bg-dash-surface border border-dash-border rounded-lg p-4",children:[h.jsx("p",{className:"text-xs text-dash-text-muted uppercase tracking-widest mb-2 font-bold",children:r?.t("runThisCommand")??"Run this command"}),h.jsx("code",{className:"block text-sm text-dash-accent font-mono bg-dash-bg px-3 py-2 rounded border border-dash-border",children:"ck config"})]}),h.jsx("button",{onClick:()=>window.location.reload(),className:"px-6 py-2 bg-dash-accent text-dash-bg rounded-lg font-bold hover:bg-dash-accent-hover transition-colors",children:r?.t("tryAgain")??"Try Again"})]}):h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"text-2xl font-bold text-red-500",children:r?.t("somethingWentWrong")??"Something went wrong"}),h.jsx("p",{className:"text-dash-text-muted",children:this.state.error?.message}),h.jsx("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-dash-accent text-white rounded-md hover:opacity-90",children:r?.t("reloadApp")??"Reload App"})]})})})})}return this.props.children}}const Pr=({direction:n="horizontal",isDragging:e=!1,onMouseDown:t})=>{const r=n==="horizontal";return h.jsx("div",{onMouseDown:t,className:`
21
+ Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let f=_t(),p;p=f;let m=p.pathname||"/",b=m;if(d!=="/"){let v=d.replace(/^\//,"").split("/");b="/"+m.replace(/^\//,"").split("/").slice(v.length).join("/")}let x=jn(n,{pathname:b});return Ee(u||x!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Ee(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),h1(x&&x.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:rn([d,s.encodeLocation?s.encodeLocation(v.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?d:rn([d,s.encodeLocation?s.encodeLocation(v.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),o,t,r,i)}function o1(){let n=m1(),e=Ei(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",n),o=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:s},"ErrorBoundary")," or"," ",g.createElement("code",{style:s},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},e),t?g.createElement("pre",{style:i},t):null,o)}var a1=g.createElement(o1,null),Dm=class extends g.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,e){return e.location!==n.location||e.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:e.error,location:e.location,revalidation:n.revalidation||e.revalidation}}componentDidCatch(n,e){this.props.onError?this.props.onError(n,e):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const t=e1(n.digest);t&&(n=t)}let e=n!==void 0?g.createElement(It.Provider,{value:this.props.routeContext},g.createElement(ph.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?g.createElement(l1,{error:n},e):e}};Dm.contextType=Cm;var rl=new WeakMap;function l1({children:n,error:e}){let{basename:t}=g.useContext(kt);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=Zy(e.digest);if(r){let i=rl.get(e);if(i)throw i;let s=um(r.location,t);if(dm&&!rl.get(e))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw rl.set(e,o),o}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return n}function c1({routeContext:n,match:e,children:t}){let r=g.useContext(hr);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),g.createElement(It.Provider,{value:n},t)}function h1(n,e=[],t=null,r=null,i=null){if(n==null){if(!t)return null;if(t.errors)n=t.matches;else if(e.length===0&&!t.initialized&&t.matches.length>0)n=t.matches;else return null}let s=n,o=t?.errors;if(o!=null){let d=s.findIndex(u=>u.route.id&&o?.[u.route.id]!==void 0);he(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,l=-1;if(t)for(let d=0;d<s.length;d++){let u=s[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=d),u.route.id){let{loaderData:f,errors:p}=t,m=u.route.loader&&!f.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||m){a=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}let c=t&&r?(d,u)=>{r(d,{location:t.location,params:t.matches?.[0]?.params??{},unstable_pattern:$s(t.matches),errorInfo:u})}:void 0;return s.reduceRight((d,u,f)=>{let p,m=!1,b=null,x=null;t&&(p=o&&u.route.id?o[u.route.id]:void 0,b=u.route.errorElement||a1,a&&(l<0&&f===0?(Tm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,x=null):l===f&&(m=!0,x=u.route.hydrateFallbackElement||null)));let w=e.concat(s.slice(0,f+1)),v=()=>{let S;return p?S=b:m?S=x:u.route.Component?S=g.createElement(u.route.Component,null):u.route.element?S=u.route.element:S=d,g.createElement(c1,{match:u,routeContext:{outlet:d,matches:w,isDataRoute:t!=null},children:S})};return t&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?g.createElement(Dm,{location:t.location,revalidation:t.revalidation,component:b,error:p,children:v(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:c}):v()},null)}function mh(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d1(n){let e=g.useContext(hr);return he(e,mh(n)),e}function u1(n){let e=g.useContext(Bs);return he(e,mh(n)),e}function f1(n){let e=g.useContext(It);return he(e,mh(n)),e}function gh(n){let e=f1(n),t=e.matches[e.matches.length-1];return he(t.route.id,`${n} can only be used on routes that contain a unique "id"`),t.route.id}function p1(){return gh("useRouteId")}function m1(){let n=g.useContext(ph),e=u1("useRouteError"),t=gh("useRouteError");return n!==void 0?n:e.errors?.[t]}function g1(){let{router:n}=d1("useNavigate"),e=gh("useNavigate"),t=g.useRef(!1);return Nm(()=>{t.current=!0}),g.useCallback(async(i,s={})=>{Ee(t.current,Pm),t.current&&(typeof i=="number"?await n.navigate(i):await n.navigate(i,{fromRouteId:e,...s}))},[n,e])}var Jd={};function Tm(n,e,t){!e&&!Jd[n]&&(Jd[n]=!0,Ee(!1,t))}var Yd={};function Qd(n,e){!n&&!Yd[e]&&(Yd[e]=!0,console.warn(e))}var b1="useOptimistic",Xd=Mx[b1],x1=()=>{};function y1(n){return Xd?Xd(n):[n,x1]}function v1(n){let e={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&Ee(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(e,{element:g.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&Ee(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(e,{hydrateFallbackElement:g.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&Ee(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(e,{errorElement:g.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),e}var w1=["HydrateFallback","hydrateFallbackElement"],k1=class{constructor(){this.status="pending",this.promise=new Promise((n,e)=>{this.resolve=t=>{this.status==="pending"&&(this.status="resolved",n(t))},this.reject=t=>{this.status==="pending"&&(this.status="rejected",e(t))}})}};function S1({router:n,flushSync:e,onError:t,unstable_useTransitions:r}){r=Jy()||r;let[s,o]=g.useState(n.state),[a,l]=y1(s),[c,d]=g.useState(),[u,f]=g.useState({isTransitioning:!1}),[p,m]=g.useState(),[b,x]=g.useState(),[w,v]=g.useState(),S=g.useRef(new Map),j=g.useCallback((D,{deletedFetchers:A,newErrors:R,flushSync:N,viewTransitionOpts:L})=>{R&&t&&Object.values(R).forEach(F=>t(F,{location:D.location,params:D.matches[0]?.params??{},unstable_pattern:$s(D.matches)})),D.fetchers.forEach((F,B)=>{F.data!==void 0&&S.current.set(B,F.data)}),A.forEach(F=>S.current.delete(F)),Qd(N===!1||e!=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 W=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(Qd(L==null||W,"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."),!L||!W){e&&N?e(()=>o(D)):r===!1?o(D):g.startTransition(()=>{r===!0&&l(F=>Zd(F,D)),o(D)});return}if(e&&N){e(()=>{b&&(p?.resolve(),b.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let F=n.window.document.startViewTransition(()=>{e(()=>o(D))});F.finished.finally(()=>{e(()=>{m(void 0),x(void 0),d(void 0),f({isTransitioning:!1})})}),e(()=>x(F));return}b?(p?.resolve(),b.skipTransition(),v({state:D,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(d(D),f({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,e,b,p,r,l,t]);g.useLayoutEffect(()=>n.subscribe(j),[n,j]),g.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new k1)},[u]),g.useEffect(()=>{if(p&&c&&n.window){let D=c,A=p.promise,R=n.window.document.startViewTransition(async()=>{r===!1?o(D):g.startTransition(()=>{r===!0&&l(N=>Zd(N,D)),o(D)}),await A});R.finished.finally(()=>{m(void 0),x(void 0),d(void 0),f({isTransitioning:!1})}),x(R)}},[c,p,n.window,r,l]),g.useEffect(()=>{p&&c&&a.location.key===c.location.key&&p.resolve()},[p,b,a.location,c]),g.useEffect(()=>{!u.isTransitioning&&w&&(d(w.state),f({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),v(void 0))},[u.isTransitioning,w]);let k=g.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:D=>n.navigate(D),push:(D,A,R)=>n.navigate(D,{state:A,preventScrollReset:R?.preventScrollReset}),replace:(D,A,R)=>n.navigate(D,{replace:!0,state:A,preventScrollReset:R?.preventScrollReset})}),[n]),O=n.basename||"/",y=g.useMemo(()=>({router:n,navigator:k,static:!1,basename:O,onError:t}),[n,k,O,t]);return g.createElement(g.Fragment,null,g.createElement(hr.Provider,{value:y},g.createElement(Bs.Provider,{value:a},g.createElement(jm.Provider,{value:S.current},g.createElement(fh.Provider,{value:u},g.createElement(P1,{basename:O,location:a.location,navigationType:a.historyAction,navigator:k,unstable_useTransitions:r},g.createElement(C1,{routes:n.routes,future:n.future,state:a,onError:t})))))),null)}function Zd(n,e){return{...n,navigation:e.navigation.state!=="idle"?e.navigation:n.navigation,revalidation:e.revalidation!=="idle"?e.revalidation:n.revalidation,actionData:e.navigation.state!=="submitting"?e.actionData:n.actionData,fetchers:e.fetchers}}var C1=g.memo(j1);function j1({routes:n,future:e,state:t,onError:r}){return s1(n,void 0,t,r,e)}function il({to:n,replace:e,state:t,relative:r}){he(Wr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=g.useContext(kt);Ee(!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:s}=g.useContext(It),{pathname:o}=_t(),a=an(),l=Ma(n,Aa(s),o,r==="path"),c=JSON.stringify(l);return g.useEffect(()=>{a(JSON.parse(c),{replace:e,state:t,relative:r})},[a,c,r,e,t]),null}function O1(n){return i1(n.context)}function P1({basename:n="/",children:e=null,location:t,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:o}){he(!Wr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=n.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:a,navigator:i,static:s,unstable_useTransitions:o,future:{}}),[a,i,s,o]);typeof t=="string"&&(t=Vn(t));let{pathname:c="/",search:d="",hash:u="",state:f=null,key:p="default"}=t,m=g.useMemo(()=>{let b=Rt(c,a);return b==null?null:{location:{pathname:b,search:d,hash:u,state:f,key:p},navigationType:r}},[a,c,d,u,f,p,r]);return Ee(m!=null,`<Router basename="${a}"> is not able to match the URL "${c}${d}${u}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:g.createElement(kt.Provider,{value:l},g.createElement(Da.Provider,{children:e,value:m}))}var zo="get",_o="application/x-www-form-urlencoded";function Ta(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function N1(n){return Ta(n)&&n.tagName.toLowerCase()==="button"}function A1(n){return Ta(n)&&n.tagName.toLowerCase()==="form"}function M1(n){return Ta(n)&&n.tagName.toLowerCase()==="input"}function D1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function T1(n,e){return n.button===0&&(!e||e==="_self")&&!D1(n)}function uc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((e,t)=>{let r=n[t];return e.concat(Array.isArray(r)?r.map(i=>[t,i]):[[t,r]])},[]))}function E1(n,e){let t=uc(n);return e&&e.forEach((r,i)=>{t.has(i)||e.getAll(i).forEach(s=>{t.append(i,s)})}),t}var lo=null;function R1(){if(lo===null)try{new FormData(document.createElement("form"),0),lo=!1}catch{lo=!0}return lo}var L1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sl(n){return n!=null&&!L1.has(n)?(Ee(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_o}"`),null):n}function I1(n,e){let t,r,i,s,o;if(A1(n)){let a=n.getAttribute("action");r=a?Rt(a,e):null,t=n.getAttribute("method")||zo,i=sl(n.getAttribute("enctype"))||_o,s=new FormData(n)}else if(N1(n)||M1(n)&&(n.type==="submit"||n.type==="image")){let a=n.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=n.getAttribute("formaction")||a.getAttribute("action");if(r=l?Rt(l,e):null,t=n.getAttribute("formmethod")||a.getAttribute("method")||zo,i=sl(n.getAttribute("formenctype"))||sl(a.getAttribute("enctype"))||_o,s=new FormData(a,n),!R1()){let{name:c,type:d,value:u}=n;if(d==="image"){let f=c?`${c}.`:"";s.append(`${f}x`,"0"),s.append(`${f}y`,"0")}else c&&s.append(c,u)}}else{if(Ta(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=zo,r=null,i=_o,o=n}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:t.toLowerCase(),encType:i,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function bh(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function $1(n,e,t){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname=`_root.${t}`:e&&Rt(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.${t}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${t}`,r}async function B1(n,e){if(n.id in e)return e[n.id];try{let t=await import(n.module);return e[n.id]=t,t}catch(t){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function F1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function V1(n,e,t){let r=await Promise.all(n.map(async i=>{let s=e.routes[i.route.id];if(s){let o=await B1(s,t);return o.links?o.links():[]}return[]}));return W1(r.flat(1).filter(F1).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function eu(n,e,t,r,i,s){let o=(l,c)=>t[c]?l.route.id!==t[c].route.id:!0,a=(l,c)=>t[c].pathname!==l.pathname||t[c].route.path?.endsWith("*")&&t[c].params["*"]!==l.params["*"];return s==="assets"?e.filter((l,c)=>o(l,c)||a(l,c)):s==="data"?e.filter((l,c)=>{let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(o(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let u=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function z1(n,e,{includeHydrateFallback:t}={}){return _1(n.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),t&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function _1(n){return[...new Set(n)]}function H1(n){let e={},t=Object.keys(n).sort();for(let r of t)e[r]=n[r];return e}function W1(n,e){let t=new Set;return new Set(e),n.reduce((r,i)=>{let s=JSON.stringify(H1(i));return t.has(s)||(t.add(s),r.push({key:s,link:i})),r},[])}function Em(){let n=g.useContext(hr);return bh(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function U1(){let n=g.useContext(Bs);return bh(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var xh=g.createContext(void 0);xh.displayName="FrameworkContext";function Rm(){let n=g.useContext(xh);return bh(n,"You must render this element inside a <HydratedRouter> element"),n}function K1(n,e){let t=g.useContext(xh),[r,i]=g.useState(!1),[s,o]=g.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:u}=e,f=g.useRef(null);g.useEffect(()=>{if(n==="render"&&o(!0),n==="viewport"){let b=w=>{w.forEach(v=>{o(v.isIntersecting)})},x=new IntersectionObserver(b,{threshold:.5});return f.current&&x.observe(f.current),()=>{x.disconnect()}}},[n]),g.useEffect(()=>{if(r){let b=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(b)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return t?n!=="intent"?[s,f,{}]:[s,f,{onFocus:ai(a,p),onBlur:ai(l,m),onMouseEnter:ai(c,p),onMouseLeave:ai(d,m),onTouchStart:ai(u,p)}]:[!1,f,{}]}function ai(n,e){return t=>{n&&n(t),t.defaultPrevented||e(t)}}function G1({page:n,...e}){let{router:t}=Em(),r=g.useMemo(()=>jn(t.routes,n,t.basename),[t.routes,n,t.basename]);return r?g.createElement(J1,{page:n,matches:r,...e}):null}function q1(n){let{manifest:e,routeModules:t}=Rm(),[r,i]=g.useState([]);return g.useEffect(()=>{let s=!1;return V1(n,e,t).then(o=>{s||i(o)}),()=>{s=!0}},[n,e,t]),r}function J1({page:n,matches:e,...t}){let r=_t(),{manifest:i,routeModules:s}=Rm(),{basename:o}=Em(),{loaderData:a,matches:l}=U1(),c=g.useMemo(()=>eu(n,e,l,i,r,"data"),[n,e,l,i,r]),d=g.useMemo(()=>eu(n,e,l,i,r,"assets"),[n,e,l,i,r]),u=g.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let m=new Set,b=!1;if(e.forEach(w=>{let v=i.routes[w.route.id];!v||!v.hasLoader||(!c.some(S=>S.route.id===w.route.id)&&w.route.id in a&&s[w.route.id]?.shouldRevalidate||v.hasClientLoader?b=!0:m.add(w.route.id))}),m.size===0)return[];let x=$1(n,o,"data");return b&&m.size>0&&x.searchParams.set("_routes",e.filter(w=>m.has(w.route.id)).map(w=>w.route.id).join(",")),[x.pathname+x.search]},[o,a,r,i,c,e,n,s]),f=g.useMemo(()=>z1(d,i),[d,i]),p=q1(d);return g.createElement(g.Fragment,null,u.map(m=>g.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...t})),f.map(m=>g.createElement("link",{key:m,rel:"modulepreload",href:m,...t})),p.map(({key:m,link:b})=>g.createElement("link",{key:m,nonce:t.nonce,...b})))}function Y1(...n){return e=>{n.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}var Q1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Q1&&(window.__reactRouterVersion="7.11.0")}catch{}function X1(n,e){return Cy({basename:e?.basename,getContext:e?.getContext,future:e?.future,history:Vx({window:e?.window}),hydrationData:Z1(),routes:n,mapRouteProperties:v1,hydrationRouteProperties:w1,dataStrategy:e?.dataStrategy,patchRoutesOnNavigation:e?.patchRoutesOnNavigation,window:e?.window,unstable_instrumentations:e?.unstable_instrumentations}).initialize()}function Z1(){let n=window?.__staticRouterHydrationData;return n&&n.errors&&(n={...n,errors:ev(n.errors)}),n}function ev(n){if(!n)return null;let e=Object.entries(n),t={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")t[r]=new Is(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",t[r]=o}catch{}}if(t[r]==null){let s=new Error(i.message);s.stack="",t[r]=s}}else t[r]=i;return t}var Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Im=g.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:i,reloadDocument:s,replace:o,state:a,target:l,to:c,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:f,...p},m){let{basename:b,unstable_useTransitions:x}=g.useContext(kt),w=typeof c=="string"&&Lm.test(c),v=um(c,b);c=v.to;let S=t1(c,{relative:i}),[j,k,O]=K1(r,p),y=iv(c,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:u,unstable_defaultShouldRevalidate:f,unstable_useTransitions:x});function D(R){e&&e(R),R.defaultPrevented||y(R)}let A=g.createElement("a",{...p,...O,href:v.absoluteURL||S,onClick:v.isExternal||s?e:D,ref:Y1(m,k),target:l,"data-discover":!w&&t==="render"?"true":void 0});return j&&!w?g.createElement(g.Fragment,null,A,g.createElement(G1,{page:S})):A});Im.displayName="Link";var tv=g.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:i=!1,style:s,to:o,viewTransition:a,children:l,...c},d){let u=Fs(o,{relative:c.relative}),f=_t(),p=g.useContext(Bs),{navigator:m,basename:b}=g.useContext(kt),x=p!=null&&hv(u)&&a===!0,w=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,v=f.pathname,S=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),S=S?S.toLowerCase():null,w=w.toLowerCase()),S&&b&&(S=Rt(S,b)||S);const j=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let k=v===w||!i&&v.startsWith(w)&&v.charAt(j)==="/",O=S!=null&&(S===w||!i&&S.startsWith(w)&&S.charAt(w.length)==="/"),y={isActive:k,isPending:O,isTransitioning:x},D=k?e:void 0,A;typeof r=="function"?A=r(y):A=[r,k?"active":null,O?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let R=typeof s=="function"?s(y):s;return g.createElement(Im,{...c,"aria-current":D,className:A,ref:d,style:R,to:o,viewTransition:a},typeof l=="function"?l(y):l)});tv.displayName="NavLink";var nv=g.forwardRef(({discover:n="render",fetcherKey:e,navigate:t,reloadDocument:r,replace:i,state:s,method:o=zo,action:a,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:f,...p},m)=>{let{unstable_useTransitions:b}=g.useContext(kt),x=lv(),w=cv(a,{relative:c}),v=o.toLowerCase()==="get"?"get":"post",S=typeof a=="string"&&Lm.test(a),j=k=>{if(l&&l(k),k.defaultPrevented)return;k.preventDefault();let O=k.nativeEvent.submitter,y=O?.getAttribute("formmethod")||o,D=()=>x(O||k.currentTarget,{fetcherKey:e,method:y,navigate:t,replace:i,state:s,relative:c,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:f});b&&t!==!1?g.startTransition(()=>D()):D()};return g.createElement("form",{ref:m,method:v,action:w,onSubmit:r?l:j,...p,"data-discover":!S&&n==="render"?"true":void 0})});nv.displayName="Form";function rv(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $m(n){let e=g.useContext(hr);return he(e,rv(n)),e}function iv(n,{target:e,replace:t,state:r,preventScrollReset:i,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a,unstable_useTransitions:l}={}){let c=an(),d=_t(),u=Fs(n,{relative:s});return g.useCallback(f=>{if(T1(f,e)){f.preventDefault();let p=t!==void 0?t:on(d)===on(u),m=()=>c(n,{replace:p,state:r,preventScrollReset:i,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a});l?g.startTransition(()=>m()):m()}},[d,c,u,t,r,e,n,i,s,o,a,l])}function sv(n){Ee(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 e=g.useRef(uc(n)),t=g.useRef(!1),r=_t(),i=g.useMemo(()=>E1(r.search,t.current?null:e.current),[r.search]),s=an(),o=g.useCallback((a,l)=>{const c=uc(typeof a=="function"?a(new URLSearchParams(i)):a);t.current=!0,s("?"+c,l)},[s,i]);return[i,o]}var ov=0,av=()=>`__${String(++ov)}__`;function lv(){let{router:n}=$m("useSubmit"),{basename:e}=g.useContext(kt),t=p1(),r=n.fetch,i=n.navigate;return g.useCallback(async(s,o={})=>{let{action:a,method:l,encType:c,formData:d,body:u}=I1(s,e);if(o.navigate===!1){let f=o.fetcherKey||av();await r(f,t,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:u,formMethod:o.method||l,formEncType:o.encType||c,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:u,formMethod:o.method||l,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:t,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,e,t])}function cv(n,{relative:e}={}){let{basename:t}=g.useContext(kt),r=g.useContext(It);he(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...Fs(n||".",{relative:e})},o=_t();if(n==null){s.search=o.search;let a=new URLSearchParams(s.search),l=a.getAll("index");if(l.some(d=>d==="")){a.delete("index"),l.filter(u=>u).forEach(u=>a.append("index",u));let d=a.toString();s.search=d?`?${d}`:""}}return(!n||n===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(s.pathname=s.pathname==="/"?t:rn([t,s.pathname])),on(s)}function hv(n,{relative:e}={}){let t=g.useContext(fh);he(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$m("useViewTransitionState"),i=Fs(n,{relative:e});if(!t.isTransitioning)return!1;let s=Rt(t.currentLocation.pathname,r)||t.currentLocation.pathname,o=Rt(t.nextLocation.pathname,r)||t.nextLocation.pathname;return Zo(i.pathname,o)!=null||Zo(i.pathname,s)!=null}function dv(n){return g.createElement(S1,{flushSync:nm.flushSync,...n})}const uv={en:{loading:"Loading...",error:"Error",selectProject:"Select a project to view dashboard",controlCenter:"Control Center",settings:"Settings",sync:"Sync",offline:"Offline",switchToLight:"Switch to light mode",switchToDark:"Switch to dark mode",settingsSection:"Settings",configEditor:"Config Editor",projects:"Projects",addProject:"Add Project",global:"Global",skills:"Skills",health:"Health",collapse:"Collapse",expand:"Expand",installing:"Installing...",manage:"Manage",uninstall:"Uninstall",installGlobally:"Install Globally",installGloballyDesc:"Available to all projects instead of current project only",selectAtLeastOneAgent:"Please select at least one agent",installationFailed:"Installation failed",allSkills:"All Skills",refresh:"Refresh",browseAndManageSkills:"Browse and manage skills for your agents",detected:"Detected",notDetected:"Not detected",sessions:"sessions",noSessions:"No sessions",terminal:"Terminal",terminalSub:"Open bash at path",editor:"Editor",editorSub:"Open in VS Code",useGlobalFallback:"Use global fallback",openAtPath:"Open at project path",openAppOnly:"Open app only",actionOptionsLoadFailed:"Could not load editor/terminal options",launch:"Launch",launchSub:"Start Claude Code",config:"Config",configSub:"Manage project settings",recentSessions:"Recent Sessions",viewAllHistory:"View All History",showLess:"Show Less",actionFailed:"Action failed",loadingSessions:"Loading sessions...",noSessionsFound:"No sessions found",configuration:"Claude Settings",activeKit:"Active Kit",aiModel:"Model",hooks:"Hooks",active:"active",mcpServers:"MCP Servers",connected:"connected",editProjectConfig:"Edit Project Config",globalSettings:"(Global)",globalSkills:"Global Skills",loadingSkills:"Loading skills...",noDescription:"No description",browseSkillsMarketplace:"Browse Skills Marketplace",backToDashboard:"Back to Dashboard",educationalConfigEditor:"Educational Config Editor",discard:"Discard",saveChanges:"Save Changes",mergedView:"Merged View",localConfig:"Local (.ck.json)",globalConfig:"Global",syntaxValid:"Syntax Valid",configurationHelp:"Configuration Help",field:"Field",type:"Type",default:"Default",description:"Description",validValues:"Valid Values",systemEffect:"System Effect",exampleUsage:"Example Usage",knowledgeBase:"Knowledge Base",clickToSeeHelp:"Click on any configuration field to see detailed documentation and usage examples.",extractedFrom:"Extracted from ClaudeKit v2.x Specification",resetToDefault:"Reset",saving:"Saving...",saved:"Saved",confirmReset:"Reset to Default?",confirmResetMessage:"All changes will be lost and replaced with default values.",confirm:"Confirm",saveFailed:"Save failed",configTab:"Config",systemTab:"System",formTab:"Form",jsonTab:"JSON",readOnly:"Read-only",installedKit:"Installed Kit",kitVersion:"Kit Version",installedOn:"Installed On",noKitInstalled:"No kit installed",components:"Components",agents:"Agents",commands:"Commands",workflows:"Workflows",kitSkills:"Skills",fileOwnership:"File Ownership",ownershipCk:"kit-managed",ownershipUser:"user-owned",ownershipModified:"modified",componentInventory:"Component Inventory",installedHooks:"Installed Hooks",installedMcpServers:"MCP Servers",lastChecked:"Last update check",staleIndicator:"Stale",skippedVersion:"Skipped",filesModifiedFromDefaults:"files modified from kit defaults",cliCard:"ClaudeKit CLI",checkForUpdates:"Check for Updates",checking:"Checking...",upToDate:"Up to date",updateAvailable:"Update available",updateNow:"Update Now",updating:"Updating...",updateSuccess:"Update Complete!",updateFailed:"Update Failed",closeModal:"Close",showDetails:"Show Details",hideDetails:"Hide Details",environment:"Environment",claudeConfigPath:"Claude config",nodeVersion:"Node",bunVersion:"Bun",osVersion:"OS",channelStable:"Stable",channelBeta:"Beta",betaBadge:"Beta",latestVersion:"Latest",selectVersion:"Select version",loadingVersions:"Loading versions...",prereleaseLabel:"Pre",currentVersionLabel:"Current",checkAll:"Check All",checkingAll:"Checking...",updateAll:"Update All",updatesAvailable:"{count} updates available",allUpToDate:"All up to date",systemControlTower:"System Control Tower",systemOverviewTitle:"Update & Runtime Overview",systemOverviewDesc:"Track CLI and kit health, then run upgrades from one place.",installedComponentsHeading:"Installed Components",updateReadiness:"Update Readiness",checkedComponents:"Checked",activeChannel:"Channel",readyToScan:"Ready to scan",noTrackedFiles:"No tracked files detected",kitsLabel:"Kits",componentFilterAll:"All",componentFilterUpdates:"Updates",componentFilterUpdatesCount:"Updates ({count})",componentFilterUpToDate:"Up to date",componentFilterUpToDateCount:"Up to date ({count})",componentFilterCli:"CLI",componentFilterKits:"Kits",noComponentsMatchFilter:"No components match the current filter.",runCheckAllForFilter:"Run Check All to populate this filter.",noUpdatesFound:"No updates found. Checked components are up to date.",noUpToDateYet:"No components are up to date yet.",configWorkspaceHint:"Edit configuration or manage system updates from one workspace.",settingsJsonHeading:"Claude Settings JSON",settingsJsonMissing:"No settings file found at ~/.claude/settings.json.",settingsJsonLoadFailed:"Failed to load ~/.claude/settings.json.",settingsBackupSaved:"Backup saved",hookDiagnosticsTitle:"Hook Diagnostics",hookDiagnosticsDesc:"Inspect recent hook activity and failures without opening JSONL files manually.",hookDiagnosticsPathPending:"Resolving log path...",hookDiagnosticsScopeGlobal:"Global hooks",hookDiagnosticsEntries:"Entries",hookDiagnosticsCrashes:"Crashes",hookDiagnosticsWarnings:"Warnings",hookDiagnosticsBlocks:"Blocks",hookDiagnosticsLastEvent:"Last event",hookDiagnosticsLoading:"Loading hook diagnostics...",hookDiagnosticsLoadFailed:"Failed to load hook diagnostics",hookDiagnosticsMissing:"No hook log file found for this scope yet.",hookDiagnosticsEmpty:"Hook log is present but contains no readable entries.",hookDiagnosticsParseErrorsNotice:"Skipped {count} malformed log line(s) while loading diagnostics.",hookDiagnosticsTruncatedNotice:"Showing a bounded recent window to keep diagnostics responsive on large logs.",hookDiagnosticsToolLabel:"tool",hookDiagnosticsTargetLabel:"target",hookDiagnosticsUnknown:"Unknown",addProjectTitle:"Add Project",addProjectDescription:"Add a new ClaudeKit project to the control center",projectPath:"Project Path",pathPlaceholder:"/path/to/project",alias:"Alias",aliasOptional:"(optional)",aliasPlaceholder:"my-project",aliasDescription:"Custom display name for the project",pathRequired:"Path is required",failedToAdd:"Failed to add project",cancel:"Cancel",adding:"Adding...",somethingWentWrong:"Something went wrong",reloadApp:"Reload App",serverNotRunning:"Server Not Running",startServerMessage:"The Config UI requires the backend server to be running.",runThisCommand:"Run this command",tryAgain:"Try Again",projectConfig:"Project Config",inheritedFromGlobal:"Inherited from Global",localOverride:"Local Override",viewGlobalConfig:"This field inherits from global config. View",onboardingTitle:"Welcome to ClaudeKit",onboardingSubtitle:"Choose your kit and get started in minutes",kitEngineerName:"ClaudeKit Engineer",kitEngineerTagline:"AI-powered coding with skills, hooks, and multi-agent workflows",kitMarketingName:"ClaudeKit Marketing",kitMarketingTagline:"Content automation: campaigns, social media, analytics",featureAgents:"AI Agents",featureAgentsDesc:"Specialized agents for different tasks",featureHooks:"Lifecycle Hooks",featureHooksDesc:"Customize Claude's behavior at key moments",featureSkills:"Skills Library",featureSkillsDesc:"Pre-built capabilities you can activate",featureMultiAgent:"Multi-Agent Workflows",featureMultiAgentDesc:"Coordinate multiple agents for complex tasks",featureContent:"Content Generation",featureContentDesc:"Automated content creation and optimization",featureSocial:"Social Media Tools",featureSocialDesc:"Scheduling, analytics, and engagement automation",stepChooseKit:"Choose Kit",stepConfigure:"Configure",stepInstall:"Install",back:"Back",next:"Next",install:"Install",installSuccess:"Installation Complete!",installSuccessDesc:"{kit} is ready to use",getStarted:"Get Started",goToDashboard:"Go to Dashboard",kitConfig:"Kit Config",kitConfigSubtitle:"Configure ClaudeKit Engineer settings",scopeGlobal:"Global",scopeProject:"Project",sectionGeneral:"General",sectionPaths:"Paths",sectionPrivacy:"Privacy & Trust",sectionProject:"Project Detection",sectionIntegrations:"Integrations",sectionHooks:"Hooks",sectionAdvanced:"Advanced",fieldCodingLevel:"Coding Level",fieldCodingLevelDesc:"Your coding experience level (-1=auto, 0=beginner, 1=intermediate, 2=advanced, 3=expert, 4=tech-lead, 5=god-mode)",fieldStatusline:"Statusline Mode",fieldStatuslineDesc:"How much info to show in the status line",fieldStatuslineColors:"Statusline Colors",fieldStatuslineColorsDesc:"Enable ANSI color output in the statusline",fieldThinkingLanguage:"Thinking Language",fieldThinkingLanguageDesc:"Language for Claude's internal reasoning (null=English)",fieldResponseLanguage:"Response Language",fieldResponseLanguageDesc:"Language for Claude's responses (null=match user)",fieldDocsPath:"Docs Directory",fieldDocsPathDesc:"Path to documentation directory",fieldPlansPath:"Plans Directory",fieldPlansPathDesc:"Path to plans directory",fieldPrivacyBlock:"Privacy Block",fieldPrivacyBlockDesc:"Block access to sensitive files (.env, credentials)",fieldTrustEnabled:"Trust Mode",fieldTrustEnabledDesc:"Enable auto-approval for tool calls",fieldTrustPassphrase:"Trust Passphrase",fieldTrustPassphraseDesc:"Passphrase to enable trust mode",fieldProjectType:"Project Type",fieldProjectTypeDesc:"Override auto-detected project type",fieldPackageManager:"Package Manager",fieldPackageManagerDesc:"Override auto-detected package manager",fieldFramework:"Framework",fieldFrameworkDesc:"Override auto-detected framework",fieldGeminiModel:"Gemini Model",fieldGeminiModelDesc:"Gemini model for CLI commands",fieldResearchUseGemini:"Use Gemini for Research",fieldResearchUseGeminiDesc:"Use Gemini CLI instead of WebSearch",fieldDocsMaxLoc:"Max Lines per Doc",fieldDocsMaxLocDesc:"Maximum lines of code per documentation file",fieldPlanNamingFormat:"Plan Naming Format",fieldPlanNamingFormatDesc:"Format for plan directory names",fieldPlanDateFormat:"Plan Date Format",fieldPlanDateFormatDesc:"Date format for plan names (moment.js)",fieldPlanValidationMode:"Validation Mode",fieldPlanValidationModeDesc:"How to validate plans before implementation",fieldPlanMinQuestions:"Min Questions",fieldPlanMinQuestionsDesc:"Minimum validation questions",fieldPlanMaxQuestions:"Max Questions",fieldPlanMaxQuestionsDesc:"Maximum validation questions",fieldAssertions:"Assertions",fieldAssertionsDesc:"Code assertions and rules to enforce",fieldHookSessionInit:"Session Init",fieldHookSessionInitDesc:"Project detection and environment setup",fieldHookSubagentInit:"Subagent Init",fieldHookSubagentInitDesc:"Inject context to subagents",fieldHookDescriptiveName:"Descriptive Name",fieldHookDescriptiveNameDesc:"Enforce kebab-case descriptive file naming for scripts",fieldHookDevRulesReminder:"Dev Rules Reminder",fieldHookDevRulesReminderDesc:"Inject development rules context",fieldHookUsageContextAwareness:"Usage Context Awareness",fieldHookUsageContextAwarenessDesc:"Usage limits awareness",fieldHookContextTracking:"Context Tracking",fieldHookContextTrackingDesc:"Context window tracking (% used, token counts)",fieldHookScoutBlock:"Scout Block",fieldHookScoutBlockDesc:"Block heavy directories from exploration",fieldHookPrivacyBlock:"Privacy Block Hook",fieldHookPrivacyBlockDesc:"Block sensitive files from reading",fieldHookPostEditSimplify:"Post-Edit Simplify",fieldHookPostEditSimplifyDesc:"Simplify reminder after edits",skillsPageTitle:"Skills Management",skillsPageDesc:"Install ClaudeKit skills to your coding agents",availableSkills:"Available Skills",installedSkills:"Installed Skills",noSkillsFound:"No skills found",installSkill:"Install",uninstallSkill:"Uninstall",manageSkill:"Manage",syncRegistry:"Sync",installSkillTitle:"Install Skill",selectAgents:"Select target agents",installLocation:"Installation location",globalInstall:"Global",projectInstall:"Project",confirmInstall:"Install to selected agents",installingSkill:"Installing...",skillInstallSuccess:"Skill installed successfully",skillInstallFailed:"Installation failed",agentClaudeCode:"Claude Code",agentCursor:"Cursor",agentCodex:"Codex",agentOpencode:"OpenCode",agentGoose:"Goose",agentGeminiCli:"Gemini CLI",agentAntigravity:"Antigravity",agentGithubCopilot:"GitHub Copilot",agentAmp:"Amp",agentKilo:"Kilo",agentRoo:"Roo",agentWindsurf:"Windsurf",agentCline:"Cline",agentOpenhands:"OpenHands",installed:"Installed",notInstalled:"Not installed",allAgents:"All Agents",filterByAgent:"Filter by agent",skillsTitle:"Skills",skillsSubtitle:"Browse, install, and manage skills for your coding agents",availableCount:"Available",installedCount:"Installed",agentsCount:"Agents",searchSkills:"Search skills...",searchShortcut:"/",sortAZ:"A-Z",sortCategory:"Category",sortInstalledFirst:"Installed first",listView:"List view",gridView:"Grid view",categoryAll:"All",categoryAI:"AI",categoryUIUX:"UI/UX",categoryBackend:"Backend",categorySecurity:"Security",categoryDevOps:"DevOps",categoryDatabase:"Database",categoryDevelopment:"Development",categoryResearch:"Research",categoryGeneral:"General",categoryCore:"Core",categoryDocumentation:"Documentation",categoryTooling:"Tooling",categoryMedia:"Media",categoryFrameworks:"Frameworks",skillsCountLabel:"{count} skills",installToAll:"Install to All Detected",scopeLabel:"Installation Scope",agentInstalled:"Installed",agentNotInstalled:"Not installed",skillSource:"Source location",skillSourceBadge:"Source",detailPanelClose:"Close",versionLabel:"v{version}",installAllToAllAgents:"Install All to All Agents",bulkInstallFailed:"Bulk install failed",noAgentsDetected:"No agents detected",kitBadgeEngineer:"Engineer",kitBadgeMarketing:"Marketing",customizedBadge:"Customized",installedVersionLabel:"Installed Version",installedAtLabel:"Installed At",sourceTimestampLabel:"Source Date",kitLabel:"Kit",skillMetadata:"Skill Info",migrate:"Migrate",migrateTitle:"Migrate",migrateSubtitle:"Migrate your Claude Code stack to other providers",migrateDetectedProviders:"Detected",migrateSelectedProviders:"Selected",migrateDiscovering:"Discovering migration sources...",migrateRefresh:"Refresh Discovery",migrateRun:"Run Migration",migrateRunning:"Migrating...",migrateSourceSummary:"Source Summary",migratePresetCodex:"Codex",migratePresetAntigravity:"Antigravity",migratePresetCore:"Codex + Antigravity + Droid",migratePresetDetected:"All Detected",migrateScope:"Scope",migrateScopeProject:"Project",migrateScopeGlobal:"Global",migrateTypes:"Portable Types",migrateTypeAgents:"Subagents",migrateTypeCommands:"Commands",migrateTypeSkills:"Skills",migrateTypeConfig:"Config",migrateTypeRules:"Rules",migrateTypeHooks:"Hooks",migrateSearchProviders:"Search providers...",migrateSelectVisible:"Select Visible",migrateClearSelection:"Clear Selection",migrateProvidersHeading:"Target Providers",migrateProvidersCountSuffix:"providers",migrateNoProvidersMatch:"No providers match current filters.",migrateSelectButton:"Select",migrateSelectedButton:"Selected",migrateSelectProviderAction:"Select Provider",migrateUnselectProvider:"Unselect Provider",migrateCapabilitiesLabel:"types",migrateCapabilitiesSection:"Capability Matrix",migrateSupported:"Supported",migrateUnsupportedShort:"Unsupported",migrateIncludedEnabled:"Enabled",migrateIncludedDisabled:"Disabled",migrateLatestTarget:"Latest Target",migrateNoResultForProvider:"No migration result for this provider yet.",migrateActionSummaryTitle:"Ready to Migrate",migrateGlobalOnlyCommandsShort:"Commands global-only",migrateNoProviders:"No providers available.",migrateUnsupported:"Will be skipped (unsupported)",migrateGlobalForced:"Codex commands are global-only. Scope will be forced to global.",migrateResults:"Migration Results",migrateInstalled:"Installed",migrateSkipped:"Skipped",migrateFailed:"Failed",migrateProvider:"Provider",migrateStatus:"Status",migratePath:"Path",migrateError:"Error",migrateStatusInstalled:"Installed",migrateStatusSkipped:"Skipped",migrateStatusFailed:"Failed",migrateNoResults:"No migration results yet.",migrateDetectFailed:"Failed to discover migration data",migrateExecuteFailed:"Migration execution failed",migrateSelectProvider:"Select at least one provider",migrateNoTypesEnabled:"Enable at least one portable type",migrateDetectedTag:"Detected",migrateNotDetectedTag:"Not detected",migrateFilterRecommended:"Recommended",migrateActionInstall:"Install",migrateActionUpdate:"Update",migrateActionSkip:"Skip",migrateActionConflict:"Conflict",migrateActionDelete:"Delete",migrateUnchanged:"unchanged",migrateConflictSectionTitle:"Conflicts",migrateConflictUseCK:"Use CK",migrateConflictKeepMine:"Keep Mine",migrateConflictSmartMerge:"Smart Merge",migrateConflictShowDiff:"Show Diff",migrateConflictHideDiff:"Hide Diff",migrateConflictResolved:"Resolved",migrateConflictManual:"Manual",migrateConflictOverwriteAll:"Overwrite All",migrateConflictKeepAll:"Keep All",migrateSummaryTitle:"Migration Complete",migrateSummaryNewMigration:"New Migration",migrateType:"Type",migrateItem:"Item",migrateReconciling:"Analyzing changes...",migrateReviewPlan:"Review Plan",migrateExecutePlan:"Execute Migration",migrateExecuting:"Executing migration...",migrateResolveConflicts:"Resolve all conflicts before executing",migrateSummarySubtitle:"items migrated",migrateSummarySearchPlaceholder:"Search items...",migrateSummaryFilterAll:"All",migrateSummaryCollapseAll:"Collapse all",migrateSummaryExpandAll:"Expand all",migrateSummaryNoResults:"No items match your search",migrateSummaryProviders:"Providers",migrateTypeUnknown:"Other",kanbanTitle:"Plan Kanban",kanbanNoFile:"No plan file specified. Use ?file= parameter.",kanbanNoPhases:"No phases detected in this plan",kanbanError400:"Invalid request — missing file parameter",kanbanError403:"Access denied — file is outside the project directory",kanbanError404:"Plan file not found",kanbanComplete:"complete",kanbanStatus_pending:"Pending","kanbanStatus_in-progress":"In Progress",kanbanStatus_completed:"Completed",kanbanPhases:"phases",kanbanProgress:"Progress",kanbanLoadError:"Failed to load plan data",developmentFeature:"Development",betaFeature:"Beta",experimentalFeature:"Experimental"},vi:{loading:"Đang tải...",error:"Lỗi",selectProject:"Chọn dự án để xem bảng điều khiển",controlCenter:"Trung tâm điều khiển",settings:"Cài đặt",sync:"Đồng bộ",offline:"Ngoại tuyến",switchToLight:"Chuyển sang chế độ sáng",switchToDark:"Chuyển sang chế độ tối",settingsSection:"Cài đặt",configEditor:"Trình chỉnh sửa cấu hình",projects:"Dự án",addProject:"Thêm dự án",global:"Toàn cục",skills:"Kỹ năng",health:"Sức khỏe",collapse:"Thu gọn",expand:"Mở rộng",installing:"Đang cài đặt...",manage:"Quản lý",uninstall:"Gỡ cài đặt",installGlobally:"Cài đặt toàn cục",installGloballyDesc:"Khả dụng cho tất cả dự án thay vì chỉ dự án hiện tại",selectAtLeastOneAgent:"Vui lòng chọn ít nhất một agent",installationFailed:"Cài đặt thất bại",allSkills:"Tất cả kỹ năng",refresh:"Làm mới",browseAndManageSkills:"Duyệt và quản lý kỹ năng cho agents của bạn",detected:"Đã phát hiện",notDetected:"Chưa phát hiện",sessions:"phiên",noSessions:"Không có phiên",terminal:"Terminal",terminalSub:"Mở bash tại đường dẫn",editor:"Trình soạn thảo",editorSub:"Mở trong VS Code",useGlobalFallback:"Dùng fallback global",openAtPath:"Mở tại đường dẫn dự án",openAppOnly:"Chỉ mở ứng dụng",actionOptionsLoadFailed:"Không thể tải tùy chọn editor/terminal",launch:"Khởi chạy",launchSub:"Bắt đầu Claude Code",config:"Cấu hình",configSub:"Quản lý cài đặt dự án",recentSessions:"Phiên gần đây",viewAllHistory:"Xem tất cả lịch sử",showLess:"Thu gọn",actionFailed:"Thao tác thất bại",loadingSessions:"Đang tải phiên...",noSessionsFound:"Không tìm thấy phiên nào",configuration:"Cài đặt Claude",activeKit:"Kit hoạt động",aiModel:"Mô hình",hooks:"Hooks",active:"hoạt động",mcpServers:"Máy chủ MCP",connected:"kết nối",editProjectConfig:"Chỉnh sửa cấu hình dự án",globalSettings:"(Toàn cục)",globalSkills:"Kỹ năng toàn cục",loadingSkills:"Đang tải kỹ năng...",noDescription:"Không có mô tả",browseSkillsMarketplace:"Duyệt Skills Marketplace",backToDashboard:"Quay lại bảng điều khiển",educationalConfigEditor:"Trình chỉnh sửa cấu hình hướng dẫn",discard:"Hủy bỏ",saveChanges:"Lưu thay đổi",mergedView:"Chế độ gộp",localConfig:"Cục bộ (.ck.json)",globalConfig:"Toàn cục",syntaxValid:"Cú pháp hợp lệ",configurationHelp:"Hướng dẫn cấu hình",field:"Trường",type:"Kiểu",default:"Mặc định",description:"Mô tả",validValues:"Giá trị hợp lệ",systemEffect:"Hiệu ứng hệ thống",exampleUsage:"Ví dụ sử dụng",knowledgeBase:"Cơ sở kiến thức",clickToSeeHelp:"Nhấp vào bất kỳ trường cấu hình nào để xem tài liệu chi tiết và ví dụ sử dụng.",extractedFrom:"Trích xuất từ ClaudeKit v2.x Specification",resetToDefault:"Đặt lại",saving:"Đang lưu...",saved:"Đã lưu",confirmReset:"Đặt lại về mặc định?",confirmResetMessage:"Tất cả thay đổi sẽ bị mất và được thay thế bằng giá trị mặc định.",confirm:"Xác nhận",saveFailed:"Lưu thất bại",configTab:"Cấu hình",systemTab:"Hệ thống",formTab:"Biểu mẫu",jsonTab:"JSON",readOnly:"Chỉ đọc",installedKit:"Kit đã cài",kitVersion:"Phiên bản Kit",installedOn:"Cài đặt vào",noKitInstalled:"Chưa cài kit",components:"Thành phần",agents:"Agents",commands:"Commands",workflows:"Workflows",kitSkills:"Skills",fileOwnership:"Quyền sở hữu tệp",ownershipCk:"do kit quản lý",ownershipUser:"do người dùng",ownershipModified:"đã chỉnh sửa",componentInventory:"Thành phần đã cài",installedHooks:"Hooks đã cài",installedMcpServers:"MCP Servers",lastChecked:"Kiểm tra cập nhật",staleIndicator:"Cũ",skippedVersion:"Đã bỏ qua",filesModifiedFromDefaults:"tệp đã sửa so với mặc định",cliCard:"ClaudeKit CLI",checkForUpdates:"Kiểm tra cập nhật",checking:"Đang kiểm tra...",upToDate:"Đã cập nhật",updateAvailable:"Có bản cập nhật",updateNow:"Cập nhật ngay",updating:"Đang cập nhật...",updateSuccess:"Cập nhật hoàn tất!",updateFailed:"Cập nhật thất bại",closeModal:"Đóng",showDetails:"Xem chi tiết",hideDetails:"Ẩn chi tiết",environment:"Môi trường",claudeConfigPath:"Cấu hình Claude",nodeVersion:"Node",bunVersion:"Bun",osVersion:"Hệ điều hành",channelStable:"Ổn định",channelBeta:"Beta",betaBadge:"Beta",latestVersion:"Mới nhất",selectVersion:"Chọn phiên bản",loadingVersions:"Đang tải...",prereleaseLabel:"Thử nghiệm",currentVersionLabel:"Hiện tại",checkAll:"Kiểm tra tất cả",checkingAll:"Đang kiểm tra...",updateAll:"Cập nhật tất cả",updatesAvailable:"{count} bản cập nhật",allUpToDate:"Tất cả đã cập nhật",systemControlTower:"Trung tâm hệ thống",systemOverviewTitle:"Tổng quan cập nhật & môi trường",systemOverviewDesc:"Theo dõi CLI và kit, rồi nâng cấp từ một nơi.",installedComponentsHeading:"Thành phần đã cài",updateReadiness:"Mức sẵn sàng cập nhật",checkedComponents:"Đã kiểm tra",activeChannel:"Kênh",readyToScan:"Sẵn sàng kiểm tra",noTrackedFiles:"Không phát hiện tệp theo dõi",kitsLabel:"Kit",componentFilterAll:"Tất cả",componentFilterUpdates:"Bản cập nhật",componentFilterUpdatesCount:"Bản cập nhật ({count})",componentFilterUpToDate:"Đã cập nhật",componentFilterUpToDateCount:"Đã cập nhật ({count})",componentFilterCli:"CLI",componentFilterKits:"Kit",noComponentsMatchFilter:"Không có thành phần phù hợp bộ lọc hiện tại.",runCheckAllForFilter:"Hãy chạy Kiểm tra tất cả để nạp dữ liệu cho bộ lọc này.",noUpdatesFound:"Không có bản cập nhật. Các thành phần đã kiểm tra đều mới nhất.",noUpToDateYet:"Chưa có thành phần nào ở trạng thái đã cập nhật.",configWorkspaceHint:"Chỉnh sửa cấu hình hoặc quản lý cập nhật hệ thống trong một màn hình.",settingsJsonHeading:"JSON Cài đặt Claude",settingsJsonMissing:"Không tìm thấy tệp ~/.claude/settings.json.",settingsJsonLoadFailed:"Không thể tải ~/.claude/settings.json.",settingsBackupSaved:"Đã lưu bản sao lưu",hookDiagnosticsTitle:"Chẩn đoán Hook",hookDiagnosticsDesc:"Xem hoạt động hook gần đây và lỗi mà không cần mở tệp JSONL thủ công.",hookDiagnosticsPathPending:"Đang xác định đường dẫn log...",hookDiagnosticsScopeGlobal:"Hook toàn cục",hookDiagnosticsEntries:"Bản ghi",hookDiagnosticsCrashes:"Sự cố",hookDiagnosticsWarnings:"Cảnh báo",hookDiagnosticsBlocks:"Chặn",hookDiagnosticsLastEvent:"Sự kiện cuối",hookDiagnosticsLoading:"Đang tải chẩn đoán hook...",hookDiagnosticsLoadFailed:"Không thể tải chẩn đoán hook",hookDiagnosticsMissing:"Chưa tìm thấy tệp log hook cho phạm vi này.",hookDiagnosticsEmpty:"Tệp log hook có tồn tại nhưng không có bản ghi đọc được.",hookDiagnosticsParseErrorsNotice:"Đã bỏ qua {count} dòng log bị lỗi khi tải chẩn đoán.",hookDiagnosticsTruncatedNotice:"Đang hiển thị cửa sổ bản ghi gần đây để giữ giao diện phản hồi tốt với log lớn.",hookDiagnosticsToolLabel:"công cụ",hookDiagnosticsTargetLabel:"mục tiêu",hookDiagnosticsUnknown:"Không rõ",addProjectTitle:"Thêm dự án",addProjectDescription:"Thêm dự án ClaudeKit mới vào trung tâm điều khiển",projectPath:"Đường dẫn dự án",pathPlaceholder:"/đường/dẫn/dự/án",alias:"Bí danh",aliasOptional:"(tùy chọn)",aliasPlaceholder:"dự-án-của-tôi",aliasDescription:"Tên hiển thị tùy chỉnh cho dự án",pathRequired:"Đường dẫn bắt buộc",failedToAdd:"Không thể thêm dự án",cancel:"Hủy",adding:"Đang thêm...",somethingWentWrong:"Đã xảy ra lỗi",reloadApp:"Tải lại ứng dụng",serverNotRunning:"Máy chủ không chạy",startServerMessage:"Config UI yêu cầu máy chủ backend đang chạy.",runThisCommand:"Chạy lệnh này",tryAgain:"Thử lại",projectConfig:"Cấu hình dự án",inheritedFromGlobal:"Kế thừa từ toàn cục",localOverride:"Ghi đè cục bộ",viewGlobalConfig:"Trường này kế thừa từ cấu hình toàn cục. Xem",onboardingTitle:"Chào mừng đến ClaudeKit",onboardingSubtitle:"Chọn kit của bạn và bắt đầu trong vài phút",kitEngineerName:"ClaudeKit Engineer",kitEngineerTagline:"Lập trình AI với skills, hooks và multi-agent",kitMarketingName:"ClaudeKit Marketing",kitMarketingTagline:"Tự động hóa nội dung: chiến dịch, mạng xã hội, phân tích",featureAgents:"AI Agents",featureAgentsDesc:"Các agent chuyên biệt cho từng tác vụ",featureHooks:"Lifecycle Hooks",featureHooksDesc:"Tùy chỉnh hành vi của Claude tại các thời điểm quan trọng",featureSkills:"Thư viện Skills",featureSkillsDesc:"Các khả năng có sẵn bạn có thể kích hoạt",featureMultiAgent:"Multi-Agent Workflows",featureMultiAgentDesc:"Phối hợp nhiều agent cho các tác vụ phức tạp",featureContent:"Tạo nội dung",featureContentDesc:"Tự động tạo và tối ưu nội dung",featureSocial:"Công cụ mạng xã hội",featureSocialDesc:"Lên lịch, phân tích và tự động tương tác",stepChooseKit:"Chọn Kit",stepConfigure:"Cấu hình",stepInstall:"Cài đặt",back:"Quay lại",next:"Tiếp theo",install:"Cài đặt",installSuccess:"Cài đặt hoàn tất!",installSuccessDesc:"{kit} đã sẵn sàng sử dụng",getStarted:"Bắt đầu",goToDashboard:"Đi đến Dashboard",kitConfig:"Cấu hình Kit",kitConfigSubtitle:"Cấu hình ClaudeKit Engineer",scopeGlobal:"Toàn cục",scopeProject:"Dự án",sectionGeneral:"Cài đặt chung",sectionPaths:"Đường dẫn",sectionPrivacy:"Bảo mật & Tin cậy",sectionProject:"Phát hiện dự án",sectionIntegrations:"Tích hợp",sectionHooks:"Hooks",sectionAdvanced:"Nâng cao",fieldCodingLevel:"Cấp độ lập trình",fieldCodingLevelDesc:"Cấp độ kinh nghiệm (-1=tự động, 0=mới bắt đầu, 1=trung cấp, 2=nâng cao, 3=chuyên gia, 4=tech-lead, 5=thần)",fieldStatusline:"Chế độ thanh trạng thái",fieldStatuslineDesc:"Lượng thông tin hiển thị trên thanh trạng thái",fieldStatuslineColors:"Màu thanh trạng thái",fieldStatuslineColorsDesc:"Bật màu ANSI trong thanh trạng thái",fieldThinkingLanguage:"Ngôn ngữ suy nghĩ",fieldThinkingLanguageDesc:"Ngôn ngữ cho suy luận nội bộ của Claude (null=Tiếng Anh)",fieldResponseLanguage:"Ngôn ngữ phản hồi",fieldResponseLanguageDesc:"Ngôn ngữ cho phản hồi của Claude (null=theo người dùng)",fieldDocsPath:"Thư mục tài liệu",fieldDocsPathDesc:"Đường dẫn đến thư mục tài liệu",fieldPlansPath:"Thư mục kế hoạch",fieldPlansPathDesc:"Đường dẫn đến thư mục kế hoạch",fieldPrivacyBlock:"Chặn quyền riêng tư",fieldPrivacyBlockDesc:"Chặn truy cập file nhạy cảm (.env, credentials)",fieldTrustEnabled:"Chế độ tin cậy",fieldTrustEnabledDesc:"Tự động phê duyệt các tool calls",fieldTrustPassphrase:"Mật khẩu tin cậy",fieldTrustPassphraseDesc:"Mật khẩu để bật chế độ tin cậy",fieldProjectType:"Loại dự án",fieldProjectTypeDesc:"Ghi đè loại dự án tự động phát hiện",fieldPackageManager:"Trình quản lý gói",fieldPackageManagerDesc:"Ghi đè trình quản lý gói tự động phát hiện",fieldFramework:"Framework",fieldFrameworkDesc:"Ghi đè framework tự động phát hiện",fieldGeminiModel:"Mô hình Gemini",fieldGeminiModelDesc:"Mô hình Gemini cho các lệnh CLI",fieldResearchUseGemini:"Dùng Gemini cho nghiên cứu",fieldResearchUseGeminiDesc:"Dùng Gemini CLI thay vì WebSearch",fieldDocsMaxLoc:"Số dòng tối đa/tài liệu",fieldDocsMaxLocDesc:"Số dòng code tối đa cho mỗi file tài liệu",fieldPlanNamingFormat:"Định dạng tên kế hoạch",fieldPlanNamingFormatDesc:"Định dạng cho tên thư mục kế hoạch",fieldPlanDateFormat:"Định dạng ngày kế hoạch",fieldPlanDateFormatDesc:"Định dạng ngày cho tên kế hoạch (moment.js)",fieldPlanValidationMode:"Chế độ xác thực",fieldPlanValidationModeDesc:"Cách xác thực kế hoạch trước khi triển khai",fieldPlanMinQuestions:"Số câu hỏi tối thiểu",fieldPlanMinQuestionsDesc:"Số câu hỏi xác thực tối thiểu",fieldPlanMaxQuestions:"Số câu hỏi tối đa",fieldPlanMaxQuestionsDesc:"Số câu hỏi xác thực tối đa",fieldAssertions:"Assertions",fieldAssertionsDesc:"Các assertions và quy tắc cần thực thi",fieldHookSessionInit:"Khởi tạo phiên",fieldHookSessionInitDesc:"Phát hiện dự án và thiết lập môi trường",fieldHookSubagentInit:"Khởi tạo subagent",fieldHookSubagentInitDesc:"Inject context vào subagents",fieldHookDescriptiveName:"Tên mô tả",fieldHookDescriptiveNameDesc:"Bắt buộc đặt tên file dạng kebab-case mô tả cho scripts",fieldHookDevRulesReminder:"Nhắc nhở quy tắc dev",fieldHookDevRulesReminderDesc:"Inject context quy tắc phát triển",fieldHookUsageContextAwareness:"Nhận thức ngữ cảnh sử dụng",fieldHookUsageContextAwarenessDesc:"Nhận thức giới hạn sử dụng",fieldHookContextTracking:"Theo dõi ngữ cảnh",fieldHookContextTrackingDesc:"Theo dõi cửa sổ ngữ cảnh (% đã dùng, số token)",fieldHookScoutBlock:"Chặn Scout",fieldHookScoutBlockDesc:"Chặn thư mục nặng khỏi việc khám phá",fieldHookPrivacyBlock:"Hook chặn quyền riêng tư",fieldHookPrivacyBlockDesc:"Chặn đọc file nhạy cảm",fieldHookPostEditSimplify:"Đơn giản sau chỉnh sửa",fieldHookPostEditSimplifyDesc:"Nhắc đơn giản sau khi chỉnh sửa",skillsPageTitle:"Quản lý Kỹ năng",skillsPageDesc:"Cài đặt kỹ năng ClaudeKit cho các agent lập trình",availableSkills:"Kỹ năng có sẵn",installedSkills:"Kỹ năng đã cài",noSkillsFound:"Không tìm thấy kỹ năng",installSkill:"Cài đặt",uninstallSkill:"Gỡ cài đặt",manageSkill:"Quản lý",syncRegistry:"Đồng bộ",installSkillTitle:"Cài đặt Kỹ năng",selectAgents:"Chọn agent đích",installLocation:"Vị trí cài đặt",globalInstall:"Toàn cục",projectInstall:"Dự án",confirmInstall:"Cài đặt cho các agent đã chọn",installingSkill:"Đang cài đặt...",skillInstallSuccess:"Cài đặt kỹ năng thành công",skillInstallFailed:"Cài đặt thất bại",agentClaudeCode:"Claude Code",agentCursor:"Cursor",agentCodex:"Codex",agentOpencode:"OpenCode",agentGoose:"Goose",agentGeminiCli:"Gemini CLI",agentAntigravity:"Antigravity",agentGithubCopilot:"GitHub Copilot",agentAmp:"Amp",agentKilo:"Kilo",agentRoo:"Roo",agentWindsurf:"Windsurf",agentCline:"Cline",agentOpenhands:"OpenHands",installed:"Đã cài",notInstalled:"Chưa cài",allAgents:"Tất cả Agent",filterByAgent:"Lọc theo agent",skillsTitle:"Kỹ năng",skillsSubtitle:"Duyệt, cài đặt và quản lý kỹ năng cho coding agents",availableCount:"Có sẵn",installedCount:"Đã cài",agentsCount:"Agents",searchSkills:"Tìm kiếm kỹ năng...",searchShortcut:"/",sortAZ:"A-Z",sortCategory:"Danh mục",sortInstalledFirst:"Đã cài trước",listView:"Dạng danh sách",gridView:"Dạng lưới",categoryAll:"Tất cả",categoryAI:"AI",categoryUIUX:"UI/UX",categoryBackend:"Backend",categorySecurity:"Bảo mật",categoryDevOps:"DevOps",categoryDatabase:"Cơ sở dữ liệu",categoryDevelopment:"Phát triển",categoryResearch:"Nghiên cứu",categoryGeneral:"Tổng quát",categoryCore:"Cốt lõi",categoryDocumentation:"Tài liệu",categoryTooling:"Công cụ",categoryMedia:"Phương tiện",categoryFrameworks:"Framework",skillsCountLabel:"{count} kỹ năng",installToAll:"Cài cho tất cả đã phát hiện",scopeLabel:"Phạm vi cài đặt",agentInstalled:"Đã cài",agentNotInstalled:"Chưa cài",skillSource:"Vị trí nguồn",skillSourceBadge:"Nguồn",detailPanelClose:"Đóng",versionLabel:"v{version}",installAllToAllAgents:"Cài tất cả cho tất cả Agent",bulkInstallFailed:"Cài hàng loạt thất bại",noAgentsDetected:"Không phát hiện agent nào",kitBadgeEngineer:"Engineer",kitBadgeMarketing:"Marketing",customizedBadge:"Đã tùy chỉnh",installedVersionLabel:"Phiên bản cài đặt",installedAtLabel:"Cài đặt lúc",sourceTimestampLabel:"Ngày nguồn",kitLabel:"Kit",skillMetadata:"Thông tin Skill",migrate:"Di trú",migrateTitle:"Di trú",migrateSubtitle:"Chuyển toàn bộ stack Claude Code sang provider khác",migrateDetectedProviders:"Đã phát hiện",migrateSelectedProviders:"Đã chọn",migrateDiscovering:"Đang quét nguồn di trú...",migrateRefresh:"Làm mới quét",migrateRun:"Chạy di trú",migrateRunning:"Đang di trú...",migrateSourceSummary:"Tổng quan nguồn",migratePresetCodex:"Codex",migratePresetAntigravity:"Antigravity",migratePresetCore:"Codex + Antigravity + Droid",migratePresetDetected:"Tất cả đã phát hiện",migrateScope:"Phạm vi",migrateScopeProject:"Dự án",migrateScopeGlobal:"Toàn cục",migrateTypes:"Loại di trú",migrateTypeAgents:"Subagents",migrateTypeCommands:"Commands",migrateTypeSkills:"Skills",migrateTypeConfig:"Config",migrateTypeRules:"Rules",migrateTypeHooks:"Hooks",migrateSearchProviders:"Tìm provider...",migrateSelectVisible:"Chọn phần đang hiện",migrateClearSelection:"Bỏ chọn tất cả",migrateProvidersHeading:"Provider đích",migrateProvidersCountSuffix:"provider",migrateNoProvidersMatch:"Không có provider khớp bộ lọc hiện tại.",migrateSelectButton:"Chọn",migrateSelectedButton:"Đã chọn",migrateSelectProviderAction:"Chọn provider",migrateUnselectProvider:"Bỏ chọn provider",migrateCapabilitiesLabel:"loại",migrateCapabilitiesSection:"Ma trận khả năng",migrateSupported:"Hỗ trợ",migrateUnsupportedShort:"Không hỗ trợ",migrateIncludedEnabled:"Đang bật",migrateIncludedDisabled:"Đang tắt",migrateLatestTarget:"Đích gần nhất",migrateNoResultForProvider:"Chưa có kết quả di trú cho provider này.",migrateActionSummaryTitle:"Sẵn sàng di trú",migrateGlobalOnlyCommandsShort:"Commands chỉ global",migrateNoProviders:"Không có provider khả dụng.",migrateUnsupported:"Sẽ bỏ qua (không hỗ trợ)",migrateGlobalForced:"Lệnh Codex chỉ hỗ trợ global. Phạm vi sẽ tự chuyển global.",migrateResults:"Kết quả di trú",migrateInstalled:"Đã cài",migrateSkipped:"Đã bỏ qua",migrateFailed:"Lỗi",migrateProvider:"Provider",migrateStatus:"Trạng thái",migratePath:"Đường dẫn",migrateError:"Lỗi",migrateStatusInstalled:"Đã cài",migrateStatusSkipped:"Đã bỏ qua",migrateStatusFailed:"Lỗi",migrateNoResults:"Chưa có kết quả di trú.",migrateDetectFailed:"Không thể quét dữ liệu di trú",migrateExecuteFailed:"Chạy di trú thất bại",migrateSelectProvider:"Vui lòng chọn ít nhất một provider",migrateNoTypesEnabled:"Bật ít nhất một loại di trú",migrateDetectedTag:"Đã phát hiện",migrateNotDetectedTag:"Chưa phát hiện",migrateFilterRecommended:"Đề xuất",migrateActionInstall:"Cài",migrateActionUpdate:"Cập nhật",migrateActionSkip:"Bỏ qua",migrateActionConflict:"Xung đột",migrateActionDelete:"Xóa",migrateUnchanged:"chưa thay đổi",migrateConflictSectionTitle:"Xung đột",migrateConflictUseCK:"Dùng CK",migrateConflictKeepMine:"Giữ của tôi",migrateConflictSmartMerge:"Merge thông minh",migrateConflictShowDiff:"Hiện diff",migrateConflictHideDiff:"Ẩn diff",migrateConflictResolved:"Đã giải quyết",migrateConflictManual:"Thủ công",migrateConflictOverwriteAll:"Ghi đè tất cả",migrateConflictKeepAll:"Giữ tất cả",migrateSummaryTitle:"Di trú hoàn tất",migrateSummaryNewMigration:"Di trú mới",migrateType:"Loại",migrateItem:"Mục",migrateReconciling:"Đang phân tích thay đổi...",migrateReviewPlan:"Xem kế hoạch",migrateExecutePlan:"Thực hiện di trú",migrateExecuting:"Đang thực hiện di trú...",migrateResolveConflicts:"Giải quyết xung đột trước khi thực hiện",migrateSummarySubtitle:"mục đã di trú",migrateSummarySearchPlaceholder:"Tìm kiếm...",migrateSummaryFilterAll:"Tất cả",migrateSummaryCollapseAll:"Thu gọn",migrateSummaryExpandAll:"Mở rộng",migrateSummaryNoResults:"Không tìm thấy mục nào",migrateSummaryProviders:"Provider",migrateTypeUnknown:"Khác",kanbanTitle:"Bảng Kanban Kế hoạch",kanbanNoFile:"Chưa chọn file kế hoạch. Dùng tham số ?file=.",kanbanNoPhases:"Không phát hiện giai đoạn nào trong kế hoạch này",kanbanError400:"Yêu cầu không hợp lệ — thiếu tham số file",kanbanError403:"Truy cập bị từ chối — file nằm ngoài thư mục dự án",kanbanError404:"Không tìm thấy file kế hoạch",kanbanComplete:"hoàn thành",kanbanStatus_pending:"Chờ xử lý","kanbanStatus_in-progress":"Đang thực hiện",kanbanStatus_completed:"Hoàn thành",kanbanPhases:"giai đoạn",kanbanProgress:"Tiến độ",kanbanLoadError:"Không thể tải dữ liệu kế hoạch",developmentFeature:"Đang phát triển",betaFeature:"Beta",experimentalFeature:"Thử nghiệm"}},yh=g.createContext(null),Bm="ck-dashboard-lang";function fv(){const n=localStorage.getItem(Bm);return n==="en"||n==="vi"?n:navigator.language.startsWith("vi")?"vi":"en"}function pv({children:n}){const[e,t]=g.useState(fv),r=g.useCallback(o=>{localStorage.setItem(Bm,o),t(o)},[]),i=g.useCallback(o=>uv[e][o],[e]),s=g.useMemo(()=>({lang:e,setLang:r,t:i}),[e,r,i]);return h.jsx(yh.Provider,{value:s,children:n})}function ce(){const n=g.useContext(yh);if(!n)throw new Error("useI18n must be used within I18nProvider");return n}class mv extends g.Component{constructor(){super(...arguments);jd(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("App error:",t,r.componentStack)}render(){if(this.state.hasError){const t=this.state.error?.name==="ServerUnavailableError";return h.jsx(yh.Consumer,{children:r=>h.jsx("div",{className:"flex h-screen items-center justify-center bg-dash-bg",children:h.jsx("div",{className:"text-center space-y-4 max-w-md px-6",children:t?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"w-16 h-16 mx-auto rounded-full bg-orange-500/10 border border-orange-500/30 flex items-center justify-center text-3xl",children:"🔌"}),h.jsx("h1",{className:"text-2xl font-bold text-orange-500",children:r?.t("serverNotRunning")??"Server Not Running"}),h.jsx("p",{className:"text-dash-text-secondary",children:r?.t("startServerMessage")??"The Config UI requires the backend server to be running."}),h.jsxs("div",{className:"bg-dash-surface border border-dash-border rounded-lg p-4",children:[h.jsx("p",{className:"text-xs text-dash-text-muted uppercase tracking-widest mb-2 font-bold",children:r?.t("runThisCommand")??"Run this command"}),h.jsx("code",{className:"block text-sm text-dash-accent font-mono bg-dash-bg px-3 py-2 rounded border border-dash-border",children:"ck config"})]}),h.jsx("button",{onClick:()=>window.location.reload(),className:"px-6 py-2 bg-dash-accent text-dash-bg rounded-lg font-bold hover:bg-dash-accent-hover transition-colors",children:r?.t("tryAgain")??"Try Again"})]}):h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"text-2xl font-bold text-red-500",children:r?.t("somethingWentWrong")??"Something went wrong"}),h.jsx("p",{className:"text-dash-text-muted",children:this.state.error?.message}),h.jsx("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-dash-accent text-white rounded-md hover:opacity-90",children:r?.t("reloadApp")??"Reload App"})]})})})})}return this.props.children}}const Pr=({direction:n="horizontal",isDragging:e=!1,onMouseDown:t})=>{const r=n==="horizontal";return h.jsx("div",{onMouseDown:t,className:`
22
22
  group flex items-center justify-center shrink-0
23
23
  ${r?"w-2 cursor-col-resize":"h-2 cursor-row-resize"}
24
24
  ${e?"bg-dash-accent/20":"hover:bg-dash-surface-hover/50"}
@@ -211,9 +211,11 @@ Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}
211
211
  }
212
212
  }`},statusline:{path:"statusline",type:"string",default:'"full"',validValues:["full","compact","minimal","none"],description:"Controls how much information is displayed in the Claude Code status line during operations.",descriptionVi:"Điều khiển lượng thông tin hiển thị trong dòng trạng thái Claude Code trong khi thao tác.",effect:"'full' shows all details (tokens, model, cost). 'compact' shows summary. 'minimal' shows only critical info. 'none' hides status line.",effectVi:"'full' hiển thị tất cả chi tiết (token, model, chi phí). 'compact' hiển thị tóm tắt. 'minimal' chỉ hiển thị thông tin quan trọng. 'none' ẩn dòng trạng thái.",example:`{
213
213
  "statusline": "compact"
214
+ }`},statuslineColors:{path:"statuslineColors",type:"boolean",default:"true",description:"Controls whether the statusline uses ANSI color codes. When false, renders plain text. NO_COLOR/FORCE_COLOR env vars are also respected.",descriptionVi:"Kiểm soát việc thanh trạng thái sử dụng mã màu ANSI. Khi tắt, hiển thị văn bản thuần. Biến môi trường NO_COLOR/FORCE_COLOR cũng được hỗ trợ.",effect:"When enabled, statusline elements are colorized (model=cyan, dir=yellow, branch=magenta, context=threshold). When disabled, all output is plain text.",effectVi:"Khi bật, các phần tử thanh trạng thái được tô màu (model=xanh lam, thư mục=vàng, nhánh=tím, ngữ cảnh=theo ngưỡng). Khi tắt, tất cả đầu ra là văn bản thuần.",example:`{
215
+ "statuslineColors": false
214
216
  }`},assertions:{path:"assertions",type:"string[]",default:"[]",description:"List of user-defined assertions that are injected at the start of every session.",descriptionVi:"Danh sách các khẳng định do người dùng định nghĩa, được tiêm vào đầu mỗi phiên.",example:`{
215
217
  "assertions": ["Use strict mode", "No console.logs"]
216
218
  }`}},XC=(n,e)=>{const[t,r]=g.useState(null);return g.useEffect(()=>{const i=n.split(`
217
- `),s=[];let o=null;for(let a=0;a<=Math.min(e,i.length-1);a++){const l=i[a].trim(),c=l.match(/"([^"]+)"\s*:\s*{/);if(c){s.push(c[1]),a===e&&(o=s.join("."));continue}if(l==="}"||l==="},"){s.pop();continue}const d=l.match(/"([^"]+)"\s*:/);if(d){const u=d[1];if(a===e){o=s.length>0?`${s.join(".")}.${u}`:u;break}}}r(o)},[n,e]),t};function Fb(n){const{scope:e,fetchConfig:t,fetchSchema:r,saveConfig:i,onReset:s}=n,[o,a]=g.useState("{}"),[l,c]=g.useState(0),[d,u]=g.useState(null),[f,p]=g.useState(null),[m,b]=g.useState({}),[x,w]=g.useState({}),[v,S]=g.useState({}),[j,k]=g.useState(!0),[O,y]=g.useState("idle"),[D,A]=g.useState(!1),[R,N]=g.useState(null),L=XC(o,l),W=L?QC[L]:null;g.useEffect(()=>{(async()=>{try{const[J,ie]=await Promise.all([t(),r()]),le=J.local??J.config;b(le),w(J.global??{}),S(J.sources),p(ie),a(JSON.stringify(le,null,2))}catch(J){console.error("Failed to load config data:",J)}finally{k(!1)}})()},[t,r]),g.useEffect(()=>{try{JSON.parse(o),u(null)}catch(z){u(z instanceof Error?z.message:"Invalid JSON")}},[o]),g.useEffect(()=>{if(R==="json")try{const z=JSON.parse(o);b(z)}catch{}},[o,R]);const F=g.useCallback(z=>{N("json"),a(z)},[]),B=g.useCallback((z,J)=>{N("form"),b(ie=>{const le=Lv(ie,z,J);return a(JSON.stringify(le,null,2)),le}),S(ie=>({...ie,[z]:e}))},[e]),q=g.useCallback(async()=>{if(!d){y("saving");try{const z=JSON.parse(o);await i(z),b(z),y("saved"),setTimeout(()=>y("idle"),2e3)}catch{y("error"),setTimeout(()=>y("idle"),3e3)}}},[o,d,i]),de=g.useCallback(async()=>{if(A(!1),s){k(!0);try{const z=await s(),J=z.local??z.config;b(J),S(z.sources),a(JSON.stringify(J,null,2))}catch(z){console.error("Failed to reset:",z)}finally{k(!1)}}else{const z={};b(z),a(JSON.stringify(z,null,2))}},[s]);return{jsonText:o,config:m,globalConfig:x,sources:v,schema:f,isLoading:j,saveStatus:O,syntaxError:d,cursorLine:l,showResetConfirm:D,activeFieldPath:L,fieldDoc:W,handleJsonChange:F,handleFormChange:B,handleSave:q,handleReset:de,setCursorLine:c,setShowResetConfirm:A}}function lh({storageKey:n,defaultSizes:e,minSizes:t}){const[r,i]=g.useState(()=>{if(typeof window>"u")return e;const c=localStorage.getItem(n);if(c)try{const d=JSON.parse(c);if(Array.isArray(d)&&d.length===e.length){const u=d.reduce((f,p)=>f+p,0);if(Math.abs(u-100)<1)return d}}catch{}return e}),[s,o]=g.useState(!1);g.useEffect(()=>{localStorage.setItem(n,JSON.stringify(r))},[r,n]);const a=g.useCallback((c,d)=>{d.preventDefault(),o(!0);const u=d.target.parentElement;if(!u)return;const p=u.getBoundingClientRect().width,m=d.clientX,b=[...r],x=v=>{const j=(v.clientX-m)/p*100,k=[...b],O=c,y=c+1;let D=b[O]+j,A=b[y]-j;D<t[O]&&(D=t[O],A=b[O]+b[y]-D),A<t[y]&&(A=t[y],D=b[O]+b[y]-A),k[O]=D,k[y]=A,i(k)},w=()=>{o(!1),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",w),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",x),document.addEventListener("mouseup",w),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[r,t]),l=g.useCallback(()=>{i(e)},[e]);return{sizes:r,isDragging:s,startDrag:a,reset:l}}const qa="/api";async function op(n){const e=`${qa}/ck-config`,t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch ck-config: ${t.status}`);return t.json()}async function ap(n,e){const t=new URLSearchParams({scope:n});e&&t.set("projectId",e);const r=await fetch(`${qa}/ck-config?${t}`);if(!r.ok)throw new Error(`Failed to fetch ck-config: ${r.status}`);return r.json()}async function Vb(n){const e=await fetch(`${qa}/ck-config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!e.ok){const t=await e.json().catch(()=>({error:"Unknown error"}));throw new Error(t.error||`Failed to save ck-config: ${e.status}`)}return e.json()}async function zb(){const n=await fetch(`${qa}/ck-config/schema`);if(!n.ok)throw new Error(`Failed to fetch schema: ${n.status}`);return n.json()}const ZC=()=>{const{t:n}=ce(),e=an(),[t,r]=g.useState("config"),[i,s]=g.useState({}),{sizes:o,isDragging:a,startDrag:l}=lh({storageKey:"claudekit-global-config-panels",defaultSizes:[35,40,25],minSizes:[20,25,15]}),{sizes:c,isDragging:d,startDrag:u}=lh({storageKey:"claudekit-global-system-panels",defaultSizes:[70,30],minSizes:[45,20]}),f=g.useCallback(async()=>{const[v,S]=await Promise.all([op(),Nv()]);return s(S),v},[]),p=g.useCallback(async v=>{await Vb({scope:"global",config:v})},[]),m=g.useCallback(async()=>await op(),[]),b=Fb({scope:"global",fetchConfig:f,fetchSchema:zb,saveConfig:p,onReset:m}),x=g.useMemo(()=>[{id:"general",title:n("sectionGeneral"),fields:[{path:"codingLevel",label:n("fieldCodingLevel"),description:n("fieldCodingLevelDesc")},{path:"statusline",label:n("fieldStatusline"),description:n("fieldStatuslineDesc")},{path:"locale.thinkingLanguage",label:n("fieldThinkingLanguage"),description:n("fieldThinkingLanguageDesc")},{path:"locale.responseLanguage",label:n("fieldResponseLanguage"),description:n("fieldResponseLanguageDesc")}]},{id:"paths",title:n("sectionPaths"),fields:[{path:"paths.docs",label:n("fieldDocsPath"),description:n("fieldDocsPathDesc")},{path:"paths.plans",label:n("fieldPlansPath"),description:n("fieldPlansPathDesc")}]},{id:"privacy",title:n("sectionPrivacy"),defaultCollapsed:!0,fields:[{path:"privacyBlock",label:n("fieldPrivacyBlock"),description:n("fieldPrivacyBlockDesc")},{path:"trust.enabled",label:n("fieldTrustEnabled"),description:n("fieldTrustEnabledDesc")},{path:"trust.passphrase",label:n("fieldTrustPassphrase"),description:n("fieldTrustPassphraseDesc")}]},{id:"project",title:n("sectionProject"),defaultCollapsed:!0,fields:[{path:"project.type",label:n("fieldProjectType"),description:n("fieldProjectTypeDesc")},{path:"project.packageManager",label:n("fieldPackageManager"),description:n("fieldPackageManagerDesc")},{path:"project.framework",label:n("fieldFramework"),description:n("fieldFrameworkDesc")}]},{id:"integrations",title:n("sectionIntegrations"),defaultCollapsed:!0,fields:[{path:"gemini.model",label:n("fieldGeminiModel"),description:n("fieldGeminiModelDesc")},{path:"skills.research.useGemini",label:n("fieldResearchUseGemini"),description:n("fieldResearchUseGeminiDesc")}]},{id:"hooks",title:n("sectionHooks"),defaultCollapsed:!0,fields:[{path:"hooks.session-init",label:n("fieldHookSessionInit"),description:n("fieldHookSessionInitDesc")},{path:"hooks.subagent-init",label:n("fieldHookSubagentInit"),description:n("fieldHookSubagentInitDesc")},{path:"hooks.descriptive-name",label:n("fieldHookDescriptiveName"),description:n("fieldHookDescriptiveNameDesc")},{path:"hooks.dev-rules-reminder",label:n("fieldHookDevRulesReminder"),description:n("fieldHookDevRulesReminderDesc")},{path:"hooks.usage-context-awareness",label:n("fieldHookUsageContextAwareness"),description:n("fieldHookUsageContextAwarenessDesc")},{path:"hooks.context-tracking",label:n("fieldHookContextTracking"),description:n("fieldHookContextTrackingDesc")},{path:"hooks.scout-block",label:n("fieldHookScoutBlock"),description:n("fieldHookScoutBlockDesc")},{path:"hooks.privacy-block",label:n("fieldHookPrivacyBlock"),description:n("fieldHookPrivacyBlockDesc")},{path:"hooks.post-edit-simplify-reminder",label:n("fieldHookPostEditSimplify"),description:n("fieldHookPostEditSimplifyDesc")}]},{id:"advanced",title:n("sectionAdvanced"),defaultCollapsed:!0,fields:[{path:"docs.maxLoc",label:n("fieldDocsMaxLoc"),description:n("fieldDocsMaxLocDesc")},{path:"plan.namingFormat",label:n("fieldPlanNamingFormat"),description:n("fieldPlanNamingFormatDesc")},{path:"plan.dateFormat",label:n("fieldPlanDateFormat"),description:n("fieldPlanDateFormatDesc")},{path:"plan.validation.mode",label:n("fieldPlanValidationMode"),description:n("fieldPlanValidationModeDesc")},{path:"plan.validation.minQuestions",label:n("fieldPlanMinQuestions"),description:n("fieldPlanMinQuestionsDesc")},{path:"plan.validation.maxQuestions",label:n("fieldPlanMaxQuestions"),description:n("fieldPlanMaxQuestionsDesc")},{path:"assertions",label:n("fieldAssertions"),description:n("fieldAssertionsDesc")}]}],[n]),w=b.showResetConfirm?h.jsxs("div",{className:"flex items-center gap-2 bg-red-500/10 border border-red-500/30 rounded-lg px-2 py-1 animate-in fade-in duration-200",children:[h.jsx("span",{className:"text-xs text-red-500 font-medium",children:n("confirmReset")}),h.jsx("button",{type:"button",onClick:b.handleReset,className:"px-2 py-0.5 rounded bg-red-500 text-white text-xs font-bold hover:bg-red-600 transition-colors",children:n("confirm")}),h.jsx("button",{type:"button",onClick:()=>b.setShowResetConfirm(!1),className:"px-2 py-0.5 rounded bg-dash-surface text-dash-text-secondary text-xs font-bold hover:bg-dash-surface-hover transition-colors border border-dash-border",children:n("cancel")})]}):h.jsxs(h.Fragment,{children:[h.jsx("button",{type:"button",onClick:()=>b.setShowResetConfirm(!0),className:"px-3 py-1.5 rounded-lg bg-dash-surface text-xs font-bold text-dash-text-secondary hover:bg-dash-surface-hover transition-colors border border-dash-border",children:n("resetToDefault")}),h.jsx("button",{type:"button",onClick:b.handleSave,disabled:!!b.syntaxError||b.saveStatus==="saving",className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all tracking-widest uppercase ${b.syntaxError?"bg-dash-surface text-dash-text-muted cursor-not-allowed border border-dash-border":b.saveStatus==="saved"?"bg-green-500 text-white shadow-lg shadow-green-500/20":b.saveStatus==="error"?"bg-red-500 text-white":"bg-dash-accent text-dash-bg hover:bg-dash-accent-hover shadow-lg shadow-dash-accent/20"}`,children:b.saveStatus==="saving"?n("saving"):b.saveStatus==="saved"?n("saved"):b.saveStatus==="error"?n("saveFailed"):n("saveChanges")})]});return h.jsxs("div",{className:"animate-in fade-in duration-300 w-full h-full flex flex-col transition-colors",children:[h.jsx(Vm,{title:n("globalConfig"),filePath:"~/.claude/.ck.json",onBack:()=>e(-1),onSave:b.handleSave,onReset:b.handleReset,saveStatus:b.saveStatus,syntaxError:b.syntaxError,showResetConfirm:b.showResetConfirm,setShowResetConfirm:b.setShowResetConfirm,showActions:!1,showFilePath:!1}),h.jsxs("div",{className:"mb-3 shrink-0 flex items-center justify-between gap-3",children:[h.jsxs("div",{role:"tablist","aria-label":n("globalConfig"),className:"inline-flex items-center rounded-xl border border-dash-border bg-dash-surface p-1 shadow-sm",children:[h.jsx("button",{role:"tab","aria-selected":t==="config",onClick:()=>r("config"),className:`dash-focus-ring px-4 py-2 rounded-lg text-sm font-semibold transition-colors ${t==="config"?"bg-dash-accent-subtle text-dash-accent":"text-dash-text-muted hover:text-dash-text hover:bg-dash-surface-hover"}`,children:n("configTab")}),h.jsx("button",{role:"tab","aria-selected":t==="metadata",onClick:()=>r("metadata"),className:`dash-focus-ring px-4 py-2 rounded-lg text-sm font-semibold transition-colors ${t==="metadata"?"bg-dash-accent-subtle text-dash-accent":"text-dash-text-muted hover:text-dash-text hover:bg-dash-surface-hover"}`,children:n("systemTab")})]}),h.jsx("p",{className:"hidden lg:block text-xs text-dash-text-muted",children:n("configWorkspaceHint")})]}),h.jsxs("div",{className:"flex-1 flex min-h-0",children:[t==="config"&&h.jsxs(h.Fragment,{children:[h.jsx(zm,{width:o[0],isLoading:b.isLoading,schema:b.schema,config:b.config,sources:b.sources,sections:x,onChange:b.handleFormChange}),h.jsx(Pr,{direction:"horizontal",isDragging:a,onMouseDown:v=>l(0,v)}),h.jsx(rd,{width:o[1],isLoading:b.isLoading,jsonText:b.jsonText,cursorLine:b.cursorLine,syntaxError:b.syntaxError,onChange:b.handleJsonChange,onCursorLineChange:b.setCursorLine,headerPath:"~/.claude/.ck.json",headerActions:w}),h.jsx(Pr,{direction:"horizontal",isDragging:a,onMouseDown:v=>l(1,v)}),h.jsx(Ib,{width:o[2],fieldDoc:b.fieldDoc,activeFieldPath:b.activeFieldPath})]}),t==="metadata"&&h.jsxs("div",{className:"flex-1 min-h-0 flex",children:[h.jsx("div",{style:{width:`${c[0]}%`},className:"min-w-0 h-full overflow-auto pr-1",children:b.isLoading?h.jsx("div",{className:"dash-panel h-full flex items-center justify-center",children:h.jsx("div",{className:"animate-pulse text-dash-text-muted text-sm",children:n("loading")})}):h.jsx(JC,{metadata:i})}),h.jsx(Pr,{direction:"horizontal",isDragging:d,onMouseDown:v=>u(0,v)}),h.jsx("div",{style:{width:`${c[1]}%`},className:"min-w-0 h-full overflow-hidden",children:h.jsx(YC,{})})]})]})]})};function ej({phase:n}){const e=n.status==="completed"?"border-green-500":n.status==="in-progress"?"border-blue-500":"border-amber-400";return h.jsx("div",{className:`rounded border-l-4 ${e} bg-white dark:bg-gray-800 p-3 shadow-sm`,children:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-xs font-mono text-gray-400 dark:text-gray-500",children:n.phaseId}),h.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-gray-100",children:n.name})]})})}function Fl({title:n,phases:e,borderColor:t}){return h.jsxs("div",{className:"flex flex-1 flex-col gap-3 min-w-0","aria-label":`${n} phases`,children:[h.jsxs("div",{className:`rounded-t border-t-2 ${t} bg-gray-50 dark:bg-gray-900 px-3 py-2`,children:[h.jsx("span",{className:"text-sm font-semibold text-gray-700 dark:text-gray-200",children:n}),h.jsx("span",{className:"ml-2 text-xs text-gray-400",children:e.length})]}),h.jsx("div",{className:"flex flex-col gap-2 px-1",children:e.map((r,i)=>h.jsx(ej,{phase:r},`${r.phaseId}-${i}`))})]})}function tj({completed:n,total:e}){const{t}=ce(),r=e===0?0:Math.round(n/e*100);return h.jsxs("div",{className:"flex flex-col gap-1",children:[h.jsxs("div",{className:"flex justify-between text-xs text-gray-500 dark:text-gray-400",children:[h.jsx("span",{children:t("kanbanProgress")}),h.jsxs("span",{children:[n,"/",e," ",t("kanbanPhases")," — ",r,"% ",t("kanbanComplete")]})]}),h.jsx("div",{className:"h-2 w-full rounded bg-gray-200 dark:bg-gray-700",children:h.jsx("div",{className:"h-2 rounded bg-green-500 transition-all",style:{width:`${r}%`}})})]})}function nj(){const{t:n}=ce(),[e]=sv(),t=e.get("file")??"",[r,i]=g.useState([]),[s,o]=g.useState(!1),[a,l]=g.useState(null);if(g.useEffect(()=>{t&&(o(!0),l(null),i([]),fetch(`/api/plan/parse?file=${encodeURIComponent(t)}`).then(p=>{if(!p.ok){const m={400:"kanbanError400",403:"kanbanError403",404:"kanbanError404"};throw new Error(m[p.status]??`error:HTTP:${p.status}`)}return p.json()}).then(p=>i(p.phases)).catch(p=>l(p instanceof Error?p.message:String(p))).finally(()=>o(!1)))},[t]),!t)return h.jsx("div",{className:"flex h-full items-center justify-center text-gray-400 dark:text-gray-500",children:n("kanbanNoFile")});let c=[],d=[],u=[],f=null;try{c=r.filter(p=>p.status==="pending"),d=r.filter(p=>p.status==="in-progress"),u=r.filter(p=>p.status==="completed")}catch(p){f=p instanceof Error?p.message:String(p)}return f?h.jsx("div",{className:"flex h-full items-center justify-center text-red-500 dark:text-red-400",children:n("kanbanLoadError")}):h.jsxs("div",{className:"flex h-full flex-col gap-4 p-6",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("h1",{className:"text-xl font-bold text-gray-900 dark:text-white",children:n("kanbanTitle")}),h.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500 truncate max-w-xs",title:t,children:t.replaceAll("\\","/")})]}),r.length>0&&h.jsx(tj,{completed:u.length,total:r.length}),s&&h.jsx("div",{className:"flex flex-1 items-center justify-center text-gray-400",children:n("loading")}),a&&h.jsxs("div",{className:"rounded border border-red-300 bg-red-50 dark:bg-red-900/20 p-4 text-red-600 dark:text-red-400",children:[n("error"),":"," ",a in{kanbanError400:"",kanbanError403:"",kanbanError404:""}?n(a):a]}),!s&&!a&&r.length===0&&h.jsx("div",{className:"flex flex-1 items-center justify-center text-gray-400 dark:text-gray-500",children:n("kanbanNoPhases")}),!s&&!a&&r.length>0&&h.jsxs("section",{"aria-label":n("kanbanTitle"),className:"flex flex-1 flex-col gap-4 overflow-auto md:flex-row",children:[h.jsx(Fl,{title:n("kanbanStatus_pending"),phases:c,borderColor:"border-amber-400"}),h.jsx(Fl,{title:n("kanbanStatus_in-progress"),phases:d,borderColor:"border-blue-500"}),h.jsx(Fl,{title:n("kanbanStatus_completed"),phases:u,borderColor:"border-green-500"})]})]})}const lp=[{key:"agent",labelKey:"migrateTypeAgents",badgeClass:"border-dash-accent/30 text-dash-accent"},{key:"command",labelKey:"migrateTypeCommands",badgeClass:"border-yellow-500/30 text-yellow-400"},{key:"skill",labelKey:"migrateTypeSkills",badgeClass:"border-purple-500/30 text-purple-400"},{key:"config",labelKey:"migrateTypeConfig",badgeClass:"border-teal-500/30 text-teal-400"},{key:"rules",labelKey:"migrateTypeRules",badgeClass:"border-rose-500/30 text-rose-400"},{key:"hooks",labelKey:"migrateTypeHooks",badgeClass:"border-cyan-500/30 text-cyan-400"}],rj=new Set([8203,8204,8205,8288,65279,8232,8233,8234,8235,8236,8237,8238,8294,8295,8296,8297]);function ij(n){return n===9||n===10||n===13?!0:n>=0&&n<=8||n>=11&&n<=31||n>=127&&n<=159||rj.has(n)}function Xn(n){let e="";for(const t of n){const r=t.codePointAt(0);r!==void 0&&(ij(r)||(e+=t))}return e}function cp(n){if(!n)return"-";const e=n.replace(/\\/g,"/"),t=e.match(/.*\/(\.[^/]+\/)/);if(t?.[1]){const i=(t.index??0)+t[0].length-t[1].length;return e.slice(i)}const r=e.split("/");return r.length>3?`.../${r.slice(-3).join("/")}`:e}function jr(n){return n.success?n.skipped?"skipped":"installed":"failed"}function sj(n){const e={installed:0,skipped:0,failed:0};for(const t of n){const r=jr(t);r==="installed"?e.installed+=1:r==="skipped"?e.skipped+=1:e.failed+=1}return e}function _b(n){switch(n){case"agent":case"command":case"skill":case"config":case"rules":case"hooks":case"unknown":return n;default:return"unknown"}}function oj(n,e){switch(n){case"failed":return{label:e("migrateStatusFailed"),className:"border-red-500/30 bg-red-500/10 text-red-400"};case"skipped":return{label:e("migrateStatusSkipped"),className:"border-yellow-500/30 bg-yellow-500/10 text-yellow-400"};default:return{label:e("migrateStatusInstalled"),className:"border-green-500/30 bg-green-500/10 text-green-400"}}}function aj(n){const e=new Map;for(const t of n){const r=_b(t.portableType),i=e.get(r)||[];i.push(t),e.set(r,i)}return e}function lj(n){return[_b(n.portableType),n.provider,n.providerDisplayName,n.itemName,n.path,n.success,n.skipped,n.overwritten,n.error,n.skipReason].map(t=>t===void 0?"":String(t)).join("|")}function cj(n){if(n.length===0)return!0;const e=n[0].provider;return n.every(t=>t.provider===e)}const Lr=({label:n,count:e,className:t})=>e<=0?null:h.jsxs("span",{className:`inline-flex items-center gap-1 rounded-md border px-2.5 py-1 text-xs ${t}`,children:[h.jsx("span",{className:"font-semibold",children:e}),h.jsx("span",{children:n})]}),hp=({labelKey:n,badgeClass:e,items:t,isExpanded:r,onToggle:i,singleProvider:s})=>{const{t:o}=ce(),a=t.filter(f=>jr(f)==="installed").length,l=t.filter(f=>jr(f)==="skipped").length,c=t.filter(f=>jr(f)==="failed").length,d=s?"md:grid-cols-[minmax(0,1.5fr)_minmax(0,1.35fr)_auto_minmax(0,1fr)]":"md:grid-cols-[minmax(0,1.2fr)_minmax(0,0.8fr)_minmax(0,1.2fr)_auto_minmax(0,1fr)]",u=new Map;return h.jsxs("div",{className:"rounded-xl border border-dash-border bg-dash-surface overflow-hidden",children:[h.jsxs("button",{type:"button",onClick:i,className:"w-full flex flex-wrap items-center gap-2 px-4 py-3 text-left hover:bg-dash-surface-hover transition-colors",children:[h.jsx("svg",{className:`w-3.5 h-3.5 text-dash-text-muted transition-transform ${r?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:h.jsx("path",{d:"M9 5l7 7-7 7"})}),h.jsx("p",{className:"text-sm font-semibold text-dash-text",children:o(n)}),h.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] font-semibold ${e}`,children:t.length}),h.jsx("span",{className:"hidden sm:block flex-1"}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-[11px]",children:[h.jsx(Lr,{label:o("migrateStatusInstalled"),count:a,className:"border-green-500/30 bg-green-500/10 text-green-400"}),h.jsx(Lr,{label:o("migrateStatusSkipped"),count:l,className:"border-yellow-500/30 bg-yellow-500/10 text-yellow-400"}),h.jsx(Lr,{label:o("migrateStatusFailed"),count:c,className:"border-red-500/30 bg-red-500/10 text-red-400"})]})]}),r&&h.jsxs("div",{className:"border-t border-dash-border/80",children:[h.jsxs("div",{className:`hidden md:grid ${d} items-center gap-3 px-4 py-2 border-b border-dash-border/70 text-[10px] font-semibold uppercase tracking-wide text-dash-text-muted`,children:[h.jsx("p",{children:o("migrateItem")}),!s&&h.jsx("p",{children:o("migrateProvider")}),h.jsx("p",{children:o("migratePath")}),h.jsx("p",{children:o("migrateStatus")}),h.jsx("p",{children:o("migrateError")})]}),h.jsx("div",{className:"divide-y divide-dash-border/70",children:t.map(f=>{const p=lj(f),m=u.get(p)??0;u.set(p,m+1);const b=m===0?p:`${p}#${m}`,x=jr(f),w=oj(x,o),v=Xn(f.itemName||cp(f.path)),S=Xn(f.providerDisplayName||f.provider||""),j=Xn(f.path||""),k=Xn(cp(f.path)),O=Xn(f.error||f.skipReason||"");return h.jsxs("div",{className:`grid gap-1.5 ${d} items-start px-4 py-2.5 hover:bg-dash-bg/60 transition-colors`,children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("p",{className:"text-xs font-semibold text-dash-text truncate",title:v,children:v}),h.jsxs("div",{className:"mt-0.5 space-y-0.5 md:hidden",children:[!s&&h.jsx("p",{className:"text-[11px] text-dash-text-secondary truncate",children:S}),h.jsx("p",{className:"font-mono text-[11px] text-dash-text-muted truncate",title:j,children:k}),O&&h.jsx("p",{className:"text-[11px] text-red-400/80 line-clamp-2",title:O,children:O})]})]}),!s&&h.jsx("p",{className:"hidden md:block text-[11px] text-dash-text-secondary truncate",children:S}),h.jsx("p",{className:"hidden md:block font-mono text-[11px] text-dash-text-muted truncate",title:j,children:k}),h.jsx("span",{className:`inline-flex w-fit items-center rounded-full border px-2 py-0.5 text-[11px] font-medium ${w.className}`,children:w.label}),h.jsx("p",{className:`hidden md:block text-[11px] truncate ${O?"text-red-400/80":"text-dash-text-muted"}`,title:O,children:O||"-"})]},b)})})]})]})},hj=({results:n,onReset:e})=>{const{t}=ce(),[r,i]=g.useState(""),s=g.useDeferredValue(r),[o,a]=g.useState("all"),[l,c]=g.useState(()=>new Set(lp.map(j=>j.key))),d=g.useMemo(()=>{const j=s.trim().toLowerCase();return n.results.filter(k=>{if(o!=="all"&&jr(k)!==o)return!1;if(!j)return!0;const O=(k.itemName||"").toLowerCase(),y=(k.path||"").toLowerCase(),D=(k.providerDisplayName||k.provider||"").toLowerCase();return O.includes(j)||y.includes(j)||D.includes(j)})},[n.results,s,o]),u=g.useMemo(()=>cj(d),[d]),f=g.useMemo(()=>{if(!u||d.length===0)return"";const j=Array.from(new Set(d.map(k=>k.providerDisplayName?.trim()||"").filter(k=>k.length>0)));return j.length===1?j[0]:d[0]?.provider||""},[d,u]),p=g.useMemo(()=>aj(d),[d]),m=g.useMemo(()=>sj(n.results),[n.results]),b=g.useMemo(()=>[...p.keys()],[p]),x=m.installed+m.skipped+m.failed,w=b.length>0&&b.every(j=>l.has(j)),v=j=>{c(k=>{const O=new Set(k);return O.has(j)?O.delete(j):O.add(j),O})},S=()=>{if(w){c(new Set);return}c(new Set(b))};return h.jsxs("div",{className:"dash-panel p-4 md:p-5 space-y-4",children:[h.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between",children:[h.jsxs("div",{children:[h.jsxs("h2",{className:"text-base font-semibold text-dash-text",children:[t("migrateSummaryTitle"),u&&f&&h.jsxs("span",{className:"text-dash-text-muted font-normal",children:[" ","· ",Xn(f)]})]}),h.jsxs("p",{className:"text-xs text-dash-text-muted mt-1",children:[x," ",t("migrateSummarySubtitle")]})]}),h.jsx("button",{type:"button",onClick:e,className:"dash-focus-ring px-4 py-2 text-sm font-semibold rounded-md bg-dash-bg border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:t("migrateSummaryNewMigration")})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[h.jsx(Lr,{label:t("migrateStatusInstalled"),count:m.installed,className:"border-green-500/30 bg-green-500/10 text-green-400"}),h.jsx(Lr,{label:t("migrateStatusSkipped"),count:m.skipped,className:"border-yellow-500/30 bg-yellow-500/10 text-yellow-400"}),h.jsx(Lr,{label:t("migrateStatusFailed"),count:m.failed,className:"border-red-500/30 bg-red-500/10 text-red-400"})]}),n.warnings.length>0&&h.jsx("div",{className:"space-y-2",children:n.warnings.map((j,k)=>h.jsx("div",{className:"px-3 py-2 border border-yellow-500/30 bg-yellow-500/10 rounded-md text-xs text-yellow-400",children:Xn(j)},k))}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsxs("div",{className:"relative",children:[h.jsxs("svg",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 stroke-dash-text-muted",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("circle",{cx:"11",cy:"11",r:"8"}),h.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),h.jsx("input",{type:"text",value:r,onChange:j=>i(j.target.value),placeholder:t("migrateSummarySearchPlaceholder"),className:"dash-focus-ring w-full pl-9 pr-3 py-2 bg-dash-bg border border-dash-border rounded-lg text-dash-text text-sm focus:border-dash-accent transition-colors"})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[["all","installed","skipped","failed"].map(j=>{const k=j==="all"?"migrateSummaryFilterAll":j==="installed"?"migrateStatusInstalled":j==="skipped"?"migrateStatusSkipped":"migrateStatusFailed";return h.jsx("button",{type:"button",onClick:()=>a(j),className:`dash-focus-ring px-3 py-1 text-xs font-medium rounded-full border transition-colors ${o===j?"bg-dash-accent/10 border-dash-accent text-dash-accent":"border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover hover:text-dash-text"}`,children:t(k)},j)}),h.jsx("button",{type:"button",onClick:S,className:"dash-focus-ring ml-1 px-3 py-1 text-xs font-medium rounded-md border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:t(w?"migrateSummaryCollapseAll":"migrateSummaryExpandAll")})]})]}),d.length===0?h.jsx("div",{className:"text-center py-8 text-sm text-dash-text-muted",children:t("migrateSummaryNoResults")}):h.jsxs("div",{className:"space-y-2.5",children:[lp.map(j=>{const k=p.get(j.key);return!k||k.length===0?null:h.jsx(hp,{labelKey:j.labelKey,badgeClass:j.badgeClass,items:k,isExpanded:l.has(j.key),onToggle:()=>v(j.key),singleProvider:u},j.key)}),(()=>{const j=p.get("unknown");return!j||j.length===0?null:h.jsx(hp,{labelKey:"migrateTypeUnknown",badgeClass:"border-dash-border text-dash-text-muted",items:j,isExpanded:l.has("unknown"),onToggle:()=>v("unknown"),singleProvider:u})})()]})]})},dj=500;function uj(n){return n>=0&&n<=8||n>=11&&n<=31||n>=127&&n<=159}function fj(n){let e="";for(const t of n){const r=t.codePointAt(0);r!==void 0&&(uj(r)||(e+=t))}return e}const pj=({diff:n,className:e=""})=>{const t=n.split(`
219
+ `),s=[];let o=null;for(let a=0;a<=Math.min(e,i.length-1);a++){const l=i[a].trim(),c=l.match(/"([^"]+)"\s*:\s*{/);if(c){s.push(c[1]),a===e&&(o=s.join("."));continue}if(l==="}"||l==="},"){s.pop();continue}const d=l.match(/"([^"]+)"\s*:/);if(d){const u=d[1];if(a===e){o=s.length>0?`${s.join(".")}.${u}`:u;break}}}r(o)},[n,e]),t};function Fb(n){const{scope:e,fetchConfig:t,fetchSchema:r,saveConfig:i,onReset:s}=n,[o,a]=g.useState("{}"),[l,c]=g.useState(0),[d,u]=g.useState(null),[f,p]=g.useState(null),[m,b]=g.useState({}),[x,w]=g.useState({}),[v,S]=g.useState({}),[j,k]=g.useState(!0),[O,y]=g.useState("idle"),[D,A]=g.useState(!1),[R,N]=g.useState(null),L=XC(o,l),W=L?QC[L]:null;g.useEffect(()=>{(async()=>{try{const[J,ie]=await Promise.all([t(),r()]),le=J.local??J.config;b(le),w(J.global??{}),S(J.sources),p(ie),a(JSON.stringify(le,null,2))}catch(J){console.error("Failed to load config data:",J)}finally{k(!1)}})()},[t,r]),g.useEffect(()=>{try{JSON.parse(o),u(null)}catch(z){u(z instanceof Error?z.message:"Invalid JSON")}},[o]),g.useEffect(()=>{if(R==="json")try{const z=JSON.parse(o);b(z)}catch{}},[o,R]);const F=g.useCallback(z=>{N("json"),a(z)},[]),B=g.useCallback((z,J)=>{N("form"),b(ie=>{const le=Lv(ie,z,J);return a(JSON.stringify(le,null,2)),le}),S(ie=>({...ie,[z]:e}))},[e]),q=g.useCallback(async()=>{if(!d){y("saving");try{const z=JSON.parse(o);await i(z),b(z),y("saved"),setTimeout(()=>y("idle"),2e3)}catch{y("error"),setTimeout(()=>y("idle"),3e3)}}},[o,d,i]),de=g.useCallback(async()=>{if(A(!1),s){k(!0);try{const z=await s(),J=z.local??z.config;b(J),S(z.sources),a(JSON.stringify(J,null,2))}catch(z){console.error("Failed to reset:",z)}finally{k(!1)}}else{const z={};b(z),a(JSON.stringify(z,null,2))}},[s]);return{jsonText:o,config:m,globalConfig:x,sources:v,schema:f,isLoading:j,saveStatus:O,syntaxError:d,cursorLine:l,showResetConfirm:D,activeFieldPath:L,fieldDoc:W,handleJsonChange:F,handleFormChange:B,handleSave:q,handleReset:de,setCursorLine:c,setShowResetConfirm:A}}function lh({storageKey:n,defaultSizes:e,minSizes:t}){const[r,i]=g.useState(()=>{if(typeof window>"u")return e;const c=localStorage.getItem(n);if(c)try{const d=JSON.parse(c);if(Array.isArray(d)&&d.length===e.length){const u=d.reduce((f,p)=>f+p,0);if(Math.abs(u-100)<1)return d}}catch{}return e}),[s,o]=g.useState(!1);g.useEffect(()=>{localStorage.setItem(n,JSON.stringify(r))},[r,n]);const a=g.useCallback((c,d)=>{d.preventDefault(),o(!0);const u=d.target.parentElement;if(!u)return;const p=u.getBoundingClientRect().width,m=d.clientX,b=[...r],x=v=>{const j=(v.clientX-m)/p*100,k=[...b],O=c,y=c+1;let D=b[O]+j,A=b[y]-j;D<t[O]&&(D=t[O],A=b[O]+b[y]-D),A<t[y]&&(A=t[y],D=b[O]+b[y]-A),k[O]=D,k[y]=A,i(k)},w=()=>{o(!1),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",w),document.body.style.cursor="",document.body.style.userSelect=""};document.addEventListener("mousemove",x),document.addEventListener("mouseup",w),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[r,t]),l=g.useCallback(()=>{i(e)},[e]);return{sizes:r,isDragging:s,startDrag:a,reset:l}}const qa="/api";async function op(n){const e=`${qa}/ck-config`,t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch ck-config: ${t.status}`);return t.json()}async function ap(n,e){const t=new URLSearchParams({scope:n});e&&t.set("projectId",e);const r=await fetch(`${qa}/ck-config?${t}`);if(!r.ok)throw new Error(`Failed to fetch ck-config: ${r.status}`);return r.json()}async function Vb(n){const e=await fetch(`${qa}/ck-config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!e.ok){const t=await e.json().catch(()=>({error:"Unknown error"}));throw new Error(t.error||`Failed to save ck-config: ${e.status}`)}return e.json()}async function zb(){const n=await fetch(`${qa}/ck-config/schema`);if(!n.ok)throw new Error(`Failed to fetch schema: ${n.status}`);return n.json()}const ZC=()=>{const{t:n}=ce(),e=an(),[t,r]=g.useState("config"),[i,s]=g.useState({}),{sizes:o,isDragging:a,startDrag:l}=lh({storageKey:"claudekit-global-config-panels",defaultSizes:[35,40,25],minSizes:[20,25,15]}),{sizes:c,isDragging:d,startDrag:u}=lh({storageKey:"claudekit-global-system-panels",defaultSizes:[70,30],minSizes:[45,20]}),f=g.useCallback(async()=>{const[v,S]=await Promise.all([op(),Nv()]);return s(S),v},[]),p=g.useCallback(async v=>{await Vb({scope:"global",config:v})},[]),m=g.useCallback(async()=>await op(),[]),b=Fb({scope:"global",fetchConfig:f,fetchSchema:zb,saveConfig:p,onReset:m}),x=g.useMemo(()=>[{id:"general",title:n("sectionGeneral"),fields:[{path:"codingLevel",label:n("fieldCodingLevel"),description:n("fieldCodingLevelDesc")},{path:"statusline",label:n("fieldStatusline"),description:n("fieldStatuslineDesc")},{path:"statuslineColors",label:n("fieldStatuslineColors"),description:n("fieldStatuslineColorsDesc")},{path:"locale.thinkingLanguage",label:n("fieldThinkingLanguage"),description:n("fieldThinkingLanguageDesc")},{path:"locale.responseLanguage",label:n("fieldResponseLanguage"),description:n("fieldResponseLanguageDesc")}]},{id:"paths",title:n("sectionPaths"),fields:[{path:"paths.docs",label:n("fieldDocsPath"),description:n("fieldDocsPathDesc")},{path:"paths.plans",label:n("fieldPlansPath"),description:n("fieldPlansPathDesc")}]},{id:"privacy",title:n("sectionPrivacy"),defaultCollapsed:!0,fields:[{path:"privacyBlock",label:n("fieldPrivacyBlock"),description:n("fieldPrivacyBlockDesc")},{path:"trust.enabled",label:n("fieldTrustEnabled"),description:n("fieldTrustEnabledDesc")},{path:"trust.passphrase",label:n("fieldTrustPassphrase"),description:n("fieldTrustPassphraseDesc")}]},{id:"project",title:n("sectionProject"),defaultCollapsed:!0,fields:[{path:"project.type",label:n("fieldProjectType"),description:n("fieldProjectTypeDesc")},{path:"project.packageManager",label:n("fieldPackageManager"),description:n("fieldPackageManagerDesc")},{path:"project.framework",label:n("fieldFramework"),description:n("fieldFrameworkDesc")}]},{id:"integrations",title:n("sectionIntegrations"),defaultCollapsed:!0,fields:[{path:"gemini.model",label:n("fieldGeminiModel"),description:n("fieldGeminiModelDesc")},{path:"skills.research.useGemini",label:n("fieldResearchUseGemini"),description:n("fieldResearchUseGeminiDesc")}]},{id:"hooks",title:n("sectionHooks"),defaultCollapsed:!0,fields:[{path:"hooks.session-init",label:n("fieldHookSessionInit"),description:n("fieldHookSessionInitDesc")},{path:"hooks.subagent-init",label:n("fieldHookSubagentInit"),description:n("fieldHookSubagentInitDesc")},{path:"hooks.descriptive-name",label:n("fieldHookDescriptiveName"),description:n("fieldHookDescriptiveNameDesc")},{path:"hooks.dev-rules-reminder",label:n("fieldHookDevRulesReminder"),description:n("fieldHookDevRulesReminderDesc")},{path:"hooks.usage-context-awareness",label:n("fieldHookUsageContextAwareness"),description:n("fieldHookUsageContextAwarenessDesc")},{path:"hooks.context-tracking",label:n("fieldHookContextTracking"),description:n("fieldHookContextTrackingDesc")},{path:"hooks.scout-block",label:n("fieldHookScoutBlock"),description:n("fieldHookScoutBlockDesc")},{path:"hooks.privacy-block",label:n("fieldHookPrivacyBlock"),description:n("fieldHookPrivacyBlockDesc")},{path:"hooks.post-edit-simplify-reminder",label:n("fieldHookPostEditSimplify"),description:n("fieldHookPostEditSimplifyDesc")}]},{id:"advanced",title:n("sectionAdvanced"),defaultCollapsed:!0,fields:[{path:"docs.maxLoc",label:n("fieldDocsMaxLoc"),description:n("fieldDocsMaxLocDesc")},{path:"plan.namingFormat",label:n("fieldPlanNamingFormat"),description:n("fieldPlanNamingFormatDesc")},{path:"plan.dateFormat",label:n("fieldPlanDateFormat"),description:n("fieldPlanDateFormatDesc")},{path:"plan.validation.mode",label:n("fieldPlanValidationMode"),description:n("fieldPlanValidationModeDesc")},{path:"plan.validation.minQuestions",label:n("fieldPlanMinQuestions"),description:n("fieldPlanMinQuestionsDesc")},{path:"plan.validation.maxQuestions",label:n("fieldPlanMaxQuestions"),description:n("fieldPlanMaxQuestionsDesc")},{path:"assertions",label:n("fieldAssertions"),description:n("fieldAssertionsDesc")}]}],[n]),w=b.showResetConfirm?h.jsxs("div",{className:"flex items-center gap-2 bg-red-500/10 border border-red-500/30 rounded-lg px-2 py-1 animate-in fade-in duration-200",children:[h.jsx("span",{className:"text-xs text-red-500 font-medium",children:n("confirmReset")}),h.jsx("button",{type:"button",onClick:b.handleReset,className:"px-2 py-0.5 rounded bg-red-500 text-white text-xs font-bold hover:bg-red-600 transition-colors",children:n("confirm")}),h.jsx("button",{type:"button",onClick:()=>b.setShowResetConfirm(!1),className:"px-2 py-0.5 rounded bg-dash-surface text-dash-text-secondary text-xs font-bold hover:bg-dash-surface-hover transition-colors border border-dash-border",children:n("cancel")})]}):h.jsxs(h.Fragment,{children:[h.jsx("button",{type:"button",onClick:()=>b.setShowResetConfirm(!0),className:"px-3 py-1.5 rounded-lg bg-dash-surface text-xs font-bold text-dash-text-secondary hover:bg-dash-surface-hover transition-colors border border-dash-border",children:n("resetToDefault")}),h.jsx("button",{type:"button",onClick:b.handleSave,disabled:!!b.syntaxError||b.saveStatus==="saving",className:`px-3 py-1.5 rounded-lg text-xs font-bold transition-all tracking-widest uppercase ${b.syntaxError?"bg-dash-surface text-dash-text-muted cursor-not-allowed border border-dash-border":b.saveStatus==="saved"?"bg-green-500 text-white shadow-lg shadow-green-500/20":b.saveStatus==="error"?"bg-red-500 text-white":"bg-dash-accent text-dash-bg hover:bg-dash-accent-hover shadow-lg shadow-dash-accent/20"}`,children:b.saveStatus==="saving"?n("saving"):b.saveStatus==="saved"?n("saved"):b.saveStatus==="error"?n("saveFailed"):n("saveChanges")})]});return h.jsxs("div",{className:"animate-in fade-in duration-300 w-full h-full flex flex-col transition-colors",children:[h.jsx(Vm,{title:n("globalConfig"),filePath:"~/.claude/.ck.json",onBack:()=>e(-1),onSave:b.handleSave,onReset:b.handleReset,saveStatus:b.saveStatus,syntaxError:b.syntaxError,showResetConfirm:b.showResetConfirm,setShowResetConfirm:b.setShowResetConfirm,showActions:!1,showFilePath:!1}),h.jsxs("div",{className:"mb-3 shrink-0 flex items-center justify-between gap-3",children:[h.jsxs("div",{role:"tablist","aria-label":n("globalConfig"),className:"inline-flex items-center rounded-xl border border-dash-border bg-dash-surface p-1 shadow-sm",children:[h.jsx("button",{role:"tab","aria-selected":t==="config",onClick:()=>r("config"),className:`dash-focus-ring px-4 py-2 rounded-lg text-sm font-semibold transition-colors ${t==="config"?"bg-dash-accent-subtle text-dash-accent":"text-dash-text-muted hover:text-dash-text hover:bg-dash-surface-hover"}`,children:n("configTab")}),h.jsx("button",{role:"tab","aria-selected":t==="metadata",onClick:()=>r("metadata"),className:`dash-focus-ring px-4 py-2 rounded-lg text-sm font-semibold transition-colors ${t==="metadata"?"bg-dash-accent-subtle text-dash-accent":"text-dash-text-muted hover:text-dash-text hover:bg-dash-surface-hover"}`,children:n("systemTab")})]}),h.jsx("p",{className:"hidden lg:block text-xs text-dash-text-muted",children:n("configWorkspaceHint")})]}),h.jsxs("div",{className:"flex-1 flex min-h-0",children:[t==="config"&&h.jsxs(h.Fragment,{children:[h.jsx(zm,{width:o[0],isLoading:b.isLoading,schema:b.schema,config:b.config,sources:b.sources,sections:x,onChange:b.handleFormChange}),h.jsx(Pr,{direction:"horizontal",isDragging:a,onMouseDown:v=>l(0,v)}),h.jsx(rd,{width:o[1],isLoading:b.isLoading,jsonText:b.jsonText,cursorLine:b.cursorLine,syntaxError:b.syntaxError,onChange:b.handleJsonChange,onCursorLineChange:b.setCursorLine,headerPath:"~/.claude/.ck.json",headerActions:w}),h.jsx(Pr,{direction:"horizontal",isDragging:a,onMouseDown:v=>l(1,v)}),h.jsx(Ib,{width:o[2],fieldDoc:b.fieldDoc,activeFieldPath:b.activeFieldPath})]}),t==="metadata"&&h.jsxs("div",{className:"flex-1 min-h-0 flex",children:[h.jsx("div",{style:{width:`${c[0]}%`},className:"min-w-0 h-full overflow-auto pr-1",children:b.isLoading?h.jsx("div",{className:"dash-panel h-full flex items-center justify-center",children:h.jsx("div",{className:"animate-pulse text-dash-text-muted text-sm",children:n("loading")})}):h.jsx(JC,{metadata:i})}),h.jsx(Pr,{direction:"horizontal",isDragging:d,onMouseDown:v=>u(0,v)}),h.jsx("div",{style:{width:`${c[1]}%`},className:"min-w-0 h-full overflow-hidden",children:h.jsx(YC,{})})]})]})]})};function ej({phase:n}){const e=n.status==="completed"?"border-green-500":n.status==="in-progress"?"border-blue-500":"border-amber-400";return h.jsx("div",{className:`rounded border-l-4 ${e} bg-white dark:bg-gray-800 p-3 shadow-sm`,children:h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-xs font-mono text-gray-400 dark:text-gray-500",children:n.phaseId}),h.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-gray-100",children:n.name})]})})}function Fl({title:n,phases:e,borderColor:t}){return h.jsxs("div",{className:"flex flex-1 flex-col gap-3 min-w-0","aria-label":`${n} phases`,children:[h.jsxs("div",{className:`rounded-t border-t-2 ${t} bg-gray-50 dark:bg-gray-900 px-3 py-2`,children:[h.jsx("span",{className:"text-sm font-semibold text-gray-700 dark:text-gray-200",children:n}),h.jsx("span",{className:"ml-2 text-xs text-gray-400",children:e.length})]}),h.jsx("div",{className:"flex flex-col gap-2 px-1",children:e.map((r,i)=>h.jsx(ej,{phase:r},`${r.phaseId}-${i}`))})]})}function tj({completed:n,total:e}){const{t}=ce(),r=e===0?0:Math.round(n/e*100);return h.jsxs("div",{className:"flex flex-col gap-1",children:[h.jsxs("div",{className:"flex justify-between text-xs text-gray-500 dark:text-gray-400",children:[h.jsx("span",{children:t("kanbanProgress")}),h.jsxs("span",{children:[n,"/",e," ",t("kanbanPhases")," — ",r,"% ",t("kanbanComplete")]})]}),h.jsx("div",{className:"h-2 w-full rounded bg-gray-200 dark:bg-gray-700",children:h.jsx("div",{className:"h-2 rounded bg-green-500 transition-all",style:{width:`${r}%`}})})]})}function nj(){const{t:n}=ce(),[e]=sv(),t=e.get("file")??"",[r,i]=g.useState([]),[s,o]=g.useState(!1),[a,l]=g.useState(null);if(g.useEffect(()=>{t&&(o(!0),l(null),i([]),fetch(`/api/plan/parse?file=${encodeURIComponent(t)}`).then(p=>{if(!p.ok){const m={400:"kanbanError400",403:"kanbanError403",404:"kanbanError404"};throw new Error(m[p.status]??`error:HTTP:${p.status}`)}return p.json()}).then(p=>i(p.phases)).catch(p=>l(p instanceof Error?p.message:String(p))).finally(()=>o(!1)))},[t]),!t)return h.jsx("div",{className:"flex h-full items-center justify-center text-gray-400 dark:text-gray-500",children:n("kanbanNoFile")});let c=[],d=[],u=[],f=null;try{c=r.filter(p=>p.status==="pending"),d=r.filter(p=>p.status==="in-progress"),u=r.filter(p=>p.status==="completed")}catch(p){f=p instanceof Error?p.message:String(p)}return f?h.jsx("div",{className:"flex h-full items-center justify-center text-red-500 dark:text-red-400",children:n("kanbanLoadError")}):h.jsxs("div",{className:"flex h-full flex-col gap-4 p-6",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("h1",{className:"text-xl font-bold text-gray-900 dark:text-white",children:n("kanbanTitle")}),h.jsx("span",{className:"text-xs text-gray-400 dark:text-gray-500 truncate max-w-xs",title:t,children:t.replaceAll("\\","/")})]}),r.length>0&&h.jsx(tj,{completed:u.length,total:r.length}),s&&h.jsx("div",{className:"flex flex-1 items-center justify-center text-gray-400",children:n("loading")}),a&&h.jsxs("div",{className:"rounded border border-red-300 bg-red-50 dark:bg-red-900/20 p-4 text-red-600 dark:text-red-400",children:[n("error"),":"," ",a in{kanbanError400:"",kanbanError403:"",kanbanError404:""}?n(a):a]}),!s&&!a&&r.length===0&&h.jsx("div",{className:"flex flex-1 items-center justify-center text-gray-400 dark:text-gray-500",children:n("kanbanNoPhases")}),!s&&!a&&r.length>0&&h.jsxs("section",{"aria-label":n("kanbanTitle"),className:"flex flex-1 flex-col gap-4 overflow-auto md:flex-row",children:[h.jsx(Fl,{title:n("kanbanStatus_pending"),phases:c,borderColor:"border-amber-400"}),h.jsx(Fl,{title:n("kanbanStatus_in-progress"),phases:d,borderColor:"border-blue-500"}),h.jsx(Fl,{title:n("kanbanStatus_completed"),phases:u,borderColor:"border-green-500"})]})]})}const lp=[{key:"agent",labelKey:"migrateTypeAgents",badgeClass:"border-dash-accent/30 text-dash-accent"},{key:"command",labelKey:"migrateTypeCommands",badgeClass:"border-yellow-500/30 text-yellow-400"},{key:"skill",labelKey:"migrateTypeSkills",badgeClass:"border-purple-500/30 text-purple-400"},{key:"config",labelKey:"migrateTypeConfig",badgeClass:"border-teal-500/30 text-teal-400"},{key:"rules",labelKey:"migrateTypeRules",badgeClass:"border-rose-500/30 text-rose-400"},{key:"hooks",labelKey:"migrateTypeHooks",badgeClass:"border-cyan-500/30 text-cyan-400"}],rj=new Set([8203,8204,8205,8288,65279,8232,8233,8234,8235,8236,8237,8238,8294,8295,8296,8297]);function ij(n){return n===9||n===10||n===13?!0:n>=0&&n<=8||n>=11&&n<=31||n>=127&&n<=159||rj.has(n)}function Xn(n){let e="";for(const t of n){const r=t.codePointAt(0);r!==void 0&&(ij(r)||(e+=t))}return e}function cp(n){if(!n)return"-";const e=n.replace(/\\/g,"/"),t=e.match(/.*\/(\.[^/]+\/)/);if(t?.[1]){const i=(t.index??0)+t[0].length-t[1].length;return e.slice(i)}const r=e.split("/");return r.length>3?`.../${r.slice(-3).join("/")}`:e}function jr(n){return n.success?n.skipped?"skipped":"installed":"failed"}function sj(n){const e={installed:0,skipped:0,failed:0};for(const t of n){const r=jr(t);r==="installed"?e.installed+=1:r==="skipped"?e.skipped+=1:e.failed+=1}return e}function _b(n){switch(n){case"agent":case"command":case"skill":case"config":case"rules":case"hooks":case"unknown":return n;default:return"unknown"}}function oj(n,e){switch(n){case"failed":return{label:e("migrateStatusFailed"),className:"border-red-500/30 bg-red-500/10 text-red-400"};case"skipped":return{label:e("migrateStatusSkipped"),className:"border-yellow-500/30 bg-yellow-500/10 text-yellow-400"};default:return{label:e("migrateStatusInstalled"),className:"border-green-500/30 bg-green-500/10 text-green-400"}}}function aj(n){const e=new Map;for(const t of n){const r=_b(t.portableType),i=e.get(r)||[];i.push(t),e.set(r,i)}return e}function lj(n){return[_b(n.portableType),n.provider,n.providerDisplayName,n.itemName,n.path,n.success,n.skipped,n.overwritten,n.error,n.skipReason].map(t=>t===void 0?"":String(t)).join("|")}function cj(n){if(n.length===0)return!0;const e=n[0].provider;return n.every(t=>t.provider===e)}const Lr=({label:n,count:e,className:t})=>e<=0?null:h.jsxs("span",{className:`inline-flex items-center gap-1 rounded-md border px-2.5 py-1 text-xs ${t}`,children:[h.jsx("span",{className:"font-semibold",children:e}),h.jsx("span",{children:n})]}),hp=({labelKey:n,badgeClass:e,items:t,isExpanded:r,onToggle:i,singleProvider:s})=>{const{t:o}=ce(),a=t.filter(f=>jr(f)==="installed").length,l=t.filter(f=>jr(f)==="skipped").length,c=t.filter(f=>jr(f)==="failed").length,d=s?"md:grid-cols-[minmax(0,1.5fr)_minmax(0,1.35fr)_auto_minmax(0,1fr)]":"md:grid-cols-[minmax(0,1.2fr)_minmax(0,0.8fr)_minmax(0,1.2fr)_auto_minmax(0,1fr)]",u=new Map;return h.jsxs("div",{className:"rounded-xl border border-dash-border bg-dash-surface overflow-hidden",children:[h.jsxs("button",{type:"button",onClick:i,className:"w-full flex flex-wrap items-center gap-2 px-4 py-3 text-left hover:bg-dash-surface-hover transition-colors",children:[h.jsx("svg",{className:`w-3.5 h-3.5 text-dash-text-muted transition-transform ${r?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:h.jsx("path",{d:"M9 5l7 7-7 7"})}),h.jsx("p",{className:"text-sm font-semibold text-dash-text",children:o(n)}),h.jsx("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] font-semibold ${e}`,children:t.length}),h.jsx("span",{className:"hidden sm:block flex-1"}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-[11px]",children:[h.jsx(Lr,{label:o("migrateStatusInstalled"),count:a,className:"border-green-500/30 bg-green-500/10 text-green-400"}),h.jsx(Lr,{label:o("migrateStatusSkipped"),count:l,className:"border-yellow-500/30 bg-yellow-500/10 text-yellow-400"}),h.jsx(Lr,{label:o("migrateStatusFailed"),count:c,className:"border-red-500/30 bg-red-500/10 text-red-400"})]})]}),r&&h.jsxs("div",{className:"border-t border-dash-border/80",children:[h.jsxs("div",{className:`hidden md:grid ${d} items-center gap-3 px-4 py-2 border-b border-dash-border/70 text-[10px] font-semibold uppercase tracking-wide text-dash-text-muted`,children:[h.jsx("p",{children:o("migrateItem")}),!s&&h.jsx("p",{children:o("migrateProvider")}),h.jsx("p",{children:o("migratePath")}),h.jsx("p",{children:o("migrateStatus")}),h.jsx("p",{children:o("migrateError")})]}),h.jsx("div",{className:"divide-y divide-dash-border/70",children:t.map(f=>{const p=lj(f),m=u.get(p)??0;u.set(p,m+1);const b=m===0?p:`${p}#${m}`,x=jr(f),w=oj(x,o),v=Xn(f.itemName||cp(f.path)),S=Xn(f.providerDisplayName||f.provider||""),j=Xn(f.path||""),k=Xn(cp(f.path)),O=Xn(f.error||f.skipReason||"");return h.jsxs("div",{className:`grid gap-1.5 ${d} items-start px-4 py-2.5 hover:bg-dash-bg/60 transition-colors`,children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("p",{className:"text-xs font-semibold text-dash-text truncate",title:v,children:v}),h.jsxs("div",{className:"mt-0.5 space-y-0.5 md:hidden",children:[!s&&h.jsx("p",{className:"text-[11px] text-dash-text-secondary truncate",children:S}),h.jsx("p",{className:"font-mono text-[11px] text-dash-text-muted truncate",title:j,children:k}),O&&h.jsx("p",{className:"text-[11px] text-red-400/80 line-clamp-2",title:O,children:O})]})]}),!s&&h.jsx("p",{className:"hidden md:block text-[11px] text-dash-text-secondary truncate",children:S}),h.jsx("p",{className:"hidden md:block font-mono text-[11px] text-dash-text-muted truncate",title:j,children:k}),h.jsx("span",{className:`inline-flex w-fit items-center rounded-full border px-2 py-0.5 text-[11px] font-medium ${w.className}`,children:w.label}),h.jsx("p",{className:`hidden md:block text-[11px] truncate ${O?"text-red-400/80":"text-dash-text-muted"}`,title:O,children:O||"-"})]},b)})})]})]})},hj=({results:n,onReset:e})=>{const{t}=ce(),[r,i]=g.useState(""),s=g.useDeferredValue(r),[o,a]=g.useState("all"),[l,c]=g.useState(()=>new Set(lp.map(j=>j.key))),d=g.useMemo(()=>{const j=s.trim().toLowerCase();return n.results.filter(k=>{if(o!=="all"&&jr(k)!==o)return!1;if(!j)return!0;const O=(k.itemName||"").toLowerCase(),y=(k.path||"").toLowerCase(),D=(k.providerDisplayName||k.provider||"").toLowerCase();return O.includes(j)||y.includes(j)||D.includes(j)})},[n.results,s,o]),u=g.useMemo(()=>cj(d),[d]),f=g.useMemo(()=>{if(!u||d.length===0)return"";const j=Array.from(new Set(d.map(k=>k.providerDisplayName?.trim()||"").filter(k=>k.length>0)));return j.length===1?j[0]:d[0]?.provider||""},[d,u]),p=g.useMemo(()=>aj(d),[d]),m=g.useMemo(()=>sj(n.results),[n.results]),b=g.useMemo(()=>[...p.keys()],[p]),x=m.installed+m.skipped+m.failed,w=b.length>0&&b.every(j=>l.has(j)),v=j=>{c(k=>{const O=new Set(k);return O.has(j)?O.delete(j):O.add(j),O})},S=()=>{if(w){c(new Set);return}c(new Set(b))};return h.jsxs("div",{className:"dash-panel p-4 md:p-5 space-y-4",children:[h.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between",children:[h.jsxs("div",{children:[h.jsxs("h2",{className:"text-base font-semibold text-dash-text",children:[t("migrateSummaryTitle"),u&&f&&h.jsxs("span",{className:"text-dash-text-muted font-normal",children:[" ","· ",Xn(f)]})]}),h.jsxs("p",{className:"text-xs text-dash-text-muted mt-1",children:[x," ",t("migrateSummarySubtitle")]})]}),h.jsx("button",{type:"button",onClick:e,className:"dash-focus-ring px-4 py-2 text-sm font-semibold rounded-md bg-dash-bg border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:t("migrateSummaryNewMigration")})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[h.jsx(Lr,{label:t("migrateStatusInstalled"),count:m.installed,className:"border-green-500/30 bg-green-500/10 text-green-400"}),h.jsx(Lr,{label:t("migrateStatusSkipped"),count:m.skipped,className:"border-yellow-500/30 bg-yellow-500/10 text-yellow-400"}),h.jsx(Lr,{label:t("migrateStatusFailed"),count:m.failed,className:"border-red-500/30 bg-red-500/10 text-red-400"})]}),n.warnings.length>0&&h.jsx("div",{className:"space-y-2",children:n.warnings.map((j,k)=>h.jsx("div",{className:"px-3 py-2 border border-yellow-500/30 bg-yellow-500/10 rounded-md text-xs text-yellow-400",children:Xn(j)},k))}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsxs("div",{className:"relative",children:[h.jsxs("svg",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 stroke-dash-text-muted",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("circle",{cx:"11",cy:"11",r:"8"}),h.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),h.jsx("input",{type:"text",value:r,onChange:j=>i(j.target.value),placeholder:t("migrateSummarySearchPlaceholder"),className:"dash-focus-ring w-full pl-9 pr-3 py-2 bg-dash-bg border border-dash-border rounded-lg text-dash-text text-sm focus:border-dash-accent transition-colors"})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[["all","installed","skipped","failed"].map(j=>{const k=j==="all"?"migrateSummaryFilterAll":j==="installed"?"migrateStatusInstalled":j==="skipped"?"migrateStatusSkipped":"migrateStatusFailed";return h.jsx("button",{type:"button",onClick:()=>a(j),className:`dash-focus-ring px-3 py-1 text-xs font-medium rounded-full border transition-colors ${o===j?"bg-dash-accent/10 border-dash-accent text-dash-accent":"border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover hover:text-dash-text"}`,children:t(k)},j)}),h.jsx("button",{type:"button",onClick:S,className:"dash-focus-ring ml-1 px-3 py-1 text-xs font-medium rounded-md border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:t(w?"migrateSummaryCollapseAll":"migrateSummaryExpandAll")})]})]}),d.length===0?h.jsx("div",{className:"text-center py-8 text-sm text-dash-text-muted",children:t("migrateSummaryNoResults")}):h.jsxs("div",{className:"space-y-2.5",children:[lp.map(j=>{const k=p.get(j.key);return!k||k.length===0?null:h.jsx(hp,{labelKey:j.labelKey,badgeClass:j.badgeClass,items:k,isExpanded:l.has(j.key),onToggle:()=>v(j.key),singleProvider:u},j.key)}),(()=>{const j=p.get("unknown");return!j||j.length===0?null:h.jsx(hp,{labelKey:"migrateTypeUnknown",badgeClass:"border-dash-border text-dash-text-muted",items:j,isExpanded:l.has("unknown"),onToggle:()=>v("unknown"),singleProvider:u})})()]})]})},dj=500;function uj(n){return n>=0&&n<=8||n>=11&&n<=31||n>=127&&n<=159}function fj(n){let e="";for(const t of n){const r=t.codePointAt(0);r!==void 0&&(uj(r)||(e+=t))}return e}const pj=({diff:n,className:e=""})=>{const t=n.split(`
218
220
  `),r=t.slice(0,dj),i=t.length-r.length;return h.jsxs("pre",{className:`text-xs font-mono overflow-x-auto p-3 rounded bg-dash-bg border border-dash-border ${e}`,children:[r.map((s,o)=>{const a=fj(s);let l="text-dash-text";return a.startsWith("+")?l="text-green-400 bg-green-500/10":a.startsWith("-")?l="text-red-400 bg-red-500/10":a.startsWith("@@")&&(l="text-blue-400"),h.jsx("div",{className:l,children:a},`${o}:${a.slice(0,24)}`)}),i>0&&h.jsxs("div",{className:"text-dash-text-muted",children:["... truncated ",i," additional line(s)"]})]})};function mj(n){return n>=0&&n<=8||n>=11&&n<=31||n>=127&&n<=159}function mi(n){let e="";for(const t of n){const r=t.codePointAt(0);r!==void 0&&(mj(r)||(e+=t))}return e}const gj=({action:n,resolution:e,onResolve:t})=>{const{t:r}=ce(),[i,s]=g.useState(!1),o=n.ownedSections&&n.ownedSections.length>0;return h.jsxs("div",{className:"border border-dash-border rounded-lg p-4 mb-3 bg-dash-surface",children:[h.jsxs("div",{className:"flex justify-between items-start gap-4",children:[h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"font-mono text-sm text-dash-text truncate",children:[mi(n.provider),"/",mi(n.type),"/",mi(n.item)]}),h.jsx("p",{className:"text-xs text-dash-text-muted mt-1",children:mi(n.reason)}),n.targetPath&&h.jsx("p",{className:"text-xs text-dash-text-secondary mt-1 font-mono truncate",children:mi(n.targetPath)})]}),h.jsxs("div",{className:"flex flex-wrap gap-2 items-center",children:[h.jsx("button",{type:"button",onClick:()=>t({type:"overwrite"}),className:`dash-focus-ring px-3 py-1.5 text-xs font-semibold rounded-md transition-colors ${e?.type==="overwrite"?"bg-dash-accent text-white":"bg-dash-bg border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover"}`,children:r("migrateConflictUseCK")}),h.jsx("button",{type:"button",onClick:()=>t({type:"keep"}),className:`dash-focus-ring px-3 py-1.5 text-xs font-semibold rounded-md transition-colors ${e?.type==="keep"?"bg-dash-accent text-white":"bg-dash-bg border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover"}`,children:r("migrateConflictKeepMine")}),o&&h.jsx("button",{type:"button",onClick:()=>t({type:"smart-merge"}),className:`dash-focus-ring px-3 py-1.5 text-xs font-semibold rounded-md transition-colors ${e?.type==="smart-merge"?"bg-dash-accent text-white":"bg-dash-bg border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover"}`,children:r("migrateConflictSmartMerge")}),n.diff&&h.jsx("button",{type:"button",onClick:()=>s(!i),className:"dash-focus-ring px-3 py-1.5 text-xs font-medium rounded-md border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:r(i?"migrateConflictHideDiff":"migrateConflictShowDiff")})]})]}),i&&n.diff&&h.jsx(pj,{diff:n.diff,className:"mt-3"}),e&&h.jsxs("div",{className:"mt-2 text-xs text-green-400 flex items-center gap-1.5",children:[h.jsx("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 20 20",children:h.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),h.jsxs("span",{children:[r("migrateConflictResolved"),": ",bj(e.type,r)]})]})]})};function bj(n,e){switch(n){case"overwrite":return e("migrateConflictUseCK");case"keep":return e("migrateConflictKeepMine");case"smart-merge":return e("migrateConflictSmartMerge");case"resolved":return e("migrateConflictManual");default:return String(n)}}const xj=[{key:"install",labelKey:"migrateActionInstall",activeClass:"border-green-400 text-green-400",badgeClass:"bg-green-500/10 border-green-500/30 text-green-400"},{key:"update",labelKey:"migrateActionUpdate",activeClass:"border-yellow-400 text-yellow-400",badgeClass:"bg-yellow-500/10 border-yellow-500/30 text-yellow-400"},{key:"conflict",labelKey:"migrateActionConflict",activeClass:"border-red-400 text-red-400",badgeClass:"bg-red-500/10 border-red-500/30 text-red-400"},{key:"delete",labelKey:"migrateActionDelete",activeClass:"border-dash-text-secondary text-dash-text-secondary",badgeClass:"bg-dash-bg border-dash-border text-dash-text-secondary"},{key:"skip",labelKey:"migrateActionSkip",activeClass:"border-dash-text-muted text-dash-text-muted",badgeClass:"bg-dash-bg border-dash-border text-dash-text-muted"}],dp=["agent","command","skill","config","rules","hooks"],yj={agent:"migrateTypeAgents",command:"migrateTypeCommands",skill:"migrateTypeSkills",config:"migrateTypeConfig",rules:"migrateTypeRules",hooks:"migrateTypeHooks"},vj={agent:"border-dash-accent/30 text-dash-accent",command:"border-yellow-500/30 text-yellow-400",skill:"border-purple-500/30 text-purple-400",config:"border-teal-500/30 text-teal-400",rules:"border-rose-500/30 text-rose-400",hooks:"border-cyan-500/30 text-cyan-400"},mr=200;function wj(n){return n>=0&&n<=8||n>=11&&n<=31||n>=127&&n<=159}function $o(n){let e="";for(const t of n){const r=t.codePointAt(0);r!==void 0&&(wj(r)||(e+=t))}return e}function kj(n){const e={install:[],update:[],skip:[],conflict:[],delete:[]};for(const t of n)e[t.action].push(t);return e}function Sj(n){const e=new Map;for(const t of n){const r=e.get(t.type)||[];r.push(t),e.set(t.type,r)}return e}const Cj=({plan:n,resolutions:e,onResolve:t,actionKey:r})=>{const{t:i}=ce(),s=g.useMemo(()=>kj(n.actions),[n.actions]),o=g.useMemo(()=>xj.filter(f=>s[f.key].length>0),[s]),[a,l]=g.useState(()=>s.conflict.length>0?"conflict":s.install.length>0?"install":o[0]?.key??"install");g.useEffect(()=>{s[a]?.length===0&&o.length>0&&l(o[0].key)},[s,a,o]);const c=g.useMemo(()=>s[a]??[],[s,a]),d=g.useMemo(()=>Sj(c),[c]),u=f=>{for(const p of s.conflict)t(p,{type:f})};return h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex flex-wrap gap-2 text-xs",children:[n.summary.install>0&&h.jsxs("div",{className:"px-2.5 py-1 rounded-md bg-green-500/10 border border-green-500/30 text-green-400",children:[n.summary.install," ",i("migrateActionInstall")]}),n.summary.update>0&&h.jsxs("div",{className:"px-2.5 py-1 rounded-md bg-yellow-500/10 border border-yellow-500/30 text-yellow-400",children:[n.summary.update," ",i("migrateActionUpdate")]}),n.summary.skip>0&&h.jsxs("div",{className:"px-2.5 py-1 rounded-md bg-dash-bg border border-dash-border text-dash-text-muted",children:[n.summary.skip," ",i("migrateActionSkip")]}),n.summary.conflict>0&&h.jsxs("div",{className:"px-2.5 py-1 rounded-md bg-red-500/10 border border-red-500/30 text-red-400",children:[n.summary.conflict," ",i("migrateActionConflict")]}),n.summary.delete>0&&h.jsxs("div",{className:"px-2.5 py-1 rounded-md bg-dash-bg border border-dash-border text-dash-text-secondary",children:[n.summary.delete," ",i("migrateActionDelete")]})]}),o.length>1&&h.jsx("div",{className:"flex gap-1 border-b border-dash-border",children:o.map(f=>{const p=a===f.key;return h.jsxs("button",{type:"button",onClick:()=>l(f.key),className:`px-3 py-2 text-xs font-medium border-b-2 transition-colors ${p?f.activeClass:"border-transparent text-dash-text-muted hover:text-dash-text-secondary"}`,children:[i(f.labelKey)," ",h.jsx("span",{className:`ml-1 px-1.5 py-0.5 rounded text-[10px] border ${f.badgeClass}`,children:s[f.key].length})]},f.key)})}),a==="conflict"&&s.conflict.length>0&&h.jsxs("div",{className:"flex items-center justify-between gap-3",children:[h.jsxs("h3",{className:"text-sm font-semibold text-red-400",children:[i("migrateConflictSectionTitle")," (",s.conflict.length,")"]}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx("button",{type:"button",onClick:()=>u("overwrite"),className:"dash-focus-ring px-3 py-1 text-xs font-medium rounded-md bg-dash-bg border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:i("migrateConflictOverwriteAll")}),h.jsx("button",{type:"button",onClick:()=>u("keep"),className:"dash-focus-ring px-3 py-1 text-xs font-medium rounded-md bg-dash-bg border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:i("migrateConflictKeepAll")})]})]}),a==="conflict"?dp.map(f=>{const p=d.get(f);return!p||p.length===0?null:h.jsxs(up,{type:f,count:p.length,children:[p.slice(0,mr).map(m=>h.jsx(gj,{action:m,resolution:e.get(r(m))||null,onResolve:b=>t(m,b)},r(m))),p.length>mr&&h.jsxs("div",{className:"text-xs text-dash-text-muted",children:["... ",p.length-mr," more"]})]},`${a}:${f}`)}):dp.map(f=>{const p=d.get(f);return!p||p.length===0?null:h.jsxs(up,{type:f,count:p.length,defaultExpanded:a!=="skip",children:[p.slice(0,mr).map(m=>h.jsx(jj,{action:m},`${m.provider}:${m.type}:${m.item}:${m.global}:${m.action}`)),p.length>mr&&h.jsxs("div",{className:"text-xs text-dash-text-muted",children:["... ",p.length-mr," more"]})]},`${a}:${f}`)})]})},up=({type:n,count:e,defaultExpanded:t=!0,children:r})=>{const{t:i}=ce(),[s,o]=g.useState(t),a=vj[n],l=i(yj[n]);return h.jsxs("div",{className:"border border-dash-border rounded-lg bg-dash-surface",children:[h.jsxs("button",{type:"button","aria-expanded":s,onClick:()=>o(!s),className:"w-full px-4 py-2.5 flex items-center justify-between text-left hover:bg-dash-surface-hover transition-colors",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h4",{className:"text-sm font-semibold text-dash-text",children:l}),h.jsx("span",{className:`px-2 py-0.5 text-xs rounded-md border ${a}`,children:e})]}),h.jsx("svg",{"aria-hidden":"true",className:`w-4 h-4 text-dash-text-muted transition-transform ${s?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),s&&h.jsx("div",{className:"px-4 pt-1 pb-4 space-y-2",children:r})]})},jj=({action:n})=>h.jsxs("div",{className:"px-3 py-2 bg-dash-bg rounded-md border border-dash-border",children:[h.jsxs("div",{className:"font-mono text-xs text-dash-text",children:[$o(n.provider),"/",$o(n.item)]}),h.jsx("div",{className:"text-xs text-dash-text-muted mt-1",children:$o(n.reason)}),n.targetPath&&h.jsx("div",{className:"text-xs text-dash-text-secondary mt-0.5 font-mono truncate",children:$o(n.targetPath)})]});var Oj=function(e){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},Vl,Pj=g.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(Vl=Oj("dark"))!==null&&Vl!==void 0&&Vl.matches?"dark":"light"}),Nj=function(){return g.useContext(Pj)};const Hb=(n,e)=>{if(e)return"row";switch(n){case"horizontal":return"row";case"horizontal-reverse":return"row-reverse";case"vertical":default:return"column";case"vertical-reverse":return"column-reverse"}},Aj=n=>{if(n)return["space-between","space-around","space-evenly"].includes(n)},Mj=(n,e)=>Hb(n,e)==="row",gr=n=>typeof n=="number"?`${n}px`:n,Dj=({visible:n,flex:e,gap:t,direction:r,horizontal:i,align:s,justify:o,distribution:a,height:l,width:c,padding:d,paddingInline:u,paddingBlock:f,prefixCls:p,as:m="div",className:b,style:x,children:w,wrap:v,ref:S,...j})=>{const k=o||a,y=Mj(r,i)&&!c&&Aj(k)?"100%":gr(c),D={...e!==void 0?{"--lobe-flex":String(e)}:{},...r||i?{"--lobe-flex-direction":Hb(r,i)}:{},...v!==void 0?{"--lobe-flex-wrap":v}:{},...k!==void 0?{"--lobe-flex-justify":k}:{},...s!==void 0?{"--lobe-flex-align":s}:{},...y!==void 0?{"--lobe-flex-width":y}:{},...l!==void 0?{"--lobe-flex-height":gr(l)}:{},...d!==void 0?{"--lobe-flex-padding":gr(d)}:{},...u!==void 0?{"--lobe-flex-padding-inline":gr(u)}:{},...f!==void 0?{"--lobe-flex-padding-block":gr(f)}:{},...t!==void 0?{"--lobe-flex-gap":gr(t)}:{},...x},A="lobe-flex",R=[A,n===!1?`${A}--hidden`:void 0,p?`${p}-flex`:void 0,b].filter(Boolean).join(" ");return h.jsx(m,{ref:S,...j,className:R,style:D,children:w})};var Wb=g.memo(Dj);const Tj=({children:n,ref:e,...t})=>h.jsx(Wb,{...t,align:"center",justify:"center",ref:e,children:n});var Ej=Tj;const Rj=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function Lj(n){return Array.from(n.match(Rj)??[])}function Ij(n){return Lj(n).map(t=>t.toLowerCase()).join("-")}g.createContext(null);var $j=function(e,t){if(t){if(e&&t==="#000")return"0 0 0 1px rgba(255,255,255,0.1) inset";if(!e&&t==="#fff")return"0 0 0 1px rgba(0,0,0,0.05) inset"}};function es(n){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},es(n)}var Bj=["shape","color","background","size","style","iconMultiple","Icon","iconStyle","iconClassName"];function fp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Bo(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fp(Object(t),!0).forEach(function(r){Fj(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):fp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Fj(n,e,t){return e=Vj(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Vj(n){var e=zj(n,"string");return es(e)=="symbol"?e:String(e)}function zj(n,e){if(es(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function _j(n,e){if(n==null)return{};var t=Hj(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function Hj(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var _n=g.memo(function(n){var e=n.shape,t=e===void 0?"circle":e,r=n.color,i=r===void 0?"#fff":r,s=n.background,o=n.size,a=n.style,l=n.iconMultiple,c=l===void 0?.75:l,d=n.Icon,u=n.iconStyle,f=n.iconClassName,p=_j(n,Bj),m=Nj(),b=m.isDarkMode;return h.jsx(Ej,Bo(Bo({flex:"none",style:Bo({background:s,borderRadius:t==="circle"?"50%":Math.floor(o*.1),boxShadow:$j(b,s),color:i,height:o,width:o},a)},p),{},{children:d&&h.jsx(d,{className:f,color:i,size:o,style:Bo({transform:"scale(".concat(c,")")},u)})}))});function ts(n){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ts(n)}var Wj=["Icon","style","Text","color","size","spaceMultiple","textMultiple","extra","extraStyle","showText","showLogo","extraClassName","iconProps","inverse"];function pp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function kn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?pp(Object(t),!0).forEach(function(r){Uj(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):pp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Uj(n,e,t){return e=Kj(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Kj(n){var e=Gj(n,"string");return ts(e)=="symbol"?e:String(e)}function Gj(n,e){if(ts(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function qj(n,e){if(n==null)return{};var t=Jj(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function Jj(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var Hn=g.memo(function(n){var e=n.Icon,t=n.style,r=n.Text,i=n.color,s=n.size,o=s===void 0?24:s,a=n.spaceMultiple,l=a===void 0?1:a,c=n.textMultiple,d=c===void 0?1:c,u=n.extra,f=n.extraStyle,p=n.showText,m=p===void 0?!0:p,b=n.showLogo,x=b===void 0?!0:b,w=n.extraClassName,v=n.iconProps,S=n.inverse,j=qj(n,Wj),k=e&&x&&h.jsx(e,kn(kn({size:o},v),{},{style:kn(S?{marginLeft:o*l}:{marginRight:o*l},v?.style)})),O=m&&r&&h.jsx(r,{size:o*d});return h.jsxs(Wb,kn(kn({align:"center",flex:"none",horizontal:!0,justify:"flex-start",style:kn({color:i},t)},j),{},{children:[S?h.jsxs(h.Fragment,{children:[O,k]}):h.jsxs(h.Fragment,{children:[k,O]}),u&&h.jsx("span",{className:w,style:kn({fontSize:o*d*.95,lineHeight:1},f),children:u})]}))}),Yj=function(e,t){return g.useMemo(function(){var r=Array.from({length:t},function(i,s){var o="lobe-icons-".concat(Ij(e),"-fill-").concat(s);return{fill:"url(#".concat(o,")"),id:o}});return r},[e,t])},Jr="Claude",Qj=.8,Xj=.1,Ub="#D97757",Zj=Ub,e6="#fff",t6=.75;function ns(n){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ns(n)}var n6=["size","style"];function mp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function zl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?mp(Object(t),!0).forEach(function(r){r6(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):mp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function r6(n,e,t){return e=i6(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function i6(n){var e=s6(n,"string");return ns(e)=="symbol"?e:String(e)}function s6(n,e){if(ns(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function o6(n,e){if(n==null)return{};var t=a6(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function a6(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var sd=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=o6(n,n6);return h.jsxs("svg",zl(zl({fill:"currentColor",fillRule:"evenodd",height:t,style:zl({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Jr}),h.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})]}))});function rs(n){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rs(n)}function gp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function l6(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gp(Object(t),!0).forEach(function(r){c6(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):gp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function c6(n,e,t){return e=h6(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function h6(n){var e=d6(n,"string");return rs(e)=="symbol"?e:String(e)}function d6(n,e){if(rs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function u6(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var f6=g.memo(function(n){var e=Object.assign({},(u6(n),n));return h.jsx(_n,l6({Icon:sd,"aria-label":Jr,background:Zj,color:e6,iconMultiple:t6},e))});function is(n){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(n)}var p6=["size","style"];function bp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function _l(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?bp(Object(t),!0).forEach(function(r){m6(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):bp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function m6(n,e,t){return e=g6(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function g6(n){var e=b6(n,"string");return is(e)=="symbol"?e:String(e)}function b6(n,e){if(is(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function x6(n,e){if(n==null)return{};var t=y6(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function y6(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var Kb=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=x6(n,p6);return h.jsxs("svg",_l(_l({height:t,style:_l({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Jr}),h.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z",fill:"#D97757",fillRule:"nonzero"})]}))});function ss(n){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(n)}var v6=["size","style"];function xp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Hl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?xp(Object(t),!0).forEach(function(r){w6(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):xp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function w6(n,e,t){return e=k6(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function k6(n){var e=S6(n,"string");return ss(e)=="symbol"?e:String(e)}function S6(n,e){if(ss(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function C6(n,e){if(n==null)return{};var t=j6(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function j6(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var Gb=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=C6(n,v6);return h.jsxs("svg",Hl(Hl({fill:"currentColor",fillRule:"nonzero",height:t,style:Hl({flex:"none",lineHeight:1},r),viewBox:"0 0 97 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Jr}),h.jsx("path",{d:"M13.623 20.222c-3.417 0-5.753-1.901-6.855-4.827a12.992 12.992 0 01-.838-4.772c0-4.907 2.206-8.315 7.08-8.315 3.275 0 5.297 1.425 6.448 4.826h1.402l-.19-4.69C18.709 1.18 16.258.543 13.276.543c-4.2 0-7.775 1.874-9.763 5.254a11.357 11.357 0 00-1.511 5.872c0 3.753 1.777 7.08 5.113 8.926a11.95 11.95 0 005.943 1.398c3.254 0 5.835-.617 8.122-1.697l.593-5.172h-1.43c-.858 2.362-1.88 3.78-3.574 4.534-.831.373-1.88.564-3.146.564zm14.74-17.914L28.499 0h-.967L23.23 1.29v.699l1.907.882v16.142c0 1.1-.565 1.344-2.043 1.528v1.18h7.319v-1.18c-1.484-.184-2.042-.428-2.042-1.528V2.315l-.007-.007zm29.104 19.685h.565l4.95-.937v-1.208l-.695-.054c-1.157-.109-1.457-.346-1.457-1.29V9.897l.137-2.763h-.783l-4.678.672v1.181l.457.082c1.266.183 1.64.536 1.64 1.419v7.67c-1.212.937-2.369 1.527-3.744 1.527-1.525 0-2.471-.774-2.471-2.58V9.905l.136-2.763h-.804l-4.684.672v1.181l.484.082c1.266.183 1.64.536 1.64 1.418v7.08c0 3 1.703 4.426 4.412 4.426 2.07 0 3.765-1.1 5.038-2.627L57.474 22l-.007-.007zm-13.602-9.55c0-3.836-2.043-5.309-5.733-5.309-3.254 0-5.616 1.344-5.616 3.57 0 .666.238 1.175.721 1.528l2.478-.326c-.109-.746-.163-1.201-.163-1.391 0-1.263.674-1.901 2.042-1.901 2.022 0 3.044 1.419 3.044 3.7v.746l-5.106 1.527c-1.702.462-2.67.863-3.316 1.8a3.386 3.386 0 00-.476 1.9c0 2.172 1.497 3.706 4.057 3.706 1.852 0 3.493-.835 4.922-2.416.51 1.581 1.294 2.416 2.69 2.416 1.13 0 2.15-.455 3.063-1.344l-.272-.937a4.363 4.363 0 01-1.178.163c-.783 0-1.157-.617-1.157-1.826v-5.607zm-6.536 7.378c-1.396 0-2.26-.808-2.26-2.226 0-.964.456-1.528 1.43-1.854l4.139-1.31v3.965c-1.321.997-2.097 1.425-3.31 1.425zm43.095 1.235v-1.208l-.701-.054c-1.158-.109-1.45-.346-1.45-1.29V2.308L78.409 0h-.974l-4.302 1.29v.699l1.906.882V8.18a6.024 6.024 0 00-3.656-1.046c-4.276 0-7.612 3.245-7.612 8.098 0 3.998 2.397 6.761 6.346 6.761 2.042 0 3.819-.99 4.922-2.525l-.136 2.525h.571l4.95-.937zm-8.96-12.313c2.043 0 3.575 1.181 3.575 3.353v6.11a4.91 4.91 0 01-3.547 1.425c-2.928 0-4.412-2.308-4.412-5.39 0-3.462 1.695-5.498 4.385-5.498zm19.424 3.055c-.381-1.792-1.484-2.81-3.016-2.81-2.288 0-3.874 1.717-3.874 4.18 0 3.646 1.934 6.008 5.059 6.008a5.858 5.858 0 005.03-2.953l.913.245c-.408 3.163-3.281 5.525-6.808 5.525-4.14 0-6.992-3.054-6.992-7.399 0-4.378 3.098-7.46 7.237-7.46 3.09 0 5.27 1.853 5.97 5.07l-10.783 3.3V14.05l7.264-2.247v-.006z"})]}))});function os(n){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},os(n)}var O6=["type"];function yp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function P6(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?yp(Object(t),!0).forEach(function(r){N6(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):yp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function N6(n,e,t){return e=A6(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function A6(n){var e=M6(n,"string");return os(e)=="symbol"?e:String(e)}function M6(n,e){if(os(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function D6(n,e){if(n==null)return{};var t=T6(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function T6(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var E6=g.memo(function(n){var e=n.type,t=e===void 0?"mono":e,r=D6(n,O6),i=t==="color"?Kb:sd;return h.jsx(Hn,P6({Icon:i,Text:Gb,"aria-label":Jr,spaceMultiple:Xj,textMultiple:Qj},r))}),ur=sd;ur.Color=Kb;ur.Text=Gb;ur.Combine=E6;ur.Avatar=f6;ur.colorPrimary=Ub;ur.title=Jr;var Gs="OpenAI",R6=.75,L6=.1,qb="#000",Jb="#19C37D",Yb="#AB68FF",Qb="#F86AA4",od="#F9C322",Xb="#0099FF",Zb="#0000FE",I6=qb,$6="#fff",B6=.75;function as(n){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},as(n)}var F6=["size","style"];function vp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Wl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?vp(Object(t),!0).forEach(function(r){V6(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):vp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function V6(n,e,t){return e=z6(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function z6(n){var e=_6(n,"string");return as(e)=="symbol"?e:String(e)}function _6(n,e){if(as(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function H6(n,e){if(n==null)return{};var t=W6(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function W6(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var ad=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=H6(n,F6);return h.jsxs("svg",Wl(Wl({fill:"currentColor",fillRule:"evenodd",height:t,style:Wl({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Gs}),h.jsx("path",{d:"M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"})]}))}),cr="Gemini",U6=.8,K6=.2,ex="#fff",G6=ex,q6="#fff",J6=.8;function ls(n){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ls(n)}var Y6=["size","style"];function wp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Ul(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?wp(Object(t),!0).forEach(function(r){Q6(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):wp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Q6(n,e,t){return e=X6(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function X6(n){var e=Z6(n,"string");return ls(e)=="symbol"?e:String(e)}function Z6(n,e){if(ls(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function eO(n,e){return iO(n)||rO(n,e)||nO(n,e)||tO()}function tO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
219
221
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nO(n,e){if(n){if(typeof n=="string")return kp(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return kp(n,e)}}function kp(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function rO(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,o,a=[],l=!0,c=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(l=(r=s.call(t)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(d){c=!0,i=d}finally{try{if(!l&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}function iO(n){if(Array.isArray(n))return n}function sO(n,e){if(n==null)return{};var t=oO(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function oO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var ld=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=sO(n,Y6),s=Yj(cr,3),o=eO(s,3),a=o[0],l=o[1],c=o[2];return h.jsxs("svg",Ul(Ul({height:t,style:Ul({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:cr}),h.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:"#3186FF"}),h.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:a.fill}),h.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:l.fill}),h.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z",fill:c.fill}),h.jsxs("defs",{children:[h.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:a.id,x1:"7",x2:"11",y1:"15.5",y2:"12",children:[h.jsx("stop",{stopColor:"#08B962"}),h.jsx("stop",{offset:"1",stopColor:"#08B962",stopOpacity:"0"})]}),h.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:l.id,x1:"8",x2:"11.5",y1:"5.5",y2:"11",children:[h.jsx("stop",{stopColor:"#F94543"}),h.jsx("stop",{offset:"1",stopColor:"#F94543",stopOpacity:"0"})]}),h.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:c.id,x1:"3.5",x2:"17.5",y1:"13.5",y2:"12",children:[h.jsx("stop",{stopColor:"#FABC12"}),h.jsx("stop",{offset:".46",stopColor:"#FABC12",stopOpacity:"0"})]})]})]}))});function cs(n){"@babel/helpers - typeof";return cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(n)}function Sp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function aO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Sp(Object(t),!0).forEach(function(r){lO(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Sp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function lO(n,e,t){return e=cO(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function cO(n){var e=hO(n,"string");return cs(e)=="symbol"?e:String(e)}function hO(n,e){if(cs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function dO(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var uO=g.memo(function(n){var e=Object.assign({},(dO(n),n));return h.jsx(_n,aO({Icon:ld,"aria-label":cr,background:G6,color:q6,iconMultiple:J6},e))});function hs(n){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hs(n)}var fO=["size","style"];function Cp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Kl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Cp(Object(t),!0).forEach(function(r){pO(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Cp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function pO(n,e,t){return e=mO(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function mO(n){var e=gO(n,"string");return hs(e)=="symbol"?e:String(e)}function gO(n,e){if(hs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function bO(n,e){if(n==null)return{};var t=xO(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function xO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var tx=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=bO(n,fO);return h.jsxs("svg",Kl(Kl({fill:"currentColor",fillRule:"evenodd",height:t,style:Kl({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:cr}),h.jsx("path",{d:"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"})]}))});function ds(n){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ds(n)}var yO=["size","style"];function jp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Gl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?jp(Object(t),!0).forEach(function(r){vO(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):jp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function vO(n,e,t){return e=wO(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function wO(n){var e=kO(n,"string");return ds(e)=="symbol"?e:String(e)}function kO(n,e){if(ds(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function SO(n,e){if(n==null)return{};var t=CO(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function CO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var nx=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=SO(n,yO);return h.jsxs("svg",Gl(Gl({fill:"currentColor",fillRule:"evenodd",height:t,style:Gl({flex:"none",lineHeight:1},r),viewBox:"0 0 98 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:cr}),h.jsx("path",{d:"M21.186 12.67c0 2.649-.786 4.759-2.359 6.33-1.766 1.87-4.09 2.806-6.969 2.806-2.756 0-5.088-.953-6.996-2.86C2.954 17.04 2 14.693 2 11.904c0-2.789.954-5.137 2.862-7.043C6.77 2.953 9.102 2 11.858 2c1.396 0 2.712.247 3.949.741 1.236.495 2.252 1.192 3.047 2.092l-1.749 1.748c-.583-.706-1.338-1.258-2.266-1.655a7.49 7.49 0 00-2.981-.596c-2.067 0-3.816.715-5.247 2.145-1.413 1.448-2.12 3.257-2.12 5.428s.707 3.98 2.12 5.428c1.431 1.43 3.18 2.145 5.247 2.145 1.89 0 3.463-.53 4.717-1.588 1.254-1.06 1.979-2.516 2.173-4.37h-6.89v-2.277h9.196c.088.495.132.971.132 1.43m7.652-4.633c1.946 0 3.494.629 4.645 1.886 1.15 1.257 1.726 3.018 1.726 5.282l-.027.268H24.877c.036 1.284.464 2.318 1.285 3.102.82.785 1.802 1.177 2.944 1.177 1.57 0 2.802-.784 3.694-2.354l2.195 1.07a6.54 6.54 0 01-2.45 2.595C31.503 21.688 30.32 22 29 22c-1.927 0-3.516-.66-4.765-1.98-1.249-1.319-1.873-2.986-1.873-5.001 0-1.997.606-3.66 1.82-4.988 1.213-1.329 2.766-1.993 4.657-1.993m-.053 2.247c-.928 0-1.727.285-2.396.856-.67.57-1.11 1.337-1.325 2.3h7.522c-.071-.91-.442-1.663-1.111-2.26-.67-.598-1.566-.896-2.69-.896M39.247 21.53h-2.455V8.465h2.348v1.813h.107c.374-.64.947-1.173 1.721-1.6.774-.427 1.544-.64 2.309-.64.96 0 1.806.222 2.535.667a3.931 3.931 0 011.601 1.84c1.085-1.671 2.589-2.507 4.51-2.507 1.513 0 2.678.462 3.496 1.387.819.924 1.228 2.24 1.228 3.946v8.16h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.192-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.191-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227zM61.911 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zM80 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zm-16.343.022h2.349v1.813h.107c.373-.64.947-1.173 1.721-1.6a4.935 4.935 0 012.415-.64c1.601 0 2.833.458 3.696 1.373.863.916 1.294 2.218 1.294 3.907v8.213h-2.455v-8.053c-.053-2.133-1.13-3.2-3.229-3.2-.978 0-1.797.395-2.455 1.187-.658.79-.987 1.737-.987 2.84v7.226h-2.456V8.465z"})]}))});function us(n){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},us(n)}var jO=["type"];function Op(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function OO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Op(Object(t),!0).forEach(function(r){PO(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Op(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function PO(n,e,t){return e=NO(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function NO(n){var e=AO(n,"string");return us(e)=="symbol"?e:String(e)}function AO(n,e){if(us(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function MO(n,e){if(n==null)return{};var t=DO(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function DO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var TO=g.memo(function(n){var e=n.type,t=e===void 0?"mono":e,r=MO(n,jO),i=t==="color"?ld:tx;return h.jsx(Hn,OO({Icon:i,Text:nx,"aria-label":cr,spaceMultiple:K6,textMultiple:U6},r))}),fr=tx;fr.Color=ld;fr.Text=nx;fr.Combine=TO;fr.Avatar=uO;fr.colorPrimary=ex;fr.title=cr;function fs(n){"@babel/helpers - typeof";return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fs(n)}var EO=["type"];function Pp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function RO(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Pp(Object(t),!0).forEach(function(r){LO(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Pp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function LO(n,e,t){return e=IO(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function IO(n){var e=$O(n,"string");return fs(e)=="symbol"?e:String(e)}function $O(n,e){if(fs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function BO(n,e){if(n==null)return{};var t=FO(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function FO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var VO=g.memo(function(n){var e=n.type,t=e===void 0?"normal":e,r=BO(n,EO),i=g.useMemo(function(){switch(t){case"gpt3":return Jb;case"gpt4":return Yb;case"gpt5":return Qb;case"o3":case"o1":return od;case"oss":return Xb;case"platform":return Zb;default:return I6}},[t]);return h.jsx(_n,RO({Icon:ad,"aria-label":Gs,background:i,color:$6,iconMultiple:B6},r))});function ps(n){"@babel/helpers - typeof";return ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ps(n)}var zO=["size","style"];function Np(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ql(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Np(Object(t),!0).forEach(function(r){_O(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Np(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function _O(n,e,t){return e=HO(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function HO(n){var e=WO(n,"string");return ps(e)=="symbol"?e:String(e)}function WO(n,e){if(ps(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function UO(n,e){if(n==null)return{};var t=KO(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function KO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var rx=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=UO(n,zO);return h.jsxs("svg",ql(ql({fill:"currentColor",fillRule:"evenodd",height:t,style:ql({flex:"none",lineHeight:1},r),viewBox:"0 0 84 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Gs}),h.jsx("path",{d:"M2 10.955c0 5.276 3.376 8.955 8.054 8.955 4.678 0 8.054-3.679 8.054-8.955S14.732 2 10.054 2C5.423 2 2.068 5.606 2 10.797L2 10.955zm13.021 0c0 3.775-2.05 6.22-4.967 6.22-2.918 0-4.968-2.445-4.968-6.22 0-3.776 2.05-6.22 4.968-6.22 2.917 0 4.967 2.444 4.967 6.22zm11.778 8.955c3.545 0 5.57-3.001 5.57-6.607 0-3.607-2.025-6.608-5.57-6.608-1.64 0-2.845.654-3.64 1.598V6.937h-2.894V24h2.893v-5.688c.796.944 2.002 1.598 3.641 1.598zm-3.713-6.97c0-2.397 1.35-3.703 3.135-3.703 2.097 0 3.23 1.645 3.23 4.066 0 2.42-1.133 4.066-3.23 4.066-1.785 0-3.135-1.332-3.135-3.68v-.75zM40.2 19.91c2.532 0 4.533-1.331 5.425-3.558l-2.483-.944c-.386 1.307-1.52 2.033-2.942 2.033-1.857 0-3.159-1.331-3.376-3.51h8.874v-.967c0-3.485-1.953-6.269-5.619-6.269-3.665 0-6.028 2.88-6.028 6.608 0 3.92 2.532 6.607 6.15 6.607zm-.145-10.77c1.833 0 2.701 1.21 2.725 2.614H36.97c.434-1.719 1.591-2.614 3.086-2.614zm7.814 10.504h2.894v-7.455c0-1.815 1.326-2.783 2.628-2.783 1.591 0 2.218 1.137 2.218 2.71v7.528h2.894V11.27c0-2.735-1.592-4.575-4.244-4.575-1.64 0-2.773.75-3.496 1.598V6.937h-2.894v12.707zM66.978 2.266l-6.56 17.378h3.063l1.471-3.97h7.475l1.495 3.97h3.11L70.475 2.266h-3.496zm1.687 3.437l2.75 7.26h-5.45l2.7-7.26zM82 2.317h-3.086v17.377H82V2.317z"})]}))});function ms(n){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ms(n)}var GO=["extraStyle"];function Ap(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Mp(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ap(Object(t),!0).forEach(function(r){qO(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ap(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function qO(n,e,t){return e=JO(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function JO(n){var e=YO(n,"string");return ms(e)=="symbol"?e:String(e)}function YO(n,e){if(ms(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function QO(n,e){if(n==null)return{};var t=XO(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function XO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var ZO=g.memo(function(n){var e=n.extraStyle,t=QO(n,GO);return h.jsx(Hn,Mp({Icon:ad,Text:rx,"aria-label":Gs,extraStyle:Mp({fontWeight:600},e),spaceMultiple:L6,textMultiple:R6},t))}),Ct=ad;Ct.Text=rx;Ct.Combine=ZO;Ct.Avatar=VO;Ct.colorPrimary=qb;Ct.colorGpt3=Jb;Ct.colorGpt4=Yb;Ct.colorGpt5=Qb;Ct.colorO1=od;Ct.colorO3=od;Ct.colorOss=Xb;Ct.colorPlatform=Zb;Ct.title=Gs;var qs="GithubCopilot",eP=.75,tP=.3,ix="#000",nP=ix,rP="#fff",iP=.75;function gs(n){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(n)}var sP=["size","style"];function Dp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Jl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Dp(Object(t),!0).forEach(function(r){oP(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Dp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function oP(n,e,t){return e=aP(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function aP(n){var e=lP(n,"string");return gs(e)=="symbol"?e:String(e)}function lP(n,e){if(gs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function cP(n,e){if(n==null)return{};var t=hP(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function hP(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var cd=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=cP(n,sP);return h.jsxs("svg",Jl(Jl({fill:"currentColor",fillRule:"evenodd",height:t,style:Jl({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:qs}),h.jsx("path",{d:"M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"})]}))});function bs(n){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(n)}function Tp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function dP(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Tp(Object(t),!0).forEach(function(r){uP(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Tp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function uP(n,e,t){return e=fP(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function fP(n){var e=pP(n,"string");return bs(e)=="symbol"?e:String(e)}function pP(n,e){if(bs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function mP(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var gP=g.memo(function(n){var e=Object.assign({},(mP(n),n));return h.jsx(_n,dP({Icon:cd,"aria-label":qs,background:nP,color:rP,iconMultiple:iP},e))});function xs(n){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(n)}var bP=["size","style"];function Ep(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Yl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ep(Object(t),!0).forEach(function(r){xP(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ep(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function xP(n,e,t){return e=yP(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yP(n){var e=vP(n,"string");return xs(e)=="symbol"?e:String(e)}function vP(n,e){if(xs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function wP(n,e){if(n==null)return{};var t=kP(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function kP(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var sx=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=wP(n,bP);return h.jsxs("svg",Yl(Yl({fill:"currentColor",fillRule:"evenodd",height:t,style:Yl({flex:"none",lineHeight:1},r),viewBox:"0 0 154 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:qs}),h.jsx("path",{d:"M2 11.875c0 5.256 3.013 8.506 8.19 8.506 4.76 0 8.027-2.72 8.027-7.722v-1.545h-7.982v2.928h4.095c-.161 1.96-1.68 3.25-4.049 3.25-2.6 0-4.347-1.498-4.347-4.334V10.7c0-2.582 1.518-4.31 4.186-4.31 1.91 0 3.267.922 3.68 2.374h3.865c-.437-3.366-3.427-5.625-7.499-5.625C5.29 3.138 2 6.366 2 11.875zm17.308-5.44h3.496V3h-3.496v3.435zm0 13.715h3.496V7.795h-3.496V20.15zm10.544-9.52h2.438V7.795h-2.438V3.922h-3.496v3.873H24.17v2.835h2.186v6.8c0 1.637.69 2.72 2.76 2.72h3.174v-2.766h-2.438V10.63zm3.994 9.52h3.727v-7.076h7.568v7.076h3.726V3.346h-3.726v6.777h-7.568V3.346h-3.727V20.15zM62.385 7.795h-3.497v6.523c0 1.868-1.012 3.205-2.668 3.205-1.38 0-2.162-.83-2.162-2.56V7.796h-3.52v7.722c0 2.95 1.357 4.864 4.118 4.864 1.955 0 3.29-.945 4.002-2.49h.207l.46 2.26h3.06V7.794zm1.698 12.355h3.06l.436-2.213h.207c.713 1.591 2.3 2.444 4.072 2.444 3.174 0 5.015-2.374 5.015-6.385 0-4.057-1.887-6.432-5.084-6.432-1.978 0-3.428 1.014-4.003 2.49h-.207V3h-3.496v17.15zm3.496-5.624v-1.06c0-1.845 1.173-3.043 2.99-3.043 1.657 0 2.738.853 2.738 2.581v1.983c0 1.521-.874 2.559-2.714 2.559-1.864 0-3.014-1.222-3.014-3.02zm21.8 5.855c4.21 0 7.177-2.351 7.683-6.063h-3.151c-.46 2.098-2.186 3.389-4.486 3.389-2.852 0-4.67-1.867-4.67-4.518v-2.743c0-2.882 1.887-4.634 4.716-4.634 2.53 0 4.072 1.36 4.44 3.366h3.151c-.368-3.665-3.243-6.063-7.499-6.063-5.038 0-7.982 3.274-7.982 8.668 0 5.348 2.898 8.598 7.798 8.598zm8.533-6.34c0 3.92 2.346 6.34 5.98 6.34 3.796 0 6.004-2.536 6.004-6.34 0-4.056-2.484-6.338-6.003-6.338-3.635 0-5.981 2.397-5.981 6.339zm2.898.992V13.12c0-1.89 1.22-3.066 3.083-3.066 1.817 0 3.082 1.152 3.082 3.066v1.913c0 1.96-1.288 2.997-3.082 2.997-1.749 0-3.083-1.015-3.083-2.997zM111.018 24h2.853v-6.132h.184c.667 1.453 2.116 2.398 4.186 2.398 3.083 0 4.992-2.26 4.992-6.293 0-3.942-1.863-6.27-4.992-6.27-1.863 0-3.427.852-4.186 2.397h-.184l-.345-2.167h-2.508V24zm6.211-6.063c-2.024 0-3.358-1.314-3.358-3.342v-1.222c0-2.005 1.31-3.342 3.381-3.342 2.002 0 3.037 1.152 3.037 2.881v2.144c0 1.815-1.16 2.849-2.973 2.88l-.087.001zm7.1-11.733h2.83V3.115h-2.83v3.09zm0 13.946h2.83V7.933h-2.83V20.15zm4.338 0h2.83V3.115h-2.83V20.15zm9.927-12.447c3.52 0 6.004 2.282 6.004 6.339 0 3.803-2.208 6.339-6.004 6.339-3.634 0-5.98-2.42-5.98-6.34 0-3.941 2.346-6.338 5.98-6.338zm10.922-3.689v3.919H152v2.328h-2.484v7.607H152v2.282h-2.99c-1.749 0-2.324-.922-2.324-2.282v-7.607h-2.185V7.933h2.185V4.014h2.83zm-10.922 6.04c-1.863 0-3.082 1.175-3.082 3.066v1.913c0 1.982 1.334 2.997 3.082 2.997 1.795 0 3.083-1.038 3.083-2.997V13.12c0-1.914-1.265-3.066-3.083-3.066z"})]}))});function ys(n){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ys(n)}function Rp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function SP(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Rp(Object(t),!0).forEach(function(r){CP(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Rp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function CP(n,e,t){return e=jP(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function jP(n){var e=OP(n,"string");return ys(e)=="symbol"?e:String(e)}function OP(n,e){if(ys(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function PP(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var NP=g.memo(function(n){var e=Object.assign({},(PP(n),n));return h.jsx(Hn,SP({Icon:cd,Text:sx,"aria-label":qs,spaceMultiple:tP,textMultiple:eP},e))}),Yr=cd;Yr.Text=sx;Yr.Combine=NP;Yr.Avatar=gP;Yr.colorPrimary=ix;Yr.title=qs;var Js="Cline",AP=.7,MP=.2,ox="#323B43",DP=ox,TP="#fff",EP=.6;function vs(n){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(n)}var RP=["size","style"];function Lp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Ql(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Lp(Object(t),!0).forEach(function(r){LP(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Lp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function LP(n,e,t){return e=IP(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function IP(n){var e=$P(n,"string");return vs(e)=="symbol"?e:String(e)}function $P(n,e){if(vs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function BP(n,e){if(n==null)return{};var t=FP(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function FP(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var hd=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=BP(n,RP);return h.jsxs("svg",Ql(Ql({fill:"currentColor",fillRule:"evenodd",height:t,style:Ql({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Js}),h.jsx("path",{d:"M17.035 3.991c2.75 0 4.98 2.24 4.98 5.003v1.667l1.45 2.896a1.01 1.01 0 01-.002.909l-1.448 2.864v1.668c0 2.762-2.23 5.002-4.98 5.002H7.074c-2.751 0-4.98-2.24-4.98-5.002V17.33l-1.48-2.855a1.01 1.01 0 01-.003-.927l1.482-2.887V8.994c0-2.763 2.23-5.003 4.98-5.003h9.962zM8.265 9.6a2.274 2.274 0 00-2.274 2.274v4.042a2.274 2.274 0 004.547 0v-4.042A2.274 2.274 0 008.265 9.6zm7.326 0a2.274 2.274 0 00-2.274 2.274v4.042a2.274 2.274 0 104.548 0v-4.042A2.274 2.274 0 0015.59 9.6z"}),h.jsx("path",{d:"M12.054 5.558a2.779 2.779 0 100-5.558 2.779 2.779 0 000 5.558z"})]}))});function ws(n){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(n)}function Ip(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function VP(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ip(Object(t),!0).forEach(function(r){zP(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ip(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function zP(n,e,t){return e=_P(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function _P(n){var e=HP(n,"string");return ws(e)=="symbol"?e:String(e)}function HP(n,e){if(ws(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function WP(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var UP=g.memo(function(n){var e=Object.assign({},(WP(n),n));return h.jsx(_n,VP({Icon:hd,"aria-label":Js,background:DP,color:TP,iconMultiple:EP},e))});function ks(n){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ks(n)}var KP=["size","style"];function $p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Xl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$p(Object(t),!0).forEach(function(r){GP(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$p(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function GP(n,e,t){return e=qP(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function qP(n){var e=JP(n,"string");return ks(e)=="symbol"?e:String(e)}function JP(n,e){if(ks(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function YP(n,e){if(n==null)return{};var t=QP(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function QP(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var ax=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=YP(n,KP);return h.jsxs("svg",Xl(Xl({fill:"currentColor",fillRule:"evenodd",height:t,style:Xl({flex:"none",lineHeight:1},r),viewBox:"0 0 88 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Js}),h.jsx("path",{d:"M79.558 21.986c-1.13 0-2.167-.189-3.108-.565a7.128 7.128 0 01-2.403-1.569 6.933 6.933 0 01-1.554-2.331 7.876 7.876 0 01-.537-2.925v-.58c0-1.196.189-2.279.566-3.25.376-.97.894-1.798 1.554-2.486a6.84 6.84 0 012.289-1.582 7.005 7.005 0 012.797-.566c1.103 0 2.078.189 2.925.566.848.367 1.56.88 2.134 1.54.575.668 1.008 1.464 1.3 2.388.292.923.438 1.93.438 3.023v1.456H75.362v.07c.103.67.263 1.23.48 1.682.217.452.513.857.89 1.215.377.377.82.669 1.328.876.518.207 1.084.31 1.696.31.838 0 1.62-.16 2.346-.48a4.71 4.71 0 001.794-1.398l1.808 1.752c-.508.734-1.29 1.394-2.345 1.978-1.046.584-2.313.876-3.8.876zm-.41-13.113c-.48 0-.927.09-1.342.269-.405.17-.768.414-1.088.735-.32.33-.589.725-.805 1.187a6.25 6.25 0 00-.48 1.568h7.191v-.226c0-.443-.08-.88-.24-1.314a3.545 3.545 0 00-.678-1.159 3.004 3.004 0 00-1.074-.763c-.424-.198-.919-.297-1.484-.297zM55.043 21.703V6.415h3.052l.212 2.176c.207-.292.433-.56.678-.805.255-.255.523-.48.806-.679a5.555 5.555 0 013.179-.975 6.5 6.5 0 012.148.34 4.11 4.11 0 011.667 1.073c.461.49.82 1.117 1.074 1.88.254.753.381 1.667.381 2.74v9.538h-3.377v-9.48c0-.632-.07-1.16-.212-1.583-.141-.424-.348-.763-.621-1.018a2.3 2.3 0 00-.99-.537 4.736 4.736 0 00-1.328-.17c-.414 0-.8.057-1.158.17a3.421 3.421 0 00-1.611 1.004 4.282 4.282 0 00-.523.706v10.908h-3.377zM38.44 6.415h8.111v12.49h4.493v2.798H38.441v-2.797h4.705v-9.68H38.44V6.416zm4.395-3.956c0-.274.047-.523.141-.75a1.69 1.69 0 01.41-.607c.17-.16.372-.282.607-.367.245-.094.519-.141.82-.141.509 0 .918.131 1.23.395.32.254.503.584.55.99.066.414-.004.776-.212 1.087-.207.302-.508.504-.904.608a1.48 1.48 0 01-.706.353c-.273.057-.575.033-.905-.07a1.396 1.396 0 01-.777-.552 1.758 1.758 0 01-.254-.946zM20.934 0h8.238v18.906h4.634v2.797H20.934v-2.797h4.832V2.812h-4.832V0zM16.71 15.373c-.095.999-.33 1.908-.707 2.727a6.672 6.672 0 01-1.484 2.077 6.542 6.542 0 01-2.218 1.357c-.848.31-1.79.466-2.826.466-.848 0-1.63-.113-2.346-.339a6.467 6.467 0 01-1.893-.99 6.55 6.55 0 01-1.413-1.426 9.438 9.438 0 01-1.003-1.851c-.274-.66-.48-1.375-.622-2.148A14.34 14.34 0 012 12.83v-2.812c0-.8.066-1.573.198-2.317.132-.744.33-1.446.593-2.106A8.284 8.284 0 013.88 3.603a7.296 7.296 0 011.555-1.54 6.953 6.953 0 011.836-.904A7.256 7.256 0 019.49.834c1.083 0 2.049.16 2.896.48.858.32 1.588.773 2.19 1.357a6.337 6.337 0 011.442 2.147c.358.839.588 1.771.692 2.798h-3.391a6.568 6.568 0 00-.353-1.653c-.17-.5-.405-.923-.707-1.272a2.977 2.977 0 00-1.144-.791c-.453-.188-.994-.283-1.625-.283-.443 0-.843.062-1.201.184-.349.122-.66.297-.933.523a3.385 3.385 0 00-.947 1.074 7.033 7.033 0 00-.607 1.455c-.123.471-.217.975-.283 1.512a15.25 15.25 0 00-.084 1.625v2.84c0 .688.037 1.333.113 1.936.084.602.212 1.154.381 1.653.132.414.297.791.495 1.13.207.34.452.631.734.876.292.264.627.466 1.004.608.386.132.824.198 1.314.198.584 0 1.102-.085 1.554-.255.452-.17.838-.419 1.159-.749.31-.32.56-.72.748-1.2.189-.481.311-1.032.368-1.654h3.405z"})]}))});function Ss(n){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ss(n)}function Bp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function XP(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Bp(Object(t),!0).forEach(function(r){ZP(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Bp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ZP(n,e,t){return e=e7(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function e7(n){var e=t7(n,"string");return Ss(e)=="symbol"?e:String(e)}function t7(n,e){if(Ss(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function n7(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var r7=g.memo(function(n){var e=Object.assign({},(n7(n),n));return h.jsx(Hn,XP({Icon:hd,Text:ax,"aria-label":Js,iconProps:{shape:"square"},spaceMultiple:MP,textMultiple:AP},e))}),Qr=hd;Qr.Text=ax;Qr.Combine=r7;Qr.Avatar=UP;Qr.colorPrimary=ox;Qr.title=Js;var Ys="Cursor",i7=.7,s7=.1,lx="#000",o7=lx,a7="#fff",l7=.6;function Cs(n){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cs(n)}var c7=["size","style"];function Fp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Zl(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Fp(Object(t),!0).forEach(function(r){h7(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Fp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function h7(n,e,t){return e=d7(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function d7(n){var e=u7(n,"string");return Cs(e)=="symbol"?e:String(e)}function u7(n,e){if(Cs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function f7(n,e){if(n==null)return{};var t=p7(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function p7(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var dd=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=f7(n,c7);return h.jsxs("svg",Zl(Zl({fill:"currentColor",fillRule:"evenodd",height:t,style:Zl({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Ys}),h.jsx("path",{d:"M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"})]}))});function js(n){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},js(n)}function Vp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function m7(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Vp(Object(t),!0).forEach(function(r){g7(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Vp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function g7(n,e,t){return e=b7(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function b7(n){var e=x7(n,"string");return js(e)=="symbol"?e:String(e)}function x7(n,e){if(js(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function y7(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var v7=g.memo(function(n){var e=Object.assign({},(y7(n),n));return h.jsx(_n,m7({Icon:dd,"aria-label":Ys,background:o7,color:a7,iconMultiple:l7},e))});function Os(n){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Os(n)}var w7=["size","style"];function zp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ec(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?zp(Object(t),!0).forEach(function(r){k7(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):zp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function k7(n,e,t){return e=S7(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function S7(n){var e=C7(n,"string");return Os(e)=="symbol"?e:String(e)}function C7(n,e){if(Os(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function j7(n,e){if(n==null)return{};var t=O7(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function O7(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var cx=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=j7(n,w7);return h.jsxs("svg",ec(ec({fill:"currentColor",fillRule:"evenodd",height:t,style:ec({flex:"none",lineHeight:1},r),viewBox:"0 0 123 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Ys}),h.jsx("path",{d:"M11.995 2.33h6.516v3.582h-6.295C8.82 5.912 6.169 7.868 6.169 12c0 4.133 2.65 6.089 6.047 6.089h6.295v3.581H11.72C6.03 21.67 2 18.336 2 12c0-6.337 4.307-9.67 9.995-9.67zm9.829 0h4.03V14.15c0 2.947 1.354 4.325 4.53 4.325 3.175 0 4.528-1.377 4.528-4.325V2.33h4.03v12.644c0 4.297-2.733 7.025-8.559 7.025-5.826 0-8.56-2.755-8.56-7.052V2.33zm38.185 5.483c0 2.149-1.243 3.801-2.9 4.518v.055c1.74.248 2.624 1.488 2.65 3.169l.084 6.115h-4.031l-.083-5.454c-.027-1.212-.745-1.956-2.181-1.956h-6.71v7.41h-4.03V2.33h11.127c3.644 0 6.074 1.846 6.074 5.483zm-4.059.55c0-1.652-.883-2.561-2.54-2.561H46.84v5.123h6.626c1.518 0 2.485-.909 2.485-2.562zm19.3 7.66c0-1.378-.884-1.957-2.209-2.067l-4.473-.413c-3.866-.358-5.881-1.873-5.881-5.537 0-3.664 2.485-5.675 6.046-5.675h9.885V5.8h-9.609c-1.38 0-2.263.717-2.263 2.094 0 1.378.91 2.039 2.291 2.15l4.556.385c3.452.303 5.715 1.874 5.715 5.565 0 3.691-2.402 5.675-5.798 5.675H63.184V18.2h9.94c1.297 0 2.126-.882 2.126-2.177zM91.097 2c6.074 0 9.912 3.884 9.912 9.972C101.01 18.061 97.006 22 90.932 22s-9.912-3.94-9.912-10.028C81.02 5.884 85.024 2 91.098 2zm5.743 10c0-4.077-2.374-6.474-5.826-6.474-3.451 0-5.826 2.397-5.826 6.474s2.375 6.473 5.826 6.473c3.452 0 5.826-2.396 5.826-6.473zM121 7.813c0 2.149-1.242 3.801-2.899 4.518v.055c1.739.248 2.623 1.488 2.65 3.169l.083 6.115h-4.031l-.083-5.454c-.027-1.212-.745-1.956-2.181-1.956h-6.709v7.41h-4.031V2.33h11.127c3.645 0 6.074 1.846 6.074 5.483zm-4.059.55c0-1.652-.883-2.561-2.54-2.561h-6.571v5.123h6.626c1.518 0 2.485-.909 2.485-2.562z"})]}))});function Ps(n){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ps(n)}function _p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function P7(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_p(Object(t),!0).forEach(function(r){N7(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_p(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function N7(n,e,t){return e=A7(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function A7(n){var e=M7(n,"string");return Ps(e)=="symbol"?e:String(e)}function M7(n,e){if(Ps(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function D7(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var T7=g.memo(function(n){var e=Object.assign({},(D7(n),n));return h.jsx(Hn,P7({Icon:dd,Text:cx,"aria-label":Ys,spaceMultiple:s7,textMultiple:i7},e))}),Xr=dd;Xr.Text=cx;Xr.Combine=T7;Xr.Avatar=v7;Xr.colorPrimary=lx;Xr.title=Ys;var Qs="Goose",E7=.7,R7=.2,hx="#fff",L7=hx,I7="#000",$7=.65;function Ns(n){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ns(n)}var B7=["size","style"];function Hp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function tc(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Hp(Object(t),!0).forEach(function(r){F7(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Hp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function F7(n,e,t){return e=V7(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function V7(n){var e=z7(n,"string");return Ns(e)=="symbol"?e:String(e)}function z7(n,e){if(Ns(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function _7(n,e){if(n==null)return{};var t=H7(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function H7(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var ud=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=_7(n,B7);return h.jsxs("svg",tc(tc({fill:"currentColor",fillRule:"evenodd",height:t,style:tc({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Qs}),h.jsx("path",{d:"M21.595 23.61c1.167-.254 2.405-.944 2.405-.944l-2.167-1.784a12.124 12.124 0 01-2.695-3.131 12.127 12.127 0 00-3.97-4.049l-.794-.462a1.115 1.115 0 01-.488-.815.844.844 0 01.154-.575c.413-.582 2.548-3.115 2.94-3.44.503-.416 1.065-.762 1.586-1.159.074-.056.148-.112.221-.17.003-.002.007-.004.009-.007.167-.131.325-.272.45-.438.453-.524.563-.988.59-1.193-.061-.197-.244-.639-.753-1.148.319.02.705.272 1.056.569.235-.376.481-.773.727-1.171.165-.266-.08-.465-.086-.471h-.001V3.22c-.007-.007-.206-.25-.471-.086-.567.35-1.134.702-1.639 1.021 0 0-.597-.012-1.305.599a2.464 2.464 0 00-.438.45l-.007.009c-.058.072-.114.147-.17.221-.397.521-.743 1.083-1.16 1.587-.323.391-2.857 2.526-3.44 2.94a.842.842 0 01-.574.153 1.115 1.115 0 01-.815-.488l-.462-.794a12.123 12.123 0 00-4.049-3.97 12.133 12.133 0 01-3.13-2.695L1.332 0S.643 1.238.39 2.405c.352.428 1.27 1.49 2.34 2.302C1.58 4.167.73 3.75.06 3.4c-.103.765-.063 1.92.043 2.816.726.317 1.961.806 3.219 1.066-1.006.236-2.11.278-2.961.262.15.554.358 1.119.64 1.688.119.263.25.52.39.77.452.125 2.222.383 3.164.171l-2.51.897a27.776 27.776 0 002.544 2.726c2.031-1.092 2.494-1.241 4.018-2.238-2.467 2.008-3.108 2.828-3.8 3.67l-.483.678c-.25.351-.469.725-.65 1.117-.61 1.31-1.47 4.1-1.47 4.1-.154.486.202.842.674.674 0 0 2.79-.861 4.1-1.47.392-.182.766-.4 1.118-.65l.677-.483c.227-.187.453-.37.701-.586 0 0 1.705 2.02 3.458 3.349l.896-2.511c-.211.942.046 2.712.17 3.163.252.142.509.272.772.392.569.28 1.134.49 1.688.64-.016-.853.026-1.956.261-2.962.26 1.258.75 2.493 1.067 3.219.895.106 2.051.146 2.816.043a73.87 73.87 0 01-1.308-2.67c.811 1.07 1.874 1.988 2.302 2.34h-.001z"})]}))});function As(n){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(n)}function Wp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function W7(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Wp(Object(t),!0).forEach(function(r){U7(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Wp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function U7(n,e,t){return e=K7(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function K7(n){var e=G7(n,"string");return As(e)=="symbol"?e:String(e)}function G7(n,e){if(As(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function q7(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var J7=g.memo(function(n){var e=Object.assign({},(q7(n),n));return h.jsx(_n,W7({Icon:ud,"aria-label":Qs,background:L7,color:I7,iconMultiple:$7},e))});function Ms(n){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ms(n)}var Y7=["size","style"];function Up(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function nc(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Up(Object(t),!0).forEach(function(r){Q7(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Up(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Q7(n,e,t){return e=X7(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function X7(n){var e=Z7(n,"string");return Ms(e)=="symbol"?e:String(e)}function Z7(n,e){if(Ms(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function e8(n,e){if(n==null)return{};var t=t8(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function t8(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var dx=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=e8(n,Y7);return h.jsxs("svg",nc(nc({fill:"currentColor",fillRule:"evenodd",height:t,style:nc({flex:"none",lineHeight:1},r),viewBox:"0 0 87 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Qs}),h.jsx("path",{d:"M17.122 16.607c0 4.696-3.219 7.393-7.774 7.393-3.674 0-6.255-1.546-7.257-4.637l3.401-1.21c.486 1.786 1.852 2.907 3.856 2.907 2.46 0 4.13-1.211 4.13-4.12v-1.122c-.85 1.121-2.46 2-4.494 2C4.61 17.818 2 14.273 2 9.909 2 5.546 4.611 2 8.984 2c2.004 0 3.644.879 4.494 2V2.303h3.644v14.303zm-3.583-6.85c0-2.908-1.58-4.575-3.857-4.575-2.52 0-4.008 1.757-4.008 4.727 0 2.94 1.488 4.727 4.008 4.727 2.278 0 3.857-1.666 3.857-4.515v-.363zM35.546 10.273c0 4.94-3.188 8.273-7.683 8.273-4.494 0-7.682-3.334-7.682-8.273C20.181 5.333 23.37 2 27.863 2c4.495 0 7.683 3.333 7.683 8.273zm-11.69 0c0 3.242 1.548 5.212 4.007 5.212 2.46 0 4.009-1.97 4.009-5.212 0-3.243-1.549-5.212-4.009-5.212-2.46 0-4.008 1.97-4.008 5.212zM52.957 10.273c0 4.94-3.188 8.273-7.682 8.273s-7.682-3.334-7.682-8.273C37.593 5.333 40.78 2 45.275 2s7.682 3.333 7.682 8.273zm-11.69 0c0 3.242 1.548 5.212 4.008 5.212s4.008-1.97 4.008-5.212c0-3.243-1.549-5.212-4.008-5.212-2.46 0-4.008 1.97-4.008 5.212zM54.336 15.182L57.069 13c.941 1.546 2.763 2.576 4.615 2.576 1.549 0 2.976-.546 2.976-1.97 0-1.364-1.336-1.515-3.856-2.03-2.52-.515-5.405-1.152-5.405-4.546 0-2.909 2.55-5.03 6.224-5.03 2.794 0 5.284 1.242 6.438 3L65.6 7.212c-.91-1.424-2.429-2.242-4.19-2.242-1.488 0-2.46.666-2.46 1.727 0 1.152 1.154 1.364 3.158 1.788 2.703.576 6.104 1.151 6.104 4.788 0 3.211-2.946 5.273-6.56 5.273-2.945 0-5.89-1.182-7.317-3.364zM77.965 18.546c-4.555 0-7.743-3.364-7.743-8.273 0-4.667 3.157-8.273 7.59-8.273 4.616 0 7.076 3.485 7.076 7.849v1.212H73.713c.274 2.727 1.913 4.394 4.252 4.394 1.791 0 3.218-.91 3.704-2.546l3.128 1.182c-1.124 2.787-3.644 4.455-6.832 4.455zm-.183-13.485c-1.882 0-3.34 1.12-3.886 3.272h7.318c-.03-1.757-1.124-3.272-3.432-3.272z"})]}))});function Ds(n){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ds(n)}function Kp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function n8(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Kp(Object(t),!0).forEach(function(r){r8(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Kp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function r8(n,e,t){return e=i8(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function i8(n){var e=s8(n,"string");return Ds(e)=="symbol"?e:String(e)}function s8(n,e){if(Ds(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function o8(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var a8=g.memo(function(n){var e=Object.assign({},(o8(n),n));return h.jsx(Hn,n8({Icon:ud,Text:dx,"aria-label":Qs,iconProps:{shape:"square"},spaceMultiple:R7,textMultiple:E7},e))}),Zr=ud;Zr.Text=dx;Zr.Combine=a8;Zr.Avatar=J7;Zr.colorPrimary=hx;Zr.title=Qs;var Xs="Windsurf",l8=.7,c8=.2,ux="#fff",h8=ux,d8="#000",u8=.75;function Ts(n){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(n)}var f8=["size","style"];function Gp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function rc(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Gp(Object(t),!0).forEach(function(r){p8(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Gp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function p8(n,e,t){return e=m8(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function m8(n){var e=g8(n,"string");return Ts(e)=="symbol"?e:String(e)}function g8(n,e){if(Ts(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function b8(n,e){if(n==null)return{};var t=x8(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function x8(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var fd=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=b8(n,f8);return h.jsxs("svg",rc(rc({fill:"currentColor",fillRule:"evenodd",height:t,style:rc({flex:"none",lineHeight:1},r),viewBox:"0 0 24 24",width:t,xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Xs}),h.jsx("path",{clipRule:"evenodd",d:"M23.78 5.004h-.228a2.187 2.187 0 00-2.18 2.196v4.912c0 .98-.804 1.775-1.76 1.775a1.818 1.818 0 01-1.472-.773L13.168 5.95a2.197 2.197 0 00-1.81-.95c-1.134 0-2.154.972-2.154 2.173v4.94c0 .98-.797 1.775-1.76 1.775-.57 0-1.136-.289-1.472-.773L.408 5.098C.282 4.918 0 5.007 0 5.228v4.284c0 .216.066.426.188.604l5.475 7.889c.324.466.8.812 1.351.938 1.377.316 2.645-.754 2.645-2.117V11.89c0-.98.787-1.775 1.76-1.775h.002c.586 0 1.135.288 1.472.773l4.972 7.163a2.15 2.15 0 001.81.95c1.158 0 2.151-.973 2.151-2.173v-4.939c0-.98.787-1.775 1.76-1.775h.194c.122 0 .22-.1.22-.222V5.225a.221.221 0 00-.22-.222z"})]}))});function Es(n){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es(n)}function qp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function y8(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qp(Object(t),!0).forEach(function(r){v8(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):qp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function v8(n,e,t){return e=w8(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function w8(n){var e=k8(n,"string");return Es(e)=="symbol"?e:String(e)}function k8(n,e){if(Es(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function S8(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var C8=g.memo(function(n){var e=Object.assign({},(S8(n),n));return h.jsx(_n,y8({Icon:fd,"aria-label":Xs,background:h8,color:d8,iconMultiple:u8},e))});function Rs(n){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(n)}var j8=["size","style"];function Jp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ic(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Jp(Object(t),!0).forEach(function(r){O8(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Jp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function O8(n,e,t){return e=P8(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function P8(n){var e=N8(n,"string");return Rs(e)=="symbol"?e:String(e)}function N8(n,e){if(Rs(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function A8(n,e){if(n==null)return{};var t=M8(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function M8(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var fx=g.memo(function(n){var e=n.size,t=e===void 0?"1em":e,r=n.style,i=A8(n,j8);return h.jsxs("svg",ic(ic({fill:"currentColor",fillRule:"evenodd",height:t,style:ic({flex:"none",lineHeight:1},r),viewBox:"0 0 111 24",xmlns:"http://www.w3.org/2000/svg"},i),{},{children:[h.jsx("title",{children:Xs}),h.jsx("path",{clipRule:"evenodd",d:"M33.412 7.182h-1.715a.316.316 0 00-.315.316v13.79c0 .174.14.316.315.316h1.715a.316.316 0 00.316-.317V7.498a.316.316 0 00-.316-.316zm-1.772-5.18h1.828c.174 0 .315.141.315.316V4.57a.316.316 0 01-.315.316H31.64a.316.316 0 01-.315-.316V2.318c0-.175.141-.317.315-.317zM43.676 6.79c-1.927 0-3.324.671-4.218 1.653a.457.457 0 01-.782-.322v-.623a.316.316 0 00-.316-.316h-1.686a.316.316 0 00-.316.316v13.79c0 .174.142.316.316.316h1.687a.316.316 0 00.316-.317v-8.729c0-3.025.587-3.697 3.8-3.697s3.742.533 3.742 3.557v8.868c0 .175.142.317.316.317h1.715a.316.316 0 00.316-.317v-9.513c0-3.445-1.956-4.986-4.889-4.986v.003h-.001zm17.518 1.849a.457.457 0 00.782-.322V2.319c0-.175.142-.316.316-.316h1.687c.174 0 .316.141.316.316v18.97a.316.316 0 01-.316.316h-1.687a.316.316 0 01-.316-.316v-.819c.017-.418-.489-.62-.782-.322-.81 1.008-2.374 1.848-4.47 1.848-3.685 0-6.088-2.632-6.088-7.533 0-5.18 2.68-7.673 6.172-7.673 2.095 0 3.604.84 4.386 1.849zm-8.018 5.767c0 4.733.587 5.434 4.414 5.434 3.8 0 4.386-.701 4.386-5.434 0-4.733-.559-5.461-4.386-5.461s-4.414.728-4.414 5.461zm20.924-.894l-2.763-.476c-2.04-.364-2.404-.98-2.404-2.045.028-1.457.587-2.184 3.296-2.184 2.538 0 3.35.752 3.525 2.376.017.16.152.284.313.284h1.677c.18 0 .326-.151.316-.333-.163-2.788-2.709-4.346-5.746-4.346-3.408 0-5.67 1.82-5.67 4.426 0 2.38 1.844 3.417 4.05 3.837l3.046.56c1.676.31 2.235.87 2.235 1.933 0 1.709-.587 2.437-3.464 2.437s-3.673-.832-3.858-2.518a.315.315 0 00-.313-.282h-1.687a.318.318 0 00-.317.325c.08 3.004 2.797 4.493 6.034 4.493 3.52 0 5.949-1.82 5.949-4.566 0-2.408-1.845-3.501-4.219-3.921zm12.21 6.414c3.128 0 3.715-.672 3.715-3.697V7.502c0-.174.141-.316.316-.316h1.714c.175 0 .316.142.316.316v13.79a.316.316 0 01-.316.316h-1.714a.316.316 0 01-.316-.317v-.6c-.007-.429-.45-.642-.755-.343-.892.98-2.289 1.652-4.161 1.652-2.877 0-4.833-1.54-4.833-4.986V7.501c0-.175.142-.317.316-.317h1.715c.174 0 .316.142.316.317v8.868c0 3.024.558 3.557 3.687 3.557zm19.782-12.744v-1.85c0-.727.588-1.316 1.314-1.316h1.276a.316.316 0 00.315-.317V2.317a.316.316 0 00-.315-.317h-.885c-2.514 0-4.051 1.4-4.051 3.81v1.372h-1.859c-1.647.002-2.94.229-3.803 1.26-.317.302-.755.076-.755-.36V7.5a.316.316 0 00-.315-.317h-1.715a.316.316 0 00-.316.317v13.789c0 .174.141.316.316.316h1.715a.316.316 0 00.315-.316v-8.645c0-2.857.727-3.528 3.855-3.528h2.562V21.29c0 .175.141.317.316.317h1.715a.316.316 0 00.315-.317V9.116h2.593a.316.316 0 00.315-.317V7.501a.316.316 0 00-.315-.317h-2.593v-.002zM21.834 18.008a.561.561 0 001.091.005l3.933-15.772A.318.318 0 0127.166 2h1.963c.21 0 .363.199.31.403l-4.947 18.972a.305.305 0 01-.295.228h-3.502a.31.31 0 01-.3-.234L16.285 5.5a.56.56 0 00-.543-.42h-.036a.562.562 0 00-.542.42l-4.11 15.87a.31.31 0 01-.299.234H7.253a.304.304 0 01-.295-.228L2.011 2.403A.321.321 0 012.32 2h1.963c.145 0 .272.1.308.241l3.932 15.772a.56.56 0 001.09-.005l3.78-15.764A.316.316 0 0113.7 2h4.047c.146 0 .273.1.307.244l3.779 15.764z"})]}))});function Ls(n){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ls(n)}function Yp(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function D8(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Yp(Object(t),!0).forEach(function(r){T8(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Yp(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function T8(n,e,t){return e=E8(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function E8(n){var e=R8(n,"string");return Ls(e)=="symbol"?e:String(e)}function R8(n,e){if(Ls(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function L8(n){if(n==null)throw new TypeError("Cannot destructure "+n)}var I8=g.memo(function(n){var e=Object.assign({},(L8(n),n));return h.jsx(Hn,D8({Icon:fd,Text:fx,"aria-label":Xs,iconProps:{shape:"square"},spaceMultiple:c8,textMultiple:l8},e))}),ei=fd;ei.Text=fx;ei.Combine=I8;ei.Avatar=C8;ei.colorPrimary=ux;ei.title=Xs;const $8={"claude-code":ur.Avatar,cursor:Xr.Avatar,codex:Ct.Avatar,"gemini-cli":fr.Avatar,goose:Zr.Avatar,"github-copilot":Yr.Avatar,windsurf:ei.Avatar,cline:Qr.Avatar},B8={antigravity:"/agents/antigravity.png",droid:"/agents/droid.png",opencode:"/agents/opencode.svg",amp:"/agents/amp.png",kilo:"/agents/kilo.png",roo:"/agents/roo.png",openhands:"/agents/openhands.png"};function F8(n){return n.split(/\s+/).map(e=>e[0]).join("").toUpperCase().slice(0,2)}const px=({agentName:n,displayName:e,size:t=20})=>{const r=$8[n];if(r)return h.jsx(r,{size:t});const i=B8[n];return i?h.jsx("img",{src:i,alt:e,className:"rounded object-contain",style:{width:t,height:t}}):h.jsx("div",{className:"flex items-center justify-center rounded bg-dash-surface-hover text-dash-text-muted font-semibold",style:{width:t,height:t,fontSize:t*.45},children:F8(e)})};function sc(n){return JSON.stringify([n.provider,n.type,n.item,n.global])}function V8(n){if(typeof n=="string"){const e=n.trim();return e.length>0?e:null}if(typeof n=="object"&&n!==null){const e=n;for(const t of["message","error","detail","details","reason"]){const r=e[t];if(typeof r=="string"&&r.trim().length>0)return r.trim()}}return null}async function Qp(n,e){const r=(await n.text().catch(()=>"")).trim();if(!r)return e;try{const i=JSON.parse(r);return V8(i)||e}catch{return r}}function z8(){const[n,e]=g.useState("idle"),[t,r]=g.useState(null),[i,s]=g.useState(new Map),[o,a]=g.useState(null),[l,c]=g.useState(null),d=g.useRef(0),u=g.useRef(0),f=g.useRef(null),p=g.useRef(null),m=g.useCallback(async S=>{e("reconciling"),c(null),a(null),d.current+=1;const j=d.current;f.current?.abort();const k=new AbortController;f.current=k;try{const O=new URLSearchParams({providers:S.providers.join(","),global:String(S.global),agents:String(S.include.agents??!0),commands:String(S.include.commands??!0),skills:String(S.include.skills??!0),config:String(S.include.config??!0),rules:String(S.include.rules??!0),hooks:String(S.include.hooks??!0)});S.source&&O.set("source",S.source);const y=await fetch(`/api/migrate/reconcile?${O.toString()}`,{signal:k.signal});if(!y.ok){const A=await Qp(y,"Failed to reconcile migration plan");throw new Error(A)}const D=await y.json();if(j!==d.current)return;r(D.plan),s(new Map),e("reviewing")}catch(O){if(k.signal.aborted||O instanceof DOMException&&O.name==="AbortError"||j!==d.current)return;c(O instanceof Error?O.message:"Failed to reconcile"),e("error")}},[]),b=g.useCallback((S,j)=>{s(k=>{const O=new Map(k);return O.set(sc(S),j),O})},[]),x=g.useCallback(async()=>{if(!t)return c("No plan to execute"),e("error"),!1;e("executing"),c(null),u.current+=1;const S=u.current;p.current?.abort();const j=new AbortController;p.current=j;try{const k=Object.fromEntries(i.entries()),O=await fetch("/api/migrate/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:t,resolutions:k}),signal:j.signal});if(S!==u.current)return!1;if(!O.ok){const D=await Qp(O,"Failed to execute migration");if(O.status===501)return c(D||"Plan execution is not available in this server build"),e("reviewing"),!1;throw new Error(D)}const y=await O.json();return S!==u.current?!1:(a({results:y.results,counts:y.counts,warnings:y.warnings??[],discovery:y.discovery}),e("complete"),!0)}catch(k){return j.signal.aborted||k instanceof DOMException&&k.name==="AbortError"||S!==u.current||(c(k instanceof Error?k.message:"Failed to execute migration"),e("error")),!1}},[t,i]),w=g.useCallback(()=>{f.current?.abort(),p.current?.abort(),e("idle"),r(null),s(new Map),a(null),c(null)},[]),v=g.useMemo(()=>t?t.actions.filter(S=>S.action==="conflict").every(S=>i.has(sc(S))):!0,[t,i]);return{phase:n,plan:t,resolutions:i,results:o,error:l,reconcile:m,resolve:b,execute:x,reset:w,allConflictsResolved:v,actionKey:sc}}const _8={agents:!0,commands:!0,skills:!0,config:!0,rules:!0,hooks:!0},Nt=["agents","commands","skills","config","rules","hooks"],Zn={agents:"migrateTypeAgents",commands:"migrateTypeCommands",skills:"migrateTypeSkills",config:"migrateTypeConfig",rules:"migrateTypeRules",hooks:"migrateTypeHooks"},Xp={detected:"#D4A574","not-detected":"#8B9DC3"},lt=({label:n,value:e,tone:t="default"})=>{const r=t==="accent"?"text-dash-accent":t==="success"?"text-green-400":"text-dash-text";return h.jsxs("div",{className:"rounded-lg border border-dash-border bg-dash-bg/70 px-3 py-2.5",children:[h.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wide text-dash-text-muted",children:n}),h.jsx("p",{className:`mt-1 text-lg font-semibold ${r}`,children:e})]})};function Zp(n,e){return n.success?n.skipped?{label:e("migrateStatusSkipped"),className:"text-yellow-400"}:{label:e("migrateStatusInstalled"),className:"text-green-400"}:{label:e("migrateStatusFailed"),className:"text-red-400"}}const H8=new Set([8203,8204,8205,8288,65279,8232,8233,8234,8235,8236,8237,8238,8294,8295,8296,8297]);function W8(n){return n===9||n===10||n===13?!0:n>=0&&n<=8||n>=11&&n<=31||n>=127&&n<=159||H8.has(n)}function em(n){let e="";for(const t of n){const r=t.codePointAt(0);r!==void 0&&(W8(r)||(e+=t))}return e}const U8=({provider:n,include:e,isSelected:t,cardClickToggles:r,onToggleSelect:i,onOpenDetails:s,t:o})=>{const a=Nt.filter(c=>n.capabilities[c]).length,l=Nt.some(c=>e[c]&&!n.capabilities[c]);return h.jsxs("div",{className:`relative rounded-xl border px-4 py-3 cursor-pointer transition-all ${t?"bg-dash-accent-subtle border-dash-accent/30 shadow-sm shadow-dash-accent/10":l?"bg-dash-surface border-yellow-500/25 hover:bg-dash-surface-hover hover:border-yellow-500/40":"bg-dash-surface border-dash-border hover:bg-dash-surface-hover hover:border-dash-accent/25"}`,children:[h.jsx("button",{type:"button",onClick:()=>r?i(n.name):s(n.name),"aria-label":r?`${n.displayName} deselect`:`${n.displayName} details`,className:"absolute inset-0 z-10 rounded-xl dash-focus-ring"}),h.jsxs("div",{className:"relative flex flex-col gap-3 lg:grid lg:grid-cols-[minmax(0,1.25fr)_140px_minmax(0,220px)_auto] lg:items-center lg:gap-4",children:[h.jsxs("div",{className:"min-w-0 space-y-1.5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsx(px,{agentName:n.name,displayName:n.displayName,size:18}),h.jsx("span",{className:"text-sm font-semibold text-dash-text truncate",children:n.displayName}),n.recommended&&h.jsx("span",{className:"text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded border border-dash-accent/30 text-dash-accent",children:o("migrateFilterRecommended")}),n.commandsGlobalOnly&&h.jsx("span",{className:"text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded border border-yellow-500/30 text-yellow-400",children:o("migrateGlobalOnlyCommandsShort")})]}),h.jsxs("div",{className:"text-xs text-dash-text-muted truncate",children:[n.name," · ",a,"/",Nt.length," ",o("migrateCapabilitiesLabel")]})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-[11px] lg:flex-col lg:items-start lg:gap-1",children:[h.jsx("span",{className:n.detected?"text-dash-accent":"text-dash-text-muted",children:n.detected?o("migrateDetectedTag"):o("migrateNotDetectedTag")}),h.jsx("span",{className:"text-dash-text-muted",children:n.recommended?o("migrateFilterRecommended"):"-"})]}),h.jsx("div",{className:"flex flex-wrap gap-1",children:Nt.map(c=>{const d=n.capabilities[c],u=e[c];return h.jsx("span",{className:`text-[10px] uppercase px-1.5 py-0.5 rounded border ${d&&u?"border-dash-accent/45 text-dash-accent":d?"border-dash-border text-dash-text-secondary":"border-dash-border text-dash-text-muted opacity-60"}`,children:o(Zn[c])},c)})}),h.jsx("div",{className:"relative z-20 flex justify-start lg:justify-end",children:h.jsx("button",{type:"button",onClick:c=>{c.stopPropagation(),i(n.name)},className:`dash-focus-ring px-4 py-1.5 text-xs font-semibold rounded-md transition-colors ${t?"bg-transparent text-dash-text-secondary border border-dash-border hover:bg-dash-surface-hover":"bg-dash-accent text-white hover:bg-dash-accent/90"}`,children:o(t?"migrateSelectedButton":"migrateSelectButton")})})]})]})},K8=({provider:n,include:e,isSelected:t,latestResult:r,onToggleSelect:i,onClose:s,t:o})=>{const a=g.useRef(null),l=g.useRef(null),c=g.useCallback(()=>{const f=l.current;l.current=null,f&&document.contains(f)&&f.focus()},[]),d=g.useCallback(()=>{s(),c()},[s,c]),u=g.useCallback(()=>{const f=a.current;if(f?.open){f.close();return}s(),c()},[s,c]);return g.useEffect(()=>{const f=a.current;if(f){if(!f.open){l.current=document.activeElement instanceof HTMLElement?document.activeElement:null;try{f.showModal()}catch{c(),s()}}return()=>{if(f.open){f.close();return}c()}}},[s,c]),h.jsx("dialog",{ref:a,"aria-label":n.displayName,onClose:d,onCancel:f=>{f.preventDefault(),u()},onClick:f=>{f.target===f.currentTarget&&u()},className:"fixed inset-0 z-50 m-0 h-full max-h-none w-full max-w-none overflow-hidden border-0 bg-transparent p-0 backdrop:bg-black/50",children:h.jsxs("div",{className:"ml-auto h-full w-full sm:w-[460px] bg-dash-surface border-l border-dash-border shadow-2xl flex flex-col animate-slide-in",children:[h.jsx("div",{className:"px-6 py-5 border-b border-dash-border",children:h.jsxs("div",{className:"flex items-start justify-between gap-3",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2.5",children:[h.jsx(px,{agentName:n.name,displayName:n.displayName,size:22}),h.jsx("h2",{className:"text-xl font-bold text-dash-text truncate",children:n.displayName})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 mt-2",children:[h.jsx("span",{className:"text-[11px] text-dash-text-muted font-mono",children:n.name}),h.jsx("span",{className:`text-[10px] uppercase tracking-wide px-2 py-0.5 rounded border ${n.detected?"border-dash-accent/30 text-dash-accent":"border-dash-border text-dash-text-muted"}`,children:n.detected?o("migrateDetectedTag"):o("migrateNotDetectedTag")}),n.recommended&&h.jsx("span",{className:"text-[10px] uppercase tracking-wide px-2 py-0.5 rounded border border-dash-accent/30 text-dash-accent",children:o("migrateFilterRecommended")})]})]}),h.jsx("button",{type:"button",onClick:u,"aria-label":o("detailPanelClose"),className:"w-8 h-8 flex items-center justify-center rounded-md text-dash-text-muted hover:bg-dash-surface-hover hover:text-dash-text transition-colors",children:h.jsxs("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[h.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18",strokeWidth:2}),h.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18",strokeWidth:2})]})})]})}),h.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-5 space-y-6",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"text-[11px] font-bold uppercase tracking-wide text-dash-text-muted mb-2.5",children:o("migrateCapabilitiesSection")}),h.jsx("div",{className:"space-y-1.5",children:Nt.map(f=>{const p=n.capabilities[f],m=e[f];return h.jsxs("div",{className:"flex items-center justify-between px-3 py-2 bg-dash-bg rounded-md",children:[h.jsx("span",{className:"text-sm text-dash-text",children:o(Zn[f])}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:`text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded border ${m?"border-dash-accent/35 text-dash-accent":"border-dash-border text-dash-text-muted"}`,children:o(m?"migrateIncludedEnabled":"migrateIncludedDisabled")}),h.jsx("span",{className:`text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded border ${p?"border-green-500/35 text-green-400":"border-red-500/30 text-red-400"}`,children:o(p?"migrateSupported":"migrateUnsupportedShort")})]})]},f)})})]}),n.commandsGlobalOnly&&e.commands&&h.jsx("div",{className:"px-3 py-2 border border-yellow-500/30 bg-yellow-500/10 rounded text-xs text-yellow-400",children:o("migrateGlobalForced")}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-[11px] font-bold uppercase tracking-wide text-dash-text-muted mb-2.5",children:o("migrateLatestTarget")}),r?h.jsxs("div",{className:"px-3 py-2 bg-dash-bg rounded-md border border-dash-border space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs text-dash-text-muted",children:o("migrateStatus")}),h.jsx("span",{className:`text-xs font-semibold ${Zp(r,o).className}`,children:Zp(r,o).label})]}),h.jsx("p",{className:"text-xs font-mono text-dash-text break-all",children:em(r.path||"-")}),(r.error||r.skipReason)&&h.jsx("p",{className:"text-xs text-red-400 break-words",children:em(r.error||r.skipReason||"-")})]}):h.jsx("p",{className:"text-sm text-dash-text-muted",children:o("migrateNoResultForProvider")})]})]}),h.jsxs("div",{className:"px-6 py-4 border-t border-dash-border flex items-center justify-between gap-2",children:[h.jsx("button",{type:"button",onClick:()=>i(n.name),className:`px-4 py-2 text-sm font-semibold rounded-md transition-colors ${t?"bg-transparent text-dash-text-secondary border border-dash-border hover:bg-dash-surface-hover":"bg-dash-accent text-white hover:bg-dash-accent/90"}`,children:o(t?"migrateUnselectProvider":"migrateSelectProviderAction")}),h.jsx("button",{type:"button",onClick:u,"aria-label":o("detailPanelClose"),className:"px-4 py-2 text-sm font-medium rounded-md border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:o("detailPanelClose")})]})]})})},G8=()=>{const{t:n}=ce(),e=z8(),[t,r]=g.useState([]),[i,s]=g.useState(null),[o,a]=g.useState([]),[l,c]=g.useState(_8),[d,u]=g.useState(!0),[f,p]=g.useState(!0),[m,b]=g.useState(!1),[x,w]=g.useState(null),[v,S]=g.useState(""),j=g.useDeferredValue(v),[k,O]=g.useState("all"),[y,D]=g.useState(null),A=g.useRef(0),R=g.useCallback(async(I=!1)=>{A.current+=1;const G=A.current;try{I?b(!0):p(!0),w(null);const[oe,De]=await Promise.all([Av(),nu()]);if(G!==A.current)return;r(oe.providers),s(De),a(Ut=>{if(Ut.length===0)return[];const Zs=oe.providers.map(ti=>ti.name);return Ut.filter(ti=>Zs.includes(ti))})}catch(oe){if(G!==A.current)return;w(oe instanceof Error?oe.message:n("migrateDetectFailed"))}finally{G===A.current&&(p(!1),b(!1))}},[n]);g.useEffect(()=>{R()},[R]);const N=g.useMemo(()=>{const I=new Map;for(const G of t)I.set(G.name,G);return I},[t]),L=g.useMemo(()=>y&&N.get(y)||null,[y,N]);g.useEffect(()=>{y&&!N.has(y)&&D(null)},[y,N]);const W=g.useCallback(()=>{D(null)},[]),F=g.useMemo(()=>new Set(o),[o]),B=g.useMemo(()=>t.filter(I=>I.detected).length,[t]),q=o.length,de=g.useMemo(()=>t.filter(I=>I.recommended).length,[t]),z=g.useMemo(()=>Nt.filter(I=>l[I]).length,[l]),J=g.useMemo(()=>{const I=[];l.commands&&o.includes("codex")&&!d&&N.get("codex")?.commandsGlobalOnly&&I.push(n("migrateGlobalForced"));for(const G of Nt){if(!l[G])continue;const oe=o.filter(De=>!N.get(De)?.capabilities[G]).map(De=>N.get(De)?.displayName||De);oe.length>0&&I.push(`${n("migrateUnsupported")}: ${n(Zn[G])} -> ${oe.join(", ")}`)}return I},[l,d,N,o,n]),ie=g.useCallback(I=>{if(I==="codex"){a(["codex"]);return}if(I==="antigravity"){a(["antigravity"]);return}if(I==="core"){const oe=["codex","antigravity","droid"].filter(De=>t.some(Ut=>Ut.name===De));a(oe);return}const G=t.filter(oe=>oe.detected).map(oe=>oe.name);a(G)},[t]),le=g.useCallback(I=>{a(G=>G.includes(I)?G.filter(oe=>oe!==I):[...G,I])},[]),fe=g.useCallback(I=>{c(G=>({...G,[I]:!G[I]}))},[]),we=g.useMemo(()=>{const I=[...t];return I.sort((G,oe)=>{const De=F.has(G.name),Ut=F.has(oe.name);return De!==Ut?De?-1:1:G.detected!==oe.detected?G.detected?-1:1:G.recommended!==oe.recommended?G.recommended?-1:1:G.displayName.localeCompare(oe.displayName)}),I},[t,F]),ke=g.useMemo(()=>{const I=j.trim().toLowerCase();return we.filter(G=>{if(k==="selected"&&!F.has(G.name)||k==="detected"&&!G.detected||k==="recommended"&&!G.recommended||k==="not-detected"&&G.detected)return!1;if(!I)return!0;const oe=Nt.filter(De=>G.capabilities[De]).map(De=>n(Zn[De]).toLowerCase());return G.displayName.toLowerCase().includes(I)||G.name.toLowerCase().includes(I)||oe.some(De=>De.includes(I))})},[j,k,F,we,n]),Ae=g.useMemo(()=>{const I=ke.filter(De=>De.detected),G=ke.filter(De=>!De.detected),oe=[];return I.length>0&&oe.push({key:"detected",label:n("migrateDetectedTag"),providers:I}),G.length>0&&oe.push({key:"not-detected",label:n("migrateNotDetectedTag"),providers:G}),oe},[ke,n]),Qe=g.useMemo(()=>({all:t.length,selected:q,detected:t.filter(I=>I.detected).length,recommended:t.filter(I=>I.recommended).length,"not-detected":t.filter(I=>!I.detected).length}),[t,q]),mt=g.useMemo(()=>ke.map(I=>I.name),[ke]),Y=g.useCallback(()=>{a(I=>{const G=new Set(I);for(const oe of mt)G.add(oe);return Array.from(G)})},[mt]),Me=g.useCallback(()=>{a([])},[]),Se=g.useCallback(async()=>{if(o.length===0){w(n("migrateSelectProvider"));return}if(z===0){w(n("migrateNoTypesEnabled"));return}await e.reconcile({providers:o,global:d,include:l})},[z,l,d,o,n,e]),Ie=g.useCallback(async()=>{if(w(null),!!await e.execute())try{const G=await nu();s(G)}catch(G){console.error("Failed to refresh discovery:",G)}},[e]),ve=g.useMemo(()=>{const I=new Map;if(!e.results)return I;for(const G of e.results.results)I.set(G.provider,G);return I},[e.results]);g.useEffect(()=>{const I=G=>{const oe=G.target,De=!!(oe&&(oe instanceof HTMLInputElement||oe instanceof HTMLTextAreaElement||oe.isContentEditable||oe.closest('[contenteditable="true"], [role="textbox"]'))),Ut=G.metaKey||G.ctrlKey||G.altKey;G.key==="/"&&!De&&!Ut&&(G.preventDefault(),document.getElementById("migrate-search")?.focus())};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[]);const gt=e.phase==="idle"&&o.length>0&&z>0;return f?h.jsx("div",{className:"flex items-center justify-center h-full",children:h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"w-8 h-8 border-4 border-dash-accent border-t-transparent rounded-full animate-spin mx-auto mb-3"}),h.jsx("p",{className:"text-dash-text-muted",children:n("migrateDiscovering")})]})}):h.jsxs("div",{className:"relative h-full overflow-hidden",children:[h.jsxs("div",{className:"pointer-events-none absolute inset-0 -z-10 overflow-hidden",children:[h.jsx("div",{className:"absolute -top-24 -right-8 h-64 w-64 rounded-full bg-dash-accent/10 blur-3xl"}),h.jsx("div",{className:"absolute -bottom-28 -left-10 h-72 w-72 rounded-full bg-dash-accent/5 blur-3xl"})]}),h.jsxs("div",{className:"h-full overflow-y-auto space-y-4 pb-8",children:[h.jsx("section",{className:"dash-panel dash-sticky-glass sticky top-0 z-20 px-4 py-4 md:px-6 md:py-5",children:h.jsxs("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-end xl:justify-between",children:[h.jsxs("div",{className:"space-y-1",children:[h.jsx("p",{className:"mono text-[10px] uppercase tracking-[0.16em] text-dash-text-muted",children:n("migrate")}),h.jsx("h1",{className:"text-xl md:text-2xl font-semibold text-dash-text",children:n("migrateTitle")}),h.jsx("p",{className:"text-sm text-dash-text-secondary max-w-3xl",children:n("migrateSubtitle")})]}),e.phase==="complete"&&e.results?h.jsxs("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3",children:[h.jsx(lt,{label:n("migrateInstalled"),value:e.results.counts.installed,tone:"success"}),h.jsx(lt,{label:n("migrateSkipped"),value:e.results.counts.skipped}),h.jsx(lt,{label:n("migrateFailed"),value:e.results.counts.failed})]}):h.jsxs("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:[h.jsx(lt,{label:n("migrateTypeAgents"),value:i?.counts.agents??0}),h.jsx(lt,{label:n("migrateDetectedProviders"),value:B,tone:"success"}),h.jsx(lt,{label:n("migrateSelectedProviders"),value:q,tone:"accent"}),h.jsx(lt,{label:n("migrateTypes"),value:z})]})]})}),x&&h.jsx("div",{className:"px-4 py-3 border border-red-500/30 bg-red-500/10 rounded-lg text-sm text-red-400",children:x}),h.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,1.55fr)_minmax(0,340px)]",children:[h.jsxs("section",{className:"order-2 xl:order-1 space-y-4",children:[e.phase==="reviewing"&&e.plan&&h.jsxs("div",{className:"dash-panel flex flex-col max-h-[calc(100vh-200px)]",children:[h.jsxs("div",{className:"flex items-center justify-between p-5 pb-4",children:[h.jsx("h2",{className:"text-lg font-semibold text-dash-text",children:n("migrateReviewPlan")}),h.jsx("button",{type:"button",onClick:()=>e.reset(),className:"dash-focus-ring px-3 py-1.5 text-xs font-medium rounded-md border border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover",children:n("cancel")})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto px-5 pb-4",children:[h.jsx(Cj,{plan:e.plan,resolutions:e.resolutions,onResolve:e.resolve,actionKey:e.actionKey}),e.error&&h.jsx("div",{className:"mt-4 px-3 py-2 border border-red-500/30 bg-red-500/10 rounded text-xs text-red-400",children:e.error})]}),h.jsxs("div",{className:"flex items-center justify-end gap-3 px-5 py-4 border-t border-dash-border bg-dash-surface rounded-b-xl",children:[e.plan.hasConflicts&&!e.allConflictsResolved&&h.jsx("p",{className:"text-xs text-yellow-400",children:n("migrateResolveConflicts")}),h.jsx("button",{type:"button",onClick:Ie,disabled:e.plan.hasConflicts&&!e.allConflictsResolved,className:"dash-focus-ring px-4 py-2 bg-dash-accent text-white rounded-md text-sm font-semibold hover:bg-dash-accent/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:n("migrateExecutePlan")})]})]}),e.phase==="complete"&&e.results&&h.jsx(hj,{results:e.results,onReset:e.reset}),e.phase==="error"&&e.error&&h.jsxs("div",{className:"dash-panel p-5",children:[h.jsx("div",{className:"px-4 py-3 border border-red-500/30 bg-red-500/10 rounded-lg text-sm text-red-400",children:e.error}),h.jsx("button",{type:"button",onClick:e.reset,className:"mt-4 dash-focus-ring px-4 py-2 bg-dash-bg border border-dash-border rounded-md text-sm text-dash-text-secondary hover:bg-dash-surface-hover",children:n("tryAgain")})]}),(e.phase==="reconciling"||e.phase==="executing")&&h.jsx("div",{className:"dash-panel p-5",children:h.jsx("div",{className:"flex items-center justify-center py-8",children:h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"w-8 h-8 border-4 border-dash-accent border-t-transparent rounded-full animate-spin mx-auto mb-3"}),h.jsx("p",{className:"text-dash-text-muted",children:e.phase==="reconciling"?n("migrateReconciling"):n("migrateExecuting")})]})})}),e.phase==="idle"&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"dash-panel p-4 md:p-5 space-y-4",children:[h.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center",children:[h.jsxs("div",{className:"relative flex-1",children:[h.jsxs("svg",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 stroke-dash-text-muted",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("circle",{cx:"11",cy:"11",r:"8"}),h.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),h.jsx("input",{id:"migrate-search",type:"text",value:v,onChange:I=>S(I.target.value),placeholder:n("migrateSearchProviders"),className:"dash-focus-ring w-full pl-9 pr-12 py-2 bg-dash-bg border border-dash-border rounded-lg text-dash-text text-sm focus:border-dash-accent transition-colors"}),h.jsx("span",{className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-[11px] text-dash-text-muted bg-dash-surface-hover border border-dash-border px-1.5 py-0.5 rounded",children:n("searchShortcut")})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsx("button",{type:"button",onClick:()=>R(!0),disabled:m,className:"dash-focus-ring px-3 py-1.5 bg-dash-bg border border-dash-border rounded-md text-xs text-dash-text-secondary hover:bg-dash-surface-hover disabled:opacity-50 whitespace-nowrap",children:n(m?"checking":"migrateRefresh")}),h.jsx("button",{type:"button",onClick:Y,disabled:mt.length===0,className:"dash-focus-ring px-3 py-1.5 bg-dash-bg border border-dash-border rounded-md text-xs text-dash-text-secondary hover:bg-dash-surface-hover disabled:opacity-50 whitespace-nowrap",children:n("migrateSelectVisible")}),h.jsx("button",{type:"button",onClick:Me,disabled:q===0,className:"dash-focus-ring px-3 py-1.5 bg-dash-bg border border-dash-border rounded-md text-xs text-dash-text-secondary hover:bg-dash-surface-hover disabled:opacity-50 whitespace-nowrap",children:n("migrateClearSelection")})]})]}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:[{key:"all",label:n("categoryAll")},{key:"selected",label:n("migrateSelectedProviders")},{key:"detected",label:n("migrateDetectedProviders")},{key:"recommended",label:n("migrateFilterRecommended")},{key:"not-detected",label:n("migrateNotDetectedTag")}].map(I=>h.jsxs("button",{type:"button",onClick:()=>O(I.key),className:`dash-focus-ring px-3 py-1 text-xs font-medium rounded-full border transition-all whitespace-nowrap ${k===I.key?"bg-dash-accent/10 border-dash-accent text-dash-accent":"border-dash-border text-dash-text-secondary hover:bg-dash-surface-hover hover:text-dash-text"}`,children:[I.label,h.jsx("span",{className:"opacity-60 ml-1 text-[10px]",children:Qe[I.key]})]},I.key))}),h.jsxs("div",{children:[h.jsx("p",{className:"mb-2 text-[11px] font-semibold uppercase tracking-wide text-dash-text-muted",children:n("migrateTypes")}),h.jsx("div",{className:"flex flex-wrap items-center gap-2",children:Nt.map(I=>h.jsx("button",{type:"button",onClick:()=>fe(I),className:`dash-focus-ring px-2.5 py-1 text-[11px] uppercase tracking-wide rounded-md border transition-colors ${l[I]?"border-dash-accent/45 text-dash-accent bg-dash-accent/5":"border-dash-border text-dash-text-muted hover:bg-dash-surface-hover"}`,children:n(Zn[I])},I))})]})]}),h.jsxs("div",{className:"dash-panel p-4 md:p-5",children:[h.jsx("h2",{className:"text-sm font-semibold text-dash-text mb-4",children:n("migrateSourceSummary")}),h.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-3",children:Nt.map(I=>h.jsxs("div",{className:"px-3 py-2 bg-dash-bg border border-dash-border rounded-md text-center",children:[h.jsx("p",{className:"text-[11px] uppercase tracking-wide text-dash-text-muted",children:n(Zn[I])}),h.jsx("p",{className:"text-lg font-semibold text-dash-text",children:i?.counts[I]??0})]},I))})]}),h.jsxs("div",{className:"dash-panel p-4 md:p-5",children:[h.jsxs("div",{className:"flex items-center justify-between mb-4",children:[h.jsx("h2",{className:"text-sm font-semibold text-dash-text",children:n("migrateProvidersHeading")}),h.jsxs("p",{className:"text-xs text-dash-text-muted",children:[ke.length," ",n("migrateProvidersCountSuffix")]})]}),t.length===0?h.jsx("div",{className:"text-sm text-dash-text-muted",children:n("migrateNoProviders")}):ke.length===0?h.jsx("div",{className:"text-sm text-dash-text-muted",children:n("migrateNoProvidersMatch")}):h.jsx("div",{className:"space-y-5",children:Ae.map(I=>h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-2.5 mb-3",children:[h.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:Xp[I.key]}}),h.jsx("h2",{className:"text-[13px] font-semibold uppercase tracking-wide",style:{color:Xp[I.key]},children:I.label}),h.jsxs("span",{className:"text-[11px] text-dash-text-muted ml-auto",children:[I.providers.length," ",n("migrateProvidersCountSuffix")]}),h.jsx("div",{className:"flex-1 h-px bg-dash-border ml-3"})]}),h.jsx("div",{className:"space-y-2",children:I.providers.map(G=>h.jsx(U8,{provider:G,include:l,isSelected:F.has(G.name),cardClickToggles:k==="selected",onToggleSelect:le,onOpenDetails:D,t:n},G.name))})]},I.key))})]})]})]}),h.jsx("aside",{className:"order-1 xl:order-2 space-y-4 self-start xl:sticky xl:top-[84px]",children:e.phase==="complete"&&e.results?h.jsxs("div",{className:"dash-panel p-4 md:p-5 space-y-4",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-semibold text-dash-text",children:n("migrateSummaryTitle")}),h.jsxs("p",{className:"text-xs text-dash-text-muted mt-1",children:[e.results.counts.installed+e.results.counts.skipped+e.results.counts.failed," ",n("migrateSummarySubtitle")]})]}),h.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[h.jsx(lt,{label:n("migrateInstalled"),value:e.results.counts.installed,tone:"success"}),h.jsx(lt,{label:n("migrateSkipped"),value:e.results.counts.skipped}),h.jsx(lt,{label:n("migrateFailed"),value:e.results.counts.failed})]}),e.results.discovery&&h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wide text-dash-text-muted",children:n("migrateTypes")}),Nt.map(I=>{const G=e.results?.discovery?.[I]??0;return G===0?null:h.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-dash-bg rounded-md text-xs",children:[h.jsx("span",{className:"text-dash-text-secondary",children:n(Zn[I])}),h.jsx("span",{className:"font-semibold text-dash-text",children:G})]},I)})]}),o.length>0&&h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wide text-dash-text-muted",children:n("migrateSummaryProviders")}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:o.map(I=>{const G=N.get(I);return h.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded border border-dash-accent/30 text-dash-accent",children:G?.displayName||I},I)})})]}),h.jsx("div",{className:"text-[10px] px-3 py-1.5 bg-dash-bg rounded-md text-dash-text-muted",children:n(d?"migrateScopeGlobal":"migrateScopeProject")}),h.jsx("button",{type:"button",onClick:e.reset,className:"dash-focus-ring w-full px-4 py-2.5 bg-dash-accent text-white rounded-md text-sm font-semibold hover:bg-dash-accent/90 transition-colors",children:n("migrateSummaryNewMigration")})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"dash-panel p-4 md:p-5 space-y-4",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-semibold text-dash-text",children:n("migrateActionSummaryTitle")}),h.jsxs("p",{className:"text-xs text-dash-text-muted mt-1",children:[q," ",n("migrateProvidersCountSuffix")," ·"," ",z,"/",Nt.length," ",n("migrateTypes")]})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[h.jsx(lt,{label:n("migrateSelectedProviders"),value:q,tone:"accent"}),h.jsx(lt,{label:n("migrateDetectedProviders"),value:B}),h.jsx(lt,{label:n("migrateTypes"),value:z}),h.jsx(lt,{label:n("migrateFilterRecommended"),value:de,tone:"success"})]}),h.jsxs("div",{className:"inline-flex w-full rounded-md border border-dash-border overflow-hidden",children:[h.jsx("button",{type:"button",onClick:()=>u(!1),className:`dash-focus-ring flex-1 px-3 py-2 text-sm ${d?"bg-dash-bg text-dash-text-secondary":"bg-dash-accent-subtle text-dash-accent"}`,children:n("migrateScopeProject")}),h.jsx("button",{type:"button",onClick:()=>u(!0),className:`dash-focus-ring flex-1 px-3 py-2 text-sm border-l border-dash-border ${d?"bg-dash-accent-subtle text-dash-accent":"bg-dash-bg text-dash-text-secondary"}`,children:n("migrateScopeGlobal")})]}),h.jsx("button",{type:"button",onClick:Se,disabled:!gt,className:"dash-focus-ring w-full px-4 py-2.5 bg-dash-accent text-white rounded-md text-sm font-semibold hover:bg-dash-accent/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:e.phase==="reconciling"?n("migrateRunning"):n("migrateRun")}),J.length>0&&h.jsx("div",{className:"space-y-2",children:J.map((I,G)=>h.jsx("p",{className:"text-xs px-3 py-2 border border-yellow-500/30 bg-yellow-500/10 rounded text-yellow-400",children:I},`${I}-${G}`))})]}),h.jsxs("div",{className:"dash-panel-muted p-4",children:[h.jsx("p",{className:"mb-3 text-[11px] font-semibold uppercase tracking-wide text-dash-text-muted",children:n("migrateSelectProviderAction")}),h.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[h.jsx("button",{type:"button",onClick:()=>ie("codex"),className:"dash-focus-ring px-3 py-1.5 bg-dash-bg border border-dash-border rounded-md text-xs text-dash-text-secondary hover:bg-dash-surface-hover",children:n("migratePresetCodex")}),h.jsx("button",{type:"button",onClick:()=>ie("antigravity"),className:"dash-focus-ring px-3 py-1.5 bg-dash-bg border border-dash-border rounded-md text-xs text-dash-text-secondary hover:bg-dash-surface-hover",children:n("migratePresetAntigravity")}),h.jsx("button",{type:"button",onClick:()=>ie("core"),className:"dash-focus-ring px-3 py-1.5 bg-dash-bg border border-dash-border rounded-md text-xs text-dash-text-secondary hover:bg-dash-surface-hover",children:n("migratePresetCore")}),h.jsx("button",{type:"button",onClick:()=>ie("detected"),className:"dash-focus-ring px-3 py-1.5 bg-dash-bg border border-dash-border rounded-md text-xs text-dash-text-secondary hover:bg-dash-surface-hover",children:n("migratePresetDetected")})]})]})]})})]})]}),L&&h.jsx(K8,{provider:L,include:l,isSelected:F.has(L.name),latestResult:ve.get(L.name)||null,onToggleSelect:le,onClose:W,t:n})]})},q8=({featureId:n,name:e,description:t,included:r})=>{const{t:i}=ce();return h.jsxs("div",{"data-testid":`feature-card-${n}`,className:`p-4 rounded-lg border transition-all ${r?"border-[var(--dash-accent)] bg-[var(--dash-surface)] shadow-sm":"border-[var(--dash-border)] bg-[var(--dash-bg)] opacity-50"}`,children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r?h.jsx("svg",{className:"w-5 h-5 text-[var(--dash-accent)]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):h.jsx("svg",{className:"w-5 h-5 text-[var(--dash-text-muted)]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),h.jsx("h4",{className:"font-medium text-[var(--dash-text)]",children:i(e)})]}),h.jsx("p",{className:"text-sm text-[var(--dash-text-muted)] leading-relaxed",children:i(t)})]})},J8=({selectedKit:n,onKitSelect:e,onInstall:t,installing:r})=>{const{t:i}=ce(),[s,o]=g.useState(1);return h.jsxs("div",{className:"space-y-6","data-testid":"install-wizard",children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx(oc,{number:1,active:s===1,label:i("stepChooseKit")}),h.jsx("div",{className:"flex-1 h-px bg-[var(--dash-border)]"}),h.jsx(oc,{number:2,active:s===2,label:i("stepConfigure")}),h.jsx("div",{className:"flex-1 h-px bg-[var(--dash-border)]"}),h.jsx(oc,{number:3,active:s===3,label:i("stepInstall")})]}),h.jsxs("div",{className:"min-h-[200px]",children:[s===1&&h.jsx(Y8,{onSelect:e,selected:n}),s===2&&n&&h.jsx(Q8,{kit:n}),s===3&&h.jsx(X8,{installing:r})]}),h.jsxs("div",{className:"flex justify-between pt-4 border-t border-[var(--dash-border)]",children:[s>1?h.jsx("button",{onClick:()=>o(a=>a-1),className:"px-4 py-2 text-sm font-medium text-[var(--dash-text)] bg-[var(--dash-surface)] border border-[var(--dash-border)] rounded-lg hover:bg-[var(--dash-surface-hover)] transition-colors","data-testid":"wizard-back",children:i("back")}):h.jsx("div",{}),s<3&&n&&h.jsx("button",{onClick:()=>o(a=>a+1),className:"px-4 py-2 text-sm font-medium text-white bg-[var(--dash-accent)] rounded-lg hover:opacity-90 transition-opacity","data-testid":"wizard-next",children:i("next")}),s===3&&h.jsx("button",{onClick:t,disabled:r,className:"px-4 py-2 text-sm font-medium text-white bg-[var(--dash-accent)] rounded-lg hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed","data-testid":"wizard-install",children:i("install")})]})]})},oc=({number:n,active:e,label:t})=>h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold transition-colors ${e?"bg-[var(--dash-accent)] text-white":"bg-[var(--dash-surface)] text-[var(--dash-text-muted)] border border-[var(--dash-border)]"}`,children:n}),h.jsx("span",{className:`text-sm font-medium ${e?"text-[var(--dash-text)]":"text-[var(--dash-text-muted)]"}`,children:t})]}),Y8=({onSelect:n,selected:e})=>{const{t}=ce();return h.jsxs("div",{className:"space-y-4",children:[h.jsx("p",{className:"text-[var(--dash-text-muted)]",children:e?`Selected: ${e===Qt.ENGINEER?t("kitEngineerName"):t("kitMarketingName")}`:"Please select a kit above"}),e&&h.jsxs("button",{type:"button",onClick:()=>n(e===Qt.ENGINEER?Qt.MARKETING:Qt.ENGINEER),className:"text-sm text-[var(--dash-accent)] hover:underline",children:["Switch to ",e===Qt.ENGINEER?t("kitMarketingName"):t("kitEngineerName")]})]})},Q8=()=>h.jsx("div",{className:"text-[var(--dash-text-muted)]",children:"Configuration preview placeholder"}),X8=({installing:n})=>h.jsx("div",{className:"text-[var(--dash-text-muted)]",children:n?"Installing...":"Ready to install"}),Z8=({kit:n,onGetStarted:e})=>{const{t}=ce(),r=an(),i=n===Qt.ENGINEER?"kitEngineerName":n===Qt.MARKETING?"kitMarketingName":"kitEngineerName";return h.jsxs("div",{className:"text-center py-12 space-y-6","data-testid":"success-screen",children:[h.jsx("div",{className:"w-16 h-16 mx-auto bg-green-100 rounded-full flex items-center justify-center",children:h.jsx("svg",{className:"w-10 h-10 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}),h.jsx("h2",{className:"text-2xl font-bold text-[var(--dash-text)]",children:t("installSuccess")}),h.jsx("p",{className:"text-[var(--dash-text-muted)] max-w-md mx-auto",children:t("installSuccessDesc").replace("{kit}",t(i))}),h.jsxs("div",{className:"flex gap-4 justify-center pt-4",children:[h.jsx("button",{onClick:e,className:"px-6 py-2.5 text-sm font-medium text-white bg-[var(--dash-accent)] rounded-lg hover:opacity-90 transition-opacity","data-testid":"get-started-btn",children:t("getStarted")}),h.jsx("button",{onClick:()=>r("/"),className:"px-6 py-2.5 text-sm font-medium text-[var(--dash-text)] bg-[var(--dash-surface)] border border-[var(--dash-border)] rounded-lg hover:bg-[var(--dash-surface-hover)] transition-colors","data-testid":"dashboard-btn",children:t("goToDashboard")})]})]})},eN=[{id:"agents",name:"featureAgents",description:"featureAgentsDesc",engineer:!0,marketing:!0},{id:"hooks",name:"featureHooks",description:"featureHooksDesc",engineer:!0,marketing:!0},{id:"skills",name:"featureSkills",description:"featureSkillsDesc",engineer:!0,marketing:!0},{id:"multiagent",name:"featureMultiAgent",description:"featureMultiAgentDesc",engineer:!0,marketing:!1},{id:"content",name:"featureContent",description:"featureContentDesc",engineer:!1,marketing:!0},{id:"social",name:"featureSocial",description:"featureSocialDesc",engineer:!1,marketing:!0}],mx={engineer:{id:"engineer",name:"kitEngineerName",tagline:"kitEngineerTagline",primaryColor:"text-blue-500",features:["agents","hooks","skills","multiagent"]},marketing:{id:"marketing",name:"kitMarketingName",tagline:"kitMarketingTagline",primaryColor:"text-purple-500",features:["agents","hooks","skills","content","social"]}};function tN(n){const e=mx[n];return e?eN.filter(t=>e.features.includes(t.id)):(console.warn(`Unknown kit type: ${n}`),[])}const nN=({kit:n,selected:e,onSelect:t,features:r})=>{const{t:i}=ce();return h.jsxs("button",{type:"button",onClick:t,className:`p-6 rounded-lg border-2 text-left transition-all w-full ${e?"border-[var(--dash-accent)] bg-[var(--dash-surface)] shadow-md":"border-[var(--dash-border)] hover:border-[var(--dash-accent)]/50"}`,children:[h.jsx("h3",{className:`text-xl font-bold ${n.primaryColor}`,children:i(n.name)}),h.jsx("p",{className:"text-[var(--dash-text-muted)] mt-1",children:i(n.tagline)}),h.jsx("div",{className:"mt-4 space-y-2",children:r.slice(0,3).map(s=>h.jsx(q8,{featureId:s.id,name:s.name,description:s.description,included:!0},s.id))})]})},rN=()=>{const{t:n}=ce(),e=an(),[t,r]=g.useState(null),[i,s]=g.useState(!1),[o,a]=g.useState(!1),[l,c]=g.useState(null),d=async()=>{if(t){s(!0),c(null);try{const f=await fetch("/api/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kit:t})});if(!f.ok)throw new Error(`Installation failed: ${f.statusText}`);a(!0)}catch(f){const p=f instanceof Error?f.message:"Unknown error occurred";c(p),console.error("Install failed:",f)}finally{s(!1)}}};if(o&&t)return h.jsx(Z8,{kit:t,onGetStarted:()=>e("/")});const u=f=>f==="engineer"?Qt.ENGINEER:Qt.MARKETING;return h.jsxs("div",{className:"max-w-4xl mx-auto py-8 px-4",children:[h.jsxs("header",{className:"text-center mb-8",children:[h.jsx("h1",{className:"text-3xl font-bold text-[var(--dash-text)]",children:n("onboardingTitle")}),h.jsx("p",{className:"mt-2 text-[var(--dash-text-muted)]",children:n("onboardingSubtitle")})]}),h.jsx("section",{className:"grid md:grid-cols-2 gap-6 mb-8",children:Object.values(mx).map(f=>{const p=u(f.id);return h.jsx(nN,{kit:f,selected:t===p,onSelect:()=>r(p),features:tN(f.id)},f.id)})}),l&&h.jsxs("div",{className:"mb-6 p-4 rounded-lg bg-red-100 border border-red-300 text-red-800",children:[h.jsx("p",{className:"font-medium",children:"Installation Error"}),h.jsx("p",{className:"text-sm mt-1",children:l}),h.jsx("button",{type:"button",onClick:()=>c(null),className:"mt-2 text-sm underline hover:no-underline",children:"Dismiss"})]}),t&&h.jsx(J8,{selectedKit:t,onKitSelect:r,onInstall:d,installing:i})]})},iN=()=>{const{t:n}=ce(),e=an(),{projectId:t}=Mm(),[r,i]=g.useState(null),{sizes:s,isDragging:o,startDrag:a}=lh({storageKey:"claudekit-project-config-panels",defaultSizes:[35,40,25],minSizes:[20,25,15]}),l=g.useCallback(async()=>{if(!t)throw new Error("No project ID");const[b,x,w]=await Promise.all([ap("project",t),ap("global"),wh()]),v=w.find(S=>S.id===t);return v&&i(v.path),{...b,global:x.config??{}}},[t]),c=g.useCallback(async b=>{t&&await Vb({scope:"project",projectId:t,config:b})},[t]),d=Fb({scope:"project",fetchConfig:l,fetchSchema:zb,saveConfig:c}),u=g.useCallback(b=>{const x=fc(d.config,b),w=fc(d.globalConfig,b);return x!==void 0&&w!==void 0&&x!==w},[d.config,d.globalConfig]),f=g.useMemo(()=>[{id:"paths",title:n("sectionPaths"),fields:[{path:"paths.docs",label:n("fieldDocsPath"),description:n("fieldDocsPathDesc")},{path:"paths.plans",label:n("fieldPlansPath"),description:n("fieldPlansPathDesc")}]},{id:"project",title:n("sectionProject"),fields:[{path:"project.type",label:n("fieldProjectType"),description:n("fieldProjectTypeDesc")},{path:"project.packageManager",label:n("fieldPackageManager"),description:n("fieldPackageManagerDesc")},{path:"project.framework",label:n("fieldFramework"),description:n("fieldFrameworkDesc")}]},{id:"privacy",title:n("sectionPrivacy"),defaultCollapsed:!0,fields:[{path:"privacyBlock",label:n("fieldPrivacyBlock"),description:n("fieldPrivacyBlockDesc")}]},{id:"advanced",title:n("sectionAdvanced"),defaultCollapsed:!0,fields:[{path:"docs.maxLoc",label:n("fieldDocsMaxLoc"),description:n("fieldDocsMaxLocDesc")},{path:"plan.namingFormat",label:n("fieldPlanNamingFormat"),description:n("fieldPlanNamingFormatDesc")}]}],[n]),p=d.activeFieldPath&&u(d.activeFieldPath)?h.jsx("span",{className:"text-[9px] bg-orange-500/10 text-orange-500 px-1.5 py-0.5 rounded font-bold border border-orange-500/30",children:n("localOverride")}):null,m=d.fieldDoc?h.jsxs("section",{className:"bg-blue-500/5 p-3 rounded-lg border border-blue-500/20",children:[h.jsx("h4",{className:"text-[10px] font-bold text-blue-500 uppercase tracking-widest mb-1",children:n("inheritedFromGlobal")}),h.jsxs("p",{className:"text-[12px] text-dash-text-secondary leading-normal",children:[n("viewGlobalConfig")," ",h.jsx("button",{onClick:()=>e("/config/global"),className:"text-dash-accent hover:underline font-medium",children:n("globalConfig")})]})]}):null;return h.jsxs("div",{className:"animate-in fade-in duration-300 w-full h-full flex flex-col transition-colors",children:[h.jsx(Vm,{title:n("projectConfig"),filePath:r?`${r}/.claude/.ck.json`:".claude/.ck.json",onBack:()=>e(`/project/${t}`),onSave:d.handleSave,onReset:d.handleReset,saveStatus:d.saveStatus,syntaxError:d.syntaxError,showResetConfirm:d.showResetConfirm,setShowResetConfirm:d.setShowResetConfirm}),h.jsxs("div",{className:"flex-1 flex min-h-0",children:[h.jsx(zm,{width:s[0],isLoading:d.isLoading,schema:d.schema,config:d.config,sources:d.sources,sections:f,onChange:d.handleFormChange}),h.jsx(Pr,{direction:"horizontal",isDragging:o,onMouseDown:b=>a(0,b)}),h.jsx(rd,{width:s[1],isLoading:d.isLoading,jsonText:d.jsonText,cursorLine:d.cursorLine,syntaxError:d.syntaxError,onChange:d.handleJsonChange,onCursorLineChange:d.setCursorLine}),h.jsx(Pr,{direction:"horizontal",isDragging:o,onMouseDown:b=>a(1,b)}),h.jsx(Ib,{width:s[2],fieldDoc:d.fieldDoc,activeFieldPath:d.activeFieldPath,overrideBadge:p,extraContent:m})]})]})},Ot="__global__",sN=({project:n})=>{const{t:e}=ce(),t=an(),{skills:r,loading:i}=Mv(),{sessions:s,loading:o}=Dv(n.id),[a,l]=g.useState(null),[c,d]=g.useState(!0),[u,f]=g.useState(null),[p,m]=g.useState(Ot),[b,x]=g.useState(Ot),w=async(N,L)=>{try{await kv(N,n.path,L,n.id)}catch(W){alert(`${e("actionFailed")}: ${W instanceof Error?W.message:N}`)}},v=g.useCallback(()=>{const N=new AbortController;return d(!0),f(null),wv(n.id,N.signal).then(L=>{l(L),m(L.preferences.project.terminalApp||Ot),x(L.preferences.project.editorApp||Ot)}).catch(L=>{L instanceof DOMException&&L.name==="AbortError"||(l(null),m(Ot),x(Ot),f(e("actionOptionsLoadFailed")))}).finally(()=>{N.signal.aborted||d(!1)}),N},[n.id,e]);g.useEffect(()=>{const N=v();return()=>{N.abort()}},[v]);const S=r.filter(N=>n.skills.includes(N.id)),j=a?.terminals||[],k=a?.editors||[],O=j.find(N=>N.id===a?.defaults.terminalApp)?.label||a?.defaults.terminalApp,y=k.find(N=>N.id===a?.defaults.editorApp)?.label||a?.defaults.editorApp,D=g.useMemo(()=>j.find(N=>p===Ot?N.id===a?.defaults.terminalApp:N.id===p),[j,p,a?.defaults.terminalApp]),A=g.useMemo(()=>k.find(N=>b===Ot?N.id===a?.defaults.editorApp:N.id===b),[k,b,a?.defaults.editorApp]),R=async(N,L)=>{if(!n.id.startsWith("discovered-"))try{await Fm(n.id,{preferences:{[N]:L===Ot?null:L}})}catch(W){const F=W instanceof Error?W.message:"Failed to save preference";alert(`${e("actionFailed")}: ${F}`)}};return h.jsxs("div",{className:"animate-in fade-in slide-in-from-bottom-2 duration-500 transition-colors flex flex-col h-full",children:[h.jsx("section",{className:"mb-6 shrink-0",children:h.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-4",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[h.jsx("h1",{className:"text-3xl font-bold tracking-tight text-dash-text",children:n.name}),h.jsx(oN,{status:n.health}),h.jsx(RC,{variant:"beta"})]}),h.jsxs("p",{className:"text-dash-text-secondary mono text-sm flex items-center gap-2 italic",children:[h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})}),n.path]})]}),h.jsx("div",{className:"flex items-center gap-3",children:h.jsx("span",{className:"text-[10px] text-dash-text-muted font-bold uppercase tracking-widest bg-dash-surface border border-dash-border px-2 py-1 rounded",children:s.length>0?`${s.length} ${e("sessions")}`:e("noSessions")})})]})}),h.jsxs("section",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-6 shrink-0",children:[u?h.jsxs("div",{className:"col-span-2 md:col-span-4 rounded-lg border border-orange-500/30 bg-orange-500/5 px-3 py-2 text-xs text-orange-700 dark:text-orange-300 flex items-center justify-between gap-3",children:[h.jsx("span",{children:u}),h.jsx("button",{onClick:()=>void v(),className:"rounded border border-orange-500/40 px-2 py-1 font-semibold hover:bg-orange-500/10 transition-colors",children:e("tryAgain")})]}):null,h.jsx(tm,{icon:"📟",label:e("terminal"),sub:D?`${D.openMode==="open-app"?e("openAppOnly"):e("openAtPath")} • ${D.label}`:e("terminalSub"),onClick:()=>w("terminal",p===Ot?void 0:p),disabled:c||!D&&j.length>0,options:j,value:p,fallbackLabel:a?`${e("useGlobalFallback")} (${O})`:e("useGlobalFallback"),onChange:async N=>{m(N),await R("terminalApp",N)}}),h.jsx(tm,{icon:"💻",label:e("editor"),sub:A?`${A.openMode==="open-app"?e("openAppOnly"):e("openAtPath")} • ${A.label}`:e("editorSub"),onClick:()=>w("editor",b===Ot?void 0:b),disabled:c||!A&&k.length>0,options:k,value:b,fallbackLabel:a?`${e("useGlobalFallback")} (${y})`:e("useGlobalFallback"),onChange:async N=>{x(N),await R("editorApp",N)}}),h.jsx(ch,{icon:"🤖",label:e("launch"),sub:e("launchSub"),highlight:!0,onClick:()=>w("launch")}),h.jsx(ch,{icon:"⚙️",label:e("config"),sub:e("configSub"),onClick:()=>t(`/config/project/${n.id}`)})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 flex-1 min-h-0",children:[h.jsx("div",{className:"lg:col-span-2 flex flex-col gap-6 min-h-0",children:h.jsxs("div",{className:"bg-dash-surface border border-dash-border rounded-xl overflow-hidden shadow-sm flex-1 flex flex-col min-h-0",children:[h.jsx("div",{className:"px-4 py-3 border-b border-dash-border flex items-center justify-between bg-dash-surface-hover/50 shrink-0",children:h.jsx("h3",{className:"text-sm font-bold text-dash-text-secondary uppercase tracking-widest",children:e("recentSessions")})}),h.jsx("div",{className:"divide-y divide-dash-border overflow-y-auto flex-1",children:o?h.jsx("div",{className:"p-4 text-center text-dash-text-muted animate-pulse",children:e("loadingSessions")}):s.length===0?h.jsx("div",{className:"p-4 text-center text-dash-text-muted",children:e("noSessionsFound")}):s.map(N=>h.jsxs("div",{className:"p-4 hover:bg-dash-surface-hover transition-colors group cursor-pointer",children:[h.jsxs("div",{className:"flex items-center justify-between mb-1",children:[h.jsx("span",{className:"text-xs font-bold text-dash-accent",children:N.timestamp}),h.jsx("span",{className:"text-[10px] text-dash-text-muted font-medium group-hover:text-dash-text-secondary transition-colors",children:N.duration})]}),h.jsx("p",{className:"text-sm text-dash-text-secondary leading-relaxed truncate",children:N.summary})]},N.id))})]})}),h.jsxs("div",{className:"flex flex-col gap-6 min-h-0",children:[h.jsxs("div",{className:"bg-dash-surface border border-dash-border rounded-xl p-6 shadow-sm shrink-0",children:[h.jsxs("h3",{className:"text-sm font-bold text-dash-text-secondary uppercase tracking-widest mb-4 flex items-center gap-2",children:[e("configuration"),h.jsx("span",{className:"text-[10px] font-normal text-dash-text-muted normal-case",children:e("globalSettings")})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsx(Fo,{label:e("activeKit"),value:n.kitType}),h.jsx(Fo,{label:e("aiModel"),value:n.model}),h.jsx(Fo,{label:e("hooks"),value:`${n.activeHooks} ${e("active")}`}),h.jsx(Fo,{label:e("mcpServers"),value:`${n.mcpServers} ${e("connected")}`})]}),h.jsx("button",{onClick:()=>t(`/config/project/${n.id}`),className:"w-full mt-6 py-2 rounded-lg bg-dash-bg text-xs font-bold text-dash-text-secondary hover:bg-dash-surface-hover transition-colors border border-dash-border",children:e("editProjectConfig")})]}),h.jsxs("div",{className:"bg-dash-surface border border-dash-border rounded-xl shadow-sm flex flex-col flex-1 min-h-0",children:[h.jsx("div",{className:"p-4 pb-2 border-b border-dash-border shrink-0",children:h.jsxs("h3",{className:"text-sm font-bold text-dash-text-secondary uppercase tracking-widest flex items-center justify-between",children:[e("globalSkills"),h.jsx("span",{className:"text-[10px] bg-dash-accent-subtle text-dash-accent px-1.5 py-0.5 rounded-full",children:i?"...":r.length})]})}),h.jsx("div",{className:"overflow-y-auto flex-1 px-4 py-2 space-y-2",children:i?h.jsx("div",{className:"text-center text-dash-text-muted animate-pulse py-4",children:e("loadingSkills")}):(S.length>0?S:r).map(N=>h.jsxs("div",{className:"flex flex-col gap-0.5 border-l-2 border-dash-accent/20 pl-3 py-1",children:[h.jsx("span",{className:"text-sm font-semibold text-dash-text",children:N.name}),h.jsx("p",{className:"text-[10px] text-dash-text-muted leading-tight line-clamp-1",children:N.description||e("noDescription")})]},N.id))}),h.jsx("div",{className:"p-4 pt-2 border-t border-dash-border shrink-0",children:h.jsxs("a",{href:"https://kits.vibery.app/",target:"_blank",rel:"noopener noreferrer",className:"text-xs font-bold text-dash-text-muted hover:text-dash-accent transition-colors text-center block",children:[e("browseSkillsMarketplace")," →"]})})]})]})]})]})},oN=({status:n})=>{const e={[Pn.HEALTHY]:"bg-dash-accent-subtle text-dash-accent border-dash-accent/20",[Pn.WARNING]:"bg-orange-500/10 text-orange-600 border-orange-500/20",[Pn.ERROR]:"bg-red-500/10 text-red-600 border-red-500/20",[Pn.LOADING]:"bg-dash-border/20 text-dash-text-muted border-dash-border",[Pn.UNKNOWN]:"bg-dash-border/20 text-dash-text-muted border-dash-border"};return h.jsx("span",{className:`px-2 py-0.5 rounded-full text-[10px] font-bold border uppercase tracking-widest ${e[n]}`,children:n})},tm=({icon:n,label:e,sub:t,disabled:r,options:i,value:s,fallbackLabel:o,onClick:a,onChange:l})=>h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx(ch,{icon:n,label:e,sub:t,onClick:a,disabled:r}),h.jsxs("select",{value:s,onChange:c=>void l(c.target.value),className:"w-full rounded-md border border-dash-border bg-dash-surface px-2 py-1 text-xs text-dash-text-secondary",children:[h.jsx("option",{value:Ot,children:o}),i.map(c=>h.jsx("option",{value:c.id,disabled:!c.available,children:`${c.label} • ${c.detected?"Detected":"Not detected"}`},c.id))]})]}),ch=({icon:n,label:e,sub:t,highlight:r,onClick:i,disabled:s})=>h.jsxs("button",{onClick:i,disabled:s,className:`p-4 rounded-xl border flex flex-col gap-1 transition-all group ${r?"bg-dash-accent-subtle border-dash-accent/30 hover:bg-dash-accent-glow hover:border-dash-accent/50 shadow-sm shadow-dash-accent/5":"bg-dash-surface border-dash-border hover:bg-dash-surface-hover hover:border-dash-text-muted shadow-sm"} ${s?"opacity-50 cursor-not-allowed":""}`,children:[h.jsx("span",{className:"text-2xl mb-1 group-hover:scale-110 transition-transform",children:n}),h.jsx("span",{className:"text-sm font-bold text-dash-text",children:e}),h.jsx("span",{className:"text-[10px] text-dash-text-muted font-medium truncate italic",children:t})]}),Fo=({label:n,value:e})=>h.jsxs("div",{className:"flex items-center justify-between text-xs py-1.5 border-b border-dash-border/50 last:border-0",children:[h.jsx("span",{className:"text-dash-text-muted font-medium",children:n}),h.jsx("span",{className:"text-dash-text font-bold mono uppercase text-[10px] tracking-tight",children:e})]}),aN=()=>{const{t:n}=ce(),{project:e}=r1();return e?h.jsx(sN,{project:e}):h.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4 opacity-50",children:[h.jsx("div",{className:"w-16 h-16 rounded-full bg-dash-surface border border-dash-border flex items-center justify-center",children:h.jsx("span",{className:"text-2xl text-dash-text-muted",children:"📂"})}),h.jsx("p",{className:"text-lg text-dash-text-secondary font-bold",children:n("selectProject")})]})},lN=X1([{path:"/",element:h.jsx(Rv,{}),children:[{index:!0,element:h.jsx(il,{to:"/config/global",replace:!0})},{path:"config/global",element:h.jsx(ZC,{})},{path:"config/project/:projectId",element:h.jsx(iN,{})},{path:"project/:projectId",element:h.jsx(aN,{})},{path:"onboarding",element:h.jsx(rN,{})},{path:"migrate",element:h.jsx(G8,{})},{path:"kanban",element:h.jsx(nj,{})},{path:"skills",element:h.jsx(il,{to:"/migrate",replace:!0})},{path:"*",element:h.jsx(il,{to:"/",replace:!0})}]}]),gx=document.getElementById("root");if(!gx)throw document.body.innerHTML='<div style="padding:20px;color:red;">Fatal: Root element not found</div>',new Error("Root element #root not found");ac.createRoot(gx).render(h.jsx(Dx.StrictMode,{children:h.jsx(pv,{children:h.jsx(mv,{children:h.jsx(dv,{router:lN})})})}));