aperta-cli 1.0.0-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +257 -332
- package/dashboard/dist/assets/index-BIU9XLtE.css +1 -0
- package/dashboard/dist/assets/index-DHF2W8ef.js +11 -0
- package/dashboard/dist/index.html +2 -2
- package/dist-cli/src/agent-harness.js +1 -1
- package/dist-cli/src/agent-harness.js.map +1 -1
- package/dist-cli/src/dashboard-data.js +5 -3
- package/dist-cli/src/dashboard-data.js.map +1 -1
- package/dist-cli/src/dashboard-server.js +52 -4
- package/dist-cli/src/dashboard-server.js.map +1 -1
- package/dist-cli/src/harness-intelligence.js +3 -0
- package/dist-cli/src/harness-intelligence.js.map +1 -1
- package/dist-cli/src/semantic.js +5 -1
- package/dist-cli/src/semantic.js.map +1 -1
- package/dist-cli/src/storage.js +18 -0
- package/dist-cli/src/storage.js.map +1 -1
- package/package.json +6 -4
- package/dashboard/dist/assets/index-CWL1aA6j.js +0 -11
- package/dashboard/dist/assets/index-D0Ru46BW.css +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>ee(e)===`[object Map]`,p=e=>ee(e)===`[object Set]`,m=e=>ee(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,ee=e=>b.call(e),te=e=>ee(e).slice(8,-1),ne=e=>ee(e)===`[object Object]`,re=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ie=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ae=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},x=/-\w/g,S=ae(e=>e.replace(x,e=>e.slice(1).toUpperCase())),oe=/\B([A-Z])/g,se=ae(e=>e.replace(oe,`-$1`).toLowerCase()),ce=ae(e=>e.charAt(0).toUpperCase()+e.slice(1)),le=ae(e=>e?`on${ce(e)}`:``),ue=(e,t)=>!Object.is(e,t),de=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},pe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},me,he=()=>me||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ge(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?ve(r):ge(r);if(i)for(let e in i)t[e]=i[e]}return t}if(g(e)||v(e))return e}var C=/;(?![^(]*\))/g,w=/:([^]+)/,_e=/\/\*[^]*?\*\//g;function ve(e){let t={};return e.replace(_e,``).split(C).forEach(e=>{if(e){let n=e.split(w);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function T(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=T(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var ye=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,E=e(ye);ye+``;function be(e){return!!e||e===``}function xe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Se(e[r],t[r]);return n}function Se(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=_(e),r=_(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return n&&r?xe(e,t):!1;if(n=v(e),r=v(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Se(e[n],t[n]))return!1}}return String(e)===String(t)}function Ce(e,t){return e.findIndex(e=>Se(e,t))}var we=e=>!!(e&&e.__v_isRef===!0),D=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?we(e)?D(e.value):JSON.stringify(e,Te,2):String(e),Te=(e,t)=>we(t)?Te(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ee(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ee(e))}:_(t)?Ee(t):v(t)&&!d(t)&&!ne(t)?String(t):t,Ee=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,De,Oe=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&De&&(De.active?(this.parent=De,this.index=(De.scopes||(De.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=De;try{return De=this,e()}finally{De=t}}}on(){++this._on===1&&(this.prevScope=De,De=this)}off(){if(this._on>0&&--this._on===0){if(De===this)De=this.prevScope;else{let e=De;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function ke(){return De}var O,Ae=new WeakSet,je=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,De&&(De.active?De.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ae.has(this)&&(Ae.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||k(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,We(this),Le(this);let e=O,t=A;O=this,A=!0;try{return this.fn()}finally{Re(this),O=e,A=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Ve(e);this.deps=this.depsTail=void 0,We(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ae.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ze(this)&&this.run()}get dirty(){return ze(this)}},Me=0,Ne,Pe;function k(e,t=!1){if(e.flags|=8,t){e.next=Pe,Pe=e;return}e.next=Ne,Ne=e}function Fe(){Me++}function Ie(){if(--Me>0)return;if(Pe){let e=Pe;for(Pe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ne;){let t=Ne;for(Ne=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Le(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Re(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Ve(r),He(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function ze(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Be(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Be(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ge)||(e.globalVersion=Ge,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ze(e))))return;e.flags|=2;let t=e.dep,n=O,r=A;O=e,A=!0;try{Le(e);let n=e.fn(e._value);(t.version===0||ue(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{O=n,A=r,Re(e),e.flags&=-3}}function Ve(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Ve(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function He(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var A=!0,Ue=[];function j(){Ue.push(A),A=!1}function M(){let e=Ue.pop();A=e===void 0||e}function We(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=O;O=void 0;try{t()}finally{O=e}}}var Ge=0,Ke=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},qe=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!O||!A||O===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==O)t=this.activeLink=new Ke(O,this),O.deps?(t.prevDep=O.depsTail,O.depsTail.nextDep=t,O.depsTail=t):O.deps=O.depsTail=t,Je(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=O.depsTail,t.nextDep=void 0,O.depsTail.nextDep=t,O.depsTail=t,O.deps===t&&(O.deps=e)}return t}trigger(e){this.version++,Ge++,this.notify(e)}notify(e){Fe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ie()}}};function Je(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Je(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ye=new WeakMap,Xe=Symbol(``),Ze=Symbol(``),Qe=Symbol(``);function $e(e,t,n){if(A&&O){let t=Ye.get(e);t||Ye.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new qe),r.map=t,r.key=n),r.track()}}function et(e,t,n,r,i,a){let o=Ye.get(e);if(!o){Ge++;return}let s=e=>{e&&e.trigger()};if(Fe(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&re(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Qe||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Qe)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`delete`:i||(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`set`:f(e)&&s(o.get(Xe))}}Ie()}function tt(e){let t=F(e);return t===e?t:($e(t,`iterate`,Qe),Rt(e)?t:t.map(Bt))}function nt(e){return $e(e=F(e),`iterate`,Qe),e}function rt(e,t){return Lt(e)?Vt(It(e)?Bt(t):t):Bt(t)}var it={__proto__:null,[Symbol.iterator](){return at(this,Symbol.iterator,e=>rt(this,e))},concat(...e){return tt(this).concat(...e.map(e=>d(e)?tt(e):e))},entries(){return at(this,`entries`,e=>(e[1]=rt(this,e[1]),e))},every(e,t){return st(this,`every`,e,t,void 0,arguments)},filter(e,t){return st(this,`filter`,e,t,e=>e.map(e=>rt(this,e)),arguments)},find(e,t){return st(this,`find`,e,t,e=>rt(this,e),arguments)},findIndex(e,t){return st(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return st(this,`findLast`,e,t,e=>rt(this,e),arguments)},findLastIndex(e,t){return st(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return st(this,`forEach`,e,t,void 0,arguments)},includes(...e){return lt(this,`includes`,e)},indexOf(...e){return lt(this,`indexOf`,e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return lt(this,`lastIndexOf`,e)},map(e,t){return st(this,`map`,e,t,void 0,arguments)},pop(){return ut(this,`pop`)},push(...e){return ut(this,`push`,e)},reduce(e,...t){return ct(this,`reduce`,e,t)},reduceRight(e,...t){return ct(this,`reduceRight`,e,t)},shift(){return ut(this,`shift`)},some(e,t){return st(this,`some`,e,t,void 0,arguments)},splice(...e){return ut(this,`splice`,e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return ut(this,`unshift`,e)},values(){return at(this,`values`,e=>rt(this,e))}};function at(e,t,n){let r=nt(e),i=r[t]();return r!==e&&!Rt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ot=Array.prototype;function st(e,t,n,r,i,a){let o=nt(e),s=o!==e&&!Rt(e),c=o[t];if(c!==ot[t]){let t=c.apply(e,a);return s?Bt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,rt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function ct(e,t,n,r){let i=nt(e),a=i!==e&&!Rt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=rt(e,t)),n.call(this,t,rt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?rt(e,c):c}function lt(e,t,n){let r=F(e);$e(r,`iterate`,Qe);let i=r[t](...n);return(i===-1||i===!1)&&zt(n[0])?(n[0]=F(n[0]),r[t](...n)):i}function ut(e,t,n=[]){j(),Fe();let r=F(e)[t].apply(e,n);return Ie(),M(),r}var dt=e(`__proto__,__v_isRef,__isVue`),ft=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function pt(e){_(e)||(e=String(e));let t=F(this);return $e(t,`has`,e),t.hasOwnProperty(e)}var N=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?At:kt:i?Ot:Dt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=it[t]))return e;if(t===`hasOwnProperty`)return pt}let o=Reflect.get(e,t,Ht(e)?e:n);if((_(t)?ft.has(t):dt(t))||(r||$e(e,`get`,t),i))return o;if(Ht(o)){let e=a&&re(t)?o:o.value;return r&&v(e)?Pt(e):e}return v(o)?r?Pt(o):Mt(o):o}},mt=class extends N{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&re(t);if(!this._isShallow){let e=Lt(i);if(!Rt(n)&&!Lt(n)&&(i=F(i),n=F(n)),!a&&Ht(i)&&!Ht(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,Ht(e)?e:r);return e===F(r)&&s&&(o?ue(n,i)&&et(e,`set`,t,n,i):et(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&et(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!ft.has(t))&&$e(e,`has`,t),n}ownKeys(e){return $e(e,`iterate`,d(e)?`length`:Xe),Reflect.ownKeys(e)}},ht=class extends N{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},gt=new mt,_t=new ht,P=new mt(!0),vt=e=>e,yt=e=>Reflect.getPrototypeOf(e);function bt(e,t,n){return function(...r){let i=this.__v_raw,a=F(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?vt:t?Vt:Bt;return!t&&$e(a,`iterate`,l?Ze:Xe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function xt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function St(e,t){let n={get(n){let r=this.__v_raw,i=F(r),a=F(n);e||(ue(n,a)&&$e(i,`get`,n),$e(i,`get`,a));let{has:o}=yt(i),s=t?vt:e?Vt:Bt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&$e(F(t),`iterate`,Xe),t.size},has(t){let n=this.__v_raw,r=F(n),i=F(t);return e||(ue(t,i)&&$e(r,`has`,t),$e(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=F(a),s=t?vt:e?Vt:Bt;return!e&&$e(o,`iterate`,Xe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:xt(`add`),set:xt(`set`),delete:xt(`delete`),clear:xt(`clear`)}:{add(e){let n=F(this),r=yt(n),i=F(e),a=!t&&!Rt(e)&&!Lt(e)?i:e;return r.has.call(n,a)||ue(e,a)&&r.has.call(n,e)||ue(i,a)&&r.has.call(n,i)||(n.add(a),et(n,`add`,a,a)),this},set(e,n){!t&&!Rt(n)&&!Lt(n)&&(n=F(n));let r=F(this),{has:i,get:a}=yt(r),o=i.call(r,e);o||=(e=F(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?ue(n,s)&&et(r,`set`,e,n,s):et(r,`add`,e,n),this},delete(e){let t=F(this),{has:n,get:r}=yt(t),i=n.call(t,e);i||=(e=F(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&et(t,`delete`,e,void 0,a),o},clear(){let e=F(this),t=e.size!==0,n=e.clear();return t&&et(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=bt(r,e,t)}),n}function Ct(e,t){let n=St(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var wt={get:Ct(!1,!1)},Tt={get:Ct(!1,!0)},Et={get:Ct(!0,!1)},Dt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=new WeakMap;function jt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Mt(e){return Lt(e)?e:Ft(e,!1,gt,wt,Dt)}function Nt(e){return Ft(e,!1,P,Tt,Ot)}function Pt(e){return Ft(e,!0,_t,Et,kt)}function Ft(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=jt(te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function It(e){return Lt(e)?It(e.__v_raw):!!(e&&e.__v_isReactive)}function Lt(e){return!!(e&&e.__v_isReadonly)}function Rt(e){return!!(e&&e.__v_isShallow)}function zt(e){return e?!!e.__v_raw:!1}function F(e){let t=e&&e.__v_raw;return t?F(t):e}function I(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&fe(e,`__v_skip`,!0),e}var Bt=e=>v(e)?Mt(e):e,Vt=e=>v(e)?Pt(e):e;function Ht(e){return e?e.__v_isRef===!0:!1}function L(e){return Ut(e,!1)}function Ut(e,t){return Ht(e)?e:new R(e,t)}var R=class{constructor(e,t){this.dep=new qe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:F(e),this._value=t?e:Bt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Rt(e)||Lt(e);e=n?e:F(e),ue(e,t)&&(this._rawValue=e,this._value=n?e:Bt(e),this.dep.trigger())}};function z(e){return Ht(e)?e.value:e}var Wt={get:(e,t,n)=>t===`__v_raw`?e:z(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return Ht(i)&&!Ht(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Gt(e){return It(e)?e:new Proxy(e,Wt)}var Kt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new qe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ge-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&O!==this)return k(this,!0),!0}get value(){let e=this.dep.track();return Be(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function qt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Kt(r,i,n)}var Jt={},Yt=new WeakMap,Xt=void 0;function Zt(e,t=!1,n=Xt){if(n){let t=Yt.get(n);t||Yt.set(n,t=[]),t.push(e)}}function Qt(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:Rt(e)||o===!1||o===0?$t(e,1):$t(e),m,g,_,v,y=!1,b=!1;if(Ht(e)?(g=()=>e.value,y=Rt(e)):It(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>It(e)||Rt(e)),g=()=>e.map(e=>{if(Ht(e))return e.value;if(It(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){j();try{_()}finally{M()}}let t=Xt;Xt=m;try{return f?f(e,3,[v]):e(v)}finally{Xt=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>$t(e(),t)}let ee=ke(),te=()=>{m.stop(),ee&&ee.active&&c(ee.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return te(),n}}let ne=b?Array(e.length).fill(Jt):Jt,re=e=>{if(!(!(m.flags&1)||!m.dirty&&!e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>ue(e,ne[t])):ue(t,ne))){_&&_();let e=Xt;Xt=m;try{let e=[t,ne===Jt?void 0:b&&ne[0]===Jt?[]:ne,v];ne=t,f?f(n,3,e):n(...e)}finally{Xt=e}}}else m.run()}};return u&&u(re),m=new je(g),m.scheduler=l?()=>l(re,!1):re,v=e=>Zt(e,!1,m),_=m.onStop=()=>{let e=Yt.get(m);if(e){if(f)f(e,4);else for(let t of e)t();Yt.delete(m)}},n?a?re(!0):ne=m.run():l?l(re.bind(null,!0),!0):m.run(),te.pause=m.pause.bind(m),te.resume=m.resume.bind(m),te.stop=te,te}function $t(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ht(e))$t(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)$t(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{$t(e,t,n)});else if(ne(e)){for(let r in e)$t(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&$t(e[r],t,n)}return e}function en(e,t,n,r){try{return r?e(...r):e()}catch(e){nn(e,t,n)}}function tn(e,t,n,r){if(h(e)){let i=en(e,t,n,r);return i&&y(i)&&i.catch(e=>{nn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(tn(e[a],t,n,r));return i}}function nn(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){j(),en(o,null,10,[e,i,a]),M();return}}rn(e,r,a,i,s)}function rn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var an=[],on=-1,sn=[],cn=null,ln=0,un=Promise.resolve(),dn=null;function fn(e){let t=dn||un;return e?t.then(this?e.bind(this):e):t}function pn(e){let t=on+1,n=an.length;for(;t<n;){let r=t+n>>>1,i=an[r],a=B(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function mn(e){if(!(e.flags&1)){let t=B(e),n=an[an.length-1];!n||!(e.flags&2)&&t>=B(n)?an.push(e):an.splice(pn(t),0,e),e.flags|=1,hn()}}function hn(){dn||=un.then(V)}function gn(e){if(!d(e))cn&&e.id===-1?cn.splice(ln+1,0,e):e.flags&1||(sn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)sn.push(e[t]);hn()}function _n(e,t,n=on+1){for(;n<an.length;n++){let t=an[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;an.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function vn(e){if(sn.length){let e=[...new Set(sn)].sort((e,t)=>B(e)-B(t));if(sn.length=0,cn){for(let t=0;t<e.length;t++)cn.push(e[t]);return}for(cn=e,ln=0;ln<cn.length;ln++){let e=cn[ln];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}cn=null,ln=0}}var B=e=>e.id==null?e.flags&2?-1:1/0:e.id;function V(e){try{for(on=0;on<an.length;on++){let e=an[on];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),en(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;on<an.length;on++){let e=an[on];e&&(e.flags&=-2)}on=-1,an.length=0,vn(e),dn=null,(an.length||sn.length)&&V(e)}}var yn=null,bn=null;function xn(e){let t=yn;return yn=e,bn=e&&e.type.__scopeId||null,t}function Sn(e,t=yn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Fi(-1);let i=xn(t),a=ji.length,o;try{o=e(...n)}finally{for(let e=ji.length;e>a;e--)Ni();xn(i),r._d&&Fi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Cn(e,n){if(yn===null)return e;let r=pa(yn),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(h(a)&&(a={mounted:a,updated:a}),a.deep&&$t(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function wn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(j(),tn(c,n,8,[e.el,s,e,t]),M())}}function Tn(e,t){if($i){let n=$i.provides,r=$i.parent&&$i.parent.provides;r===n&&(n=$i.provides=Object.create(r)),n[e]=t}}function En(e,t,n=!1){let r=ea();if(r||Rr){let i=Rr?Rr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&h(t)?t.call(r&&r.proxy):t}}var Dn=Symbol.for(`v-scx`),On=()=>En(Dn);function kn(e,t,n){return An(e,t,n)}function An(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(oa){if(c===`sync`){let e=On();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=$i;u.call=(e,t,n)=>tn(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{hi(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():mn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=Qt(e,n,u);return oa&&(f?f.push(h):d&&h()),h}function jn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Mn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=ra(this),s=An(i,a.bind(r),n);return o(),s}function Mn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Nn=Symbol(`_vte`),Pn=e=>e.__isTeleport,Fn=Symbol(`_leaveCb`);function In(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==ki){t=n;break}}return t}function Ln(e){if(!Kn(e))return Pn(e.type)&&e.children?In(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function Rn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Rn(Pn(n.type)&&Ln(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zn(e,t){return h(e)?s({name:e.name},t,{setup:e}):e}function Bn(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Vn(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Hn=new WeakMap;function Un(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>Un(e,n&&(d(n)?n[t]:n),r,a,o));return}if(Gn(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Un(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?pa(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=F(v),b=v===t?i:e=>!Vn(_,e)&&u(y,e),ee=(e,t)=>!(t&&Vn(_,t));if(m!=null&&m!==p){if(Wn(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(Ht(m)){let e=n;ee(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))en(p,f,12,[l,_]);else{let t=g(p),n=Ht(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:ee(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];ee(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(ee(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),Hn.delete(e)};t.id=-1,Hn.set(e,t),hi(t,r)}else Wn(e),i()}}}function Wn(e){let t=Hn.get(e);t&&(t.flags|=8,Hn.delete(e))}he().requestIdleCallback,he().cancelIdleCallback;var Gn=e=>!!e.type.__asyncLoader,Kn=e=>e.type.__isKeepAlive;function qn(e,t){Yn(e,`a`,t)}function Jn(e,t){Yn(e,`da`,t)}function Yn(e,t,n=$i){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Zn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Kn(e.parent.vnode)&&Xn(r,t,n,e),e=e.parent}}function Xn(e,t,n,r){let i=Zn(t,e,r,!0);ir(()=>{c(r[t],i)},n)}function Zn(e,t,n=$i,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{j();let i=ra(n),a=tn(t,n,e,r);return i(),M(),a};return r?i.unshift(a):i.push(a),a}}var Qn=e=>(t,n=$i)=>{(!oa||e===`sp`)&&Zn(e,(...e)=>t(...e),n)},$n=Qn(`bm`),er=Qn(`m`),tr=Qn(`bu`),nr=Qn(`u`),rr=Qn(`bum`),ir=Qn(`um`),ar=Qn(`sp`),or=Qn(`rtg`),sr=Qn(`rtc`);function cr(e,t=$i){Zn(`ec`,e,t)}var lr=`components`;function ur(e,t){return pr(lr,e,!0,t)||e}var dr=Symbol.for(`v-ndc`);function fr(e){return g(e)?pr(lr,e,!1)||e:e||dr}function pr(e,t,n=!0,r=!1){let i=yn||$i;if(i){let n=i.type;if(e===lr){let e=ma(n,!1);if(e&&(e===t||e===S(t)||e===ce(S(t))))return n}let a=mr(i[e]||n[e],t)||mr(i.appContext[e],t);return!a&&r?n:a}}function mr(e,t){return e&&(e[t]||e[S(t)]||e[ce(S(t))])}function H(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&It(e),r=!1,s=!1;n&&(r=!Rt(e),s=Lt(e),e=nt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Vt(Bt(e[n])):Bt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(v(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}var hr=e=>e?aa(e)?pa(e):hr(e.parent):null,gr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hr(e.parent),$root:e=>hr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Tr(e),$forceUpdate:e=>e.f||=()=>{mn(e.update)},$nextTick:e=>e.n||=fn.bind(e.proxy),$watch:e=>jn.bind(e)}),_r=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),vr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(_r(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else br&&(s[n]=0)}let d=gr[n],f,p;if(d)return n===`$attrs`&&$e(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return _r(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||_r(n,c)||u(o,c)||u(i,c)||u(gr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function yr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var br=!0;function xr(e){let t=Tr(e),n=e.proxy,i=e.ctx;br=!1,t.beforeCreate&&Cr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:ee,beforeUnmount:te,destroyed:ne,unmounted:re,render:ie,renderTracked:ae,renderTriggered:x,errorCaptured:S,serverPrefetch:oe,expose:se,inheritAttrs:ce,components:le,directives:ue,filters:de}=t;if(u&&Sr(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Mt(t))}if(br=!0,o)for(let e in o){let t=o[e],a=Z({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)wr(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Tn(t,e[t])})}f&&Cr(f,e,`c`);function fe(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(fe($n,p),fe(er,m),fe(tr,g),fe(nr,_),fe(qn,y),fe(Jn,b),fe(cr,S),fe(sr,ae),fe(or,x),fe(rr,te),fe(ir,re),fe(ar,oe),d(se)){if(se.length){let t=e.exposed||={};se.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}ie&&e.render===r&&(e.render=ie),ce!=null&&(e.inheritAttrs=ce),le&&(e.components=le),ue&&(e.directives=ue),oe&&Bn(e)}function Sr(e,t,n=r){d(e)&&(e=Ar(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?En(r.from||n,r.default,!0):En(r.from||n):En(r),Ht(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Cr(e,t,n){tn(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function wr(e,t,n,r){let i=r.includes(`.`)?Mn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&kn(i,n)}else if(h(e))kn(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>wr(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&kn(i,r,e)}}}function Tr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Er(c,e,o,!0)),Er(c,t,o)),v(t)&&a.set(t,c),c}function Er(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Er(e,a,n,!0),i&&i.forEach(t=>Er(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Dr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Dr={data:Or,props:Nr,emits:Nr,methods:Mr,computed:Mr,beforeCreate:jr,created:jr,beforeMount:jr,mounted:jr,beforeUpdate:jr,updated:jr,beforeDestroy:jr,beforeUnmount:jr,destroyed:jr,unmounted:jr,activated:jr,deactivated:jr,errorCaptured:jr,serverPrefetch:jr,components:Mr,directives:Mr,watch:Pr,provide:Or,inject:kr};function Or(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function kr(e,t){return Mr(Ar(e),Ar(t))}function Ar(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function jr(e,t){return e?[...new Set([].concat(e,t))]:t}function Mr(e,t){return e?s(Object.create(null),e,t):t}function Nr(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),yr(e),yr(t??{})):t}function Pr(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=jr(e[r],t[r]);return n}function Fr(){return{app:null,config:{isNativeTag:i,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Ir=0;function Lr(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=Fr(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Ir++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:_a,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||J(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,pa(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(tn(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=Rr;Rr=l;try{return e()}finally{Rr=t}}};return l}}var Rr=null,zr=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${S(t)}Modifiers`]||e[`${se(t)}Modifiers`];function Br(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&zr(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(pe)));let c,l=i[c=le(n)]||i[c=le(S(n))];!l&&o&&(l=i[c=le(se(n))]),l&&tn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,tn(u,e,6,a)}}var Vr=new WeakMap;function Hr(e,t,n=!1){let r=n?Vr:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=Hr(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function Ur(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,se(t))||u(e,t))}function Wr(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=xn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Gi(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=Gi(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:Gr(c)}}catch(t){ji.length=0,nn(t,e,1),v=J(ki)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=Kr(y,a)),b=Ui(b,y,!1,!0))}return n.dirs&&(b=Ui(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Rn(Pn(b.type)&&Ln(b)||b,n.transition),v=b,xn(_),v}var Gr=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},Kr=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qr(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Jr(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Yr(o,r,n)&&!Ur(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Jr(r,o,l):!!o;return!1}function Jr(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(Yr(t,e,a)&&!Ur(n,a))return!0}return!1}function Yr(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!Se(r,i):r!==i}function Xr({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Zr={},Qr=()=>Object.create(Zr),$r=e=>Object.getPrototypeOf(e)===Zr;function ei(e,t,n,r=!1){let i={},a=Qr();e.propsDefaults=Object.create(null),ni(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Nt(i):e.type.props?i:a,e.attrs=a}function ti(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=F(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(Ur(e.emitsOptions,o))continue;let d=t[o];if(c){if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=S(o);i[t]=ri(c,s,t,d,e,!1)}}else d!==a[o]&&(a[o]=d,l=!0)}}}else{ni(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=se(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=ri(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&et(e.attrs,`set`,``)}function ni(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(ie(t))continue;let l=n[t],d;a&&u(a,d=S(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:Ur(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=F(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=ri(a,n,s,i[s],e,!u(i,s))}}return s}function ri(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=ra(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===se(n))&&(r=!0))}return r}var ii=new WeakMap;function ai(e,r,i=!1){let a=i?ii:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=ai(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=S(c[e]);oi(n)&&(l[n]=t)}else if(c)for(let e in c){let t=S(e);if(oi(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function oi(e){return e[0]!==`$`&&!ie(e)}var si=e=>e===`_`||e===`_ctx`||e===`$stable`,ci=e=>d(e)?e.map(Gi):[Gi(e)],li=(e,t,n)=>{if(t._n)return t;let r=Sn((...e)=>ci(t(...e)),n);return r._c=!1,r},ui=(e,t,n)=>{let r=e._ctx;for(let n in e){if(si(n))continue;let i=e[n];if(h(i))t[n]=li(n,i,r);else if(i!=null){let e=ci(i);t[n]=()=>e}}},di=(e,t)=>{let n=ci(t);e.slots.default=()=>n},fi=(e,t,n)=>{for(let r in t)(n||!si(r))&&(e[r]=t[r])},pi=(e,t,n)=>{let r=e.slots=Qr();if(e.vnode.shapeFlag&32){let e=t._;e?(fi(r,t,n),n&&fe(r,`_`,e,!0)):ui(t,r)}else t&&di(e,t)},mi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:fi(a,n,r):(o=!n.$stable,ui(n,a)),s=n}else n&&(di(e,n),s={default:1});if(o)for(let e in a)!si(e)&&s[e]==null&&delete a[e]},hi=Di;function gi(e){return _i(e)}function _i(e,i){let a=he();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ri(e,t)&&(r=Se(e),T(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Oi:y(e,t,n,r);break;case ki:b(e,t,n,r);break;case Ai:e??ee(t,n,r,o);break;case U:le(e,t,n,r,i,a,o,s,c);break;default:d&1?re(e,t,n,r,i,a,o,s,c):d&6?ue(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,D)}u!=null&&i?Un(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Un(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},ee=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},te=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},ne=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},re=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ae(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),oe(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ae=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&S(e.children,d,null,r,i,vi(e,a),s,u),_&&wn(e,null,r,`created`),x(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ie(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Yi(f,r,e)}_&&wn(e,null,r,`beforeMount`);let v=bi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&hi(()=>{try{f&&Yi(f,r,e),v&&g.enter(d),_&&wn(e,null,r,`mounted`)}finally{}},i)},x=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Ei(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;x(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},S=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Ki(e[l]):Gi(e[l]);v(null,c,t,n,r,i,a,o,s)}},oe=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&yi(r,!1),(g=h.onVnodeBeforeUpdate)&&Yi(g,r,n,e),f&&wn(n,e,r,`beforeUpdate`),r&&yi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?se(e.dynamicChildren,d,l,r,i,vi(n,a),o):s||C(e,n,l,null,r,i,vi(n,a),o,!1),u>0){if(u&16)ce(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else!s&&d==null&&ce(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&hi(()=>{g&&Yi(g,r,n,e),f&&wn(n,e,r,`updated`)},i)},se=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===U||!Ri(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},ce=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!ie(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(ie(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},le=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),S(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(se(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&xi(e,t,!0)):C(e,t,n,f,i,a,s,c,l)},ue=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):fe(t,n,r,i,a,o,c):pe(e,t,c)},fe=(e,t,n,r,i,a,o)=>{let s=e.component=Qi(e,r,i);if(Kn(e)&&(s.ctx.renderer=D),sa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,me,o),!e.el){let r=s.subTree=J(ki);b(null,r,t,n),e.placeholder=r.el}}else me(s,e,t,n,i,a,o)},pe=(e,t,n)=>{let r=t.component=e.component;if(qr(e,t,n)){if(r.asyncDep&&!r.asyncResolved){ge(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},me=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Ci(e);if(n){t&&(t.el=c.el,ge(e,t,o)),n.asyncDep.then(()=>{hi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;yi(e,!1),t?(t.el=c.el,ge(e,t,o)):t=c,n&&de(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Yi(d,s,t,c),yi(e,!0);let f=Wr(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),Se(p),e,i,a),t.el=f.el,u===null&&Xr(e,f.el),r&&hi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&hi(()=>Yi(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Gn(t);if(yi(e,!1),l&&de(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Yi(o,d,t),yi(e,!0),s&&Ee){let t=()=>{e.subTree=Wr(e),Ee(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Wr(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&hi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;hi(()=>Yi(o,d,e),i)}(t.shapeFlag&256||d&&Gn(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&hi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new je(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>mn(u),yi(e,!0),l()},ge=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,ti(e,t.props,r,n),mi(e,t.children,n),j(),_n(e),M()},C=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){_e(l,d,n,r,i,a,o,s,c);return}if(f&256){w(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&xe(l,i,a),d!==l&&p(n,d)):u&16?m&16?_e(l,d,n,r,i,a,o,s,c):xe(l,i,a,!0):(u&8&&p(n,``),m&16&&S(d,n,r,i,a,o,s,c))},w=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let n=t[p]=l?Ki(t[p]):Gi(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?xe(e,a,o,!0,!1,f):S(t,r,i,a,o,s,c,l,f)},_e=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?Ki(t[u]):Gi(t[u]);if(Ri(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?Ki(t[p]):Gi(t[p]);if(Ri(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?Ki(t[u]):Gi(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)T(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Ki(t[u]):Gi(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,ee=!1,te=0,ne=Array(b);for(u=0;u<b;u++)ne[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){T(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(ne[_-h]===0&&Ri(n,t[_])){i=_;break}i===void 0?T(n,a,o,!0):(ne[i-h]=u+1,i>=te?te=i:ee=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let re=ee?Si(ne):n;for(_=re.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||Ti(f):i;ne[u]===0?v(null,n,r,p,a,o,s,c,l):ee&&(_<0||u!==re[_]?ve(n,r,p,2):_--)}}},ve=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){ve(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,D);return}if(c===U){o(a,t,n);for(let e=0;e<u.length;e++)ve(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Ai){te(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Fn]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),hi(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Fn];a._isLeaving&&a[Fn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},T=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(j(),Un(s,null,n,e,!0),M()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Gn(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Yi(_,t,e),u&6)be(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&wn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,D,r):l&&!l.hasOnce&&(a!==U||d>0&&d&64)?xe(l,t,n,!1,!0):(a===U&&d&384||!i&&u&16)&&xe(c,t,n),r&&ye(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&hi(()=>{_&&Yi(_,t,e),h&&wn(e,null,t,`unmounted`),v&&(e.el=null)},n)},ye=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===U){E(n,r);return}if(t===Ai){ne(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},E=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},be=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;wi(c),wi(l),r&&de(r),i.stop(),a&&(a.flags|=8,T(o,e,t,n)),s&&hi(s,t),hi(()=>{e.isUnmounted=!0},t)},xe=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)T(e[o],t,n,r,i)},Se=e=>{if(e.shapeFlag&6)return Se(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Nn];return n?h(n):t},Ce=!1,we=(e,t,n)=>{let r;e==null?t._vnode&&(T(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Ce||=(Ce=!0,_n(r),vn(),!1)},D={p:v,um:T,m:ve,r:ye,mt:fe,mc:S,pc:C,pbc:se,n:Se,o:e},Te,Ee;return i&&([Te,Ee]=i(D)),{render:we,hydrate:Te,createApp:Lr(we,Te)}}function vi({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function yi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xi(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Ki(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&xi(t,a)),a.type===Oi&&(a.patchFlag===-1&&(a=i[e]=Ki(a)),a.el=t.el),a.type===ki&&!a.el&&(a.el=t.el)}}function Si(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Ci(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ci(t)}function wi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ti(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Ti(t.subTree):null}var Ei=e=>e.__isSuspense;function Di(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):gn(e)}var U=Symbol.for(`v-fgt`),Oi=Symbol.for(`v-txt`),ki=Symbol.for(`v-cmt`),Ai=Symbol.for(`v-stc`),ji=[],Mi=null;function W(e=!1){ji.push(Mi=e?null:[])}function Ni(){ji.pop(),Mi=ji[ji.length-1]||null}var Pi=1;function Fi(e,t=!1){Pi+=e,e<0&&Mi&&t&&(Mi.hasOnce=!0)}function Ii(e){return e.dynamicChildren=Pi>0?Mi||n:null,Ni(),Pi>0&&Mi&&Mi.push(e),e}function G(e,t,n,r,i,a){return Ii(q(e,t,n,r,i,a,!0))}function K(e,t,n,r,i){return Ii(J(e,t,n,r,i,!0))}function Li(e){return e?e.__v_isVNode===!0:!1}function Ri(e,t){return e.type===t.type&&e.key===t.key}var zi=({key:e})=>e??null,Bi=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||Ht(e)||h(e)?{i:yn,r:e,k:t,f:!!n}:e);function q(e,t=null,n=null,r=0,i=null,a=e===U?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zi(t),ref:t&&Bi(t),scopeId:bn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yn};return s?(qi(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),Pi>0&&!o&&Mi&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Mi.push(c),c}var J=Vi;function Vi(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===dr)&&(e=ki),Li(e)){let r=Ui(e,t,!0);return n&&qi(r,n),Pi>0&&!a&&Mi&&(r.shapeFlag&6?Mi[Mi.indexOf(e)]=r:Mi.push(r)),r.patchFlag=-2,r}if(ha(e)&&(e=e.__vccOpts),t){t=Hi(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=T(e)),v(n)&&(zt(n)&&!d(n)&&(n=s({},n)),t.style=ge(n))}let o=g(e)?1:Ei(e)?128:Pn(e)?64:v(e)?4:h(e)?2:0;return q(e,t,n,r,i,o,a,!0)}function Hi(e){return e?zt(e)||$r(e)?s({},e):e:null}function Ui(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ji(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&zi(l),ref:t&&t.ref?n&&a?d(a)?a.concat(Bi(t)):[a,Bi(t)]:Bi(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==U?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ui(e.ssContent),ssFallback:e.ssFallback&&Ui(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Rn(u,c.clone(u)),u}function Y(e=` `,t=0){return J(Oi,null,e,t)}function Wi(e,t){let n=J(Ai,null,e);return n.staticCount=t,n}function X(e=``,t=!1){return t?(W(),K(ki,null,e)):J(ki,null,e)}function Gi(e){return e==null||typeof e==`boolean`?J(ki):d(e)?J(U,null,e.slice()):Li(e)?Ki(e):J(Oi,null,String(e))}function Ki(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ui(e)}function qi(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),qi(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!$r(t)?t._ctx=yn:r===3&&yn&&(yn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){qi(e,{default:t});return}t={default:t,_ctx:yn},n=32}else t=String(t),r&64?(n=16,t=[Y(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ji(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=T([t.class,r.class]));else if(e===`style`)t.style=ge([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Yi(e,t,n,r=null){tn(e,t,7,[n,r])}var Xi=Fr(),Zi=0;function Qi(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||Xi,o={uid:Zi++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Oe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ai(i,a),emitsOptions:Hr(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=n?n.root:o,o.emit=Br.bind(null,o),e.ce&&e.ce(o),o}var $i=null,ea=()=>$i||yn,ta,na;{let e=he(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ta=t(`__VUE_INSTANCE_SETTERS__`,e=>$i=e),na=t(`__VUE_SSR_SETTERS__`,e=>oa=e)}var ra=e=>{let t=$i;return ta(e),e.scope.on(),()=>{e.scope.off(),ta(t)}},ia=()=>{$i&&$i.scope.off(),ta(null)};function aa(e){return e.vnode.shapeFlag&4}var oa=!1;function sa(e,t=!1,n=!1){t&&na(t);let{props:r,children:i}=e.vnode,a=aa(e);ei(e,r,a,t),pi(e,i,n||t);let o=a?ca(e,t):void 0;return t&&na(!1),o}function ca(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vr);let{setup:r}=n;if(r){j();let n=e.setupContext=r.length>1?fa(e):null,i=ra(e),a=en(r,e,0,[e.props,n]),o=y(a);if(M(),i(),(o||e.sp)&&!Gn(e)&&Bn(e),o){if(a.then(ia,ia),t)return a.then(n=>{na(!0);try{la(e,n,t)}finally{na(!1)}}).catch(t=>{nn(t,e,0)});e.asyncDep=a}else la(e,a,t)}else ua(e,t)}function la(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Gt(t)),ua(e,n)}function ua(e,t,n){let i=e.type;e.render||=i.render||r;{let t=ra(e);j();try{xr(e)}finally{M(),t()}}}var da={get(e,t){return $e(e,`get`,``),e[t]}};function fa(e){return{attrs:new Proxy(e.attrs,da),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function pa(e){return e.exposed?e.exposeProxy||=new Proxy(Gt(I(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gr)return gr[n](e)},has(e,t){return t in e||t in gr}}):e.proxy}function ma(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function ha(e){return h(e)&&`__vccOpts`in e}var Z=(e,t)=>qt(e,t,oa);function ga(e,t,n){try{Fi(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Li(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Li(n)&&(n=[n]),J(e,t,n))}finally{Fi(1)}}var _a=`3.5.41`,va=void 0,ya=typeof window<`u`&&window.trustedTypes;if(ya)try{va=ya.createPolicy(`vue`,{createHTML:e=>e})}catch{}var ba=va?e=>va.createHTML(e):e=>e,xa=`http://www.w3.org/2000/svg`,Sa=`http://www.w3.org/1998/Math/MathML`,Ca=typeof document<`u`?document:null,wa=Ca&&Ca.createElement(`template`),Ta={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Ca.createElementNS(xa,e):t===`mathml`?Ca.createElementNS(Sa,e):n?Ca.createElement(e,{is:n}):Ca.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ca.createTextNode(e),createComment:e=>Ca.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ca.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{wa.innerHTML=ba(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=wa.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ea=Symbol(`_vtc`);function Da(e,t,n){let r=e[Ea];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Oa=Symbol(`_vod`),ka=Symbol(`_vsh`),Aa=Symbol(``),ja=/(?:^|;)\s*display\s*:/;function Ma(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Pa(r,t,``)}else for(let e in t)n[e]??Pa(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Pa(r,i,``):Ra(e,i,!g(t)&&t?t[i]:void 0,o)||Pa(r,i,o)}}else if(i){if(t!==n){let e=r[Aa];e&&(n+=`;`+e),r.cssText=n,a=ja.test(n)}}else t&&e.removeAttribute(`style`);Oa in e&&(e[Oa]=a?r.display:``,e[ka]&&(r.display=`none`))}var Na=/\s*!important$/;function Pa(e,t,n){if(d(n))n.forEach(n=>Pa(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=La(e,t);Na.test(n)?e.setProperty(se(r),n.replace(Na,``),`important`):e[r]=n}}var Fa=[`Webkit`,`Moz`,`ms`],Ia={};function La(e,t){let n=Ia[t];if(n)return n;let r=S(t);if(r!==`filter`&&r in e)return Ia[t]=r;r=ce(r);for(let n=0;n<Fa.length;n++){let i=Fa[n]+r;if(i in e)return Ia[t]=i}return t}function Ra(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var za=`http://www.w3.org/1999/xlink`;function Ba(e,t,n,r,i,a=E(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(za,t.slice(6,t.length)):e.setAttributeNS(za,t,n):n==null||a&&!be(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function Va(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?ba(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=be(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Ha(e,t,n,r){e.addEventListener(t,n,r)}function Ua(e,t,n,r){e.removeEventListener(t,n,r)}var Wa=Symbol(`_vei`);function Ga(e,t,n,r,i=null){let a=e[Wa]||(e[Wa]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Ja(t);r?Ha(e,n,a[t]=Qa(r,i),s):o&&(Ua(e,n,o,s),a[t]=void 0)}}var Ka=/(Once|Passive|Capture)$/,qa=/^on:?(?:Once|Passive|Capture)$/;function Ja(e){let t,n;for(;(n=e.match(Ka))&&!qa.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):se(e.slice(2)),t]}var Ya=0,Xa=Promise.resolve(),Za=()=>Ya||=(Xa.then(()=>Ya=0),Date.now());function Qa(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&tn(e,t,5,a)}}else tn(r,t,5,[e])};return n.value=e,n.attached=Za(),n}var $a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,eo=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Da(e,r,c):t===`style`?Ma(e,n,r):a(t)?o(t)||Ga(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):to(e,t,r,c))?(Va(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ba(e,t,r,c,s,t!==`value`)):e._isVueCE&&(no(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?Va(e,S(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ba(e,t,r,c))};function to(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&$a(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return $a(t)&&g(n)?!1:t in e}function no(e,t){let n=e._def.props;if(!n)return!1;let r=S(t);return Array.isArray(n)?n.some(e=>S(e)===r):Object.keys(n).some(e=>S(e)===r)}var ro=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>de(t,e):t};function io(e){e.target.composing=!0}function ao(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var oo=Symbol(`_assign`),so=Symbol(`_initialValue`);function co(e,t,n){return t&&(e=e.trim()),n&&(e=pe(e)),e}var lo={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[so]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[so]=e.defaultValue.replace(/\r\n?/g,`
|
|
2
|
+
`))),e[oo]=ro(i);let a=r||i.props&&i.props.type===`number`;Ha(e,t?`change`:`input`,t=>{t.target.composing||e[oo](co(e.value,n,a))}),(n||a)&&Ha(e,`change`,()=>{e.value=co(e.value,n,a)}),t||(Ha(e,`compositionstart`,io),Ha(e,`compositionend`,ao),Ha(e,`change`,ao))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[so];delete e[so],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[oo](co(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[oo]=ro(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?pe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},uo={deep:!0,created(e,t,n){e[oo]=ro(n),Ha(e,`change`,()=>{let t=e._modelValue,n=ho(e),r=e.checked,i=e[oo];if(d(t)){let e=Ce(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(go(e,r))})},mounted:fo,beforeUpdate(e,t,n){e[oo]=ro(n),fo(e,t,n)}};function fo(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=Ce(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=Se(t,go(e,!0))}e.checked!==i&&(e.checked=i)}var po={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Ha(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?pe(ho(e)):ho(e));e[oo](e.multiple?p(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,fn(()=>{e._assigning=!1})}),e[oo]=ro(r)},mounted(e,{value:t}){mo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[oo]=ro(n)},updated(e,{value:t}){e._assigning||mo(e,t)}};function mo(e,t){let n=e.multiple,r=d(t);if(!(n&&!r&&!p(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=ho(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):Ce(t,o)>-1}else a.selected=t.has(o)}else if(Se(ho(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ho(e){return`_value`in e?e._value:e.value}function go(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var _o=[`ctrl`,`shift`,`alt`,`meta`],vo={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>_o.some(n=>e[`${n}Key`]&&!t.includes(n))},yo=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=vo[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},bo={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},xo=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=se(n.key);if(t.some(e=>e===r||bo[e]===r))return e(n)}))},So=s({patchProp:eo},Ta),Co;function wo(){return Co||=gi(So)}var To=((...e)=>{let t=wo().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Do(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Eo(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Eo(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Do(e){return g(e)?document.querySelector(e):e}var Oo=e=>e===``,ko=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ao=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),jo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Mo=e=>{let t=jo(e);return t.charAt(0).toUpperCase()+t.slice(1)},No={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Po=Symbol(`lucide-icons`);function Fo(){return En(Po,{})}var Io=({name:e,iconNode:t,"icon-node":n,absoluteStrokeWidth:r,"absolute-stroke-width":i,strokeWidth:a,"stroke-width":o,size:s,color:c,...l},{slots:u})=>{let{size:d,color:f,strokeWidth:p=2,absoluteStrokeWidth:m=!1,class:h=``}=Fo(),g=Z(()=>{let e=Oo(r)||Oo(i)||r===!0||i===!0||m===!0,t=a||o||p||No[`stroke-width`];return e?Number(t)*24/Number(s??d??No.width):t});return ga(`svg`,{...No,...l,width:s??d??No.width,height:s??d??No.height,stroke:c??f??No.stroke,"stroke-width":g.value,class:ko(`lucide`,h,...e?[`lucide-${Ao(Mo(e))}-icon`,`lucide-${Ao(e)}`]:[`lucide-icon`])},[...(t??n??[]).map(e=>ga(...e)),...u.default?[u.default()]:[]])},Q=(e,t)=>(n,{slots:r,attrs:i})=>ga(Io,{...i,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0),Lo=Q(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),Ro=Q(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),zo=Q(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Bo=Q(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),Vo=Q(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ho=Q(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Uo=Q(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Wo=Q(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Go=Q(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ko=Q(`circle-minus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),qo=Q(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Jo=Q(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),Yo=Q(`corner-down-right`,[[`path`,{d:`m15 10 5 5-5 5`,key:`qqa56n`}],[`path`,{d:`M4 4v7a4 4 0 0 0 4 4h12`,key:`z08zvw`}]]),Xo=Q(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),Zo=Q(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),Qo=Q(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),$o=Q(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),es=Q(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]),ts=Q(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),ns=Q(`git-fork`,[[`circle`,{cx:`12`,cy:`18`,r:`3`,key:`1mpf1b`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`path`,{d:`M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9`,key:`1uq4wg`}],[`path`,{d:`M12 12v3`,key:`158kv8`}]]),rs=Q(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),is=Q(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),as=Q(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),os=Q(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),ss=Q(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),cs=Q(`notebook-pen`,[[`path`,{d:`M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4`,key:`re6nr2`}],[`path`,{d:`M2 6h4`,key:`aawbzj`}],[`path`,{d:`M2 10h4`,key:`l0bgd4`}],[`path`,{d:`M2 14h4`,key:`1gsvsf`}],[`path`,{d:`M2 18h4`,key:`1bu2t1`}],[`path`,{d:`M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z`,key:`pqwjuv`}]]),ls=Q(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),us=Q(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),ds=Q(`panel-left-open`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m14 9 3 3-3 3`,key:`8010ee`}]]),fs=Q(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),ps=Q(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),ms=Q(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),hs=Q(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),gs=Q(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),_s=Q(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),vs=Q(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ys=Q(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),bs=Q(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),xs=Q(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),Ss=Q(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Cs=Q(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function ws(e){return e.trim()?e.split(/^diff --git /m).slice(1).map(e=>{let t=e.split(`
|
|
3
|
+
`),n=t.find(e=>e.startsWith(`+++ b/`))?.slice(6),r=t[0]?.match(/ b\/(.+)$/)?.[1],i=n&&n!==`/dev/null`?n:r??`unknown file`,a=0,o=0;return{path:i,lines:t.slice(1).map(e=>{let t=e.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);return t?(a=Number(t[1]),o=Number(t[2]),{kind:`hunk`,text:e,oldLine:null,newLine:null}):e.startsWith(`+`)&&!e.startsWith(`+++`)?{kind:`add`,text:e.slice(1),oldLine:null,newLine:o++}:e.startsWith(`-`)&&!e.startsWith(`---`)?{kind:`delete`,text:e.slice(1),oldLine:a++,newLine:null}:e.startsWith(` `)?{kind:`context`,text:e.slice(1),oldLine:a++,newLine:o++}:{kind:`meta`,text:e,oldLine:null,newLine:null}})}}):[]}var Ts=new Set(`abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for goto if implements import instanceof int interface long native new package private protected public record return sealed short static strictfp super switch synchronized this throw throws transient try var void volatile while yield`.split(` `)),Es=new Set(`as async await break case catch class const continue debugger declare default delete do else enum export extends false finally for from function get if implements import in infer instanceof interface keyof let namespace new null of package private protected public readonly return satisfies set static super switch this throw true try type typeof undefined unknown var void while with yield`.split(` `)),Ds=new Set([`true`,`false`,`null`,`undefined`]),Os=new Set([`auto`,`currentcolor`,`inherit`,`initial`,`none`,`revert`,`transparent`,`unset`,`important`]);function ks(e){let t=e.toLowerCase();return t.endsWith(`.java`)?`java`:/\.[cm]?[jt]sx?$/.test(t)?`typescript`:/\.(json|jsonl)$/.test(t)?`json`:/\.(css|scss|sass|less)$/.test(t)?`css`:/\.(xml|html|vue|pom)$/.test(t)||t.endsWith(`pom.xml`)?`markup`:/\.(ya?ml|properties|toml)$/.test(t)?`config`:/\.(sh|bash|zsh)$/.test(t)?`shell`:`plain`}function As(e){if(/^\s*\*/.test(e)||!e.includes(`/*`)&&e.includes(`*/`))return[{text:e,kind:`comment`}];let t=[],n=0;for(;n<e.length;){let r=e.slice(n);if(r.startsWith(`/*`)){let e=r.indexOf(`*/`,2),i=e<0?r:r.slice(0,e+2);$(t,i,`comment`),n+=i.length;continue}let i=r.match(/^\s+/)?.[0];if(i){$(t,i),n+=i.length;continue}let a=r.match(/^(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/)?.[0];if(a){$(t,a,`string`),n+=a.length;continue}let o=r.match(/^@[A-Za-z-]+/)?.[0];if(o){$(t,o,`keyword`),n+=o.length;continue}let s=r.match(/^#[\da-f]{3,8}\b/i)?.[0];if(s){$(t,s,`literal`),n+=s.length;continue}let c=r.match(/^--[A-Za-z_][\w-]*/)?.[0];if(c){$(t,c,`literal`),n+=c.length;continue}let l=r.match(/^-?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:%|[a-z]+)?/i)?.[0];if(l){$(t,l,`number`),n+=l.length;continue}let u=r.match(/^-?[A-Za-z_][\w-]*/)?.[0];if(u){let r=e.slice(0,n),i=Math.max(r.lastIndexOf(`{`),r.lastIndexOf(`;`))>=r.lastIndexOf(`}`)||/^\s*$/.test(r),a=/^\s*:/.test(e.slice(n+u.length)),o=!e.slice(0,n).includes(`{`)&&e.slice(n).includes(`{`);$(t,u,i&&a?`property`:Os.has(u.toLowerCase())?`literal`:o?`tag`:`plain`),n+=u.length;continue}let d=r.match(/^[.#][A-Za-z_][\w-]*/)?.[0];if(d){$(t,d,`tag`),n+=d.length;continue}let f=r.match(/^(?:[{}[\]():;,>+~=*!/]|\|=|\^=|\$=)+/)?.[0];if(f){$(t,f,`operator`),n+=f.length;continue}$(t,e[n]),n++}return t}function $(e,t,n=`plain`){if(!t)return;let r=e.at(-1);r?.kind===n?r.text+=t:e.push({text:t,kind:n})}function js(e){let t=[],n=0;for(;n<e.length;){if(e.startsWith(`<!--`,n)){$(t,e.slice(n),`comment`);break}let r=e.slice(n).match(/^<\/?[A-Za-z_:][\w:.-]*/)?.[0];if(r){$(t,r,`tag`),n+=r.length;continue}let i=e.slice(n).match(/^\/?>/)?.[0];if(i){$(t,i,`tag`),n+=i.length;continue}let a=e.slice(n).match(/^(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/)?.[0];if(a){$(t,a,`string`),n+=a.length;continue}let o=e.slice(n).match(/^[A-Za-z_:][\w:.-]*(?=\s*=)/)?.[0];if(o){$(t,o,`attribute`),n+=o.length;continue}let s=e.slice(n).match(/^&(?:[A-Za-z]+|#\d+);/)?.[0];if(s){$(t,s,`literal`),n+=s.length;continue}$(t,e[n]),n++}return t}function Ms(e,t=``){let n=ks(t);if(!e)return[{text:` `,kind:`plain`}];if(n===`markup`)return js(e);if(n===`css`)return As(e);if(n===`plain`)return[{text:e,kind:`plain`}];let r=n===`java`?Ts:Es,i=[],a=0;for(;a<e.length;){let t=e.slice(a);if(t.startsWith(`//`)||(n===`config`||n===`shell`)&&t.startsWith(`#`)){$(i,t,`comment`);break}if(t.startsWith(`/*`)){let e=t.indexOf(`*/`,2),n=e<0?t:t.slice(0,e+2);$(i,n,`comment`),a+=n.length;continue}let o=t.match(/^\s+/)?.[0];if(o){$(i,o),a+=o.length;continue}let s=t.match(/^(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`)/)?.[0];if(s){$(i,s,`string`),a+=s.length;continue}let c=t.match(/^@[A-Za-z_$][\w$]*/)?.[0];if(c){$(i,c,`annotation`),a+=c.length;continue}let l=t.match(/^(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)[lLdDfF]?/i)?.[0];if(l){$(i,l,`number`),a+=l.length;continue}let u=t.match(/^[A-Za-z_$][\w$-]*/)?.[0];if(u){let t=e.slice(a+u.length);$(i,u,Ds.has(u)?`literal`:r.has(u)?`keyword`:n===`json`&&/^\s*:/.test(t)||n===`config`&&/^\s*[:=]/.test(t)?`property`:/^[A-Z]/.test(u)&&(n===`java`||n===`typescript`)?`type`:`plain`),a+=u.length;continue}let d=t.match(/^(?:===|!==|=>|::|->|==|!=|<=|>=|&&|\|\||\?\?|\+\+|--|[+\-*/%=<>!&|?:]+)/)?.[0];if(d){$(i,d,`operator`),a+=d.length;continue}$(i,e[a]),a++}return i}function Ns(e=``){let t=e.replace(/\r/g,``).trim().split(`
|
|
4
|
+
`),n=[],r=[],i=()=>{let e=r.join(` `).trim();e&&n.push({type:`paragraph`,text:e}),r=[]};for(let e=0;e<t.length;e++){let a=t[e],o=a.match(/^\s*```([^\s`]*)\s*$/);if(o){i();let r=[];for(e++;e<t.length&&!/^\s*```\s*$/.test(t[e]);)r.push(t[e]),e++;n.push({type:`code`,language:o[1].toLowerCase(),lines:r});continue}if(!a.trim()){i();continue}let s=a.match(/^\s*(#{1,6})\s+(.+)$/);if(s){i(),n.push({type:`heading`,level:s[1].length,text:s[2]});continue}if(/^\s*(?:---+|___+|\*\*\*+)\s*$/.test(a)){i(),n.push({type:`rule`});continue}let c=a.match(/^\s*>\s?(.*)$/);if(c){i();let r=[c[1]];for(;e+1<t.length;){let n=t[e+1].match(/^\s*>\s?(.*)$/);if(!n)break;r.push(n[1]),e++}n.push({type:`quote`,text:r.join(` `)});continue}let l=a.match(/^\s*[-*+]\s+(.+)$/),u=a.match(/^\s*\d+[.)]\s+(.+)$/);if(l||u){i();let r=!!u,a=[(u??l)[1]];for(;e+1<t.length;){let n=t[e+1].match(r?/^\s*\d+[.)]\s+(.+)$/:/^\s*[-*+]\s+(.+)$/);if(!n)break;a.push(n[1]),e++}n.push({type:`list`,ordered:r,items:a});continue}r.push(a.trim())}return i(),n}function Ps(e){return e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replaceAll(`"`,`"`).replaceAll(`'`,`'`)}function Fs(e){let t=[],n=Ps(e).replace(/`([^`]+)`/g,(e,n)=>{let r=`\u0000CODE${t.length}\u0000`;return t.push(`<code>${n}</code>`),r});return n=n.replace(/\*\*([^*]+)\*\*/g,`<strong>$1</strong>`).replace(/__([^_]+)__/g,`<strong>$1</strong>`).replace(/(?<!\*)\*([^*]+)\*(?!\*)/g,`<em>$1</em>`).replace(/_([^_]+)_/g,`<em>$1</em>`),n.replace(/\u0000CODE(\d+)\u0000/g,(e,n)=>t[Number(n)])}function Is(e){return{bash:`snippet.sh`,shell:`snippet.sh`,sh:`snippet.sh`,zsh:`snippet.sh`,js:`snippet.js`,javascript:`snippet.js`,jsx:`snippet.jsx`,ts:`snippet.ts`,typescript:`snippet.ts`,tsx:`snippet.tsx`,java:`Snippet.java`,css:`snippet.css`,scss:`snippet.scss`,sass:`snippet.sass`,less:`snippet.less`,json:`snippet.json`,html:`snippet.html`,xml:`snippet.xml`,vue:`snippet.vue`,yaml:`snippet.yml`,yml:`snippet.yml`,toml:`snippet.toml`,properties:`snippet.properties`}[e]??`snippet.${e||`txt`}`}var Ls={class:`agent-markdown`},Rs=[`innerHTML`],zs=[`innerHTML`],Bs={key:3},Vs=[`innerHTML`],Hs={key:5,class:`agent-code-block`},Us={key:0},Ws={tabindex:`0`},Gs={class:`agent-code-line-number`,"aria-hidden":`true`},Ks=zn({__name:`AgentMarkdown`,props:{source:{}},setup(e){let t=e,n=Z(()=>Ns(t.source));return(e,t)=>(W(),G(`div`,Ls,[(W(!0),G(U,null,H(n.value,(e,t)=>(W(),G(U,{key:t},[e.type===`heading`?(W(),K(fr(`h${Math.min(e.level+2,6)}`),{key:0,innerHTML:z(Fs)(e.text)},null,8,[`innerHTML`])):e.type===`paragraph`?(W(),G(`p`,{key:1,innerHTML:z(Fs)(e.text)},null,8,Rs)):e.type===`quote`?(W(),G(`blockquote`,{key:2,innerHTML:z(Fs)(e.text)},null,8,zs)):e.type===`rule`?(W(),G(`hr`,Bs)):e.type===`list`?(W(),K(fr(e.ordered?`ol`:`ul`),{key:4},{default:Sn(()=>[(W(!0),G(U,null,H(e.items,(e,t)=>(W(),G(`li`,{key:t,innerHTML:z(Fs)(e)},null,8,Vs))),128))]),_:2},1024)):e.type===`code`?(W(),G(`figure`,Hs,[e.language?(W(),G(`figcaption`,Us,D(e.language),1)):X(``,!0),q(`pre`,Ws,[q(`code`,null,[(W(!0),G(U,null,H(e.lines,(t,n)=>(W(),G(`span`,{key:n,class:`agent-code-line`},[q(`span`,Gs,D(n+1),1),q(`span`,null,[(W(!0),G(U,null,H(z(Ms)(t,z(Is)(e.language)),(e,t)=>(W(),G(`span`,{key:t,class:T(`syntax-${e.kind}`)},D(e.text),3))),128))])]))),128))])])])):X(``,!0)],64))),128))]))}}),qs=[`aria-expanded`],Js=[`aria-current`,`title`],Ys={key:0,class:`changed-dot`,title:`Has captured changes`},Xs={key:2},Zs=zn({__name:`RepoTreeNode`,props:{node:{},selectedPath:{},depth:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=L((n.depth??0)<2);return(t,n)=>{let a=ur(`RepoTreeNode`,!0);return W(),G(`li`,{class:T([`repo-tree-node`,e.node.type])},[e.node.type===`directory`?(W(),G(`button`,{key:0,class:`tree-directory`,"aria-expanded":i.value,onClick:n[0]||=e=>i.value=!i.value},[q(`span`,null,D(i.value?`▾`:`▸`),1),n[3]||=q(`i`,null,`▰`,-1),q(`strong`,null,D(e.node.name),1),q(`small`,null,D(e.node.children.length),1)],8,qs)):(W(),G(`button`,{key:1,class:T([`tree-file`,{selected:e.selectedPath===e.node.path}]),"aria-current":e.selectedPath===e.node.path?`true`:void 0,title:e.node.path,onClick:n[1]||=t=>r(`select`,e.node.path)},[n[4]||=q(`span`,null,`‹›`,-1),q(`strong`,null,D(e.node.name),1),e.node.changed?(W(),G(`i`,Ys)):X(``,!0),q(`em`,{class:T(e.node.score===null?`unknown`:e.node.score<1.67?`danger`:e.node.score<2.5?`warning`:`good`)},D(e.node.score===null?`—`:e.node.score.toFixed(1)),3)],10,Js)),e.node.type===`directory`&&i.value?(W(),G(`ul`,Xs,[(W(!0),G(U,null,H(e.node.children,t=>(W(),K(a,{key:t.path,node:t,"selected-path":e.selectedPath,depth:(e.depth??0)+1,onSelect:n[2]||=e=>r(`select`,e)},null,8,[`node`,`selected-path`,`depth`]))),128))])):X(``,!0)],2)}}}),Qs={class:`window`,"aria-label":`Aperta comprehension dashboard`},$s={class:`titlebar`},ec={class:`toolbar`},tc={class:`history-controls`,role:`group`,"aria-label":`View history`},nc=[`disabled`],rc=[`disabled`],ic={class:`repo-pill project-picker`},ac=[`value`],oc={key:0,value:``},sc=[`value`,`disabled`],cc={class:`theme-switch`,"aria-label":`Appearance`},lc={key:0,class:`error-panel`},uc={key:1,class:`loading-panel`},dc={key:2,class:`initialization-banner`,role:`status`,"aria-live":`polite`},fc={key:0},pc=[`disabled`],mc={class:`sidebar`,"aria-label":`Primary navigation`},hc={class:`sidebar-head`},gc=[`aria-label`,`title`],_c={class:`sidebar-nav`},vc=[`aria-current`],yc={key:0},bc=[`aria-current`],xc={key:0},Sc=[`aria-current`],Cc=[`aria-current`],wc={key:0,class:`alert-count`},Tc=[`aria-current`],Ec={key:0,class:`attention-count`},Dc=[`aria-current`],Oc=[`aria-current`],kc={key:0,class:`attention-count`},Ac=[`aria-current`],jc=[`aria-current`],Mc=[`aria-current`],Nc={key:0,class:`attention-count`},Pc={class:`sidebar-context`},Fc=[`title`,`aria-label`],Ic=[`aria-current`],Lc={class:`repository-tree`,"aria-label":`Repository tree`},Rc={key:0,class:`tree-empty`},zc={class:`file-comprehension`},Bc={key:0,class:`file-context-bar`},Vc={class:`file-context-identity`},Hc={class:`file-context-facts`},Uc={class:`primary-fact`},Wc={key:1,class:`file-actions`},Gc=[`onClick`],Kc={key:2,class:`source-message`},qc={key:3,class:`source-message error`},Jc={key:4,class:`source-message`},Yc=[`aria-label`],Xc={class:`source-line-number`},Zc={class:`source-code`},Qc={key:0},$c={key:6,class:`source-message`},el={class:`section-head`},tl={class:`count-badge`},nl={class:`queue-list`},rl=[`datetime`,`title`],il={key:0,class:`queue-superseded`},al={key:1,class:`queue-skipped`},ol={class:`queue-actions`},sl=[`disabled`,`onClick`],cl=[`disabled`,`onClick`],ll={key:0,class:`empty-state`},ul={class:`section-head`},dl={class:`count-badge`},fl={class:`queue-list learn-list`},pl=[`disabled`,`onClick`],ml={key:0,class:`empty-state`},hl={class:`section-head impact-head`},gl=[`value`],_l={key:0,class:`impact-loading`},vl={key:1,class:`impact-shell`},yl={class:`impact-story`},bl={class:`eyebrow`},xl={class:`trust-kernel`,"aria-label":`Analysis capability and evidence coverage`},Sl={class:`capability-grid`},Cl={class:`capability-icon`,"aria-hidden":`true`},wl={class:`impact-metrics`},Tl={class:`proof-orb`},El={class:`proof-plan`},Dl={class:`eyebrow`},Ol={class:`proof-actions`},kl=[`disabled`],Al={key:0,class:`proof-error`},jl={key:1,class:`proof-result`},Ml={key:2,class:`proof-output`},Nl={key:1,class:`probe-lab`},Pl={class:`probe-grid`},Fl=[`onClick`],Il={class:`probe-state`},Ll={key:0,class:`probe-inspector`},Rl={class:`probe-copy`},zl=[`disabled`],Bl={class:`probe-code`},Vl={key:0,class:`probe-console`},Hl={key:1,class:`highlighted-source`},Ul={class:`source-line-number`},Wl={class:`source-code`},Gl={key:1,class:`proof-error`},Kl={class:`impact-canvas`},ql={class:`impact-lane`},Jl=[`onClick`],Yl={class:`impact-node-kind`},Xl={key:0,class:`lane-empty`},Zl={class:`impact-arrow`,"aria-hidden":`true`},Ql={class:`impact-lane`},$l=[`onClick`],eu={class:`impact-node-kind`},tu={key:0,class:`lane-empty`},nu={class:`impact-arrow`,"aria-hidden":`true`},ru={class:`impact-lane evidence`},iu=[`onClick`],au={class:`impact-node-kind`},ou={class:`unproven-label`},su={key:2,class:`impact-inspector`},cu={class:`evidence-detail`},lu=[`onClick`],uu=[`title`],du={key:0},fu={key:3,class:`stale-notes`},pu={key:2,class:`empty-state`},mu={class:`section-head proof-graph-head`},hu=[`disabled`],gu={key:0,class:`settings-error`},_u={key:1,class:`loading-panel`},vu={key:2,class:`repository-proof-graph`},yu={class:`proof-graph-summary`,"aria-label":`Repository proof coverage`},bu={class:`proven`},xu={class:`understood`},Su={class:`stale`},Cu={class:`proof-graph-toolbar`,role:`group`,"aria-label":`Filter proof claims`},wu=[`onClick`],Tu={key:0,class:`proof-claim-list`},Eu={class:`eyebrow`},Du={class:`proof-claim-files`},Ou=[`onClick`],ku={key:0},Au={key:0,class:`proof-invalidation`},ju={key:1,class:`proof-evidence-list`},Mu={key:0},Nu={key:1,class:`empty-state`},Pu={class:`section-head journal-head`},Fu={class:`journal-list`},Iu=[`onClick`],Lu={class:`journal-meta`},Ru={class:`journal-files`},zu={key:0,class:`empty-state`},Bu={class:`section-head git-head`},Vu=[`disabled`],Hu={key:0,class:`settings-error`},Uu={key:1,class:`loading-panel`},Wu={key:2,class:`git-board`},Gu=[`onClick`],Ku={key:0,class:`git-group-empty`},qu={class:`section-head`},Ju={class:`activity-list`},Yu={class:`activity-glyph`},Xu=[`onClick`],Zu={key:0,class:`empty-state`},Qu={class:`section-head harness-head`},$u=[`disabled`],ed={key:0,class:`settings-error`},td={key:1,class:`loading-panel`},nd={key:2,class:`harness-health`},rd={class:`harness-signals`,"aria-label":`Harness regression signals`},id={class:`harness-metrics`,"aria-label":`Harness metrics`},ad={class:`harness-grid`},od={class:`harness-panel model-performance`},sd={class:`health-table`,role:`table`,"aria-label":`Model harness performance`},cd={key:0,class:`harness-empty`},ld={class:`harness-panel tool-health`},ud={key:0,class:`harness-empty`},dd={class:`harness-panel error-taxonomy`},fd={key:0,class:`error-chips`},pd={key:1,class:`harness-empty`},md={class:`harness-panel recent-health`},hd={class:`run-signals`},gd={key:0},_d={key:1},vd={key:2},yd={class:`harness-privacy`},bd={key:0,class:`settings-error`},xd={class:`agent-ide-main`},Sd={class:`agent-ide-toolbar`},Cd={class:`agent-toolbar-actions`},wd={key:0,class:`agent-review`},Td={class:`agent-run-summary`},Ed={key:0},Dd={class:`agent-run-engine`},Od={class:`agent-mode-tabs`,role:`tablist`,"aria-label":`Agent run review`},kd=[`aria-selected`],Ad=[`aria-selected`],jd=[`aria-selected`],Md={key:0},Nd=[`aria-selected`],Pd=[`aria-selected`],Fd={key:0,class:`understanding-brief`},Id={key:0,class:`understanding-grid`},Ld={class:`understanding-questions`},Rd=[`onUpdate:modelValue`,`placeholder`],zd=[`disabled`],Bd={key:1,class:`agent-contract`},Vd={class:`eyebrow`},Hd={class:`skill-contract-banner`,"aria-label":`Selected Aperta skill`},Ud={class:`skill-contract-mark`},Wd={class:`eyebrow`},Gd={class:`skill-contract-details`},Kd={class:`contract-grid`},qd={class:`contract-plan`},Jd={key:0},Yd={class:`contract-evidence`},Xd={key:0},Zd={class:`contract-critique`},Qd={key:0,class:`pending`},$d={class:`agent-review-tabs`},ef=[`title`,`onClick`],tf={key:0,class:`agent-patch semantic-diff wrap`,"aria-label":`Agent patch preview`},nf={class:`gutter old`},rf={class:`gutter new`},af={class:`marker`},of={key:1,class:`agent-no-change`},sf={class:`agent-no-change-icon`},cf={key:0,class:`proof-loop-evidence`,"aria-label":`Harness capability evidence`},lf={key:2,class:`source-message`},uf={key:3,class:`agent-checks`},df={key:0,class:`verification-attempt baseline`},ff=[`open`],pf={key:1,class:`checks-empty`},mf={key:0,class:`agent-response-card`},hf={class:`agent-response-head`},gf={key:0},_f={key:0},vf={key:1},yf={key:2,class:`activity-command`},bf=[`open`],xf={key:1,class:`activity-live`,"aria-live":`polite`},Sf={key:2,class:`checks-empty`},Cf={class:`promotion-copy`},wf={class:`promotion-icon`,"aria-hidden":`true`},Tf={class:`promotion-actions`},Ef=[`disabled`],Df={key:6,class:`promotion-complete`},Of={key:7,class:`verification-blocked`},kf={key:1,class:`agent-review agent-welcome`},Af={class:`agent-welcome-mark`},jf={key:1,class:`agent-sidepane`,"aria-label":`Agent controls`},Mf={class:`agent-orb`},Nf={class:`agent-run-picker agent-conversation-picker`},Pf=[`disabled`],Ff=[`value`,`disabled`],If={key:0,value:``},Lf={key:1,value:``},Rf=[`value`],zf={class:`agent-side-activity agent-thread`},Bf={key:0},Vf={key:0},Hf=[`onClick`],Uf={key:1,class:`agent-side-empty`},Wf={key:2,class:`agent-side-live`},Gf={class:`agent-side-composer`},Kf={class:`agent-suggestions`,"aria-label":`Example agent tasks`},qf=[`placeholder`,`onKeydown`],Jf=[`title`],Yf=[`disabled`],Xf={class:`section-head`},Zf={class:`settings-head-actions`},Qf={class:`engine-badge`},$f={key:0,class:`settings-error`},ep={class:`runtime-settings`,"aria-labelledby":`agent-runtime-title`},tp={class:`runtime-active`},np={class:`runtime-options`},rp=[`aria-pressed`,`onClick`],ip={class:`runtime-mark`},ap={class:`engine-ownership-boundary`},op={key:0},sp={key:1},cp={key:0,class:`cursor-runtime-config`},lp=[`placeholder`],up={key:0,class:`runtime-install-note`},dp=[`disabled`],fp={class:`intelligence-routing`,"aria-labelledby":`intelligence-routing-title`},pp={class:`settings-layout`},mp={class:`profile-list`},hp={class:`profile-provider`},gp={class:`profile-capabilities`},_p={key:0},vp={class:`profile-actions`},yp=[`onClick`,`disabled`],bp=[`onClick`],xp=[`onClick`],Sp={key:0,class:`empty-state`},Cp={class:`provider-catalog`,role:`list`,"aria-label":`Model providers`},wp=[`aria-pressed`,`onClick`],Tp={key:0,class:`selected-provider-note`},Ep={key:1},Dp=[`value`],Op={key:2},kp=[`placeholder`],Ap={key:3},jp={key:4,class:`settings-error provider-inline-error`,role:`alert`},Mp=[`disabled`],Np={class:`privacy-boundary`},Pp={key:6,class:`verification-required`},Fp=[`disabled`],Ip={key:4,class:`review-overlay`,role:`dialog`,"aria-modal":`true`,"aria-label":`Ownership session`},Lp={class:`review-window`},Rp={class:`review-header`},zp={class:`learning-steps`,"aria-label":`Learning path`},Bp={class:`review-head-actions`},Vp={key:0},Hp={key:0,class:`review-error`},Up={key:1,class:`review-loading`},Wp={key:2,class:`completion-panel`},Gp={class:`confidence-delta`},Kp={class:`change-navigator`},qp={class:`change-summary`},Jp={class:`story-card`},Yp={key:0,class:`intent-card`},Xp={class:`story-facts`},Zp={class:`fact-values`},Qp=[`aria-label`,`title`],$p={key:0},em={class:`fact-values`},tm=[`aria-label`,`title`],nm=[`title`,`aria-label`,`onClick`],rm={"aria-hidden":`true`},im={class:`signal-list compact`},am={key:0},om=[`aria-valuenow`],sm={class:`evidence-pane diff-workspace`},cm={class:`diff-toolbar`},lm={class:`file-stepper`},um={key:0},dm={class:`diff-options`},fm={class:`gutter old`},pm={class:`gutter new`},mm={class:`marker`},hm={key:1,class:`split-row`},gm={class:`gutter`},_m={class:`marker`},vm={class:`gutter`},ym={class:`marker`},bm={key:2,class:`missing-evidence`},xm=[`aria-valuenow`],Sm={class:`reflection-pane learning-inspector`},Cm={class:`starting-confidence`},wm={key:0,class:`prior-notes`},Tm={key:1,class:`prior-evidence`},Em={class:`coach-card`,"aria-label":`Aperta Coach`},Dm={key:0},Om={key:1},km={class:`coach-focus`},Am={key:0},jm=[`disabled`],Mm={key:1,class:`coach-disabled`},Nm={key:2,class:`coach-error`},Pm={class:`evidence-questions`},Fm=[`onClick`],Im=[`for`],Lm={key:0,class:`question-rationale`},Rm=[`id`,`onUpdate:modelValue`],zm={class:`confidence-picker`},Bm=[`disabled`,`title`,`onClick`],Vm=[`disabled`],Hm={class:`statusbar`};To(zn({__name:`App`,setup(e){let t=L(null),n=L(``),r=L(!1),i=L(``),a=L(`map`),o=L([`map`]),s=L(0),c=L(!1),l=Z(()=>s.value>0),u=Z(()=>s.value<o.value.length-1);kn(a,e=>{if(c.value){c.value=!1;return}o.value[s.value]!==e&&(o.value=[...o.value.slice(0,s.value+1),e].slice(-50),s.value=o.value.length-1)});let d=L(``),f=localStorage.getItem(`aperta-theme`),p=L(f===`plain`||f===`snow`||f===`panther`?f:`panther`),m=L(localStorage.getItem(`aperta-sidebar-collapsed`)===`true`),h=L(null),g=Number(localStorage.getItem(`aperta-repository-width`)),_=L(Number.isFinite(g)&&g>=240&&g<=480?g:320),v=Number(localStorage.getItem(`aperta-agent-panel-width`)),y=L(Number.isFinite(v)&&v>=340&&v<=520?v:420),b=Number(localStorage.getItem(`aperta-ownership-left-width`)),ee=L(Number.isFinite(b)&&b>=260&&b<=520?b:360),te=Number(localStorage.getItem(`aperta-ownership-right-width`)),ne=L(Number.isFinite(te)&&te>=340&&te<=620?te:460),re=L(localStorage.getItem(`aperta-agent-pane-open`)!==`false`),ie=L(null),ae=L(``),x=L(null),S=L(null),oe=L(``),se=L(``),ce=L(!1),le=L(0),ue=L(``),de=L(`unified`),fe=L(!1),pe=L(null),me=L(``),he=L({}),C=L(localStorage.getItem(`aperta-project`)??``),w=L(null),_e=L(``),ve=L(!1),ye=L(``),E=L(null),be=L(!1),xe=L(null),Se=L(``),Ce=L(!1),we=L(null),Te=L(``),Ee=L(``),De=L(null),Oe=L(``),ke=L(!1),O=L(null),Ae=L(null),je=L(!1),Me=L(null),Ne=L(``),Pe=[`builder`,`coach`],k=L(null),Fe=Z(()=>k.value?.profiles.find(e=>e.id===k.value?.activeProfileIds.builder)),Ie=Z(()=>k.value?.profiles.find(e=>e.id===k.value?.activeProfileIds.coach)),Le=L(``),Re=L(!1),ze=L(``),Be=L(!1),Ve=L(``),He=L(!1),A=L(null),Ue=L(``),j=L({name:``,provider:`openai`,model:``,baseUrl:``,apiKey:``}),M=L({kind:`aperta`,model:``}),We=Z(()=>k.value?.providers.find(e=>e.id===j.value.provider)),Ge=Z(()=>`${t.value?.observer?.state===`grouping`?`Grouping changes`:t.value?.observer?.state===`error`?`Observer needs attention`:`Watching`} · ${t.value?.observer?.branch??t.value?.branch??`repository`}`),Ke=L(``),qe=L(null),Je=L(!1),Ye=L(``),Xe=L([]),Ze=L([]),Qe=L(null),$e=L(null),et=Z(()=>$e.value?.kind===`aperta`?!!Qe.value?.enabled:!!$e.value?.available),tt=Z(()=>{let e=$e.value;return e?e.kind===`aperta`?Qe.value?.enabled?`Aperta Native · ${Qe.value.provider} / ${Qe.value.model}`:`Aperta Native · Builder model required`:`${gr(e.kind)} · ${e.model||`runtime default model`}`:`Loading execution engine…`}),nt=L(``),rt=L(!1),it=L(null),at=L(``),ot=L(null),st=L(null),ct=L(!1),lt=L(``),ut=L(``),dt=L(``),ft=L(!1),pt=L(``),N=L(`plan`),mt=L(!1),ht=L(!1),gt=L({}),_t=L(!1),P=L(null),vt=L(!1),yt=L(``),bt=L(null),xt=L(!1),St=L(``),Ct=L(`all`),wt=Z(()=>bt.value?.claims.filter(e=>Ct.value===`all`||e.status===Ct.value)??[]),Tt=Z(()=>t.value?.files.find(e=>e.path===d.value)??(d.value?{path:d.value,score:null,aiRatio:0,totalLines:0,lowConfidenceCount:0,explainedLowConfidence:0}:void 0)),Et=Z(()=>Tt.value?t.value?.diffs.filter(e=>e.files.some(e=>e.path===Tt.value?.path))??[]:[]),Dt=Z(()=>ws(x.value?.patch??``)),Ot=Z(()=>Dt.value.find(e=>e.path===ue.value)??Dt.value[0]),kt=Z(()=>x.value?.diff.files.find(e=>e.path===Ot.value?.path)),At=Z(()=>Math.max(0,Dt.value.findIndex(e=>e.path===Ot.value?.path))),jt=Z(()=>{let e=me.value.trim().toLowerCase(),n=t.value?.sessions.filter(e=>e.reviewed||e.notes.length||e.evidence.length)??[];return e?n.filter(t=>`${t.notes.map(e=>e.text).join(` `)} ${t.evidence.flatMap(e=>e.answers.map(e=>`${e.question} ${e.answer}`)).join(` `)} ${t.files.map(e=>e.path).join(` `)} ${t.model??t.authorship}`.toLowerCase().includes(e)):n}),Mt=Z(()=>Ae.value?.questions??x.value?.questions??[]),Nt=Z(()=>Mt.value.filter(e=>e.requiredForOwned).filter(e=>(he.value[e.id]?.trim().length??0)>=20).length),Pt=Z(()=>Nt.value>=3&&oe.value.trim().length>=40),Ft=Z(()=>Math.round((Nt.value+ +(oe.value.trim().length>=40))/4*100)),It=Z(()=>w.value?.nodes.filter(e=>e.status!==`related`&&e.kind!==`test`).slice(0,18)??[]),Lt=Z(()=>w.value?.nodes.filter(e=>e.status===`related`&&e.kind!==`test`).slice(0,18)??[]),Rt=Z(()=>w.value?.nodes.filter(e=>e.kind===`test`).slice(0,12)??[]),zt=Z(()=>w.value?.nodes.find(e=>e.id===ye.value)??It.value[0]??Lt.value[0]??Rt.value[0]),F=Z(()=>w.value?.edges.filter(e=>e.from===zt.value?.id||e.to===zt.value?.id).flatMap(e=>{let t=w.value?.nodes.find(t=>t.id===(e.from===zt.value?.id?e.to:e.from));return t?[{...e,node:t}]:[]})??[]),I=Z(()=>we.value?.probes.find(e=>e.id===Te.value)??null),Bt=Z(()=>{let e=new Map(E.value?.verdicts.map(e=>[e.nodeId,e.verdict])??[]);for(let t of we.value?.probes??[]){if(t.latest?.status===`proven`)for(let n of t.latest.targetNodeIds)e.set(n,`proven`);if(t.latest?.status===`disproven`)for(let n of t.latest.targetNodeIds)e.set(n,`regressed`)}return e}),Vt=Z(()=>{let e={name:t.value?.repo??`repository`,path:``,type:`directory`,children:[],score:null,changed:!1},n=new Map(t.value?.files.map(e=>[e.path,e])??[]),r=Ke.value.trim().toLowerCase();for(let i of t.value?.repositoryFiles??[]){if(r&&!i.toLowerCase().includes(r))continue;let t=e,a=i.split(`/`);for(let e=0;e<a.length;e++){let r=a.slice(0,e+1).join(`/`),o=t.children.find(t=>t.name===a[e]);if(!o){let s=n.get(i);o={name:a[e],path:r,type:e===a.length-1?`file`:`directory`,children:[],score:e===a.length-1?s?.score??null:null,changed:e===a.length-1&&!!s},t.children.push(o)}t=o}}let i=e=>{e.sort((e,t)=>e.type===t.type?e.name.localeCompare(t.name):e.type===`directory`?-1:1),e.forEach(e=>i(e.children))};return i(e.children),e.children}),Ht=Z(()=>qe.value?.content.split(`
|
|
5
|
+
`)??[]),Ut=Z(()=>ft.value?null:Ze.value.find(e=>e.id===dt.value)??Ze.value[0]??null),R=Z(()=>Ut.value?.runs.find(e=>e.id===ut.value)??Ut.value?.runs.at(-1)??null),Wt=Z(()=>ws(R.value?.patch??``)),Gt=Z(()=>Wt.value.find(e=>e.path===pt.value)??Wt.value[0]??null),Kt=Z(()=>w.value?.capabilities.map(e=>e.id===`runtime`?E.value?.latest?.status===`proven`?{...e,status:`available`,detail:`Executed ${E.value.latest.runner} evidence is attached to this capture.`}:E.value?.plan.available?{...e,status:`partial`,detail:`${E.value.plan.runner} evidence is available on demand but has not proven this capture.`}:e:e)??[]);function qt(e){return e===null?{label:`Unknown`,tone:`unknown`}:e<1.67?{label:`Opaque`,tone:`danger`}:e<2.5?{label:`Followable`,tone:`warning`}:{label:`Owned`,tone:`good`}}function Jt(e){return e===null?`—`:e.toFixed(1)}function Yt(e){return`${Math.round(e*100)}%`}function Xt(e){return e===null?`—`:`${Math.round(e*100)}%`}function Zt(e){return e===null?`—`:e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(1)}s`}function Qt(e){return new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`}).format(new Date(e))}function $t(e){return new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}).format(new Date(e))}function en(e){return e.split(`/`).at(-1)??e}function tn(e){let t=e.split(`/`);return t.length>1?t.slice(0,-1).join(`/`):`repository root`}function nn(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1$2`).replaceAll(`/`,`/`).replaceAll(`.`,`.`)}function rn(e=``){return e.replace(/\r/g,``).replace(/\s*#{1,6}\s+/g,`
|
|
6
|
+
|
|
7
|
+
`).replace(/\s+-\s+(?=(?:\*\*|[A-Z0-9]))/g,`
|
|
8
|
+
• `).replace(/\*\*([^*]+)\*\*/g,`$1`).replace(/`([^`]+)`/g,`$1`).replace(/^\s*[-*]\s+/gm,`• `).replace(/\n{3,}/g,`
|
|
9
|
+
|
|
10
|
+
`).trim()}function an(e=``){let t=e.replaceAll(`\\`,`/`);return/\/aperta-agent-[^/]+$/.test(t)?``:t.match(/\/aperta-agent-[^/]+\/(.+)$/)?.[1]??t}function on(e){let t=an(e.path??``),n=e.action.toLowerCase();return/^(?:read|view|open)$/.test(n)?`Inspecting ${t||`a repository file`}.`:/^(?:edit|write|patch|apply_patch)$/.test(n)?`Updating ${t||`repository content`}.`:/^(?:glob|grep|search|find)$/.test(n)?`Searching the repository.`:`Provider activity captured.`}function sn(e){return e.filter(e=>![`assistant`,`system`,`result`].includes(e.action.toLowerCase()))}function cn(e){let t=e.detail?.trim()??``;if(!t)return``;if(t.startsWith(`{`))try{let n=JSON.parse(t),r=n.message&&typeof n.message==`object`?n.message:void 0,i=(Array.isArray(r?.content)?r.content:[]).find(e=>e&&typeof e==`object`&&e.type===`tool_use`),a=i?.input&&typeof i.input==`object`?i.input:{},o=an([a.file_path,a.path,n.file_path,n.path].find(e=>typeof e==`string`)??e.path??``),s=String(i?.name??n.tool_name??e.action).toLowerCase();return on({...e,action:s,path:o})}catch{return on(e)}return rn(t).replace(/(?:\/[^\s"']+)*\/aperta-agent-[^/\s"']+\//g,``)}function ln(e){if(e.status===`no-changes`)return`No repository changes were needed`;let t=rn(e.summary||e.intent).replace(/\s+/g,` `);return t.length>150?`${t.slice(0,147).trimEnd()}…`:t}function un(e){let t=rn(e.understanding?.changedBehavior||e.summary||e.intent).replace(/\s+/g,` `);return t.length>220?`${t.slice(0,217).trimEnd()}…`:t}function dn(e){return e.status===`error`?Wo:e.action===`read`?Yo:e.action===`search`?hs:e.action===`write`?xs:e.action===`run`?fs:e.action===`service`||e.action===`probe`?_s:e.action===`verify`||e.action===`baseline`?Vo:e.action===`plan`?as:e.action===`finish`?Go:qo}function pn(e){return e.type===`captured`?Uo:e.type===`error`?Wo:e.type===`grouping`?Xo:e.type===`branch`?ts:qo}function mn(e){return e.level===`healthy`?Uo:e.level===`critical`?Wo:Ss}function hn(e){return e.notes[0]?.text?e.notes[0].text:e.evidence[0]?.answers.find(e=>e.answer.trim().length)?.answer||`Ownership session completed with confidence ${e.score??`unrated`}. No written explanation was recorded.`}async function gn(e){d.value=e,qe.value=null,Ye.value=``,Je.value=!0;try{let t=await fetch(`/api/file?project=${encodeURIComponent(C.value)}&path=${encodeURIComponent(e)}`,{cache:`no-store`}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Could not read repository file`);qe.value=n}catch(e){Ye.value=e instanceof Error?e.message:String(e)}finally{Je.value=!1}}function _n(e){p.value=e,localStorage.setItem(`aperta-theme`,e)}function vn(){m.value=!m.value,h.value=null,localStorage.setItem(`aperta-sidebar-collapsed`,String(m.value))}function B(e,t){if(!m.value)return;let n=e.currentTarget.getBoundingClientRect();h.value={label:t,top:n.top+n.height/2,left:n.right+10}}function V(){h.value=null}function yn(e){_.value=Math.max(240,Math.min(480,Math.round(e))),localStorage.setItem(`aperta-repository-width`,String(_.value))}function bn(e){yn(_.value+e)}function xn(e){let t=e.clientX,n=_.value,r=e=>yn(n+e.clientX-t),i=()=>{window.removeEventListener(`pointermove`,r),window.removeEventListener(`pointerup`,i),document.body.classList.remove(`resizing-repository`)};document.body.classList.add(`resizing-repository`),window.addEventListener(`pointermove`,r),window.addEventListener(`pointerup`,i,{once:!0})}function Sn(e){y.value=Math.max(340,Math.min(520,Math.round(e))),localStorage.setItem(`aperta-agent-panel-width`,String(y.value))}function wn(e){Sn(y.value+e)}function Tn(e){re.value=e,localStorage.setItem(`aperta-agent-pane-open`,String(e))}function En(e){let t=e.clientX,n=y.value,r=e=>Sn(n-(e.clientX-t)),i=()=>{window.removeEventListener(`pointermove`,r),window.removeEventListener(`pointerup`,i),document.body.classList.remove(`resizing-agent-pane`)};document.body.classList.add(`resizing-agent-pane`),window.addEventListener(`pointermove`,r),window.addEventListener(`pointerup`,i,{once:!0})}function Dn(e,t){let n=e===`left`?[260,520]:[340,620],r=Math.max(n[0],Math.min(n[1],Math.round(t)));e===`left`?ee.value=r:ne.value=r,localStorage.setItem(`aperta-ownership-${e}-width`,String(r))}function On(e,t){Dn(e,(e===`left`?ee.value:ne.value)+t)}function An(e,t){let n=t.clientX,r=e===`left`?ee.value:ne.value,i=t=>{let i=t.clientX-n;Dn(e,r+(e===`left`?i:-i))},a=()=>{window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),document.body.classList.remove(`resizing-ownership-pane`)};document.body.classList.add(`resizing-ownership-pane`),window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a,{once:!0})}function jn(e){return Bt.value.get(e)??`unproven`}function Mn(e){return jn(e.id)===`proven`?`proven`:e.evidence.level}function Nn(e){return{file:Zo,class:Ho,method:Jo,dependency:ls,test:Qo,config:gs,entrypoint:ss}[e]}function Pn(e){return jn(e.id)===`proven`?`Executed evidence is attached to this graph surface.`:e.evidence.detail}async function Fn(e){E.value=null,Se.value=``,Ce.value=!1;let t=await fetch(`/api/proof?diffId=${encodeURIComponent(e)}&project=${encodeURIComponent(C.value)}`,{cache:`no-store`});if(!t.ok)throw Error(`Could not build the proof plan`);E.value=await t.json()}async function In(e){we.value=null,Oe.value=``,ke.value=!1;let t=await fetch(`/api/probes?diffId=${encodeURIComponent(e)}&project=${encodeURIComponent(C.value)}`,{cache:`no-store`});if(!t.ok)throw Error(`Could not generate the probe catalog`);we.value=await t.json(),Te.value=we.value?.probes[0]?.id??``}async function Ln(e){if(!(e.readiness!==`ready`||Ee.value)){Ee.value=e.id,Oe.value=``;try{let t=await fetch(`/api/probes`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:C.value,diffId:_e.value,probeId:e.id})}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Probe execution failed`);De.value=n.job;let r=await zn(n.job.id,e=>De.value=e);if(r.state!==`completed`)throw Error(r.error??`Probe ${r.state}`);await In(_e.value),Te.value=e.id,ke.value=!0}catch(e){Oe.value=e instanceof Error?e.message:String(e)}finally{Ee.value=``}}}async function Rn(){if(!(!_e.value||be.value)){be.value=!0,Se.value=``;try{let e=await fetch(`/api/proof`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:C.value,diffId:_e.value})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Proof execution failed`);xe.value=t.job;let n=await zn(t.job.id,e=>xe.value=e);if(n.state!==`completed`)throw Error(n.error??`Proof ${n.state}`);await Fn(_e.value),Ce.value=E.value?.latest?.status!==`proven`}catch(e){Se.value=e instanceof Error?e.message:String(e)}finally{be.value=!1}}}async function zn(e,t){for(;;){await new Promise(e=>setTimeout(e,700));let n=await fetch(`/api/jobs?id=${encodeURIComponent(e)}`,{cache:`no-store`});if(!n.ok)throw Error(`Could not read execution job`);let{job:r}=await n.json();if(t(r),![`queued`,`running`].includes(r.state))return r}}async function Bn(e){!e||![`queued`,`running`].includes(e.state)||await fetch(`/api/jobs?id=${encodeURIComponent(e.id)}`,{method:`DELETE`})}async function Vn(e=_e.value||t.value?.diffs.at(-1)?.id||``){if(!e){w.value=null;return}ve.value=!0,_e.value=e,n.value=``;try{let t=await fetch(`/api/impact?diffId=${encodeURIComponent(e)}&project=${encodeURIComponent(C.value)}`,{cache:`no-store`});if(!t.ok)throw Error(`Could not build the behavioral impact graph`);let n=await t.json();w.value=n.graph,ye.value=n.graph.nodes[0]?.id??``,await Promise.all([Fn(e).catch(e=>{Se.value=e instanceof Error?e.message:String(e)}),In(e).catch(e=>{Oe.value=e instanceof Error?e.message:String(e)})])}catch(e){n.value=e instanceof Error?e.message:String(e)}finally{ve.value=!1}}async function Hn(){a.value=`impact`,await Vn()}async function Un(e){e===`impact`?await Vn():e===`proofgraph`?await rr():e===`harness`?await or():e===`agents`?await wr():e===`git`?await Er():e===`settings`&&await cr()}async function Wn(e){let t=s.value+e;if(t<0||t>=o.value.length)return;s.value=t,c.value=!0;let n=o.value[t];a.value=n,await Un(n)}function Gn(e){ue.value=e}function Kn(e){if(!Dt.value.length)return;let t=(At.value+e+Dt.value.length)%Dt.value.length;ue.value=Dt.value[t].path}function qn(e){e.path&&(ue.value=e.path)}async function Jn(e){if(e.kind!==`pending`){ie.value=e,x.value=null,S.value=null,oe.value=``,he.value={},se.value=``,le.value=Date.now(),pe.value=null,ue.value=``,Ae.value=null,Ne.value=``,Me.value=null;try{let t=await fetch(`/api/ownership?diffId=${encodeURIComponent(e.diffId)}&project=${encodeURIComponent(C.value)}`,{cache:`no-store`});if(!t.ok)throw Error(`Could not build the ownership briefing`);x.value=await t.json(),fetch(`/api/coach`,{cache:`no-store`}).then(e=>e.json()).then(e=>O.value=e.status).catch(()=>O.value={enabled:!1,reason:`Coach status is unavailable.`});let n=localStorage.getItem(`aperta-draft:${e.diffId}`);if(n)try{let e=JSON.parse(n);oe.value=e.explanation??``,he.value=e.answers??{}}catch{oe.value=n}ue.value=x.value?.focusFiles[0]?.path??x.value?.diff.files[0]?.path??``,location.hash=`project=${encodeURIComponent(C.value)}&ownership=${e.diffId}`}catch(e){se.value=e instanceof Error?e.message:String(e)}}}async function Yn(e){if(!(e.kind===`pending`||ae.value)){ae.value=e.diffId,n.value=``;try{let t=await fetch(`/api/queue`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:C.value,diffId:e.diffId,action:`skip`})}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Could not skip this review`);await Pr()}catch(e){n.value=e instanceof Error?e.message:String(e)}finally{ae.value=``}}}async function Xn(){if(!(!ie.value||je.value||!O.value?.enabled)){je.value=!0,Ne.value=``;try{let e=await fetch(`/api/coach`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:C.value,diffId:ie.value.diffId})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not start Aperta Coach`);Me.value=t.job;let n=await zn(t.job.id,e=>Me.value=e);if(n.state!==`completed`)throw Error(n.error??`Coach ${n.state}`);Ae.value=n.result,he.value={},Ae.value.focus.path&&(ue.value=Ae.value.focus.path)}catch(e){Ne.value=e instanceof Error?e.message:String(e)}finally{je.value=!1}}}function Zn(){ie.value=null,x.value=null,pe.value=null,history.replaceState(null,``,location.pathname+location.search)}function Qn(e){let n=t.value?.diffs.find(t=>t.id===e),r=t.value?.sessions.find(t=>t.diffId===e);n&&Jn({kind:`history`,priority:`medium`,diffId:e,ts:n.ts,label:`Ownership history`,score:r?.score??null,files:n.files,model:n.model})}async function $n(){if(!ie.value||!S.value){se.value=`Choose your current confidence before finishing.`;return}if(S.value===3&&!Pt.value){se.value=`Owned must be demonstrated: complete the three required evidence answers and your explanation.`;return}ce.value=!0,se.value=``;try{let e=Mt.value.map(e=>({questionId:e.id,question:e.text,answer:he.value[e.id]??``,path:e.path??void 0,kind:e.kind})),t=await fetch(`/api/ownership`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:C.value,diffId:ie.value.diffId,score:S.value,explanation:oe.value,answers:e,durationMs:Date.now()-le.value})});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error??`Could not save the ownership review`)}pe.value={before:ie.value.score,after:S.value,durationMs:Date.now()-le.value},localStorage.removeItem(`aperta-draft:${ie.value.diffId}`),await Pr()}catch(e){se.value=e instanceof Error?e.message:String(e)}finally{ce.value=!1}}async function tr(e){C.value=e,localStorage.setItem(`aperta-project`,e),d.value=``,qe.value=null,w.value=null,E.value=null,we.value=null,P.value=null,bt.value=null,_e.value=``,Xe.value=[],Ze.value=[],dt.value=``,ut.value=``,ft.value=!1,Zn(),await Pr(),a.value===`impact`&&await Vn(),a.value===`agents`&&await wr(),a.value===`harness`&&await or(),a.value===`proofgraph`&&await rr()}async function nr(){if(!(!t.value||t.value.initialization.initialized||r.value)){r.value=!0,i.value=``;try{let e=await fetch(`/api/project`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`initialize`,projectId:C.value})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not initialize Aperta`);await Pr()}catch(e){i.value=e instanceof Error?e.message:String(e)}finally{r.value=!1}}}async function rr(){xt.value=!0,St.value=``;try{let e=await fetch(`/api/proof-graph?project=${encodeURIComponent(C.value)}`,{cache:`no-store`}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not load the repository proof graph`);bt.value=t}catch(e){St.value=e instanceof Error?e.message:String(e)}finally{xt.value=!1}}async function ar(){a.value=`proofgraph`,await rr()}async function or(){vt.value=!0,yt.value=``;try{let e=await fetch(`/api/harness?project=${encodeURIComponent(C.value)}`,{cache:`no-store`}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not load harness health`);P.value=t}catch(e){yt.value=e instanceof Error?e.message:String(e)}finally{vt.value=!1}}async function sr(){a.value=`harness`,await or()}async function cr(){Le.value=``;try{let e=await fetch(`/api/settings`,{cache:`no-store`}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not load settings`);k.value=t,M.value={kind:[`cursor`,`claude`,`opencode`].includes(t.agentRuntime?.kind)?t.agentRuntime.kind:`aperta`,model:typeof t.agentRuntime?.model==`string`?t.agentRuntime.model:``}}catch(e){Le.value=e instanceof Error?e.message:String(e)}}async function lr(){Re.value=!1,a.value=`settings`,await cr()}async function ur(){Re.value=!0,a.value=`settings`,await cr(),await fn(),document.getElementById(`agent-runtime-title`)?.scrollIntoView({block:`start`})}function dr(){Re.value=!1,a.value=`agents`}async function pr(e){Be.value=!0,Le.value=``;try{let t=await fetch(`/api/settings`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Could not save settings`);k.value=n}catch(e){Le.value=e instanceof Error?e.message:String(e)}finally{Be.value=!1}}async function mr(){await pr({action:`save`,profile:{...j.value,activate:!0,baseUrl:A.value?.baseUrl??j.value.baseUrl,toolTransport:A.value?A.value.capabilities.nativeTools?`native`:`json`:void 0,capabilities:A.value?.capabilities}}),Le.value||(j.value={name:``,provider:j.value.provider,model:``,baseUrl:``,apiKey:``},A.value=null)}async function hr(){await pr({action:`runtime`,runtime:M.value}),k.value?.agentRuntime&&(M.value={kind:k.value.agentRuntime.kind,model:k.value.agentRuntime.model})}function gr(e){return e===`cursor`?`Cursor Agent`:e===`claude`?`Claude Code`:e===`opencode`?`OpenCode`:`Aperta Native`}function _r(e){return e===`aperta`?`Bounded native tool loop`:`External CLI runtime`}function vr(e){return e===`cursor`?`C`:e===`claude`?`A`:e===`opencode`?`O`:`α`}async function yr(e,t){await pr({action:`assign`,id:e,role:t})}async function br(e){Ve.value=e,await pr({action:`retest`,id:e}),Ve.value=``}function xr(e){j.value.provider=e.id,j.value.baseUrl=e.id===`openai-compatible`?``:e.baseUrl,j.value.model=``,A.value=null,ze.value=``,Le.value=``}async function Sr(){if(!He.value){He.value=!0,ze.value=``,Le.value=``;try{let e=await fetch(`/api/settings`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`inspect`,profile:j.value})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not inspect provider`);if(!Array.isArray(t.models)||!t.capabilities||typeof t.baseUrl!=`string`||typeof t.testedModel!=`string`)throw Error(`Provider inspection returned an incomplete response. Aperta kept your settings unchanged.`);A.value=t,j.value.baseUrl=t.baseUrl,!j.value.model&&t.models?.length===1&&(j.value.model=t.models[0].id)}catch(e){ze.value=e instanceof Error?e.message:String(e)}finally{He.value=!1}}}async function Cr(e){if(Ue.value!==e){Ue.value=e;return}await pr({action:`delete`,id:e}),Ue.value=``}async function wr(){at.value=``;try{let e=await fetch(`/api/agents?project=${encodeURIComponent(C.value)}`,{cache:`no-store`}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not load agent conversations`);Ze.value=(t.conversations??[]).map(e=>({...e,runs:e.runs.map(e=>({...e,verification:e.verification??{status:`unavailable`,plan:[],attempts:[]}}))})),Xe.value=Ze.value.flatMap(e=>e.runs),Qe.value=t.coach,$e.value=t.runtime??null,!ft.value&&!Ze.value.some(e=>e.id===dt.value)&&(dt.value=Ze.value[0]?.id??``);let n=Ze.value.find(e=>e.id===dt.value);n&&!n.runs.some(e=>e.id===ut.value)&&kr(n.runs.at(-1)?.id??``)}catch(e){at.value=e instanceof Error?e.message:String(e)}}async function Tr(){a.value=`agents`,m.value||(m.value=!0,localStorage.setItem(`aperta-sidebar-collapsed`,`true`)),await wr()}async function Er(){ct.value=!0,lt.value=``;try{let e=await fetch(`/api/git?project=${encodeURIComponent(C.value)}`,{cache:`no-store`}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not read Git status`);st.value=t}catch(e){lt.value=e instanceof Error?e.message:String(e)}finally{ct.value=!1}}async function Dr(){a.value=`git`,await Er()}async function Or(){if(!t.value?.initialization.initialized){at.value=`Initialize Aperta for this project before starting an agent run.`;return}if(rt.value||nt.value.trim().length<10)return;let e=nt.value.trim(),n=!1;rt.value=!0,at.value=``,mt.value=!1,N.value=`activity`;try{let t=await fetch(`/api/agents`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`start`,projectId:C.value,conversationId:Ut.value?.id,intent:e})}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r.error??`Could not start agent run`);n=!0,nt.value=``,it.value=r.job;let i=await zn(r.job.id,e=>{it.value=e,wr().then(()=>{let e=Xe.value.find(e=>e.status===`running`||e.status===`verifying`);e&&(ft.value=!1,dt.value=e.conversationId,ut.value=e.id,pt.value||=e.files[0]?.path??``)})});if(i.state!==`completed`)throw Error(i.error??`Agent run ${i.state}`);let a=i.result;ft.value=!1,dt.value=a.conversationId,ut.value=a.id,pt.value=a.files[0]?.path??``,await wr(),N.value=a.status===`no-changes`||a.files.length?`changes`:`activity`,await fn(),ot.value?.scrollTo({top:0,behavior:`smooth`})}catch(t){!n&&!nt.value&&(nt.value=e),at.value=t instanceof Error?t.message:String(t),await wr()}finally{rt.value=!1}}function kr(e){ut.value=e;let t=Xe.value.find(t=>t.id===e);pt.value=t?.files[0]?.path??``,gt.value={...t?.understanding?.responses??{}},N.value=t?.status===`no-changes`?`changes`:`activity`,mt.value=!1}function Ar(e){ft.value=!1,dt.value=e,kr(Ze.value.find(t=>t.id===e)?.runs.at(-1)?.id??``)}function jr(){ft.value=!0,dt.value=``,ut.value=``,pt.value=``,nt.value=``,at.value=``,mt.value=!1}async function Mr(){if(!(!R.value||!mt.value||ht.value)){ht.value=!0,at.value=``;try{let e=await fetch(`/api/agents`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`apply`,projectId:C.value,runId:R.value.id,acceptUnverified:!0})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not promote patch`);mt.value=!1,await wr(),await Pr()}catch(e){at.value=e instanceof Error?e.message:String(e)}finally{ht.value=!1}}}async function Nr(){if(!(!R.value||_t.value)){_t.value=!0,at.value=``;try{let e=await fetch(`/api/agents`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`understanding`,projectId:C.value,runId:R.value.id,responses:gt.value})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not save understanding evidence`);await wr();let n=Xe.value.find(e=>e.id===ut.value);gt.value={...n?.understanding?.responses??{}}}catch(e){at.value=e instanceof Error?e.message:String(e)}finally{_t.value=!1}}}async function Pr(e=!1){n.value=``;try{let n=C.value?`?project=${encodeURIComponent(C.value)}`:``,r=await fetch(`/api/state${n}`,{cache:`no-store`});if(!r.ok&&C.value&&!e)return C.value=``,localStorage.removeItem(`aperta-project`),Pr(!0);if(!r.ok)throw Error(`Could not read the local ledger`);t.value=await r.json(),C.value=t.value?.projectId??``,C.value&&localStorage.setItem(`aperta-project`,C.value),!d.value&&t.value?.repositoryFiles.length&&await gn(t.value.repositoryFiles[0]),a.value===`git`&&await Er()}catch(e){n.value=e instanceof Error?e.message:String(e)}}let Fr;return kn([oe,he],()=>{ie.value&&!pe.value&&localStorage.setItem(`aperta-draft:${ie.value.diffId}`,JSON.stringify({explanation:oe.value,answers:he.value}))},{deep:!0}),er(async()=>{let e=new URLSearchParams(location.hash.slice(1));e.get(`project`)&&(C.value=e.get(`project`)??``),await Pr();let t=e.get(`ownership`);t&&Qn(t),Fr=setInterval(()=>{ie.value||Pr()},3e3)}),ir(()=>{Fr&&clearInterval(Fr)}),(e,o)=>(W(),G(`main`,{class:T([`desktop`,`theme-${p.value}`])},[q(`section`,Qs,[q(`header`,$s,[o[87]||=Wi(`<div class="traffic" aria-hidden="true"><i class="close"></i><i class="minimize"></i><i class="zoom"></i></div><div class="window-title"><span class="aperta-mark">a</span><strong>aperta</strong><span>Comprehension</span></div>`,2),q(`button`,{class:`refresh-button`,type:`button`,onClick:Pr,"aria-label":`Refresh ledger`},[J(z(ms),{class:`nav-icon`,"aria-hidden":`true`})])]),q(`div`,ec,[q(`div`,tc,[q(`button`,{type:`button`,disabled:!l.value,"aria-label":`Go back`,title:`Go back`,onClick:o[0]||=e=>Wn(-1)},[J(z(Ro),{class:`nav-icon`,"aria-hidden":`true`})],8,nc),q(`button`,{type:`button`,disabled:!u.value,"aria-label":`Go forward`,title:`Go forward`,onClick:o[1]||=e=>Wn(1)},[J(z(zo),{class:`nav-icon`,"aria-hidden":`true`})],8,rc)]),q(`label`,ic,[o[88]||=q(`span`,{class:`branch-dot`},null,-1),q(`select`,{value:C.value,"aria-label":`Tracked project`,onChange:o[2]||=e=>tr(e.target.value)},[t.value?X(``,!0):(W(),G(`option`,oc,`Loading`)),(W(!0),G(U,null,H(t.value?.projects??[],e=>(W(),G(`option`,{key:e.id,value:e.id,disabled:!e.available},D(e.name)+D(e.available?``:` — unavailable`),9,sc))),128))],40,ac),o[89]||=q(`span`,null,`/`,-1),q(`strong`,null,D(t.value?.branch??`—`),1)]),q(`div`,cc,[q(`button`,{class:T({active:p.value===`snow`}),onClick:o[3]||=e=>_n(`snow`)},` Aqua `,2),q(`button`,{class:T({active:p.value===`panther`}),onClick:o[4]||=e=>_n(`panther`)},` Panther `,2),q(`button`,{class:T({active:p.value===`plain`}),onClick:o[5]||=e=>_n(`plain`)},` Plain `,2)])]),n.value?(W(),G(`div`,lc,D(n.value),1)):t.value?X(``,!0):(W(),G(`div`,uc,[...o[90]||=[q(`div`,{class:`spinner`},null,-1),Y(` Reading the comprehension ledger… `,-1)]])),t.value&&!n.value&&!t.value.initialization.initialized?(W(),G(`section`,dc,[J(z(Wo),{"aria-hidden":`true`}),q(`div`,null,[q(`strong`,null,`Aperta isn’t initialized for `+D(t.value.repo),1),o[91]||=q(`span`,null,`Repository and Git browsing are available. Agent runs, capture history, reviews, and learning memory stay off until you initialize this project.`,-1),o[92]||=q(`code`,null,`aperta init`,-1),i.value?(W(),G(`small`,fc,D(i.value),1)):X(``,!0)]),q(`button`,{type:`button`,disabled:r.value,onClick:nr},D(r.value?`Initializing…`:`Initialize Aperta`),9,pc)])):X(``,!0),t.value&&!n.value?(W(),G(`div`,{key:3,class:T([`workspace`,{"sidebar-collapsed":m.value}])},[q(`aside`,mc,[q(`header`,hc,[o[93]||=q(`strong`,null,[q(`span`,null,`α`),q(`em`,null,`Aperta`)],-1),q(`button`,{onClick:vn,"aria-label":m.value?`Expand navigation`:`Collapse navigation`,title:m.value?`Expand navigation`:`Collapse navigation`},[m.value?(W(),K(z(ds),{key:0,class:`nav-icon`,"aria-hidden":`true`})):(W(),K(z(us),{key:1,class:`nav-icon`,"aria-hidden":`true`}))],8,gc)]),q(`nav`,_c,[o[104]||=q(`p`,{class:`source-label`},`BUILD`,-1),q(`button`,{class:T([`source-item primary-action`,{selected:a.value===`agents`}]),"aria-current":a.value===`agents`?`page`:void 0,title:`Agent Workbench`,onMouseenter:o[6]||=e=>B(e,`Agent Workbench`),onFocus:o[7]||=e=>B(e,`Agent Workbench`),onMouseleave:V,onBlur:V,onClick:Tr},[J(z(bs),{class:`nav-icon`,"aria-hidden":`true`}),o[94]||=q(`span`,{class:`item-label`},`Agent Workbench`,-1),Xe.value.filter(e=>e.status===`ready`).length?(W(),G(`b`,yc,D(Xe.value.filter(e=>e.status===`ready`).length),1)):X(``,!0)],42,vc),q(`button`,{class:T([`source-item`,{selected:a.value===`git`}]),"aria-current":a.value===`git`?`page`:void 0,title:`Git Changes`,onMouseenter:o[8]||=e=>B(e,`Git Changes`),onFocus:o[9]||=e=>B(e,`Git Changes`),onMouseleave:V,onBlur:V,onClick:Dr},[J(z(es),{class:`nav-icon`,"aria-hidden":`true`}),o[95]||=q(`span`,{class:`item-label`},`Git Changes`,-1),st.value?(W(),G(`b`,xc,D(st.value.staged.length+st.value.unstaged.length+st.value.untracked.length),1)):X(``,!0)],42,bc),o[105]||=q(`p`,{class:`source-label secondary`},`UNDERSTAND`,-1),q(`button`,{class:T([`source-item`,{selected:a.value===`map`}]),"aria-current":a.value===`map`?`page`:void 0,title:`Repository`,onMouseenter:o[10]||=e=>B(e,`Repository`),onFocus:o[11]||=e=>B(e,`Repository`),onMouseleave:V,onBlur:V,onClick:o[12]||=e=>a.value=`map`},[J(z(rs),{class:`nav-icon`,"aria-hidden":`true`}),o[96]||=q(`span`,{class:`item-label`},`Repository`,-1),q(`b`,null,D(t.value.repositoryFiles.length),1)],42,Sc),q(`button`,{class:T([`source-item`,{selected:a.value===`queue`}]),"aria-current":a.value===`queue`?`page`:void 0,title:`Review Queue`,onMouseenter:o[13]||=e=>B(e,`Review Queue`),onFocus:o[14]||=e=>B(e,`Review Queue`),onMouseleave:V,onBlur:V,onClick:o[15]||=e=>a.value=`queue`},[J(z(is),{class:`nav-icon`,"aria-hidden":`true`}),o[97]||=q(`span`,{class:`item-label`},`Review Queue`,-1),t.value.summary.reviewCount?(W(),G(`b`,wc,D(t.value.summary.reviewCount),1)):X(``,!0)],42,Cc),q(`button`,{class:T([`source-item`,{selected:a.value===`learn`}]),"aria-current":a.value===`learn`?`page`:void 0,title:`Learn Next`,onMouseenter:o[16]||=e=>B(e,`Learn Next`),onFocus:o[17]||=e=>B(e,`Learn Next`),onMouseleave:V,onBlur:V,onClick:o[18]||=e=>a.value=`learn`},[J(z(ms),{class:`nav-icon`,"aria-hidden":`true`}),o[98]||=q(`span`,{class:`item-label`},`Learn Next`,-1),t.value.summary.learnCount?(W(),G(`b`,Ec,D(t.value.summary.learnCount),1)):X(``,!0)],42,Tc),o[106]||=q(`p`,{class:`source-label secondary`},`INSIGHTS`,-1),q(`button`,{class:T([`source-item`,{selected:a.value===`impact`}]),"aria-current":a.value===`impact`?`page`:void 0,title:`Impact Graph`,onMouseenter:o[19]||=e=>B(e,`Impact Graph`),onFocus:o[20]||=e=>B(e,`Impact Graph`),onMouseleave:V,onBlur:V,onClick:Hn},[J(z(ns),{class:`nav-icon`,"aria-hidden":`true`}),o[99]||=q(`span`,{class:`item-label`},`Impact Graph`,-1)],42,Dc),q(`button`,{class:T([`source-item`,{selected:a.value===`proofgraph`}]),"aria-current":a.value===`proofgraph`?`page`:void 0,title:`Proof Graph`,onMouseenter:o[21]||=e=>B(e,`Proof Graph`),onFocus:o[22]||=e=>B(e,`Proof Graph`),onMouseleave:V,onBlur:V,onClick:ar},[J(z(Vo),{class:`nav-icon`,"aria-hidden":`true`}),o[100]||=q(`span`,{class:`item-label`},`Proof Graph`,-1),bt.value?.summary.stale?(W(),G(`b`,kc,D(bt.value.summary.stale),1)):X(``,!0)],42,Oc),q(`button`,{class:T([`source-item`,{selected:a.value===`journal`}]),"aria-current":a.value===`journal`?`page`:void 0,title:`Learning Journal`,onMouseenter:o[23]||=e=>B(e,`Learning Journal`),onFocus:o[24]||=e=>B(e,`Learning Journal`),onMouseleave:V,onBlur:V,onClick:o[25]||=e=>a.value=`journal`},[J(z(cs),{class:`nav-icon`,"aria-hidden":`true`}),o[101]||=q(`span`,{class:`item-label`},`Learning Journal`,-1)],42,Ac),q(`button`,{class:T([`source-item`,{selected:a.value===`activity`}]),"aria-current":a.value===`activity`?`page`:void 0,title:`Capture Activity`,onMouseenter:o[26]||=e=>B(e,`Capture Activity`),onFocus:o[27]||=e=>B(e,`Capture Activity`),onMouseleave:V,onBlur:V,onClick:o[28]||=e=>a.value=`activity`},[J(z(Lo),{class:`nav-icon`,"aria-hidden":`true`}),o[102]||=q(`span`,{class:`item-label`},`Capture Activity`,-1)],42,jc),q(`button`,{class:T([`source-item`,{selected:a.value===`harness`}]),"aria-current":a.value===`harness`?`page`:void 0,title:`Harness Health`,onMouseenter:o[29]||=e=>B(e,`Harness Health`),onFocus:o[30]||=e=>B(e,`Harness Health`),onMouseleave:V,onBlur:V,onClick:sr},[J(z($o),{class:`nav-icon`,"aria-hidden":`true`}),o[103]||=q(`span`,{class:`item-label`},`Harness Health`,-1),P.value?.signals.some(e=>e.level!==`healthy`)?(W(),G(`b`,Nc,D(P.value.signals.filter(e=>e.level!==`healthy`).length),1)):X(``,!0)],42,Mc)]),q(`div`,Pc,[q(`div`,{class:T([`observer-card`,t.value.observer?.state]),title:Ge.value,"aria-label":Ge.value,tabindex:`0`,onMouseenter:o[31]||=e=>B(e,Ge.value),onFocus:o[32]||=e=>B(e,Ge.value),onMouseleave:V,onBlur:V},[o[107]||=q(`i`,null,null,-1),q(`div`,null,[q(`strong`,null,D(t.value.observer?.state===`grouping`?`Grouping changes`:t.value.observer?.state===`error`?`Needs attention`:`Watching`),1),q(`span`,null,D(t.value.observer?.branch??t.value.branch),1)])],42,Fc),q(`button`,{class:T([`source-item settings-link`,{selected:a.value===`settings`}]),"aria-current":a.value===`settings`?`page`:void 0,title:`Settings`,onMouseenter:o[33]||=e=>B(e,`Settings`),onFocus:o[34]||=e=>B(e,`Settings`),onMouseleave:V,onBlur:V,onClick:lr},[J(z(vs),{class:`nav-icon`,"aria-hidden":`true`}),o[108]||=q(`span`,{class:`item-label`},`Settings`,-1)],42,Ic)])]),h.value?(W(),G(`div`,{key:0,class:`collapsed-nav-tooltip`,role:`tooltip`,style:ge({top:`${h.value.top}px`,left:`${h.value.left}px`})},D(h.value.label),5)):X(``,!0),q(`section`,{class:T([`content`,{"agent-content":a.value===`agents`}])},[a.value===`map`?(W(),G(U,{key:0},[o[119]||=Wi(`<div class="section-head"><div><h2>Repository Comprehension Explorer</h2><p> Navigate the real repository. Changed files carry ownership and provenance signals. </p></div><div class="legend"><span><i class="danger"></i>Opaque</span><span><i class="warning"></i>Followable</span><span><i class="good"></i>Owned</span><span><i class="unknown"></i>Unassessed</span></div></div>`,1),q(`div`,{class:`repository-explorer`,style:ge({"--repository-tree-width":`${_.value}px`})},[q(`aside`,Lc,[q(`header`,null,[q(`label`,null,[o[109]||=q(`span`,null,`⌕`,-1),Cn(q(`input`,{"onUpdate:modelValue":o[35]||=e=>Ke.value=e,type:`search`,placeholder:`Filter files…`,"aria-label":`Filter repository files`},null,512),[[lo,Ke.value]])]),q(`small`,null,D(t.value.repositoryFiles.length)+` Git-visible files`,1)]),q(`ul`,null,[(W(!0),G(U,null,H(Vt.value,e=>(W(),K(Zs,{key:e.path,node:e,"selected-path":d.value,onSelect:gn},null,8,[`node`,`selected-path`]))),128))]),Vt.value.length?X(``,!0):(W(),G(`div`,Rc,` No files match this filter. `))]),q(`button`,{class:`repository-resizer`,"aria-label":`Resize repository tree`,title:`Drag to resize repository tree`,onPointerdown:yo(xn,[`prevent`]),onKeydown:[o[36]||=xo(yo(e=>bn(-20),[`prevent`]),[`left`]),o[37]||=xo(yo(e=>bn(20),[`prevent`]),[`right`])]},[...o[110]||=[q(`span`,null,null,-1)]],32),q(`section`,zc,[Tt.value?(W(),G(`header`,Bc,[q(`div`,Vc,[o[111]||=q(`span`,{class:`large-file-icon`},`‹›`,-1),q(`div`,null,[q(`h3`,null,D(en(Tt.value.path)),1),q(`p`,null,D(tn(Tt.value.path)),1)])]),q(`dl`,Hc,[q(`div`,Uc,[o[112]||=q(`dt`,null,`Comprehension`,-1),q(`dd`,null,[q(`span`,{class:T([`status-lozenge`,qt(Tt.value.score).tone])},D(qt(Tt.value.score).label),3)])]),q(`div`,null,[o[114]||=q(`dt`,null,`Confidence`,-1),q(`dd`,null,[Y(D(Jt(Tt.value.score))+` `,1),o[113]||=q(`small`,null,`of 3`,-1)])]),q(`div`,null,[o[115]||=q(`dt`,null,`AI-touched`,-1),q(`dd`,null,D(Yt(Tt.value.aiRatio)),1)]),q(`div`,null,[o[117]||=q(`dt`,null,`Captured churn`,-1),q(`dd`,null,[Y(D(Tt.value.totalLines)+` `,1),o[116]||=q(`small`,null,`lines`,-1)])])])])):X(``,!0),Tt.value?(W(),G(`div`,Wc,[q(`span`,null,D(qe.value?.language??`source`)+` · `+D(qe.value?`${Math.max(1,Math.round(qe.value.size/1024))} KB`:`loading`),1),q(`div`,null,[(W(!0),G(U,null,H(Et.value.slice().reverse().slice(0,2),e=>(W(),G(`button`,{key:e.id,onClick:t=>Qn(e.id)},` Review `+D(Qt(e.ts)),9,Gc))),128))])])):X(``,!0),Je.value?(W(),G(`div`,Kc,[...o[118]||=[q(`div`,{class:`spinner`},null,-1),Y(` Reading file… `,-1)]])):Ye.value?(W(),G(`div`,qc,D(Ye.value),1)):qe.value?.binary?(W(),G(`div`,Jc,` Binary files are tracked but not rendered. `)):qe.value?(W(),G(`div`,{key:5,class:`repository-source`,"aria-label":`Source for ${qe.value.path}`},[(W(!0),G(U,null,H(Ht.value,(e,t)=>(W(),G(`code`,{key:t},[q(`span`,Xc,D(t+1),1),q(`span`,Zc,[(W(!0),G(U,null,H(z(Ms)(e,qe.value.path),(e,t)=>(W(),G(`span`,{key:t,class:T(`syntax-${e.kind}`)},D(e.text),3))),128))])]))),128)),qe.value.truncated?(W(),G(`footer`,Qc,` Preview limited to the first 1 MB. `)):X(``,!0)],8,Yc)):(W(),G(`div`,$c,` Choose a file to inspect its source and comprehension history. `))])],4)],64)):a.value===`queue`?(W(),G(U,{key:1},[q(`div`,el,[o[120]||=q(`div`,null,[q(`h2`,null,`Review Queue`),q(`p`,null,` Latest changes first. Repeated captures of the same files are consolidated so you review the current state once. `)],-1),q(`span`,tl,D(t.value.queue.length)+` waiting`,1)]),q(`div`,nl,[(W(!0),G(U,null,H(t.value.queue,e=>(W(),G(`article`,{key:e.diffId,class:T([`queue-card`,{pending:e.kind===`pending`}])},[q(`span`,{class:T([`priority-light`,e.priority])},null,2),q(`div`,null,[q(`p`,null,D(e.label),1),q(`h3`,null,D(e.files.map(e=>en(e.path)).slice(0,3).join(`, `)),1),q(`small`,null,[Y(D(e.files.length)+` file`+D(e.files.length===1?``:`s`)+` · `+D(e.model??`unattributed`)+` · `,1),q(`time`,{datetime:e.ts,title:new Date(e.ts).toLocaleString()},D($t(e.ts)),9,rl)]),e.supersededCount?(W(),G(`small`,il,` Includes `+D(e.supersededCount)+` earlier overlapping capture`+D(e.supersededCount===1?``:`s`)+`. `,1)):X(``,!0),e.skippedAt?(W(),G(`small`,al,` Skipped for now · returns after active reviews `)):X(``,!0)]),q(`div`,ol,[q(`button`,{disabled:e.kind===`pending`||ae.value===e.diffId,onClick:t=>Jn(e)},D(e.kind===`pending`?`Waiting for quiet…`:`Start ownership session`),9,sl),e.kind===`pending`?X(``,!0):(W(),G(`button`,{key:0,class:`secondary`,disabled:!!ae.value||!!e.skippedAt,onClick:t=>Yn(e)},D(e.skippedAt?`Skipped`:ae.value===e.diffId?`Skipping…`:`Skip for now`),9,cl))])],2))),128)),t.value.queue.length?X(``,!0):(W(),G(`div`,ll,[...o[121]||=[q(`strong`,null,`Everything is owned.`,-1),q(`span`,null,`New staged or unstaged changes from any coding tool will appear here automatically.`,-1)]]))])],64)):a.value===`learn`?(W(),G(U,{key:2},[q(`div`,ul,[o[122]||=q(`div`,null,[q(`h2`,null,`Learn Next`),q(`p`,null,` Understanding is revisited after time passes—or immediately when owned code changes again. `)],-1),q(`span`,dl,D(t.value.summary.learnCount)+` due`,1)]),q(`div`,fl,[(W(!0),G(U,null,H(t.value.learnNext,e=>(W(),G(`article`,{key:e.diffId,class:T([`queue-card`,{upcoming:!e.due,stale:e.stale}])},[q(`span`,{class:T([`priority-light`,e.stale?`high`:e.due?`medium`:`low`])},null,2),q(`div`,null,[q(`p`,null,D(e.label),1),q(`h3`,null,D(e.files.map(e=>en(e.path)).slice(0,3).join(`, `)),1),q(`small`,null,D(e.stale?`Understanding invalidated by a later change`:e.due?`Ready for retrieval practice now`:`Scheduled ${new Date(e.dueAt).toLocaleDateString()}`)+` · last confidence `+D(e.score??`unrated`)+`/3`,1)]),q(`button`,{disabled:!e.due,onClick:t=>Qn(e.diffId)},D(e.due?`Revisit understanding`:`Not due yet`),9,pl)],2))),128)),t.value.learnNext.length?X(``,!0):(W(),G(`div`,ml,[...o[123]||=[q(`strong`,null,`Complete an ownership session first.`,-1),q(`span`,null,`Aperta will schedule the right moment to retrieve that knowledge again.`,-1)]]))])],64)):a.value===`impact`?(W(),G(U,{key:3},[q(`div`,hl,[o[125]||=q(`div`,null,[q(`h2`,null,`Behavioral Impact Graph`),q(`p`,null,` Trace the change from code surface to dependency, test evidence, and unresolved risk. `)],-1),q(`label`,null,[o[124]||=q(`span`,null,`CAPTURE`,-1),Cn(q(`select`,{"onUpdate:modelValue":o[38]||=e=>_e.value=e,onChange:o[39]||=e=>Vn(_e.value)},[(W(!0),G(U,null,H(t.value.diffs.slice().reverse(),e=>(W(),G(`option`,{key:e.id,value:e.id},D(Qt(e.ts))+` · `+D(e.files.map(e=>en(e.path)).slice(0,2).join(`, `)),9,gl))),128))],544),[[po,_e.value]])])]),ve.value?(W(),G(`div`,_l,[J(z(os),{class:`impact-spinner`,"aria-hidden":`true`}),o[126]||=Y(` Tracing repository relationships… `,-1)])):w.value?(W(),G(`div`,vl,[q(`header`,yl,[q(`div`,null,[q(`p`,bl,D(w.value.analyzer),1),q(`h3`,null,D(w.value.headline),1),q(`p`,null,D(w.value.narrative),1)]),q(`span`,{class:T([`risk-chip`,w.value.risk])},D(w.value.risk)+` blast radius`,3)]),q(`section`,xl,[q(`header`,null,[o[127]||=q(`div`,null,[q(`p`,{class:`eyebrow`},`TRUST KERNEL`),q(`h3`,null,`Know what Aperta knows—and how.`)],-1),q(`span`,null,D(w.value.languages.join(` + `)||`Language unknown`),1)]),q(`div`,Sl,[(W(!0),G(U,null,H(Kt.value,e=>(W(),G(`article`,{key:e.id,class:T(e.status)},[q(`span`,Cl,[e.status===`available`?(W(),K(z(Go),{key:0})):e.status===`partial`?(W(),K(z(Wo),{key:1})):(W(),K(z(Ko),{key:2}))]),q(`div`,null,[q(`strong`,null,D(e.label),1),q(`small`,null,D(e.detail),1)])],2))),128))]),o[128]||=q(`p`,null,[q(`b`,null,`Observed`),Y(` comes directly from Git. `),q(`b`,null,`Inferred`),Y(` is a structural lead. `),q(`b`,null,`Proven`),Y(` requires executed evidence. `)],-1)]),q(`div`,wl,[(W(!0),G(U,null,H(w.value.insights,e=>(W(),G(`span`,{key:e},D(e),1))),128))]),E.value?(W(),G(`section`,{key:0,class:T([`proof-engine`,E.value.latest?.status??`ready`])},[q(`div`,Tl,[E.value.latest?.status===`proven`?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):E.value.latest?.status===`regressed`?(W(),K(z(Ss),{key:1,"aria-hidden":`true`})):(W(),K(z(fs),{key:2,"aria-hidden":`true`}))]),q(`div`,El,[q(`p`,Dl,` PROOF ENGINE · `+D(E.value.latest?E.value.latest.status:`READY`),1),q(`h3`,null,D(E.value.latest?.status===`proven`?`Executed evidence supports this change.`:E.value.latest?.status===`regressed`?`The relevant evidence is failing.`:`Turn structural inference into executed evidence.`),1),q(`p`,null,[Y(D(E.value.plan.scope),1),E.value.plan.command?(W(),G(U,{key:0},[o[129]||=Y(` · `,-1),q(`code`,null,D(E.value.plan.command),1)],64)):X(``,!0)]),q(`small`,null,D(E.value.plan.coveredNodeIds.length)+` graph surface`+D(E.value.plan.coveredNodeIds.length===1?``:`s`)+` can receive proof · `+D(E.value.plan.proposedProbes.length)+` missing probe`+D(E.value.plan.proposedProbes.length===1?``:`s`),1)]),q(`div`,Ol,[q(`button`,{disabled:!E.value.plan.available||be.value,onClick:Rn},D(be.value?`${xe.value?.state??`Starting`} evidence…`:E.value.latest?`Run proof again`:`Run relevant proof`),9,kl),be.value?(W(),G(`button`,{key:0,class:`cancel-job`,onClick:o[40]||=e=>Bn(xe.value)},` Cancel job`)):E.value.latest?(W(),G(`button`,{key:1,class:`output-toggle`,onClick:o[41]||=e=>Ce.value=!Ce.value},D(Ce.value?`Hide`:`Inspect`)+` output `,1)):X(``,!0)]),Se.value?(W(),G(`div`,Al,D(Se.value),1)):X(``,!0),E.value.latest?(W(),G(`div`,jl,[q(`span`,null,D(E.value.latest.runner),1),q(`strong`,null,D(E.value.latest.status),1),q(`small`,null,D((E.value.latest.durationMs/1e3).toFixed(1))+`s · exit `+D(E.value.latest.exitCode??`unknown`)+` · `+D(new Date(E.value.latest.ts).toLocaleString()),1)])):X(``,!0),Ce.value&&E.value.latest?(W(),G(`pre`,Ml,D(E.value.latest.output||`The runner completed without console output.`),1)):X(``,!0)],2)):X(``,!0),we.value?.probes.length?(W(),G(`section`,Nl,[q(`header`,null,[o[130]||=q(`div`,null,[q(`p`,{class:`eyebrow`},`PROBE LAB`),q(`h3`,null,`Resolve what the existing suite cannot prove.`),q(`p`,null,` Generated tests run in a disposable copy. Your repository remains untouched. `)],-1),q(`span`,null,D(we.value.probes.filter(e=>e.latest?.status===`proven`).length)+`/`+D(we.value.probes.length)+` proven`,1)]),q(`div`,Pl,[(W(!0),G(U,null,H(we.value.probes,e=>(W(),G(`button`,{key:e.id,class:T([`probe-card`,e.latest?.status??e.readiness,{active:I.value?.id===e.id}]),onClick:t=>{Te.value=e.id,ke.value=!1}},[q(`span`,Il,D(e.latest?.status??(e.readiness===`ready`?`ready`:`needs context`)),1),q(`strong`,null,D(e.label),1),q(`small`,null,D(e.hypothesis),1),q(`em`,null,D(e.framework),1)],10,Fl))),128))]),I.value?(W(),G(`article`,Ll,[q(`div`,Rl,[q(`span`,{class:T([`probe-state`,I.value.latest?.status??I.value.readiness])},D(I.value.latest?.status??I.value.readiness),3),q(`h3`,null,D(I.value.label),1),q(`p`,null,D(I.value.why),1),q(`dl`,null,[o[133]||=q(`div`,null,[q(`dt`,null,`Isolation`),q(`dd`,null,` Disposable project copy · minimized environment · network not isolated `)],-1),q(`div`,null,[o[131]||=q(`dt`,null,`Generated file`,-1),q(`dd`,null,D(I.value.generatedPath),1)]),q(`div`,null,[o[132]||=q(`dt`,null,`Command`,-1),q(`dd`,null,D(I.value.command??`Waiting for a concrete protected route`),1)])]),q(`button`,{disabled:I.value.readiness!==`ready`||!!Ee.value,onClick:o[42]||=e=>Ln(I.value)},D(Ee.value===I.value.id?`${De.value?.state??`Starting`} probe…`:I.value.latest?`Run probe again`:`Run isolated probe`),9,zl),Ee.value?(W(),G(`button`,{key:0,class:`cancel-job`,onClick:o[43]||=e=>Bn(De.value)},` Cancel job`)):I.value.latest?(W(),G(`button`,{key:1,class:`probe-output-toggle`,onClick:o[44]||=e=>ke.value=!ke.value},D(ke.value?`Show source`:`Show result`),1)):X(``,!0)]),q(`div`,Bl,[q(`header`,null,[q(`span`,null,D(ke.value&&I.value.latest?`EXECUTION RESULT`:`GENERATED TEST PREVIEW`),1),q(`small`,null,D(ke.value&&I.value.latest?`${(I.value.latest.durationMs/1e3).toFixed(1)}s · exit ${I.value.latest.exitCode??`unknown`}`:`Nothing written to your repository`),1)]),ke.value&&I.value.latest?(W(),G(`pre`,Vl,D(I.value.latest.output||`The probe passed without console output.`),1)):(W(),G(`div`,Hl,[(W(!0),G(U,null,H(I.value.source.split(`
|
|
11
|
+
`),(e,t)=>(W(),G(`code`,{key:t},[q(`span`,Ul,D(t+1),1),q(`span`,Wl,[(W(!0),G(U,null,H(z(Ms)(e,I.value.generatedPath),(e,t)=>(W(),G(`span`,{key:t,class:T(`syntax-${e.kind}`)},D(e.text),3))),128))])]))),128))]))])])):X(``,!0),Oe.value?(W(),G(`div`,Gl,D(Oe.value),1)):X(``,!0)])):X(``,!0),q(`div`,Kl,[q(`section`,ql,[q(`header`,null,[q(`span`,null,[J(z(es),{"aria-hidden":`true`})]),o[134]||=q(`div`,null,[q(`strong`,null,`Changed behavior`),q(`small`,null,`Added, modified, or removed`)],-1)]),(W(!0),G(U,null,H(It.value,e=>(W(),G(`button`,{key:e.id,class:T([`impact-node`,e.status,jn(e.id),{active:zt.value?.id===e.id}]),onClick:t=>ye.value=e.id},[q(`span`,Yl,[(W(),K(fr(Nn(e.kind)),{"aria-hidden":`true`})),q(`span`,null,D(e.kind),1)]),q(`strong`,null,D(e.label),1),q(`em`,{class:T([`evidence-badge`,Mn(e)])},D(Mn(e)),3),q(`small`,null,D(e.detail),1)],10,Jl))),128)),It.value.length?X(``,!0):(W(),G(`div`,Xl,` No code symbols detected `))]),q(`div`,Zl,[J(z(zo))]),q(`section`,Ql,[q(`header`,null,[q(`span`,null,[J(z(ns),{"aria-hidden":`true`})]),o[135]||=q(`div`,null,[q(`strong`,null,`Dependencies & callers`),q(`small`,null,`Repository blast radius`)],-1)]),(W(!0),G(U,null,H(Lt.value,e=>(W(),G(`button`,{key:e.id,class:T([`impact-node`,e.status,jn(e.id),{active:zt.value?.id===e.id}]),onClick:t=>ye.value=e.id},[q(`span`,eu,[(W(),K(fr(Nn(e.kind)),{"aria-hidden":`true`})),q(`span`,null,D(e.kind),1)]),q(`strong`,null,D(e.label),1),q(`em`,{class:T([`evidence-badge`,Mn(e)])},D(Mn(e)),3),q(`small`,null,D(e.detail),1)],10,$l))),128)),Lt.value.length?X(``,!0):(W(),G(`div`,tu,` No external caller found in tracked source `))]),q(`div`,nu,[J(z(zo))]),q(`section`,ru,[q(`header`,null,[q(`span`,null,[J(z(ys),{"aria-hidden":`true`})]),o[136]||=q(`div`,null,[q(`strong`,null,`Proof & unknowns`),q(`small`,null,`What evidence can defend`)],-1)]),(W(!0),G(U,null,H(Rt.value,e=>(W(),G(`button`,{key:e.id,class:T([`impact-node`,e.status,jn(e.id),{active:zt.value?.id===e.id}]),onClick:t=>ye.value=e.id},[q(`span`,au,[J(z(Qo),{"aria-hidden":`true`}),o[137]||=q(`span`,null,`test`,-1)]),q(`strong`,null,D(e.label),1),q(`em`,{class:T([`evidence-badge`,Mn(e)])},D(Mn(e)),3),q(`small`,null,D(e.detail),1)],10,iu))),128)),(W(!0),G(U,null,H(w.value.unproven,e=>(W(),G(`article`,{key:e,class:`unproven-node`},[q(`span`,ou,[J(z(Wo),{"aria-hidden":`true`}),o[138]||=Y(`NEEDS PROBE`,-1)]),q(`strong`,null,D(e),1)]))),128))])]),zt.value?(W(),G(`aside`,su,[q(`div`,null,[q(`span`,{class:T([`node-status`,zt.value.status])},D(zt.value.status),3),q(`h3`,null,D(zt.value.label),1),q(`p`,null,D(zt.value.path??zt.value.kind)+` · `+D(zt.value.detail),1),q(`p`,cu,[q(`b`,null,D(Mn(zt.value))+` via `+D(Mn(zt.value)===`proven`?`runtime`:zt.value.evidence.source),1),Y(` · `+D(Pn(zt.value)),1)])]),q(`section`,null,[o[139]||=q(`small`,null,`CONNECTED RELATIONSHIPS`,-1),(W(!0),G(U,null,H(F.value,e=>(W(),G(`button`,{key:`${e.from}-${e.to}-${e.kind}`,onClick:t=>ye.value=e.node.id},[q(`b`,null,D(e.kind),1),q(`span`,null,D(e.node.label),1),q(`em`,{title:e.evidence.detail},D(e.evidence.level),9,uu)],8,lu))),128)),F.value.length?X(``,!0):(W(),G(`p`,du,` No direct edge detected. This is still a change surface worth verifying. `))])])):X(``,!0),w.value.staleNotes.length?(W(),G(`div`,fu,[o[140]||=q(`strong`,null,`Prior understanding may be stale`,-1),q(`p`,null,D(w.value.staleNotes.length)+` saved explanation`+D(w.value.staleNotes.length===1?``:`s`)+` mention files changed again. Re-verify before relying on them. `,1)])):X(``,!0),q(`button`,{class:`impact-review`,onClick:o[45]||=e=>Qn(_e.value)},[o[141]||=Y(` Turn this graph into an ownership session `,-1),J(z(zo),{"aria-hidden":`true`})])])):(W(),G(`div`,pu,[...o[142]||=[q(`strong`,null,`No captured change to trace.`,-1),q(`span`,null,`Make a code change and Aperta will build its behavioral graph.`,-1)]]))],64)):a.value===`proofgraph`?(W(),G(U,{key:4},[q(`div`,mu,[o[143]||=q(`div`,null,[q(`p`,{class:`eyebrow`},`REPOSITORY MEMORY`),q(`h2`,null,`Behavioral Proof Graph`),q(`p`,null,`What changed, what proves it, who understands it, and which evidence became stale.`)],-1),q(`button`,{disabled:xt.value,onClick:rr},[J(z(ms),{class:`button-icon`,"aria-hidden":`true`}),Y(` `+D(xt.value?`Rebuilding…`:`Refresh graph`),1)],8,hu)]),St.value?(W(),G(`div`,gu,D(St.value),1)):xt.value&&!bt.value?(W(),G(`div`,_u,[...o[144]||=[q(`div`,{class:`spinner`},null,-1),Y(` Connecting durable repository evidence… `,-1)]])):bt.value?(W(),G(`div`,vu,[q(`section`,yu,[q(`article`,null,[q(`strong`,null,D(bt.value.summary.claims),1),o[145]||=q(`span`,null,`behavior claims`,-1)]),q(`article`,bu,[q(`strong`,null,D(bt.value.summary.proven),1),o[146]||=q(`span`,null,`executable proof`,-1)]),q(`article`,xu,[q(`strong`,null,D(bt.value.summary.understood),1),o[147]||=q(`span`,null,`human understood`,-1)]),q(`article`,Su,[q(`strong`,null,D(bt.value.summary.stale),1),o[148]||=q(`span`,null,`stale evidence`,-1)]),q(`article`,null,[q(`strong`,null,D(bt.value.summary.coveredFiles),1),o[149]||=q(`span`,null,`connected files`,-1)])]),q(`div`,Cu,[(W(),G(U,null,H([`all`,`proven`,`understood`,`supported`,`stale`,`regressed`,`unproven`],e=>q(`button`,{key:e,class:T({active:Ct.value===e}),onClick:t=>Ct.value=e},[Y(D(e),1),q(`span`,null,D(e===`all`?bt.value.summary.claims:bt.value.summary[e]),1)],10,wu)),64))]),wt.value.length?(W(),G(`section`,Tu,[(W(!0),G(U,null,H(wt.value,e=>(W(),G(`article`,{key:e.id,class:T([`proof-claim`,e.status])},[q(`header`,null,[q(`span`,{class:T([`proof-status-dot`,e.status]),"aria-hidden":`true`},null,2),q(`div`,null,[q(`p`,Eu,D(e.source===`agent-run`?`AGENT BEHAVIOR`:`CAPTURED CHANGE`),1),q(`h3`,null,D(e.title),1)]),q(`span`,{class:T([`proof-status-chip`,e.status])},D(e.status),3)]),J(Ks,{class:`proof-claim-detail`,source:e.detail},null,8,[`source`]),q(`div`,Du,[(W(!0),G(U,null,H(e.files,e=>(W(),G(`button`,{key:e,type:`button`,onClick:t=>{a.value=`map`,gn(e)}},D(e),9,Ou))),128)),e.files.length?X(``,!0):(W(),G(`span`,ku,`Repository observation`))]),e.invalidatedAt?(W(),G(`div`,Au,[J(z(Ss),{class:`button-icon`,"aria-hidden":`true`}),q(`div`,null,[o[150]||=q(`strong`,null,`Evidence invalidated by a later change`,-1),q(`span`,null,D(e.invalidatedBy)+` changed `+D(e.invalidatedFiles.join(`, `))+` on `+D(Qt(e.invalidatedAt))+`.`,1)])])):X(``,!0),e.evidence.length?(W(),G(`details`,ju,[q(`summary`,null,D(e.evidence.length)+` evidence record`+D(e.evidence.length===1?``:`s`),1),q(`ul`,null,[(W(!0),G(U,null,H(e.evidence,e=>(W(),G(`li`,{key:e.id},[q(`span`,{class:T([`evidence-kind`,e.kind])},D(e.kind),3),q(`div`,null,[q(`strong`,null,D(e.label),1),q(`p`,null,D(e.detail),1)]),q(`time`,null,D(Qt(e.ts)),1)]))),128))])])):X(``,!0),q(`footer`,null,[q(`span`,null,D(Qt(e.ts)),1),e.assuranceAt?(W(),G(`span`,Mu,`Last assured `+D(Qt(e.assuranceAt)),1)):X(``,!0)])],2))),128))])):(W(),G(`div`,Nu,[...o[151]||=[q(`strong`,null,`No claims match this filter.`,-1),q(`span`,null,`Run an agent task, execute proof, or complete an ownership session to grow repository memory.`,-1)]]))])):X(``,!0)],64)):a.value===`journal`?(W(),G(U,{key:5},[q(`div`,Pu,[o[152]||=q(`div`,null,[q(`h2`,null,`Learning Journal`),q(`p`,null,`Your explanations are durable, searchable project memory.`)],-1),Cn(q(`input`,{"onUpdate:modelValue":o[46]||=e=>me.value=e,type:`search`,placeholder:`Search notes, files, or tools…`,"aria-label":`Search learning journal`},null,512),[[lo,me.value]])]),q(`div`,Fu,[(W(!0),G(U,null,H(jt.value,e=>(W(),G(`button`,{key:e.diffId,class:`journal-card`,onClick:t=>Qn(e.diffId)},[q(`div`,Lu,[q(`span`,null,D(Qt(e.completions?.[0]?.ts??e.evidence?.[0]?.ts??e.notes?.[0]?.ts??e.ts)),1),q(`strong`,null,D(e.model??e.authorship),1),q(`em`,{class:T(e.demonstrated?`verified`:`claimed`)},D(e.demonstrated?`Demonstrated`:`Reviewed`),3),q(`b`,{class:T(qt(e.score).tone)},D(e.score??`—`)+`/3`,3)]),q(`blockquote`,null,D(hn(e)),1),q(`div`,Ru,D(e.files.map(e=>e.path).slice(0,4).join(` · `)),1),q(`small`,null,D(e.notes.length)+` note`+D(e.notes.length===1?``:`s`)+` · `+D(e.evidence?.at(0)?.completedCount??0)+` required evidence answers · `+D(Math.max(1,Math.round(e.durationMs/6e4)))+` min reviewed`,1)],8,Iu))),128)),jt.value.length?X(``,!0):(W(),G(`div`,zu,[q(`strong`,null,D(me.value?`No sessions match.`:`Your journal starts after the first review.`),1),o[153]||=q(`span`,null,`Every completed ownership session remains available here—even without a written note.`,-1)]))])],64)):a.value===`git`?(W(),G(U,{key:6},[q(`div`,Bu,[q(`div`,null,[o[154]||=q(`p`,{class:`eyebrow`},`WORKING TREE`,-1),o[155]||=q(`h2`,null,`Git Changes`,-1),q(`p`,null,`Live staged, unstaged, and untracked repository state on `+D(st.value?.branch??t.value.branch)+`.`,1)]),q(`button`,{class:`git-refresh`,disabled:ct.value,onClick:Er},[J(z(ms),{class:`action-icon`,"aria-hidden":`true`}),Y(D(ct.value?`Refreshing…`:`Refresh`),1)],8,Vu)]),lt.value?(W(),G(`div`,Hu,D(lt.value),1)):ct.value&&!st.value?(W(),G(`div`,Uu,[...o[156]||=[q(`div`,{class:`spinner`},null,-1),Y(`Reading working tree…`,-1)]])):(W(),G(`div`,Wu,[(W(!0),G(U,null,H([{key:`staged`,title:`Staged`,copy:`Ready for the next commit`,files:st.value?.staged??[]},{key:`unstaged`,title:`Unstaged`,copy:`Tracked files changed in the working tree`,files:st.value?.unstaged??[]},{key:`untracked`,title:`Untracked`,copy:`New files not yet added to Git`,files:st.value?.untracked??[]}],e=>(W(),G(`section`,{key:e.key,class:T([`git-group`,e.key])},[q(`header`,null,[q(`div`,null,[q(`h3`,null,D(e.title),1),q(`p`,null,D(e.copy),1)]),q(`b`,null,D(e.files.length),1)]),(W(!0),G(U,null,H(e.files,t=>(W(),G(`button`,{key:`${e.key}-${t.path}`,onClick:e=>{a.value=`map`,gn(t.path)}},[q(`span`,{class:T([`git-status-code`,e.key])},D(t.code),3),q(`span`,null,[q(`strong`,null,D(en(t.path)),1),q(`small`,null,D(tn(t.path)),1)]),q(`em`,null,D(t.status),1)],8,Gu))),128)),e.files.length?X(``,!0):(W(),G(`div`,Ku,[J(z(Go),{class:`action-icon`,"aria-hidden":`true`}),Y(`Nothing `+D(e.key),1)]))],2))),128))]))],64)):a.value===`activity`?(W(),G(U,{key:7},[q(`div`,qu,[o[157]||=q(`div`,null,[q(`h2`,null,`Capture Activity`),q(`p`,null,` Every observer decision is visible—what happened, on which branch, and why. `)],-1),q(`span`,{class:T([`engine-badge`,t.value.observer?.mode])},D(t.value.observer?.mode===`daemon`?`Background engine`:`Dashboard fallback`),3)]),q(`div`,Ju,[(W(!0),G(U,null,H(t.value.observerActivity,e=>(W(),G(`article`,{key:`${e.ts}-${e.type}`,class:T([`activity-row`,e.type])},[q(`span`,Yu,[(W(),K(fr(pn(e)),{class:`activity-glyph-icon`,"aria-hidden":`true`}))]),q(`div`,null,[q(`header`,null,[q(`strong`,null,D(e.type),1),q(`span`,null,D(new Date(e.ts).toLocaleString()),1)]),q(`p`,null,D(e.message),1),q(`small`,null,[Y(D(e.mode)+` · `+D(e.branch??`branch pending`),1),e.files?.length?(W(),G(U,{key:0},[Y(` · `+D(e.files.length)+` files · `+D(e.files.reduce((e,t)=>e+t.added+t.removed,0))+` lines`,1)],64)):X(``,!0)])]),e.diffId?(W(),G(`button`,{key:0,onClick:t=>Qn(e.diffId)},` Open capture `,8,Xu)):X(``,!0)],2))),128)),t.value.observerActivity.length?X(``,!0):(W(),G(`div`,Zu,[...o[158]||=[q(`strong`,null,`No observer activity yet.`,-1),q(`span`,null,`Activity will appear when the engine starts or the repository changes.`,-1)]]))])],64)):a.value===`harness`?(W(),G(U,{key:8},[q(`div`,Qu,[o[159]||=q(`div`,null,[q(`p`,{class:`eyebrow`},`HARNESS INTELLIGENCE`),q(`h2`,null,`Reliability you can improve, not merely observe.`),q(`p`,null,` Aperta measures the model and harness together while keeping raw prompts and evidence in private user storage outside Git. `)],-1),q(`button`,{disabled:vt.value,onClick:or},[J(z(ms),{class:`button-icon`,"aria-hidden":`true`}),Y(` `+D(vt.value?`Refreshing…`:`Refresh signals`),1)],8,$u)]),yt.value?(W(),G(`div`,ed,D(yt.value),1)):vt.value&&!P.value?(W(),G(`div`,td,[...o[160]||=[q(`div`,{class:`spinner`},null,-1),Y(` Building the local harness baseline… `,-1)]])):P.value?(W(),G(`div`,nd,[q(`section`,rd,[(W(!0),G(U,null,H(P.value.signals,e=>(W(),G(`article`,{key:e.title,class:T(e.level)},[q(`span`,null,[(W(),K(fr(mn(e)),{class:`harness-signal-icon`,"aria-hidden":`true`}))]),q(`div`,null,[q(`strong`,null,D(e.title),1),q(`p`,null,D(e.detail),1)])],2))),128))]),q(`section`,id,[q(`article`,null,[o[161]||=q(`small`,null,`FIRST-PASS SUCCESS`,-1),q(`strong`,null,D(Xt(P.value.summary.firstPassRate)),1),o[162]||=q(`p`,null,`Passed without repair`,-1)]),q(`article`,null,[o[163]||=q(`small`,null,`REPAIR RECOVERY`,-1),q(`strong`,null,D(Xt(P.value.summary.repairRate)),1),o[164]||=q(`p`,null,`Failed first, then recovered`,-1)]),q(`article`,null,[o[165]||=q(`small`,null,`TOOL RELIABILITY`,-1),q(`strong`,null,D(Xt(P.value.summary.toolReliability)),1),o[166]||=q(`p`,null,`Successful bounded actions`,-1)]),q(`article`,null,[o[167]||=q(`small`,null,`PROMOTION RATE`,-1),q(`strong`,null,D(Xt(P.value.summary.promotionRate)),1),o[168]||=q(`p`,null,`Reviewable patches applied`,-1)]),q(`article`,null,[o[169]||=q(`small`,null,`TRUSTED KEEP RATE`,-1),q(`strong`,null,D(Xt(P.value.summary.keepRate)),1),q(`p`,null,D(P.value.summary.sampledLines?`${P.value.summary.keptLines}/${P.value.summary.sampledLines} added lines remain`:`Begins after promotion`),1)]),q(`article`,null,[o[170]||=q(`small`,null,`MODEL LATENCY`,-1),q(`strong`,null,D(Zt(P.value.summary.averageProviderLatencyMs)),1),o[171]||=q(`p`,null,`Average provider action`,-1)])]),q(`div`,ad,[q(`section`,od,[q(`header`,null,[o[172]||=q(`div`,null,[q(`h3`,null,`Model × harness performance`),q(`p`,null,` Local outcomes by provider and model—not a generic leaderboard. `)],-1),q(`span`,null,D(P.value.summary.runs)+` runs`,1)]),q(`div`,sd,[o[173]||=q(`div`,{class:`health-table-head`,role:`row`},[q(`span`,null,`Model`),q(`span`,null,`Complete`),q(`span`,null,`First pass`),q(`span`,null,`Repair`),q(`span`,null,`Tools`),q(`span`,null,`Latency`)],-1),(W(!0),G(U,null,H(P.value.models,e=>(W(),G(`div`,{key:e.key,class:`health-table-row`,role:`row`},[q(`strong`,null,[q(`small`,null,D(e.provider),1),Y(D(e.model),1)]),q(`span`,null,D(Xt(e.completionRate)),1),q(`span`,null,D(Xt(e.firstPassRate)),1),q(`span`,null,D(Xt(e.repairRate)),1),q(`span`,null,D(Xt(e.toolReliability)),1),q(`span`,null,D(Zt(e.averageProviderLatencyMs)),1)]))),128)),P.value.models.length?X(``,!0):(W(),G(`div`,cd,` Run an agent task to establish the first model baseline. `))])]),q(`section`,ld,[o[174]||=q(`header`,null,[q(`div`,null,[q(`h3`,null,`Tool reliability`),q(`p`,null,` Errors remain attributed to the tool and model that produced them. `)])],-1),(W(!0),G(U,null,H(P.value.tools,e=>(W(),G(`div`,{key:e.action,class:`tool-health-row`},[q(`div`,null,[q(`strong`,null,D(e.action),1),q(`span`,null,D(e.calls)+` calls · `+D(e.errors)+` errors · `+D(Zt(e.averageLatencyMs)),1)]),q(`b`,null,D(Xt(e.reliability)),1),q(`i`,null,[q(`span`,{style:ge({width:Xt(e.reliability)})},null,4)])]))),128)),P.value.tools.length?X(``,!0):(W(),G(`div`,ud,` No bounded tool actions recorded yet. `))]),q(`section`,dd,[o[175]||=q(`header`,null,[q(`div`,null,[q(`h3`,null,`Error taxonomy`),q(`p`,null,` Unknown failures are harness defects; expected failures stay measurable. `)])],-1),P.value.errors.length?(W(),G(`div`,fd,[(W(!0),G(U,null,H(P.value.errors,e=>(W(),G(`article`,{key:e.class,class:T({unknown:e.class===`HarnessBug`})},[q(`strong`,null,D(e.count),1),q(`span`,null,D(e.class),1),q(`small`,null,D(Xt(e.share))+` of errors`,1)],2))),128))])):(W(),G(`div`,pd,` No errors recorded in retained runs. `))]),q(`section`,md,[o[176]||=q(`header`,null,[q(`div`,null,[q(`h3`,null,`Recent runs`),q(`p`,null,` Fast feedback for regressions after a prompt, tool, or model change. `)])],-1),q(`ol`,null,[(W(!0),G(U,null,H(P.value.recent,e=>(W(),G(`li`,{key:e.id},[q(`span`,{class:T(e.status)},null,2),q(`div`,null,[q(`strong`,null,D(e.intent),1),q(`small`,null,D(e.provider)+` · `+D(e.model)+` · `+D(new Date(e.ts).toLocaleString()),1)]),q(`div`,hd,[e.firstPass?(W(),G(`em`,gd,`first pass`)):X(``,!0),e.repaired?(W(),G(`em`,_d,`repaired`)):X(``,!0),e.promoted?(W(),G(`em`,vd,`promoted`)):X(``,!0),(W(!0),G(U,null,H(e.errors,e=>(W(),G(`em`,{key:e,class:`error`},D(e),1))),128)),q(`b`,null,D(e.status),1)])]))),128))])])]),q(`footer`,yd,[q(`span`,null,[J(z(ys),{class:`harness-privacy-icon`,"aria-hidden":`true`})]),q(`p`,null,[o[177]||=q(`strong`,null,`Local intelligence boundary`,-1),Y(D(P.value.privacy),1)]),q(`small`,null,`Updated `+D(new Date(P.value.generatedAt).toLocaleTimeString()),1)])])):X(``,!0)],64)):a.value===`agents`?(W(),G(U,{key:9},[at.value?(W(),G(`div`,bd,D(at.value),1)):X(``,!0),q(`div`,{class:T([`agent-ide`,{"pane-closed":!re.value}]),style:ge({"--agent-pane-width":`${y.value}px`})},[q(`main`,xd,[q(`header`,Sd,[q(`div`,null,[o[178]||=q(`p`,{class:`eyebrow`},`AGENT WORKBENCH`,-1),q(`h2`,null,D(Ut.value?Ut.value.title:`Build with an agent. Keep ownership.`),1)]),q(`div`,Cd,[q(`button`,{class:`workbench-settings-link`,type:`button`,onClick:ur},[J(z(vs),{"aria-hidden":`true`}),o[179]||=Y(` Model settings `,-1)]),re.value?X(``,!0):(W(),G(`button`,{key:0,onClick:o[47]||=e=>Tn(!0)},` Show agent pane `))])]),R.value?(W(),G(`section`,wd,[q(`header`,Td,[q(`div`,null,[R.value.intent===Ut.value?.title?X(``,!0):(W(),G(`h3`,Ed,D(R.value.intent),1)),q(`p`,Dd,D(R.value.provider)+` · `+D(R.value.model),1)]),q(`span`,{class:T([`agent-run-status`,R.value.status])},D(R.value.status),3)]),q(`div`,Od,[R.value.status===`no-changes`?X(``,!0):(W(),G(`button`,{key:0,role:`tab`,"aria-selected":N.value===`understand`,class:T({active:N.value===`understand`,complete:R.value.understanding?.completedAt}),onClick:o[48]||=e=>N.value=`understand`},[o[180]||=Y(` Understand `,-1),q(`b`,null,[R.value.understanding?.completedAt?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):(W(),K(z(qo),{key:1,"aria-hidden":`true`}))])],10,kd)),R.value.status===`no-changes`?X(``,!0):(W(),G(`button`,{key:1,role:`tab`,"aria-selected":N.value===`plan`,class:T([`plan-tab`,R.value.contract.status,{active:N.value===`plan`}]),onClick:o[49]||=e=>N.value=`plan`},[o[181]||=Y(` Plan `,-1),q(`b`,null,D(R.value.contract.criteria.filter(e=>e.status===`proven`).length)+`/`+D(R.value.contract.criteria.length),1)],10,Ad)),q(`button`,{role:`tab`,"aria-selected":N.value===`changes`,class:T({active:N.value===`changes`}),onClick:o[50]||=e=>N.value=`changes`},[Y(D(R.value.status===`no-changes`?`Response`:`Changes`)+` `,1),R.value.status===`no-changes`?X(``,!0):(W(),G(`b`,Md,D(R.value.files.length),1))],10,jd),R.value.status!==`no-changes`||R.value.verification.baseline||R.value.verification.attempts.length?(W(),G(`button`,{key:2,role:`tab`,"aria-selected":N.value===`checks`,class:T([`checks-tab`,R.value.verification.status,{active:N.value===`checks`}]),onClick:o[51]||=e=>N.value=`checks`},[o[182]||=Y(` Checks `,-1),q(`b`,null,[R.value.verification.status===`passed`?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):R.value.verification.status===`failed`?(W(),K(z(Wo),{key:1,"aria-hidden":`true`})):(W(),K(z(Ko),{key:2,"aria-hidden":`true`}))])],10,Nd)):X(``,!0),q(`button`,{role:`tab`,"aria-selected":N.value===`activity`,class:T({active:N.value===`activity`}),onClick:o[52]||=e=>N.value=`activity`},[o[183]||=Y(` Activity `,-1),q(`b`,null,D(R.value.actions.length),1)],10,Pd)]),N.value===`understand`?(W(),G(`section`,Fd,[q(`header`,null,[q(`div`,null,[o[184]||=q(`p`,{class:`eyebrow`},`POST-RUN UNDERSTANDING BRIEF`,-1),q(`h3`,null,D(un(R.value)),1),o[185]||=q(`p`,null,` Trace the result back to repository evidence before you treat the change as understood. `,-1)]),q(`span`,{class:T({complete:R.value.understanding?.completedAt})},D(R.value.understanding?.completedAt?`recorded`:`open`),3)]),R.value.understanding?(W(),G(`div`,Id,[q(`article`,null,[o[186]||=q(`h4`,null,`What proves it`,-1),q(`ul`,null,[(W(!0),G(U,null,H(R.value.understanding.proof,e=>(W(),G(`li`,{key:e},D(nn(e)),1))),128))])]),q(`article`,null,[o[187]||=q(`h4`,null,`What remains uncertain`,-1),q(`ul`,null,[(W(!0),G(U,null,H(R.value.understanding.uncertainties,e=>(W(),G(`li`,{key:e},D(nn(e)),1))),128))])]),q(`article`,Ld,[q(`div`,null,[o[188]||=q(`div`,null,[q(`h4`,null,`Demonstrate ownership`),q(`p`,null,` These answers are retained with the run as durable learning evidence. `)],-1),q(`span`,null,D(R.value.evidenceGraph?.nodes.length??0)+` nodes · `+D(R.value.evidenceGraph?.edges.length??0)+` links `,1)]),(W(!0),G(U,null,H(R.value.understanding.questions,e=>(W(),G(`label`,{key:e.id},[q(`span`,null,[q(`b`,null,D(e.label),1),Y(` `+D(e.text),1)]),Cn(q(`textarea`,{"onUpdate:modelValue":t=>gt.value[e.id]=t,rows:`3`,placeholder:`Explain the ${e.label.toLowerCase()} from your own understanding…`},null,8,Rd),[[lo,gt.value[e.id]]])]))),128)),q(`button`,{class:`understanding-save`,disabled:_t.value,onClick:Nr},D(_t.value?`Saving…`:`Save understanding evidence`),9,zd)])])):X(``,!0)])):N.value===`plan`?(W(),G(`section`,Bd,[q(`header`,{class:T(R.value.promotion.status)},[q(`div`,null,[q(`p`,Vd,` EXECUTION CONTRACT · `+D(R.value.contract.source),1),q(`h3`,null,D(R.value.contract.goal),1),q(`p`,null,D(R.value.promotion.reason),1)]),q(`span`,null,D(R.value.promotion.status),1)],2),q(`section`,Hd,[q(`div`,Ud,[J(z(bs),{class:`nav-icon`,"aria-hidden":`true`})]),q(`div`,null,[q(`p`,Wd,`APERTA SKILL · V`+D(R.value.skill.version),1),q(`h4`,null,D(R.value.skill.label),1),q(`p`,null,D(R.value.skill.description),1)]),q(`span`,{class:T([`skill-mode`,R.value.skill.mode])},D(R.value.skill.mode),3),q(`details`,null,[q(`summary`,null,D(R.value.skill.allowedTools.length)+` allowed capabilities · `+D(R.value.skill.proof.length)+` proof requirements`,1),q(`div`,Gd,[q(`section`,null,[o[189]||=q(`strong`,null,`Allowed capabilities`,-1),q(`div`,null,[(W(!0),G(U,null,H(R.value.skill.allowedTools,e=>(W(),G(`code`,{key:e},D(e),1))),128))])]),q(`section`,null,[o[190]||=q(`strong`,null,`Learning objectives`,-1),q(`ul`,null,[(W(!0),G(U,null,H(R.value.skill.learningObjectives,e=>(W(),G(`li`,{key:e},D(e),1))),128))])])])])]),q(`div`,Kd,[q(`article`,qd,[o[192]||=q(`h4`,null,`Plan`,-1),q(`ol`,null,[(W(!0),G(U,null,H(R.value.contract.steps,(e,t)=>(W(),G(`li`,{key:e.id,class:T(e.status)},[q(`span`,null,[e.status===`complete`?(W(),K(z(Uo),{key:0,"aria-hidden":`true`})):e.status===`blocked`?(W(),K(z(Wo),{key:1,"aria-hidden":`true`})):(W(),G(U,{key:2},[Y(D(t+1),1)],64))]),q(`div`,null,[q(`strong`,null,D(e.title),1),q(`p`,null,D(e.detail),1)])],2))),128))]),R.value.contract.constraints.length?(W(),G(`details`,Jd,[o[191]||=q(`summary`,null,`Constraints`,-1),q(`ul`,null,[(W(!0),G(U,null,H(R.value.contract.constraints,e=>(W(),G(`li`,{key:e},D(e),1))),128))])])):X(``,!0)]),q(`article`,Yd,[o[193]||=q(`h4`,null,`Acceptance evidence`,-1),(W(!0),G(U,null,H(R.value.contract.criteria,e=>(W(),G(`div`,{key:e.id,class:T([`criterion-row`,e.status])},[q(`span`,null,[e.status===`proven`?(W(),K(z(Uo),{key:0,"aria-hidden":`true`})):e.status===`failed`?(W(),K(z(Wo),{key:1,"aria-hidden":`true`})):e.status===`supported`?(W(),K(z(Vo),{key:2,"aria-hidden":`true`})):(W(),K(z(Ko),{key:3,"aria-hidden":`true`}))]),q(`div`,null,[q(`header`,null,[q(`strong`,null,D(e.text),1),q(`em`,null,D(e.status),1)]),q(`small`,null,D(e.method)+` evidence`,1),e.evidence.length?(W(),G(`ul`,Xd,[(W(!0),G(U,null,H(e.evidence,e=>(W(),G(`li`,{key:e},D(e),1))),128))])):X(``,!0)])],2))),128))]),q(`aside`,Zd,[o[195]||=q(`h4`,null,`Independent harness critique`,-1),(W(!0),G(U,null,H(R.value.critique?.findings??[],e=>(W(),G(`div`,{key:e.title,class:T(e.severity)},[q(`span`,null,[e.severity===`blocker`?(W(),K(z(Wo),{key:0,"aria-hidden":`true`})):e.severity===`warning`?(W(),K(z(Ss),{key:1,"aria-hidden":`true`})):(W(),K(z(Go),{key:2,"aria-hidden":`true`}))]),q(`div`,null,[q(`strong`,null,D(e.title),1),q(`p`,null,D(e.detail),1)])],2))),128)),R.value.critique?X(``,!0):(W(),G(`div`,Qd,[q(`span`,null,[J(z(Xo),{"aria-hidden":`true`})]),o[194]||=q(`div`,null,[q(`strong`,null,`Critique pending`),q(`p`,null,` Aperta evaluates the final patch after execution and verification complete. `)],-1)]))])])])):N.value===`changes`?(W(),G(U,{key:2},[q(`div`,$d,[q(`div`,null,[(W(!0),G(U,null,H(R.value.files,e=>(W(),G(`button`,{key:e.path,class:T({active:Gt.value?.path===e.path}),title:e.path,onClick:t=>pt.value=e.path},[q(`strong`,null,D(en(e.path)),1),q(`small`,null,`+`+D(e.added)+` −`+D(e.removed),1)],10,ef))),128))]),q(`span`,null,D(R.value.files.length?`${R.value.files.length} reviewable file${R.value.files.length===1?``:`s`}`:R.value.status===`running`||R.value.status===`verifying`?`Waiting for changes`:`No files changed`),1)]),Gt.value?(W(),G(`div`,tf,[(W(!0),G(U,null,H(Gt.value.lines,(e,t)=>(W(),G(`div`,{key:t,class:T([`diff-line`,e.kind])},[q(`span`,nf,D(e.oldLine??``),1),q(`span`,rf,D(e.newLine??``),1),q(`span`,af,D(e.kind===`add`?`+`:e.kind===`delete`?`−`:e.kind===`context`?` `:``),1),q(`code`,null,[(W(!0),G(U,null,H(z(Ms)(e.text,Gt.value.path),(e,t)=>(W(),G(`span`,{key:t,class:T(`syntax-${e.kind}`)},D(e.text),3))),128))])],2))),128))])):R.value.status===`no-changes`?(W(),G(`article`,of,[q(`div`,sf,[J(z(Go),{"aria-hidden":`true`})]),o[197]||=q(`div`,null,[q(`p`,{class:`eyebrow`},`ANALYSIS COMPLETE`),q(`h4`,null,`No files were changed`),q(`p`,null,` The agent inspected the repository and returned an explanation instead of manufacturing a patch. `)],-1),q(`section`,null,[o[196]||=q(`strong`,null,`Response`,-1),R.value.capabilities?.length?(W(),G(`div`,cf,[(W(!0),G(U,null,H(R.value.capabilities,e=>(W(),G(`article`,{key:e.id,class:T(e.status)},[q(`span`,null,[e.status===`passed`||e.status===`reachable`?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):(W(),K(z(Wo),{key:1,"aria-hidden":`true`}))]),q(`div`,null,[q(`strong`,null,D(e.label),1),q(`p`,null,D(e.summary),1),q(`small`,null,D(e.command)+` · `+D((e.durationMs/1e3).toFixed(1))+`s`,1)])],2))),128))])):X(``,!0),J(Ks,{source:R.value.summary,"aria-label":`Agent response`},null,8,[`source`])])])):(W(),G(`div`,lf,[q(`strong`,null,D(R.value.status===`failed`?`Run failed before producing a patch.`:R.value.status===`running`||R.value.status===`verifying`?`The agent is still working.`:`No repository changes were produced.`),1),q(`span`,null,D(R.value.error),1),R.value.status===`failed`?(W(),G(`button`,{key:0,class:`agent-run-retry`,onClick:o[53]||=e=>{nt.value=R.value.intent,Tn(!0)}},` Retry in conversation `)):X(``,!0)]))],64)):N.value===`checks`?(W(),G(`section`,uf,[q(`header`,{class:T(R.value.verification.status)},[q(`span`,null,[R.value.verification.status===`passed`?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):R.value.verification.status===`failed`?(W(),K(z(Wo),{key:1,"aria-hidden":`true`})):(W(),K(z(Ko),{key:2,"aria-hidden":`true`}))]),q(`div`,null,[q(`strong`,null,D(R.value.verification.status===`passed`?`Verification passed`:R.value.verification.status===`failed`?`Verification needs attention`:R.value.verification.plan.length?`Verification has not run yet`:`No supported checks detected`),1),q(`p`,null,D(R.value.verification.plan.length?R.value.verification.plan.join(` · `):`Aperta did not find an allowlisted test, type-check, lint, or build command for this project.`),1)])],2),R.value.verification.baseline?(W(),G(`article`,df,[q(`h4`,null,[q(`span`,{class:T(R.value.verification.baseline.status)},[R.value.verification.baseline.status===`passed`?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):(W(),K(z(Wo),{key:1,"aria-hidden":`true`}))],2),o[198]||=Y(` Pre-change baseline `,-1),q(`small`,null,D(new Date(R.value.verification.baseline.ts).toLocaleTimeString()),1)]),(W(!0),G(U,null,H(R.value.verification.baseline.checks,e=>(W(),G(`details`,{key:`baseline-${e.id}`,class:T([`verification-check`,e.status])},[q(`summary`,null,[q(`span`,null,[e.status===`passed`?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):(W(),K(z(Wo),{key:1,"aria-hidden":`true`}))]),q(`strong`,null,D(e.label),1),q(`code`,null,D(e.command),1),q(`small`,null,D((e.durationMs/1e3).toFixed(1))+`s`,1)]),q(`pre`,null,D(e.output||`Completed without console output.`),1)],2))),128))])):X(``,!0),(W(!0),G(U,null,H(R.value.verification.attempts,e=>(W(),G(`article`,{key:e.index,class:`verification-attempt`},[q(`h4`,null,[q(`span`,{class:T(e.status)},[e.status===`passed`?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):(W(),K(z(Wo),{key:1,"aria-hidden":`true`}))],2),Y(` Post-change attempt `+D(e.index)+` `,1),q(`small`,null,D(new Date(e.ts).toLocaleTimeString()),1)]),(W(!0),G(U,null,H(e.checks,t=>(W(),G(`details`,{key:`${e.index}-${t.id}`,class:T([`verification-check`,t.status]),open:t.status!==`passed`},[q(`summary`,null,[q(`span`,null,[t.status===`passed`?(W(),K(z(Go),{key:0,"aria-hidden":`true`})):(W(),K(z(Wo),{key:1,"aria-hidden":`true`}))]),q(`strong`,null,D(t.label),1),q(`code`,null,D(t.command),1),q(`small`,null,D((t.durationMs/1e3).toFixed(1))+`s`,1)]),q(`pre`,null,D(t.output||`Completed without console output.`),1)],10,ff))),128))]))),128)),R.value.verification.attempts.length?X(``,!0):(W(),G(`div`,pf,[R.value.status===`verifying`?(W(),K(z(os),{key:0,class:`agent-loader`,"aria-hidden":`true`})):X(``,!0),q(`strong`,null,D(R.value.status===`verifying`?`Running project checks…`:`No post-change verification attempts recorded.`),1)]))])):(W(),G(`section`,{key:4,ref_key:`agentActivityPanel`,ref:ot,class:`agent-activity-feed`},[R.value.summary&&R.value.status!==`running`&&R.value.status!==`verifying`?(W(),G(`article`,mf,[q(`div`,hf,[J(z(bs),{"aria-hidden":`true`}),o[199]||=q(`strong`,null,`Response`,-1),q(`time`,null,D(R.value.finishedAt?new Date(R.value.finishedAt).toLocaleTimeString():``),1)]),J(Ks,{source:R.value.summary},null,8,[`source`])])):X(``,!0),q(`ol`,null,[(W(!0),G(U,null,H(sn(R.value.actions),e=>(W(),G(`li`,{key:e.index,class:T(e.status)},[q(`span`,{class:T([`activity-step-icon`,e.action,e.status])},[(W(),K(fr(dn(e)),{class:`action-icon`,"aria-hidden":`true`}))],2),q(`div`,null,[q(`header`,null,[q(`b`,null,D(e.action),1),q(`time`,null,[e.errorClass?(W(),G(`em`,gf,D(e.errorClass),1)):X(``,!0),Y(D(e.durationMs===void 0?``:Zt(e.durationMs))+` · `+D(new Date(e.ts).toLocaleTimeString()),1)])]),e.path?(W(),G(`code`,_f,D(an(e.path)),1)):X(``,!0),cn(e)?(W(),G(`p`,vf,D(cn(e)),1)):X(``,!0),e.command?(W(),G(`code`,yf,D(e.command),1)):X(``,!0),e.output?(W(),G(`details`,{key:3,class:T([`activity-evidence`,e.evidenceStatus]),open:e.evidenceStatus===`failed`||e.evidenceStatus===`crashed`||e.evidenceStatus===`unhealthy`},[q(`summary`,null,[o[200]||=q(`strong`,null,`Runtime evidence`,-1),q(`span`,null,D(e.evidenceStatus??`captured`),1)]),q(`pre`,null,D(e.output),1)],10,bf)):X(``,!0)])],2))),128))]),R.value.status===`running`||R.value.status===`verifying`?(W(),G(`div`,xf,[J(z(os),{class:`agent-loader`,"aria-hidden":`true`}),q(`span`,null,[q(`strong`,null,D(R.value.status===`verifying`?`Running checks`:`Agent working`),1),q(`small`,null,D(R.value.status===`verifying`?`Comparing evidence in the isolated patch`:`Following the execution contract`),1)])])):R.value.actions.length?X(``,!0):(W(),G(`div`,Sf,[...o[201]||=[q(`strong`,null,`No actions were recorded.`,-1)]]))],512)),R.value.status===`ready`?(W(),G(`footer`,{key:5,class:T([`promotion-gate`,R.value.promotion.status])},[q(`div`,Cf,[q(`span`,wf,[J(z(ys))]),q(`div`,null,[q(`strong`,null,D(R.value.promotion.status===`review-required`?`Review before promotion`:`Ready to promote`),1),q(`p`,null,D(R.value.promotion.reason),1),o[202]||=q(`small`,null,`Aperta will confirm the repository still matches this run before applying anything.`,-1)])]),q(`div`,Tf,[q(`label`,null,[Cn(q(`input`,{"onUpdate:modelValue":o[54]||=e=>mt.value=e,type:`checkbox`},null,512),[[uo,mt.value]]),o[203]||=q(`span`,null,[q(`strong`,null,`I reviewed this change`),q(`small`,null,`Patch, evidence, and remaining uncertainty`)],-1)]),q(`button`,{disabled:!mt.value||ht.value||!R.value.promotion.allowed,onClick:Mr},D(ht.value?`Verifying…`:`Promote patch`),9,Ef)])],2)):R.value.status===`applied`?(W(),G(`footer`,Df,[q(`strong`,null,[J(z(Go),{"aria-hidden":`true`}),o[204]||=Y(`Contract satisfied and patch promoted`,-1)]),o[205]||=q(`span`,null,`Aperta is observing the real working tree and will capture the change for proof and ownership.`,-1)])):R.value.status===`verification-failed`?(W(),G(`footer`,Of,[q(`div`,null,[o[206]||=q(`strong`,null,`Checks blocked promotion`,-1),q(`span`,null,D(R.value.verification.attempts.length>=3?`The bounded repair attempts completed without a passing build.`:`The agent reached its bounded action limit after ${R.value.verification.attempts.length} verification attempt${R.value.verification.attempts.length===1?``:`s`}.`)+` Continue in this conversation so the existing patch and compiler evidence stay available.`,1)]),q(`button`,{onClick:o[55]||=e=>{nt.value=`Fix the failing verification checks shown in the latest run. Use the compiler output, preserve the intended behavior, and do not weaken legitimate tests.`,Tn(!0)}},` Fix failing checks `)])):X(``,!0)])):(W(),G(`section`,kf,[q(`div`,Af,[J(z(bs),{"aria-hidden":`true`})]),o[207]||=Wi(`<h3>Your agent workspace</h3><p> Start with a task in the agent pane. Aperta will keep the work isolated and bring you back a reviewable patch. </p><ol><li><b>1</b><span><strong>Agent works</strong><small>Reads, searches, and edits in a disposable worktree.</small></span></li><li><b>2</b><span><strong>You review</strong><small>Inspect every changed file and the complete action record.</small></span></li><li><b>3</b><span><strong>You promote</strong><small>Apply only after Aperta confirms the repository is still safe.</small></span></li></ol>`,3)]))]),re.value?(W(),G(`button`,{key:0,class:`agent-pane-resizer`,"aria-label":`Resize agent pane`,title:`Drag to resize agent pane`,onPointerdown:yo(En,[`prevent`]),onKeydown:[o[56]||=xo(yo(e=>wn(20),[`prevent`]),[`left`]),o[57]||=xo(yo(e=>wn(-20),[`prevent`]),[`right`])]},[...o[208]||=[q(`span`,null,null,-1)]],32)):X(``,!0),re.value?(W(),G(`aside`,jf,[q(`header`,null,[q(`div`,null,[q(`span`,Mf,[J(z(bs),{"aria-hidden":`true`})]),q(`div`,null,[q(`strong`,null,D($e.value?gr($e.value.kind):`Execution engine`),1),q(`small`,null,D(tt.value),1)])]),q(`button`,{class:`icon-close`,onClick:o[58]||=e=>Tn(!1),"aria-label":`Close agent pane`,title:`Close agent pane`},[J(z(Cs),{class:`nav-icon`,"aria-hidden":`true`})])]),q(`section`,Nf,[q(`div`,null,[o[210]||=q(`label`,{for:`agent-conversation-select`},`Conversation`,-1),q(`button`,{class:`agent-new-task`,disabled:rt.value,onClick:jr},[J(z(ps),{"aria-hidden":`true`}),o[209]||=Y(`New task `,-1)],8,Pf)]),q(`select`,{id:`agent-conversation-select`,value:Ut.value?.id??``,disabled:!Ze.value.length||rt.value,onChange:o[59]||=e=>Ar(e.target.value)},[ft.value?(W(),G(`option`,If,` New task `)):Ze.value.length?X(``,!0):(W(),G(`option`,Lf,` No conversations yet `)),(W(!0),G(U,null,H(Ze.value,e=>(W(),G(`option`,{key:e.id,value:e.id},D(e.title),9,Rf))),128))],40,Ff),q(`small`,null,D(Ut.value?`${Ut.value.runs.length} turn${Ut.value.runs.length===1?``:`s`} in this conversation`:`Fresh context`),1)]),q(`section`,zf,[q(`header`,null,[q(`strong`,null,D(rt.value?`Working now`:ft.value?`New conversation`:`Conversation`),1),Ut.value?(W(),G(`span`,Bf,D(Ut.value.runs.length)+` `+D(Ut.value.runs.length===1?`turn`:`turns`),1)):X(``,!0)]),Ut.value?.runs.length?(W(),G(`ol`,Vf,[(W(!0),G(U,null,H(Ut.value.runs,e=>(W(),G(`li`,{key:e.id,class:T({selected:R.value?.id===e.id}),onClick:t=>kr(e.id)},[q(`span`,null,D(e.turnIndex),1),q(`div`,null,[o[211]||=q(`strong`,null,`You`,-1),q(`p`,null,D(e.intent),1),q(`small`,{class:T([`agent-turn-result`,e.status])},D(e.status)+` · `+D(ln(e)),3)])],10,Hf))),128))])):(W(),G(`div`,Uf,` Describe the outcome you want. Follow-ups will stay together here. `)),rt.value?(W(),G(`div`,Wf,[J(z(os),{class:`agent-loader`,"aria-hidden":`true`}),Y(` `+D(it.value?.state===`queued`?`Preparing workspace…`:`Inspecting and editing…`),1),q(`button`,{onClick:o[60]||=e=>Bn(it.value)},`Stop`)])):X(``,!0)]),q(`footer`,Gf,[q(`div`,Kf,[q(`button`,{onClick:o[61]||=e=>nt.value=`Investigate the current failing behavior, identify the root cause, and implement the smallest safe fix.`},` Fix`),q(`button`,{onClick:o[62]||=e=>nt.value=`Refactor the selected area for clarity without changing its public behavior.`},` Refactor`),q(`button`,{onClick:o[63]||=e=>nt.value=`Add tests for the most important unproven behavior in this repository.`},` Tests `)]),Cn(q(`textarea`,{"onUpdate:modelValue":o[64]||=e=>nt.value=e,rows:`5`,placeholder:Ut.value?`Follow up in this conversation…`:`Start a task: ask Aperta to change or explain this repository…`,"aria-label":`Agent change intent`,title:`Enter to send · Shift+Enter for a new line`,onKeydown:[xo(yo(Or,[`exact`,`prevent`]),[`enter`]),xo(yo(Or,[`meta`,`prevent`]),[`enter`]),xo(yo(Or,[`ctrl`,`prevent`]),[`enter`])]},null,40,qf),[[lo,nt.value]]),q(`div`,null,[q(`span`,{title:R.value?.context?.lastInputChars?`${R.value.context.lastInputChars.toLocaleString()} of ${R.value.context.maxInputChars.toLocaleString()} input characters in the latest action; token count is estimated.`:`Enter to send · Shift+Enter for a new line`},D(R.value?.context?.lastInputChars?`Turn ${(Ut.value?.runs.length??0)+1} · ≈${Math.ceil(R.value.context.estimatedLastInputTokens/1e3)}k/${Math.ceil(R.value.context.estimatedMaxInputTokens/1e3)}k context`:Ut.value?`Turn ${Ut.value.runs.length+1} · context ≤24k`:`New task · Enter to send`),9,Jf),et.value?(W(),G(`button`,{key:1,class:`agent-send`,disabled:rt.value||nt.value.trim().length<10||!t.value?.initialization.initialized,onClick:Or},[Y(D(rt.value?`Working…`:Ut.value?`Send`:`Start`)+` `,1),J(z(Bo),{"aria-hidden":`true`})],8,Yf)):(W(),G(`button`,{key:0,class:`configure-agent`,onClick:ur},` Configure engine`))])])])):(W(),G(`button`,{key:2,class:`agent-pane-rail`,onClick:o[65]||=e=>Tn(!0),"aria-label":`Open agent pane`,title:`Open agent pane`},[J(z(bs),{"aria-hidden":`true`}),o[212]||=q(`strong`,null,`Agent`,-1)]))],6)],64)):a.value===`settings`?(W(),G(U,{key:10},[q(`div`,Xf,[o[213]||=q(`div`,null,[q(`h2`,null,`Engines & Intelligence`),q(`p`,null,` Choose the coding engine, then configure the models Aperta uses for its own intelligence. `)],-1),q(`div`,Zf,[Re.value?(W(),G(`button`,{key:0,type:`button`,class:`return-to-workbench`,onClick:dr},` ← Agent Workbench `)):X(``,!0),q(`span`,Qf,D(k.value?.secureStorage??`Loading secure storage…`),1)])]),Le.value?(W(),G(`div`,$f,D(Le.value),1)):X(``,!0),q(`section`,ep,[q(`header`,null,[o[214]||=q(`div`,null,[q(`p`,{class:`eyebrow`},`EXECUTION ENGINE`),q(`h3`,{id:`agent-runtime-title`},`Choose who plans and edits.`),q(`p`,null,`The engine runs the coding loop. Aperta wraps every engine with the same evidence and ownership harness.`)],-1),q(`span`,tp,`ACTIVE · `+D(k.value?.agentRuntime.kind??`aperta`),1)]),q(`div`,np,[(W(!0),G(U,null,H(k.value?.agentRuntimes??[],e=>(W(),G(`button`,{key:e.kind,type:`button`,class:T({selected:M.value.kind===e.kind,unavailable:!e.available}),"aria-pressed":M.value.kind===e.kind,onClick:t=>M.value.kind=e.kind},[q(`span`,ip,D(vr(e.kind)),1),q(`span`,null,[q(`strong`,null,D(gr(e.kind)),1),q(`small`,null,D(_r(e.kind)),1)]),q(`em`,{class:T({ready:e.available})},D(e.available?`READY`:`SETUP NEEDED`),3),q(`p`,null,D(e.detail),1)],10,rp))),128))]),q(`div`,ap,[q(`div`,null,[q(`small`,null,D(M.value.kind===`aperta`?`APERTA NATIVE OWNS`:`${gr(M.value.kind).toUpperCase()} OWNS`),1),o[215]||=q(`strong`,null,`Planning · context · tool choices · edits`,-1),M.value.kind===`aperta`?(W(),G(`span`,op,`Powered by the Builder model configured below.`)):(W(),G(`span`,sp,`Powered by the model and credentials configured inside that runtime.`))]),o[216]||=q(`i`,{"aria-hidden":`true`},`→`,-1),o[217]||=q(`div`,{class:`aperta-owns`},[q(`small`,null,`APERTA ALWAYS OWNS`),q(`strong`,null,`Isolation · checks · repair feedback`),q(`span`,null,`Evidence · review · promotion · learning`)],-1)]),M.value.kind===`aperta`?X(``,!0):(W(),G(`div`,cp,[q(`label`,null,[Y(D(gr(M.value.kind))+` model `,1),Cn(q(`input`,{"onUpdate:modelValue":o[66]||=e=>M.value.model=e,placeholder:M.value.kind===`opencode`?`Optional — provider/model`:`Optional — use runtime default`},null,8,lp),[[lo,M.value.model]])]),o[218]||=q(`p`,null,`Passed directly to the selected CLI. The runtime manages authentication; Aperta never stores its credentials.`,-1),k.value?.agentRuntimes.find(e=>e.kind===M.value.kind)?.available?X(``,!0):(W(),G(`p`,up,` Install and authenticate `+D(gr(M.value.kind))+`, refresh Settings, then activate it here. `,1))])),q(`button`,{class:`save-runtime`,type:`button`,disabled:Be.value||M.value.kind!==`aperta`&&!k.value?.agentRuntimes.find(e=>e.kind===M.value.kind)?.available,onClick:hr},D(Be.value?`Saving…`:`Use ${gr(M.value.kind)}`),9,dp)]),q(`section`,fp,[o[224]||=q(`header`,null,[q(`p`,{class:`eyebrow`},`APERTA INTELLIGENCE SERVICES`),q(`h3`,{id:`intelligence-routing-title`},`Where API models are actually used`)],-1),q(`article`,{class:T({paused:k.value?.agentRuntime.kind!==`aperta`})},[o[220]||=q(`span`,null,`1`,-1),q(`div`,null,[o[219]||=q(`strong`,null,`Builder`,-1),q(`p`,null,D(Fe.value?.name??`Not configured`)+` · `+D(Fe.value?.model??`Choose a model below`),1),q(`small`,null,D(k.value?.agentRuntime.kind===`aperta`?`Drives Aperta Native’s bounded coding loop.`:`Standby only—${gr(k.value?.agentRuntime.kind??`aperta`)} manages its own model.`),1)])],2),q(`article`,null,[o[223]||=q(`span`,null,`2`,-1),q(`div`,null,[o[221]||=q(`strong`,null,`Coach`,-1),q(`p`,null,D(Ie.value?.name??`Not configured`)+` · `+D(Ie.value?.model??`Choose a model below`),1),o[222]||=q(`small`,null,`Creates grounded ownership questions from repository evidence.`,-1)])]),o[225]||=q(`article`,{class:`deterministic`},[q(`span`,null,`✓`),q(`div`,null,[q(`strong`,null,`Verification`),q(`p`,null,`Aperta repository checks`),q(`small`,null,`Deterministic commands and runtime probes—not a model verdict.`)])],-1)]),q(`div`,pp,[q(`section`,mp,[o[227]||=q(`header`,null,[q(`p`,{class:`eyebrow`},`CONNECTED MODELS`),q(`h3`,null,`Route models to Aperta services.`),q(`p`,null,` Builder and Coach profiles are global. Verification remains deterministic and model-independent. `)],-1),(W(!0),G(U,null,H(k.value?.profiles??[],e=>(W(),G(`article`,{key:e.id,class:T({active:Object.values(k.value?.activeProfileIds??{}).includes(e.id)})},[q(`div`,hp,D(e.provider.slice(0,2).toUpperCase()),1),q(`div`,null,[q(`strong`,null,D(e.name),1),q(`span`,null,D(e.model),1),q(`small`,null,D(e.baseUrl)+` · `+D(e.credentialConfigured?e.credentialSource===`keychain`?`credential in Keychain`:`credential available`:`credential required`),1)]),q(`em`,null,D(e.capabilities?.nativeTools?`NATIVE TOOLS`:e.capabilities?.status===`connected`?`JSON FALLBACK`:`UNTESTED`),1),q(`div`,gp,[e.capabilities?.latencyMs?(W(),G(`span`,_p,D(e.capabilities.latencyMs)+`ms handshake`,1)):X(``,!0),q(`span`,null,D(e.capabilities?.modelDiscovery?`catalog connected`:`manual model`),1)]),q(`div`,vp,[q(`button`,{onClick:t=>br(e.id),disabled:Ve.value===e.id},D(Ve.value===e.id?`Testing…`:`Retest`),9,yp),(W(),G(U,null,H(Pe,t=>q(`button`,{key:t,class:T({assigned:k.value?.activeProfileIds[t]===e.id}),onClick:n=>yr(e.id,t)},D(k.value?.activeProfileIds[t]===e.id?`✓ ${t}`:`Use for ${t}`),11,bp)),64)),q(`button`,{class:`remove-profile`,onClick:t=>Cr(e.id)},D(Ue.value===e.id?`Confirm remove`:`Remove`),9,xp)])],2))),128)),k.value&&!k.value.profiles.length?(W(),G(`div`,Sp,[...o[226]||=[q(`strong`,null,`No model profiles yet.`,-1),q(`span`,null,`Add one without changing how Aperta captures or proves code.`,-1)]])):X(``,!0)]),q(`form`,{class:`profile-form`,onSubmit:yo(mr,[`prevent`])},[o[235]||=q(`p`,{class:`eyebrow`},`ADD APERTA MODEL`,-1),o[236]||=q(`h3`,null,`Connect an intelligence service`,-1),o[237]||=q(`p`,{class:`provider-guidance`},` Aperta tests the real endpoint before activation and records whether the selected model can produce native tool calls. `,-1),q(`div`,Cp,[(W(!0),G(U,null,H(k.value?.providers??[],e=>(W(),G(`button`,{key:e.id,type:`button`,class:T({selected:j.value.provider===e.id}),"aria-pressed":j.value.provider===e.id,onClick:t=>xr(e)},[q(`span`,null,D(e.label),1),q(`small`,null,D(e.category),1),q(`p`,null,D(e.description),1)],10,wp))),128))]),We.value?(W(),G(`div`,Tp,[q(`strong`,null,D(We.value.label),1),q(`span`,null,D(We.value.description),1)])):X(``,!0),q(`label`,null,[o[228]||=Y(`Profile name`,-1),Cn(q(`input`,{"onUpdate:modelValue":o[67]||=e=>j.value.name=e,placeholder:`Work OpenAI, Local Qwen…`},null,512),[[lo,j.value.name]])]),A.value?.models.length?(W(),G(`label`,Ep,[o[230]||=Y(`Model`,-1),Cn(q(`select`,{"onUpdate:modelValue":o[68]||=e=>j.value.model=e,required:``},[o[229]||=q(`option`,{value:``,disabled:``},`Choose a discovered model`,-1),(W(!0),G(U,null,H(A.value.models,e=>(W(),G(`option`,{key:e.id,value:e.id},D(e.name)+D(e.nativeTools===!0?` · tools`:``)+D(e.contextWindow?` · ${Math.round(e.contextWindow/1e3)}k`:``),9,Dp))),128))],512),[[po,j.value.model]])])):(W(),G(`label`,Op,[o[231]||=Y(`Model ID`,-1),Cn(q(`input`,{"onUpdate:modelValue":o[69]||=e=>j.value.model=e,placeholder:`Discover models or enter an exact model ID`},null,512),[[lo,j.value.model]])])),q(`label`,null,[o[232]||=Y(`Endpoint`,-1),Cn(q(`input`,{"onUpdate:modelValue":o[70]||=e=>j.value.baseUrl=e,placeholder:j.value.provider===`ollama`?`http://127.0.0.1:11434`:j.value.provider===`openai-compatible`?`https://provider.example/v1`:`Leave blank for provider default`},null,8,kp),[[lo,j.value.baseUrl]])]),j.value.provider===`ollama`?X(``,!0):(W(),G(`label`,Ap,[o[233]||=Y(`API key`,-1),Cn(q(`input`,{"onUpdate:modelValue":o[71]||=e=>j.value.apiKey=e,type:`password`,autocomplete:`new-password`,placeholder:`Stored in macOS Keychain`},null,512),[[lo,j.value.apiKey]])])),ze.value?(W(),G(`div`,jp,D(ze.value),1)):X(``,!0),q(`button`,{type:`button`,class:`inspect-provider`,disabled:He.value,onClick:Sr},D(He.value?`Testing provider…`:j.value.model?`Verify model and native tools`:`Connect and discover models`),9,Mp),A.value?(W(),G(`div`,{key:5,class:T([`capability-result`,A.value.capabilities.status])},[q(`strong`,null,D(A.value.capabilities.nativeTools?`Native tool calling verified`:`Provider connected`),1),q(`span`,null,D(A.value.capabilities.detail),1),q(`small`,null,D(A.value.models.length)+` models discovered · `+D(A.value.capabilities.latencyMs)+`ms`,1)],2)):X(``,!0),q(`div`,Np,[o[234]||=q(`strong`,null,`Credential boundary`,-1),q(`p`,null,` The browser sends the key only to this local Aperta server. It is written to `+D(k.value?.secureStorage??`secure storage`)+` and is never returned to the browser. `,1)]),o[238]||=q(`div`,{class:`privacy-boundary`},[q(`strong`,null,`Project-memory boundary`),q(`p`,null,` Raw prompts, transcripts, explanations, and execution logs stay in private per-user storage. The repository contains only a non-sensitive Aperta project identity. `)],-1),j.value.model&&A.value?.testedModel!==j.value.model?(W(),G(`p`,Pp,` Verify this exact model before activation. `)):X(``,!0),q(`button`,{type:`submit`,disabled:Be.value||!j.value.model||A.value?.testedModel!==j.value.model},D(Be.value?`Saving securely…`:`Save and activate`),9,Fp)],32)])],64)):X(``,!0)],2)],2)):X(``,!0),ie.value?(W(),G(`div`,Ip,[q(`section`,Lp,[q(`header`,Rp,[q(`div`,null,[o[246]||=q(`p`,{class:`eyebrow`},`OWNERSHIP SESSION`,-1),q(`h2`,null,D(x.value?.story.title??`Turn generated code into code you own.`),1),q(`div`,zp,[o[242]||=q(`span`,{class:`complete`},[q(`b`,null,`1`),Y(`Orient`)],-1),o[243]||=q(`i`,null,null,-1),q(`span`,{class:T({complete:Nt.value>=1,active:Nt.value<1})},[...o[239]||=[q(`b`,null,`2`,-1),Y(`Trace`,-1)]],2),o[244]||=q(`i`,null,null,-1),q(`span`,{class:T({complete:Nt.value>=3,active:Nt.value>=1&&Nt.value<3})},[...o[240]||=[q(`b`,null,`3`,-1),Y(`Challenge`,-1)]],2),o[245]||=q(`i`,null,null,-1),q(`span`,{class:T({complete:Pt.value,active:Nt.value>=3&&!Pt.value})},[...o[241]||=[q(`b`,null,`4`,-1),Y(`Articulate`,-1)]],2)])]),q(`div`,Bp,[x.value?(W(),G(`span`,Vp,[q(`b`,null,D(Ft.value)+`%`,1),o[247]||=Y(` evidence complete`,-1)])):X(``,!0),q(`button`,{class:`close-review icon-close`,onClick:Zn,"aria-label":`Close ownership session`},[J(z(Cs),{class:`nav-icon`,"aria-hidden":`true`})])])]),se.value?(W(),G(`div`,Hp,D(se.value),1)):X(``,!0),!x.value&&!se.value?(W(),G(`div`,Up,[...o[248]||=[q(`div`,{class:`spinner`},null,-1),Y(` Building your briefing… `,-1)]])):pe.value?(W(),G(`div`,Wp,[o[252]||=q(`div`,{class:`completion-orb`},`✓`,-1),o[253]||=q(`p`,{class:`eyebrow`},`SESSION RECORDED`,-1),q(`h2`,null,D(pe.value.before===null?`A baseline now exists.`:`Understanding moved.`),1),q(`div`,Gp,[q(`span`,null,[o[249]||=q(`small`,null,`BEFORE`,-1),q(`strong`,null,D(pe.value.before??`—`),1)]),o[251]||=q(`i`,null,`→`,-1),q(`span`,null,[o[250]||=q(`small`,null,`AFTER`,-1),q(`strong`,null,D(pe.value.after),1)])]),q(`p`,null,` You spent `+D(Math.max(1,Math.round(pe.value.durationMs/6e4)))+` minute`+D(Math.round(pe.value.durationMs/6e4)===1?``:`s`)+` converting agent output into accountable knowledge. `,1),q(`button`,{class:`finish-review`,onClick:Zn},` Return to review queue `)])):x.value?(W(),G(`div`,{key:3,class:`review-body review-body-wide`,style:ge({"--ownership-left-width":`${ee.value}px`,"--ownership-right-width":`${ne.value}px`})},[q(`aside`,Kp,[q(`div`,qp,[q(`span`,null,[q(`strong`,null,D(x.value.diff.files.length),1),o[254]||=Y(` files`,-1)]),q(`span`,null,[q(`strong`,null,D(x.value.changedLines),1),o[255]||=Y(` lines`,-1)]),q(`small`,null,D(x.value.diff.model??x.value.diff.authorship),1)]),q(`div`,Jp,[q(`div`,null,[o[256]||=q(`small`,null,`CHANGE STORY`,-1),q(`span`,{class:T([`risk-chip`,x.value.story.risk])},D(x.value.story.risk)+` risk`,3)]),q(`h3`,null,D(x.value.story.title),1),q(`p`,null,D(x.value.story.provenance)+` · about `+D(x.value.story.expectedMinutes)+` minutes to verify `,1),q(`ul`,null,[(W(!0),G(U,null,H(x.value.story.behaviors,e=>(W(),G(`li`,{key:e},D(e),1))),128))])]),x.value.intent?(W(),G(`div`,Yp,[o[257]||=q(`small`,null,`ORIGINAL INTENT`,-1),q(`p`,null,D(x.value.intent),1)])):X(``,!0),q(`div`,Xp,[q(`div`,null,[o[258]||=q(`small`,null,`SURFACES`,-1),q(`ul`,Zp,[(W(!0),G(U,null,H(x.value.story.areas,e=>(W(),G(`li`,{key:e},[q(`code`,{"aria-label":e,title:e},D(nn(e)),9,Qp)]))),128))])]),x.value.story.symbols.length?(W(),G(`div`,$p,[o[259]||=q(`small`,null,`NEW OR CHANGED SYMBOLS`,-1),q(`ul`,em,[(W(!0),G(U,null,H(x.value.story.symbols,e=>(W(),G(`li`,{key:e},[q(`code`,{"aria-label":e,title:e},D(nn(e)),9,tm)]))),128))])])):X(``,!0),q(`div`,null,[o[260]||=q(`small`,null,`TEST SIGNAL`,-1),q(`p`,null,D(x.value.story.testStatus),1)])]),o[262]||=q(`h3`,null,`FILES CHANGED`,-1),(W(!0),G(U,null,H(x.value.diff.files,e=>(W(),G(`button`,{key:e.path,title:e.path,"aria-label":`Review ${e.path}, ${e.added} additions and ${e.removed} deletions`,class:T([`changed-file`,{active:Ot.value?.path===e.path}]),onClick:t=>Gn(e.path)},[o[261]||=q(`span`,{class:`change-file-icon`,"aria-hidden":`true`},`‹›`,-1),q(`span`,null,[q(`strong`,null,D(en(e.path)),1),q(`small`,null,D(tn(e.path)),1)]),q(`em`,rm,[q(`b`,null,`+`+D(e.added),1),q(`i`,null,`−`+D(e.removed),1)])],10,nm))),128)),o[263]||=q(`h3`,null,`RISK SIGNALS`,-1),q(`ul`,im,[(W(!0),G(U,null,H(x.value.signals,e=>(W(),G(`li`,{key:e},D(e),1))),128)),x.value.signals.length?X(``,!0):(W(),G(`li`,am,` No structural warning signals. Verify behavior, not just shape. `))])]),q(`button`,{type:`button`,class:`ownership-resizer ownership-resizer-left`,role:`separator`,"aria-label":`Resize change briefing panel`,"aria-orientation":`vertical`,"aria-valuemin":260,"aria-valuemax":520,"aria-valuenow":ee.value,title:`Drag to resize change briefing panel`,onPointerdown:o[72]||=yo(e=>An(`left`,e),[`prevent`]),onKeydown:[o[73]||=xo(yo(e=>On(`left`,-20),[`prevent`]),[`left`]),o[74]||=xo(yo(e=>On(`left`,20),[`prevent`]),[`right`])],onDblclick:o[75]||=e=>Dn(`left`,360)},null,40,om),q(`section`,sm,[q(`div`,cm,[q(`div`,lm,[q(`button`,{onClick:o[76]||=e=>Kn(-1),"aria-label":`Previous file`},` ‹ `),q(`div`,null,[q(`strong`,null,D(Ot.value?.path??`Diff evidence`),1),kt.value?(W(),G(`small`,um,D(kt.value.added)+` additions · `+D(kt.value.removed)+` deletions · file `+D(At.value+1)+` of `+D(Dt.value.length),1)):X(``,!0)]),q(`button`,{onClick:o[77]||=e=>Kn(1),"aria-label":`Next file`},` › `)]),q(`div`,dm,[q(`button`,{class:T({active:de.value===`unified`}),onClick:o[78]||=e=>de.value=`unified`},` Unified`,2),q(`button`,{class:T({active:de.value===`split`}),onClick:o[79]||=e=>de.value=`split`},` Split`,2),q(`button`,{class:T({active:fe.value}),onClick:o[80]||=e=>fe.value=!fe.value},` Wrap `,2)])]),Ot.value&&de.value===`unified`?(W(),G(`div`,{key:0,class:T([`semantic-diff`,{wrap:fe.value}]),"aria-label":`Unified code diff`},[(W(!0),G(U,null,H(Ot.value.lines,(e,t)=>(W(),G(`div`,{key:t,class:T([`diff-line`,e.kind])},[q(`span`,fm,D(e.oldLine??``),1),q(`span`,pm,D(e.newLine??``),1),q(`span`,mm,D(e.kind===`add`?`+`:e.kind===`delete`?`−`:e.kind===`context`?` `:``),1),q(`code`,null,[(W(!0),G(U,null,H(z(Ms)(e.text,Ot.value.path),(e,t)=>(W(),G(`span`,{key:t,class:T(`syntax-${e.kind}`)},D(e.text),3))),128))])],2))),128))],2)):Ot.value?(W(),G(`div`,{key:1,class:T([`split-diff`,{wrap:fe.value}]),"aria-label":`Side-by-side code diff`},[(W(!0),G(U,null,H(Ot.value.lines,(e,t)=>(W(),G(U,{key:t},[e.kind===`hunk`||e.kind===`meta`?(W(),G(`div`,{key:0,class:T([`split-special`,e.kind])},D(e.text),3)):(W(),G(`div`,hm,[q(`div`,{class:T([`split-cell`,e.kind===`delete`?`delete`:e.kind===`context`?`context`:`empty`])},[q(`span`,gm,D(e.kind===`add`?``:e.oldLine),1),q(`span`,_m,D(e.kind===`delete`?`−`:` `),1),q(`code`,null,[e.kind===`add`?X(``,!0):(W(!0),G(U,{key:0},H(z(Ms)(e.text,Ot.value.path),(e,t)=>(W(),G(`span`,{key:t,class:T(`syntax-${e.kind}`)},D(e.text),3))),128))])],2),q(`div`,{class:T([`split-cell`,e.kind===`add`?`add`:e.kind===`context`?`context`:`empty`])},[q(`span`,vm,D(e.kind===`delete`?``:e.newLine),1),q(`span`,ym,D(e.kind===`add`?`+`:` `),1),q(`code`,null,[e.kind===`delete`?X(``,!0):(W(!0),G(U,{key:0},H(z(Ms)(e.text,Ot.value.path),(e,t)=>(W(),G(`span`,{key:t,class:T(`syntax-${e.kind}`)},D(e.text),3))),128))])],2)]))],64))),128))],2)):(W(),G(`div`,bm,[...o[264]||=[q(`strong`,null,`Patch evidence unavailable`,-1),q(`span`,null,`This capture predates evidence storage. Use Git history and the file list.`,-1)]]))]),q(`button`,{type:`button`,class:`ownership-resizer ownership-resizer-right`,role:`separator`,"aria-label":`Resize learning panel`,"aria-orientation":`vertical`,"aria-valuemin":340,"aria-valuemax":620,"aria-valuenow":ne.value,title:`Drag to resize learning panel`,onPointerdown:o[81]||=yo(e=>An(`right`,e),[`prevent`]),onKeydown:[o[82]||=xo(yo(e=>On(`right`,20),[`prevent`]),[`left`]),o[83]||=xo(yo(e=>On(`right`,-20),[`prevent`]),[`right`])],onDblclick:o[84]||=e=>Dn(`right`,460)},null,40,xm),q(`aside`,Sm,[q(`div`,Cm,[o[265]||=q(`span`,null,`Starting confidence`,-1),q(`strong`,null,D(ie.value.score??`Unrated`),1)]),x.value.priorNotes.length?(W(),G(`div`,wm,[q(`div`,null,[o[266]||=q(`h3`,null,`Prior ownership notes`,-1),q(`span`,null,D(x.value.priorNotes.length)+` saved`,1)]),(W(!0),G(U,null,H(x.value.priorNotes,e=>(W(),G(`article`,{key:e.id},[q(`p`,null,D(e.text),1),q(`small`,null,D(new Date(e.ts).toLocaleString())+` · `+D(Math.max(1,Math.round(e.durationMs/6e4)))+` min`,1)]))),128))])):X(``,!0),x.value.priorEvidence.length?(W(),G(`div`,Tm,[o[267]||=q(`strong`,null,`Previous evidence exists`,-1),q(`span`,null,D(x.value.priorEvidence[0].completedCount)+`/`+D(x.value.priorEvidence[0].requiredCount)+` required answers completed `+D(Qt(x.value.priorEvidence[0].ts)),1)])):X(``,!0),q(`section`,Em,[q(`header`,null,[q(`div`,null,[o[269]||=q(`span`,{class:`coach-mark`},`a✦`,-1),q(`div`,null,[o[268]||=q(`strong`,null,`Aperta Coach`,-1),O.value?.enabled?(W(),G(`small`,Dm,D(Ae.value?.model??O.value.model)+` · `+D(Ae.value?.provider??O.value.provider),1)):(W(),G(`small`,Om,`Optional, provider-neutral coaching`))])]),o[270]||=q(`em`,null,`AI-GENERATED`,-1)]),Ae.value?(W(),G(U,{key:0},[q(`h3`,null,D(Ae.value.focus.title),1),q(`p`,null,D(Ae.value.orientation),1),q(`p`,km,[o[271]||=q(`b`,null,`Focus:`,-1),Y(` `+D(Ae.value.focus.why),1)]),Ae.value.uncertainties.length?(W(),G(`details`,Am,[q(`summary`,null,D(Ae.value.uncertainties.length)+` explicit unknown`+D(Ae.value.uncertainties.length===1?``:`s`),1),q(`ul`,null,[(W(!0),G(U,null,H(Ae.value.uncertainties,e=>(W(),G(`li`,{key:e},D(e),1))),128))])])):X(``,!0)],64)):(W(),G(U,{key:1},[o[272]||=q(`p`,null,` Generate questions adapted to this exact diff, impact graph, proof state, and your prior evidence. Coach can ask; it cannot certify ownership. `,-1),q(`button`,{disabled:!O.value?.enabled||je.value,onClick:Xn},D(je.value?`${Me.value?.state??`Starting`} debrief…`:`Personalize this debrief`),9,jm),je.value?(W(),G(`button`,{key:0,class:`cancel-job`,onClick:o[85]||=e=>Bn(Me.value)},` Cancel`)):X(``,!0),O.value&&!O.value.enabled?(W(),G(`small`,Mm,D(O.value.reason),1)):X(``,!0)],64)),Ne.value?(W(),G(`p`,Nm,D(Ne.value),1)):X(``,!0),o[273]||=q(`footer`,null,` Grounded in local evidence · never changes Trust Kernel verdicts · never grades your prose `,-1)]),o[275]||=q(`p`,{class:`step-label`},[q(`b`,null,`3`),Y(` Challenge`)],-1),o[276]||=q(`h3`,null,`Demonstrate ownership`,-1),q(`div`,Pm,[(W(!0),G(U,null,H(Mt.value,e=>(W(),G(`article`,{key:e.id,class:T({answered:(he.value[e.id]?.trim().length??0)>=20,optional:!e.requiredForOwned})},[q(`div`,null,[q(`span`,null,D(e.kind),1),q(`em`,null,D(e.requiredForOwned?`required`:`optional`),1),e.path?(W(),G(`button`,{key:0,onClick:t=>qn(e)},` Show code → `,8,Fm)):X(``,!0)]),q(`label`,{for:`answer-${e.id}`},D(e.text),9,Im),`rationale`in e?(W(),G(`small`,Lm,D(e.rationale),1)):X(``,!0),Cn(q(`textarea`,{id:`answer-${e.id}`,"onUpdate:modelValue":t=>he.value[e.id]=t,rows:`2`,placeholder:`Answer from your understanding, not the summary…`},null,8,Rm),[[lo,he.value[e.id]]])],2))),128))]),o[277]||=q(`p`,{class:`step-label articulate`},[q(`b`,null,`4`),Y(` Articulate`)],-1),o[278]||=q(`label`,{for:`explanation`},`Explain the change in your own words`,-1),Cn(q(`textarea`,{id:`explanation`,"onUpdate:modelValue":o[86]||=e=>oe.value=e,rows:`5`,placeholder:`What changed, why it works, and where it could fail…`},null,512),[[lo,oe.value]]),q(`fieldset`,zm,[o[274]||=q(`legend`,null,`Where are you now?`,-1),(W(),G(U,null,H([1,2,3],e=>q(`button`,{key:e,disabled:e===3&&!Pt.value,title:e===3&&!Pt.value?`Complete the required ownership evidence first`:``,class:T({selected:S.value===e}),onClick:t=>S.value=e},[q(`strong`,null,D(e),1),q(`span`,null,D(e===1?`Opaque`:e===2?`Followable`:Pt.value?`Owned`:`Prove first`),1)],10,Bm)),64))]),q(`button`,{class:`finish-review`,disabled:ce.value,onClick:$n},D(ce.value?`Saving…`:`Record ownership signal`),9,Vm),o[279]||=q(`small`,{class:`privacy-note`},`Aperta records evidence of the work. It never grades your prose.`,-1)])],4)):X(``,!0)])])):X(``,!0),q(`footer`,Hm,[o[280]||=q(`span`,null,[q(`i`,{class:`status-dot`}),Y(`Private local memory · outside Git · Coach shares evidence only on request`)],-1),o[281]||=q(`span`,null,`1 opaque · 2 followable · 3 owned`,-1),q(`span`,null,`Updated `+D(t.value?new Date(t.value.generatedAt).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`}):`—`),1)])])],2))}})).mount(`#app`);
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<meta name="theme-color" content="#aeb9c5" />
|
|
7
7
|
<meta name="description" content="Aperta shows which parts of your codebase you can actually explain." />
|
|
8
8
|
<title>Aperta — Comprehension Map</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-DHF2W8ef.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BIU9XLtE.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="app"></div>
|
|
@@ -197,7 +197,7 @@ export function classifyAgentError(reason) {
|
|
|
197
197
|
return "StateConflict";
|
|
198
198
|
if (/malformed json|unexpected .*json|after json at position|unterminated string in json|json input/.test(message))
|
|
199
199
|
return "InvalidModelOutput";
|
|
200
|
-
if (/provider returned|provider unavailable|fetch failed|network/.test(message))
|
|
200
|
+
if (/provider returned|provider unavailable|fetch failed|network|(?:opencode|claude(?: code)?|cursor|codex) exited with code|exited with code \d+: no diagnostic output/.test(message))
|
|
201
201
|
return "ProviderError";
|
|
202
202
|
if (/invalid path|unsupported agent action|write limit|write budget|must read|invalid search|invalid service|service action|missing content|outside the workspace|cannot (?:access|modify)|ignored file|local curl/.test(message))
|
|
203
203
|
return "InvalidArguments";
|