aperta-cli 1.0.0-beta.2 → 1.0.0-beta.3
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/README.md +59 -36
- package/dashboard/dist/assets/index-GUF8oKgT.js +23 -0
- package/dashboard/dist/assets/index-sPVDvMWT.css +1 -0
- package/dashboard/dist/index.html +4 -4
- package/dist-cli/src/agent-harness.js +53 -138
- package/dist-cli/src/agent-harness.js.map +1 -1
- package/dist-cli/src/agent-runtime.js +147 -0
- package/dist-cli/src/agent-runtime.js.map +1 -0
- package/dist-cli/src/capture.js +4 -6
- package/dist-cli/src/capture.js.map +1 -1
- package/dist-cli/src/cli.js +2 -2
- package/dist-cli/src/cli.js.map +1 -1
- package/dist-cli/src/dashboard-data.js +13 -4
- package/dist-cli/src/dashboard-data.js.map +1 -1
- package/dist-cli/src/dashboard-server.js +87 -21
- package/dist-cli/src/dashboard-server.js.map +1 -1
- package/dist-cli/src/harness-intelligence.js +3 -2
- package/dist-cli/src/harness-intelligence.js.map +1 -1
- package/dist-cli/src/ledger.js +61 -2
- package/dist-cli/src/ledger.js.map +1 -1
- package/dist-cli/src/ownership-dossier.js +154 -0
- package/dist-cli/src/ownership-dossier.js.map +1 -0
- package/dist-cli/src/proof-graph.js +71 -6
- package/dist-cli/src/proof-graph.js.map +1 -1
- package/dist-cli/src/settings.js +28 -37
- package/dist-cli/src/settings.js.map +1 -1
- package/dist-cli/src/skills.js +8 -1
- package/dist-cli/src/skills.js.map +1 -1
- package/package.json +3 -2
- package/dashboard/dist/assets/index-BIU9XLtE.css +0 -1
- package/dashboard/dist/assets/index-DHF2W8ef.js +0 -11
|
@@ -0,0 +1,23 @@
|
|
|
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)))},oe=/-\w/g,se=ae(e=>e.replace(oe,e=>e.slice(1).toUpperCase())),ce=/\B([A-Z])/g,le=ae(e=>e.replace(ce,`-$1`).toLowerCase()),ue=ae(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=ae(e=>e?`on${ue(e)}`:``),de=(e,t)=>!Object.is(e,t),fe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},pe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},me=e=>{let t=parseFloat(e);return isNaN(t)?e:t},he,ge=()=>he||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function _e(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?xe(r):_e(r);if(i)for(let e in i)t[e]=i[e]}return t}if(g(e)||v(e))return e}var ve=/;(?![^(]*\))/g,ye=/:([^]+)/,be=/\/\*[^]*?\*\//g;function xe(e){let t={};return e.replace(be,``).split(ve).forEach(e=>{if(e){let n=e.split(ye);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function S(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=S(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var Se=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Ce=e(Se);Se+``;function we(e){return!!e||e===``}function Te(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ee(e[r],t[r]);return n}function Ee(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?Te(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||!Ee(e[n],t[n]))return!1}}return String(e)===String(t)}function De(e,t){return e.findIndex(e=>Ee(e,t))}var Oe=e=>!!(e&&e.__v_isRef===!0),C=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?Oe(e)?C(e.value):JSON.stringify(e,ke,2):String(e),ke=(e,t)=>Oe(t)?ke(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ae(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ae(e))}:_(t)?Ae(t):v(t)&&!d(t)&&!ne(t)?String(t):t,Ae=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,je,Me=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&&je&&(je.active?(this.parent=je,this.index=(je.scopes||(je.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=je;try{return je=this,e()}finally{je=t}}}on(){++this._on===1&&(this.prevScope=je,je=this)}off(){if(this._on>0&&--this._on===0){if(je===this)je=this.prevScope;else{let e=je;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 Ne(){return je}var Pe,Fe=new WeakSet,Ie=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,je&&(je.active?je.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Fe.has(this)&&(Fe.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Be(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,$e(this),Ue(this);let e=Pe,t=Ye;Pe=this,Ye=!0;try{return this.fn()}finally{We(this),Pe=e,Ye=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)qe(e);this.deps=this.depsTail=void 0,$e(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ge(this)&&this.run()}get dirty(){return Ge(this)}},Le=0,Re,ze;function Be(e,t=!1){if(e.flags|=8,t){e.next=ze,ze=e;return}e.next=Re,Re=e}function Ve(){Le++}function He(){if(--Le>0)return;if(ze){let e=ze;for(ze=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Re;){let t=Re;for(Re=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 Ue(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function We(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),qe(r),Je(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ke(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ke(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===et)||(e.globalVersion=et,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ge(e))))return;e.flags|=2;let t=e.dep,n=Pe,r=Ye;Pe=e,Ye=!0;try{Ue(e);let n=e.fn(e._value);(t.version===0||de(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Pe=n,Ye=r,We(e),e.flags&=-3}}function qe(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)qe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Je(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ye=!0,Xe=[];function Ze(){Xe.push(Ye),Ye=!1}function Qe(){let e=Xe.pop();Ye=e===void 0||e}function $e(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Pe;Pe=void 0;try{t()}finally{Pe=e}}}var et=0,tt=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}},nt=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(!Pe||!Ye||Pe===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Pe)t=this.activeLink=new tt(Pe,this),Pe.deps?(t.prevDep=Pe.depsTail,Pe.depsTail.nextDep=t,Pe.depsTail=t):Pe.deps=Pe.depsTail=t,rt(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=Pe.depsTail,t.nextDep=void 0,Pe.depsTail.nextDep=t,Pe.depsTail=t,Pe.deps===t&&(Pe.deps=e)}return t}trigger(e){this.version++,et++,this.notify(e)}notify(e){Ve();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{He()}}};function rt(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)rt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var it=new WeakMap,at=Symbol(``),ot=Symbol(``),st=Symbol(``);function ct(e,t,n){if(Ye&&Pe){let t=it.get(e);t||it.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new nt),r.map=t,r.key=n),r.track()}}function lt(e,t,n,r,i,a){let o=it.get(e);if(!o){et++;return}let s=e=>{e&&e.trigger()};if(Ve(),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===st||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(st)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(at)),f(e)&&s(o.get(ot)));break;case`delete`:i||(s(o.get(at)),f(e)&&s(o.get(ot)));break;case`set`:f(e)&&s(o.get(at))}}He()}function ut(e){let t=w(e);return t===e?t:(ct(t,`iterate`,st),Yt(e)?t:t.map(Qt))}function dt(e){return ct(e=w(e),`iterate`,st),e}function ft(e,t){return Jt(e)?$t(qt(e)?Qt(t):t):Qt(t)}var pt={__proto__:null,[Symbol.iterator](){return mt(this,Symbol.iterator,e=>ft(this,e))},concat(...e){return ut(this).concat(...e.map(e=>d(e)?ut(e):e))},entries(){return mt(this,`entries`,e=>(e[1]=ft(this,e[1]),e))},every(e,t){return gt(this,`every`,e,t,void 0,arguments)},filter(e,t){return gt(this,`filter`,e,t,e=>e.map(e=>ft(this,e)),arguments)},find(e,t){return gt(this,`find`,e,t,e=>ft(this,e),arguments)},findIndex(e,t){return gt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return gt(this,`findLast`,e,t,e=>ft(this,e),arguments)},findLastIndex(e,t){return gt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return gt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return vt(this,`includes`,e)},indexOf(...e){return vt(this,`indexOf`,e)},join(e){return ut(this).join(e)},lastIndexOf(...e){return vt(this,`lastIndexOf`,e)},map(e,t){return gt(this,`map`,e,t,void 0,arguments)},pop(){return yt(this,`pop`)},push(...e){return yt(this,`push`,e)},reduce(e,...t){return _t(this,`reduce`,e,t)},reduceRight(e,...t){return _t(this,`reduceRight`,e,t)},shift(){return yt(this,`shift`)},some(e,t){return gt(this,`some`,e,t,void 0,arguments)},splice(...e){return yt(this,`splice`,e)},toReversed(){return ut(this).toReversed()},toSorted(e){return ut(this).toSorted(e)},toSpliced(...e){return ut(this).toSpliced(...e)},unshift(...e){return yt(this,`unshift`,e)},values(){return mt(this,`values`,e=>ft(this,e))}};function mt(e,t,n){let r=dt(e),i=r[t]();return r!==e&&!Yt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ht=Array.prototype;function gt(e,t,n,r,i,a){let o=dt(e),s=o!==e&&!Yt(e),c=o[t];if(c!==ht[t]){let t=c.apply(e,a);return s?Qt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ft(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 _t(e,t,n,r){let i=dt(e),a=i!==e&&!Yt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ft(e,t)),n.call(this,t,ft(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?ft(e,c):c}function vt(e,t,n){let r=w(e);ct(r,`iterate`,st);let i=r[t](...n);return(i===-1||i===!1)&&Xt(n[0])?(n[0]=w(n[0]),r[t](...n)):i}function yt(e,t,n=[]){Ze(),Ve();let r=w(e)[t].apply(e,n);return He(),Qe(),r}var bt=e(`__proto__,__v_isRef,__isVue`),xt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function St(e){_(e)||(e=String(e));let t=w(this);return ct(t,`has`,e),t.hasOwnProperty(e)}var Ct=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?Vt:Bt:i?zt:Rt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=pt[t]))return e;if(t===`hasOwnProperty`)return St}let o=Reflect.get(e,t,en(e)?e:n);if((_(t)?xt.has(t):bt(t))||(r||ct(e,`get`,t),i))return o;if(en(o)){let e=a&&re(t)?o:o.value;return r&&v(e)?Gt(e):e}return v(o)?r?Gt(o):Ut(o):o}},wt=class extends Ct{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=Jt(i);if(!Yt(n)&&!Jt(n)&&(i=w(i),n=w(n)),!a&&en(i)&&!en(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,en(e)?e:r);return e===w(r)&&s&&(o?de(n,i)&<(e,`set`,t,n,i):lt(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&<(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!xt.has(t))&&ct(e,`has`,t),n}ownKeys(e){return ct(e,`iterate`,d(e)?`length`:at),Reflect.ownKeys(e)}},Tt=class extends Ct{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Et=new wt,Dt=new Tt,Ot=new wt(!0),kt=e=>e,At=e=>Reflect.getPrototypeOf(e);function jt(e,t,n){return function(...r){let i=this.__v_raw,a=w(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?kt:t?$t:Qt;return!t&&ct(a,`iterate`,l?ot:at),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 Mt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Nt(e,t){let n={get(n){let r=this.__v_raw,i=w(r),a=w(n);e||(de(n,a)&&ct(i,`get`,n),ct(i,`get`,a));let{has:o}=At(i),s=t?kt:e?$t:Qt;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&&ct(w(t),`iterate`,at),t.size},has(t){let n=this.__v_raw,r=w(n),i=w(t);return e||(de(t,i)&&ct(r,`has`,t),ct(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=w(a),s=t?kt:e?$t:Qt;return!e&&ct(o,`iterate`,at),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Mt(`add`),set:Mt(`set`),delete:Mt(`delete`),clear:Mt(`clear`)}:{add(e){let n=w(this),r=At(n),i=w(e),a=!t&&!Yt(e)&&!Jt(e)?i:e;return r.has.call(n,a)||de(e,a)&&r.has.call(n,e)||de(i,a)&&r.has.call(n,i)||(n.add(a),lt(n,`add`,a,a)),this},set(e,n){!t&&!Yt(n)&&!Jt(n)&&(n=w(n));let r=w(this),{has:i,get:a}=At(r),o=i.call(r,e);o||=(e=w(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?de(n,s)&<(r,`set`,e,n,s):lt(r,`add`,e,n),this},delete(e){let t=w(this),{has:n,get:r}=At(t),i=n.call(t,e);i||=(e=w(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&<(t,`delete`,e,void 0,a),o},clear(){let e=w(this),t=e.size!==0,n=e.clear();return t&<(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=jt(r,e,t)}),n}function Pt(e,t){let n=Nt(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 Ft={get:Pt(!1,!1)},It={get:Pt(!1,!0)},Lt={get:Pt(!0,!1)},Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap;function Ht(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ut(e){return Jt(e)?e:Kt(e,!1,Et,Ft,Rt)}function Wt(e){return Kt(e,!1,Ot,It,zt)}function Gt(e){return Kt(e,!0,Dt,Lt,Bt)}function Kt(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=Ht(te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function qt(e){return Jt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Yt(e){return!!(e&&e.__v_isShallow)}function Xt(e){return e?!!e.__v_raw:!1}function w(e){let t=e&&e.__v_raw;return t?w(t):e}function Zt(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&pe(e,`__v_skip`,!0),e}var Qt=e=>v(e)?Ut(e):e,$t=e=>v(e)?Gt(e):e;function en(e){return e?e.__v_isRef===!0:!1}function T(e){return tn(e,!1)}function tn(e,t){return en(e)?e:new nn(e,t)}var nn=class{constructor(e,t){this.dep=new nt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:w(e),this._value=t?e:Qt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Yt(e)||Jt(e);e=n?e:w(e),de(e,t)&&(this._rawValue=e,this._value=n?e:Qt(e),this.dep.trigger())}};function E(e){return en(e)?e.value:e}var rn={get:(e,t,n)=>t===`__v_raw`?e:E(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return en(i)&&!en(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function an(e){return qt(e)?e:new Proxy(e,rn)}var on=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new nt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=et-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Pe!==this)return Be(this,!0),!0}get value(){let e=this.dep.track();return Ke(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function sn(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new on(r,i,n)}var cn={},ln=new WeakMap,un=void 0;function dn(e,t=!1,n=un){if(n){let t=ln.get(n);t||ln.set(n,t=[]),t.push(e)}}function fn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:Yt(e)||o===!1||o===0?pn(e,1):pn(e),m,g,_,v,y=!1,b=!1;if(en(e)?(g=()=>e.value,y=Yt(e)):qt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>qt(e)||Yt(e)),g=()=>e.map(e=>{if(en(e))return e.value;if(qt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){Ze();try{_()}finally{Qe()}}let t=un;un=m;try{return f?f(e,3,[v]):e(v)}finally{un=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>pn(e(),t)}let ee=Ne(),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(cn):cn,re=e=>{if(!(!(m.flags&1)||!m.dirty&&!e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>de(e,ne[t])):de(t,ne))){_&&_();let e=un;un=m;try{let e=[t,ne===cn?void 0:b&&ne[0]===cn?[]:ne,v];ne=t,f?f(n,3,e):n(...e)}finally{un=e}}}else m.run()}};return u&&u(re),m=new Ie(g),m.scheduler=l?()=>l(re,!1):re,v=e=>dn(e,!1,m),_=m.onStop=()=>{let e=ln.get(m);if(e){if(f)f(e,4);else for(let t of e)t();ln.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 pn(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--,en(e))pn(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)pn(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{pn(e,t,n)});else if(ne(e)){for(let r in e)pn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&pn(e[r],t,n)}return e}function mn(e,t,n,r){try{return r?e(...r):e()}catch(e){gn(e,t,n)}}function hn(e,t,n,r){if(h(e)){let i=mn(e,t,n,r);return i&&y(i)&&i.catch(e=>{gn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(hn(e[a],t,n,r));return i}}function gn(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){Ze(),mn(o,null,10,[e,i,a]),Qe();return}}_n(e,r,a,i,s)}function _n(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var D=[],vn=-1,yn=[],bn=null,xn=0,Sn=Promise.resolve(),Cn=null;function wn(e){let t=Cn||Sn;return e?t.then(this?e.bind(this):e):t}function Tn(e){let t=vn+1,n=D.length;for(;t<n;){let r=t+n>>>1,i=D[r],a=jn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function En(e){if(!(e.flags&1)){let t=jn(e),n=D[D.length-1];!n||!(e.flags&2)&&t>=jn(n)?D.push(e):D.splice(Tn(t),0,e),e.flags|=1,Dn()}}function Dn(){Cn||=Sn.then(Mn)}function On(e){if(!d(e))bn&&e.id===-1?bn.splice(xn+1,0,e):e.flags&1||(yn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)yn.push(e[t]);Dn()}function kn(e,t,n=vn+1){for(;n<D.length;n++){let t=D[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;D.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function An(e){if(yn.length){let e=[...new Set(yn)].sort((e,t)=>jn(e)-jn(t));if(yn.length=0,bn){for(let t=0;t<e.length;t++)bn.push(e[t]);return}for(bn=e,xn=0;xn<bn.length;xn++){let e=bn[xn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}bn=null,xn=0}}var jn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Mn(e){try{for(vn=0;vn<D.length;vn++){let e=D[vn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),mn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;vn<D.length;vn++){let e=D[vn];e&&(e.flags&=-2)}vn=-1,D.length=0,An(e),Cn=null,(D.length||yn.length)&&Mn(e)}}var Nn=null,Pn=null;function Fn(e){let t=Nn;return Nn=e,Pn=e&&e.type.__scopeId||null,t}function In(e,t=Nn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Yi(-1);let i=Fn(t),a=Gi.length,o;try{o=e(...n)}finally{for(let e=Gi.length;e>a;e--)qi();Fn(i),r._d&&Yi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ln(e,n){if(Nn===null)return e;let r=Da(Nn),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&&pn(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Rn(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&&(Ze(),hn(c,n,8,[e.el,s,e,t]),Qe())}}function zn(e,t){if(pa){let n=pa.provides,r=pa.parent&&pa.parent.provides;r===n&&(n=pa.provides=Object.create(r)),n[e]=t}}function Bn(e,t,n=!1){let r=ma();if(r||Qr){let i=Qr?Qr._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 Vn=Symbol.for(`v-scx`),Hn=()=>Bn(Vn);function Un(e,t,n){return Wn(e,t,n)}function Wn(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(ba){if(c===`sync`){let e=Hn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=pa;u.call=(e,t,n)=>hn(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{ki(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():En(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=fn(e,n,u);return ba&&(f?f.push(h):d&&h()),h}function Gn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Kn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=_a(this),s=Wn(i,a.bind(r),n);return o(),s}function Kn(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 qn=Symbol(`_vte`),Jn=e=>e.__isTeleport,Yn=Symbol(`_leaveCb`);function Xn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Ui){t=n;break}}return t}function Zn(e){if(!or(e))return Jn(e.type)&&e.children?Xn(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 Qn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Qn(Jn(n.type)&&Zn(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 $n(e,t){return h(e)?s({name:e.name},t,{setup:e}):e}function er(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function tr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var nr=new WeakMap;function rr(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>rr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(ar(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&rr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Da(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=w(v),b=v===t?i:e=>!tr(_,e)&&u(y,e),ee=(e,t)=>!(t&&tr(_,t));if(m!=null&&m!==p){if(ir(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(en(m)){let e=n;ee(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))mn(p,f,12,[l,_]);else{let t=g(p),n=en(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(),nr.delete(e)};t.id=-1,nr.set(e,t),ki(t,r)}else ir(e),i()}}}function ir(e){let t=nr.get(e);t&&(t.flags|=8,nr.delete(e))}ge().requestIdleCallback,ge().cancelIdleCallback;var ar=e=>!!e.type.__asyncLoader,or=e=>e.type.__isKeepAlive;function sr(e,t){lr(e,`a`,t)}function cr(e,t){lr(e,`da`,t)}function lr(e,t,n=pa){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(dr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)or(e.parent.vnode)&&ur(r,t,n,e),e=e.parent}}function ur(e,t,n,r){let i=dr(t,e,r,!0);vr(()=>{c(r[t],i)},n)}function dr(e,t,n=pa,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ze();let i=_a(n),a=hn(t,n,e,r);return i(),Qe(),a};return r?i.unshift(a):i.push(a),a}}var fr=e=>(t,n=pa)=>{(!ba||e===`sp`)&&dr(e,(...e)=>t(...e),n)},pr=fr(`bm`),mr=fr(`m`),hr=fr(`bu`),gr=fr(`u`),_r=fr(`bum`),vr=fr(`um`),yr=fr(`sp`),br=fr(`rtg`),xr=fr(`rtc`);function Sr(e,t=pa){dr(`ec`,e,t)}var Cr=`components`;function wr(e,t){return Dr(Cr,e,!0,t)||e}var Tr=Symbol.for(`v-ndc`);function Er(e){return g(e)?Dr(Cr,e,!1)||e:e||Tr}function Dr(e,t,n=!0,r=!1){let i=Nn||pa;if(i){let n=i.type;if(e===Cr){let e=Oa(n,!1);if(e&&(e===t||e===se(t)||e===ue(se(t))))return n}let a=Or(i[e]||n[e],t)||Or(i.appContext[e],t);return!a&&r?n:a}}function Or(e,t){return e&&(e[t]||e[se(t)]||e[ue(se(t))])}function O(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&qt(e),r=!1,s=!1;n&&(r=!Yt(e),s=Jt(e),e=dt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?$t(Qt(e[n])):Qt(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 kr=e=>e?ya(e)?Da(e):kr(e.parent):null,Ar=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=>kr(e.parent),$root:e=>kr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zr(e),$forceUpdate:e=>e.f||=()=>{En(e.update)},$nextTick:e=>e.n||=wn.bind(e.proxy),$watch:e=>Gn.bind(e)}),jr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Mr={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(jr(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 Pr&&(s[n]=0)}let d=Ar[n],f,p;if(d)return n===`$attrs`&&ct(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 jr(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)||jr(n,c)||u(o,c)||u(i,c)||u(Ar,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 Nr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Pr=!0;function Fr(e){let t=zr(e),n=e.proxy,i=e.ctx;Pr=!1,t.beforeCreate&&Lr(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:oe,errorCaptured:se,serverPrefetch:ce,expose:le,inheritAttrs:ue,components:x,directives:de,filters:fe}=t;if(u&&Ir(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=Ut(t))}if(Pr=!0,o)for(let e in o){let t=o[e],a=L({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)Rr(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{zn(t,e[t])})}f&&Lr(f,e,`c`);function pe(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(pe(pr,p),pe(mr,m),pe(hr,g),pe(gr,_),pe(sr,y),pe(cr,b),pe(Sr,se),pe(xr,ae),pe(br,oe),pe(_r,te),pe(vr,re),pe(yr,ce),d(le)){if(le.length){let t=e.exposed||={};le.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),ue!=null&&(e.inheritAttrs=ue),x&&(e.components=x),de&&(e.directives=de),ce&&er(e)}function Ir(e,t,n=r){d(e)&&(e=Wr(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Bn(r.from||n,r.default,!0):Bn(r.from||n):Bn(r),en(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Lr(e,t,n){hn(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Rr(e,t,n,r){let i=r.includes(`.`)?Kn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&Un(i,n)}else if(h(e))Un(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Rr(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&Un(i,r,e)}}}function zr(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=>Br(c,e,o,!0)),Br(c,t,o)),v(t)&&a.set(t,c),c}function Br(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Br(e,a,n,!0),i&&i.forEach(t=>Br(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Vr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Vr={data:Hr,props:qr,emits:qr,methods:Kr,computed:Kr,beforeCreate:Gr,created:Gr,beforeMount:Gr,mounted:Gr,beforeUpdate:Gr,updated:Gr,beforeDestroy:Gr,beforeUnmount:Gr,destroyed:Gr,unmounted:Gr,activated:Gr,deactivated:Gr,errorCaptured:Gr,serverPrefetch:Gr,components:Kr,directives:Kr,watch:Jr,provide:Hr,inject:Ur};function Hr(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 Ur(e,t){return Kr(Wr(e),Wr(t))}function Wr(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Gr(e,t){return e?[...new Set([].concat(e,t))]:t}function Kr(e,t){return e?s(Object.create(null),e,t):t}function qr(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),Nr(e),Nr(t??{})):t}function Jr(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=Gr(e[r],t[r]);return n}function Yr(){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 Xr=0;function Zr(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=Yr(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:Xr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:ja,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||P(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,Da(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(hn(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=Qr;Qr=l;try{return e()}finally{Qr=t}}};return l}}var Qr=null,$r=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${se(t)}Modifiers`]||e[`${le(t)}Modifiers`];function ei(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&$r(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(me)));let c,l=i[c=x(n)]||i[c=x(se(n))];!l&&o&&(l=i[c=x(le(n))]),l&&hn(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,hn(u,e,6,a)}}var ti=new WeakMap;function ni(e,t,n=!1){let r=n?ti: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=ni(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 ri(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,le(t))||u(e,t))}function ii(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,_=Fn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=aa(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=aa(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:ai(c)}}catch(t){Gi.length=0,gn(t,e,1),v=P(Ui)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=oi(y,a)),b=ra(b,y,!1,!0))}return n.dirs&&(b=ra(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Qn(Jn(b.type)&&Zn(b)||b,n.transition),v=b,Fn(_),v}var ai=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},oi=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function si(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?ci(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(li(o,r,n)&&!ri(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||ci(r,o,l):!!o;return!1}function ci(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(li(t,e,a)&&!ri(n,a))return!0}return!1}function li(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!Ee(r,i):r!==i}function ui({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 di={},fi=()=>Object.create(di),pi=e=>Object.getPrototypeOf(e)===di;function mi(e,t,n,r=!1){let i={},a=fi();e.propsDefaults=Object.create(null),gi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Wt(i):e.type.props?i:a,e.attrs=a}function hi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=w(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(ri(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=se(o);i[t]=_i(c,s,t,d,e,!1)}}else d!==a[o]&&(a[o]=d,l=!0)}}}else{gi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=le(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=_i(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&<(e.attrs,`set`,``)}function gi(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=se(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:ri(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=w(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=_i(a,n,s,i[s],e,!u(i,s))}}return s}function _i(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=_a(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===le(n))&&(r=!0))}return r}var vi=new WeakMap;function yi(e,r,i=!1){let a=i?vi: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]=yi(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=se(c[e]);bi(n)&&(l[n]=t)}else if(c)for(let e in c){let t=se(e);if(bi(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 bi(e){return e[0]!==`$`&&!ie(e)}var xi=e=>e===`_`||e===`_ctx`||e===`$stable`,Si=e=>d(e)?e.map(aa):[aa(e)],Ci=(e,t,n)=>{if(t._n)return t;let r=In((...e)=>Si(t(...e)),n);return r._c=!1,r},wi=(e,t,n)=>{let r=e._ctx;for(let n in e){if(xi(n))continue;let i=e[n];if(h(i))t[n]=Ci(n,i,r);else if(i!=null){let e=Si(i);t[n]=()=>e}}},Ti=(e,t)=>{let n=Si(t);e.slots.default=()=>n},Ei=(e,t,n)=>{for(let r in t)(n||!xi(r))&&(e[r]=t[r])},Di=(e,t,n)=>{let r=e.slots=fi();if(e.vnode.shapeFlag&32){let e=t._;e?(Ei(r,t,n),n&&pe(r,`_`,e,!0)):wi(t,r)}else t&&Ti(e,t)},Oi=(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:Ei(a,n,r):(o=!n.$stable,wi(n,a)),s=n}else n&&(Ti(e,n),s={default:1});if(o)for(let e in a)!xi(e)&&s[e]==null&&delete a[e]},ki=Vi;function Ai(e){return ji(e)}function ji(e,i){let a=ge();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&&!Qi(e,t)&&(r=Ee(e),S(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 Hi:y(e,t,n,r);break;case Ui:b(e,t,n,r);break;case Wi:e??ee(t,n,r,o);break;case k:x(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?de(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,C)}u!=null&&i?rr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&rr(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(),ce(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&&se(e.children,d,null,r,i,Mi(e,a),s,u),_&&Rn(e,null,r,`created`),oe(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)&&la(f,r,e)}_&&Rn(e,null,r,`beforeMount`);let v=Pi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&ki(()=>{try{f&&la(f,r,e),v&&g.enter(d),_&&Rn(e,null,r,`mounted`)}finally{}},i)},oe=(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||Bi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;oe(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},se=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?oa(e[l]):aa(e[l]);v(null,c,t,n,r,i,a,o,s)}},ce=(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&&Ni(r,!1),(g=h.onVnodeBeforeUpdate)&&la(g,r,n,e),f&&Rn(n,e,r,`beforeUpdate`),r&&Ni(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?le(e.dynamicChildren,d,l,r,i,Mi(n,a),o):s||ve(e,n,l,null,r,i,Mi(n,a),o,!1),u>0){if(u&16)ue(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&&ue(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&ki(()=>{g&&la(g,r,n,e),f&&Rn(n,e,r,`updated`)},i)},le=(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===k||!Qi(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},ue=(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)}},x=(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),se(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(le(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Fi(e,t,!0)):ve(e,t,n,f,i,a,s,c,l)},de=(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):pe(t,n,r,i,a,o,c):me(e,t,c)},pe=(e,t,n,r,i,a,o)=>{let s=e.component=fa(e,r,i);if(or(e)&&(s.ctx.renderer=C),xa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,he,o),!e.el){let r=s.subTree=P(Ui);b(null,r,t,n),e.placeholder=r.el}}else he(s,e,t,n,i,a,o)},me=(e,t,n)=>{let r=t.component=e.component;if(si(e,t,n)){if(r.asyncDep&&!r.asyncResolved){_e(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},he=(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=Li(e);if(n){t&&(t.el=c.el,_e(e,t,o)),n.asyncDep.then(()=>{ki(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Ni(e,!1),t?(t.el=c.el,_e(e,t,o)):t=c,n&&fe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&la(d,s,t,c),Ni(e,!0);let f=ii(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),Ee(p),e,i,a),t.el=f.el,u===null&&ui(e,f.el),r&&ki(r,i),(d=t.props&&t.props.onVnodeUpdated)&&ki(()=>la(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=ar(t);if(Ni(e,!1),l&&fe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&la(o,d,t),Ni(e,!0),s&&Ae){let t=()=>{e.subTree=ii(e),Ae(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=ii(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&ki(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;ki(()=>la(o,d,e),i)}(t.shapeFlag&256||d&&ar(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&ki(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ie(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=()=>En(u),Ni(e,!0),l()},_e=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,hi(e,t.props,r,n),Oi(e,t.children,n),Ze(),kn(e),Qe()},ve=(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){be(l,d,n,r,i,a,o,s,c);return}if(f&256){ye(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&Te(l,i,a),d!==l&&p(n,d)):u&16?m&16?be(l,d,n,r,i,a,o,s,c):Te(l,i,a,!0):(u&8&&p(n,``),m&16&&se(d,n,r,i,a,o,s,c))},ye=(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?oa(t[p]):aa(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?Te(e,a,o,!0,!1,f):se(t,r,i,a,o,s,c,l,f)},be=(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?oa(t[u]):aa(t[u]);if(Qi(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?oa(t[p]):aa(t[p]);if(Qi(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?oa(t[u]):aa(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)S(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?oa(t[u]):aa(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){S(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(ne[_-h]===0&&Qi(n,t[_])){i=_;break}i===void 0?S(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?Ii(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||zi(f):i;ne[u]===0?v(null,n,r,p,a,o,s,c,l):ee&&(_<0||u!==re[_]?xe(n,r,p,2):_--)}}},xe=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){xe(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,C);return}if(c===k){o(a,t,n);for(let e=0;e<u.length;e++)xe(u[e],t,n,r);o(e.anchor,t,n);return}if(c===Wi){te(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Yn]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),ki(()=>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[Yn];a._isLeaving&&a[Yn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},S=(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&&(Ze(),rr(s,null,n,e,!0),Qe()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!ar(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&la(_,t,e),u&6)we(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Rn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,C,r):l&&!l.hasOnce&&(a!==k||d>0&&d&64)?Te(l,t,n,!1,!0):(a===k&&d&384||!i&&u&16)&&Te(c,t,n),r&&Se(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&ki(()=>{_&&la(_,t,e),h&&Rn(e,null,t,`unmounted`),v&&(e.el=null)},n)},Se=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===k){Ce(n,r);return}if(t===Wi){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()},Ce=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},we=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ri(c),Ri(l),r&&fe(r),i.stop(),a&&(a.flags|=8,S(o,e,t,n)),s&&ki(s,t),ki(()=>{e.isUnmounted=!0},t)},Te=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)S(e[o],t,n,r,i)},Ee=e=>{if(e.shapeFlag&6)return Ee(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[qn];return n?h(n):t},De=!1,Oe=(e,t,n)=>{let r;e==null?t._vnode&&(S(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,De||=(De=!0,kn(r),An(),!1)},C={p:v,um:S,m:xe,r:Se,mt:pe,mc:se,pc:ve,pbc:le,n:Ee,o:e},ke,Ae;return i&&([ke,Ae]=i(C)),{render:Oe,hydrate:ke,createApp:Zr(Oe,ke)}}function Mi({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 Ni({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fi(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]=oa(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Fi(t,a)),a.type===Hi&&(a.patchFlag===-1&&(a=i[e]=oa(a)),a.el=t.el),a.type===Ui&&!a.el&&(a.el=t.el)}}function Ii(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 Li(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Li(t)}function Ri(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function zi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?zi(t.subTree):null}var Bi=e=>e.__isSuspense;function Vi(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):On(e)}var k=Symbol.for(`v-fgt`),Hi=Symbol.for(`v-txt`),Ui=Symbol.for(`v-cmt`),Wi=Symbol.for(`v-stc`),Gi=[],Ki=null;function A(e=!1){Gi.push(Ki=e?null:[])}function qi(){Gi.pop(),Ki=Gi[Gi.length-1]||null}var Ji=1;function Yi(e,t=!1){Ji+=e,e<0&&Ki&&t&&(Ki.hasOnce=!0)}function Xi(e){return e.dynamicChildren=Ji>0?Ki||n:null,qi(),Ji>0&&Ki&&Ki.push(e),e}function j(e,t,n,r,i,a){return Xi(N(e,t,n,r,i,a,!0))}function M(e,t,n,r,i){return Xi(P(e,t,n,r,i,!0))}function Zi(e){return e?e.__v_isVNode===!0:!1}function Qi(e,t){return e.type===t.type&&e.key===t.key}var $i=({key:e})=>e??null,ea=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||en(e)||h(e)?{i:Nn,r:e,k:t,f:!!n}:e);function N(e,t=null,n=null,r=0,i=null,a=e===k?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$i(t),ref:t&&ea(t),scopeId:Pn,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:Nn};return s?(sa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),Ji>0&&!o&&Ki&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ki.push(c),c}var P=ta;function ta(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Tr)&&(e=Ui),Zi(e)){let r=ra(e,t,!0);return n&&sa(r,n),Ji>0&&!a&&Ki&&(r.shapeFlag&6?Ki[Ki.indexOf(e)]=r:Ki.push(r)),r.patchFlag=-2,r}if(ka(e)&&(e=e.__vccOpts),t){t=na(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=S(e)),v(n)&&(Xt(n)&&!d(n)&&(n=s({},n)),t.style=_e(n))}let o=g(e)?1:Bi(e)?128:Jn(e)?64:v(e)?4:h(e)?2:0;return N(e,t,n,r,i,o,a,!0)}function na(e){return e?Xt(e)||pi(e)?s({},e):e:null}function ra(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ca(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&$i(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ea(t)):[a,ea(t)]:ea(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!==k?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&&ra(e.ssContent),ssFallback:e.ssFallback&&ra(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Qn(u,c.clone(u)),u}function F(e=` `,t=0){return P(Hi,null,e,t)}function ia(e,t){let n=P(Wi,null,e);return n.staticCount=t,n}function I(e=``,t=!1){return t?(A(),M(Ui,null,e)):P(Ui,null,e)}function aa(e){return e==null||typeof e==`boolean`?P(Ui):d(e)?P(k,null,e.slice()):Zi(e)?oa(e):P(Hi,null,String(e))}function oa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ra(e)}function sa(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),sa(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!pi(t)?t._ctx=Nn:r===3&&Nn&&(Nn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){sa(e,{default:t});return}t={default:t,_ctx:Nn},n=32}else t=String(t),r&64?(n=16,t=[F(t)]):n=8;e.children=t,e.shapeFlag|=n}function ca(...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=S([t.class,r.class]));else if(e===`style`)t.style=_e([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 la(e,t,n,r=null){hn(e,t,7,[n,r])}var ua=Yr(),da=0;function fa(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||ua,o={uid:da++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Me(!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:yi(i,a),emitsOptions:ni(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=ei.bind(null,o),e.ce&&e.ce(o),o}var pa=null,ma=()=>pa||Nn,ha,ga;{let e=ge(),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)}};ha=t(`__VUE_INSTANCE_SETTERS__`,e=>pa=e),ga=t(`__VUE_SSR_SETTERS__`,e=>ba=e)}var _a=e=>{let t=pa;return ha(e),e.scope.on(),()=>{e.scope.off(),ha(t)}},va=()=>{pa&&pa.scope.off(),ha(null)};function ya(e){return e.vnode.shapeFlag&4}var ba=!1;function xa(e,t=!1,n=!1){t&&ga(t);let{props:r,children:i}=e.vnode,a=ya(e);mi(e,r,a,t),Di(e,i,n||t);let o=a?Sa(e,t):void 0;return t&&ga(!1),o}function Sa(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Mr);let{setup:r}=n;if(r){Ze();let n=e.setupContext=r.length>1?Ea(e):null,i=_a(e),a=mn(r,e,0,[e.props,n]),o=y(a);if(Qe(),i(),(o||e.sp)&&!ar(e)&&er(e),o){if(a.then(va,va),t)return a.then(n=>{ga(!0);try{Ca(e,n,t)}finally{ga(!1)}}).catch(t=>{gn(t,e,0)});e.asyncDep=a}else Ca(e,a,t)}else wa(e,t)}function Ca(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=an(t)),wa(e,n)}function wa(e,t,n){let i=e.type;e.render||=i.render||r;{let t=_a(e);Ze();try{Fr(e)}finally{Qe(),t()}}}var Ta={get(e,t){return ct(e,`get`,``),e[t]}};function Ea(e){return{attrs:new Proxy(e.attrs,Ta),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Da(e){return e.exposed?e.exposeProxy||=new Proxy(an(Zt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ar)return Ar[n](e)},has(e,t){return t in e||t in Ar}}):e.proxy}function Oa(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function ka(e){return h(e)&&`__vccOpts`in e}var L=(e,t)=>sn(e,t,ba);function Aa(e,t,n){try{Yi(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?Zi(t)?P(e,null,[t]):P(e,t):P(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Zi(n)&&(n=[n]),P(e,t,n))}finally{Yi(1)}}var ja=`3.5.41`,Ma=void 0,Na=typeof window<`u`&&window.trustedTypes;if(Na)try{Ma=Na.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Pa=Ma?e=>Ma.createHTML(e):e=>e,Fa=`http://www.w3.org/2000/svg`,Ia=`http://www.w3.org/1998/Math/MathML`,La=typeof document<`u`?document:null,Ra=La&&La.createElement(`template`),za={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`?La.createElementNS(Fa,e):t===`mathml`?La.createElementNS(Ia,e):n?La.createElement(e,{is:n}):La.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>La.createTextNode(e),createComment:e=>La.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>La.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{Ra.innerHTML=Pa(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ra.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]}},Ba=Symbol(`_vtc`);function Va(e,t,n){let r=e[Ba];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ha=Symbol(`_vod`),Ua=Symbol(`_vsh`),Wa=Symbol(``),Ga=/(?:^|;)\s*display\s*:/;function Ka(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]??Ja(r,t,``)}else for(let e in t)n[e]??Ja(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Ja(r,i,``):Qa(e,i,!g(t)&&t?t[i]:void 0,o)||Ja(r,i,o)}}else if(i){if(t!==n){let e=r[Wa];e&&(n+=`;`+e),r.cssText=n,a=Ga.test(n)}}else t&&e.removeAttribute(`style`);Ha in e&&(e[Ha]=a?r.display:``,e[Ua]&&(r.display=`none`))}var qa=/\s*!important$/;function Ja(e,t,n){if(d(n))n.forEach(n=>Ja(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Za(e,t);qa.test(n)?e.setProperty(le(r),n.replace(qa,``),`important`):e[r]=n}}var Ya=[`Webkit`,`Moz`,`ms`],Xa={};function Za(e,t){let n=Xa[t];if(n)return n;let r=se(t);if(r!==`filter`&&r in e)return Xa[t]=r;r=ue(r);for(let n=0;n<Ya.length;n++){let i=Ya[n]+r;if(i in e)return Xa[t]=i}return t}function Qa(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var $a=`http://www.w3.org/1999/xlink`;function eo(e,t,n,r,i,a=Ce(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS($a,t.slice(6,t.length)):e.setAttributeNS($a,t,n):n==null||a&&!we(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function to(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Pa(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=we(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 no(e,t,n,r){e.addEventListener(t,n,r)}function ro(e,t,n,r){e.removeEventListener(t,n,r)}var io=Symbol(`_vei`);function ao(e,t,n,r,i=null){let a=e[io]||(e[io]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=co(t);r?no(e,n,a[t]=po(r,i),s):o&&(ro(e,n,o,s),a[t]=void 0)}}var oo=/(Once|Passive|Capture)$/,so=/^on:?(?:Once|Passive|Capture)$/;function co(e){let t,n;for(;(n=e.match(oo))&&!so.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):le(e.slice(2)),t]}var lo=0,uo=Promise.resolve(),fo=()=>lo||=(uo.then(()=>lo=0),Date.now());function po(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&&hn(e,t,5,a)}}else hn(r,t,5,[e])};return n.value=e,n.attached=fo(),n}var mo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ho=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Va(e,r,c):t===`style`?Ka(e,n,r):a(t)?o(t)||ao(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):go(e,t,r,c))?(to(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&eo(e,t,r,c,s,t!==`value`)):e._isVueCE&&(_o(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?to(e,se(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),eo(e,t,r,c))};function go(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&mo(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 mo(t)&&g(n)?!1:t in e}function _o(e,t){let n=e._def.props;if(!n)return!1;let r=se(t);return Array.isArray(n)?n.some(e=>se(e)===r):Object.keys(n).some(e=>se(e)===r)}var vo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>fe(t,e):t};function yo(e){e.target.composing=!0}function bo(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var xo=Symbol(`_assign`),So=Symbol(`_initialValue`);function Co(e,t,n){return t&&(e=e.trim()),n&&(e=me(e)),e}var wo={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[xo]=vo(i);let a=r||i.props&&i.props.type===`number`;no(e,t?`change`:`input`,t=>{t.target.composing||e[xo](Co(e.value,n,a))}),(n||a)&&no(e,`change`,()=>{e.value=Co(e.value,n,a)}),t||(no(e,`compositionstart`,yo),no(e,`compositionend`,bo),no(e,`change`,bo))},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[xo](Co(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[xo]=vo(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?me(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)}},To={deep:!0,created(e,t,n){e[xo]=vo(n),no(e,`change`,()=>{let t=e._modelValue,n=ko(e),r=e.checked,i=e[xo];if(d(t)){let e=De(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(Ao(e,r))})},mounted:Eo,beforeUpdate(e,t,n){e[xo]=vo(n),Eo(e,t,n)}};function Eo(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=De(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=Ee(t,Ao(e,!0))}e.checked!==i&&(e.checked=i)}var Do={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,no(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?me(ko(e)):ko(e));e[xo](e.multiple?p(e._modelValue)?new Set(t):t:t[0]),e._assigning=!0,wn(()=>{e._assigning=!1})}),e[xo]=vo(r)},mounted(e,{value:t}){Oo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[xo]=vo(n)},updated(e,{value:t}){e._assigning||Oo(e,t)}};function Oo(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=ko(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):De(t,o)>-1}else a.selected=t.has(o)}else if(Ee(ko(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ko(e){return`_value`in e?e._value:e.value}function Ao(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var jo=[`ctrl`,`shift`,`alt`,`meta`],Mo={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)=>jo.some(n=>e[`${n}Key`]&&!t.includes(n))},No=(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=Mo[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Po={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Fo=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=le(n.key);if(t.some(e=>e===r||Po[e]===r))return e(n)}))},Io=s({patchProp:ho},za),Lo;function Ro(){return Lo||=Ai(Io)}var zo=((...e)=>{let t=Ro().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Vo(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,Bo(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Bo(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Vo(e){return g(e)?document.querySelector(e):e}function Ho(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var Uo={},Wo=[],Go=()=>{},Ko=()=>!1,qo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Jo=e=>e.startsWith(`onUpdate:`),Yo=Object.assign,Xo=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},Zo=Object.prototype.hasOwnProperty,Qo=(e,t)=>Zo.call(e,t),R=Array.isArray,$o=e=>ss(e)===`[object Map]`,es=e=>ss(e)===`[object Set]`,ts=e=>ss(e)===`[object Date]`,z=e=>typeof e==`function`,ns=e=>typeof e==`string`,rs=e=>typeof e==`symbol`,is=e=>typeof e==`object`&&!!e,as=e=>(is(e)||z(e))&&z(e.then)&&z(e.catch),os=Object.prototype.toString,ss=e=>os.call(e),cs=e=>ss(e).slice(8,-1),ls=e=>ss(e)===`[object Object]`,us=e=>ns(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ds=Ho(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),fs=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ps=/-\w/g,ms=fs(e=>e.replace(ps,e=>e.slice(1).toUpperCase())),hs=/\B([A-Z])/g,gs=fs(e=>e.replace(hs,`-$1`).toLowerCase()),_s=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),vs=fs(e=>e?`on${_s(e)}`:``),ys=(e,t)=>!Object.is(e,t),bs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},xs=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ss=e=>{let t=parseFloat(e);return isNaN(t)?e:t},Cs=e=>{let t=ns(e)?Number(e):NaN;return isNaN(t)?e:t},ws,Ts=()=>ws||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function Es(e){if(R(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=ns(r)?As(r):Es(r);if(i)for(let e in i)t[e]=i[e]}return t}if(ns(e)||is(e))return e}var Ds=/;(?![^(]*\))/g,Os=/:([^]+)/,ks=/\/\*[^]*?\*\//g;function As(e){let t={};return e.replace(ks,``).split(Ds).forEach(e=>{if(e){let n=e.split(Os);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function B(e){let t=``;if(ns(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){let r=B(e[n]);r&&(t+=r+` `)}else if(is(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var js=Ho(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`);function Ms(e){return!!e||e===``}function Ns(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ps(e[r],t[r]);return n}function Ps(e,t){if(e===t)return!0;let n=ts(e),r=ts(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=rs(e),r=rs(t),n||r)return e===t;if(n=R(e),r=R(t),n||r)return n&&r?Ns(e,t):!1;if(n=is(e),r=is(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||!Ps(e[n],t[n]))return!1}}return String(e)===String(t)}var Fs=e=>!!(e&&e.__v_isRef===!0),V=e=>ns(e)?e:e==null?``:R(e)||is(e)&&(e.toString===os||!z(e.toString))?Fs(e)?V(e.value):JSON.stringify(e,Is,2):String(e),Is=(e,t)=>Fs(t)?Is(e,t.value):$o(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ls(t,r)+` =>`]=n,e),{})}:es(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ls(e))}:rs(t)?Ls(t):is(t)&&!R(t)&&!ls(t)?String(t):t,Ls=(e,t=``)=>rs(e)?`Symbol(${e.description??t})`:e,Rs,zs=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&&Rs&&(Rs.active?(this.parent=Rs,this.index=(Rs.scopes||(Rs.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=Rs;try{return Rs=this,e()}finally{Rs=t}}}on(){++this._on===1&&(this.prevScope=Rs,Rs=this)}off(){if(this._on>0&&--this._on===0){if(Rs===this)Rs=this.prevScope;else{let e=Rs;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 Bs(){return Rs}var Vs,Hs=new WeakSet,Us=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,Rs&&(Rs.active?Rs.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hs.has(this)&&(Hs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,oc(this),Xs(this);let e=Vs,t=nc;Vs=this,nc=!0;try{return this.fn()}finally{Zs(this),Vs=e,nc=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)ec(e);this.deps=this.depsTail=void 0,oc(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qs(this)&&this.run()}get dirty(){return Qs(this)}},Ws=0,Gs,Ks;function qs(e,t=!1){if(e.flags|=8,t){e.next=Ks,Ks=e;return}e.next=Gs,Gs=e}function Js(){Ws++}function Ys(){if(--Ws>0)return;if(Ks){let e=Ks;for(Ks=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Gs;){let t=Gs;for(Gs=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 Xs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zs(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),ec(r),tc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($s(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $s(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===sc)||(e.globalVersion=sc,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qs(e))))return;e.flags|=2;let t=e.dep,n=Vs,r=nc;Vs=e,nc=!0;try{Xs(e);let n=e.fn(e._value);(t.version===0||ys(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Vs=n,nc=r,Zs(e),e.flags&=-3}}function ec(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)ec(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tc(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var nc=!0,rc=[];function ic(){rc.push(nc),nc=!1}function ac(){let e=rc.pop();nc=e===void 0||e}function oc(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=Vs;Vs=void 0;try{t()}finally{Vs=e}}}var sc=0,cc=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}},lc=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(!Vs||!nc||Vs===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==Vs)t=this.activeLink=new cc(Vs,this),Vs.deps?(t.prevDep=Vs.depsTail,Vs.depsTail.nextDep=t,Vs.depsTail=t):Vs.deps=Vs.depsTail=t,uc(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=Vs.depsTail,t.nextDep=void 0,Vs.depsTail.nextDep=t,Vs.depsTail=t,Vs.deps===t&&(Vs.deps=e)}return t}trigger(e){this.version++,sc++,this.notify(e)}notify(e){Js();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ys()}}};function uc(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)uc(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var dc=new WeakMap,fc=Symbol(``),pc=Symbol(``),mc=Symbol(``);function hc(e,t,n){if(nc&&Vs){let t=dc.get(e);t||dc.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new lc),r.map=t,r.key=n),r.track()}}function gc(e,t,n,r,i,a){let o=dc.get(e);if(!o){sc++;return}let s=e=>{e&&e.trigger()};if(Js(),t===`clear`)o.forEach(s);else{let i=R(e),a=i&&us(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===mc||!rs(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(mc)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(fc)),$o(e)&&s(o.get(pc)));break;case`delete`:i||(s(o.get(fc)),$o(e)&&s(o.get(pc)));break;case`set`:$o(e)&&s(o.get(fc));break}}Ys()}function _c(e){let t=il(e);return t===e?t:(hc(t,`iterate`,mc),nl(e)?t:t.map(ol))}function vc(e){return hc(e=il(e),`iterate`,mc),e}function yc(e,t){return tl(e)?sl(el(e)?ol(t):t):ol(t)}var bc={__proto__:null,[Symbol.iterator](){return xc(this,Symbol.iterator,e=>yc(this,e))},concat(...e){return _c(this).concat(...e.map(e=>R(e)?_c(e):e))},entries(){return xc(this,`entries`,e=>(e[1]=yc(this,e[1]),e))},every(e,t){return Cc(this,`every`,e,t,void 0,arguments)},filter(e,t){return Cc(this,`filter`,e,t,e=>e.map(e=>yc(this,e)),arguments)},find(e,t){return Cc(this,`find`,e,t,e=>yc(this,e),arguments)},findIndex(e,t){return Cc(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Cc(this,`findLast`,e,t,e=>yc(this,e),arguments)},findLastIndex(e,t){return Cc(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Cc(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Tc(this,`includes`,e)},indexOf(...e){return Tc(this,`indexOf`,e)},join(e){return _c(this).join(e)},lastIndexOf(...e){return Tc(this,`lastIndexOf`,e)},map(e,t){return Cc(this,`map`,e,t,void 0,arguments)},pop(){return Ec(this,`pop`)},push(...e){return Ec(this,`push`,e)},reduce(e,...t){return wc(this,`reduce`,e,t)},reduceRight(e,...t){return wc(this,`reduceRight`,e,t)},shift(){return Ec(this,`shift`)},some(e,t){return Cc(this,`some`,e,t,void 0,arguments)},splice(...e){return Ec(this,`splice`,e)},toReversed(){return _c(this).toReversed()},toSorted(e){return _c(this).toSorted(e)},toSpliced(...e){return _c(this).toSpliced(...e)},unshift(...e){return Ec(this,`unshift`,e)},values(){return xc(this,`values`,e=>yc(this,e))}};function xc(e,t,n){let r=vc(e),i=r[t]();return r!==e&&!nl(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var Sc=Array.prototype;function Cc(e,t,n,r,i,a){let o=vc(e),s=o!==e&&!nl(e),c=o[t];if(c!==Sc[t]){let t=c.apply(e,a);return s?ol(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,yc(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 wc(e,t,n,r){let i=vc(e),a=i!==e&&!nl(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=yc(e,t)),n.call(this,t,yc(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?yc(e,c):c}function Tc(e,t,n){let r=il(e);hc(r,`iterate`,mc);let i=r[t](...n);return(i===-1||i===!1)&&rl(n[0])?(n[0]=il(n[0]),r[t](...n)):i}function Ec(e,t,n=[]){ic(),Js();let r=il(e)[t].apply(e,n);return Ys(),ac(),r}var Dc=Ho(`__proto__,__v_isRef,__isVue`),Oc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(rs));function kc(e){rs(e)||(e=String(e));let t=il(this);return hc(t,`has`,e),t.hasOwnProperty(e)}var Ac=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?Jc:qc:i?Kc:Gc).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=R(e);if(!r){let e;if(a&&(e=bc[t]))return e;if(t===`hasOwnProperty`)return kc}let o=Reflect.get(e,t,cl(e)?e:n);if((rs(t)?Oc.has(t):Dc(t))||(r||hc(e,`get`,t),i))return o;if(cl(o)){let e=a&&us(t)?o:o.value;return r&&is(e)?Qc(e):e}return is(o)?r?Qc(o):Xc(o):o}},jc=class extends Ac{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=R(e)&&us(t);if(!this._isShallow){let e=tl(i);if(!nl(n)&&!tl(n)&&(i=il(i),n=il(n)),!a&&cl(i)&&!cl(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:Qo(e,t),s=Reflect.set(e,t,n,cl(e)?e:r);return e===il(r)&&s&&(o?ys(n,i)&&gc(e,`set`,t,n,i):gc(e,`add`,t,n)),s}deleteProperty(e,t){let n=Qo(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&gc(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!rs(t)||!Oc.has(t))&&hc(e,`has`,t),n}ownKeys(e){return hc(e,`iterate`,R(e)?`length`:fc),Reflect.ownKeys(e)}},Mc=class extends Ac{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Nc=new jc,Pc=new Mc,Fc=new jc(!0),Ic=e=>e,Lc=e=>Reflect.getPrototypeOf(e);function Rc(e,t,n){return function(...r){let i=this.__v_raw,a=il(i),o=$o(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?Ic:t?sl:ol;return!t&&hc(a,`iterate`,c?pc:fc),Yo(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function zc(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Bc(e,t){let n={get(n){let r=this.__v_raw,i=il(r),a=il(n);e||(ys(n,a)&&hc(i,`get`,n),hc(i,`get`,a));let{has:o}=Lc(i),s=t?Ic:e?sl:ol;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&&hc(il(t),`iterate`,fc),t.size},has(t){let n=this.__v_raw,r=il(n),i=il(t);return e||(ys(t,i)&&hc(r,`has`,t),hc(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=il(a),s=t?Ic:e?sl:ol;return!e&&hc(o,`iterate`,fc),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return Yo(n,e?{add:zc(`add`),set:zc(`set`),delete:zc(`delete`),clear:zc(`clear`)}:{add(e){let n=il(this),r=Lc(n),i=il(e),a=!t&&!nl(e)&&!tl(e)?i:e;return r.has.call(n,a)||ys(e,a)&&r.has.call(n,e)||ys(i,a)&&r.has.call(n,i)||(n.add(a),gc(n,`add`,a,a)),this},set(e,n){!t&&!nl(n)&&!tl(n)&&(n=il(n));let r=il(this),{has:i,get:a}=Lc(r),o=i.call(r,e);o||=(e=il(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?ys(n,s)&&gc(r,`set`,e,n,s):gc(r,`add`,e,n),this},delete(e){let t=il(this),{has:n,get:r}=Lc(t),i=n.call(t,e);i||=(e=il(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&gc(t,`delete`,e,void 0,a),o},clear(){let e=il(this),t=e.size!==0,n=e.clear();return t&&gc(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Rc(r,e,t)}),n}function Vc(e,t){let n=Bc(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(Qo(n,r)&&r in t?n:t,r,i)}var Hc={get:Vc(!1,!1)},Uc={get:Vc(!1,!0)},Wc={get:Vc(!0,!1)},Gc=new WeakMap,Kc=new WeakMap,qc=new WeakMap,Jc=new WeakMap;function Yc(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Xc(e){return tl(e)?e:$c(e,!1,Nc,Hc,Gc)}function Zc(e){return $c(e,!1,Fc,Uc,Kc)}function Qc(e){return $c(e,!0,Pc,Wc,qc)}function $c(e,t,n,r,i){if(!is(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=Yc(cs(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function el(e){return tl(e)?el(e.__v_raw):!!(e&&e.__v_isReactive)}function tl(e){return!!(e&&e.__v_isReadonly)}function nl(e){return!!(e&&e.__v_isShallow)}function rl(e){return e?!!e.__v_raw:!1}function il(e){let t=e&&e.__v_raw;return t?il(t):e}function al(e){return!Qo(e,`__v_skip`)&&Object.isExtensible(e)&&xs(e,`__v_skip`,!0),e}var ol=e=>is(e)?Xc(e):e,sl=e=>is(e)?Qc(e):e;function cl(e){return e?e.__v_isRef===!0:!1}function ll(e){return ul(e,!1)}function ul(e,t){return cl(e)?e:new dl(e,t)}var dl=class{constructor(e,t){this.dep=new lc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:il(e),this._value=t?e:ol(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||nl(e)||tl(e);e=n?e:il(e),ys(e,t)&&(this._rawValue=e,this._value=n?e:ol(e),this.dep.trigger())}};function fl(e){return cl(e)?e.value:e}var pl={get:(e,t,n)=>t===`__v_raw`?e:fl(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return cl(i)&&!cl(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function ml(e){return el(e)?e:new Proxy(e,pl)}var hl=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new lc(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=sc-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Vs!==this)return qs(this,!0),!0}get value(){let e=this.dep.track();return $s(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function gl(e,t,n=!1){let r,i;return z(e)?r=e:(r=e.get,i=e.set),new hl(r,i,n)}var _l={},vl=new WeakMap,yl;function bl(e,t=!1,n=yl){if(n){let t=vl.get(n);t||vl.set(n,t=[]),t.push(e)}}function xl(e,t,n=Uo){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:nl(e)||i===!1||i===0?Sl(e,1):Sl(e),u,d,f,p,m=!1,h=!1;if(cl(e)?(d=()=>e.value,m=nl(e)):el(e)?(d=()=>l(e),m=!0):R(e)?(h=!0,m=e.some(e=>el(e)||nl(e)),d=()=>e.map(e=>{if(cl(e))return e.value;if(el(e))return l(e);if(z(e))return c?c(e,2):e()})):d=z(e)?t?c?()=>c(e,2):e:()=>{if(f){ic();try{f()}finally{ac()}}let t=yl;yl=u;try{return c?c(e,3,[p]):e(p)}finally{yl=t}}:Go,t&&i){let e=d,t=i===!0?1/0:i;d=()=>Sl(e(),t)}let g=Bs(),_=()=>{u.stop(),g&&g.active&&Xo(g.effects,u)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return _(),n}}let v=h?Array(e.length).fill(_l):_l,y=e=>{if(!(!(u.flags&1)||!u.dirty&&!e)){if(t){let n=u.run();if(e||i||m||(h?n.some((e,t)=>ys(e,v[t])):ys(n,v))){f&&f();let e=yl;yl=u;try{let e=[n,v===_l?void 0:h&&v[0]===_l?[]:v,p];v=n,c?c(t,3,e):t(...e)}finally{yl=e}}}else u.run()}};return s&&s(y),u=new Us(d),u.scheduler=o?()=>o(y,!1):y,p=e=>bl(e,!1,u),f=u.onStop=()=>{let e=vl.get(u);if(e){if(c)c(e,4);else for(let t of e)t();vl.delete(u)}},t?r?y(!0):v=u.run():o?o(y.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Sl(e,t=1/0,n){if(t<=0||!is(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,cl(e))Sl(e.value,t,n);else if(R(e))for(let r=0;r<e.length;r++)Sl(e[r],t,n);else if(es(e)||$o(e))e.forEach(e=>{Sl(e,t,n)});else if(ls(e)){for(let r in e)Sl(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Sl(e[r],t,n)}return e}function Cl(e,t,n,r){try{return r?e(...r):e()}catch(e){Tl(e,t,n)}}function wl(e,t,n,r){if(z(e)){let i=Cl(e,t,n,r);return i&&as(i)&&i.catch(e=>{Tl(e,t,n)}),i}if(R(e)){let i=[];for(let a=0;a<e.length;a++)i.push(wl(e[a],t,n,r));return i}}function Tl(e,t,n,r=!0){let i=t?t.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Uo;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(a){ic(),Cl(a,null,10,[e,i,o]),ac();return}}El(e,n,i,r,o)}function El(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Dl=[],Ol=-1,kl=[],Al=null,jl=0,Ml=Promise.resolve(),Nl=null;function Pl(e){let t=Nl||Ml;return e?t.then(this?e.bind(this):e):t}function Fl(e){let t=Ol+1,n=Dl.length;for(;t<n;){let r=t+n>>>1,i=Dl[r],a=Vl(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Il(e){if(!(e.flags&1)){let t=Vl(e),n=Dl[Dl.length-1];!n||!(e.flags&2)&&t>=Vl(n)?Dl.push(e):Dl.splice(Fl(t),0,e),e.flags|=1,Ll()}}function Ll(){Nl||=Ml.then(Hl)}function Rl(e){if(!R(e))Al&&e.id===-1?Al.splice(jl+1,0,e):e.flags&1||(kl.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)kl.push(e[t]);Ll()}function zl(e,t,n=Ol+1){for(;n<Dl.length;n++){let t=Dl[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;Dl.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Bl(e){if(kl.length){let e=[...new Set(kl)].sort((e,t)=>Vl(e)-Vl(t));if(kl.length=0,Al){for(let t=0;t<e.length;t++)Al.push(e[t]);return}for(Al=e,jl=0;jl<Al.length;jl++){let e=Al[jl];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}Al=null,jl=0}}var Vl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Hl(e){try{for(Ol=0;Ol<Dl.length;Ol++){let e=Dl[Ol];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Cl(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Ol<Dl.length;Ol++){let e=Dl[Ol];e&&(e.flags&=-2)}Ol=-1,Dl.length=0,Bl(e),Nl=null,(Dl.length||kl.length)&&Hl(e)}}var Ul=null,Wl=null;function Gl(e){let t=Ul;return Ul=e,Wl=e&&e.type.__scopeId||null,t}function Kl(e,t=Ul,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&vf(-1);let i=Gl(t),a=mf.length,o;try{o=e(...n)}finally{for(let e=mf.length;e>a;e--)gf();Gl(i),r._d&&vf(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function ql(e,t){if(Ul===null)return e;let n=Zf(Ul),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[i,a,o,s=Uo]=t[e];i&&(z(i)&&(i={mounted:i,updated:i}),i.deep&&Sl(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:s}))}return e}function Jl(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&&(ic(),wl(c,n,8,[e.el,s,e,t]),ac())}}function Yl(e,t){if(Lf){let n=Lf.provides,r=Lf.parent&&Lf.parent.provides;r===n&&(n=Lf.provides=Object.create(r)),n[e]=t}}function Xl(e,t,n=!1){let r=Rf();if(r||bd){let i=bd?bd._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&&z(t)?t.call(r&&r.proxy):t}}var Zl=Symbol.for(`v-scx`),Ql=()=>Xl(Zl);function $l(e,t,n){return eu(e,t,n)}function eu(e,t,n=Uo){let{immediate:r,deep:i,flush:a,once:o}=n,s=Yo({},n),c=t&&r||!t&&a!==`post`,l;if(Wf){if(a===`sync`){let e=Ql();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=Go,e.resume=Go,e.pause=Go,e}}let u=Lf;s.call=(e,t,n)=>wl(e,u,t,n);let d=!1;a===`post`?s.scheduler=e=>{Zd(e,u&&u.suspense)}:a!==`sync`&&(d=!0,s.scheduler=(e,t)=>{t?e():Il(e)}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let f=xl(e,t,s);return Wf&&(l?l.push(f):c&&f()),f}function tu(e,t,n){let r=this.proxy,i=ns(e)?e.includes(`.`)?nu(r,e):()=>r[e]:e.bind(r,r),a;z(t)?a=t:(a=t.handler,n=t);let o=Vf(this),s=eu(i,a.bind(r),n);return o(),s}function nu(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 ru=Symbol(`_vte`),iu=e=>e.__isTeleport,au=Symbol(`_leaveCb`),ou=Symbol(`_enterCb`);function su(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Fu(()=>{e.isMounted=!0}),Ru(()=>{e.isUnmounting=!0}),e}var cu=[Function,Array],lu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cu,onEnter:cu,onAfterEnter:cu,onEnterCancelled:cu,onBeforeLeave:cu,onLeave:cu,onAfterLeave:cu,onLeaveCancelled:cu,onBeforeAppear:cu,onAppear:cu,onAfterAppear:cu,onAppearCancelled:cu},uu=e=>{let t=e.subTree;return t.component?uu(t.component):t},du={name:`BaseTransition`,props:lu,setup(e,{slots:t}){let n=Rf(),r=su();return()=>{let i=t.default&&yu(t.default(),!0),a=i&&i.length?fu(i):n.subTree?Y():void 0;if(!a)return;let o=il(e),{mode:s}=o;if(r.isLeaving)return gu(a);let c=_u(a);if(!c)return gu(a);let l=hu(c,o,r,n,e=>l=e);c.type!==ff&&vu(c,l);let u=n.subTree&&_u(n.subTree);if(u&&u.type!==ff&&!Sf(u,c)&&uu(n).type!==ff){let e=hu(u,o,r,n);if(vu(u,e),s===`out-in`&&c.type!==ff)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},gu(a);s===`in-out`&&c.type!==ff?e.delayLeave=(e,t,n)=>{let i=mu(r,u);i[String(u.key)]=u,e[au]=()=>{t(),e[au]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function fu(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==ff&&(t=n,!0))break}return t}var pu=du;function mu(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hu(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),ee=mu(n,e),te=(e,t)=>{e&&wl(e,r,9,t)},ne=(e,t)=>{let n=t[1];te(e,t),R(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},re={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=g||c;else return}t[au]&&t[au](!0);let i=ee[b];i&&Sf(e,i)&&i.el[au]&&i.el[au](),te(r,[t])},enter(t){if(ee[b]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=_||l,i=v||u,o=y||d;else return}let s=!1;t[ou]=e=>{s||(s=!0,te(e?o:i,[t]),re.delayedLeave&&re.delayedLeave(),t[ou]=void 0)};let c=t[ou].bind(null,!1);r?ne(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[ou]&&t[ou](!0),n.isUnmounting)return r();te(f,[t]);let a=!1;t[au]=n=>{a||(a=!0,r(),te(n?h:m,[t]),t[au]=void 0,ee[i]===e&&delete ee[i])};let o=t[au].bind(null,!1);ee[i]=e,p?ne(p,[t,o]):o()},clone(e){let a=hu(e,t,n,r,i);return i&&i(a),a}};return re}function gu(e){if(Du(e))return e=Df(e),e.children=null,e}function _u(e){if(!Du(e))return iu(e.type)&&e.children?fu(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&&z(n.default))return n.default()}}function vu(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;vu(iu(n.type)&&_u(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 yu(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===W?(o.patchFlag&128&&i++,r=r.concat(yu(o.children,t,s))):(t||o.type!==ff)&&r.push(s==null?o:Df(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function H(e,t){return z(e)?Yo({name:e.name},t,{setup:e}):e}function bu(){let e=Rf();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function xu(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function Su(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Cu=new WeakMap;function wu(e,t,n,r,i=!1){if(R(e)){e.forEach((e,a)=>wu(e,t&&(R(t)?t[a]:t),n,r,i));return}if(Eu(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&wu(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?Zf(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===Uo?s.refs={}:s.refs,d=s.setupState,f=il(d),p=d===Uo?Ko:e=>!Su(u,e)&&Qo(f,e),m=(e,t)=>!(t&&Su(u,t));if(l!=null&&l!==c){if(Tu(t),ns(l))u[l]=null,p(l)&&(d[l]=null);else if(cl(l)){let e=t;m(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(z(c))Cl(c,s,12,[o,u]);else{let t=ns(c),r=cl(c);if(t||r){let s=()=>{if(e.f){let n=t?p(c)?d[c]:u[c]:m(c)||!e.k?c.value:u[e.k];if(i)R(n)&&Xo(n,a);else if(R(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],p(c)&&(d[c]=u[c]);else{let t=[a];m(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,p(c)&&(d[c]=o)):r&&(m(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),Cu.delete(e)};t.id=-1,Cu.set(e,t),Zd(t,n)}else Tu(e),s()}}}function Tu(e){let t=Cu.get(e);t&&(t.flags|=8,Cu.delete(e))}Ts().requestIdleCallback,Ts().cancelIdleCallback;var Eu=e=>!!e.type.__asyncLoader,Du=e=>e.type.__isKeepAlive;function Ou(e,t){Au(e,`a`,t)}function ku(e,t){Au(e,`da`,t)}function Au(e,t,n=Lf){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Mu(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Du(e.parent.vnode)&&ju(r,t,n,e),e=e.parent}}function ju(e,t,n,r){let i=Mu(t,e,r,!0);zu(()=>{Xo(r[t],i)},n)}function Mu(e,t,n=Lf,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ic();let i=Vf(n),a=wl(t,n,e,r);return i(),ac(),a};return r?i.unshift(a):i.push(a),a}}var Nu=e=>(t,n=Lf)=>{(!Wf||e===`sp`)&&Mu(e,(...e)=>t(...e),n)},Pu=Nu(`bm`),Fu=Nu(`m`),Iu=Nu(`bu`),Lu=Nu(`u`),Ru=Nu(`bum`),zu=Nu(`um`),Bu=Nu(`sp`),Vu=Nu(`rtg`),Hu=Nu(`rtc`);function Uu(e,t=Lf){Mu(`ec`,e,t)}var Wu=`components`,Gu=Symbol.for(`v-ndc`);function Ku(e){return ns(e)?qu(Wu,e,!1)||e:e||Gu}function qu(e,t,n=!0,r=!1){let i=Ul||Lf;if(i){let n=i.type;{let e=Qf(n,!1);if(e&&(e===t||e===ms(t)||e===_s(ms(t))))return n}let a=Ju(i[e]||n[e],t)||Ju(i.appContext[e],t);return!a&&r?n:a}}function Ju(e,t){return e&&(e[t]||e[ms(t)]||e[_s(ms(t))])}function Yu(e,t,n,r){let i,a=n,o=R(e);if(o||ns(e)){let n=o&&el(e),r=!1,s=!1;n&&(r=!nl(e),s=tl(e),e=vc(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?sl(ol(e[n])):ol(e[n]):e[n],n,void 0,a)}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a)}else if(is(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a));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)}}}else i=[];return i}function U(e,t,n,r,i,a){if(n??={},Ul.ce||Ul.parent&&Eu(Ul.parent)&&Ul.parent.ce){let e=a!=null&&n.key==null?Yo({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),G(),bf(W,null,[J(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=mf.length;G();let c;try{let i=o&&Xu(o(n)),s=n.key||a||i&&i.key;c=bf(W,{key:(s&&!rs(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=mf.length;e>s;e--)gf();throw e}finally{o&&o._c&&(o._d=!0)}return c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function Xu(e){return e.some(e=>!xf(e)||!(e.type===ff||e.type===W&&!Xu(e.children)))?e:null}var Zu=e=>e?Uf(e)?Zf(e):Zu(e.parent):null,Qu=Yo(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=>Zu(e.parent),$root:e=>Zu(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>sd(e),$forceUpdate:e=>e.f||=()=>{Il(e.update)},$nextTick:e=>e.n||=Pl.bind(e.proxy),$watch:e=>tu.bind(e)}),$u=(e,t)=>e!==Uo&&!e.__isScriptSetup&&Qo(e,t),ed={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if($u(r,t))return o[t]=1,r[t];if(i!==Uo&&Qo(i,t))return o[t]=2,i[t];if(Qo(a,t))return o[t]=3,a[t];if(n!==Uo&&Qo(n,t))return o[t]=4,n[t];nd&&(o[t]=0)}}let l=Qu[t],u,d;if(l)return t===`$attrs`&&hc(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==Uo&&Qo(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Qo(d,t))return d[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return $u(i,t)?(i[t]=n,!0):r!==Uo&&Qo(r,t)?(r[t]=n,!0):Qo(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==Uo&&s[0]!==`$`&&Qo(e,s)||$u(t,s)||Qo(a,s)||Qo(r,s)||Qo(Qu,s)||Qo(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?Qo(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function td(e){return R(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var nd=!0;function rd(e){let t=sd(e),n=e.proxy,r=e.ctx;nd=!1,t.beforeCreate&&ad(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:b,render:ee,renderTracked:te,renderTriggered:ne,errorCaptured:re,serverPrefetch:ie,expose:ae,inheritAttrs:oe,components:se,directives:ce,filters:le}=t;if(l&&id(l,r,null),o)for(let e in o){let t=o[e];z(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);is(t)&&(e.data=Xc(t))}if(nd=!0,a)for(let e in a){let t=a[e],i=ep({get:z(t)?t.bind(n,n):z(t.get)?t.get.bind(n,n):Go,set:!z(t)&&z(t.set)?t.set.bind(n):Go});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)od(s[e],r,n,e);if(c){let e=z(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{Yl(t,e[t])})}u&&ad(u,e,`c`);function ue(e,t){R(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ue(Pu,d),ue(Fu,f),ue(Iu,p),ue(Lu,m),ue(Ou,h),ue(ku,g),ue(Uu,re),ue(Hu,te),ue(Vu,ne),ue(Ru,v),ue(zu,b),ue(Bu,ie),R(ae)){if(ae.length){let t=e.exposed||={};ae.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}ee&&e.render===Go&&(e.render=ee),oe!=null&&(e.inheritAttrs=oe),se&&(e.components=se),ce&&(e.directives=ce),ie&&xu(e)}function id(e,t,n=Go){R(e)&&(e=fd(e));for(let n in e){let r=e[n],i;i=is(r)?`default`in r?Xl(r.from||n,r.default,!0):Xl(r.from||n):Xl(r),cl(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function ad(e,t,n){wl(R(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function od(e,t,n,r){let i=r.includes(`.`)?nu(n,r):()=>n[r];if(ns(e)){let n=t[e];z(n)&&$l(i,n)}else if(z(e))$l(i,e.bind(n));else if(is(e)){if(R(e))e.forEach(e=>od(e,t,n,r));else{let r=z(e.handler)?e.handler.bind(n):t[e.handler];z(r)&&$l(i,r,e)}}}function sd(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=>cd(c,e,o,!0)),cd(c,t,o)),is(t)&&a.set(t,c),c}function cd(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&cd(e,a,n,!0),i&&i.forEach(t=>cd(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=ld[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var ld={data:ud,props:hd,emits:hd,methods:md,computed:md,beforeCreate:pd,created:pd,beforeMount:pd,mounted:pd,beforeUpdate:pd,updated:pd,beforeDestroy:pd,beforeUnmount:pd,destroyed:pd,unmounted:pd,activated:pd,deactivated:pd,errorCaptured:pd,serverPrefetch:pd,components:md,directives:md,watch:gd,provide:ud,inject:dd};function ud(e,t){return t?e?function(){return Yo(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function dd(e,t){return md(fd(e),fd(t))}function fd(e){if(R(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function pd(e,t){return e?[...new Set([].concat(e,t))]:t}function md(e,t){return e?Yo(Object.create(null),e,t):t}function hd(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:Yo(Object.create(null),td(e),td(t??{})):t}function gd(e,t){if(!e)return t;if(!t)return e;let n=Yo(Object.create(null),e);for(let r in t)n[r]=pd(e[r],t[r]);return n}function _d(){return{app:null,config:{isNativeTag:Ko,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 vd=0;function yd(e,t){return function(t,n=null){z(t)||(t=Yo({},t)),n!=null&&!is(n)&&(n=null);let r=_d(),i=new WeakSet,a=[],o=!1,s=r.app={_uid:vd++,_component:t,_props:n,_container:null,_context:r,_instance:null,version:np,get config(){return r.config},set config(e){},use(e,...t){return i.has(e)||(e&&z(e.install)?(i.add(e),e.install(s,...t)):z(e)&&(i.add(e),e(s,...t))),s},mixin(e){return r.mixins.includes(e)||r.mixins.push(e),s},component(e,t){return t?(r.components[e]=t,s):r.components[e]},directive(e,t){return t?(r.directives[e]=t,s):r.directives[e]},mount(i,a,c){if(!o){let a=s._ceVNode||J(t,n);return a.appContext=r,c===!0?c=`svg`:c===!1&&(c=void 0),e(a,i,c),o=!0,s._container=i,i.__vue_app__=s,Zf(a.component)}},onUnmount(e){a.push(e)},unmount(){o&&(wl(a,s._instance,16),e(null,s._container),delete s._container.__vue_app__)},provide(e,t){return r.provides[e]=t,s},runWithContext(e){let t=bd;bd=s;try{return e()}finally{bd=t}}};return s}}var bd=null,xd=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${ms(t)}Modifiers`]||e[`${gs(t)}Modifiers`];function Sd(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||Uo,i=n,a=t.startsWith(`update:`),o=a&&xd(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>ns(e)?e.trim():e)),o.number&&(i=n.map(Ss)));let s,c=r[s=vs(t)]||r[s=vs(ms(t))];!c&&a&&(c=r[s=vs(gs(t))]),c&&wl(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,wl(l,e,6,i)}}var Cd=new WeakMap;function wd(e,t,n=!1){let r=n?Cd:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!z(e)){let r=e=>{let n=wd(e,t,!0);n&&(s=!0,Yo(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(is(e)&&r.set(e,null),null):(R(a)?a.forEach(e=>o[e]=null):Yo(o,a),is(e)&&r.set(e,o),o)}function Td(e,t){return!e||!qo(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),Qo(e,t[0].toLowerCase()+t.slice(1))||Qo(e,gs(t))||Qo(e,t))}function Ed(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,g=Gl(e),_,v;try{if(n.shapeFlag&4){let e=i||r,t=e;_=kf(l.call(t,e,u,d,p,f,m)),v=s}else{let e=t;_=kf(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),v=t.props?s:Dd(s)}}catch(t){mf.length=0,Tl(t,e,1),_=J(ff)}let y=_;if(v&&h!==!1){let e=Object.keys(v),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(Jo)&&(v=Od(v,a)),y=Df(y,v,!1,!0))}return n.dirs&&(y=Df(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&vu(iu(y.type)&&_u(y)||y,n.transition),_=y,Gl(g),_}var Dd=e=>{let t;for(let n in e)(n===`class`||n===`style`||qo(n))&&((t||={})[n]=e[n]);return t},Od=(e,t)=>{let n={};for(let r in e)(!Jo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function kd(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?Ad(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(jd(o,r,n)&&!Td(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Ad(r,o,l):!!o;return!1}function Ad(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(jd(t,e,a)&&!Td(n,a))return!0}return!1}function jd(e,t,n){let r=e[n],i=t[n];return n===`style`&&is(r)&&is(i)?!Ps(r,i):r!==i}function Md({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 Nd={},Pd=()=>Object.create(Nd),Fd=e=>Object.getPrototypeOf(e)===Nd;function Id(e,t,n,r=!1){let i={},a=Pd();e.propsDefaults=Object.create(null),Rd(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Zc(i):e.type.props?i:a,e.attrs=a}function Ld(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=il(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(Td(e.emitsOptions,o))continue;let u=t[o];if(c){if(Qo(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=ms(o);i[t]=zd(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Rd(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!Qo(t,a)&&((r=gs(a))===a||!Qo(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=zd(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!Qo(t,e))&&(delete a[e],l=!0)}l&&gc(e.attrs,`set`,``)}function Rd(e,t,n,r){let[i,a]=e.propsOptions,o=!1,s;if(t)for(let c in t){if(ds(c))continue;let l=t[c],u;i&&Qo(i,u=ms(c))?!a||!a.includes(u)?n[u]=l:(s||={})[u]=l:Td(e.emitsOptions,c)||(!(c in r)||l!==r[c])&&(r[c]=l,o=!0)}if(a){let t=il(n),r=s||Uo;for(let o=0;o<a.length;o++){let s=a[o];n[s]=zd(i,t,s,r[s],e,!Qo(r,s))}}return o}function zd(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=Qo(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&z(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Vf(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===gs(n))&&(r=!0))}return r}var Bd=new WeakMap;function Vd(e,t,n=!1){let r=n?Bd:t.propsCache,i=r.get(e);if(i)return i;let a=e.props,o={},s=[],c=!1;if(!z(e)){let r=e=>{c=!0;let[n,r]=Vd(e,t,!0);Yo(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return is(e)&&r.set(e,Wo),Wo;if(R(a))for(let e=0;e<a.length;e++){let t=ms(a[e]);Hd(t)&&(o[t]=Uo)}else if(a)for(let e in a){let t=ms(e);if(Hd(t)){let n=a[e],r=o[t]=R(n)||z(n)?{type:n}:Yo({},n),i=r.type,c=!1,l=!0;if(R(i))for(let e=0;e<i.length;++e){let t=i[e],n=z(t)&&t.name;if(n===`Boolean`){c=!0;break}n===`String`&&(l=!1)}else c=z(i)&&i.name===`Boolean`;r[0]=c,r[1]=l,(c||Qo(r,`default`))&&s.push(t)}}let l=[o,s];return is(e)&&r.set(e,l),l}function Hd(e){return e[0]!==`$`&&!ds(e)}var Ud=e=>e===`_`||e===`_ctx`||e===`$stable`,Wd=e=>R(e)?e.map(kf):[kf(e)],Gd=(e,t,n)=>{if(t._n)return t;let r=Kl((...e)=>Wd(t(...e)),n);return r._c=!1,r},Kd=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ud(n))continue;let i=e[n];if(z(i))t[n]=Gd(n,i,r);else if(i!=null){let e=Wd(i);t[n]=()=>e}}},qd=(e,t)=>{let n=Wd(t);e.slots.default=()=>n},Jd=(e,t,n)=>{for(let r in t)(n||!Ud(r))&&(e[r]=t[r])},Yd=(e,t,n)=>{let r=e.slots=Pd();if(e.vnode.shapeFlag&32){let e=t._;e?(Jd(r,t,n),n&&xs(r,`_`,e,!0)):Kd(t,r)}else t&&qd(e,t)},Xd=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=Uo;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:Jd(i,t,n):(a=!t.$stable,Kd(t,i)),o=t}else t&&(qd(e,t),o={default:1});if(a)for(let e in i)!Ud(e)&&o[e]==null&&delete i[e]},Zd=uf;function Qd(e){return $d(e)}function $d(e,t){let n=Ts();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=Go,insertStaticContent:m}=e,h=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Sf(e,t)&&(r=xe(e),ge(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 df:g(e,t,n,r);break;case ff:_(e,t,n,r);break;case pf:e??v(t,n,r,o);break;case W:se(e,t,n,r,i,a,o,s,c);break;default:d&1?ee(e,t,n,r,i,a,o,s,c):d&6?ce(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,Ce)}u!=null&&i?wu(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&wu(e.ref,null,a,e,!0)},g=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},_=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=f(e),r(e,n,i),e=a;r(t,n,i)},b=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=f(e),i(e),e=n;i(t)},ee=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)te(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ie(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},te=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&re(e.children,f,null,i,s,ef(e,c),l,d),_&&Jl(e,null,i,`created`),ne(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!ds(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Nf(p,i,e)}_&&Jl(e,null,i,`beforeMount`);let v=nf(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&Zd(()=>{try{p&&Nf(p,i,e),v&&g.enter(f),_&&Jl(e,null,i,`mounted`)}finally{}},s)},ne=(e,t,n,r,i)=>{if(n&&p(e,n),r)for(let t=0;t<r.length;t++)p(e,r[t]);if(i){let n=i.subTree;if(t===n||lf(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;ne(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},re=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Af(e[l]):kf(e[l]);h(null,c,t,n,r,i,a,o,s)}},ie=(e,t,n,r,i,o,s)=>{let c=t.el=e.el,{patchFlag:l,dynamicChildren:d,dirs:f}=t;l|=e.patchFlag&16;let p=e.props||Uo,m=t.props||Uo,h;if(n&&tf(n,!1),(h=m.onVnodeBeforeUpdate)&&Nf(h,n,t,e),f&&Jl(t,e,n,`beforeUpdate`),n&&tf(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(l=0,s=!1,d=null),(p.innerHTML&&m.innerHTML==null||p.textContent&&m.textContent==null)&&u(c,``),d?ae(e.dynamicChildren,d,c,n,r,ef(t,i),o):s||fe(e,t,c,null,n,r,ef(t,i),o,!1),l>0){if(l&16)oe(c,p,m,n,i);else if(l&2&&p.class!==m.class&&a(c,`class`,null,m.class,i),l&4&&a(c,`style`,p.style,m.style,i),l&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],o=p[r],s=m[r];(s!==o||r===`value`)&&a(c,r,o,s,i,n)}}l&1&&e.children!==t.children&&u(c,t.children)}else!s&&d==null&&oe(c,p,m,n,i);((h=m.onVnodeUpdated)||f)&&Zd(()=>{h&&Nf(h,n,t,e),f&&Jl(t,e,n,`updated`)},r)},ae=(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===W||!Sf(c,l)||c.shapeFlag&198)?d(c.el):n;h(c,l,u,null,r,i,a,o,!0)}},oe=(e,t,n,r,i)=>{if(t!==n){if(t!==Uo)for(let o in t)!ds(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(ds(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},se=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),re(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ae(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&rf(e,t,!0)):fe(e,t,n,f,a,o,c,l,u)},ce=(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):le(t,n,r,i,a,o,c):ue(e,t,c)},le=(e,t,n,r,i,a,o)=>{let s=e.component=If(e,r,i);if(Du(e)&&(s.ctx.renderer=Ce),Gf(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,x,o),!e.el){let r=s.subTree=J(ff);_(null,r,t,n),e.placeholder=r.el}}else x(s,e,t,n,i,a,o)},ue=(e,t,n)=>{let r=t.component=e.component;if(kd(e,t,n)){if(r.asyncDep&&!r.asyncResolved){de(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},x=(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=of(e);if(n){t&&(t.el=c.el,de(e,t,o)),n.asyncDep.then(()=>{Zd(()=>{e.isUnmounted||l()},i)});return}}let u=t,f;tf(e,!1),t?(t.el=c.el,de(e,t,o)):t=c,n&&bs(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&Nf(f,s,t,c),tf(e,!0);let p=Ed(e),m=e.subTree;e.subTree=p,h(m,p,d(m.el),xe(m),e,i,a),t.el=p.el,u===null&&Md(e,p.el),r&&Zd(r,i),(f=t.props&&t.props.onVnodeUpdated)&&Zd(()=>Nf(f,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Eu(t);tf(e,!1),l&&bs(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Nf(o,d,t),tf(e,!0);{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Ed(e);h(null,o,n,r,e,i,a),t.el=o.el}if(u&&Zd(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Zd(()=>Nf(o,d,e),i)}(t.shapeFlag&256||d&&Eu(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Zd(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Us(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=()=>Il(u),tf(e,!0),l()},de=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ld(e,t.props,r,n),Xd(e,t.children,n),ic(),zl(e),ac()},fe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){me(l,f,n,r,i,a,o,s,c);return}if(p&256){pe(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&be(l,i,a),f!==l&&u(n,f)):d&16?m&16?me(l,f,n,r,i,a,o,s,c):be(l,i,a,!0):(d&8&&u(n,``),m&16&&re(f,n,r,i,a,o,s,c))},pe=(e,t,n,r,i,a,o,s,c)=>{e||=Wo,t||=Wo;let l=e.length,u=t.length,d=Math.min(l,u),f;for(f=0;f<d;f++){let r=t[f]=c?Af(t[f]):kf(t[f]);h(e[f],r,n,null,i,a,o,s,c)}l>u?be(e,i,a,!0,!1,d):re(t,n,r,i,a,o,s,c,d)},me=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,f=u-1;for(;l<=d&&l<=f;){let r=e[l],u=t[l]=c?Af(t[l]):kf(t[l]);if(Sf(r,u))h(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=f;){let r=e[d],l=t[f]=c?Af(t[f]):kf(t[f]);if(Sf(r,l))h(r,l,n,null,i,a,o,s,c);else break;d--,f--}if(l>d){if(l<=f){let e=f+1,d=e<u?t[e].el:r;for(;l<=f;)h(null,t[l]=c?Af(t[l]):kf(t[l]),n,d,i,a,o,s,c),l++}}else if(l>f)for(;l<=d;)ge(e[l],i,a,!0),l++;else{let p=l,m=l,g=new Map;for(l=m;l<=f;l++){let e=t[l]=c?Af(t[l]):kf(t[l]);e.key!=null&&g.set(e.key,l)}let _,v=0,y=f-m+1,b=!1,ee=0,te=Array(y);for(l=0;l<y;l++)te[l]=0;for(l=p;l<=d;l++){let r=e[l];if(v>=y){ge(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=m;_<=f;_++)if(te[_-m]===0&&Sf(r,t[_])){u=_;break}u===void 0?ge(r,i,a,!0):(te[u-m]=l+1,u>=ee?ee=u:b=!0,h(r,t[u],n,null,i,a,o,s,c),v++)}let ne=b?af(te):Wo;for(_=ne.length-1,l=y-1;l>=0;l--){let e=m+l,d=t[e],f=t[e+1],p=e+1<u?f.el||cf(f):r;te[l]===0?h(null,d,n,p,i,a,o,s,c):b&&(_<0||l!==ne[_]?he(d,n,p,2):_--)}}},he=(e,t,n,a,o=null)=>{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){he(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,Ce);return}if(c===W){r(s,t,n);for(let e=0;e<u.length;e++)he(u[e],t,n,a);r(e.anchor,t,n);return}if(c===pf){y(e,t,n);return}if(a!==2&&d&1&&l){if(a===0)l.persisted&&!s[au]?r(s,t,n):(l.beforeEnter(s),r(s,t,n),Zd(()=>l.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[au];s._isLeaving&&s[au](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}}else r(s,t,n)},ge=(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&&(ic(),wu(s,null,n,e,!0),ac()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Eu(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Nf(_,t,e),u&6)ye(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Jl(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Ce,r):l&&!l.hasOnce&&(a!==W||d>0&&d&64)?be(l,t,n,!1,!0):(a===W&&d&384||!i&&u&16)&&be(c,t,n),r&&_e(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Zd(()=>{_&&Nf(_,t,e),h&&Jl(e,null,t,`unmounted`),v&&(e.el=null)},n)},_e=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===W){ve(n,r);return}if(t===pf){b(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},ve=(e,t)=>{let n;for(;e!==t;)n=f(e),i(e),e=n;i(t)},ye=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;sf(c),sf(l),r&&bs(r),i.stop(),a&&(a.flags|=8,ge(o,e,t,n)),s&&Zd(s,t),Zd(()=>{e.isUnmounted=!0},t)},be=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ge(e[o],t,n,r,i)},xe=e=>{if(e.shapeFlag&6)return xe(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=f(e.anchor||e.el),n=t&&t[ru];return n?f(n):t},S=!1,Se=(e,t,n)=>{let r;e==null?t._vnode&&(ge(t._vnode,null,null,!0),r=t._vnode.component):h(t._vnode||null,e,t,null,null,null,n),t._vnode=e,S||=(S=!0,zl(r),Bl(),!1)},Ce={p:h,um:ge,m:he,r:_e,mt:le,mc:re,pc:fe,pbc:ae,n:xe,o:e};return{render:Se,hydrate:void 0,createApp:yd(Se)}}function ef({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 tf({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rf(e,t,n=!1){let r=e.children,i=t.children;if(R(r)&&R(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]=Af(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&rf(t,a)),a.type===df&&(a.patchFlag===-1&&(a=i[e]=Af(a)),a.el=t.el),a.type===ff&&!a.el&&(a.el=t.el)}}function af(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 of(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:of(t)}function sf(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function cf(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?cf(t.subTree):null}var lf=e=>e.__isSuspense;function uf(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Rl(e)}var W=Symbol.for(`v-fgt`),df=Symbol.for(`v-txt`),ff=Symbol.for(`v-cmt`),pf=Symbol.for(`v-stc`),mf=[],hf=null;function G(e=!1){mf.push(hf=e?null:[])}function gf(){mf.pop(),hf=mf[mf.length-1]||null}var _f=1;function vf(e,t=!1){_f+=e,e<0&&hf&&t&&(hf.hasOnce=!0)}function yf(e){return e.dynamicChildren=_f>0?hf||Wo:null,gf(),_f>0&&hf&&hf.push(e),e}function K(e,t,n,r,i,a){return yf(q(e,t,n,r,i,a,!0))}function bf(e,t,n,r,i){return yf(J(e,t,n,r,i,!0))}function xf(e){return e?e.__v_isVNode===!0:!1}function Sf(e,t){return e.type===t.type&&e.key===t.key}var Cf=({key:e})=>e??null,wf=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:ns(e)||cl(e)||z(e)?{i:Ul,r:e,k:t,f:!!n}:e);function q(e,t=null,n=null,r=0,i=null,a=e===W?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Cf(t),ref:t&&wf(t),scopeId:Wl,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:Ul};return s?(jf(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=ns(n)?8:16),_f>0&&!o&&hf&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&hf.push(c),c}var J=Tf;function Tf(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Gu)&&(e=ff),xf(e)){let r=Df(e,t,!0);return n&&jf(r,n),_f>0&&!a&&hf&&(r.shapeFlag&6?hf[hf.indexOf(e)]=r:hf.push(r)),r.patchFlag=-2,r}if($f(e)&&(e=e.__vccOpts),t){t=Ef(t);let{class:e,style:n}=t;e&&!ns(e)&&(t.class=B(e)),is(n)&&(rl(n)&&!R(n)&&(n=Yo({},n)),t.style=Es(n))}let o=ns(e)?1:lf(e)?128:iu(e)?64:is(e)?4:z(e)?2:0;return q(e,t,n,r,i,o,a,!0)}function Ef(e){return e?rl(e)||Fd(e)?Yo({},e):e:null}function Df(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Mf(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Cf(l),ref:t&&t.ref?n&&a?R(a)?a.concat(wf(t)):[a,wf(t)]:wf(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!==W?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&&Df(e.ssContent),ssFallback:e.ssFallback&&Df(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&vu(u,c.clone(u)),u}function Of(e=` `,t=0){return J(df,null,e,t)}function Y(e=``,t=!1){return t?(G(),bf(ff,null,e)):J(ff,null,e)}function kf(e){return e==null||typeof e==`boolean`?J(ff):R(e)?J(W,null,e.slice()):xf(e)?Af(e):J(df,null,String(e))}function Af(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Df(e)}function jf(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),jf(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Fd(t)?t._ctx=Ul:r===3&&Ul&&(Ul.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(z(t)){if(r&65){jf(e,{default:t});return}t={default:t,_ctx:Ul},n=32}else t=String(t),r&64?(n=16,t=[Of(t)]):n=8;e.children=t,e.shapeFlag|=n}function Mf(...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=B([t.class,r.class]));else if(e===`style`)t.style=Es([t.style,r.style]);else if(qo(e)){let n=t[e],i=r[e];i&&n!==i&&!(R(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!Jo(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Nf(e,t,n,r=null){wl(e,t,7,[n,r])}var Pf=_d(),Ff=0;function If(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||Pf,a={uid:Ff++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new zs(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vd(r,i),emitsOptions:wd(r,i),emit:null,emitted:null,propsDefaults:Uo,inheritAttrs:r.inheritAttrs,ctx:Uo,data:Uo,props:Uo,attrs:Uo,slots:Uo,refs:Uo,setupState:Uo,setupContext:null,suspense:n,suspenseId:n?n.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 a.ctx={_:a},a.root=t?t.root:a,a.emit=Sd.bind(null,a),e.ce&&e.ce(a),a}var Lf=null,Rf=()=>Lf||Ul,zf,Bf;{let e=Ts(),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)}};zf=t(`__VUE_INSTANCE_SETTERS__`,e=>Lf=e),Bf=t(`__VUE_SSR_SETTERS__`,e=>Wf=e)}var Vf=e=>{let t=Lf;return zf(e),e.scope.on(),()=>{e.scope.off(),zf(t)}},Hf=()=>{Lf&&Lf.scope.off(),zf(null)};function Uf(e){return e.vnode.shapeFlag&4}var Wf=!1;function Gf(e,t=!1,n=!1){t&&Bf(t);let{props:r,children:i}=e.vnode,a=Uf(e);Id(e,r,a,t),Yd(e,i,n||t);let o=a?Kf(e,t):void 0;return t&&Bf(!1),o}function Kf(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ed);let{setup:r}=n;if(r){ic();let n=e.setupContext=r.length>1?Xf(e):null,i=Vf(e),a=Cl(r,e,0,[e.props,n]),o=as(a);if(ac(),i(),(o||e.sp)&&!Eu(e)&&xu(e),o){if(a.then(Hf,Hf),t)return a.then(n=>{Bf(!0);try{qf(e,n,t)}finally{Bf(!1)}}).catch(t=>{Tl(t,e,0)});e.asyncDep=a}else qf(e,a,t)}else Jf(e,t)}function qf(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:is(t)&&(e.setupState=ml(t)),Jf(e,n)}function Jf(e,t,n){let r=e.type;e.render||=r.render||Go;{let t=Vf(e);ic();try{rd(e)}finally{ac(),t()}}}var Yf={get(e,t){return hc(e,`get`,``),e[t]}};function Xf(e){return{attrs:new Proxy(e.attrs,Yf),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Zf(e){return e.exposed?e.exposeProxy||=new Proxy(ml(al(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qu)return Qu[n](e)},has(e,t){return t in e||t in Qu}}):e.proxy}function Qf(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function $f(e){return z(e)&&`__vccOpts`in e}var ep=(e,t)=>gl(e,t,Wf);function tp(e,t,n){try{vf(-1);let r=arguments.length;return r===2?is(t)&&!R(t)?xf(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&xf(n)&&(n=[n]),J(e,t,n))}finally{vf(1)}}var np=`3.5.41`,rp,ip=typeof window<`u`&&window.trustedTypes;if(ip)try{rp=ip.createPolicy(`vue`,{createHTML:e=>e})}catch{}var ap=rp?e=>rp.createHTML(e):e=>e,op=`http://www.w3.org/2000/svg`,sp=`http://www.w3.org/1998/Math/MathML`,cp=typeof document<`u`?document:null,lp=cp&&cp.createElement(`template`),up={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`?cp.createElementNS(op,e):t===`mathml`?cp.createElementNS(sp,e):n?cp.createElement(e,{is:n}):cp.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>cp.createTextNode(e),createComment:e=>cp.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cp.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{lp.innerHTML=ap(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=lp.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]}},dp=`transition`,fp=`animation`,pp=Symbol(`_vtc`),mp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hp=Yo({},lu,mp),gp=(e=>(e.displayName=`Transition`,e.props=hp,e))((e,{slots:t})=>tp(pu,yp(e),t)),_p=(e,t=[])=>{R(e)?e.forEach(e=>e(...t)):e&&e(...t)},vp=e=>e?R(e)?e.some(e=>e.length>1):e.length>1:!1;function yp(e){let t={};for(let n in e)n in mp||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=bp(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:ee,onBeforeAppear:te=_,onAppear:ne=v,onAppearCancelled:re=y}=t,ie=(e,t,n,r)=>{e._enterCancelled=r,Cp(e,t?u:s),Cp(e,t?l:o),n&&n()},ae=(e,t)=>{e._isLeaving=!1,Cp(e,d),Cp(e,p),Cp(e,f),t&&t()},oe=e=>(t,n)=>{let i=e?ne:v,o=()=>ie(t,e,n);_p(i,[t,o]),wp(()=>{Cp(t,e?c:a),Sp(t,e?u:s),vp(i)||Ep(t,r,h,o)})};return Yo(t,{onBeforeEnter(e){_p(_,[e]),Sp(e,a),Sp(e,o)},onBeforeAppear(e){_p(te,[e]),Sp(e,c),Sp(e,l)},onEnter:oe(!1),onAppear:oe(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>ae(e,t);Sp(e,d),e._enterCancelled?(Sp(e,f),Ap(e)):(Ap(e),Sp(e,f)),wp(()=>{e._isLeaving&&(Cp(e,d),Sp(e,p),vp(b)||Ep(e,r,g,n))}),_p(b,[e,n])},onEnterCancelled(e){ie(e,!1,void 0,!0),_p(y,[e])},onAppearCancelled(e){ie(e,!0,void 0,!0),_p(re,[e])},onLeaveCancelled(e){ae(e),_p(ee,[e])}})}function bp(e){if(e==null)return null;if(is(e))return[xp(e.enter),xp(e.leave)];{let t=xp(e);return[t,t]}}function xp(e){return Cs(e)}function Sp(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[pp]||(e[pp]=new Set)).add(t)}function Cp(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[pp];n&&(n.delete(t),n.size||(e[pp]=void 0))}function wp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Tp=0;function Ep(e,t,n,r){let i=e._endId=++Tp,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Dp(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Dp(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${dp}Delay`),a=r(`${dp}Duration`),o=Op(i,a),s=r(`${fp}Delay`),c=r(`${fp}Duration`),l=Op(s,c),u=null,d=0,f=0;t===dp?o>0&&(u=dp,d=o,f=a.length):t===fp?l>0&&(u=fp,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?dp:fp:null,f=u?u===dp?a.length:c.length:0);let p=u===dp&&/\b(?:transform|all)(?:,|$)/.test(r(`${dp}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Op(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>kp(t)+kp(e[n])))}function kp(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Ap(e){return(e?e.ownerDocument:document).body.offsetHeight}function jp(e,t,n){let r=e[pp];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Mp=Symbol(`_vod`),Np=Symbol(`_vsh`),Pp=Symbol(``),Fp=/(?:^|;)\s*display\s*:/;function Ip(e,t,n){let r=e.style,i=ns(n),a=!1;if(n&&!i){if(t){if(ns(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Rp(r,t,``)}else for(let e in t)n[e]??Rp(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Rp(r,i,``):Hp(e,i,!ns(t)&&t?t[i]:void 0,o)||Rp(r,i,o)}}else if(i){if(t!==n){let e=r[Pp];e&&(n+=`;`+e),r.cssText=n,a=Fp.test(n)}}else t&&e.removeAttribute(`style`);Mp in e&&(e[Mp]=a?r.display:``,e[Np]&&(r.display=`none`))}var Lp=/\s*!important$/;function Rp(e,t,n){if(R(n))n.forEach(n=>Rp(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Vp(e,t);Lp.test(n)?e.setProperty(gs(r),n.replace(Lp,``),`important`):e[r]=n}}var zp=[`Webkit`,`Moz`,`ms`],Bp={};function Vp(e,t){let n=Bp[t];if(n)return n;let r=ms(t);if(r!==`filter`&&r in e)return Bp[t]=r;r=_s(r);for(let n=0;n<zp.length;n++){let i=zp[n]+r;if(i in e)return Bp[t]=i}return t}function Hp(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&ns(r)&&n===r}var Up=`http://www.w3.org/1999/xlink`;function Wp(e,t,n,r,i,a=js(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Up,t.slice(6,t.length)):e.setAttributeNS(Up,t,n):n==null||a&&!Ms(n)?e.removeAttribute(t):e.setAttribute(t,a?``:rs(n)?String(n):n)}function Gp(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?ap(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=Ms(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 Kp(e,t,n,r){e.addEventListener(t,n,r)}function qp(e,t,n,r){e.removeEventListener(t,n,r)}var Jp=Symbol(`_vei`);function Yp(e,t,n,r,i=null){let a=e[Jp]||(e[Jp]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Qp(t);r?Kp(e,n,a[t]=nm(r,i),s):o&&(qp(e,n,o,s),a[t]=void 0)}}var Xp=/(Once|Passive|Capture)$/,Zp=/^on:?(?:Once|Passive|Capture)$/;function Qp(e){let t,n;for(;(n=e.match(Xp))&&!Zp.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):gs(e.slice(2)),t]}var $p=0,em=Promise.resolve(),tm=()=>$p||=(em.then(()=>$p=0),Date.now());function nm(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(R(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&&wl(e,t,5,a)}}else wl(r,t,5,[e])};return n.value=e,n.attached=tm(),n}var rm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,im=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?jp(e,r,o):t===`style`?Ip(e,n,r):qo(t)?Jo(t)||Yp(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):am(e,t,r,o))?(Gp(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Wp(e,t,r,o,a,t!==`value`)):e._isVueCE&&(om(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ns(r)))?Gp(e,ms(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Wp(e,t,r,o))};function am(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&rm(t)&&z(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 rm(t)&&ns(n)?!1:t in e}function om(e,t){let n=e._def.props;if(!n)return!1;let r=ms(t);return Array.isArray(n)?n.some(e=>ms(e)===r):Object.keys(n).some(e=>ms(e)===r)}var sm={};function cm(e,t,n){let r=H(e,t);ls(r)&&(r=Yo({},r,t));class i extends um{constructor(e){super(r,e,n)}}return i.def=r,i}var lm=typeof HTMLElement<`u`?HTMLElement:class{},um=class e extends lm{constructor(e,t={},n=Dm){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Dm?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(Yo({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Pl(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!R(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=Cs(this._props[e])),(i||=Object.create(null))[ms(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)Qo(this,e)||Object.defineProperty(this,e,{get:()=>fl(t[e])})}_resolveProps(e){let{props:t}=e,n=R(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(ms))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):sm,r=ms(e);t&&this._numberProps&&this._numberProps[r]&&(n=Cs(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===sm?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(gs(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(gs(e),t+``):t||this.removeAttribute(gs(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Em(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=J(this._def,Yo(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,ls(t[0])?Yo({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),gs(e)!==e&&t(gs(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}},dm=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return R(t)?e=>bs(t,e):t};function fm(e){e.target.composing=!0}function pm(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var mm=Symbol(`_assign`),hm=Symbol(`_initialValue`);function gm(e,t,n){return t&&(e=e.trim()),n&&(e=Ss(e)),e}var _m={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[hm]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[hm]=e.defaultValue.replace(/\r\n?/g,`
|
|
3
|
+
`))),e[mm]=dm(i);let a=r||i.props&&i.props.type===`number`;Kp(e,t?`change`:`input`,t=>{t.target.composing||e[mm](gm(e.value,n,a))}),(n||a)&&Kp(e,`change`,()=>{e.value=gm(e.value,n,a)}),t||(Kp(e,`compositionstart`,fm),Kp(e,`compositionend`,pm),Kp(e,`change`,pm))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[hm];delete e[hm],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[mm](gm(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[mm]=dm(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?Ss(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)}},vm=[`ctrl`,`shift`,`alt`,`meta`],ym={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)=>vm.some(n=>e[`${n}Key`]&&!t.includes(n))},bm=(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=ym[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},xm={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Sm=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=gs(n.key);if(t.some(e=>e===r||xm[e]===r))return e(n)}))},Cm=Yo({patchProp:im},up),wm;function Tm(){return wm||=Qd(Cm)}var Em=((...e)=>{Tm().render(...e)}),Dm=((...e)=>{let t=Tm().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=km(e);if(!r)return;let i=t._component;!z(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Om(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Om(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function km(e){return ns(e)?document.querySelector(e):e}var Am=e=>e===``,jm=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Mm=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Nm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Pm=e=>{let t=Nm(e);return t.charAt(0).toUpperCase()+t.slice(1)},Fm={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`},Im=Symbol(`lucide-icons`);function Lm(){return Xl(Im,{})}var Rm=({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=``}=Lm(),g=ep(()=>{let e=Am(r)||Am(i)||r===!0||i===!0||m===!0,t=a||o||p||Fm[`stroke-width`];return e?Number(t)*24/Number(s??d??Fm.width):t});return tp(`svg`,{...Fm,...l,width:s??d??Fm.width,height:s??d??Fm.height,stroke:c??f??Fm.stroke,"stroke-width":g.value,class:jm(`lucide`,h,...e?[`lucide-${Mm(Pm(e))}-icon`,`lucide-${Mm(e)}`]:[`lucide-icon`])},[...(t??n??[]).map(e=>tp(...e)),...u.default?[u.default()]:[]])},X=(e,t)=>(n,{slots:r,attrs:i})=>tp(Rm,{...i,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0),zm=X(`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`}]]),Bm=X(`book-open`,[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]),Vm=X(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Hm=X(`boxes`,[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]),Um=X(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Wm=X(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Gm=X(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Km=X(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),qm=X(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Jm=X(`circle-dashed`,[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]),Ym=X(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Xm=X(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Zm=X(`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`}]]),Qm=X(`command`,[[`path`,{d:`M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3`,key:`11bfej`}]]),$m=X(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),eh=X(`corner-down-left`,[[`path`,{d:`M20 4v7a4 4 0 0 1-4 4H4`,key:`6o5b7l`}],[`path`,{d:`m9 10-5 5 5 5`,key:`1kshq7`}]]),th=X(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),nh=X(`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`}]]),rh=X(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),ih=X(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ah=X(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),oh=X(`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`}]]),sh=X(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),ch=X(`file`,[[`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`}]]),lh=X(`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`}]]),uh=X(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),dh=X(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),fh=X(`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`}]]),ph=X(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),mh=X(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),hh=X(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),gh=X(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),_h=X(`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`}]]),vh=X(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),yh=X(`lock-open`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),bh=X(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),xh=X(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),Sh=X(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Ch=X(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),wh=X(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Th=X(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Eh=X(`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`}]]),Dh=X(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Oh=X(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),kh=X(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Ah=X(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),jh=X(`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`}]]),Mh=X(`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`}]]),Nh=X(`square-stop`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),Ph={activity:zm,book:Bm,bot:Vm,boxes:Hm,check:Um,"chevron-down":Wm,"chevron-left":Gm,"chevron-right":qm,"chevron-up":Km,circle:Ym,"circle-dashed":Jm,clock:Xm,code:Zm,command:Qm,copy:$m,"corner-down-left":eh,download:th,ellipsis:nh,external:rh,eye:ih,"eye-off":ah,file:ch,"file-code":oh,"file-text":sh,flask:lh,folder:dh,"folder-open":uh,"git-branch":fh,grid:ph,inbox:mh,info:hh,dashboard:gh,"list-checks":_h,loader:vh,lock:bh,unlock:yh,menu:xh,minus:Sh,palette:Ch,panel:wh,pencil:Th,play:Eh,plus:Dh,refresh:Oh,search:kh,send:Ah,settings:jh,sparkle:Mh,square:X(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),stop:Nh,terminal:X(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),trash:X(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),warning:X(`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`}]]),upload:X(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),user:X(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),close:X(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]])};Object.keys(Ph);var Z=H({__name:`IconGlyph`,props:{name:{default:`info`},size:{default:20},label:{default:``},strokeWidth:{default:2},absoluteStrokeWidth:{type:Boolean,default:!0}},setup(e){let t=e,n=ep(()=>Ph[t.name]??Ph.info);return(t,r)=>(G(),bf(Ku(n.value),{size:e.size,"stroke-width":e.strokeWidth,"absolute-stroke-width":e.absoluteStrokeWidth,role:e.label?`img`:void 0,"aria-label":e.label||void 0,"aria-hidden":e.label?void 0:`true`},null,8,[`size`,`stroke-width`,`absolute-stroke-width`,`role`,`aria-label`,`aria-hidden`]))}}),Fh={class:`badge`},Ih={class:`copy`},Lh={key:0},Rh=[`disabled`],zh=[`disabled`],Bh=H({__name:`OsxAgentApproval.ce`,props:{title:{default:`Approval required`,type:String},description:{default:`Review this action before the agent continues.`,type:String},risk:{default:`medium`,type:String},scope:{default:``,type:String},approveLabel:{default:`Allow`,type:String},rejectLabel:{default:`Deny`,type:String},disabled:{type:Boolean,default:!1}},emits:[`approve`,`reject`],setup(e,{emit:t}){let n=t;return(t,r)=>(G(),K(`section`,{class:B([`approval`,e.risk]),"aria-label":`Agent approval request`},[q(`div`,Fh,[J(Z,{name:e.risk===`low`?`check`:`warning`,size:15},null,8,[`name`])]),q(`div`,Ih,[q(`header`,null,[q(`strong`,null,V(e.title),1),q(`span`,null,V(e.risk)+` risk`,1)]),q(`p`,null,V(e.description),1),e.scope?(G(),K(`code`,Lh,V(e.scope),1)):Y(``,!0),U(t.$slots,`default`)]),q(`footer`,null,[q(`button`,{type:`button`,disabled:e.disabled,onClick:r[0]||=e=>n(`reject`)},V(e.rejectLabel),9,Rh),q(`button`,{class:`approve`,type:`button`,disabled:e.disabled,onClick:r[1]||=e=>n(`approve`)},V(e.approveLabel),9,zh)])],2))}}),Vh=`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}.approval{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:start;padding:12px;border:1px solid var(--osx-border);border-left:3px solid var(--osx-warning,#ce8a23);border-radius:8px;background:var(--osx-surface-raised);box-shadow:0 1px var(--osx-highlight) inset}.approval.high{border-left-color:var(--osx-danger,#c74d47)}.approval.low{border-left-color:var(--osx-success,#2f9951)}.badge{width:27px;height:27px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;color:var(--osx-warning,#ce8a23);font-size:12px;font-weight:800}.high .badge{color:var(--osx-danger,#c74d47)}.low .badge{color:var(--osx-success,#2f9951)}.copy{min-width:0}.copy header{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}.copy strong{font-size:13px}.copy header span{color:var(--osx-muted);font-size:12px;font-weight:700;text-transform:uppercase}p{margin:6px 0;color:var(--osx-muted);font-size:12px;line-height:1.5}code{display:block;overflow:hidden;color:var(--osx-text);font:12px/1.45 ui-monospace,monospace;text-overflow:ellipsis;white-space:nowrap}footer{display:flex;gap:7px}button{min-height:28px;padding:4px 11px;border:1px solid var(--osx-border);border-radius:7px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font:700 12px var(--osx-font);cursor:pointer}.approve{color:#fff;border-color:color-mix(in srgb,var(--osx-accent) 78%,#123);background:linear-gradient(var(--osx-accent-light),var(--osx-accent))}.approval.high .approve{border-color:var(--osx-danger,#9c3632);background:linear-gradient(#ef8179,#b9413c)}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}button:disabled{opacity:.5}@media(max-width:560px){.approval{grid-template-columns:auto minmax(0,1fr)}.approval footer{grid-column:1 / -1;justify-content:flex-end}}`,Q=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Hh=Q(Bh,[[`styles`,[Vh]]]),Uh=[`value`,`rows`,`placeholder`,`disabled`],Wh={key:0},Gh=[`disabled`],Kh=Q(H({__name:`OsxAgentComposer.ce`,props:{value:{default:``,type:String},placeholder:{default:`Ask the agent to explain, plan, or change something…`,type:String},model:{default:``,type:String},busy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rows:{default:3,type:Number}},emits:[`input`,`submit`,`stop`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.value);$l(()=>n.value,e=>{i.value=e});function a(e){i.value=e.target.value,r(`input`,i.value)}function o(){let e=i.value.trim();!e||n.busy||n.disabled||r(`submit`,e)}function s(e){e.key===`Enter`&&!e.shiftKey&&!e.isComposing&&(e.preventDefault(),o())}return(t,n)=>(G(),K(`form`,{"aria-label":`Agent prompt`,onSubmit:bm(o,[`prevent`])},[q(`textarea`,{value:i.value,rows:e.rows,placeholder:e.placeholder,disabled:e.disabled,"aria-label":`Message to agent`,onInput:a,onKeydown:s},null,40,Uh),q(`footer`,null,[q(`div`,null,[U(t.$slots,`tools`),e.model?(G(),K(`span`,Wh,V(e.model),1)):Y(``,!0)]),e.busy?(G(),K(`button`,{key:0,class:`stop`,type:`button`,"aria-label":`Stop agent`,onClick:n[0]||=e=>r(`stop`)},[J(Z,{name:`stop`,size:14}),n[1]||=Of(` Stop`,-1)])):(G(),K(`button`,{key:1,class:`send`,type:`submit`,disabled:e.disabled||!i.value.trim()},[n[2]||=Of(`Send `,-1),J(Z,{name:`corner-down-left`,size:14})],8,Gh))])],32))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}form{padding:10px}textarea{width:100%;min-height:74px;resize:vertical;padding:10px 11px;border:1px solid var(--osx-border);border-radius:8px;color:var(--osx-text);background:var(--osx-surface-sunken);box-shadow:0 1px 2px #00000026 inset;font:13px/1.5 var(--osx-font)}textarea::placeholder{color:var(--osx-muted)}textarea:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}footer{display:flex;gap:10px;align-items:center;justify-content:space-between;padding-top:8px}footer div{min-width:0;display:flex;gap:8px;align-items:center;color:var(--osx-muted);font-size:12px}button{min-height:28px;display:inline-flex;gap:5px;align-items:center;padding:4px 12px;border:1px solid var(--osx-border);border-radius:7px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font:700 12px var(--osx-font);cursor:pointer}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}.send{color:#fff;border-color:color-mix(in srgb,var(--osx-accent) 78%,#123);background:linear-gradient(var(--osx-accent-light),var(--osx-accent));text-shadow:0 -1px rgba(0,0,0,.4)}.stop{color:#fff;border-color:var(--osx-danger,#9c3632);background:linear-gradient(#ef8179,#b9413c)}`]]]),qh=[`aria-label`,`aria-busy`],Jh={class:`avatar`},Yh={key:0},Xh={key:1},Zh={class:`body`},Qh={key:0,class:`cursor`,role:`status`,"aria-label":`Streaming response`},$h=Q(H({__name:`OsxAgentMessage.ce`,props:{messageRole:{default:`assistant`,type:String},author:{default:`Agent`,type:String},model:{default:``,type:String},timestamp:{default:``,type:String},status:{default:`complete`,type:String}},setup(e){return(t,n)=>(G(),K(`article`,{class:B([e.messageRole,e.status]),"aria-label":`${e.author} message`,"aria-busy":e.status===`streaming`||void 0},[q(`header`,null,[q(`span`,Jh,[J(Z,{name:e.messageRole===`assistant`?`bot`:e.messageRole===`user`?`user`:`info`,size:13},null,8,[`name`])]),q(`strong`,null,V(e.author),1),e.model?(G(),K(`small`,Yh,V(e.model),1)):Y(``,!0),e.timestamp?(G(),K(`time`,Xh,V(e.timestamp),1)):Y(``,!0)]),q(`div`,Zh,[U(t.$slots,`default`),e.status===`streaming`?(G(),K(`span`,Qh)):Y(``,!0)]),q(`footer`,null,[U(t.$slots,`actions`)])],10,qh))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}article{padding:14px 16px;border-bottom:1px solid var(--osx-border-soft);background:var(--osx-surface)}article.user{background:color-mix(in srgb,var(--osx-accent) 7%,var(--osx-surface))}article.error{border-left:3px solid var(--osx-danger,#c74d47)}header{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:7px;align-items:center}.avatar{width:22px;height:22px;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:50%;color:var(--osx-accent);background:var(--osx-surface-raised);font-size:12px;font-weight:800}header strong{font-size:13px}header small,header time{overflow:hidden;color:var(--osx-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}header time{justify-self:end}.body{padding:10px 0 0 29px;overflow-wrap:anywhere;font-size:13px;line-height:1.58}.body :slotted(p){margin:0 0 9px}.body :slotted(pre){max-width:100%;overflow:auto;padding:10px;border:1px solid var(--osx-border-soft);border-radius:6px;background:var(--osx-surface-sunken);font:12px/1.5 ui-monospace,monospace}.cursor{width:7px;height:14px;display:inline-block;margin-left:3px;background:var(--osx-accent);animation:blink .85s steps(1) infinite;vertical-align:-2px}footer{display:flex;gap:6px;padding:8px 0 0 29px}@keyframes blink{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.cursor{animation:none}}@media(max-width:480px){article{padding-inline:12px}.body,footer{padding-left:0}header{grid-template-columns:auto auto 1fr}header time{grid-column:2 / -1;justify-self:start}}`]]]),eg=[`aria-label`,`aria-busy`],tg={"aria-hidden":`true`},ng=Q(H({__name:`OsxAgentRunStatus.ce`,props:{phase:{default:`working`,type:String},label:{default:`Agent run`,type:String},detail:{default:``,type:String}},setup(e){let t=e,n=[`Plan`,`Work`,`Verify`,`Done`],r=ep(()=>({planning:0,working:1,verifying:2,complete:3,error:2})[t.phase]);return(t,i)=>(G(),K(`section`,{class:B([`run`,e.phase]),"aria-label":e.label,"aria-busy":![`complete`,`error`].includes(e.phase)},[q(`header`,null,[q(`strong`,null,V(e.label),1),q(`span`,null,V(e.detail),1)]),q(`ol`,null,[(G(),K(W,null,Yu(n,(t,n)=>q(`li`,{key:t,class:B({active:n===r.value,done:n<r.value||e.phase===`complete`,failed:e.phase===`error`&&n===r.value})},[q(`i`,tg,[n<r.value||e.phase===`complete`?(G(),bf(Z,{key:0,name:`check`,size:13})):(G(),K(W,{key:1},[Of(V(n+1),1)],64))]),q(`span`,null,V(t),1)],2)),64))])],10,eg))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}.run{padding:11px 12px;border:1px solid var(--osx-border-soft);border-radius:8px;background:var(--osx-surface-raised)}header{display:flex;gap:10px;justify-content:space-between;margin-bottom:11px}header strong{font-size:13px}header span{overflow:hidden;color:var(--osx-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none}li{position:relative;display:grid;gap:4px;justify-items:center;color:var(--osx-muted);font-size:12px}li:before{height:1px;position:absolute;top:11px;right:50%;left:-50%;background:var(--osx-border-soft);content:""}li:first-child:before{display:none}i{width:23px;height:23px;z-index:1;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:50%;background:var(--osx-surface-sunken);font-style:normal;font-size:12px;font-weight:800}.active i{color:#fff;border-color:var(--osx-accent);background:var(--osx-accent)}.done i{color:#fff;border-color:var(--osx-success,#2f9951);background:var(--osx-success,#2f9951)}.failed i{color:#fff;border-color:var(--osx-danger,#c74d47);background:var(--osx-danger,#c74d47)}.active span,.done span,.failed span{color:var(--osx-text);font-weight:700}`]]]),rg=[`role`,`aria-label`],ig={class:`glyph`},ag={key:0},og={class:`content`},sg={class:`actions`},cg=Q(H({__name:`OsxAlert.ce`,props:{tone:{default:`info`,type:String},title:{default:`Notice`,type:String},description:{default:``,type:String},dismissible:{type:Boolean,default:!1},label:{default:``,type:String}},emits:[`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=ep(()=>({info:`info`,success:`check`,warning:`warning`,error:`close`})[n.tone]),a=ep(()=>n.tone===`error`?`alert`:`status`);return(t,n)=>(G(),K(`section`,{class:B([`alert`,e.tone]),role:a.value,"aria-label":e.label||e.title},[q(`span`,ig,[J(Z,{name:i.value,size:16},null,8,[`name`])]),q(`div`,null,[q(`strong`,null,V(e.title),1),e.description?(G(),K(`p`,ag,V(e.description),1)):Y(``,!0),q(`div`,og,[U(t.$slots,`default`)]),q(`div`,sg,[U(t.$slots,`actions`)])]),e.dismissible?(G(),K(`button`,{key:0,type:`button`,"aria-label":`Dismiss alert`,onClick:n[0]||=e=>r(`dismiss`)},[J(Z,{name:`close`,size:18})])):Y(``,!0)],10,rg))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}.alert{--tone: var(--osx-accent);display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px 13px;border:1px solid color-mix(in srgb,var(--tone) 55%,var(--osx-border));border-radius:8px;background:color-mix(in srgb,var(--tone) 11%,var(--osx-surface-raised));box-shadow:0 1px 2px #00000014}.success{--tone: var(--osx-success,#2f9951)}.warning{--tone: var(--osx-warning,#c28519)}.error{--tone: var(--osx-danger,#c74d47)}.glyph{width:27px;height:27px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--tone) 75%,#222);border-radius:50%;color:#fff;background:linear-gradient(color-mix(in srgb,var(--tone) 75%,white),var(--tone));font:800 16px Georgia,serif;text-shadow:0 -1px rgba(0,0,0,.35)}strong{display:block;font-size:13px;line-height:1.35}p,.content{margin:3px 0 0;color:var(--osx-muted);font-size:12px;line-height:1.5}.content:empty,.actions:empty{display:none}.actions{display:flex;gap:8px;margin-top:9px}button{width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:5px;color:var(--osx-muted);background:transparent;font:500 20px/1 var(--osx-font);cursor:pointer}button:hover{color:var(--osx-text);background:color-mix(in srgb,var(--osx-text) 8%,transparent)}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}`]]]),lg=[`aria-label`],ug={class:`icon`},dg={class:`identity`},fg={key:0},pg={key:1},mg={class:`metadata`},hg={key:0},gg={key:0},_g={key:1},vg={key:0},yg=[`aria-label`],bg=[`aria-label`],xg=[`aria-label`],Sg=Q(H({__name:`OsxArtifact.ce`,props:{title:{default:`Generated artifact`,type:String},description:{default:``,type:String},kind:{default:`file`,type:String},filename:{default:`artifact.txt`,type:String},version:{default:``,type:String},language:{default:``,type:String},content:{default:``,type:String},href:{default:``,type:String},copyable:{type:Boolean,default:!0},downloadable:{type:Boolean,default:!0},openable:{type:Boolean,default:!1},status:{default:`ready`,type:String}},emits:[`copy`,`download`,`open`],setup(e,{emit:t}){let n=e,r=t,i=ll(!1),a=ep(()=>n.kind===`code`?`file-code`:n.kind===`document`?`file-text`:`file`);async function o(){if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(n.content);else{let e=document.createElement(`textarea`);e.value=n.content,e.style.position=`fixed`,e.style.opacity=`0`,document.body.append(e),e.select(),document.execCommand(`copy`),e.remove()}i.value=!0,r(`copy`,n.content),window.setTimeout(()=>{i.value=!1},1600)}function s(){let e=URL.createObjectURL(new Blob([n.content],{type:`text/plain;charset=utf-8`})),t=document.createElement(`a`);t.href=e,t.download=n.filename||`artifact.txt`,t.click(),URL.revokeObjectURL(e),r(`download`,t.download)}function c(){r(`open`,n.href),n.href&&window.open(n.href,`_blank`,`noopener,noreferrer`)}return(t,n)=>(G(),K(`article`,{"aria-label":`${e.title} artifact`},[q(`header`,null,[q(`span`,ug,[J(Z,{name:a.value,size:20},null,8,[`name`])]),q(`span`,dg,[q(`strong`,null,V(e.title),1),e.description?(G(),K(`small`,fg,V(e.description),1)):e.filename?(G(),K(`code`,pg,V(e.filename),1)):Y(``,!0)]),q(`span`,mg,[e.version?(G(),K(`b`,hg,V(e.version),1)):Y(``,!0),q(`i`,null,V(e.status),1)])]),q(`div`,{class:B([`preview`,e.kind])},[U(t.$slots,`default`,{},()=>[e.content?(G(),K(`pre`,gg,[q(`code`,null,V(e.content),1)])):(G(),K(`p`,_g,`No preview available.`))])],2),q(`footer`,null,[q(`span`,null,[q(`code`,null,V(e.filename),1),e.language?(G(),K(`small`,vg,V(e.language),1)):Y(``,!0)]),q(`div`,null,[e.copyable?(G(),K(`button`,{key:0,type:`button`,"aria-label":`Copy ${e.title}`,onClick:o},[J(Z,{name:i.value?`check`:`copy`,size:14},null,8,[`name`]),Of(V(i.value?`Copied`:`Copy`),1)],8,yg)):Y(``,!0),e.downloadable?(G(),K(`button`,{key:1,type:`button`,"aria-label":`Download ${e.filename}`,onClick:s},[J(Z,{name:`download`,size:14}),n[0]||=Of(`Download`,-1)],8,bg)):Y(``,!0),e.openable?(G(),K(`button`,{key:2,type:`button`,"aria-label":`Open ${e.title}`,onClick:c},[J(Z,{name:`external`,size:14}),n[1]||=Of(`Open`,-1)],8,xg)):Y(``,!0)])])],8,lg))}}),[[`styles`,[`:host{display:block;min-width:0;color:var(--osx-text);font-family:var(--osx-font)}article{min-width:0;overflow:hidden;border:1px solid var(--osx-border);border-radius:9px;background:var(--osx-surface-raised);box-shadow:0 1px var(--osx-highlight) inset,0 2px 7px #0000001a}header{min-height:61px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--osx-border-soft);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface))}.icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:7px;color:var(--osx-accent);background:var(--osx-surface-sunken)}.identity{min-width:0;display:grid;gap:3px}.identity strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.identity small,.identity code{overflow:hidden;color:var(--osx-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.identity code{font-family:ui-monospace,monospace}.metadata{display:grid;justify-items:end;gap:3px}.metadata b,.metadata i{color:var(--osx-muted);font-size:12px;font-style:normal}.metadata i{text-transform:capitalize}.metadata b{padding:2px 7px;border:1px solid var(--osx-border);border-radius:999px;background:var(--osx-surface-sunken)}.preview{min-height:84px;max-height:320px;overflow:auto;padding:14px;color:var(--osx-muted);background:var(--osx-surface-sunken);font-size:13px;line-height:1.55}.preview pre{margin:0;color:var(--osx-text);font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.preview p{margin:0}.preview.document{background:color-mix(in srgb,var(--osx-surface-raised) 70%,white)}footer{min-height:45px;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:7px 9px 7px 12px;border-top:1px solid var(--osx-border-soft)}.preview+footer>span{min-width:0;display:flex;gap:8px;align-items:center}.preview+footer code{overflow:hidden;font:12px ui-monospace,monospace;text-overflow:ellipsis;white-space:nowrap}.preview+footer small{color:var(--osx-muted);font-size:12px}.preview+footer div{display:flex;gap:5px}button{min-height:29px;display:inline-flex;gap:5px;align-items:center;padding:4px 8px;border:1px solid var(--osx-border);border-radius:6px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font:700 12px var(--osx-font);cursor:pointer}button:hover{border-color:var(--osx-accent)}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}@media(max-width:540px){footer{align-items:stretch;flex-direction:column}.preview+footer div{display:grid;grid-template-columns:repeat(3,1fr)}button{justify-content:center}.metadata i{display:none}}`]]]),Cg=[`aria-label`],wg=[`src`],Tg={key:1,"aria-hidden":`true`},Eg=Q(H({__name:`OsxAvatar.ce`,props:{name:{default:`User`,type:String},src:{default:``,type:String},alt:{default:``,type:String},size:{default:36,type:Number},status:{default:`none`,type:String}},setup(e){let t=e,n=ll(!1),r=ep(()=>t.name.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]).join(``).toUpperCase());return(t,i)=>(G(),K(`span`,{class:`avatar`,style:Es({width:`${e.size}px`,height:`${e.size}px`}),"aria-label":`${e.alt||e.name}${e.status===`none`?``:`, ${e.status}`}`,role:`img`},[e.src&&!n.value?(G(),K(`img`,{key:0,src:e.src,alt:``,onError:i[0]||=e=>n.value=!0},null,40,wg)):(G(),K(`b`,Tg,V(r.value),1)),e.status===`none`?Y(``,!0):(G(),K(`i`,{key:2,class:B(e.status),"aria-hidden":`true`},null,2))],12,Cg))}}),[[`styles`,[`:host{display:inline-flex;font-family:var(--osx-font)}.avatar{position:relative;display:grid;flex:0 0 auto;place-items:center;overflow:visible;border:1px solid var(--osx-border);border-radius:50%;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));box-shadow:0 1px var(--osx-highlight) inset,0 1px 3px #0000002e}.avatar img{width:100%;height:100%;overflow:hidden;border-radius:inherit;object-fit:cover}.avatar b{font-size:clamp(12px,40%,16px)}.avatar i{width:10px;height:10px;position:absolute;right:-1px;bottom:-1px;border:2px solid var(--osx-surface-raised);border-radius:50%;background:var(--osx-muted)}.avatar i.online{background:var(--osx-success)}.avatar i.busy{background:var(--osx-warning)}.avatar i.offline{background:var(--osx-muted)}`]]]),Dg=[`aria-label`],Og={key:0,"aria-hidden":`true`},kg=Q(H({__name:`OsxBadge.ce`,props:{tone:{default:`neutral`,type:String},size:{default:`medium`,type:String},label:{default:``,type:String},dot:{type:Boolean,default:!1}},setup(e){return(t,n)=>(G(),K(`span`,{class:B([`badge`,e.tone,e.size,{dot:e.dot}]),"aria-label":e.label||void 0},[e.dot?(G(),K(`i`,Og)):Y(``,!0),U(t.$slots,`default`,{},()=>[Of(V(e.label),1)])],10,Dg))}}),[[`styles`,[`:host{display:inline-flex;color:var(--osx-text);font-family:var(--osx-font)}.badge{--tone: var(--osx-muted);display:inline-flex;gap:5px;align-items:center;min-height:22px;padding:2px 8px;border:1px solid color-mix(in srgb,var(--tone) 55%,var(--osx-border));border-radius:999px;color:var(--osx-text);background:color-mix(in srgb,var(--tone) 10%,var(--osx-surface-raised));font-size:12px;font-weight:800;line-height:1.2}.info{--tone: var(--osx-accent)}.success{--tone: var(--osx-success)}.warning{--tone: var(--osx-warning)}.danger{--tone: var(--osx-danger)}.small{min-height:18px;padding-inline:6px}.badge i{width:7px;height:7px;border-radius:50%;background:var(--tone);box-shadow:0 0 0 1px color-mix(in srgb,var(--tone) 60%,#111)}`]]]),Ag=[`aria-label`],jg={class:`sidebar`,"aria-label":`Workspace navigation`},Mg={class:`workspace`,"aria-label":`Workspace content`},Ng={class:`content`},Pg={class:`composer`},Fg={key:0,class:`inspector`,"aria-label":`Inspector`},Ig=Q(H({__name:`OsxAppShell.ce`,props:{appTitle:{default:`Application`,type:String},sidebarWidth:{default:`220px`,type:String},inspectorWidth:{default:`280px`,type:String},inspectorOpen:{type:Boolean,default:!0},label:{default:`Application workspace`,type:String}},setup(e){return(t,n)=>(G(),K(`section`,{class:B([`shell`,{"without-inspector":!e.inspectorOpen}]),style:Es({"--osx-sidebar-width":e.sidebarWidth,"--osx-inspector-width":e.inspectorWidth}),"aria-label":e.label},[q(`header`,null,[q(`strong`,null,V(e.appTitle),1),q(`div`,null,[U(t.$slots,`toolbar`)])]),q(`aside`,jg,[U(t.$slots,`sidebar`)]),q(`section`,Mg,[q(`div`,Ng,[U(t.$slots,`default`)]),q(`div`,Pg,[U(t.$slots,`composer`)])]),e.inspectorOpen?(G(),K(`aside`,Fg,[U(t.$slots,`inspector`)])):Y(``,!0),q(`footer`,null,[U(t.$slots,`status`)])],14,Ag))}}),[[`styles`,[`:host{display:block;min-width:0;color:var(--osx-text);font-family:var(--osx-font)}.shell{height:100%;min-height:520px;display:grid;grid-template:"toolbar toolbar toolbar" auto "sidebar main inspector" minmax(0,1fr) "status status status" auto / var(--osx-sidebar-width) minmax(0,1fr) var(--osx-inspector-width);overflow:hidden;border:1px solid var(--osx-border);border-radius:9px;background:var(--osx-surface);box-shadow:var(--osx-shadow)}.shell.without-inspector{grid-template:"toolbar toolbar" auto "sidebar main" minmax(0,1fr) "status status" auto / var(--osx-sidebar-width) minmax(0,1fr)}header{grid-area:toolbar;min-height:44px;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:7px 12px;border-bottom:1px solid var(--osx-border);background:linear-gradient(var(--osx-title-start),var(--osx-title-end));box-shadow:0 1px var(--osx-highlight) inset}header strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}header div{min-width:0;display:flex;gap:8px;align-items:center;justify-content:flex-end}.sidebar{grid-area:sidebar;min-width:0;overflow:auto;border-right:1px solid var(--osx-border);background:var(--osx-surface-sunken)}.workspace{grid-area:main;min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;background:var(--osx-surface)}.content{min-width:0;min-height:0;overflow:auto}.composer{border-top:1px solid var(--osx-border-soft);background:var(--osx-surface-raised)}.inspector{grid-area:inspector;min-width:0;overflow:auto;border-left:1px solid var(--osx-border);background:var(--osx-surface-sunken)}footer{grid-area:status;min-width:0;border-top:1px solid var(--osx-border);background:linear-gradient(var(--osx-title-start),var(--osx-title-end))}@media(max-width:760px){.shell,.shell.without-inspector{grid-template:"toolbar" auto "sidebar" auto "main" minmax(420px,auto) "inspector" auto "status" auto / minmax(0,1fr)}.shell.without-inspector{grid-template-areas:"toolbar" "sidebar" "main" "status"}.sidebar{max-height:150px;border-right:0;border-bottom:1px solid var(--osx-border)}.inspector{border-top:1px solid var(--osx-border);border-left:0}}@media(max-width:480px){.shell{border-inline:0;border-radius:0}header{align-items:flex-start;flex-direction:column}header div{width:100%;justify-content:flex-start}}`]]]),Lg=[`disabled`,`aria-busy`],Rg={key:0,class:`spinner`,"aria-hidden":`true`},zg={class:`label`},Bg=Q(H({__name:`OsxButton.ce`,props:{variant:{default:`default`,type:String},size:{default:`medium`,type:String},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{default:void 0,type:null},iconPosition:{default:`leading`,type:String}},setup(e){return(t,n)=>(G(),K(`button`,{class:B([e.variant,e.size]),disabled:e.disabled||e.loading,"aria-busy":e.loading||void 0},[e.loading?(G(),K(`span`,Rg)):e.icon&&e.iconPosition===`leading`?(G(),bf(Z,{key:1,name:e.icon,size:e.size===`small`?13:15},null,8,[`name`,`size`])):Y(``,!0),q(`span`,zg,[U(t.$slots,`default`)]),e.icon&&e.iconPosition===`trailing`&&!e.loading?(G(),bf(Z,{key:2,name:e.icon,size:e.size===`small`?13:15},null,8,[`name`,`size`])):Y(``,!0)],10,Lg))}}),[[`styles`,[`:host{display:inline-block;font-family:var(--osx-font)}button{min-height:30px;display:inline-flex;gap:7px;align-items:center;justify-content:center;padding:5px 15px;border:1px solid var(--osx-border);border-radius:7px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));box-shadow:0 1px var(--osx-highlight) inset,0 1px 2px #1626302e;font:600 13px/1.2 var(--osx-font);text-shadow:0 1px var(--osx-highlight);cursor:pointer}button:hover:not(:disabled){filter:brightness(1.04)}button:active:not(:disabled){background:linear-gradient(var(--osx-surface-sunken),var(--osx-surface-raised));box-shadow:0 1px 2px #1626302e inset}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}button.primary{color:#fff;border-color:color-mix(in srgb,var(--osx-accent) 78%,#123);background:linear-gradient(var(--osx-accent-light),var(--osx-accent) 52%,color-mix(in srgb,var(--osx-accent) 78%,#123));text-shadow:0 -1px rgba(0,0,0,.45)}button.danger{color:#fff;border-color:#9c3632;background:linear-gradient(#ef8179,#c74d47 55%,#a73a36);text-shadow:0 -1px rgba(0,0,0,.42)}button.small{min-height:24px;padding:3px 10px;font-size:12px}button:disabled{opacity:.54;cursor:not-allowed}.spinner{width:10px;height:10px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}`]]]),Vg=[`checked`,`disabled`],Hg={class:`box`,"aria-hidden":`true`},Ug={class:`copy`},Wg=Q(H({__name:`OsxCheckbox.ce`,props:{checked:{type:Boolean,default:!1},label:{default:``,type:String},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.checked),a=ll(null);$l(()=>n.checked,e=>{i.value=e});async function o(){await Pl(),a.value&&(a.value.indeterminate=n.indeterminate)}$l(()=>n.indeterminate,o),Fu(o);function s(e){i.value=e.target.checked,r(`change`,i.value)}return(t,n)=>(G(),K(`label`,{class:B({disabled:e.disabled,indeterminate:e.indeterminate})},[q(`input`,{ref_key:`input`,ref:a,type:`checkbox`,checked:i.value,disabled:e.disabled,onChange:s},null,40,Vg),q(`span`,Hg,[e.indeterminate?(G(),bf(Z,{key:0,name:`minus`,size:11,"stroke-width":2.5})):i.value?(G(),bf(Z,{key:1,name:`check`,size:11,"stroke-width":2.5})):Y(``,!0)]),q(`span`,Ug,[U(t.$slots,`default`,{},()=>[Of(V(e.label),1)])])],2))}}),[[`styles`,[`:host{display:inline-block;color:var(--osx-text);font-family:var(--osx-font)}label{display:inline-flex;gap:7px;align-items:center;font-size:13px;cursor:pointer}input{width:1px;height:1px;position:absolute;opacity:0}.box{width:15px;height:15px;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:4px;color:#fff;background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));box-shadow:0 1px var(--osx-highlight) inset,0 1px 2px #00000024}input:checked+.box,.indeterminate .box{border-color:color-mix(in srgb,var(--osx-accent) 80%,#123);background:linear-gradient(var(--osx-accent-light),var(--osx-accent));text-shadow:0 -1px rgba(0,0,0,.4)}input:focus-visible+.box{outline:3px solid var(--osx-focus);outline-offset:2px}.box b{font-size:12px;line-height:1}.box i{width:7px;height:2px;border-radius:1px;background:#fff}.disabled{opacity:.55;cursor:not-allowed}`]]]),Gg=Q(H({__name:`OsxCopy.ce`,props:{as:{default:`p`,type:String},size:{default:`medium`,type:String},tone:{default:`default`,type:String},weight:{default:`regular`,type:String},measure:{default:`default`,type:String},align:{default:`left`,type:String}},setup(e){let t=e;return(n,r)=>(G(),bf(Ku(t.as),{class:B([`size-${e.size}`,`tone-${e.tone}`,`weight-${e.weight}`,`measure-${e.measure}`,`align-${e.align}`])},{default:Kl(()=>[U(n.$slots,`default`)]),_:3},8,[`class`]))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}:host([as="span"]){display:inline}p,span,div{margin:0;color:inherit;overflow-wrap:anywhere}.size-small{font-size:12px;line-height:1.45}.size-medium{font-size:14px;line-height:1.55}.size-large{font-size:18px;line-height:1.55}.tone-muted{color:var(--osx-muted)}.tone-accent{color:var(--osx-accent)}.weight-regular{font-weight:400}.weight-medium{font-weight:600}.weight-bold{font-weight:800}.measure-narrow{max-width:42ch}.measure-default{max-width:65ch}.measure-wide{max-width:82ch}.measure-none{max-width:none}.align-center{margin-inline:auto;text-align:center}.align-right{margin-left:auto;text-align:right}`]]]),Kg=[`href`,`target`,`rel`,`aria-label`,`aria-disabled`],qg=[`disabled`,`aria-label`,`aria-pressed`],Jg=Q(H({__name:`OsxCitation.ce`,props:{index:{default:`1`,type:[String,Number]},label:{default:`Source`,type:String},title:{default:``,type:String},sourceId:{default:``,type:String},href:{default:``,type:String},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:[`activate`],setup(e,{emit:t}){let n=e,r=t;function i(e){if(n.disabled){e.preventDefault();return}r(`activate`,n.sourceId||String(n.index))}return(t,n)=>e.href?(G(),K(`a`,{key:0,href:e.disabled?void 0:e.href,target:e.href.startsWith(`http`)?`_blank`:void 0,rel:e.href.startsWith(`http`)?`noreferrer noopener`:void 0,"aria-label":e.title?`${e.label} ${e.index}: ${e.title}`:`${e.label} ${e.index}`,"aria-disabled":e.disabled||void 0,class:B({selected:e.selected,disabled:e.disabled}),onClick:i},[q(`span`,null,V(e.index),1),J(Z,{name:`external`,size:12})],10,Kg)):(G(),K(`button`,{key:1,type:`button`,disabled:e.disabled,"aria-label":e.title?`${e.label} ${e.index}: ${e.title}`:`${e.label} ${e.index}`,"aria-pressed":e.selected,class:B({selected:e.selected}),onClick:i},[q(`span`,null,V(e.index),1)],10,qg))}}),[[`styles`,[`:host{display:inline-flex;vertical-align:.1em;color:var(--osx-text);font-family:var(--osx-font)}a,button{min-width:24px;min-height:22px;display:inline-flex;gap:3px;align-items:center;justify-content:center;padding:1px 6px;border:1px solid color-mix(in srgb,var(--osx-accent) 55%,var(--osx-border));border-radius:999px;color:var(--osx-accent);background:color-mix(in srgb,var(--osx-accent) 9%,var(--osx-surface-raised));font:800 12px/1 var(--osx-font);text-decoration:none;cursor:pointer}a:hover,button:hover,.selected{color:#fff;background:var(--osx-accent)}a:focus-visible,button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}.disabled,button:disabled{opacity:.48;cursor:not-allowed}`]]]),Yg=[`aria-label`],Xg={class:`file`},Zg={class:`stats`},Qg={class:`actions`},$g={class:`segments`,role:`radiogroup`,"aria-label":`Diff layout`},e_=[`aria-checked`],t_=[`aria-checked`],n_={key:0,class:`empty`},r_={key:1,class:`code unified`,role:`table`,"aria-label":`Unified diff`,tabindex:`0`},i_={class:`number old`,role:`cell`},a_={class:`number`,role:`cell`},o_={class:`marker`,"aria-hidden":`true`},s_={role:`cell`},c_={key:2,class:`code split`,role:`table`,"aria-label":`Split diff`,tabindex:`0`},l_={key:0,class:`hunk-cell`,role:`cell`},u_={class:`number`,role:`cell`},d_={class:`number`,role:`cell`},f_=Q(H({__name:`OsxDiffViewer.ce`,props:{file:{default:`Untitled`,type:String},patch:{default:``,type:String},view:{default:`unified`,type:String},language:{default:`text`,type:String},additions:{default:-1,type:Number},deletions:{default:-1,type:Number},label:{default:`Code changes`,type:String}},emits:[`view-change`,`copy`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.view);$l(()=>n.view,e=>{i.value=e});let a=ep(()=>{let e=0,t=0;return n.patch.split(`
|
|
4
|
+
`).flatMap(n=>{if(n.startsWith(`---`)||n.startsWith(`+++`))return[];let r=n.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@(.*)$/);return r?(e=Number(r[1]),t=Number(r[2]),[{kind:`hunk`,content:n}]):n.startsWith(`+`)?[{kind:`add`,content:n.slice(1),newNumber:t++}]:n.startsWith(`-`)?[{kind:`remove`,content:n.slice(1),oldNumber:e++}]:[{kind:`context`,content:n.startsWith(` `)?n.slice(1):n,oldNumber:e++,newNumber:t++}]})}),o=ep(()=>({additions:n.additions>=0?n.additions:a.value.filter(e=>e.kind===`add`).length,deletions:n.deletions>=0?n.deletions:a.value.filter(e=>e.kind===`remove`).length})),s=ep(()=>{let e=[];for(let t=0;t<a.value.length;){let n=a.value[t];if(n.kind===`hunk`){e.push({kind:`hunk`,hunk:n.content}),t+=1;continue}if(n.kind===`context`){e.push({kind:`context`,left:n,right:n}),t+=1;continue}if(n.kind===`remove`){let n=[],r=[];for(;a.value[t]?.kind===`remove`;)n.push(a.value[t++]);for(;a.value[t]?.kind===`add`;)r.push(a.value[t++]);let i=Math.max(n.length,r.length);for(let t=0;t<i;t+=1)e.push({kind:n[t]&&r[t]?`context`:n[t]?`remove`:`add`,left:n[t],right:r[t]});continue}e.push({kind:`add`,right:n}),t+=1}return e});function c(e){i.value=e,r(`view-change`,e)}return(t,n)=>(G(),K(`section`,{"aria-label":e.label,class:`viewer`},[q(`header`,null,[q(`div`,Xg,[J(Z,{name:`file-code`,size:17}),q(`strong`,null,V(e.file),1),q(`small`,null,V(e.language),1)]),q(`div`,Zg,[q(`b`,null,`+`+V(o.value.additions),1),q(`i`,null,`−`+V(o.value.deletions),1)]),q(`div`,Qg,[q(`div`,$g,[q(`button`,{type:`button`,role:`radio`,"aria-checked":i.value===`unified`,class:B({active:i.value===`unified`}),onClick:n[0]||=e=>c(`unified`)},`Unified`,10,e_),q(`button`,{type:`button`,role:`radio`,"aria-checked":i.value===`split`,class:B({active:i.value===`split`}),onClick:n[1]||=e=>c(`split`)},`Split`,10,t_)]),q(`button`,{class:`copy`,type:`button`,onClick:n[2]||=t=>r(`copy`,e.patch)},[J(Z,{name:`copy`,size:14}),n[3]||=Of(` Copy`,-1)])])]),e.patch?i.value===`unified`?(G(),K(`div`,r_,[(G(!0),K(W,null,Yu(a.value,(e,t)=>(G(),K(`div`,{key:t,class:B([`line`,e.kind]),role:`row`},[q(`span`,i_,V(e.oldNumber??``),1),q(`span`,a_,V(e.newNumber??``),1),q(`span`,o_,V(e.kind===`add`?`+`:e.kind===`remove`?`−`:e.kind===`hunk`?`••`:``),1),q(`code`,s_,V(e.content||` `),1)],2))),128))])):(G(),K(`div`,c_,[(G(!0),K(W,null,Yu(s.value,(e,t)=>(G(),K(`div`,{key:t,class:B([`split-row`,e.kind]),role:`row`},[e.kind===`hunk`?(G(),K(`code`,l_,V(e.hunk),1)):(G(),K(W,{key:1},[q(`span`,u_,V(e.left?.oldNumber??``),1),q(`code`,{class:B({remove:e.left?.kind===`remove`}),role:`cell`},V(e.left?.content??` `),3),q(`span`,d_,V(e.right?.newNumber??``),1),q(`code`,{class:B({add:e.right?.kind===`add`}),role:`cell`},V(e.right?.content??` `),3)],64))],2))),128))])):(G(),K(`div`,n_,`No changes to display`))],8,Yg))}}),[[`styles`,[`:host{display:block;min-width:0;color:var(--osx-text);font-family:var(--osx-font)}.viewer{min-width:0;overflow:hidden;border:1px solid var(--osx-border);border-radius:8px;background:var(--osx-surface-sunken)}header{min-height:43px;display:flex;gap:12px;align-items:center;padding:7px 9px;border-bottom:1px solid var(--osx-border);background:linear-gradient(var(--osx-title-start),var(--osx-title-end));box-shadow:0 1px var(--osx-highlight) inset}.file{min-width:0;display:flex;gap:7px;align-items:center}.file strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.file small{color:var(--osx-muted);font-size:12px}.stats{display:flex;gap:7px;margin-left:auto;font-size:12px}.stats b{color:var(--osx-success)}.stats i{color:var(--osx-danger);font-style:normal;font-weight:700}.actions{display:flex;gap:7px;align-items:center}.segments{display:flex;overflow:hidden;border:1px solid var(--osx-border);border-radius:6px}.segments button{border:0;border-right:1px solid var(--osx-border);border-radius:0}.segments button:last-child{border-right:0}.segments button.active{color:#fff;background:linear-gradient(var(--osx-accent-light),var(--osx-accent))}button{min-height:25px;display:inline-flex;gap:5px;align-items:center;padding:3px 8px;border:1px solid var(--osx-border);border-radius:6px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font:700 12px var(--osx-font);cursor:pointer}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}.code{max-height:360px;overflow:auto;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.line{min-width:max-content;display:grid;grid-template-columns:42px 42px 24px minmax(400px,1fr)}.line>*{padding-block:2px}.number{padding-inline:7px;color:var(--osx-muted);background:color-mix(in srgb,var(--osx-surface-sunken) 86%,transparent);text-align:right;-webkit-user-select:none;user-select:none}.marker{text-align:center;-webkit-user-select:none;user-select:none}.line code{padding-inline:8px 18px;white-space:pre}.line.add,.split code.add{background:color-mix(in srgb,var(--osx-success) 16%,var(--osx-surface))}.line.remove,.split code.remove{background:color-mix(in srgb,var(--osx-danger) 15%,var(--osx-surface))}.line.add .marker{color:var(--osx-success)}.line.remove .marker{color:var(--osx-danger)}.line.hunk{grid-template-columns:42px 42px 24px minmax(400px,1fr);color:var(--osx-accent);background:color-mix(in srgb,var(--osx-accent) 10%,var(--osx-surface))}.split-row{min-width:760px;display:grid;grid-template-columns:42px minmax(330px,1fr) 42px minmax(330px,1fr);border-bottom:1px solid color-mix(in srgb,var(--osx-border-soft) 55%,transparent)}.split-row>*{padding-block:2px}.split-row code{padding-inline:8px;white-space:pre}.hunk-cell{grid-column:1 / -1;color:var(--osx-accent);background:color-mix(in srgb,var(--osx-accent) 10%,var(--osx-surface))}.empty{padding:38px 16px;color:var(--osx-muted);font-size:12px;text-align:center}@media(max-width:620px){header{align-items:flex-start;flex-wrap:wrap}.file{flex:1 1 180px}.stats{margin-left:0}.actions{width:100%;justify-content:space-between}.code{max-height:300px}}`]]]),p_=[`aria-label`],m_={key:0},h_={class:`content`},g_=Q(H({__name:`OsxDialog.ce`,props:{open:{type:Boolean,default:!1},title:{default:`Dialog`,type:String},description:{default:``,type:String},size:{default:`medium`,type:String},dismissible:{type:Boolean,default:!0},confirmLabel:{default:`Continue`,type:String},cancelLabel:{default:`Cancel`,type:String}},emits:[`close`,`confirm`],setup(e,{emit:t}){let n=e,r=t,i=ll(null);$l(()=>n.open,async e=>{e&&(await Pl(),i.value?.focus())});function a(e){if(e.key===`Escape`&&n.dismissible){r(`close`);return}if(e.key!==`Tab`||!i.value)return;let t=[...i.value.querySelectorAll(`button,[href],[tabindex]:not([tabindex='-1'])`)].filter(e=>!e.hasAttribute(`disabled`));if(!t.length)return;let a=t[0],o=t.at(-1),s=i.value.getRootNode().activeElement;e.shiftKey&&s===a?(e.preventDefault(),o.focus()):!e.shiftKey&&s===o&&(e.preventDefault(),a.focus())}return(t,n)=>e.open?(G(),K(`div`,{key:0,class:`backdrop`,onClick:n[3]||=bm(t=>e.dismissible&&r(`close`),[`self`])},[q(`section`,{ref_key:`dialog`,ref:i,class:B(e.size),role:`dialog`,"aria-modal":`true`,"aria-label":e.title,tabindex:`-1`,onKeydown:a},[q(`header`,null,[q(`div`,null,[q(`h2`,null,V(e.title),1),e.description?(G(),K(`p`,m_,V(e.description),1)):Y(``,!0)]),e.dismissible?(G(),K(`button`,{key:0,type:`button`,"aria-label":`Close dialog`,onClick:n[0]||=e=>r(`close`)},[J(Z,{name:`close`,size:20})])):Y(``,!0)]),q(`div`,h_,[U(t.$slots,`default`)]),q(`footer`,null,[U(t.$slots,`actions`,{},()=>[q(`button`,{type:`button`,onClick:n[1]||=e=>r(`close`)},V(e.cancelLabel),1),q(`button`,{class:`primary`,type:`button`,onClick:n[2]||=e=>r(`confirm`)},V(e.confirmLabel),1)])])],42,p_)])):Y(``,!0)}}),[[`styles`,[`:host{color:var(--osx-text);font-family:var(--osx-font)}.backdrop{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;padding:20px;background:#070d116b;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.backdrop>section{width:min(520px,100%);overflow:hidden;border:1px solid var(--osx-border);border-radius:10px;outline:0;background:var(--osx-surface-raised);box-shadow:var(--osx-shadow)}.backdrop>section.small{width:min(380px,100%)}.backdrop>section.large{width:min(760px,100%)}header{display:flex;justify-content:space-between;gap:12px;padding:18px 20px 12px}h2{margin:0;font:500 23px Georgia,serif}p{margin:5px 0 0;color:var(--osx-muted);font-size:13px;line-height:1.45}.content{max-height:min(55vh,520px);overflow:auto;padding:8px 20px 20px;font-size:13px}footer{display:flex;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid var(--osx-border-soft);background:var(--osx-surface-sunken)}button{min-height:31px;padding:5px 13px;border:1px solid var(--osx-border);border-radius:7px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font:700 12px var(--osx-font);cursor:pointer}header>button{width:30px;padding:0;border:0;background:transparent;color:var(--osx-muted);font-size:20px}.primary{color:#fff;border-color:color-mix(in srgb,var(--osx-accent) 78%,#123);background:linear-gradient(var(--osx-accent-light),var(--osx-accent))}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}`]]]),__=[`aria-label`],v_={class:`identity`},y_={class:`mark`,"aria-hidden":`true`},b_={class:`context`},x_={key:0,class:`description`},S_={key:1,class:`description slotted`},C_={class:`provenance`},w_=[`href`,`target`,`rel`,`aria-label`],T_=Q(H({__name:`OsxEcosystemCard.ce`,props:{name:{default:`Product`,type:String},category:{default:`From the ecosystem`,type:String},description:{default:``,type:String},href:{default:``,type:String},actionLabel:{default:`Explore product`,type:String},mark:{default:``,type:String},provenance:{default:`Built with OSX Components`,type:String},trackingId:{default:``,type:String},tone:{default:`info`,type:String},compact:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},emits:[`activate`],setup(e,{emit:t}){let n=e,r=t,i=ep(()=>n.mark.trim()||n.name.trim().slice(0,1).toUpperCase()||`O`),a=ep(()=>`${n.actionLabel}: ${n.name}`);function o(){r(`activate`,{name:n.name,href:n.href,trackingId:n.trackingId})}return(t,n)=>(G(),K(`article`,{class:B([`card`,[`tone-${e.tone}`,{compact:e.compact}]]),"aria-label":`${e.name} ecosystem recommendation`},[q(`div`,v_,[q(`span`,y_,[U(t.$slots,`mark`,{},()=>[Of(V(i.value),1)])]),q(`span`,b_,[q(`small`,null,V(e.category),1),q(`strong`,null,V(e.name),1)])]),e.description?(G(),K(`p`,x_,[U(t.$slots,`default`,{},()=>[Of(V(e.description),1)])])):(G(),K(`div`,S_,[U(t.$slots,`default`)])),q(`footer`,null,[q(`span`,C_,[n[0]||=q(`span`,{"aria-hidden":`true`},`O`,-1),U(t.$slots,`provenance`,{},()=>[Of(V(e.provenance),1)])]),e.href?(G(),K(`a`,{key:0,href:e.href,target:e.external?`_blank`:void 0,rel:e.external?`noreferrer noopener`:void 0,"aria-label":a.value,onClick:o},[U(t.$slots,`action`,{},()=>[Of(V(e.actionLabel),1)]),J(Z,{name:e.external?`external`:`chevron-right`,size:14},null,8,[`name`])],8,w_)):Y(``,!0)])],10,__))}}),[[`styles`,[`:host{display:block;min-width:0;color:var(--osx-text);font-family:var(--osx-font)}.card{--ecosystem-accent: var(--osx-accent);position:relative;min-width:0;display:grid;gap:14px;overflow:hidden;padding:17px;border:1px solid var(--osx-border);border-radius:11px;background:linear-gradient(145deg,var(--osx-surface-raised),var(--osx-surface));box-shadow:0 1px var(--osx-highlight) inset,0 3px 10px #0000001c}.card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--ecosystem-accent)}.tone-neutral{--ecosystem-accent: var(--osx-muted)}.tone-success{--ecosystem-accent: #329653}.tone-warning{--ecosystem-accent: #b8770a}.identity{min-width:0;display:flex;gap:11px;align-items:center}.mark{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--ecosystem-accent) 72%,var(--osx-border));border-radius:9px;color:#fff;background:linear-gradient(color-mix(in srgb,var(--ecosystem-accent) 65%,white),var(--ecosystem-accent));box-shadow:0 1px #ffffffb3 inset,0 1px 3px #0000002e;font:700 19px Georgia,serif}.context{min-width:0;display:grid;gap:2px}.context small{overflow:hidden;color:var(--ecosystem-accent);font-size:12px;font-weight:800;letter-spacing:.08em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.context strong{overflow:hidden;font:600 20px/1.15 Georgia,serif;text-overflow:ellipsis;white-space:nowrap}.description{min-width:0;min-height:39px;margin:0;color:var(--osx-muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere}.slotted:empty{display:none}footer{min-width:0;display:flex;gap:12px;align-items:center;justify-content:space-between;padding-top:11px;border-top:1px solid var(--osx-border-soft)}.provenance{min-width:0;display:inline-flex;gap:6px;align-items:center;overflow:hidden;color:var(--osx-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.provenance>span{width:18px;height:18px;flex:0 0 18px;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:5px;color:var(--osx-accent);background:var(--osx-surface-raised);font:700 12px Georgia,serif}a{min-height:30px;display:inline-flex;gap:6px;align-items:center;justify-content:center;padding:4px 9px;border:1px solid color-mix(in srgb,var(--ecosystem-accent) 72%,var(--osx-border));border-radius:7px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}a:hover{color:var(--ecosystem-accent);border-color:var(--ecosystem-accent)}a:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}.compact{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center}.compact .description{grid-column:1;min-height:0;padding-left:50px}.compact footer{min-width:190px;grid-column:2;grid-row:1 / span 2;align-self:stretch;flex-direction:column-reverse;justify-content:center;padding:0 0 0 16px;border-top:0;border-left:1px solid var(--osx-border-soft)}.compact .provenance{overflow:visible;white-space:nowrap}@media(max-width:560px){.compact{display:grid;grid-template-columns:1fr}.compact .description,.compact footer{grid-column:1;grid-row:auto;padding-left:0}.compact footer{min-width:0;align-self:auto;flex-direction:row;justify-content:space-between;padding-top:11px;border-top:1px solid var(--osx-border-soft);border-left:0}footer{align-items:stretch;flex-direction:column}.provenance,.compact .provenance{overflow:hidden;white-space:normal}a{width:auto}}`]]]),E_=[`aria-label`],D_={class:`icon`},O_={key:0},k_={class:`content`},A_={class:`actions`},j_=Q(H({__name:`OsxEmptyState.ce`,props:{title:{default:`Nothing here yet`,type:String},description:{default:``,type:String},actionLabel:{default:``,type:String},icon:{default:`inbox`,type:null}},emits:[`action`],setup(e,{emit:t}){let n=t;return(t,r)=>(G(),K(`section`,{"aria-label":e.title},[q(`div`,D_,[U(t.$slots,`icon`,{},()=>[J(Z,{name:e.icon,size:28},null,8,[`name`])])]),q(`h2`,null,V(e.title),1),e.description?(G(),K(`p`,O_,V(e.description),1)):Y(``,!0),q(`div`,k_,[U(t.$slots,`default`)]),q(`div`,A_,[U(t.$slots,`actions`,{},()=>[e.actionLabel?(G(),K(`button`,{key:0,type:`button`,onClick:r[0]||=e=>n(`action`)},V(e.actionLabel),1)):Y(``,!0)])])],8,E_))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}section{display:grid;justify-items:center;padding:34px 22px;text-align:center}.icon{width:52px;height:52px;display:grid;place-items:center;margin-bottom:12px;border:1px solid var(--osx-border);border-radius:13px;color:var(--osx-accent);background:var(--osx-surface-raised);font:500 28px Georgia,serif;box-shadow:0 2px 7px #0000001a}h2{margin:0;font:500 22px Georgia,serif}p,.content{max-width:440px;margin:7px 0 0;color:var(--osx-muted);font-size:13px;line-height:1.5}.content:empty,.actions:empty{display:none}.actions{margin-top:16px}button{min-height:32px;padding:5px 14px;border:1px solid color-mix(in srgb,var(--osx-accent) 75%,#123);border-radius:7px;color:#fff;background:linear-gradient(var(--osx-accent-light),var(--osx-accent));font:700 12px var(--osx-font);cursor:pointer}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}`]]]),M_=[`aria-label`],N_={key:0,class:`filter`},P_=[`aria-label`],F_=[`title`,`aria-level`,`aria-expanded`,`aria-selected`,`onClick`],I_={key:0},L_=Q(H({__name:`OsxFileTree.ce`,props:{files:{default:``,type:String},selected:{default:``,type:String},statuses:{default:`{}`,type:String},label:{default:`Repository files`,type:String},filterable:{type:Boolean,default:!0}},emits:[`select`,`toggle`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.selected),a=ll(``),o=ll(new Set);$l(()=>n.selected,e=>{i.value=e});let s=ep(()=>{try{return JSON.parse(n.statuses||`{}`)}catch{return{}}}),c=ep(()=>{let e={children:[]},t=n.files.split(/[\n,]+/).map(e=>e.trim()).filter(Boolean);for(let n of t){let t=e,r=n.split(`/`).filter(Boolean);r.forEach((e,n)=>{let i=r.slice(0,n+1).join(`/`),a=t.children.find(t=>t.name===e);a||(a={name:e,path:i,directory:n<r.length-1,children:[]},t.children.push(a)),t=a})}let r=e=>e.sort((e,t)=>Number(t.directory)-Number(e.directory)||e.name.localeCompare(t.name)).forEach(e=>r(e.children));return r(e.children),e.children});function l(e){let t=a.value.trim().toLowerCase();return!t||e.path.toLowerCase().includes(t)||e.children.some(l)}let u=ep(()=>{let e=[],t=(n,r)=>n.forEach(n=>{l(n)&&(e.push({...n,depth:r}),n.directory&&(!o.value.has(n.path)||a.value)&&t(n.children,r+1))});return t(c.value,0),e});function d(e){if(e.directory){let t=new Set(o.value),n=t.has(e.path);n?t.delete(e.path):t.add(e.path),o.value=t,r(`toggle`,e.path,n);return}i.value=e.path,r(`select`,e.path)}function f(e){return e.directory?o.value.has(e.path)?`folder`:`folder-open`:/\.(?:ts|tsx|js|jsx|vue|css|html|java|py|go|rs|rb|php)$/i.test(e.name)?`file-code`:/\.(?:md|txt|json|ya?ml|toml|xml)$/i.test(e.name)?`file-text`:`file`}return(t,n)=>(G(),K(`section`,{"aria-label":e.label,class:`tree`},[e.filterable?(G(),K(`label`,N_,[J(Z,{class:`filter-icon`,name:`search`,size:16}),ql(q(`input`,{"onUpdate:modelValue":n[0]||=e=>a.value=e,type:`search`,placeholder:`Filter files`,"aria-label":`Filter files`},null,512),[[_m,a.value]])])):Y(``,!0),q(`div`,{class:`rows`,role:`tree`,"aria-label":e.label},[(G(!0),K(W,null,Yu(u.value,e=>(G(),K(`button`,{key:e.path,type:`button`,role:`treeitem`,title:e.path,"aria-level":e.depth+1,"aria-expanded":e.directory?!o.value.has(e.path):void 0,"aria-selected":e.directory?void 0:e.path===i.value,class:B([{selected:e.path===i.value},e.directory?`directory`:`file`]),style:Es({"--depth":e.depth}),onClick:t=>d(e)},[J(Z,{class:`disclosure`,name:e.directory?o.value.has(e.path)?`chevron-right`:`chevron-down`:`circle`,size:e.directory?14:5},null,8,[`name`,`size`]),J(Z,{class:`file-icon`,name:f(e),size:16},null,8,[`name`]),q(`strong`,null,V(e.name),1),s.value[e.path]?(G(),K(`b`,{key:0,class:B(s.value[e.path].toLowerCase())},V(s.value[e.path].slice(0,1).toUpperCase()),3)):Y(``,!0)],14,F_))),128)),u.value.length?Y(``,!0):(G(),K(`p`,I_,`No matching files`))],8,P_)],8,M_))}}),[[`styles`,[`:host{display:block;min-width:0;color:var(--osx-text);font-family:var(--osx-font)}.tree{min-width:0;background:var(--osx-surface-sunken)}.filter{min-height:36px;display:flex;gap:9px;align-items:center;margin:12px;padding:0 10px;border:1px solid var(--osx-border);border-radius:8px;background:var(--osx-surface-raised);box-shadow:0 1px 2px #0000001a inset}.filter-icon{flex:0 0 auto;color:var(--osx-muted)}input{width:100%;min-width:0;height:34px;padding:6px 0;border:0;outline:0;color:var(--osx-text);background:transparent;font:12px var(--osx-font)}.filter:focus-within{border-color:var(--osx-accent);outline:3px solid var(--osx-focus);outline-offset:1px}.rows{display:grid;align-content:start;gap:1px;padding:3px 6px 9px}button{width:100%;min-width:0;min-height:28px;display:grid;grid-template-columns:13px 16px minmax(0,1fr) auto;gap:4px;align-items:center;padding:4px 7px 4px calc(7px + var(--depth) * 13px);border:0;border-radius:5px;color:var(--osx-text);background:transparent;font:600 12px var(--osx-font);text-align:left;cursor:pointer}button:hover{background:color-mix(in srgb,var(--osx-accent) 9%,transparent)}button.selected{color:#fff;background:linear-gradient(var(--osx-accent-light),var(--osx-accent));text-shadow:0 -1px rgba(0,0,0,.4)}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:0}.disclosure{color:var(--osx-muted);font-size:16px;line-height:1;text-align:center}.selected .disclosure{color:#fff}button i{width:12px;height:14px;position:relative;border:1px solid var(--osx-border);border-radius:2px;background:var(--osx-surface-raised)}.directory i{height:10px;border-color:color-mix(in srgb,var(--osx-accent) 72%,var(--osx-border));background:color-mix(in srgb,var(--osx-accent) 24%,var(--osx-surface-raised))}.directory i:before{width:6px;height:3px;position:absolute;top:-4px;left:-1px;border:1px solid color-mix(in srgb,var(--osx-accent) 72%,var(--osx-border));border-bottom:0;border-radius:2px 2px 0 0;background:inherit;content:""}button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button b{font-size:12px}.modified{color:var(--osx-warning)}.added{color:var(--osx-success)}.deleted{color:var(--osx-danger)}.selected b{color:#fff}.rows>p{padding:24px 8px;color:var(--osx-muted);font-size:12px;text-align:center}`]]]),R_=Q(H({__name:`OsxIcon.ce`,props:{name:{default:`info`,type:null},size:{default:20,type:Number},label:{default:``,type:String},strokeWidth:{default:2,type:Number},absoluteStrokeWidth:{type:Boolean,default:!0}},setup(e){return(t,n)=>(G(),bf(Z,{name:e.name,size:e.size,label:e.label,"stroke-width":e.strokeWidth,"absolute-stroke-width":e.absoluteStrokeWidth},null,8,[`name`,`size`,`label`,`stroke-width`,`absolute-stroke-width`]))}}),[[`styles`,[`:host{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;color:inherit;line-height:0;vertical-align:middle}`]]]),z_=[`aria-label`,`aria-pressed`,`disabled`],B_=Q(H({__name:`OsxIconButton.ce`,props:{icon:{default:`info`,type:null},label:{type:String},size:{default:`medium`,type:String},variant:{default:`default`,type:String},disabled:{type:Boolean,default:!1},pressed:{type:Boolean,default:!1}},setup(e){return(t,n)=>(G(),K(`button`,{type:`button`,class:B([e.size,e.variant]),"aria-label":e.label,"aria-pressed":e.pressed||void 0,disabled:e.disabled},[J(Z,{name:e.icon,size:e.size===`small`?16:e.size===`large`?22:18},null,8,[`name`,`size`])],10,z_))}}),[[`styles`,[`:host{display:inline-flex;color:var(--osx-text);font-family:var(--osx-font)}button{width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid var(--osx-border);border-radius:8px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));box-shadow:inset 0 1px #ffffff61,0 1px 2px #00000014;cursor:pointer}button.small{width:32px;height:32px;border-radius:7px}button.large{width:44px;height:44px;border-radius:10px}button:hover:not(:disabled){border-color:color-mix(in srgb,var(--osx-accent) 50%,var(--osx-border));background:color-mix(in srgb,var(--osx-accent) 9%,var(--osx-surface-raised))}button.primary,button[aria-pressed=true]{border-color:color-mix(in srgb,var(--osx-accent) 72%,#123);color:#fff;background:linear-gradient(var(--osx-accent-light),var(--osx-accent));text-shadow:0 -1px rgba(0,0,0,.3)}button.danger{color:var(--osx-danger)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}`]]]),V_=Q(H({__name:`OsxHeading.ce`,props:{level:{default:2,type:Number},variant:{default:`title`,type:String},align:{default:`left`,type:String},tone:{default:`default`,type:String}},setup(e){let t=e,n=ep(()=>`h${Math.min(6,Math.max(1,Number(t.level)||2))}`);return(t,r)=>(G(),bf(Ku(n.value),{class:B([e.variant,`align-${e.align}`,`tone-${e.tone}`])},{default:Kl(()=>[U(t.$slots,`default`)]),_:3},8,[`class`]))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}h1,h2,h3,h4,h5,h6{margin:0;color:inherit;text-wrap:balance}.display{font:500 clamp(34px,6vw,64px)/1.02 Georgia,"Times New Roman",serif;letter-spacing:-.035em}.title{font:500 clamp(25px,3.4vw,38px)/1.12 Georgia,"Times New Roman",serif;letter-spacing:-.02em}.section{font:600 20px/1.2 Georgia,Times New Roman,serif}.label{font:800 12px/1.25 var(--osx-font);letter-spacing:.13em;text-transform:uppercase}.align-center{text-align:center}.align-right{text-align:right}.tone-muted{color:var(--osx-muted)}.tone-accent{color:var(--osx-accent)}`]]]),H_=[`href`,`target`,`rel`,`download`,`role`,`aria-disabled`,`tabindex`],U_=Q(H({__name:`OsxLink.ce`,props:{href:{default:``,type:String},target:{default:`_self`,type:String},rel:{default:``,type:String},external:{type:Boolean,default:!1},download:{type:[Boolean,String],default:!1},underline:{default:`hover`,type:String},disabled:{type:Boolean,default:!1}},setup(e){let t=e,n=ep(()=>t.rel||(t.target===`_blank`?`noreferrer noopener`:void 0));function r(e){t.disabled&&e.preventDefault()}return(t,i)=>(G(),K(`a`,{href:e.disabled?void 0:e.href,target:e.target,rel:n.value,download:e.download||void 0,role:e.disabled?`link`:void 0,"aria-disabled":e.disabled||void 0,tabindex:e.disabled?-1:void 0,class:B([`underline-${e.underline}`,{disabled:e.disabled}]),onClick:r},[U(t.$slots,`default`),e.external?(G(),bf(Z,{key:0,class:`external`,name:`external`,size:13})):Y(``,!0)],10,H_))}}),[[`styles`,[`:host{display:inline;color:var(--osx-accent);font-family:var(--osx-font)}a{color:inherit;font-size:inherit;font-weight:650;line-height:inherit;text-decoration-thickness:1px;text-underline-offset:.16em;border-radius:2px;cursor:pointer}.underline-hover{text-decoration-color:transparent}.underline-hover:hover{text-decoration-color:currentColor}.underline-none{text-decoration:none}a:focus-visible{outline:3px solid var(--osx-focus);outline-offset:3px}.external{display:inline-block;margin-left:.18em;font-size:.82em;text-decoration:none}.disabled{color:var(--osx-muted);opacity:.72;cursor:not-allowed;text-decoration:none}`]]]),W_=[`aria-label`],G_=Q(H({__name:`OsxMenu.ce`,props:{open:{type:Boolean,default:!1},label:{default:`Actions`,type:String},placement:{default:`start`,type:String}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.open);$l(()=>n.open,e=>{i.value=e});function a(){i.value=!1,r(`close`)}function o(e){if(![`ArrowDown`,`ArrowUp`].includes(e.key))return;e.preventDefault();let t=[...e.currentTarget.querySelectorAll(`osx-menu-item`)],n=t.findIndex(e=>e.matches(`:focus-within`));t[e.key===`ArrowDown`?(n+1)%t.length:(n-1+t.length)%t.length]?.shadowRoot?.querySelector(`button`)?.focus()}return(t,n)=>i.value?(G(),K(`div`,{key:0,class:B([`menu`,e.placement]),role:`menu`,"aria-label":e.label,onKeydown:[o,Sm(a,[`esc`])]},[U(t.$slots,`default`)],42,W_)):Y(``,!0)}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}.menu{min-width:210px;padding:5px;border:1px solid var(--osx-border);border-radius:8px;background:var(--osx-surface-raised);box-shadow:var(--osx-shadow)}.menu ::slotted(hr){margin:5px 4px;border:0;border-top:1px solid var(--osx-border-soft)}`]]]),K_=[`role`,`aria-checked`,`disabled`],q_={class:`check`},J_={key:0},Y_=Q(H({__name:`OsxMenuItem.ce`,props:{label:{default:`Menu item`,type:String},shortcut:{default:``,type:String},disabled:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},type:{default:`action`,type:String}},emits:[`select`,`change`],setup(e,{emit:t}){let n=e,r=t,i=ep(()=>n.type===`checkbox`?`menuitemcheckbox`:`menuitem`);function a(){n.disabled||(r(`select`),n.type===`checkbox`&&r(`change`,!n.checked))}return(t,n)=>(G(),K(`button`,{type:`button`,role:i.value,"aria-checked":e.type===`checkbox`?e.checked:void 0,disabled:e.disabled,onClick:a},[q(`span`,q_,[e.type===`checkbox`&&e.checked?(G(),bf(Z,{key:0,name:`check`,size:14})):Y(``,!0)]),q(`span`,null,[U(t.$slots,`default`,{},()=>[Of(V(e.label),1)])]),e.shortcut?(G(),K(`kbd`,J_,V(e.shortcut),1)):Y(``,!0)],8,K_))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}button{width:100%;min-height:30px;display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:7px;align-items:center;padding:4px 10px;border:0;border-radius:5px;color:var(--osx-text);background:transparent;font:13px var(--osx-font);text-align:left;cursor:pointer}button:hover,button:focus-visible{outline:0;color:#fff;background:var(--osx-accent)}.check{font-weight:900;text-align:center}kbd{color:var(--osx-muted);font:12px var(--osx-font)}button:hover kbd,button:focus-visible kbd{color:#fff}button:disabled{opacity:.5;cursor:not-allowed}`]]]),X_=[`aria-label`,`aria-busy`],Z_={key:0},Q_={key:1},$_={key:2},ev=[`href`,`target`,`rel`],tv={key:0},nv={key:1},rv={key:2},iv=[`href`,`target`,`rel`],av={key:0,role:`status`},ov=[`aria-label`,`onClick`],sv={tabindex:`0`},cv={key:0,class:`cursor`,"aria-hidden":`true`},lv={key:0},uv={key:1},dv={key:2},fv=[`href`],pv={key:4,class:`table-wrap`},mv={key:0},hv={key:1},gv={key:0},_v={key:1},vv={key:2},yv=[`href`],bv={key:5},xv={key:0,class:`cursor inline-cursor`,role:`status`,"aria-label":`Streaming response`},Sv=Q(H({__name:`OsxMarkdown.ce`,props:{content:{default:``,type:String},streaming:{type:Boolean,default:!1},label:{default:`Markdown content`,type:String},codeCopy:{type:Boolean,default:!0}},emits:[`copy`],setup(e,{emit:t}){let n=e,r=t,i=ll(``);function a(e){let t=e.trim();return/^(https?:|mailto:|#|\/)/i.test(t)?t:``}function o(e){let t=[],n=/(`[^`]*`|\*\*[^*]+\*\*|\*[^*]+\*|\[[^\]]+\]\([^)]+\))/g,r=0;for(let i of e.matchAll(n)){let n=i.index||0;n>r&&t.push({type:`text`,text:e.slice(r,n)});let o=i[0];if(o.startsWith("`"))t.push({type:`code`,text:o.slice(1,-1)});else if(o.startsWith(`**`))t.push({type:`strong`,text:o.slice(2,-2)});else if(o.startsWith(`*`))t.push({type:`em`,text:o.slice(1,-1)});else{let e=o.match(/^\[([^\]]+)\]\(([^)]+)\)$/),n=e?a(e[2]):``;t.push(n?{type:`link`,text:e[1],href:n}:{type:`text`,text:e?.[1]||o})}r=n+o.length}return r<e.length&&t.push({type:`text`,text:e.slice(r)}),t.length?t:[{type:`text`,text:e}]}function s(e){return e.trim().replace(/^\||\|$/g,``).split(`|`).map(e=>e.trim())}function c(e){let t=s(e);return t.length>0&&t.every(e=>/^:?-{3,}:?$/.test(e))}function l(e,t){let n=e[t]||``;return/^\s*```/.test(n)||/^\s{0,3}#{1,6}\s+/.test(n)||/^\s*(?:[-*+] |\d+\. )/.test(n)||/^\s*>/.test(n)||/^\s*(?:---+|___+|\*\*\*+)\s*$/.test(n)||n.includes(`|`)&&c(e[t+1]||``)}function u(e){let t=e.replaceAll(`\r
|
|
5
|
+
`,`
|
|
6
|
+
`).split(`
|
|
7
|
+
`),n=[],r=0;for(;r<t.length;){let e=t[r];if(!e.trim()){r+=1;continue}let i=e.match(/^\s*```\s*([\w+#.-]*)\s*$/);if(i){let e=r,a=[];r+=1;let o=!1;for(;r<t.length;){if(/^\s*```\s*$/.test(t[r])){o=!0,r+=1;break}a.push(t[r]),r+=1}n.push({type:`code`,code:a.join(`
|
|
8
|
+
`),language:i[1]||`text`,incomplete:!o,key:`${e}-${i[1]||`text`}`});continue}let a=e.match(/^\s{0,3}(#{1,6})\s+(.+)$/);if(a){n.push({type:`heading`,level:a[1].length,inline:o(a[2])}),r+=1;continue}if(/^\s*(?:---+|___+|\*\*\*+)\s*$/.test(e)){n.push({type:`rule`}),r+=1;continue}if(e.includes(`|`)&&c(t[r+1]||``)){let i=s(e).map(o);r+=2;let a=[];for(;r<t.length&&t[r].includes(`|`)&&t[r].trim();)a.push(s(t[r]).map(o)),r+=1;n.push({type:`table`,headers:i,rows:a});continue}let u=e.match(/^\s*(?:([-*+])|(\d+)\.)\s+(.+)$/);if(u){let e=!!u[2],i=[];for(;r<t.length;){let n=t[r].match(/^\s*(?:([-*+])|(\d+)\.)\s+(.+)$/);if(!n||!!n[2]!==e)break;i.push(o(n[3])),r+=1}n.push({type:`list`,ordered:e,items:i});continue}if(/^\s*>/.test(e)){let e=[];for(;r<t.length&&/^\s*>/.test(t[r]);)e.push(t[r].replace(/^\s*>\s?/,``)),r+=1;n.push({type:`quote`,inline:o(e.join(` `))});continue}let d=[e.trim()];for(r+=1;r<t.length&&t[r].trim()&&!l(t,r);)d.push(t[r].trim()),r+=1;n.push({type:`paragraph`,inline:o(d.join(` `))})}return n}let d=ep(()=>u(n.content));async function f(e){if(navigator.clipboard?.writeText)await navigator.clipboard.writeText(e.code);else{let t=document.createElement(`textarea`);t.value=e.code,t.style.position=`fixed`,t.style.opacity=`0`,document.body.append(t),t.select(),document.execCommand(`copy`),t.remove()}i.value=e.key,r(`copy`,e.code,e.language),window.setTimeout(()=>{i.value===e.key&&(i.value=``)},1500)}return(t,n)=>(G(),K(`article`,{"aria-label":e.label,"aria-busy":e.streaming||void 0},[d.value.length?(G(),K(W,{key:0},[(G(!0),K(W,null,Yu(d.value,(t,n)=>(G(),K(W,{key:n},[t.type===`heading`?(G(),bf(Ku(`h${t.level}`),{key:0,class:B(`heading-${t.level}`)},{default:Kl(()=>[(G(!0),K(W,null,Yu(t.inline,(e,t)=>(G(),K(W,{key:t},[e.type===`strong`?(G(),K(`strong`,Z_,V(e.text),1)):e.type===`em`?(G(),K(`em`,Q_,V(e.text),1)):e.type===`code`?(G(),K(`code`,$_,V(e.text),1)):e.type===`link`?(G(),K(`a`,{key:3,href:e.href,target:e.href?.startsWith(`http`)?`_blank`:void 0,rel:e.href?.startsWith(`http`)?`noreferrer noopener`:void 0},V(e.text),9,ev)):(G(),K(W,{key:4},[Of(V(e.text),1)],64))],64))),128))]),_:2},1032,[`class`])):t.type===`paragraph`||t.type===`quote`?(G(),K(`p`,{key:1,class:B({quote:t.type===`quote`})},[(G(!0),K(W,null,Yu(t.inline,(e,t)=>(G(),K(W,{key:t},[e.type===`strong`?(G(),K(`strong`,tv,V(e.text),1)):e.type===`em`?(G(),K(`em`,nv,V(e.text),1)):e.type===`code`?(G(),K(`code`,rv,V(e.text),1)):e.type===`link`?(G(),K(`a`,{key:3,href:e.href,target:e.href?.startsWith(`http`)?`_blank`:void 0,rel:e.href?.startsWith(`http`)?`noreferrer noopener`:void 0},V(e.text),9,iv)):(G(),K(W,{key:4},[Of(V(e.text),1)],64))],64))),128))],2)):t.type===`code`?(G(),K(`div`,{key:2,class:B([`code-block`,{incomplete:t.incomplete}])},[q(`header`,null,[q(`span`,null,V(t.language),1),t.incomplete&&e.streaming?(G(),K(`span`,av,`Streaming…`)):Y(``,!0),e.codeCopy?(G(),K(`button`,{key:1,type:`button`,"aria-label":`Copy ${t.language} code`,onClick:e=>f(t)},[J(Z,{name:i.value===t.key?`check`:`copy`,size:13},null,8,[`name`]),Of(V(i.value===t.key?`Copied`:`Copy`),1)],8,ov)):Y(``,!0)]),q(`pre`,sv,[q(`code`,null,V(t.code),1),t.incomplete&&e.streaming?(G(),K(`span`,cv)):Y(``,!0)])],2)):t.type===`list`?(G(),bf(Ku(t.ordered?`ol`:`ul`),{key:3},{default:Kl(()=>[(G(!0),K(W,null,Yu(t.items,(e,t)=>(G(),K(`li`,{key:t},[(G(!0),K(W,null,Yu(e,(e,t)=>(G(),K(W,{key:t},[e.type===`strong`?(G(),K(`strong`,lv,V(e.text),1)):e.type===`em`?(G(),K(`em`,uv,V(e.text),1)):e.type===`code`?(G(),K(`code`,dv,V(e.text),1)):e.type===`link`?(G(),K(`a`,{key:3,href:e.href},V(e.text),9,fv)):(G(),K(W,{key:4},[Of(V(e.text),1)],64))],64))),128))]))),128))]),_:2},1024)):t.type===`table`?(G(),K(`div`,pv,[q(`table`,null,[q(`thead`,null,[q(`tr`,null,[(G(!0),K(W,null,Yu(t.headers,(e,t)=>(G(),K(`th`,{key:t},[(G(!0),K(W,null,Yu(e,(e,t)=>(G(),K(W,{key:t},[e.type===`strong`?(G(),K(`strong`,mv,V(e.text),1)):e.type===`code`?(G(),K(`code`,hv,V(e.text),1)):(G(),K(W,{key:2},[Of(V(e.text),1)],64))],64))),128))]))),128))])]),q(`tbody`,null,[(G(!0),K(W,null,Yu(t.rows,(e,t)=>(G(),K(`tr`,{key:t},[(G(!0),K(W,null,Yu(e,(e,t)=>(G(),K(`td`,{key:t},[(G(!0),K(W,null,Yu(e,(e,t)=>(G(),K(W,{key:t},[e.type===`strong`?(G(),K(`strong`,gv,V(e.text),1)):e.type===`em`?(G(),K(`em`,_v,V(e.text),1)):e.type===`code`?(G(),K(`code`,vv,V(e.text),1)):e.type===`link`?(G(),K(`a`,{key:3,href:e.href},V(e.text),9,yv)):(G(),K(W,{key:4},[Of(V(e.text),1)],64))],64))),128))]))),128))]))),128))])])])):t.type===`rule`?(G(),K(`hr`,bv)):Y(``,!0)],64))),128)),e.streaming&&!d.value.some(e=>e.type===`code`&&e.incomplete)?(G(),K(`span`,xv)):Y(``,!0)],64)):U(t.$slots,`default`,{},void 0,void 0,1)],8,X_))}}),[[`styles`,[`:host{display:block;min-width:0;color:var(--osx-text);font-family:var(--osx-font)}article{min-width:0;font-size:14px;line-height:1.65;overflow-wrap:anywhere}h1,h2,h3,h4,h5,h6{margin:1.35em 0 .55em;color:var(--osx-text);font-family:Georgia,Times New Roman,serif;line-height:1.18}h1:first-child,h2:first-child,h3:first-child{margin-top:0}h1{font-size:28px}h2{font-size:23px}h3{font-size:19px}h4,h5,h6{font-size:15px}p{margin:0 0 1em}strong{color:var(--osx-text)}a{color:var(--osx-accent);text-decoration-thickness:1px;text-underline-offset:3px}a:focus-visible,button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}p code,li code,td code,th code{padding:1px 4px;border:1px solid var(--osx-border-soft);border-radius:4px;color:var(--osx-text);background:var(--osx-surface-sunken);font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.quote{padding:9px 13px;border-left:3px solid var(--osx-accent);color:var(--osx-muted);background:color-mix(in srgb,var(--osx-accent) 5%,transparent)}ul,ol{margin:0 0 1em;padding-left:26px}li+li{margin-top:.28em}hr{margin:24px 0;border:0;border-top:1px solid var(--osx-border-soft)}.code-block{max-width:100%;overflow:hidden;margin:14px 0;border:1px solid #34454f;border-radius:7px;background:#0d151a}.code-block header{min-height:35px;display:flex;gap:10px;align-items:center;padding:5px 7px 5px 11px;border-bottom:1px solid #34454f;color:#91a3ad;background:#152128;font-size:12px}.code-block header>span:first-child{color:#6ebfdf;font:700 12px ui-monospace,monospace}.code-block header>span:nth-child(2){margin-left:auto}.code-block button{min-height:25px;display:inline-flex;gap:5px;align-items:center;margin-left:auto;padding:2px 7px;border:1px solid #52616b;border-radius:5px;color:#dce8ef;background:linear-gradient(#465159,#293138);font:700 12px var(--osx-font);cursor:pointer}.code-block pre{max-height:430px;margin:0;overflow:auto;padding:13px;color:#dce8ef;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre}.incomplete{border-color:color-mix(in srgb,var(--osx-accent) 60%,#34454f)}.table-wrap{max-width:100%;overflow-x:auto;margin:14px 0;border:1px solid var(--osx-border-soft);border-radius:7px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{min-width:110px;padding:8px 10px;border-right:1px solid var(--osx-border-soft);border-bottom:1px solid var(--osx-border-soft);text-align:left;vertical-align:top}th:last-child,td:last-child{border-right:0}tbody tr:last-child td{border-bottom:0}th{color:var(--osx-text);background:var(--osx-surface-sunken)}td{color:var(--osx-muted)}.cursor{width:7px;height:14px;display:inline-block;margin-left:4px;background:var(--osx-accent);animation:blink .85s steps(1) infinite;vertical-align:-2px}.inline-cursor{margin-bottom:2px}@keyframes blink{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.cursor{animation:none}}`]]]),Cv=[`aria-label`],wv={key:0},Tv={key:0},Ev=[`aria-current`],Dv={class:`rail`},Ov={class:`state`},kv={class:`copy`},Av={key:0},jv={class:`state-label`},Mv={key:1,class:`empty`},Nv=Q(H({__name:`OsxPlan.ce`,props:{steps:{default:`[]`,type:[String,Array]},title:{default:`Plan`,type:String},label:{default:`Agent plan`,type:String},compact:{type:Boolean,default:!1},showProgress:{type:Boolean,default:!0}},setup(e){let t=e,n=ep(()=>{if(Array.isArray(t.steps))return t.steps;try{let e=JSON.parse(t.steps||`[]`);return Array.isArray(e)?e.filter(e=>e&&typeof e.title==`string`):[]}catch{return[]}}),r=ep(()=>n.value.filter(e=>e.state===`done`||e.state===`skipped`).length);function i(e){return e.state||`pending`}function a(e){return e===`done`?`check`:e===`failed`?`close`:e===`skipped`?`minus`:e===`active`?`loader`:`circle`}return(t,o)=>(G(),K(`section`,{class:B({compact:e.compact}),"aria-label":e.label},[q(`header`,null,[q(`div`,null,[J(Z,{name:`list-checks`,size:17}),q(`strong`,null,V(e.title),1)]),e.showProgress?(G(),K(`span`,wv,V(r.value)+`/`+V(n.value.length),1)):Y(``,!0)]),n.value.length?(G(),K(`ol`,Tv,[(G(!0),K(W,null,Yu(n.value,(e,t)=>(G(),K(`li`,{key:e.id||`${t}-${e.title}`,class:B(i(e)),"aria-current":i(e)===`active`?`step`:void 0},[q(`span`,Dv,[q(`span`,Ov,[J(Z,{name:a(i(e)),size:14},null,8,[`name`])])]),q(`span`,kv,[q(`strong`,null,V(e.title),1),e.detail?(G(),K(`small`,Av,V(e.detail),1)):Y(``,!0)]),q(`span`,jv,V(i(e)),1)],10,Ev))),128))])):(G(),K(`p`,Mv,[U(t.$slots,`default`,{},()=>[o[0]||=Of(`No plan steps yet.`,-1)])]))],10,Cv))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}section{overflow:hidden;border:1px solid var(--osx-border-soft);border-radius:8px;background:var(--osx-surface-raised)}header{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 12px;border-bottom:1px solid var(--osx-border-soft);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface))}header div{display:flex;align-items:center;gap:8px;color:var(--osx-accent)}header strong{color:var(--osx-text);font-size:13px}header>span{min-width:34px;padding:2px 7px;border:1px solid var(--osx-border);border-radius:999px;color:var(--osx-muted);background:var(--osx-surface-sunken);font-size:12px;font-weight:700;text-align:center}ol{margin:0;padding:5px 0;list-style:none}li{min-height:51px;display:grid;grid-template-columns:29px minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px 12px;position:relative}li:not(:last-child) .rail:after{width:1px;position:absolute;top:34px;bottom:-17px;left:14px;background:var(--osx-border-soft);content:""}.rail{height:29px;position:relative;display:grid;place-items:center}.state{width:24px;height:24px;position:relative;z-index:1;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:50%;color:var(--osx-muted);background:var(--osx-surface-sunken)}.copy{min-width:0;display:grid;gap:3px}.copy strong{font-size:13px;line-height:1.35}.copy small,.state-label{color:var(--osx-muted);font-size:12px;line-height:1.35}.state-label{text-transform:capitalize}.active{background:color-mix(in srgb,var(--osx-accent) 8%,transparent)}.active .state{color:var(--osx-accent);border-color:var(--osx-accent);animation:pulse 1.25s ease-in-out infinite}.active .state-label{color:var(--osx-accent);font-weight:700}.done .state{color:var(--osx-success);border-color:var(--osx-success)}.failed .state{color:var(--osx-danger);border-color:var(--osx-danger)}.failed .state-label{color:var(--osx-danger)}.skipped{opacity:.72}.skipped .copy strong{text-decoration:line-through;text-decoration-thickness:1px}.empty{margin:0;padding:20px 12px;color:var(--osx-muted);font-size:12px;text-align:center}.compact li{min-height:42px}.compact .copy small,.compact .state-label{display:none}@keyframes pulse{50%{opacity:.45;transform:scale(.9)}}@media(prefers-reduced-motion:reduce){.active .state{animation:none}}@media(max-width:480px){li{grid-template-columns:29px minmax(0,1fr)}.state-label{grid-column:2}}`]]]),Pv=[`aria-label`],Fv=Q(H({__name:`OsxPopover.ce`,props:{open:{type:Boolean,default:!1},placement:{default:`bottom`,type:String},label:{default:`Popover`,type:String},dismissible:{type:Boolean,default:!0}},emits:[`open-change`,`close`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.open);$l(()=>n.open,e=>{i.value=e});function a(e){i.value=e,r(`open-change`,e),e||r(`close`)}return(t,n)=>(G(),K(`span`,{class:`anchor`,onKeydown:n[2]||=Sm(t=>e.dismissible&&a(!1),[`esc`])},[q(`span`,{class:`trigger`,onClick:n[0]||=e=>a(!i.value)},[U(t.$slots,`trigger`)]),i.value?(G(),K(`section`,{key:0,class:B([`popover`,e.placement]),role:`dialog`,"aria-label":e.label},[U(t.$slots,`default`),e.dismissible?(G(),K(`button`,{key:0,type:`button`,"aria-label":`Close popover`,onClick:n[1]||=e=>a(!1)},[J(Z,{name:`close`,size:18})])):Y(``,!0)],10,Pv)):Y(``,!0)],32))}}),[[`styles`,[`:host{display:inline-flex;color:var(--osx-text);font-family:var(--osx-font)}.anchor{position:relative;display:inline-flex}.trigger{display:inline-flex}.popover{width:min(320px,calc(100vw - 32px));position:absolute;z-index:1150;padding:14px;border:1px solid var(--osx-border);border-radius:8px;background:var(--osx-surface-raised);box-shadow:var(--osx-shadow);font-size:13px;line-height:1.45}.bottom{top:calc(100% + 8px);left:0}.top{bottom:calc(100% + 8px);left:0}.right{top:0;left:calc(100% + 8px)}.left{top:0;right:calc(100% + 8px)}.popover button{width:26px;height:26px;position:absolute;top:6px;right:6px;border:0;border-radius:5px;color:var(--osx-muted);background:transparent;font:500 19px var(--osx-font);cursor:pointer}.popover button:focus-visible{outline:3px solid var(--osx-focus)}`]]]),Iv=[`aria-label`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`],Lv=Q(H({__name:`OsxProgress.ce`,props:{value:{default:0,type:Number},max:{default:100,type:Number},indeterminate:{type:Boolean,default:!1},label:{default:`Progress`,type:String}},setup(e){let t=e,n=ep(()=>Math.max(0,Math.min(100,t.value/Math.max(1,t.max)*100)));return(t,r)=>(G(),K(`div`,{class:`progress`,role:`progressbar`,"aria-label":e.label,"aria-valuemin":e.indeterminate?void 0:0,"aria-valuemax":e.indeterminate?void 0:e.max,"aria-valuenow":e.indeterminate?void 0:e.value},[q(`span`,{class:B({indeterminate:e.indeterminate}),style:Es(e.indeterminate?void 0:{width:`${n.value}%`})},null,6)],8,Iv))}}),[[`styles`,[`:host{display:block;min-width:100px}.progress{height:12px;overflow:hidden;border:1px solid var(--osx-border);border-radius:7px;background:var(--osx-surface-sunken);box-shadow:0 1px 2px #0003 inset,0 1px var(--osx-highlight)}.progress span{height:100%;display:block;border-radius:inherit;background:repeating-linear-gradient(135deg,rgba(255,255,255,.28) 0 5px,transparent 5px 10px),linear-gradient(var(--osx-accent-light),var(--osx-accent));transition:width .2s ease}.progress span.indeterminate{width:35%;animation:travel 1.25s ease-in-out infinite}@keyframes travel{0%{transform:translate(-105%)}to{transform:translate(300%)}}@media(prefers-reduced-motion:reduce){.progress span{transition:none}.progress span.indeterminate{width:100%;animation:none}}`]]]),Rv=[`aria-label`],zv=[`aria-checked`,`disabled`,`onClick`],Bv=Q(H({__name:`OsxSegmentedControl.ce`,props:{items:{default:``,type:String},value:{default:``,type:String},label:{default:`View options`,type:String},disabled:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:t}){let n=e,r=t,i=ep(()=>n.items.split(`,`).map(e=>e.trim()).filter(Boolean)),a=ll(n.value);$l(()=>n.value,e=>{a.value=e});function o(e){a.value=e,r(`change`,e)}return(t,n)=>(G(),K(`div`,{class:`segments`,role:`radiogroup`,"aria-label":e.label},[(G(!0),K(W,null,Yu(i.value,t=>(G(),K(`button`,{key:t,type:`button`,role:`radio`,"aria-checked":t===a.value,class:B({active:t===a.value}),disabled:e.disabled,onClick:e=>o(t)},V(t),11,zv))),128))],8,Rv))}}),[[`styles`,[`:host{display:inline-block;font-family:var(--osx-font)}.segments{display:inline-flex;overflow:hidden;border:1px solid var(--osx-border);border-radius:7px;background:var(--osx-surface-sunken);box-shadow:0 1px 2px #00000024}button{min-width:0;min-height:27px;padding:4px 13px;border:0;border-right:1px solid var(--osx-border);overflow:hidden;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font:600 12px/1.2 var(--osx-font);text-overflow:ellipsis;white-space:nowrap;cursor:pointer}button:last-child{border-right:0}button.active{color:#fff;background:linear-gradient(var(--osx-accent-light),var(--osx-accent));text-shadow:0 -1px rgba(0,0,0,.45)}button:focus-visible{position:relative;outline:3px solid var(--osx-focus);outline-offset:-3px}button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:620px){:host{max-width:100%}.segments{max-width:100%}button{flex:1 1 auto;padding-inline:11px}}`]]]),Vv={key:0},Hv={class:`select-shell`},Uv=[`value`,`disabled`],Wv=[`value`],Gv=Q(H({__name:`OsxSelect.ce`,props:{options:{default:``,type:String},value:{default:``,type:String},label:{default:``,type:String},disabled:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:t}){let n=e,r=t,i=ep(()=>n.options.split(`,`).map(e=>e.trim()).filter(Boolean));return(t,n)=>(G(),K(`label`,null,[e.label?(G(),K(`span`,Vv,V(e.label),1)):Y(``,!0),q(`span`,Hv,[q(`select`,{value:e.value,disabled:e.disabled,onChange:n[0]||=e=>r(`change`,e.target.value)},[(G(!0),K(W,null,Yu(i.value,e=>(G(),K(`option`,{key:e,value:e},V(e),9,Wv))),128))],40,Uv),n[1]||=q(`i`,{"aria-hidden":`true`},null,-1)])]))}}),[[`styles`,[`:host{display:inline-block;min-width:150px;color:var(--osx-text);font-family:var(--osx-font)}label{display:grid;gap:5px;font-size:12px;font-weight:700}.select-shell{display:grid;position:relative}select{width:100%;min-height:30px;appearance:none;padding:5px 32px 5px 10px;border:1px solid var(--osx-border);border-radius:7px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));box-shadow:0 1px var(--osx-highlight) inset,0 1px 2px #00000026;font:600 12px var(--osx-font);cursor:pointer}select:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}.select-shell i{width:20px;position:absolute;inset:1px 1px 1px auto;border-left:1px solid var(--osx-border-soft);border-radius:0 6px 6px 0;pointer-events:none}.select-shell i:before,.select-shell i:after{position:absolute;left:6px;border:4px solid transparent;content:""}.select-shell i:before{top:5px;border-bottom-color:var(--osx-muted)}.select-shell i:after{bottom:5px;border-top-color:var(--osx-muted)}select:disabled{opacity:.55;cursor:not-allowed}`]]]),Kv=[`aria-label`],qv={key:0},Jv={class:`content`},Yv=Q(H({__name:`OsxSheet.ce`,props:{open:{type:Boolean,default:!1},title:{default:`Confirm`,type:String},description:{default:``,type:String},dismissible:{type:Boolean,default:!0}},emits:[`close`,`confirm`],setup(e,{emit:t}){let n=e,r=t,i=ll(null);return $l(()=>n.open,async e=>{e&&(await Pl(),i.value?.focus())}),(t,n)=>e.open?(G(),K(`div`,{key:0,class:`backdrop`,onClick:n[3]||=bm(t=>e.dismissible&&r(`close`),[`self`])},[q(`section`,{ref_key:`dialog`,ref:i,role:`dialog`,"aria-modal":`true`,"aria-label":e.title,tabindex:`-1`,onKeydown:n[2]||=Sm(t=>e.dismissible&&r(`close`),[`esc`])},[q(`header`,null,[q(`span`,null,[J(Z,{name:`warning`,size:19})]),q(`div`,null,[q(`h2`,null,V(e.title),1),e.description?(G(),K(`p`,qv,V(e.description),1)):Y(``,!0)])]),q(`div`,Jv,[U(t.$slots,`default`)]),q(`footer`,null,[U(t.$slots,`actions`,{},()=>[q(`button`,{class:`cancel`,type:`button`,onClick:n[0]||=e=>r(`close`)},`Cancel`),q(`button`,{class:`confirm`,type:`button`,onClick:n[1]||=e=>r(`confirm`)},`Continue`)])])],40,Kv)])):Y(``,!0)}}),[[`styles`,[`:host{font-family:var(--osx-font)}.backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:start center;padding-top:min(18vh,150px);background:#08101557;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}section{width:min(480px,calc(100vw - 32px));overflow:hidden;border:1px solid var(--osx-border);border-radius:0 0 9px 9px;outline:0;color:var(--osx-text);background:var(--osx-surface-raised);box-shadow:var(--osx-shadow);animation:enter .16s ease-out}header{display:grid;grid-template-columns:38px 1fr;gap:12px;align-items:start;padding:20px 22px 10px}header>span{width:34px;height:34px;display:grid;place-items:center;border:1px solid #b37b24;border-radius:50%;color:#fff;background:linear-gradient(#ffd56a,#d89222);font:800 20px Georgia,serif;text-shadow:0 -1px rgba(0,0,0,.4)}h2{margin:0;font:500 22px Georgia,serif}p{margin:6px 0 0;color:var(--osx-muted);font-size:13px;line-height:1.45}.content{padding:8px 22px 18px;font-size:13px}.content:empty{display:none}footer{display:flex;justify-content:flex-end;gap:8px;padding:10px 14px;border-top:1px solid var(--osx-border-soft);background:var(--osx-surface-sunken)}button{min-height:29px;padding:5px 14px;border:1px solid var(--osx-border);border-radius:7px;color:var(--osx-text);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font:600 12px var(--osx-font);cursor:pointer}.confirm{color:#fff;border-color:color-mix(in srgb,var(--osx-accent) 80%,#123);background:linear-gradient(var(--osx-accent-light),var(--osx-accent));text-shadow:0 -1px rgba(0,0,0,.4)}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}@keyframes enter{0%{opacity:0;transform:translateY(-18px)}}@media(prefers-reduced-motion:reduce){section{animation:none}}`]]]),Xv=[`aria-label`],Zv=Q(H({__name:`OsxShimmer.ce`,props:{width:{default:`100%`,type:String},height:{default:`16px`,type:String},radius:{default:`6px`,type:String},paused:{type:Boolean,default:!1},label:{default:`Loading`,type:String}},setup(e){return(t,n)=>(G(),K(`span`,{class:B([`shimmer`,{paused:e.paused}]),style:Es({width:e.width,height:e.height,borderRadius:e.radius}),role:`status`,"aria-busy":`true`,"aria-label":e.label},null,14,Xv))}}),[[`styles`,[`:host{display:inline-block;max-width:100%;line-height:0}.shimmer{display:block;max-width:100%;overflow:hidden;background:linear-gradient(100deg,color-mix(in srgb,var(--osx-muted) 19%,var(--osx-surface-sunken)) 20%,color-mix(in srgb,var(--osx-surface-raised) 78%,white),color-mix(in srgb,var(--osx-muted) 19%,var(--osx-surface-sunken)) 60%);background-size:240% 100%;animation:shimmer 1.45s linear infinite}.paused{animation-play-state:paused}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-140% 0}}@media(prefers-reduced-motion:reduce){.shimmer{animation:none}}`]]]),Qv=[`aria-label`],$v={key:0,class:`media`},ey={key:1,class:`avatar`},ty={class:`lines`},ny=Q(H({__name:`OsxSkeleton.ce`,props:{variant:{default:`text`,type:String},lines:{default:3,type:Number},animated:{type:Boolean,default:!0},label:{default:`Loading content`,type:String}},setup(e){let t=e,n=ep(()=>Math.max(1,Math.min(8,t.lines)));return(t,r)=>(G(),K(`section`,{class:B([`skeleton`,e.variant,{animated:e.animated}]),role:`status`,"aria-busy":`true`,"aria-label":e.label},[e.variant===`card`?(G(),K(`span`,$v)):Y(``,!0),e.variant===`profile`?(G(),K(`span`,ey)):Y(``,!0),q(`div`,ty,[(G(!0),K(W,null,Yu(n.value,e=>(G(),K(`span`,{key:e,style:Es({width:e===n.value?`67%`:e%2?`100%`:`86%`})},null,4))),128))])],10,Qv))}}),[[`styles`,[`:host{display:block}.skeleton{--base: color-mix(in srgb,var(--osx-muted) 17%,var(--osx-surface-sunken));--shine: color-mix(in srgb,var(--osx-surface-raised) 78%,white);display:grid;gap:11px;padding:12px;border:1px solid var(--osx-border-soft);border-radius:8px;background:var(--osx-surface-raised)}.profile{grid-template-columns:44px minmax(0,1fr);align-items:center}.media,.avatar,.lines span{display:block;overflow:hidden;background:var(--base)}.media{height:92px;border-radius:6px}.avatar{width:44px;height:44px;border-radius:50%}.lines{display:grid;gap:8px;align-content:center}.lines span{height:12px;border-radius:5px}.animated .media,.animated .avatar,.animated .lines span{background:linear-gradient(100deg,var(--base) 20%,var(--shine) 40%,var(--base) 60%);background-size:240% 100%;animation:shimmer 1.45s linear infinite}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-140% 0}}@media(prefers-reduced-motion:reduce){.animated .media,.animated .avatar,.animated .lines span{animation:none}}`]]]),ry=[`aria-label`],iy={key:0,class:`label`},ay=Q(H({__name:`OsxSpinner.ce`,props:{size:{default:`medium`,type:String},tone:{default:`accent`,type:String},label:{default:`Loading`,type:String},showLabel:{type:Boolean,default:!1},paused:{type:Boolean,default:!1}},setup(e){return(t,n)=>(G(),K(`span`,{class:B([`spinner-shell`,[e.size,e.tone,{paused:e.paused}]]),role:`status`,"aria-label":e.label,"aria-live":`polite`},[n[0]||=q(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`},[q(`circle`,{class:`track`,cx:`12`,cy:`12`,r:`9`}),q(`path`,{class:`indicator`,d:`M12 3a9 9 0 0 1 9 9`})],-1),e.showLabel?(G(),K(`span`,iy,[U(t.$slots,`default`,{},()=>[Of(V(e.label),1)])])):Y(``,!0)],10,ry))}}),[[`styles`,[`:host{display:inline-block;color:var(--osx-text);font-family:var(--osx-font)}.spinner-shell{display:inline-flex;gap:8px;align-items:center;color:var(--osx-accent);font:600 12px/1.2 var(--osx-font)}svg{width:20px;height:20px;display:block;overflow:visible;animation:spin .8s linear infinite;fill:none;stroke-width:3;stroke-linecap:round}.track{stroke:color-mix(in srgb,currentColor 22%,transparent)}.indicator{stroke:currentColor}.small svg{width:14px;height:14px;stroke-width:3.5}.large svg{width:28px;height:28px;stroke-width:2.5}.default{color:var(--osx-muted)}.inverse{color:#fff}.paused svg{animation-play-state:paused}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){svg{animation:none}}`]]]),oy=[`aria-label`],sy={key:0},cy=[`aria-current`,`onClick`],ly=Q(H({__name:`OsxSourceList.ce`,props:{items:{default:``,type:String},value:{default:``,type:String},label:{default:`Source list`,type:String},heading:{default:`Places`,type:String},compact:{type:Boolean,default:!1},icons:{default:`{}`,type:String}},emits:[`change`],setup(e,{emit:t}){let n=e,r=t,i=ep(()=>n.items.split(`,`).map(e=>e.trim()).filter(Boolean)),a=ll(n.value);$l(()=>n.value,e=>{a.value=e});function o(e){a.value=e,r(`change`,e)}let s=ep(()=>{try{return JSON.parse(n.icons||`{}`)}catch{return{}}}),c={overview:`dashboard`,components:`boxes`,tokens:`palette`,playground:`flask`,settings:`settings`,activity:`activity`,documentation:`book`};function l(e){return s.value[e]||c[e.toLowerCase()]||`circle`}return(t,n)=>(G(),K(`nav`,{class:B({compact:e.compact}),"aria-label":e.label},[e.heading?(G(),K(`h3`,sy,V(e.heading),1)):Y(``,!0),(G(!0),K(W,null,Yu(i.value,e=>(G(),K(`button`,{key:e,type:`button`,class:B({active:e===a.value}),"aria-current":e===a.value?`page`:void 0,onClick:t=>o(e)},[J(Z,{name:l(e),size:16},null,8,[`name`]),q(`strong`,null,V(e),1)],10,cy))),128)),U(t.$slots,`default`)],10,oy))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);background:var(--osx-surface-sunken);font-family:var(--osx-font)}nav{min-height:100%;display:grid;align-content:start;gap:2px;padding:12px 8px}h3{margin:0 8px 6px;color:var(--osx-muted);font-size:12px;letter-spacing:.08em;text-transform:uppercase}button{width:100%;min-height:31px;display:grid;grid-template-columns:21px minmax(0,1fr);gap:6px;align-items:center;padding:5px 8px;border:0;border-radius:5px;color:var(--osx-text);background:transparent;font:600 13px var(--osx-font);text-align:left;cursor:pointer}button:hover{background:color-mix(in srgb,var(--osx-accent) 10%,transparent)}button.active{color:#fff;background:linear-gradient(var(--osx-accent-light),var(--osx-accent));box-shadow:0 1px #ffffff47 inset;text-shadow:0 -1px rgba(0,0,0,.42)}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}button>:first-child{color:var(--osx-accent)}button.active>:first-child{color:#fff}button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact button{min-height:26px;font-size:12px}@media(max-width:620px){nav{min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:10px}h3{grid-column:1 / -1;margin-bottom:2px}}`]]]),uy=[`aria-label`],dy={key:0},fy=[`aria-pressed`,`onClick`],py={class:`index`},my={class:`copy`},hy={key:0},gy={key:1},_y={key:1,class:`empty`},vy=Q(H({__name:`OsxSourcePanel.ce`,props:{sources:{default:`[]`,type:[String,Array]},title:{default:`Sources`,type:String},label:{default:`Response sources`,type:String},selected:{default:``,type:String},compact:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=ep(()=>{if(Array.isArray(n.sources))return n.sources;try{let e=JSON.parse(n.sources||`[]`);return Array.isArray(e)?e.filter(e=>e&&e.id&&e.title):[]}catch{return[]}});function a(e){if(e.domain)return e.domain;try{return e.url?new URL(e.url).hostname.replace(/^www\./,``):``}catch{return``}}function o(e){r(`select`,e.id)}return(t,n)=>(G(),K(`aside`,{class:B({compact:e.compact}),"aria-label":e.label},[q(`header`,null,[q(`div`,null,[J(Z,{name:`book`,size:17}),q(`strong`,null,V(e.title),1)]),q(`span`,null,V(i.value.length),1)]),i.value.length?(G(),K(`ol`,dy,[(G(!0),K(W,null,Yu(i.value,(t,n)=>(G(),K(`li`,{key:t.id,class:B({selected:t.id===e.selected})},[q(`button`,{type:`button`,"aria-pressed":t.id===e.selected,onClick:e=>o(t)},[q(`span`,py,V(n+1),1),q(`span`,my,[q(`strong`,null,V(t.title),1),a(t)?(G(),K(`small`,hy,V(a(t)),1)):Y(``,!0),t.snippet?(G(),K(`p`,gy,V(t.snippet),1)):Y(``,!0)]),J(Z,{name:`chevron-right`,size:15})],8,fy)],2))),128))])):(G(),K(`p`,_y,[U(t.$slots,`default`,{},()=>[n[0]||=Of(`No sources attached.`,-1)])]))],10,uy))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}aside{overflow:hidden;border:1px solid var(--osx-border-soft);border-radius:8px;background:var(--osx-surface-raised)}header{min-height:43px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 11px;border-bottom:1px solid var(--osx-border-soft);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface))}header div{display:flex;gap:8px;align-items:center;color:var(--osx-accent)}header strong{color:var(--osx-text);font-size:13px}header>span{min-width:27px;padding:2px 7px;border:1px solid var(--osx-border);border-radius:999px;color:var(--osx-muted);background:var(--osx-surface-sunken);font-size:12px;font-weight:700;text-align:center}ol{margin:0;padding:0;list-style:none}li+li{border-top:1px solid var(--osx-border-soft)}button{width:100%;min-height:68px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:start;padding:10px 11px;border:0;color:var(--osx-text);background:transparent;font-family:var(--osx-font);text-align:left;cursor:pointer}button:hover{background:color-mix(in srgb,var(--osx-accent) 8%,transparent)}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:-3px}.selected button{background:color-mix(in srgb,var(--osx-accent) 13%,transparent)}.index{width:24px;height:24px;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:50%;color:var(--osx-accent);background:var(--osx-surface-sunken);font-size:12px;font-weight:800}.copy{min-width:0;display:grid;gap:3px}.copy strong{font-size:13px;line-height:1.35}.copy small{color:var(--osx-accent);font-size:12px}.copy p{display:-webkit-box;margin:2px 0 0;overflow:hidden;color:var(--osx-muted);font-size:12px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.empty{margin:0;padding:22px 12px;color:var(--osx-muted);font-size:12px;text-align:center}.compact .copy p{display:none}.compact button{min-height:48px;align-items:center}`]]]),yy=[`aria-label`],by={class:`primary`},xy={class:`secondary`},Sy=Q(H({__name:`OsxSplitView.ce`,props:{orientation:{default:`horizontal`,type:String},primarySize:{default:`220px`,type:String},label:{default:`Split view`,type:String}},setup(e){return(t,n)=>(G(),K(`div`,{class:B([`split`,e.orientation]),style:Es({"--osx-primary-size":e.primarySize}),role:`group`,"aria-label":e.label},[q(`section`,by,[U(t.$slots,`primary`)]),n[0]||=q(`div`,{class:`divider`,"aria-hidden":`true`},null,-1),q(`section`,xy,[U(t.$slots,`default`)])],14,yy))}}),[[`styles`,[`:host{display:block;min-width:0;min-height:0}.split{min-height:inherit;display:grid;overflow:hidden}.horizontal{grid-template-columns:var(--osx-primary-size) 1px minmax(0,1fr)}.vertical{grid-template-rows:var(--osx-primary-size) 1px minmax(0,1fr)}.primary,.secondary{min-width:0;min-height:0}.divider{background:var(--osx-border);box-shadow:1px 0 var(--osx-highlight)}.vertical .divider{box-shadow:0 1px var(--osx-highlight)}@media(max-width:620px){.horizontal{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1px minmax(0,1fr)}.horizontal .divider{box-shadow:0 1px var(--osx-highlight)}}`]]]),Cy=Q(H({__name:`OsxStatusBar.ce`,props:{label:{default:`Ready`,type:String},status:{default:`ready`,type:String},detail:{default:``,type:String}},setup(e){return(t,n)=>(G(),K(`footer`,null,[q(`div`,null,[q(`i`,{class:B(e.status),"aria-hidden":`true`},null,2),q(`strong`,null,V(e.label),1),U(t.$slots,`default`)]),q(`span`,null,V(e.detail),1),U(t.$slots,`trailing`)]))}}),[[`styles`,[`:host{display:block;color:var(--osx-muted);font-family:var(--osx-font)}footer{min-height:24px;display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:3px 9px;border-top:1px solid var(--osx-border);background:repeating-linear-gradient(0deg,transparent 0 2px,rgba(255,255,255,.12) 2px 3px),linear-gradient(var(--osx-title-start),var(--osx-title-end));box-shadow:0 1px var(--osx-highlight) inset;font-size:12px}footer div{min-width:0;display:flex;gap:6px;align-items:center}strong{overflow:hidden;color:var(--osx-text);text-overflow:ellipsis;white-space:nowrap}i{width:8px;height:8px;flex:0 0 8px;border:1px solid #28773b;border-radius:50%;background:#3db45a;box-shadow:0 1px #ffffff73 inset}.working{border-color:#a16a1e;background:#e9a92f}.offline{border-color:#8b3430;background:#ce4f48}`]]]),wy=[`aria-label`],Ty={key:0},Ey=[`aria-sort`],Dy=[`onClick`],Oy={key:1},ky={key:0},Ay=[`colspan`],jy=Q(H({__name:`OsxTable.ce`,props:{columns:{default:()=>[],type:[String,Array]},rows:{default:()=>[],type:[String,Array]},caption:{default:``,type:String},label:{default:`Data table`,type:String},compact:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},stickyHeader:{type:Boolean,default:!1},sortKey:{default:``,type:String},sortDirection:{default:`ascending`,type:String},emptyMessage:{default:`No rows to display`,type:String}},emits:[`sort`],setup(e,{emit:t}){let n=e,r=t;function i(e,t){if(Array.isArray(e))return e;try{let n=JSON.parse(e||`[]`);return Array.isArray(n)?n:t}catch{return t}}let a=ep(()=>i(n.columns,[])),o=ep(()=>i(n.rows,[])),s=ll(n.sortKey),c=ll(n.sortDirection);$l(()=>n.sortKey,e=>{s.value=e}),$l(()=>n.sortDirection,e=>{c.value=e});let l=ep(()=>{if(!s.value)return o.value;let e=c.value===`ascending`?1:-1;return[...o.value].sort((t,n)=>String(t[s.value]??``).localeCompare(String(n[s.value]??``),void 0,{numeric:!0})*e)});function u(e){e.sortable&&(c.value=s.value===e.key&&c.value===`ascending`?`descending`:`ascending`,s.value=e.key,r(`sort`,e.key,c.value))}return(t,n)=>(G(),K(`div`,{class:B([`table-region`,{compact:e.compact,striped:e.striped,sticky:e.stickyHeader}]),role:`region`,"aria-label":e.label,tabindex:`0`},[q(`table`,null,[e.caption?(G(),K(`caption`,Ty,V(e.caption),1)):Y(``,!0),q(`thead`,null,[q(`tr`,null,[(G(!0),K(W,null,Yu(a.value,e=>(G(),K(`th`,{key:e.key,scope:`col`,style:Es({width:e.width,textAlign:e.align||`left`}),"aria-sort":s.value===e.key?c.value:void 0},[e.sortable?(G(),K(`button`,{key:0,type:`button`,onClick:t=>u(e)},[q(`span`,null,V(e.label),1),q(`span`,{class:B([`sort`,{inactive:s.value!==e.key}]),"aria-hidden":`true`},[J(Z,{name:s.value===e.key&&c.value===`ascending`?`chevron-up`:`chevron-down`,size:13,"stroke-width":2.5},null,8,[`name`])],2)],8,Dy)):(G(),K(`span`,Oy,V(e.label),1))],12,Ey))),128))])]),q(`tbody`,null,[(G(!0),K(W,null,Yu(l.value,(e,n)=>(G(),K(`tr`,{key:n},[(G(!0),K(W,null,Yu(a.value,n=>(G(),K(`td`,{key:n.key,style:Es({textAlign:n.align||`left`})},[U(t.$slots,`cell-${n.key}`,{row:e,value:e[n.key]},()=>[Of(V(e[n.key]),1)])],4))),128))]))),128)),l.value.length?Y(``,!0):(G(),K(`tr`,ky,[q(`td`,{class:`empty`,colspan:Math.max(a.value.length,1)},[U(t.$slots,`empty`,{},()=>[Of(V(e.emptyMessage),1)])],8,Ay)]))])])],10,wy))}}),[[`styles`,[`:host{display:block;min-width:0;color:var(--osx-text);font-family:var(--osx-font)}.table-region{max-width:100%;overflow:auto;border:1px solid var(--osx-border);border-radius:8px;background:var(--osx-surface);box-shadow:0 1px var(--osx-highlight) inset}.table-region:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}table{width:100%;min-width:480px;border-collapse:separate;border-spacing:0;font-size:12px}caption{padding:10px 12px;border-bottom:1px solid var(--osx-border-soft);font-size:13px;font-weight:700;text-align:left}th{padding:8px 11px;border-bottom:1px solid var(--osx-border);color:var(--osx-muted);background:linear-gradient(var(--osx-surface-raised),var(--osx-surface-sunken));font-weight:700;white-space:nowrap}th+th,td+td{border-left:1px solid var(--osx-border-soft)}th button{width:100%;display:inline-flex;gap:8px;align-items:center;justify-content:space-between;padding:0;border:0;color:inherit;background:transparent;font:inherit;cursor:pointer}th button:focus-visible{border-radius:3px;outline:3px solid var(--osx-focus);outline-offset:2px}.sort{min-width:13px;display:inline-grid;place-items:center;color:var(--osx-accent)}.sort.inactive{color:var(--osx-muted);opacity:.55}td{max-width:360px;padding:9px 11px;border-bottom:1px solid var(--osx-border-soft);overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}.striped tbody tr:nth-child(2n){background:color-mix(in srgb,var(--osx-accent) 5%,transparent)}.compact th,.compact td{padding-block:6px}.sticky thead{position:sticky;top:0;z-index:1}.empty{padding:24px;color:var(--osx-muted);text-align:center}`]]]),My={key:0,class:`label`},Ny=[`type`,`value`,`placeholder`,`disabled`],Py={key:1},Fy=Q(H({__name:`OsxTextField.ce`,props:{value:{default:``,type:String},label:{type:String},placeholder:{type:String},type:{default:`text`,type:String},disabled:{type:Boolean,default:!1},hint:{type:String},icon:{default:void 0,type:null},iconPosition:{default:`leading`,type:String}},emits:[`input`,`change`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.value),a=ep(()=>n.icon??(n.type===`search`?`search`:void 0));$l(()=>n.value,e=>{i.value=e});function o(e){i.value=e.target.value,r(`input`,i.value)}return(t,n)=>(G(),K(`label`,null,[e.label?(G(),K(`span`,My,V(e.label),1)):Y(``,!0),q(`span`,{class:B([`field`,`icon-${e.iconPosition}`])},[a.value&&e.iconPosition===`leading`?(G(),bf(Z,{key:0,class:`field-icon`,name:a.value,size:15},null,8,[`name`])):Y(``,!0),q(`input`,{type:e.type,value:i.value,placeholder:e.placeholder,disabled:e.disabled,onInput:o,onChange:n[0]||=e=>r(`change`,i.value)},null,40,Ny),a.value&&e.iconPosition===`trailing`?(G(),bf(Z,{key:1,class:`field-icon`,name:a.value,size:15},null,8,[`name`])):Y(``,!0)],2),e.hint?(G(),K(`small`,Py,V(e.hint),1)):Y(``,!0)]))}}),[[`styles`,[`:host{display:inline-block;min-width:190px;color:var(--osx-text);font-family:var(--osx-font)}label{display:grid;gap:5px}.label{font-size:12px;font-weight:700}.field{min-height:31px;display:flex;gap:8px;align-items:center;padding-inline:10px;border:1px solid var(--osx-border);border-radius:7px;background:var(--osx-surface-raised);box-shadow:0 1px 3px #192b362e inset,0 1px var(--osx-highlight)}.field:focus-within{border-color:var(--osx-accent);outline:3px solid var(--osx-focus)}input{width:100%;min-width:0;padding:6px 0;border:0;outline:0;color:var(--osx-text);background:transparent;font:13px/1.25 var(--osx-font)}input::placeholder,small{color:var(--osx-muted)}input:disabled{opacity:.55;cursor:not-allowed}.field-icon{flex:0 0 auto;color:var(--osx-muted)}.icon-trailing input{order:0}.icon-trailing .field-icon{order:1}small{font-size:12px}`]]]),Iy=[`open`,`aria-label`,`aria-busy`],Ly={class:`state`},Ry={class:`copy`},zy={key:0},By={key:0,class:`stream-label`,role:`status`},Vy={class:`content`},Hy=Q(H({__name:`OsxThinking.ce`,props:{title:{default:`Reasoning`,type:String},summary:{default:``,type:String},status:{default:`idle`,type:String},open:{type:Boolean,default:!1},label:{default:`Reasoning summary`,type:String}},emits:[`toggle`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.open);$l(()=>n.open,e=>{i.value=e});function a(e){i.value=e.currentTarget.open,r(`toggle`,i.value)}function o(){return n.status===`streaming`?`loader`:n.status===`complete`?`check`:n.status===`error`?`warning`:`sparkle`}return(t,n)=>(G(),K(`details`,{open:i.value,class:B(e.status),"aria-label":e.label,"aria-busy":e.status===`streaming`||void 0,onToggle:a},[q(`summary`,null,[q(`span`,Ly,[J(Z,{name:o(),size:15},null,8,[`name`])]),q(`span`,Ry,[q(`strong`,null,V(e.title),1),e.summary?(G(),K(`small`,zy,V(e.summary),1)):Y(``,!0)]),e.status===`streaming`?(G(),K(`span`,By,`Thinking`)):Y(``,!0),J(Z,{class:`chevron`,name:`chevron-down`,size:16})]),q(`div`,Vy,[U(t.$slots,`default`)])],42,Iy))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}details{overflow:hidden;border:1px solid var(--osx-border-soft);border-radius:8px;background:color-mix(in srgb,var(--osx-accent) 4%,var(--osx-surface-raised))}summary{min-height:46px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:8px 11px;cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}summary:focus-visible{outline:3px solid var(--osx-focus);outline-offset:-3px}.state{width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:50%;color:var(--osx-accent);background:var(--osx-surface-sunken)}.streaming .state{animation:pulse 1.35s ease-in-out infinite}.complete .state{color:var(--osx-success);border-color:color-mix(in srgb,var(--osx-success) 65%,var(--osx-border))}.error .state{color:var(--osx-danger);border-color:color-mix(in srgb,var(--osx-danger) 65%,var(--osx-border))}.copy{min-width:0;display:grid;gap:2px}.copy strong{font-size:13px}.copy small,.stream-label{overflow:hidden;color:var(--osx-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.stream-label{color:var(--osx-accent);font-weight:700}.chevron{color:var(--osx-muted);transition:transform .16s ease}details[open] .chevron{transform:rotate(180deg)}.content{padding:12px 14px 14px 47px;border-top:1px solid var(--osx-border-soft);color:var(--osx-muted);background:var(--osx-surface-sunken);font-size:13px;line-height:1.58;overflow-wrap:anywhere}@keyframes pulse{50%{opacity:.45;transform:scale(.9)}}@media(prefers-reduced-motion:reduce){.streaming .state{animation:none}.chevron{transition:none}}@media(max-width:480px){summary{grid-template-columns:auto minmax(0,1fr) auto}.stream-label{display:none}.content{padding-left:14px}}`]]]),Uy=[`aria-label`],Wy={key:0},Gy={class:`actions`},Ky=[`disabled`],qy=[`disabled`],Jy={key:0,class:`command`},Yy={key:0},Xy=[`aria-live`],Zy={key:0,class:`cursor`,role:`status`,"aria-label":`Command running`},Qy={class:`state`},$y=Q(H({__name:`OsxTerminal.ce`,props:{title:{default:`Terminal`,type:String},command:{default:``,type:String},output:{default:``,type:String},cwd:{default:``,type:String},status:{default:`idle`,type:String},duration:{default:``,type:String},label:{default:`Terminal output`,type:String}},emits:[`rerun`,`interrupt`,`clear`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.output);$l(()=>n.output,e=>{i.value=e});let a=ep(()=>i.value.replace(/\u001b\[[0-9;]*m/g,``));function o(){i.value=``,r(`clear`)}return(t,n)=>(G(),K(`section`,{class:B([`terminal`,e.status]),"aria-label":e.label},[q(`header`,null,[n[2]||=q(`div`,{class:`lights`,"aria-hidden":`true`},[q(`i`),q(`i`),q(`i`)],-1),q(`strong`,null,V(e.title),1),e.duration?(G(),K(`span`,Wy,V(e.duration),1)):Y(``,!0),q(`div`,Gy,[e.status===`running`?(G(),K(`button`,{key:0,type:`button`,onClick:n[0]||=e=>r(`interrupt`)},`Stop`)):(G(),K(`button`,{key:1,type:`button`,disabled:!e.command,onClick:n[1]||=t=>r(`rerun`,e.command)},`Rerun`,8,Ky)),q(`button`,{type:`button`,disabled:!i.value,onClick:o},`Clear`,8,qy)])]),e.command?(G(),K(`div`,Jy,[e.cwd?(G(),K(`span`,Yy,V(e.cwd),1)):Y(``,!0),n[3]||=q(`b`,{"aria-hidden":`true`},`$`,-1),q(`code`,null,V(e.command),1)])):Y(``,!0),q(`pre`,{role:`log`,"aria-live":e.status===`running`?`polite`:`off`},[q(`code`,null,V(a.value||`No output`),1),e.status===`running`?(G(),K(`span`,Zy)):Y(``,!0)],8,Xy),q(`footer`,null,[q(`span`,Qy,[n[4]||=q(`i`,{"aria-hidden":`true`},null,-1),Of(V(e.status),1)]),q(`span`,null,[U(t.$slots,`footer`)])])],10,Uy))}}),[[`styles`,[`:host{display:block;min-width:0;color:#dce8ef;font-family:var(--osx-font)}.terminal{overflow:hidden;border:1px solid #34454f;border-radius:8px;background:#0d151a;box-shadow:0 8px 24px #0000003d}header{min-height:39px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:6px 9px;border-bottom:1px solid #34454f;background:linear-gradient(#3d4951,#222c32)}.lights{display:flex;gap:5px}.lights i{width:10px;height:10px;border:1px solid rgba(0,0,0,.35);border-radius:50%;background:#ef665d}.lights i:nth-child(2){background:#e9b442}.lights i:nth-child(3){background:#4dbd68}header strong{overflow:hidden;font-size:12px;text-align:center;text-overflow:ellipsis;white-space:nowrap}header>span{color:#9eb0ba;font-size:12px}.actions{display:flex;gap:5px}button{min-height:24px;padding:2px 7px;border:1px solid #52616b;border-radius:5px;color:#dce8ef;background:linear-gradient(#465159,#293138);font:700 12px var(--osx-font);cursor:pointer}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}button:disabled{opacity:.45}.command{display:flex;gap:7px;padding:9px 12px;border-bottom:1px solid #24343d;color:#9fb1bb;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.command span{color:#6ebfdf}.command b{color:#62c47d}.command code{overflow-wrap:anywhere;color:#eef6fa}pre{min-height:100px;max-height:300px;margin:0;overflow:auto;padding:11px 12px;color:#cbd7dd;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.cursor{width:7px;height:14px;display:inline-block;margin-left:3px;background:#54bced;animation:blink .8s steps(1) infinite;vertical-align:-2px}footer{min-height:27px;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:4px 10px;border-top:1px solid #24343d;color:#91a3ad;background:#121e24;font-size:12px}.state{display:flex;gap:6px;align-items:center;text-transform:capitalize}.state i{width:8px;height:8px;border-radius:50%;background:#77868e}.running .state i{background:#54bced}.success .state i{background:#42ae67}.error .state i{background:#e16059}@keyframes blink{50%{opacity:0}}@media(prefers-reduced-motion:reduce){.cursor{animation:none}}@media(max-width:480px){header{grid-template-columns:auto minmax(0,1fr) auto}header>span{display:none}.actions button{padding-inline:5px}}`]]]),eb=[`aria-label`,`aria-orientation`],tb=[`id`,`aria-selected`,`aria-controls`,`tabindex`,`onClick`,`onKeydown`],nb=[`id`,`aria-labelledby`],rb=Q(H({__name:`OsxTabs.ce`,props:{items:{default:`General,Advanced`,type:String},value:{default:``,type:String},label:{default:`Sections`,type:String},orientation:{default:`horizontal`,type:String}},emits:[`change`],setup(e,{emit:t}){let n=e,r=t,i=ep(()=>n.items.split(`,`).map(e=>e.trim()).filter(Boolean)),a=ll(n.value||i.value[0]||``);$l(()=>n.value,e=>{e&&(a.value=e)});let o=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,`-`);function s(e){a.value=e,r(`change`,e)}function c(e,t){let r=n.orientation===`vertical`?[`ArrowDown`,`ArrowUp`]:[`ArrowRight`,`ArrowLeft`];if(!r.includes(e.key))return;e.preventDefault();let a=e.key===r[0]?1:-1;s(i.value[(t+a+i.value.length)%i.value.length])}return(t,n)=>(G(),K(`section`,{class:B([`tabs`,e.orientation])},[q(`div`,{role:`tablist`,"aria-label":e.label,"aria-orientation":e.orientation},[(G(!0),K(W,null,Yu(i.value,(e,t)=>(G(),K(`button`,{id:`tab-${o(e)}`,key:e,type:`button`,role:`tab`,"aria-selected":e===a.value,"aria-controls":`panel-${o(e)}`,tabindex:e===a.value?0:-1,onClick:t=>s(e),onKeydown:e=>c(e,t)},V(e),41,tb))),128))],8,eb),q(`div`,{id:`panel-${o(a.value)}`,role:`tabpanel`,"aria-labelledby":`tab-${o(a.value)}`,tabindex:`0`},[U(t.$slots,o(a.value),{},()=>[U(t.$slots,`default`)])],8,nb)],2))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}.tabs{border:1px solid var(--osx-border);border-radius:8px;background:var(--osx-surface-raised)}.tabs>div[role=tablist]{display:flex;gap:2px;padding:6px 8px 0;border-bottom:1px solid var(--osx-border);background:var(--osx-surface-sunken)}.tabs button{min-height:31px;padding:5px 12px;border:1px solid transparent;border-bottom:0;border-radius:6px 6px 0 0;color:var(--osx-muted);background:transparent;font:700 12px var(--osx-font);cursor:pointer}.tabs button[aria-selected=true]{color:var(--osx-text);border-color:var(--osx-border);background:var(--osx-surface-raised);transform:translateY(1px)}.tabs button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:-2px}.tabs>div[role=tabpanel]{min-height:110px;padding:16px;outline:0;font-size:13px}.vertical{display:grid;grid-template-columns:max-content minmax(0,1fr)}.vertical>div[role=tablist]{flex-direction:column;padding:8px 0 8px 8px;border-right:1px solid var(--osx-border);border-bottom:0}.vertical button{border-right:0;border-bottom:1px solid transparent;border-radius:6px 0 0 6px}.vertical button[aria-selected=true]{transform:translate(1px)}@media(max-width:480px){.vertical{grid-template-columns:1fr}.vertical>div[role=tablist]{flex-direction:row;padding:6px 8px 0;border-right:0;border-bottom:1px solid var(--osx-border)}.vertical button{border-right:1px solid transparent;border-bottom:0;border-radius:6px 6px 0 0}}`]]]),ib=[`open`],ab={class:`state`},ob={key:0},sb={class:`result`},cb=Q(H({__name:`OsxToolCall.ce`,props:{name:{default:`Tool`,type:String},status:{default:`queued`,type:String},summary:{default:``,type:String},duration:{default:``,type:String},open:{type:Boolean,default:!1}},setup(e){return(t,n)=>(G(),K(`details`,{open:e.open,class:B(e.status)},[q(`summary`,null,[q(`span`,ab,[J(Z,{name:e.status===`success`?`check`:e.status===`error`?`close`:e.status===`running`?`loader`:`circle`,size:13},null,8,[`name`])]),q(`strong`,null,V(e.name),1),q(`span`,null,V(e.summary),1),e.duration?(G(),K(`time`,ob,V(e.duration),1)):Y(``,!0)]),q(`div`,sb,[U(t.$slots,`default`)])],10,ib))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}details{overflow:hidden;border:1px solid var(--osx-border-soft);border-radius:7px;background:var(--osx-surface-raised)}summary{min-height:38px;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px 10px;cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}.state{width:22px;height:22px;display:grid;place-items:center;border:1px solid var(--osx-border);border-radius:50%;color:var(--osx-muted);background:var(--osx-surface-sunken);font-size:12px;font-weight:800}.success .state{color:var(--osx-success,#2f9951);border-color:var(--osx-success,#2f9951)}.error .state{color:var(--osx-danger,#c74d47);border-color:var(--osx-danger,#c74d47)}.running .state{color:var(--osx-accent);border-color:var(--osx-accent)}summary strong{font-size:13px}summary span:not(.state),summary time{overflow:hidden;color:var(--osx-muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.result{padding:10px 12px;border-top:1px solid var(--osx-border-soft);overflow-wrap:anywhere;color:var(--osx-muted);background:var(--osx-surface-sunken);font:12px/1.55 ui-monospace,monospace}@media(max-width:480px){summary{grid-template-columns:auto minmax(0,1fr) auto}summary span:not(.state){grid-column:2 / -1}}`]]]),lb=[`aria-label`],ub={class:`center`},db=Q(H({__name:`OsxToolbar.ce`,props:{label:{default:`Toolbar`,type:String},compact:{type:Boolean,default:!1}},setup(e){return(t,n)=>(G(),K(`div`,{class:B([`toolbar`,{compact:e.compact}]),role:`toolbar`,"aria-label":e.label},[q(`div`,null,[U(t.$slots,`leading`)]),q(`div`,ub,[U(t.$slots,`default`)]),q(`div`,null,[U(t.$slots,`trailing`)])],10,lb))}}),[[`styles`,[`:host{display:block;font-family:var(--osx-font)}.toolbar{min-height:50px;display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;padding:7px 12px;border-top:1px solid var(--osx-highlight);border-bottom:1px solid var(--osx-border);background:linear-gradient(var(--osx-title-start),var(--osx-title-end))}.toolbar.compact{min-height:34px;padding-block:4px}.toolbar>div{display:flex;gap:7px;align-items:center}.toolbar>div:last-child{justify-content:flex-end}.center{justify-content:center}@media(max-width:620px){.toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px}.toolbar>div:first-child{min-width:0}.toolbar>.center{grid-column:1 / -1;grid-row:2;justify-content:stretch}.toolbar>div:last-child{grid-column:2;grid-row:1}}`]]]),fb={class:`copy`},pb={class:`title`},mb={class:`control`},hb=[`checked`,`disabled`,`aria-describedby`],gb=Q(H({__name:`OsxToggle.ce`,props:{checked:{type:Boolean,default:!1},label:{default:``,type:String},description:{default:``,type:String},disabled:{type:Boolean,default:!1}},emits:[`change`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.checked),a=`osx-toggle-${bu()}`;$l(()=>n.checked,e=>{i.value=e});function o(e){i.value=e.target.checked,r(`change`,i.value)}return(t,n)=>(G(),K(`label`,{class:B({disabled:e.disabled})},[q(`span`,fb,[q(`span`,pb,[U(t.$slots,`default`,{},()=>[Of(V(e.label),1)])]),e.description?(G(),K(`span`,{key:0,id:a,class:`description`},V(e.description),1)):Y(``,!0)]),q(`span`,mb,[q(`input`,{type:`checkbox`,role:`switch`,checked:i.value,disabled:e.disabled,"aria-describedby":e.description?a:void 0,onChange:o},null,40,hb),n[0]||=q(`span`,{class:`track`,"aria-hidden":`true`},[q(`span`,{class:`thumb`})],-1)])],2))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}label{display:flex;gap:14px;align-items:center;justify-content:space-between;cursor:pointer}.copy{min-width:0;display:grid;gap:2px}.title{font:600 13px/1.3 var(--osx-font)}.description{color:var(--osx-muted);font:400 12px/1.35 var(--osx-font)}.control{flex:0 0 auto;position:relative}.control input{width:1px;height:1px;position:absolute;opacity:0}.track{width:38px;height:21px;display:block;position:relative;border:1px solid var(--osx-border);border-radius:999px;background:linear-gradient(var(--osx-surface-sunken),var(--osx-surface-raised));box-shadow:0 1px 2px #0000002e inset;transition:background .16s ease}.thumb{width:17px;height:17px;position:absolute;top:1px;left:1px;border:1px solid var(--osx-border);border-radius:50%;background:linear-gradient(#fff,var(--osx-surface-raised));box-shadow:0 1px 2px #0003;transition:transform .16s ease}input:checked+.track{border-color:color-mix(in srgb,var(--osx-accent) 78%,#123);background:linear-gradient(var(--osx-accent-light),var(--osx-accent))}.control input:checked+.track .thumb{transform:translate(17px)}.control input:focus-visible+.track{outline:3px solid var(--osx-focus);outline-offset:2px}.disabled{opacity:.55;cursor:not-allowed}@media(prefers-reduced-motion:reduce){.track,.thumb{transition:none}}`]]]),_b=[`role`,`aria-live`],vb={class:`glyph`},yb={key:0},bb={class:`content`},xb=Q(H({__name:`OsxToast.ce`,props:{open:{type:Boolean,default:!1},tone:{default:`info`,type:String},title:{default:`Notification`,type:String},message:{default:``,type:String},duration:{default:4500,type:Number},placement:{default:`top-right`,type:String},dismissible:{type:Boolean,default:!0},contained:{type:Boolean,default:!1}},emits:[`dismiss`],setup(e,{emit:t}){let n=e,r=t,i=ll(n.open),a,o=ep(()=>({info:`info`,success:`check`,warning:`warning`,error:`close`})[n.tone]);function s(e){i.value=!1,r(`dismiss`,e)}function c(){window.clearTimeout(a),i.value&&n.duration>0&&(a=window.setTimeout(()=>s(`timeout`),n.duration))}return $l(()=>[n.open,n.duration],()=>{i.value=n.open,c()},{immediate:!0}),Ru(()=>window.clearTimeout(a)),(t,n)=>(G(),bf(gp,{name:`toast`},{default:Kl(()=>[i.value?(G(),K(`aside`,{key:0,class:B([`toast`,e.tone,e.placement,{contained:e.contained}]),role:e.tone===`error`?`alert`:`status`,"aria-live":e.tone===`error`?`assertive`:`polite`},[q(`span`,vb,[J(Z,{name:o.value,size:16},null,8,[`name`])]),q(`div`,null,[q(`strong`,null,V(e.title),1),e.message?(G(),K(`p`,yb,V(e.message),1)):Y(``,!0),q(`div`,bb,[U(t.$slots,`default`)])]),e.dismissible?(G(),K(`button`,{key:0,type:`button`,"aria-label":`Dismiss notification`,onClick:n[0]||=e=>s(`manual`)},[J(Z,{name:`close`,size:18})])):Y(``,!0)],10,_b)):Y(``,!0)]),_:3}))}}),[[`styles`,[`:host{color:var(--osx-text);font-family:var(--osx-font)}.toast{--tone: var(--osx-accent);width:min(360px,calc(100vw - 32px));position:fixed;z-index:1100;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:1px solid color-mix(in srgb,var(--tone) 45%,var(--osx-border));border-radius:9px;background:color-mix(in srgb,var(--tone) 8%,var(--osx-surface-raised));box-shadow:0 10px 35px #0003}.success{--tone: var(--osx-success,#2f9951)}.warning{--tone: var(--osx-warning,#c28519)}.error{--tone: var(--osx-danger,#c74d47)}.top-right{top:18px;right:18px}.top-left{top:18px;left:18px}.bottom-right{right:18px;bottom:18px}.bottom-left{bottom:18px;left:18px}.contained{position:absolute}.glyph{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--tone);font:800 16px Georgia,serif}strong{display:block;font-size:13px;line-height:1.35}p,.content{margin:3px 0 0;color:var(--osx-muted);font-size:12px;line-height:1.45}.content:empty{display:none}button{width:27px;height:27px;border:0;border-radius:5px;color:var(--osx-muted);background:transparent;font:500 20px/1 var(--osx-font);cursor:pointer}button:hover{background:color-mix(in srgb,var(--osx-text) 8%,transparent)}button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:1px}.toast-enter-active,.toast-leave-active{transition:opacity .16s ease,transform .16s ease}.toast-enter-from,.toast-leave-to{opacity:0;transform:translateY(-8px) scale(.98)}@media(prefers-reduced-motion:reduce){.toast-enter-active,.toast-leave-active{transition:none}}`]]]),Sb=Q(H({__name:`OsxTooltip.ce`,props:{text:{default:``,type:String},placement:{default:`top`,type:String},open:{type:Boolean,default:!1},delay:{default:350,type:Number}},setup(e){let t=e,n=ll(t.open),r;$l(()=>t.open,e=>{n.value=e});function i(){window.clearTimeout(r),r=window.setTimeout(()=>{n.value=!0},t.delay)}function a(){window.clearTimeout(r),n.value=t.open}return Ru(()=>window.clearTimeout(r)),(t,r)=>(G(),K(`span`,{class:`anchor`,onMouseenter:i,onMouseleave:a,onFocusin:i,onFocusout:a},[U(t.$slots,`default`),J(gp,{name:`tip`},{default:Kl(()=>[n.value&&e.text?(G(),K(`span`,{key:0,class:B([`tooltip`,e.placement]),role:`tooltip`},V(e.text),3)):Y(``,!0)]),_:1})],32))}}),[[`styles`,[`:host{display:inline-flex;font-family:var(--osx-font)}.anchor{position:relative;display:inline-flex}.tooltip{width:max-content;max-width:240px;position:absolute;z-index:1200;padding:6px 8px;border:1px solid #10171b;border-radius:5px;color:#f5f8fa;background:#192227f5;box-shadow:0 4px 14px #00000042;font-size:12px;font-weight:600;line-height:1.35;pointer-events:none}.top{bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.bottom{top:calc(100% + 8px);left:50%;transform:translate(-50%)}.left{top:50%;right:calc(100% + 8px);transform:translateY(-50%)}.right{top:50%;left:calc(100% + 8px);transform:translateY(-50%)}.tip-enter-active,.tip-leave-active{transition:opacity .12s ease}.tip-enter-from,.tip-leave-to{opacity:0}@media(prefers-reduced-motion:reduce){.tip-enter-active,.tip-leave-active{transition:none}}`]]]),Cb={class:`controls`,"aria-label":`Window controls`},wb=[`disabled`],Tb=[`disabled`],Eb=[`disabled`],Db={class:`title`},Ob={key:0},kb={class:`accessory`},Ab={class:`content`},jb={key:0},Mb={"osx-agent-approval":Hh,"osx-agent-composer":Kh,"osx-agent-message":$h,"osx-agent-run-status":ng,"osx-alert":cg,"osx-artifact":Sg,"osx-avatar":Eg,"osx-badge":kg,"osx-app-shell":Ig,"osx-button":Bg,"osx-checkbox":Wg,"osx-copy":Gg,"osx-citation":Jg,"osx-diff-viewer":f_,"osx-dialog":g_,"osx-ecosystem-card":T_,"osx-empty-state":j_,"osx-file-tree":L_,"osx-icon":R_,"osx-icon-button":B_,"osx-heading":V_,"osx-link":U_,"osx-menu":G_,"osx-menu-item":Y_,"osx-markdown":Sv,"osx-plan":Nv,"osx-popover":Fv,"osx-progress":Lv,"osx-segmented-control":Bv,"osx-select":Gv,"osx-sheet":Yv,"osx-shimmer":Zv,"osx-skeleton":ny,"osx-spinner":ay,"osx-source-list":ly,"osx-source-panel":vy,"osx-split-view":Sy,"osx-status-bar":Cy,"osx-table":jy,"osx-text-field":Fy,"osx-thinking":Hy,"osx-terminal":$y,"osx-tabs":rb,"osx-tool-call":cb,"osx-toolbar":db,"osx-toggle":gb,"osx-toast":xb,"osx-tooltip":Sb,"osx-window":Q(H({__name:`OsxWindow.ce`,props:{title:{default:`Untitled`,type:String},subtitle:{type:String},active:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0}},emits:[`close`,`minimize`,`zoom`],setup(e,{emit:t}){let n=t;return(t,r)=>(G(),K(`section`,{class:B([`window`,{inactive:!e.active}])},[q(`header`,null,[q(`div`,Cb,[q(`button`,{class:`close`,disabled:!e.closeable,"aria-label":`Close window`,onClick:r[0]||=e=>n(`close`)},null,8,wb),q(`button`,{class:`minimize`,disabled:!e.minimizable,"aria-label":`Minimize window`,onClick:r[1]||=e=>n(`minimize`)},null,8,Tb),q(`button`,{class:`zoom`,disabled:!e.zoomable,"aria-label":`Zoom window`,onClick:r[2]||=e=>n(`zoom`)},null,8,Eb)]),q(`div`,Db,[q(`strong`,null,V(e.title),1),e.subtitle?(G(),K(`small`,Ob,V(e.subtitle),1)):Y(``,!0)]),q(`div`,kb,[U(t.$slots,`accessory`)])]),U(t.$slots,`toolbar`),q(`div`,Ab,[U(t.$slots,`default`)]),t.$slots.footer?(G(),K(`footer`,jb,[U(t.$slots,`footer`)])):Y(``,!0)],2))}}),[[`styles`,[`:host{display:block;color:var(--osx-text);font-family:var(--osx-font)}.window{overflow:hidden;border:1px solid var(--osx-border);border-radius:9px;background:var(--osx-surface);box-shadow:var(--osx-shadow)}header{min-height:37px;display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;padding:0 11px;border-bottom:1px solid var(--osx-border);background:repeating-linear-gradient(0deg,transparent 0 2px,rgba(255,255,255,.16) 2px 3px),linear-gradient(var(--osx-title-start),var(--osx-title-end));box-shadow:0 1px var(--osx-highlight) inset}.controls{display:flex;gap:7px}.controls button{width:14px;height:14px;padding:0;border:1px solid rgba(0,0,0,.28);border-radius:50%;box-shadow:0 1px #ffffff80 inset;cursor:pointer}.controls button:focus-visible{outline:3px solid var(--osx-focus);outline-offset:2px}.controls button:disabled{filter:grayscale(1);opacity:.38}.close{background:linear-gradient(#ff7b70,#df4d43)}.minimize{background:linear-gradient(#ffd56b,#e5a72c)}.zoom{background:linear-gradient(#71d487,#36a852)}.title{display:grid;color:var(--osx-text);text-align:center;text-shadow:0 1px var(--osx-highlight)}.title strong{font-size:13px}.title small{color:var(--osx-muted);font-size:12px}.accessory{justify-self:end}.content{min-height:80px}footer{padding:7px 11px;border-top:1px solid var(--osx-border-soft);color:var(--osx-muted);background:var(--osx-surface-sunken);font-size:12px}.inactive header{filter:saturate(.15)}.inactive .controls button{opacity:.46}@media(max-width:620px){header{grid-template-columns:auto minmax(0,1fr) auto}.title{min-width:0}.title strong,.title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}`]]])};function Nb(){if(!(typeof customElements>`u`))for(let[e,t]of Object.entries(Mb))customElements.get(e)||customElements.define(e,cm(t))}var Pb=e=>e===``,Fb=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ib=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Lb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Rb=e=>{let t=Lb(e);return t.charAt(0).toUpperCase()+t.slice(1)},zb={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`},Bb=Symbol(`lucide-icons`);function Vb(){return Bn(Bb,{})}var Hb=({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=``}=Vb(),g=L(()=>{let e=Pb(r)||Pb(i)||r===!0||i===!0||m===!0,t=a||o||p||zb[`stroke-width`];return e?Number(t)*24/Number(s??d??zb.width):t});return Aa(`svg`,{...zb,...l,width:s??d??zb.width,height:s??d??zb.height,stroke:c??f??zb.stroke,"stroke-width":g.value,class:Fb(`lucide`,h,...e?[`lucide-${Ib(Rb(e))}-icon`,`lucide-${Ib(e)}`]:[`lucide-icon`])},[...(t??n??[]).map(e=>Aa(...e)),...u.default?[u.default()]:[]])},$=(e,t)=>(n,{slots:r,attrs:i})=>Aa(Hb,{...i,...n,iconNode:t,name:e},r.default?{default:r.default}:void 0),Ub=$(`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`}]]),Wb=$(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Gb=$(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),Kb=$(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),qb=$(`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`}]]),Jb=$(`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`}]]),Yb=$(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Xb=$(`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`}]]),Zb=$(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Qb=$(`circle-minus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),$b=$(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),ex=$(`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`}]]),tx=$(`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`}]]),nx=$(`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`}]]),rx=$(`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`}]]),ix=$(`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`}]]),ax=$(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),ox=$(`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`}]]),sx=$(`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`}]]),cx=$(`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`}]]),lx=$(`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`}]]),ux=$(`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`}]]),dx=$(`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`}]]),fx=$(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),px=$(`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`}]]),mx=$(`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`}]]),hx=$(`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`}]]),gx=$(`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`}]]),_x=$(`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`}]]),vx=$(`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`}]]),yx=$(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),bx=$(`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`}]]),xx=$(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Sx=$(`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`}]]),Cx=$(`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`}]]),wx=$(`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`}]]),Tx=$(`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`}]]),Ex=$(`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`}]]),Dx=$(`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`}]]),Ox=$(`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`}]]),kx=$(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function Ax(e){return e.trim()?e.split(/^diff --git /m).slice(1).map(e=>{let t=e.split(`
|
|
9
|
+
`),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 jx=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(` `)),Mx=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(` `)),Nx=new Set([`true`,`false`,`null`,`undefined`]),Px=new Set([`auto`,`currentcolor`,`inherit`,`initial`,`none`,`revert`,`transparent`,`unset`,`important`]);function Fx(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 Ix(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);Lx(t,i,`comment`),n+=i.length;continue}let i=r.match(/^\s+/)?.[0];if(i){Lx(t,i),n+=i.length;continue}let a=r.match(/^(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/)?.[0];if(a){Lx(t,a,`string`),n+=a.length;continue}let o=r.match(/^@[A-Za-z-]+/)?.[0];if(o){Lx(t,o,`keyword`),n+=o.length;continue}let s=r.match(/^#[\da-f]{3,8}\b/i)?.[0];if(s){Lx(t,s,`literal`),n+=s.length;continue}let c=r.match(/^--[A-Za-z_][\w-]*/)?.[0];if(c){Lx(t,c,`literal`),n+=c.length;continue}let l=r.match(/^-?(?:\d*\.)?\d+(?:e[+-]?\d+)?(?:%|[a-z]+)?/i)?.[0];if(l){Lx(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(`{`);Lx(t,u,i&&a?`property`:Px.has(u.toLowerCase())?`literal`:o?`tag`:`plain`),n+=u.length;continue}let d=r.match(/^[.#][A-Za-z_][\w-]*/)?.[0];if(d){Lx(t,d,`tag`),n+=d.length;continue}let f=r.match(/^(?:[{}[\]():;,>+~=*!/]|\|=|\^=|\$=)+/)?.[0];if(f){Lx(t,f,`operator`),n+=f.length;continue}Lx(t,e[n]),n++}return t}function Lx(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 Rx(e){let t=[],n=0;for(;n<e.length;){if(e.startsWith(`<!--`,n)){Lx(t,e.slice(n),`comment`);break}let r=e.slice(n).match(/^<\/?[A-Za-z_:][\w:.-]*/)?.[0];if(r){Lx(t,r,`tag`),n+=r.length;continue}let i=e.slice(n).match(/^\/?>/)?.[0];if(i){Lx(t,i,`tag`),n+=i.length;continue}let a=e.slice(n).match(/^(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/)?.[0];if(a){Lx(t,a,`string`),n+=a.length;continue}let o=e.slice(n).match(/^[A-Za-z_:][\w:.-]*(?=\s*=)/)?.[0];if(o){Lx(t,o,`attribute`),n+=o.length;continue}let s=e.slice(n).match(/^&(?:[A-Za-z]+|#\d+);/)?.[0];if(s){Lx(t,s,`literal`),n+=s.length;continue}Lx(t,e[n]),n++}return t}function zx(e,t=``){let n=Fx(t);if(!e)return[{text:` `,kind:`plain`}];if(n===`markup`)return Rx(e);if(n===`css`)return Ix(e);if(n===`plain`)return[{text:e,kind:`plain`}];let r=n===`java`?jx:Mx,i=[],a=0;for(;a<e.length;){let t=e.slice(a);if(t.startsWith(`//`)||(n===`config`||n===`shell`)&&t.startsWith(`#`)){Lx(i,t,`comment`);break}if(t.startsWith(`/*`)){let e=t.indexOf(`*/`,2),n=e<0?t:t.slice(0,e+2);Lx(i,n,`comment`),a+=n.length;continue}let o=t.match(/^\s+/)?.[0];if(o){Lx(i,o),a+=o.length;continue}let s=t.match(/^(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`)/)?.[0];if(s){Lx(i,s,`string`),a+=s.length;continue}let c=t.match(/^@[A-Za-z_$][\w$]*/)?.[0];if(c){Lx(i,c,`annotation`),a+=c.length;continue}let l=t.match(/^(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)[lLdDfF]?/i)?.[0];if(l){Lx(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);Lx(i,u,Nx.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){Lx(i,d,`operator`),a+=d.length;continue}Lx(i,e[a]),a++}return i}function Bx(e=``){let t=e.replace(/\r/g,``).trim().split(`
|
|
10
|
+
`),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 Vx(e){return e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replaceAll(`"`,`"`).replaceAll(`'`,`'`)}function Hx(e){let t=[],n=Vx(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 Ux(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 Wx={class:`agent-markdown`},Gx=[`innerHTML`],Kx=[`innerHTML`],qx={key:3},Jx=[`innerHTML`],Yx={key:5,class:`agent-code-block`},Xx={key:0},Zx={tabindex:`0`},Qx={class:`agent-code-line-number`,"aria-hidden":`true`},$x=$n({__name:`AgentMarkdown`,props:{source:{}},setup(e){let t=e,n=L(()=>Bx(t.source));return(e,t)=>(A(),j(`div`,Wx,[(A(!0),j(k,null,O(n.value,(e,t)=>(A(),j(k,{key:t},[e.type===`heading`?(A(),M(Er(`h${Math.min(e.level+2,6)}`),{key:0,innerHTML:E(Hx)(e.text)},null,8,[`innerHTML`])):e.type===`paragraph`?(A(),j(`p`,{key:1,innerHTML:E(Hx)(e.text)},null,8,Gx)):e.type===`quote`?(A(),j(`blockquote`,{key:2,innerHTML:E(Hx)(e.text)},null,8,Kx)):e.type===`rule`?(A(),j(`hr`,qx)):e.type===`list`?(A(),M(Er(e.ordered?`ol`:`ul`),{key:4},{default:In(()=>[(A(!0),j(k,null,O(e.items,(e,t)=>(A(),j(`li`,{key:t,innerHTML:E(Hx)(e)},null,8,Jx))),128))]),_:2},1024)):e.type===`code`?(A(),j(`figure`,Yx,[e.language?(A(),j(`figcaption`,Xx,C(e.language),1)):I(``,!0),N(`pre`,Zx,[N(`code`,null,[(A(!0),j(k,null,O(e.lines,(t,n)=>(A(),j(`span`,{key:n,class:`agent-code-line`},[N(`span`,Qx,C(n+1),1),N(`span`,null,[(A(!0),j(k,null,O(E(zx)(t,E(Ux)(e.language)),(e,t)=>(A(),j(`span`,{key:t,class:S(`syntax-${e.kind}`)},C(e.text),3))),128))])]))),128))])])])):I(``,!0)],64))),128))]))}}),eS=[`data-osx-theme`,`title`,`description`],tS={class:`record`},nS={class:`record-kicker`},rS={class:`record-badges`},iS=[`tone`,`label`],aS=[`label`],oS=[`tone`,`label`],sS=[`description`],cS={class:`record-grid`},lS={size:`large`},uS={class:`evidence-list`},dS=[`tone`,`label`],fS={size:`small`,tone:`muted`},pS=[`onClick`],mS={level:3,variant:`section`},hS={key:0},gS={key:1,class:`answer-list`},_S={size:`small`,tone:`muted`},vS=[`title`],yS={class:`file-list`},bS={size:`small`},xS={key:0,size:`small`,tone:`muted`},SS={size:`small`,tone:`muted`},CS=[`aria-label`,`onClick`],wS={class:`unknowns`},TS={key:0,size:`small`,tone:`muted`},ES={slot:`actions`,class:`record-actions`},DS=[`href`],OS=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})($n({__name:`OwnershipDossier`,props:{dossier:{},briefHref:{},theme:{}},emits:[`close`,`defend`,`openFile`],setup(e){let t=e;function n(e){return e?new Date(e).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`}):`Not recorded`}function r(){let e=t.dossier.revision.commitSha??t.dossier.revision.resultTree??t.dossier.revision.fingerprint??t.dossier.diffId;return e.length>16?`${e.slice(0,12)}…${e.slice(-4)}`:e}function i(e){return e.split(`/`).pop()??e}function a(e){let t=e.split(`/`);return t.length>1?t.slice(0,-1).join(`/`):``}let o=L(()=>t.theme===`panther`?`panther`:t.theme===`plain`?`graphite`:`aqua`),s=L(()=>`${t.dossier.repository} · ${t.dossier.branch} · captured ${n(t.dossier.capturedAt)}`),c=L(()=>t.dossier.status===`proven`||t.dossier.status===`defended`?`success`:t.dossier.status===`stale`||t.dossier.status===`regressed`?`warning`:`neutral`);return(t,l)=>(A(),j(`osx-dialog`,{"data-osx-theme":o.value,open:!0,title:e.dossier.title,description:s.value,size:`large`,dismissible:``,onClose:l[2]||=e=>t.$emit(`close`)},[N(`div`,tS,[N(`div`,nS,[l[3]||=N(`osx-heading`,{level:3,variant:`label`,tone:`muted`},`Ownership record`,-1),N(`div`,rS,[N(`osx-badge`,{tone:c.value,label:e.dossier.status.replace(`-`,` `),dot:``},null,8,iS),N(`osx-badge`,{tone:`neutral`,label:`${e.dossier.evidence.length} source${e.dossier.evidence.length===1?``:`s`}`},null,8,aS),N(`osx-badge`,{tone:e.dossier.risk===`high`?`danger`:e.dossier.risk===`medium`?`warning`:`neutral`,label:`${e.dossier.risk} risk`},null,8,oS)])]),e.dossier.freshness.status===`current`?I(``,!0):(A(),j(`osx-alert`,{key:0,tone:`warning`,title:`This record needs another look`,description:e.dossier.freshness.invalidatedBy??`Later code changed its supporting evidence.`},null,8,sS)),N(`div`,cS,[N(`main`,null,[N(`section`,null,[l[4]||=N(`osx-heading`,{level:3,variant:`label`,tone:`muted`},`What changed`,-1),N(`osx-copy`,lS,C(e.dossier.intent??`No original intent was recorded.`),1),N(`ul`,null,[(A(!0),j(k,null,O(e.dossier.behaviors,e=>(A(),j(`li`,{key:e},C(e),1))),128))])]),N(`section`,null,[l[5]||=N(`div`,{class:`section-heading`},[N(`div`,null,[N(`osx-heading`,{level:3,variant:`label`,tone:`muted`},`Evidence`),N(`osx-heading`,{level:3,variant:`section`},`What supports this record`)])],-1),N(`div`,uS,[(A(!0),j(k,null,O(e.dossier.evidence,e=>(A(),j(`article`,{key:e.id},[N(`osx-badge`,{tone:e.kind===`proof`||e.kind===`human`?`success`:`info`,label:e.kind,size:`small`},null,8,dS),N(`div`,null,[N(`strong`,null,C(e.label),1),N(`osx-copy`,fS,C(e.detail),1),e.path?(A(),j(`osx-button`,{key:0,size:`small`,icon:`file-code`,onClick:n=>t.$emit(`openFile`,e.path)},C(e.path),9,pS)):I(``,!0)])]))),128))])]),N(`section`,null,[l[6]||=N(`osx-heading`,{level:3,variant:`label`,tone:`muted`},`Engineer defense`,-1),N(`osx-heading`,mS,C(e.dossier.defense.completed?`A defense is on record`:`This change still needs a defense`),1),e.dossier.defense.statement?(A(),j(`blockquote`,hS,C(e.dossier.defense.statement),1)):I(``,!0),e.dossier.defense.answers.length?(A(),j(`div`,gS,[(A(!0),j(k,null,O(e.dossier.defense.answers,e=>(A(),j(`article`,{key:`${e.kind}:${e.question}`},[N(`strong`,null,C(e.kind),1),N(`osx-copy`,_S,C(e.answer),1)]))),128))])):(A(),j(`osx-button`,{key:2,variant:`primary`,icon:`check`,onClick:l[0]||=n=>t.$emit(`defend`,e.dossier.diffId)},`Defend this change`))])]),N(`aside`,null,[N(`section`,null,[l[10]||=N(`osx-heading`,{level:3,variant:`label`,tone:`muted`},`Revision`,-1),N(`dl`,null,[N(`div`,null,[l[7]||=N(`dt`,null,`Freshness`,-1),N(`dd`,null,C(e.dossier.freshness.status),1)]),N(`div`,null,[l[8]||=N(`dt`,null,`Last assured`,-1),N(`dd`,null,C(n(e.dossier.freshness.assuredAt)),1)]),N(`div`,null,[l[9]||=N(`dt`,null,`Revision`,-1),N(`dd`,null,[N(`code`,{title:e.dossier.revision.commitSha??e.dossier.revision.resultTree??e.dossier.revision.fingerprint??e.dossier.diffId},C(r()),9,vS)])])])]),N(`section`,null,[l[11]||=N(`osx-heading`,{level:3,variant:`label`,tone:`muted`},`Files`,-1),N(`div`,yS,[(A(!0),j(k,null,O(e.dossier.files,e=>(A(),j(`article`,{key:e.path,class:`file-entry`},[N(`div`,null,[N(`osx-copy`,bS,[N(`strong`,null,C(i(e.path)),1)]),a(e.path)?(A(),j(`osx-copy`,xS,C(a(e.path)),1)):I(``,!0),N(`osx-copy`,SS,`+`+C(e.added)+` / -`+C(e.removed),1)]),N(`osx-button`,{size:`small`,icon:`file-code`,"aria-label":`Open ${e.path}`,onClick:n=>t.$emit(`openFile`,e.path)},`Open`,8,CS)]))),128))])]),N(`section`,null,[l[12]||=N(`osx-heading`,{level:3,variant:`label`,tone:`muted`},`Open questions`,-1),N(`ul`,wS,[(A(!0),j(k,null,O(e.dossier.uncertainty,e=>(A(),j(`li`,{key:e},C(e),1))),128))]),e.dossier.uncertainty.length?I(``,!0):(A(),j(`osx-copy`,TS,`No open questions are recorded.`))])])])]),N(`div`,ES,[N(`osx-link`,{href:e.briefHref,download:``,underline:`none`},`Download change brief`,8,DS),N(`osx-button`,{onClick:l[1]||=e=>t.$emit(`close`)},`Close`)])],40,eS))}}),[[`__scopeId`,`data-v-db83aa92`]]),kS=[`aria-expanded`],AS=[`aria-current`,`title`],jS={key:0,class:`changed-dot`,title:`Has captured changes`},MS={key:2},NS=$n({__name:`RepoTreeNode`,props:{node:{},selectedPath:{},depth:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=T((n.depth??0)<2);return(t,n)=>{let a=wr(`RepoTreeNode`,!0);return A(),j(`li`,{class:S([`repo-tree-node`,e.node.type])},[e.node.type===`directory`?(A(),j(`button`,{key:0,class:`tree-directory`,"aria-expanded":i.value,onClick:n[0]||=e=>i.value=!i.value},[N(`span`,null,C(i.value?`▾`:`▸`),1),n[3]||=N(`i`,null,`▰`,-1),N(`strong`,null,C(e.node.name),1),N(`small`,null,C(e.node.children.length),1)],8,kS)):(A(),j(`button`,{key:1,class:S([`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]||=N(`span`,null,`‹›`,-1),N(`strong`,null,C(e.node.name),1),e.node.changed?(A(),j(`i`,jS)):I(``,!0),N(`em`,{class:S(e.node.score===null?`unknown`:e.node.score<1.67?`danger`:e.node.score<2.5?`warning`:`good`)},C(e.node.score===null?`n/a`:e.node.score.toFixed(1)),3)],10,AS)),e.node.type===`directory`&&i.value?(A(),j(`ul`,MS,[(A(!0),j(k,null,O(e.node.children,t=>(A(),M(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))])):I(``,!0)],2)}}}),PS=[`data-osx-theme`],FS={class:`window`,"aria-label":`Aperta code ownership dashboard`},IS={class:`titlebar`},LS={class:`toolbar`},RS={class:`history-controls`,role:`group`,"aria-label":`View history`},zS=[`disabled`],BS=[`disabled`],VS={class:`repo-pill project-picker`},HS=[`value`],US={key:0,value:``},WS=[`value`,`disabled`],GS={class:`theme-switch`,"aria-label":`Appearance`},KS={key:0,class:`error-panel`},qS={key:1,class:`loading-panel`},JS={key:2,class:`initialization-banner`,role:`status`,"aria-live":`polite`},YS={key:0},XS=[`disabled`],ZS={class:`sidebar`,"aria-label":`Primary navigation`},QS={class:`sidebar-head`},$S=[`aria-label`,`title`],eC={class:`sidebar-nav`},tC=[`aria-current`],nC={key:0},rC=[`aria-current`],iC={key:0},aC=[`aria-current`],oC=[`aria-current`],sC={key:0,class:`alert-count`},cC=[`aria-current`],lC={key:0,class:`attention-count`},uC=[`aria-current`],dC=[`aria-current`],fC={key:0,class:`attention-count`},pC=[`aria-current`],mC=[`aria-current`],hC=[`aria-current`],gC={key:0,class:`attention-count`},_C={class:`sidebar-context`},vC=[`title`,`aria-label`],yC=[`aria-current`],bC={class:`repository-tree`,"aria-label":`Repository tree`},xC={key:0,class:`tree-empty`},SC={class:`file-comprehension`},CC={key:0,class:`file-context-bar`},wC={class:`file-context-identity`},TC={class:`file-context-facts`},EC={class:`primary-fact`},DC={key:1,class:`file-actions`},OC=[`onClick`],kC={key:2,class:`source-message`},AC={key:3,class:`source-message error`},jC={key:4,class:`source-message`},MC=[`aria-label`],NC={class:`source-line-number`},PC={class:`source-code`},FC={key:0},IC={key:6,class:`source-message`},LC={class:`section-head`},RC={class:`review-head-actions`},zC=[`aria-expanded`],BC={class:`count-badge`},VC={class:`review-filter-actions`},HC=[`disabled`],UC={key:0,class:`review-filter-error`,role:`alert`},WC={class:`queue-list`},GC=[`datetime`,`title`],KC={key:0,class:`queue-superseded`},qC={key:1,class:`queue-filtered`},JC={key:2,class:`queue-skipped`},YC={class:`queue-actions`},XC=[`disabled`,`onClick`],ZC=[`disabled`,`onClick`],QC={key:0,class:`empty-state`},$C={class:`section-head`},ew={class:`count-badge`},tw={class:`queue-list learn-list`},nw=[`disabled`,`onClick`],rw={key:0,class:`empty-state`},iw={class:`section-head impact-head`},aw=[`value`],ow={key:0,class:`impact-loading`},sw={key:1,class:`impact-shell`},cw={class:`impact-story`},lw={class:`eyebrow`},uw={class:`trust-kernel`,"aria-label":`Analysis capability and evidence coverage`},dw={class:`capability-grid`},fw={class:`capability-icon`,"aria-hidden":`true`},pw={class:`impact-metrics`},mw={class:`proof-orb`},hw={class:`proof-plan`},gw={class:`eyebrow`},_w={class:`proof-actions`},vw=[`disabled`],yw={key:0,class:`proof-error`},bw={key:1,class:`proof-result`},xw={key:2,class:`proof-output`},Sw={key:1,class:`probe-lab`},Cw={class:`probe-grid`},ww=[`onClick`],Tw={class:`probe-state`},Ew={key:0,class:`probe-inspector`},Dw={class:`probe-copy`},Ow=[`disabled`],kw={class:`probe-code`},Aw={key:0,class:`probe-console`},jw={key:1,class:`highlighted-source`},Mw={class:`source-line-number`},Nw={class:`source-code`},Pw={key:1,class:`proof-error`},Fw={class:`impact-canvas`},Iw={class:`impact-lane`},Lw=[`onClick`],Rw={class:`impact-node-kind`},zw={key:0,class:`lane-empty`},Bw={class:`impact-arrow`,"aria-hidden":`true`},Vw={class:`impact-lane`},Hw=[`onClick`],Uw={class:`impact-node-kind`},Ww={key:0,class:`lane-empty`},Gw={class:`impact-arrow`,"aria-hidden":`true`},Kw={class:`impact-lane evidence`},qw=[`onClick`],Jw={class:`impact-node-kind`},Yw={class:`unproven-label`},Xw={key:2,class:`impact-inspector`},Zw={class:`evidence-detail`},Qw=[`onClick`],$w=[`title`],eT={key:0},tT={key:3,class:`stale-notes`},nT={key:2,class:`empty-state`},rT={class:`section-head proof-graph-head`},iT=[`disabled`],aT={key:0,class:`settings-error`},oT={key:1,class:`loading-panel`},sT={key:2,class:`repository-proof-graph`},cT={class:`proof-graph-summary`,"aria-label":`Repository proof coverage`},lT={level:3,variant:`display`},uT={class:`proven`},dT={level:3,variant:`display`},fT={class:`understood`},pT={level:3,variant:`display`},mT={class:`stale`},hT={level:3,variant:`display`},gT={level:3,variant:`display`},_T={level:3,variant:`display`},vT={class:`proof-record-toolbar`,"aria-label":`Ownership record filters`},yT={class:`proof-scope-control`},bT=[`value`],xT={class:`proof-query-controls`},ST=[`value`],CT=[`value`],wT={key:0,size:`small`,tone:`muted`},TT={key:1,class:`proof-claim-list`},ET={level:3,variant:`label`,tone:`muted`},DT={level:3,variant:`section`},OT={class:`proof-claim-badges`},kT=[`tone`,`label`],AT=[`label`],jT={class:`proof-ownership-state`,size:`small`,tone:`muted`},MT={class:`proof-claim-files`},NT=[`onClick`],PT={key:0,size:`small`,tone:`muted`},FT={key:0,class:`proof-stale-callout`,role:`status`},IT={size:`small`,tone:`muted`},LT={key:1,class:`proof-evidence-list`},RT={size:`small`,tone:`muted`},zT={key:0,size:`small`,tone:`muted`},BT=[`disabled`,`onClick`],VT={key:2,title:`No ownership records match`,description:`Try another status, clear the search, or switch between current records and history.`,icon:`search`},HT={key:3,class:`proof-pagination`,"aria-label":`Ownership record pages`},UT=[`disabled`],WT={size:`small`,tone:`muted`},GT=[`disabled`],KT={key:4,class:`settings-error`,role:`alert`},qT={class:`section-head journal-head`},JT={class:`journal-list`},YT=[`onClick`],XT={class:`journal-meta`},ZT={class:`journal-files`},QT={key:0,class:`empty-state`},$T={class:`section-head git-head`},eE=[`disabled`],tE={key:0,class:`settings-error`},nE={key:1,class:`loading-panel`},rE={key:2,class:`git-board`},iE=[`onClick`],aE={key:0,class:`git-group-empty`},oE={class:`section-head`},sE={class:`activity-list`},cE={class:`activity-glyph`},lE=[`onClick`],uE={key:0,class:`empty-state`},dE={class:`section-head harness-head`},fE=[`disabled`],pE={key:0,class:`settings-error`},mE={key:1,class:`loading-panel`},hE={key:2,class:`harness-health`},gE={class:`harness-signals`,"aria-label":`Agent regression signals`},_E={class:`harness-metrics`,"aria-label":`Agent reliability metrics`},vE={class:`harness-grid`},yE={class:`harness-panel model-performance`},bE={class:`health-table`,role:`table`,"aria-label":`Model performance`},xE={key:0,class:`runtime-provenance`},SE={key:0,class:`harness-empty`},CE={class:`harness-panel tool-health`},wE={key:0,class:`harness-empty`},TE={class:`harness-panel error-taxonomy`},EE={key:0,class:`error-chips`},DE={key:1,class:`harness-empty`},OE={class:`harness-panel recent-health`},kE={key:0,class:`runtime-provenance`},AE={class:`run-signals`},jE={key:0},ME={key:1},NE={key:2},PE={class:`harness-privacy`},FE={key:0,class:`settings-error`},IE={class:`agent-ide-main`},LE={class:`agent-ide-toolbar`},RE={class:`agent-toolbar-actions`},zE={key:0,class:`agent-review`},BE={class:`agent-run-summary`},VE={key:0},HE={class:`agent-run-engine`},UE={class:`agent-mode-tabs`,role:`tablist`,"aria-label":`Agent run review`},WE=[`aria-selected`],GE=[`aria-selected`],KE=[`aria-selected`],qE={key:0},JE=[`aria-selected`],YE=[`aria-selected`],XE={key:0,class:`understanding-brief`},ZE={key:0,class:`understanding-grid`},QE={class:`understanding-questions`},$E=[`onUpdate:modelValue`,`placeholder`],eD=[`disabled`],tD={key:1,class:`agent-contract`},nD={class:`eyebrow`},rD={class:`skill-contract-banner`,"aria-label":`Selected Aperta skill`},iD={class:`skill-contract-mark`},aD={class:`eyebrow`},oD={class:`skill-contract-details`},sD={class:`contract-grid`},cD={class:`contract-plan`},lD={key:0},uD={class:`contract-evidence`},dD={key:0},fD={class:`contract-critique`},pD={key:0,class:`pending`},mD={class:`agent-review-tabs`},hD=[`title`,`onClick`],gD={key:0,class:`agent-patch semantic-diff wrap`,"aria-label":`Agent patch preview`},_D={class:`gutter old`},vD={class:`gutter new`},yD={class:`marker`},bD={key:1,class:`agent-no-change`},xD={class:`agent-no-change-icon`},SD={key:0,class:`proof-loop-evidence`,"aria-label":`Aperta capability evidence`},CD={key:2,class:`source-message`},wD={key:3,class:`agent-checks`},TD={key:0,class:`verification-attempt baseline`},ED=[`open`],DD={key:1,class:`checks-empty`},OD={key:0,class:`agent-response-card`},kD={class:`agent-response-head`},AD={key:0},jD={key:0},MD={key:1},ND={key:2,class:`activity-command`},PD=[`open`],FD={key:1,class:`activity-live`,"aria-live":`polite`},ID={key:2,class:`checks-empty`},LD={class:`promotion-copy`},RD={class:`promotion-icon`,"aria-hidden":`true`},zD={class:`promotion-actions`},BD=[`disabled`],VD={key:6,class:`promotion-complete`},HD={key:7,class:`verification-blocked`},UD={key:1,class:`agent-review agent-welcome`},WD={class:`agent-welcome-mark`},GD={key:1,class:`agent-sidepane`,"aria-label":`Agent controls`},KD={class:`agent-orb`},qD={class:`agent-run-picker agent-conversation-picker`},JD=[`disabled`],YD=[`value`,`disabled`],XD={key:0,value:``},ZD={key:1,value:``},QD=[`value`],$D={class:`agent-side-activity agent-thread`},eO={key:0},tO={key:0},nO=[`onClick`],rO={key:1,class:`agent-side-empty`},iO={key:2,class:`agent-side-live`},aO={class:`agent-side-composer`},oO={class:`agent-suggestions`,"aria-label":`Example agent tasks`},sO=[`placeholder`,`onKeydown`],cO=[`title`],lO=[`disabled`],uO={class:`section-head`},dO={class:`settings-head-actions`},fO={class:`engine-badge`},pO={key:0,class:`settings-error`},mO={class:`runtime-settings`,"aria-labelledby":`agent-runtime-title`},hO={class:`runtime-active`},gO={class:`runtime-options`},_O=[`aria-pressed`,`onClick`],vO={class:`runtime-mark`},yO={class:`engine-ownership-boundary`},bO={key:0},xO={key:1},SO={key:0,class:`cursor-runtime-config`},CO=[`placeholder`],wO={key:0,class:`runtime-install-note`},TO=[`disabled`],EO={class:`intelligence-routing`,"aria-labelledby":`intelligence-routing-title`},DO={class:`deterministic`},OO={class:`settings-layout`},kO={class:`profile-list`},AO={class:`profile-provider`},jO={class:`profile-capabilities`},MO={key:0},NO={class:`profile-actions`},PO=[`onClick`,`disabled`],FO=[`onClick`],IO=[`onClick`],LO={key:0,class:`empty-state`},RO={class:`provider-catalog`,role:`list`,"aria-label":`Model providers`},zO=[`aria-pressed`,`onClick`],BO={key:0,class:`selected-provider-note`},VO={key:1},HO=[`value`],UO={key:2},WO=[`placeholder`],GO={key:3},KO={key:4,class:`settings-error provider-inline-error`,role:`alert`},qO=[`disabled`],JO={class:`privacy-boundary`},YO={key:6,class:`verification-required`},XO=[`disabled`],ZO={key:4,class:`review-overlay`,role:`dialog`,"aria-modal":`true`,"aria-label":`Ownership review`},QO={class:`review-window`},$O={class:`review-header`},ek={class:`learning-steps`,"aria-label":`Learning path`},tk={class:`review-head-actions`},nk={key:0},rk={key:0,class:`review-error`},ik={key:1,class:`review-loading`},ak={key:2,class:`completion-panel`},ok={class:`completion-orb`},sk={class:`confidence-delta`},ck={class:`change-navigator`},lk={class:`change-summary`},uk={class:`story-card`},dk={key:0,class:`intent-card`},fk={class:`story-facts`},pk={class:`fact-values`},mk=[`aria-label`,`title`],hk={key:0},gk={class:`fact-values`},_k=[`aria-label`,`title`],vk=[`title`,`aria-label`,`onClick`],yk={"aria-hidden":`true`},bk={class:`signal-list compact`},xk={key:0},Sk=[`aria-valuenow`],Ck={class:`evidence-pane diff-workspace`},wk={class:`diff-toolbar`},Tk={class:`file-stepper`},Ek={key:0},Dk={class:`diff-options`},Ok={class:`gutter old`},kk={class:`gutter new`},Ak={class:`marker`},jk={key:1,class:`split-row`},Mk={class:`gutter`},Nk={class:`marker`},Pk={class:`gutter`},Fk={class:`marker`},Ik={key:2,class:`missing-evidence`},Lk=[`aria-valuenow`],Rk={class:`reflection-pane learning-inspector`},zk={class:`starting-confidence`},Bk={key:0,class:`prior-notes`},Vk={key:1,class:`prior-evidence`},Hk={class:`coach-card`,"aria-label":`Aperta Coach`},Uk={key:0},Wk={key:1},Gk={class:`coach-focus`},Kk={key:0},qk=[`disabled`],Jk={key:1,class:`coach-disabled`},Yk={key:2,class:`coach-error`},Xk={class:`evidence-questions`},Zk=[`onClick`],Qk=[`for`],$k={key:0,class:`question-rationale`},eA=[`id`,`onUpdate:modelValue`],tA={class:`confidence-picker`},nA=[`disabled`,`title`,`onClick`],rA=[`disabled`],iA={class:`statusbar`},aA=$n({__name:`App`,setup(e){let t=T(null),n=T(``),r=T(!1),i=T(``),a=T(`map`),o=T([`map`]),s=T(0),c=T(!1),l=L(()=>s.value>0),u=L(()=>s.value<o.value.length-1);Un(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=T(``),f=localStorage.getItem(`aperta-theme`),p=T(f===`plain`||f===`snow`||f===`panther`?f:`panther`),m=T(localStorage.getItem(`aperta-sidebar-collapsed`)===`true`),h=T(null),g=Number(localStorage.getItem(`aperta-repository-width`)),_=T(Number.isFinite(g)&&g>=240&&g<=480?g:320),v=Number(localStorage.getItem(`aperta-agent-panel-width`)),y=T(Number.isFinite(v)&&v>=340&&v<=520?v:420),b=Number(localStorage.getItem(`aperta-ownership-left-width`)),ee=T(Number.isFinite(b)&&b>=260&&b<=520?b:360),te=Number(localStorage.getItem(`aperta-ownership-right-width`)),ne=T(Number.isFinite(te)&&te>=340&&te<=620?te:460),re=T(localStorage.getItem(`aperta-agent-pane-open`)!==`false`),ie=T(null),ae=T(``),oe=T(!1),se=T(``),ce=T(!1),le=T(``),ue=T(``),x=T(null),de=T(null),fe=T(``),pe=T(``),me=T(!1),he=T(0),ge=T(``),ve=T(`unified`),ye=T(!1),be=T(null),xe=T(``),Se=T({}),Ce=T(localStorage.getItem(`aperta-project`)??``),we=T(null),Te=T(``),Ee=T(!1),De=T(``),Oe=T(null),ke=T(!1),Ae=T(null),je=T(``),Me=T(!1),Ne=T(null),Pe=T(``),Fe=T(``),Ie=T(null),Le=T(``),Re=T(!1),ze=T(null),Be=T(null),Ve=T(!1),He=T(null),Ue=T(``),We=[`builder`,`coach`],Ge=T(null),Ke=L(()=>Ge.value?.profiles.find(e=>e.id===Ge.value?.activeProfileIds.builder)),qe=L(()=>Ge.value?.profiles.find(e=>e.id===Ge.value?.activeProfileIds.coach)),Je=T(``),Ye=T(!1),Xe=T(``),Ze=T(!1),Qe=T(``),$e=T(!1),et=T(null),tt=T(``),nt=T({name:``,provider:`openai`,model:``,baseUrl:``,apiKey:``}),rt=T({kind:`aperta`,model:``}),it=L(()=>Ge.value?.providers.find(e=>e.id===nt.value.provider)),at=L(()=>`${t.value?.observer?.state===`grouping`?`Grouping changes`:t.value?.observer?.state===`error`?`Observer needs attention`:`Watching`} · ${t.value?.observer?.branch??t.value?.branch??`repository`}`),ot=T(``),st=T(null),ct=T(!1),lt=T(``),ut=T([]),dt=T([]),ft=T(null),pt=T(null),mt=L(()=>pt.value?.kind===`aperta`?!!ft.value?.enabled:!!pt.value?.ready),ht=L(()=>{let e=pt.value;return e?e.kind===`aperta`?ft.value?.enabled?`Aperta Native · ${ft.value.provider} / ${ft.value.model}`:`Aperta Native · Builder model required`:`${ni(e.kind)} · ${e.model||`runtime default model`}`:`Loading execution engine…`}),gt=T(``),_t=T(!1),vt=T(null),yt=T(``),bt=T(null),xt=T(null),St=T(!1),Ct=T(``),wt=T(``),Tt=T(``),Et=T(!1),Dt=T(``),Ot=T(`plan`),kt=T(!1),At=T(!1),jt=T({}),Mt=T(!1),Nt=T(null),Pt=T(!1),Ft=T(``),It=T(null),Lt=T(!1),Rt=T(``),zt=T(`all`),Bt=T(`attention`),Vt=T(``),Ht=T(1),Ut=T(null),Wt=T(!1),Gt=T(``),Kt=L(()=>It.value?.claims??[]),qt=L(()=>Bt.value===`attention`?`Needs attention`:Bt.value===`current`?`Current records`:`History`),Jt=L(()=>zt.value===`all`?`All statuses`:zt.value[0].toUpperCase()+zt.value.slice(1)),Yt=L(()=>{let e=It.value;if(!e||e.page.total===0)return``;let t=(e.page.number-1)*e.page.size+1,n=Math.min(e.page.number*e.page.size,e.page.total),r=Bt.value===`attention`?`records that need attention`:Bt.value===`history`?`historical revisions`:`current records`;return`Showing ${t}–${n} of ${e.page.total} ${r}`}),Xt=L(()=>Ut.value?`/api/dossier/brief?diffId=${encodeURIComponent(Ut.value.diffId)}&project=${encodeURIComponent(Ce.value)}`:``),w=L(()=>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)),Zt=L(()=>w.value?t.value?.diffs.filter(e=>e.files.some(e=>e.path===w.value?.path))??[]:[]),Qt=L(()=>Ax(x.value?.patch??``)),$t=L(()=>Qt.value.find(e=>e.path===ge.value)??Qt.value[0]),en=L(()=>x.value?.diff.files.find(e=>e.path===$t.value?.path)),tn=L(()=>Math.max(0,Qt.value.findIndex(e=>e.path===$t.value?.path))),nn=L(()=>{let e=xe.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}),rn=L(()=>Be.value?.questions??x.value?.questions??[]),an=L(()=>rn.value.filter(e=>e.requiredForOwned).filter(e=>(Se.value[e.id]?.trim().length??0)>=20).length),on=L(()=>an.value>=3&&fe.value.trim().length>=40),sn=L(()=>Math.round((an.value+ +(fe.value.trim().length>=40))/4*100)),cn=L(()=>we.value?.nodes.filter(e=>e.status!==`related`&&e.kind!==`test`).slice(0,18)??[]),ln=L(()=>we.value?.nodes.filter(e=>e.status===`related`&&e.kind!==`test`).slice(0,18)??[]),un=L(()=>we.value?.nodes.filter(e=>e.kind===`test`).slice(0,12)??[]),dn=L(()=>we.value?.nodes.find(e=>e.id===De.value)??cn.value[0]??ln.value[0]??un.value[0]),fn=L(()=>we.value?.edges.filter(e=>e.from===dn.value?.id||e.to===dn.value?.id).flatMap(e=>{let t=we.value?.nodes.find(t=>t.id===(e.from===dn.value?.id?e.to:e.from));return t?[{...e,node:t}]:[]})??[]),pn=L(()=>Ne.value?.probes.find(e=>e.id===Pe.value)??null),mn=L(()=>{let e=new Map(Oe.value?.verdicts.map(e=>[e.nodeId,e.verdict])??[]);for(let t of Ne.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}),hn=L(()=>{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=ot.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}),gn=L(()=>st.value?.content.split(`
|
|
11
|
+
`)??[]),_n=L(()=>Et.value?null:dt.value.find(e=>e.id===Tt.value)??dt.value[0]??null),D=L(()=>_n.value?.runs.find(e=>e.id===wt.value)??_n.value?.runs.at(-1)??null),vn=L(()=>Ax(D.value?.patch??``)),yn=L(()=>vn.value.find(e=>e.path===Dt.value)??vn.value[0]??null),bn=L(()=>we.value?.capabilities.map(e=>e.id===`runtime`?Oe.value?.latest?.status===`proven`?{...e,status:`available`,detail:`Executed ${Oe.value.latest.runner} evidence is attached to this capture.`}:Oe.value?.plan.available?{...e,status:`partial`,detail:`${Oe.value.plan.runner} evidence is available on demand but has not proven this capture.`}:e:e)??[]);function xn(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 Sn(e){return e===null?`n/a`:e.toFixed(1)}function Cn(e){return`${Math.round(e*100)}%`}function Tn(e){return e===null?`n/a`:`${Math.round(e*100)}%`}function En(e){return e===null?`n/a`:e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(1)}s`}function Dn(e){return new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`}).format(new Date(e))}function On(e){return new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`}).format(new Date(e))}function kn(e){return e.split(`/`).at(-1)??e}function An(e){let t=e.split(`/`);return t.length>1?t.slice(0,-1).join(`/`):`repository root`}function jn(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1$2`).replaceAll(`/`,`/`).replaceAll(`.`,`.`)}function Mn(e=``){return e.replace(/\r/g,``).replace(/\s*#{1,6}\s+/g,`
|
|
12
|
+
|
|
13
|
+
`).replace(/\s+-\s+(?=(?:\*\*|[A-Z0-9]))/g,`
|
|
14
|
+
• `).replace(/\*\*([^*]+)\*\*/g,`$1`).replace(/`([^`]+)`/g,`$1`).replace(/^\s*[-*]\s+/gm,`• `).replace(/\n{3,}/g,`
|
|
15
|
+
|
|
16
|
+
`).trim()}function Nn(e=``){let t=e.replaceAll(`\\`,`/`);return/\/aperta-agent-[^/]+$/.test(t)?``:t.match(/\/aperta-agent-[^/]+\/(.+)$/)?.[1]??t}function Pn(e){let t=Nn(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 Fn(e){return e.filter(e=>![`assistant`,`system`,`result`].includes(e.action.toLowerCase()))}function In(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=Nn([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 Pn({...e,action:s,path:o})}catch{return Pn(e)}return Mn(t).replace(/(?:\/[^\s"']+)*\/aperta-agent-[^/\s"']+\//g,``)}function Rn(e){if(e.status===`no-changes`)return`No repository changes were needed`;let t=Mn(e.summary||e.intent).replace(/\s+/g,` `);return t.length>150?`${t.slice(0,147).trimEnd()}…`:t}function zn(e){let t=Mn(e.understanding?.changedBehavior||e.summary||e.intent).replace(/\s+/g,` `);return t.length>220?`${t.slice(0,217).trimEnd()}…`:t}function Bn(e){return e.status===`error`?Xb:e.action===`read`?tx:e.action===`search`?xx:e.action===`write`?Dx:e.action===`run`?vx:e.action===`service`||e.action===`probe`?Cx:e.action===`verify`||e.action===`baseline`?qb:e.action===`plan`?dx:e.action===`finish`?Zb:$b}function Vn(e){return e.type===`captured`?Yb:e.type===`error`?Xb:e.type===`grouping`?nx:e.type===`branch`?sx:$b}function Hn(e){return e.level===`healthy`?Yb:e.level===`critical`?Xb:Ox}function Wn(e){return e.notes[0]?.text?e.notes[0].text:e.evidence[0]?.answers.find(e=>e.answer.trim().length)?.answer||`Ownership review completed with a score of ${e.score??`unrated`}. No written explanation was recorded.`}async function Gn(e){d.value=e,st.value=null,lt.value=``,ct.value=!0;try{let t=await fetch(`/api/file?project=${encodeURIComponent(Ce.value)}&path=${encodeURIComponent(e)}`,{cache:`no-store`}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Could not read repository file`);st.value=n}catch(e){lt.value=e instanceof Error?e.message:String(e)}finally{ct.value=!1}}function Kn(e){p.value=e,localStorage.setItem(`aperta-theme`,e)}function qn(){m.value=!m.value,h.value=null,localStorage.setItem(`aperta-sidebar-collapsed`,String(m.value))}function Jn(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 Yn(){h.value=null}function Xn(e){_.value=Math.max(240,Math.min(480,Math.round(e))),localStorage.setItem(`aperta-repository-width`,String(_.value))}function Zn(e){Xn(_.value+e)}function Qn(e){let t=e.clientX,n=_.value,r=e=>Xn(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 $n(e){y.value=Math.max(340,Math.min(520,Math.round(e))),localStorage.setItem(`aperta-agent-panel-width`,String(y.value))}function er(e){$n(y.value+e)}function tr(e){re.value=e,localStorage.setItem(`aperta-agent-pane-open`,String(e))}function nr(e){let t=e.clientX,n=y.value,r=e=>$n(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 rr(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 ir(e,t){rr(e,(e===`left`?ee.value:ne.value)+t)}function ar(e,t){let n=t.clientX,r=e===`left`?ee.value:ne.value,i=t=>{let i=t.clientX-n;rr(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 or(e){return mn.value.get(e)??`unproven`}function sr(e){return or(e.id)===`proven`?`proven`:e.evidence.level}function cr(e){return{file:rx,class:Jb,method:ex,dependency:hx,test:ix,config:Sx,entrypoint:px}[e]}function lr(e){return or(e.id)===`proven`?`Executed evidence is attached to this graph surface.`:e.evidence.detail}async function ur(e){Oe.value=null,je.value=``,Me.value=!1;let t=await fetch(`/api/proof?diffId=${encodeURIComponent(e)}&project=${encodeURIComponent(Ce.value)}`,{cache:`no-store`});if(!t.ok)throw Error(`Could not build the proof plan`);Oe.value=await t.json()}async function dr(e){Ne.value=null,Le.value=``,Re.value=!1;let t=await fetch(`/api/probes?diffId=${encodeURIComponent(e)}&project=${encodeURIComponent(Ce.value)}`,{cache:`no-store`});if(!t.ok)throw Error(`Could not generate the probe catalog`);Ne.value=await t.json(),Pe.value=Ne.value?.probes[0]?.id??``}async function fr(e){if(!(e.readiness!==`ready`||Fe.value)){Fe.value=e.id,Le.value=``;try{let t=await fetch(`/api/probes`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:Ce.value,diffId:Te.value,probeId:e.id})}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Probe execution failed`);Ie.value=n.job;let r=await hr(n.job.id,e=>Ie.value=e);if(r.state!==`completed`)throw Error(r.error??`Probe ${r.state}`);await dr(Te.value),Pe.value=e.id,Re.value=!0}catch(e){Le.value=e instanceof Error?e.message:String(e)}finally{Fe.value=``}}}async function pr(){if(!(!Te.value||ke.value)){ke.value=!0,je.value=``;try{let e=await fetch(`/api/proof`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:Ce.value,diffId:Te.value})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Proof execution failed`);Ae.value=t.job;let n=await hr(t.job.id,e=>Ae.value=e);if(n.state!==`completed`)throw Error(n.error??`Proof ${n.state}`);await ur(Te.value),Me.value=Oe.value?.latest?.status!==`proven`}catch(e){je.value=e instanceof Error?e.message:String(e)}finally{ke.value=!1}}}async function hr(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 gr(e){!e||![`queued`,`running`].includes(e.state)||await fetch(`/api/jobs?id=${encodeURIComponent(e.id)}`,{method:`DELETE`})}async function _r(e=Te.value||t.value?.diffs.at(-1)?.id||``){if(!e){we.value=null;return}Ee.value=!0,Te.value=e,n.value=``;try{let t=await fetch(`/api/impact?diffId=${encodeURIComponent(e)}&project=${encodeURIComponent(Ce.value)}`,{cache:`no-store`});if(!t.ok)throw Error(`Could not map the impact of this change`);let n=await t.json();we.value=n.graph,De.value=n.graph.nodes[0]?.id??``,await Promise.all([ur(e).catch(e=>{je.value=e instanceof Error?e.message:String(e)}),dr(e).catch(e=>{Le.value=e instanceof Error?e.message:String(e)})])}catch(e){n.value=e instanceof Error?e.message:String(e)}finally{Ee.value=!1}}async function yr(){a.value=`impact`,await _r()}async function br(e){e===`impact`?await _r():e===`proofgraph`?await zr():e===`harness`?await qr():e===`agents`?await ui():e===`git`?await fi():e===`settings`&&await Yr()}async function xr(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 br(n)}function Sr(e){ge.value=e}function Cr(e){if(!Qt.value.length)return;let t=(tn.value+e+Qt.value.length)%Qt.value.length;ge.value=Qt.value[t].path}function wr(e){e.path&&(ge.value=e.path)}async function Tr(e){if(e.kind!==`pending`){ie.value=e,x.value=null,de.value=null,fe.value=``,Se.value={},pe.value=``,he.value=Date.now(),be.value=null,ge.value=``,Be.value=null,Ue.value=``,He.value=null;try{let t=await fetch(`/api/ownership?diffId=${encodeURIComponent(e.diffId)}&project=${encodeURIComponent(Ce.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=>ze.value=e.status).catch(()=>ze.value={enabled:!1,reason:`Coach status is unavailable.`});let n=localStorage.getItem(`aperta-draft:${e.diffId}`);if(n)try{let e=JSON.parse(n);fe.value=e.explanation??``,Se.value=e.answers??{}}catch{fe.value=n}ge.value=x.value?.focusFiles[0]?.path??x.value?.diff.files[0]?.path??``,location.hash=`project=${encodeURIComponent(Ce.value)}&ownership=${e.diffId}`}catch(e){pe.value=e instanceof Error?e.message:String(e)}}}async function Dr(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:Ce.value,diffId:e.diffId,action:`skip`})}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Could not skip this review`);await bi()}catch(e){n.value=e instanceof Error?e.message:String(e)}finally{ae.value=``}}}function Or(){let e=[String.raw`(^|/)\.gitignore$`,String.raw`(^|/)package(?:-lock\.json|\.lock)$`,String.raw`(^|/)pnpm-lock\.yaml$`,String.raw`(^|/)yarn\.lock$`],t=se.value.split(`
|
|
17
|
+
`).map(e=>e.trim()).filter(Boolean);se.value=[...new Set([...t,...e])].join(`
|
|
18
|
+
`)}async function kr(){if(!ce.value){ce.value=!0,le.value=``;try{let e=se.value.split(`
|
|
19
|
+
`).map(e=>e.trim()).filter(Boolean),t=await fetch(`/api/review-settings`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:Ce.value,ignorePatterns:e})}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Could not save review filters`);se.value=n.ignorePatterns.join(`
|
|
20
|
+
`),oe.value=!1,await bi()}catch(e){le.value=e instanceof Error?e.message:String(e)}finally{ce.value=!1}}}async function Ar(){if(!(!ie.value||Ve.value||!ze.value?.enabled)){Ve.value=!0,Ue.value=``;try{let e=await fetch(`/api/coach`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({projectId:Ce.value,diffId:ie.value.diffId})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not start Aperta Coach`);He.value=t.job;let n=await hr(t.job.id,e=>He.value=e);if(n.state!==`completed`)throw Error(n.error??`Coach ${n.state}`);Be.value=n.result,Se.value={},Be.value.focus.path&&(ge.value=Be.value.focus.path)}catch(e){Ue.value=e instanceof Error?e.message:String(e)}finally{Ve.value=!1}}}function jr(){ie.value=null,x.value=null,be.value=null,history.replaceState(null,``,location.pathname+location.search)}function Mr(e){let n=t.value?.diffs.find(t=>t.id===e),r=t.value?.sessions.find(t=>t.diffId===e);n&&Tr({kind:`history`,priority:`medium`,diffId:e,ts:n.ts,label:`Ownership history`,score:r?.score??null,files:n.files,model:n.model})}async function Nr(){if(!ie.value||!de.value){pe.value=`Choose your current confidence before finishing.`;return}if(de.value===3&&!on.value){pe.value=`Owned must be demonstrated: complete the three required evidence answers and your explanation.`;return}me.value=!0,pe.value=``;try{let e=rn.value.map(e=>({questionId:e.id,question:e.text,answer:Se.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:Ce.value,diffId:ie.value.diffId,score:de.value,explanation:fe.value,answers:e,durationMs:Date.now()-he.value})});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error??`Could not save the ownership review`)}be.value={before:ie.value.score,after:de.value,durationMs:Date.now()-he.value},localStorage.removeItem(`aperta-draft:${ie.value.diffId}`),await bi()}catch(e){pe.value=e instanceof Error?e.message:String(e)}finally{me.value=!1}}async function Pr(e){Ce.value=e,localStorage.setItem(`aperta-project`,e),d.value=``,st.value=null,we.value=null,Oe.value=null,Ne.value=null,Nt.value=null,It.value=null,Te.value=``,ut.value=[],dt.value=[],Tt.value=``,wt.value=``,Et.value=!1,jr(),await bi(),a.value===`impact`&&await _r(),a.value===`agents`&&await ui(),a.value===`harness`&&await qr(),a.value===`proofgraph`&&await zr()}async function Fr(){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:Ce.value})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not initialize Aperta`);await bi()}catch(e){i.value=e instanceof Error?e.message:String(e)}finally{r.value=!1}}}let Ir;function Lr(e){return String(e.detail?.[0]??``)}function Rr(e){return e===`proven`?`success`:e===`understood`||e===`supported`?`info`:e===`stale`?`warning`:e===`regressed`?`danger`:`neutral`}async function zr(e=Ht.value){Lt.value=!0,Rt.value=``,Ht.value=e;try{let t=new URLSearchParams({project:Ce.value,scope:Bt.value,status:zt.value,query:Vt.value,page:String(e),pageSize:`20`}),n=await fetch(`/api/proof-graph?${t}`,{cache:`no-store`}),r=await n.json().catch(()=>({}));if(!n.ok)throw Error(r.error??`Could not load the repository proof graph`);It.value=r,Ht.value=r.page?.number??e}catch(e){Rt.value=e instanceof Error?e.message:String(e)}finally{Lt.value=!1}}async function Br(){a.value=`proofgraph`,Bt.value=`attention`,zt.value=`all`,Vt.value=``,Ht.value=1,await zr(1)}function Vr(e){let t=Lr(e);Bt.value=t===`History`?`history`:t===`Current records`?`current`:`attention`,zt.value=`all`,zr(1)}function Hr(e){let t=Lr(e).toLocaleLowerCase();zt.value=new Set([`proven`,`understood`,`supported`,`stale`,`regressed`,`unproven`]).has(t)?t:`all`,zr(1)}function Ur(e){Vt.value=Lr(e),Ir&&clearTimeout(Ir),Ir=setTimeout(()=>void zr(1),250)}async function Wr(e){Wt.value=!0,Gt.value=``;try{let t=await fetch(`/api/dossier?diffId=${encodeURIComponent(e)}&project=${encodeURIComponent(Ce.value)}`,{cache:`no-store`}),n=await t.json().catch(()=>({}));if(!t.ok)throw Error(n.error??`Could not build the ownership record`);Ut.value=n}catch(e){Gt.value=e instanceof Error?e.message:String(e)}finally{Wt.value=!1}}function Gr(e){Ut.value=null,Mr(e)}async function Kr(e){Ut.value=null,a.value=`map`,await Gn(e)}async function qr(){Pt.value=!0,Ft.value=``;try{let e=await fetch(`/api/harness?project=${encodeURIComponent(Ce.value)}`,{cache:`no-store`}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not load agent reliability`);Nt.value=t}catch(e){Ft.value=e instanceof Error?e.message:String(e)}finally{Pt.value=!1}}async function Jr(){a.value=`harness`,await qr()}async function Yr(){Je.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`);Ge.value=t,rt.value={kind:[`codex`,`cursor`,`claude`,`opencode`].includes(t.agentRuntime?.kind)?t.agentRuntime.kind:`aperta`,model:typeof t.agentRuntime?.model==`string`?t.agentRuntime.model:``}}catch(e){Je.value=e instanceof Error?e.message:String(e)}}async function Xr(){Ye.value=!1,a.value=`settings`,await Yr()}async function Zr(){Ye.value=!0,a.value=`settings`,await Yr(),await wn(),document.getElementById(`agent-runtime-title`)?.scrollIntoView({block:`start`})}function Qr(){Ye.value=!1,a.value=`agents`}async function $r(e){Ze.value=!0,Je.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`);Ge.value=n}catch(e){Je.value=e instanceof Error?e.message:String(e)}finally{Ze.value=!1}}async function ei(){await $r({action:`save`,profile:{...nt.value,activate:!0,baseUrl:et.value?.baseUrl??nt.value.baseUrl,toolTransport:et.value?et.value.capabilities.nativeTools?`native`:`json`:void 0,capabilities:et.value?.capabilities}}),Je.value||(nt.value={name:``,provider:nt.value.provider,model:``,baseUrl:``,apiKey:``},et.value=null)}async function ti(){await $r({action:`runtime`,runtime:rt.value}),Ge.value?.agentRuntime&&(rt.value={kind:Ge.value.agentRuntime.kind,model:Ge.value.agentRuntime.model})}function ni(e){return e===`codex`?`Codex CLI`:e===`cursor`?`Cursor Agent`:e===`claude`?`Claude Code`:e===`opencode`?`OpenCode`:`Aperta Native`}function ri(e){return e===`aperta`?`Bounded native tool loop`:`agent-v local CLI adapter`}function ii(e){return e===`codex`?`X`:e===`cursor`?`C`:e===`claude`?`A`:e===`opencode`?`O`:`α`}async function ai(e,t){await $r({action:`assign`,id:e,role:t})}async function oi(e){Qe.value=e,await $r({action:`retest`,id:e}),Qe.value=``}function si(e){nt.value.provider=e.id,nt.value.baseUrl=e.id===`openai-compatible`?``:e.baseUrl,nt.value.model=``,et.value=null,Xe.value=``,Je.value=``}async function ci(){if(!$e.value){$e.value=!0,Xe.value=``,Je.value=``;try{let e=await fetch(`/api/settings`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`inspect`,profile:nt.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.`);et.value=t,nt.value.baseUrl=t.baseUrl,!nt.value.model&&t.models?.length===1&&(nt.value.model=t.models[0].id)}catch(e){Xe.value=e instanceof Error?e.message:String(e)}finally{$e.value=!1}}}async function li(e){if(tt.value!==e){tt.value=e;return}await $r({action:`delete`,id:e}),tt.value=``}async function ui(){yt.value=``;try{let e=await fetch(`/api/agents?project=${encodeURIComponent(Ce.value)}`,{cache:`no-store`}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not load agent conversations`);dt.value=(t.conversations??[]).map(e=>({...e,runs:e.runs.map(e=>({...e,verification:e.verification??{status:`unavailable`,plan:[],attempts:[]}}))})),ut.value=dt.value.flatMap(e=>e.runs),ft.value=t.coach,pt.value=t.runtime??null,!Et.value&&!dt.value.some(e=>e.id===Tt.value)&&(Tt.value=dt.value[0]?.id??``);let n=dt.value.find(e=>e.id===Tt.value);n&&!n.runs.some(e=>e.id===wt.value)&&hi(n.runs.at(-1)?.id??``)}catch(e){yt.value=e instanceof Error?e.message:String(e)}}async function di(){a.value=`agents`,m.value||(m.value=!0,localStorage.setItem(`aperta-sidebar-collapsed`,`true`)),await ui()}async function fi(){St.value=!0,Ct.value=``;try{let e=await fetch(`/api/git?project=${encodeURIComponent(Ce.value)}`,{cache:`no-store`}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not read Git status`);xt.value=t}catch(e){Ct.value=e instanceof Error?e.message:String(e)}finally{St.value=!1}}async function pi(){a.value=`git`,await fi()}async function mi(){if(!t.value?.initialization.initialized){yt.value=`Initialize Aperta for this project before starting an agent run.`;return}if(_t.value||gt.value.trim().length<10)return;let e=gt.value.trim(),n=!1;_t.value=!0,yt.value=``,kt.value=!1,Ot.value=`activity`;try{let t=await fetch(`/api/agents`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`start`,projectId:Ce.value,conversationId:_n.value?.id,intent:e})}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r.error??`Could not start agent run`);n=!0,gt.value=``,vt.value=r.job;let i=await hr(r.job.id,e=>{vt.value=e,ui().then(()=>{let e=ut.value.find(e=>e.status===`running`||e.status===`verifying`);e&&(Et.value=!1,Tt.value=e.conversationId,wt.value=e.id,Dt.value||=e.files[0]?.path??``)})});if(i.state!==`completed`)throw Error(i.error??`Agent run ${i.state}`);let a=i.result;Et.value=!1,Tt.value=a.conversationId,wt.value=a.id,Dt.value=a.files[0]?.path??``,await ui(),Ot.value=a.status===`no-changes`||a.files.length?`changes`:`activity`,await wn(),bt.value?.scrollTo({top:0,behavior:`smooth`})}catch(t){!n&&!gt.value&&(gt.value=e),yt.value=t instanceof Error?t.message:String(t),await ui()}finally{_t.value=!1}}function hi(e){wt.value=e;let t=ut.value.find(t=>t.id===e);Dt.value=t?.files[0]?.path??``,jt.value={...t?.understanding?.responses??{}},Ot.value=t?.status===`no-changes`?`changes`:`activity`,kt.value=!1}function gi(e){Et.value=!1,Tt.value=e,hi(dt.value.find(t=>t.id===e)?.runs.at(-1)?.id??``)}function _i(){Et.value=!0,Tt.value=``,wt.value=``,Dt.value=``,gt.value=``,yt.value=``,kt.value=!1}async function vi(){if(!(!D.value||!kt.value||At.value)){At.value=!0,yt.value=``;try{let e=await fetch(`/api/agents`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`apply`,projectId:Ce.value,runId:D.value.id,acceptUnverified:!0})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not promote patch`);kt.value=!1,await ui(),await bi()}catch(e){yt.value=e instanceof Error?e.message:String(e)}finally{At.value=!1}}}async function yi(){if(!(!D.value||Mt.value)){Mt.value=!0,yt.value=``;try{let e=await fetch(`/api/agents`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({action:`understanding`,projectId:Ce.value,runId:D.value.id,responses:jt.value})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error??`Could not save understanding evidence`);await ui();let n=ut.value.find(e=>e.id===wt.value);jt.value={...n?.understanding?.responses??{}}}catch(e){yt.value=e instanceof Error?e.message:String(e)}finally{Mt.value=!1}}}async function bi(e=!1){n.value=``;try{let n=Ce.value?`?project=${encodeURIComponent(Ce.value)}`:``,r=await fetch(`/api/state${n}`,{cache:`no-store`});if(!r.ok&&Ce.value&&!e)return Ce.value=``,localStorage.removeItem(`aperta-project`),bi(!0);if(!r.ok)throw Error(`Could not read the local ledger`);t.value=await r.json(),Ce.value=t.value?.projectId??``,t.value&&(ue.value!==t.value.projectId||!oe.value)&&(ue.value=t.value.projectId,se.value=t.value.reviewSettings.ignorePatterns.join(`
|
|
21
|
+
`),le.value=``),Ce.value&&localStorage.setItem(`aperta-project`,Ce.value),!d.value&&t.value?.repositoryFiles.length&&await Gn(t.value.repositoryFiles[0]),a.value===`git`&&await fi()}catch(e){n.value=e instanceof Error?e.message:String(e)}}let xi;return Un([fe,Se],()=>{ie.value&&!be.value&&localStorage.setItem(`aperta-draft:${ie.value.diffId}`,JSON.stringify({explanation:fe.value,answers:Se.value}))},{deep:!0}),mr(async()=>{let e=new URLSearchParams(location.hash.slice(1));e.get(`project`)&&(Ce.value=e.get(`project`)??``),await bi();let t=e.get(`ownership`);t&&Mr(t),xi=setInterval(()=>{ie.value||bi()},3e3)}),vr(()=>{xi&&clearInterval(xi)}),(e,o)=>(A(),j(`main`,{class:S([`desktop`,`theme-${p.value}`]),"data-osx-theme":p.value===`panther`?`panther`:p.value===`plain`?`graphite`:`aqua`},[N(`section`,FS,[N(`header`,IS,[o[94]||=ia(`<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>Code ownership</span></div>`,2),N(`button`,{class:`refresh-button`,type:`button`,onClick:bi,"aria-label":`Refresh ledger`},[P(E(bx),{class:`nav-icon`,"aria-hidden":`true`})])]),N(`div`,LS,[N(`div`,RS,[N(`button`,{type:`button`,disabled:!l.value,"aria-label":`Go back`,title:`Go back`,onClick:o[0]||=e=>xr(-1)},[P(E(Wb),{class:`nav-icon`,"aria-hidden":`true`})],8,zS),N(`button`,{type:`button`,disabled:!u.value,"aria-label":`Go forward`,title:`Go forward`,onClick:o[1]||=e=>xr(1)},[P(E(Gb),{class:`nav-icon`,"aria-hidden":`true`})],8,BS)]),N(`label`,VS,[o[95]||=N(`span`,{class:`branch-dot`},null,-1),N(`select`,{value:Ce.value,"aria-label":`Tracked project`,onChange:o[2]||=e=>Pr(e.target.value)},[t.value?I(``,!0):(A(),j(`option`,US,`Loading`)),(A(!0),j(k,null,O(t.value?.projects??[],e=>(A(),j(`option`,{key:e.id,value:e.id,disabled:!e.available},C(e.name)+C(e.available?``:` (unavailable)`),9,WS))),128))],40,HS),o[96]||=N(`span`,null,`/`,-1),N(`strong`,null,C(t.value?.branch??`No branch`),1)]),N(`div`,GS,[N(`button`,{class:S({active:p.value===`snow`}),onClick:o[3]||=e=>Kn(`snow`)},` Aqua `,2),N(`button`,{class:S({active:p.value===`panther`}),onClick:o[4]||=e=>Kn(`panther`)},` Panther `,2),N(`button`,{class:S({active:p.value===`plain`}),onClick:o[5]||=e=>Kn(`plain`)},` Plain `,2)])]),n.value?(A(),j(`div`,KS,C(n.value),1)):t.value?I(``,!0):(A(),j(`div`,qS,[...o[97]||=[N(`div`,{class:`spinner`},null,-1),F(` Reading project evidence… `,-1)]])),t.value&&!n.value&&!t.value.initialization.initialized?(A(),j(`section`,JS,[P(E(Xb),{"aria-hidden":`true`}),N(`div`,null,[N(`strong`,null,`Set up Aperta for `+C(t.value.repo),1),o[98]||=N(`span`,null,`You can browse the repository now. Set up the project to run agents, capture changes, review code, and save what you learn.`,-1),o[99]||=N(`code`,null,`aperta init`,-1),i.value?(A(),j(`small`,YS,C(i.value),1)):I(``,!0)]),N(`button`,{type:`button`,disabled:r.value,onClick:Fr},C(r.value?`Setting up…`:`Set up Aperta`),9,XS)])):I(``,!0),t.value&&!n.value?(A(),j(`div`,{key:3,class:S([`workspace`,{"sidebar-collapsed":m.value}])},[N(`aside`,ZS,[N(`header`,QS,[o[100]||=N(`strong`,null,[N(`span`,null,`α`),N(`em`,null,`Aperta`)],-1),N(`button`,{onClick:qn,"aria-label":m.value?`Expand navigation`:`Collapse navigation`,title:m.value?`Expand navigation`:`Collapse navigation`},[m.value?(A(),M(E(_x),{key:0,class:`nav-icon`,"aria-hidden":`true`})):(A(),M(E(gx),{key:1,class:`nav-icon`,"aria-hidden":`true`}))],8,$S)]),N(`nav`,eC,[o[111]||=N(`p`,{class:`source-label`},`WORK`,-1),N(`button`,{class:S([`source-item primary-action`,{selected:a.value===`agents`}]),"aria-current":a.value===`agents`?`page`:void 0,title:`Agent Work`,onMouseenter:o[6]||=e=>Jn(e,`Agent Work`),onFocus:o[7]||=e=>Jn(e,`Agent Work`),onMouseleave:Yn,onBlur:Yn,onClick:di},[P(E(Ex),{class:`nav-icon`,"aria-hidden":`true`}),o[101]||=N(`span`,{class:`item-label`},`Agent Work`,-1),ut.value.filter(e=>e.status===`ready`).length?(A(),j(`b`,nC,C(ut.value.filter(e=>e.status===`ready`).length),1)):I(``,!0)],42,tC),N(`button`,{class:S([`source-item`,{selected:a.value===`git`}]),"aria-current":a.value===`git`?`page`:void 0,title:`Git Changes`,onMouseenter:o[8]||=e=>Jn(e,`Git Changes`),onFocus:o[9]||=e=>Jn(e,`Git Changes`),onMouseleave:Yn,onBlur:Yn,onClick:pi},[P(E(ox),{class:`nav-icon`,"aria-hidden":`true`}),o[102]||=N(`span`,{class:`item-label`},`Git Changes`,-1),xt.value?(A(),j(`b`,iC,C(xt.value.staged.length+xt.value.unstaged.length+xt.value.untracked.length),1)):I(``,!0)],42,rC),o[112]||=N(`p`,{class:`source-label secondary`},`REVIEW`,-1),N(`button`,{class:S([`source-item`,{selected:a.value===`map`}]),"aria-current":a.value===`map`?`page`:void 0,title:`Repository`,onMouseenter:o[10]||=e=>Jn(e,`Repository`),onFocus:o[11]||=e=>Jn(e,`Repository`),onMouseleave:Yn,onBlur:Yn,onClick:o[12]||=e=>a.value=`map`},[P(E(lx),{class:`nav-icon`,"aria-hidden":`true`}),o[103]||=N(`span`,{class:`item-label`},`Repository`,-1),N(`b`,null,C(t.value.repositoryFiles.length),1)],42,aC),N(`button`,{class:S([`source-item`,{selected:a.value===`queue`}]),"aria-current":a.value===`queue`?`page`:void 0,title:`Changes to Review`,onMouseenter:o[13]||=e=>Jn(e,`Changes to Review`),onFocus:o[14]||=e=>Jn(e,`Changes to Review`),onMouseleave:Yn,onBlur:Yn,onClick:o[15]||=e=>a.value=`queue`},[P(E(ux),{class:`nav-icon`,"aria-hidden":`true`}),o[104]||=N(`span`,{class:`item-label`},`Changes to Review`,-1),t.value.summary.reviewCount?(A(),j(`b`,sC,C(t.value.summary.reviewCount),1)):I(``,!0)],42,oC),N(`button`,{class:S([`source-item`,{selected:a.value===`learn`}]),"aria-current":a.value===`learn`?`page`:void 0,title:`Review Again`,onMouseenter:o[16]||=e=>Jn(e,`Review Again`),onFocus:o[17]||=e=>Jn(e,`Review Again`),onMouseleave:Yn,onBlur:Yn,onClick:o[18]||=e=>a.value=`learn`},[P(E(bx),{class:`nav-icon`,"aria-hidden":`true`}),o[105]||=N(`span`,{class:`item-label`},`Review Again`,-1),t.value.summary.learnCount?(A(),j(`b`,lC,C(t.value.summary.learnCount),1)):I(``,!0)],42,cC),o[113]||=N(`p`,{class:`source-label secondary`},`EVIDENCE`,-1),N(`button`,{class:S([`source-item`,{selected:a.value===`impact`}]),"aria-current":a.value===`impact`?`page`:void 0,title:`Change Impact`,onMouseenter:o[19]||=e=>Jn(e,`Change Impact`),onFocus:o[20]||=e=>Jn(e,`Change Impact`),onMouseleave:Yn,onBlur:Yn,onClick:yr},[P(E(cx),{class:`nav-icon`,"aria-hidden":`true`}),o[106]||=N(`span`,{class:`item-label`},`Change Impact`,-1)],42,uC),N(`button`,{class:S([`source-item`,{selected:a.value===`proofgraph`}]),"aria-current":a.value===`proofgraph`?`page`:void 0,title:`Ownership Graph`,onMouseenter:o[21]||=e=>Jn(e,`Ownership Graph`),onFocus:o[22]||=e=>Jn(e,`Ownership Graph`),onMouseleave:Yn,onBlur:Yn,onClick:Br},[P(E(qb),{class:`nav-icon`,"aria-hidden":`true`}),o[107]||=N(`span`,{class:`item-label`},`Ownership Graph`,-1),It.value?.summary.stale?(A(),j(`b`,fC,C(It.value.summary.stale),1)):I(``,!0)],42,dC),N(`button`,{class:S([`source-item`,{selected:a.value===`journal`}]),"aria-current":a.value===`journal`?`page`:void 0,title:`Review Notes`,onMouseenter:o[23]||=e=>Jn(e,`Review Notes`),onFocus:o[24]||=e=>Jn(e,`Review Notes`),onMouseleave:Yn,onBlur:Yn,onClick:o[25]||=e=>a.value=`journal`},[P(E(mx),{class:`nav-icon`,"aria-hidden":`true`}),o[108]||=N(`span`,{class:`item-label`},`Review Notes`,-1)],42,pC),N(`button`,{class:S([`source-item`,{selected:a.value===`activity`}]),"aria-current":a.value===`activity`?`page`:void 0,title:`Change History`,onMouseenter:o[26]||=e=>Jn(e,`Change History`),onFocus:o[27]||=e=>Jn(e,`Change History`),onMouseleave:Yn,onBlur:Yn,onClick:o[28]||=e=>a.value=`activity`},[P(E(Ub),{class:`nav-icon`,"aria-hidden":`true`}),o[109]||=N(`span`,{class:`item-label`},`Change History`,-1)],42,mC),N(`button`,{class:S([`source-item`,{selected:a.value===`harness`}]),"aria-current":a.value===`harness`?`page`:void 0,title:`Agent Reliability`,onMouseenter:o[29]||=e=>Jn(e,`Agent Reliability`),onFocus:o[30]||=e=>Jn(e,`Agent Reliability`),onMouseleave:Yn,onBlur:Yn,onClick:Jr},[P(E(ax),{class:`nav-icon`,"aria-hidden":`true`}),o[110]||=N(`span`,{class:`item-label`},`Agent Reliability`,-1),Nt.value?.signals?.some(e=>e.level!==`healthy`)?(A(),j(`b`,gC,C(Nt.value.signals.filter(e=>e.level!==`healthy`).length),1)):I(``,!0)],42,hC)]),N(`div`,_C,[N(`div`,{class:S([`observer-card`,t.value.observer?.state]),title:at.value,"aria-label":at.value,tabindex:`0`,onMouseenter:o[31]||=e=>Jn(e,at.value),onFocus:o[32]||=e=>Jn(e,at.value),onMouseleave:Yn,onBlur:Yn},[o[114]||=N(`i`,null,null,-1),N(`div`,null,[N(`strong`,null,C(t.value.observer?.state===`grouping`?`Grouping changes`:t.value.observer?.state===`error`?`Needs attention`:`Watching`),1),N(`span`,null,C(t.value.observer?.branch??t.value.branch),1)])],42,vC),N(`button`,{class:S([`source-item settings-link`,{selected:a.value===`settings`}]),"aria-current":a.value===`settings`?`page`:void 0,title:`Settings`,onMouseenter:o[33]||=e=>Jn(e,`Settings`),onFocus:o[34]||=e=>Jn(e,`Settings`),onMouseleave:Yn,onBlur:Yn,onClick:Xr},[P(E(wx),{class:`nav-icon`,"aria-hidden":`true`}),o[115]||=N(`span`,{class:`item-label`},`Settings`,-1)],42,yC)])]),h.value?(A(),j(`div`,{key:0,class:`collapsed-nav-tooltip`,role:`tooltip`,style:_e({top:`${h.value.top}px`,left:`${h.value.left}px`})},C(h.value.label),5)):I(``,!0),N(`section`,{class:S([`content`,{"agent-content":a.value===`agents`}])},[a.value===`map`?(A(),j(k,{key:0},[o[126]||=ia(`<div class="section-head"><div><h2>Explore your code</h2><p> Browse the repository. Changed files show their source and review status. </p></div><div class="legend"><span><i class="danger"></i>Needs review</span><span><i class="warning"></i>Can trace</span><span><i class="good"></i>Owned</span><span><i class="unknown"></i>Not reviewed</span></div></div>`,1),N(`div`,{class:`repository-explorer`,style:_e({"--repository-tree-width":`${_.value}px`})},[N(`aside`,bC,[N(`header`,null,[N(`label`,null,[o[116]||=N(`span`,null,`⌕`,-1),Ln(N(`input`,{"onUpdate:modelValue":o[35]||=e=>ot.value=e,type:`search`,placeholder:`Filter files…`,"aria-label":`Filter repository files`},null,512),[[wo,ot.value]])]),N(`small`,null,C(t.value.repositoryFiles.length)+` Git-visible files`,1)]),N(`ul`,null,[(A(!0),j(k,null,O(hn.value,e=>(A(),M(NS,{key:e.path,node:e,"selected-path":d.value,onSelect:Gn},null,8,[`node`,`selected-path`]))),128))]),hn.value.length?I(``,!0):(A(),j(`div`,xC,` No files match this filter. `))]),N(`button`,{class:`repository-resizer`,"aria-label":`Resize repository tree`,title:`Drag to resize repository tree`,onPointerdown:No(Qn,[`prevent`]),onKeydown:[o[36]||=Fo(No(e=>Zn(-20),[`prevent`]),[`left`]),o[37]||=Fo(No(e=>Zn(20),[`prevent`]),[`right`])]},[...o[117]||=[N(`span`,null,null,-1)]],32),N(`section`,SC,[w.value?(A(),j(`header`,CC,[N(`div`,wC,[o[118]||=N(`span`,{class:`large-file-icon`},`‹›`,-1),N(`div`,null,[N(`h3`,null,C(kn(w.value.path)),1),N(`p`,null,C(An(w.value.path)),1)])]),N(`dl`,TC,[N(`div`,EC,[o[119]||=N(`dt`,null,`Ownership`,-1),N(`dd`,null,[N(`span`,{class:S([`status-lozenge`,xn(w.value.score).tone])},C(xn(w.value.score).label),3)])]),N(`div`,null,[o[121]||=N(`dt`,null,`Review score`,-1),N(`dd`,null,[F(C(Sn(w.value.score))+` `,1),o[120]||=N(`small`,null,`of 3`,-1)])]),N(`div`,null,[o[122]||=N(`dt`,null,`AI-touched`,-1),N(`dd`,null,C(Cn(w.value.aiRatio)),1)]),N(`div`,null,[o[124]||=N(`dt`,null,`Changed lines`,-1),N(`dd`,null,[F(C(w.value.totalLines)+` `,1),o[123]||=N(`small`,null,`lines`,-1)])])])])):I(``,!0),w.value?(A(),j(`div`,DC,[N(`span`,null,C(st.value?.language??`source`)+` · `+C(st.value?`${Math.max(1,Math.round(st.value.size/1024))} KB`:`loading`),1),N(`div`,null,[(A(!0),j(k,null,O(Zt.value.slice().reverse().slice(0,2),e=>(A(),j(`button`,{key:e.id,onClick:t=>Mr(e.id)},` Review `+C(Dn(e.ts)),9,OC))),128))])])):I(``,!0),ct.value?(A(),j(`div`,kC,[...o[125]||=[N(`div`,{class:`spinner`},null,-1),F(` Reading file… `,-1)]])):lt.value?(A(),j(`div`,AC,C(lt.value),1)):st.value?.binary?(A(),j(`div`,jC,` Binary files are tracked but not rendered. `)):st.value?(A(),j(`div`,{key:5,class:`repository-source`,"aria-label":`Source for ${st.value.path}`},[(A(!0),j(k,null,O(gn.value,(e,t)=>(A(),j(`code`,{key:t},[N(`span`,NC,C(t+1),1),N(`span`,PC,[(A(!0),j(k,null,O(E(zx)(e,st.value.path),(e,t)=>(A(),j(`span`,{key:t,class:S(`syntax-${e.kind}`)},C(e.text),3))),128))])]))),128)),st.value.truncated?(A(),j(`footer`,FC,` Preview limited to the first 1 MB. `)):I(``,!0)],8,MC)):(A(),j(`div`,IC,` Choose a file to read its source and review history. `))])],4)],64)):a.value===`queue`?(A(),j(k,{key:1},[N(`div`,LC,[o[127]||=N(`div`,null,[N(`h2`,null,`Changes to review`),N(`p`,null,` Review the latest version of each changed file. Aperta groups overlapping captures for you. `)],-1),N(`div`,RC,[N(`button`,{class:`review-filter-toggle`,type:`button`,"aria-expanded":oe.value,onClick:o[38]||=e=>oe.value=!oe.value},` Review filters`+C(t.value.reviewSettings.ignorePatterns.length?` · ${t.value.reviewSettings.ignorePatterns.length}`:``),9,zC),N(`span`,BC,C(t.value.queue.length)+` waiting`,1)])]),oe.value?(A(),j(`form`,{key:0,class:`review-filter-panel`,onSubmit:No(kr,[`prevent`])},[o[128]||=N(`div`,null,[N(`strong`,null,`Hide low-signal files from this queue`),N(`p`,null,`Enter one JavaScript regex per line. Patterns match repository-relative paths. Aperta still captures these files and keeps their evidence and history.`)],-1),Ln(N(`textarea`,{"onUpdate:modelValue":o[39]||=e=>se.value=e,rows:`5`,spellcheck:`false`,placeholder:`(^|/)package-lock\\.json$
|
|
22
|
+
(^|/)\\.gitignore$`},null,512),[[wo,se.value]]),N(`div`,VC,[N(`button`,{type:`button`,class:`secondary`,onClick:Or},`Add common examples`),N(`button`,{type:`button`,class:`secondary`,onClick:o[40]||=e=>{oe.value=!1,le.value=``}},`Cancel`),N(`button`,{type:`submit`,disabled:ce.value},C(ce.value?`Saving…`:`Save filters`),9,HC)]),le.value?(A(),j(`p`,UC,C(le.value),1)):I(``,!0)],32)):I(``,!0),N(`div`,WC,[(A(!0),j(k,null,O(t.value.queue,e=>(A(),j(`article`,{key:e.diffId,class:S([`queue-card`,{pending:e.kind===`pending`}])},[N(`span`,{class:S([`priority-light`,e.priority])},null,2),N(`div`,null,[N(`p`,null,C(e.label),1),N(`h3`,null,C(e.files.map(e=>kn(e.path)).slice(0,3).join(`, `)),1),N(`small`,null,[F(C(e.files.length)+` file`+C(e.files.length===1?``:`s`)+` · `+C(e.model??`unattributed`)+` · `,1),N(`time`,{datetime:e.ts,title:new Date(e.ts).toLocaleString()},C(On(e.ts)),9,GC)]),e.supersededCount?(A(),j(`small`,KC,` Includes `+C(e.supersededCount)+` earlier overlapping capture`+C(e.supersededCount===1?``:`s`)+`. `,1)):I(``,!0),e.ignoredFileCount?(A(),j(`small`,qC,C(e.ignoredFileCount)+` file`+C(e.ignoredFileCount===1?``:`s`)+` hidden by review filters. `,1)):I(``,!0),e.skippedAt?(A(),j(`small`,JC,` Skipped for now · returns after current reviews `)):I(``,!0)]),N(`div`,YC,[N(`button`,{disabled:e.kind===`pending`||ae.value===e.diffId,onClick:t=>Tr(e)},C(e.kind===`pending`?`Waiting for quiet…`:`Review change`),9,XC),e.kind===`pending`?I(``,!0):(A(),j(`button`,{key:0,class:`secondary`,disabled:!!ae.value||!!e.skippedAt,onClick:t=>Dr(e)},C(e.skippedAt?`Skipped`:ae.value===e.diffId?`Skipping…`:`Skip for now`),9,ZC))])],2))),128)),t.value.queue.length?I(``,!0):(A(),j(`div`,QC,[...o[129]||=[N(`strong`,null,`Nothing needs review.`,-1),N(`span`,null,`New staged or unstaged changes will appear here automatically.`,-1)]]))])],64)):a.value===`learn`?(A(),j(k,{key:2},[N(`div`,$C,[o[130]||=N(`div`,null,[N(`h2`,null,`Review again`),N(`p`,null,` Revisit what you learned after time passes or when the code changes again. `)],-1),N(`span`,ew,C(t.value.summary.learnCount)+` due`,1)]),N(`div`,tw,[(A(!0),j(k,null,O(t.value.learnNext,e=>(A(),j(`article`,{key:e.diffId,class:S([`queue-card`,{upcoming:!e.due,stale:e.stale}])},[N(`span`,{class:S([`priority-light`,e.stale?`high`:e.due?`medium`:`low`])},null,2),N(`div`,null,[N(`p`,null,C(e.label),1),N(`h3`,null,C(e.files.map(e=>kn(e.path)).slice(0,3).join(`, `)),1),N(`small`,null,C(e.stale?`A later change made this review stale`:e.due?`Ready to review again`:`Scheduled ${new Date(e.dueAt).toLocaleDateString()}`)+` · last confidence `+C(e.score??`unrated`)+`/3`,1)]),N(`button`,{disabled:!e.due,onClick:t=>Mr(e.diffId)},C(e.due?`Review again`:`Not due yet`),9,nw)],2))),128)),t.value.learnNext.length?I(``,!0):(A(),j(`div`,rw,[...o[131]||=[N(`strong`,null,`Complete your first review.`,-1),N(`span`,null,`Aperta will bring it back when it is time to check what you remember.`,-1)]]))])],64)):a.value===`impact`?(A(),j(k,{key:3},[N(`div`,iw,[o[133]||=N(`div`,null,[N(`h2`,null,`What this change affects`),N(`p`,null,` Follow the change through related code, tests, and missing evidence. `)],-1),N(`label`,null,[o[132]||=N(`span`,null,`CAPTURE`,-1),Ln(N(`select`,{"onUpdate:modelValue":o[41]||=e=>Te.value=e,onChange:o[42]||=e=>_r(Te.value)},[(A(!0),j(k,null,O(t.value.diffs.slice().reverse(),e=>(A(),j(`option`,{key:e.id,value:e.id},C(Dn(e.ts))+` · `+C(e.files.map(e=>kn(e.path)).slice(0,2).join(`, `)),9,aw))),128))],544),[[Do,Te.value]])])]),Ee.value?(A(),j(`div`,ow,[P(E(fx),{class:`impact-spinner`,"aria-hidden":`true`}),o[134]||=F(` Finding related code and tests… `,-1)])):we.value?(A(),j(`div`,sw,[N(`header`,cw,[N(`div`,null,[N(`p`,lw,C(we.value.analyzer),1),N(`h3`,null,C(we.value.headline),1),N(`p`,null,C(we.value.narrative),1)]),N(`span`,{class:S([`risk-chip`,we.value.risk])},C(we.value.risk)+` impact`,3)]),N(`section`,uw,[N(`header`,null,[o[135]||=N(`div`,null,[N(`p`,{class:`eyebrow`},`EVIDENCE QUALITY`),N(`h3`,null,`See what Aperta found and how certain it is.`)],-1),N(`span`,null,C(we.value.languages.join(` + `)||`Language unknown`),1)]),N(`div`,dw,[(A(!0),j(k,null,O(bn.value,e=>(A(),j(`article`,{key:e.id,class:S(e.status)},[N(`span`,fw,[e.status===`available`?(A(),M(E(Zb),{key:0})):e.status===`partial`?(A(),M(E(Xb),{key:1})):(A(),M(E(Qb),{key:2}))]),N(`div`,null,[N(`strong`,null,C(e.label),1),N(`small`,null,C(e.detail),1)])],2))),128))]),o[136]||=N(`p`,null,[N(`b`,null,`Observed`),F(` comes directly from Git. `),N(`b`,null,`Inferred`),F(` is a structural lead. `),N(`b`,null,`Proven`),F(` requires executed evidence. `)],-1)]),N(`div`,pw,[(A(!0),j(k,null,O(we.value.insights,e=>(A(),j(`span`,{key:e},C(e),1))),128))]),Oe.value?(A(),j(`section`,{key:0,class:S([`proof-engine`,Oe.value.latest?.status??`ready`])},[N(`div`,mw,[Oe.value.latest?.status===`proven`?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):Oe.value.latest?.status===`regressed`?(A(),M(E(Ox),{key:1,"aria-hidden":`true`})):(A(),M(E(vx),{key:2,"aria-hidden":`true`}))]),N(`div`,hw,[N(`p`,gw,` PROOF ENGINE · `+C(Oe.value.latest?Oe.value.latest.status:`READY`),1),N(`h3`,null,C(Oe.value.latest?.status===`proven`?`Executed evidence supports this change.`:Oe.value.latest?.status===`regressed`?`The relevant evidence is failing.`:`Run a check to replace an inference with evidence.`),1),N(`p`,null,[F(C(Oe.value.plan.scope),1),Oe.value.plan.command?(A(),j(k,{key:0},[o[137]||=F(` · `,-1),N(`code`,null,C(Oe.value.plan.command),1)],64)):I(``,!0)]),N(`small`,null,C(Oe.value.plan.coveredNodeIds.length)+` graph surface`+C(Oe.value.plan.coveredNodeIds.length===1?``:`s`)+` can receive proof · `+C(Oe.value.plan.proposedProbes.length)+` missing probe`+C(Oe.value.plan.proposedProbes.length===1?``:`s`),1)]),N(`div`,_w,[N(`button`,{disabled:!Oe.value.plan.available||ke.value,onClick:pr},C(ke.value?`${Ae.value?.state??`Starting`} evidence…`:Oe.value.latest?`Run proof again`:`Run relevant proof`),9,vw),ke.value?(A(),j(`button`,{key:0,class:`cancel-job`,onClick:o[43]||=e=>gr(Ae.value)},` Cancel job`)):Oe.value.latest?(A(),j(`button`,{key:1,class:`output-toggle`,onClick:o[44]||=e=>Me.value=!Me.value},C(Me.value?`Hide`:`Inspect`)+` output `,1)):I(``,!0)]),je.value?(A(),j(`div`,yw,C(je.value),1)):I(``,!0),Oe.value.latest?(A(),j(`div`,bw,[N(`span`,null,C(Oe.value.latest.runner),1),N(`strong`,null,C(Oe.value.latest.status),1),N(`small`,null,C((Oe.value.latest.durationMs/1e3).toFixed(1))+`s · exit `+C(Oe.value.latest.exitCode??`unknown`)+` · `+C(new Date(Oe.value.latest.ts).toLocaleString()),1)])):I(``,!0),Me.value&&Oe.value.latest?(A(),j(`pre`,xw,C(Oe.value.latest.output||`The runner completed without console output.`),1)):I(``,!0)],2)):I(``,!0),Ne.value?.probes.length?(A(),j(`section`,Sw,[N(`header`,null,[o[138]||=N(`div`,null,[N(`p`,{class:`eyebrow`},`MISSING PROOF`),N(`h3`,null,`Test what your current suite does not cover.`),N(`p`,null,` Aperta runs generated tests in a disposable copy. It does not change your repository. `)],-1),N(`span`,null,C(Ne.value.probes.filter(e=>e.latest?.status===`proven`).length)+`/`+C(Ne.value.probes.length)+` proven`,1)]),N(`div`,Cw,[(A(!0),j(k,null,O(Ne.value.probes,e=>(A(),j(`button`,{key:e.id,class:S([`probe-card`,e.latest?.status??e.readiness,{active:pn.value?.id===e.id}]),onClick:t=>{Pe.value=e.id,Re.value=!1}},[N(`span`,Tw,C(e.latest?.status??(e.readiness===`ready`?`ready`:`needs context`)),1),N(`strong`,null,C(e.label),1),N(`small`,null,C(e.hypothesis),1),N(`em`,null,C(e.framework),1)],10,ww))),128))]),pn.value?(A(),j(`article`,Ew,[N(`div`,Dw,[N(`span`,{class:S([`probe-state`,pn.value.latest?.status??pn.value.readiness])},C(pn.value.latest?.status??pn.value.readiness),3),N(`h3`,null,C(pn.value.label),1),N(`p`,null,C(pn.value.why),1),N(`dl`,null,[o[141]||=N(`div`,null,[N(`dt`,null,`Isolation`),N(`dd`,null,` Disposable project copy · minimized environment · network not isolated `)],-1),N(`div`,null,[o[139]||=N(`dt`,null,`Generated file`,-1),N(`dd`,null,C(pn.value.generatedPath),1)]),N(`div`,null,[o[140]||=N(`dt`,null,`Command`,-1),N(`dd`,null,C(pn.value.command??`Waiting for a concrete protected route`),1)])]),N(`button`,{disabled:pn.value.readiness!==`ready`||!!Fe.value,onClick:o[45]||=e=>fr(pn.value)},C(Fe.value===pn.value.id?`${Ie.value?.state??`Starting`} probe…`:pn.value.latest?`Run probe again`:`Run isolated probe`),9,Ow),Fe.value?(A(),j(`button`,{key:0,class:`cancel-job`,onClick:o[46]||=e=>gr(Ie.value)},` Cancel job`)):pn.value.latest?(A(),j(`button`,{key:1,class:`probe-output-toggle`,onClick:o[47]||=e=>Re.value=!Re.value},C(Re.value?`Show source`:`Show result`),1)):I(``,!0)]),N(`div`,kw,[N(`header`,null,[N(`span`,null,C(Re.value&&pn.value.latest?`EXECUTION RESULT`:`GENERATED TEST PREVIEW`),1),N(`small`,null,C(Re.value&&pn.value.latest?`${(pn.value.latest.durationMs/1e3).toFixed(1)}s · exit ${pn.value.latest.exitCode??`unknown`}`:`Nothing written to your repository`),1)]),Re.value&&pn.value.latest?(A(),j(`pre`,Aw,C(pn.value.latest.output||`The probe passed without console output.`),1)):(A(),j(`div`,jw,[(A(!0),j(k,null,O(pn.value.source.split(`
|
|
23
|
+
`),(e,t)=>(A(),j(`code`,{key:t},[N(`span`,Mw,C(t+1),1),N(`span`,Nw,[(A(!0),j(k,null,O(E(zx)(e,pn.value.generatedPath),(e,t)=>(A(),j(`span`,{key:t,class:S(`syntax-${e.kind}`)},C(e.text),3))),128))])]))),128))]))])])):I(``,!0),Le.value?(A(),j(`div`,Pw,C(Le.value),1)):I(``,!0)])):I(``,!0),N(`div`,Fw,[N(`section`,Iw,[N(`header`,null,[N(`span`,null,[P(E(ox),{"aria-hidden":`true`})]),o[142]||=N(`div`,null,[N(`strong`,null,`Changed behavior`),N(`small`,null,`Added, modified, or removed`)],-1)]),(A(!0),j(k,null,O(cn.value,e=>(A(),j(`button`,{key:e.id,class:S([`impact-node`,e.status,or(e.id),{active:dn.value?.id===e.id}]),onClick:t=>De.value=e.id},[N(`span`,Rw,[(A(),M(Er(cr(e.kind)),{"aria-hidden":`true`})),N(`span`,null,C(e.kind),1)]),N(`strong`,null,C(e.label),1),N(`em`,{class:S([`evidence-badge`,sr(e)])},C(sr(e)),3),N(`small`,null,C(e.detail),1)],10,Lw))),128)),cn.value.length?I(``,!0):(A(),j(`div`,zw,` No code symbols detected `))]),N(`div`,Bw,[P(E(Gb))]),N(`section`,Vw,[N(`header`,null,[N(`span`,null,[P(E(cx),{"aria-hidden":`true`})]),o[143]||=N(`div`,null,[N(`strong`,null,`Dependencies & callers`),N(`small`,null,`Related code`)],-1)]),(A(!0),j(k,null,O(ln.value,e=>(A(),j(`button`,{key:e.id,class:S([`impact-node`,e.status,or(e.id),{active:dn.value?.id===e.id}]),onClick:t=>De.value=e.id},[N(`span`,Uw,[(A(),M(Er(cr(e.kind)),{"aria-hidden":`true`})),N(`span`,null,C(e.kind),1)]),N(`strong`,null,C(e.label),1),N(`em`,{class:S([`evidence-badge`,sr(e)])},C(sr(e)),3),N(`small`,null,C(e.detail),1)],10,Hw))),128)),ln.value.length?I(``,!0):(A(),j(`div`,Ww,` No external caller found in tracked source `))]),N(`div`,Gw,[P(E(Gb))]),N(`section`,Kw,[N(`header`,null,[N(`span`,null,[P(E(Tx),{"aria-hidden":`true`})]),o[144]||=N(`div`,null,[N(`strong`,null,`Proof & unknowns`),N(`small`,null,`What evidence can defend`)],-1)]),(A(!0),j(k,null,O(un.value,e=>(A(),j(`button`,{key:e.id,class:S([`impact-node`,e.status,or(e.id),{active:dn.value?.id===e.id}]),onClick:t=>De.value=e.id},[N(`span`,Jw,[P(E(ix),{"aria-hidden":`true`}),o[145]||=N(`span`,null,`test`,-1)]),N(`strong`,null,C(e.label),1),N(`em`,{class:S([`evidence-badge`,sr(e)])},C(sr(e)),3),N(`small`,null,C(e.detail),1)],10,qw))),128)),(A(!0),j(k,null,O(we.value.unproven,e=>(A(),j(`article`,{key:e,class:`unproven-node`},[N(`span`,Yw,[P(E(Xb),{"aria-hidden":`true`}),o[146]||=F(`NEEDS PROBE`,-1)]),N(`strong`,null,C(e),1)]))),128))])]),dn.value?(A(),j(`aside`,Xw,[N(`div`,null,[N(`span`,{class:S([`node-status`,dn.value.status])},C(dn.value.status),3),N(`h3`,null,C(dn.value.label),1),N(`p`,null,C(dn.value.path??dn.value.kind)+` · `+C(dn.value.detail),1),N(`p`,Zw,[N(`b`,null,C(sr(dn.value))+` via `+C(sr(dn.value)===`proven`?`runtime`:dn.value.evidence.source),1),F(` · `+C(lr(dn.value)),1)])]),N(`section`,null,[o[147]||=N(`small`,null,`CONNECTED RELATIONSHIPS`,-1),(A(!0),j(k,null,O(fn.value,e=>(A(),j(`button`,{key:`${e.from}-${e.to}-${e.kind}`,onClick:t=>De.value=e.node.id},[N(`b`,null,C(e.kind),1),N(`span`,null,C(e.node.label),1),N(`em`,{title:e.evidence.detail},C(e.evidence.level),9,$w)],8,Qw))),128)),fn.value.length?I(``,!0):(A(),j(`p`,eT,` No direct edge detected. This is still a change surface worth verifying. `))])])):I(``,!0),we.value.staleNotes.length?(A(),j(`div`,tT,[o[148]||=N(`strong`,null,`Your earlier review may be stale`,-1),N(`p`,null,C(we.value.staleNotes.length)+` saved explanation`+C(we.value.staleNotes.length===1?``:`s`)+` mention files changed again. Re-verify before relying on them. `,1)])):I(``,!0),N(`button`,{class:`impact-review`,onClick:o[48]||=e=>Mr(Te.value)},[o[149]||=F(` Review this change `,-1),P(E(Gb),{"aria-hidden":`true`})])])):(A(),j(`div`,nT,[...o[150]||=[N(`strong`,null,`No captured change to trace.`,-1),N(`span`,null,`Make a code change and Aperta will map what it affects.`,-1)]]))],64)):a.value===`proofgraph`?(A(),j(k,{key:4},[N(`div`,rT,[o[151]||=N(`div`,null,[N(`p`,{class:`eyebrow`},`PROJECT OWNERSHIP`),N(`h2`,null,`Ownership Graph`),N(`p`,null,`See what changed, what supports it, who can defend it, and what needs another look.`)],-1),N(`osx-button`,{icon:`refresh-cw`,disabled:Lt.value,onClick:o[49]||=e=>zr()},C(Lt.value?`Refreshing…`:`Refresh records`),9,iT)]),Rt.value?(A(),j(`div`,aT,C(Rt.value),1)):Lt.value&&!It.value?(A(),j(`div`,oT,[...o[152]||=[N(`div`,{class:`spinner`},null,-1),F(` Connecting project evidence… `,-1)]])):It.value?(A(),j(`div`,sT,[N(`section`,cT,[N(`article`,null,[N(`osx-heading`,lT,C(It.value.summary.claims),1),o[153]||=N(`osx-copy`,{size:`small`,tone:`muted`},`current records`,-1)]),N(`article`,uT,[N(`osx-heading`,dT,C(It.value.summary.proven),1),o[154]||=N(`osx-copy`,{size:`small`,tone:`muted`},`with executable proof`,-1)]),N(`article`,fT,[N(`osx-heading`,pT,C(It.value.summary.defended),1),o[155]||=N(`osx-copy`,{size:`small`,tone:`muted`},`defended by you`,-1)]),N(`article`,mT,[N(`osx-heading`,hT,C(It.value.summary.stale),1),o[156]||=N(`osx-copy`,{size:`small`,tone:`muted`},`need another look`,-1)]),N(`article`,null,[N(`osx-heading`,gT,C(It.value.summary.history),1),o[157]||=N(`osx-copy`,{size:`small`,tone:`muted`},`historical revisions`,-1)]),N(`article`,null,[N(`osx-heading`,_T,C(It.value.summary.coveredFiles),1),o[158]||=N(`osx-copy`,{size:`small`,tone:`muted`},`connected files`,-1)])]),N(`section`,vT,[N(`div`,yT,[o[159]||=N(`osx-copy`,{size:`small`,tone:`muted`,weight:`bold`},`View`,-1),N(`osx-segmented-control`,{items:`Needs attention,Current records,History`,value:qt.value,label:`Ownership record view`,onChange:Vr},null,40,bT)]),N(`div`,xT,[N(`osx-text-field`,{type:`search`,label:`Find a record`,placeholder:`Search files, behavior, or evidence`,value:Vt.value,onInput:Ur},null,40,ST),N(`osx-select`,{options:`All statuses,Proven,Understood,Supported,Stale,Regressed,Unproven`,value:Jt.value,label:`Evidence status`,onChange:Hr},null,40,CT)])]),Yt.value?(A(),j(`osx-copy`,wT,C(Yt.value),1)):I(``,!0),Kt.value.length?(A(),j(`section`,TT,[(A(!0),j(k,null,O(Kt.value,e=>(A(),j(`article`,{key:e.id,class:S([`proof-claim`,e.status])},[N(`header`,null,[N(`span`,{class:S([`proof-status-dot`,e.status]),"aria-hidden":`true`},null,2),N(`div`,null,[N(`osx-heading`,ET,C(e.source===`agent-run`?`Agent behavior`:Bt.value===`history`?`Historical revision`:`Captured change`),1),N(`osx-heading`,DT,C(e.title),1)]),N(`div`,OT,[N(`osx-badge`,{tone:Rr(e.status),label:e.status,dot:``},null,8,kT),e.revisionCount>1?(A(),j(`osx-badge`,{key:0,tone:`neutral`,label:`${e.revisionCount} revisions`},null,8,AT)):I(``,!0)])]),N(`osx-copy`,jT,C(e.ownershipStatus===`defended`?`Engineer defense on record`:e.ownershipStatus===`reviewed`?`Reviewed, but not yet defended`:`Needs an engineer defense`),1),P($x,{class:`proof-claim-detail`,source:e.detail},null,8,[`source`]),N(`div`,MT,[(A(!0),j(k,null,O(e.files,e=>(A(),j(`osx-button`,{key:e,size:`small`,icon:`file-code`,onClick:t=>{a.value=`map`,Gn(e)}},C(e),9,NT))),128)),e.files.length?I(``,!0):(A(),j(`osx-copy`,PT,`Repository observation`))]),e.invalidatedAt?(A(),j(`div`,FT,[o[161]||=N(`osx-icon`,{name:`warning`,size:18,label:`Warning`},null,-1),N(`div`,null,[o[160]||=N(`osx-copy`,{size:`small`,weight:`bold`},`Evidence needs another look`,-1),N(`osx-copy`,IT,C(e.invalidatedBy)+` changed `+C(e.invalidatedFiles.join(`, `))+` on `+C(Dn(e.invalidatedAt))+`.`,1)])])):I(``,!0),e.evidence.length?(A(),j(`details`,LT,[N(`summary`,null,C(e.evidence.length)+` evidence record`+C(e.evidence.length===1?``:`s`),1),N(`ul`,null,[(A(!0),j(k,null,O(e.evidence,e=>(A(),j(`li`,{key:e.id},[N(`span`,{class:S([`evidence-kind`,e.kind])},C(e.kind),3),N(`div`,null,[N(`strong`,null,C(e.label),1),N(`p`,null,C(e.detail),1)]),N(`time`,null,C(Dn(e.ts)),1)]))),128))])])):I(``,!0),N(`footer`,null,[N(`osx-copy`,RT,C(Dn(e.ts)),1),e.assuranceAt?(A(),j(`osx-copy`,zT,`Last assured `+C(Dn(e.assuranceAt)),1)):I(``,!0),e.source===`captured-change`?(A(),j(`osx-button`,{key:1,size:`small`,disabled:Wt.value,onClick:t=>Wr(e.id.slice(5))},C(Wt.value?`Building record…`:`Open record`),9,BT)):I(``,!0)])],2))),128))])):(A(),j(`osx-empty-state`,VT)),It.value.page.pages>1?(A(),j(`nav`,HT,[N(`osx-button`,{size:`small`,icon:`chevron-left`,disabled:It.value.page.number<=1||Lt.value,onClick:o[50]||=e=>zr(It.value.page.number-1)},`Previous`,8,UT),N(`osx-copy`,WT,`Page `+C(It.value.page.number)+` of `+C(It.value.page.pages),1),N(`osx-button`,{size:`small`,icon:`chevron-right`,"icon-position":`trailing`,disabled:It.value.page.number>=It.value.page.pages||Lt.value,onClick:o[51]||=e=>zr(It.value.page.number+1)},`Next`,8,GT)])):I(``,!0),Gt.value?(A(),j(`p`,KT,C(Gt.value),1)):I(``,!0)])):I(``,!0)],64)):a.value===`journal`?(A(),j(k,{key:5},[N(`div`,qT,[o[162]||=N(`div`,null,[N(`h2`,null,`Review notes`),N(`p`,null,`Search the explanations you saved while reviewing code.`)],-1),Ln(N(`input`,{"onUpdate:modelValue":o[52]||=e=>xe.value=e,type:`search`,placeholder:`Search notes, files, or tools…`,"aria-label":`Search review notes`},null,512),[[wo,xe.value]])]),N(`div`,JT,[(A(!0),j(k,null,O(nn.value,e=>(A(),j(`button`,{key:e.diffId,class:`journal-card`,onClick:t=>Mr(e.diffId)},[N(`div`,XT,[N(`span`,null,C(Dn(e.completions?.[0]?.ts??e.evidence?.[0]?.ts??e.notes?.[0]?.ts??e.ts)),1),N(`strong`,null,C(e.model??e.authorship),1),N(`em`,{class:S(e.demonstrated?`verified`:`claimed`)},C(e.demonstrated?`Demonstrated`:`Reviewed`),3),N(`b`,{class:S(xn(e.score).tone)},C(e.score??`n/a`)+`/3`,3)]),N(`blockquote`,null,C(Wn(e)),1),N(`div`,ZT,C(e.files.map(e=>e.path).slice(0,4).join(` · `)),1),N(`small`,null,C(e.notes.length)+` note`+C(e.notes.length===1?``:`s`)+` · `+C(e.evidence?.at(0)?.completedCount??0)+` required evidence answers · `+C(Math.max(1,Math.round(e.durationMs/6e4)))+` min reviewed`,1)],8,YT))),128)),nn.value.length?I(``,!0):(A(),j(`div`,QT,[N(`strong`,null,C(xe.value?`No sessions match.`:`Your journal starts after the first review.`),1),o[163]||=N(`span`,null,`Every completed review stays here, even when you did not add a note.`,-1)]))])],64)):a.value===`git`?(A(),j(k,{key:6},[N(`div`,$T,[N(`div`,null,[o[164]||=N(`p`,{class:`eyebrow`},`WORKING TREE`,-1),o[165]||=N(`h2`,null,`Git Changes`,-1),N(`p`,null,`Live staged, unstaged, and untracked repository state on `+C(xt.value?.branch??t.value.branch)+`.`,1)]),N(`button`,{class:`git-refresh`,disabled:St.value,onClick:fi},[P(E(bx),{class:`action-icon`,"aria-hidden":`true`}),F(C(St.value?`Refreshing…`:`Refresh`),1)],8,eE)]),Ct.value?(A(),j(`div`,tE,C(Ct.value),1)):St.value&&!xt.value?(A(),j(`div`,nE,[...o[166]||=[N(`div`,{class:`spinner`},null,-1),F(`Reading working tree…`,-1)]])):(A(),j(`div`,rE,[(A(!0),j(k,null,O([{key:`staged`,title:`Staged`,copy:`Ready for the next commit`,files:xt.value?.staged??[]},{key:`unstaged`,title:`Unstaged`,copy:`Tracked files changed in the working tree`,files:xt.value?.unstaged??[]},{key:`untracked`,title:`Untracked`,copy:`New files not yet added to Git`,files:xt.value?.untracked??[]}],e=>(A(),j(`section`,{key:e.key,class:S([`git-group`,e.key])},[N(`header`,null,[N(`div`,null,[N(`h3`,null,C(e.title),1),N(`p`,null,C(e.copy),1)]),N(`b`,null,C(e.files.length),1)]),(A(!0),j(k,null,O(e.files,t=>(A(),j(`button`,{key:`${e.key}-${t.path}`,onClick:e=>{a.value=`map`,Gn(t.path)}},[N(`span`,{class:S([`git-status-code`,e.key])},C(t.code),3),N(`span`,null,[N(`strong`,null,C(kn(t.path)),1),N(`small`,null,C(An(t.path)),1)]),N(`em`,null,C(t.status),1)],8,iE))),128)),e.files.length?I(``,!0):(A(),j(`div`,aE,[P(E(Zb),{class:`action-icon`,"aria-hidden":`true`}),F(`Nothing `+C(e.key),1)]))],2))),128))]))],64)):a.value===`activity`?(A(),j(k,{key:7},[N(`div`,oE,[o[167]||=N(`div`,null,[N(`h2`,null,`Change history`),N(`p`,null,` See what Aperta captured, when it happened, and which branch changed. `)],-1),N(`span`,{class:S([`engine-badge`,t.value.observer?.mode])},C(t.value.observer?.mode===`daemon`?`Background engine`:`Dashboard fallback`),3)]),N(`div`,sE,[(A(!0),j(k,null,O(t.value.observerActivity,e=>(A(),j(`article`,{key:`${e.ts}-${e.type}`,class:S([`activity-row`,e.type])},[N(`span`,cE,[(A(),M(Er(Vn(e)),{class:`activity-glyph-icon`,"aria-hidden":`true`}))]),N(`div`,null,[N(`header`,null,[N(`strong`,null,C(e.type),1),N(`span`,null,C(new Date(e.ts).toLocaleString()),1)]),N(`p`,null,C(e.message),1),N(`small`,null,[F(C(e.mode)+` · `+C(e.branch??`branch pending`),1),e.files?.length?(A(),j(k,{key:0},[F(` · `+C(e.files.length)+` files · `+C(e.files.reduce((e,t)=>e+t.added+t.removed,0))+` lines`,1)],64)):I(``,!0)])]),e.diffId?(A(),j(`button`,{key:0,onClick:t=>Mr(e.diffId)},` Open capture `,8,lE)):I(``,!0)],2))),128)),t.value.observerActivity.length?I(``,!0):(A(),j(`div`,uE,[...o[168]||=[N(`strong`,null,`No changes captured yet.`,-1),N(`span`,null,`Activity will appear when the engine starts or the repository changes.`,-1)]]))])],64)):a.value===`harness`?(A(),j(k,{key:8},[N(`div`,dE,[o[169]||=N(`div`,null,[N(`p`,{class:`eyebrow`},`AGENT RELIABILITY`),N(`h2`,null,`See where agent runs succeed or fail.`),N(`p`,null,` Compare models, tools, checks, and repairs using local run results. Prompts and evidence stay outside Git. `)],-1),N(`button`,{disabled:Pt.value,onClick:qr},[P(E(bx),{class:`button-icon`,"aria-hidden":`true`}),F(` `+C(Pt.value?`Refreshing…`:`Refresh signals`),1)],8,fE)]),Ft.value?(A(),j(`div`,pE,C(Ft.value),1)):Pt.value&&!Nt.value?(A(),j(`div`,mE,[...o[170]||=[N(`div`,{class:`spinner`},null,-1),F(` Building the local reliability baseline… `,-1)]])):Nt.value?(A(),j(`div`,hE,[N(`section`,gE,[(A(!0),j(k,null,O(Nt.value.signals,e=>(A(),j(`article`,{key:e.title,class:S(e.level)},[N(`span`,null,[(A(),M(Er(Hn(e)),{class:`harness-signal-icon`,"aria-hidden":`true`}))]),N(`div`,null,[N(`strong`,null,C(e.title),1),N(`p`,null,C(e.detail),1)])],2))),128))]),N(`section`,_E,[N(`article`,null,[o[171]||=N(`small`,null,`FIRST-PASS SUCCESS`,-1),N(`strong`,null,C(Tn(Nt.value.summary.firstPassRate)),1),o[172]||=N(`p`,null,`Passed without repair`,-1)]),N(`article`,null,[o[173]||=N(`small`,null,`REPAIR RECOVERY`,-1),N(`strong`,null,C(Tn(Nt.value.summary.repairRate)),1),o[174]||=N(`p`,null,`Failed first, then recovered`,-1)]),N(`article`,null,[o[175]||=N(`small`,null,`TOOL RELIABILITY`,-1),N(`strong`,null,C(Tn(Nt.value.summary.toolReliability)),1),o[176]||=N(`p`,null,`Successful bounded actions`,-1)]),N(`article`,null,[o[177]||=N(`small`,null,`PROMOTION RATE`,-1),N(`strong`,null,C(Tn(Nt.value.summary.promotionRate)),1),o[178]||=N(`p`,null,`Reviewable patches applied`,-1)]),N(`article`,null,[o[179]||=N(`small`,null,`TRUSTED KEEP RATE`,-1),N(`strong`,null,C(Tn(Nt.value.summary.keepRate)),1),N(`p`,null,C(Nt.value.summary.sampledLines?`${Nt.value.summary.keptLines}/${Nt.value.summary.sampledLines} added lines remain`:`Begins after promotion`),1)]),N(`article`,null,[o[180]||=N(`small`,null,`MODEL LATENCY`,-1),N(`strong`,null,C(En(Nt.value.summary.averageProviderLatencyMs)),1),o[181]||=N(`p`,null,`Average provider action`,-1)])]),N(`div`,vE,[N(`section`,yE,[N(`header`,null,[o[182]||=N(`div`,null,[N(`h3`,null,`Model performance`),N(`p`,null,` Compare providers and models using runs from this machine. `)],-1),N(`span`,null,C(Nt.value.summary.runs)+` runs`,1)]),N(`div`,bE,[o[183]||=N(`div`,{class:`health-table-head`,role:`row`},[N(`span`,null,`Model`),N(`span`,null,`Complete`),N(`span`,null,`First pass`),N(`span`,null,`Repair`),N(`span`,null,`Tools`),N(`span`,null,`Latency`)],-1),(A(!0),j(k,null,O(Nt.value.models,e=>(A(),j(`div`,{key:e.key,class:`health-table-row`,role:`row`},[N(`strong`,null,[N(`small`,null,C(e.provider),1),F(C(e.model),1),e.adapterStrategy?(A(),j(`small`,xE,C(e.runtime)+` `+C(e.runtimeVersion||`version unknown`)+` · `+C(e.adapterStrategy),1)):I(``,!0)]),N(`span`,null,C(Tn(e.completionRate)),1),N(`span`,null,C(Tn(e.firstPassRate)),1),N(`span`,null,C(Tn(e.repairRate)),1),N(`span`,null,C(Tn(e.toolReliability)),1),N(`span`,null,C(En(e.averageProviderLatencyMs)),1)]))),128)),Nt.value.models.length?I(``,!0):(A(),j(`div`,SE,` Run an agent task to establish the first model baseline. `))])]),N(`section`,CE,[o[184]||=N(`header`,null,[N(`div`,null,[N(`h3`,null,`Tool reliability`),N(`p`,null,` Errors remain attributed to the tool and model that produced them. `)])],-1),(A(!0),j(k,null,O(Nt.value.tools,e=>(A(),j(`div`,{key:e.action,class:`tool-health-row`},[N(`div`,null,[N(`strong`,null,C(e.action),1),N(`span`,null,C(e.calls)+` calls · `+C(e.errors)+` errors · `+C(En(e.averageLatencyMs)),1)]),N(`b`,null,C(Tn(e.reliability)),1),N(`i`,null,[N(`span`,{style:_e({width:Tn(e.reliability)})},null,4)])]))),128)),Nt.value.tools.length?I(``,!0):(A(),j(`div`,wE,` No bounded tool actions recorded yet. `))]),N(`section`,TE,[o[185]||=N(`header`,null,[N(`div`,null,[N(`h3`,null,`Error taxonomy`),N(`p`,null,` Separate expected failures from problems inside Aperta. `)])],-1),Nt.value.errors.length?(A(),j(`div`,EE,[(A(!0),j(k,null,O(Nt.value.errors,e=>(A(),j(`article`,{key:e.class,class:S({unknown:e.class===`HarnessBug`})},[N(`strong`,null,C(e.count),1),N(`span`,null,C(e.class),1),N(`small`,null,C(Tn(e.share))+` of errors`,1)],2))),128))])):(A(),j(`div`,DE,` No errors recorded in retained runs. `))]),N(`section`,OE,[o[186]||=N(`header`,null,[N(`div`,null,[N(`h3`,null,`Recent runs`),N(`p`,null,` Fast feedback for regressions after a prompt, tool, or model change. `)])],-1),N(`ol`,null,[(A(!0),j(k,null,O(Nt.value.recent,e=>(A(),j(`li`,{key:e.id},[N(`span`,{class:S(e.status)},null,2),N(`div`,null,[N(`strong`,null,C(e.intent),1),N(`small`,null,C(e.provider)+` · `+C(e.model)+` · `+C(new Date(e.ts).toLocaleString()),1),e.adapterStrategy?(A(),j(`small`,kE,C(e.runtime)+` `+C(e.runtimeVersion||`version unknown`)+` · `+C(e.adapterStrategy),1)):I(``,!0)]),N(`div`,AE,[e.firstPass?(A(),j(`em`,jE,`first pass`)):I(``,!0),e.repaired?(A(),j(`em`,ME,`repaired`)):I(``,!0),e.promoted?(A(),j(`em`,NE,`promoted`)):I(``,!0),(A(!0),j(k,null,O(e.errors,e=>(A(),j(`em`,{key:e,class:`error`},C(e),1))),128)),N(`b`,null,C(e.status),1)])]))),128))])])]),N(`footer`,PE,[N(`span`,null,[P(E(Tx),{class:`harness-privacy-icon`,"aria-hidden":`true`})]),N(`p`,null,[o[187]||=N(`strong`,null,`Local intelligence boundary`,-1),F(C(Nt.value.privacy),1)]),N(`small`,null,`Updated `+C(new Date(Nt.value.generatedAt).toLocaleTimeString()),1)])])):I(``,!0)],64)):a.value===`agents`?(A(),j(k,{key:9},[yt.value?(A(),j(`div`,FE,C(yt.value),1)):I(``,!0),N(`div`,{class:S([`agent-ide`,{"pane-closed":!re.value}]),style:_e({"--agent-pane-width":`${y.value}px`})},[N(`main`,IE,[N(`header`,LE,[N(`div`,null,[o[188]||=N(`p`,{class:`eyebrow`},`AGENT WORK`,-1),N(`h2`,null,C(_n.value?_n.value.title:`Build with an agent. Keep ownership.`),1)]),N(`div`,RE,[N(`button`,{class:`workbench-settings-link`,type:`button`,onClick:Zr},[P(E(wx),{"aria-hidden":`true`}),o[189]||=F(` Model settings `,-1)]),re.value?I(``,!0):(A(),j(`button`,{key:0,onClick:o[53]||=e=>tr(!0)},` Show agent pane `))])]),D.value?(A(),j(`section`,zE,[N(`header`,BE,[N(`div`,null,[D.value.intent===_n.value?.title?I(``,!0):(A(),j(`h3`,VE,C(D.value.intent),1)),N(`p`,HE,C(D.value.provider)+` · `+C(D.value.model),1)]),N(`span`,{class:S([`agent-run-status`,D.value.status])},C(D.value.status),3)]),N(`div`,UE,[D.value.status===`no-changes`?I(``,!0):(A(),j(`button`,{key:0,role:`tab`,"aria-selected":Ot.value===`understand`,class:S({active:Ot.value===`understand`,complete:D.value.understanding?.completedAt}),onClick:o[54]||=e=>Ot.value=`understand`},[o[190]||=F(` Understand `,-1),N(`b`,null,[D.value.understanding?.completedAt?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):(A(),M(E($b),{key:1,"aria-hidden":`true`}))])],10,WE)),D.value.status===`no-changes`?I(``,!0):(A(),j(`button`,{key:1,role:`tab`,"aria-selected":Ot.value===`plan`,class:S([`plan-tab`,D.value.contract.status,{active:Ot.value===`plan`}]),onClick:o[55]||=e=>Ot.value=`plan`},[o[191]||=F(` Plan `,-1),N(`b`,null,C(D.value.contract.criteria.filter(e=>e.status===`proven`).length)+`/`+C(D.value.contract.criteria.length),1)],10,GE)),N(`button`,{role:`tab`,"aria-selected":Ot.value===`changes`,class:S({active:Ot.value===`changes`}),onClick:o[56]||=e=>Ot.value=`changes`},[F(C(D.value.status===`no-changes`?`Response`:`Changes`)+` `,1),D.value.status===`no-changes`?I(``,!0):(A(),j(`b`,qE,C(D.value.files.length),1))],10,KE),D.value.status!==`no-changes`||D.value.verification.baseline||D.value.verification.attempts.length?(A(),j(`button`,{key:2,role:`tab`,"aria-selected":Ot.value===`checks`,class:S([`checks-tab`,D.value.verification.status,{active:Ot.value===`checks`}]),onClick:o[57]||=e=>Ot.value=`checks`},[o[192]||=F(` Checks `,-1),N(`b`,null,[D.value.verification.status===`passed`?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):D.value.verification.status===`failed`?(A(),M(E(Xb),{key:1,"aria-hidden":`true`})):(A(),M(E(Qb),{key:2,"aria-hidden":`true`}))])],10,JE)):I(``,!0),N(`button`,{role:`tab`,"aria-selected":Ot.value===`activity`,class:S({active:Ot.value===`activity`}),onClick:o[58]||=e=>Ot.value=`activity`},[o[193]||=F(` Activity `,-1),N(`b`,null,C(D.value.actions.length),1)],10,YE)]),Ot.value===`understand`?(A(),j(`section`,XE,[N(`header`,null,[N(`div`,null,[o[194]||=N(`p`,{class:`eyebrow`},`REVIEW WHAT CHANGED`,-1),N(`h3`,null,C(zn(D.value)),1),o[195]||=N(`p`,null,` Read the code and evidence before you accept the change. `,-1)]),N(`span`,{class:S({complete:D.value.understanding?.completedAt})},C(D.value.understanding?.completedAt?`recorded`:`open`),3)]),D.value.understanding?(A(),j(`div`,ZE,[N(`article`,null,[o[196]||=N(`h4`,null,`What proves it`,-1),N(`ul`,null,[(A(!0),j(k,null,O(D.value.understanding.proof,e=>(A(),j(`li`,{key:e},C(jn(e)),1))),128))])]),N(`article`,null,[o[197]||=N(`h4`,null,`What is still uncertain`,-1),N(`ul`,null,[(A(!0),j(k,null,O(D.value.understanding.uncertainties,e=>(A(),j(`li`,{key:e},C(jn(e)),1))),128))])]),N(`article`,QE,[N(`div`,null,[o[198]||=N(`div`,null,[N(`h4`,null,`Explain it in your own words`),N(`p`,null,` Aperta saves these answers with the run for later review. `)],-1),N(`span`,null,C(D.value.evidenceGraph?.nodes.length??0)+` nodes · `+C(D.value.evidenceGraph?.edges.length??0)+` links `,1)]),(A(!0),j(k,null,O(D.value.understanding.questions,e=>(A(),j(`label`,{key:e.id},[N(`span`,null,[N(`b`,null,C(e.label),1),F(` `+C(e.text),1)]),Ln(N(`textarea`,{"onUpdate:modelValue":t=>jt.value[e.id]=t,rows:`3`,placeholder:`Explain the ${e.label.toLowerCase()} from your own understanding…`},null,8,$E),[[wo,jt.value[e.id]]])]))),128)),N(`button`,{class:`understanding-save`,disabled:Mt.value,onClick:yi},C(Mt.value?`Saving…`:`Save review`),9,eD)])])):I(``,!0)])):Ot.value===`plan`?(A(),j(`section`,tD,[N(`header`,{class:S(D.value.promotion.status)},[N(`div`,null,[N(`p`,nD,` RUN PLAN · `+C(D.value.contract.source),1),N(`h3`,null,C(D.value.contract.goal),1),N(`p`,null,C(D.value.promotion.reason),1)]),N(`span`,null,C(D.value.promotion.status),1)],2),N(`section`,rD,[N(`div`,iD,[P(E(Ex),{class:`nav-icon`,"aria-hidden":`true`})]),N(`div`,null,[N(`p`,aD,`APERTA SKILL · V`+C(D.value.skill.version),1),N(`h4`,null,C(D.value.skill.label),1),N(`p`,null,C(D.value.skill.description),1)]),N(`span`,{class:S([`skill-mode`,D.value.skill.mode])},C(D.value.skill.mode),3),N(`details`,null,[N(`summary`,null,C(D.value.skill.allowedTools.length)+` allowed capabilities · `+C(D.value.skill.proof.length)+` proof requirements`,1),N(`div`,oD,[N(`section`,null,[o[199]||=N(`strong`,null,`Allowed capabilities`,-1),N(`div`,null,[(A(!0),j(k,null,O(D.value.skill.allowedTools,e=>(A(),j(`code`,{key:e},C(e),1))),128))])]),N(`section`,null,[o[200]||=N(`strong`,null,`Learning objectives`,-1),N(`ul`,null,[(A(!0),j(k,null,O(D.value.skill.learningObjectives,e=>(A(),j(`li`,{key:e},C(e),1))),128))])])])])]),N(`div`,sD,[N(`article`,cD,[o[202]||=N(`h4`,null,`Plan`,-1),N(`ol`,null,[(A(!0),j(k,null,O(D.value.contract.steps,(e,t)=>(A(),j(`li`,{key:e.id,class:S(e.status)},[N(`span`,null,[e.status===`complete`?(A(),M(E(Yb),{key:0,"aria-hidden":`true`})):e.status===`blocked`?(A(),M(E(Xb),{key:1,"aria-hidden":`true`})):(A(),j(k,{key:2},[F(C(t+1),1)],64))]),N(`div`,null,[N(`strong`,null,C(e.title),1),N(`p`,null,C(e.detail),1)])],2))),128))]),D.value.contract.constraints.length?(A(),j(`details`,lD,[o[201]||=N(`summary`,null,`Constraints`,-1),N(`ul`,null,[(A(!0),j(k,null,O(D.value.contract.constraints,e=>(A(),j(`li`,{key:e},C(e),1))),128))])])):I(``,!0)]),N(`article`,uD,[o[203]||=N(`h4`,null,`Acceptance checks`,-1),(A(!0),j(k,null,O(D.value.contract.criteria,e=>(A(),j(`div`,{key:e.id,class:S([`criterion-row`,e.status])},[N(`span`,null,[e.status===`proven`?(A(),M(E(Yb),{key:0,"aria-hidden":`true`})):e.status===`failed`?(A(),M(E(Xb),{key:1,"aria-hidden":`true`})):e.status===`supported`?(A(),M(E(qb),{key:2,"aria-hidden":`true`})):(A(),M(E(Qb),{key:3,"aria-hidden":`true`}))]),N(`div`,null,[N(`header`,null,[N(`strong`,null,C(e.text),1),N(`em`,null,C(e.status),1)]),N(`small`,null,C(e.method)+` evidence`,1),e.evidence.length?(A(),j(`ul`,dD,[(A(!0),j(k,null,O(e.evidence,e=>(A(),j(`li`,{key:e},C(e),1))),128))])):I(``,!0)])],2))),128))]),N(`aside`,fD,[o[205]||=N(`h4`,null,`Independent review`,-1),(A(!0),j(k,null,O(D.value.critique?.findings??[],e=>(A(),j(`div`,{key:e.title,class:S(e.severity)},[N(`span`,null,[e.severity===`blocker`?(A(),M(E(Xb),{key:0,"aria-hidden":`true`})):e.severity===`warning`?(A(),M(E(Ox),{key:1,"aria-hidden":`true`})):(A(),M(E(Zb),{key:2,"aria-hidden":`true`}))]),N(`div`,null,[N(`strong`,null,C(e.title),1),N(`p`,null,C(e.detail),1)])],2))),128)),D.value.critique?I(``,!0):(A(),j(`div`,pD,[N(`span`,null,[P(E(nx),{"aria-hidden":`true`})]),o[204]||=N(`div`,null,[N(`strong`,null,`Review pending`),N(`p`,null,` Aperta reviews the final patch after the run and checks finish. `)],-1)]))])])])):Ot.value===`changes`?(A(),j(k,{key:2},[N(`div`,mD,[N(`div`,null,[(A(!0),j(k,null,O(D.value.files,e=>(A(),j(`button`,{key:e.path,class:S({active:yn.value?.path===e.path}),title:e.path,onClick:t=>Dt.value=e.path},[N(`strong`,null,C(kn(e.path)),1),N(`small`,null,`+`+C(e.added)+` −`+C(e.removed),1)],10,hD))),128))]),N(`span`,null,C(D.value.files.length?`${D.value.files.length} reviewable file${D.value.files.length===1?``:`s`}`:D.value.status===`running`||D.value.status===`verifying`?`Waiting for changes`:`No files changed`),1)]),yn.value?(A(),j(`div`,gD,[(A(!0),j(k,null,O(yn.value.lines,(e,t)=>(A(),j(`div`,{key:t,class:S([`diff-line`,e.kind])},[N(`span`,_D,C(e.oldLine??``),1),N(`span`,vD,C(e.newLine??``),1),N(`span`,yD,C(e.kind===`add`?`+`:e.kind===`delete`?`−`:e.kind===`context`?` `:``),1),N(`code`,null,[(A(!0),j(k,null,O(E(zx)(e.text,yn.value.path),(e,t)=>(A(),j(`span`,{key:t,class:S(`syntax-${e.kind}`)},C(e.text),3))),128))])],2))),128))])):D.value.status===`no-changes`?(A(),j(`article`,bD,[N(`div`,xD,[P(E(Zb),{"aria-hidden":`true`})]),o[207]||=N(`div`,null,[N(`p`,{class:`eyebrow`},`ANALYSIS COMPLETE`),N(`h4`,null,`No files were changed`),N(`p`,null,` The agent inspected the repository and returned an explanation instead of manufacturing a patch. `)],-1),N(`section`,null,[o[206]||=N(`strong`,null,`Response`,-1),D.value.capabilities?.length?(A(),j(`div`,SD,[(A(!0),j(k,null,O(D.value.capabilities,e=>(A(),j(`article`,{key:e.id,class:S(e.status)},[N(`span`,null,[e.status===`passed`||e.status===`reachable`?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):(A(),M(E(Xb),{key:1,"aria-hidden":`true`}))]),N(`div`,null,[N(`strong`,null,C(e.label),1),N(`p`,null,C(e.summary),1),N(`small`,null,C(e.command)+` · `+C((e.durationMs/1e3).toFixed(1))+`s`,1)])],2))),128))])):I(``,!0),P($x,{source:D.value.summary,"aria-label":`Agent response`},null,8,[`source`])])])):(A(),j(`div`,CD,[N(`strong`,null,C(D.value.status===`failed`?`Run failed before producing a patch.`:D.value.status===`running`||D.value.status===`verifying`?`The agent is still working.`:`No repository changes were produced.`),1),N(`span`,null,C(D.value.error),1),D.value.status===`failed`?(A(),j(`button`,{key:0,class:`agent-run-retry`,onClick:o[59]||=e=>{gt.value=D.value.intent,tr(!0)}},` Retry in conversation `)):I(``,!0)]))],64)):Ot.value===`checks`?(A(),j(`section`,wD,[N(`header`,{class:S(D.value.verification.status)},[N(`span`,null,[D.value.verification.status===`passed`?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):D.value.verification.status===`failed`?(A(),M(E(Xb),{key:1,"aria-hidden":`true`})):(A(),M(E(Qb),{key:2,"aria-hidden":`true`}))]),N(`div`,null,[N(`strong`,null,C(D.value.verification.status===`passed`?`Verification passed`:D.value.verification.status===`failed`?`Verification needs attention`:D.value.verification.plan.length?`Verification has not run yet`:`No supported checks detected`),1),N(`p`,null,C(D.value.verification.plan.length?D.value.verification.plan.join(` · `):`Aperta did not find an allowlisted test, type-check, lint, or build command for this project.`),1)])],2),D.value.verification.baseline?(A(),j(`article`,TD,[N(`h4`,null,[N(`span`,{class:S(D.value.verification.baseline.status)},[D.value.verification.baseline.status===`passed`?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):(A(),M(E(Xb),{key:1,"aria-hidden":`true`}))],2),o[208]||=F(` Pre-change baseline `,-1),N(`small`,null,C(new Date(D.value.verification.baseline.ts).toLocaleTimeString()),1)]),(A(!0),j(k,null,O(D.value.verification.baseline.checks,e=>(A(),j(`details`,{key:`baseline-${e.id}`,class:S([`verification-check`,e.status])},[N(`summary`,null,[N(`span`,null,[e.status===`passed`?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):(A(),M(E(Xb),{key:1,"aria-hidden":`true`}))]),N(`strong`,null,C(e.label),1),N(`code`,null,C(e.command),1),N(`small`,null,C((e.durationMs/1e3).toFixed(1))+`s`,1)]),N(`pre`,null,C(e.output||`Completed without console output.`),1)],2))),128))])):I(``,!0),(A(!0),j(k,null,O(D.value.verification.attempts,e=>(A(),j(`article`,{key:e.index,class:`verification-attempt`},[N(`h4`,null,[N(`span`,{class:S(e.status)},[e.status===`passed`?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):(A(),M(E(Xb),{key:1,"aria-hidden":`true`}))],2),F(` Post-change attempt `+C(e.index)+` `,1),N(`small`,null,C(new Date(e.ts).toLocaleTimeString()),1)]),(A(!0),j(k,null,O(e.checks,t=>(A(),j(`details`,{key:`${e.index}-${t.id}`,class:S([`verification-check`,t.status]),open:t.status!==`passed`},[N(`summary`,null,[N(`span`,null,[t.status===`passed`?(A(),M(E(Zb),{key:0,"aria-hidden":`true`})):(A(),M(E(Xb),{key:1,"aria-hidden":`true`}))]),N(`strong`,null,C(t.label),1),N(`code`,null,C(t.command),1),N(`small`,null,C((t.durationMs/1e3).toFixed(1))+`s`,1)]),N(`pre`,null,C(t.output||`Completed without console output.`),1)],10,ED))),128))]))),128)),D.value.verification.attempts.length?I(``,!0):(A(),j(`div`,DD,[D.value.status===`verifying`?(A(),M(E(fx),{key:0,class:`agent-loader`,"aria-hidden":`true`})):I(``,!0),N(`strong`,null,C(D.value.status===`verifying`?`Running project checks…`:`No post-change verification attempts recorded.`),1)]))])):(A(),j(`section`,{key:4,ref_key:`agentActivityPanel`,ref:bt,class:`agent-activity-feed`},[D.value.summary&&D.value.status!==`running`&&D.value.status!==`verifying`?(A(),j(`article`,OD,[N(`div`,kD,[P(E(Ex),{"aria-hidden":`true`}),o[209]||=N(`strong`,null,`Response`,-1),N(`time`,null,C(D.value.finishedAt?new Date(D.value.finishedAt).toLocaleTimeString():``),1)]),P($x,{source:D.value.summary},null,8,[`source`])])):I(``,!0),N(`ol`,null,[(A(!0),j(k,null,O(Fn(D.value.actions),e=>(A(),j(`li`,{key:e.index,class:S(e.status)},[N(`span`,{class:S([`activity-step-icon`,e.action,e.status])},[(A(),M(Er(Bn(e)),{class:`action-icon`,"aria-hidden":`true`}))],2),N(`div`,null,[N(`header`,null,[N(`b`,null,C(e.action),1),N(`time`,null,[e.errorClass?(A(),j(`em`,AD,C(e.errorClass),1)):I(``,!0),F(C(e.durationMs===void 0?``:En(e.durationMs))+` · `+C(new Date(e.ts).toLocaleTimeString()),1)])]),e.path?(A(),j(`code`,jD,C(Nn(e.path)),1)):I(``,!0),In(e)?(A(),j(`p`,MD,C(In(e)),1)):I(``,!0),e.command?(A(),j(`code`,ND,C(e.command),1)):I(``,!0),e.output?(A(),j(`details`,{key:3,class:S([`activity-evidence`,e.evidenceStatus]),open:e.evidenceStatus===`failed`||e.evidenceStatus===`crashed`||e.evidenceStatus===`unhealthy`},[N(`summary`,null,[o[210]||=N(`strong`,null,`Runtime evidence`,-1),N(`span`,null,C(e.evidenceStatus??`captured`),1)]),N(`pre`,null,C(e.output),1)],10,PD)):I(``,!0)])],2))),128))]),D.value.status===`running`||D.value.status===`verifying`?(A(),j(`div`,FD,[P(E(fx),{class:`agent-loader`,"aria-hidden":`true`}),N(`span`,null,[N(`strong`,null,C(D.value.status===`verifying`?`Running checks`:`Agent working`),1),N(`small`,null,C(D.value.status===`verifying`?`Comparing evidence in the isolated patch`:`Following the run plan`),1)])])):D.value.actions.length?I(``,!0):(A(),j(`div`,ID,[...o[211]||=[N(`strong`,null,`No actions were recorded.`,-1)]]))],512)),D.value.status===`ready`?(A(),j(`footer`,{key:5,class:S([`promotion-gate`,D.value.promotion.status])},[N(`div`,LD,[N(`span`,RD,[P(E(Tx))]),N(`div`,null,[N(`strong`,null,C(D.value.promotion.status===`review-required`?`Review before promotion`:`Ready to promote`),1),N(`p`,null,C(D.value.promotion.reason),1),o[212]||=N(`small`,null,`Aperta will confirm the repository still matches this run before applying anything.`,-1)])]),N(`div`,zD,[N(`label`,null,[Ln(N(`input`,{"onUpdate:modelValue":o[60]||=e=>kt.value=e,type:`checkbox`},null,512),[[To,kt.value]]),o[213]||=N(`span`,null,[N(`strong`,null,`I reviewed this change`),N(`small`,null,`Patch, evidence, and remaining uncertainty`)],-1)]),N(`button`,{disabled:!kt.value||At.value||!D.value.promotion.allowed,onClick:vi},C(At.value?`Verifying…`:`Promote patch`),9,BD)])],2)):D.value.status===`applied`?(A(),j(`footer`,VD,[N(`strong`,null,[P(E(Zb),{"aria-hidden":`true`}),o[214]||=F(`Contract satisfied and patch promoted`,-1)]),o[215]||=N(`span`,null,`Aperta is observing the real working tree and will capture the change for proof and ownership.`,-1)])):D.value.status===`verification-failed`?(A(),j(`footer`,HD,[N(`div`,null,[o[216]||=N(`strong`,null,`Checks blocked promotion`,-1),N(`span`,null,C(D.value.verification.attempts.length>=3?`The bounded repair attempts completed without a passing build.`:`The agent reached its bounded action limit after ${D.value.verification.attempts.length} verification attempt${D.value.verification.attempts.length===1?``:`s`}.`)+` Continue in this conversation so the existing patch and compiler evidence stay available.`,1)]),N(`button`,{onClick:o[61]||=e=>{gt.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.`,tr(!0)}},` Fix failing checks `)])):I(``,!0)])):(A(),j(`section`,UD,[N(`div`,WD,[P(E(Ex),{"aria-hidden":`true`})]),o[217]||=ia(`<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?(A(),j(`button`,{key:0,class:`agent-pane-resizer`,"aria-label":`Resize agent pane`,title:`Drag to resize agent pane`,onPointerdown:No(nr,[`prevent`]),onKeydown:[o[62]||=Fo(No(e=>er(20),[`prevent`]),[`left`]),o[63]||=Fo(No(e=>er(-20),[`prevent`]),[`right`])]},[...o[218]||=[N(`span`,null,null,-1)]],32)):I(``,!0),re.value?(A(),j(`aside`,GD,[N(`header`,null,[N(`div`,null,[N(`span`,KD,[P(E(Ex),{"aria-hidden":`true`})]),N(`div`,null,[N(`strong`,null,C(pt.value?ni(pt.value.kind):`Execution engine`),1),N(`small`,null,C(ht.value),1)])]),N(`button`,{class:`icon-close`,onClick:o[64]||=e=>tr(!1),"aria-label":`Close agent pane`,title:`Close agent pane`},[P(E(kx),{class:`nav-icon`,"aria-hidden":`true`})])]),N(`section`,qD,[N(`div`,null,[o[220]||=N(`label`,{for:`agent-conversation-select`},`Conversation`,-1),N(`button`,{class:`agent-new-task`,disabled:_t.value,onClick:_i},[P(E(yx),{"aria-hidden":`true`}),o[219]||=F(`New task `,-1)],8,JD)]),N(`select`,{id:`agent-conversation-select`,value:_n.value?.id??``,disabled:!dt.value.length||_t.value,onChange:o[65]||=e=>gi(e.target.value)},[Et.value?(A(),j(`option`,XD,` New task `)):dt.value.length?I(``,!0):(A(),j(`option`,ZD,` No conversations yet `)),(A(!0),j(k,null,O(dt.value,e=>(A(),j(`option`,{key:e.id,value:e.id},C(e.title),9,QD))),128))],40,YD),N(`small`,null,C(_n.value?`${_n.value.runs.length} turn${_n.value.runs.length===1?``:`s`} in this conversation`:`Fresh context`),1)]),N(`section`,$D,[N(`header`,null,[N(`strong`,null,C(_t.value?`Working now`:Et.value?`New conversation`:`Conversation`),1),_n.value?(A(),j(`span`,eO,C(_n.value.runs.length)+` `+C(_n.value.runs.length===1?`turn`:`turns`),1)):I(``,!0)]),_n.value?.runs.length?(A(),j(`ol`,tO,[(A(!0),j(k,null,O(_n.value.runs,e=>(A(),j(`li`,{key:e.id,class:S({selected:D.value?.id===e.id}),onClick:t=>hi(e.id)},[N(`span`,null,C(e.turnIndex),1),N(`div`,null,[o[221]||=N(`strong`,null,`You`,-1),N(`p`,null,C(e.intent),1),N(`small`,{class:S([`agent-turn-result`,e.status])},C(e.status)+` · `+C(Rn(e)),3)])],10,nO))),128))])):(A(),j(`div`,rO,` Describe the outcome you want. Follow-ups will stay together here. `)),_t.value?(A(),j(`div`,iO,[P(E(fx),{class:`agent-loader`,"aria-hidden":`true`}),F(` `+C(vt.value?.state===`queued`?`Preparing workspace…`:`Inspecting and editing…`),1),N(`button`,{onClick:o[66]||=e=>gr(vt.value)},`Stop`)])):I(``,!0)]),N(`footer`,aO,[N(`div`,oO,[N(`button`,{onClick:o[67]||=e=>gt.value=`Investigate the current failing behavior, identify the root cause, and implement the smallest safe fix.`},` Fix`),N(`button`,{onClick:o[68]||=e=>gt.value=`Refactor the selected area for clarity without changing its public behavior.`},` Refactor`),N(`button`,{onClick:o[69]||=e=>gt.value=`Add tests for the most important unproven behavior in this repository.`},` Tests `)]),Ln(N(`textarea`,{"onUpdate:modelValue":o[70]||=e=>gt.value=e,rows:`5`,placeholder:_n.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:[Fo(No(mi,[`exact`,`prevent`]),[`enter`]),Fo(No(mi,[`meta`,`prevent`]),[`enter`]),Fo(No(mi,[`ctrl`,`prevent`]),[`enter`])]},null,40,sO),[[wo,gt.value]]),N(`div`,null,[N(`span`,{title:D.value?.context?.lastInputChars?`${D.value.context.lastInputChars.toLocaleString()} of ${D.value.context.maxInputChars.toLocaleString()} input characters in the latest action; token count is estimated.`:`Enter to send · Shift+Enter for a new line`},C(D.value?.context?.lastInputChars?`Turn ${(_n.value?.runs.length??0)+1} · ≈${Math.ceil(D.value.context.estimatedLastInputTokens/1e3)}k/${Math.ceil(D.value.context.estimatedMaxInputTokens/1e3)}k context`:_n.value?`Turn ${_n.value.runs.length+1} · context ≤24k`:`New task · Enter to send`),9,cO),mt.value?(A(),j(`button`,{key:1,class:`agent-send`,disabled:_t.value||gt.value.trim().length<10||!t.value?.initialization.initialized,onClick:mi},[F(C(_t.value?`Working…`:_n.value?`Send`:`Start`)+` `,1),P(E(Kb),{"aria-hidden":`true`})],8,lO)):(A(),j(`button`,{key:0,class:`configure-agent`,onClick:Zr},` Configure engine`))])])])):(A(),j(`button`,{key:2,class:`agent-pane-rail`,onClick:o[71]||=e=>tr(!0),"aria-label":`Open agent pane`,title:`Open agent pane`},[P(E(Ex),{"aria-hidden":`true`}),o[222]||=N(`strong`,null,`Agent`,-1)]))],6)],64)):a.value===`settings`?(A(),j(k,{key:10},[N(`div`,uO,[o[223]||=N(`div`,null,[N(`h2`,null,`Models and coding agents`),N(`p`,null,` Choose what runs coding tasks. Then assign models to the AI work Aperta performs. `)],-1),N(`div`,dO,[Ye.value?(A(),j(`button`,{key:0,type:`button`,class:`return-to-workbench`,onClick:Qr},` ← Agent Work `)):I(``,!0),N(`span`,fO,C(Ge.value?.secureStorage??`Loading secure storage…`),1)])]),Je.value?(A(),j(`div`,pO,C(Je.value),1)):I(``,!0),N(`section`,mO,[N(`header`,null,[o[224]||=N(`div`,null,[N(`p`,{class:`eyebrow`},`CODING AGENT`),N(`h3`,{id:`agent-runtime-title`},`Choose what runs coding tasks.`),N(`p`,null,`Your coding agent plans and edits. Aperta isolates the work, runs checks, and records evidence.`)],-1),N(`span`,hO,`ACTIVE · `+C(Ge.value?.agentRuntime?.kind??`aperta`),1)]),N(`div`,gO,[(A(!0),j(k,null,O(Ge.value?.agentRuntimes??[],e=>(A(),j(`button`,{key:e.kind,type:`button`,class:S({selected:rt.value.kind===e.kind,unavailable:!e.available}),"aria-pressed":rt.value.kind===e.kind,onClick:t=>rt.value.kind=e.kind},[N(`span`,vO,C(ii(e.kind)),1),N(`span`,null,[N(`strong`,null,C(ni(e.kind)),1),N(`small`,null,C(ri(e.kind)),1)]),N(`em`,{class:S({ready:e.ready})},C(e.ready?`READY`:e.supported?e.available?e.verification===`failed`?`CHECK FAILED`:`INSTALLED`:`SETUP NEEDED`:`UNSUPPORTED`),3),N(`p`,null,C(e.detail),1)],10,_O))),128))]),N(`div`,yO,[N(`div`,null,[N(`small`,null,C(rt.value.kind===`aperta`?`APERTA NATIVE OWNS`:`${ni(rt.value.kind).toUpperCase()} OWNS`),1),o[225]||=N(`strong`,null,`Planning · context · tool choices · edits`,-1),rt.value.kind===`aperta`?(A(),j(`span`,bO,`Powered by the Builder model configured below.`)):(A(),j(`span`,xO,`Powered by the model and credentials configured inside that runtime.`))]),o[226]||=N(`i`,{"aria-hidden":`true`},`→`,-1),o[227]||=N(`div`,{class:`aperta-owns`},[N(`small`,null,`APERTA ALWAYS OWNS`),N(`strong`,null,`Isolation · checks · repair feedback`),N(`span`,null,`Evidence · review · promotion · learning`)],-1)]),rt.value.kind===`aperta`?I(``,!0):(A(),j(`div`,SO,[N(`label`,null,[F(C(ni(rt.value.kind))+` model `,1),Ln(N(`input`,{"onUpdate:modelValue":o[72]||=e=>rt.value.model=e,placeholder:rt.value.kind===`opencode`?`Optional: provider/model`:`Optional: use runtime default`},null,8,CO),[[wo,rt.value.model]])]),o[228]||=N(`p`,null,`Passed directly to the selected CLI. The runtime manages authentication; Aperta never stores its credentials.`,-1),Ge.value?.agentRuntimes.find(e=>e.kind===rt.value.kind)?.ready?I(``,!0):(A(),j(`p`,wO,C(Ge.value?.agentRuntimes.find(e=>e.kind===rt.value.kind)?.detail??`Install ${ni(rt.value.kind)} to continue.`),1))])),N(`button`,{class:`save-runtime`,type:`button`,disabled:Ze.value||rt.value.kind!==`aperta`&&(!Ge.value?.agentRuntimes.find(e=>e.kind===rt.value.kind)?.available||!Ge.value?.agentRuntimes.find(e=>e.kind===rt.value.kind)?.supported),onClick:ti},C(Ze.value?`Verifying…`:rt.value.kind!==`aperta`&&!Ge.value?.agentRuntimes.find(e=>e.kind===rt.value.kind)?.ready?`Verify & use ${ni(rt.value.kind)}`:`Use ${ni(rt.value.kind)}`),9,TO)]),N(`section`,EO,[o[235]||=N(`header`,null,[N(`p`,{class:`eyebrow`},`HOW APERTA USES MODELS`),N(`h3`,{id:`intelligence-routing-title`},`Choose a model for each AI task`)],-1),N(`article`,{class:S({paused:Ge.value?.agentRuntime?.kind!==`aperta`})},[o[230]||=N(`span`,null,`1`,-1),N(`div`,null,[o[229]||=N(`strong`,null,`Builder`,-1),N(`p`,null,C(Ke.value?.name??`Not configured`)+` · `+C(Ke.value?.model??`Choose a model below`),1),N(`small`,null,C(Ge.value?.agentRuntime.kind===`aperta`?`Runs the Aperta Native coding loop.`:`On standby. ${ni(Ge.value?.agentRuntime.kind??`aperta`)} manages its own model.`),1)])],2),N(`article`,null,[o[233]||=N(`span`,null,`2`,-1),N(`div`,null,[o[231]||=N(`strong`,null,`Coach`,-1),N(`p`,null,C(qe.value?.name??`Not configured`)+` · `+C(qe.value?.model??`Choose a model below`),1),o[232]||=N(`small`,null,`Creates review questions from repository evidence.`,-1)])]),N(`article`,DO,[N(`span`,null,[P(E(Zb),{"aria-hidden":`true`})]),o[234]||=N(`div`,null,[N(`strong`,null,`Verification`),N(`p`,null,`Aperta repository checks`),N(`small`,null,`Project commands and runtime probes. A model does not decide the result.`)],-1)])]),N(`div`,OO,[N(`section`,kO,[o[237]||=N(`header`,null,[N(`p`,{class:`eyebrow`},`SAVED MODELS`),N(`h3`,null,`Assign models to Aperta tasks.`),N(`p`,null,` Builder and Coach settings apply to every project. Aperta runs verification without a model. `)],-1),(A(!0),j(k,null,O(Ge.value?.profiles??[],e=>(A(),j(`article`,{key:e.id,class:S({active:Object.values(Ge.value?.activeProfileIds??{}).includes(e.id)})},[N(`div`,AO,C(e.provider.slice(0,2).toUpperCase()),1),N(`div`,null,[N(`strong`,null,C(e.name),1),N(`span`,null,C(e.model),1),N(`small`,null,C(e.baseUrl)+` · `+C(e.credentialConfigured?e.credentialSource===`keychain`?`credential in Keychain`:`credential available`:`credential required`),1)]),N(`em`,null,C(e.capabilities?.nativeTools?`NATIVE TOOLS`:e.capabilities?.status===`connected`?`JSON FALLBACK`:`UNTESTED`),1),N(`div`,jO,[e.capabilities?.latencyMs?(A(),j(`span`,MO,C(e.capabilities.latencyMs)+`ms handshake`,1)):I(``,!0),N(`span`,null,C(e.capabilities?.modelDiscovery?`catalog connected`:`manual model`),1)]),N(`div`,NO,[N(`button`,{onClick:t=>oi(e.id),disabled:Qe.value===e.id},C(Qe.value===e.id?`Testing…`:`Retest`),9,PO),(A(),j(k,null,O(We,t=>N(`button`,{key:t,class:S({assigned:Ge.value?.activeProfileIds[t]===e.id}),onClick:n=>ai(e.id,t)},[Ge.value?.activeProfileIds[t]===e.id?(A(),M(E(Yb),{key:0,"aria-hidden":`true`})):I(``,!0),F(` `+C(Ge.value?.activeProfileIds[t]===e.id?t:`Use for ${t}`),1)],10,FO)),64)),N(`button`,{class:`remove-profile`,onClick:t=>li(e.id)},C(tt.value===e.id?`Confirm remove`:`Remove`),9,IO)])],2))),128)),Ge.value&&!Ge.value.profiles.length?(A(),j(`div`,LO,[...o[236]||=[N(`strong`,null,`No model profiles yet.`,-1),N(`span`,null,`Add one without changing how Aperta captures or proves code.`,-1)]])):I(``,!0)]),N(`form`,{class:`profile-form`,onSubmit:No(ei,[`prevent`])},[o[245]||=N(`p`,{class:`eyebrow`},`ADD APERTA MODEL`,-1),o[246]||=N(`h3`,null,`Connect an intelligence service`,-1),o[247]||=N(`p`,{class:`provider-guidance`},` Aperta tests the real endpoint before activation and records whether the selected model can produce native tool calls. `,-1),N(`div`,RO,[(A(!0),j(k,null,O(Ge.value?.providers??[],e=>(A(),j(`button`,{key:e.id,type:`button`,class:S({selected:nt.value.provider===e.id}),"aria-pressed":nt.value.provider===e.id,onClick:t=>si(e)},[N(`span`,null,C(e.label),1),N(`small`,null,C(e.category),1),N(`p`,null,C(e.description),1)],10,zO))),128))]),it.value?(A(),j(`div`,BO,[N(`strong`,null,C(it.value.label),1),N(`span`,null,C(it.value.description),1)])):I(``,!0),N(`label`,null,[o[238]||=F(`Profile name`,-1),Ln(N(`input`,{"onUpdate:modelValue":o[73]||=e=>nt.value.name=e,placeholder:`Work OpenAI, Local Qwen…`},null,512),[[wo,nt.value.name]])]),et.value?.models.length?(A(),j(`label`,VO,[o[240]||=F(`Model`,-1),Ln(N(`select`,{"onUpdate:modelValue":o[74]||=e=>nt.value.model=e,required:``},[o[239]||=N(`option`,{value:``,disabled:``},`Choose a discovered model`,-1),(A(!0),j(k,null,O(et.value.models,e=>(A(),j(`option`,{key:e.id,value:e.id},C(e.name)+C(e.nativeTools===!0?` · tools`:``)+C(e.contextWindow?` · ${Math.round(e.contextWindow/1e3)}k`:``),9,HO))),128))],512),[[Do,nt.value.model]])])):(A(),j(`label`,UO,[o[241]||=F(`Model ID`,-1),Ln(N(`input`,{"onUpdate:modelValue":o[75]||=e=>nt.value.model=e,placeholder:`Discover models or enter an exact model ID`},null,512),[[wo,nt.value.model]])])),N(`label`,null,[o[242]||=F(`Endpoint`,-1),Ln(N(`input`,{"onUpdate:modelValue":o[76]||=e=>nt.value.baseUrl=e,placeholder:nt.value.provider===`ollama`?`http://127.0.0.1:11434`:nt.value.provider===`openai-compatible`?`https://provider.example/v1`:`Leave blank for provider default`},null,8,WO),[[wo,nt.value.baseUrl]])]),nt.value.provider===`ollama`?I(``,!0):(A(),j(`label`,GO,[o[243]||=F(`API key`,-1),Ln(N(`input`,{"onUpdate:modelValue":o[77]||=e=>nt.value.apiKey=e,type:`password`,autocomplete:`new-password`,placeholder:`Stored in macOS Keychain`},null,512),[[wo,nt.value.apiKey]])])),Xe.value?(A(),j(`div`,KO,C(Xe.value),1)):I(``,!0),N(`button`,{type:`button`,class:`inspect-provider`,disabled:$e.value,onClick:ci},C($e.value?`Testing provider…`:nt.value.model?`Verify model and native tools`:`Connect and discover models`),9,qO),et.value?(A(),j(`div`,{key:5,class:S([`capability-result`,et.value.capabilities.status])},[N(`strong`,null,C(et.value.capabilities.nativeTools?`Native tool calling verified`:`Provider connected`),1),N(`span`,null,C(et.value.capabilities.detail),1),N(`small`,null,C(et.value.models.length)+` models discovered · `+C(et.value.capabilities.latencyMs)+`ms`,1)],2)):I(``,!0),N(`div`,JO,[o[244]||=N(`strong`,null,`Credential boundary`,-1),N(`p`,null,` The browser sends the key only to this local Aperta server. It is written to `+C(Ge.value?.secureStorage??`secure storage`)+` and is never returned to the browser. `,1)]),o[248]||=N(`div`,{class:`privacy-boundary`},[N(`strong`,null,`Project-memory boundary`),N(`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),nt.value.model&&et.value?.testedModel!==nt.value.model?(A(),j(`p`,YO,` Verify this exact model before activation. `)):I(``,!0),N(`button`,{type:`submit`,disabled:Ze.value||!nt.value.model||et.value?.testedModel!==nt.value.model},C(Ze.value?`Saving securely…`:`Save and activate`),9,XO)],32)])],64)):I(``,!0)],2)],2)):I(``,!0),ie.value?(A(),j(`div`,ZO,[N(`section`,QO,[N(`header`,$O,[N(`div`,null,[o[256]||=N(`p`,{class:`eyebrow`},`DEFEND THIS CHANGE`,-1),N(`h2`,null,C(x.value?.story.title??`Turn generated code into code you own.`),1),N(`div`,ek,[o[252]||=N(`span`,{class:`complete`},[N(`b`,null,`1`),F(`Orient`)],-1),o[253]||=N(`i`,null,null,-1),N(`span`,{class:S({complete:an.value>=1,active:an.value<1})},[...o[249]||=[N(`b`,null,`2`,-1),F(`Trace`,-1)]],2),o[254]||=N(`i`,null,null,-1),N(`span`,{class:S({complete:an.value>=3,active:an.value>=1&&an.value<3})},[...o[250]||=[N(`b`,null,`3`,-1),F(`Challenge`,-1)]],2),o[255]||=N(`i`,null,null,-1),N(`span`,{class:S({complete:on.value,active:an.value>=3&&!on.value})},[...o[251]||=[N(`b`,null,`4`,-1),F(`Defend`,-1)]],2)])]),N(`div`,tk,[x.value?(A(),j(`span`,nk,[N(`b`,null,C(sn.value)+`%`,1),o[257]||=F(` defense complete`,-1)])):I(``,!0),N(`button`,{class:`close-review icon-close`,onClick:jr,"aria-label":`Close ownership review`},[P(E(kx),{class:`nav-icon`,"aria-hidden":`true`})])])]),pe.value?(A(),j(`div`,rk,C(pe.value),1)):I(``,!0),!x.value&&!pe.value?(A(),j(`div`,ik,[...o[258]||=[N(`div`,{class:`spinner`},null,-1),F(` Preparing your review… `,-1)]])):be.value?(A(),j(`div`,ak,[N(`div`,ok,[P(E(Zb),{"aria-hidden":`true`})]),o[262]||=N(`p`,{class:`eyebrow`},`DEFENSE RECORDED`,-1),N(`h2`,null,C(be.value.before===null?`A baseline now exists.`:`Defense complete.`),1),N(`div`,sk,[N(`span`,null,[o[259]||=N(`small`,null,`BEFORE`,-1),N(`strong`,null,C(be.value.before??`Not rated`),1)]),o[261]||=N(`i`,null,`→`,-1),N(`span`,null,[o[260]||=N(`small`,null,`AFTER`,-1),N(`strong`,null,C(be.value.after),1)])]),N(`p`,null,` You spent `+C(Math.max(1,Math.round(be.value.durationMs/6e4)))+` minute`+C(Math.round(be.value.durationMs/6e4)===1?``:`s`)+` tracing what changed, what supports it, and where it could fail. `,1),N(`button`,{class:`finish-review`,onClick:jr},` Back to changes `)])):x.value?(A(),j(`div`,{key:3,class:`review-body review-body-wide`,style:_e({"--ownership-left-width":`${ee.value}px`,"--ownership-right-width":`${ne.value}px`})},[N(`aside`,ck,[N(`div`,lk,[N(`span`,null,[N(`strong`,null,C(x.value.diff.files.length),1),o[263]||=F(` files`,-1)]),N(`span`,null,[N(`strong`,null,C(x.value.changedLines),1),o[264]||=F(` lines`,-1)]),N(`small`,null,C(x.value.diff.model??x.value.diff.authorship),1)]),N(`div`,uk,[N(`div`,null,[o[265]||=N(`small`,null,`CHANGE SUMMARY`,-1),N(`span`,{class:S([`risk-chip`,x.value.story.risk])},C(x.value.story.risk)+` risk`,3)]),N(`h3`,null,C(x.value.story.title),1),N(`p`,null,C(x.value.story.provenance)+` · about `+C(x.value.story.expectedMinutes)+` minutes to verify `,1),N(`ul`,null,[(A(!0),j(k,null,O(x.value.story.behaviors,e=>(A(),j(`li`,{key:e},C(e),1))),128))])]),x.value.intent?(A(),j(`div`,dk,[o[266]||=N(`small`,null,`ORIGINAL INTENT`,-1),N(`p`,null,C(x.value.intent),1)])):I(``,!0),N(`div`,fk,[N(`div`,null,[o[267]||=N(`small`,null,`SURFACES`,-1),N(`ul`,pk,[(A(!0),j(k,null,O(x.value.story.areas,e=>(A(),j(`li`,{key:e},[N(`code`,{"aria-label":e,title:e},C(jn(e)),9,mk)]))),128))])]),x.value.story.symbols.length?(A(),j(`div`,hk,[o[268]||=N(`small`,null,`NEW OR CHANGED SYMBOLS`,-1),N(`ul`,gk,[(A(!0),j(k,null,O(x.value.story.symbols,e=>(A(),j(`li`,{key:e},[N(`code`,{"aria-label":e,title:e},C(jn(e)),9,_k)]))),128))])])):I(``,!0),N(`div`,null,[o[269]||=N(`small`,null,`TEST STATUS`,-1),N(`p`,null,C(x.value.story.testStatus),1)])]),o[271]||=N(`h3`,null,`FILES CHANGED`,-1),(A(!0),j(k,null,O(x.value.diff.files,e=>(A(),j(`button`,{key:e.path,title:e.path,"aria-label":`Review ${e.path}, ${e.added} additions and ${e.removed} deletions`,class:S([`changed-file`,{active:$t.value?.path===e.path}]),onClick:t=>Sr(e.path)},[o[270]||=N(`span`,{class:`change-file-icon`,"aria-hidden":`true`},`‹›`,-1),N(`span`,null,[N(`strong`,null,C(kn(e.path)),1),N(`small`,null,C(An(e.path)),1)]),N(`em`,yk,[N(`b`,null,`+`+C(e.added),1),N(`i`,null,`−`+C(e.removed),1)])],10,vk))),128)),o[272]||=N(`h3`,null,`RISK SIGNALS`,-1),N(`ul`,bk,[(A(!0),j(k,null,O(x.value.signals,e=>(A(),j(`li`,{key:e},C(e),1))),128)),x.value.signals.length?I(``,!0):(A(),j(`li`,xk,` No structural warning signals. Verify behavior, not just shape. `))])]),N(`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[78]||=No(e=>ar(`left`,e),[`prevent`]),onKeydown:[o[79]||=Fo(No(e=>ir(`left`,-20),[`prevent`]),[`left`]),o[80]||=Fo(No(e=>ir(`left`,20),[`prevent`]),[`right`])],onDblclick:o[81]||=e=>rr(`left`,360)},null,40,Sk),N(`section`,Ck,[N(`div`,wk,[N(`div`,Tk,[N(`button`,{onClick:o[82]||=e=>Cr(-1),"aria-label":`Previous file`},` ‹ `),N(`div`,null,[N(`strong`,null,C($t.value?.path??`Diff evidence`),1),en.value?(A(),j(`small`,Ek,C(en.value.added)+` additions · `+C(en.value.removed)+` deletions · file `+C(tn.value+1)+` of `+C(Qt.value.length),1)):I(``,!0)]),N(`button`,{onClick:o[83]||=e=>Cr(1),"aria-label":`Next file`},` › `)]),N(`div`,Dk,[N(`button`,{class:S({active:ve.value===`unified`}),onClick:o[84]||=e=>ve.value=`unified`},` Unified`,2),N(`button`,{class:S({active:ve.value===`split`}),onClick:o[85]||=e=>ve.value=`split`},` Split`,2),N(`button`,{class:S({active:ye.value}),onClick:o[86]||=e=>ye.value=!ye.value},` Wrap `,2)])]),$t.value&&ve.value===`unified`?(A(),j(`div`,{key:0,class:S([`semantic-diff`,{wrap:ye.value}]),"aria-label":`Unified code diff`},[(A(!0),j(k,null,O($t.value.lines,(e,t)=>(A(),j(`div`,{key:t,class:S([`diff-line`,e.kind])},[N(`span`,Ok,C(e.oldLine??``),1),N(`span`,kk,C(e.newLine??``),1),N(`span`,Ak,C(e.kind===`add`?`+`:e.kind===`delete`?`−`:e.kind===`context`?` `:``),1),N(`code`,null,[(A(!0),j(k,null,O(E(zx)(e.text,$t.value.path),(e,t)=>(A(),j(`span`,{key:t,class:S(`syntax-${e.kind}`)},C(e.text),3))),128))])],2))),128))],2)):$t.value?(A(),j(`div`,{key:1,class:S([`split-diff`,{wrap:ye.value}]),"aria-label":`Side-by-side code diff`},[(A(!0),j(k,null,O($t.value.lines,(e,t)=>(A(),j(k,{key:t},[e.kind===`hunk`||e.kind===`meta`?(A(),j(`div`,{key:0,class:S([`split-special`,e.kind])},C(e.text),3)):(A(),j(`div`,jk,[N(`div`,{class:S([`split-cell`,e.kind===`delete`?`delete`:e.kind===`context`?`context`:`empty`])},[N(`span`,Mk,C(e.kind===`add`?``:e.oldLine),1),N(`span`,Nk,C(e.kind===`delete`?`−`:` `),1),N(`code`,null,[e.kind===`add`?I(``,!0):(A(!0),j(k,{key:0},O(E(zx)(e.text,$t.value.path),(e,t)=>(A(),j(`span`,{key:t,class:S(`syntax-${e.kind}`)},C(e.text),3))),128))])],2),N(`div`,{class:S([`split-cell`,e.kind===`add`?`add`:e.kind===`context`?`context`:`empty`])},[N(`span`,Pk,C(e.kind===`delete`?``:e.newLine),1),N(`span`,Fk,C(e.kind===`add`?`+`:` `),1),N(`code`,null,[e.kind===`delete`?I(``,!0):(A(!0),j(k,{key:0},O(E(zx)(e.text,$t.value.path),(e,t)=>(A(),j(`span`,{key:t,class:S(`syntax-${e.kind}`)},C(e.text),3))),128))])],2)]))],64))),128))],2)):(A(),j(`div`,Ik,[...o[273]||=[N(`strong`,null,`Patch evidence unavailable`,-1),N(`span`,null,`This capture predates evidence storage. Use Git history and the file list.`,-1)]]))]),N(`button`,{type:`button`,class:`ownership-resizer ownership-resizer-right`,role:`separator`,"aria-label":`Resize review panel`,"aria-orientation":`vertical`,"aria-valuemin":340,"aria-valuemax":620,"aria-valuenow":ne.value,title:`Drag to resize review panel`,onPointerdown:o[87]||=No(e=>ar(`right`,e),[`prevent`]),onKeydown:[o[88]||=Fo(No(e=>ir(`right`,20),[`prevent`]),[`left`]),o[89]||=Fo(No(e=>ir(`right`,-20),[`prevent`]),[`right`])],onDblclick:o[90]||=e=>rr(`right`,460)},null,40,Lk),N(`aside`,Rk,[N(`div`,zk,[o[274]||=N(`span`,null,`Starting confidence`,-1),N(`strong`,null,C(ie.value.score??`Unrated`),1)]),x.value.priorNotes.length?(A(),j(`div`,Bk,[N(`div`,null,[o[275]||=N(`h3`,null,`Earlier review notes`,-1),N(`span`,null,C(x.value.priorNotes.length)+` saved`,1)]),(A(!0),j(k,null,O(x.value.priorNotes,e=>(A(),j(`article`,{key:e.id},[N(`p`,null,C(e.text),1),N(`small`,null,C(new Date(e.ts).toLocaleString())+` · `+C(Math.max(1,Math.round(e.durationMs/6e4)))+` min`,1)]))),128))])):I(``,!0),x.value.priorEvidence.length?(A(),j(`div`,Vk,[o[276]||=N(`strong`,null,`Previous evidence exists`,-1),N(`span`,null,C(x.value.priorEvidence[0].completedCount)+`/`+C(x.value.priorEvidence[0].requiredCount)+` required answers completed `+C(Dn(x.value.priorEvidence[0].ts)),1)])):I(``,!0),N(`section`,Hk,[N(`header`,null,[N(`div`,null,[o[278]||=N(`span`,{class:`coach-mark`},`a✦`,-1),N(`div`,null,[o[277]||=N(`strong`,null,`Aperta Coach`,-1),ze.value?.enabled?(A(),j(`small`,Uk,C(Be.value?.model??ze.value.model)+` · `+C(Be.value?.provider??ze.value.provider),1)):(A(),j(`small`,Wk,`Optional, provider-neutral coaching`))])]),o[279]||=N(`em`,null,`AI-GENERATED`,-1)]),Be.value?(A(),j(k,{key:0},[N(`h3`,null,C(Be.value.focus.title),1),N(`p`,null,C(Be.value.orientation),1),N(`p`,Gk,[o[280]||=N(`b`,null,`Focus:`,-1),F(` `+C(Be.value.focus.why),1)]),Be.value.uncertainties.length?(A(),j(`details`,Kk,[N(`summary`,null,C(Be.value.uncertainties.length)+` explicit unknown`+C(Be.value.uncertainties.length===1?``:`s`),1),N(`ul`,null,[(A(!0),j(k,null,O(Be.value.uncertainties,e=>(A(),j(`li`,{key:e},C(e),1))),128))])])):I(``,!0)],64)):(A(),j(k,{key:1},[o[281]||=N(`p`,null,` Generate questions from this diff, its impact, its proof, and your earlier answers. Coach asks questions. It cannot decide whether you understand the code. `,-1),N(`button`,{disabled:!ze.value?.enabled||Ve.value,onClick:Ar},C(Ve.value?`${He.value?.state??`Starting`} review…`:`Generate review questions`),9,qk),Ve.value?(A(),j(`button`,{key:0,class:`cancel-job`,onClick:o[91]||=e=>gr(He.value)},` Cancel`)):I(``,!0),ze.value&&!ze.value.enabled?(A(),j(`small`,Jk,C(ze.value.reason),1)):I(``,!0)],64)),Ue.value?(A(),j(`p`,Yk,C(Ue.value),1)):I(``,!0),o[282]||=N(`footer`,null,` Uses local evidence · cannot change proof status · never grades your writing `,-1)]),o[284]||=N(`p`,{class:`step-label`},[N(`b`,null,`3`),F(` Challenge`)],-1),o[285]||=N(`h3`,null,`Defend what you found`,-1),N(`div`,Xk,[(A(!0),j(k,null,O(rn.value,e=>(A(),j(`article`,{key:e.id,class:S({answered:(Se.value[e.id]?.trim().length??0)>=20,optional:!e.requiredForOwned})},[N(`div`,null,[N(`span`,null,C(e.kind),1),N(`em`,null,C(e.requiredForOwned?`required`:`optional`),1),e.path?(A(),j(`button`,{key:0,onClick:t=>wr(e)},` Show code → `,8,Zk)):I(``,!0)]),N(`label`,{for:`answer-${e.id}`},C(e.text),9,Qk),`rationale`in e?(A(),j(`small`,$k,C(e.rationale),1)):I(``,!0),Ln(N(`textarea`,{id:`answer-${e.id}`,"onUpdate:modelValue":t=>Se.value[e.id]=t,rows:`2`,placeholder:`Answer in your own words…`},null,8,eA),[[wo,Se.value[e.id]]])],2))),128))]),o[286]||=N(`p`,{class:`step-label articulate`},[N(`b`,null,`4`),F(` Defend`)],-1),o[287]||=N(`label`,{for:`explanation`},`State what changed and why you can stand behind it`,-1),Ln(N(`textarea`,{id:`explanation`,"onUpdate:modelValue":o[92]||=e=>fe.value=e,rows:`5`,placeholder:`What changed, why it works, and where it could fail…`},null,512),[[wo,fe.value]]),N(`fieldset`,tA,[o[283]||=N(`legend`,null,`Where are you now?`,-1),(A(),j(k,null,O([1,2,3],e=>N(`button`,{key:e,disabled:e===3&&!on.value,title:e===3&&!on.value?`Complete the required ownership evidence first`:``,class:S({selected:de.value===e}),onClick:t=>de.value=e},[N(`strong`,null,C(e),1),N(`span`,null,C(e===1?`Opaque`:e===2?`Followable`:on.value?`Owned`:`Prove first`),1)],10,nA)),64))]),N(`button`,{class:`finish-review`,disabled:me.value,onClick:Nr},C(me.value?`Saving…`:`Record defense`),9,rA),o[288]||=N(`small`,{class:`privacy-note`},`Aperta saves evidence from the review. It never grades your writing.`,-1)])],4)):I(``,!0)])])):I(``,!0),Ut.value?(A(),M(OS,{key:5,dossier:Ut.value,"brief-href":Xt.value,theme:p.value,onClose:o[93]||=e=>Ut.value=null,onDefend:Gr,onOpenFile:Kr},null,8,[`dossier`,`brief-href`,`theme`])):I(``,!0),N(`footer`,iA,[o[289]||=N(`span`,null,[N(`i`,{class:`status-dot`}),F(`Private local memory · outside Git · Coach shares evidence only on request`)],-1),o[290]||=N(`span`,null,`1 opaque · 2 followable · 3 owned`,-1),N(`span`,null,`Updated `+C(t.value?new Date(t.value.generatedAt).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`}):`Not updated`),1)])])],10,PS))}});Nb(),zo(aA).mount(`#app`);
|