wsb 0.83.223988

Workspace - A tool suite for file operations, version management, and development workflow automation
Documentation
var Rs=Object.defineProperty;var Ls=(l,t,n)=>t in l?Rs(l,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):l[t]=n;var ll=(l,t,n)=>Ls(l,typeof t!="symbol"?t+"":t,n);function Fe(){}function Ts(l){return l()}function dl(){return Object.create(null)}function lt(l){l.forEach(Ts)}function As(l){return typeof l=="function"}function _t(l,t){return l!=l?t==t:l!==t||l&&typeof l=="object"||typeof l=="function"}function js(l){return Object.keys(l).length===0}function Ps(l,...t){if(l==null){for(const i of t)i(void 0);return Fe}const n=l.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Dt(l,t,n){l.$$.on_destroy.push(Ps(t,n))}function e(l,t){l.appendChild(t)}function U(l,t,n){l.insertBefore(t,n||null)}function O(l){l.parentNode&&l.parentNode.removeChild(l)}function je(l,t){for(let n=0;n<l.length;n+=1)l[n]&&l[n].d(t)}function a(l){return document.createElement(l)}function vt(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function A(l){return document.createTextNode(l)}function f(){return A(" ")}function Zt(){return A("")}function $(l,t,n,i){return l.addEventListener(t,n,i),()=>l.removeEventListener(t,n,i)}function Ds(l){return function(t){return t.stopPropagation(),l.call(this,t)}}function s(l,t,n){n==null?l.removeAttribute(t):l.getAttribute(t)!==n&&l.setAttribute(t,n)}function wt(l){return l===""?null:+l}function Ns(l){return Array.from(l.childNodes)}function H(l,t){t=""+t,l.data!==t&&(l.data=t)}function ve(l,t){l.value=t??""}function tt(l,t,n,i){n==null?l.style.removeProperty(t):l.style.setProperty(t,n,"")}function it(l,t,n){for(let i=0;i<l.options.length;i+=1){const r=l.options[i];if(r.__value===t){r.selected=!0;return}}(!n||t!==void 0)&&(l.selectedIndex=-1)}function Tt(l){const t=l.querySelector(":checked");return t&&t.__value}function Te(l,t,n){l.classList.toggle(t,!!n)}let Kt;function Jt(l){Kt=l}function $s(){if(!Kt)throw new Error("Function called outside component initialization");return Kt}function Ft(l){$s().$$.on_mount.push(l)}function Os(l,t){const n=l.$$.callbacks[t.type];n&&n.slice().forEach(i=>i.call(this,t))}const qt=[],ul=[];let zt=[];const fl=[],Us=Promise.resolve();let sl=!1;function Ws(){sl||(sl=!0,Us.then(Ms))}function mt(l){zt.push(l)}const nl=new Set;let Wt=0;function Ms(){if(Wt!==0)return;const l=Kt;do{try{for(;Wt<qt.length;){const t=qt[Wt];Wt++,Jt(t),Vs(t.$$)}}catch(t){throw qt.length=0,Wt=0,t}for(Jt(null),qt.length=0,Wt=0;ul.length;)ul.pop()();for(let t=0;t<zt.length;t+=1){const n=zt[t];nl.has(n)||(nl.add(n),n())}zt.length=0}while(qt.length);for(;fl.length;)fl.pop()();sl=!1,nl.clear(),Jt(l)}function Vs(l){if(l.fragment!==null){l.update(),lt(l.before_update);const t=l.dirty;l.dirty=[-1],l.fragment&&l.fragment.p(l.ctx,t),l.after_update.forEach(mt)}}function qs(l){const t=[],n=[];zt.forEach(i=>l.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),zt=t}const xt=new Set;let Et;function Is(){Et={r:0,c:[],p:Et}}function Fs(){Et.r||lt(Et.c),Et=Et.p}function dt(l,t){l&&l.i&&(xt.delete(l),l.i(t))}function ht(l,t,n,i){if(l&&l.o){if(xt.has(l))return;xt.add(l),Et.c.push(()=>{xt.delete(l),i&&(n&&l.d(1),i())}),l.o(t)}else i&&i()}function re(l){return(l==null?void 0:l.length)!==void 0?l:Array.from(l)}function St(l){l&&l.c()}function bt(l,t,n){const{fragment:i,after_update:r}=l.$$;i&&i.m(t,n),mt(()=>{const c=l.$$.on_mount.map(Ts).filter(As);l.$$.on_destroy?l.$$.on_destroy.push(...c):lt(c),l.$$.on_mount=[]}),r.forEach(mt)}function kt(l,t){const n=l.$$;n.fragment!==null&&(qs(n.after_update),lt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Bs(l,t){l.$$.dirty[0]===-1&&(qt.push(l),Ws(),l.$$.dirty.fill(0)),l.$$.dirty[t/31|0]|=1<<t%31}function yt(l,t,n,i,r,c,o=null,u=[-1]){const d=Kt;Jt(l);const p=l.$$={fragment:null,ctx:[],props:c,update:Fe,not_equal:r,bound:dl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:dl(),dirty:u,skip_bound:!1,root:t.target||d.$$.root};o&&o(p.root);let v=!1;if(p.ctx=n?n(l,t.props||{},(h,g,..._)=>{const C=_.length?_[0]:g;return p.ctx&&r(p.ctx[h],p.ctx[h]=C)&&(!p.skip_bound&&p.bound[h]&&p.bound[h](C),v&&Bs(l,h)),g}):[],p.update(),v=!0,lt(p.before_update),p.fragment=i?i(p.ctx):!1,t.target){if(t.hydrate){const h=Ns(t.target);p.fragment&&p.fragment.l(h),h.forEach(O)}else p.fragment&&p.fragment.c();t.intro&&dt(l.$$.fragment),bt(l,t.target,t.anchor),Ms()}Jt(d)}class Ct{constructor(){ll(this,"$$");ll(this,"$$set")}$destroy(){kt(this,1),this.$destroy=Fe}$on(t,n){if(!As(n))return Fe;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!js(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const zs="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zs);const Vt=[];function Ht(l,t=Fe){let n;const i=new Set;function r(u){if(_t(l,u)&&(l=u,n)){const d=!Vt.length;for(const p of i)p[1](),Vt.push(p,l);if(d){for(let p=0;p<Vt.length;p+=2)Vt[p][0](Vt[p+1]);Vt.length=0}}}function c(u){r(u(l))}function o(u,d=Fe){const p=[u,d];return i.add(p),i.size===1&&(n=t(r,c)||Fe),u(l),()=>{i.delete(p),i.size===0&&n&&(n(),n=null)}}return{set:r,update:c,subscribe:o}}const Gs=Ht({name:"Workspace Project",description:"Development Tool Suite",version:"0.44.68455"}),Es=Ht([]),el=Ht([]),Qs=Ht([]),Zs=Ht([]),Js=Ht([]),Hs=Ht({currentTask:"Analyzing project state",contextUsage:47,model:"Claude Sonnet 4",sessionDuration:"12m 34s",recentActions:[]});function pl(l,t,n){const i=l.slice();return i[5]=t[n],i}function vl(l){let t,n,i;function r(){return l[4](l[5])}return{c(){t=a("button"),t.textContent=`${l[5].label} `,s(t,"class","nav-item"),Te(t,"active",l[0]===l[5].id)},m(c,o){U(c,t,o),n||(i=$(t,"click",r),n=!0)},p(c,o){l=c,o&9&&Te(t,"active",l[0]===l[5].id)},d(c){c&&O(t),n=!1,i()}}}function Ks(l){let t,n,i,r,c,o,u,d,p=l[2].model+"",v,h,g,_,C=l[2].contextUsage+"",m,w,k=re(l[3]),y=[];for(let b=0;b<k.length;b+=1)y[b]=vl(pl(l,k,b));return{c(){t=a("header"),n=a("div"),i=a("div"),i.innerHTML="<h1>Workspace</h1>",r=f(),c=a("nav");for(let b=0;b<y.length;b+=1)y[b].c();o=f(),u=a("div"),d=a("span"),v=A(p),h=f(),g=a("span"),_=A("Context: "),m=A(C),w=A("%"),s(i,"class","brand"),s(u,"class","status"),s(n,"class","header-content")},m(b,T){U(b,t,T),e(t,n),e(n,i),e(n,r),e(n,c);for(let S=0;S<y.length;S+=1)y[S]&&y[S].m(c,null);e(n,o),e(n,u),e(u,d),e(d,v),e(u,h),e(u,g),e(g,_),e(g,m),e(g,w)},p(b,[T]){if(T&11){k=re(b[3]);let S;for(S=0;S<k.length;S+=1){const D=pl(b,k,S);y[S]?y[S].p(D,T):(y[S]=vl(D),y[S].c(),y[S].m(c,null))}for(;S<y.length;S+=1)y[S].d(1);y.length=k.length}T&4&&p!==(p=b[2].model+"")&&H(v,p),T&4&&C!==(C=b[2].contextUsage+"")&&H(m,C)},i:Fe,o:Fe,d(b){b&&O(t),je(y,b)}}}function Ys(l,t,n){let i;Dt(l,Hs,d=>n(2,i=d));let{currentView:r}=t,{switchView:c}=t;const o=[{id:"overview",label:"Overview"},{id:"sessions",label:"Sessions"},{id:"issues",label:"Issues"},{id:"features",label:"Features"},{id:"workspace",label:"Workspace"},{id:"testing",label:"Testing"},{id:"entities",label:"Entities"},{id:"analytics",label:"Analytics"},{id:"settings",label:"Settings"}],u=d=>c(d.id);return l.$$set=d=>{"currentView"in d&&n(0,r=d.currentView),"switchView"in d&&n(1,c=d.switchView)},[r,c,i,o,u]}class Xs extends Ct{constructor(t){super(),yt(this,t,Ys,Ks,_t,{currentView:0,switchView:1})}}function hl(l,t,n){const i=l.slice();return i[4]=t[n],i}function gl(l){let t,n,i,r,c;return{c(){t=a("div"),t.innerHTML='<div class="timeline-time">12:36</div> <div class="timeline-description">ADE overview dashboard implemented</div> <div class="timeline-type badge badge--small">Feature</div>',n=f(),i=a("div"),i.innerHTML='<div class="timeline-time">12:35</div> <div class="timeline-description">Svelte components analyzed</div> <div class="timeline-type badge badge--small">Analysis</div>',r=f(),c=a("div"),c.innerHTML='<div class="timeline-time">12:34</div> <div class="timeline-description">Session initialized successfully</div> <div class="timeline-type badge badge--small">System</div> ',s(t,"class","timeline-item"),s(i,"class","timeline-item"),s(c,"class","timeline-item")},m(o,u){U(o,t,u),U(o,n,u),U(o,i,u),U(o,r,u),U(o,c,u)},p:Fe,d(o){o&&(O(t),O(n),O(i),O(r),O(c))}}}function ml(l){let t,n,i=l[4].time+"",r,c,o,u=l[4].description+"",d,p,v,h=(l[4].type||"System")+"",g,_;return{c(){t=a("div"),n=a("div"),r=A(i),c=f(),o=a("div"),d=A(u),p=f(),v=a("div"),g=A(h),_=f(),s(n,"class","timeline-time"),s(o,"class","timeline-description"),s(v,"class","timeline-type badge badge--small"),s(t,"class","timeline-item")},m(C,m){U(C,t,m),e(t,n),e(n,r),e(t,c),e(t,o),e(o,d),e(t,p),e(t,v),e(v,g),e(t,_)},p(C,m){m&1&&i!==(i=C[4].time+"")&&H(r,i),m&1&&u!==(u=C[4].description+"")&&H(d,u),m&1&&h!==(h=(C[4].type||"System")+"")&&H(g,h)},d(C){C&&O(t)}}}function xs(l){let t,n,i,r,c,o,u=l[1].name+"",d,p,v,h=l[1].description+"",g,_,C,m,w=l[1].version+"",k,y,b,T,S,D,M,I,E,V,L,F,j,q=l[0].model+"",Z,P,R,z,x,se,W=l[0].currentTask+"",J,ce,N,ne,Y,ie,Q=l[0].sessionDuration+"",he,K,fe,te,de,X,ue,_e,le,ae,ge=l[0].contextUsage+"",oe,be,ye,Ee,Ne,Ae,G,Ce,ke=re(l[0].recentActions),Pe=[];for(let Me=0;Me<ke.length;Me+=1)Pe[Me]=ml(hl(l,ke,Me));let Oe=null;return ke.length||(Oe=gl()),{c(){t=a("div"),n=a("div"),i=a("div"),i.innerHTML='<h3 class="card__title">Project Status</h3> <div class="badge badge--success">Active</div>',r=f(),c=a("div"),o=a("div"),d=A(u),p=f(),v=a("div"),g=A(h),_=f(),C=a("div"),m=A("v"),k=A(w),y=f(),b=a("div"),b.innerHTML='<div class="stat-box"><div class="stat-header"><div class="stat-title">Implementation Progress</div> <div class="stat-indicator success">56%</div></div> <div class="stat-content"><span class="metric-number">179</span> <span class="metric-label">Implemented</span></div> <div class="stat-progress"><div class="progress-bar"><div class="progress-fill" style="width: 59.7%"></div></div> <div class="progress-text">121 remaining</div></div></div> <div class="stat-box"><div class="stat-header"><div class="stat-title">Test Coverage</div> <div class="stat-indicator success">55%</div></div> <div class="stat-content"><span class="metric-number">163</span> <span class="metric-label">Tested</span></div> <div class="stat-progress"><div class="progress-bar"><div class="progress-fill success" style="width: 54.3%"></div></div> <div class="progress-text">137 pending</div></div></div> <div class="stat-box"><div class="stat-header"><div class="stat-title">Development Velocity</div> <div class="stat-indicator success">↗ +14.3</div></div> <div class="stat-content"><span class="metric-number">14.3</span> <span class="metric-label">features/week</span></div> <div class="stat-trend"><span class="trend-icon up">↗</span> <span class="trend-value up">+14.3</span></div></div> <div class="stat-box"><div class="stat-header"><div class="stat-title">Active Issues</div> <div class="stat-indicator info">0</div></div> <div class="stat-content"><span class="metric-number">0</span> <span class="metric-label">Issues</span></div></div>',T=f(),S=a("div"),D=a("div"),D.innerHTML='<h3 class="card__title">Active Session</h3> <div class="badge badge--success">Online</div>',M=f(),I=a("div"),E=a("div"),V=a("div"),L=a("span"),L.textContent="AI Agent:",F=f(),j=a("span"),Z=A(q),P=f(),R=a("div"),z=a("span"),z.textContent="Current Task:",x=f(),se=a("span"),J=A(W),ce=f(),N=a("div"),ne=a("span"),ne.textContent="Duration:",Y=f(),ie=a("span"),he=A(Q),K=f(),fe=a("div"),te=a("span"),te.textContent="Context Usage:",de=f(),X=a("div"),ue=a("div"),_e=a("div"),le=f(),ae=a("span"),oe=A(ge),be=A("%"),ye=f(),Ee=a("div"),Ne=a("div"),Ne.innerHTML='<h3 class="card__title">Recent Activity</h3> <div class="badge badge--secondary">3 actions</div>',Ae=f(),G=a("div"),Ce=a("div");for(let Me=0;Me<Pe.length;Me+=1)Pe[Me].c();Oe&&Oe.c(),s(i,"class","card__header"),s(o,"class","project-name"),s(v,"class","project-description"),s(C,"class","project-version"),s(c,"class","project-info"),s(n,"class","card card--project card--span-2"),s(b,"class","stats-grid"),s(D,"class","card__header"),s(L,"class","label"),s(j,"class","value"),s(V,"class","session-item"),s(z,"class","label"),s(se,"class","value"),s(R,"class","session-item"),s(ne,"class","label"),s(ie,"class","value"),s(N,"class","session-item"),s(te,"class","label"),s(_e,"class","progress-bar__fill"),tt(_e,"width",l[0].contextUsage+"%"),s(ue,"class","progress-bar progress-bar--small"),s(ae,"class","context-percent"),Te(ae,"warning",l[0].contextUsage>80),s(X,"class","context-usage"),s(fe,"class","session-item"),s(E,"class","session-info"),s(I,"class","session-content"),s(S,"class","card card--session card--span-2"),s(Ne,"class","card__header"),s(Ce,"class","timeline"),s(G,"class","activity-content"),s(Ee,"class","card card--activity card--span-2"),s(t,"class","overview-container")},m(Me,Ve){U(Me,t,Ve),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o),e(o,d),e(c,p),e(c,v),e(v,g),e(c,_),e(c,C),e(C,m),e(C,k),e(t,y),e(t,b),e(t,T),e(t,S),e(S,D),e(S,M),e(S,I),e(I,E),e(E,V),e(V,L),e(V,F),e(V,j),e(j,Z),e(E,P),e(E,R),e(R,z),e(R,x),e(R,se),e(se,J),e(E,ce),e(E,N),e(N,ne),e(N,Y),e(N,ie),e(ie,he),e(E,K),e(E,fe),e(fe,te),e(fe,de),e(fe,X),e(X,ue),e(ue,_e),e(X,le),e(X,ae),e(ae,oe),e(ae,be),e(t,ye),e(t,Ee),e(Ee,Ne),e(Ee,Ae),e(Ee,G),e(G,Ce);for(let Re=0;Re<Pe.length;Re+=1)Pe[Re]&&Pe[Re].m(Ce,null);Oe&&Oe.m(Ce,null)},p(Me,[Ve]){if(Ve&2&&u!==(u=Me[1].name+"")&&H(d,u),Ve&2&&h!==(h=Me[1].description+"")&&H(g,h),Ve&2&&w!==(w=Me[1].version+"")&&H(k,w),Ve&1&&q!==(q=Me[0].model+"")&&H(Z,q),Ve&1&&W!==(W=Me[0].currentTask+"")&&H(J,W),Ve&1&&Q!==(Q=Me[0].sessionDuration+"")&&H(he,Q),Ve&1&&tt(_e,"width",Me[0].contextUsage+"%"),Ve&1&&ge!==(ge=Me[0].contextUsage+"")&&H(oe,ge),Ve&1&&Te(ae,"warning",Me[0].contextUsage>80),Ve&1){ke=re(Me[0].recentActions);let Re;for(Re=0;Re<ke.length;Re+=1){const xe=hl(Me,ke,Re);Pe[Re]?Pe[Re].p(xe,Ve):(Pe[Re]=ml(xe),Pe[Re].c(),Pe[Re].m(Ce,null))}for(;Re<Pe.length;Re+=1)Pe[Re].d(1);Pe.length=ke.length,!ke.length&&Oe?Oe.p(Me,Ve):ke.length?Oe&&(Oe.d(1),Oe=null):(Oe=gl(),Oe.c(),Oe.m(Ce,null))}},i:Fe,o:Fe,d(Me){Me&&O(t),je(Pe,Me),Oe&&Oe.d()}}}function ei(l,t,n){let i,r,c,o;return Dt(l,Hs,u=>n(2,c=u)),Dt(l,Gs,u=>n(3,o=u)),l.$$.update=()=>{l.$$.dirty&8&&n(1,i=o),l.$$.dirty&4&&n(0,r=c)},[r,i,c,o]}class ti extends Ct{constructor(t){super(),yt(this,t,ei,xs,_t,{})}}function _l(l,t,n){const i=l.slice();return i[20]=t[n],i}function bl(l,t,n){const i=l.slice();return i[20]=t[n],i}function kl(l,t,n){const i=l.slice();return i[20]=t[n],i}function yl(l,t,n){const i=l.slice();return i[27]=t[n],i}function Cl(l){let t,n=l[27].title+"",i,r,c=l[27].date+"",o,u,d,p;return{c(){var v;t=a("option"),i=A(n),r=A(" - "),o=A(c),u=f(),t.__value=d=l[27].id,ve(t,t.__value),t.selected=p=((v=l[0])==null?void 0:v.id)===l[27].id},m(v,h){U(v,t,h),e(t,i),e(t,r),e(t,o),e(t,u)},p(v,h){var g;h&8&&n!==(n=v[27].title+"")&&H(i,n),h&8&&c!==(c=v[27].date+"")&&H(o,c),h&8&&d!==(d=v[27].id)&&(t.__value=d,ve(t,t.__value)),h&9&&p!==(p=((g=v[0])==null?void 0:g.id)===v[27].id)&&(t.selected=p)},d(v){v&&O(t)}}}function wl(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j=l[0].duration+"",q,Z,P,R,z,x,se=l[0].filesModified+"",W,J,ce,N,ne,Y,ie=l[0].featuresChanged+"",Q,he,K,fe,te,de,X,ue,_e,le,ae,ge,oe,be=l[4]?"⏸":"▶️",ye,Ee,Ne,Ae,G,Ce=At(l[1])+"",ke,Pe,Oe=At(Math.max(...l[2].map(Fl)))+"",Me,Ve,Re,xe,ot,Ie,Ze,nt,ze,Le,Ue,He,Se=l[6]&&Sl(l),We=re(l[2]),De=[];for(let pe=0;pe<We.length;pe+=1)De[pe]=Tl(kl(l,We,pe));function at(pe,qe){return pe[6]?ni:li}let Je=at(l),st=Je(l),et=re(l[2]),Ke=[];for(let pe=0;pe<et.length;pe+=1)Ke[pe]=Al(bl(l,et,pe));let Ge=re(l[2]),Ye=[];for(let pe=0;pe<Ge.length;pe+=1)Ye[pe]=Dl(_l(l,Ge,pe));return{c(){t=a("div"),n=a("div"),i=a("h2"),i.textContent="AI Reasoning",r=f(),c=a("div"),Se&&Se.c(),o=f(),u=a("div"),d=a("h3"),d.textContent="Session Steps",p=f();for(let pe=0;pe<De.length;pe+=1)De[pe].c();v=f(),h=a("div"),g=a("div"),g.innerHTML='<h2 class="text-primary">Code Changes</h2> <div class="file-tabs"><div class="tab card bg-surface-2 text-primary border-primary">App.svelte</div> <div class="tab card bg-surface-3 text-secondary">Header.svelte</div> <div class="tab card bg-surface-3 text-secondary">stores.js</div></div>',_=f(),C=a("div"),m=a("div"),st.c(),w=f(),k=a("div"),y=a("h2"),y.textContent="Tool Usage",b=f(),T=a("div");for(let pe=0;pe<Ke.length;pe+=1)Ke[pe].c();S=f(),D=a("div"),M=a("h3"),M.textContent="Session Statistics",I=f(),E=a("div"),V=a("span"),V.textContent="Duration:",L=f(),F=a("span"),q=A(j),Z=f(),P=a("div"),R=a("span"),R.textContent="Files Modified:",z=f(),x=a("span"),W=A(se),J=f(),ce=a("div"),N=a("span"),N.textContent="Features Changed:",ne=f(),Y=a("span"),Q=A(ie),he=f(),K=a("div"),fe=a("div"),te=a("input"),X=f(),ue=a("div");for(let pe=0;pe<Ye.length;pe+=1)Ye[pe].c();_e=f(),le=a("div"),ae=a("button"),ae.textContent="⏮",ge=f(),oe=a("button"),ye=A(be),Ee=f(),Ne=a("button"),Ne.textContent="⏭",Ae=f(),G=a("div"),ke=A(Ce),Pe=A(" / "),Me=A(Oe),Ve=f(),Re=a("div"),xe=a("label"),xe.textContent="Speed:",ot=f(),Ie=a("select"),Ze=a("option"),Ze.textContent="0.5x",nt=a("option"),nt.textContent="1x",ze=a("option"),ze.textContent="2x",Le=a("option"),Le.textContent="4x",s(i,"class","card__title"),s(c,"class","current-reasoning"),s(d,"class","heading heading--small"),s(u,"class","reasoning-timeline"),s(n,"class","card panel panel--reasoning"),s(g,"class","panel-header"),s(m,"class","code-content"),s(C,"class","code-viewer"),s(h,"class","code-panel card bg-surface"),s(y,"class","text-primary"),s(T,"class","tool-timeline"),s(M,"class","text-primary"),s(V,"class","stat-label text-secondary"),s(F,"class","stat-value text-primary"),s(E,"class","stat-item"),s(R,"class","stat-label text-secondary"),s(x,"class","stat-value text-primary"),s(P,"class","stat-item"),s(N,"class","stat-label text-secondary"),s(Y,"class","stat-value text-primary"),s(ce,"class","stat-item"),s(D,"class","session-stats card bg-surface-2"),s(k,"class","tools-panel card bg-surface"),s(t,"class","replay-interface"),s(te,"type","range"),s(te,"min","0"),s(te,"max",de=Math.max(...l[2].map(Ml))+30),s(te,"class","timeline-slider"),s(ue,"class","timeline-markers"),s(fe,"class","timeline-scrubber"),s(ae,"class","control-btn"),s(oe,"class","control-btn play-btn"),s(Ne,"class","control-btn"),s(G,"class","time-display"),Ze.__value=.5,ve(Ze,Ze.__value),nt.__value=1,ve(nt,nt.__value),ze.__value=2,ve(ze,ze.__value),Le.__value=4,ve(Le,Le.__value),l[5]===void 0&&mt(()=>l[17].call(Ie)),s(Re,"class","speed-control"),s(le,"class","control-buttons"),s(K,"class","playback-controls card bg-surface")},m(pe,qe){U(pe,t,qe),e(t,n),e(n,i),e(n,r),e(n,c),Se&&Se.m(c,null),e(n,o),e(n,u),e(u,d),e(u,p);for(let me=0;me<De.length;me+=1)De[me]&&De[me].m(u,null);e(t,v),e(t,h),e(h,g),e(h,_),e(h,C),e(C,m),st.m(m,null),e(t,w),e(t,k),e(k,y),e(k,b),e(k,T);for(let me=0;me<Ke.length;me+=1)Ke[me]&&Ke[me].m(T,null);e(k,S),e(k,D),e(D,M),e(D,I),e(D,E),e(E,V),e(E,L),e(E,F),e(F,q),e(D,Z),e(D,P),e(P,R),e(P,z),e(P,x),e(x,W),e(D,J),e(D,ce),e(ce,N),e(ce,ne),e(ce,Y),e(Y,Q),U(pe,he,qe),U(pe,K,qe),e(K,fe),e(fe,te),ve(te,l[1]),e(fe,X),e(fe,ue);for(let me=0;me<Ye.length;me+=1)Ye[me]&&Ye[me].m(ue,null);e(K,_e),e(K,le),e(le,ae),e(le,ge),e(le,oe),e(oe,ye),e(le,Ee),e(le,Ne),e(le,Ae),e(le,G),e(G,ke),e(G,Pe),e(G,Me),e(le,Ve),e(le,Re),e(Re,xe),e(Re,ot),e(Re,Ie),e(Ie,Ze),e(Ie,nt),e(Ie,ze),e(Ie,Le),it(Ie,l[5],!0),Ue||(He=[$(te,"change",l[13]),$(te,"input",l[13]),$(ae,"click",l[15]),$(oe,"click",l[8]),$(Ne,"click",l[16]),$(Ie,"change",l[17])],Ue=!0)},p(pe,qe){if(pe[6]?Se?Se.p(pe,qe):(Se=Sl(pe),Se.c(),Se.m(c,null)):Se&&(Se.d(1),Se=null),qe&582){We=re(pe[2]);let me;for(me=0;me<We.length;me+=1){const Be=kl(pe,We,me);De[me]?De[me].p(Be,qe):(De[me]=Tl(Be),De[me].c(),De[me].m(u,null))}for(;me<De.length;me+=1)De[me].d(1);De.length=We.length}if(Je!==(Je=at(pe))&&(st.d(1),st=Je(pe),st&&(st.c(),st.m(m,null))),qe&70){et=re(pe[2]);let me;for(me=0;me<et.length;me+=1){const Be=bl(pe,et,me);Ke[me]?Ke[me].p(Be,qe):(Ke[me]=Al(Be),Ke[me].c(),Ke[me].m(T,null))}for(;me<Ke.length;me+=1)Ke[me].d(1);Ke.length=et.length}if(qe&1&&j!==(j=pe[0].duration+"")&&H(q,j),qe&1&&se!==(se=pe[0].filesModified+"")&&H(W,se),qe&1&&ie!==(ie=pe[0].featuresChanged+"")&&H(Q,ie),qe&4&&de!==(de=Math.max(...pe[2].map(Ml))+30)&&s(te,"max",de),qe&2&&ve(te,pe[1]),qe&516){Ge=re(pe[2]);let me;for(me=0;me<Ge.length;me+=1){const Be=_l(pe,Ge,me);Ye[me]?Ye[me].p(Be,qe):(Ye[me]=Dl(Be),Ye[me].c(),Ye[me].m(ue,null))}for(;me<Ye.length;me+=1)Ye[me].d(1);Ye.length=Ge.length}qe&16&&be!==(be=pe[4]?"⏸":"▶️")&&H(ye,be),qe&2&&Ce!==(Ce=At(pe[1])+"")&&H(ke,Ce),qe&4&&Oe!==(Oe=At(Math.max(...pe[2].map(Fl)))+"")&&H(Me,Oe),qe&32&&it(Ie,pe[5])},d(pe){pe&&(O(t),O(he),O(K)),Se&&Se.d(),je(De,pe),st.d(),je(Ke,pe),je(Ye,pe),Ue=!1,lt(He)}}}function Sl(l){let t,n,i=Gt(l[6].type)+"",r,c,o,u,d=l[6].description+"",p,v,h,g=l[6].reasoning+"",_,C,m,w=At(l[6].time)+"",k;return{c(){t=a("div"),n=a("div"),r=A(i),c=f(),o=a("div"),u=a("div"),p=A(d),v=f(),h=a("div"),_=A(g),C=f(),m=a("div"),k=A(w),s(n,"class","step-icon"),s(u,"class","step-title"),s(h,"class","step-reasoning"),s(m,"class","step-time"),s(o,"class","step-content"),s(t,"class","card card--interactive card--active")},m(y,b){U(y,t,b),e(t,n),e(n,r),e(t,c),e(t,o),e(o,u),e(u,p),e(o,v),e(o,h),e(h,_),e(o,C),e(o,m),e(m,k)},p(y,b){b&64&&i!==(i=Gt(y[6].type)+"")&&H(r,i),b&64&&d!==(d=y[6].description+"")&&H(p,d),b&64&&g!==(g=y[6].reasoning+"")&&H(_,g),b&64&&w!==(w=At(y[6].time)+"")&&H(k,w)},d(y){y&&O(t)}}}function Tl(l){let t,n,i=Gt(l[20].type)+"",r,c,o,u,d=l[20].description+"",p,v,h,g=At(l[20].time)+"",_,C,m,w;function k(){return l[12](l[20])}return{c(){var y;t=a("div"),n=a("div"),r=A(i),c=f(),o=a("div"),u=a("div"),p=A(d),v=f(),h=a("div"),_=A(g),C=f(),s(n,"class","step-icon"),s(u,"class","step-title"),s(h,"class","step-time"),s(o,"class","step-content"),s(t,"class","card card--interactive timeline-step"),Te(t,"card--active",((y=l[6])==null?void 0:y.time)===l[20].time),Te(t,"timeline-step--completed",l[1]>l[20].time)},m(y,b){U(y,t,b),e(t,n),e(n,r),e(t,c),e(t,o),e(o,u),e(u,p),e(o,v),e(o,h),e(h,_),e(t,C),m||(w=$(t,"click",k),m=!0)},p(y,b){var T;l=y,b&4&&i!==(i=Gt(l[20].type)+"")&&H(r,i),b&4&&d!==(d=l[20].description+"")&&H(p,d),b&4&&g!==(g=At(l[20].time)+"")&&H(_,g),b&68&&Te(t,"card--active",((T=l[6])==null?void 0:T.time)===l[20].time),b&6&&Te(t,"timeline-step--completed",l[1]>l[20].time)},d(y){y&&O(t),m=!1,w()}}}function li(l){let t;return{c(){t=a("div"),t.textContent="Select a session event to view code changes",s(t,"class","placeholder text-tertiary")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function ni(l){let t;return{c(){t=a("div"),t.innerHTML='<div class="diff-line added">+ import Header from &#39;./components/Header.svelte&#39;;</div> <div class="diff-line added">+ import Overview from &#39;./components/Overview.svelte&#39;;</div> <div class="diff-line context">import {{ projectStore, featuresStore }} from &#39;./stores.js&#39;;</div> <div class="diff-line removed">- &lt;div class=&quot;old-dashboard&quot;&gt;&lt;/div&gt;</div> <div class="diff-line added">+ &lt;div class=&quot;ade-app&quot;&gt;&lt;/div&gt;</div> <div class="diff-line added">+   &lt;Header bind:currentView /&gt;</div> <div class="diff-line context"></div>',s(t,"class","diff-view")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function Al(l){let t,n,i=Gt(l[20].type)+"",r,c,o,u,d=l[20].type.toUpperCase()+"",p,v,h,g=At(l[20].time)+"",_,C;return{c(){var m;t=a("div"),n=a("div"),r=A(i),c=f(),o=a("div"),u=a("div"),p=A(d),v=f(),h=a("div"),_=A(g),C=f(),s(n,"class","tool-badge"),Te(n,"used",l[1]>=l[20].time),s(u,"class","tool-name"),s(h,"class","tool-time"),s(o,"class","tool-info"),s(t,"class","tool-item"),Te(t,"active",((m=l[6])==null?void 0:m.time)===l[20].time),Te(t,"completed",l[1]>l[20].time)},m(m,w){U(m,t,w),e(t,n),e(n,r),e(t,c),e(t,o),e(o,u),e(u,p),e(o,v),e(o,h),e(h,_),e(t,C)},p(m,w){var k;w&4&&i!==(i=Gt(m[20].type)+"")&&H(r,i),w&6&&Te(n,"used",m[1]>=m[20].time),w&4&&d!==(d=m[20].type.toUpperCase()+"")&&H(p,d),w&4&&g!==(g=At(m[20].time)+"")&&H(_,g),w&68&&Te(t,"active",((k=m[6])==null?void 0:k.time)===m[20].time),w&6&&Te(t,"completed",m[1]>m[20].time)},d(m){m&&O(t)}}}function Dl(l){let t,n,i=l[20].description+"",r,c,o=`${l[20].time/(Math.max(...l[2].map(Il))+30)*100}%`,u,d;function p(){return l[14](l[20])}return{c(){t=a("div"),n=a("div"),r=A(i),c=f(),s(n,"class","marker-tooltip"),s(t,"class","timeline-marker"),tt(t,"left",o)},m(v,h){U(v,t,h),e(t,n),e(n,r),e(t,c),u||(d=$(t,"click",p),u=!0)},p(v,h){l=v,h&4&&i!==(i=l[20].description+"")&&H(r,i),h&4&&o!==(o=`${l[20].time/(Math.max(...l[2].map(Il))+30)*100}%`)&&tt(t,"left",o)},d(v){v&&O(t),u=!1,d()}}}function si(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C=re(l[3]),m=[];for(let k=0;k<C.length;k+=1)m[k]=Cl(yl(l,C,k));let w=l[0]&&wl(l);return{c(){t=a("div"),n=a("div"),i=a("div"),r=a("h1"),r.textContent="Session Replay",c=f(),o=a("div"),u=a("label"),u.textContent="Select Session:",d=f(),p=a("select"),v=a("option"),v.textContent="Choose a session...";for(let k=0;k<m.length;k+=1)m[k].c();h=f(),w&&w.c(),s(r,"class","card__title"),s(u,"class","form__label"),v.__value="",ve(v,v.__value),s(p,"class","form__select"),s(o,"class","session-selector"),s(i,"class","card__header"),s(n,"class","card"),s(t,"class","session-replay-container")},m(k,y){U(k,t,y),e(t,n),e(n,i),e(i,r),e(i,c),e(i,o),e(o,u),e(o,d),e(o,p),e(p,v);for(let b=0;b<m.length;b+=1)m[b]&&m[b].m(p,null);e(t,h),w&&w.m(t,null),g||(_=$(p,"change",l[11]),g=!0)},p(k,[y]){if(y&9){C=re(k[3]);let b;for(b=0;b<C.length;b+=1){const T=yl(k,C,b);m[b]?m[b].p(T,y):(m[b]=Cl(T),m[b].c(),m[b].m(p,null))}for(;b<m.length;b+=1)m[b].d(1);m.length=C.length}k[0]?w?w.p(k,y):(w=wl(k),w.c(),w.m(t,null)):w&&(w.d(1),w=null)},i:Fe,o:Fe,d(k){k&&O(t),je(m,k),w&&w.d(),g=!1,_()}}}function Gt(l){switch(l){case"start":return"🚀";case"code":return"💻";case"api":return"🔗";case"test":return"🧪";case"error":return"🚨";default:return"📝"}}function At(l){const t=Math.floor(l/60),n=l%60;return`${t}:${n.toString().padStart(2,"0")}`}const Ml=l=>l.time,Il=l=>l.time,Fl=l=>l.time;function ii(l,t,n){let i,r,c;Dt(l,Qs,M=>n(10,c=M));let o=[],u=null,d=0,p=!1,v=1;const h=[{id:"session-001",title:"ADE Implementation Session",date:"2025-08-08",duration:"45m 23s",filesModified:12,featuresChanged:5,timeline:[{time:0,type:"start",description:"Session initialized",reasoning:"Loading project context and features analysis"},{time:30,type:"code",description:"Created Svelte project structure",reasoning:"Setting up modern frontend framework for ADE interface"},{time:120,type:"code",description:"Implemented Header component",reasoning:"Navigation system needed for multi-section ADE interface"},{time:180,type:"api",description:"Added API service layer",reasoning:"Connecting frontend to existing backend endpoints"},{time:240,type:"test",description:"Built and tested components",reasoning:"Ensuring components work correctly before proceeding"}]},{id:"session-002",title:"Feature Management Implementation",date:"2025-08-07",duration:"32m 15s",filesModified:8,featuresChanged:3,timeline:[{time:0,type:"start",description:"Context loaded",reasoning:"Continuing from previous feature work"},{time:45,type:"code",description:"Added feature state validation",reasoning:"Ensuring data integrity in feature transitions"},{time:120,type:"code",description:"Implemented filtering system",reasoning:"Users need to find features quickly in large projects"}]}];function g(M){n(0,u=M),n(1,d=0),n(4,p=!1)}function _(){n(4,p=!p),p&&C()}function C(){if(!p||!u)return;const M=setInterval(()=>{if(!p){clearInterval(M);return}n(1,d+=v);const I=Math.max(...i.map(E=>E.time));d>I+30&&(n(4,p=!1),clearInterval(M))},100)}function m(M){n(1,d=M)}Ft(()=>{o.length>0&&!u&&g(o[0])});const w=M=>g(o.find(I=>I.id===M.target.value)),k=M=>m(M.time);function y(){d=wt(this.value),n(1,d)}const b=M=>m(M.time),T=()=>m(0),S=()=>m(Math.max(...i.map(M=>M.time)));function D(){v=Tt(this),n(5,v)}return l.$$.update=()=>{l.$$.dirty&1024&&n(3,o=c.length>0?c:h),l.$$.dirty&1&&n(2,i=(u==null?void 0:u.timeline)||[]),l.$$.dirty&6&&n(6,r=i.find(M=>{var I;return M.time<=d&&(((I=i.find(E=>E.time>d))==null?void 0:I.time)||1/0)>M.time}))},[u,d,i,o,p,v,r,g,_,m,c,w,k,y,b,T,S,D]}class ai extends Ct{constructor(t){super(),yt(this,t,ii,si,_t,{})}}function El(l,t,n){const i=l.slice();return i[18]=t[n],i}function Hl(l,t,n){const i=l.slice();return i[21]=t[n],i}function Rl(l,t,n){const i=l.slice();return i[24]=t[n],i}function Ll(l){let t,n=l[24]+"",i;return{c(){t=a("span"),i=A(n),s(t,"class","tag bg-surface-3 text-secondary rounded-md")},m(r,c){U(r,t,c),e(t,i)},p(r,c){c&32&&n!==(n=r[24]+"")&&H(i,n)},d(r){r&&O(t)}}}function jl(l){let t,n,i,r=l[21].severity.toUpperCase()+"",c,o,u,d=l[21].environment+"",p,v,h,g=l[21].title+"",_,C,m,w,k=Nl(l[21].timestamp)+"",y,b,T,S=l[21].responseTime+"",D,M,I,E,V,L,F,j=re(l[21].tags),q=[];for(let P=0;P<j.length;P+=1)q[P]=Ll(Rl(l,j,P));function Z(){return l[13](l[21])}return{c(){var P;t=a("div"),n=a("div"),i=a("div"),c=A(r),o=f(),u=a("div"),p=A(d),v=f(),h=a("div"),_=A(g),C=f(),m=a("div"),w=a("span"),y=A(k),b=f(),T=a("span"),D=A(S),M=A("ms"),I=f(),E=a("div");for(let R=0;R<q.length;R+=1)q[R].c();V=f(),s(i,"class","severity-badge text-primary bg-surface-3 rounded-lg"),s(u,"class","environment-badge text-secondary"),s(n,"class","issue-header"),s(h,"class","issue-title text-primary"),s(w,"class","issue-time text-secondary"),s(T,"class","issue-response text-tertiary"),s(m,"class","issue-meta"),s(E,"class","issue-tags"),s(t,"class","issue-card card bg-surface-2 border rounded-md"),Te(t,"selected",((P=l[3])==null?void 0:P.id)===l[21].id),Te(t,"resolved",l[21].resolved)},m(P,R){U(P,t,R),e(t,n),e(n,i),e(i,c),e(n,o),e(n,u),e(u,p),e(t,v),e(t,h),e(h,_),e(t,C),e(t,m),e(m,w),e(w,y),e(m,b),e(m,T),e(T,D),e(T,M),e(t,I),e(t,E);for(let z=0;z<q.length;z+=1)q[z]&&q[z].m(E,null);e(t,V),L||(F=$(t,"click",Z),L=!0)},p(P,R){var z;if(l=P,R&32&&r!==(r=l[21].severity.toUpperCase()+"")&&H(c,r),R&32&&d!==(d=l[21].environment+"")&&H(p,d),R&32&&g!==(g=l[21].title+"")&&H(_,g),R&32&&k!==(k=Nl(l[21].timestamp)+"")&&H(y,k),R&32&&S!==(S=l[21].responseTime+"")&&H(D,S),R&32){j=re(l[21].tags);let x;for(x=0;x<j.length;x+=1){const se=Rl(l,j,x);q[x]?q[x].p(se,R):(q[x]=Ll(se),q[x].c(),q[x].m(E,null))}for(;x<q.length;x+=1)q[x].d(1);q.length=j.length}R&40&&Te(t,"selected",((z=l[3])==null?void 0:z.id)===l[21].id),R&32&&Te(t,"resolved",l[21].resolved)},d(P){P&&O(t),je(q,P),L=!1,F()}}}function oi(l){let t;return{c(){t=a("div"),t.innerHTML='<p class="text-secondary">Select an issue to view details and AI analysis</p>',s(t,"class","no-selection")},m(n,i){U(n,t,i)},p:Fe,d(n){n&&O(t)}}}function ri(l){let t,n,i=l[3].title+"",r,c,o,u,d=l[3].resolved?"Resolved":"Mark Resolved",p,v,h,g,_,C,m,w,k,y=l[3].description+"",b,T,S,D,M,I,E=l[3].stackTrace+"",V,L,F,j,q,Z,P,R,z=Math.round(l[3].aiAnalysis.confidence*100)+"",x,se,W,J,ce,N,ne,Y=l[3].aiAnalysis.rootCause+"",ie,Q,he,K,fe,te,de,X,ue,_e,le,ae,ge,oe,be,ye=l[3].responseTime+"",Ee,Ne,Ae,G,Ce,ke,Pe,Oe=l[3].environment+"",Me,Ve,Re,xe,ot,Ie,Ze=l[3].severity+"",nt,ze,Le,Ue=re(l[3].aiAnalysis.suggestions),He=[];for(let Se=0;Se<Ue.length;Se+=1)He[Se]=Pl(El(l,Ue,Se));return{c(){t=a("div"),n=a("div"),r=A(i),c=f(),o=a("div"),u=a("button"),p=A(d),v=f(),h=a("button"),h.textContent="Create Task",g=f(),_=a("div"),C=a("div"),m=a("h3"),m.textContent="Description",w=f(),k=a("p"),b=A(y),T=f(),S=a("div"),D=a("h3"),D.textContent="Stack Trace",M=f(),I=a("pre"),V=A(E),L=f(),F=a("div"),j=a("h3"),j.textContent="AI Root Cause Analysis",q=f(),Z=a("div"),P=a("div"),R=A("Confidence: "),x=A(z),se=A("%"),W=f(),J=a("div"),ce=a("strong"),ce.textContent="Root Cause:",N=f(),ne=a("span"),ie=A(Y),Q=f(),he=a("div"),K=a("strong"),K.textContent="Suggested Fixes:",fe=f(),te=a("ul");for(let Se=0;Se<He.length;Se+=1)He[Se].c();de=f(),X=a("div"),ue=a("h3"),ue.textContent="Performance Impact",_e=f(),le=a("div"),ae=a("div"),ge=a("span"),ge.textContent="Response Time:",oe=f(),be=a("span"),Ee=A(ye),Ne=A("ms"),Ae=f(),G=a("div"),Ce=a("span"),Ce.textContent="Environment:",ke=f(),Pe=a("span"),Me=A(Oe),Ve=f(),Re=a("div"),xe=a("span"),xe.textContent="Severity:",ot=f(),Ie=a("span"),nt=A(Ze),s(n,"class","detail-title text-primary"),s(u,"class","btn-secondary"),Te(u,"disabled",l[3].resolved),s(h,"class","btn-primary"),s(o,"class","detail-actions"),s(t,"class","detail-header"),s(m,"class","text-primary"),s(k,"class","description text-secondary"),s(C,"class","detail-section"),s(D,"class","text-primary"),s(I,"class","stack-trace bg-surface-2 border rounded-md text-error"),s(S,"class","detail-section"),s(j,"class","text-primary"),s(P,"class","analysis-confidence text-info"),s(ce,"class","text-primary"),s(ne,"class","text-secondary"),s(J,"class","root-cause"),s(K,"class","text-primary"),s(he,"class","suggestions"),s(Z,"class","ai-analysis card bg-surface-2 border rounded-md"),s(F,"class","detail-section"),s(ue,"class","text-primary"),s(ge,"class","metric-label text-secondary"),s(be,"class","metric-value text-primary"),s(ae,"class","metric"),s(Ce,"class","metric-label text-secondary"),s(Pe,"class","metric-value text-primary"),s(G,"class","metric"),s(xe,"class","metric-label text-secondary"),s(Ie,"class","metric-value text-primary"),s(Re,"class","metric"),s(le,"class","performance-metrics"),s(X,"class","detail-section"),s(_,"class","detail-content")},m(Se,We){U(Se,t,We),e(t,n),e(n,r),e(t,c),e(t,o),e(o,u),e(u,p),e(o,v),e(o,h),U(Se,g,We),U(Se,_,We),e(_,C),e(C,m),e(C,w),e(C,k),e(k,b),e(_,T),e(_,S),e(S,D),e(S,M),e(S,I),e(I,V),e(_,L),e(_,F),e(F,j),e(F,q),e(F,Z),e(Z,P),e(P,R),e(P,x),e(P,se),e(Z,W),e(Z,J),e(J,ce),e(J,N),e(J,ne),e(ne,ie),e(Z,Q),e(Z,he),e(he,K),e(he,fe),e(he,te);for(let De=0;De<He.length;De+=1)He[De]&&He[De].m(te,null);e(_,de),e(_,X),e(X,ue),e(X,_e),e(X,le),e(le,ae),e(ae,ge),e(ae,oe),e(ae,be),e(be,Ee),e(be,Ne),e(le,Ae),e(le,G),e(G,Ce),e(G,ke),e(G,Pe),e(Pe,Me),e(le,Ve),e(le,Re),e(Re,xe),e(Re,ot),e(Re,Ie),e(Ie,nt),ze||(Le=[$(u,"click",l[14]),$(h,"click",l[15])],ze=!0)},p(Se,We){if(We&8&&i!==(i=Se[3].title+"")&&H(r,i),We&8&&d!==(d=Se[3].resolved?"Resolved":"Mark Resolved")&&H(p,d),We&8&&Te(u,"disabled",Se[3].resolved),We&8&&y!==(y=Se[3].description+"")&&H(b,y),We&8&&E!==(E=Se[3].stackTrace+"")&&H(V,E),We&8&&z!==(z=Math.round(Se[3].aiAnalysis.confidence*100)+"")&&H(x,z),We&8&&Y!==(Y=Se[3].aiAnalysis.rootCause+"")&&H(ie,Y),We&8){Ue=re(Se[3].aiAnalysis.suggestions);let De;for(De=0;De<Ue.length;De+=1){const at=El(Se,Ue,De);He[De]?He[De].p(at,We):(He[De]=Pl(at),He[De].c(),He[De].m(te,null))}for(;De<He.length;De+=1)He[De].d(1);He.length=Ue.length}We&8&&ye!==(ye=Se[3].responseTime+"")&&H(Ee,ye),We&8&&Oe!==(Oe=Se[3].environment+"")&&H(Me,Oe),We&8&&Ze!==(Ze=Se[3].severity+"")&&H(nt,Ze)},d(Se){Se&&(O(t),O(g),O(_)),je(He,Se),ze=!1,lt(Le)}}}function Pl(l){let t,n=l[18]+"",i;return{c(){t=a("li"),i=A(n),s(t,"class","text-secondary")},m(r,c){U(r,t,c),e(t,i)},p(r,c){c&8&&n!==(n=r[18]+"")&&H(i,n)},d(r){r&&O(t)}}}function ci(l){let t,n,i,r,c,o,u,d=l[4].critical+"",p,v,h,g,_,C,m=l[4].high+"",w,k,y,b,T,S,D=l[4].medium+"",M,I,E,V,L,F,j=l[4].resolved+"",q,Z,P,R,z,x,se=l[4].avgResponseTime+"",W,J,ce,N,ne,Y,ie,Q,he,K,fe,te,de,X,ue,_e,le,ae,ge,oe,be,ye,Ee,Ne,Ae,G,Ce,ke,Pe,Oe,Me,Ve,Re,xe,ot=re(l[5]),Ie=[];for(let Le=0;Le<ot.length;Le+=1)Ie[Le]=jl(Hl(l,ot,Le));function Ze(Le,Ue){return Le[3]?ri:oi}let nt=Ze(l),ze=nt(l);return{c(){t=a("div"),n=a("div"),i=a("h1"),i.textContent="Issues & Diagnostics",r=f(),c=a("div"),o=a("div"),u=a("div"),p=A(d),v=f(),h=a("div"),h.textContent="Critical",g=f(),_=a("div"),C=a("div"),w=A(m),k=f(),y=a("div"),y.textContent="High",b=f(),T=a("div"),S=a("div"),M=A(D),I=f(),E=a("div"),E.textContent="Medium",V=f(),L=a("div"),F=a("div"),q=A(j),Z=f(),P=a("div"),P.textContent="Resolved",R=f(),z=a("div"),x=a("div"),W=A(se),J=A("ms"),ce=f(),N=a("div"),N.textContent="Avg Response",ne=f(),Y=a("div"),ie=a("div"),Q=a("div"),he=a("h2"),he.textContent="Active Issues",K=f(),fe=a("div"),te=a("select"),de=a("option"),de.textContent="All Environments",X=a("option"),X.textContent="Production",ue=a("option"),ue.textContent="Test",_e=a("option"),_e.textContent="Development",le=f(),ae=a("select"),ge=a("option"),ge.textContent="All Severities",oe=a("option"),oe.textContent="Critical",be=a("option"),be.textContent="High",ye=a("option"),ye.textContent="Medium",Ee=a("option"),Ee.textContent="Low",Ne=f(),Ae=a("select"),G=a("option"),G.textContent="Sort by Time",Ce=a("option"),Ce.textContent="Sort by Severity",ke=a("option"),ke.textContent="Sort by Performance",Pe=f(),Oe=a("div");for(let Le=0;Le<Ie.length;Le+=1)Ie[Le].c();Me=f(),Ve=a("div"),ze.c(),s(i,"class","text-primary"),s(u,"class","stat-number text-error"),s(h,"class","stat-label text-secondary"),s(o,"class","stat-card card bg-surface-2"),s(C,"class","stat-number text-error"),s(y,"class","stat-label text-secondary"),s(_,"class","stat-card card bg-surface-2"),s(S,"class","stat-number text-warning"),s(E,"class","stat-label text-secondary"),s(T,"class","stat-card card bg-surface-2"),s(F,"class","stat-number text-success"),s(P,"class","stat-label text-secondary"),s(L,"class","stat-card card bg-surface-2"),s(x,"class","stat-number text-info"),s(N,"class","stat-label text-secondary"),s(z,"class","stat-card card bg-surface-2"),s(c,"class","issue-stats"),s(n,"class","issues-header card bg-surface"),de.__value="all",ve(de,de.__value),X.__value="production",ve(X,X.__value),ue.__value="test",ve(ue,ue.__value),_e.__value="development",ve(_e,_e.__value),s(te,"class","filter-select bg-surface border rounded-md text-primary"),l[0]===void 0&&mt(()=>l[10].call(te)),ge.__value="all",ve(ge,ge.__value),oe.__value="critical",ve(oe,oe.__value),be.__value="high",ve(be,be.__value),ye.__value="medium",ve(ye,ye.__value),Ee.__value="low",ve(Ee,Ee.__value),s(ae,"class","filter-select bg-surface border rounded-md text-primary"),l[1]===void 0&&mt(()=>l[11].call(ae)),G.__value="timestamp",ve(G,G.__value),Ce.__value="severity",ve(Ce,Ce.__value),ke.__value="responseTime",ve(ke,ke.__value),s(Ae,"class","filter-select bg-surface border rounded-md text-primary"),l[2]===void 0&&mt(()=>l[12].call(Ae)),s(fe,"class","filters"),s(Q,"class","panel-header"),s(Oe,"class","issues-list"),s(ie,"class","issues-panel card bg-surface"),s(Ve,"class","details-panel card bg-surface"),s(Y,"class","issues-interface"),s(t,"class","issues-diagnostics-container")},m(Le,Ue){U(Le,t,Ue),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o),e(o,u),e(u,p),e(o,v),e(o,h),e(c,g),e(c,_),e(_,C),e(C,w),e(_,k),e(_,y),e(c,b),e(c,T),e(T,S),e(S,M),e(T,I),e(T,E),e(c,V),e(c,L),e(L,F),e(F,q),e(L,Z),e(L,P),e(c,R),e(c,z),e(z,x),e(x,W),e(x,J),e(z,ce),e(z,N),e(t,ne),e(t,Y),e(Y,ie),e(ie,Q),e(Q,he),e(Q,K),e(Q,fe),e(fe,te),e(te,de),e(te,X),e(te,ue),e(te,_e),it(te,l[0],!0),e(fe,le),e(fe,ae),e(ae,ge),e(ae,oe),e(ae,be),e(ae,ye),e(ae,Ee),it(ae,l[1],!0),e(fe,Ne),e(fe,Ae),e(Ae,G),e(Ae,Ce),e(Ae,ke),it(Ae,l[2],!0),e(ie,Pe),e(ie,Oe);for(let He=0;He<Ie.length;He+=1)Ie[He]&&Ie[He].m(Oe,null);e(Y,Me),e(Y,Ve),ze.m(Ve,null),Re||(xe=[$(te,"change",l[10]),$(ae,"change",l[11]),$(Ae,"change",l[12])],Re=!0)},p(Le,[Ue]){if(Ue&16&&d!==(d=Le[4].critical+"")&&H(p,d),Ue&16&&m!==(m=Le[4].high+"")&&H(w,m),Ue&16&&D!==(D=Le[4].medium+"")&&H(M,D),Ue&16&&j!==(j=Le[4].resolved+"")&&H(q,j),Ue&16&&se!==(se=Le[4].avgResponseTime+"")&&H(W,se),Ue&1&&it(te,Le[0]),Ue&2&&it(ae,Le[1]),Ue&4&&it(Ae,Le[2]),Ue&104){ot=re(Le[5]);let He;for(He=0;He<ot.length;He+=1){const Se=Hl(Le,ot,He);Ie[He]?Ie[He].p(Se,Ue):(Ie[He]=jl(Se),Ie[He].c(),Ie[He].m(Oe,null))}for(;He<Ie.length;He+=1)Ie[He].d(1);Ie.length=ot.length}nt===(nt=Ze(Le))&&ze?ze.p(Le,Ue):(ze.d(1),ze=nt(Le),ze&&(ze.c(),ze.m(Ve,null)))},i:Fe,o:Fe,d(Le){Le&&O(t),je(Ie,Le),ze.d(),Re=!1,lt(xe)}}}function Nl(l){return new Date(l).toLocaleString()}function di(l,t,n){let i,r,c;Dt(l,Zs,S=>n(16,c=S));let o=[],u=null,d="all",p="all",v="timestamp";const h=[{id:"issue-001",title:"Feature validation timeout in F0210 implementation",severity:"critical",environment:"development",timestamp:"2025-08-08T23:15:32Z",description:"SessionReplay component validation failing with timeout after 30 seconds",stackTrace:`Error: Timeout waiting for session data
  at SessionReplay.loadSession (line 42)
  at SessionReplay.selectSession (line 51)`,aiAnalysis:{rootCause:"API endpoint /api/sessions is not responding within expected timeout",suggestions:["Check if backend MCP server is running","Increase timeout threshold for session loading","Add retry logic with exponential backoff","Implement graceful fallback to sample data"],confidence:.85},responseTime:3200,tags:["timeout","api","session-replay"],resolved:!1},{id:"issue-002",title:"Memory leak in WebSocket connection handling",severity:"high",environment:"production",timestamp:"2025-08-08T22:45:18Z",description:"WebSocket connections not being properly closed causing memory usage to increase over time",stackTrace:`Warning: WebSocket connection not cleaned up
  at WebSocketService.disconnect (line 78)
  at component cleanup`,aiAnalysis:{rootCause:"WebSocket cleanup not triggered in component unmount lifecycle",suggestions:["Add onDestroy cleanup for WebSocket connections","Implement connection pooling with automatic cleanup","Add memory monitoring and alerting","Review component lifecycle management"],confidence:.92},responseTime:1800,tags:["memory-leak","websocket","performance"],resolved:!1},{id:"issue-003",title:"CSS loading race condition on page refresh",severity:"medium",environment:"development",timestamp:"2025-08-08T21:30:45Z",description:"Styles not loading correctly on hard refresh causing layout issues",stackTrace:`Error: Failed to load resource: ade-main.css
  at HTMLLinkElement.onError (line 7)`,aiAnalysis:{rootCause:"CSS file not embedded correctly in Rust binary static assets",suggestions:["Verify CSS file path in include_str! macro","Add fallback CSS loading mechanism","Implement CSS-in-JS for critical styles","Check build process for asset embedding"],confidence:.78},responseTime:950,tags:["css","assets","loading"],resolved:!0}];function g(S){n(3,u=S)}function _(S){const D=o.find(M=>M.id===S);D&&(D.resolved=!0,n(9,o=[...o]))}function C(S){const D=o.find(M=>M.id===S);D&&console.log("Creating task for issue:",D.title)}Ft(()=>{n(9,o=c.length>0?c:h),o.length>0&&!u&&g(o[0])});function m(){d=Tt(this),n(0,d)}function w(){p=Tt(this),n(1,p)}function k(){v=Tt(this),n(2,v)}const y=S=>g(S),b=()=>_(u.id),T=()=>C(u.id);return l.$$.update=()=>{l.$$.dirty&519&&n(5,i=o.filter(S=>d==="all"||S.environment===d).filter(S=>p==="all"||S.severity===p).sort((S,D)=>{switch(v){case"severity":const M={critical:0,high:1,medium:2,low:3};return M[S.severity]-M[D.severity];case"timestamp":return new Date(D.timestamp)-new Date(S.timestamp);case"responseTime":return D.responseTime-S.responseTime;default:return 0}})),l.$$.dirty&512&&n(4,r={total:o.length,critical:o.filter(S=>S.severity==="critical").length,high:o.filter(S=>S.severity==="high").length,medium:o.filter(S=>S.severity==="medium").length,low:o.filter(S=>S.severity==="low").length,resolved:o.filter(S=>S.resolved).length,avgResponseTime:Math.round(o.reduce((S,D)=>S+D.responseTime,0)/o.length||0)})},[d,p,v,u,r,i,g,_,C,o,m,w,k,y,b,T]}class ui extends Ct{constructor(t){super(),yt(this,t,di,ci,_t,{})}}function $l(l,t,n){const i=l.slice();return i[47]=t[n],i}function Ol(l,t,n){const i=l.slice();return i[29]=t[n],i[39]=n,i}function Ul(l,t,n){const i=l.slice();return i[40]=t[n],i}function Wl(l,t,n){const i=l.slice();return i[43]=t[n],i[45]=n,i}function Vl(l,t,n){const i=l.slice();return i[29]=t[n],i[39]=n,i}function ql(l,t,n){const i=l.slice();return i[25]=t[n][0],i[26]=t[n][1],i}function Bl(l,t,n){const i=l.slice();return i[29]=t[n],i}function zl(l,t,n){const i=l.slice();return i[32]=t[n],i}function Gl(l,t,n){const i=l.slice();return i[35]=t[n],i}function Ql(l,t,n){const i=l.slice();return i[50]=t[n],i}function Zl(l){let t,n=l[50]+"",i,r;return{c(){t=a("option"),i=A(n),t.__value=r=l[50],ve(t,t.__value)},m(c,o){U(c,t,o),e(t,i)},p(c,o){o[0]&64&&n!==(n=c[50]+"")&&H(i,n),o[0]&64&&r!==(r=c[50])&&(t.__value=r,ve(t,t.__value))},d(c){c&&O(t)}}}function fi(l){let t,n,i,r,c,o,u,d=re(l[5]),p=[];for(let v=0;v<d.length;v+=1)p[v]=Jl($l(l,d,v));return{c(){t=a("div"),n=a("div"),i=a("h3"),i.textContent="Implementation Velocity",r=f(),c=a("div");for(let v=0;v<p.length;v+=1)p[v].c();o=f(),u=a("div"),u.innerHTML='<div class="prediction-card"><div class="prediction-title text-secondary">Estimated Completion</div> <div class="prediction-date text-primary">2 weeks</div> <div class="prediction-confidence text-secondary">85% confidence</div></div>',s(i,"class","text-primary"),s(c,"class","chart-container"),s(u,"class","completion-prediction"),s(n,"class","velocity-chart"),s(t,"class","timeline-view card bg-surface rounded-lg")},m(v,h){U(v,t,h),e(t,n),e(n,i),e(n,r),e(n,c);for(let g=0;g<p.length;g+=1)p[g]&&p[g].m(c,null);e(n,o),e(n,u)},p(v,h){if(h[0]&32){d=re(v[5]);let g;for(g=0;g<d.length;g+=1){const _=$l(v,d,g);p[g]?p[g].p(_,h):(p[g]=Jl(_),p[g].c(),p[g].m(c,null))}for(;g<p.length;g+=1)p[g].d(1);p.length=d.length}},d(v){v&&O(t),je(p,v)}}}function pi(l){let t,n,i,r,c,o,u,d,p,v,h,g,_=re(l[1]),C=[];for(let k=0;k<_.length;k+=1)C[k]=Kl(Vl(l,_,k));let m=re(l[1]),w=[];for(let k=0;k<m.length;k+=1)w[k]=en(Ol(l,m,k));return{c(){t=a("div"),n=a("div"),i=a("div"),i.innerHTML='<h3>Feature Dependencies Graph</h3> <div class="graph-controls"><button class="btn-secondary graph-btn">Reset View</button> <button class="btn-secondary graph-btn">Auto Layout</button></div>',r=f(),c=a("div"),o=vt("svg");for(let k=0;k<C.length;k+=1)C[k].c();u=Zt();for(let k=0;k<w.length;k+=1)w[k].c();d=vt("defs"),p=vt("marker"),v=vt("polygon"),h=f(),g=a("div"),g.innerHTML='<div class="legend-row"><div class="legend-item-small"><div class="legend-circle"></div> <span>High Priority</span></div> <div class="legend-item-small"><div class="legend-circle"></div> <span>Medium Priority</span></div> <div class="legend-item-small"><div class="legend-circle"></div> <span>Low Priority</span></div></div> <div class="legend-row"><div class="legend-item-small"><div class="legend-line"></div> <span>Dependencies</span></div> <div class="legend-item-small"><div class="legend-dot"></div> <span>Connection Point</span></div></div>',s(i,"class","graph-header"),s(v,"points","0 0, 10 3.5, 0 7"),s(v,"fill","var(--color-border)"),s(p,"id","arrowhead"),s(p,"markerWidth","10"),s(p,"markerHeight","7"),s(p,"refX","9"),s(p,"refY","3.5"),s(p,"orient","auto"),s(o,"width","100%"),s(o,"height","500"),s(o,"viewBox","0 0 1000 500"),s(g,"class","graph-legend"),s(c,"class","dependency-graph"),s(n,"class","graph-container"),s(t,"class","dependencies-view card bg-surface rounded-lg")},m(k,y){U(k,t,y),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o);for(let b=0;b<C.length;b+=1)C[b]&&C[b].m(o,null);e(o,u);for(let b=0;b<w.length;b+=1)w[b]&&w[b].m(o,null);e(o,d),e(d,p),e(p,v),e(c,h),e(c,g)},p(k,y){if(y[0]&262){_=re(k[1]);let b;for(b=0;b<_.length;b+=1){const T=Vl(k,_,b);C[b]?C[b].p(T,y):(C[b]=Kl(T),C[b].c(),C[b].m(o,u))}for(;b<C.length;b+=1)C[b].d(1);C.length=_.length}if(y[0]&2){m=re(k[1]);let b;for(b=0;b<m.length;b+=1){const T=Ol(k,m,b);w[b]?w[b].p(T,y):(w[b]=en(T),w[b].c(),w[b].m(o,d))}for(;b<w.length;b+=1)w[b].d(1);w.length=m.length}},d(k){k&&O(t),je(C,k),je(w,k)}}}function vi(l){let t,n=re(Object.entries(l[7])),i=[];for(let r=0;r<n.length;r+=1)i[r]=dn(ql(l,n,r));return{c(){t=a("div");for(let r=0;r<i.length;r+=1)i[r].c();s(t,"class","kanban-board bg-surface-3 rounded-lg")},m(r,c){U(r,t,c);for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(t,null)},p(r,c){if(c[0]&900){n=re(Object.entries(r[7]));let o;for(o=0;o<n.length;o+=1){const u=ql(r,n,o);i[o]?i[o].p(u,c):(i[o]=dn(u),i[o].c(),i[o].m(t,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(r){r&&O(t),je(i,r)}}}function Jl(l){let t,n,i,r,c=l[47].week+"",o,u,d,p=l[47].completed+"",v,h;return{c(){t=a("div"),n=a("div"),i=f(),r=a("div"),o=A(c),u=f(),d=a("div"),v=A(p),h=f(),s(n,"class","bar-fill"),tt(n,"height",l[47].completed/25*100+"%"),s(r,"class","bar-label"),s(d,"class","bar-value"),s(t,"class","velocity-bar")},m(g,_){U(g,t,_),e(t,n),e(t,i),e(t,r),e(r,o),e(t,u),e(t,d),e(d,v),e(t,h)},p(g,_){_[0]&32&&tt(n,"height",g[47].completed/25*100+"%"),_[0]&32&&c!==(c=g[47].week+"")&&H(o,c),_[0]&32&&p!==(p=g[47].completed+"")&&H(v,p)},d(g){g&&O(t)}}}function Kl(l){let t,n,i,r,c=l[29].id+"",o,u,d,p,v=(l[29].title.length>20?l[29].title.slice(0,17)+"...":l[29].title)+"",h,g,_,C,m,w,k;function y(){return l[22](l[29])}return{c(){var b;t=vt("g"),n=vt("circle"),r=vt("text"),o=A(c),u=vt("circle"),p=vt("text"),h=A(v),g=vt("rect"),_=vt("rect"),s(n,"cx","0"),s(n,"cy","0"),s(n,"r","30"),s(n,"fill","var(--color-text-secondary)"),s(n,"class",i="node-circle state-"+l[29].state),Te(n,"selected",((b=l[2])==null?void 0:b.id)===l[29].id),s(r,"x","0"),s(r,"y","-5"),s(r,"text-anchor","middle"),s(r,"fill","var(--color-text-inverse)"),s(r,"font-size","8"),s(r,"font-weight","700"),s(r,"font-family","monospace"),s(u,"cx","18"),s(u,"cy","-18"),s(u,"r","6"),s(u,"fill","var(--color-text-secondary)"),s(u,"class",d="priority-fill priority-"+l[29].priority),s(u,"stroke","var(--color-border)"),s(u,"stroke-width","1"),s(p,"x","0"),s(p,"y","50"),s(p,"text-anchor","middle"),s(p,"fill","var(--color-text-tertiary)"),s(p,"font-size","10"),s(p,"font-weight","500"),s(g,"x","-25"),s(g,"y","20"),s(g,"width","50"),s(g,"height","4"),s(g,"fill","var(--color-bg-surface-3)"),s(g,"rx","2"),s(_,"x","-25"),s(_,"y","20"),s(_,"width",C=Bt(l[29])/2),s(_,"height","4"),s(_,"fill","var(--color-text-secondary)"),s(_,"class",m="progress-fill state-"+l[29].state),s(_,"rx","2"),s(t,"class","feature-node"),s(t,"transform","translate("+(120+l[39]%5*160)+", "+(100+Math.floor(l[39]/5)*120)+")")},m(b,T){U(b,t,T),e(t,n),e(t,r),e(r,o),e(t,u),e(t,p),e(p,h),e(t,g),e(t,_),w||(k=$(t,"click",y),w=!0)},p(b,T){var S;l=b,T[0]&2&&i!==(i="node-circle state-"+l[29].state)&&s(n,"class",i),T[0]&6&&Te(n,"selected",((S=l[2])==null?void 0:S.id)===l[29].id),T[0]&2&&c!==(c=l[29].id+"")&&H(o,c),T[0]&2&&d!==(d="priority-fill priority-"+l[29].priority)&&s(u,"class",d),T[0]&2&&v!==(v=(l[29].title.length>20?l[29].title.slice(0,17)+"...":l[29].title)+"")&&H(h,v),T[0]&2&&C!==(C=Bt(l[29])/2)&&s(_,"width",C),T[0]&2&&m!==(m="progress-fill state-"+l[29].state)&&s(_,"class",m)},d(b){b&&O(t),w=!1,k()}}}function Yl(l){let t,n;return{c(){t=vt("line"),n=vt("circle"),s(t,"x1",120+l[45]%5*160),s(t,"y1",100+Math.floor(l[45]/5)*120),s(t,"x2",120+l[39]%5*160),s(t,"y2",100+Math.floor(l[39]/5)*120),s(t,"stroke","var(--color-border)"),s(t,"stroke-width","2"),s(t,"stroke-dasharray","5,5"),s(t,"marker-end","url(#arrowhead)"),s(t,"class","dependency-line"),s(n,"cx",(120+l[45]%5*160+120+l[39]%5*160)/2),s(n,"cy",(100+Math.floor(l[45]/5)*120+100+Math.floor(l[39]/5)*120)/2),s(n,"r","3"),s(n,"fill","var(--color-warning)"),s(n,"stroke","var(--color-border)"),s(n,"stroke-width","1")},m(i,r){U(i,t,r),U(i,n,r)},p:Fe,d(i){i&&(O(t),O(n))}}}function Xl(l){let t,n=l[43].id===l[40]&&Yl(l);return{c(){n&&n.c(),t=Zt()},m(i,r){n&&n.m(i,r),U(i,t,r)},p(i,r){i[43].id===i[40]?n?n.p(i,r):(n=Yl(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(i){i&&O(t),n&&n.d(i)}}}function xl(l){let t,n=re(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=Xl(Wl(l,n,r));return{c(){for(let r=0;r<i.length;r+=1)i[r].c();t=Zt()},m(r,c){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(r,c);U(r,t,c)},p(r,c){if(c[0]&2){n=re(r[1]);let o;for(o=0;o<n.length;o+=1){const u=Wl(r,n,o);i[o]?i[o].p(u,c):(i[o]=Xl(u),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(r){r&&O(t),je(i,r)}}}function en(l){let t,n=re(l[29].dependencies),i=[];for(let r=0;r<n.length;r+=1)i[r]=xl(Ul(l,n,r));return{c(){for(let r=0;r<i.length;r+=1)i[r].c();t=Zt()},m(r,c){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(r,c);U(r,t,c)},p(r,c){if(c[0]&2){n=re(r[29].dependencies);let o;for(o=0;o<n.length;o+=1){const u=Ul(r,n,o);i[o]?i[o].p(u,c):(i[o]=xl(u),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(r){r&&O(t),je(i,r)}}}function tn(l){let t,n,i,r,c=l[29].assignee+"",o;return{c(){t=a("div"),n=a("span"),n.textContent="Assignee:",i=f(),r=a("span"),o=A(c),s(n,"class","detail-label text-secondary"),s(r,"class","detail-value text-primary"),s(t,"class","detail-item")},m(u,d){U(u,t,d),e(t,n),e(t,i),e(t,r),e(r,o)},p(u,d){d[0]&128&&c!==(c=u[29].assignee+"")&&H(o,c)},d(u){u&&O(t)}}}function ln(l){let t,n,i=l[29].category+"",r;return{c(){t=a("div"),n=a("div"),r=A(i),s(n,"class","category-badge bg-surface-3 text-secondary rounded-md"),s(t,"class","detail-row")},m(c,o){U(c,t,o),e(t,n),e(n,r)},p(c,o){o[0]&128&&i!==(i=c[29].category+"")&&H(r,i)},d(c){c&&O(t)}}}function nn(l){let t,n=l[35]+"",i;return{c(){t=a("span"),i=A(n),s(t,"class","tag")},m(r,c){U(r,t,c),e(t,i)},p(r,c){c[0]&128&&n!==(n=r[35]+"")&&H(i,n)},d(r){r&&O(t)}}}function sn(l){let t,n,i=l[29].tags.length-2+"",r;return{c(){t=a("span"),n=A("+"),r=A(i),s(t,"class","tag-more")},m(c,o){U(c,t,o),e(t,n),e(t,r)},p(c,o){o[0]&128&&i!==(i=c[29].tags.length-2+"")&&H(r,i)},d(c){c&&O(t)}}}function an(l){let t,n,i,r,c=re(l[29].dependencies.slice(0,2)),o=[];for(let d=0;d<c.length;d+=1)o[d]=on(zl(l,c,d));let u=l[29].dependencies.length>2&&rn(l);return{c(){t=a("div"),n=a("span"),n.textContent="Depends on:",i=f();for(let d=0;d<o.length;d+=1)o[d].c();r=f(),u&&u.c(),s(n,"class","dep-label"),s(t,"class","dependencies")},m(d,p){U(d,t,p),e(t,n),e(t,i);for(let v=0;v<o.length;v+=1)o[v]&&o[v].m(t,null);e(t,r),u&&u.m(t,null)},p(d,p){if(p[0]&128){c=re(d[29].dependencies.slice(0,2));let v;for(v=0;v<c.length;v+=1){const h=zl(d,c,v);o[v]?o[v].p(h,p):(o[v]=on(h),o[v].c(),o[v].m(t,r))}for(;v<o.length;v+=1)o[v].d(1);o.length=c.length}d[29].dependencies.length>2?u?u.p(d,p):(u=rn(d),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},d(d){d&&O(t),je(o,d),u&&u.d()}}}function on(l){let t,n=l[32]+"",i;return{c(){t=a("span"),i=A(n),s(t,"class","dependency")},m(r,c){U(r,t,c),e(t,i)},p(r,c){c[0]&128&&n!==(n=r[32]+"")&&H(i,n)},d(r){r&&O(t)}}}function rn(l){let t,n,i=l[29].dependencies.length-2+"",r;return{c(){t=a("span"),n=A("+"),r=A(i),s(t,"class","dep-more")},m(c,o){U(c,t,o),e(t,n),e(t,r)},p(c,o){o[0]&128&&i!==(i=c[29].dependencies.length-2+"")&&H(r,i)},d(c){c&&O(t)}}}function cn(l){let t,n,i,r=l[29].id+"",c,o,u,d=l[29].priority.toUpperCase()+"",p,v,h,g,_=l[29].title+"",C,m,w,k=l[29].description+"",y,b,T,S,D,M,I,E=`${Bt(l[29])}%`,V,L,F=Bt(l[29])+"",j,q,Z,P,R,z,x,se,W,J=l[29].completedHours+"",ce,N,ne=l[29].estimatedHours+"",Y,ie,Q,he,K,fe,te,de,X,ue,_e,le=l[29].assignee&&tn(l),ae=l[29].category&&ln(l),ge=re(l[29].tags.slice(0,2)),oe=[];for(let Ae=0;Ae<ge.length;Ae+=1)oe[Ae]=nn(Gl(l,ge,Ae));let be=l[29].tags.length>2&&sn(l),ye=l[29].dependencies.length>0&&an(l);function Ee(...Ae){return l[19](l[29],...Ae)}function Ne(){return l[20](l[29])}return{c(){var Ae;t=a("div"),n=a("div"),i=a("div"),c=A(r),o=f(),u=a("div"),p=A(d),h=f(),g=a("div"),C=A(_),m=f(),w=a("div"),y=A(k),b=f(),T=a("div"),S=a("div"),D=a("div"),M=a("div"),V=f(),L=a("span"),j=A(F),q=A("%"),Z=f(),P=a("div"),R=a("div"),z=a("div"),x=a("span"),x.textContent="Effort:",se=f(),W=a("span"),ce=A(J),N=A("h / "),Y=A(ne),ie=A("h"),Q=f(),le&&le.c(),he=f(),ae&&ae.c(),K=f(),fe=a("div");for(let G=0;G<oe.length;G+=1)oe[G].c();te=f(),be&&be.c(),de=f(),ye&&ye.c(),X=f(),s(i,"class","feature-id text-secondary"),s(u,"class",v="priority-badge priority-"+l[29].priority),s(n,"class","card-header"),s(g,"class","feature-title text-primary"),s(w,"class","feature-description text-secondary"),s(M,"class",I="progress-fill state-"+l[29].state),tt(M,"width",E),s(D,"class","progress-bar"),s(L,"class","progress-text"),s(S,"class","feature-progress"),s(x,"class","detail-label text-secondary"),s(W,"class","detail-value text-primary"),s(z,"class","detail-item"),s(R,"class","detail-row"),s(P,"class","feature-details"),s(fe,"class","feature-tags"),s(T,"class","feature-meta"),s(t,"class","feature-card card bg-surface-2 border"),s(t,"draggable","true"),Te(t,"selected",((Ae=l[2])==null?void 0:Ae.id)===l[29].id)},m(Ae,G){U(Ae,t,G),e(t,n),e(n,i),e(i,c),e(n,o),e(n,u),e(u,p),e(t,h),e(t,g),e(g,C),e(t,m),e(t,w),e(w,y),e(t,b),e(t,T),e(T,S),e(S,D),e(D,M),e(S,V),e(S,L),e(L,j),e(L,q),e(T,Z),e(T,P),e(P,R),e(R,z),e(z,x),e(z,se),e(z,W),e(W,ce),e(W,N),e(W,Y),e(W,ie),e(R,Q),le&&le.m(R,null),e(P,he),ae&&ae.m(P,null),e(T,K),e(T,fe);for(let Ce=0;Ce<oe.length;Ce+=1)oe[Ce]&&oe[Ce].m(fe,null);e(fe,te),be&&be.m(fe,null),e(t,de),ye&&ye.m(t,null),e(t,X),ue||(_e=[$(t,"dragstart",Ee),$(t,"click",Ne)],ue=!0)},p(Ae,G){var Ce;if(l=Ae,G[0]&128&&r!==(r=l[29].id+"")&&H(c,r),G[0]&128&&d!==(d=l[29].priority.toUpperCase()+"")&&H(p,d),G[0]&128&&v!==(v="priority-badge priority-"+l[29].priority)&&s(u,"class",v),G[0]&128&&_!==(_=l[29].title+"")&&H(C,_),G[0]&128&&k!==(k=l[29].description+"")&&H(y,k),G[0]&128&&I!==(I="progress-fill state-"+l[29].state)&&s(M,"class",I),G[0]&128&&E!==(E=`${Bt(l[29])}%`)&&tt(M,"width",E),G[0]&128&&F!==(F=Bt(l[29])+"")&&H(j,F),G[0]&128&&J!==(J=l[29].completedHours+"")&&H(ce,J),G[0]&128&&ne!==(ne=l[29].estimatedHours+"")&&H(Y,ne),l[29].assignee?le?le.p(l,G):(le=tn(l),le.c(),le.m(R,null)):le&&(le.d(1),le=null),l[29].category?ae?ae.p(l,G):(ae=ln(l),ae.c(),ae.m(P,null)):ae&&(ae.d(1),ae=null),G[0]&128){ge=re(l[29].tags.slice(0,2));let ke;for(ke=0;ke<ge.length;ke+=1){const Pe=Gl(l,ge,ke);oe[ke]?oe[ke].p(Pe,G):(oe[ke]=nn(Pe),oe[ke].c(),oe[ke].m(fe,te))}for(;ke<oe.length;ke+=1)oe[ke].d(1);oe.length=ge.length}l[29].tags.length>2?be?be.p(l,G):(be=sn(l),be.c(),be.m(fe,null)):be&&(be.d(1),be=null),l[29].dependencies.length>0?ye?ye.p(l,G):(ye=an(l),ye.c(),ye.m(t,X)):ye&&(ye.d(1),ye=null),G[0]&132&&Te(t,"selected",((Ce=l[2])==null?void 0:Ce.id)===l[29].id)},d(Ae){Ae&&O(t),le&&le.d(),ae&&ae.d(),je(oe,Ae),be&&be.d(),ye&&ye.d(),ue=!1,lt(_e)}}}function dn(l){let t,n,i,r,c,o,u=fn(l[25])+"",d,p,v,h=l[26].length+"",g,_,C,m,w,k,y,b=re(l[26]),T=[];for(let D=0;D<b.length;D+=1)T[D]=cn(Bl(l,b,D));function S(...D){return l[21](l[25],...D)}return{c(){t=a("div"),n=a("div"),i=a("div"),r=a("div"),o=f(),d=A(u),p=f(),v=a("div"),g=A(h),C=f(),m=a("div");for(let D=0;D<T.length;D+=1)T[D].c();w=f(),s(r,"class",c="state-indicator state-"+l[25]),s(i,"class","column-title"),s(v,"class","column-count"),s(n,"class",_="column-header state-"+l[25]),s(m,"class","column-content"),s(t,"class","kanban-column card bg-surface")},m(D,M){U(D,t,M),e(t,n),e(n,i),e(i,r),e(i,o),e(i,d),e(n,p),e(n,v),e(v,g),e(t,C),e(t,m);for(let I=0;I<T.length;I+=1)T[I]&&T[I].m(m,null);e(t,w),k||(y=[$(t,"dragover",mi),$(t,"drop",S)],k=!0)},p(D,M){if(l=D,M[0]&128&&c!==(c="state-indicator state-"+l[25])&&s(r,"class",c),M[0]&128&&u!==(u=fn(l[25])+"")&&H(d,u),M[0]&128&&h!==(h=l[26].length+"")&&H(g,h),M[0]&128&&_!==(_="column-header state-"+l[25])&&s(n,"class",_),M[0]&388){b=re(l[26]);let I;for(I=0;I<b.length;I+=1){const E=Bl(l,b,I);T[I]?T[I].p(E,M):(T[I]=cn(E),T[I].c(),T[I].m(m,null))}for(;I<T.length;I+=1)T[I].d(1);T.length=b.length}},d(D){D&&O(t),je(T,D),k=!1,lt(y)}}}function un(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se,W;return{c(){t=a("div"),n=a("div"),i=a("div"),r=a("h3"),r.textContent="Add New Feature",c=f(),o=a("button"),o.textContent="×",u=f(),d=a("div"),p=a("div"),p.innerHTML='<label class="text-secondary">Feature Title</label> <input type="text" class="bg-surface border rounded-md" placeholder="Enter feature title..."/>',v=f(),h=a("div"),h.innerHTML='<label class="text-secondary">Description</label> <textarea class="bg-surface border rounded-md" placeholder="Describe the feature..."></textarea>',g=f(),_=a("div"),C=a("div"),m=a("label"),m.textContent="Category",w=f(),k=a("select"),y=a("option"),y.textContent="ADE Interface",b=a("option"),b.textContent="Core",T=a("option"),T.textContent="Analytics",S=f(),D=a("div"),M=a("label"),M.textContent="Priority",I=f(),E=a("select"),V=a("option"),V.textContent="High",L=a("option"),L.textContent="Medium",F=a("option"),F.textContent="Low",j=f(),q=a("div"),q.innerHTML='<label class="text-secondary">Estimated Hours</label> <input type="number" class="bg-surface border rounded-md" min="1" max="100" value="8"/>',Z=f(),P=a("div"),R=a("button"),R.textContent="Cancel",z=f(),x=a("button"),x.textContent="Create Feature",s(r,"class","text-primary"),s(o,"class","close-btn text-secondary"),s(i,"class","dialog-header"),s(p,"class","form-group"),s(h,"class","form-group"),s(m,"class","text-secondary"),y.__value="ADE Interface",ve(y,y.__value),b.__value="Core",ve(b,b.__value),T.__value="Analytics",ve(T,T.__value),s(k,"class","bg-surface border rounded-md"),s(C,"class","form-group"),s(M,"class","text-secondary"),V.__value="high",ve(V,V.__value),L.__value="medium",ve(L,L.__value),F.__value="low",ve(F,F.__value),s(E,"class","bg-surface border rounded-md"),s(D,"class","form-group"),s(_,"class","form-row"),s(q,"class","form-group"),s(d,"class","dialog-content"),s(R,"class","btn-secondary cancel-btn"),s(x,"class","btn-primary create-btn"),s(P,"class","dialog-actions"),s(n,"class","dialog card bg-surface rounded-lg"),s(t,"class","dialog-overlay bg-surface-3")},m(J,ce){U(J,t,ce),e(t,n),e(n,i),e(i,r),e(i,c),e(i,o),e(n,u),e(n,d),e(d,p),e(d,v),e(d,h),e(d,g),e(d,_),e(_,C),e(C,m),e(C,w),e(C,k),e(k,y),e(k,b),e(k,T),e(_,S),e(_,D),e(D,M),e(D,I),e(D,E),e(E,V),e(E,L),e(E,F),e(d,j),e(d,q),e(n,Z),e(n,P),e(P,R),e(P,z),e(P,x),se||(W=[$(o,"click",l[11]),$(R,"click",l[11]),$(n,"click",Ds(l[14])),$(t,"click",l[11])],se=!0)},p:Fe,d(J){J&&O(t),se=!1,lt(W)}}}function hi(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D=l[1].length+"",M,I,E,V,L,F,j=l[7].complete.length+"",q,Z,P,R,z,x,se=l[7].implemented.length+l[7].tested.length+"",W,J,ce,N,ne,Y,ie=l[7].issues.length+l[7].blocked.length+"",Q,he,K,fe,te,de,X,ue,_e,le,ae,ge,oe=re(l[6]),be=[];for(let G=0;G<oe.length;G+=1)be[G]=Zl(Ql(l,oe,G));function ye(G,Ce){if(G[4]==="kanban")return vi;if(G[4]==="dependencies")return pi;if(G[4]==="timeline")return fi}let Ee=ye(l),Ne=Ee&&Ee(l),Ae=l[3]&&un(l);return{c(){t=a("div"),n=a("div"),i=a("h1"),i.textContent="Feature Management",r=f(),c=a("div"),o=a("div"),u=a("button"),u.textContent="Kanban",d=f(),p=a("button"),p.textContent="Timeline",v=f(),h=a("button"),h.textContent="Dependencies",g=f(),_=a("div"),C=a("select"),m=a("option"),m.textContent="All Categories";for(let G=0;G<be.length;G+=1)be[G].c();w=f(),k=a("button"),k.textContent="+ Add Feature",y=f(),b=a("div"),T=a("div"),S=a("div"),M=A(D),I=f(),E=a("div"),E.textContent="Total Features",V=f(),L=a("div"),F=a("div"),q=A(j),Z=f(),P=a("div"),P.textContent="Complete",R=f(),z=a("div"),x=a("div"),W=A(se),J=f(),ce=a("div"),ce.textContent="In Progress",N=f(),ne=a("div"),Y=a("div"),Q=A(ie),he=f(),K=a("div"),K.textContent="Issues",fe=f(),te=a("div"),te.innerHTML='<div class="stat-number text-primary">17.2</div> <div class="stat-label text-secondary">Features/Week</div>',de=f(),X=a("div"),X.innerHTML='<h3 class="text-primary">Feature State Legend</h3> <div class="legend-items"><div class="legend-item"><div class="legend-icon state-pending"></div> <div class="legend-info"><div class="legend-title text-primary">Not Started</div> <div class="legend-desc text-secondary">Feature not yet implemented</div></div></div> <div class="legend-item"><div class="legend-icon state-implemented"></div> <div class="legend-info"><div class="legend-title text-primary">In Progress</div> <div class="legend-desc text-secondary">Implementation in code but lacks dedicated tests</div></div></div> <div class="legend-item"><div class="legend-icon state-tested"></div> <div class="legend-info"><div class="legend-title text-primary">Testing</div> <div class="legend-desc text-secondary">Implemented with dedicated FAILING tests</div></div></div> <div class="legend-item"><div class="legend-icon state-complete"></div> <div class="legend-info"><div class="legend-title text-primary">Complete</div> <div class="legend-desc text-secondary">Implemented with dedicated PASSING tests</div></div></div> <div class="legend-item"><div class="legend-icon state-issues"></div> <div class="legend-info"><div class="legend-title text-primary">Issues</div> <div class="legend-desc text-secondary">Has tests but they are fake/tautological/broken</div></div></div> <div class="legend-item"><div class="legend-icon state-blocked"></div> <div class="legend-info"><div class="legend-title text-primary">Critical Issue</div> <div class="legend-desc text-secondary">Critical issue requiring immediate attention</div></div></div></div>',ue=f(),Ne&&Ne.c(),_e=f(),Ae&&Ae.c(),le=Zt(),s(i,"class","text-primary"),s(u,"class","btn-secondary toggle-btn"),Te(u,"active",l[4]==="kanban"),s(p,"class","btn-secondary toggle-btn"),Te(p,"active",l[4]==="timeline"),s(h,"class","btn-secondary toggle-btn"),Te(h,"active",l[4]==="dependencies"),s(o,"class","view-toggle"),m.__value="all",ve(m,m.__value),s(C,"class","category-filter bg-surface border rounded-md"),l[0]===void 0&&mt(()=>l[18].call(C)),s(k,"class","btn-primary create-btn"),s(_,"class","header-filters"),s(c,"class","header-controls"),s(n,"class","feature-header"),s(S,"class","stat-number text-primary"),s(E,"class","stat-label text-secondary"),s(T,"class","stat-card card bg-surface"),s(F,"class","stat-number text-success"),s(P,"class","stat-label text-secondary"),s(L,"class","stat-card card bg-surface complete"),s(x,"class","stat-number text-info"),s(ce,"class","stat-label text-secondary"),s(z,"class","stat-card card bg-surface progress"),s(Y,"class","stat-number text-error"),s(K,"class","stat-label text-secondary"),s(ne,"class","stat-card card bg-surface blocked"),s(te,"class","stat-card card bg-surface velocity"),s(b,"class","feature-stats bg-surface-2 rounded-lg"),s(X,"class","feature-legend card bg-surface-2 rounded-lg"),s(t,"class","feature-management-container")},m(G,Ce){U(G,t,Ce),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o),e(o,u),e(o,d),e(o,p),e(o,v),e(o,h),e(c,g),e(c,_),e(_,C),e(C,m);for(let ke=0;ke<be.length;ke+=1)be[ke]&&be[ke].m(C,null);it(C,l[0],!0),e(_,w),e(_,k),e(t,y),e(t,b),e(b,T),e(T,S),e(S,M),e(T,I),e(T,E),e(b,V),e(b,L),e(L,F),e(F,q),e(L,Z),e(L,P),e(b,R),e(b,z),e(z,x),e(x,W),e(z,J),e(z,ce),e(b,N),e(b,ne),e(ne,Y),e(Y,Q),e(ne,he),e(ne,K),e(b,fe),e(b,te),e(t,de),e(t,X),e(t,ue),Ne&&Ne.m(t,null),U(G,_e,Ce),Ae&&Ae.m(G,Ce),U(G,le,Ce),ae||(ge=[$(u,"click",l[15]),$(p,"click",l[16]),$(h,"click",l[17]),$(C,"change",l[18]),$(k,"click",l[10])],ae=!0)},p(G,Ce){if(Ce[0]&16&&Te(u,"active",G[4]==="kanban"),Ce[0]&16&&Te(p,"active",G[4]==="timeline"),Ce[0]&16&&Te(h,"active",G[4]==="dependencies"),Ce[0]&64){oe=re(G[6]);let ke;for(ke=0;ke<oe.length;ke+=1){const Pe=Ql(G,oe,ke);be[ke]?be[ke].p(Pe,Ce):(be[ke]=Zl(Pe),be[ke].c(),be[ke].m(C,null))}for(;ke<be.length;ke+=1)be[ke].d(1);be.length=oe.length}Ce[0]&65&&it(C,G[0]),Ce[0]&2&&D!==(D=G[1].length+"")&&H(M,D),Ce[0]&128&&j!==(j=G[7].complete.length+"")&&H(q,j),Ce[0]&128&&se!==(se=G[7].implemented.length+G[7].tested.length+"")&&H(W,se),Ce[0]&128&&ie!==(ie=G[7].issues.length+G[7].blocked.length+"")&&H(Q,ie),Ee===(Ee=ye(G))&&Ne?Ne.p(G,Ce):(Ne&&Ne.d(1),Ne=Ee&&Ee(G),Ne&&(Ne.c(),Ne.m(t,null))),G[3]?Ae?Ae.p(G,Ce):(Ae=un(G),Ae.c(),Ae.m(le.parentNode,le)):Ae&&(Ae.d(1),Ae=null)},i:Fe,o:Fe,d(G){G&&(O(t),O(_e),O(le)),je(be,G),Ne&&Ne.d(),Ae&&Ae.d(G),ae=!1,lt(ge)}}}function fn(l){switch(l){case"pending":return"Not Started";case"implemented":return"In Progress";case"tested":return"Testing";case"complete":return"Complete";case"issues":return"Issues";case"blocked":return"Blocked";default:return"Unknown"}}function Bt(l){return l.estimatedHours===0?0:Math.min(100,Math.round(l.completedHours/l.estimatedHours*100))}function gi(l,t){l.dataTransfer.setData("text/plain",JSON.stringify(t)),l.dataTransfer.effectAllowed="move"}function mi(l){l.preventDefault(),l.dataTransfer.dropEffect="move"}function _i(l,t,n){let i,r,c,o,u;Dt(l,Es,F=>n(13,u=F));let d=[],p=null,v="all",h=!1,g="kanban";const _=[{id:"F0228",title:"Feature Kanban Board",description:"Drag-and-drop kanban board with feature state columns",state:"complete",category:"ADE Interface",priority:"high",dependencies:[],assignee:"Claude",estimatedHours:8,completedHours:8,tags:["kanban","ui","drag-drop"]},{id:"F0229",title:"Feature State Legend",description:"Visual legend explaining feature state indicators",state:"implemented",category:"ADE Interface",priority:"medium",dependencies:["F0228"],assignee:"Claude",estimatedHours:4,completedHours:3,tags:["legend","ui","documentation"]},{id:"F0230",title:"Feature Card Details",description:"Individual feature cards with ID, description, status",state:"tested",category:"ADE Interface",priority:"high",dependencies:["F0228","F0229"],assignee:"Claude",estimatedHours:6,completedHours:6,tags:["cards","details","ui"]},{id:"F0231",title:"Feature Dependencies Graph",description:"Visual graph showing feature relationships and dependencies",state:"pending",category:"ADE Interface",priority:"medium",dependencies:["F0230"],assignee:"Claude",estimatedHours:12,completedHours:0,tags:["graph","dependencies","visualization"]},{id:"F0232",title:"Implementation Velocity Chart",description:"Weekly progress chart with completion predictions",state:"implemented",category:"Analytics",priority:"low",dependencies:[],assignee:"Claude",estimatedHours:10,completedHours:4,tags:["analytics","chart","velocity"]},{id:"F0233",title:"Feature Category Filtering",description:"Filter features by category (Core, Entity, Dashboard, etc.)",state:"issues",category:"Core",priority:"high",dependencies:[],assignee:"Claude",estimatedHours:3,completedHours:3,tags:["filtering","categories","ui"]}];function C(F){n(2,p=F)}function m(){return d.filter(j=>j.state==="complete"),[{week:"W1",completed:12},{week:"W2",completed:18},{week:"W3",completed:15},{week:"W4",completed:21},{week:"W5",completed:19}]}function w(F,j){F.preventDefault();const q=F.dataTransfer.getData("text/plain"),Z=JSON.parse(q),P=d.findIndex(R=>R.id===Z.id);P!==-1&&(n(12,d[P].state=j,d),n(12,d=[...d]))}function k(){n(3,h=!0)}function y(){n(3,h=!1)}Ft(()=>{d.length>0&&!p&&C(d[0])});function b(F){Os.call(this,l,F)}const T=()=>n(4,g="kanban"),S=()=>n(4,g="timeline"),D=()=>n(4,g="dependencies");function M(){v=Tt(this),n(0,v),n(6,c),n(12,d),n(13,u)}const I=(F,j)=>gi(j,F),E=F=>C(F),V=(F,j)=>w(j,F),L=F=>C(F);return l.$$.update=()=>{l.$$.dirty[0]&8192&&n(12,d=u&&Array.isArray(u)&&u.length>0?u:_),l.$$.dirty[0]&4097&&n(1,i=Array.isArray(d)?d.filter(F=>v==="all"||F.category===v):[]),l.$$.dirty[0]&2&&n(7,r={pending:(i||[]).filter(F=>F.state==="pending"),implemented:(i||[]).filter(F=>F.state==="implemented"),tested:(i||[]).filter(F=>F.state==="tested"),complete:(i||[]).filter(F=>F.state==="complete"),issues:(i||[]).filter(F=>F.state==="issues"),blocked:(i||[]).filter(F=>F.state==="blocked")}),l.$$.dirty[0]&4096&&n(6,c=[...new Set(d.map(F=>F.category))])},n(5,o=m()),[v,i,p,h,g,o,c,r,C,w,k,y,d,u,b,T,S,D,M,I,E,V,L]}class bi extends Ct{constructor(t){super(),yt(this,t,_i,hi,_t,{},null,[-1,-1])}}function pn(l,t,n){const i=l.slice();return i[27]=t[n],i}function vn(l,t,n){const i=l.slice();return i[30]=t[n],i[32]=n,i}function hn(l,t,n){const i=l.slice();return i[33]=t[n],i[32]=n,i}function gn(l,t,n){const i=l.slice();return i[33]=t[n],i}function mn(l,t,n){const i=l.slice();return i[37]=t[n],i}function _n(l){let t,n;return{c(){t=a("span"),s(t,"class",n="status-indicator status-"+l[33].status),s(t,"title","Modified")},m(i,r){U(i,t,r)},p(i,r){r[0]&1&&n!==(n="status-indicator status-"+i[33].status)&&s(t,"class",n)},d(i){i&&O(t)}}}function bn(l){let t,n=re(l[33].children),i=[];for(let r=0;r<n.length;r+=1)i[r]=yn(mn(l,n,r));return{c(){t=a("div");for(let r=0;r<i.length;r+=1)i[r].c();s(t,"class","folder-children")},m(r,c){U(r,t,c);for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(t,null)},p(r,c){if(c[0]&1027){n=re(r[33].children);let o;for(o=0;o<n.length;o+=1){const u=mn(r,n,o);i[o]?i[o].p(u,c):(i[o]=yn(u),i[o].c(),i[o].m(t,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(r){r&&O(t),je(i,r)}}}function kn(l){let t,n;return{c(){t=a("span"),s(t,"class",n="status-indicator status-"+l[37].status),s(t,"title","Modified")},m(i,r){U(i,t,r)},p(i,r){r[0]&1&&n!==(n="status-indicator status-"+i[37].status)&&s(t,"class",n)},d(i){i&&O(t)}}}function yn(l){let t,n,i=Qt(l[37])+"",r,c,o,u=l[37].name+"",d,p,v,h,g,_=l[37].status&&kn(l);function C(){return l[19](l[37])}return{c(){t=a("button"),n=a("span"),r=A(i),c=f(),o=a("span"),d=A(u),p=f(),_&&_.c(),v=f(),s(n,"class","file-icon"),s(o,"class","file-name"),s(t,"class","file-button child"),Te(t,"selected",l[1]===l[37])},m(m,w){U(m,t,w),e(t,n),e(n,r),e(t,c),e(t,o),e(o,d),e(t,p),_&&_.m(t,null),e(t,v),h||(g=$(t,"click",C),h=!0)},p(m,w){l=m,w[0]&1&&i!==(i=Qt(l[37])+"")&&H(r,i),w[0]&1&&u!==(u=l[37].name+"")&&H(d,u),l[37].status?_?_.p(l,w):(_=kn(l),_.c(),_.m(t,v)):_&&(_.d(1),_=null),w[0]&3&&Te(t,"selected",l[1]===l[37])},d(m){m&&O(t),_&&_.d(),h=!1,g()}}}function Cn(l){let t,n,i,r=Qt(l[33])+"",c,o,u,d=l[33].name+"",p,v,h,g,_,C,m=l[33].status&&_n(l);function w(){return l[18](l[33])}let k=l[33].type==="folder"&&l[33].expanded&&l[33].children&&bn(l);return{c(){t=a("div"),n=a("button"),i=a("span"),c=A(r),o=f(),u=a("span"),p=A(d),v=f(),m&&m.c(),h=f(),k&&k.c(),g=f(),s(i,"class","file-icon"),s(u,"class","file-name"),s(n,"class","file-button"),Te(n,"selected",l[1]===l[33]),s(t,"class","file-item"),Te(t,"folder",l[33].type==="folder")},m(y,b){U(y,t,b),e(t,n),e(n,i),e(i,c),e(n,o),e(n,u),e(u,p),e(n,v),m&&m.m(n,null),e(t,h),k&&k.m(t,null),e(t,g),_||(C=$(n,"click",w),_=!0)},p(y,b){l=y,b[0]&1&&r!==(r=Qt(l[33])+"")&&H(c,r),b[0]&1&&d!==(d=l[33].name+"")&&H(p,d),l[33].status?m?m.p(l,b):(m=_n(l),m.c(),m.m(n,null)):m&&(m.d(1),m=null),b[0]&3&&Te(n,"selected",l[1]===l[33]),l[33].type==="folder"&&l[33].expanded&&l[33].children?k?k.p(l,b):(k=bn(l),k.c(),k.m(t,g)):k&&(k.d(1),k=null),b[0]&1&&Te(t,"folder",l[33].type==="folder")},d(y){y&&O(t),m&&m.d(),k&&k.d(),_=!1,C()}}}function wn(l){let t,n=re(l[2]),i=[];for(let r=0;r<n.length;r+=1)i[r]=Tn(hn(l,n,r));return{c(){t=a("div");for(let r=0;r<i.length;r+=1)i[r].c();s(t,"class","file-tabs")},m(r,c){U(r,t,c);for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(t,null)},p(r,c){if(c[0]&6156){n=re(r[2]);let o;for(o=0;o<n.length;o+=1){const u=hn(r,n,o);i[o]?i[o].p(u,c):(i[o]=Tn(u),i[o].c(),i[o].m(t,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(r){r&&O(t),je(i,r)}}}function Sn(l){let t,n,i;return{c(){t=a("span"),n=A("●"),s(t,"class",i="tab-status status-"+l[33].status)},m(r,c){U(r,t,c),e(t,n)},p(r,c){c[0]&4&&i!==(i="tab-status status-"+r[33].status)&&s(t,"class",i)},d(r){r&&O(t)}}}function Tn(l){let t,n,i=Qt(l[33])+"",r,c,o,u=l[33].name+"",d,p,v,h,g,_,C,m=l[33].status&&Sn(l);function w(){return l[20](l[32])}function k(){return l[21](l[32])}return{c(){t=a("div"),n=a("span"),r=A(i),c=f(),o=a("span"),d=A(u),p=f(),m&&m.c(),v=f(),h=a("button"),h.textContent="�",g=f(),s(n,"class","tab-icon"),s(o,"class","tab-name"),s(h,"class","tab-close"),s(t,"class","file-tab"),Te(t,"active",l[32]===l[3])},m(y,b){U(y,t,b),e(t,n),e(n,r),e(t,c),e(t,o),e(o,d),e(t,p),m&&m.m(t,null),e(t,v),e(t,h),e(t,g),_||(C=[$(h,"click",Ds(w)),$(t,"click",k)],_=!0)},p(y,b){l=y,b[0]&4&&i!==(i=Qt(l[33])+"")&&H(r,i),b[0]&4&&u!==(u=l[33].name+"")&&H(d,u),l[33].status?m?m.p(l,b):(m=Sn(l),m.c(),m.m(t,v)):m&&(m.d(1),m=null),b[0]&8&&Te(t,"active",l[32]===l[3])},d(y){y&&O(t),m&&m.d(),_=!1,lt(C)}}}function ki(l){let t;return{c(){t=a("div"),t.innerHTML=`<div class="empty-state"><h3 class="text-primary">Welcome to Workspace IDE</h3> <p class="text-secondary">Select a file from the explorer to start editing</p> <div class="quick-actions"><button class="quick-btn">=� New File</button> <button class="quick-btn">=� Open Folder</button> <button class="quick-btn">=
 Quick Open</button></div></div>`,s(t,"class","empty-editor")},m(n,i){U(n,t,i)},p:Fe,d(n){n&&O(t)}}}function yi(l){let t,n,i,r,c,o,u=re(l[4].split(`
`)),d=[];for(let p=0;p<u.length;p+=1)d[p]=An(vn(l,u,p));return{c(){t=a("div"),n=a("div");for(let p=0;p<d.length;p+=1)d[p].c();i=f(),r=a("textarea"),s(n,"class","line-numbers"),s(r,"class","code-textarea"),s(r,"spellcheck","false"),s(r,"placeholder","Select a file to edit..."),s(t,"class","code-editor")},m(p,v){U(p,t,v),e(t,n);for(let h=0;h<d.length;h+=1)d[h]&&d[h].m(n,null);e(t,i),e(t,r),ve(r,l[4]),c||(o=$(r,"input",l[22]),c=!0)},p(p,v){if(v[0]&16){u=re(p[4].split(`
`));let h;for(h=0;h<u.length;h+=1){const g=vn(p,u,h);d[h]?d[h].p(g,v):(d[h]=An(g),d[h].c(),d[h].m(n,null))}for(;h<d.length;h+=1)d[h].d(1);d.length=u.length}v[0]&16&&ve(r,p[4])},d(p){p&&O(t),je(d,p),c=!1,o()}}}function An(l){let t;return{c(){t=a("div"),t.textContent=`${l[32]+1}`,s(t,"class","line-number")},m(n,i){U(n,t,i)},p:Fe,d(n){n&&O(t)}}}function Dn(l){let t,n,i,r,c,o,u,d,p,v,h,g,_;return{c(){t=a("div"),n=a("div"),i=a("div"),i.innerHTML='<div class="terminal-tab active">Terminal</div> <div class="terminal-tab">Output</div> <div class="terminal-tab">Debug Console</div>',r=f(),c=a("button"),c.textContent="�",o=f(),u=a("div"),d=a("pre"),p=A(l[6]),v=f(),h=a("div"),h.innerHTML='<span class="prompt">$</span> <input type="text" class="command-input" placeholder="Type a command..."/>',s(i,"class","terminal-tabs"),s(c,"class","terminal-close"),s(n,"class","terminal-header"),s(h,"class","terminal-input"),s(u,"class","terminal-content"),s(t,"class","terminal-panel")},m(C,m){U(C,t,m),e(t,n),e(n,i),e(n,r),e(n,c),e(t,o),e(t,u),e(u,d),e(d,p),e(u,v),e(u,h),g||(_=$(c,"click",l[23]),g=!0)},p(C,m){m[0]&64&&H(p,C[6])},d(C){C&&O(t),g=!1,_()}}}function Mn(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C=re(l[8]),m=[];for(let w=0;w<C.length;w+=1)m[w]=In(pn(l,C,w));return{c(){t=a("div"),n=a("div"),i=a("h3"),i.textContent="> AI Assistant",r=f(),c=a("button"),c.textContent="�",o=f(),u=a("div"),d=a("h4"),d.textContent="Suggestions",p=f();for(let w=0;w<m.length;w+=1)m[w].c();v=f(),h=a("div"),h.innerHTML='<h4 class="text-secondary">Ask AI</h4> <div class="chat-input"><textarea placeholder="Ask about your code, request refactoring suggestions, or get help with implementation..." rows="3"></textarea> <button class="send-btn">Send</button></div>',s(c,"class","ai-close"),s(n,"class","ai-header"),s(d,"class","text-secondary"),s(u,"class","ai-suggestions"),s(h,"class","ai-chat"),s(t,"class","ai-panel card bg-surface-2")},m(w,k){U(w,t,k),e(t,n),e(n,i),e(n,r),e(n,c),e(t,o),e(t,u),e(u,d),e(u,p);for(let y=0;y<m.length;y+=1)m[y]&&m[y].m(u,null);e(t,v),e(t,h),g||(_=$(c,"click",l[16]),g=!0)},p(w,k){if(k[0]&256){C=re(w[8]);let y;for(y=0;y<C.length;y+=1){const b=pn(w,C,y);m[y]?m[y].p(b,k):(m[y]=In(b),m[y].c(),m[y].m(u,null))}for(;y<m.length;y+=1)m[y].d(1);m.length=C.length}},d(w){w&&O(t),je(m,w),g=!1,_()}}}function In(l){let t,n,i=l[27].type+"",r,c,o,u=l[27].content+"",d,p,v,h,g=l[27].line+"",_,C,m=Math.round(l[27].confidence*100)+"",w,k,y,b,T;return{c(){t=a("div"),n=a("div"),r=A(i),c=f(),o=a("div"),d=A(u),p=f(),v=a("div"),h=A("Line "),_=A(g),C=A(' " '),w=A(m),k=A("% confidence"),y=f(),b=a("div"),b.innerHTML='<button class="suggestion-btn">Apply</button> <button class="suggestion-btn secondary">Dismiss</button>',T=f(),s(n,"class","suggestion-type"),s(o,"class","suggestion-content"),s(v,"class","suggestion-meta"),s(b,"class","suggestion-actions"),s(t,"class","suggestion-item")},m(S,D){U(S,t,D),e(t,n),e(n,r),e(t,c),e(t,o),e(o,d),e(t,p),e(t,v),e(v,h),e(v,_),e(v,C),e(v,w),e(v,k),e(t,y),e(t,b),e(t,T)},p(S,D){D[0]&256&&i!==(i=S[27].type+"")&&H(r,i),D[0]&256&&u!==(u=S[27].content+"")&&H(d,u),D[0]&256&&g!==(g=S[27].line+"")&&H(_,g),D[0]&256&&m!==(m=Math.round(S[27].confidence*100)+"")&&H(w,m)},d(S){S&&O(t)}}}function Ci(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P=re(l[0]),R=[];for(let N=0;N<P.length;N+=1)R[N]=Cn(gn(l,P,N));let z=l[2].length>0&&wn(l);function x(N,ne){return N[1]?yi:ki}let se=x(l),W=se(l),J=l[7]&&Dn(l),ce=l[9]&&Mn(l);return{c(){t=a("div"),n=a("div"),i=a("div"),i.innerHTML='<h3 class="text-primary">Explorer</h3> <div class="explorer-actions"><button class="btn-secondary action-btn" title="New File">+</button> <button class="action-btn" title="New Folder">=�</button> <button class="action-btn" title="Refresh">=</button></div>',r=f(),c=a("div"),o=a("input"),u=f(),d=a("div");for(let N=0;N<R.length;N+=1)R[N].c();p=f(),v=a("div"),h=a("div"),g=a("div"),_=a("button"),_.textContent="� Run",C=f(),m=a("button"),m.textContent="=\x1B Debug",w=f(),k=a("button"),k.textContent=">� Test",y=f(),b=a("div"),T=a("button"),T.textContent="> AI Assist",S=f(),D=a("button"),D.textContent="=� Format",M=f(),I=a("button"),I.textContent="=\r Search",E=f(),z&&z.c(),V=f(),L=a("div"),W.c(),F=f(),J&&J.c(),j=f(),ce&&ce.c(),s(i,"class","explorer-header"),s(o,"type","text"),s(o,"placeholder","Search files..."),s(o,"class","search-input bg-surface border rounded-md"),s(c,"class","search-box"),s(d,"class","file-tree"),s(n,"class","file-explorer card bg-surface-2"),s(_,"class","btn-primary toolbar-btn"),s(m,"class","btn-secondary toolbar-btn"),s(k,"class","btn-secondary toolbar-btn"),s(g,"class","toolbar-group"),s(T,"class","btn-secondary toolbar-btn"),Te(T,"active",l[9]),s(D,"class","toolbar-btn"),s(D,"title","Format Code"),s(I,"class","toolbar-btn"),s(I,"title","Find in Files"),s(b,"class","toolbar-group"),s(h,"class","toolbar"),s(L,"class","editor-container"),s(v,"class","editor-area"),s(t,"class","workspace-ide-container card bg-surface")},m(N,ne){U(N,t,ne),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o),ve(o,l[5]),e(n,u),e(n,d);for(let Y=0;Y<R.length;Y+=1)R[Y]&&R[Y].m(d,null);e(t,p),e(t,v),e(v,h),e(h,g),e(g,_),e(g,C),e(g,m),e(g,w),e(g,k),e(h,y),e(h,b),e(b,T),e(b,S),e(b,D),e(b,M),e(b,I),e(v,E),z&&z.m(v,null),e(v,V),e(v,L),W.m(L,null),e(v,F),J&&J.m(v,null),e(t,j),ce&&ce.m(t,null),q||(Z=[$(o,"input",l[17]),$(_,"click",l[13]),$(m,"click",l[14]),$(k,"click",l[15]),$(T,"click",l[16])],q=!0)},p(N,ne){if(ne[0]&32&&o.value!==N[5]&&ve(o,N[5]),ne[0]&1027){P=re(N[0]);let Y;for(Y=0;Y<P.length;Y+=1){const ie=gn(N,P,Y);R[Y]?R[Y].p(ie,ne):(R[Y]=Cn(ie),R[Y].c(),R[Y].m(d,null))}for(;Y<R.length;Y+=1)R[Y].d(1);R.length=P.length}ne[0]&512&&Te(T,"active",N[9]),N[2].length>0?z?z.p(N,ne):(z=wn(N),z.c(),z.m(v,V)):z&&(z.d(1),z=null),se===(se=x(N))&&W?W.p(N,ne):(W.d(1),W=se(N),W&&(W.c(),W.m(L,null))),N[7]?J?J.p(N,ne):(J=Dn(N),J.c(),J.m(v,null)):J&&(J.d(1),J=null),N[9]?ce?ce.p(N,ne):(ce=Mn(N),ce.c(),ce.m(t,null)):ce&&(ce.d(1),ce=null)},i:Fe,o:Fe,d(N){N&&O(t),je(R,N),z&&z.d(),W.d(),J&&J.d(),ce&&ce.d(),q=!1,lt(Z)}}}function Qt(l){if(l.type==="folder")return l.expanded,"=�";switch(l.language){case"rust":return">�";case"javascript":return"=�";case"html":return"<";case"css":return"<�";case"markdown":return"=�";case"toml":return"�";default:return"=�"}}function wi(l,t,n){let i=[],r=null,c=[],o=0,u="",d="",p="",v=!1,h=[],g=!1;Ft(async()=>{n(0,i=[{name:"src",type:"folder",expanded:!0,children:[{name:"main.rs",type:"file",status:"M",language:"rust"},{name:"lib.rs",type:"file",status:"",language:"rust"},{name:"components",type:"folder",expanded:!1,children:[{name:"header.rs",type:"file",status:"M",language:"rust"},{name:"sidebar.rs",type:"file",status:"A",language:"rust"}]}]},{name:"tests",type:"folder",expanded:!1,children:[{name:"integration.rs",type:"file",status:"",language:"rust"}]},{name:"Cargo.toml",type:"file",status:"M",language:"toml"},{name:"README.md",type:"file",status:"",language:"markdown"}]),n(8,h=[{type:"code_completion",content:"Consider adding error handling for this function",line:42,confidence:.85},{type:"refactor",content:"This function could be simplified using iterator combinators",line:28,confidence:.72}])});function _(j){j.expanded=!j.expanded,n(0,i=[...i])}function C(j){if(j.type==="folder"){_(j);return}n(1,r=j),c.find(q=>q.name===j.name)||n(2,c=[...c,j]),n(3,o=c.findIndex(q=>q.name===j.name)),k(j)}function m(j){c.splice(j,1),n(2,c=[...c]),o>=c.length&&n(3,o=c.length-1),c.length>0&&o>=0?(n(1,r=c[o]),k(r)):(n(1,r=null),n(4,u=""))}function w(j){n(3,o=j),n(1,r=c[j]),k(r)}function k(j){switch(j.name){case"main.rs":n(4,u=`use std::collections::HashMap;

fn main() {
    println!("Hello, workspace!");
    
    let mut config = HashMap::new();
    config.insert("version", "1.0.0");
    config.insert("name", "workspace");
    
    process_config(&config);
}

fn process_config(config: &HashMap<&str, &str>) {
    for (key, value) in config {
        println!("{}: {}", key, value);
    }
}`);break;case"Cargo.toml":n(4,u=`[package]
name = "workspace"
version = "0.1.0"
edition = "2021"

[dependencies]
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.0", features = ["full"] }
clap = { version = "4.0", features = ["derive"] }`);break;default:n(4,u=`// ${j.name}
// File content would be loaded here
`)}}function y(){n(6,p=`Running cargo run...
   Compiling workspace v0.1.0
    Finished dev [unoptimized + debuginfo] target(s) in 1.23s
     Running \`target/debug/workspace\`
Hello, workspace!
version: 1.0.0
name: workspace`),n(7,v=!0)}function b(){n(6,p=`Starting debugger...
Breakpoint set at src/main.rs:4
Debugger ready - use step/continue controls`),n(7,v=!0)}function T(){n(6,p=`Running cargo test...
   Compiling workspace v0.1.0
running 3 tests
test test_config ... ok
test test_process ... ok
test test_main ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured`),n(7,v=!0)}function S(){n(9,g=!g)}function D(){d=this.value,n(5,d)}const M=j=>C(j),I=j=>C(j),E=j=>m(j),V=j=>w(j);function L(){u=this.value,n(4,u)}return[i,r,c,o,u,d,p,v,h,g,C,m,w,y,b,T,S,D,M,I,E,V,L,()=>n(7,v=!1)]}class Si extends Ct{constructor(t){super(),yt(this,t,wi,Ci,_t,{},null,[-1,-1])}}function Fn(l,t,n){const i=l.slice();return i[15]=t[n],i[17]=n,i}function En(l,t,n){const i=l.slice();return i[18]=t[n],i}function Hn(l,t,n){const i=l.slice();return i[21]=t[n],i}function Rn(l,t,n){const i=l.slice();return i[24]=t[n],i}function Ln(l,t,n){const i=l.slice();return i[27]=t[n],i}function jn(l,t,n){const i=l.slice();return i[30]=t[n],i}function Ti(l){let t;return{c(){t=A("Run All Tests")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function Ai(l){let t;return{c(){t=A("Running Tests...")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function Di(l){let t;return{c(){t=A("Run")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function Mi(l){let t;return{c(){t=A("Running")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function Pn(l){let t,n,i=l[30].skipped+"",r,c,o;return{c(){t=a("div"),n=a("div"),r=A(i),c=f(),o=a("div"),o.textContent="Skipped",s(n,"class","stat-value"),s(o,"class","stat-label text-secondary"),s(t,"class","stat skipped")},m(u,d){U(u,t,d),e(t,n),e(n,r),e(t,c),e(t,o)},p(u,d){d[0]&1&&i!==(i=u[30].skipped+"")&&H(r,i)},d(u){u&&O(t)}}}function Nn(l){let t,n,i,r,c,o,u=`${l[30].coverage}%`,d,p,v=l[30].coverage+"",h,g,_;return{c(){t=a("div"),n=a("div"),n.textContent="Code Coverage",i=f(),r=a("div"),c=a("div"),d=f(),p=a("div"),h=A(v),g=A("%"),s(n,"class","coverage-label text-secondary"),s(c,"class",o="coverage-fill coverage-"+(l[30].coverage>=80?"good":l[30].coverage>=60?"medium":"poor")),tt(c,"width",u),s(r,"class","coverage-bar"),s(p,"class",_="coverage-value coverage-"+(l[30].coverage>=80?"good":l[30].coverage>=60?"medium":"poor")),s(t,"class","coverage-info")},m(C,m){U(C,t,m),e(t,n),e(t,i),e(t,r),e(r,c),e(t,d),e(t,p),e(p,h),e(p,g)},p(C,m){m[0]&1&&o!==(o="coverage-fill coverage-"+(C[30].coverage>=80?"good":C[30].coverage>=60?"medium":"poor"))&&s(c,"class",o),m[0]&1&&u!==(u=`${C[30].coverage}%`)&&tt(c,"width",u),m[0]&1&&v!==(v=C[30].coverage+"")&&H(h,v),m[0]&1&&_!==(_="coverage-value coverage-"+(C[30].coverage>=80?"good":C[30].coverage>=60?"medium":"poor"))&&s(p,"class",_)},d(C){C&&O(t)}}}function $n(l){let t,n,i,r,c=l[30].name+"",o,u,d,p=l[30].total+"",v,h,g=Jn(l[30].duration)+"",_,C,m=Kn(l[30].lastRun)+"",w,k,y,b,T,S,D,M,I=l[30].passed+"",E,V,L,F,j,q,Z=l[30].failed+"",P,R,z,x,se,W,J,ce=Zn(l[30])+"",N,ne,Y,ie,Q,he,K,fe,te;function de(ge,oe){return ge[30].status==="running"?Mi:Di}let X=de(l),ue=X(l);function _e(){return l[11](l[30])}let le=l[30].skipped>0&&Pn(l),ae=l[30].coverage>0&&Nn(l);return{c(){t=a("div"),n=a("div"),i=a("div"),r=a("h3"),o=A(c),u=f(),d=a("div"),v=A(p),h=A(" tests • "),_=A(g),C=A(" • "),w=A(m),k=f(),y=a("button"),ue.c(),b=f(),T=a("div"),S=a("div"),D=a("div"),M=a("div"),E=A(I),V=f(),L=a("div"),L.textContent="Passed",F=f(),j=a("div"),q=a("div"),P=A(Z),R=f(),z=a("div"),z.textContent="Failed",x=f(),le&&le.c(),se=f(),W=a("div"),J=a("div"),N=A(ce),ne=A("%"),ie=f(),Q=a("div"),Q.textContent="Pass Rate",he=f(),ae&&ae.c(),K=f(),s(r,"class","text-primary"),s(d,"class","suite-meta text-secondary"),s(i,"class","suite-info"),s(y,"class","btn-secondary run-suite-btn"),y.disabled=l[6],s(n,"class","suite-header"),s(M,"class","stat-value"),s(L,"class","stat-label text-secondary"),s(D,"class","stat passed"),s(q,"class","stat-value"),s(z,"class","stat-label text-secondary"),s(j,"class","stat failed"),s(S,"class","result-stats"),s(J,"class",Y="rate-value status-"+(l[30].failed===0?"passed":"failed")),s(Q,"class","rate-label text-secondary"),s(W,"class","pass-rate"),s(T,"class","suite-results"),s(t,"class","suite-card card bg-surface-2"),Te(t,"running",l[30].status==="running")},m(ge,oe){U(ge,t,oe),e(t,n),e(n,i),e(i,r),e(r,o),e(i,u),e(i,d),e(d,v),e(d,h),e(d,_),e(d,C),e(d,w),e(n,k),e(n,y),ue.m(y,null),e(t,b),e(t,T),e(T,S),e(S,D),e(D,M),e(M,E),e(D,V),e(D,L),e(S,F),e(S,j),e(j,q),e(q,P),e(j,R),e(j,z),e(S,x),le&&le.m(S,null),e(T,se),e(T,W),e(W,J),e(J,N),e(J,ne),e(W,ie),e(W,Q),e(t,he),ae&&ae.m(t,null),e(t,K),fe||(te=$(y,"click",_e),fe=!0)},p(ge,oe){l=ge,oe[0]&1&&c!==(c=l[30].name+"")&&H(o,c),oe[0]&1&&p!==(p=l[30].total+"")&&H(v,p),oe[0]&1&&g!==(g=Jn(l[30].duration)+"")&&H(_,g),oe[0]&1&&m!==(m=Kn(l[30].lastRun)+"")&&H(w,m),X!==(X=de(l))&&(ue.d(1),ue=X(l),ue&&(ue.c(),ue.m(y,null))),oe[0]&64&&(y.disabled=l[6]),oe[0]&1&&I!==(I=l[30].passed+"")&&H(E,I),oe[0]&1&&Z!==(Z=l[30].failed+"")&&H(P,Z),l[30].skipped>0?le?le.p(l,oe):(le=Pn(l),le.c(),le.m(S,null)):le&&(le.d(1),le=null),oe[0]&1&&ce!==(ce=Zn(l[30])+"")&&H(N,ce),oe[0]&1&&Y!==(Y="rate-value status-"+(l[30].failed===0?"passed":"failed"))&&s(J,"class",Y),l[30].coverage>0?ae?ae.p(l,oe):(ae=Nn(l),ae.c(),ae.m(t,K)):ae&&(ae.d(1),ae=null),oe[0]&1&&Te(t,"running",l[30].status==="running")},d(ge){ge&&O(t),ue.d(),le&&le.d(),ae&&ae.d(),fe=!1,te()}}}function On(l){let t,n,i=l[27].error+"",r;return{c(){t=a("div"),n=a("div"),r=A(i),s(n,"class","error-message"),s(t,"class","result-error")},m(c,o){U(c,t,o),e(t,n),e(n,r)},p(c,o){o[0]&2&&i!==(i=c[27].error+"")&&H(r,i)},d(c){c&&O(t)}}}function Un(l){let t,n,i,r,c=l[27].name+"",o,u,d,p=l[27].file+"",v,h,g,_,C=l[27].status+"",m,w,k,y,b=l[27].duration+"",T,S,D,M,I=l[27].error&&On(l);return{c(){t=a("div"),n=a("div"),i=a("div"),r=a("div"),o=A(c),u=f(),d=a("div"),v=A(p),h=f(),g=a("div"),_=a("div"),m=A(C),k=f(),y=a("div"),T=A(b),S=A("s"),D=f(),I&&I.c(),M=f(),s(r,"class","result-name text-primary"),s(d,"class","result-file text-secondary"),s(i,"class","result-info"),s(_,"class",w="result-status status-"+l[27].status),s(y,"class","result-duration"),s(g,"class","result-meta"),s(n,"class","result-header"),s(t,"class","result-item card bg-surface border"),Te(t,"failed",l[27].status==="failed")},m(E,V){U(E,t,V),e(t,n),e(n,i),e(i,r),e(r,o),e(i,u),e(i,d),e(d,v),e(n,h),e(n,g),e(g,_),e(_,m),e(g,k),e(g,y),e(y,T),e(y,S),e(t,D),I&&I.m(t,null),e(t,M)},p(E,V){V[0]&2&&c!==(c=E[27].name+"")&&H(o,c),V[0]&2&&p!==(p=E[27].file+"")&&H(v,p),V[0]&2&&C!==(C=E[27].status+"")&&H(m,C),V[0]&2&&w!==(w="result-status status-"+E[27].status)&&s(_,"class",w),V[0]&2&&b!==(b=E[27].duration+"")&&H(T,b),E[27].error?I?I.p(E,V):(I=On(E),I.c(),I.m(t,M)):I&&(I.d(1),I=null),V[0]&2&&Te(t,"failed",E[27].status==="failed")},d(E){E&&O(t),I&&I.d()}}}function Wn(l){let t,n,i,r=l[24].name+"",c,o,u,d=l[24].coverage+"",p,v,h,g,_,C,m,w=`${l[24].coverage}%`,k,y,b,T=l[24].lines-l[24].uncovered+"",S,D,M=l[24].lines+"",I,E,V,L,F=l[24].uncovered+"",j,q,Z;return{c(){t=a("div"),n=a("div"),i=a("div"),c=A(r),o=f(),u=a("div"),p=A(d),v=A("%"),g=f(),_=a("div"),C=a("div"),k=f(),y=a("div"),b=a("span"),S=A(T),D=A("/"),I=A(M),E=A(" lines covered"),V=f(),L=a("span"),j=A(F),q=A(" uncovered"),Z=f(),s(i,"class","module-name text-primary"),s(u,"class",h="module-coverage coverage-"+(l[24].coverage>=80?"good":l[24].coverage>=60?"medium":"poor")),s(n,"class","module-header"),s(C,"class",m="module-fill coverage-bar coverage-"+(l[24].coverage>=80?"good":l[24].coverage>=60?"medium":"poor")),tt(C,"width",w),s(_,"class","module-bar"),s(b,"class","text-secondary"),s(L,"class","uncovered-count text-tertiary"),s(y,"class","module-details"),s(t,"class","module-item")},m(P,R){U(P,t,R),e(t,n),e(n,i),e(i,c),e(n,o),e(n,u),e(u,p),e(u,v),e(t,g),e(t,_),e(_,C),e(t,k),e(t,y),e(y,b),e(b,S),e(b,D),e(b,I),e(b,E),e(y,V),e(y,L),e(L,j),e(L,q),e(t,Z)},p(P,R){R[0]&4&&r!==(r=P[24].name+"")&&H(c,r),R[0]&4&&d!==(d=P[24].coverage+"")&&H(p,d),R[0]&4&&h!==(h="module-coverage coverage-"+(P[24].coverage>=80?"good":P[24].coverage>=60?"medium":"poor"))&&s(u,"class",h),R[0]&4&&m!==(m="module-fill coverage-bar coverage-"+(P[24].coverage>=80?"good":P[24].coverage>=60?"medium":"poor"))&&s(C,"class",m),R[0]&4&&w!==(w=`${P[24].coverage}%`)&&tt(C,"width",w),R[0]&4&&T!==(T=P[24].lines-P[24].uncovered+"")&&H(S,T),R[0]&4&&M!==(M=P[24].lines+"")&&H(I,M),R[0]&4&&F!==(F=P[24].uncovered+"")&&H(j,F)},d(P){P&&O(t)}}}function Vn(l){let t,n,i,r=l[21].test+"",c,o,u,d=It(l[21])+"",p,v,h,g,_,C=l[21].actual+"",m,w,k,y=l[21].trend+"",b,T,S,D,M=l[21].threshold+"",I,E,V;return{c(){t=a("div"),n=a("div"),i=a("div"),c=A(r),o=f(),u=a("div"),p=A(d),h=f(),g=a("div"),_=a("div"),m=A(C),w=A(`ms
                `),k=a("span"),b=A(y),T=f(),S=a("div"),D=A("Threshold: "),I=A(M),E=A("ms"),V=f(),s(i,"class","metric-name text-primary"),s(u,"class",v="metric-status status-"+It(l[21])),s(n,"class","metric-header"),s(k,"class","metric-trend"),Te(k,"positive",l[21].trend.startsWith("-")),Te(k,"negative",l[21].trend.startsWith("+")),s(_,"class","metric-actual"),s(S,"class","metric-threshold"),s(g,"class","metric-values"),s(t,"class","metric-item card bg-surface border"),Te(t,"failed",It(l[21])==="failed")},m(L,F){U(L,t,F),e(t,n),e(n,i),e(i,c),e(n,o),e(n,u),e(u,p),e(t,h),e(t,g),e(g,_),e(_,m),e(_,w),e(_,k),e(k,b),e(g,T),e(g,S),e(S,D),e(S,I),e(S,E),e(t,V)},p(L,F){F[0]&8&&r!==(r=L[21].test+"")&&H(c,r),F[0]&8&&d!==(d=It(L[21])+"")&&H(p,d),F[0]&8&&v!==(v="metric-status status-"+It(L[21]))&&s(u,"class",v),F[0]&8&&C!==(C=L[21].actual+"")&&H(m,C),F[0]&8&&y!==(y=L[21].trend+"")&&H(b,y),F[0]&8&&Te(k,"positive",L[21].trend.startsWith("-")),F[0]&8&&Te(k,"negative",L[21].trend.startsWith("+")),F[0]&8&&M!==(M=L[21].threshold+"")&&H(I,M),F[0]&8&&Te(t,"failed",It(L[21])==="failed")},d(L){L&&O(t)}}}function qn(l){let t;return{c(){t=a("button"),t.textContent="👁️ View Comparison",s(t,"class","compare-btn")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function Bn(l){let t,n,i,r,c=l[18].name+"",o,u,d,p=l[18].browser+"",v,h,g=l[18].viewport+"",_,C,m,w=l[18].status+"",k,y,b,T,S,D=l[18].diff+"",M,I,E,V,L=l[18].status==="failed"&&qn();return{c(){t=a("div"),n=a("div"),i=a("div"),r=a("div"),o=A(c),u=f(),d=a("div"),v=A(p),h=A(" • "),_=A(g),C=f(),m=a("div"),k=A(w),b=f(),T=a("div"),S=a("div"),M=A(D),I=A("% difference"),E=f(),L&&L.c(),V=f(),s(r,"class","visual-name text-primary"),s(d,"class","visual-meta text-secondary"),s(i,"class","visual-info"),s(m,"class",y="visual-status status-"+l[18].status),s(n,"class","visual-header"),s(S,"class","diff-percentage"),Te(S,"warning",l[18].diff>1),Te(S,"error",l[18].diff>2),s(T,"class","visual-details"),s(t,"class","visual-item card bg-surface border"),Te(t,"failed",l[18].status==="failed")},m(F,j){U(F,t,j),e(t,n),e(n,i),e(i,r),e(r,o),e(i,u),e(i,d),e(d,v),e(d,h),e(d,_),e(n,C),e(n,m),e(m,k),e(t,b),e(t,T),e(T,S),e(S,M),e(S,I),e(T,E),L&&L.m(T,null),e(t,V)},p(F,j){j[0]&32&&c!==(c=F[18].name+"")&&H(o,c),j[0]&32&&p!==(p=F[18].browser+"")&&H(v,p),j[0]&32&&g!==(g=F[18].viewport+"")&&H(_,g),j[0]&32&&w!==(w=F[18].status+"")&&H(k,w),j[0]&32&&y!==(y="visual-status status-"+F[18].status)&&s(m,"class",y),j[0]&32&&D!==(D=F[18].diff+"")&&H(M,D),j[0]&32&&Te(S,"warning",F[18].diff>1),j[0]&32&&Te(S,"error",F[18].diff>2),F[18].status==="failed"?L||(L=qn(),L.c(),L.m(T,null)):L&&(L.d(1),L=null),j[0]&32&&Te(t,"failed",F[18].status==="failed")},d(F){F&&O(t),L&&L.d()}}}function zn(l){let t,n,i,r,c=`${l[15].passed/l[15].total*100}%`,o,u,d,p=`${l[15].failed/l[15].total*100}%`,v,h,g=l[15].date.split("-")[2]+"",_,C,m,w,k=l[15].passed+"",y,b,T,S=l[15].failed+"",D,M;return{c(){t=a("div"),n=a("div"),i=a("div"),o=f(),u=a("div"),v=f(),h=a("div"),_=A(g),C=f(),m=a("div"),w=a("div"),y=A(k),b=f(),T=a("div"),D=A(S),M=f(),s(i,"class","bar-passed"),s(i,"title",r=l[15].passed+" passed"),tt(i,"height",c),s(u,"class","bar-failed"),s(u,"title",d=l[15].failed+" failed"),tt(u,"height",p),s(n,"class","bar-container"),s(h,"class","day-label"),s(w,"class","day-passed"),s(T,"class","day-failed"),s(m,"class","day-stats"),s(t,"class","day-bar")},m(I,E){U(I,t,E),e(t,n),e(n,i),e(n,o),e(n,u),e(t,v),e(t,h),e(h,_),e(t,C),e(t,m),e(m,w),e(w,y),e(m,b),e(m,T),e(T,D),e(t,M)},p(I,E){E[0]&16&&r!==(r=I[15].passed+" passed")&&s(i,"title",r),E[0]&16&&c!==(c=`${I[15].passed/I[15].total*100}%`)&&tt(i,"height",c),E[0]&16&&d!==(d=I[15].failed+" failed")&&s(u,"title",d),E[0]&16&&p!==(p=`${I[15].failed/I[15].total*100}%`)&&tt(u,"height",p),E[0]&16&&g!==(g=I[15].date.split("-")[2]+"")&&H(_,g),E[0]&16&&k!==(k=I[15].passed+"")&&H(y,k),E[0]&16&&S!==(S=I[15].failed+"")&&H(D,S)},d(I){I&&O(t)}}}function Gn(l){let t,n,i,r,c,o,u,d,p,v,h,g,_=l[6]&&Qn();return{c(){t=a("div"),n=a("div"),i=a("h3"),i.textContent="Test Output",r=f(),c=a("button"),c.textContent="×",o=f(),u=a("div"),d=a("pre"),p=A(l[7]),v=f(),_&&_.c(),s(i,"class","text-primary"),s(c,"class","close-output"),s(n,"class","output-header"),s(u,"class","output-content"),s(t,"class","output-panel")},m(C,m){U(C,t,m),e(t,n),e(n,i),e(n,r),e(n,c),e(t,o),e(t,u),e(u,d),e(d,p),e(u,v),_&&_.m(u,null),h||(g=$(c,"click",l[14]),h=!0)},p(C,m){m[0]&128&&H(p,C[7]),C[6]?_||(_=Qn(),_.c(),_.m(u,null)):_&&(_.d(1),_=null)},d(C){C&&O(t),_&&_.d(),h=!1,g()}}}function Qn(l){let t;return{c(){t=a("div"),t.innerHTML='<div class="spinner"></div> <span>Running tests...</span>',s(t,"class","loading-indicator")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function Ii(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se,W=l[2].overall+"",J,ce,N,ne,Y,ie,Q,he,K,fe,te,de,X,ue,_e,le=l[3].filter(l[12]).length+"",ae,ge,oe,be,ye=l[3].filter(l[13]).length+"",Ee,Ne,Ae,G,Ce,ke,Pe,Oe,Me,Ve,Re,xe,ot,Ie,Ze,nt,ze,Le;function Ue(ee,Qe){return ee[6]?Ai:Ti}let He=Ue(l),Se=He(l),We=re(l[0]),De=[];for(let ee=0;ee<We.length;ee+=1)De[ee]=$n(jn(l,We,ee));let at=re(l[1]),Je=[];for(let ee=0;ee<at.length;ee+=1)Je[ee]=Un(Ln(l,at,ee));let st=re(l[2].modules),et=[];for(let ee=0;ee<st.length;ee+=1)et[ee]=Wn(Rn(l,st,ee));let Ke=re(l[3]),Ge=[];for(let ee=0;ee<Ke.length;ee+=1)Ge[ee]=Vn(Hn(l,Ke,ee));let Ye=re(l[5]),pe=[];for(let ee=0;ee<Ye.length;ee+=1)pe[ee]=Bn(En(l,Ye,ee));let qe=re(l[4]),me=[];for(let ee=0;ee<qe.length;ee+=1)me[ee]=zn(Fn(l,qe,ee));let Be=l[8]&&Gn(l);return{c(){t=a("div"),n=a("div"),i=a("h1"),i.textContent="Testing & Quality",r=f(),c=a("div"),o=a("button"),Se.c(),u=f(),d=a("div"),p=a("div");for(let ee=0;ee<De.length;ee+=1)De[ee].c();v=f(),h=a("div"),g=a("div"),_=a("div"),C=a("h2"),C.textContent="Recent Test Results",m=f(),w=a("div"),k=a("select"),y=a("option"),y.textContent="All Suites",b=a("option"),b.textContent="Unit Tests",T=a("option"),T.textContent="Integration",S=a("option"),S.textContent="Visual",D=a("option"),D.textContent="Performance",M=f(),I=a("select"),E=a("option"),E.textContent="All Results",V=a("option"),V.textContent="Failed Only",L=a("option"),L.textContent="Passed Only",F=f(),j=a("div");for(let ee=0;ee<Je.length;ee+=1)Je[ee].c();q=f(),Z=a("div"),P=a("div"),R=a("h2"),R.textContent="Code Coverage",z=f(),x=a("div"),se=a("span"),J=A(W),ce=A("%"),ne=f(),Y=a("span"),Y.textContent="Overall",ie=f(),Q=a("div");for(let ee=0;ee<et.length;ee+=1)et[ee].c();he=f(),K=a("div"),fe=a("div"),te=a("div"),de=a("h2"),de.textContent="Performance Benchmarks",X=f(),ue=a("div"),_e=a("span"),ae=A(le),ge=A(" passed"),oe=f(),be=a("span"),Ee=A(ye),Ne=A(" failed"),Ae=f(),G=a("div");for(let ee=0;ee<Ge.length;ee+=1)Ge[ee].c();Ce=f(),ke=a("div"),Pe=a("div"),Pe.innerHTML='<h2 class="text-primary">Visual Regression Tests</h2> <div class="visual-controls"><button class="visual-btn">📷 Capture Baselines</button> <button class="visual-btn">🔍 Run Visual Tests</button></div>',Oe=f(),Me=a("div");for(let ee=0;ee<pe.length;ee+=1)pe[ee].c();Ve=f(),Re=a("div"),xe=a("div"),xe.innerHTML='<h2>Test History (Last 7 Days)</h2> <div class="history-stats"><span class="trend-info text-success">Pass rate trending up 📈</span></div>',ot=f(),Ie=a("div"),Ze=a("div");for(let ee=0;ee<me.length;ee+=1)me[ee].c();nt=f(),Be&&Be.c(),s(i,"class","text-primary"),s(o,"class","btn-primary run-all-btn"),o.disabled=l[6],s(c,"class","header-controls"),s(n,"class","testing-header"),s(p,"class","overview-stats"),s(d,"class","suite-overview"),s(C,"class","text-primary"),y.__value="all",ve(y,y.__value),b.__value="unit",ve(b,b.__value),T.__value="integration",ve(T,T.__value),S.__value="visual",ve(S,S.__value),D.__value="performance",ve(D,D.__value),s(k,"class","filter-select bg-surface border rounded-md"),E.__value="all",ve(E,E.__value),V.__value="failed",ve(V,V.__value),L.__value="passed",ve(L,L.__value),s(I,"class","filter-select bg-surface border rounded-md"),s(w,"class","result-filters"),s(_,"class","panel-header"),s(j,"class","results-list"),s(g,"class","test-results-panel"),s(R,"class","text-primary"),s(se,"class",N="overall-value coverage-"+(l[2].overall>=80?"good":l[2].overall>=60?"medium":"poor")),s(Y,"class","overall-label text-secondary"),s(x,"class","coverage-overall"),s(P,"class","panel-header"),s(Q,"class","coverage-modules"),s(Z,"class","coverage-panel"),s(h,"class","testing-content"),s(de,"class","text-primary"),s(_e,"class","perf-passed text-success"),s(be,"class","perf-failed text-error"),s(ue,"class","performance-summary"),s(te,"class","panel-header"),s(G,"class","performance-metrics"),s(fe,"class","performance-panel"),s(Pe,"class","panel-header"),s(Me,"class","visual-tests"),s(ke,"class","visual-panel"),s(K,"class","testing-panels"),s(xe,"class","panel-header"),s(Ze,"class","chart-bars"),s(Ie,"class","history-chart"),s(Re,"class","history-panel"),s(t,"class","testing-quality-container card bg-surface")},m(ee,Qe){U(ee,t,Qe),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o),Se.m(o,null),e(t,u),e(t,d),e(d,p);for(let B=0;B<De.length;B+=1)De[B]&&De[B].m(p,null);e(t,v),e(t,h),e(h,g),e(g,_),e(_,C),e(_,m),e(_,w),e(w,k),e(k,y),e(k,b),e(k,T),e(k,S),e(k,D),e(w,M),e(w,I),e(I,E),e(I,V),e(I,L),e(g,F),e(g,j);for(let B=0;B<Je.length;B+=1)Je[B]&&Je[B].m(j,null);e(h,q),e(h,Z),e(Z,P),e(P,R),e(P,z),e(P,x),e(x,se),e(se,J),e(se,ce),e(x,ne),e(x,Y),e(Z,ie),e(Z,Q);for(let B=0;B<et.length;B+=1)et[B]&&et[B].m(Q,null);e(t,he),e(t,K),e(K,fe),e(fe,te),e(te,de),e(te,X),e(te,ue),e(ue,_e),e(_e,ae),e(_e,ge),e(ue,oe),e(ue,be),e(be,Ee),e(be,Ne),e(fe,Ae),e(fe,G);for(let B=0;B<Ge.length;B+=1)Ge[B]&&Ge[B].m(G,null);e(K,Ce),e(K,ke),e(ke,Pe),e(ke,Oe),e(ke,Me);for(let B=0;B<pe.length;B+=1)pe[B]&&pe[B].m(Me,null);e(t,Ve),e(t,Re),e(Re,xe),e(Re,ot),e(Re,Ie),e(Ie,Ze);for(let B=0;B<me.length;B+=1)me[B]&&me[B].m(Ze,null);e(t,nt),Be&&Be.m(t,null),ze||(Le=$(o,"click",l[9]),ze=!0)},p(ee,Qe){if(He!==(He=Ue(ee))&&(Se.d(1),Se=He(ee),Se&&(Se.c(),Se.m(o,null))),Qe[0]&64&&(o.disabled=ee[6]),Qe[0]&1089){We=re(ee[0]);let B;for(B=0;B<We.length;B+=1){const Xe=jn(ee,We,B);De[B]?De[B].p(Xe,Qe):(De[B]=$n(Xe),De[B].c(),De[B].m(p,null))}for(;B<De.length;B+=1)De[B].d(1);De.length=We.length}if(Qe[0]&2){at=re(ee[1]);let B;for(B=0;B<at.length;B+=1){const Xe=Ln(ee,at,B);Je[B]?Je[B].p(Xe,Qe):(Je[B]=Un(Xe),Je[B].c(),Je[B].m(j,null))}for(;B<Je.length;B+=1)Je[B].d(1);Je.length=at.length}if(Qe[0]&4&&W!==(W=ee[2].overall+"")&&H(J,W),Qe[0]&4&&N!==(N="overall-value coverage-"+(ee[2].overall>=80?"good":ee[2].overall>=60?"medium":"poor"))&&s(se,"class",N),Qe[0]&4){st=re(ee[2].modules);let B;for(B=0;B<st.length;B+=1){const Xe=Rn(ee,st,B);et[B]?et[B].p(Xe,Qe):(et[B]=Wn(Xe),et[B].c(),et[B].m(Q,null))}for(;B<et.length;B+=1)et[B].d(1);et.length=st.length}if(Qe[0]&8&&le!==(le=ee[3].filter(ee[12]).length+"")&&H(ae,le),Qe[0]&8&&ye!==(ye=ee[3].filter(ee[13]).length+"")&&H(Ee,ye),Qe[0]&8){Ke=re(ee[3]);let B;for(B=0;B<Ke.length;B+=1){const Xe=Hn(ee,Ke,B);Ge[B]?Ge[B].p(Xe,Qe):(Ge[B]=Vn(Xe),Ge[B].c(),Ge[B].m(G,null))}for(;B<Ge.length;B+=1)Ge[B].d(1);Ge.length=Ke.length}if(Qe[0]&32){Ye=re(ee[5]);let B;for(B=0;B<Ye.length;B+=1){const Xe=En(ee,Ye,B);pe[B]?pe[B].p(Xe,Qe):(pe[B]=Bn(Xe),pe[B].c(),pe[B].m(Me,null))}for(;B<pe.length;B+=1)pe[B].d(1);pe.length=Ye.length}if(Qe[0]&16){qe=re(ee[4]);let B;for(B=0;B<qe.length;B+=1){const Xe=Fn(ee,qe,B);me[B]?me[B].p(Xe,Qe):(me[B]=zn(Xe),me[B].c(),me[B].m(Ze,null))}for(;B<me.length;B+=1)me[B].d(1);me.length=qe.length}ee[8]?Be?Be.p(ee,Qe):(Be=Gn(ee),Be.c(),Be.m(t,null)):Be&&(Be.d(1),Be=null)},i:Fe,o:Fe,d(ee){ee&&O(t),Se.d(),je(De,ee),je(Je,ee),je(et,ee),je(Ge,ee),je(pe,ee),je(me,ee),Be&&Be.d(),ze=!1,Le()}}}function Zn(l){return(l.passed/l.total*100).toFixed(1)}function It(l){return l.actual<=l.threshold?"passed":"failed"}function Jn(l){if(l<60)return`${l}s`;const t=Math.floor(l/60),n=l%60;return`${t}m ${n}s`}function Kn(l){return new Date(l).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Fi(l,t,n){let i=[],r=[],c={modules:[]},o=[],u=[],d=[],p=!1,v="",h=!1;Ft(()=>{n(0,i=[{id:"unit",name:"Unit Tests",type:"unit",total:247,passed:243,failed:4,skipped:0,duration:1.2,coverage:94.2,status:"completed",lastRun:"2025-01-08T12:30:45Z"},{id:"integration",name:"Integration Tests",type:"integration",total:89,passed:85,failed:2,skipped:2,duration:45.7,coverage:87.5,status:"completed",lastRun:"2025-01-08T12:25:30Z"},{id:"visual",name:"Visual Regression",type:"visual",total:156,passed:152,failed:4,skipped:0,duration:78.3,coverage:0,status:"running",lastRun:"2025-01-08T12:35:12Z"},{id:"performance",name:"Performance Tests",type:"performance",total:24,passed:22,failed:1,skipped:1,duration:124.6,coverage:0,status:"completed",lastRun:"2025-01-08T12:20:15Z"}]),n(1,r=[{suite:"unit",name:"user_authentication_test",status:"passed",duration:.045,file:"tests/auth/user_test.rs"},{suite:"unit",name:"password_validation_test",status:"failed",duration:.023,file:"tests/auth/password_test.rs",error:"Expected password strength validation to fail for weak passwords"},{suite:"integration",name:"api_endpoint_creation",status:"passed",duration:2.1,file:"tests/integration/api_test.rs"},{suite:"visual",name:"dashboard_layout_chrome",status:"failed",duration:3.4,file:"tests/visual/dashboard_test.js",error:"Pixel difference of 2.3% detected in header navigation"}]),n(2,c={overall:91.4,modules:[{name:"Authentication",coverage:96.8,lines:1247,uncovered:40},{name:"API Endpoints",coverage:89.2,lines:2156,uncovered:233},{name:"Database Layer",coverage:94.5,lines:987,uncovered:54},{name:"UI Components",coverage:87.3,lines:1876,uncovered:238},{name:"Utilities",coverage:92.1,lines:654,uncovered:52}]}),n(3,o=[{test:"API Response Time",threshold:200,actual:156,status:"passed",trend:"+3ms"},{test:"Database Query Time",threshold:50,actual:78,status:"failed",trend:"+12ms"},{test:"Page Load Time",threshold:2e3,actual:1234,status:"passed",trend:"-45ms"},{test:"Memory Usage",threshold:100,actual:87,status:"passed",trend:"-2MB"}]),n(4,u=[{date:"2025-01-08",passed:350,failed:7,total:357},{date:"2025-01-07",passed:345,failed:12,total:357},{date:"2025-01-06",passed:342,failed:15,total:357},{date:"2025-01-05",passed:340,failed:17,total:357},{date:"2025-01-04",passed:338,failed:19,total:357},{date:"2025-01-03",passed:335,failed:22,total:357},{date:"2025-01-02",passed:330,failed:27,total:357}]),n(5,d=[{name:"Login Page Layout",browser:"Chrome",viewport:"1920x1080",status:"passed",baseline:"/screenshots/login_baseline.png",current:"/screenshots/login_current.png",diff:.1},{name:"Dashboard Header",browser:"Firefox",viewport:"1920x1080",status:"failed",baseline:"/screenshots/header_baseline.png",current:"/screenshots/header_current.png",diff:2.3},{name:"Mobile Navigation",browser:"Chrome",viewport:"375x667",status:"passed",baseline:"/screenshots/mobile_nav_baseline.png",current:"/screenshots/mobile_nav_current.png",diff:.05}])});function g(){n(6,p=!0),n(7,v=`Starting test execution...
`),n(8,h=!0),setTimeout(()=>{n(7,v+=`Running unit tests...
`),n(7,v+=`243 tests passed
`),n(7,v+=`4 tests failed
`),n(7,v+=`Running integration tests...
`),n(7,v+=`85 tests passed
`),n(7,v+=`2 tests failed
`),n(7,v+=`2 tests skipped
`),n(7,v+=`
Test execution completed in 2m 34s
`),n(6,p=!1)},3e3)}function _(y){n(6,p=!0),n(7,v=`Running ${y.name}...
`),n(8,h=!0),setTimeout(()=>{n(7,v+=`${y.passed} tests passed
`),y.failed>0&&n(7,v+=`${y.failed} tests failed
`),y.skipped>0&&n(7,v+=`${y.skipped} tests skipped
`),n(7,v+=`
Completed in ${y.duration}s
`),n(6,p=!1)},2e3)}return[i,r,c,o,u,d,p,v,h,g,_,y=>_(y),y=>It(y)==="passed",y=>It(y)==="failed",()=>n(8,h=!1)]}class Ei extends Ct{constructor(t){super(),yt(this,t,Fi,Ii,_t,{},null,[-1,-1])}}function Yn(l,t,n){const i=l.slice();return i[13]=t[n],i}function Xn(l,t,n){const i=l.slice();return i[16]=t[n],i}function xn(l){let t,n,i,r,c,o=l[16].priority+"",u,d,p,v,h,g,_,C,m,w,k,y;function b(...T){return l[7](l[16],...T)}return{c(){t=a("div"),n=a("div"),i=a("div"),i.textContent=`${l[16].id}`,r=f(),c=a("div"),u=A(o),d=f(),p=a("div"),p.textContent=`${l[16].title}`,v=f(),h=a("div"),h.textContent=`${l[16].description}`,g=f(),_=a("div"),C=a("div"),C.textContent=`👤 ${l[16].assignee}`,m=f(),w=a("div"),w.textContent=`⏱️ ${l[16].effort}`,s(i,"class","task-id"),s(c,"class","task-priority"),tt(c,"background-color",Li(l[16].priority)),s(n,"class","task-header"),s(p,"class","task-title"),s(h,"class","task-description"),s(C,"class","task-assignee"),s(w,"class","task-effort"),s(_,"class","task-footer"),s(t,"class","task-card"),s(t,"draggable","true")},m(T,S){U(T,t,S),e(t,n),e(n,i),e(n,r),e(n,c),e(c,u),e(t,d),e(t,p),e(t,v),e(t,h),e(t,g),e(t,_),e(_,C),e(_,m),e(_,w),k||(y=[$(t,"dragstart",b),$(t,"dragend",l[3])],k=!0)},p(T,S){l=T},d(T){T&&O(t),k=!1,lt(y)}}}function Hi(l){let t,n,i,r,c,o;function u(){return l[8](l[13])}return{c(){t=a("div"),n=a("div"),n.textContent="No tasks",i=f(),r=a("button"),r.textContent="+ Add task",s(n,"class","empty-message"),s(r,"class","empty-add-btn"),s(t,"class","empty-column")},m(d,p){U(d,t,p),e(t,n),e(t,i),e(t,r),c||(o=$(r,"click",u),c=!0)},p(d,p){l=d},d(d){d&&O(t),c=!1,o()}}}function es(l){let t,n,i,r,c,o,u,d,p,v,h=l[1](l[13].id).length===0,g,_,C,m=re(l[1](l[13].id)),w=[];for(let b=0;b<m.length;b+=1)w[b]=xn(Xn(l,m,b));let k=h&&Hi(l);function y(...b){return l[9](l[13],...b)}return{c(){t=a("div"),n=a("div"),i=a("span"),i.textContent=`${l[13].emoji}`,r=f(),c=a("span"),c.textContent=`${l[13].title}`,o=f(),u=a("span"),u.textContent=`${l[1](l[13].id).length}`,d=f(),p=a("div");for(let b=0;b<w.length;b+=1)w[b].c();v=f(),k&&k.c(),g=f(),s(i,"class","column-emoji"),s(c,"class","column-title"),s(u,"class","column-count"),s(n,"class","column-header"),tt(n,"border-color",l[13].color),s(p,"class","column-tasks"),s(t,"class","kanban-column")},m(b,T){U(b,t,T),e(t,n),e(n,i),e(n,r),e(n,c),e(n,o),e(n,u),e(t,d),e(t,p);for(let S=0;S<w.length;S+=1)w[S]&&w[S].m(p,null);e(p,v),k&&k.m(p,null),e(t,g),_||(C=[$(t,"dragover",ji),$(t,"drop",y)],_=!0)},p(b,T){if(l=b,T&15){m=re(l[1](l[13].id));let S;for(S=0;S<m.length;S+=1){const D=Xn(l,m,S);w[S]?w[S].p(D,T):(w[S]=xn(D),w[S].c(),w[S].m(p,v))}for(;S<w.length;S+=1)w[S].d(1);w.length=m.length}h&&k.p(l,T)},d(b){b&&O(t),je(w,b),k&&k.d(),_=!1,lt(C)}}}function Ri(l){let t,n,i,r,c,o,u,d,p,v,h=re(l[0]),g=[];for(let _=0;_<h.length;_+=1)g[_]=es(Yn(l,h,_));return{c(){t=a("div"),n=a("div"),i=a("h2"),i.textContent="Task Management",r=f(),c=a("div"),o=a("button"),o.textContent="+ Add Task",u=f(),d=a("div");for(let _=0;_<g.length;_+=1)g[_].c();s(o,"class","btn-primary"),s(c,"class","kanban-actions"),s(n,"class","kanban-header"),s(d,"class","kanban-board"),s(t,"class","task-kanban")},m(_,C){U(_,t,C),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o),e(t,u),e(t,d);for(let m=0;m<g.length;m+=1)g[m]&&g[m].m(d,null);p||(v=$(o,"click",l[6]),p=!0)},p(_,[C]){if(C&63){h=re(_[0]);let m;for(m=0;m<h.length;m+=1){const w=Yn(_,h,m);g[m]?g[m].p(w,C):(g[m]=es(w),g[m].c(),g[m].m(d,null))}for(;m<g.length;m+=1)g[m].d(1);g.length=h.length}},i:Fe,o:Fe,d(_){_&&O(t),je(g,_),p=!1,v()}}}function Li(l){switch(l){case"high":return"#ef4444";case"medium":return"#f59e0b";case"low":return"#10b981";default:return"#6b7280"}}function ji(l){l.preventDefault(),l.dataTransfer.dropEffect="move"}function Pi(l,t,n){let i;Dt(l,el,w=>n(12,i=w));let r=[],c=null;const o=[{id:"pending",title:"To Do",color:"#6b7280",emoji:"📋"},{id:"in_progress",title:"In Progress",color:"#f59e0b",emoji:"🔄"},{id:"review",title:"Review",color:"#8b5cf6",emoji:"👀"},{id:"completed",title:"Completed",color:"#10b981",emoji:"✅"},{id:"blocked",title:"Blocked",color:"#ef4444",emoji:"🚫"}];Ft(()=>{const w=[{id:"task-001",title:"Implement Task Kanban Board",description:"Create drag-and-drop task management interface",status:"in_progress",priority:"high",assignee:"Claude",effort:"4h"},{id:"task-002",title:"Add Task State Management",description:"Implement task status transitions and validation",status:"pending",priority:"medium",assignee:"Claude",effort:"2h"},{id:"task-003",title:"Create Task Detail Modal",description:"Modal dialog for editing task properties",status:"pending",priority:"low",assignee:"Claude",effort:"3h"},{id:"task-004",title:"Task Search and Filtering",description:"Add search functionality and status filters",status:"review",priority:"medium",assignee:"Claude",effort:"2h"},{id:"task-005",title:"Task API Integration",description:"Connect kanban board to backend API",status:"completed",priority:"high",assignee:"Claude",effort:"6h"}];r=i.length>0?i:w});function u(w){return r.filter(k=>k.status===w)}function d(w,k){c=k,w.dataTransfer.effectAllowed="move",w.target.classList.add("dragging")}function p(w){w.target.classList.remove("dragging"),c=null}function v(w,k){w.preventDefault(),c&&c.status!==k&&(r=r.map(y=>y.id===c.id?{...y,status:k}:y),el.set(r),console.log(`Task ${c.id} moved to ${k}`))}function h(w){const k={id:`task-${Date.now()}`,title:"New Task",description:"Task description",status:w,priority:"medium",assignee:"Unassigned",effort:"1h"};r=[...r,k],el.set(r)}return[o,u,d,p,v,h,()=>h("pending"),(w,k)=>d(k,w),w=>h(w.id),(w,k)=>v(k,w.id)]}class Ni extends Ct{constructor(t){super(),yt(this,t,Pi,Ri,_t,{})}}function ts(l,t,n){const i=l.slice();return i[8]=t[n],i}function ls(l,t,n){const i=l.slice();return i[8]=t[n],i}function $i(l){let t,n,i,r,c,o,u,d,p=l[1].total+"",v,h,g,_,C,m,w,k=re(l[2]),y=[];for(let S=0;S<k.length;S+=1)y[S]=ns(ls(l,k,S));let b=re(l[2].slice(1)),T=[];for(let S=0;S<b.length;S+=1)T[S]=ss(ts(l,b,S));return{c(){t=a("div"),n=a("h2"),n.textContent="Entity Explorer",i=f(),r=a("div");for(let S=0;S<y.length;S+=1)y[S].c();c=f(),o=a("div"),u=a("div"),d=a("div"),v=A(p),h=f(),g=a("div"),g.textContent="Total Entities",_=f(),C=a("div");for(let S=0;S<T.length;S+=1)T[S].c();m=f(),w=a("div"),w.innerHTML='<h3>Entity Relationships</h3> <div class="relationship-stats"><div class="relationship-item"><span class="relationship-label">Dependencies</span> <span class="relationship-count">156</span></div> <div class="relationship-item"><span class="relationship-label">References</span> <span class="relationship-count">89</span></div> <div class="relationship-item"><span class="relationship-label">Blocks</span> <span class="relationship-count">12</span></div></div>',s(r,"class","entity-filters"),s(d,"class","total-count"),s(g,"class","total-label"),s(u,"class","total-entities"),s(C,"class","entity-breakdown"),s(o,"class","entity-stats"),s(w,"class","relationship-summary"),s(t,"class","entity-explorer")},m(S,D){U(S,t,D),e(t,n),e(t,i),e(t,r);for(let M=0;M<y.length;M+=1)y[M]&&y[M].m(r,null);e(t,c),e(t,o),e(o,u),e(u,d),e(d,v),e(u,h),e(u,g),e(o,_),e(o,C);for(let M=0;M<T.length;M+=1)T[M]&&T[M].m(C,null);e(t,m),e(t,w)},p(S,D){if(D&15){k=re(S[2]);let M;for(M=0;M<k.length;M+=1){const I=ls(S,k,M);y[M]?y[M].p(I,D):(y[M]=ns(I),y[M].c(),y[M].m(r,null))}for(;M<y.length;M+=1)y[M].d(1);y.length=k.length}if(D&2&&p!==(p=S[1].total+"")&&H(v,p),D&6){b=re(S[2].slice(1));let M;for(M=0;M<b.length;M+=1){const I=ts(S,b,M);T[M]?T[M].p(I,D):(T[M]=ss(I),T[M].c(),T[M].m(C,null))}for(;M<T.length;M+=1)T[M].d(1);T.length=b.length}},i:Fe,o:Fe,d(S){S&&O(t),je(y,S),je(T,S)}}}function Oi(l){let t,n;return t=new Ni({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function Ui(l){let t,n=(l[1][l[8].id]||0)+"",i;return{c(){t=a("span"),i=A(n)},m(r,c){U(r,t,c),e(t,i)},p(r,c){c&2&&n!==(n=(r[1][r[8].id]||0)+"")&&H(i,n)},d(r){r&&O(t)}}}function ns(l){let t,n,i,r,c,o,u,d,p=l[8].id!=="all"&&Ui(l);function v(){return l[7](l[8])}return{c(){t=a("button"),n=a("span"),n.textContent=`${l[8].icon}`,i=f(),r=a("span"),r.textContent=`${l[8].label}`,c=f(),p&&p.c(),o=f(),s(t,"class","entity-filter"),Te(t,"active",l[0]===l[8].id)},m(h,g){U(h,t,g),e(t,n),e(t,i),e(t,r),e(t,c),p&&p.m(t,null),e(t,o),u||(d=$(t,"click",v),u=!0)},p(h,g){l=h,l[8].id!=="all"&&p.p(l,g),g&5&&Te(t,"active",l[0]===l[8].id)},d(h){h&&O(t),p&&p.d(),u=!1,d()}}}function ss(l){let t,n,i,r,c,o=(l[1][l[8].id]||0)+"",u,d;return{c(){t=a("div"),n=a("div"),i=a("span"),i.textContent=`${l[8].label}`,r=f(),c=a("span"),u=A(o),d=f(),s(i,"class","breakdown-label"),s(c,"class","breakdown-count"),s(n,"class","breakdown-info"),s(t,"class","breakdown-item")},m(p,v){U(p,t,v),e(t,n),e(n,i),e(n,r),e(n,c),e(c,u),e(t,d)},p(p,v){v&2&&o!==(o=(p[1][p[8].id]||0)+"")&&H(u,o)},d(p){p&&O(t)}}}function Wi(l){let t,n,i,r;const c=[Oi,$i],o=[];function u(d,p){return d[0]==="tasks"?0:1}return t=u(l),n=o[t]=c[t](l),{c(){n.c(),i=Zt()},m(d,p){o[t].m(d,p),U(d,i,p),r=!0},p(d,[p]){let v=t;t=u(d),t===v?o[t].p(d,p):(Is(),ht(o[v],1,1,()=>{o[v]=null}),Fs(),n=o[t],n?n.p(d,p):(n=o[t]=c[t](d),n.c()),dt(n,1),n.m(i.parentNode,i))},i(d){r||(dt(n),r=!0)},o(d){ht(n),r=!1},d(d){d&&O(i),o[t].d(d)}}}function Vi(l,t,n){let i,r,c;Dt(l,Js,h=>n(4,i=h)),Dt(l,el,h=>n(5,r=h)),Dt(l,Es,h=>n(6,c=h));let o="all",u={};const d=[{id:"all",label:"All Entities",icon:"A"},{id:"features",label:"Features",icon:"F"},{id:"tasks",label:"Tasks",icon:"T"},{id:"sessions",label:"Sessions",icon:"S"},{id:"notes",label:"Notes",icon:"N"},{id:"milestones",label:"Milestones",icon:"M"}];function p(h){n(0,o=h)}const v=h=>p(h.id);return l.$$.update=()=>{l.$$.dirty&112&&n(1,u={features:c.length||300,tasks:r.length||25,sessions:8,notes:i.length||42,milestones:6,total:381})},[o,u,d,p,i,r,c,v]}class qi extends Ct{constructor(t){super(),yt(this,t,Vi,Wi,_t,{})}}function is(l,t,n){const i=l.slice();return i[15]=t[n],i}function as(l,t,n){const i=l.slice();return i[15]=t[n],i}function os(l,t,n){const i=l.slice();return i[15]=t[n],i}function rs(l,t,n){const i=l.slice();return i[15]=t[n],i}function cs(l,t,n){const i=l.slice();return i[15]=t[n],i}function ds(l,t,n){const i=l.slice();return i[26]=t[n],i[28]=n,i}function us(l,t,n){const i=l.slice();return i[29]=t[n],i}function fs(l,t,n){const i=l.slice();return i[32]=t[n],i}function ps(l){let t,n=l[32].name+"",i,r,c,o,u;function d(){return l[10](l[32])}return{c(){t=a("button"),i=A(n),r=f(),s(t,"class",c="btn-secondary timeframe-btn "+(l[0]===l[32].id?"active":""))},m(p,v){U(p,t,v),e(t,i),e(t,r),o||(u=$(t,"click",d),o=!0)},p(p,v){l=p,v[0]&1&&c!==(c="btn-secondary timeframe-btn "+(l[0]===l[32].id?"active":""))&&s(t,"class",c)},d(p){p&&O(t),o=!1,u()}}}function vs(l){let t,n,i,r,c,o,u,d;function p(){return l[11](l[29])}return{c(){t=a("button"),n=a("span"),n.textContent=`${l[29].icon}`,i=f(),r=a("span"),r.textContent=`${l[29].name}`,c=f(),s(n,"class","metric-icon"),s(r,"class","metric-name"),s(t,"class",o="btn-secondary metric-btn "+(l[1]===l[29].id?"active":""))},m(v,h){U(v,t,h),e(t,n),e(t,i),e(t,r),e(t,c),u||(d=$(t,"click",p),u=!0)},p(v,h){l=v,h[0]&2&&o!==(o="btn-secondary metric-btn "+(l[1]===l[29].id?"active":""))&&s(t,"class",o)},d(v){v&&O(t),u=!1,d()}}}function hs(l){let t,n,i;return{c(){t=vt("rect"),s(t,"x",l[28]*32),s(t,"y",n=100-l[26]/Math.max(...l[3].chart)*80),s(t,"width","28"),s(t,"height",i=l[26]/Math.max(...l[3].chart)*80),s(t,"fill","var(--color-primary)"),s(t,"opacity","0.8")},m(r,c){U(r,t,c)},p(r,c){c[0]&8&&n!==(n=100-r[26]/Math.max(...r[3].chart)*80)&&s(t,"y",n),c[0]&8&&i!==(i=r[26]/Math.max(...r[3].chart)*80)&&s(t,"height",i)},d(r){r&&O(t)}}}function Bi(l){let t,n,i,r=re(l[3].breakdown),c=[];for(let o=0;o<r.length;o+=1)c[o]=gs(is(l,r,o));return{c(){t=a("div"),n=a("h4"),n.textContent="Resource Utilization",i=f();for(let o=0;o<c.length;o+=1)c[o].c();s(n,"class","text-primary"),s(t,"class","metric-breakdown")},m(o,u){U(o,t,u),e(t,n),e(t,i);for(let d=0;d<c.length;d+=1)c[d]&&c[d].m(t,null)},p(o,u){if(u[0]&8){r=re(o[3].breakdown);let d;for(d=0;d<r.length;d+=1){const p=is(o,r,d);c[d]?c[d].p(p,u):(c[d]=gs(p),c[d].c(),c[d].m(t,null))}for(;d<c.length;d+=1)c[d].d(1);c.length=r.length}},d(o){o&&O(t),je(c,o)}}}function zi(l){let t,n,i,r=re(l[3].breakdown),c=[];for(let o=0;o<r.length;o+=1)c[o]=ms(as(l,r,o));return{c(){t=a("div"),n=a("h4"),n.textContent="Time by Feature Type",i=f();for(let o=0;o<c.length;o+=1)c[o].c();s(n,"class","text-primary"),s(t,"class","metric-breakdown")},m(o,u){U(o,t,u),e(t,n),e(t,i);for(let d=0;d<c.length;d+=1)c[d]&&c[d].m(t,null)},p(o,u){if(u[0]&8){r=re(o[3].breakdown);let d;for(d=0;d<r.length;d+=1){const p=as(o,r,d);c[d]?c[d].p(p,u):(c[d]=ms(p),c[d].c(),c[d].m(t,null))}for(;d<c.length;d+=1)c[d].d(1);c.length=r.length}},d(o){o&&O(t),je(c,o)}}}function Gi(l){let t,n,i,r=re(l[3].breakdown),c=[];for(let o=0;o<r.length;o+=1)c[o]=_s(os(l,r,o));return{c(){t=a("div"),n=a("h4"),n.textContent="AI Performance",i=f();for(let o=0;o<c.length;o+=1)c[o].c();s(n,"class","text-primary"),s(t,"class","metric-breakdown")},m(o,u){U(o,t,u),e(t,n),e(t,i);for(let d=0;d<c.length;d+=1)c[d]&&c[d].m(t,null)},p(o,u){if(u[0]&8){r=re(o[3].breakdown);let d;for(d=0;d<r.length;d+=1){const p=os(o,r,d);c[d]?c[d].p(p,u):(c[d]=_s(p),c[d].c(),c[d].m(t,null))}for(;d<c.length;d+=1)c[d].d(1);c.length=r.length}},d(o){o&&O(t),je(c,o)}}}function Qi(l){let t,n,i,r=re(l[3].breakdown),c=[];for(let o=0;o<r.length;o+=1)c[o]=bs(rs(l,r,o));return{c(){t=a("div"),n=a("h4"),n.textContent="Quality Metrics",i=f();for(let o=0;o<c.length;o+=1)c[o].c();s(n,"class","text-primary"),s(t,"class","metric-breakdown")},m(o,u){U(o,t,u),e(t,n),e(t,i);for(let d=0;d<c.length;d+=1)c[d]&&c[d].m(t,null)},p(o,u){if(u[0]&8){r=re(o[3].breakdown);let d;for(d=0;d<r.length;d+=1){const p=rs(o,r,d);c[d]?c[d].p(p,u):(c[d]=bs(p),c[d].c(),c[d].m(t,null))}for(;d<c.length;d+=1)c[d].d(1);c.length=r.length}},d(o){o&&O(t),je(c,o)}}}function Zi(l){let t,n,i,r=re(l[3].breakdown),c=[];for(let o=0;o<r.length;o+=1)c[o]=ks(cs(l,r,o));return{c(){t=a("div"),n=a("h4"),n.textContent="Feature Breakdown",i=f();for(let o=0;o<c.length;o+=1)c[o].c();s(n,"class","text-primary"),s(t,"class","metric-breakdown")},m(o,u){U(o,t,u),e(t,n),e(t,i);for(let d=0;d<c.length;d+=1)c[d]&&c[d].m(t,null)},p(o,u){if(u[0]&8){r=re(o[3].breakdown);let d;for(d=0;d<r.length;d+=1){const p=cs(o,r,d);c[d]?c[d].p(p,u):(c[d]=ks(p),c[d].c(),c[d].m(t,null))}for(;d<c.length;d+=1)c[d].d(1);c.length=r.length}},d(o){o&&O(t),je(c,o)}}}function gs(l){let t,n,i=l[15].resource+"",r,c,o,u,d=`${l[15].usage/l[15].limit*100}%`,p,v,h=l[15].usage+"",g,_,C=l[15].limit+"",m,w;return{c(){t=a("div"),n=a("span"),r=A(i),c=f(),o=a("div"),u=a("div"),p=f(),v=a("span"),g=A(h),_=A("/"),m=A(C),w=f(),s(n,"class","breakdown-label text-secondary"),s(u,"class","usage-fill"),tt(u,"width",d),s(o,"class","usage-bar"),s(v,"class","usage-text text-secondary"),s(t,"class","breakdown-item")},m(k,y){U(k,t,y),e(t,n),e(n,r),e(t,c),e(t,o),e(o,u),e(t,p),e(t,v),e(v,g),e(v,_),e(v,m),e(t,w)},p(k,y){y[0]&8&&i!==(i=k[15].resource+"")&&H(r,i),y[0]&8&&d!==(d=`${k[15].usage/k[15].limit*100}%`)&&tt(u,"width",d),y[0]&8&&h!==(h=k[15].usage+"")&&H(g,h),y[0]&8&&C!==(C=k[15].limit+"")&&H(m,C)},d(k){k&&O(t)}}}function ms(l){let t,n,i=l[15].type+"",r,c,o,u=l[15].time+"",d,p,v,h,g,_,C=l[15].target+"",m,w,k;return{c(){t=a("div"),n=a("span"),r=A(i),c=f(),o=a("span"),d=A(u),p=A("h"),v=f(),h=a("div"),g=a("span"),_=A("Target: "),m=A(C),w=A("h"),k=f(),s(n,"class","breakdown-label text-secondary"),s(o,"class","breakdown-time text-primary"),s(g,"class","text-tertiary"),s(h,"class","target-comparison"),s(t,"class","breakdown-item")},m(y,b){U(y,t,b),e(t,n),e(n,r),e(t,c),e(t,o),e(o,d),e(o,p),e(t,v),e(t,h),e(h,g),e(g,_),e(g,m),e(g,w),e(t,k)},p(y,b){b[0]&8&&i!==(i=y[15].type+"")&&H(r,i),b[0]&8&&u!==(u=y[15].time+"")&&H(d,u),b[0]&8&&C!==(C=y[15].target+"")&&H(m,C)},d(y){y&&O(t)}}}function _s(l){let t,n,i=l[15].metric+"",r,c,o,u=l[15].value+"",d,p,v,h,g=l[15].change>0?"+":"",_,C=l[15].change+"",m,w,k,y;return{c(){t=a("div"),n=a("span"),r=A(i),c=f(),o=a("span"),d=A(u),p=A("%"),v=f(),h=a("span"),_=A(g),m=A(C),w=A("%"),y=f(),s(n,"class","breakdown-label text-secondary"),s(o,"class","breakdown-value text-primary"),s(h,"class",k="breakdown-change change-"+(l[15].change>0?"positive":"negative")),s(t,"class","breakdown-item")},m(b,T){U(b,t,T),e(t,n),e(n,r),e(t,c),e(t,o),e(o,d),e(o,p),e(t,v),e(t,h),e(h,_),e(h,m),e(h,w),e(t,y)},p(b,T){T[0]&8&&i!==(i=b[15].metric+"")&&H(r,i),T[0]&8&&u!==(u=b[15].value+"")&&H(d,u),T[0]&8&&g!==(g=b[15].change>0?"+":"")&&H(_,g),T[0]&8&&C!==(C=b[15].change+"")&&H(m,C),T[0]&8&&k!==(k="breakdown-change change-"+(b[15].change>0?"positive":"negative"))&&s(h,"class",k)},d(b){b&&O(t)}}}function bs(l){let t,n,i=l[15].category+"",r,c,o,u=l[15].score+"",d,p,v,h,g=l[15].status+"",_,C,m;return{c(){t=a("div"),n=a("span"),r=A(i),c=f(),o=a("span"),d=A(u),p=A("/100"),v=f(),h=a("div"),_=A(g),m=f(),s(n,"class","breakdown-label text-secondary"),s(o,"class","breakdown-score text-primary"),s(h,"class",C="status-badge status-"+l[15].status),s(t,"class","breakdown-item")},m(w,k){U(w,t,k),e(t,n),e(n,r),e(t,c),e(t,o),e(o,d),e(o,p),e(t,v),e(t,h),e(h,_),e(t,m)},p(w,k){k[0]&8&&i!==(i=w[15].category+"")&&H(r,i),k[0]&8&&u!==(u=w[15].score+"")&&H(d,u),k[0]&8&&g!==(g=w[15].status+"")&&H(_,g),k[0]&8&&C!==(C="status-badge status-"+w[15].status)&&s(h,"class",C)},d(w){w&&O(t)}}}function ks(l){let t,n,i=l[15].category+"",r,c,o,u=l[15].count+"",d,p,v,h=l[15].change>0?"+":"",g,_=l[15].change+"",C,m,w,k;return{c(){t=a("div"),n=a("span"),r=A(i),c=f(),o=a("span"),d=A(u),p=f(),v=a("span"),g=A(h),C=A(_),m=A("%"),k=f(),s(n,"class","breakdown-label text-secondary"),s(o,"class","breakdown-count text-primary"),s(v,"class",w="breakdown-change change-"+(l[15].change>0?"positive":"negative")),s(t,"class","breakdown-item")},m(y,b){U(y,t,b),e(t,n),e(n,r),e(t,c),e(t,o),e(o,d),e(t,p),e(t,v),e(v,g),e(v,C),e(v,m),e(t,k)},p(y,b){b[0]&8&&i!==(i=y[15].category+"")&&H(r,i),b[0]&8&&u!==(u=y[15].count+"")&&H(d,u),b[0]&8&&h!==(h=y[15].change>0?"+":"")&&H(g,h),b[0]&8&&_!==(_=y[15].change+"")&&H(C,_),b[0]&8&&w!==(w="breakdown-change change-"+(y[15].change>0?"positive":"negative"))&&s(v,"class",w)},d(y){y&&O(t)}}}function Ji(l){var cl;let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m=((cl=l[5].find(l[12]))==null?void 0:cl.name)+"",w,k,y,b=l[2]==="overview"?"Detailed":"Overview",T,S,D,M,I=l[3].current+"",E,V,L,F=l[3].unit+"",j,q,Z,P,R=ys(l[3].trend)+"",z,x,se,W=Math.abs((l[3].current-l[3].previous)/l[3].previous*100).toFixed(1)+"",J,ce,N,ne,Y,ie,Q,he,K,fe,te,de,X,ue,_e,le,ae,ge,oe,be,ye,Ee,Ne,Ae,G,Ce,ke,Pe,Oe,Me,Ve,Re,xe,ot,Ie,Ze,nt,ze,Le,Ue,He,Se,We,De,at,Je,st,et=`${l[6].milestone_completion.progress}%`,Ke,Ge,Ye,pe,qe,me,Be,ee,Qe,B,Xe,Rt,Lt,jt,Pt,il,Yt,al,Xt,tl,ol,Nt=re(l[4]),ut=[];for(let we=0;we<Nt.length;we+=1)ut[we]=ps(fs(l,Nt,we));let $t=re(l[5]),ft=[];for(let we=0;we<$t.length;we+=1)ft[we]=vs(us(l,$t,we));let Ot=re(l[3].chart),pt=[];for(let we=0;we<Ot.length;we+=1)pt[we]=hs(ds(l,Ot,we));function rl(we,rt){if(we[1]==="velocity")return Zi;if(we[1]==="quality")return Qi;if(we[1]==="ai_effectiveness")return Gi;if(we[1]==="completion_time")return zi;if(we[1]==="resource_usage")return Bi}let Ut=rl(l),gt=Ut&&Ut(l);return{c(){t=a("div"),n=a("div"),i=a("div"),i.innerHTML='<h2 class="text-primary">Analytics &amp; Insights</h2> <p class="subtitle text-secondary">Development metrics, AI effectiveness, and performance predictions</p>',r=f(),c=a("div"),o=a("div");for(let we=0;we<ut.length;we+=1)ut[we].c();u=f(),d=a("div");for(let we=0;we<ft.length;we+=1)ft[we].c();p=f(),v=a("div"),h=a("div"),g=a("div"),_=a("div"),C=a("h3"),w=A(m),k=f(),y=a("button"),T=A(b),S=f(),D=a("div"),M=a("span"),E=A(I),V=f(),L=a("span"),j=A(F),q=f(),Z=a("div"),P=a("span"),z=A(R),x=f(),se=a("span"),J=A(W),ce=A("%"),ne=f(),Y=a("div"),ie=a("div"),Q=vt("svg");for(let we=0;we<pt.length;we+=1)pt[we].c();he=f(),K=a("div"),gt&&gt.c(),fe=f(),te=a("div"),de=a("div"),de.innerHTML='<h3 class="text-primary">Completion Predictions</h3> <div class="prediction-note text-secondary">Based on current velocity and trends</div>',X=f(),ue=a("div"),_e=a("div"),le=a("h4"),le.textContent="Features Complete",ae=f(),ge=a("div"),ge.textContent=`${l[6].features_completion.date}`,oe=f(),be=a("div"),ye=a("span"),ye.textContent=`${l[6].features_completion.remaining} remaining`,Ee=f(),Ne=a("span"),Ne.textContent=`${l[6].features_completion.confidence}% confidence`,Ae=f(),G=a("div"),Ce=a("h4"),Ce.textContent="Quality Target",ke=f(),Pe=a("div"),Pe.textContent=`${l[6].quality_target.score}/100`,Oe=f(),Me=a("div"),Ve=a("span"),Ve.textContent=`${l[6].quality_target.timeline}`,Re=f(),xe=a("span"),xe.textContent=`${l[6].quality_target.confidence}% confidence`,ot=f(),Ie=a("div"),Ze=a("h4"),Ze.textContent="Next Milestone",nt=f(),ze=a("div"),ze.textContent=`${l[6].milestone_completion.name}`,Le=f(),Ue=a("div"),He=a("span"),He.textContent=`${l[6].milestone_completion.date}`,Se=f(),We=a("span"),We.textContent=`${l[6].milestone_completion.confidence}% confidence`,De=f(),at=a("div"),Je=a("div"),st=a("div"),Ke=f(),Ge=a("span"),Ge.textContent=`${l[6].milestone_completion.progress}%`,Ye=f(),pe=a("div"),qe=a("div"),qe.innerHTML='<h3 class="text-primary">Custom Report Builder</h3> <button class="btn-primary">Generate Report</button>',me=f(),Be=a("div"),ee=a("div"),Qe=a("label"),Qe.textContent="Time Range",B=f(),Xe=a("select"),Rt=a("option"),Rt.textContent="Last 7 days",Lt=a("option"),Lt.textContent="Last 30 days",jt=a("option"),jt.textContent="Last quarter",Pt=a("option"),Pt.textContent="Custom range",il=f(),Yt=a("div"),Yt.innerHTML=`<label class="text-secondary">Metrics to Include</label> <div class="metric-checkboxes"><label class="checkbox-item text-secondary"><input type="checkbox" checked=""/>
              Development Velocity</label> <label class="checkbox-item text-secondary"><input type="checkbox" checked=""/>
              AI Effectiveness</label> <label class="checkbox-item text-secondary"><input type="checkbox"/>
              Code Quality</label> <label class="checkbox-item text-secondary"><input type="checkbox"/>
              Resource Usage</label></div>`,al=f(),Xt=a("div"),Xt.innerHTML='<label class="text-secondary">Export Format</label> <div class="format-options"><button class="btn-secondary format-btn">PDF</button> <button class="btn-secondary format-btn">CSV</button> <button class="btn-secondary format-btn">JSON</button></div>',s(i,"class","header-left"),s(o,"class","timeframe-selector"),s(c,"class","header-controls"),s(n,"class","analytics-header"),s(d,"class","metric-navigation"),s(C,"class","text-primary"),s(y,"class","btn-secondary chart-toggle"),s(_,"class","metric-header"),s(M,"class","current-value text-primary"),s(L,"class","metric-unit text-secondary"),s(P,"class","trend-icon"),s(se,"class","trend-change"),s(Z,"class",N="trend-indicator trend-"+l[3].trend),s(D,"class","metric-value"),s(Q,"viewBox","0 0 400 100"),s(Q,"class","trend-chart"),s(ie,"class","chart-container"),s(Y,"class","metric-chart"),s(g,"class","primary-metric card bg-surface-2"),s(K,"class","secondary-metrics card bg-surface-2"),s(h,"class","metrics-overview"),s(de,"class","panel-header"),s(le,"class","text-secondary"),s(ge,"class","prediction-date text-primary"),s(ye,"class","remaining text-secondary"),s(Ne,"class","confidence text-tertiary"),s(be,"class","prediction-details"),s(_e,"class","prediction-card"),s(Ce,"class","text-secondary"),s(Pe,"class","prediction-score text-primary"),s(Ve,"class","timeline text-secondary"),s(xe,"class","confidence text-tertiary"),s(Me,"class","prediction-details"),s(G,"class","prediction-card"),s(Ze,"class","text-secondary"),s(ze,"class","prediction-milestone text-primary"),s(He,"class","milestone-date text-secondary"),s(We,"class","confidence text-tertiary"),s(Ue,"class","prediction-details"),s(st,"class","progress-fill"),tt(st,"width",et),s(Je,"class","progress-bar"),s(Ge,"class","progress-text text-secondary"),s(at,"class","milestone-progress"),s(Ie,"class","prediction-card"),s(ue,"class","predictions-grid"),s(te,"class","predictions-panel card bg-surface-2"),s(qe,"class","reports-header"),s(Qe,"class","text-secondary"),Rt.__value="Last 7 days",ve(Rt,Rt.__value),Lt.__value="Last 30 days",ve(Lt,Lt.__value),jt.__value="Last quarter",ve(jt,jt.__value),Pt.__value="Custom range",ve(Pt,Pt.__value),s(Xe,"class","report-select bg-surface border rounded-md"),s(ee,"class","builder-section"),s(Yt,"class","builder-section"),s(Xt,"class","builder-section"),s(Be,"class","report-builder"),s(pe,"class","custom-reports card bg-surface-2"),s(v,"class","analytics-content"),s(t,"class","analytics-insights-container card bg-surface")},m(we,rt){U(we,t,rt),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o);for(let ct=0;ct<ut.length;ct+=1)ut[ct]&&ut[ct].m(o,null);e(t,u),e(t,d);for(let ct=0;ct<ft.length;ct+=1)ft[ct]&&ft[ct].m(d,null);e(t,p),e(t,v),e(v,h),e(h,g),e(g,_),e(_,C),e(C,w),e(_,k),e(_,y),e(y,T),e(g,S),e(g,D),e(D,M),e(M,E),e(D,V),e(D,L),e(L,j),e(D,q),e(D,Z),e(Z,P),e(P,z),e(Z,x),e(Z,se),e(se,J),e(se,ce),e(g,ne),e(g,Y),e(Y,ie),e(ie,Q);for(let ct=0;ct<pt.length;ct+=1)pt[ct]&&pt[ct].m(Q,null);e(h,he),e(h,K),gt&&gt.m(K,null),e(v,fe),e(v,te),e(te,de),e(te,X),e(te,ue),e(ue,_e),e(_e,le),e(_e,ae),e(_e,ge),e(_e,oe),e(_e,be),e(be,ye),e(be,Ee),e(be,Ne),e(ue,Ae),e(ue,G),e(G,Ce),e(G,ke),e(G,Pe),e(G,Oe),e(G,Me),e(Me,Ve),e(Me,Re),e(Me,xe),e(ue,ot),e(ue,Ie),e(Ie,Ze),e(Ie,nt),e(Ie,ze),e(Ie,Le),e(Ie,Ue),e(Ue,He),e(Ue,Se),e(Ue,We),e(Ie,De),e(Ie,at),e(at,Je),e(Je,st),e(at,Ke),e(at,Ge),e(v,Ye),e(v,pe),e(pe,qe),e(pe,me),e(pe,Be),e(Be,ee),e(ee,Qe),e(ee,B),e(ee,Xe),e(Xe,Rt),e(Xe,Lt),e(Xe,jt),e(Xe,Pt),e(Be,il),e(Be,Yt),e(Be,al),e(Be,Xt),tl||(ol=$(y,"click",l[9]),tl=!0)},p(we,rt){var ct;if(rt[0]&145){Nt=re(we[4]);let $e;for($e=0;$e<Nt.length;$e+=1){const Mt=fs(we,Nt,$e);ut[$e]?ut[$e].p(Mt,rt):(ut[$e]=ps(Mt),ut[$e].c(),ut[$e].m(o,null))}for(;$e<ut.length;$e+=1)ut[$e].d(1);ut.length=Nt.length}if(rt[0]&290){$t=re(we[5]);let $e;for($e=0;$e<$t.length;$e+=1){const Mt=us(we,$t,$e);ft[$e]?ft[$e].p(Mt,rt):(ft[$e]=vs(Mt),ft[$e].c(),ft[$e].m(d,null))}for(;$e<ft.length;$e+=1)ft[$e].d(1);ft.length=$t.length}if(rt[0]&2&&m!==(m=((ct=we[5].find(we[12]))==null?void 0:ct.name)+"")&&H(w,m),rt[0]&4&&b!==(b=we[2]==="overview"?"Detailed":"Overview")&&H(T,b),rt[0]&8&&I!==(I=we[3].current+"")&&H(E,I),rt[0]&8&&F!==(F=we[3].unit+"")&&H(j,F),rt[0]&8&&R!==(R=ys(we[3].trend)+"")&&H(z,R),rt[0]&8&&W!==(W=Math.abs((we[3].current-we[3].previous)/we[3].previous*100).toFixed(1)+"")&&H(J,W),rt[0]&8&&N!==(N="trend-indicator trend-"+we[3].trend)&&s(Z,"class",N),rt[0]&8){Ot=re(we[3].chart);let $e;for($e=0;$e<Ot.length;$e+=1){const Mt=ds(we,Ot,$e);pt[$e]?pt[$e].p(Mt,rt):(pt[$e]=hs(Mt),pt[$e].c(),pt[$e].m(Q,null))}for(;$e<pt.length;$e+=1)pt[$e].d(1);pt.length=Ot.length}Ut===(Ut=rl(we))&&gt?gt.p(we,rt):(gt&&gt.d(1),gt=Ut&&Ut(we),gt&&(gt.c(),gt.m(K,null)))},i:Fe,o:Fe,d(we){we&&O(t),je(ut,we),je(ft,we),je(pt,we),gt&&gt.d(),tl=!1,ol()}}}function ys(l){return l==="up"?"↗️":l==="down"?"↘️":"→"}function Ki(l,t,n){let i="30d",r="velocity",c="overview";const o=[{id:"7d",name:"7 Days",period:"Last Week"},{id:"30d",name:"30 Days",period:"Last Month"},{id:"90d",name:"90 Days",period:"Last Quarter"},{id:"1y",name:"1 Year",period:"Last Year"}],u=[{id:"velocity",name:"Development Velocity",icon:"V"},{id:"quality",name:"Code Quality",icon:"Q"},{id:"ai_effectiveness",name:"AI Effectiveness",icon:"A"},{id:"completion_time",name:"Completion Time",icon:"T"},{id:"resource_usage",name:"Resource Usage",icon:"R"}],d={velocity:{current:12.8,previous:9.4,trend:"up",unit:"features/week",chart:[6,8,10,12,14,16,18,20,18,16,14,12],breakdown:[{category:"Features",count:89,change:15},{category:"Bug Fixes",count:34,change:-8},{category:"Enhancements",count:67,change:22}]},quality:{current:94,previous:91,trend:"up",unit:"/100 score",chart:[88,89,91,93,94,96,95,94,96,97,95,94],breakdown:[{category:"Test Coverage",score:89,status:"good"},{category:"Code Standards",score:96,status:"excellent"},{category:"Security Score",score:98,status:"excellent"},{category:"Performance",score:93,status:"good"}]},ai_effectiveness:{current:92,previous:87,trend:"up",unit:"% success",chart:[78,82,85,88,90,91,89,92,94,93,91,92],breakdown:[{metric:"First Attempt Success",value:87,change:12},{metric:"Error Recovery Rate",value:94,change:8},{metric:"Context Efficiency",value:76,change:15},{metric:"Manual Intervention",value:8,change:-23}]},completion_time:{current:3.2,previous:4.1,trend:"down",unit:"hours avg",chart:[5.2,4.8,4.5,4.2,3.9,3.6,3.4,3.2,3.1,3.3,3.4,3.2],breakdown:[{type:"Simple Features",time:1.8,target:2},{type:"Complex Features",time:6.4,target:8},{type:"Bug Fixes",time:.8,target:1},{type:"Refactoring",time:4.2,target:5}]},resource_usage:{current:47,previous:52,trend:"down",unit:"% context",chart:[62,58,55,53,51,49,48,47,46,48,49,47],breakdown:[{resource:"Context Window",usage:47,limit:100},{resource:"Session Duration",usage:3.4,limit:8},{resource:"Tool Calls",usage:245,limit:500},{resource:"Memory Usage",usage:34,limit:100}]}},p={features_completion:{date:"2025-08-22",confidence:85,remaining:47},quality_target:{score:96,timeline:"2 weeks",confidence:78},milestone_completion:{name:"ADE Interface Complete",date:"2025-08-15",confidence:92,progress:59}};let v=d.velocity;Ft(()=>{_()});function h(y){n(0,i=y),_()}function g(y){n(1,r=y),n(3,v=d[y]),_()}function _(){n(3,v=d[r])}function C(){n(2,c=c==="overview"?"detailed":"overview")}return[i,r,c,v,o,u,p,h,g,C,y=>h(y.id),y=>g(y.id),y=>y.id===r]}class Yi extends Ct{constructor(t){super(),yt(this,t,Ki,Ji,_t,{},null,[-1,-1])}}function Cs(l,t,n){const i=l.slice();return i[47]=t[n],i}function ws(l){let t;return{c(){t=a("span"),t.textContent="●",s(t,"class","unsaved-indicator")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function Ss(l){let t,n,i,r,c,o,u,d,p,v=l[47].id===l[0]&&l[2]&&ws();function h(){return l[13](l[47])}return{c(){t=a("button"),n=a("span"),n.textContent=`${l[47].icon}`,i=f(),r=a("span"),r.textContent=`${l[47].name}`,c=f(),v&&v.c(),o=f(),s(n,"class","nav-icon"),s(r,"class","nav-name"),s(t,"class",u="nav-item btn-secondary "+(l[0]===l[47].id?"btn-primary":""))},m(g,_){U(g,t,_),e(t,n),e(t,i),e(t,r),e(t,c),v&&v.m(t,null),e(t,o),d||(p=$(t,"click",h),d=!0)},p(g,_){l=g,l[47].id===l[0]&&l[2]?v||(v=ws(),v.c(),v.m(t,o)):v&&(v.d(1),v=null),_[0]&1&&u!==(u="nav-item btn-secondary "+(l[0]===l[47].id?"btn-primary":""))&&s(t,"class",u)},d(g){g&&O(t),v&&v.d(),d=!1,p()}}}function Xi(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se,W,J,ce,N,ne,Y,ie,Q,he,K,fe,te,de;return{c(){t=a("div"),n=a("h3"),n.textContent="Privacy & Security Settings",i=f(),r=a("p"),r.textContent="Data handling, encryption, and retention policies",c=f(),o=a("div"),u=a("h4"),u.textContent="Data Collection",d=f(),p=a("div"),v=a("label"),h=a("input"),g=A(`
                Enable usage analytics`),_=f(),C=a("p"),C.textContent="Allow collection of anonymous usage data for improvements",m=f(),w=a("div"),k=a("label"),y=a("input"),b=A(`
                Error reporting`),T=f(),S=a("p"),S.textContent="Send error reports to help improve stability",D=f(),M=a("div"),I=a("label"),E=a("input"),V=A(`
                Performance metrics`),L=f(),F=a("p"),F.textContent="Share performance data for optimization",j=f(),q=a("div"),Z=a("h4"),Z.textContent="Data Protection",P=f(),R=a("div"),z=a("label"),x=a("input"),se=A(`
                Anonymize personal data`),W=f(),J=a("p"),J.textContent="Remove personally identifiable information from reports",ce=f(),N=a("div"),ne=a("label"),Y=a("input"),ie=A(`
                Include private data in exports`),Q=f(),he=a("p"),he.textContent="Include sensitive data when exporting settings",K=f(),fe=a("div"),fe.innerHTML='<h4>Data Management</h4> <div class="action-buttons"><button class="btn-secondary">Clear All Data</button> <button class="btn-secondary">Export My Data</button> <button class="btn-danger">Delete Account Data</button></div>',s(r,"class","panel-description"),s(h,"type","checkbox"),s(v,"class","checkbox-label"),s(C,"class","setting-description"),s(p,"class","setting-item"),s(y,"type","checkbox"),s(k,"class","checkbox-label"),s(S,"class","setting-description"),s(w,"class","setting-item"),s(E,"type","checkbox"),s(I,"class","checkbox-label"),s(F,"class","setting-description"),s(M,"class","setting-item"),s(o,"class","settings-group"),s(x,"type","checkbox"),s(z,"class","checkbox-label"),s(J,"class","setting-description"),s(R,"class","setting-item"),s(Y,"type","checkbox"),s(ne,"class","checkbox-label"),s(he,"class","setting-description"),s(N,"class","setting-item"),s(q,"class","settings-group"),s(fe,"class","settings-group"),s(t,"class","panel-content")},m(X,ue){U(X,t,ue),e(t,n),e(t,i),e(t,r),e(t,c),e(t,o),e(o,u),e(o,d),e(o,p),e(p,v),e(v,h),h.checked=l[1].privacy.enableDataCollection,e(v,g),e(p,_),e(p,C),e(o,m),e(o,w),e(w,k),e(k,y),y.checked=l[1].privacy.enableErrorReporting,e(k,b),e(w,T),e(w,S),e(o,D),e(o,M),e(M,I),e(I,E),E.checked=l[1].privacy.enablePerformanceMetrics,e(I,V),e(M,L),e(M,F),e(t,j),e(t,q),e(q,Z),e(q,P),e(q,R),e(R,z),e(z,x),x.checked=l[1].privacy.anonymizeData,e(z,se),e(R,W),e(R,J),e(q,ce),e(q,N),e(N,ne),e(ne,Y),Y.checked=l[1].privacy.exportPrivateData,e(ne,ie),e(N,Q),e(N,he),e(t,K),e(t,fe),te||(de=[$(h,"change",l[42]),$(h,"change",l[6]),$(y,"change",l[43]),$(y,"change",l[6]),$(E,"change",l[44]),$(E,"change",l[6]),$(x,"change",l[45]),$(x,"change",l[6]),$(Y,"change",l[46]),$(Y,"change",l[6])],te=!0)},p(X,ue){ue[0]&2&&(h.checked=X[1].privacy.enableDataCollection),ue[0]&2&&(y.checked=X[1].privacy.enableErrorReporting),ue[0]&2&&(E.checked=X[1].privacy.enablePerformanceMetrics),ue[0]&2&&(x.checked=X[1].privacy.anonymizeData),ue[0]&2&&(Y.checked=X[1].privacy.exportPrivateData)},d(X){X&&O(t),te=!1,lt(de)}}}function xi(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se,W,J,ce,N,ne,Y,ie,Q,he,K,fe,te,de,X,ue,_e,le,ae;return{c(){t=a("div"),n=a("h3"),n.textContent="Notification Preferences",i=f(),r=a("p"),r.textContent="Alert types, styles, and delivery preferences",c=f(),o=a("div"),u=a("h4"),u.textContent="Alert Types",d=f(),p=a("div"),v=a("label"),h=a("input"),g=A(`
                Toast notifications`),_=f(),C=a("p"),C.textContent="Show popup notifications for important events",m=f(),w=a("div"),k=a("label"),y=a("input"),b=A(`
                Sound alerts`),T=f(),S=a("p"),S.textContent="Play notification sounds",D=f(),M=a("div"),I=a("label"),E=a("input"),V=A(`
                Badge indicators`),L=f(),F=a("p"),F.textContent="Show notification badges on navigation items",j=f(),q=a("div"),Z=a("h4"),Z.textContent="Notification Events",P=f(),R=a("div"),z=a("label"),x=a("input"),se=A(`
                Critical issues only`),W=f(),J=a("p"),J.textContent="Only notify for critical and high-priority issues",ce=f(),N=a("div"),ne=a("label"),Y=a("input"),ie=A(`
                Session end notifications`),Q=f(),he=a("p"),he.textContent="Notify when sessions end automatically",K=f(),fe=a("div"),te=a("label"),de=a("input"),X=A(`
                Milestone notifications`),ue=f(),_e=a("p"),_e.textContent="Notify when milestones are achieved",s(r,"class","panel-description"),s(h,"type","checkbox"),s(v,"class","checkbox-label"),s(C,"class","setting-description"),s(p,"class","setting-item"),s(y,"type","checkbox"),s(k,"class","checkbox-label"),s(S,"class","setting-description"),s(w,"class","setting-item"),s(E,"type","checkbox"),s(I,"class","checkbox-label"),s(F,"class","setting-description"),s(M,"class","setting-item"),s(o,"class","settings-group"),s(x,"type","checkbox"),s(z,"class","checkbox-label"),s(J,"class","setting-description"),s(R,"class","setting-item"),s(Y,"type","checkbox"),s(ne,"class","checkbox-label"),s(he,"class","setting-description"),s(N,"class","setting-item"),s(de,"type","checkbox"),s(te,"class","checkbox-label"),s(_e,"class","setting-description"),s(fe,"class","setting-item"),s(q,"class","settings-group"),s(t,"class","panel-content")},m(ge,oe){U(ge,t,oe),e(t,n),e(t,i),e(t,r),e(t,c),e(t,o),e(o,u),e(o,d),e(o,p),e(p,v),e(v,h),h.checked=l[1].notifications.enableToasts,e(v,g),e(p,_),e(p,C),e(o,m),e(o,w),e(w,k),e(k,y),y.checked=l[1].notifications.enableSounds,e(k,b),e(w,T),e(w,S),e(o,D),e(o,M),e(M,I),e(I,E),E.checked=l[1].notifications.enableBadges,e(I,V),e(M,L),e(M,F),e(t,j),e(t,q),e(q,Z),e(q,P),e(q,R),e(R,z),e(z,x),x.checked=l[1].notifications.criticalIssuesOnly,e(z,se),e(R,W),e(R,J),e(q,ce),e(q,N),e(N,ne),e(ne,Y),Y.checked=l[1].notifications.sessionEndNotification,e(ne,ie),e(N,Q),e(N,he),e(q,K),e(q,fe),e(fe,te),e(te,de),de.checked=l[1].notifications.milestoneNotification,e(te,X),e(fe,ue),e(fe,_e),le||(ae=[$(h,"change",l[36]),$(h,"change",l[6]),$(y,"change",l[37]),$(y,"change",l[6]),$(E,"change",l[38]),$(E,"change",l[6]),$(x,"change",l[39]),$(x,"change",l[6]),$(Y,"change",l[40]),$(Y,"change",l[6]),$(de,"change",l[41]),$(de,"change",l[6])],le=!0)},p(ge,oe){oe[0]&2&&(h.checked=ge[1].notifications.enableToasts),oe[0]&2&&(y.checked=ge[1].notifications.enableSounds),oe[0]&2&&(E.checked=ge[1].notifications.enableBadges),oe[0]&2&&(x.checked=ge[1].notifications.criticalIssuesOnly),oe[0]&2&&(Y.checked=ge[1].notifications.sessionEndNotification),oe[0]&2&&(de.checked=ge[1].notifications.milestoneNotification)},d(ge){ge&&O(t),le=!1,lt(ae)}}}function ea(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M=l[1].ai.temperature+"",I,E,V,L,F,j,q,Z,P,R,z,x,se,W,J,ce,N,ne,Y,ie,Q,he,K,fe,te,de,X,ue,_e,le,ae,ge,oe,be;return{c(){t=a("div"),n=a("h3"),n.textContent="AI Assistant Configuration",i=f(),r=a("p"),r.textContent="Model selection, behavior, and capability settings",c=f(),o=a("div"),u=a("h4"),u.textContent="Model Configuration",d=f(),p=a("div"),v=a("label"),v.textContent="AI Model",h=f(),g=a("select"),_=a("option"),_.textContent="Claude Sonnet 4",C=a("option"),C.textContent="Claude Opus 3",m=a("option"),m.textContent="Claude Haiku 3",w=f(),k=a("div"),y=a("label"),y.textContent="Temperature",b=f(),T=a("input"),S=f(),D=a("span"),I=A(M),E=f(),V=a("p"),V.textContent="Controls randomness in AI responses (0 = deterministic, 1 = creative)",L=f(),F=a("div"),j=a("label"),j.textContent="Context Window Size",q=f(),Z=a("input"),P=f(),R=a("div"),z=a("h4"),z.textContent="AI Features",x=f(),se=a("div"),W=a("label"),J=a("input"),ce=A(`
                Enable code suggestions`),N=f(),ne=a("p"),ne.textContent="Show AI-powered code suggestions and completions",Y=f(),ie=a("div"),Q=a("label"),he=a("input"),K=A(`
                Enable auto-completion`),fe=f(),te=a("p"),te.textContent="Automatically complete code as you type",de=f(),X=a("div"),ue=a("label"),_e=a("input"),le=A(`
                Show reasoning steps`),ae=f(),ge=a("p"),ge.textContent="Display AI reasoning process in session replay",s(r,"class","panel-description"),s(v,"for","model"),_.__value="claude-sonnet-4",ve(_,_.__value),C.__value="claude-opus-3",ve(C,C.__value),m.__value="claude-haiku-3",ve(m,m.__value),s(g,"id","model"),l[1].ai.model===void 0&&mt(()=>l[30].call(g)),s(p,"class","setting-item"),s(y,"for","temperature"),s(T,"type","range"),s(T,"id","temperature"),s(T,"min","0"),s(T,"max","1"),s(T,"step","0.1"),s(D,"class","range-value"),s(V,"class","setting-description"),s(k,"class","setting-item"),s(j,"for","contextWindow"),s(Z,"type","number"),s(Z,"id","contextWindow"),s(Z,"min","1000"),s(Z,"max","200000"),s(Z,"step","1000"),s(F,"class","setting-item"),s(o,"class","settings-group"),s(J,"type","checkbox"),s(W,"class","checkbox-label"),s(ne,"class","setting-description"),s(se,"class","setting-item"),s(he,"type","checkbox"),s(Q,"class","checkbox-label"),s(te,"class","setting-description"),s(ie,"class","setting-item"),s(_e,"type","checkbox"),s(ue,"class","checkbox-label"),s(ge,"class","setting-description"),s(X,"class","setting-item"),s(R,"class","settings-group"),s(t,"class","panel-content")},m(ye,Ee){U(ye,t,Ee),e(t,n),e(t,i),e(t,r),e(t,c),e(t,o),e(o,u),e(o,d),e(o,p),e(p,v),e(p,h),e(p,g),e(g,_),e(g,C),e(g,m),it(g,l[1].ai.model,!0),e(o,w),e(o,k),e(k,y),e(k,b),e(k,T),ve(T,l[1].ai.temperature),e(k,S),e(k,D),e(D,I),e(k,E),e(k,V),e(o,L),e(o,F),e(F,j),e(F,q),e(F,Z),ve(Z,l[1].ai.contextWindow),e(t,P),e(t,R),e(R,z),e(R,x),e(R,se),e(se,W),e(W,J),J.checked=l[1].ai.enableCodeSuggestions,e(W,ce),e(se,N),e(se,ne),e(R,Y),e(R,ie),e(ie,Q),e(Q,he),he.checked=l[1].ai.enableAutoCompletion,e(Q,K),e(ie,fe),e(ie,te),e(R,de),e(R,X),e(X,ue),e(ue,_e),_e.checked=l[1].ai.enableReasoningDisplay,e(ue,le),e(X,ae),e(X,ge),oe||(be=[$(g,"change",l[30]),$(g,"change",l[6]),$(T,"change",l[31]),$(T,"input",l[31]),$(T,"input",l[6]),$(Z,"input",l[32]),$(Z,"input",l[6]),$(J,"change",l[33]),$(J,"change",l[6]),$(he,"change",l[34]),$(he,"change",l[6]),$(_e,"change",l[35]),$(_e,"change",l[6])],oe=!0)},p(ye,Ee){Ee[0]&2&&it(g,ye[1].ai.model),Ee[0]&2&&ve(T,ye[1].ai.temperature),Ee[0]&2&&M!==(M=ye[1].ai.temperature+"")&&H(I,M),Ee[0]&2&&wt(Z.value)!==ye[1].ai.contextWindow&&ve(Z,ye[1].ai.contextWindow),Ee[0]&2&&(J.checked=ye[1].ai.enableCodeSuggestions),Ee[0]&2&&(he.checked=ye[1].ai.enableAutoCompletion),Ee[0]&2&&(_e.checked=ye[1].ai.enableReasoningDisplay)},d(ye){ye&&O(t),oe=!1,lt(be)}}}function ta(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m=l[1].session.autoEndThreshold+"",w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se,W,J,ce,N,ne,Y,ie,Q,he,K,fe,te;return{c(){t=a("div"),n=a("h3"),n.textContent="Session Management",i=f(),r=a("p"),r.textContent="Session lifecycle and archiving preferences",c=f(),o=a("div"),u=a("h4"),u.textContent="Session Lifecycle",d=f(),p=a("div"),v=a("label"),v.textContent="Auto-end Threshold (%)",h=f(),g=a("input"),_=f(),C=a("span"),w=A(m),k=A("%"),y=f(),b=a("p"),b.textContent="End session when context usage reaches this threshold",T=f(),S=a("div"),D=a("label"),D.textContent="Session Timeout (Hours)",M=f(),I=a("input"),E=f(),V=a("div"),L=a("label"),F=a("input"),j=A(`
                Enable auto-consolidation`),q=f(),Z=a("p"),Z.textContent="Automatically consolidate documentation when sessions end",P=f(),R=a("div"),z=a("h4"),z.textContent="History and Archiving",x=f(),se=a("div"),W=a("label"),J=a("input"),ce=A(`
                Archive completed sessions`),N=f(),ne=a("p"),ne.textContent="Move completed sessions to archive for better performance",Y=f(),ie=a("div"),Q=a("label"),Q.textContent="Max History Items",he=f(),K=a("input"),s(r,"class","panel-description"),s(v,"for","autoEndThreshold"),s(g,"type","range"),s(g,"id","autoEndThreshold"),s(g,"min","80"),s(g,"max","99"),s(C,"class","range-value"),s(b,"class","setting-description"),s(p,"class","setting-item"),s(D,"for","sessionTimeout"),s(I,"type","number"),s(I,"id","sessionTimeout"),s(I,"min","1"),s(I,"max","24"),s(S,"class","setting-item"),s(F,"type","checkbox"),s(L,"class","checkbox-label"),s(Z,"class","setting-description"),s(V,"class","setting-item"),s(o,"class","settings-group"),s(J,"type","checkbox"),s(W,"class","checkbox-label"),s(ne,"class","setting-description"),s(se,"class","setting-item"),s(Q,"for","maxHistoryItems"),s(K,"type","number"),s(K,"id","maxHistoryItems"),s(K,"min","10"),s(K,"max","1000"),s(ie,"class","setting-item"),s(R,"class","settings-group"),s(t,"class","panel-content")},m(de,X){U(de,t,X),e(t,n),e(t,i),e(t,r),e(t,c),e(t,o),e(o,u),e(o,d),e(o,p),e(p,v),e(p,h),e(p,g),ve(g,l[1].session.autoEndThreshold),e(p,_),e(p,C),e(C,w),e(C,k),e(p,y),e(p,b),e(o,T),e(o,S),e(S,D),e(S,M),e(S,I),ve(I,l[1].session.sessionTimeout),e(o,E),e(o,V),e(V,L),e(L,F),F.checked=l[1].session.enableAutoConsolidation,e(L,j),e(V,q),e(V,Z),e(t,P),e(t,R),e(R,z),e(R,x),e(R,se),e(se,W),e(W,J),J.checked=l[1].session.archiveCompletedSessions,e(W,ce),e(se,N),e(se,ne),e(R,Y),e(R,ie),e(ie,Q),e(ie,he),e(ie,K),ve(K,l[1].session.maxHistoryItems),fe||(te=[$(g,"change",l[25]),$(g,"input",l[25]),$(g,"input",l[6]),$(I,"input",l[26]),$(I,"input",l[6]),$(F,"change",l[27]),$(F,"change",l[6]),$(J,"change",l[28]),$(J,"change",l[6]),$(K,"input",l[29]),$(K,"input",l[6])],fe=!0)},p(de,X){X[0]&2&&ve(g,de[1].session.autoEndThreshold),X[0]&2&&m!==(m=de[1].session.autoEndThreshold+"")&&H(w,m),X[0]&2&&wt(I.value)!==de[1].session.sessionTimeout&&ve(I,de[1].session.sessionTimeout),X[0]&2&&(F.checked=de[1].session.enableAutoConsolidation),X[0]&2&&(J.checked=de[1].session.archiveCompletedSessions),X[0]&2&&wt(K.value)!==de[1].session.maxHistoryItems&&ve(K,de[1].session.maxHistoryItems)},d(de){de&&O(t),fe=!1,lt(te)}}}function la(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se,W,J,ce,N,ne,Y,ie,Q,he,K,fe,te;return{c(){t=a("div"),n=a("h3"),n.textContent="Project Settings",i=f(),r=a("p"),r.textContent="Feature management and project-specific configuration",c=f(),o=a("div"),u=a("h4"),u.textContent="Feature Management",d=f(),p=a("div"),v=a("label"),v.textContent="Default Feature State",h=f(),g=a("select"),_=a("option"),_.textContent="Pending",C=a("option"),C.textContent="In Progress",m=a("option"),m.textContent="Completed",w=f(),k=a("div"),y=a("label"),b=a("input"),T=A(`
                Auto-generate feature IDs`),S=f(),D=a("p"),D.textContent="Automatically assign F#### IDs to new features",M=f(),I=a("div"),E=a("label"),V=a("input"),L=A(`
                Enable validation rules`),F=f(),j=a("p"),j.textContent="Enforce methodology constraints and validation",q=f(),Z=a("div"),P=a("h4"),P.textContent="Data Management",R=f(),z=a("div"),x=a("label"),x.textContent="Backup Frequency",se=f(),W=a("select"),J=a("option"),J.textContent="Never",ce=a("option"),ce.textContent="Daily",N=a("option"),N.textContent="Weekly",ne=a("option"),ne.textContent="Monthly",Y=f(),ie=a("div"),Q=a("label"),Q.textContent="Data Retention (Days)",he=f(),K=a("input"),s(r,"class","panel-description"),s(v,"for","defaultFeatureState"),_.__value="pending",ve(_,_.__value),C.__value="in_progress",ve(C,C.__value),m.__value="completed",ve(m,m.__value),s(g,"id","defaultFeatureState"),l[1].project.defaultFeatureState===void 0&&mt(()=>l[20].call(g)),s(p,"class","setting-item"),s(b,"type","checkbox"),s(y,"class","checkbox-label"),s(D,"class","setting-description"),s(k,"class","setting-item"),s(V,"type","checkbox"),s(E,"class","checkbox-label"),s(j,"class","setting-description"),s(I,"class","setting-item"),s(o,"class","settings-group"),s(x,"for","backupFrequency"),J.__value="never",ve(J,J.__value),ce.__value="daily",ve(ce,ce.__value),N.__value="weekly",ve(N,N.__value),ne.__value="monthly",ve(ne,ne.__value),s(W,"id","backupFrequency"),l[1].project.backupFrequency===void 0&&mt(()=>l[23].call(W)),s(z,"class","setting-item"),s(Q,"for","retentionDays"),s(K,"type","number"),s(K,"id","retentionDays"),s(K,"min","1"),s(K,"max","365"),s(ie,"class","setting-item"),s(Z,"class","settings-group"),s(t,"class","panel-content")},m(de,X){U(de,t,X),e(t,n),e(t,i),e(t,r),e(t,c),e(t,o),e(o,u),e(o,d),e(o,p),e(p,v),e(p,h),e(p,g),e(g,_),e(g,C),e(g,m),it(g,l[1].project.defaultFeatureState,!0),e(o,w),e(o,k),e(k,y),e(y,b),b.checked=l[1].project.autoGenerateIds,e(y,T),e(k,S),e(k,D),e(o,M),e(o,I),e(I,E),e(E,V),V.checked=l[1].project.enableValidation,e(E,L),e(I,F),e(I,j),e(t,q),e(t,Z),e(Z,P),e(Z,R),e(Z,z),e(z,x),e(z,se),e(z,W),e(W,J),e(W,ce),e(W,N),e(W,ne),it(W,l[1].project.backupFrequency,!0),e(Z,Y),e(Z,ie),e(ie,Q),e(ie,he),e(ie,K),ve(K,l[1].project.retentionDays),fe||(te=[$(g,"change",l[20]),$(g,"change",l[6]),$(b,"change",l[21]),$(b,"change",l[6]),$(V,"change",l[22]),$(V,"change",l[6]),$(W,"change",l[23]),$(W,"change",l[6]),$(K,"input",l[24]),$(K,"input",l[6])],fe=!0)},p(de,X){X[0]&2&&it(g,de[1].project.defaultFeatureState),X[0]&2&&(b.checked=de[1].project.autoGenerateIds),X[0]&2&&(V.checked=de[1].project.enableValidation),X[0]&2&&it(W,de[1].project.backupFrequency),X[0]&2&&wt(K.value)!==de[1].project.retentionDays&&ve(K,de[1].project.retentionDays)},d(de){de&&O(t),fe=!1,lt(te)}}}function na(l){let t,n,i,r,c,o,u,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se,W,J,ce,N,ne,Y,ie,Q,he,K,fe,te,de,X,ue,_e,le,ae;return{c(){t=a("div"),n=a("h3"),n.textContent="General Settings",i=f(),r=a("p"),r.textContent="Workspace configuration and basic preferences",c=f(),o=a("div"),u=a("h4"),u.textContent="Workspace Configuration",d=f(),p=a("div"),v=a("label"),v.textContent="Project Name",h=f(),g=a("input"),_=f(),C=a("div"),m=a("label"),m.textContent="Root Directory",w=f(),k=a("div"),y=a("input"),b=f(),T=a("button"),T.textContent="Browse",S=f(),D=a("div"),M=a("label"),M.textContent="Version",I=f(),E=a("input"),V=f(),L=a("div"),F=a("h4"),F.textContent="Preferences",j=f(),q=a("div"),Z=a("label"),P=a("input"),R=A(`
                Auto-save changes`),z=f(),x=a("p"),x.textContent="Automatically save changes every few seconds",se=f(),W=a("div"),J=a("label"),J.textContent="Theme",ce=f(),N=a("select"),ne=a("option"),ne.textContent="Dark",Y=a("option"),Y.textContent="Light",ie=a("option"),ie.textContent="Auto (System)",Q=f(),he=a("div"),K=a("label"),K.textContent="Language",fe=f(),te=a("select"),de=a("option"),de.textContent="English",X=a("option"),X.textContent="Spanish",ue=a("option"),ue.textContent="French",_e=a("option"),_e.textContent="German",s(n,"class","text-primary"),s(r,"class","panel-description text-secondary"),s(v,"for","projectName"),s(g,"type","text"),s(g,"id","projectName"),s(p,"class","setting-item"),s(m,"for","rootDirectory"),s(y,"type","text"),s(y,"id","rootDirectory"),y.readOnly=!0,s(T,"class","btn-browse"),s(k,"class","input-with-button"),s(C,"class","setting-item"),s(M,"for","version"),s(E,"type","text"),s(E,"id","version"),E.readOnly=!0,s(D,"class","setting-item"),s(o,"class","settings-group"),s(P,"type","checkbox"),s(Z,"class","checkbox-label"),s(x,"class","setting-description"),s(q,"class","setting-item"),s(J,"for","theme"),ne.__value="dark",ve(ne,ne.__value),Y.__value="light",ve(Y,Y.__value),ie.__value="auto",ve(ie,ie.__value),s(N,"id","theme"),l[1].general.theme===void 0&&mt(()=>l[18].call(N)),s(W,"class","setting-item"),s(K,"for","language"),de.__value="en",ve(de,de.__value),X.__value="es",ve(X,X.__value),ue.__value="fr",ve(ue,ue.__value),_e.__value="de",ve(_e,_e.__value),s(te,"id","language"),l[1].general.language===void 0&&mt(()=>l[19].call(te)),s(he,"class","setting-item"),s(L,"class","settings-group"),s(t,"class","panel-content")},m(ge,oe){U(ge,t,oe),e(t,n),e(t,i),e(t,r),e(t,c),e(t,o),e(o,u),e(o,d),e(o,p),e(p,v),e(p,h),e(p,g),ve(g,l[1].general.projectName),e(o,_),e(o,C),e(C,m),e(C,w),e(C,k),e(k,y),ve(y,l[1].general.rootDirectory),e(k,b),e(k,T),e(o,S),e(o,D),e(D,M),e(D,I),e(D,E),ve(E,l[1].general.version),e(t,V),e(t,L),e(L,F),e(L,j),e(L,q),e(q,Z),e(Z,P),P.checked=l[1].general.autoSave,e(Z,R),e(q,z),e(q,x),e(L,se),e(L,W),e(W,J),e(W,ce),e(W,N),e(N,ne),e(N,Y),e(N,ie),it(N,l[1].general.theme,!0),e(L,Q),e(L,he),e(he,K),e(he,fe),e(he,te),e(te,de),e(te,X),e(te,ue),e(te,_e),it(te,l[1].general.language,!0),le||(ae=[$(g,"input",l[14]),$(g,"input",l[6]),$(y,"input",l[15]),$(y,"input",l[6]),$(E,"input",l[16]),$(P,"change",l[17]),$(P,"change",l[6]),$(N,"change",l[18]),$(N,"change",l[6]),$(te,"change",l[19]),$(te,"change",l[6])],le=!0)},p(ge,oe){oe[0]&2&&g.value!==ge[1].general.projectName&&ve(g,ge[1].general.projectName),oe[0]&2&&y.value!==ge[1].general.rootDirectory&&ve(y,ge[1].general.rootDirectory),oe[0]&2&&E.value!==ge[1].general.version&&ve(E,ge[1].general.version),oe[0]&2&&(P.checked=ge[1].general.autoSave),oe[0]&2&&it(N,ge[1].general.theme),oe[0]&2&&it(te,ge[1].general.language)},d(ge){ge&&O(t),le=!1,lt(ae)}}}function sa(l){let t;return{c(){t=A("Remember to save your changes manually.")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function ia(l){let t;return{c(){t=A("Auto-save is enabled. Changes are saved automatically.")},m(n,i){U(n,t,i)},d(n){n&&O(t)}}}function aa(l){let t,n,i,r,c,o,u,d,p=l[12]()+"",v,h,g,_,C,m=l[3]==="saving"?"Saving...":"Save Changes",w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se=re(l[4]),W=[];for(let Q=0;Q<se.length;Q+=1)W[Q]=Ss(Cs(l,se,Q));function J(Q,he){if(Q[0]==="general")return na;if(Q[0]==="project")return la;if(Q[0]==="session")return ta;if(Q[0]==="ai")return ea;if(Q[0]==="notifications")return xi;if(Q[0]==="privacy")return Xi}let ce=J(l),N=ce&&ce(l);function ne(Q,he){return Q[1].general.autoSave?ia:sa}let Y=ne(l),ie=Y(l);return{c(){t=a("div"),n=a("div"),i=a("div"),i.innerHTML='<h2 class="text-primary">Settings &amp; Configuration</h2> <p class="subtitle text-secondary">Workspace preferences, AI assistant, and privacy settings</p>',r=f(),c=a("div"),o=a("div"),u=a("span"),d=f(),v=A(p),h=f(),g=a("button"),g.textContent="Export Settings",_=f(),C=a("button"),w=A(m),y=f(),b=a("div"),T=a("div");for(let Q=0;Q<W.length;Q+=1)W[Q].c();S=f(),D=a("div"),N&&N.c(),M=f(),I=a("div"),E=a("div"),V=a("label"),V.textContent="Import Settings",L=f(),F=a("input"),j=f(),q=a("button"),q.textContent="Reset to Defaults",Z=f(),P=a("div"),R=a("p"),ie.c(),s(i,"class","header-left"),s(u,"class","status-indicator"),s(o,"class","save-status text-secondary"),tt(o,"color",l[11]()),s(g,"class","btn-secondary"),s(C,"class","btn-primary"),C.disabled=k=l[3]==="saving"||!l[2],s(c,"class","header-actions"),s(n,"class","settings-header card bg-surface-2"),s(T,"class","settings-nav card bg-surface-2"),s(D,"class","settings-panel card bg-surface"),s(b,"class","settings-content"),s(V,"for","importFile"),s(V,"class","btn-secondary"),s(F,"type","file"),s(F,"id","importFile"),s(F,"accept",".json"),tt(F,"display","none"),s(q,"class","btn-secondary"),s(E,"class","footer-left"),s(R,"class","auto-save-note"),s(P,"class","footer-right"),s(I,"class","settings-footer"),s(t,"class","settings card bg-surface")},m(Q,he){U(Q,t,he),e(t,n),e(n,i),e(n,r),e(n,c),e(c,o),e(o,u),e(o,d),e(o,v),e(c,h),e(c,g),e(c,_),e(c,C),e(C,w),e(t,y),e(t,b),e(b,T);for(let K=0;K<W.length;K+=1)W[K]&&W[K].m(T,null);e(b,S),e(b,D),N&&N.m(D,null),e(t,M),e(t,I),e(I,E),e(E,V),e(E,L),e(E,F),e(E,j),e(E,q),e(I,Z),e(I,P),e(P,R),ie.m(R,null),z||(x=[$(g,"click",l[9]),$(C,"click",l[7]),$(F,"change",l[10]),$(q,"click",l[8])],z=!0)},p(Q,he){if(he[0]&8&&m!==(m=Q[3]==="saving"?"Saving...":"Save Changes")&&H(w,m),he[0]&12&&k!==(k=Q[3]==="saving"||!Q[2])&&(C.disabled=k),he[0]&53){se=re(Q[4]);let K;for(K=0;K<se.length;K+=1){const fe=Cs(Q,se,K);W[K]?W[K].p(fe,he):(W[K]=Ss(fe),W[K].c(),W[K].m(T,null))}for(;K<W.length;K+=1)W[K].d(1);W.length=se.length}ce===(ce=J(Q))&&N?N.p(Q,he):(N&&N.d(1),N=ce&&ce(Q),N&&(N.c(),N.m(D,null))),Y!==(Y=ne(Q))&&(ie.d(1),ie=Y(Q),ie&&(ie.c(),ie.m(R,null)))},i:Fe,o:Fe,d(Q){Q&&O(t),je(W,Q),N&&N.d(),ie.d(),z=!1,lt(x)}}}function oa(){console.log("Loading settings...")}function ra(l,t,n){let i="general",r={general:{projectName:"Workspace Development Suite",rootDirectory:"/Users/bahram/wsb/prj/workspace",version:"0.46.79711",autoSave:!0,theme:"dark",language:"en"},project:{defaultFeatureState:"pending",autoGenerateIds:!0,enableValidation:!0,backupFrequency:"daily",retentionDays:30},session:{autoEndThreshold:95,archiveCompletedSessions:!0,sessionTimeout:8,maxHistoryItems:100,enableAutoConsolidation:!0},ai:{model:"claude-sonnet-4",temperature:.7,enableCodeSuggestions:!0,enableAutoCompletion:!0,contextWindow:8e3,enableReasoningDisplay:!0},notifications:{enableToasts:!0,enableSounds:!1,enableBadges:!0,criticalIssuesOnly:!1,sessionEndNotification:!0,milestoneNotification:!0},privacy:{enableDataCollection:!1,enableErrorReporting:!0,enablePerformanceMetrics:!0,anonymizeData:!0,exportPrivateData:!1}};const c=[{id:"general",name:"General",icon:""},{id:"project",name:"Project",icon:""},{id:"session",name:"Session Management",icon:""},{id:"ai",name:"AI Assistant",icon:""},{id:"notifications",name:"Notifications",icon:""},{id:"privacy",name:"Privacy & Security",icon:""}];let o=!1,u="saved";Ft(()=>{oa()});function d(X){o&&!confirm("You have unsaved changes. Continue without saving?")||(n(0,i=X),n(2,o=!1))}function p(){n(2,o=!0),n(3,u="unsaved")}async function v(){n(3,u="saving");try{await new Promise(X=>setTimeout(X,1e3)),n(3,u="saved"),n(2,o=!1)}catch{n(3,u="error")}}function h(){confirm("Reset all settings to defaults? This cannot be undone.")&&p()}function g(){const X=JSON.stringify(r,null,2),ue=new Blob([X],{type:"application/json"}),_e=URL.createObjectURL(ue),le=document.createElement("a");le.href=_e,le.download="workspace-settings.json",le.click(),URL.revokeObjectURL(_e)}function _(X){const ue=X.target.files[0];if(ue){const _e=new FileReader;_e.onload=le=>{try{const ae=JSON.parse(le.target.result);n(1,r={...r,...ae}),p()}catch{alert("Invalid settings file format")}},_e.readAsText(ue)}}function C(){return{saved:"var(--color-success)",saving:"var(--color-warning)",unsaved:"var(--color-error)",error:"var(--color-error)"}[u]||"var(--color-text-secondary)"}function m(){return{saved:"All changes saved",saving:"Saving changes...",unsaved:"Unsaved changes",error:"Save failed"}[u]||"Unknown status"}const w=X=>d(X.id);function k(){r.general.projectName=this.value,n(1,r)}function y(){r.general.rootDirectory=this.value,n(1,r)}function b(){r.general.version=this.value,n(1,r)}function T(){r.general.autoSave=this.checked,n(1,r)}function S(){r.general.theme=Tt(this),n(1,r)}function D(){r.general.language=Tt(this),n(1,r)}function M(){r.project.defaultFeatureState=Tt(this),n(1,r)}function I(){r.project.autoGenerateIds=this.checked,n(1,r)}function E(){r.project.enableValidation=this.checked,n(1,r)}function V(){r.project.backupFrequency=Tt(this),n(1,r)}function L(){r.project.retentionDays=wt(this.value),n(1,r)}function F(){r.session.autoEndThreshold=wt(this.value),n(1,r)}function j(){r.session.sessionTimeout=wt(this.value),n(1,r)}function q(){r.session.enableAutoConsolidation=this.checked,n(1,r)}function Z(){r.session.archiveCompletedSessions=this.checked,n(1,r)}function P(){r.session.maxHistoryItems=wt(this.value),n(1,r)}function R(){r.ai.model=Tt(this),n(1,r)}function z(){r.ai.temperature=wt(this.value),n(1,r)}function x(){r.ai.contextWindow=wt(this.value),n(1,r)}function se(){r.ai.enableCodeSuggestions=this.checked,n(1,r)}function W(){r.ai.enableAutoCompletion=this.checked,n(1,r)}function J(){r.ai.enableReasoningDisplay=this.checked,n(1,r)}function ce(){r.notifications.enableToasts=this.checked,n(1,r)}function N(){r.notifications.enableSounds=this.checked,n(1,r)}function ne(){r.notifications.enableBadges=this.checked,n(1,r)}function Y(){r.notifications.criticalIssuesOnly=this.checked,n(1,r)}function ie(){r.notifications.sessionEndNotification=this.checked,n(1,r)}function Q(){r.notifications.milestoneNotification=this.checked,n(1,r)}function he(){r.privacy.enableDataCollection=this.checked,n(1,r)}function K(){r.privacy.enableErrorReporting=this.checked,n(1,r)}function fe(){r.privacy.enablePerformanceMetrics=this.checked,n(1,r)}function te(){r.privacy.anonymizeData=this.checked,n(1,r)}function de(){r.privacy.exportPrivateData=this.checked,n(1,r)}return[i,r,o,u,c,d,p,v,h,g,_,C,m,w,k,y,b,T,S,D,M,I,E,V,L,F,j,q,Z,P,R,z,x,se,W,J,ce,N,ne,Y,ie,Q,he,K,fe,te,de]}class ca extends Ct{constructor(t){super(),yt(this,t,ra,aa,_t,{},null,[-1,-1])}}function da(l){let t,n,i=l[0].charAt(0).toUpperCase()+l[0].slice(1)+"",r,c,o;return{c(){t=a("div"),n=a("h1"),r=A(i),c=f(),o=a("p"),o.textContent="This section is under development",s(t,"class","other-view svelte-11f3sj0")},m(u,d){U(u,t,d),e(t,n),e(n,r),e(t,c),e(t,o)},p(u,d){d&1&&i!==(i=u[0].charAt(0).toUpperCase()+u[0].slice(1)+"")&&H(r,i)},i:Fe,o:Fe,d(u){u&&O(t)}}}function ua(l){let t,n;return t=new ca({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function fa(l){let t,n;return t=new Yi({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function pa(l){let t,n;return t=new qi({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function va(l){let t,n;return t=new Ei({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function ha(l){let t,n;return t=new Si({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function ga(l){let t,n;return t=new bi({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function ma(l){let t,n;return t=new ui({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function _a(l){let t,n;return t=new ai({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function ba(l){let t,n;return t=new ti({}),{c(){St(t.$$.fragment)},m(i,r){bt(t,i,r),n=!0},p:Fe,i(i){n||(dt(t.$$.fragment,i),n=!0)},o(i){ht(t.$$.fragment,i),n=!1},d(i){kt(t,i)}}}function ka(l){let t,n,i,r,c,o,u;n=new Xs({props:{currentView:l[0],switchView:l[1]}});const d=[ba,_a,ma,ga,ha,va,pa,fa,ua,da],p=[];function v(h,g){return h[0]==="overview"?0:h[0]==="sessions"?1:h[0]==="issues"?2:h[0]==="features"?3:h[0]==="workspace"?4:h[0]==="testing"?5:h[0]==="entities"?6:h[0]==="analytics"?7:h[0]==="settings"?8:9}return c=v(l),o=p[c]=d[c](l),{c(){t=a("main"),St(n.$$.fragment),i=f(),r=a("div"),o.c(),s(r,"class","content svelte-11f3sj0"),s(t,"class","svelte-11f3sj0")},m(h,g){U(h,t,g),bt(n,t,null),e(t,i),e(t,r),p[c].m(r,null),u=!0},p(h,[g]){const _={};g&1&&(_.currentView=h[0]),n.$set(_);let C=c;c=v(h),c===C?p[c].p(h,g):(Is(),ht(p[C],1,1,()=>{p[C]=null}),Fs(),o=p[c],o?o.p(h,g):(o=p[c]=d[c](h),o.c()),dt(o,1),o.m(r,null))},i(h){u||(dt(n.$$.fragment,h),dt(o),u=!0)},o(h){ht(n.$$.fragment,h),ht(o),u=!1},d(h){h&&O(t),kt(n),p[c].d()}}}function ya(l,t,n){let i="overview";function r(c){n(0,i=c)}return[i,r]}class Ca extends Ct{constructor(t){super(),yt(this,t,ya,ka,_t,{})}}new Ca({target:document.getElementById("ade-app")});