annotask 0.0.0 → 0.0.1
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 +40 -2
- package/dist/chunk-GHDLRMQG.js +61 -0
- package/dist/chunk-GHDLRMQG.js.map +1 -0
- package/dist/chunk-JLOSPIJ4.js +340 -0
- package/dist/chunk-JLOSPIJ4.js.map +1 -0
- package/dist/chunk-JPNMDGZN.js +61 -0
- package/dist/chunk-JPNMDGZN.js.map +1 -0
- package/dist/chunk-R6P4MMZW.js +340 -0
- package/dist/chunk-R6P4MMZW.js.map +1 -0
- package/dist/chunk-VI4NPM6C.js +888 -0
- package/dist/chunk-VI4NPM6C.js.map +1 -0
- package/dist/chunk-VU7Z7EZA.js +362 -0
- package/dist/chunk-VU7Z7EZA.js.map +1 -0
- package/dist/chunk-XLNGAH3S.js +29 -0
- package/dist/chunk-XLNGAH3S.js.map +1 -0
- package/dist/cli.js +38 -10
- package/dist/index.d.ts +11 -0
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +4 -1
- package/dist/server.js +1 -1
- package/dist/shell/assets/{index-BD3nZNWX.js → index-BcsdXOsJ.js} +25 -25
- package/dist/shell/index.html +1 -1
- package/dist/standalone.js +3 -3
- package/dist/webpack-loader.js +1 -1
- package/dist/webpack.js +4 -4
- package/package.json +2 -1
- package/skills/annotask-apply/SKILL.md +8 -0
- package/skills/annotask-watch/SKILL.md +1 -1
|
@@ -2,58 +2,58 @@
|
|
|
2
2
|
* @vue/shared v3.5.31
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function
|
|
5
|
+
**/function Gl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Oe={},Fn=[],Lt=()=>{},$s=()=>!1,Ki=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wi=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Xl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ra=Object.prototype.hasOwnProperty,Se=(e,t)=>Ra.call(e,t),de=Array.isArray,In=e=>fi(e)==="[object Map]",zi=e=>fi(e)==="[object Set]",wo=e=>fi(e)==="[object Date]",ge=e=>typeof e=="function",Be=e=>typeof e=="string",kt=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",Ts=e=>($e(e)||ge(e))&&ge(e.then)&&ge(e.catch),Es=Object.prototype.toString,fi=e=>Es.call(e),Ma=e=>fi(e).slice(8,-1),Fs=e=>fi(e)==="[object Object]",Gi=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xn=Gl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xi=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},La=/-\w/g,At=Xi(e=>e.replace(La,t=>t.slice(1).toUpperCase())),Da=/\B([A-Z])/g,on=Xi(e=>e.replace(Da,"-$1").toLowerCase()),Is=Xi(e=>e.charAt(0).toUpperCase()+e.slice(1)),al=Xi(e=>e?`on${Is(e)}`:""),Mt=(e,t)=>!Object.is(e,t),Ci=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Os=(e,t,n,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},ql=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _o;const qi=()=>_o||(_o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Me(e){if(de(e)){const t={};for(let n=0;n<e.length;n++){const l=e[n],i=Be(l)?Ha(l):Me(l);if(i)for(const o in i)t[o]=i[o]}return t}else if(Be(e)||$e(e))return e}const Na=/;(?![^(]*\))/g,Va=/:([^]+)/,Ba=/\/\*[^]*?\*\//g;function Ha(e){const t={};return e.replace(Ba,"").split(Na).forEach(n=>{if(n){const l=n.split(Va);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function te(e){let t="";if(Be(e))t=e;else if(de(e))for(let n=0;n<e.length;n++){const l=te(e[n]);l&&(t+=l+" ")}else if($e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ja="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ua=Gl(ja);function Ps(e){return!!e||e===""}function Ya(e,t){if(e.length!==t.length)return!1;let n=!0;for(let l=0;n&&l<e.length;l++)n=pi(e[l],t[l]);return n}function pi(e,t){if(e===t)return!0;let n=wo(e),l=wo(t);if(n||l)return n&&l?e.getTime()===t.getTime():!1;if(n=kt(e),l=kt(t),n||l)return e===t;if(n=de(e),l=de(t),n||l)return n&&l?Ya(e,t):!1;if(n=$e(e),l=$e(t),n||l){if(!n||!l)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const s in e){const r=e.hasOwnProperty(s),u=t.hasOwnProperty(s);if(r&&!u||!r&&u||!pi(e[s],t[s]))return!1}}return String(e)===String(t)}function Rs(e,t){return e.findIndex(n=>pi(n,t))}const Ms=e=>!!(e&&e.__v_isRef===!0),R=e=>Be(e)?e:e==null?"":de(e)||$e(e)&&(e.toString===Es||!ge(e.toString))?Ms(e)?R(e.value):JSON.stringify(e,Ls,2):String(e),Ls=(e,t)=>Ms(t)?Ls(e,t.value):In(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,i],o)=>(n[ul(l,o)+" =>"]=i,n),{})}:zi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ul(n))}:kt(t)?ul(t):$e(t)&&!de(t)&&!Fs(t)?String(t):t,ul=(e,t="")=>{var n;return kt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
6
|
* @vue/reactivity v3.5.31
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let dt;class Ya{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=dt,!t&&dt&&(this.index=(dt.scopes||(dt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=dt;try{return dt=this,t()}finally{dt=n}}}on(){++this._on===1&&(this.prevScope=dt,dt=this)}off(){this._on>0&&--this._on===0&&(dt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n<l;n++)this.effects[n].stop();for(this.effects.length=0,n=0,l=this.cleanups.length;n<l;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,l=this.scopes.length;n<l;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Ka(){return dt}let Re;const ul=new WeakSet;class Ls{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,dt&&dt.active&&dt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ul.has(this)&&(ul.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ns(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_o(this),Vs(this);const t=Re,n=At;Re=this,At=!0;try{return this.fn()}finally{Bs(this),Re=t,At=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zl(t);this.deps=this.depsTail=void 0,_o(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ul.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Cl(this)&&this.run()}get dirty(){return Cl(this)}}let Ds=0,qn,Jn;function Ns(e,t=!1){if(e.flags|=8,t){e.next=Jn,Jn=e;return}e.next=qn,qn=e}function ql(){Ds++}function Jl(){if(--Ds>0)return;if(Jn){let t=Jn;for(Jn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;qn;){let t=qn;for(qn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function Vs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Bs(e){let t,n=e.depsTail,l=n;for(;l;){const i=l.prevDep;l.version===-1?(l===n&&(n=i),Zl(l),Wa(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}e.deps=t,e.depsTail=n}function Cl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ii)||(e.globalVersion=ii,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cl(e))))return;e.flags|=2;const t=e.dep,n=Re,l=At;Re=e,At=!0;try{Vs(e);const i=e.fn(e._value);(t.version===0||Mt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Re=n,At=l,Bs(e),e.flags&=-3}}function Zl(e,t=!1){const{dep:n,prevSub:l,nextSub:i}=e;if(l&&(l.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Zl(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Wa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let At=!0;const js=[];function Wt(){js.push(At),At=!1}function zt(){const e=js.pop();At=e===void 0?!0:e}function _o(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Re;Re=void 0;try{t()}finally{Re=n}}}let ii=0;class za{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ql{constructor(t){this.computed=t,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(t){if(!Re||!At||Re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Re)n=this.activeLink=new za(Re,this),Re.deps?(n.prevDep=Re.depsTail,Re.depsTail.nextDep=n,Re.depsTail=n):Re.deps=Re.depsTail=n,Us(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=Re.depsTail,n.nextDep=void 0,Re.depsTail.nextDep=n,Re.depsTail=n,Re.deps===n&&(Re.deps=l)}return n}trigger(t){this.version++,ii++,this.notify(t)}notify(t){ql();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Jl()}}}function Us(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Us(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Fi=new WeakMap,vn=Symbol(""),Al=Symbol(""),li=Symbol("");function et(e,t,n){if(At&&Re){let l=Fi.get(e);l||Fi.set(e,l=new Map);let i=l.get(n);i||(l.set(n,i=new Ql),i.map=l,i.key=n),i.track()}}function Ut(e,t,n,l,i,o){const s=Fi.get(e);if(!s){ii++;return}const r=u=>{u&&u.trigger()};if(ql(),t==="clear")s.forEach(r);else{const u=fe(e),c=u&&Gi(n);if(u&&n==="length"){const a=Number(l);s.forEach((f,g)=>{(g==="length"||g===li||!xt(g)&&g>=a)&&r(f)})}else switch((n!==void 0||s.has(void 0))&&r(s.get(n)),c&&r(s.get(li)),t){case"add":u?c&&r(s.get("length")):(r(s.get(vn)),In(e)&&r(s.get(Al)));break;case"delete":u||(r(s.get(vn)),In(e)&&r(s.get(Al)));break;case"set":In(e)&&r(s.get(vn));break}}Jl()}function Ga(e,t){const n=Fi.get(e);return n&&n.get(t)}function _n(e){const t=ke(e);return t===e?t:(et(t,"iterate",li),bt(e)?t:t.map(St))}function Ji(e){return et(e=ke(e),"iterate",li),e}function Ot(e,t){return Gt(e)?Mn(mn(e)?St(t):t):St(t)}const Xa={__proto__:null,[Symbol.iterator](){return cl(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return _n(this).concat(...e.map(t=>fe(t)?_n(t):t))},entries(){return cl(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return Vt(this,"every",e,t,void 0,arguments)},filter(e,t){return Vt(this,"filter",e,t,n=>n.map(l=>Ot(this,l)),arguments)},find(e,t){return Vt(this,"find",e,t,n=>Ot(this,n),arguments)},findIndex(e,t){return Vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vt(this,"findLast",e,t,n=>Ot(this,n),arguments)},findLastIndex(e,t){return Vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return dl(this,"includes",e)},indexOf(...e){return dl(this,"indexOf",e)},join(e){return _n(this).join(e)},lastIndexOf(...e){return dl(this,"lastIndexOf",e)},map(e,t){return Vt(this,"map",e,t,void 0,arguments)},pop(){return Bn(this,"pop")},push(...e){return Bn(this,"push",e)},reduce(e,...t){return xo(this,"reduce",e,t)},reduceRight(e,...t){return xo(this,"reduceRight",e,t)},shift(){return Bn(this,"shift")},some(e,t){return Vt(this,"some",e,t,void 0,arguments)},splice(...e){return Bn(this,"splice",e)},toReversed(){return _n(this).toReversed()},toSorted(e){return _n(this).toSorted(e)},toSpliced(...e){return _n(this).toSpliced(...e)},unshift(...e){return Bn(this,"unshift",e)},values(){return cl(this,"values",e=>Ot(this,e))}};function cl(e,t,n){const l=Ji(e),i=l[t]();return l!==e&&!bt(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const qa=Array.prototype;function Vt(e,t,n,l,i,o){const s=Ji(e),r=s!==e&&!bt(e),u=s[t];if(u!==qa[t]){const f=u.apply(e,o);return r?St(f):f}let c=n;s!==e&&(r?c=function(f,g){return n.call(this,Ot(e,f),g,e)}:n.length>2&&(c=function(f,g){return n.call(this,f,g,e)}));const a=u.call(s,c,l);return r&&i?i(a):a}function xo(e,t,n,l){const i=Ji(e),o=i!==e&&!bt(e);let s=n,r=!1;i!==e&&(o?(r=l.length===0,s=function(c,a,f){return r&&(r=!1,c=Ot(e,c)),n.call(this,c,Ot(e,a),f,e)}):n.length>3&&(s=function(c,a,f){return n.call(this,c,a,f,e)}));const u=i[t](s,...l);return r?Ot(e,u):u}function dl(e,t,n){const l=ke(e);et(l,"iterate",li);const i=l[t](...n);return(i===-1||i===!1)&&Zi(n[0])?(n[0]=ke(n[0]),l[t](...n)):i}function Bn(e,t,n=[]){Wt(),ql();const l=ke(e)[t].apply(e,n);return Jl(),zt(),l}const Ja=zl("__proto__,__v_isRef,__isVue"),Ys=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(xt));function Za(e){xt(e)||(e=String(e));const t=ke(this);return et(t,"has",e),t.hasOwnProperty(e)}class Ks{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return l===(i?o?au:Xs:o?Gs:zs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const s=fe(t);if(!i){let u;if(s&&(u=Xa[n]))return u;if(n==="hasOwnProperty")return Za}const r=Reflect.get(t,n,Ue(t)?t:l);if((xt(n)?Ys.has(n):Ja(n))||(i||et(t,"get",n),o))return r;if(Ue(r)){const u=s&&Gi(n)?r:r.value;return i&&$e(u)?$l(u):u}return $e(r)?i?$l(r):to(r):r}}class Ws extends Ks{constructor(t=!1){super(!1,t)}set(t,n,l,i){let o=t[n];const s=fe(t)&&Gi(n);if(!this._isShallow){const c=Gt(o);if(!bt(l)&&!Gt(l)&&(o=ke(o),l=ke(l)),!s&&Ue(o)&&!Ue(l))return c||(o.value=l),!0}const r=s?Number(n)<t.length:Ae(t,n),u=Reflect.set(t,n,l,Ue(t)?t:i);return t===ke(i)&&(r?Mt(l,o)&&Ut(t,"set",n,l):Ut(t,"add",n,l)),u}deleteProperty(t,n){const l=Ae(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&l&&Ut(t,"delete",n,void 0),i}has(t,n){const l=Reflect.has(t,n);return(!xt(n)||!Ys.has(n))&&et(t,"has",n),l}ownKeys(t){return et(t,"iterate",fe(t)?"length":vn),Reflect.ownKeys(t)}}class Qa extends Ks{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const eu=new Ws,tu=new Qa,nu=new Ws(!0);const Sl=e=>e,wi=e=>Reflect.getPrototypeOf(e);function iu(e,t,n){return function(...l){const i=this.__v_raw,o=ke(i),s=In(o),r=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,c=i[e](...l),a=n?Sl:t?Mn:St;return!t&&et(o,"iterate",u?Al:vn),Ze(Object.create(c),{next(){const{value:f,done:g}=c.next();return g?{value:f,done:g}:{value:r?[a(f[0]),a(f[1])]:a(f),done:g}}})}}function _i(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lu(e,t){const n={get(i){const o=this.__v_raw,s=ke(o),r=ke(i);e||(Mt(i,r)&&et(s,"get",i),et(s,"get",r));const{has:u}=wi(s),c=t?Sl:e?Mn:St;if(u.call(s,i))return c(o.get(i));if(u.call(s,r))return c(o.get(r));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&et(ke(i),"iterate",vn),i.size},has(i){const o=this.__v_raw,s=ke(o),r=ke(i);return e||(Mt(i,r)&&et(s,"has",i),et(s,"has",r)),i===r?o.has(i):o.has(i)||o.has(r)},forEach(i,o){const s=this,r=s.__v_raw,u=ke(r),c=t?Sl:e?Mn:St;return!e&&et(u,"iterate",vn),r.forEach((a,f)=>i.call(o,c(a),c(f),s))}};return Ze(n,e?{add:_i("add"),set:_i("set"),delete:_i("delete"),clear:_i("clear")}:{add(i){const o=ke(this),s=wi(o),r=ke(i),u=!t&&!bt(i)&&!Gt(i)?r:i;return s.has.call(o,u)||Mt(i,u)&&s.has.call(o,i)||Mt(r,u)&&s.has.call(o,r)||(o.add(u),Ut(o,"add",u,u)),this},set(i,o){!t&&!bt(o)&&!Gt(o)&&(o=ke(o));const s=ke(this),{has:r,get:u}=wi(s);let c=r.call(s,i);c||(i=ke(i),c=r.call(s,i));const a=u.call(s,i);return s.set(i,o),c?Mt(o,a)&&Ut(s,"set",i,o):Ut(s,"add",i,o),this},delete(i){const o=ke(this),{has:s,get:r}=wi(o);let u=s.call(o,i);u||(i=ke(i),u=s.call(o,i)),r&&r.call(o,i);const c=o.delete(i);return u&&Ut(o,"delete",i,void 0),c},clear(){const i=ke(this),o=i.size!==0,s=i.clear();return o&&Ut(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=iu(i,e,t)}),n}function eo(e,t){const n=lu(e,t);return(l,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?l:Reflect.get(Ae(n,i)&&i in l?n:l,i,o)}const ou={get:eo(!1,!1)},su={get:eo(!1,!0)},ru={get:eo(!0,!1)};const zs=new WeakMap,Gs=new WeakMap,Xs=new WeakMap,au=new WeakMap;function uu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cu(e){return e.__v_skip||!Object.isExtensible(e)?0:uu(Ra(e))}function to(e){return Gt(e)?e:no(e,!1,eu,ou,zs)}function du(e){return no(e,!1,nu,su,Gs)}function $l(e){return no(e,!0,tu,ru,Xs)}function no(e,t,n,l,i){if(!$e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=cu(e);if(o===0)return e;const s=i.get(e);if(s)return s;const r=new Proxy(e,o===2?l:n);return i.set(e,r),r}function mn(e){return Gt(e)?mn(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function bt(e){return!!(e&&e.__v_isShallow)}function Zi(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function fu(e){return!Ae(e,"__v_skip")&&Object.isExtensible(e)&&Is(e,"__v_skip",!0),e}const St=e=>$e(e)?to(e):e,Mn=e=>$e(e)?$l(e):e;function Ue(e){return e?e.__v_isRef===!0:!1}function q(e){return pu(e,!1)}function pu(e,t){return Ue(e)?e:new hu(e,t)}class hu{constructor(t,n){this.dep=new Ql,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ke(t),this._value=n?t:St(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||bt(t)||Gt(t);t=l?t:ke(t),Mt(t,n)&&(this._rawValue=t,this._value=l?t:St(t),this.dep.trigger())}}function ee(e){return Ue(e)?e.value:e}const gu={get:(e,t,n)=>t==="__v_raw"?e:ee(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const i=e[t];return Ue(i)&&!Ue(n)?(i.value=n,!0):Reflect.set(e,t,n,l)}};function qs(e){return mn(e)?e:new Proxy(e,gu)}class vu{constructor(t,n,l){this._object=t,this._defaultValue=l,this.__v_isRef=!0,this._value=void 0,this._key=xt(n)?n:String(n),this._raw=ke(t);let i=!0,o=t;if(!fe(t)||xt(this._key)||!Gi(this._key))do i=!Zi(o)||bt(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=ee(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ue(this._raw[this._key])){const n=this._object[this._key];if(Ue(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Ga(this._raw,this._key)}}class mu{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yu(e,t,n){return Ue(e)?e:ge(e)?new mu(e):$e(e)&&arguments.length>1?bu(e,t,n):q(e)}function bu(e,t,n){return new vu(e,t,n)}class wu{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ql(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ii-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Re!==this)return Ns(this,!0),!0}get value(){const t=this.dep.track();return Hs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _u(e,t,n=!1){let l,i;return ge(e)?l=e:(l=e.get,i=e.set),new wu(l,i,n)}const xi={},Ii=new WeakMap;let hn;function xu(e,t=!1,n=hn){if(n){let l=Ii.get(n);l||Ii.set(n,l=[]),l.push(e)}}function ku(e,t,n=Oe){const{immediate:l,deep:i,once:o,scheduler:s,augmentJob:r,call:u}=n,c=A=>i?A:bt(A)||i===!1||i===0?Yt(A,1):Yt(A);let a,f,g,h,v=!1,x=!1;if(Ue(e)?(f=()=>e.value,v=bt(e)):mn(e)?(f=()=>c(e),v=!0):fe(e)?(x=!0,v=e.some(A=>mn(A)||bt(A)),f=()=>e.map(A=>{if(Ue(A))return A.value;if(mn(A))return c(A);if(ge(A))return u?u(A,2):A()})):ge(e)?t?f=u?()=>u(e,2):e:f=()=>{if(g){Wt();try{g()}finally{zt()}}const A=hn;hn=a;try{return u?u(e,3,[h]):e(h)}finally{hn=A}}:f=Lt,t&&i){const A=f,F=i===!0?1/0:i;f=()=>Yt(A(),F)}const C=Ka(),M=()=>{a.stop(),C&&C.active&&Gl(C.effects,a)};if(o&&t){const A=t;t=(...F)=>{A(...F),M()}}let w=x?new Array(e.length).fill(xi):xi;const k=A=>{if(!(!(a.flags&1)||!a.dirty&&!A))if(t){const F=a.run();if(i||v||(x?F.some((L,U)=>Mt(L,w[U])):Mt(F,w))){g&&g();const L=hn;hn=a;try{const U=[F,w===xi?void 0:x&&w[0]===xi?[]:w,h];w=F,u?u(t,3,U):t(...U)}finally{hn=L}}}else a.run()};return r&&r(k),a=new Ls(f),a.scheduler=s?()=>s(k,!1):k,h=A=>xu(A,!1,a),g=a.onStop=()=>{const A=Ii.get(a);if(A){if(u)u(A,4);else for(const F of A)F();Ii.delete(a)}},t?l?k(!0):w=a.run():s?s(k.bind(null,!0),!0):a.run(),M.pause=a.pause.bind(a),M.resume=a.resume.bind(a),M.stop=M,M}function Yt(e,t=1/0,n){if(t<=0||!$e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ue(e))Yt(e.value,t,n);else if(fe(e))for(let l=0;l<e.length;l++)Yt(e[l],t,n);else if(zi(e)||In(e))e.forEach(l=>{Yt(l,t,n)});else if(Es(e)){for(const l in e)Yt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Yt(e[l],t,n)}return e}/**
|
|
9
|
+
**/let ft;class Ka{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ft,!t&&ft&&(this.index=(ft.scopes||(ft.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ft;try{return ft=this,t()}finally{ft=n}}}on(){++this._on===1&&(this.prevScope=ft,ft=this)}off(){this._on>0&&--this._on===0&&(ft=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n<l;n++)this.effects[n].stop();for(this.effects.length=0,n=0,l=this.cleanups.length;n<l;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,l=this.scopes.length;n<l;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Wa(){return ft}let Re;const cl=new WeakSet;class Ds{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ft&&ft.active&&ft.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,cl.has(this)&&(cl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Vs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xo(this),Bs(this);const t=Re,n=St;Re=this,St=!0;try{return this.fn()}finally{Hs(this),Re=t,St=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ql(t);this.deps=this.depsTail=void 0,xo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?cl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Al(this)&&this.run()}get dirty(){return Al(this)}}let Ns=0,qn,Jn;function Vs(e,t=!1){if(e.flags|=8,t){e.next=Jn,Jn=e;return}e.next=qn,qn=e}function Jl(){Ns++}function Zl(){if(--Ns>0)return;if(Jn){let t=Jn;for(Jn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;qn;){let t=qn;for(qn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function Bs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Hs(e){let t,n=e.depsTail,l=n;for(;l;){const i=l.prevDep;l.version===-1?(l===n&&(n=i),Ql(l),za(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}e.deps=t,e.depsTail=n}function Al(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(js(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function js(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ii)||(e.globalVersion=ii,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Al(e))))return;e.flags|=2;const t=e.dep,n=Re,l=St;Re=e,St=!0;try{Bs(e);const i=e.fn(e._value);(t.version===0||Mt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Re=n,St=l,Hs(e),e.flags&=-3}}function Ql(e,t=!1){const{dep:n,prevSub:l,nextSub:i}=e;if(l&&(l.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ql(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function za(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let St=!0;const Us=[];function Wt(){Us.push(St),St=!1}function zt(){const e=Us.pop();St=e===void 0?!0:e}function xo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Re;Re=void 0;try{t()}finally{Re=n}}}let ii=0;class Ga{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class eo{constructor(t){this.computed=t,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(t){if(!Re||!St||Re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Re)n=this.activeLink=new Ga(Re,this),Re.deps?(n.prevDep=Re.depsTail,Re.depsTail.nextDep=n,Re.depsTail=n):Re.deps=Re.depsTail=n,Ys(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=Re.depsTail,n.nextDep=void 0,Re.depsTail.nextDep=n,Re.depsTail=n,Re.deps===n&&(Re.deps=l)}return n}trigger(t){this.version++,ii++,this.notify(t)}notify(t){Jl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Zl()}}}function Ys(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Ys(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Fi=new WeakMap,vn=Symbol(""),Sl=Symbol(""),li=Symbol("");function et(e,t,n){if(St&&Re){let l=Fi.get(e);l||Fi.set(e,l=new Map);let i=l.get(n);i||(l.set(n,i=new eo),i.map=l,i.key=n),i.track()}}function Ut(e,t,n,l,i,o){const s=Fi.get(e);if(!s){ii++;return}const r=u=>{u&&u.trigger()};if(Jl(),t==="clear")s.forEach(r);else{const u=de(e),c=u&&Gi(n);if(u&&n==="length"){const a=Number(l);s.forEach((f,g)=>{(g==="length"||g===li||!kt(g)&&g>=a)&&r(f)})}else switch((n!==void 0||s.has(void 0))&&r(s.get(n)),c&&r(s.get(li)),t){case"add":u?c&&r(s.get("length")):(r(s.get(vn)),In(e)&&r(s.get(Sl)));break;case"delete":u||(r(s.get(vn)),In(e)&&r(s.get(Sl)));break;case"set":In(e)&&r(s.get(vn));break}}Zl()}function Xa(e,t){const n=Fi.get(e);return n&&n.get(t)}function _n(e){const t=ke(e);return t===e?t:(et(t,"iterate",li),wt(e)?t:t.map($t))}function Ji(e){return et(e=ke(e),"iterate",li),e}function Ot(e,t){return Gt(e)?Mn(mn(e)?$t(t):t):$t(t)}const qa={__proto__:null,[Symbol.iterator](){return dl(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return _n(this).concat(...e.map(t=>de(t)?_n(t):t))},entries(){return dl(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return Vt(this,"every",e,t,void 0,arguments)},filter(e,t){return Vt(this,"filter",e,t,n=>n.map(l=>Ot(this,l)),arguments)},find(e,t){return Vt(this,"find",e,t,n=>Ot(this,n),arguments)},findIndex(e,t){return Vt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Vt(this,"findLast",e,t,n=>Ot(this,n),arguments)},findLastIndex(e,t){return Vt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Vt(this,"forEach",e,t,void 0,arguments)},includes(...e){return fl(this,"includes",e)},indexOf(...e){return fl(this,"indexOf",e)},join(e){return _n(this).join(e)},lastIndexOf(...e){return fl(this,"lastIndexOf",e)},map(e,t){return Vt(this,"map",e,t,void 0,arguments)},pop(){return Bn(this,"pop")},push(...e){return Bn(this,"push",e)},reduce(e,...t){return ko(this,"reduce",e,t)},reduceRight(e,...t){return ko(this,"reduceRight",e,t)},shift(){return Bn(this,"shift")},some(e,t){return Vt(this,"some",e,t,void 0,arguments)},splice(...e){return Bn(this,"splice",e)},toReversed(){return _n(this).toReversed()},toSorted(e){return _n(this).toSorted(e)},toSpliced(...e){return _n(this).toSpliced(...e)},unshift(...e){return Bn(this,"unshift",e)},values(){return dl(this,"values",e=>Ot(this,e))}};function dl(e,t,n){const l=Ji(e),i=l[t]();return l!==e&&!wt(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const Ja=Array.prototype;function Vt(e,t,n,l,i,o){const s=Ji(e),r=s!==e&&!wt(e),u=s[t];if(u!==Ja[t]){const f=u.apply(e,o);return r?$t(f):f}let c=n;s!==e&&(r?c=function(f,g){return n.call(this,Ot(e,f),g,e)}:n.length>2&&(c=function(f,g){return n.call(this,f,g,e)}));const a=u.call(s,c,l);return r&&i?i(a):a}function ko(e,t,n,l){const i=Ji(e),o=i!==e&&!wt(e);let s=n,r=!1;i!==e&&(o?(r=l.length===0,s=function(c,a,f){return r&&(r=!1,c=Ot(e,c)),n.call(this,c,Ot(e,a),f,e)}):n.length>3&&(s=function(c,a,f){return n.call(this,c,a,f,e)}));const u=i[t](s,...l);return r?Ot(e,u):u}function fl(e,t,n){const l=ke(e);et(l,"iterate",li);const i=l[t](...n);return(i===-1||i===!1)&&Zi(n[0])?(n[0]=ke(n[0]),l[t](...n)):i}function Bn(e,t,n=[]){Wt(),Jl();const l=ke(e)[t].apply(e,n);return Zl(),zt(),l}const Za=Gl("__proto__,__v_isRef,__isVue"),Ks=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kt));function Qa(e){kt(e)||(e=String(e));const t=ke(this);return et(t,"has",e),t.hasOwnProperty(e)}class Ws{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return l===(i?o?uu:qs:o?Xs:Gs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const s=de(t);if(!i){let u;if(s&&(u=qa[n]))return u;if(n==="hasOwnProperty")return Qa}const r=Reflect.get(t,n,Ue(t)?t:l);if((kt(n)?Ks.has(n):Za(n))||(i||et(t,"get",n),o))return r;if(Ue(r)){const u=s&&Gi(n)?r:r.value;return i&&$e(u)?Tl(u):u}return $e(r)?i?Tl(r):no(r):r}}class zs extends Ws{constructor(t=!1){super(!1,t)}set(t,n,l,i){let o=t[n];const s=de(t)&&Gi(n);if(!this._isShallow){const c=Gt(o);if(!wt(l)&&!Gt(l)&&(o=ke(o),l=ke(l)),!s&&Ue(o)&&!Ue(l))return c||(o.value=l),!0}const r=s?Number(n)<t.length:Se(t,n),u=Reflect.set(t,n,l,Ue(t)?t:i);return t===ke(i)&&(r?Mt(l,o)&&Ut(t,"set",n,l):Ut(t,"add",n,l)),u}deleteProperty(t,n){const l=Se(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&l&&Ut(t,"delete",n,void 0),i}has(t,n){const l=Reflect.has(t,n);return(!kt(n)||!Ks.has(n))&&et(t,"has",n),l}ownKeys(t){return et(t,"iterate",de(t)?"length":vn),Reflect.ownKeys(t)}}class eu extends Ws{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const tu=new zs,nu=new eu,iu=new zs(!0);const $l=e=>e,wi=e=>Reflect.getPrototypeOf(e);function lu(e,t,n){return function(...l){const i=this.__v_raw,o=ke(i),s=In(o),r=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,c=i[e](...l),a=n?$l:t?Mn:$t;return!t&&et(o,"iterate",u?Sl:vn),Ze(Object.create(c),{next(){const{value:f,done:g}=c.next();return g?{value:f,done:g}:{value:r?[a(f[0]),a(f[1])]:a(f),done:g}}})}}function _i(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ou(e,t){const n={get(i){const o=this.__v_raw,s=ke(o),r=ke(i);e||(Mt(i,r)&&et(s,"get",i),et(s,"get",r));const{has:u}=wi(s),c=t?$l:e?Mn:$t;if(u.call(s,i))return c(o.get(i));if(u.call(s,r))return c(o.get(r));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&et(ke(i),"iterate",vn),i.size},has(i){const o=this.__v_raw,s=ke(o),r=ke(i);return e||(Mt(i,r)&&et(s,"has",i),et(s,"has",r)),i===r?o.has(i):o.has(i)||o.has(r)},forEach(i,o){const s=this,r=s.__v_raw,u=ke(r),c=t?$l:e?Mn:$t;return!e&&et(u,"iterate",vn),r.forEach((a,f)=>i.call(o,c(a),c(f),s))}};return Ze(n,e?{add:_i("add"),set:_i("set"),delete:_i("delete"),clear:_i("clear")}:{add(i){const o=ke(this),s=wi(o),r=ke(i),u=!t&&!wt(i)&&!Gt(i)?r:i;return s.has.call(o,u)||Mt(i,u)&&s.has.call(o,i)||Mt(r,u)&&s.has.call(o,r)||(o.add(u),Ut(o,"add",u,u)),this},set(i,o){!t&&!wt(o)&&!Gt(o)&&(o=ke(o));const s=ke(this),{has:r,get:u}=wi(s);let c=r.call(s,i);c||(i=ke(i),c=r.call(s,i));const a=u.call(s,i);return s.set(i,o),c?Mt(o,a)&&Ut(s,"set",i,o):Ut(s,"add",i,o),this},delete(i){const o=ke(this),{has:s,get:r}=wi(o);let u=s.call(o,i);u||(i=ke(i),u=s.call(o,i)),r&&r.call(o,i);const c=o.delete(i);return u&&Ut(o,"delete",i,void 0),c},clear(){const i=ke(this),o=i.size!==0,s=i.clear();return o&&Ut(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=lu(i,e,t)}),n}function to(e,t){const n=ou(e,t);return(l,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?l:Reflect.get(Se(n,i)&&i in l?n:l,i,o)}const su={get:to(!1,!1)},ru={get:to(!1,!0)},au={get:to(!0,!1)};const Gs=new WeakMap,Xs=new WeakMap,qs=new WeakMap,uu=new WeakMap;function cu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function du(e){return e.__v_skip||!Object.isExtensible(e)?0:cu(Ma(e))}function no(e){return Gt(e)?e:io(e,!1,tu,su,Gs)}function fu(e){return io(e,!1,iu,ru,Xs)}function Tl(e){return io(e,!0,nu,au,qs)}function io(e,t,n,l,i){if(!$e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=du(e);if(o===0)return e;const s=i.get(e);if(s)return s;const r=new Proxy(e,o===2?l:n);return i.set(e,r),r}function mn(e){return Gt(e)?mn(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function wt(e){return!!(e&&e.__v_isShallow)}function Zi(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function pu(e){return!Se(e,"__v_skip")&&Object.isExtensible(e)&&Os(e,"__v_skip",!0),e}const $t=e=>$e(e)?no(e):e,Mn=e=>$e(e)?Tl(e):e;function Ue(e){return e?e.__v_isRef===!0:!1}function q(e){return hu(e,!1)}function hu(e,t){return Ue(e)?e:new gu(e,t)}class gu{constructor(t,n){this.dep=new eo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ke(t),this._value=n?t:$t(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||wt(t)||Gt(t);t=l?t:ke(t),Mt(t,n)&&(this._rawValue=t,this._value=l?t:$t(t),this.dep.trigger())}}function ee(e){return Ue(e)?e.value:e}const vu={get:(e,t,n)=>t==="__v_raw"?e:ee(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const i=e[t];return Ue(i)&&!Ue(n)?(i.value=n,!0):Reflect.set(e,t,n,l)}};function Js(e){return mn(e)?e:new Proxy(e,vu)}class mu{constructor(t,n,l){this._object=t,this._defaultValue=l,this.__v_isRef=!0,this._value=void 0,this._key=kt(n)?n:String(n),this._raw=ke(t);let i=!0,o=t;if(!de(t)||kt(this._key)||!Gi(this._key))do i=!Zi(o)||wt(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=ee(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ue(this._raw[this._key])){const n=this._object[this._key];if(Ue(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Xa(this._raw,this._key)}}class yu{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function bu(e,t,n){return Ue(e)?e:ge(e)?new yu(e):$e(e)&&arguments.length>1?wu(e,t,n):q(e)}function wu(e,t,n){return new mu(e,t,n)}class _u{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new eo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ii-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Re!==this)return Vs(this,!0),!0}get value(){const t=this.dep.track();return js(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function xu(e,t,n=!1){let l,i;return ge(e)?l=e:(l=e.get,i=e.set),new _u(l,i,n)}const xi={},Ii=new WeakMap;let hn;function ku(e,t=!1,n=hn){if(n){let l=Ii.get(n);l||Ii.set(n,l=[]),l.push(e)}}function Cu(e,t,n=Oe){const{immediate:l,deep:i,once:o,scheduler:s,augmentJob:r,call:u}=n,c=A=>i?A:wt(A)||i===!1||i===0?Yt(A,1):Yt(A);let a,f,g,h,v=!1,x=!1;if(Ue(e)?(f=()=>e.value,v=wt(e)):mn(e)?(f=()=>c(e),v=!0):de(e)?(x=!0,v=e.some(A=>mn(A)||wt(A)),f=()=>e.map(A=>{if(Ue(A))return A.value;if(mn(A))return c(A);if(ge(A))return u?u(A,2):A()})):ge(e)?t?f=u?()=>u(e,2):e:f=()=>{if(g){Wt();try{g()}finally{zt()}}const A=hn;hn=a;try{return u?u(e,3,[h]):e(h)}finally{hn=A}}:f=Lt,t&&i){const A=f,F=i===!0?1/0:i;f=()=>Yt(A(),F)}const C=Wa(),L=()=>{a.stop(),C&&C.active&&Xl(C.effects,a)};if(o&&t){const A=t;t=(...F)=>{A(...F),L()}}let w=x?new Array(e.length).fill(xi):xi;const k=A=>{if(!(!(a.flags&1)||!a.dirty&&!A))if(t){const F=a.run();if(i||v||(x?F.some((D,U)=>Mt(D,w[U])):Mt(F,w))){g&&g();const D=hn;hn=a;try{const U=[F,w===xi?void 0:x&&w[0]===xi?[]:w,h];w=F,u?u(t,3,U):t(...U)}finally{hn=D}}}else a.run()};return r&&r(k),a=new Ds(f),a.scheduler=s?()=>s(k,!1):k,h=A=>ku(A,!1,a),g=a.onStop=()=>{const A=Ii.get(a);if(A){if(u)u(A,4);else for(const F of A)F();Ii.delete(a)}},t?l?k(!0):w=a.run():s?s(k.bind(null,!0),!0):a.run(),L.pause=a.pause.bind(a),L.resume=a.resume.bind(a),L.stop=L,L}function Yt(e,t=1/0,n){if(t<=0||!$e(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ue(e))Yt(e.value,t,n);else if(de(e))for(let l=0;l<e.length;l++)Yt(e[l],t,n);else if(zi(e)||In(e))e.forEach(l=>{Yt(l,t,n)});else if(Fs(e)){for(const l in e)Yt(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Yt(e[l],t,n)}return e}/**
|
|
10
10
|
* @vue/runtime-core v3.5.31
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/function hi(e,t,n,l){try{return l?e(...l):e()}catch(i){Qi(i,t,n)}}function Nt(e,t,n,l){if(ge(e)){const i=hi(e,t,n,l);return i&&$s(i)&&i.catch(o=>{Qi(o,t,n)}),i}if(fe(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Nt(e[o],t,n,l));return i}}function Qi(e,t,n,l=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Oe;if(t){let r=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const a=r.ec;if(a){for(let f=0;f<a.length;f++)if(a[f](e,u,c)===!1)return}r=r.parent}if(o){Wt(),hi(o,null,10,[e,u,c]),zt();return}}Cu(e,n,i,l,s)}function Cu(e,t,n,l=!0,i=!1){if(i)throw e;console.error(e)}const at=[];let Ft=-1;const On=[];let Zt=null,An=0;const Js=Promise.resolve();let Oi=null;function Zs(e){const t=Oi||Js;return e?t.then(this?e.bind(this):e):t}function Au(e){let t=Ft+1,n=at.length;for(;t<n;){const l=t+n>>>1,i=at[l],o=oi(i);o<e||o===e&&i.flags&2?t=l+1:n=l}return t}function io(e){if(!(e.flags&1)){const t=oi(e),n=at[at.length-1];!n||!(e.flags&2)&&t>=oi(n)?at.push(e):at.splice(Au(t),0,e),e.flags|=1,Qs()}}function Qs(){Oi||(Oi=Js.then(tr))}function Su(e){fe(e)?On.push(...e):Zt&&e.id===-1?Zt.splice(An+1,0,e):e.flags&1||(On.push(e),e.flags|=1),Qs()}function ko(e,t,n=Ft+1){for(;n<at.length;n++){const l=at[n];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;at.splice(n,1),n--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function er(e){if(On.length){const t=[...new Set(On)].sort((n,l)=>oi(n)-oi(l));if(On.length=0,Zt){Zt.push(...t);return}for(Zt=t,An=0;An<Zt.length;An++){const n=Zt[An];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Zt=null,An=0}}const oi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function tr(e){try{for(Ft=0;Ft<at.length;Ft++){const t=at[Ft];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ft<at.length;Ft++){const t=at[Ft];t&&(t.flags&=-2)}Ft=-1,at.length=0,er(),Oi=null,(at.length||On.length)&&tr()}}let _t=null,nr=null;function Pi(e){const t=_t;return _t=e,nr=e&&e.type.__scopeId||null,t}function $u(e,t=_t,n){if(!t||e._n)return e;const l=(...i)=>{l._d&&Lo(-1);const o=Pi(t);let s;try{s=e(...i)}finally{Pi(o),l._d&&Lo(1)}return s};return l._n=!0,l._c=!0,l._d=!0,l}function Ve(e,t){if(_t===null)return e;const n=il(_t),l=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,r,u=Oe]=t[i];o&&(ge(o)&&(o={mounted:o,updated:o}),o.deep&&Yt(s),l.push({dir:o,instance:n,value:s,oldValue:void 0,arg:r,modifiers:u}))}return e}function an(e,t,n,l){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const r=i[s];o&&(r.oldValue=o[s].value);let u=r.dir[l];u&&(Wt(),Nt(u,n,8,[e.el,r,e,t]),zt())}}function Tu(e,t){if(ut){let n=ut.provides;const l=ut.parent&&ut.parent.provides;l===n&&(n=ut.provides=Object.create(l)),n[e]=t}}function Ai(e,t,n=!1){const l=$c();if(l||Pn){let i=Pn?Pn._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ge(t)?t.call(l&&l.proxy):t}}const Eu=Symbol.for("v-scx"),Fu=()=>Ai(Eu);function mt(e,t,n){return ir(e,t,n)}function ir(e,t,n=Oe){const{immediate:l,deep:i,flush:o,once:s}=n,r=Ze({},n),u=t&&l||!t&&o!=="post";let c;if(ri){if(o==="sync"){const h=Fu();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=Lt,h.resume=Lt,h.pause=Lt,h}}const a=ut;r.call=(h,v,x)=>Nt(h,a,v,x);let f=!1;o==="post"?r.scheduler=h=>{Qe(h,a&&a.suspense)}:o!=="sync"&&(f=!0,r.scheduler=(h,v)=>{v?h():io(h)}),r.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,a&&(h.id=a.uid,h.i=a))};const g=ku(e,t,r);return ri&&(c?c.push(g):u&&g()),g}function Iu(e,t,n){const l=this.proxy,i=Be(e)?e.includes(".")?lr(l,e):()=>l[e]:e.bind(l,l);let o;ge(t)?o=t:(o=t.handler,n=t);const s=vi(this),r=ir(i,o.bind(l),n);return s(),r}function lr(e,t){const n=t.split(".");return()=>{let l=e;for(let i=0;i<n.length&&l;i++)l=l[n[i]];return l}}const or=Symbol("_vte"),Ou=e=>e.__isTeleport,Zn=e=>e&&(e.disabled||e.disabled===""),Pu=e=>e&&(e.defer||e.defer===""),Co=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ao=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Tl=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},sr={name:"Teleport",__isTeleport:!0,process(e,t,n,l,i,o,s,r,u,c){const{mc:a,pc:f,pbc:g,o:{insert:h,querySelector:v,createText:x,createComment:C}}=c,M=Zn(t.props);let{shapeFlag:w,children:k,dynamicChildren:A}=t;if(e==null){const F=t.el=x(""),L=t.anchor=x("");h(F,n,l),h(L,n,l);const U=(T,j)=>{w&16&&a(k,T,j,i,o,s,r,u)},ne=()=>{const T=t.target=Tl(t.props,v),j=El(T,t,x,h);T&&(s!=="svg"&&Co(T)?s="svg":s!=="mathml"&&Ao(T)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(T),M||(U(T,j),Si(t,!1)))};M&&(U(n,L),Si(t,!0)),Pu(t.props)||o&&o.pendingBranch?(t.el.__isMounted=!1,Qe(()=>{t.el.__isMounted===!1&&(ne(),delete t.el.__isMounted)},o)):ne()}else{t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,L=t.target=e.target,U=t.targetAnchor=e.targetAnchor;if(e.el.__isMounted===!1){Qe(()=>{sr.process(e,t,n,l,i,o,s,r,u,c)},o);return}const ne=Zn(e.props),T=ne?n:L,j=ne?F:U;if(s==="svg"||Co(L)?s="svg":(s==="mathml"||Ao(L))&&(s="mathml"),A?(g(e.dynamicChildren,A,T,i,o,s,r),ro(e,t,!0)):u||f(e,t,T,j,i,o,s,r,!1),M)ne?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ki(t,n,F,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const X=t.target=Tl(t.props,v);X&&ki(t,X,null,c,0)}else ne&&ki(t,L,U,c,1);Si(t,M)}},remove(e,t,n,{um:l,o:{remove:i}},o){const{shapeFlag:s,children:r,anchor:u,targetStart:c,targetAnchor:a,target:f,props:g}=e;if(f&&(i(c),i(a)),o&&i(u),s&16){const h=o||!Zn(g);for(let v=0;v<r.length;v++){const x=r[v];l(x,t,n,h,!!x.dynamicChildren)}}},move:ki,hydrate:Ru};function ki(e,t,n,{o:{insert:l},m:i},o=2){o===0&&l(e.targetAnchor,t,n);const{el:s,anchor:r,shapeFlag:u,children:c,props:a}=e,f=o===2;if(f&&l(s,t,n),(!f||Zn(a))&&u&16)for(let g=0;g<c.length;g++)i(c[g],t,n,2);f&&l(r,t,n)}function Ru(e,t,n,l,i,o,{o:{nextSibling:s,parentNode:r,querySelector:u,insert:c,createText:a}},f){function g(C,M){let w=M;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,C._lpa=t.targetAnchor&&s(t.targetAnchor);break}}w=s(w)}}function h(C,M){M.anchor=f(s(C),M,r(C),n,l,i,o)}const v=t.target=Tl(t.props,u),x=Zn(t.props);if(v){const C=v._lpa||v.firstChild;t.shapeFlag&16&&(x?(h(e,t),g(v,C),t.targetAnchor||El(v,t,a,c,r(e)===v?e:null)):(t.anchor=s(e),g(v,C),t.targetAnchor||El(v,t,a,c),f(C&&s(C),t,v,n,l,i,o))),Si(t,x)}else x&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}const Mu=sr;function Si(e,t){const n=e.ctx;if(n&&n.ut){let l,i;for(t?(l=e.el,i=e.anchor):(l=e.targetStart,i=e.targetAnchor);l&&l!==i;)l.nodeType===1&&l.setAttribute("data-v-owner",n.uid),l=l.nextSibling;n.ut()}}function El(e,t,n,l,i=null){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[or]=s,e&&(l(o,e,i),l(s,e,i)),s}const Lu=Symbol("_leaveCb");function lo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,lo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nt(e,t){return ge(e)?Ze({name:e.name},t,{setup:e}):e}function rr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function So(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ri=new WeakMap;function Qn(e,t,n,l,i=!1){if(fe(e)){e.forEach((x,C)=>Qn(x,t&&(fe(t)?t[C]:t),n,l,i));return}if(ei(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Qn(e,t,n,l.component.subTree);return}const o=l.shapeFlag&4?il(l.component):l.el,s=i?null:o,{i:r,r:u}=e,c=t&&t.r,a=r.refs===Oe?r.refs={}:r.refs,f=r.setupState,g=ke(f),h=f===Oe?Ss:x=>So(a,x)?!1:Ae(g,x),v=(x,C)=>!(C&&So(a,C));if(c!=null&&c!==u){if($o(t),Be(c))a[c]=null,h(c)&&(f[c]=null);else if(Ue(c)){const x=t;v(c,x.k)&&(c.value=null),x.k&&(a[x.k]=null)}}if(ge(u))hi(u,r,12,[s,a]);else{const x=Be(u),C=Ue(u);if(x||C){const M=()=>{if(e.f){const w=x?h(u)?f[u]:a[u]:v()||!e.k?u.value:a[e.k];if(i)fe(w)&&Gl(w,o);else if(fe(w))w.includes(o)||w.push(o);else if(x)a[u]=[o],h(u)&&(f[u]=a[u]);else{const k=[o];v(u,e.k)&&(u.value=k),e.k&&(a[e.k]=k)}}else x?(a[u]=s,h(u)&&(f[u]=s)):C&&(v(u,e.k)&&(u.value=s),e.k&&(a[e.k]=s))};if(s){const w=()=>{M(),Ri.delete(e)};w.id=-1,Ri.set(e,w),Qe(w,n)}else $o(e),M()}}}function $o(e){const t=Ri.get(e);t&&(t.flags|=8,Ri.delete(e))}qi().requestIdleCallback;qi().cancelIdleCallback;const ei=e=>!!e.type.__asyncLoader,ar=e=>e.type.__isKeepAlive;function Du(e,t){ur(e,"a",t)}function Nu(e,t){ur(e,"da",t)}function ur(e,t,n=ut){const l=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(el(t,l,n),n){let i=n.parent;for(;i&&i.parent;)ar(i.parent.vnode)&&Vu(l,t,n,i),i=i.parent}}function Vu(e,t,n,l){const i=el(t,e,l,!0);Nn(()=>{Gl(l[t],i)},n)}function el(e,t,n=ut,l=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{Wt();const r=vi(n),u=Nt(t,n,e,s);return r(),zt(),u});return l?i.unshift(o):i.push(o),o}}const qt=e=>(t,n=ut)=>{(!ri||e==="sp")&&el(e,(...l)=>t(...l),n)},Bu=qt("bm"),gi=qt("m"),Hu=qt("bu"),ju=qt("u"),Uu=qt("bum"),Nn=qt("um"),Yu=qt("sp"),Ku=qt("rtg"),Wu=qt("rtc");function zu(e,t=ut){el("ec",e,t)}const Gu=Symbol.for("v-ndc");function ye(e,t,n,l){let i;const o=n,s=fe(e);if(s||Be(e)){const r=s&&mn(e);let u=!1,c=!1;r&&(u=!bt(e),c=Gt(e),e=Ji(e)),i=new Array(e.length);for(let a=0,f=e.length;a<f;a++)i[a]=t(u?c?Mn(St(e[a])):St(e[a]):e[a],a,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o)}else if($e(e))if(e[Symbol.iterator])i=Array.from(e,(r,u)=>t(r,u,void 0,o));else{const r=Object.keys(e);i=new Array(r.length);for(let u=0,c=r.length;u<c;u++){const a=r[u];i[u]=t(e[a],a,u,o)}}else i=[];return i}const Fl=e=>e?Ir(e)?il(e):Fl(e.parent):null,ti=Ze(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=>Fl(e.parent),$root:e=>Fl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>dr(e),$forceUpdate:e=>e.f||(e.f=()=>{io(e.update)}),$nextTick:e=>e.n||(e.n=Zs.bind(e.proxy)),$watch:e=>Iu.bind(e)}),fl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Ae(e,t),Xu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:i,props:o,accessCache:s,type:r,appContext:u}=e;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return l[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(fl(l,t))return s[t]=1,l[t];if(i!==Oe&&Ae(i,t))return s[t]=2,i[t];if(Ae(o,t))return s[t]=3,o[t];if(n!==Oe&&Ae(n,t))return s[t]=4,n[t];Il&&(s[t]=0)}}const c=ti[t];let a,f;if(c)return t==="$attrs"&&et(e.attrs,"get",""),c(e);if((a=r.__cssModules)&&(a=a[t]))return a;if(n!==Oe&&Ae(n,t))return s[t]=4,n[t];if(f=u.config.globalProperties,Ae(f,t))return f[t]},set({_:e},t,n){const{data:l,setupState:i,ctx:o}=e;return fl(i,t)?(i[t]=n,!0):l!==Oe&&Ae(l,t)?(l[t]=n,!0):Ae(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:i,props:o,type:s}},r){let u;return!!(n[r]||e!==Oe&&r[0]!=="$"&&Ae(e,r)||fl(t,r)||Ae(o,r)||Ae(l,r)||Ae(ti,r)||Ae(i.config.globalProperties,r)||(u=s.__cssModules)&&u[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function To(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Il=!0;function qu(e){const t=dr(e),n=e.proxy,l=e.ctx;Il=!1,t.beforeCreate&&Eo(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:r,provide:u,inject:c,created:a,beforeMount:f,mounted:g,beforeUpdate:h,updated:v,activated:x,deactivated:C,beforeDestroy:M,beforeUnmount:w,destroyed:k,unmounted:A,render:F,renderTracked:L,renderTriggered:U,errorCaptured:ne,serverPrefetch:T,expose:j,inheritAttrs:X,components:de,directives:Te,filters:Pe}=t;if(c&&Ju(c,l,null),s)for(const he in s){const E=s[he];ge(E)&&(l[he]=E.bind(n))}if(i){const he=i.call(n,n);$e(he)&&(e.data=to(he))}if(Il=!0,o)for(const he in o){const E=o[he],z=ge(E)?E.bind(n,n):ge(E.get)?E.get.bind(n,n):Lt,le=!ge(E)&&ge(E.set)?E.set.bind(n):Lt,be=ce({get:z,set:le});Object.defineProperty(l,he,{enumerable:!0,configurable:!0,get:()=>be.value,set:me=>be.value=me})}if(r)for(const he in r)cr(r[he],l,n,he);if(u){const he=ge(u)?u.call(n):u;Reflect.ownKeys(he).forEach(E=>{Tu(E,he[E])})}a&&Eo(a,e,"c");function Ce(he,E){fe(E)?E.forEach(z=>he(z.bind(n))):E&&he(E.bind(n))}if(Ce(Bu,f),Ce(gi,g),Ce(Hu,h),Ce(ju,v),Ce(Du,x),Ce(Nu,C),Ce(zu,ne),Ce(Wu,L),Ce(Ku,U),Ce(Uu,w),Ce(Nn,A),Ce(Yu,T),fe(j))if(j.length){const he=e.exposed||(e.exposed={});j.forEach(E=>{Object.defineProperty(he,E,{get:()=>n[E],set:z=>n[E]=z,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===Lt&&(e.render=F),X!=null&&(e.inheritAttrs=X),de&&(e.components=de),Te&&(e.directives=Te),T&&rr(e)}function Ju(e,t,n=Lt){fe(e)&&(e=Ol(e));for(const l in e){const i=e[l];let o;$e(i)?"default"in i?o=Ai(i.from||l,i.default,!0):o=Ai(i.from||l):o=Ai(i),Ue(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[l]=o}}function Eo(e,t,n){Nt(fe(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function cr(e,t,n,l){let i=l.includes(".")?lr(n,l):()=>n[l];if(Be(e)){const o=t[e];ge(o)&&mt(i,o)}else if(ge(e))mt(i,e.bind(n));else if($e(e))if(fe(e))e.forEach(o=>cr(o,t,n,l));else{const o=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(o)&&mt(i,o,e)}}function dr(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,r=o.get(t);let u;return r?u=r:!i.length&&!n&&!l?u=t:(u={},i.length&&i.forEach(c=>Mi(u,c,s,!0)),Mi(u,t,s)),$e(t)&&o.set(t,u),u}function Mi(e,t,n,l=!1){const{mixins:i,extends:o}=t;o&&Mi(e,o,n,!0),i&&i.forEach(s=>Mi(e,s,n,!0));for(const s in t)if(!(l&&s==="expose")){const r=Zu[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}const Zu={data:Fo,props:Io,emits:Io,methods:Kn,computed:Kn,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Kn,directives:Kn,watch:ec,provide:Fo,inject:Qu};function Fo(e,t){return t?e?function(){return Ze(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Qu(e,t){return Kn(Ol(e),Ol(t))}function Ol(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function st(e,t){return e?[...new Set([].concat(e,t))]:t}function Kn(e,t){return e?Ze(Object.create(null),e,t):t}function Io(e,t){return e?fe(e)&&fe(t)?[...new Set([...e,...t])]:Ze(Object.create(null),To(e),To(t??{})):t}function ec(e,t){if(!e)return t;if(!t)return e;const n=Ze(Object.create(null),e);for(const l in t)n[l]=st(e[l],t[l]);return n}function fr(){return{app:null,config:{isNativeTag:Ss,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}}let tc=0;function nc(e,t){return function(l,i=null){ge(l)||(l=Ze({},l)),i!=null&&!$e(i)&&(i=null);const o=fr(),s=new WeakSet,r=[];let u=!1;const c=o.app={_uid:tc++,_component:l,_props:i,_container:null,_context:o,_instance:null,version:Pc,get config(){return o.config},set config(a){},use(a,...f){return s.has(a)||(a&&ge(a.install)?(s.add(a),a.install(c,...f)):ge(a)&&(s.add(a),a(c,...f))),c},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),c},component(a,f){return f?(o.components[a]=f,c):o.components[a]},directive(a,f){return f?(o.directives[a]=f,c):o.directives[a]},mount(a,f,g){if(!u){const h=c._ceVNode||tt(l,i);return h.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(h,a,g),u=!0,c._container=a,a.__vue_app__=c,il(h.component)}},onUnmount(a){r.push(a)},unmount(){u&&(Nt(r,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(a,f){return o.provides[a]=f,c},runWithContext(a){const f=Pn;Pn=c;try{return a()}finally{Pn=f}}};return c}}let Pn=null;const ic=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ct(t)}Modifiers`]||e[`${ln(t)}Modifiers`];function lc(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||Oe;let i=n;const o=t.startsWith("update:"),s=o&&ic(l,t.slice(7));s&&(s.trim&&(i=n.map(a=>Be(a)?a.trim():a)),s.number&&(i=n.map(Xl)));let r,u=l[r=rl(t)]||l[r=rl(Ct(t))];!u&&o&&(u=l[r=rl(ln(t))]),u&&Nt(u,e,6,i);const c=l[r+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Nt(c,e,6,i)}}const oc=new WeakMap;function pr(e,t,n=!1){const l=n?oc:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const o=e.emits;let s={},r=!1;if(!ge(e)){const u=c=>{const a=pr(c,t,!0);a&&(r=!0,Ze(s,a))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!r?($e(e)&&l.set(e,null),null):(fe(o)?o.forEach(u=>s[u]=null):Ze(s,o),$e(e)&&l.set(e,s),s)}function tl(e,t){return!e||!Ki(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ae(e,t[0].toLowerCase()+t.slice(1))||Ae(e,ln(t))||Ae(e,t))}function Oo(e){const{type:t,vnode:n,proxy:l,withProxy:i,propsOptions:[o],slots:s,attrs:r,emit:u,render:c,renderCache:a,props:f,data:g,setupState:h,ctx:v,inheritAttrs:x}=e,C=Pi(e);let M,w;try{if(n.shapeFlag&4){const A=i||l,F=A;M=Pt(c.call(F,A,a,f,h,g,v)),w=r}else{const A=t;M=Pt(A.length>1?A(f,{attrs:r,slots:s,emit:u}):A(f,null)),w=t.props?r:sc(r)}}catch(A){ni.length=0,Qi(A,e,1),M=tt(tn)}let k=M;if(w&&x!==!1){const A=Object.keys(w),{shapeFlag:F}=k;A.length&&F&7&&(o&&A.some(Wi)&&(w=rc(w,o)),k=Ln(k,w,!1,!0))}return n.dirs&&(k=Ln(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&lo(k,n.transition),M=k,Pi(C),M}const sc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ki(n))&&((t||(t={}))[n]=e[n]);return t},rc=(e,t)=>{const n={};for(const l in e)(!Wi(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function ac(e,t,n){const{props:l,children:i,component:o}=e,{props:s,children:r,patchFlag:u}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return l?Po(l,s,c):!!s;if(u&8){const a=t.dynamicProps;for(let f=0;f<a.length;f++){const g=a[f];if(hr(s,l,g)&&!tl(c,g))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===s?!1:l?s?Po(l,s,c):!0:!!s;return!1}function Po(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const o=l[i];if(hr(t,e,o)&&!tl(n,o))return!0}return!1}function hr(e,t,n){const l=e[n],i=t[n];return n==="style"&&$e(l)&&$e(i)?!pi(l,i):l!==i}function uc({vnode:e,parent:t,suspense:n},l){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=l,e=i),i===e)(e=t.vnode).el=l,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=l)}const gr={},vr=()=>Object.create(gr),mr=e=>Object.getPrototypeOf(e)===gr;function cc(e,t,n,l=!1){const i={},o=vr();e.propsDefaults=Object.create(null),yr(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=l?i:du(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function dc(e,t,n,l){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,r=ke(i),[u]=e.propsOptions;let c=!1;if((l||s>0)&&!(s&16)){if(s&8){const a=e.vnode.dynamicProps;for(let f=0;f<a.length;f++){let g=a[f];if(tl(e.emitsOptions,g))continue;const h=t[g];if(u)if(Ae(o,g))h!==o[g]&&(o[g]=h,c=!0);else{const v=Ct(g);i[v]=Pl(u,r,v,h,e,!1)}else h!==o[g]&&(o[g]=h,c=!0)}}}else{yr(e,t,i,o)&&(c=!0);let a;for(const f in r)(!t||!Ae(t,f)&&((a=ln(f))===f||!Ae(t,a)))&&(u?n&&(n[f]!==void 0||n[a]!==void 0)&&(i[f]=Pl(u,r,f,void 0,e,!0)):delete i[f]);if(o!==r)for(const f in o)(!t||!Ae(t,f))&&(delete o[f],c=!0)}c&&Ut(e.attrs,"set","")}function yr(e,t,n,l){const[i,o]=e.propsOptions;let s=!1,r;if(t)for(let u in t){if(Xn(u))continue;const c=t[u];let a;i&&Ae(i,a=Ct(u))?!o||!o.includes(a)?n[a]=c:(r||(r={}))[a]=c:tl(e.emitsOptions,u)||(!(u in l)||c!==l[u])&&(l[u]=c,s=!0)}if(o){const u=ke(n),c=r||Oe;for(let a=0;a<o.length;a++){const f=o[a];n[f]=Pl(i,u,f,c[f],e,!Ae(c,f))}}return s}function Pl(e,t,n,l,i,o){const s=e[n];if(s!=null){const r=Ae(s,"default");if(r&&l===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&ge(u)){const{propsDefaults:c}=i;if(n in c)l=c[n];else{const a=vi(i);l=c[n]=u.call(null,t),a()}}else l=u;i.ce&&i.ce._setProp(n,l)}s[0]&&(o&&!r?l=!1:s[1]&&(l===""||l===ln(n))&&(l=!0))}return l}const fc=new WeakMap;function br(e,t,n=!1){const l=n?fc:t.propsCache,i=l.get(e);if(i)return i;const o=e.props,s={},r=[];let u=!1;if(!ge(e)){const a=f=>{u=!0;const[g,h]=br(f,t,!0);Ze(s,g),h&&r.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!u)return $e(e)&&l.set(e,Fn),Fn;if(fe(o))for(let a=0;a<o.length;a++){const f=Ct(o[a]);Ro(f)&&(s[f]=Oe)}else if(o)for(const a in o){const f=Ct(a);if(Ro(f)){const g=o[a],h=s[f]=fe(g)||ge(g)?{type:g}:Ze({},g),v=h.type;let x=!1,C=!0;if(fe(v))for(let M=0;M<v.length;++M){const w=v[M],k=ge(w)&&w.name;if(k==="Boolean"){x=!0;break}else k==="String"&&(C=!1)}else x=ge(v)&&v.name==="Boolean";h[0]=x,h[1]=C,(x||Ae(h,"default"))&&r.push(f)}}const c=[s,r];return $e(e)&&l.set(e,c),c}function Ro(e){return e[0]!=="$"&&!Xn(e)}const oo=e=>e==="_"||e==="_ctx"||e==="$stable",so=e=>fe(e)?e.map(Pt):[Pt(e)],pc=(e,t,n)=>{if(t._n)return t;const l=$u((...i)=>so(t(...i)),n);return l._c=!1,l},wr=(e,t,n)=>{const l=e._ctx;for(const i in e){if(oo(i))continue;const o=e[i];if(ge(o))t[i]=pc(i,o,l);else if(o!=null){const s=so(o);t[i]=()=>s}}},_r=(e,t)=>{const n=so(t);e.slots.default=()=>n},xr=(e,t,n)=>{for(const l in t)(n||!oo(l))&&(e[l]=t[l])},hc=(e,t,n)=>{const l=e.slots=vr();if(e.vnode.shapeFlag&32){const i=t._;i?(xr(l,t,n),n&&Is(l,"_",i,!0)):wr(t,l)}else t&&_r(e,t)},gc=(e,t,n)=>{const{vnode:l,slots:i}=e;let o=!0,s=Oe;if(l.shapeFlag&32){const r=t._;r?n&&r===1?o=!1:xr(i,t,n):(o=!t.$stable,wr(t,i)),s=t}else t&&(_r(e,t),s={default:1});if(o)for(const r in i)!oo(r)&&s[r]==null&&delete i[r]},Qe=wc;function vc(e){return mc(e)}function mc(e,t){const n=qi();n.__VUE__=!0;const{insert:l,remove:i,patchProp:o,createElement:s,createText:r,createComment:u,setText:c,setElementText:a,parentNode:f,nextSibling:g,setScopeId:h=Lt,insertStaticContent:v}=e,x=(m,b,$,V=null,N=null,B=null,J=void 0,W=null,K=!!b.dynamicChildren)=>{if(m===b)return;m&&!Hn(m,b)&&(V=G(m),me(m,N,B,!0),m=null),b.patchFlag===-2&&(K=!1,b.dynamicChildren=null);const{type:H,ref:oe,shapeFlag:Z}=b;switch(H){case nl:C(m,b,$,V);break;case tn:M(m,b,$,V);break;case $i:m==null&&w(b,$,V,J);break;case ie:de(m,b,$,V,N,B,J,W,K);break;default:Z&1?F(m,b,$,V,N,B,J,W,K):Z&6?Te(m,b,$,V,N,B,J,W,K):(Z&64||Z&128)&&H.process(m,b,$,V,N,B,J,W,K,I)}oe!=null&&N?Qn(oe,m&&m.ref,B,b||m,!b):oe==null&&m&&m.ref!=null&&Qn(m.ref,null,B,m,!0)},C=(m,b,$,V)=>{if(m==null)l(b.el=r(b.children),$,V);else{const N=b.el=m.el;b.children!==m.children&&c(N,b.children)}},M=(m,b,$,V)=>{m==null?l(b.el=u(b.children||""),$,V):b.el=m.el},w=(m,b,$,V)=>{[m.el,m.anchor]=v(m.children,b,$,V,m.el,m.anchor)},k=({el:m,anchor:b},$,V)=>{let N;for(;m&&m!==b;)N=g(m),l(m,$,V),m=N;l(b,$,V)},A=({el:m,anchor:b})=>{let $;for(;m&&m!==b;)$=g(m),i(m),m=$;i(b)},F=(m,b,$,V,N,B,J,W,K)=>{if(b.type==="svg"?J="svg":b.type==="math"&&(J="mathml"),m==null)L(b,$,V,N,B,J,W,K);else{const H=m.el&&m.el._isVueCE?m.el:null;try{H&&H._beginPatch(),T(m,b,N,B,J,W,K)}finally{H&&H._endPatch()}}},L=(m,b,$,V,N,B,J,W)=>{let K,H;const{props:oe,shapeFlag:Z,transition:re,dirs:ae}=m;if(K=m.el=s(m.type,B,oe&&oe.is,oe),Z&8?a(K,m.children):Z&16&&ne(m.children,K,null,V,N,pl(m,B),J,W),ae&&an(m,null,V,"created"),U(K,m,m.scopeId,J,V),oe){for(const xe in oe)xe!=="value"&&!Xn(xe)&&o(K,xe,null,oe[xe],B,V);"value"in oe&&o(K,"value",null,oe.value,B),(H=oe.onVnodeBeforeMount)&&Tt(H,V,m)}ae&&an(m,null,V,"beforeMount");const we=yc(N,re);we&&re.beforeEnter(K),l(K,b,$),((H=oe&&oe.onVnodeMounted)||we||ae)&&Qe(()=>{try{H&&Tt(H,V,m),we&&re.enter(K),ae&&an(m,null,V,"mounted")}finally{}},N)},U=(m,b,$,V,N)=>{if($&&h(m,$),V)for(let B=0;B<V.length;B++)h(m,V[B]);if(N){let B=N.subTree;if(b===B||Ar(B.type)&&(B.ssContent===b||B.ssFallback===b)){const J=N.vnode;U(m,J,J.scopeId,J.slotScopeIds,N.parent)}}},ne=(m,b,$,V,N,B,J,W,K=0)=>{for(let H=K;H<m.length;H++){const oe=m[H]=W?Ht(m[H]):Pt(m[H]);x(null,oe,b,$,V,N,B,J,W)}},T=(m,b,$,V,N,B,J)=>{const W=b.el=m.el;let{patchFlag:K,dynamicChildren:H,dirs:oe}=b;K|=m.patchFlag&16;const Z=m.props||Oe,re=b.props||Oe;let ae;if($&&un($,!1),(ae=re.onVnodeBeforeUpdate)&&Tt(ae,$,b,m),oe&&an(b,m,$,"beforeUpdate"),$&&un($,!0),(Z.innerHTML&&re.innerHTML==null||Z.textContent&&re.textContent==null)&&a(W,""),H?j(m.dynamicChildren,H,W,$,V,pl(b,N),B):J||E(m,b,W,null,$,V,pl(b,N),B,!1),K>0){if(K&16)X(W,Z,re,$,N);else if(K&2&&Z.class!==re.class&&o(W,"class",null,re.class,N),K&4&&o(W,"style",Z.style,re.style,N),K&8){const we=b.dynamicProps;for(let xe=0;xe<we.length;xe++){const Ee=we[xe],Ne=Z[Ee],We=re[Ee];(We!==Ne||Ee==="value")&&o(W,Ee,Ne,We,N,$)}}K&1&&m.children!==b.children&&a(W,b.children)}else!J&&H==null&&X(W,Z,re,$,N);((ae=re.onVnodeUpdated)||oe)&&Qe(()=>{ae&&Tt(ae,$,b,m),oe&&an(b,m,$,"updated")},V)},j=(m,b,$,V,N,B,J)=>{for(let W=0;W<b.length;W++){const K=m[W],H=b[W],oe=K.el&&(K.type===ie||!Hn(K,H)||K.shapeFlag&198)?f(K.el):$;x(K,H,oe,null,V,N,B,J,!0)}},X=(m,b,$,V,N)=>{if(b!==$){if(b!==Oe)for(const B in b)!Xn(B)&&!(B in $)&&o(m,B,b[B],null,N,V);for(const B in $){if(Xn(B))continue;const J=$[B],W=b[B];J!==W&&B!=="value"&&o(m,B,W,J,N,V)}"value"in $&&o(m,"value",b.value,$.value,N)}},de=(m,b,$,V,N,B,J,W,K)=>{const H=b.el=m?m.el:r(""),oe=b.anchor=m?m.anchor:r("");let{patchFlag:Z,dynamicChildren:re,slotScopeIds:ae}=b;ae&&(W=W?W.concat(ae):ae),m==null?(l(H,$,V),l(oe,$,V),ne(b.children||[],$,oe,N,B,J,W,K)):Z>0&&Z&64&&re&&m.dynamicChildren&&m.dynamicChildren.length===re.length?(j(m.dynamicChildren,re,$,N,B,J,W),(b.key!=null||N&&b===N.subTree)&&ro(m,b,!0)):E(m,b,$,oe,N,B,J,W,K)},Te=(m,b,$,V,N,B,J,W,K)=>{b.slotScopeIds=W,m==null?b.shapeFlag&512?N.ctx.activate(b,$,V,J,K):Pe(b,$,V,N,B,J,K):Xe(m,b,K)},Pe=(m,b,$,V,N,B,J)=>{const W=m.component=Sc(m,V,N);if(ar(m)&&(W.ctx.renderer=I),Tc(W,!1,J),W.asyncDep){if(N&&N.registerDep(W,Ce,J),!m.el){const K=W.subTree=tt(tn);M(null,K,b,$),m.placeholder=K.el}}else Ce(W,m,b,$,N,B,J)},Xe=(m,b,$)=>{const V=b.component=m.component;if(ac(m,b,$))if(V.asyncDep&&!V.asyncResolved){he(V,b,$);return}else V.next=b,V.update();else b.el=m.el,V.vnode=b},Ce=(m,b,$,V,N,B,J)=>{const W=()=>{if(m.isMounted){let{next:Z,bu:re,u:ae,parent:we,vnode:xe}=m;{const wt=kr(m);if(wt){Z&&(Z.el=xe.el,he(m,Z,J)),wt.asyncDep.then(()=>{Qe(()=>{m.isUnmounted||H()},N)});return}}let Ee=Z,Ne;un(m,!1),Z?(Z.el=xe.el,he(m,Z,J)):Z=xe,re&&Ci(re),(Ne=Z.props&&Z.props.onVnodeBeforeUpdate)&&Tt(Ne,we,Z,xe),un(m,!0);const We=Oo(m),ze=m.subTree;m.subTree=We,x(ze,We,f(ze.el),G(ze),m,N,B),Z.el=We.el,Ee===null&&uc(m,We.el),ae&&Qe(ae,N),(Ne=Z.props&&Z.props.onVnodeUpdated)&&Qe(()=>Tt(Ne,we,Z,xe),N)}else{let Z;const{el:re,props:ae}=b,{bm:we,m:xe,parent:Ee,root:Ne,type:We}=m,ze=ei(b);un(m,!1),we&&Ci(we),!ze&&(Z=ae&&ae.onVnodeBeforeMount)&&Tt(Z,Ee,b),un(m,!0);{Ne.ce&&Ne.ce._hasShadowRoot()&&Ne.ce._injectChildStyle(We,m.parent?m.parent.type:void 0);const wt=m.subTree=Oo(m);x(null,wt,$,V,m,N,B),b.el=wt.el}if(xe&&Qe(xe,N),!ze&&(Z=ae&&ae.onVnodeMounted)){const wt=b;Qe(()=>Tt(Z,Ee,wt),N)}(b.shapeFlag&256||Ee&&ei(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&m.a&&Qe(m.a,N),m.isMounted=!0,b=$=V=null}};m.scope.on();const K=m.effect=new Ls(W);m.scope.off();const H=m.update=K.run.bind(K),oe=m.job=K.runIfDirty.bind(K);oe.i=m,oe.id=m.uid,K.scheduler=()=>io(oe),un(m,!0),H()},he=(m,b,$)=>{b.component=m;const V=m.vnode.props;m.vnode=b,m.next=null,dc(m,b.props,V,$),gc(m,b.children,$),Wt(),ko(m),zt()},E=(m,b,$,V,N,B,J,W,K=!1)=>{const H=m&&m.children,oe=m?m.shapeFlag:0,Z=b.children,{patchFlag:re,shapeFlag:ae}=b;if(re>0){if(re&128){le(H,Z,$,V,N,B,J,W,K);return}else if(re&256){z(H,Z,$,V,N,B,J,W,K);return}}ae&8?(oe&16&&_e(H,N,B),Z!==H&&a($,Z)):oe&16?ae&16?le(H,Z,$,V,N,B,J,W,K):_e(H,N,B,!0):(oe&8&&a($,""),ae&16&&ne(Z,$,V,N,B,J,W,K))},z=(m,b,$,V,N,B,J,W,K)=>{m=m||Fn,b=b||Fn;const H=m.length,oe=b.length,Z=Math.min(H,oe);let re;for(re=0;re<Z;re++){const ae=b[re]=K?Ht(b[re]):Pt(b[re]);x(m[re],ae,$,null,N,B,J,W,K)}H>oe?_e(m,N,B,!0,!1,Z):ne(b,$,V,N,B,J,W,K,Z)},le=(m,b,$,V,N,B,J,W,K)=>{let H=0;const oe=b.length;let Z=m.length-1,re=oe-1;for(;H<=Z&&H<=re;){const ae=m[H],we=b[H]=K?Ht(b[H]):Pt(b[H]);if(Hn(ae,we))x(ae,we,$,null,N,B,J,W,K);else break;H++}for(;H<=Z&&H<=re;){const ae=m[Z],we=b[re]=K?Ht(b[re]):Pt(b[re]);if(Hn(ae,we))x(ae,we,$,null,N,B,J,W,K);else break;Z--,re--}if(H>Z){if(H<=re){const ae=re+1,we=ae<oe?b[ae].el:V;for(;H<=re;)x(null,b[H]=K?Ht(b[H]):Pt(b[H]),$,we,N,B,J,W,K),H++}}else if(H>re)for(;H<=Z;)me(m[H],N,B,!0),H++;else{const ae=H,we=H,xe=new Map;for(H=we;H<=re;H++){const lt=b[H]=K?Ht(b[H]):Pt(b[H]);lt.key!=null&&xe.set(lt.key,H)}let Ee,Ne=0;const We=re-we+1;let ze=!1,wt=0;const on=new Array(We);for(H=0;H<We;H++)on[H]=0;for(H=ae;H<=Z;H++){const lt=m[H];if(Ne>=We){me(lt,N,B,!0);continue}let ht;if(lt.key!=null)ht=xe.get(lt.key);else for(Ee=we;Ee<=re;Ee++)if(on[Ee-we]===0&&Hn(lt,b[Ee])){ht=Ee;break}ht===void 0?me(lt,N,B,!0):(on[ht-we]=H+1,ht>=wt?wt=ht:ze=!0,x(lt,b[ht],$,null,N,B,J,W,K),Ne++)}const Vn=ze?bc(on):Fn;for(Ee=Vn.length-1,H=We-1;H>=0;H--){const lt=we+H,ht=b[lt],wn=b[lt+1],bi=lt+1<oe?wn.el||Cr(wn):V;on[H]===0?x(null,ht,$,bi,N,B,J,W,K):ze&&(Ee<0||H!==Vn[Ee]?be(ht,$,bi,2):Ee--)}}},be=(m,b,$,V,N=null)=>{const{el:B,type:J,transition:W,children:K,shapeFlag:H}=m;if(H&6){be(m.component.subTree,b,$,V);return}if(H&128){m.suspense.move(b,$,V);return}if(H&64){J.move(m,b,$,I);return}if(J===ie){l(B,b,$);for(let Z=0;Z<K.length;Z++)be(K[Z],b,$,V);l(m.anchor,b,$);return}if(J===$i){k(m,b,$);return}if(V!==2&&H&1&&W)if(V===0)W.beforeEnter(B),l(B,b,$),Qe(()=>W.enter(B),N);else{const{leave:Z,delayLeave:re,afterLeave:ae}=W,we=()=>{m.ctx.isUnmounted?i(B):l(B,b,$)},xe=()=>{B._isLeaving&&B[Lu](!0),Z(B,()=>{we(),ae&&ae()})};re?re(B,we,xe):xe()}else l(B,b,$)},me=(m,b,$,V=!1,N=!1)=>{const{type:B,props:J,ref:W,children:K,dynamicChildren:H,shapeFlag:oe,patchFlag:Z,dirs:re,cacheIndex:ae,memo:we}=m;if(Z===-2&&(N=!1),W!=null&&(Wt(),Qn(W,null,$,m,!0),zt()),ae!=null&&(b.renderCache[ae]=void 0),oe&256){b.ctx.deactivate(m);return}const xe=oe&1&&re,Ee=!ei(m);let Ne;if(Ee&&(Ne=J&&J.onVnodeBeforeUnmount)&&Tt(Ne,b,m),oe&6)pe(m.component,$,V);else{if(oe&128){m.suspense.unmount($,V);return}xe&&an(m,null,b,"beforeUnmount"),oe&64?m.type.remove(m,b,$,I,V):H&&!H.hasOnce&&(B!==ie||Z>0&&Z&64)?_e(H,b,$,!1,!0):(B===ie&&Z&384||!N&&oe&16)&&_e(K,b,$),V&&Ye(m)}const We=we!=null&&ae==null;(Ee&&(Ne=J&&J.onVnodeUnmounted)||xe||We)&&Qe(()=>{Ne&&Tt(Ne,b,m),xe&&an(m,null,b,"unmounted"),We&&(m.el=null)},$)},Ye=m=>{const{type:b,el:$,anchor:V,transition:N}=m;if(b===ie){Ke($,V);return}if(b===$i){A(m);return}const B=()=>{i($),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(m.shapeFlag&1&&N&&!N.persisted){const{leave:J,delayLeave:W}=N,K=()=>J($,B);W?W(m.el,B,K):K()}else B()},Ke=(m,b)=>{let $;for(;m!==b;)$=g(m),i(m),m=$;i(b)},pe=(m,b,$)=>{const{bum:V,scope:N,job:B,subTree:J,um:W,m:K,a:H}=m;Mo(K),Mo(H),V&&Ci(V),N.stop(),B&&(B.flags|=8,me(J,m,b,$)),W&&Qe(W,b),Qe(()=>{m.isUnmounted=!0},b)},_e=(m,b,$,V=!1,N=!1,B=0)=>{for(let J=B;J<m.length;J++)me(m[J],b,$,V,N)},G=m=>{if(m.shapeFlag&6)return G(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const b=g(m.anchor||m.el),$=b&&b[or];return $?g($):b};let P=!1;const Fe=(m,b,$)=>{let V;m==null?b._vnode&&(me(b._vnode,null,null,!0),V=b._vnode.component):x(b._vnode||null,m,b,null,null,null,$),b._vnode=m,P||(P=!0,ko(V),er(),P=!1)},I={p:x,um:me,m:be,r:Ye,mt:Pe,mc:ne,pc:E,pbc:j,n:G,o:e};return{render:Fe,hydrate:void 0,createApp:nc(Fe)}}function pl({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 un({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function yc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ro(e,t,n=!1){const l=e.children,i=t.children;if(fe(l)&&fe(i))for(let o=0;o<l.length;o++){const s=l[o];let r=i[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[o]=Ht(i[o]),r.el=s.el),!n&&r.patchFlag!==-2&&ro(s,r)),r.type===nl&&(r.patchFlag===-1&&(r=i[o]=Ht(r)),r.el=s.el),r.type===tn&&!r.el&&(r.el=s.el)}}function bc(e){const t=e.slice(),n=[0];let l,i,o,s,r;const u=e.length;for(l=0;l<u;l++){const c=e[l];if(c!==0){if(i=n[n.length-1],e[i]<c){t[l]=i,n.push(l);continue}for(o=0,s=n.length-1;o<s;)r=o+s>>1,e[n[r]]<c?o=r+1:s=r;c<e[n[o]]&&(o>0&&(t[l]=n[o-1]),n[o]=l)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}function kr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kr(t)}function Mo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Cr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Cr(t.subTree):null}const Ar=e=>e.__isSuspense;function wc(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):Su(e)}const ie=Symbol.for("v-fgt"),nl=Symbol.for("v-txt"),tn=Symbol.for("v-cmt"),$i=Symbol.for("v-stc"),ni=[];let yt=null;function y(e=!1){ni.push(yt=e?null:[])}function _c(){ni.pop(),yt=ni[ni.length-1]||null}let si=1;function Lo(e,t=!1){si+=e,e<0&&yt&&t&&(yt.hasOnce=!0)}function Sr(e){return e.dynamicChildren=si>0?yt||Fn:null,_c(),si>0&&yt&&yt.push(e),e}function _(e,t,n,l,i,o){return Sr(d(e,t,n,l,i,o,!0))}function vt(e,t,n,l,i){return Sr(tt(e,t,n,l,i,!0))}function $r(e){return e?e.__v_isVNode===!0:!1}function Hn(e,t){return e.type===t.type&&e.key===t.key}const Tr=({key:e})=>e??null,Ti=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Ue(e)||ge(e)?{i:_t,r:e,k:t,f:!!n}:e:null);function d(e,t=null,n=null,l=0,i=null,o=e===ie?0:1,s=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tr(t),ref:t&&Ti(t),scopeId:nr,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:o,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_t};return r?(ao(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=Be(n)?8:16),si>0&&!s&&yt&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&yt.push(u),u}const tt=xc;function xc(e,t=null,n=null,l=0,i=null,o=!1){if((!e||e===Gu)&&(e=tn),$r(e)){const r=Ln(e,t,!0);return n&&ao(r,n),si>0&&!o&&yt&&(r.shapeFlag&6?yt[yt.indexOf(e)]=r:yt.push(r)),r.patchFlag=-2,r}if(Oc(e)&&(e=e.__vccOpts),t){t=kc(t);let{class:r,style:u}=t;r&&!Be(r)&&(t.class=te(r)),$e(u)&&(Zi(u)&&!fe(u)&&(u=Ze({},u)),t.style=Me(u))}const s=Be(e)?1:Ar(e)?128:Ou(e)?64:$e(e)?4:ge(e)?2:0;return d(e,t,n,l,i,s,o,!0)}function kc(e){return e?Zi(e)||mr(e)?Ze({},e):e:null}function Ln(e,t,n=!1,l=!1){const{props:i,ref:o,patchFlag:s,children:r,transition:u}=e,c=t?Fr(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Tr(c),ref:t&&t.ref?n&&o?fe(o)?o.concat(Ti(t)):[o,Ti(t)]:Ti(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ln(e.ssContent),ssFallback:e.ssFallback&&Ln(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&lo(a,u.clone(a)),a}function rt(e=" ",t=0){return tt(nl,null,e,t)}function Er(e,t){const n=tt($i,null,e);return n.staticCount=t,n}function Y(e="",t=!1){return t?(y(),vt(tn,null,e)):tt(tn,null,e)}function Pt(e){return e==null||typeof e=="boolean"?tt(tn):fe(e)?tt(ie,null,e.slice()):$r(e)?Ht(e):tt(nl,null,String(e))}function Ht(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ln(e)}function ao(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),ao(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!mr(t)?t._ctx=_t:i===3&&_t&&(_t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:_t},n=32):(t=String(t),l&64?(n=16,t=[rt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fr(...e){const t={};for(let n=0;n<e.length;n++){const l=e[n];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=te([t.class,l.class]));else if(i==="style")t.style=Me([t.style,l.style]);else if(Ki(i)){const o=t[i],s=l[i];s&&o!==s&&!(fe(o)&&o.includes(s))?t[i]=o?[].concat(o,s):s:s==null&&o==null&&!Wi(i)&&(t[i]=s)}else i!==""&&(t[i]=l[i])}return t}function Tt(e,t,n,l=null){Nt(e,t,7,[n,l])}const Cc=fr();let Ac=0;function Sc(e,t,n){const l=e.type,i=(t?t.appContext:e.appContext)||Cc,o={uid:Ac++,vnode:e,type:l,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ya(!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:br(l,i),emitsOptions:pr(l,i),emit:null,emitted:null,propsDefaults:Oe,inheritAttrs:l.inheritAttrs,ctx:Oe,data:Oe,props:Oe,attrs:Oe,slots:Oe,refs:Oe,setupState:Oe,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=lc.bind(null,o),e.ce&&e.ce(o),o}let ut=null;const $c=()=>ut||_t;let Li,Rl;{const e=qi(),t=(n,l)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(l),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Li=t("__VUE_INSTANCE_SETTERS__",n=>ut=n),Rl=t("__VUE_SSR_SETTERS__",n=>ri=n)}const vi=e=>{const t=ut;return Li(e),e.scope.on(),()=>{e.scope.off(),Li(t)}},Do=()=>{ut&&ut.scope.off(),Li(null)};function Ir(e){return e.vnode.shapeFlag&4}let ri=!1;function Tc(e,t=!1,n=!1){t&&Rl(t);const{props:l,children:i}=e.vnode,o=Ir(e);cc(e,l,o,t),hc(e,i,n||t);const s=o?Ec(e,t):void 0;return t&&Rl(!1),s}function Ec(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Xu);const{setup:l}=n;if(l){Wt();const i=e.setupContext=l.length>1?Ic(e):null,o=vi(e),s=hi(l,e,0,[e.props,i]),r=$s(s);if(zt(),o(),(r||e.sp)&&!ei(e)&&rr(e),r){if(s.then(Do,Do),t)return s.then(u=>{No(e,u)}).catch(u=>{Qi(u,e,0)});e.asyncDep=s}else No(e,s)}else Or(e)}function No(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$e(t)&&(e.setupState=qs(t)),Or(e)}function Or(e,t,n){const l=e.type;e.render||(e.render=l.render||Lt);{const i=vi(e);Wt();try{qu(e)}finally{zt(),i()}}}const Fc={get(e,t){return et(e,"get",""),e[t]}};function Ic(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Fc),slots:e.slots,emit:e.emit,expose:t}}function il(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(qs(fu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ti)return ti[n](e)},has(t,n){return n in t||n in ti}})):e.proxy}function Oc(e){return ge(e)&&"__vccOpts"in e}const ce=(e,t)=>_u(e,t,ri),Pc="3.5.31";/**
|
|
13
|
+
**/function hi(e,t,n,l){try{return l?e(...l):e()}catch(i){Qi(i,t,n)}}function Nt(e,t,n,l){if(ge(e)){const i=hi(e,t,n,l);return i&&Ts(i)&&i.catch(o=>{Qi(o,t,n)}),i}if(de(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Nt(e[o],t,n,l));return i}}function Qi(e,t,n,l=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||Oe;if(t){let r=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const a=r.ec;if(a){for(let f=0;f<a.length;f++)if(a[f](e,u,c)===!1)return}r=r.parent}if(o){Wt(),hi(o,null,10,[e,u,c]),zt();return}}Au(e,n,i,l,s)}function Au(e,t,n,l=!0,i=!1){if(i)throw e;console.error(e)}const at=[];let Ft=-1;const On=[];let Qt=null,An=0;const Zs=Promise.resolve();let Oi=null;function Qs(e){const t=Oi||Zs;return e?t.then(this?e.bind(this):e):t}function Su(e){let t=Ft+1,n=at.length;for(;t<n;){const l=t+n>>>1,i=at[l],o=oi(i);o<e||o===e&&i.flags&2?t=l+1:n=l}return t}function lo(e){if(!(e.flags&1)){const t=oi(e),n=at[at.length-1];!n||!(e.flags&2)&&t>=oi(n)?at.push(e):at.splice(Su(t),0,e),e.flags|=1,er()}}function er(){Oi||(Oi=Zs.then(nr))}function $u(e){de(e)?On.push(...e):Qt&&e.id===-1?Qt.splice(An+1,0,e):e.flags&1||(On.push(e),e.flags|=1),er()}function Co(e,t,n=Ft+1){for(;n<at.length;n++){const l=at[n];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;at.splice(n,1),n--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function tr(e){if(On.length){const t=[...new Set(On)].sort((n,l)=>oi(n)-oi(l));if(On.length=0,Qt){Qt.push(...t);return}for(Qt=t,An=0;An<Qt.length;An++){const n=Qt[An];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Qt=null,An=0}}const oi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function nr(e){try{for(Ft=0;Ft<at.length;Ft++){const t=at[Ft];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ft<at.length;Ft++){const t=at[Ft];t&&(t.flags&=-2)}Ft=-1,at.length=0,tr(),Oi=null,(at.length||On.length)&&nr()}}let xt=null,ir=null;function Pi(e){const t=xt;return xt=e,ir=e&&e.type.__scopeId||null,t}function Tu(e,t=xt,n){if(!t||e._n)return e;const l=(...i)=>{l._d&&Do(-1);const o=Pi(t);let s;try{s=e(...i)}finally{Pi(o),l._d&&Do(1)}return s};return l._n=!0,l._c=!0,l._d=!0,l}function Ve(e,t){if(xt===null)return e;const n=il(xt),l=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,r,u=Oe]=t[i];o&&(ge(o)&&(o={mounted:o,updated:o}),o.deep&&Yt(s),l.push({dir:o,instance:n,value:s,oldValue:void 0,arg:r,modifiers:u}))}return e}function an(e,t,n,l){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const r=i[s];o&&(r.oldValue=o[s].value);let u=r.dir[l];u&&(Wt(),Nt(u,n,8,[e.el,r,e,t]),zt())}}function Eu(e,t){if(ut){let n=ut.provides;const l=ut.parent&&ut.parent.provides;l===n&&(n=ut.provides=Object.create(l)),n[e]=t}}function Ai(e,t,n=!1){const l=Tc();if(l||Pn){let i=Pn?Pn._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ge(t)?t.call(l&&l.proxy):t}}const Fu=Symbol.for("v-scx"),Iu=()=>Ai(Fu);function yt(e,t,n){return lr(e,t,n)}function lr(e,t,n=Oe){const{immediate:l,deep:i,flush:o,once:s}=n,r=Ze({},n),u=t&&l||!t&&o!=="post";let c;if(ri){if(o==="sync"){const h=Iu();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=Lt,h.resume=Lt,h.pause=Lt,h}}const a=ut;r.call=(h,v,x)=>Nt(h,a,v,x);let f=!1;o==="post"?r.scheduler=h=>{Qe(h,a&&a.suspense)}:o!=="sync"&&(f=!0,r.scheduler=(h,v)=>{v?h():lo(h)}),r.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,a&&(h.id=a.uid,h.i=a))};const g=Cu(e,t,r);return ri&&(c?c.push(g):u&&g()),g}function Ou(e,t,n){const l=this.proxy,i=Be(e)?e.includes(".")?or(l,e):()=>l[e]:e.bind(l,l);let o;ge(t)?o=t:(o=t.handler,n=t);const s=vi(this),r=lr(i,o.bind(l),n);return s(),r}function or(e,t){const n=t.split(".");return()=>{let l=e;for(let i=0;i<n.length&&l;i++)l=l[n[i]];return l}}const sr=Symbol("_vte"),Pu=e=>e.__isTeleport,Zn=e=>e&&(e.disabled||e.disabled===""),Ru=e=>e&&(e.defer||e.defer===""),Ao=e=>typeof SVGElement<"u"&&e instanceof SVGElement,So=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,El=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},rr={name:"Teleport",__isTeleport:!0,process(e,t,n,l,i,o,s,r,u,c){const{mc:a,pc:f,pbc:g,o:{insert:h,querySelector:v,createText:x,createComment:C}}=c,L=Zn(t.props);let{shapeFlag:w,children:k,dynamicChildren:A}=t;if(e==null){const F=t.el=x(""),D=t.anchor=x("");h(F,n,l),h(D,n,l);const U=(T,j)=>{w&16&&a(k,T,j,i,o,s,r,u)},ne=()=>{const T=t.target=El(t.props,v),j=Fl(T,t,x,h);T&&(s!=="svg"&&Ao(T)?s="svg":s!=="mathml"&&So(T)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(T),L||(U(T,j),Si(t,!1)))};L&&(U(n,D),Si(t,!0)),Ru(t.props)||o&&o.pendingBranch?(t.el.__isMounted=!1,Qe(()=>{t.el.__isMounted===!1&&(ne(),delete t.el.__isMounted)},o)):ne()}else{t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,D=t.target=e.target,U=t.targetAnchor=e.targetAnchor;if(e.el.__isMounted===!1){Qe(()=>{rr.process(e,t,n,l,i,o,s,r,u,c)},o);return}const ne=Zn(e.props),T=ne?n:D,j=ne?F:U;if(s==="svg"||Ao(D)?s="svg":(s==="mathml"||So(D))&&(s="mathml"),A?(g(e.dynamicChildren,A,T,i,o,s,r),ao(e,t,!0)):u||f(e,t,T,j,i,o,s,r,!1),L)ne?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ki(t,n,F,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const X=t.target=El(t.props,v);X&&ki(t,X,null,c,0)}else ne&&ki(t,D,U,c,1);Si(t,L)}},remove(e,t,n,{um:l,o:{remove:i}},o){const{shapeFlag:s,children:r,anchor:u,targetStart:c,targetAnchor:a,target:f,props:g}=e;if(f&&(i(c),i(a)),o&&i(u),s&16){const h=o||!Zn(g);for(let v=0;v<r.length;v++){const x=r[v];l(x,t,n,h,!!x.dynamicChildren)}}},move:ki,hydrate:Mu};function ki(e,t,n,{o:{insert:l},m:i},o=2){o===0&&l(e.targetAnchor,t,n);const{el:s,anchor:r,shapeFlag:u,children:c,props:a}=e,f=o===2;if(f&&l(s,t,n),(!f||Zn(a))&&u&16)for(let g=0;g<c.length;g++)i(c[g],t,n,2);f&&l(r,t,n)}function Mu(e,t,n,l,i,o,{o:{nextSibling:s,parentNode:r,querySelector:u,insert:c,createText:a}},f){function g(C,L){let w=L;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,C._lpa=t.targetAnchor&&s(t.targetAnchor);break}}w=s(w)}}function h(C,L){L.anchor=f(s(C),L,r(C),n,l,i,o)}const v=t.target=El(t.props,u),x=Zn(t.props);if(v){const C=v._lpa||v.firstChild;t.shapeFlag&16&&(x?(h(e,t),g(v,C),t.targetAnchor||Fl(v,t,a,c,r(e)===v?e:null)):(t.anchor=s(e),g(v,C),t.targetAnchor||Fl(v,t,a,c),f(C&&s(C),t,v,n,l,i,o))),Si(t,x)}else x&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=s(e));return t.anchor&&s(t.anchor)}const Lu=rr;function Si(e,t){const n=e.ctx;if(n&&n.ut){let l,i;for(t?(l=e.el,i=e.anchor):(l=e.targetStart,i=e.targetAnchor);l&&l!==i;)l.nodeType===1&&l.setAttribute("data-v-owner",n.uid),l=l.nextSibling;n.ut()}}function Fl(e,t,n,l,i=null){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[sr]=s,e&&(l(o,e,i),l(s,e,i)),s}const Du=Symbol("_leaveCb");function oo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,oo(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nt(e,t){return ge(e)?Ze({name:e.name},t,{setup:e}):e}function ar(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $o(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ri=new WeakMap;function Qn(e,t,n,l,i=!1){if(de(e)){e.forEach((x,C)=>Qn(x,t&&(de(t)?t[C]:t),n,l,i));return}if(ei(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Qn(e,t,n,l.component.subTree);return}const o=l.shapeFlag&4?il(l.component):l.el,s=i?null:o,{i:r,r:u}=e,c=t&&t.r,a=r.refs===Oe?r.refs={}:r.refs,f=r.setupState,g=ke(f),h=f===Oe?$s:x=>$o(a,x)?!1:Se(g,x),v=(x,C)=>!(C&&$o(a,C));if(c!=null&&c!==u){if(To(t),Be(c))a[c]=null,h(c)&&(f[c]=null);else if(Ue(c)){const x=t;v(c,x.k)&&(c.value=null),x.k&&(a[x.k]=null)}}if(ge(u))hi(u,r,12,[s,a]);else{const x=Be(u),C=Ue(u);if(x||C){const L=()=>{if(e.f){const w=x?h(u)?f[u]:a[u]:v()||!e.k?u.value:a[e.k];if(i)de(w)&&Xl(w,o);else if(de(w))w.includes(o)||w.push(o);else if(x)a[u]=[o],h(u)&&(f[u]=a[u]);else{const k=[o];v(u,e.k)&&(u.value=k),e.k&&(a[e.k]=k)}}else x?(a[u]=s,h(u)&&(f[u]=s)):C&&(v(u,e.k)&&(u.value=s),e.k&&(a[e.k]=s))};if(s){const w=()=>{L(),Ri.delete(e)};w.id=-1,Ri.set(e,w),Qe(w,n)}else To(e),L()}}}function To(e){const t=Ri.get(e);t&&(t.flags|=8,Ri.delete(e))}qi().requestIdleCallback;qi().cancelIdleCallback;const ei=e=>!!e.type.__asyncLoader,ur=e=>e.type.__isKeepAlive;function Nu(e,t){cr(e,"a",t)}function Vu(e,t){cr(e,"da",t)}function cr(e,t,n=ut){const l=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(el(t,l,n),n){let i=n.parent;for(;i&&i.parent;)ur(i.parent.vnode)&&Bu(l,t,n,i),i=i.parent}}function Bu(e,t,n,l){const i=el(t,e,l,!0);Nn(()=>{Xl(l[t],i)},n)}function el(e,t,n=ut,l=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{Wt();const r=vi(n),u=Nt(t,n,e,s);return r(),zt(),u});return l?i.unshift(o):i.push(o),o}}const qt=e=>(t,n=ut)=>{(!ri||e==="sp")&&el(e,(...l)=>t(...l),n)},Hu=qt("bm"),gi=qt("m"),ju=qt("bu"),Uu=qt("u"),Yu=qt("bum"),Nn=qt("um"),Ku=qt("sp"),Wu=qt("rtg"),zu=qt("rtc");function Gu(e,t=ut){el("ec",e,t)}const Xu=Symbol.for("v-ndc");function ye(e,t,n,l){let i;const o=n,s=de(e);if(s||Be(e)){const r=s&&mn(e);let u=!1,c=!1;r&&(u=!wt(e),c=Gt(e),e=Ji(e)),i=new Array(e.length);for(let a=0,f=e.length;a<f;a++)i[a]=t(u?c?Mn($t(e[a])):$t(e[a]):e[a],a,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o)}else if($e(e))if(e[Symbol.iterator])i=Array.from(e,(r,u)=>t(r,u,void 0,o));else{const r=Object.keys(e);i=new Array(r.length);for(let u=0,c=r.length;u<c;u++){const a=r[u];i[u]=t(e[a],a,u,o)}}else i=[];return i}const Il=e=>e?Or(e)?il(e):Il(e.parent):null,ti=Ze(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=>Il(e.parent),$root:e=>Il(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>fr(e),$forceUpdate:e=>e.f||(e.f=()=>{lo(e.update)}),$nextTick:e=>e.n||(e.n=Qs.bind(e.proxy)),$watch:e=>Ou.bind(e)}),pl=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Se(e,t),qu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:i,props:o,accessCache:s,type:r,appContext:u}=e;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return l[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(pl(l,t))return s[t]=1,l[t];if(i!==Oe&&Se(i,t))return s[t]=2,i[t];if(Se(o,t))return s[t]=3,o[t];if(n!==Oe&&Se(n,t))return s[t]=4,n[t];Ol&&(s[t]=0)}}const c=ti[t];let a,f;if(c)return t==="$attrs"&&et(e.attrs,"get",""),c(e);if((a=r.__cssModules)&&(a=a[t]))return a;if(n!==Oe&&Se(n,t))return s[t]=4,n[t];if(f=u.config.globalProperties,Se(f,t))return f[t]},set({_:e},t,n){const{data:l,setupState:i,ctx:o}=e;return pl(i,t)?(i[t]=n,!0):l!==Oe&&Se(l,t)?(l[t]=n,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:i,props:o,type:s}},r){let u;return!!(n[r]||e!==Oe&&r[0]!=="$"&&Se(e,r)||pl(t,r)||Se(o,r)||Se(l,r)||Se(ti,r)||Se(i.config.globalProperties,r)||(u=s.__cssModules)&&u[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Eo(e){return de(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ol=!0;function Ju(e){const t=fr(e),n=e.proxy,l=e.ctx;Ol=!1,t.beforeCreate&&Fo(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:r,provide:u,inject:c,created:a,beforeMount:f,mounted:g,beforeUpdate:h,updated:v,activated:x,deactivated:C,beforeDestroy:L,beforeUnmount:w,destroyed:k,unmounted:A,render:F,renderTracked:D,renderTriggered:U,errorCaptured:ne,serverPrefetch:T,expose:j,inheritAttrs:X,components:ce,directives:Te,filters:Pe}=t;if(c&&Zu(c,l,null),s)for(const pe in s){const E=s[pe];ge(E)&&(l[pe]=E.bind(n))}if(i){const pe=i.call(n,n);$e(pe)&&(e.data=no(pe))}if(Ol=!0,o)for(const pe in o){const E=o[pe],z=ge(E)?E.bind(n,n):ge(E.get)?E.get.bind(n,n):Lt,le=!ge(E)&&ge(E.set)?E.set.bind(n):Lt,be=ue({get:z,set:le});Object.defineProperty(l,pe,{enumerable:!0,configurable:!0,get:()=>be.value,set:me=>be.value=me})}if(r)for(const pe in r)dr(r[pe],l,n,pe);if(u){const pe=ge(u)?u.call(n):u;Reflect.ownKeys(pe).forEach(E=>{Eu(E,pe[E])})}a&&Fo(a,e,"c");function Ce(pe,E){de(E)?E.forEach(z=>pe(z.bind(n))):E&&pe(E.bind(n))}if(Ce(Hu,f),Ce(gi,g),Ce(ju,h),Ce(Uu,v),Ce(Nu,x),Ce(Vu,C),Ce(Gu,ne),Ce(zu,D),Ce(Wu,U),Ce(Yu,w),Ce(Nn,A),Ce(Ku,T),de(j))if(j.length){const pe=e.exposed||(e.exposed={});j.forEach(E=>{Object.defineProperty(pe,E,{get:()=>n[E],set:z=>n[E]=z,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===Lt&&(e.render=F),X!=null&&(e.inheritAttrs=X),ce&&(e.components=ce),Te&&(e.directives=Te),T&&ar(e)}function Zu(e,t,n=Lt){de(e)&&(e=Pl(e));for(const l in e){const i=e[l];let o;$e(i)?"default"in i?o=Ai(i.from||l,i.default,!0):o=Ai(i.from||l):o=Ai(i),Ue(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[l]=o}}function Fo(e,t,n){Nt(de(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function dr(e,t,n,l){let i=l.includes(".")?or(n,l):()=>n[l];if(Be(e)){const o=t[e];ge(o)&&yt(i,o)}else if(ge(e))yt(i,e.bind(n));else if($e(e))if(de(e))e.forEach(o=>dr(o,t,n,l));else{const o=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(o)&&yt(i,o,e)}}function fr(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,r=o.get(t);let u;return r?u=r:!i.length&&!n&&!l?u=t:(u={},i.length&&i.forEach(c=>Mi(u,c,s,!0)),Mi(u,t,s)),$e(t)&&o.set(t,u),u}function Mi(e,t,n,l=!1){const{mixins:i,extends:o}=t;o&&Mi(e,o,n,!0),i&&i.forEach(s=>Mi(e,s,n,!0));for(const s in t)if(!(l&&s==="expose")){const r=Qu[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}const Qu={data:Io,props:Oo,emits:Oo,methods:Kn,computed:Kn,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Kn,directives:Kn,watch:tc,provide:Io,inject:ec};function Io(e,t){return t?e?function(){return Ze(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function ec(e,t){return Kn(Pl(e),Pl(t))}function Pl(e){if(de(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function st(e,t){return e?[...new Set([].concat(e,t))]:t}function Kn(e,t){return e?Ze(Object.create(null),e,t):t}function Oo(e,t){return e?de(e)&&de(t)?[...new Set([...e,...t])]:Ze(Object.create(null),Eo(e),Eo(t??{})):t}function tc(e,t){if(!e)return t;if(!t)return e;const n=Ze(Object.create(null),e);for(const l in t)n[l]=st(e[l],t[l]);return n}function pr(){return{app:null,config:{isNativeTag:$s,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}}let nc=0;function ic(e,t){return function(l,i=null){ge(l)||(l=Ze({},l)),i!=null&&!$e(i)&&(i=null);const o=pr(),s=new WeakSet,r=[];let u=!1;const c=o.app={_uid:nc++,_component:l,_props:i,_container:null,_context:o,_instance:null,version:Rc,get config(){return o.config},set config(a){},use(a,...f){return s.has(a)||(a&&ge(a.install)?(s.add(a),a.install(c,...f)):ge(a)&&(s.add(a),a(c,...f))),c},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),c},component(a,f){return f?(o.components[a]=f,c):o.components[a]},directive(a,f){return f?(o.directives[a]=f,c):o.directives[a]},mount(a,f,g){if(!u){const h=c._ceVNode||tt(l,i);return h.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(h,a,g),u=!0,c._container=a,a.__vue_app__=c,il(h.component)}},onUnmount(a){r.push(a)},unmount(){u&&(Nt(r,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(a,f){return o.provides[a]=f,c},runWithContext(a){const f=Pn;Pn=c;try{return a()}finally{Pn=f}}};return c}}let Pn=null;const lc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${At(t)}Modifiers`]||e[`${on(t)}Modifiers`];function oc(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||Oe;let i=n;const o=t.startsWith("update:"),s=o&&lc(l,t.slice(7));s&&(s.trim&&(i=n.map(a=>Be(a)?a.trim():a)),s.number&&(i=n.map(ql)));let r,u=l[r=al(t)]||l[r=al(At(t))];!u&&o&&(u=l[r=al(on(t))]),u&&Nt(u,e,6,i);const c=l[r+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Nt(c,e,6,i)}}const sc=new WeakMap;function hr(e,t,n=!1){const l=n?sc:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const o=e.emits;let s={},r=!1;if(!ge(e)){const u=c=>{const a=hr(c,t,!0);a&&(r=!0,Ze(s,a))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!r?($e(e)&&l.set(e,null),null):(de(o)?o.forEach(u=>s[u]=null):Ze(s,o),$e(e)&&l.set(e,s),s)}function tl(e,t){return!e||!Ki(t)?!1:(t=t.slice(2).replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,on(t))||Se(e,t))}function Po(e){const{type:t,vnode:n,proxy:l,withProxy:i,propsOptions:[o],slots:s,attrs:r,emit:u,render:c,renderCache:a,props:f,data:g,setupState:h,ctx:v,inheritAttrs:x}=e,C=Pi(e);let L,w;try{if(n.shapeFlag&4){const A=i||l,F=A;L=Pt(c.call(F,A,a,f,h,g,v)),w=r}else{const A=t;L=Pt(A.length>1?A(f,{attrs:r,slots:s,emit:u}):A(f,null)),w=t.props?r:rc(r)}}catch(A){ni.length=0,Qi(A,e,1),L=tt(nn)}let k=L;if(w&&x!==!1){const A=Object.keys(w),{shapeFlag:F}=k;A.length&&F&7&&(o&&A.some(Wi)&&(w=ac(w,o)),k=Ln(k,w,!1,!0))}return n.dirs&&(k=Ln(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&oo(k,n.transition),L=k,Pi(C),L}const rc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ki(n))&&((t||(t={}))[n]=e[n]);return t},ac=(e,t)=>{const n={};for(const l in e)(!Wi(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function uc(e,t,n){const{props:l,children:i,component:o}=e,{props:s,children:r,patchFlag:u}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return l?Ro(l,s,c):!!s;if(u&8){const a=t.dynamicProps;for(let f=0;f<a.length;f++){const g=a[f];if(gr(s,l,g)&&!tl(c,g))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===s?!1:l?s?Ro(l,s,c):!0:!!s;return!1}function Ro(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const o=l[i];if(gr(t,e,o)&&!tl(n,o))return!0}return!1}function gr(e,t,n){const l=e[n],i=t[n];return n==="style"&&$e(l)&&$e(i)?!pi(l,i):l!==i}function cc({vnode:e,parent:t,suspense:n},l){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=l,e=i),i===e)(e=t.vnode).el=l,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=l)}const vr={},mr=()=>Object.create(vr),yr=e=>Object.getPrototypeOf(e)===vr;function dc(e,t,n,l=!1){const i={},o=mr();e.propsDefaults=Object.create(null),br(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=l?i:fu(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function fc(e,t,n,l){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,r=ke(i),[u]=e.propsOptions;let c=!1;if((l||s>0)&&!(s&16)){if(s&8){const a=e.vnode.dynamicProps;for(let f=0;f<a.length;f++){let g=a[f];if(tl(e.emitsOptions,g))continue;const h=t[g];if(u)if(Se(o,g))h!==o[g]&&(o[g]=h,c=!0);else{const v=At(g);i[v]=Rl(u,r,v,h,e,!1)}else h!==o[g]&&(o[g]=h,c=!0)}}}else{br(e,t,i,o)&&(c=!0);let a;for(const f in r)(!t||!Se(t,f)&&((a=on(f))===f||!Se(t,a)))&&(u?n&&(n[f]!==void 0||n[a]!==void 0)&&(i[f]=Rl(u,r,f,void 0,e,!0)):delete i[f]);if(o!==r)for(const f in o)(!t||!Se(t,f))&&(delete o[f],c=!0)}c&&Ut(e.attrs,"set","")}function br(e,t,n,l){const[i,o]=e.propsOptions;let s=!1,r;if(t)for(let u in t){if(Xn(u))continue;const c=t[u];let a;i&&Se(i,a=At(u))?!o||!o.includes(a)?n[a]=c:(r||(r={}))[a]=c:tl(e.emitsOptions,u)||(!(u in l)||c!==l[u])&&(l[u]=c,s=!0)}if(o){const u=ke(n),c=r||Oe;for(let a=0;a<o.length;a++){const f=o[a];n[f]=Rl(i,u,f,c[f],e,!Se(c,f))}}return s}function Rl(e,t,n,l,i,o){const s=e[n];if(s!=null){const r=Se(s,"default");if(r&&l===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&ge(u)){const{propsDefaults:c}=i;if(n in c)l=c[n];else{const a=vi(i);l=c[n]=u.call(null,t),a()}}else l=u;i.ce&&i.ce._setProp(n,l)}s[0]&&(o&&!r?l=!1:s[1]&&(l===""||l===on(n))&&(l=!0))}return l}const pc=new WeakMap;function wr(e,t,n=!1){const l=n?pc:t.propsCache,i=l.get(e);if(i)return i;const o=e.props,s={},r=[];let u=!1;if(!ge(e)){const a=f=>{u=!0;const[g,h]=wr(f,t,!0);Ze(s,g),h&&r.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!o&&!u)return $e(e)&&l.set(e,Fn),Fn;if(de(o))for(let a=0;a<o.length;a++){const f=At(o[a]);Mo(f)&&(s[f]=Oe)}else if(o)for(const a in o){const f=At(a);if(Mo(f)){const g=o[a],h=s[f]=de(g)||ge(g)?{type:g}:Ze({},g),v=h.type;let x=!1,C=!0;if(de(v))for(let L=0;L<v.length;++L){const w=v[L],k=ge(w)&&w.name;if(k==="Boolean"){x=!0;break}else k==="String"&&(C=!1)}else x=ge(v)&&v.name==="Boolean";h[0]=x,h[1]=C,(x||Se(h,"default"))&&r.push(f)}}const c=[s,r];return $e(e)&&l.set(e,c),c}function Mo(e){return e[0]!=="$"&&!Xn(e)}const so=e=>e==="_"||e==="_ctx"||e==="$stable",ro=e=>de(e)?e.map(Pt):[Pt(e)],hc=(e,t,n)=>{if(t._n)return t;const l=Tu((...i)=>ro(t(...i)),n);return l._c=!1,l},_r=(e,t,n)=>{const l=e._ctx;for(const i in e){if(so(i))continue;const o=e[i];if(ge(o))t[i]=hc(i,o,l);else if(o!=null){const s=ro(o);t[i]=()=>s}}},xr=(e,t)=>{const n=ro(t);e.slots.default=()=>n},kr=(e,t,n)=>{for(const l in t)(n||!so(l))&&(e[l]=t[l])},gc=(e,t,n)=>{const l=e.slots=mr();if(e.vnode.shapeFlag&32){const i=t._;i?(kr(l,t,n),n&&Os(l,"_",i,!0)):_r(t,l)}else t&&xr(e,t)},vc=(e,t,n)=>{const{vnode:l,slots:i}=e;let o=!0,s=Oe;if(l.shapeFlag&32){const r=t._;r?n&&r===1?o=!1:kr(i,t,n):(o=!t.$stable,_r(t,i)),s=t}else t&&(xr(e,t),s={default:1});if(o)for(const r in i)!so(r)&&s[r]==null&&delete i[r]},Qe=_c;function mc(e){return yc(e)}function yc(e,t){const n=qi();n.__VUE__=!0;const{insert:l,remove:i,patchProp:o,createElement:s,createText:r,createComment:u,setText:c,setElementText:a,parentNode:f,nextSibling:g,setScopeId:h=Lt,insertStaticContent:v}=e,x=(m,b,$,V=null,N=null,B=null,J=void 0,W=null,K=!!b.dynamicChildren)=>{if(m===b)return;m&&!Hn(m,b)&&(V=G(m),me(m,N,B,!0),m=null),b.patchFlag===-2&&(K=!1,b.dynamicChildren=null);const{type:H,ref:oe,shapeFlag:Z}=b;switch(H){case nl:C(m,b,$,V);break;case nn:L(m,b,$,V);break;case $i:m==null&&w(b,$,V,J);break;case ie:ce(m,b,$,V,N,B,J,W,K);break;default:Z&1?F(m,b,$,V,N,B,J,W,K):Z&6?Te(m,b,$,V,N,B,J,W,K):(Z&64||Z&128)&&H.process(m,b,$,V,N,B,J,W,K,I)}oe!=null&&N?Qn(oe,m&&m.ref,B,b||m,!b):oe==null&&m&&m.ref!=null&&Qn(m.ref,null,B,m,!0)},C=(m,b,$,V)=>{if(m==null)l(b.el=r(b.children),$,V);else{const N=b.el=m.el;b.children!==m.children&&c(N,b.children)}},L=(m,b,$,V)=>{m==null?l(b.el=u(b.children||""),$,V):b.el=m.el},w=(m,b,$,V)=>{[m.el,m.anchor]=v(m.children,b,$,V,m.el,m.anchor)},k=({el:m,anchor:b},$,V)=>{let N;for(;m&&m!==b;)N=g(m),l(m,$,V),m=N;l(b,$,V)},A=({el:m,anchor:b})=>{let $;for(;m&&m!==b;)$=g(m),i(m),m=$;i(b)},F=(m,b,$,V,N,B,J,W,K)=>{if(b.type==="svg"?J="svg":b.type==="math"&&(J="mathml"),m==null)D(b,$,V,N,B,J,W,K);else{const H=m.el&&m.el._isVueCE?m.el:null;try{H&&H._beginPatch(),T(m,b,N,B,J,W,K)}finally{H&&H._endPatch()}}},D=(m,b,$,V,N,B,J,W)=>{let K,H;const{props:oe,shapeFlag:Z,transition:re,dirs:ae}=m;if(K=m.el=s(m.type,B,oe&&oe.is,oe),Z&8?a(K,m.children):Z&16&&ne(m.children,K,null,V,N,hl(m,B),J,W),ae&&an(m,null,V,"created"),U(K,m,m.scopeId,J,V),oe){for(const xe in oe)xe!=="value"&&!Xn(xe)&&o(K,xe,null,oe[xe],B,V);"value"in oe&&o(K,"value",null,oe.value,B),(H=oe.onVnodeBeforeMount)&&Tt(H,V,m)}ae&&an(m,null,V,"beforeMount");const we=bc(N,re);we&&re.beforeEnter(K),l(K,b,$),((H=oe&&oe.onVnodeMounted)||we||ae)&&Qe(()=>{try{H&&Tt(H,V,m),we&&re.enter(K),ae&&an(m,null,V,"mounted")}finally{}},N)},U=(m,b,$,V,N)=>{if($&&h(m,$),V)for(let B=0;B<V.length;B++)h(m,V[B]);if(N){let B=N.subTree;if(b===B||Sr(B.type)&&(B.ssContent===b||B.ssFallback===b)){const J=N.vnode;U(m,J,J.scopeId,J.slotScopeIds,N.parent)}}},ne=(m,b,$,V,N,B,J,W,K=0)=>{for(let H=K;H<m.length;H++){const oe=m[H]=W?Ht(m[H]):Pt(m[H]);x(null,oe,b,$,V,N,B,J,W)}},T=(m,b,$,V,N,B,J)=>{const W=b.el=m.el;let{patchFlag:K,dynamicChildren:H,dirs:oe}=b;K|=m.patchFlag&16;const Z=m.props||Oe,re=b.props||Oe;let ae;if($&&un($,!1),(ae=re.onVnodeBeforeUpdate)&&Tt(ae,$,b,m),oe&&an(b,m,$,"beforeUpdate"),$&&un($,!0),(Z.innerHTML&&re.innerHTML==null||Z.textContent&&re.textContent==null)&&a(W,""),H?j(m.dynamicChildren,H,W,$,V,hl(b,N),B):J||E(m,b,W,null,$,V,hl(b,N),B,!1),K>0){if(K&16)X(W,Z,re,$,N);else if(K&2&&Z.class!==re.class&&o(W,"class",null,re.class,N),K&4&&o(W,"style",Z.style,re.style,N),K&8){const we=b.dynamicProps;for(let xe=0;xe<we.length;xe++){const Ee=we[xe],Ne=Z[Ee],We=re[Ee];(We!==Ne||Ee==="value")&&o(W,Ee,Ne,We,N,$)}}K&1&&m.children!==b.children&&a(W,b.children)}else!J&&H==null&&X(W,Z,re,$,N);((ae=re.onVnodeUpdated)||oe)&&Qe(()=>{ae&&Tt(ae,$,b,m),oe&&an(b,m,$,"updated")},V)},j=(m,b,$,V,N,B,J)=>{for(let W=0;W<b.length;W++){const K=m[W],H=b[W],oe=K.el&&(K.type===ie||!Hn(K,H)||K.shapeFlag&198)?f(K.el):$;x(K,H,oe,null,V,N,B,J,!0)}},X=(m,b,$,V,N)=>{if(b!==$){if(b!==Oe)for(const B in b)!Xn(B)&&!(B in $)&&o(m,B,b[B],null,N,V);for(const B in $){if(Xn(B))continue;const J=$[B],W=b[B];J!==W&&B!=="value"&&o(m,B,W,J,N,V)}"value"in $&&o(m,"value",b.value,$.value,N)}},ce=(m,b,$,V,N,B,J,W,K)=>{const H=b.el=m?m.el:r(""),oe=b.anchor=m?m.anchor:r("");let{patchFlag:Z,dynamicChildren:re,slotScopeIds:ae}=b;ae&&(W=W?W.concat(ae):ae),m==null?(l(H,$,V),l(oe,$,V),ne(b.children||[],$,oe,N,B,J,W,K)):Z>0&&Z&64&&re&&m.dynamicChildren&&m.dynamicChildren.length===re.length?(j(m.dynamicChildren,re,$,N,B,J,W),(b.key!=null||N&&b===N.subTree)&&ao(m,b,!0)):E(m,b,$,oe,N,B,J,W,K)},Te=(m,b,$,V,N,B,J,W,K)=>{b.slotScopeIds=W,m==null?b.shapeFlag&512?N.ctx.activate(b,$,V,J,K):Pe(b,$,V,N,B,J,K):Xe(m,b,K)},Pe=(m,b,$,V,N,B,J)=>{const W=m.component=$c(m,V,N);if(ur(m)&&(W.ctx.renderer=I),Ec(W,!1,J),W.asyncDep){if(N&&N.registerDep(W,Ce,J),!m.el){const K=W.subTree=tt(nn);L(null,K,b,$),m.placeholder=K.el}}else Ce(W,m,b,$,N,B,J)},Xe=(m,b,$)=>{const V=b.component=m.component;if(uc(m,b,$))if(V.asyncDep&&!V.asyncResolved){pe(V,b,$);return}else V.next=b,V.update();else b.el=m.el,V.vnode=b},Ce=(m,b,$,V,N,B,J)=>{const W=()=>{if(m.isMounted){let{next:Z,bu:re,u:ae,parent:we,vnode:xe}=m;{const _t=Cr(m);if(_t){Z&&(Z.el=xe.el,pe(m,Z,J)),_t.asyncDep.then(()=>{Qe(()=>{m.isUnmounted||H()},N)});return}}let Ee=Z,Ne;un(m,!1),Z?(Z.el=xe.el,pe(m,Z,J)):Z=xe,re&&Ci(re),(Ne=Z.props&&Z.props.onVnodeBeforeUpdate)&&Tt(Ne,we,Z,xe),un(m,!0);const We=Po(m),ze=m.subTree;m.subTree=We,x(ze,We,f(ze.el),G(ze),m,N,B),Z.el=We.el,Ee===null&&cc(m,We.el),ae&&Qe(ae,N),(Ne=Z.props&&Z.props.onVnodeUpdated)&&Qe(()=>Tt(Ne,we,Z,xe),N)}else{let Z;const{el:re,props:ae}=b,{bm:we,m:xe,parent:Ee,root:Ne,type:We}=m,ze=ei(b);un(m,!1),we&&Ci(we),!ze&&(Z=ae&&ae.onVnodeBeforeMount)&&Tt(Z,Ee,b),un(m,!0);{Ne.ce&&Ne.ce._hasShadowRoot()&&Ne.ce._injectChildStyle(We,m.parent?m.parent.type:void 0);const _t=m.subTree=Po(m);x(null,_t,$,V,m,N,B),b.el=_t.el}if(xe&&Qe(xe,N),!ze&&(Z=ae&&ae.onVnodeMounted)){const _t=b;Qe(()=>Tt(Z,Ee,_t),N)}(b.shapeFlag&256||Ee&&ei(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&m.a&&Qe(m.a,N),m.isMounted=!0,b=$=V=null}};m.scope.on();const K=m.effect=new Ds(W);m.scope.off();const H=m.update=K.run.bind(K),oe=m.job=K.runIfDirty.bind(K);oe.i=m,oe.id=m.uid,K.scheduler=()=>lo(oe),un(m,!0),H()},pe=(m,b,$)=>{b.component=m;const V=m.vnode.props;m.vnode=b,m.next=null,fc(m,b.props,V,$),vc(m,b.children,$),Wt(),Co(m),zt()},E=(m,b,$,V,N,B,J,W,K=!1)=>{const H=m&&m.children,oe=m?m.shapeFlag:0,Z=b.children,{patchFlag:re,shapeFlag:ae}=b;if(re>0){if(re&128){le(H,Z,$,V,N,B,J,W,K);return}else if(re&256){z(H,Z,$,V,N,B,J,W,K);return}}ae&8?(oe&16&&_e(H,N,B),Z!==H&&a($,Z)):oe&16?ae&16?le(H,Z,$,V,N,B,J,W,K):_e(H,N,B,!0):(oe&8&&a($,""),ae&16&&ne(Z,$,V,N,B,J,W,K))},z=(m,b,$,V,N,B,J,W,K)=>{m=m||Fn,b=b||Fn;const H=m.length,oe=b.length,Z=Math.min(H,oe);let re;for(re=0;re<Z;re++){const ae=b[re]=K?Ht(b[re]):Pt(b[re]);x(m[re],ae,$,null,N,B,J,W,K)}H>oe?_e(m,N,B,!0,!1,Z):ne(b,$,V,N,B,J,W,K,Z)},le=(m,b,$,V,N,B,J,W,K)=>{let H=0;const oe=b.length;let Z=m.length-1,re=oe-1;for(;H<=Z&&H<=re;){const ae=m[H],we=b[H]=K?Ht(b[H]):Pt(b[H]);if(Hn(ae,we))x(ae,we,$,null,N,B,J,W,K);else break;H++}for(;H<=Z&&H<=re;){const ae=m[Z],we=b[re]=K?Ht(b[re]):Pt(b[re]);if(Hn(ae,we))x(ae,we,$,null,N,B,J,W,K);else break;Z--,re--}if(H>Z){if(H<=re){const ae=re+1,we=ae<oe?b[ae].el:V;for(;H<=re;)x(null,b[H]=K?Ht(b[H]):Pt(b[H]),$,we,N,B,J,W,K),H++}}else if(H>re)for(;H<=Z;)me(m[H],N,B,!0),H++;else{const ae=H,we=H,xe=new Map;for(H=we;H<=re;H++){const lt=b[H]=K?Ht(b[H]):Pt(b[H]);lt.key!=null&&xe.set(lt.key,H)}let Ee,Ne=0;const We=re-we+1;let ze=!1,_t=0;const sn=new Array(We);for(H=0;H<We;H++)sn[H]=0;for(H=ae;H<=Z;H++){const lt=m[H];if(Ne>=We){me(lt,N,B,!0);continue}let gt;if(lt.key!=null)gt=xe.get(lt.key);else for(Ee=we;Ee<=re;Ee++)if(sn[Ee-we]===0&&Hn(lt,b[Ee])){gt=Ee;break}gt===void 0?me(lt,N,B,!0):(sn[gt-we]=H+1,gt>=_t?_t=gt:ze=!0,x(lt,b[gt],$,null,N,B,J,W,K),Ne++)}const Vn=ze?wc(sn):Fn;for(Ee=Vn.length-1,H=We-1;H>=0;H--){const lt=we+H,gt=b[lt],wn=b[lt+1],bi=lt+1<oe?wn.el||Ar(wn):V;sn[H]===0?x(null,gt,$,bi,N,B,J,W,K):ze&&(Ee<0||H!==Vn[Ee]?be(gt,$,bi,2):Ee--)}}},be=(m,b,$,V,N=null)=>{const{el:B,type:J,transition:W,children:K,shapeFlag:H}=m;if(H&6){be(m.component.subTree,b,$,V);return}if(H&128){m.suspense.move(b,$,V);return}if(H&64){J.move(m,b,$,I);return}if(J===ie){l(B,b,$);for(let Z=0;Z<K.length;Z++)be(K[Z],b,$,V);l(m.anchor,b,$);return}if(J===$i){k(m,b,$);return}if(V!==2&&H&1&&W)if(V===0)W.beforeEnter(B),l(B,b,$),Qe(()=>W.enter(B),N);else{const{leave:Z,delayLeave:re,afterLeave:ae}=W,we=()=>{m.ctx.isUnmounted?i(B):l(B,b,$)},xe=()=>{B._isLeaving&&B[Du](!0),Z(B,()=>{we(),ae&&ae()})};re?re(B,we,xe):xe()}else l(B,b,$)},me=(m,b,$,V=!1,N=!1)=>{const{type:B,props:J,ref:W,children:K,dynamicChildren:H,shapeFlag:oe,patchFlag:Z,dirs:re,cacheIndex:ae,memo:we}=m;if(Z===-2&&(N=!1),W!=null&&(Wt(),Qn(W,null,$,m,!0),zt()),ae!=null&&(b.renderCache[ae]=void 0),oe&256){b.ctx.deactivate(m);return}const xe=oe&1&&re,Ee=!ei(m);let Ne;if(Ee&&(Ne=J&&J.onVnodeBeforeUnmount)&&Tt(Ne,b,m),oe&6)fe(m.component,$,V);else{if(oe&128){m.suspense.unmount($,V);return}xe&&an(m,null,b,"beforeUnmount"),oe&64?m.type.remove(m,b,$,I,V):H&&!H.hasOnce&&(B!==ie||Z>0&&Z&64)?_e(H,b,$,!1,!0):(B===ie&&Z&384||!N&&oe&16)&&_e(K,b,$),V&&Ye(m)}const We=we!=null&&ae==null;(Ee&&(Ne=J&&J.onVnodeUnmounted)||xe||We)&&Qe(()=>{Ne&&Tt(Ne,b,m),xe&&an(m,null,b,"unmounted"),We&&(m.el=null)},$)},Ye=m=>{const{type:b,el:$,anchor:V,transition:N}=m;if(b===ie){Ke($,V);return}if(b===$i){A(m);return}const B=()=>{i($),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(m.shapeFlag&1&&N&&!N.persisted){const{leave:J,delayLeave:W}=N,K=()=>J($,B);W?W(m.el,B,K):K()}else B()},Ke=(m,b)=>{let $;for(;m!==b;)$=g(m),i(m),m=$;i(b)},fe=(m,b,$)=>{const{bum:V,scope:N,job:B,subTree:J,um:W,m:K,a:H}=m;Lo(K),Lo(H),V&&Ci(V),N.stop(),B&&(B.flags|=8,me(J,m,b,$)),W&&Qe(W,b),Qe(()=>{m.isUnmounted=!0},b)},_e=(m,b,$,V=!1,N=!1,B=0)=>{for(let J=B;J<m.length;J++)me(m[J],b,$,V,N)},G=m=>{if(m.shapeFlag&6)return G(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const b=g(m.anchor||m.el),$=b&&b[sr];return $?g($):b};let P=!1;const Fe=(m,b,$)=>{let V;m==null?b._vnode&&(me(b._vnode,null,null,!0),V=b._vnode.component):x(b._vnode||null,m,b,null,null,null,$),b._vnode=m,P||(P=!0,Co(V),tr(),P=!1)},I={p:x,um:me,m:be,r:Ye,mt:Pe,mc:ne,pc:E,pbc:j,n:G,o:e};return{render:Fe,hydrate:void 0,createApp:ic(Fe)}}function hl({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 un({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function bc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ao(e,t,n=!1){const l=e.children,i=t.children;if(de(l)&&de(i))for(let o=0;o<l.length;o++){const s=l[o];let r=i[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[o]=Ht(i[o]),r.el=s.el),!n&&r.patchFlag!==-2&&ao(s,r)),r.type===nl&&(r.patchFlag===-1&&(r=i[o]=Ht(r)),r.el=s.el),r.type===nn&&!r.el&&(r.el=s.el)}}function wc(e){const t=e.slice(),n=[0];let l,i,o,s,r;const u=e.length;for(l=0;l<u;l++){const c=e[l];if(c!==0){if(i=n[n.length-1],e[i]<c){t[l]=i,n.push(l);continue}for(o=0,s=n.length-1;o<s;)r=o+s>>1,e[n[r]]<c?o=r+1:s=r;c<e[n[o]]&&(o>0&&(t[l]=n[o-1]),n[o]=l)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}function Cr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Cr(t)}function Lo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ar(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ar(t.subTree):null}const Sr=e=>e.__isSuspense;function _c(e,t){t&&t.pendingBranch?de(e)?t.effects.push(...e):t.effects.push(e):$u(e)}const ie=Symbol.for("v-fgt"),nl=Symbol.for("v-txt"),nn=Symbol.for("v-cmt"),$i=Symbol.for("v-stc"),ni=[];let bt=null;function y(e=!1){ni.push(bt=e?null:[])}function xc(){ni.pop(),bt=ni[ni.length-1]||null}let si=1;function Do(e,t=!1){si+=e,e<0&&bt&&t&&(bt.hasOnce=!0)}function $r(e){return e.dynamicChildren=si>0?bt||Fn:null,xc(),si>0&&bt&&bt.push(e),e}function _(e,t,n,l,i,o){return $r(d(e,t,n,l,i,o,!0))}function mt(e,t,n,l,i){return $r(tt(e,t,n,l,i,!0))}function Tr(e){return e?e.__v_isVNode===!0:!1}function Hn(e,t){return e.type===t.type&&e.key===t.key}const Er=({key:e})=>e??null,Ti=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Ue(e)||ge(e)?{i:xt,r:e,k:t,f:!!n}:e:null);function d(e,t=null,n=null,l=0,i=null,o=e===ie?0:1,s=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Er(t),ref:t&&Ti(t),scopeId:ir,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:o,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:xt};return r?(uo(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=Be(n)?8:16),si>0&&!s&&bt&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&bt.push(u),u}const tt=kc;function kc(e,t=null,n=null,l=0,i=null,o=!1){if((!e||e===Xu)&&(e=nn),Tr(e)){const r=Ln(e,t,!0);return n&&uo(r,n),si>0&&!o&&bt&&(r.shapeFlag&6?bt[bt.indexOf(e)]=r:bt.push(r)),r.patchFlag=-2,r}if(Pc(e)&&(e=e.__vccOpts),t){t=Cc(t);let{class:r,style:u}=t;r&&!Be(r)&&(t.class=te(r)),$e(u)&&(Zi(u)&&!de(u)&&(u=Ze({},u)),t.style=Me(u))}const s=Be(e)?1:Sr(e)?128:Pu(e)?64:$e(e)?4:ge(e)?2:0;return d(e,t,n,l,i,s,o,!0)}function Cc(e){return e?Zi(e)||yr(e)?Ze({},e):e:null}function Ln(e,t,n=!1,l=!1){const{props:i,ref:o,patchFlag:s,children:r,transition:u}=e,c=t?Ir(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Er(c),ref:t&&t.ref?n&&o?de(o)?o.concat(Ti(t)):[o,Ti(t)]:Ti(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ln(e.ssContent),ssFallback:e.ssFallback&&Ln(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&l&&oo(a,u.clone(a)),a}function rt(e=" ",t=0){return tt(nl,null,e,t)}function Fr(e,t){const n=tt($i,null,e);return n.staticCount=t,n}function Y(e="",t=!1){return t?(y(),mt(nn,null,e)):tt(nn,null,e)}function Pt(e){return e==null||typeof e=="boolean"?tt(nn):de(e)?tt(ie,null,e.slice()):Tr(e)?Ht(e):tt(nl,null,String(e))}function Ht(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ln(e)}function uo(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(de(t))n=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),uo(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!yr(t)?t._ctx=xt:i===3&&xt&&(xt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:xt},n=32):(t=String(t),l&64?(n=16,t=[rt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ir(...e){const t={};for(let n=0;n<e.length;n++){const l=e[n];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=te([t.class,l.class]));else if(i==="style")t.style=Me([t.style,l.style]);else if(Ki(i)){const o=t[i],s=l[i];s&&o!==s&&!(de(o)&&o.includes(s))?t[i]=o?[].concat(o,s):s:s==null&&o==null&&!Wi(i)&&(t[i]=s)}else i!==""&&(t[i]=l[i])}return t}function Tt(e,t,n,l=null){Nt(e,t,7,[n,l])}const Ac=pr();let Sc=0;function $c(e,t,n){const l=e.type,i=(t?t.appContext:e.appContext)||Ac,o={uid:Sc++,vnode:e,type:l,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ka(!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:wr(l,i),emitsOptions:hr(l,i),emit:null,emitted:null,propsDefaults:Oe,inheritAttrs:l.inheritAttrs,ctx:Oe,data:Oe,props:Oe,attrs:Oe,slots:Oe,refs:Oe,setupState:Oe,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=oc.bind(null,o),e.ce&&e.ce(o),o}let ut=null;const Tc=()=>ut||xt;let Li,Ml;{const e=qi(),t=(n,l)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(l),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Li=t("__VUE_INSTANCE_SETTERS__",n=>ut=n),Ml=t("__VUE_SSR_SETTERS__",n=>ri=n)}const vi=e=>{const t=ut;return Li(e),e.scope.on(),()=>{e.scope.off(),Li(t)}},No=()=>{ut&&ut.scope.off(),Li(null)};function Or(e){return e.vnode.shapeFlag&4}let ri=!1;function Ec(e,t=!1,n=!1){t&&Ml(t);const{props:l,children:i}=e.vnode,o=Or(e);dc(e,l,o,t),gc(e,i,n||t);const s=o?Fc(e,t):void 0;return t&&Ml(!1),s}function Fc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,qu);const{setup:l}=n;if(l){Wt();const i=e.setupContext=l.length>1?Oc(e):null,o=vi(e),s=hi(l,e,0,[e.props,i]),r=Ts(s);if(zt(),o(),(r||e.sp)&&!ei(e)&&ar(e),r){if(s.then(No,No),t)return s.then(u=>{Vo(e,u)}).catch(u=>{Qi(u,e,0)});e.asyncDep=s}else Vo(e,s)}else Pr(e)}function Vo(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$e(t)&&(e.setupState=Js(t)),Pr(e)}function Pr(e,t,n){const l=e.type;e.render||(e.render=l.render||Lt);{const i=vi(e);Wt();try{Ju(e)}finally{zt(),i()}}}const Ic={get(e,t){return et(e,"get",""),e[t]}};function Oc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ic),slots:e.slots,emit:e.emit,expose:t}}function il(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Js(pu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ti)return ti[n](e)},has(t,n){return n in t||n in ti}})):e.proxy}function Pc(e){return ge(e)&&"__vccOpts"in e}const ue=(e,t)=>xu(e,t,ri),Rc="3.5.31";/**
|
|
14
14
|
* @vue/runtime-dom v3.5.31
|
|
15
15
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
16
|
* @license MIT
|
|
17
|
-
**/let Ml;const Vo=typeof window<"u"&&window.trustedTypes;if(Vo)try{Ml=Vo.createPolicy("vue",{createHTML:e=>e})}catch{}const Pr=Ml?e=>Ml.createHTML(e):e=>e,Rc="http://www.w3.org/2000/svg",Mc="http://www.w3.org/1998/Math/MathML",Bt=typeof document<"u"?document:null,Bo=Bt&&Bt.createElement("template"),Lc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const i=t==="svg"?Bt.createElementNS(Rc,e):t==="mathml"?Bt.createElementNS(Mc,e):n?Bt.createElement(e,{is:n}):Bt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>Bt.createTextNode(e),createComment:e=>Bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Bo.innerHTML=Pr(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Bo.content;if(l==="svg"||l==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Dc=Symbol("_vtc");function Nc(e,t,n){const l=e[Dc];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ho=Symbol("_vod"),Vc=Symbol("_vsh"),Bc=Symbol(""),Hc=/(?:^|;)\s*display\s*:/;function jc(e,t,n){const l=e.style,i=Be(n);let o=!1;if(n&&!i){if(t)if(Be(t))for(const s of t.split(";")){const r=s.slice(0,s.indexOf(":")).trim();n[r]==null&&Ei(l,r,"")}else for(const s in t)n[s]==null&&Ei(l,s,"");for(const s in n)s==="display"&&(o=!0),Ei(l,s,n[s])}else if(i){if(t!==n){const s=l[Bc];s&&(n+=";"+s),l.cssText=n,o=Hc.test(n)}}else t&&e.removeAttribute("style");Ho in e&&(e[Ho]=o?l.display:"",e[Vc]&&(l.display="none"))}const jo=/\s*!important$/;function Ei(e,t,n){if(fe(n))n.forEach(l=>Ei(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Uc(e,t);jo.test(n)?e.setProperty(ln(l),n.replace(jo,""),"important"):e[l]=n}}const Uo=["Webkit","Moz","ms"],hl={};function Uc(e,t){const n=hl[t];if(n)return n;let l=Ct(t);if(l!=="filter"&&l in e)return hl[t]=l;l=Fs(l);for(let i=0;i<Uo.length;i++){const o=Uo[i]+l;if(o in e)return hl[t]=o}return t}const Yo="http://www.w3.org/1999/xlink";function Ko(e,t,n,l,i,o=ja(t)){l&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Yo,t.slice(6,t.length)):e.setAttributeNS(Yo,t,n):n==null||o&&!Os(n)?e.removeAttribute(t):e.setAttribute(t,o?"":xt(n)?String(n):n)}function Wo(e,t,n,l,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Pr(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(r!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=Os(n):n==null&&r==="string"?(n="",s=!0):r==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function gn(e,t,n,l){e.addEventListener(t,n,l)}function Yc(e,t,n,l){e.removeEventListener(t,n,l)}const zo=Symbol("_vei");function Kc(e,t,n,l,i=null){const o=e[zo]||(e[zo]={}),s=o[t];if(l&&s)s.value=l;else{const[r,u]=Wc(t);if(l){const c=o[t]=Xc(l,i);gn(e,r,c,u)}else s&&(Yc(e,r,s,u),o[t]=void 0)}}const Go=/(?:Once|Passive|Capture)$/;function Wc(e){let t;if(Go.test(e)){t={};let l;for(;l=e.match(Go);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ln(e.slice(2)),t]}let gl=0;const zc=Promise.resolve(),Gc=()=>gl||(zc.then(()=>gl=0),gl=Date.now());function Xc(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;Nt(qc(l,n.value),t,5,[l])};return n.value=e,n.attached=Gc(),n}function qc(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const Xo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jc=(e,t,n,l,i,o)=>{const s=i==="svg";t==="class"?Nc(e,l,s):t==="style"?jc(e,n,l):Ki(t)?Wi(t)||Kc(e,t,n,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zc(e,t,l,s))?(Wo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ko(e,t,l,s,o,t!=="value")):e._isVueCE&&(Qc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Be(l)))?Wo(e,Ct(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Ko(e,t,l,s))};function Zc(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Xo(t)&&ge(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"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Xo(t)&&Be(n)?!1:t in e}function Qc(e,t){const n=e._def.props;if(!n)return!1;const l=Ct(t);return Array.isArray(n)?n.some(i=>Ct(i)===l):Object.keys(n).some(i=>Ct(i)===l)}const Di=e=>{const t=e.props["onUpdate:modelValue"]||!1;return fe(t)?n=>Ci(t,n):t};function ed(e){e.target.composing=!0}function qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rn=Symbol("_assign");function Jo(e,t,n){return t&&(e=e.trim()),n&&(e=Xl(e)),e}const He={created(e,{modifiers:{lazy:t,trim:n,number:l}},i){e[Rn]=Di(i);const o=l||i.props&&i.props.type==="number";gn(e,t?"change":"input",s=>{s.target.composing||e[Rn](Jo(e.value,n,o))}),(n||o)&&gn(e,"change",()=>{e.value=Jo(e.value,n,o)}),t||(gn(e,"compositionstart",ed),gn(e,"compositionend",qo),gn(e,"change",qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:i,number:o}},s){if(e[Rn]=Di(s),e.composing)return;const r=(o||e.type==="number")&&!/^0\d/.test(e.value)?Xl(e.value):e.value,u=t??"";if(r===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(l&&t===n||i&&e.value.trim()===u)||(e.value=u)}},td={deep:!0,created(e,t,n){e[Rn]=Di(n),gn(e,"change",()=>{const l=e._modelValue,i=nd(e),o=e.checked,s=e[Rn];if(fe(l)){const r=Ps(l,i),u=r!==-1;if(o&&!u)s(l.concat(i));else if(!o&&u){const c=[...l];c.splice(r,1),s(c)}}else if(zi(l)){const r=new Set(l);o?r.add(i):r.delete(i),s(r)}else s(Rr(e,o))})},mounted:Zo,beforeUpdate(e,t,n){e[Rn]=Di(n),Zo(e,t,n)}};function Zo(e,{value:t,oldValue:n},l){e._modelValue=t;let i;if(fe(t))i=Ps(t,l.props.value)>-1;else if(zi(t))i=t.has(l.props.value);else{if(t===n)return;i=pi(t,Rr(e,!0))}e.checked!==i&&(e.checked=i)}function nd(e){return"_value"in e?e._value:e.value}function Rr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const id=["ctrl","shift","alt","meta"],ld={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)=>id.some(n=>e[`${n}Key`]&&!t.includes(n))},De=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((i,...o)=>{for(let s=0;s<t.length;s++){const r=ld[t[s]];if(r&&r(i,t))return}return e(i,...o)}))},od={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(i=>{if(!("key"in i))return;const o=ln(i.key);if(t.some(s=>s===o||od[s]===o))return e(i)}))},sd=Ze({patchProp:Jc},Lc);let Qo;function rd(){return Qo||(Qo=vc(sd))}const ad=((...e)=>{const t=rd().createApp(...e),{mount:n}=t;return t.mount=l=>{const i=cd(l);if(!i)return;const o=t._component;!ge(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,ud(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t});function ud(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cd(e){return Be(e)?document.querySelector(e):e}const dd={class:"layout-controls"},fd={class:"control-row"},pd={class:"button-group"},hd=["onClick"],gd={class:"control-row"},vd={class:"button-group"},md={class:"control-row"},yd={class:"button-group"},bd=["title","onClick"],wd={class:"control-row"},_d={class:"button-group"},xd=["title","onClick"],kd={class:"control-row"},Cd={class:"num-input-group"},Ad=["value"],Sd={class:"num-value"},$d=nt({__name:"LayoutControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t,i=ce(()=>n.computedStyles.display||"block"),o=ce(()=>n.computedStyles["flex-direction"]||"row"),s=ce(()=>n.computedStyles["align-items"]||"stretch"),r=ce(()=>n.computedStyles["justify-content"]||"flex-start"),u=ce(()=>n.computedStyles.gap||"0px"),c=["block","flex","grid","inline-flex","inline","none"],a=[{value:"flex-start",icon:"⬆",label:"Start"},{value:"center",icon:"⬌",label:"Center"},{value:"flex-end",icon:"⬇",label:"End"},{value:"stretch",icon:"⇕",label:"Stretch"}],f=[{value:"flex-start",icon:"◧",label:"Start"},{value:"center",icon:"◫",label:"Center"},{value:"flex-end",icon:"◨",label:"End"},{value:"space-between",icon:"⟺",label:"Between"},{value:"space-around",icon:"⟷",label:"Around"}],g=ce(()=>i.value==="flex"||i.value==="inline-flex");function h(v){return parseFloat(v)||0}return(v,x)=>(y(),_("div",dd,[d("div",fd,[x[5]||(x[5]=d("label",{class:"control-label"},"Display",-1)),d("div",pd,[(y(),_(ie,null,ye(c,C=>d("button",{key:C,class:te(["seg-btn",{active:i.value===C}]),onClick:M=>l("change","display",C)},R(C),11,hd)),64))])]),g.value?(y(),_(ie,{key:0},[d("div",gd,[x[6]||(x[6]=d("label",{class:"control-label"},"Direction",-1)),d("div",vd,[d("button",{class:te(["seg-btn icon-btn",{active:o.value==="row"}]),onClick:x[0]||(x[0]=C=>l("change","flex-direction","row")),title:"Row"},"→",2),d("button",{class:te(["seg-btn icon-btn",{active:o.value==="row-reverse"}]),onClick:x[1]||(x[1]=C=>l("change","flex-direction","row-reverse")),title:"Row Reverse"},"←",2),d("button",{class:te(["seg-btn icon-btn",{active:o.value==="column"}]),onClick:x[2]||(x[2]=C=>l("change","flex-direction","column")),title:"Column"},"↓",2),d("button",{class:te(["seg-btn icon-btn",{active:o.value==="column-reverse"}]),onClick:x[3]||(x[3]=C=>l("change","flex-direction","column-reverse")),title:"Column Reverse"},"↑",2)])]),d("div",md,[x[7]||(x[7]=d("label",{class:"control-label"},"Align",-1)),d("div",yd,[(y(),_(ie,null,ye(a,C=>d("button",{key:C.value,class:te(["seg-btn",{active:s.value===C.value}]),title:C.label,onClick:M=>l("change","align-items",C.value)},R(C.icon),11,bd)),64))])]),d("div",wd,[x[8]||(x[8]=d("label",{class:"control-label"},"Justify",-1)),d("div",_d,[(y(),_(ie,null,ye(f,C=>d("button",{key:C.value,class:te(["seg-btn",{active:r.value===C.value}]),title:C.label,onClick:M=>l("change","justify-content",C.value)},R(C.icon),11,xd)),64))])]),d("div",kd,[x[9]||(x[9]=d("label",{class:"control-label"},"Gap",-1)),d("div",Cd,[d("input",{type:"range",min:"0",max:"64",step:"1",value:h(u.value),class:"range-input",onInput:x[4]||(x[4]=C=>l("change","gap",C.target.value+"px"))},null,40,Ad),d("span",Sd,R(h(u.value))+"px",1)])])],64)):Y("",!0)]))}}),pt=(e,t)=>{const n=e.__vccOpts||e;for(const[l,i]of t)n[l]=i;return n},Td=pt($d,[["__scopeId","data-v-548da941"]]),Ed={class:"spacing-controls"},Fd={class:"box-model"},Id={class:"margin-box"},Od=["value"],Pd=["value"],Rd=["value"],Md=["value"],Ld={class:"padding-box"},Dd=["value"],Nd=["value"],Vd=["value"],Bd=["value"],Hd={class:"content-box"},jd=nt({__name:"SpacingControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(u){return parseFloat(u)||0}function o(u){const c=u.split(" ").map(a=>parseFloat(a)||0);return c.length===1?{top:c[0],right:c[0],bottom:c[0],left:c[0]}:c.length===2?{top:c[0],right:c[1],bottom:c[0],left:c[1]}:c.length===3?{top:c[0],right:c[1],bottom:c[2],left:c[1]}:{top:c[0],right:c[1],bottom:c[2],left:c[3]}}const s=ce(()=>o(n.computedStyles.padding||"0")),r=ce(()=>o(n.computedStyles.margin||"0"));return(u,c)=>(y(),_("div",Ed,[d("div",Fd,[d("div",Id,[c[9]||(c[9]=d("span",{class:"box-label margin-label"},"margin",-1)),d("input",{class:"side-input top",value:r.value.top,onChange:c[0]||(c[0]=a=>l("change","margin-top",a.target.value+"px"))},null,40,Od),d("input",{class:"side-input right",value:r.value.right,onChange:c[1]||(c[1]=a=>l("change","margin-right",a.target.value+"px"))},null,40,Pd),d("input",{class:"side-input bottom",value:r.value.bottom,onChange:c[2]||(c[2]=a=>l("change","margin-bottom",a.target.value+"px"))},null,40,Rd),d("input",{class:"side-input left",value:r.value.left,onChange:c[3]||(c[3]=a=>l("change","margin-left",a.target.value+"px"))},null,40,Md),d("div",Ld,[c[8]||(c[8]=d("span",{class:"box-label padding-label"},"padding",-1)),d("input",{class:"side-input top",value:s.value.top,onChange:c[4]||(c[4]=a=>l("change","padding-top",a.target.value+"px"))},null,40,Dd),d("input",{class:"side-input right",value:s.value.right,onChange:c[5]||(c[5]=a=>l("change","padding-right",a.target.value+"px"))},null,40,Nd),d("input",{class:"side-input bottom",value:s.value.bottom,onChange:c[6]||(c[6]=a=>l("change","padding-bottom",a.target.value+"px"))},null,40,Vd),d("input",{class:"side-input left",value:s.value.left,onChange:c[7]||(c[7]=a=>l("change","padding-left",a.target.value+"px"))},null,40,Bd),d("div",Hd,R(i(n.computedStyles.width||"0").toFixed(0))+" × "+R(i(n.computedStyles.height||"0").toFixed(0)),1)])])])]))}}),Ud=pt(jd,[["__scopeId","data-v-e06fb04c"]]),Yd={class:"size-controls"},Kd={class:"size-row"},Wd={class:"size-field"},zd={class:"size-input-group"},Gd=["value"],Xd={class:"size-field"},qd={class:"size-input-group"},Jd=["value"],Zd={class:"control-row"},Qd={class:"button-group"},ef=["onClick"],tf=nt({__name:"SizeControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(c){return parseFloat(c)||0}const o=ce(()=>n.computedStyles.width||"auto"),s=ce(()=>n.computedStyles.height||"auto"),r=ce(()=>n.computedStyles.overflow||"visible"),u=["visible","hidden","scroll","auto"];return(c,a)=>(y(),_("div",Yd,[d("div",Kd,[d("div",Wd,[a[3]||(a[3]=d("label",{class:"control-label"},"Width",-1)),d("div",zd,[d("input",{class:"size-input",value:i(o.value),type:"number",onChange:a[0]||(a[0]=f=>l("change","width",f.target.value+"px"))},null,40,Gd),a[2]||(a[2]=d("span",{class:"size-unit"},"px",-1))])]),d("div",Xd,[a[5]||(a[5]=d("label",{class:"control-label"},"Height",-1)),d("div",qd,[d("input",{class:"size-input",value:i(s.value),type:"number",onChange:a[1]||(a[1]=f=>l("change","height",f.target.value+"px"))},null,40,Jd),a[4]||(a[4]=d("span",{class:"size-unit"},"px",-1))])])]),d("div",Zd,[a[6]||(a[6]=d("label",{class:"control-label"},"Overflow",-1)),d("div",Qd,[(y(),_(ie,null,ye(u,f=>d("button",{key:f,class:te(["seg-btn",{active:r.value===f}]),onClick:g=>l("change","overflow",f)},R(f),11,ef)),64))])])]))}}),nf=pt(tf,[["__scopeId","data-v-c3ca7e31"]]),lf=[{name:"Slate",shades:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"}},{name:"Gray",shades:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"}},{name:"Zinc",shades:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"}},{name:"Neutral",shades:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"}},{name:"Stone",shades:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},{name:"Red",shades:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"}},{name:"Orange",shades:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"}},{name:"Amber",shades:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"}},{name:"Yellow",shades:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"}},{name:"Lime",shades:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"}},{name:"Green",shades:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"}},{name:"Emerald",shades:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"}},{name:"Teal",shades:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"}},{name:"Cyan",shades:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"}},{name:"Sky",shades:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"}},{name:"Blue",shades:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"}},{name:"Indigo",shades:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4e"}},{name:"Violet",shades:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"}},{name:"Purple",shades:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"}},{name:"Fuchsia",shades:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"}},{name:"Pink",shades:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"}},{name:"Rose",shades:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}}],of=["50","100","200","300","400","500","600","700","800","900","950"],vl=q([]),sf=20;function Ll(e){const t=e.match(/\d+/g);if(!t||t.length<3)return"#000000";const[n,l,i]=t.map(Number);return"#"+[n,l,i].map(o=>o.toString(16).padStart(2,"0")).join("")}function rf(e,t){var l;if(!e||e==="inherit"||e==="initial"||e==="unset")return null;const n=t.createElement("span");n.style.display="none",n.style.color="",t.body.appendChild(n);try{n.style.color=e;const i=(l=t.defaultView)==null?void 0:l.getComputedStyle(n).color;return!i||i===""?null:Ll(i)}finally{n.remove()}}function af(e){var o;const t=e.documentElement,n=new Set;for(const s of Array.from(e.styleSheets))try{for(const r of Array.from(s.cssRules))if(r instanceof CSSStyleRule&&((o=r.selectorText)!=null&&o.includes(":root")))for(let u=0;u<r.style.length;u++){const c=r.style[u];c.startsWith("--")&&n.add(c)}}catch{}const l=getComputedStyle(t),i=[];for(const s of n){const r=l.getPropertyValue(s).trim(),u=rf(r,e);u&&i.push({label:s,value:u,source:"css-var"})}return i}function uf(e){const t=q([]);let n=!1;const l=ce(()=>lf.map(u=>({name:u.name,swatches:of.map(c=>({label:`${u.name.toLowerCase()}-${c}`,value:u.shades[c],source:"tailwind"}))}))),i=ce(()=>t.value.length===0?null:{name:"App Variables",swatches:t.value});function o(){const u=e.value;u&&(t.value=af(u),n=!0)}function s(){n||o()}function r(u){const c=u.toLowerCase();vl.value=[{label:c,value:c,source:"recent"},...vl.value.filter(a=>a.value!==c)].slice(0,sf)}return{tailwindCategories:l,cssVarCategory:i,recentColors:vl,ensureScanned:s,refreshCssVars:o,addRecentColor:r}}const cf={class:"picker-trigger"},df=["value"],ff={key:0,class:"color-match"},pf={class:"palette-tabs"},hf={key:0,class:"palette-body"},gf={class:"family-label"},vf={class:"swatch-row"},mf=["title","onClick"],yf={key:1,class:"palette-body"},bf={key:0,class:"var-grid"},wf=["onClick"],_f={class:"var-name"},xf={class:"var-hex"},kf={key:1,class:"empty-msg"},Cf={key:2,class:"palette-body"},Af={key:0,class:"swatch-grid"},Sf=["title","onClick"],$f={key:1,class:"empty-msg"},Tf=nt({__name:"ColorPalettePicker",props:{modelValue:{},iframeDoc:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,{tailwindCategories:i,cssVarCategory:o,recentColors:s,ensureScanned:r,addRecentColor:u}=uf(yu(n,"iframeDoc")),c=q(!1),a=q("tailwind"),f=q(null),g=q(null);function h(){c.value=!c.value,c.value&&r()}function v(M){l("update:modelValue",M),u(M),c.value=!1}function x(M){var k,A;if(!c.value)return;const w=M.target;(k=f.value)!=null&&k.contains(w)||(A=g.value)!=null&&A.contains(w)||(c.value=!1)}const C=ce(()=>{var k,A;const M=(k=n.modelValue)==null?void 0:k.toLowerCase();if(!M)return null;for(const F of i.value){const L=F.swatches.find(U=>U.value.toLowerCase()===M);if(L)return L.label}const w=(A=o.value)==null?void 0:A.swatches.find(F=>F.value.toLowerCase()===M);return w?w.label:null});return gi(()=>{document.addEventListener("mousedown",x)}),Nn(()=>{document.removeEventListener("mousedown",x)}),(M,w)=>(y(),_("div",{class:"color-palette-picker",ref_key:"triggerRef",ref:g},[d("div",cf,[d("input",{type:"color",value:e.modelValue,class:"color-swatch",onInput:w[0]||(w[0]=k=>M.$emit("update:modelValue",k.target.value))},null,40,df),d("button",{class:te(["palette-btn",{active:c.value}]),onClick:h,title:"Color palette"},[...w[4]||(w[4]=[Er('<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor" data-v-b0ade670><rect x="0" y="0" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="9" y="0" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="0" y="9" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="9" y="9" width="7" height="7" rx="1.5" data-v-b0ade670></rect></svg>',1)])],2),C.value?(y(),_("span",ff,R(C.value),1)):Y("",!0)]),c.value?(y(),_("div",{key:0,class:"palette-popover",ref_key:"popoverRef",ref:f},[d("div",pf,[d("button",{class:te(["ptab",{active:a.value==="tailwind"}]),onClick:w[1]||(w[1]=k=>a.value="tailwind")},"Tailwind",2),d("button",{class:te(["ptab",{active:a.value==="css-var"}]),onClick:w[2]||(w[2]=k=>a.value="css-var")},"App Vars",2),d("button",{class:te(["ptab",{active:a.value==="recent"}]),onClick:w[3]||(w[3]=k=>a.value="recent")},"Recent",2)]),a.value==="tailwind"?(y(),_("div",hf,[(y(!0),_(ie,null,ye(ee(i),k=>(y(),_("div",{key:k.name,class:"color-family"},[d("span",gf,R(k.name),1),d("div",vf,[(y(!0),_(ie,null,ye(k.swatches,A=>{var F;return y(),_("button",{key:A.value,class:te(["swatch",{selected:A.value.toLowerCase()===((F=e.modelValue)==null?void 0:F.toLowerCase())}]),style:Me({background:A.value}),title:A.label,onClick:L=>v(A.value)},null,14,mf)}),128))])]))),128))])):Y("",!0),a.value==="css-var"?(y(),_("div",yf,[ee(o)?(y(),_("div",bf,[(y(!0),_(ie,null,ye(ee(o).swatches,k=>{var A;return y(),_("button",{key:k.label,class:te(["var-swatch",{selected:k.value.toLowerCase()===((A=e.modelValue)==null?void 0:A.toLowerCase())}]),onClick:F=>v(k.value)},[d("span",{class:"var-color",style:Me({background:k.value})},null,4),d("span",_f,R(k.label),1),d("span",xf,R(k.value),1)],10,wf)}),128))])):(y(),_("p",kf,"No color variables detected"))])):Y("",!0),a.value==="recent"?(y(),_("div",Cf,[ee(s).length?(y(),_("div",Af,[(y(!0),_(ie,null,ye(ee(s),k=>{var A;return y(),_("button",{key:k.value,class:te(["swatch large",{selected:k.value.toLowerCase()===((A=e.modelValue)==null?void 0:A.toLowerCase())}]),style:Me({background:k.value}),title:k.value,onClick:F=>v(k.value)},null,14,Sf)}),128))])):(y(),_("p",$f,"No colors used yet"))])):Y("",!0)],512)):Y("",!0)],512))}}),Dl=pt(Tf,[["__scopeId","data-v-b0ade670"]]),Ef={class:"appearance-controls"},Ff={class:"control-row"},If={class:"color-input-group"},Of={class:"color-value"},Pf={class:"control-row"},Rf={class:"color-input-group"},Mf={class:"color-value"},Lf={class:"control-row"},Df={class:"num-input-group"},Nf=["value"],Vf={class:"num-value"},Bf={class:"control-row"},Hf={class:"button-group"},jf=["onClick"],Uf={class:"control-row"},Yf={class:"num-input-group"},Kf=["value"],Wf={class:"num-value"},zf={class:"control-row"},Gf={class:"num-input-group"},Xf=["value"],qf={class:"num-value"},Jf=nt({__name:"AppearanceControls",props:{computedStyles:{},iframeDoc:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(g){return parseFloat(g)||0}const o=ce(()=>n.computedStyles["background-color"]||"rgba(0,0,0,0)"),s=ce(()=>n.computedStyles.color||"#000"),r=ce(()=>i(n.computedStyles["font-size"]||"16")),u=ce(()=>n.computedStyles["font-weight"]||"400"),c=ce(()=>i(n.computedStyles["border-radius"]||"0")),a=ce(()=>i(n.computedStyles.opacity||"1")),f=["100","300","400","500","600","700","900"];return(g,h)=>(y(),_("div",Ef,[d("div",Ff,[h[5]||(h[5]=d("label",{class:"control-label"},"Background",-1)),d("div",If,[tt(Dl,{modelValue:ee(Ll)(o.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[0]||(h[0]=v=>l("change","background-color",v))},null,8,["modelValue","iframeDoc"]),d("span",Of,R(o.value),1)])]),d("div",Pf,[h[6]||(h[6]=d("label",{class:"control-label"},"Text Color",-1)),d("div",Rf,[tt(Dl,{modelValue:ee(Ll)(s.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[1]||(h[1]=v=>l("change","color",v))},null,8,["modelValue","iframeDoc"]),d("span",Mf,R(s.value),1)])]),d("div",Lf,[h[7]||(h[7]=d("label",{class:"control-label"},"Font Size",-1)),d("div",Df,[d("input",{type:"range",min:"8",max:"72",step:"1",value:r.value,class:"range-input",onInput:h[2]||(h[2]=v=>l("change","font-size",v.target.value+"px"))},null,40,Nf),d("span",Vf,R(r.value)+"px",1)])]),d("div",Bf,[h[8]||(h[8]=d("label",{class:"control-label"},"Font Weight",-1)),d("div",Hf,[(y(),_(ie,null,ye(f,v=>d("button",{key:v,class:te(["seg-btn",{active:u.value===v}]),onClick:x=>l("change","font-weight",v)},R(v),11,jf)),64))])]),d("div",Uf,[h[9]||(h[9]=d("label",{class:"control-label"},"Border Radius",-1)),d("div",Yf,[d("input",{type:"range",min:"0",max:"50",step:"1",value:c.value,class:"range-input",onInput:h[3]||(h[3]=v=>l("change","border-radius",v.target.value+"px"))},null,40,Kf),d("span",Wf,R(c.value)+"px",1)])]),d("div",zf,[h[10]||(h[10]=d("label",{class:"control-label"},"Opacity",-1)),d("div",Gf,[d("input",{type:"range",min:"0",max:"1",step:"0.05",value:a.value,class:"range-input",onInput:h[4]||(h[4]=v=>l("change","opacity",v.target.value))},null,40,Xf),d("span",qf,R((a.value*100).toFixed(0))+"%",1)])])]))}}),Zf=pt(Jf,[["__scopeId","data-v-47449e0a"]]);let Rt=null,Nl=0,ml=null;const Wn=new Map;function Qf(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/__annotask/ws`}function Mr(){try{Rt=new WebSocket(Qf()),Rt.onopen=()=>{Nl=0,console.log("[Annotask] WebSocket connected")},Rt.onmessage=e=>{try{const t=JSON.parse(e.data);if(t.event){const n=Wn.get(t.event);if(n)for(const l of n)l(t.data)}}catch{}},Rt.onclose=()=>{Rt=null,es()},Rt.onerror=()=>{}}catch{es()}}function es(){if(ml)return;Nl++;const e=Math.min(1e3*Math.pow(2,Nl-1),3e4);ml=setTimeout(()=>{ml=null,Mr()},e)}function Lr(e,t){return Wn.has(e)||Wn.set(e,new Set),Wn.get(e).add(t),()=>{var n;(n=Wn.get(e))==null||n.delete(t)}}function ep(e,t){(Rt==null?void 0:Rt.readyState)===WebSocket.OPEN&&Rt.send(JSON.stringify({event:e,data:t,timestamp:Date.now()}))}Mr();const Vl=q(null),Bl=q(!1),Dr=q(!0);let ts=!1;async function yl(){try{const t=await(await fetch("/__annotask/api/design-spec")).json();Vl.value=t,Bl.value=!!t.initialized}catch{Vl.value=null,Bl.value=!1}finally{Dr.value=!1}}function uo(){return ts||(ts=!0,yl(),Lr("designspec:updated",()=>yl())),{designSpec:Vl,isInitialized:Bl,isLoading:Dr,refetch:yl}}const qe=q([]);let Jt=0;const gt=new Map;function cn(e,t){ep(e,t)}function tp(){function e(a,f,g,h,v){const x=qe.value.find(C=>C.type==="style_update"&&C.file===v.file&&C.line===(parseInt(v.line)||0)&&C.property===f&>.get(C.id)===a);if(x)x.after=g,x.description=`Set ${f} to ${g}`;else{Jt++;const C=`s${Jt}`;qe.value.push({id:C,type:"style_update",description:`Set ${f} to ${g}`,file:v.file,section:"style",line:parseInt(v.line)||0,component:v.component,element:"element",property:f,before:h,after:g}),gt.set(C,a)}}function t(a,f){Jt++;const g=`ci${Jt}`,h=a.position==="append"||a.position==="prepend",v={id:g,type:"component_insert",description:`Insert <${f.tag}> ${a.position} in ${a.component}`,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,insert_inside:h?{component:a.component}:void 0,insert_position:a.position,inserted:{tag:f.tag,library:f.library,props:f.defaultProps,classes:f.defaultClasses,text_content:f.defaultTextContent}};return qe.value.push(v),g}function n(a){Jt++;const f=`an${Jt}`,g={id:f,type:"annotation",description:a.intent,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,intent:a.intent,action:a.action,context:{element_tag:a.elementTag,element_classes:a.elementClasses,parent_layout:a.parentLayout,siblings_count:a.siblingsCount},pinId:a.pinId};return qe.value.push(g),f}function l(a,f,g,h){const v=parseInt(h.line)||0,x=qe.value.find(M=>M.type!=="class_update"||M.file!==h.file||M.line!==v?!1:gt.get(M.id)===a);if(x)return x.after={classes:g},x.description="Update classes",x.id;Jt++;const C=`cl${Jt}`;return qe.value.push({id:C,type:"class_update",description:"Update classes",file:h.file,section:"template",line:v,component:h.component,element:"element",before:{classes:f},after:{classes:g}}),gt.set(C,a),C}function i(){if(qe.value.length===0)return null;const a=qe.value.pop();if(a.type==="style_update"){const f=gt.get(a.id);return gt.delete(a.id),cn("report:updated",c.value),{type:"style",eid:f,property:a.property,value:a.before}}else if(a.type==="class_update"){const f=gt.get(a.id);return gt.delete(a.id),cn("report:updated",c.value),{type:"class",eid:f,classes:a.before.classes}}else if(a.type==="component_insert"){const f=gt.get(a.id);return gt.delete(a.id),cn("report:updated",c.value),{type:"insert_remove",eid:f}}return cn("report:updated",c.value),null}function o(a){qe.value=qe.value.filter(f=>f.id!==a),gt.delete(a)}function s(a,f){qe.value=qe.value.filter(g=>g.type!=="annotation"?!0:!(g.file===a&&g.line===f))}function r(){const a=[];for(const f of qe.value)if(f.type==="component_insert"){const g=gt.get(f.id);g&&a.push(g)}return qe.value=[],gt.clear(),cn("changes:cleared",{}),a}function u(a){const f=typeof a.line=="number"&&Number.isFinite(a.line)?a.line:0,g={id:a.id,type:a.type,description:a.description||"",file:a.file||"",section:a.section,line:f};switch(a.type){case"style_update":return{...g,component:a.component,element:a.element,property:a.property,before:a.before,after:a.after};case"class_update":return{...g,component:a.component,element:a.element,before:a.before,after:a.after};case"component_insert":return{...g,insert_inside:a.insert_inside,insert_position:a.insert_position,component:a.inserted};case"component_move":return{...g,element:{tag:a.element_tag,component:a.component,from_file:a.from_file,from_line:a.from_line},move_to:a.move_to};case"annotation":return{...g,component:a.component,intent:a.intent,action:a.action,context:a.context};default:return null}}const c=ce(()=>{if(qe.value.length===0)return null;const a=qe.value.filter(x=>x.type==="component_insert"||x.type==="component_move"||x.type==="annotation"?!0:x.type==="class_update"?x.before.classes!==x.after.classes:x.before!==x.after);if(a.length===0)return null;const f=a.map(u).filter(Boolean),{designSpec:g}=uo(),h=g.value;return{version:"1.0",project:h!=null&&h.framework?{framework:h.framework.name||"vue",styling:h.framework.styling||[],root:""}:{framework:"vue",styling:[],root:""},changes:f}});return mt(()=>c.value,a=>{cn("report:updated",a)},{deep:!0}),{changes:qe,applyStyle:e,recordInsert:t,recordAnnotation:n,recordClassChange:l,removeChange:o,removeAnnotationsByFile:s,undo:i,clearChanges:r,report:c,broadcast:cn}}const bl=localStorage.getItem("annotask:mode"),Qt=q(bl&&["select","interact","pin","arrow","draw","highlight"].includes(bl)?bl:"select");function ns(e){var n;const t=(n=e.target)==null?void 0:n.tagName;if(!(t==="INPUT"||t==="TEXTAREA"||t==="SELECT"))switch(e.key.toLowerCase()){case"v":Qt.value="select";break;case"i":Qt.value="interact";break;case"p":Qt.value="pin";break;case"a":Qt.value="arrow";break;case"d":Qt.value="draw";break;case"h":Qt.value="highlight";break}}mt(Qt,e=>localStorage.setItem("annotask:mode",e));function np(){return gi(()=>document.addEventListener("keydown",ns)),Nn(()=>document.removeEventListener("keydown",ns)),{mode:Qt}}function ip(e){const t=q(!1),n=q([]);function l(){var c;try{return((c=e.value)==null?void 0:c.contentDocument)??null}catch{return null}}function i(c){if(!e.value)return null;const a=c.getBoundingClientRect(),f=e.value.getBoundingClientRect();return new DOMRect(f.left+a.left,f.top+a.top,a.width,a.height)}function o(){const c=l();if(!c){n.value=[];return}const a=[],f=c.querySelectorAll("*"),g=c.defaultView;if(g){for(const h of f){if(h.nodeType!==1)continue;const v=g.getComputedStyle(h),x=v.display;if(!x.includes("flex")&&!x.includes("grid"))continue;const C=i(h);if(!C||C.width<20||C.height<20)continue;const M=x.includes("grid"),w=M?"grid":"flex",k=M?"grid":v.flexDirection,A={x:C.x,y:C.y,width:C.width,height:C.height,display:w,direction:k,columnGap:parseFloat(v.columnGap)||0,rowGap:parseFloat(v.rowGap)||0,el:h};if(M){const F=v.gridTemplateColumns,L=v.gridTemplateRows;A.templateColumns=F,A.templateRows=L,F&&F!=="none"&&(A.columns=F.split(/\s+/).map(U=>parseFloat(U)||0).filter(U=>U>0)),L&&L!=="none"&&(A.rows=L.split(/\s+/).map(U=>parseFloat(U)||0).filter(U=>U>0))}a.push(A)}n.value=a}}function s(){t.value=!t.value,t.value?o():n.value=[]}function r(c,a){const f=c.el;if(!f)return null;const g=f.ownerDocument.defaultView;if(!g)return null;const h=g.getComputedStyle(f),v=a==="col"?"grid-template-columns":"grid-template-rows",x=h.getPropertyValue(v)||"",C=x,M=x&&x!=="none"?x+" 1fr":"1fr";return f.style.setProperty(v,M),o(),{el:f,property:v,before:C,after:M}}function u(c){const a=c.el;if(!a)return null;const g=a.ownerDocument.createElement("div");return g.style.minWidth="60px",g.style.minHeight="40px",g.style.border="2px dashed #a855f7",g.style.borderRadius="4px",g.style.background="rgba(168,85,247,0.05)",g.setAttribute("data-annotask-placeholder","true"),a.appendChild(g),o(),{parentEl:a,childEl:g}}return{showOverlay:t,containers:n,toggle:s,scan:o,addTrack:r,addChild:u}}const Et=q([]),xn=q([]),dn=q([]),fn=q([]),pn=q([]),kt=q("/"),kn=q(null),jn=q(null),Un=q(null),Yn=q(null);let ot=0;function lp(){function e(T){kt.value=T}const t=ce(()=>Et.value.filter(T=>T.route===kt.value)),n=ce(()=>dn.value.filter(T=>T.route===kt.value)),l=ce(()=>fn.value.filter(T=>T.route===kt.value)),i=ce(()=>pn.value.filter(T=>T.route===kt.value));function o(T,j,X){ot++;const de={id:`pin-${ot}`,number:ot,file:T.file,line:parseInt(T.line)||0,component:T.component,elementTag:T.elementTag,elementClasses:T.elementClasses,clickX:j,clickY:X,note:"",route:kt.value,timestamp:Date.now()};return Et.value.push(de),kn.value=de.id,de}function s(T){Et.value=Et.value.filter(j=>j.id!==T),kn.value===T&&(kn.value=null)}function r(T,j){const X=Et.value.find(de=>de.id===T);X&&(X.note=j)}function u(T,j){const X=Et.value.find(de=>de.id===T);X&&(X.action=j)}function c(T,j){return Et.value.filter(X=>X.file===T&&X.line===j)}const a=ce(()=>Et.value.find(T=>T.id===kn.value)||null);function f(T,j){ot++;const X={id:`sticky-${ot}`,number:ot,x:T-60,y:j-60,width:120,height:120,text:"",color:"yellow",route:kt.value,timestamp:Date.now()};return xn.value.push(X),jn.value=X.id,X}function g(T){xn.value=xn.value.filter(j=>j.id!==T),jn.value===T&&(jn.value=null)}function h(T,j){const X=xn.value.find(de=>de.id===T);X&&Object.assign(X,j)}function v(T,j,X,de,Te){ot++;const Pe={id:`arrow-${ot}`,number:ot,fromX:T,fromY:j,toX:X,toY:de,label:Te||"Move here",route:kt.value,timestamp:Date.now()};return dn.value.push(Pe),Un.value=Pe.id,Pe}function x(T){dn.value=dn.value.filter(j=>j.id!==T),Un.value===T&&(Un.value=null)}function C(T,j){const X=dn.value.find(de=>de.id===T);X&&Object.assign(X,j)}function M(T,j,X,de){ot++;const Te={id:`section-${ot}`,number:ot,x:T,y:j,width:X,height:de,prompt:"",route:kt.value,timestamp:Date.now()};return fn.value.push(Te),Yn.value=Te.id,Te}function w(T){fn.value=fn.value.filter(j=>j.id!==T),Yn.value===T&&(Yn.value=null)}function k(T,j){const X=fn.value.find(de=>de.id===T);X&&Object.assign(X,j)}const A=q(null);function F(T,j){ot++;const X={id:`hl-${ot}`,number:ot,selectedText:T,prompt:"",file:j.file,line:j.line,component:j.component,elementTag:j.elementTag,route:kt.value,timestamp:Date.now()};return pn.value.push(X),A.value=X.id,X}function L(T){pn.value=pn.value.filter(j=>j.id!==T),A.value===T&&(A.value=null)}function U(T,j){const X=pn.value.find(de=>de.id===T);X&&Object.assign(X,j)}function ne(){Et.value=[],xn.value=[],dn.value=[],fn.value=[],pn.value=[],kn.value=null,jn.value=null,Un.value=null,Yn.value=null}return{pins:Et,stickyNotes:xn,arrows:dn,drawnSections:fn,highlights:pn,routePins:t,routeArrows:n,routeSections:l,routeHighlights:i,activeRoute:kt,setRoute:e,selectedPinId:kn,selectedStickyId:jn,selectedArrowId:Un,selectedSectionId:Yn,selectedHighlightId:A,selectedPin:a,addPin:o,removePin:s,updatePinNote:r,setPinAction:u,getPinsForElement:c,addStickyNote:f,removeStickyNote:g,updateStickyNote:h,addArrow:v,removeArrow:x,updateArrow:C,addDrawnSection:M,removeDrawnSection:w,updateDrawnSection:k,addHighlight:F,removeHighlight:L,updateHighlight:U,clearAll:ne}}let op=0;const Kt=new Map,zn=new Map;let bn=null,mi="*",yi=!1,Ni=[];function Nr(e){const t=e.data;if(!(!t||t.source!=="annotask-client")){if(t.type==="bridge:ready"){mi=e.origin||"*",yi=!0;for(const n of Ni)n();Ni=[],is("bridge:ready",t.payload);return}if(t.id&&Kt.has(t.id)){const n=Kt.get(t.id);clearTimeout(n.timer),Kt.delete(t.id),n.resolve(t.payload);return}is(t.type,t.payload)}}function is(e,t){const n=zn.get(e);if(n)for(const l of n)l(t)}function sp(e){bn=e,yi=!1,mi="*",window.addEventListener("message",Nr)}function rp(){window.removeEventListener("message",Nr);for(const[,e]of Kt)clearTimeout(e.timer),e.reject(new Error("bridge destroyed"));Kt.clear(),bn=null,yi=!1,Ni=[]}function ap(e){for(const[,t]of Kt)clearTimeout(t.timer),t.reject(new Error("bridge reset"));Kt.clear(),bn=e,yi=!1,mi="*"}function ls(e){if(yi){e();return}Ni.push(e)}function up(e,t={}){if(!bn)return;const n={type:e,payload:t,source:"annotask-shell"};bn.postMessage(n,mi)}function Le(e,t={},n=5e3){return new Promise((l,i)=>{if(!bn){i(new Error("bridge not connected"));return}const o=`req-${++op}`,s=setTimeout(()=>{Kt.delete(o),i(new Error(`bridge timeout: ${e}`))},n);Kt.set(o,{resolve:l,reject:i,timer:s});const r={type:e,id:o,payload:t,source:"annotask-shell"};bn.postMessage(r,mi)})}function os(e,t){return zn.has(e)||zn.set(e,new Set),zn.get(e).add(t),()=>{var n;(n=zn.get(e))==null||n.delete(t)}}function cp(e){const t=q("/"),n=q(!1);function l(){var z;const E=(z=e.value)==null?void 0:z.contentWindow;E&&(ap(E),n.value=!1,ls(()=>{n.value=!0}),os("route:changed",le=>{t.value=le.path}))}function i(){var z;const E=(z=e.value)==null?void 0:z.contentWindow;E&&sp(E)}function o(){rp()}function s(E){const z=e.value;if(!z)return null;const le=z.getBoundingClientRect();return{x:le.left+E.x,y:le.top+E.y,width:E.width,height:E.height}}function r(E,z){const le=e.value;if(!le)return null;const be=le.getBoundingClientRect();return{x:E-be.left,y:z-be.top}}async function u(E,z){const le=r(E,z);if(!le||le.x<0||le.y<0)return null;const be=e.value;if(!be)return null;const me=be.getBoundingClientRect();if(le.x>me.width||le.y>me.height)return null;try{const Ye=await Le("resolve:at-point",le,500);return Ye?(Ye.rect=s(Ye.rect)||Ye.rect,Ye):null}catch{return null}}async function c(E,z,le){try{const be=await Le("resolve:template-group",{file:E,line:z,tagName:le});return be.rects=be.rects.map(me=>s(me)||me),be}catch{return{eids:[],rects:[]}}}async function a(E){try{const z=await Le("resolve:rect",{eid:E});return z?s(z.rect)||z.rect:null}catch{return null}}async function f(E){if(E.length===0)return[];try{return(await Le("resolve:rects",{eids:[...E]})).rects.map(le=>le?s(le)||le:null)}catch{return E.map(()=>null)}}async function g(E,z){try{return(await Le("style:get-computed",{eid:E,properties:z})).styles}catch{return{}}}async function h(E,z,le){try{return(await Le("style:apply",{eid:E,property:z,value:le})).before}catch{return""}}async function v(E,z,le){try{return(await Le("style:apply-batch",{eids:[...E],property:z,value:le})).befores}catch{return E.map(()=>"")}}async function x(E,z){try{return(await Le("class:set",{eid:E,classes:z})).before}catch{return""}}async function C(E,z){try{return(await Le("class:set-batch",{eids:[...E],classes:z})).befores}catch{return E.map(()=>"")}}async function M(E,z,le){try{await Le("style:undo",{eid:E,property:z,value:le})}catch{}}async function w(E,z){try{await Le("class:undo",{eid:E,classes:z})}catch{}}async function k(E){try{return await Le("classify:element",{eid:E})}catch{return null}}async function A(){try{const E=await Le("layout:scan");for(const z of E.containers)z.rect=s(z.rect)||z.rect;return E.containers}catch{return[]}}async function F(E,z){try{return await Le("layout:add-track",{eid:E,axis:z})}catch{return null}}async function L(E){try{return await Le("layout:add-child",{eid:E})}catch{return null}}async function U(){try{return(await Le("check:source-mapping")).hasMapping}catch{return!1}}async function ne(E,z){try{await Le("theme:inject-css",{css:E,styleId:z})}catch{}}async function T(E){try{await Le("theme:remove-css",{styleId:E})}catch{}}async function j(){try{return(await Le("palette:scan-vars")).swatches}catch{return[]}}async function X(){try{const E=await Le("route:current");return t.value=E.path,E.path}catch{return"/"}}async function de(E,z,le,be){try{return(await Le("insert:placeholder",{targetEid:E,position:z,tag:le,...be||{}})).placeholderEid}catch{return""}}async function Te(E){try{await Le("insert:remove",{eid:E})}catch{}}async function Pe(E,z,le){try{await Le("move:element",{eid:E,targetEid:z,position:le})}catch{}}async function Xe(E,z,le,be){try{return await Le("insert:component",{targetEid:E,position:z,componentName:le,props:be})}catch{return{eid:"",mounted:!1}}}const Ce=Xe;function he(E){up("mode:set",{mode:E})}return{currentRoute:t,bridgeReady:n,mountBridge:i,unmountBridge:o,initBridgeForIframe:l,toShellRect:s,toIframeCoords:r,resolveElementAt:u,findTemplateGroup:c,getElementRect:a,getElementRects:f,getComputedStyles:g,applyStyleVia:h,applyStyleBatch:v,setClass:x,setClassBatch:C,undoStyle:M,undoClass:w,classifyElement:k,scanLayout:A,layoutAddTrack:F,layoutAddChild:L,checkSourceMapping:U,injectThemeCss:ne,removeThemeCss:T,scanColorVars:j,getCurrentRoute:X,insertPlaceholder:de,removePlaceholder:Te,moveElement:Pe,insertComponent:Xe,insertVueComponent:Ce,setMode:he,onBridgeEvent:os,onBridgeReady:ls}}function dp(e,t,n,l){const i=q(null),o=q(null);let s=null;async function r(f){const g=n();if(g==="arrow"){s={x:f.clientX,y:f.clientY},i.value={fromX:f.clientX,fromY:f.clientY,toX:f.clientX,toY:f.clientY};const h=await t(f.clientX,f.clientY);i.value&&h&&(i.value={...i.value,fromRect:h.rect})}else g==="draw"&&(s={x:f.clientX,y:f.clientY},o.value={x:f.clientX,y:f.clientY,width:0,height:0})}let u=null;function c(f){if(!s)return;const g=n();if(g==="arrow"&&i.value){i.value={...i.value,toX:f.clientX,toY:f.clientY},u&&clearTimeout(u);const h=f.clientX,v=f.clientY;u=setTimeout(async()=>{const x=await t(h,v);i.value&&(i.value={...i.value,toRect:x==null?void 0:x.rect})},50)}else if(g==="draw"&&o.value){const h=Math.min(s.x,f.clientX),v=Math.min(s.y,f.clientY),x=Math.abs(f.clientX-s.x),C=Math.abs(f.clientY-s.y);o.value={x:h,y:v,width:x,height:C}}}async function a(f){if(!s)return;u&&(clearTimeout(u),u=null);const g=n();if(g==="arrow"&&i.value){const h=i.value;if(Math.abs(h.toX-h.fromX)>20||Math.abs(h.toY-h.fromY)>20){const v=await t(h.fromX,h.fromY),x=await t(h.toX,h.toY),C=e.addArrow(h.fromX,h.fromY,h.toX,h.toY);v&&e.updateArrow(C.id,{fromFile:v.file,fromLine:parseInt(v.line)||0,fromComponent:v.component}),x&&e.updateArrow(C.id,{toFile:x.file,toLine:parseInt(x.line)||0}),e.updateArrow(C.id,{label:""}),l==null||l(C.id,v,x)}i.value=null}else if(g==="draw"&&o.value){const h=o.value;if(h.width>30&&h.height>30){const v=await t(h.x+h.width/2,h.y),x=e.addDrawnSection(h.x,h.y,h.width,h.height);if(v){const C=h.y>((s==null?void 0:s.y)||0)?"below":"above";e.updateDrawnSection(x.id,{nearFile:v.file,nearLine:parseInt(v.line)||0,nearComponent:v.component,placement:C})}}o.value=null}s=null}return{drawingArrow:i,drawingRect:o,onCanvasPointerDown:r,onCanvasPointerMove:c,onCanvasPointerUp:a}}const fp={class:"mode-toolbar"},pp=nt({__name:"ModeToolbar",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_("div",fp,[d("button",{class:te(["mode-btn",{active:e.modelValue==="select"}]),onClick:i[0]||(i[0]=o=>n("update:modelValue","select")),title:"Select (V)"},[...i[6]||(i[6]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[d("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1)])],2),d("button",{class:te(["mode-btn mode-interact",{active:e.modelValue==="interact"}]),onClick:i[1]||(i[1]=o=>n("update:modelValue",e.modelValue==="interact"?"select":"interact")),title:"Interact (I)"},[...i[7]||(i[7]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M18 8a6 6 0 0 0-12 0c0 7 6 13 6 13s6-6 6-13z"}),d("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"}),d("path",{d:"M9 21h6"})],-1)])],2),i[12]||(i[12]=d("span",{class:"mode-sep"},null,-1)),d("button",{class:te(["mode-btn",{active:e.modelValue==="pin"}]),onClick:i[2]||(i[2]=o=>n("update:modelValue","pin")),title:"Pin Note (P)"},[...i[8]||(i[8]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("circle",{cx:"12",cy:"10",r:"3"}),d("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"})],-1)])],2),d("button",{class:te(["mode-btn arrow",{active:e.modelValue==="arrow"}]),onClick:i[3]||(i[3]=o=>n("update:modelValue","arrow")),title:"Arrow (A)"},[...i[9]||(i[9]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[d("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),d("polyline",{points:"12 5 19 12 12 19"})],-1)])],2),d("button",{class:te(["mode-btn draw",{active:e.modelValue==="draw"}]),onClick:i[4]||(i[4]=o=>n("update:modelValue","draw")),title:"Draw Section (D)"},[...i[10]||(i[10]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2","stroke-dasharray":"4 2"}),d("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),d("line",{x1:"8",y1:"12",x2:"16",y2:"12"})],-1)])],2),d("button",{class:te(["mode-btn mode-highlight",{active:e.modelValue==="highlight"}]),onClick:i[5]||(i[5]=o=>n("update:modelValue","highlight")),title:"Highlight Text (H)"},[...i[11]||(i[11]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M12 20h9"}),d("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})],-1)])],2)]))}}),hp=pt(pp,[["__scopeId","data-v-00eaacd4"]]),gp={key:0,class:"separator"},vp=["disabled","onClick"],mp={class:"item-label"},yp={key:0,class:"item-shortcut"},bp=nt({__name:"ContextMenu",props:{visible:{type:Boolean},x:{},y:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,l=t,i=q(null),o=[{id:"move",label:"Move",shortcut:"M",enabled:!0},{id:"resize",label:"Resize",shortcut:"R",enabled:!0},{id:"separator"},{id:"duplicate",label:"Duplicate",enabled:!1},{id:"delete",label:"Delete",enabled:!1}];function s(c){l("action",c),l("close")}function r(c){var a;n.visible&&((a=i.value)!=null&&a.contains(c.target)||l("close"))}function u(c){c.key==="Escape"&&l("close")}return gi(()=>{document.addEventListener("mousedown",r),document.addEventListener("keydown",u)}),Nn(()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",u)}),(c,a)=>(y(),vt(Mu,{to:"body"},[e.visible?(y(),_("div",{key:0,ref_key:"menuRef",ref:i,class:"context-menu",style:Me({left:e.x+"px",top:e.y+"px"})},[(y(),_(ie,null,ye(o,f=>(y(),_(ie,{key:f.id},[f.id==="separator"?(y(),_("div",gp)):(y(),_("button",{key:1,class:te(["menu-item",{disabled:!f.enabled}]),disabled:!f.enabled,onClick:g=>f.enabled&&s(f.id)},[d("span",mp,R(f.label),1),f.shortcut?(y(),_("span",yp,R(f.shortcut),1)):Y("",!0)],10,vp))],64))),64))],4)):Y("",!0)]))}}),wp=pt(bp,[["__scopeId","data-v-b4795b28"]]),_p=["onClick"],xp={class:"pin-number"},kp=["onClick"],Cp=nt({__name:"PinOverlay",props:{pins:{},selectedPinId:{},iframeOffset:{}},emits:["select-pin","remove-pin"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(!0),_(ie,null,ye(e.pins,o=>(y(),_("div",{key:o.id,class:te(["pin",{selected:o.id===e.selectedPinId,"has-action":!!o.action,"has-note":!!o.note}]),style:Me({left:e.iframeOffset.x+o.clickX+"px",top:e.iframeOffset.y+o.clickY+"px"}),onClick:De(s=>n("select-pin",o.id),["stop"])},[d("span",xp,R(o.number),1),d("button",{class:"pin-remove",onClick:De(s=>n("remove-pin",o.id),["stop"])},"×",8,kp)],14,_p))),128))}}),Ap=pt(Cp,[["__scopeId","data-v-006ef709"]]),Sp={class:"arrow-svg"},$p=["onClick"],Tp=["d","stroke","stroke-width"],Ep=["cx","cy"],Fp=["cx","cy"],Ip=["x","y"],Op=["transform","onClick"],Pp={key:0},Rp=["d"],Mp=["d"],Lp=["d"],Dp=["cx","cy"],Np=nt({__name:"ArrowOverlay",props:{arrows:{},selectedId:{},drawingArrow:{}},emits:["select","remove"],setup(e,{emit:t}){const n=t;function l(r,u,c,a,f,g){let h=r,v=u;if(f){const L=f.x+f.width/2,U=f.y+f.height/2,ne=Math.atan2(a-U,c-L);h=L+Math.cos(ne)*(f.width/2+4),v=U+Math.sin(ne)*(f.height/2+4)}let x=c,C=a;if(g){const L=g.x+g.width/2,U=g.y+g.height/2,ne=Math.atan2(v-U,h-L);x=L+Math.cos(ne)*(g.width/2+4),C=U+Math.sin(ne)*(g.height/2+4)}const M=x-h,w=h+M*.4,k=v,A=h+M*.6;return`M ${h} ${v} C ${w} ${k}, ${A} ${C}, ${x} ${C}`}function i(r,u,c,a){const f=c-r,g=r+f*.4,h=u,v=r+f*.6;return`M ${r} ${u} C ${g} ${h}, ${v} ${a}, ${c} ${a}`}function o(r,u,c,a){return{x:(r+c)/2,y:(u+a)/2-10}}function s(r){return`M ${r.x} ${r.y} h ${r.width} v ${r.height} h ${-r.width} Z`}return(r,u)=>(y(),_("svg",Sp,[u[1]||(u[1]=d("defs",null,[d("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[d("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#ef4444"})]),d("marker",{id:"arrowhead-drawing",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[d("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#3b82f6"})])],-1)),(y(!0),_(ie,null,ye(e.arrows,c=>(y(),_("g",{key:c.id,onClick:De(a=>n("select",c.id),["stop"])},[d("path",{d:i(c.fromX,c.fromY,c.toX,c.toY),fill:"none",stroke:c.id===e.selectedId?"#dc2626":"#ef4444","stroke-width":c.id===e.selectedId?3:2,"stroke-dasharray":"6 3","marker-end":"url(#arrowhead)",class:"arrow-path"},null,8,Tp),d("circle",{cx:c.fromX,cy:c.fromY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,Ep),d("circle",{cx:c.toX,cy:c.toY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,Fp),c.label?(y(),_("text",{key:0,x:o(c.fromX,c.fromY,c.toX,c.toY).x,y:o(c.fromX,c.fromY,c.toX,c.toY).y,"text-anchor":"middle",class:"arrow-label"},R(c.label),9,Ip)):Y("",!0),c.id===e.selectedId?(y(),_("g",{key:1,class:"arrow-delete",transform:`translate(${(c.fromX+c.toX)/2+20}, ${(c.fromY+c.toY)/2-20})`,onClick:De(a=>n("remove",c.id),["stop"])},[...u[0]||(u[0]=[d("circle",{r:"8",fill:"#ef4444"},null,-1),d("text",{"text-anchor":"middle",dy:"3.5",fill:"white","font-size":"10","font-weight":"bold"},"×",-1)])],8,Op)):Y("",!0)],8,$p))),128)),e.drawingArrow?(y(),_("g",Pp,[e.drawingArrow.fromRect?(y(),_("path",{key:0,d:s(e.drawingArrow.fromRect),fill:"none",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,Rp)):Y("",!0),e.drawingArrow.toRect?(y(),_("path",{key:1,d:s(e.drawingArrow.toRect),fill:"rgba(59,130,246,0.08)",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,Mp)):Y("",!0),d("path",{d:l(e.drawingArrow.fromX,e.drawingArrow.fromY,e.drawingArrow.toX,e.drawingArrow.toY,e.drawingArrow.fromRect,e.drawingArrow.toRect),fill:"none",stroke:"#3b82f6","stroke-width":"2.5","stroke-dasharray":"6 3","marker-end":"url(#arrowhead-drawing)",opacity:"0.8"},null,8,Lp),d("circle",{cx:e.drawingArrow.fromX,cy:e.drawingArrow.fromY,r:"5",fill:"#3b82f6",opacity:"0.6"},null,8,Dp)])):Y("",!0)]))}}),Vp=pt(Np,[["__scopeId","data-v-1d2c9ec9"]]),Bp=["onClick"],Hp={class:"section-header"},jp={class:"section-badge"},Up={key:0,class:"section-placement"},Yp=["onClick"],Kp=["value","onInput","onBlur"],Wp={class:"section-dims"},zp=nt({__name:"DrawnSectionOverlay",props:{sections:{},selectedId:{},drawingRect:{}},emits:["select","remove","update-prompt","commit"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_(ie,null,[e.drawingRect&&e.drawingRect.width>5&&e.drawingRect.height>5?(y(),_("div",{key:0,class:"section-preview",style:Me({left:e.drawingRect.x+"px",top:e.drawingRect.y+"px",width:e.drawingRect.width+"px",height:e.drawingRect.height+"px"})},null,4)):Y("",!0),(y(!0),_(ie,null,ye(e.sections,o=>(y(),_("div",{key:o.id,class:te(["drawn-section",{selected:o.id===e.selectedId}]),style:Me({left:o.x+"px",top:o.y+"px",width:o.width+"px",height:o.height+"px"}),onClick:De(s=>n("select",o.id),["stop"])},[d("div",Hp,[d("span",jp,"#"+R(o.number)+" New Section",1),o.placement?(y(),_("span",Up,R(o.placement),1)):Y("",!0),d("button",{class:"section-delete",onClick:De(s=>n("remove",o.id),["stop"])},"×",8,Yp)]),d("textarea",{class:"section-prompt",value:o.prompt,placeholder:"Describe what should go here...",onInput:s=>n("update-prompt",o.id,s.target.value),onBlur:s=>n("commit",o.id),onClick:i[0]||(i[0]=De(()=>{},["stop"]))},null,40,Kp),d("div",Wp,R(Math.round(o.width))+"×"+R(Math.round(o.height))+"px ",1)],14,Bp))),128))],64))}}),Gp=pt(zp,[["__scopeId","data-v-d10f1f9f"]]),Xp={class:"notes-tab"},qp={key:0,class:"quick-actions"},Jp={class:"action-grid"},Zp=["onClick"],Qp={key:1,class:"add-note"},eh=["onKeydown"],th=["disabled"],nh={key:2,class:"element-pins"},ih=["onClick"],lh={class:"pin-content"},oh={key:0,class:"pin-action"},sh={key:1,class:"pin-note"},rh={key:2,class:"pin-empty"},ah=["onClick"],uh={class:"all-pins"},ch={class:"section-label"},dh={key:0,class:"empty-hint"},fh=["onClick"],ph={class:"pin-content"},hh={class:"pin-file"},gh={key:0,class:"pin-action"},vh={key:1,class:"pin-note"},mh=["onClick"],yh={key:3,class:"task-review"},bh={class:"section-label"},wh={class:"task-header"},_h={class:"task-desc"},xh={class:"task-file"},kh={key:0,class:"task-feedback"},Ch={class:"task-actions"},Ah=["onClick"],Sh=["value","onInput"],$h=["onClick"],Th=["onClick"],Eh=nt({__name:"NotesTab",props:{pins:{},selectedPinId:{},selectedElement:{},elementRole:{},tasks:{}},emits:["add-note","add-action","add-task","select-pin","accept-task","deny-task","cancel-task","update-note","remove-pin"],setup(e,{emit:t}){const n=e,l=q({}),i=t,o=q(""),s=ce(()=>n.selectedElement?n.pins.filter(g=>g.file===n.selectedElement.file&&g.line===parseInt(n.selectedElement.line)):[]),r=[{action:"add_column",label:"+ Column"},{action:"add_row",label:"+ Row"},{action:"change_direction",label:"Direction"},{action:"set_gap",label:"Set Gap"}],u=[{action:"move_up",label:"Move Up"},{action:"move_down",label:"Move Down"},{action:"wrap_container",label:"Wrap"},{action:"duplicate",label:"Duplicate"}],c=[{action:"delete",label:"Delete"}],a=ce(()=>{const g=n.elementRole;return g==="container"?[...r,...c]:g==="content"?[...u,...c]:c});function f(){const g=o.value.trim();g&&(i("add-note",g),o.value="")}return(g,h)=>(y(),_("div",Xp,[e.selectedElement?(y(),_("div",qp,[h[2]||(h[2]=d("span",{class:"section-label"},"Quick Actions",-1)),d("div",Jp,[(y(!0),_(ie,null,ye(a.value,v=>(y(),_("button",{key:v.action,class:"action-btn",onClick:x=>i("add-action",v.action,v.label)},R(v.label),9,Zp))),128))])])):Y("",!0),e.selectedElement?(y(),_("div",Qp,[h[3]||(h[3]=d("span",{class:"section-label"},"Add Task",-1)),Ve(d("textarea",{"onUpdate:modelValue":h[0]||(h[0]=v=>o.value=v),class:"note-input",rows:"3",placeholder:"Describe what you want to change...",onKeydown:jt(De(f,["ctrl"]),["enter"])},null,40,eh),[[He,o.value]]),d("button",{class:"submit-btn",disabled:!o.value.trim(),onClick:f}," Add Task ",8,th)])):Y("",!0),s.value.length?(y(),_("div",nh,[h[4]||(h[4]=d("span",{class:"section-label"},"Notes on this element",-1)),(y(!0),_(ie,null,ye(s.value,v=>(y(),_("div",{key:v.id,class:"pin-item",onClick:x=>i("select-pin",v.id)},[d("span",{class:te(["pin-badge",{action:v.action}])},R(v.number),3),d("div",lh,[v.action?(y(),_("span",oh,R(v.action),1)):Y("",!0),v.note?(y(),_("span",sh,R(v.note),1)):Y("",!0),!v.note&&!v.action?(y(),_("span",rh,"No note yet")):Y("",!0)]),d("button",{class:"pin-delete",onClick:De(x=>i("remove-pin",v.id),["stop"])},"×",8,ah)],8,ih))),128))])):Y("",!0),d("div",uh,[d("span",ch,"All Pins ("+R(e.pins.length)+")",1),e.pins.length===0?(y(),_("div",dh," Press P then click on the page to add pins ")):Y("",!0),(y(!0),_(ie,null,ye(e.pins,v=>(y(),_("div",{key:v.id,class:te(["pin-item",{selected:v.id===e.selectedPinId}]),onClick:x=>i("select-pin",v.id)},[d("span",{class:te(["pin-badge",{action:v.action}])},R(v.number),3),d("div",ph,[d("code",hh,R(v.file)+":"+R(v.line),1),v.action?(y(),_("span",gh,R(v.action),1)):Y("",!0),v.note?(y(),_("span",vh,R(v.note),1)):Y("",!0)]),d("button",{class:"pin-delete",onClick:De(x=>i("remove-pin",v.id),["stop"])},"×",8,mh)],10,fh))),128))]),e.tasks.length>0?(y(),_("div",yh,[d("span",bh,"Tasks ("+R(e.tasks.length)+")",1),(y(!0),_(ie,null,ye(e.tasks,v=>(y(),_("div",{key:v.id,class:te(["task-item",v.status])},[d("div",wh,[d("span",{class:te(["task-status-badge",v.status])},R(v.status),3),d("span",_h,R(v.description),1)]),d("code",xh,R(v.file),1),v.feedback?(y(),_("div",kh,"Feedback: "+R(v.feedback),1)):Y("",!0),d("div",Ch,[v.status==="review"?(y(),_(ie,{key:0},[d("button",{class:"task-accept",onClick:x=>i("accept-task",v.id)},"Accept",8,Ah),d("input",{value:l.value[v.id]||"",onInput:x=>l.value[v.id]=x.target.value,class:"deny-input",placeholder:"Reason...",onClick:h[1]||(h[1]=De(()=>{},["stop"]))},null,40,Sh),d("button",{class:"task-deny",onClick:x=>{i("deny-task",v.id,l.value[v.id]||""),delete l.value[v.id]}},"Deny",8,$h)],64)):Y("",!0),d("button",{class:"task-cancel",onClick:x=>i("cancel-task",v.id)},"×",8,Th)])],2))),128))])):Y("",!0)]))}}),Fh=pt(Eh,[["__scopeId","data-v-66881614"]]),Ih={class:"prompt-header"},Oh={class:"prompt-text-preview"},Ph=["onClick"],Rh={class:"hl-header"},Mh={class:"hl-badge"},Lh={class:"hl-file"},Dh=["onClick"],Nh={class:"hl-text"},Vh={key:0,class:"hl-prompt"},Bh=["value","onInput"],Hh=nt({__name:"TextHighlightOverlay",props:{highlights:{},selectedId:{},pending:{}},emits:["select","remove","update-prompt","submit-pending","cancel-pending"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_(ie,null,[e.pending?(y(),_("div",{key:0,class:"highlight-prompt",style:Me({left:e.pending.x+"px",top:e.pending.y+"px"})},[d("div",Ih,[d("span",Oh,'"'+R(e.pending.text.substring(0,50))+R(e.pending.text.length>50?"...":"")+'"',1)]),d("input",{class:"prompt-input",placeholder:"What should this text become?",autofocus:"",onKeydown:[i[0]||(i[0]=jt(o=>n("submit-pending",o.target.value),["enter"])),i[1]||(i[1]=jt(o=>n("cancel-pending"),["escape"]))]},null,32),i[3]||(i[3]=d("div",{class:"prompt-hint"},"Enter to submit, Escape to cancel",-1))],4)):Y("",!0),(y(!0),_(ie,null,ye(e.highlights,o=>(y(),_("div",{key:o.id,class:te(["text-highlight-card",{selected:o.id===e.selectedId}]),onClick:De(s=>n("select",o.id),["stop"])},[d("div",Rh,[d("span",Mh,"#"+R(o.number),1),d("code",Lh,R(o.file)+":"+R(o.line),1),d("button",{class:"hl-delete",onClick:De(s=>n("remove",o.id),["stop"])},"×",8,Dh)]),d("div",Nh,'"'+R(o.selectedText)+'"',1),o.prompt?(y(),_("div",Vh,"→ "+R(o.prompt),1)):Y("",!0),o.id===e.selectedId?(y(),_("input",{key:1,class:"hl-prompt-edit",value:o.prompt,placeholder:"What should this become?",onInput:s=>n("update-prompt",o.id,s.target.value),onClick:i[2]||(i[2]=De(()=>{},["stop"]))},null,40,Bh)):Y("",!0)],10,Ph))),128))],64))}}),jh=pt(Hh,[["__scopeId","data-v-b4a28a2c"]]),Uh={class:"layout-label"},Yh=["onPointerdown"],Kh=["onPointerdown"],Wh=["onClick"],zh=["onClick"],Gh=["onClick"],Xh=["onClick"],qh=nt({__name:"LayoutOverlay",props:{containers:{}},emits:["grid-line-drag","add-track","add-child"],setup(e,{emit:t}){const n=t;function l(u){var c,a;if(u.display==="grid"){const f=((c=u.columns)==null?void 0:c.length)||"?",g=((a=u.rows)==null?void 0:a.length)||"?";return`grid ${f}×${g}`}return u.direction==="row"?"flex →":u.direction==="row-reverse"?"flex ←":u.direction==="column"?"flex ↓":u.direction==="column-reverse"?"flex ↑":"flex"}function i(u){if(!u.columns||u.columns.length<=1)return[];const c=[];let a=0;for(let f=0;f<u.columns.length-1;f++)a+=u.columns[f],u.columnGap&&(a+=u.columnGap/2),c.push({x:a,height:u.height}),u.columnGap&&(a+=u.columnGap/2);return c}function o(u){if(!u.rows||u.rows.length<=1)return[];const c=[];let a=0;for(let f=0;f<u.rows.length-1;f++)a+=u.rows[f],u.rowGap&&(a+=u.rowGap/2),c.push({y:a,width:u.width}),u.rowGap&&(a+=u.rowGap/2);return c}function s(u){return u.width>60&&u.height>60}function r(u){return u.display==="grid"||u.direction==="row"||u.direction==="row-reverse"}return(u,c)=>(y(!0),_(ie,null,ye(e.containers,(a,f)=>(y(),_(ie,{key:f},[d("div",{class:te(["layout-outline",a.display]),style:Me({left:a.x+"px",top:a.y+"px",width:a.width+"px",height:a.height+"px"})},[d("span",Uh,R(l(a)),1)],6),(y(!0),_(ie,null,ye(i(a),(g,h)=>(y(),_("div",{key:"col-"+f+"-"+h,class:"grid-line col",style:Me({left:a.x+g.x+"px",top:a.y+"px",height:g.height+"px"}),onPointerdown:De(v=>n("grid-line-drag",a,"col",h,v),["stop","prevent"])},null,44,Yh))),128)),(y(!0),_(ie,null,ye(o(a),(g,h)=>(y(),_("div",{key:"row-"+f+"-"+h,class:"grid-line row",style:Me({left:a.x+"px",top:a.y+g.y+"px",width:g.width+"px"}),onPointerdown:De(v=>n("grid-line-drag",a,"row",h,v),["stop","prevent"])},null,44,Kh))),128)),s(a)?(y(),_(ie,{key:0},[a.display==="grid"?(y(),_(ie,{key:0},[d("button",{class:"add-track-btn col",style:Me({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add column",onClick:De(g=>n("add-track",a,"col"),["stop"])},"+col",12,Wh),d("button",{class:"add-track-btn row",style:Me({left:a.x+a.width/2-16+"px",top:a.y+a.height+4+"px"}),title:"Add row",onClick:De(g=>n("add-track",a,"row"),["stop"])},"+row",12,zh)],64)):(y(),_(ie,{key:1},[r(a)?(y(),_("button",{key:0,class:"add-child-btn",style:Me({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add item",onClick:De(g=>n("add-child",a),["stop"])},"+",12,Gh)):(y(),_("button",{key:1,class:"add-child-btn",style:Me({left:a.x+a.width/2-11+"px",top:a.y+a.height+4+"px"}),title:"Add item",onClick:De(g=>n("add-child",a),["stop"])},"+",12,Xh))],64))],64)):Y("",!0)],64))),128))}}),Jh=pt(qh,[["__scopeId","data-v-ed4fb8a3"]]),ss="annotask-theme-preview",It=q(new Map);function Zh(){return It.value.size===0?"":`:root {
|
|
17
|
+
**/let Ll;const Bo=typeof window<"u"&&window.trustedTypes;if(Bo)try{Ll=Bo.createPolicy("vue",{createHTML:e=>e})}catch{}const Rr=Ll?e=>Ll.createHTML(e):e=>e,Mc="http://www.w3.org/2000/svg",Lc="http://www.w3.org/1998/Math/MathML",Bt=typeof document<"u"?document:null,Ho=Bt&&Bt.createElement("template"),Dc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const i=t==="svg"?Bt.createElementNS(Mc,e):t==="mathml"?Bt.createElementNS(Lc,e):n?Bt.createElement(e,{is:n}):Bt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>Bt.createTextNode(e),createComment:e=>Bt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Ho.innerHTML=Rr(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ho.content;if(l==="svg"||l==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Nc=Symbol("_vtc");function Vc(e,t,n){const l=e[Nc];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const jo=Symbol("_vod"),Bc=Symbol("_vsh"),Hc=Symbol(""),jc=/(?:^|;)\s*display\s*:/;function Uc(e,t,n){const l=e.style,i=Be(n);let o=!1;if(n&&!i){if(t)if(Be(t))for(const s of t.split(";")){const r=s.slice(0,s.indexOf(":")).trim();n[r]==null&&Ei(l,r,"")}else for(const s in t)n[s]==null&&Ei(l,s,"");for(const s in n)s==="display"&&(o=!0),Ei(l,s,n[s])}else if(i){if(t!==n){const s=l[Hc];s&&(n+=";"+s),l.cssText=n,o=jc.test(n)}}else t&&e.removeAttribute("style");jo in e&&(e[jo]=o?l.display:"",e[Bc]&&(l.display="none"))}const Uo=/\s*!important$/;function Ei(e,t,n){if(de(n))n.forEach(l=>Ei(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Yc(e,t);Uo.test(n)?e.setProperty(on(l),n.replace(Uo,""),"important"):e[l]=n}}const Yo=["Webkit","Moz","ms"],gl={};function Yc(e,t){const n=gl[t];if(n)return n;let l=At(t);if(l!=="filter"&&l in e)return gl[t]=l;l=Is(l);for(let i=0;i<Yo.length;i++){const o=Yo[i]+l;if(o in e)return gl[t]=o}return t}const Ko="http://www.w3.org/1999/xlink";function Wo(e,t,n,l,i,o=Ua(t)){l&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ko,t.slice(6,t.length)):e.setAttributeNS(Ko,t,n):n==null||o&&!Ps(n)?e.removeAttribute(t):e.setAttribute(t,o?"":kt(n)?String(n):n)}function zo(e,t,n,l,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Rr(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(r!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=Ps(n):n==null&&r==="string"?(n="",s=!0):r==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(i||t)}function gn(e,t,n,l){e.addEventListener(t,n,l)}function Kc(e,t,n,l){e.removeEventListener(t,n,l)}const Go=Symbol("_vei");function Wc(e,t,n,l,i=null){const o=e[Go]||(e[Go]={}),s=o[t];if(l&&s)s.value=l;else{const[r,u]=zc(t);if(l){const c=o[t]=qc(l,i);gn(e,r,c,u)}else s&&(Kc(e,r,s,u),o[t]=void 0)}}const Xo=/(?:Once|Passive|Capture)$/;function zc(e){let t;if(Xo.test(e)){t={};let l;for(;l=e.match(Xo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):on(e.slice(2)),t]}let vl=0;const Gc=Promise.resolve(),Xc=()=>vl||(Gc.then(()=>vl=0),vl=Date.now());function qc(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;Nt(Jc(l,n.value),t,5,[l])};return n.value=e,n.attached=Xc(),n}function Jc(e,t){if(de(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const qo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zc=(e,t,n,l,i,o)=>{const s=i==="svg";t==="class"?Vc(e,l,s):t==="style"?Uc(e,n,l):Ki(t)?Wi(t)||Wc(e,t,n,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qc(e,t,l,s))?(zo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Wo(e,t,l,s,o,t!=="value")):e._isVueCE&&(ed(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Be(l)))?zo(e,At(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Wo(e,t,l,s))};function Qc(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&qo(t)&&ge(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"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return qo(t)&&Be(n)?!1:t in e}function ed(e,t){const n=e._def.props;if(!n)return!1;const l=At(t);return Array.isArray(n)?n.some(i=>At(i)===l):Object.keys(n).some(i=>At(i)===l)}const Di=e=>{const t=e.props["onUpdate:modelValue"]||!1;return de(t)?n=>Ci(t,n):t};function td(e){e.target.composing=!0}function Jo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rn=Symbol("_assign");function Zo(e,t,n){return t&&(e=e.trim()),n&&(e=ql(e)),e}const He={created(e,{modifiers:{lazy:t,trim:n,number:l}},i){e[Rn]=Di(i);const o=l||i.props&&i.props.type==="number";gn(e,t?"change":"input",s=>{s.target.composing||e[Rn](Zo(e.value,n,o))}),(n||o)&&gn(e,"change",()=>{e.value=Zo(e.value,n,o)}),t||(gn(e,"compositionstart",td),gn(e,"compositionend",Jo),gn(e,"change",Jo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:i,number:o}},s){if(e[Rn]=Di(s),e.composing)return;const r=(o||e.type==="number")&&!/^0\d/.test(e.value)?ql(e.value):e.value,u=t??"";if(r===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(l&&t===n||i&&e.value.trim()===u)||(e.value=u)}},nd={deep:!0,created(e,t,n){e[Rn]=Di(n),gn(e,"change",()=>{const l=e._modelValue,i=id(e),o=e.checked,s=e[Rn];if(de(l)){const r=Rs(l,i),u=r!==-1;if(o&&!u)s(l.concat(i));else if(!o&&u){const c=[...l];c.splice(r,1),s(c)}}else if(zi(l)){const r=new Set(l);o?r.add(i):r.delete(i),s(r)}else s(Mr(e,o))})},mounted:Qo,beforeUpdate(e,t,n){e[Rn]=Di(n),Qo(e,t,n)}};function Qo(e,{value:t,oldValue:n},l){e._modelValue=t;let i;if(de(t))i=Rs(t,l.props.value)>-1;else if(zi(t))i=t.has(l.props.value);else{if(t===n)return;i=pi(t,Mr(e,!0))}e.checked!==i&&(e.checked=i)}function id(e){return"_value"in e?e._value:e.value}function Mr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ld=["ctrl","shift","alt","meta"],od={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)=>ld.some(n=>e[`${n}Key`]&&!t.includes(n))},De=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((i,...o)=>{for(let s=0;s<t.length;s++){const r=od[t[s]];if(r&&r(i,t))return}return e(i,...o)}))},sd={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(i=>{if(!("key"in i))return;const o=on(i.key);if(t.some(s=>s===o||sd[s]===o))return e(i)}))},rd=Ze({patchProp:Zc},Dc);let es;function ad(){return es||(es=mc(rd))}const ud=((...e)=>{const t=ad().createApp(...e),{mount:n}=t;return t.mount=l=>{const i=dd(l);if(!i)return;const o=t._component;!ge(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,cd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t});function cd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function dd(e){return Be(e)?document.querySelector(e):e}const fd={class:"layout-controls"},pd={class:"control-row"},hd={class:"button-group"},gd=["onClick"],vd={class:"control-row"},md={class:"button-group"},yd={class:"control-row"},bd={class:"button-group"},wd=["title","onClick"],_d={class:"control-row"},xd={class:"button-group"},kd=["title","onClick"],Cd={class:"control-row"},Ad={class:"num-input-group"},Sd=["value"],$d={class:"num-value"},Td=nt({__name:"LayoutControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t,i=ue(()=>n.computedStyles.display||"block"),o=ue(()=>n.computedStyles["flex-direction"]||"row"),s=ue(()=>n.computedStyles["align-items"]||"stretch"),r=ue(()=>n.computedStyles["justify-content"]||"flex-start"),u=ue(()=>n.computedStyles.gap||"0px"),c=["block","flex","grid","inline-flex","inline","none"],a=[{value:"flex-start",icon:"⬆",label:"Start"},{value:"center",icon:"⬌",label:"Center"},{value:"flex-end",icon:"⬇",label:"End"},{value:"stretch",icon:"⇕",label:"Stretch"}],f=[{value:"flex-start",icon:"◧",label:"Start"},{value:"center",icon:"◫",label:"Center"},{value:"flex-end",icon:"◨",label:"End"},{value:"space-between",icon:"⟺",label:"Between"},{value:"space-around",icon:"⟷",label:"Around"}],g=ue(()=>i.value==="flex"||i.value==="inline-flex");function h(v){return parseFloat(v)||0}return(v,x)=>(y(),_("div",fd,[d("div",pd,[x[5]||(x[5]=d("label",{class:"control-label"},"Display",-1)),d("div",hd,[(y(),_(ie,null,ye(c,C=>d("button",{key:C,class:te(["seg-btn",{active:i.value===C}]),onClick:L=>l("change","display",C)},R(C),11,gd)),64))])]),g.value?(y(),_(ie,{key:0},[d("div",vd,[x[6]||(x[6]=d("label",{class:"control-label"},"Direction",-1)),d("div",md,[d("button",{class:te(["seg-btn icon-btn",{active:o.value==="row"}]),onClick:x[0]||(x[0]=C=>l("change","flex-direction","row")),title:"Row"},"→",2),d("button",{class:te(["seg-btn icon-btn",{active:o.value==="row-reverse"}]),onClick:x[1]||(x[1]=C=>l("change","flex-direction","row-reverse")),title:"Row Reverse"},"←",2),d("button",{class:te(["seg-btn icon-btn",{active:o.value==="column"}]),onClick:x[2]||(x[2]=C=>l("change","flex-direction","column")),title:"Column"},"↓",2),d("button",{class:te(["seg-btn icon-btn",{active:o.value==="column-reverse"}]),onClick:x[3]||(x[3]=C=>l("change","flex-direction","column-reverse")),title:"Column Reverse"},"↑",2)])]),d("div",yd,[x[7]||(x[7]=d("label",{class:"control-label"},"Align",-1)),d("div",bd,[(y(),_(ie,null,ye(a,C=>d("button",{key:C.value,class:te(["seg-btn",{active:s.value===C.value}]),title:C.label,onClick:L=>l("change","align-items",C.value)},R(C.icon),11,wd)),64))])]),d("div",_d,[x[8]||(x[8]=d("label",{class:"control-label"},"Justify",-1)),d("div",xd,[(y(),_(ie,null,ye(f,C=>d("button",{key:C.value,class:te(["seg-btn",{active:r.value===C.value}]),title:C.label,onClick:L=>l("change","justify-content",C.value)},R(C.icon),11,kd)),64))])]),d("div",Cd,[x[9]||(x[9]=d("label",{class:"control-label"},"Gap",-1)),d("div",Ad,[d("input",{type:"range",min:"0",max:"64",step:"1",value:h(u.value),class:"range-input",onInput:x[4]||(x[4]=C=>l("change","gap",C.target.value+"px"))},null,40,Sd),d("span",$d,R(h(u.value))+"px",1)])])],64)):Y("",!0)]))}}),ht=(e,t)=>{const n=e.__vccOpts||e;for(const[l,i]of t)n[l]=i;return n},Ed=ht(Td,[["__scopeId","data-v-548da941"]]),Fd={class:"spacing-controls"},Id={class:"box-model"},Od={class:"margin-box"},Pd=["value"],Rd=["value"],Md=["value"],Ld=["value"],Dd={class:"padding-box"},Nd=["value"],Vd=["value"],Bd=["value"],Hd=["value"],jd={class:"content-box"},Ud=nt({__name:"SpacingControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(u){return parseFloat(u)||0}function o(u){const c=u.split(" ").map(a=>parseFloat(a)||0);return c.length===1?{top:c[0],right:c[0],bottom:c[0],left:c[0]}:c.length===2?{top:c[0],right:c[1],bottom:c[0],left:c[1]}:c.length===3?{top:c[0],right:c[1],bottom:c[2],left:c[1]}:{top:c[0],right:c[1],bottom:c[2],left:c[3]}}const s=ue(()=>o(n.computedStyles.padding||"0")),r=ue(()=>o(n.computedStyles.margin||"0"));return(u,c)=>(y(),_("div",Fd,[d("div",Id,[d("div",Od,[c[9]||(c[9]=d("span",{class:"box-label margin-label"},"margin",-1)),d("input",{class:"side-input top",value:r.value.top,onChange:c[0]||(c[0]=a=>l("change","margin-top",a.target.value+"px"))},null,40,Pd),d("input",{class:"side-input right",value:r.value.right,onChange:c[1]||(c[1]=a=>l("change","margin-right",a.target.value+"px"))},null,40,Rd),d("input",{class:"side-input bottom",value:r.value.bottom,onChange:c[2]||(c[2]=a=>l("change","margin-bottom",a.target.value+"px"))},null,40,Md),d("input",{class:"side-input left",value:r.value.left,onChange:c[3]||(c[3]=a=>l("change","margin-left",a.target.value+"px"))},null,40,Ld),d("div",Dd,[c[8]||(c[8]=d("span",{class:"box-label padding-label"},"padding",-1)),d("input",{class:"side-input top",value:s.value.top,onChange:c[4]||(c[4]=a=>l("change","padding-top",a.target.value+"px"))},null,40,Nd),d("input",{class:"side-input right",value:s.value.right,onChange:c[5]||(c[5]=a=>l("change","padding-right",a.target.value+"px"))},null,40,Vd),d("input",{class:"side-input bottom",value:s.value.bottom,onChange:c[6]||(c[6]=a=>l("change","padding-bottom",a.target.value+"px"))},null,40,Bd),d("input",{class:"side-input left",value:s.value.left,onChange:c[7]||(c[7]=a=>l("change","padding-left",a.target.value+"px"))},null,40,Hd),d("div",jd,R(i(n.computedStyles.width||"0").toFixed(0))+" × "+R(i(n.computedStyles.height||"0").toFixed(0)),1)])])])]))}}),Yd=ht(Ud,[["__scopeId","data-v-e06fb04c"]]),Kd={class:"size-controls"},Wd={class:"size-row"},zd={class:"size-field"},Gd={class:"size-input-group"},Xd=["value"],qd={class:"size-field"},Jd={class:"size-input-group"},Zd=["value"],Qd={class:"control-row"},ef={class:"button-group"},tf=["onClick"],nf=nt({__name:"SizeControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(c){return parseFloat(c)||0}const o=ue(()=>n.computedStyles.width||"auto"),s=ue(()=>n.computedStyles.height||"auto"),r=ue(()=>n.computedStyles.overflow||"visible"),u=["visible","hidden","scroll","auto"];return(c,a)=>(y(),_("div",Kd,[d("div",Wd,[d("div",zd,[a[3]||(a[3]=d("label",{class:"control-label"},"Width",-1)),d("div",Gd,[d("input",{class:"size-input",value:i(o.value),type:"number",onChange:a[0]||(a[0]=f=>l("change","width",f.target.value+"px"))},null,40,Xd),a[2]||(a[2]=d("span",{class:"size-unit"},"px",-1))])]),d("div",qd,[a[5]||(a[5]=d("label",{class:"control-label"},"Height",-1)),d("div",Jd,[d("input",{class:"size-input",value:i(s.value),type:"number",onChange:a[1]||(a[1]=f=>l("change","height",f.target.value+"px"))},null,40,Zd),a[4]||(a[4]=d("span",{class:"size-unit"},"px",-1))])])]),d("div",Qd,[a[6]||(a[6]=d("label",{class:"control-label"},"Overflow",-1)),d("div",ef,[(y(),_(ie,null,ye(u,f=>d("button",{key:f,class:te(["seg-btn",{active:r.value===f}]),onClick:g=>l("change","overflow",f)},R(f),11,tf)),64))])])]))}}),lf=ht(nf,[["__scopeId","data-v-c3ca7e31"]]),of=[{name:"Slate",shades:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"}},{name:"Gray",shades:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"}},{name:"Zinc",shades:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"}},{name:"Neutral",shades:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"}},{name:"Stone",shades:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},{name:"Red",shades:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"}},{name:"Orange",shades:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"}},{name:"Amber",shades:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"}},{name:"Yellow",shades:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"}},{name:"Lime",shades:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"}},{name:"Green",shades:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"}},{name:"Emerald",shades:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"}},{name:"Teal",shades:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"}},{name:"Cyan",shades:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"}},{name:"Sky",shades:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"}},{name:"Blue",shades:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"}},{name:"Indigo",shades:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4e"}},{name:"Violet",shades:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"}},{name:"Purple",shades:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"}},{name:"Fuchsia",shades:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"}},{name:"Pink",shades:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"}},{name:"Rose",shades:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}}],sf=["50","100","200","300","400","500","600","700","800","900","950"],ml=q([]),rf=20;function Dl(e){const t=e.match(/\d+/g);if(!t||t.length<3)return"#000000";const[n,l,i]=t.map(Number);return"#"+[n,l,i].map(o=>o.toString(16).padStart(2,"0")).join("")}function af(e,t){var l;if(!e||e==="inherit"||e==="initial"||e==="unset")return null;const n=t.createElement("span");n.style.display="none",n.style.color="",t.body.appendChild(n);try{n.style.color=e;const i=(l=t.defaultView)==null?void 0:l.getComputedStyle(n).color;return!i||i===""?null:Dl(i)}finally{n.remove()}}function uf(e){var o;const t=e.documentElement,n=new Set;for(const s of Array.from(e.styleSheets))try{for(const r of Array.from(s.cssRules))if(r instanceof CSSStyleRule&&((o=r.selectorText)!=null&&o.includes(":root")))for(let u=0;u<r.style.length;u++){const c=r.style[u];c.startsWith("--")&&n.add(c)}}catch{}const l=getComputedStyle(t),i=[];for(const s of n){const r=l.getPropertyValue(s).trim(),u=af(r,e);u&&i.push({label:s,value:u,source:"css-var"})}return i}function cf(e){const t=q([]);let n=!1;const l=ue(()=>of.map(u=>({name:u.name,swatches:sf.map(c=>({label:`${u.name.toLowerCase()}-${c}`,value:u.shades[c],source:"tailwind"}))}))),i=ue(()=>t.value.length===0?null:{name:"App Variables",swatches:t.value});function o(){const u=e.value;u&&(t.value=uf(u),n=!0)}function s(){n||o()}function r(u){const c=u.toLowerCase();ml.value=[{label:c,value:c,source:"recent"},...ml.value.filter(a=>a.value!==c)].slice(0,rf)}return{tailwindCategories:l,cssVarCategory:i,recentColors:ml,ensureScanned:s,refreshCssVars:o,addRecentColor:r}}const df={class:"picker-trigger"},ff=["value"],pf={key:0,class:"color-match"},hf={class:"palette-tabs"},gf={key:0,class:"palette-body"},vf={class:"family-label"},mf={class:"swatch-row"},yf=["title","onClick"],bf={key:1,class:"palette-body"},wf={key:0,class:"var-grid"},_f=["onClick"],xf={class:"var-name"},kf={class:"var-hex"},Cf={key:1,class:"empty-msg"},Af={key:2,class:"palette-body"},Sf={key:0,class:"swatch-grid"},$f=["title","onClick"],Tf={key:1,class:"empty-msg"},Ef=nt({__name:"ColorPalettePicker",props:{modelValue:{},iframeDoc:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,{tailwindCategories:i,cssVarCategory:o,recentColors:s,ensureScanned:r,addRecentColor:u}=cf(bu(n,"iframeDoc")),c=q(!1),a=q("tailwind"),f=q(null),g=q(null);function h(){c.value=!c.value,c.value&&r()}function v(L){l("update:modelValue",L),u(L),c.value=!1}function x(L){var k,A;if(!c.value)return;const w=L.target;(k=f.value)!=null&&k.contains(w)||(A=g.value)!=null&&A.contains(w)||(c.value=!1)}const C=ue(()=>{var k,A;const L=(k=n.modelValue)==null?void 0:k.toLowerCase();if(!L)return null;for(const F of i.value){const D=F.swatches.find(U=>U.value.toLowerCase()===L);if(D)return D.label}const w=(A=o.value)==null?void 0:A.swatches.find(F=>F.value.toLowerCase()===L);return w?w.label:null});return gi(()=>{document.addEventListener("mousedown",x)}),Nn(()=>{document.removeEventListener("mousedown",x)}),(L,w)=>(y(),_("div",{class:"color-palette-picker",ref_key:"triggerRef",ref:g},[d("div",df,[d("input",{type:"color",value:e.modelValue,class:"color-swatch",onInput:w[0]||(w[0]=k=>L.$emit("update:modelValue",k.target.value))},null,40,ff),d("button",{class:te(["palette-btn",{active:c.value}]),onClick:h,title:"Color palette"},[...w[4]||(w[4]=[Fr('<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor" data-v-b0ade670><rect x="0" y="0" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="9" y="0" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="0" y="9" width="7" height="7" rx="1.5" data-v-b0ade670></rect><rect x="9" y="9" width="7" height="7" rx="1.5" data-v-b0ade670></rect></svg>',1)])],2),C.value?(y(),_("span",pf,R(C.value),1)):Y("",!0)]),c.value?(y(),_("div",{key:0,class:"palette-popover",ref_key:"popoverRef",ref:f},[d("div",hf,[d("button",{class:te(["ptab",{active:a.value==="tailwind"}]),onClick:w[1]||(w[1]=k=>a.value="tailwind")},"Tailwind",2),d("button",{class:te(["ptab",{active:a.value==="css-var"}]),onClick:w[2]||(w[2]=k=>a.value="css-var")},"App Vars",2),d("button",{class:te(["ptab",{active:a.value==="recent"}]),onClick:w[3]||(w[3]=k=>a.value="recent")},"Recent",2)]),a.value==="tailwind"?(y(),_("div",gf,[(y(!0),_(ie,null,ye(ee(i),k=>(y(),_("div",{key:k.name,class:"color-family"},[d("span",vf,R(k.name),1),d("div",mf,[(y(!0),_(ie,null,ye(k.swatches,A=>{var F;return y(),_("button",{key:A.value,class:te(["swatch",{selected:A.value.toLowerCase()===((F=e.modelValue)==null?void 0:F.toLowerCase())}]),style:Me({background:A.value}),title:A.label,onClick:D=>v(A.value)},null,14,yf)}),128))])]))),128))])):Y("",!0),a.value==="css-var"?(y(),_("div",bf,[ee(o)?(y(),_("div",wf,[(y(!0),_(ie,null,ye(ee(o).swatches,k=>{var A;return y(),_("button",{key:k.label,class:te(["var-swatch",{selected:k.value.toLowerCase()===((A=e.modelValue)==null?void 0:A.toLowerCase())}]),onClick:F=>v(k.value)},[d("span",{class:"var-color",style:Me({background:k.value})},null,4),d("span",xf,R(k.label),1),d("span",kf,R(k.value),1)],10,_f)}),128))])):(y(),_("p",Cf,"No color variables detected"))])):Y("",!0),a.value==="recent"?(y(),_("div",Af,[ee(s).length?(y(),_("div",Sf,[(y(!0),_(ie,null,ye(ee(s),k=>{var A;return y(),_("button",{key:k.value,class:te(["swatch large",{selected:k.value.toLowerCase()===((A=e.modelValue)==null?void 0:A.toLowerCase())}]),style:Me({background:k.value}),title:k.value,onClick:F=>v(k.value)},null,14,$f)}),128))])):(y(),_("p",Tf,"No colors used yet"))])):Y("",!0)],512)):Y("",!0)],512))}}),Nl=ht(Ef,[["__scopeId","data-v-b0ade670"]]),Ff={class:"appearance-controls"},If={class:"control-row"},Of={class:"color-input-group"},Pf={class:"color-value"},Rf={class:"control-row"},Mf={class:"color-input-group"},Lf={class:"color-value"},Df={class:"control-row"},Nf={class:"num-input-group"},Vf=["value"],Bf={class:"num-value"},Hf={class:"control-row"},jf={class:"button-group"},Uf=["onClick"],Yf={class:"control-row"},Kf={class:"num-input-group"},Wf=["value"],zf={class:"num-value"},Gf={class:"control-row"},Xf={class:"num-input-group"},qf=["value"],Jf={class:"num-value"},Zf=nt({__name:"AppearanceControls",props:{computedStyles:{},iframeDoc:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(g){return parseFloat(g)||0}const o=ue(()=>n.computedStyles["background-color"]||"rgba(0,0,0,0)"),s=ue(()=>n.computedStyles.color||"#000"),r=ue(()=>i(n.computedStyles["font-size"]||"16")),u=ue(()=>n.computedStyles["font-weight"]||"400"),c=ue(()=>i(n.computedStyles["border-radius"]||"0")),a=ue(()=>i(n.computedStyles.opacity||"1")),f=["100","300","400","500","600","700","900"];return(g,h)=>(y(),_("div",Ff,[d("div",If,[h[5]||(h[5]=d("label",{class:"control-label"},"Background",-1)),d("div",Of,[tt(Nl,{modelValue:ee(Dl)(o.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[0]||(h[0]=v=>l("change","background-color",v))},null,8,["modelValue","iframeDoc"]),d("span",Pf,R(o.value),1)])]),d("div",Rf,[h[6]||(h[6]=d("label",{class:"control-label"},"Text Color",-1)),d("div",Mf,[tt(Nl,{modelValue:ee(Dl)(s.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[1]||(h[1]=v=>l("change","color",v))},null,8,["modelValue","iframeDoc"]),d("span",Lf,R(s.value),1)])]),d("div",Df,[h[7]||(h[7]=d("label",{class:"control-label"},"Font Size",-1)),d("div",Nf,[d("input",{type:"range",min:"8",max:"72",step:"1",value:r.value,class:"range-input",onInput:h[2]||(h[2]=v=>l("change","font-size",v.target.value+"px"))},null,40,Vf),d("span",Bf,R(r.value)+"px",1)])]),d("div",Hf,[h[8]||(h[8]=d("label",{class:"control-label"},"Font Weight",-1)),d("div",jf,[(y(),_(ie,null,ye(f,v=>d("button",{key:v,class:te(["seg-btn",{active:u.value===v}]),onClick:x=>l("change","font-weight",v)},R(v),11,Uf)),64))])]),d("div",Yf,[h[9]||(h[9]=d("label",{class:"control-label"},"Border Radius",-1)),d("div",Kf,[d("input",{type:"range",min:"0",max:"50",step:"1",value:c.value,class:"range-input",onInput:h[3]||(h[3]=v=>l("change","border-radius",v.target.value+"px"))},null,40,Wf),d("span",zf,R(c.value)+"px",1)])]),d("div",Gf,[h[10]||(h[10]=d("label",{class:"control-label"},"Opacity",-1)),d("div",Xf,[d("input",{type:"range",min:"0",max:"1",step:"0.05",value:a.value,class:"range-input",onInput:h[4]||(h[4]=v=>l("change","opacity",v.target.value))},null,40,qf),d("span",Jf,R((a.value*100).toFixed(0))+"%",1)])])]))}}),Qf=ht(Zf,[["__scopeId","data-v-47449e0a"]]);let Rt=null,Vl=0,yl=null;const Wn=new Map;function ep(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/__annotask/ws`}function Lr(){try{Rt=new WebSocket(ep()),Rt.onopen=()=>{Vl=0,console.log("[Annotask] WebSocket connected")},Rt.onmessage=e=>{try{const t=JSON.parse(e.data);if(t.event){const n=Wn.get(t.event);if(n)for(const l of n)l(t.data)}}catch{}},Rt.onclose=()=>{Rt=null,ts()},Rt.onerror=()=>{}}catch{ts()}}function ts(){if(yl)return;Vl++;const e=Math.min(1e3*Math.pow(2,Vl-1),3e4);yl=setTimeout(()=>{yl=null,Lr()},e)}function Dr(e,t){return Wn.has(e)||Wn.set(e,new Set),Wn.get(e).add(t),()=>{var n;(n=Wn.get(e))==null||n.delete(t)}}function tp(e,t){(Rt==null?void 0:Rt.readyState)===WebSocket.OPEN&&Rt.send(JSON.stringify({event:e,data:t,timestamp:Date.now()}))}Lr();const Bl=q(null),Hl=q(!1),Nr=q(!0);let ns=!1;async function bl(){try{const t=await(await fetch("/__annotask/api/design-spec")).json();Bl.value=t,Hl.value=!!t.initialized}catch{Bl.value=null,Hl.value=!1}finally{Nr.value=!1}}function co(){return ns||(ns=!0,bl(),Dr("designspec:updated",()=>bl())),{designSpec:Bl,isInitialized:Hl,isLoading:Nr,refetch:bl}}const qe=q([]);let Zt=0;const vt=new Map;function cn(e,t){tp(e,t)}function np(){function e(a,f,g,h,v){const x=qe.value.find(C=>C.type==="style_update"&&C.file===v.file&&C.line===(parseInt(v.line)||0)&&C.property===f&&vt.get(C.id)===a);if(x)x.after=g,x.description=`Set ${f} to ${g}`;else{Zt++;const C=`s${Zt}`;qe.value.push({id:C,type:"style_update",description:`Set ${f} to ${g}`,file:v.file,section:"style",line:parseInt(v.line)||0,component:v.component,element:"element",property:f,before:h,after:g}),vt.set(C,a)}}function t(a,f){Zt++;const g=`ci${Zt}`,h=a.position==="append"||a.position==="prepend",v={id:g,type:"component_insert",description:`Insert <${f.tag}> ${a.position} in ${a.component}`,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,insert_inside:h?{component:a.component}:void 0,insert_position:a.position,inserted:{tag:f.tag,library:f.library,props:f.defaultProps,classes:f.defaultClasses,text_content:f.defaultTextContent}};return qe.value.push(v),g}function n(a){Zt++;const f=`an${Zt}`,g={id:f,type:"annotation",description:a.intent,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,intent:a.intent,action:a.action,context:{element_tag:a.elementTag,element_classes:a.elementClasses,parent_layout:a.parentLayout,siblings_count:a.siblingsCount},pinId:a.pinId};return qe.value.push(g),f}function l(a,f,g,h){const v=parseInt(h.line)||0,x=qe.value.find(L=>L.type!=="class_update"||L.file!==h.file||L.line!==v?!1:vt.get(L.id)===a);if(x)return x.after={classes:g},x.description="Update classes",x.id;Zt++;const C=`cl${Zt}`;return qe.value.push({id:C,type:"class_update",description:"Update classes",file:h.file,section:"template",line:v,component:h.component,element:"element",before:{classes:f},after:{classes:g}}),vt.set(C,a),C}function i(){if(qe.value.length===0)return null;const a=qe.value.pop();if(a.type==="style_update"){const f=vt.get(a.id);return vt.delete(a.id),cn("report:updated",c.value),{type:"style",eid:f,property:a.property,value:a.before}}else if(a.type==="class_update"){const f=vt.get(a.id);return vt.delete(a.id),cn("report:updated",c.value),{type:"class",eid:f,classes:a.before.classes}}else if(a.type==="component_insert"){const f=vt.get(a.id);return vt.delete(a.id),cn("report:updated",c.value),{type:"insert_remove",eid:f}}return cn("report:updated",c.value),null}function o(a){qe.value=qe.value.filter(f=>f.id!==a),vt.delete(a)}function s(a,f){qe.value=qe.value.filter(g=>g.type!=="annotation"?!0:!(g.file===a&&g.line===f))}function r(){const a=[];for(const f of qe.value)if(f.type==="component_insert"){const g=vt.get(f.id);g&&a.push(g)}return qe.value=[],vt.clear(),cn("changes:cleared",{}),a}function u(a){const f=typeof a.line=="number"&&Number.isFinite(a.line)?a.line:0,g={id:a.id,type:a.type,description:a.description||"",file:a.file||"",section:a.section,line:f};switch(a.type){case"style_update":return{...g,component:a.component,element:a.element,property:a.property,before:a.before,after:a.after};case"class_update":return{...g,component:a.component,element:a.element,before:a.before,after:a.after};case"component_insert":return{...g,insert_inside:a.insert_inside,insert_position:a.insert_position,component:a.inserted};case"component_move":return{...g,element:{tag:a.element_tag,component:a.component,from_file:a.from_file,from_line:a.from_line},move_to:a.move_to};case"annotation":return{...g,component:a.component,intent:a.intent,action:a.action,context:a.context};default:return null}}const c=ue(()=>{if(qe.value.length===0)return null;const a=qe.value.filter(x=>x.type==="component_insert"||x.type==="component_move"||x.type==="annotation"?!0:x.type==="class_update"?x.before.classes!==x.after.classes:x.before!==x.after);if(a.length===0)return null;const f=a.map(u).filter(Boolean),{designSpec:g}=co(),h=g.value;return{version:"1.0",project:h!=null&&h.framework?{framework:h.framework.name||"vue",styling:h.framework.styling||[],root:""}:{framework:"vue",styling:[],root:""},changes:f}});return yt(()=>c.value,a=>{cn("report:updated",a)},{deep:!0}),{changes:qe,applyStyle:e,recordInsert:t,recordAnnotation:n,recordClassChange:l,removeChange:o,removeAnnotationsByFile:s,undo:i,clearChanges:r,report:c,broadcast:cn}}const wl=localStorage.getItem("annotask:mode"),en=q(wl&&["select","interact","pin","arrow","draw","highlight"].includes(wl)?wl:"select");function is(e){var n;const t=(n=e.target)==null?void 0:n.tagName;if(!(t==="INPUT"||t==="TEXTAREA"||t==="SELECT"))switch(e.key.toLowerCase()){case"v":en.value="select";break;case"i":en.value="interact";break;case"p":en.value="pin";break;case"a":en.value="arrow";break;case"d":en.value="draw";break;case"h":en.value="highlight";break}}yt(en,e=>localStorage.setItem("annotask:mode",e));function ip(){return gi(()=>document.addEventListener("keydown",is)),Nn(()=>document.removeEventListener("keydown",is)),{mode:en}}function lp(e){const t=q(!1),n=q([]);function l(){var c;try{return((c=e.value)==null?void 0:c.contentDocument)??null}catch{return null}}function i(c){if(!e.value)return null;const a=c.getBoundingClientRect(),f=e.value.getBoundingClientRect();return new DOMRect(f.left+a.left,f.top+a.top,a.width,a.height)}function o(){const c=l();if(!c){n.value=[];return}const a=[],f=c.querySelectorAll("*"),g=c.defaultView;if(g){for(const h of f){if(h.nodeType!==1)continue;const v=g.getComputedStyle(h),x=v.display;if(!x.includes("flex")&&!x.includes("grid"))continue;const C=i(h);if(!C||C.width<20||C.height<20)continue;const L=x.includes("grid"),w=L?"grid":"flex",k=L?"grid":v.flexDirection,A={x:C.x,y:C.y,width:C.width,height:C.height,display:w,direction:k,columnGap:parseFloat(v.columnGap)||0,rowGap:parseFloat(v.rowGap)||0,el:h};if(L){const F=v.gridTemplateColumns,D=v.gridTemplateRows;A.templateColumns=F,A.templateRows=D,F&&F!=="none"&&(A.columns=F.split(/\s+/).map(U=>parseFloat(U)||0).filter(U=>U>0)),D&&D!=="none"&&(A.rows=D.split(/\s+/).map(U=>parseFloat(U)||0).filter(U=>U>0))}a.push(A)}n.value=a}}function s(){t.value=!t.value,t.value?o():n.value=[]}function r(c,a){const f=c.el;if(!f)return null;const g=f.ownerDocument.defaultView;if(!g)return null;const h=g.getComputedStyle(f),v=a==="col"?"grid-template-columns":"grid-template-rows",x=h.getPropertyValue(v)||"",C=x,L=x&&x!=="none"?x+" 1fr":"1fr";return f.style.setProperty(v,L),o(),{el:f,property:v,before:C,after:L}}function u(c){const a=c.el;if(!a)return null;const g=a.ownerDocument.createElement("div");return g.style.minWidth="60px",g.style.minHeight="40px",g.style.border="2px dashed #a855f7",g.style.borderRadius="4px",g.style.background="rgba(168,85,247,0.05)",g.setAttribute("data-annotask-placeholder","true"),a.appendChild(g),o(),{parentEl:a,childEl:g}}return{showOverlay:t,containers:n,toggle:s,scan:o,addTrack:r,addChild:u}}const Et=q([]),xn=q([]),dn=q([]),fn=q([]),pn=q([]),Ct=q("/"),kn=q(null),jn=q(null),Un=q(null),Yn=q(null);let ot=0;function op(){function e(T){Ct.value=T}const t=ue(()=>Et.value.filter(T=>T.route===Ct.value)),n=ue(()=>dn.value.filter(T=>T.route===Ct.value)),l=ue(()=>fn.value.filter(T=>T.route===Ct.value)),i=ue(()=>pn.value.filter(T=>T.route===Ct.value));function o(T,j,X){ot++;const ce={id:`pin-${ot}`,number:ot,file:T.file,line:parseInt(T.line)||0,component:T.component,elementTag:T.elementTag,elementClasses:T.elementClasses,clickX:j,clickY:X,note:"",route:Ct.value,timestamp:Date.now()};return Et.value.push(ce),kn.value=ce.id,ce}function s(T){Et.value=Et.value.filter(j=>j.id!==T),kn.value===T&&(kn.value=null)}function r(T,j){const X=Et.value.find(ce=>ce.id===T);X&&(X.note=j)}function u(T,j){const X=Et.value.find(ce=>ce.id===T);X&&(X.action=j)}function c(T,j){return Et.value.filter(X=>X.file===T&&X.line===j)}const a=ue(()=>Et.value.find(T=>T.id===kn.value)||null);function f(T,j){ot++;const X={id:`sticky-${ot}`,number:ot,x:T-60,y:j-60,width:120,height:120,text:"",color:"yellow",route:Ct.value,timestamp:Date.now()};return xn.value.push(X),jn.value=X.id,X}function g(T){xn.value=xn.value.filter(j=>j.id!==T),jn.value===T&&(jn.value=null)}function h(T,j){const X=xn.value.find(ce=>ce.id===T);X&&Object.assign(X,j)}function v(T,j,X,ce,Te){ot++;const Pe={id:`arrow-${ot}`,number:ot,fromX:T,fromY:j,toX:X,toY:ce,label:Te||"Move here",route:Ct.value,timestamp:Date.now()};return dn.value.push(Pe),Un.value=Pe.id,Pe}function x(T){dn.value=dn.value.filter(j=>j.id!==T),Un.value===T&&(Un.value=null)}function C(T,j){const X=dn.value.find(ce=>ce.id===T);X&&Object.assign(X,j)}function L(T,j,X,ce){ot++;const Te={id:`section-${ot}`,number:ot,x:T,y:j,width:X,height:ce,prompt:"",route:Ct.value,timestamp:Date.now()};return fn.value.push(Te),Yn.value=Te.id,Te}function w(T){fn.value=fn.value.filter(j=>j.id!==T),Yn.value===T&&(Yn.value=null)}function k(T,j){const X=fn.value.find(ce=>ce.id===T);X&&Object.assign(X,j)}const A=q(null);function F(T,j){ot++;const X={id:`hl-${ot}`,number:ot,selectedText:T,prompt:"",file:j.file,line:j.line,component:j.component,elementTag:j.elementTag,route:Ct.value,timestamp:Date.now()};return pn.value.push(X),A.value=X.id,X}function D(T){pn.value=pn.value.filter(j=>j.id!==T),A.value===T&&(A.value=null)}function U(T,j){const X=pn.value.find(ce=>ce.id===T);X&&Object.assign(X,j)}function ne(){Et.value=[],xn.value=[],dn.value=[],fn.value=[],pn.value=[],kn.value=null,jn.value=null,Un.value=null,Yn.value=null}return{pins:Et,stickyNotes:xn,arrows:dn,drawnSections:fn,highlights:pn,routePins:t,routeArrows:n,routeSections:l,routeHighlights:i,activeRoute:Ct,setRoute:e,selectedPinId:kn,selectedStickyId:jn,selectedArrowId:Un,selectedSectionId:Yn,selectedHighlightId:A,selectedPin:a,addPin:o,removePin:s,updatePinNote:r,setPinAction:u,getPinsForElement:c,addStickyNote:f,removeStickyNote:g,updateStickyNote:h,addArrow:v,removeArrow:x,updateArrow:C,addDrawnSection:L,removeDrawnSection:w,updateDrawnSection:k,addHighlight:F,removeHighlight:D,updateHighlight:U,clearAll:ne}}let sp=0;const Kt=new Map,zn=new Map;let bn=null,mi="*",yi=!1,Ni=[];function Vr(e){const t=e.data;if(!(!t||t.source!=="annotask-client")){if(t.type==="bridge:ready"){mi=e.origin||"*",yi=!0;for(const n of Ni)n();Ni=[],ls("bridge:ready",t.payload);return}if(t.id&&Kt.has(t.id)){const n=Kt.get(t.id);clearTimeout(n.timer),Kt.delete(t.id),n.resolve(t.payload);return}ls(t.type,t.payload)}}function ls(e,t){const n=zn.get(e);if(n)for(const l of n)l(t)}function rp(e){bn=e,yi=!1,mi="*",window.addEventListener("message",Vr)}function ap(){window.removeEventListener("message",Vr);for(const[,e]of Kt)clearTimeout(e.timer),e.reject(new Error("bridge destroyed"));Kt.clear(),bn=null,yi=!1,Ni=[]}function up(e){for(const[,t]of Kt)clearTimeout(t.timer),t.reject(new Error("bridge reset"));Kt.clear(),bn=e,yi=!1,mi="*"}function os(e){if(yi){e();return}Ni.push(e)}function cp(e,t={}){if(!bn)return;const n={type:e,payload:t,source:"annotask-shell"};bn.postMessage(n,mi)}function Le(e,t={},n=5e3){return new Promise((l,i)=>{if(!bn){i(new Error("bridge not connected"));return}const o=`req-${++sp}`,s=setTimeout(()=>{Kt.delete(o),i(new Error(`bridge timeout: ${e}`))},n);Kt.set(o,{resolve:l,reject:i,timer:s});const r={type:e,id:o,payload:t,source:"annotask-shell"};bn.postMessage(r,mi)})}function ss(e,t){return zn.has(e)||zn.set(e,new Set),zn.get(e).add(t),()=>{var n;(n=zn.get(e))==null||n.delete(t)}}function dp(e){const t=q("/"),n=q(!1);function l(){var z;const E=(z=e.value)==null?void 0:z.contentWindow;E&&(up(E),n.value=!1,os(()=>{n.value=!0}),ss("route:changed",le=>{t.value=le.path}))}function i(){var z;const E=(z=e.value)==null?void 0:z.contentWindow;E&&rp(E)}function o(){ap()}function s(E){const z=e.value;if(!z)return null;const le=z.getBoundingClientRect();return{x:le.left+E.x,y:le.top+E.y,width:E.width,height:E.height}}function r(E,z){const le=e.value;if(!le)return null;const be=le.getBoundingClientRect();return{x:E-be.left,y:z-be.top}}async function u(E,z){const le=r(E,z);if(!le||le.x<0||le.y<0)return null;const be=e.value;if(!be)return null;const me=be.getBoundingClientRect();if(le.x>me.width||le.y>me.height)return null;try{const Ye=await Le("resolve:at-point",le,500);return Ye?(Ye.rect=s(Ye.rect)||Ye.rect,Ye):null}catch{return null}}async function c(E,z,le){try{const be=await Le("resolve:template-group",{file:E,line:z,tagName:le});return be.rects=be.rects.map(me=>s(me)||me),be}catch{return{eids:[],rects:[]}}}async function a(E){try{const z=await Le("resolve:rect",{eid:E});return z?s(z.rect)||z.rect:null}catch{return null}}async function f(E){if(E.length===0)return[];try{return(await Le("resolve:rects",{eids:[...E]})).rects.map(le=>le?s(le)||le:null)}catch{return E.map(()=>null)}}async function g(E,z){try{return(await Le("style:get-computed",{eid:E,properties:z})).styles}catch{return{}}}async function h(E,z,le){try{return(await Le("style:apply",{eid:E,property:z,value:le})).before}catch{return""}}async function v(E,z,le){try{return(await Le("style:apply-batch",{eids:[...E],property:z,value:le})).befores}catch{return E.map(()=>"")}}async function x(E,z){try{return(await Le("class:set",{eid:E,classes:z})).before}catch{return""}}async function C(E,z){try{return(await Le("class:set-batch",{eids:[...E],classes:z})).befores}catch{return E.map(()=>"")}}async function L(E,z,le){try{await Le("style:undo",{eid:E,property:z,value:le})}catch{}}async function w(E,z){try{await Le("class:undo",{eid:E,classes:z})}catch{}}async function k(E){try{return await Le("classify:element",{eid:E})}catch{return null}}async function A(){try{const E=await Le("layout:scan");for(const z of E.containers)z.rect=s(z.rect)||z.rect;return E.containers}catch{return[]}}async function F(E,z){try{return await Le("layout:add-track",{eid:E,axis:z})}catch{return null}}async function D(E){try{return await Le("layout:add-child",{eid:E})}catch{return null}}async function U(){try{return(await Le("check:source-mapping")).hasMapping}catch{return!1}}async function ne(E,z){try{await Le("theme:inject-css",{css:E,styleId:z})}catch{}}async function T(E){try{await Le("theme:remove-css",{styleId:E})}catch{}}async function j(){try{return(await Le("palette:scan-vars")).swatches}catch{return[]}}async function X(){try{const E=await Le("route:current");return t.value=E.path,E.path}catch{return"/"}}async function ce(E,z,le,be){try{return(await Le("insert:placeholder",{targetEid:E,position:z,tag:le,...be||{}})).placeholderEid}catch{return""}}async function Te(E){try{await Le("insert:remove",{eid:E})}catch{}}async function Pe(E,z,le){try{await Le("move:element",{eid:E,targetEid:z,position:le})}catch{}}async function Xe(E,z,le,be){try{return await Le("insert:component",{targetEid:E,position:z,componentName:le,props:be})}catch{return{eid:"",mounted:!1}}}const Ce=Xe;function pe(E){cp("mode:set",{mode:E})}return{currentRoute:t,bridgeReady:n,mountBridge:i,unmountBridge:o,initBridgeForIframe:l,toShellRect:s,toIframeCoords:r,resolveElementAt:u,findTemplateGroup:c,getElementRect:a,getElementRects:f,getComputedStyles:g,applyStyleVia:h,applyStyleBatch:v,setClass:x,setClassBatch:C,undoStyle:L,undoClass:w,classifyElement:k,scanLayout:A,layoutAddTrack:F,layoutAddChild:D,checkSourceMapping:U,injectThemeCss:ne,removeThemeCss:T,scanColorVars:j,getCurrentRoute:X,insertPlaceholder:ce,removePlaceholder:Te,moveElement:Pe,insertComponent:Xe,insertVueComponent:Ce,setMode:pe,onBridgeEvent:ss,onBridgeReady:os}}function fp(e,t,n,l){const i=q(null),o=q(null);let s=null;async function r(f){const g=n();if(g==="arrow"){s={x:f.clientX,y:f.clientY},i.value={fromX:f.clientX,fromY:f.clientY,toX:f.clientX,toY:f.clientY};const h=await t(f.clientX,f.clientY);i.value&&h&&(i.value={...i.value,fromRect:h.rect})}else g==="draw"&&(s={x:f.clientX,y:f.clientY},o.value={x:f.clientX,y:f.clientY,width:0,height:0})}let u=null;function c(f){if(!s)return;const g=n();if(g==="arrow"&&i.value){i.value={...i.value,toX:f.clientX,toY:f.clientY},u&&clearTimeout(u);const h=f.clientX,v=f.clientY;u=setTimeout(async()=>{const x=await t(h,v);i.value&&(i.value={...i.value,toRect:x==null?void 0:x.rect})},50)}else if(g==="draw"&&o.value){const h=Math.min(s.x,f.clientX),v=Math.min(s.y,f.clientY),x=Math.abs(f.clientX-s.x),C=Math.abs(f.clientY-s.y);o.value={x:h,y:v,width:x,height:C}}}async function a(f){if(!s)return;u&&(clearTimeout(u),u=null);const g=n();if(g==="arrow"&&i.value){const h=i.value;if(Math.abs(h.toX-h.fromX)>20||Math.abs(h.toY-h.fromY)>20){const v=await t(h.fromX,h.fromY),x=await t(h.toX,h.toY),C=e.addArrow(h.fromX,h.fromY,h.toX,h.toY);v&&e.updateArrow(C.id,{fromFile:v.file,fromLine:parseInt(v.line)||0,fromComponent:v.component}),x&&e.updateArrow(C.id,{toFile:x.file,toLine:parseInt(x.line)||0}),e.updateArrow(C.id,{label:""}),l==null||l(C.id,v,x)}i.value=null}else if(g==="draw"&&o.value){const h=o.value;if(h.width>30&&h.height>30){const v=await t(h.x+h.width/2,h.y),x=e.addDrawnSection(h.x,h.y,h.width,h.height);if(v){const C=h.y>((s==null?void 0:s.y)||0)?"below":"above";e.updateDrawnSection(x.id,{nearFile:v.file,nearLine:parseInt(v.line)||0,nearComponent:v.component,placement:C})}}o.value=null}s=null}return{drawingArrow:i,drawingRect:o,onCanvasPointerDown:r,onCanvasPointerMove:c,onCanvasPointerUp:a}}const pp={class:"mode-toolbar"},hp=nt({__name:"ModeToolbar",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_("div",pp,[d("button",{class:te(["mode-btn",{active:e.modelValue==="select"}]),onClick:i[0]||(i[0]=o=>n("update:modelValue","select")),title:"Select (V)"},[...i[6]||(i[6]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[d("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1)])],2),d("button",{class:te(["mode-btn mode-interact",{active:e.modelValue==="interact"}]),onClick:i[1]||(i[1]=o=>n("update:modelValue",e.modelValue==="interact"?"select":"interact")),title:"Interact (I)"},[...i[7]||(i[7]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M18 8a6 6 0 0 0-12 0c0 7 6 13 6 13s6-6 6-13z"}),d("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"}),d("path",{d:"M9 21h6"})],-1)])],2),i[12]||(i[12]=d("span",{class:"mode-sep"},null,-1)),d("button",{class:te(["mode-btn",{active:e.modelValue==="pin"}]),onClick:i[2]||(i[2]=o=>n("update:modelValue","pin")),title:"Pin Note (P)"},[...i[8]||(i[8]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("circle",{cx:"12",cy:"10",r:"3"}),d("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"})],-1)])],2),d("button",{class:te(["mode-btn arrow",{active:e.modelValue==="arrow"}]),onClick:i[3]||(i[3]=o=>n("update:modelValue","arrow")),title:"Arrow (A)"},[...i[9]||(i[9]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[d("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),d("polyline",{points:"12 5 19 12 12 19"})],-1)])],2),d("button",{class:te(["mode-btn draw",{active:e.modelValue==="draw"}]),onClick:i[4]||(i[4]=o=>n("update:modelValue","draw")),title:"Draw Section (D)"},[...i[10]||(i[10]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2","stroke-dasharray":"4 2"}),d("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),d("line",{x1:"8",y1:"12",x2:"16",y2:"12"})],-1)])],2),d("button",{class:te(["mode-btn mode-highlight",{active:e.modelValue==="highlight"}]),onClick:i[5]||(i[5]=o=>n("update:modelValue","highlight")),title:"Highlight Text (H)"},[...i[11]||(i[11]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M12 20h9"}),d("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})],-1)])],2)]))}}),gp=ht(hp,[["__scopeId","data-v-00eaacd4"]]),vp={key:0,class:"separator"},mp=["disabled","onClick"],yp={class:"item-label"},bp={key:0,class:"item-shortcut"},wp=nt({__name:"ContextMenu",props:{visible:{type:Boolean},x:{},y:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,l=t,i=q(null),o=[{id:"move",label:"Move",shortcut:"M",enabled:!0},{id:"resize",label:"Resize",shortcut:"R",enabled:!0},{id:"separator"},{id:"duplicate",label:"Duplicate",enabled:!1},{id:"delete",label:"Delete",enabled:!1}];function s(c){l("action",c),l("close")}function r(c){var a;n.visible&&((a=i.value)!=null&&a.contains(c.target)||l("close"))}function u(c){c.key==="Escape"&&l("close")}return gi(()=>{document.addEventListener("mousedown",r),document.addEventListener("keydown",u)}),Nn(()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",u)}),(c,a)=>(y(),mt(Lu,{to:"body"},[e.visible?(y(),_("div",{key:0,ref_key:"menuRef",ref:i,class:"context-menu",style:Me({left:e.x+"px",top:e.y+"px"})},[(y(),_(ie,null,ye(o,f=>(y(),_(ie,{key:f.id},[f.id==="separator"?(y(),_("div",vp)):(y(),_("button",{key:1,class:te(["menu-item",{disabled:!f.enabled}]),disabled:!f.enabled,onClick:g=>f.enabled&&s(f.id)},[d("span",yp,R(f.label),1),f.shortcut?(y(),_("span",bp,R(f.shortcut),1)):Y("",!0)],10,mp))],64))),64))],4)):Y("",!0)]))}}),_p=ht(wp,[["__scopeId","data-v-b4795b28"]]),xp=["onClick"],kp={class:"pin-number"},Cp=["onClick"],Ap=nt({__name:"PinOverlay",props:{pins:{},selectedPinId:{},iframeOffset:{}},emits:["select-pin","remove-pin"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(!0),_(ie,null,ye(e.pins,o=>(y(),_("div",{key:o.id,class:te(["pin",{selected:o.id===e.selectedPinId,"has-action":!!o.action,"has-note":!!o.note}]),style:Me({left:e.iframeOffset.x+o.clickX+"px",top:e.iframeOffset.y+o.clickY+"px"}),onClick:De(s=>n("select-pin",o.id),["stop"])},[d("span",kp,R(o.number),1),d("button",{class:"pin-remove",onClick:De(s=>n("remove-pin",o.id),["stop"])},"×",8,Cp)],14,xp))),128))}}),Sp=ht(Ap,[["__scopeId","data-v-006ef709"]]),$p={class:"arrow-svg"},Tp=["onClick"],Ep=["d","stroke","stroke-width"],Fp=["cx","cy"],Ip=["cx","cy"],Op=["x","y"],Pp=["transform","onClick"],Rp={key:0},Mp=["d"],Lp=["d"],Dp=["d"],Np=["cx","cy"],Vp=nt({__name:"ArrowOverlay",props:{arrows:{},selectedId:{},drawingArrow:{}},emits:["select","remove"],setup(e,{emit:t}){const n=t;function l(r,u,c,a,f,g){let h=r,v=u;if(f){const D=f.x+f.width/2,U=f.y+f.height/2,ne=Math.atan2(a-U,c-D);h=D+Math.cos(ne)*(f.width/2+4),v=U+Math.sin(ne)*(f.height/2+4)}let x=c,C=a;if(g){const D=g.x+g.width/2,U=g.y+g.height/2,ne=Math.atan2(v-U,h-D);x=D+Math.cos(ne)*(g.width/2+4),C=U+Math.sin(ne)*(g.height/2+4)}const L=x-h,w=h+L*.4,k=v,A=h+L*.6;return`M ${h} ${v} C ${w} ${k}, ${A} ${C}, ${x} ${C}`}function i(r,u,c,a){const f=c-r,g=r+f*.4,h=u,v=r+f*.6;return`M ${r} ${u} C ${g} ${h}, ${v} ${a}, ${c} ${a}`}function o(r,u,c,a){return{x:(r+c)/2,y:(u+a)/2-10}}function s(r){return`M ${r.x} ${r.y} h ${r.width} v ${r.height} h ${-r.width} Z`}return(r,u)=>(y(),_("svg",$p,[u[1]||(u[1]=d("defs",null,[d("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[d("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#ef4444"})]),d("marker",{id:"arrowhead-drawing",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[d("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#3b82f6"})])],-1)),(y(!0),_(ie,null,ye(e.arrows,c=>(y(),_("g",{key:c.id,onClick:De(a=>n("select",c.id),["stop"])},[d("path",{d:i(c.fromX,c.fromY,c.toX,c.toY),fill:"none",stroke:c.id===e.selectedId?"#dc2626":"#ef4444","stroke-width":c.id===e.selectedId?3:2,"stroke-dasharray":"6 3","marker-end":"url(#arrowhead)",class:"arrow-path"},null,8,Ep),d("circle",{cx:c.fromX,cy:c.fromY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,Fp),d("circle",{cx:c.toX,cy:c.toY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,Ip),c.label?(y(),_("text",{key:0,x:o(c.fromX,c.fromY,c.toX,c.toY).x,y:o(c.fromX,c.fromY,c.toX,c.toY).y,"text-anchor":"middle",class:"arrow-label"},R(c.label),9,Op)):Y("",!0),c.id===e.selectedId?(y(),_("g",{key:1,class:"arrow-delete",transform:`translate(${(c.fromX+c.toX)/2+20}, ${(c.fromY+c.toY)/2-20})`,onClick:De(a=>n("remove",c.id),["stop"])},[...u[0]||(u[0]=[d("circle",{r:"8",fill:"#ef4444"},null,-1),d("text",{"text-anchor":"middle",dy:"3.5",fill:"white","font-size":"10","font-weight":"bold"},"×",-1)])],8,Pp)):Y("",!0)],8,Tp))),128)),e.drawingArrow?(y(),_("g",Rp,[e.drawingArrow.fromRect?(y(),_("path",{key:0,d:s(e.drawingArrow.fromRect),fill:"none",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,Mp)):Y("",!0),e.drawingArrow.toRect?(y(),_("path",{key:1,d:s(e.drawingArrow.toRect),fill:"rgba(59,130,246,0.08)",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,Lp)):Y("",!0),d("path",{d:l(e.drawingArrow.fromX,e.drawingArrow.fromY,e.drawingArrow.toX,e.drawingArrow.toY,e.drawingArrow.fromRect,e.drawingArrow.toRect),fill:"none",stroke:"#3b82f6","stroke-width":"2.5","stroke-dasharray":"6 3","marker-end":"url(#arrowhead-drawing)",opacity:"0.8"},null,8,Dp),d("circle",{cx:e.drawingArrow.fromX,cy:e.drawingArrow.fromY,r:"5",fill:"#3b82f6",opacity:"0.6"},null,8,Np)])):Y("",!0)]))}}),Bp=ht(Vp,[["__scopeId","data-v-1d2c9ec9"]]),Hp=["onClick"],jp={class:"section-header"},Up={class:"section-badge"},Yp={key:0,class:"section-placement"},Kp=["onClick"],Wp=["value","onInput","onBlur"],zp={class:"section-dims"},Gp=nt({__name:"DrawnSectionOverlay",props:{sections:{},selectedId:{},drawingRect:{}},emits:["select","remove","update-prompt","commit"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_(ie,null,[e.drawingRect&&e.drawingRect.width>5&&e.drawingRect.height>5?(y(),_("div",{key:0,class:"section-preview",style:Me({left:e.drawingRect.x+"px",top:e.drawingRect.y+"px",width:e.drawingRect.width+"px",height:e.drawingRect.height+"px"})},null,4)):Y("",!0),(y(!0),_(ie,null,ye(e.sections,o=>(y(),_("div",{key:o.id,class:te(["drawn-section",{selected:o.id===e.selectedId}]),style:Me({left:o.x+"px",top:o.y+"px",width:o.width+"px",height:o.height+"px"}),onClick:De(s=>n("select",o.id),["stop"])},[d("div",jp,[d("span",Up,"#"+R(o.number)+" New Section",1),o.placement?(y(),_("span",Yp,R(o.placement),1)):Y("",!0),d("button",{class:"section-delete",onClick:De(s=>n("remove",o.id),["stop"])},"×",8,Kp)]),d("textarea",{class:"section-prompt",value:o.prompt,placeholder:"Describe what should go here...",onInput:s=>n("update-prompt",o.id,s.target.value),onBlur:s=>n("commit",o.id),onClick:i[0]||(i[0]=De(()=>{},["stop"]))},null,40,Wp),d("div",zp,R(Math.round(o.width))+"×"+R(Math.round(o.height))+"px ",1)],14,Hp))),128))],64))}}),Xp=ht(Gp,[["__scopeId","data-v-d10f1f9f"]]),qp={class:"notes-tab"},Jp={key:0,class:"quick-actions"},Zp={class:"action-grid"},Qp=["onClick"],eh={key:1,class:"add-note"},th=["onKeydown"],nh=["disabled"],ih={key:2,class:"element-pins"},lh=["onClick"],oh={class:"pin-content"},sh={key:0,class:"pin-action"},rh={key:1,class:"pin-note"},ah={key:2,class:"pin-empty"},uh=["onClick"],ch={class:"all-pins"},dh={class:"section-label"},fh={key:0,class:"empty-hint"},ph=["onClick"],hh={class:"pin-content"},gh={class:"pin-file"},vh={key:0,class:"pin-action"},mh={key:1,class:"pin-note"},yh=["onClick"],bh={key:3,class:"task-review"},wh={class:"section-label"},_h={class:"task-header"},xh={class:"task-desc"},kh={class:"task-file"},Ch={key:0,class:"task-feedback"},Ah={class:"task-actions"},Sh=["onClick"],$h=["value","onInput"],Th=["onClick"],Eh=["onClick"],Fh=nt({__name:"NotesTab",props:{pins:{},selectedPinId:{},selectedElement:{},elementRole:{},tasks:{}},emits:["add-note","add-action","add-task","select-pin","accept-task","deny-task","cancel-task","update-note","remove-pin"],setup(e,{emit:t}){const n=e,l=q({}),i=t,o=q(""),s=ue(()=>n.selectedElement?n.pins.filter(g=>g.file===n.selectedElement.file&&g.line===parseInt(n.selectedElement.line)):[]),r=[{action:"add_column",label:"+ Column"},{action:"add_row",label:"+ Row"},{action:"change_direction",label:"Direction"},{action:"set_gap",label:"Set Gap"}],u=[{action:"move_up",label:"Move Up"},{action:"move_down",label:"Move Down"},{action:"wrap_container",label:"Wrap"},{action:"duplicate",label:"Duplicate"}],c=[{action:"delete",label:"Delete"}],a=ue(()=>{const g=n.elementRole;return g==="container"?[...r,...c]:g==="content"?[...u,...c]:c});function f(){const g=o.value.trim();g&&(i("add-note",g),o.value="")}return(g,h)=>(y(),_("div",qp,[e.selectedElement?(y(),_("div",Jp,[h[2]||(h[2]=d("span",{class:"section-label"},"Quick Actions",-1)),d("div",Zp,[(y(!0),_(ie,null,ye(a.value,v=>(y(),_("button",{key:v.action,class:"action-btn",onClick:x=>i("add-action",v.action,v.label)},R(v.label),9,Qp))),128))])])):Y("",!0),e.selectedElement?(y(),_("div",eh,[h[3]||(h[3]=d("span",{class:"section-label"},"Add Task",-1)),Ve(d("textarea",{"onUpdate:modelValue":h[0]||(h[0]=v=>o.value=v),class:"note-input",rows:"3",placeholder:"Describe what you want to change...",onKeydown:jt(De(f,["ctrl"]),["enter"])},null,40,th),[[He,o.value]]),d("button",{class:"submit-btn",disabled:!o.value.trim(),onClick:f}," Add Task ",8,nh)])):Y("",!0),s.value.length?(y(),_("div",ih,[h[4]||(h[4]=d("span",{class:"section-label"},"Notes on this element",-1)),(y(!0),_(ie,null,ye(s.value,v=>(y(),_("div",{key:v.id,class:"pin-item",onClick:x=>i("select-pin",v.id)},[d("span",{class:te(["pin-badge",{action:v.action}])},R(v.number),3),d("div",oh,[v.action?(y(),_("span",sh,R(v.action),1)):Y("",!0),v.note?(y(),_("span",rh,R(v.note),1)):Y("",!0),!v.note&&!v.action?(y(),_("span",ah,"No note yet")):Y("",!0)]),d("button",{class:"pin-delete",onClick:De(x=>i("remove-pin",v.id),["stop"])},"×",8,uh)],8,lh))),128))])):Y("",!0),d("div",ch,[d("span",dh,"All Pins ("+R(e.pins.length)+")",1),e.pins.length===0?(y(),_("div",fh," Press P then click on the page to add pins ")):Y("",!0),(y(!0),_(ie,null,ye(e.pins,v=>(y(),_("div",{key:v.id,class:te(["pin-item",{selected:v.id===e.selectedPinId}]),onClick:x=>i("select-pin",v.id)},[d("span",{class:te(["pin-badge",{action:v.action}])},R(v.number),3),d("div",hh,[d("code",gh,R(v.file)+":"+R(v.line),1),v.action?(y(),_("span",vh,R(v.action),1)):Y("",!0),v.note?(y(),_("span",mh,R(v.note),1)):Y("",!0)]),d("button",{class:"pin-delete",onClick:De(x=>i("remove-pin",v.id),["stop"])},"×",8,yh)],10,ph))),128))]),e.tasks.length>0?(y(),_("div",bh,[d("span",wh,"Tasks ("+R(e.tasks.length)+")",1),(y(!0),_(ie,null,ye(e.tasks,v=>(y(),_("div",{key:v.id,class:te(["task-item",v.status])},[d("div",_h,[d("span",{class:te(["task-status-badge",v.status])},R(v.status),3),d("span",xh,R(v.description),1)]),d("code",kh,R(v.file),1),v.feedback?(y(),_("div",Ch,"Feedback: "+R(v.feedback),1)):Y("",!0),d("div",Ah,[v.status==="review"?(y(),_(ie,{key:0},[d("button",{class:"task-accept",onClick:x=>i("accept-task",v.id)},"Accept",8,Sh),d("input",{value:l.value[v.id]||"",onInput:x=>l.value[v.id]=x.target.value,class:"deny-input",placeholder:"Reason...",onClick:h[1]||(h[1]=De(()=>{},["stop"]))},null,40,$h),d("button",{class:"task-deny",onClick:x=>{i("deny-task",v.id,l.value[v.id]||""),delete l.value[v.id]}},"Deny",8,Th)],64)):Y("",!0),d("button",{class:"task-cancel",onClick:x=>i("cancel-task",v.id)},"×",8,Eh)])],2))),128))])):Y("",!0)]))}}),Ih=ht(Fh,[["__scopeId","data-v-66881614"]]),Oh={class:"prompt-header"},Ph={class:"prompt-text-preview"},Rh=["onClick"],Mh={class:"hl-header"},Lh={class:"hl-badge"},Dh={class:"hl-file"},Nh=["onClick"],Vh={class:"hl-text"},Bh={key:0,class:"hl-prompt"},Hh=["value","onInput"],jh=nt({__name:"TextHighlightOverlay",props:{highlights:{},selectedId:{},pending:{}},emits:["select","remove","update-prompt","submit-pending","cancel-pending"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),_(ie,null,[e.pending?(y(),_("div",{key:0,class:"highlight-prompt",style:Me({left:e.pending.x+"px",top:e.pending.y+"px"})},[d("div",Oh,[d("span",Ph,'"'+R(e.pending.text.substring(0,50))+R(e.pending.text.length>50?"...":"")+'"',1)]),d("input",{class:"prompt-input",placeholder:"What should this text become?",autofocus:"",onKeydown:[i[0]||(i[0]=jt(o=>n("submit-pending",o.target.value),["enter"])),i[1]||(i[1]=jt(o=>n("cancel-pending"),["escape"]))]},null,32),i[3]||(i[3]=d("div",{class:"prompt-hint"},"Enter to submit, Escape to cancel",-1))],4)):Y("",!0),(y(!0),_(ie,null,ye(e.highlights,o=>(y(),_("div",{key:o.id,class:te(["text-highlight-card",{selected:o.id===e.selectedId}]),onClick:De(s=>n("select",o.id),["stop"])},[d("div",Mh,[d("span",Lh,"#"+R(o.number),1),d("code",Dh,R(o.file)+":"+R(o.line),1),d("button",{class:"hl-delete",onClick:De(s=>n("remove",o.id),["stop"])},"×",8,Nh)]),d("div",Vh,'"'+R(o.selectedText)+'"',1),o.prompt?(y(),_("div",Bh,"→ "+R(o.prompt),1)):Y("",!0),o.id===e.selectedId?(y(),_("input",{key:1,class:"hl-prompt-edit",value:o.prompt,placeholder:"What should this become?",onInput:s=>n("update-prompt",o.id,s.target.value),onClick:i[2]||(i[2]=De(()=>{},["stop"]))},null,40,Hh)):Y("",!0)],10,Rh))),128))],64))}}),Uh=ht(jh,[["__scopeId","data-v-b4a28a2c"]]),Yh={class:"layout-label"},Kh=["onPointerdown"],Wh=["onPointerdown"],zh=["onClick"],Gh=["onClick"],Xh=["onClick"],qh=["onClick"],Jh=nt({__name:"LayoutOverlay",props:{containers:{}},emits:["grid-line-drag","add-track","add-child"],setup(e,{emit:t}){const n=t;function l(u){var c,a;if(u.display==="grid"){const f=((c=u.columns)==null?void 0:c.length)||"?",g=((a=u.rows)==null?void 0:a.length)||"?";return`grid ${f}×${g}`}return u.direction==="row"?"flex →":u.direction==="row-reverse"?"flex ←":u.direction==="column"?"flex ↓":u.direction==="column-reverse"?"flex ↑":"flex"}function i(u){if(!u.columns||u.columns.length<=1)return[];const c=[];let a=0;for(let f=0;f<u.columns.length-1;f++)a+=u.columns[f],u.columnGap&&(a+=u.columnGap/2),c.push({x:a,height:u.height}),u.columnGap&&(a+=u.columnGap/2);return c}function o(u){if(!u.rows||u.rows.length<=1)return[];const c=[];let a=0;for(let f=0;f<u.rows.length-1;f++)a+=u.rows[f],u.rowGap&&(a+=u.rowGap/2),c.push({y:a,width:u.width}),u.rowGap&&(a+=u.rowGap/2);return c}function s(u){return u.width>60&&u.height>60}function r(u){return u.display==="grid"||u.direction==="row"||u.direction==="row-reverse"}return(u,c)=>(y(!0),_(ie,null,ye(e.containers,(a,f)=>(y(),_(ie,{key:f},[d("div",{class:te(["layout-outline",a.display]),style:Me({left:a.x+"px",top:a.y+"px",width:a.width+"px",height:a.height+"px"})},[d("span",Yh,R(l(a)),1)],6),(y(!0),_(ie,null,ye(i(a),(g,h)=>(y(),_("div",{key:"col-"+f+"-"+h,class:"grid-line col",style:Me({left:a.x+g.x+"px",top:a.y+"px",height:g.height+"px"}),onPointerdown:De(v=>n("grid-line-drag",a,"col",h,v),["stop","prevent"])},null,44,Kh))),128)),(y(!0),_(ie,null,ye(o(a),(g,h)=>(y(),_("div",{key:"row-"+f+"-"+h,class:"grid-line row",style:Me({left:a.x+"px",top:a.y+g.y+"px",width:g.width+"px"}),onPointerdown:De(v=>n("grid-line-drag",a,"row",h,v),["stop","prevent"])},null,44,Wh))),128)),s(a)?(y(),_(ie,{key:0},[a.display==="grid"?(y(),_(ie,{key:0},[d("button",{class:"add-track-btn col",style:Me({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add column",onClick:De(g=>n("add-track",a,"col"),["stop"])},"+col",12,zh),d("button",{class:"add-track-btn row",style:Me({left:a.x+a.width/2-16+"px",top:a.y+a.height+4+"px"}),title:"Add row",onClick:De(g=>n("add-track",a,"row"),["stop"])},"+row",12,Gh)],64)):(y(),_(ie,{key:1},[r(a)?(y(),_("button",{key:0,class:"add-child-btn",style:Me({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add item",onClick:De(g=>n("add-child",a),["stop"])},"+",12,Xh)):(y(),_("button",{key:1,class:"add-child-btn",style:Me({left:a.x+a.width/2-11+"px",top:a.y+a.height+4+"px"}),title:"Add item",onClick:De(g=>n("add-child",a),["stop"])},"+",12,qh))],64))],64)):Y("",!0)],64))),128))}}),Zh=ht(Jh,[["__scopeId","data-v-ed4fb8a3"]]),rs="annotask-theme-preview",It=q(new Map);function Qh(){return It.value.size===0?"":`:root {
|
|
18
18
|
${Array.from(It.value.entries()).map(([t,n])=>` ${t}: ${n} !important;`).join(`
|
|
19
19
|
`)}
|
|
20
|
-
}`}function Qh(e){var t;try{return((t=e.value)==null?void 0:t.contentDocument)??null}catch{return null}}function eg(e){const t=Zh();let n=e.getElementById(ss);if(!t){n==null||n.remove();return}n||(n=e.createElement("style"),n.id=ss,e.head.appendChild(n)),n.textContent=t}function tg(e){function t(){const s=Qh(e);s&&eg(s)}function n(s,r){const u=new Map(It.value);u.set(s,r),It.value=u}function l(s){const r=new Map(It.value);r.delete(s),It.value=r}function i(){It.value=new Map}mt(It,t,{deep:!0});function o(){t()}return mt(e,(s,r)=>{r&&r.removeEventListener("load",o),s&&(s.addEventListener("load",o),t())},{immediate:!0}),{overrides:It,setOverride:n,removeOverride:l,clearAll:i,hasChanges:()=>It.value.size>0}}const Sn=q([]),Hl=q(!1);async function Vi(){try{Hl.value=!0;const t=await(await fetch("/__annotask/api/tasks")).json();Sn.value=t.tasks||[]}catch{}finally{Hl.value=!1}}async function ng(e){try{const n=await(await fetch("/__annotask/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return await Vi(),n}catch{return null}}async function ig(e,t,n){try{await fetch(`/__annotask/api/tasks/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:t,...n?{feedback:n}:{}})}),await Vi()}catch{}}let rs=!1;function Vr(){rs||(rs=!0,Vi(),Lr("tasks:updated",l=>{const i=l;Sn.value=(i==null?void 0:i.tasks)||[]}));const e=ce(()=>Sn.value.filter(l=>l.status==="pending")),t=ce(()=>Sn.value.filter(l=>l.status==="review")),n=ce(()=>Sn.value.filter(l=>l.status==="denied"));return{tasks:Sn,pendingTasks:e,reviewTasks:t,deniedTasks:n,isLoading:Hl,createTask:ng,updateTaskStatus:ig,fetchTasks:Vi}}const lg={class:"theme-page"},og={class:"theme-header"},sg={key:0,class:"theme-actions"},rg={class:"theme-change-count"},ag={key:0,class:"theme-empty"},ug={key:1,class:"theme-empty"},cg={class:"theme-tabs"},dg={key:0,class:"theme-tab-badge"},fg={key:0,class:"theme-tab-badge"},pg={key:0,class:"theme-tab-badge"},hg={key:0,class:"theme-tab-badge"},gg={class:"theme-content"},vg={key:0,class:"theme-section"},mg={key:0,class:"theme-section-empty"},yg={class:"token-info"},bg={class:"token-source"},wg={class:"token-controls"},_g={class:"color-swatch-wrapper"},xg=["value","onChange"],kg={key:0,class:"no-preview-badge",title:"No CSS variable — preview unavailable"},Cg={class:"token-info"},Ag={class:"token-role new-badge"},Sg={class:"token-controls"},$g={class:"token-value-ro"},Tg=["onClick"],Eg={key:1,class:"add-token-form"},Fg={class:"add-actions"},Ig=["disabled"],Og={key:1,class:"theme-section"},Pg={key:0,class:"theme-section-empty"},Rg={class:"token-info"},Mg={class:"token-source"},Lg={class:"token-controls"},Dg=["value","onChange"],Ng={class:"token-info"},Vg={class:"token-role new-badge"},Bg={class:"token-controls"},Hg={class:"token-value-ro"},jg=["onClick"],Ug={key:1,class:"add-token-form"},Yg={class:"add-actions"},Kg=["disabled"],Wg={key:3,class:"theme-section-empty"},zg={class:"token-info"},Gg={class:"token-source"},Xg={class:"token-controls"},qg=["value","onChange"],Jg={class:"token-info"},Zg={class:"token-role new-badge"},Qg={class:"token-controls"},ev={class:"token-value-ro"},tv=["onClick"],nv={key:4,class:"add-token-form"},iv={class:"add-actions"},lv=["disabled"],ov={key:6,class:"section-subtitle",style:{"margin-top":"16px"}},sv={key:7,class:"weight-chips"},rv={key:2,class:"theme-section"},av={key:0,class:"theme-section-empty"},uv={class:"token-info"},cv={class:"token-source"},dv={class:"token-controls"},fv=["value","onChange"],pv={class:"spacing-preview"},hv={class:"token-info"},gv={class:"token-role new-badge"},vv={class:"token-controls"},mv={class:"token-value-ro"},yv=["onClick"],bv={key:1,class:"add-token-form"},wv={class:"add-actions"},_v=["disabled"],xv={key:3,class:"theme-section"},kv={key:0,class:"theme-section-empty"},Cv={class:"token-info"},Av={class:"token-source"},Sv={class:"token-controls"},$v=["value","onChange"],Tv={class:"token-info"},Ev={class:"token-role new-badge"},Fv={class:"token-controls"},Iv={class:"token-value-ro"},Ov=["onClick"],Pv={key:1,class:"add-token-form"},Rv={class:"add-actions"},Mv=["disabled"],Lv={key:4,class:"theme-section"},Dv={key:0,class:"theme-section-empty"},Nv={key:1,class:"library-card"},Vv={class:"library-name"},Bv={key:0,class:"library-version"},Hv={key:2,class:"theme-section-empty"},jv={class:"library-card"},Uv={class:"library-name"},Yv={key:0,class:"library-version"},Kv={key:0,class:"library-components"},Wv={key:4,class:"library-card"},zv={class:"library-name"},Gv={class:"library-version"},Xv=nt({__name:"ThemePage",props:{iframeRef:{}},setup(e){const t=e,{designSpec:n,isInitialized:l,isLoading:i}=uo(),o=tg(ce(()=>t.iframeRef)),s=Vr(),r=q("colors"),u=q(new Map),c=q(new Map),a=q(new Map),f=q(new Map),g=q(new Map),h=q([]),v=q([]),x=q([]),C=q([]),M=q([]),w=q(null),k=q(""),A=q(""),F=q(""),L=ce(()=>{var G;try{return((G=t.iframeRef)==null?void 0:G.contentDocument)??null}catch{return null}}),U=ce(()=>{var G;return((G=n.value)==null?void 0:G.colors)??[]}),ne=ce(()=>{var G,P;return((P=(G=n.value)==null?void 0:G.typography)==null?void 0:P.families)??[]}),T=ce(()=>{var G,P;return((P=(G=n.value)==null?void 0:G.typography)==null?void 0:P.scale)??[]}),j=ce(()=>{var G,P;return((P=(G=n.value)==null?void 0:G.typography)==null?void 0:P.weights)??[]}),X=ce(()=>{var G;return((G=n.value)==null?void 0:G.spacing)??[]}),de=ce(()=>{var G,P;return((P=(G=n.value)==null?void 0:G.borders)==null?void 0:P.radius)??[]}),Te=ce(()=>{var G;return((G=n.value)==null?void 0:G.icons)??null}),Pe=ce(()=>{var G;return((G=n.value)==null?void 0:G.components)??null}),Xe=ce(()=>u.value.size+c.value.size+a.value.size+f.value.size+g.value.size+h.value.length+v.value.length+x.value.length+C.value.length+M.value.length);function Ce(G,P){u.value.set(G.role,P),u.value=new Map(u.value),G.cssVar&&o.setOverride(G.cssVar,P)}function he(G,P,Fe){Fe.value.set(G.role,P),Fe.value=new Map(Fe.value),G.cssVar&&o.setOverride(G.cssVar,P)}function E(G,P){return P.get(G.role)??G.value}function z(G,P){const Fe=P.get(G.role);return Fe!==void 0&&Fe!==G.value}function le(G){w.value=G,k.value="",A.value="",F.value=""}function be(){w.value=null}function me(){if(!k.value.trim()||!A.value.trim())return;const G={role:k.value.trim(),value:A.value.trim(),cssVar:F.value.trim()||void 0,source:"new"};switch(w.value){case"colors":h.value=[...h.value,G];break;case"families":v.value=[...v.value,G];break;case"scale":x.value=[...x.value,G];break;case"spacing":C.value=[...C.value,G];break;case"radius":M.value=[...M.value,G];break}G.cssVar&&o.setOverride(G.cssVar,G.value),w.value=null}function Ye(G,P){const Fe=G.value[P];Fe.cssVar&&o.removeOverride(Fe.cssVar),G.value=G.value.filter((I,ve)=>ve!==P)}function Ke(){var ve,m;const G=[],P=((m=(ve=n.value)==null?void 0:ve.framework)==null?void 0:m.styling)??[];function Fe(b,$,V){const N=V.get($.role);!N||N===$.value||G.push({type:"theme_update",description:`Update ${b} "${$.role}" from ${$.value} to ${N}`,file:$.sourceFile||"",line:$.sourceLine||0,intent:`Change the ${$.role} ${b} token to ${N} across the application`,action:"theme_update",context:{category:b,role:$.role,before:$.value,after:N,cssVar:$.cssVar||null,source:$.source,sourceFile:$.sourceFile||null,sourceLine:$.sourceLine||null,styling:P}})}function I(b,$){G.push({type:"theme_update",description:`Add new ${b} token "${$.role}" with value ${$.value}`,file:"",line:0,intent:`Add a new ${$.role} ${b} token with value ${$.value} to the design system`,action:"theme_update",context:{category:b,role:$.role,before:null,after:$.value,cssVar:$.cssVar||null,source:null,sourceFile:null,sourceLine:null,styling:P,isNew:!0}})}for(const b of U.value)Fe("colors",b,u.value);for(const b of ne.value)Fe("typography.families",b,c.value);for(const b of T.value)Fe("typography.scale",b,a.value);for(const b of X.value)Fe("spacing",b,f.value);for(const b of de.value)Fe("borders.radius",b,g.value);for(const b of h.value)I("colors",b);for(const b of v.value)I("typography.families",b);for(const b of x.value)I("typography.scale",b);for(const b of C.value)I("spacing",b);for(const b of M.value)I("borders.radius",b);return G}async function pe(){const G=Ke();for(const P of G)await s.createTask(P);u.value=new Map,c.value=new Map,a.value=new Map,f.value=new Map,g.value=new Map,h.value=[],v.value=[],x.value=[],C.value=[],M.value=[],o.clearAll()}function _e(){u.value=new Map,c.value=new Map,a.value=new Map,f.value=new Map,g.value=new Map,h.value=[],v.value=[],x.value=[],C.value=[],M.value=[],o.clearAll()}return(G,P)=>{var Fe;return y(),_("div",lg,[d("div",og,[P[25]||(P[25]=d("span",{class:"theme-title"},"Design Tokens",-1)),Xe.value>0?(y(),_("div",sg,[d("span",rg,R(Xe.value)+" change"+R(Xe.value===1?"":"s"),1),d("button",{class:"theme-btn commit",onClick:pe},"Commit"),d("button",{class:"theme-btn discard",onClick:_e},"Discard")])):Y("",!0)]),ee(i)?(y(),_("div",ag,[...P[26]||(P[26]=[d("p",null,"Loading design spec...",-1)])])):ee(l)?(y(),_(ie,{key:2},[d("div",cg,[d("button",{class:te(["theme-tab",{active:r.value==="colors"}]),onClick:P[0]||(P[0]=I=>r.value="colors")},[P[28]||(P[28]=rt(" Colors ",-1)),u.value.size+h.value.length?(y(),_("span",dg,R(u.value.size+h.value.length),1)):Y("",!0)],2),d("button",{class:te(["theme-tab",{active:r.value==="typography"}]),onClick:P[1]||(P[1]=I=>r.value="typography")},[P[29]||(P[29]=rt(" Type ",-1)),c.value.size+a.value.size+v.value.length+x.value.length?(y(),_("span",fg,R(c.value.size+a.value.size+v.value.length+x.value.length),1)):Y("",!0)],2),d("button",{class:te(["theme-tab",{active:r.value==="spacing"}]),onClick:P[2]||(P[2]=I=>r.value="spacing")},[P[30]||(P[30]=rt(" Spacing ",-1)),f.value.size+C.value.length?(y(),_("span",pg,R(f.value.size+C.value.length),1)):Y("",!0)],2),d("button",{class:te(["theme-tab",{active:r.value==="borders"}]),onClick:P[3]||(P[3]=I=>r.value="borders")},[P[31]||(P[31]=rt(" Borders ",-1)),g.value.size+M.value.length?(y(),_("span",hg,R(g.value.size+M.value.length),1)):Y("",!0)],2),d("button",{class:te(["theme-tab",{active:r.value==="libraries"}]),onClick:P[4]||(P[4]=I=>r.value="libraries")},"Libraries",2)]),d("div",gg,[r.value==="colors"?(y(),_("div",vg,[U.value.length===0&&h.value.length===0?(y(),_("div",mg,"No color tokens detected")):Y("",!0),(y(!0),_(ie,null,ye(U.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",yg,[d("span",{class:te(["token-role",{edited:z(I,u.value)}])},R(I.role),3),d("code",bg,R(I.source),1)]),d("div",wg,[d("div",_g,[tt(Dl,{modelValue:E(I,u.value),iframeDoc:L.value,"onUpdate:modelValue":ve=>Ce(I,ve)},null,8,["modelValue","iframeDoc","onUpdate:modelValue"])]),d("input",{class:"token-value-input color-hex",value:E(I,u.value),onChange:ve=>Ce(I,ve.target.value)},null,40,xg),I.cssVar?Y("",!0):(y(),_("span",kg,"no preview"))])]))),128)),(y(!0),_(ie,null,ye(h.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",Cg,[d("span",Ag,"+ "+R(I.role),1)]),d("div",Sg,[d("div",{class:"color-swatch-inline",style:Me({background:I.value})},null,4),d("code",$g,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(h.value,ve)},"×",8,Tg)])]))),128)),w.value==="colors"?(y(),_("div",Eg,[Ve(d("input",{"onUpdate:modelValue":P[5]||(P[5]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. info)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[6]||(P[6]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. #3b82f6)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[7]||(P[7]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional, e.g. --color-info)"},null,512),[[He,F.value]]),d("div",Fg,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,Ig),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:P[8]||(P[8]=I=>le("colors"))},"+ Add Color"))])):Y("",!0),r.value==="typography"?(y(),_("div",Og,[P[32]||(P[32]=d("h4",{class:"section-subtitle"},"Font Families",-1)),ne.value.length===0&&v.value.length===0?(y(),_("div",Pg,"No font families detected")):Y("",!0),(y(!0),_(ie,null,ye(ne.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",Rg,[d("span",{class:te(["token-role",{edited:z(I,c.value)}])},R(I.role),3),d("code",Mg,R(I.source),1)]),d("div",Lg,[d("input",{class:"token-value-input wide",value:E(I,c.value),onChange:ve=>he(I,ve.target.value,c.value)},null,40,Dg)])]))),128)),(y(!0),_(ie,null,ye(v.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",Ng,[d("span",Vg,"+ "+R(I.role),1)]),d("div",Bg,[d("code",Hg,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(v.value,ve)},"×",8,jg)])]))),128)),w.value==="families"?(y(),_("div",Ug,[Ve(d("input",{"onUpdate:modelValue":P[9]||(P[9]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. display)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[10]||(P[10]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. Poppins, sans-serif)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[11]||(P[11]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[He,F.value]]),d("div",Yg,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,Kg),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:P[12]||(P[12]=I=>le("families"))},"+ Add Family")),P[33]||(P[33]=d("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Font Scale",-1)),T.value.length===0&&x.value.length===0?(y(),_("div",Wg,"No font sizes detected")):Y("",!0),(y(!0),_(ie,null,ye(T.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",zg,[d("span",{class:te(["token-role",{edited:z(I,a.value)}])},R(I.role),3),d("code",Gg,R(I.source),1)]),d("div",Xg,[d("input",{class:"token-value-input",value:E(I,a.value),onChange:ve=>he(I,ve.target.value,a.value)},null,40,qg),d("div",{class:"font-size-preview",style:Me({fontSize:E(I,a.value)})},"Aa",4)])]))),128)),(y(!0),_(ie,null,ye(x.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",Jg,[d("span",Zg,"+ "+R(I.role),1)]),d("div",Qg,[d("code",ev,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(x.value,ve)},"×",8,tv)])]))),128)),w.value==="scale"?(y(),_("div",nv,[Ve(d("input",{"onUpdate:modelValue":P[13]||(P[13]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[14]||(P[14]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. 1.5rem)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[15]||(P[15]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[He,F.value]]),d("div",iv,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,lv),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:5,class:"add-token-btn",onClick:P[16]||(P[16]=I=>le("scale"))},"+ Add Size")),j.value.length?(y(),_("h4",ov,"Weights")):Y("",!0),j.value.length?(y(),_("div",sv,[(y(!0),_(ie,null,ye(j.value,I=>(y(),_("span",{key:I,class:"weight-chip"},R(I),1))),128))])):Y("",!0)])):Y("",!0),r.value==="spacing"?(y(),_("div",rv,[X.value.length===0&&C.value.length===0?(y(),_("div",av,"No spacing tokens detected")):Y("",!0),(y(!0),_(ie,null,ye(X.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",uv,[d("span",{class:te(["token-role",{edited:z(I,f.value)}])},R(I.role),3),d("code",cv,R(I.source),1)]),d("div",dv,[d("input",{class:"token-value-input",value:E(I,f.value),onChange:ve=>he(I,ve.target.value,f.value)},null,40,fv),d("div",pv,[d("div",{class:"spacing-bar",style:Me({width:E(I,f.value)})},null,4)])])]))),128)),(y(!0),_(ie,null,ye(C.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",hv,[d("span",gv,"+ "+R(I.role),1)]),d("div",vv,[d("code",mv,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(C.value,ve)},"×",8,yv)])]))),128)),w.value==="spacing"?(y(),_("div",bv,[Ve(d("input",{"onUpdate:modelValue":P[17]||(P[17]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[18]||(P[18]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. 32px)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[19]||(P[19]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[He,F.value]]),d("div",wv,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,_v),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:P[20]||(P[20]=I=>le("spacing"))},"+ Add Spacing"))])):Y("",!0),r.value==="borders"?(y(),_("div",xv,[P[34]||(P[34]=d("h4",{class:"section-subtitle"},"Border Radius",-1)),de.value.length===0&&M.value.length===0?(y(),_("div",kv,"No border radius tokens detected")):Y("",!0),(y(!0),_(ie,null,ye(de.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",Cv,[d("span",{class:te(["token-role",{edited:z(I,g.value)}])},R(I.role),3),d("code",Av,R(I.source),1)]),d("div",Sv,[d("input",{class:"token-value-input",value:E(I,g.value),onChange:ve=>he(I,ve.target.value,g.value)},null,40,$v),d("div",{class:"radius-preview",style:Me({borderRadius:E(I,g.value)})},null,4)])]))),128)),(y(!0),_(ie,null,ye(M.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",Tv,[d("span",Ev,"+ "+R(I.role),1)]),d("div",Fv,[d("code",Iv,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(M.value,ve)},"×",8,Ov)])]))),128)),w.value==="radius"?(y(),_("div",Pv,[Ve(d("input",{"onUpdate:modelValue":P[21]||(P[21]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. xl)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[22]||(P[22]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. 16px)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[23]||(P[23]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[He,F.value]]),d("div",Rv,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,Mv),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:P[24]||(P[24]=I=>le("radius"))},"+ Add Radius"))])):Y("",!0),r.value==="libraries"?(y(),_("div",Lv,[P[35]||(P[35]=d("h4",{class:"section-subtitle"},"Icons",-1)),Te.value?(y(),_("div",Nv,[d("span",Vv,R(Te.value.library),1),Te.value.version?(y(),_("span",Bv,"v"+R(Te.value.version),1)):Y("",!0)])):(y(),_("div",Dv,"No icon library detected")),P[36]||(P[36]=d("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Components",-1)),Pe.value?(y(),_(ie,{key:3},[d("div",jv,[d("span",Uv,R(Pe.value.library),1),Pe.value.version?(y(),_("span",Yv,"v"+R(Pe.value.version),1)):Y("",!0)]),Pe.value.used.length?(y(),_("div",Kv,[(y(!0),_(ie,null,ye(Pe.value.used,I=>(y(),_("span",{key:I,class:"component-chip"},R(I),1))),128))])):Y("",!0)],64)):(y(),_("div",Hv,"No component library detected")),P[37]||(P[37]=d("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Framework",-1)),(Fe=ee(n))!=null&&Fe.framework?(y(),_("div",Wv,[d("span",zv,R(ee(n).framework.name),1),d("span",Gv,"v"+R(ee(n).framework.version),1),(y(!0),_(ie,null,ye(ee(n).framework.styling,I=>(y(),_("span",{key:I,class:"styling-chip"},R(I),1))),128))])):Y("",!0)])):Y("",!0)])],64)):(y(),_("div",ug,[...P[27]||(P[27]=[d("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[d("circle",{cx:"12",cy:"12",r:"10"}),d("path",{d:"M12 8v4l2 2"})],-1),d("p",null,"No design spec found",-1),d("p",{class:"theme-empty-hint"},[rt("Run "),d("code",null,"/annotask-init"),rt(" in your AI assistant to scan your project's design system")],-1)])]))])}}}),qv=pt(Xv,[["__scopeId","data-v-67b64182"]]);var as=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wl={exports:{}},us;function Zv(){return us||(us=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
20
|
+
}`}function eg(e){var t;try{return((t=e.value)==null?void 0:t.contentDocument)??null}catch{return null}}function tg(e){const t=Qh();let n=e.getElementById(rs);if(!t){n==null||n.remove();return}n||(n=e.createElement("style"),n.id=rs,e.head.appendChild(n)),n.textContent=t}function ng(e){function t(){const s=eg(e);s&&tg(s)}function n(s,r){const u=new Map(It.value);u.set(s,r),It.value=u}function l(s){const r=new Map(It.value);r.delete(s),It.value=r}function i(){It.value=new Map}yt(It,t,{deep:!0});function o(){t()}return yt(e,(s,r)=>{r&&r.removeEventListener("load",o),s&&(s.addEventListener("load",o),t())},{immediate:!0}),{overrides:It,setOverride:n,removeOverride:l,clearAll:i,hasChanges:()=>It.value.size>0}}const Sn=q([]),jl=q(!1);async function Vi(){try{jl.value=!0;const t=await(await fetch("/__annotask/api/tasks")).json();Sn.value=t.tasks||[]}catch{}finally{jl.value=!1}}async function ig(e){try{const n=await(await fetch("/__annotask/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return await Vi(),n}catch{return null}}async function lg(e,t,n){try{await fetch(`/__annotask/api/tasks/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:t,...n?{feedback:n}:{}})}),await Vi()}catch{}}let as=!1;function Br(){as||(as=!0,Vi(),Dr("tasks:updated",l=>{const i=l;Sn.value=(i==null?void 0:i.tasks)||[]}));const e=ue(()=>Sn.value.filter(l=>l.status==="pending")),t=ue(()=>Sn.value.filter(l=>l.status==="review")),n=ue(()=>Sn.value.filter(l=>l.status==="denied"));return{tasks:Sn,pendingTasks:e,reviewTasks:t,deniedTasks:n,isLoading:jl,createTask:ig,updateTaskStatus:lg,fetchTasks:Vi}}const og={class:"theme-page"},sg={class:"theme-header"},rg={key:0,class:"theme-actions"},ag={class:"theme-change-count"},ug={key:0,class:"theme-empty"},cg={key:1,class:"theme-empty"},dg={class:"theme-tabs"},fg={key:0,class:"theme-tab-badge"},pg={key:0,class:"theme-tab-badge"},hg={key:0,class:"theme-tab-badge"},gg={key:0,class:"theme-tab-badge"},vg={class:"theme-content"},mg={key:0,class:"theme-section"},yg={key:0,class:"theme-section-empty"},bg={class:"token-info"},wg={class:"token-source"},_g={class:"token-controls"},xg={class:"color-swatch-wrapper"},kg=["value","onChange"],Cg={key:0,class:"no-preview-badge",title:"No CSS variable — preview unavailable"},Ag={class:"token-info"},Sg={class:"token-role new-badge"},$g={class:"token-controls"},Tg={class:"token-value-ro"},Eg=["onClick"],Fg={key:1,class:"add-token-form"},Ig={class:"add-actions"},Og=["disabled"],Pg={key:1,class:"theme-section"},Rg={key:0,class:"theme-section-empty"},Mg={class:"token-info"},Lg={class:"token-source"},Dg={class:"token-controls"},Ng=["value","onChange"],Vg={class:"token-info"},Bg={class:"token-role new-badge"},Hg={class:"token-controls"},jg={class:"token-value-ro"},Ug=["onClick"],Yg={key:1,class:"add-token-form"},Kg={class:"add-actions"},Wg=["disabled"],zg={key:3,class:"theme-section-empty"},Gg={class:"token-info"},Xg={class:"token-source"},qg={class:"token-controls"},Jg=["value","onChange"],Zg={class:"token-info"},Qg={class:"token-role new-badge"},ev={class:"token-controls"},tv={class:"token-value-ro"},nv=["onClick"],iv={key:4,class:"add-token-form"},lv={class:"add-actions"},ov=["disabled"],sv={key:6,class:"section-subtitle",style:{"margin-top":"16px"}},rv={key:7,class:"weight-chips"},av={key:2,class:"theme-section"},uv={key:0,class:"theme-section-empty"},cv={class:"token-info"},dv={class:"token-source"},fv={class:"token-controls"},pv=["value","onChange"],hv={class:"spacing-preview"},gv={class:"token-info"},vv={class:"token-role new-badge"},mv={class:"token-controls"},yv={class:"token-value-ro"},bv=["onClick"],wv={key:1,class:"add-token-form"},_v={class:"add-actions"},xv=["disabled"],kv={key:3,class:"theme-section"},Cv={key:0,class:"theme-section-empty"},Av={class:"token-info"},Sv={class:"token-source"},$v={class:"token-controls"},Tv=["value","onChange"],Ev={class:"token-info"},Fv={class:"token-role new-badge"},Iv={class:"token-controls"},Ov={class:"token-value-ro"},Pv=["onClick"],Rv={key:1,class:"add-token-form"},Mv={class:"add-actions"},Lv=["disabled"],Dv={key:4,class:"theme-section"},Nv={key:0,class:"theme-section-empty"},Vv={key:1,class:"library-card"},Bv={class:"library-name"},Hv={key:0,class:"library-version"},jv={key:2,class:"theme-section-empty"},Uv={class:"library-card"},Yv={class:"library-name"},Kv={key:0,class:"library-version"},Wv={key:0,class:"library-components"},zv={key:4,class:"library-card"},Gv={class:"library-name"},Xv={class:"library-version"},qv=nt({__name:"ThemePage",props:{iframeRef:{}},setup(e){const t=e,{designSpec:n,isInitialized:l,isLoading:i}=co(),o=ng(ue(()=>t.iframeRef)),s=Br(),r=q("colors"),u=q(new Map),c=q(new Map),a=q(new Map),f=q(new Map),g=q(new Map),h=q([]),v=q([]),x=q([]),C=q([]),L=q([]),w=q(null),k=q(""),A=q(""),F=q(""),D=ue(()=>{var G;try{return((G=t.iframeRef)==null?void 0:G.contentDocument)??null}catch{return null}}),U=ue(()=>{var G;return((G=n.value)==null?void 0:G.colors)??[]}),ne=ue(()=>{var G,P;return((P=(G=n.value)==null?void 0:G.typography)==null?void 0:P.families)??[]}),T=ue(()=>{var G,P;return((P=(G=n.value)==null?void 0:G.typography)==null?void 0:P.scale)??[]}),j=ue(()=>{var G,P;return((P=(G=n.value)==null?void 0:G.typography)==null?void 0:P.weights)??[]}),X=ue(()=>{var G;return((G=n.value)==null?void 0:G.spacing)??[]}),ce=ue(()=>{var G,P;return((P=(G=n.value)==null?void 0:G.borders)==null?void 0:P.radius)??[]}),Te=ue(()=>{var G;return((G=n.value)==null?void 0:G.icons)??null}),Pe=ue(()=>{var G;return((G=n.value)==null?void 0:G.components)??null}),Xe=ue(()=>u.value.size+c.value.size+a.value.size+f.value.size+g.value.size+h.value.length+v.value.length+x.value.length+C.value.length+L.value.length);function Ce(G,P){u.value.set(G.role,P),u.value=new Map(u.value),G.cssVar&&o.setOverride(G.cssVar,P)}function pe(G,P,Fe){Fe.value.set(G.role,P),Fe.value=new Map(Fe.value),G.cssVar&&o.setOverride(G.cssVar,P)}function E(G,P){return P.get(G.role)??G.value}function z(G,P){const Fe=P.get(G.role);return Fe!==void 0&&Fe!==G.value}function le(G){w.value=G,k.value="",A.value="",F.value=""}function be(){w.value=null}function me(){if(!k.value.trim()||!A.value.trim())return;const G={role:k.value.trim(),value:A.value.trim(),cssVar:F.value.trim()||void 0,source:"new"};switch(w.value){case"colors":h.value=[...h.value,G];break;case"families":v.value=[...v.value,G];break;case"scale":x.value=[...x.value,G];break;case"spacing":C.value=[...C.value,G];break;case"radius":L.value=[...L.value,G];break}G.cssVar&&o.setOverride(G.cssVar,G.value),w.value=null}function Ye(G,P){const Fe=G.value[P];Fe.cssVar&&o.removeOverride(Fe.cssVar),G.value=G.value.filter((I,ve)=>ve!==P)}function Ke(){var ve,m;const G=[],P=((m=(ve=n.value)==null?void 0:ve.framework)==null?void 0:m.styling)??[];function Fe(b,$,V){const N=V.get($.role);!N||N===$.value||G.push({type:"theme_update",description:`Update ${b} "${$.role}" from ${$.value} to ${N}`,file:$.sourceFile||"",line:$.sourceLine||0,intent:`Change the ${$.role} ${b} token to ${N} across the application`,action:"theme_update",context:{category:b,role:$.role,before:$.value,after:N,cssVar:$.cssVar||null,source:$.source,sourceFile:$.sourceFile||null,sourceLine:$.sourceLine||null,styling:P}})}function I(b,$){G.push({type:"theme_update",description:`Add new ${b} token "${$.role}" with value ${$.value}`,file:"",line:0,intent:`Add a new ${$.role} ${b} token with value ${$.value} to the design system`,action:"theme_update",context:{category:b,role:$.role,before:null,after:$.value,cssVar:$.cssVar||null,source:null,sourceFile:null,sourceLine:null,styling:P,isNew:!0}})}for(const b of U.value)Fe("colors",b,u.value);for(const b of ne.value)Fe("typography.families",b,c.value);for(const b of T.value)Fe("typography.scale",b,a.value);for(const b of X.value)Fe("spacing",b,f.value);for(const b of ce.value)Fe("borders.radius",b,g.value);for(const b of h.value)I("colors",b);for(const b of v.value)I("typography.families",b);for(const b of x.value)I("typography.scale",b);for(const b of C.value)I("spacing",b);for(const b of L.value)I("borders.radius",b);return G}async function fe(){const G=Ke();for(const P of G)await s.createTask(P);u.value=new Map,c.value=new Map,a.value=new Map,f.value=new Map,g.value=new Map,h.value=[],v.value=[],x.value=[],C.value=[],L.value=[],o.clearAll()}function _e(){u.value=new Map,c.value=new Map,a.value=new Map,f.value=new Map,g.value=new Map,h.value=[],v.value=[],x.value=[],C.value=[],L.value=[],o.clearAll()}return(G,P)=>{var Fe;return y(),_("div",og,[d("div",sg,[P[25]||(P[25]=d("span",{class:"theme-title"},"Design Tokens",-1)),Xe.value>0?(y(),_("div",rg,[d("span",ag,R(Xe.value)+" change"+R(Xe.value===1?"":"s"),1),d("button",{class:"theme-btn commit",onClick:fe},"Commit"),d("button",{class:"theme-btn discard",onClick:_e},"Discard")])):Y("",!0)]),ee(i)?(y(),_("div",ug,[...P[26]||(P[26]=[d("p",null,"Loading design spec...",-1)])])):ee(l)?(y(),_(ie,{key:2},[d("div",dg,[d("button",{class:te(["theme-tab",{active:r.value==="colors"}]),onClick:P[0]||(P[0]=I=>r.value="colors")},[P[28]||(P[28]=rt(" Colors ",-1)),u.value.size+h.value.length?(y(),_("span",fg,R(u.value.size+h.value.length),1)):Y("",!0)],2),d("button",{class:te(["theme-tab",{active:r.value==="typography"}]),onClick:P[1]||(P[1]=I=>r.value="typography")},[P[29]||(P[29]=rt(" Type ",-1)),c.value.size+a.value.size+v.value.length+x.value.length?(y(),_("span",pg,R(c.value.size+a.value.size+v.value.length+x.value.length),1)):Y("",!0)],2),d("button",{class:te(["theme-tab",{active:r.value==="spacing"}]),onClick:P[2]||(P[2]=I=>r.value="spacing")},[P[30]||(P[30]=rt(" Spacing ",-1)),f.value.size+C.value.length?(y(),_("span",hg,R(f.value.size+C.value.length),1)):Y("",!0)],2),d("button",{class:te(["theme-tab",{active:r.value==="borders"}]),onClick:P[3]||(P[3]=I=>r.value="borders")},[P[31]||(P[31]=rt(" Borders ",-1)),g.value.size+L.value.length?(y(),_("span",gg,R(g.value.size+L.value.length),1)):Y("",!0)],2),d("button",{class:te(["theme-tab",{active:r.value==="libraries"}]),onClick:P[4]||(P[4]=I=>r.value="libraries")},"Libraries",2)]),d("div",vg,[r.value==="colors"?(y(),_("div",mg,[U.value.length===0&&h.value.length===0?(y(),_("div",yg,"No color tokens detected")):Y("",!0),(y(!0),_(ie,null,ye(U.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",bg,[d("span",{class:te(["token-role",{edited:z(I,u.value)}])},R(I.role),3),d("code",wg,R(I.source),1)]),d("div",_g,[d("div",xg,[tt(Nl,{modelValue:E(I,u.value),iframeDoc:D.value,"onUpdate:modelValue":ve=>Ce(I,ve)},null,8,["modelValue","iframeDoc","onUpdate:modelValue"])]),d("input",{class:"token-value-input color-hex",value:E(I,u.value),onChange:ve=>Ce(I,ve.target.value)},null,40,kg),I.cssVar?Y("",!0):(y(),_("span",Cg,"no preview"))])]))),128)),(y(!0),_(ie,null,ye(h.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",Ag,[d("span",Sg,"+ "+R(I.role),1)]),d("div",$g,[d("div",{class:"color-swatch-inline",style:Me({background:I.value})},null,4),d("code",Tg,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(h.value,ve)},"×",8,Eg)])]))),128)),w.value==="colors"?(y(),_("div",Fg,[Ve(d("input",{"onUpdate:modelValue":P[5]||(P[5]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. info)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[6]||(P[6]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. #3b82f6)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[7]||(P[7]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional, e.g. --color-info)"},null,512),[[He,F.value]]),d("div",Ig,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,Og),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:P[8]||(P[8]=I=>le("colors"))},"+ Add Color"))])):Y("",!0),r.value==="typography"?(y(),_("div",Pg,[P[32]||(P[32]=d("h4",{class:"section-subtitle"},"Font Families",-1)),ne.value.length===0&&v.value.length===0?(y(),_("div",Rg,"No font families detected")):Y("",!0),(y(!0),_(ie,null,ye(ne.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",Mg,[d("span",{class:te(["token-role",{edited:z(I,c.value)}])},R(I.role),3),d("code",Lg,R(I.source),1)]),d("div",Dg,[d("input",{class:"token-value-input wide",value:E(I,c.value),onChange:ve=>pe(I,ve.target.value,c.value)},null,40,Ng)])]))),128)),(y(!0),_(ie,null,ye(v.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",Vg,[d("span",Bg,"+ "+R(I.role),1)]),d("div",Hg,[d("code",jg,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(v.value,ve)},"×",8,Ug)])]))),128)),w.value==="families"?(y(),_("div",Yg,[Ve(d("input",{"onUpdate:modelValue":P[9]||(P[9]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. display)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[10]||(P[10]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. Poppins, sans-serif)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[11]||(P[11]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[He,F.value]]),d("div",Kg,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,Wg),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:P[12]||(P[12]=I=>le("families"))},"+ Add Family")),P[33]||(P[33]=d("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Font Scale",-1)),T.value.length===0&&x.value.length===0?(y(),_("div",zg,"No font sizes detected")):Y("",!0),(y(!0),_(ie,null,ye(T.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",Gg,[d("span",{class:te(["token-role",{edited:z(I,a.value)}])},R(I.role),3),d("code",Xg,R(I.source),1)]),d("div",qg,[d("input",{class:"token-value-input",value:E(I,a.value),onChange:ve=>pe(I,ve.target.value,a.value)},null,40,Jg),d("div",{class:"font-size-preview",style:Me({fontSize:E(I,a.value)})},"Aa",4)])]))),128)),(y(!0),_(ie,null,ye(x.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",Zg,[d("span",Qg,"+ "+R(I.role),1)]),d("div",ev,[d("code",tv,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(x.value,ve)},"×",8,nv)])]))),128)),w.value==="scale"?(y(),_("div",iv,[Ve(d("input",{"onUpdate:modelValue":P[13]||(P[13]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[14]||(P[14]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. 1.5rem)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[15]||(P[15]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[He,F.value]]),d("div",lv,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,ov),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:5,class:"add-token-btn",onClick:P[16]||(P[16]=I=>le("scale"))},"+ Add Size")),j.value.length?(y(),_("h4",sv,"Weights")):Y("",!0),j.value.length?(y(),_("div",rv,[(y(!0),_(ie,null,ye(j.value,I=>(y(),_("span",{key:I,class:"weight-chip"},R(I),1))),128))])):Y("",!0)])):Y("",!0),r.value==="spacing"?(y(),_("div",av,[X.value.length===0&&C.value.length===0?(y(),_("div",uv,"No spacing tokens detected")):Y("",!0),(y(!0),_(ie,null,ye(X.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",cv,[d("span",{class:te(["token-role",{edited:z(I,f.value)}])},R(I.role),3),d("code",dv,R(I.source),1)]),d("div",fv,[d("input",{class:"token-value-input",value:E(I,f.value),onChange:ve=>pe(I,ve.target.value,f.value)},null,40,pv),d("div",hv,[d("div",{class:"spacing-bar",style:Me({width:E(I,f.value)})},null,4)])])]))),128)),(y(!0),_(ie,null,ye(C.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",gv,[d("span",vv,"+ "+R(I.role),1)]),d("div",mv,[d("code",yv,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(C.value,ve)},"×",8,bv)])]))),128)),w.value==="spacing"?(y(),_("div",wv,[Ve(d("input",{"onUpdate:modelValue":P[17]||(P[17]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[18]||(P[18]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. 32px)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[19]||(P[19]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[He,F.value]]),d("div",_v,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,xv),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:P[20]||(P[20]=I=>le("spacing"))},"+ Add Spacing"))])):Y("",!0),r.value==="borders"?(y(),_("div",kv,[P[34]||(P[34]=d("h4",{class:"section-subtitle"},"Border Radius",-1)),ce.value.length===0&&L.value.length===0?(y(),_("div",Cv,"No border radius tokens detected")):Y("",!0),(y(!0),_(ie,null,ye(ce.value,I=>(y(),_("div",{key:I.role,class:"token-row"},[d("div",Av,[d("span",{class:te(["token-role",{edited:z(I,g.value)}])},R(I.role),3),d("code",Sv,R(I.source),1)]),d("div",$v,[d("input",{class:"token-value-input",value:E(I,g.value),onChange:ve=>pe(I,ve.target.value,g.value)},null,40,Tv),d("div",{class:"radius-preview",style:Me({borderRadius:E(I,g.value)})},null,4)])]))),128)),(y(!0),_(ie,null,ye(L.value,(I,ve)=>(y(),_("div",{key:"new-"+ve,class:"token-row new"},[d("div",Ev,[d("span",Fv,"+ "+R(I.role),1)]),d("div",Iv,[d("code",Ov,R(I.value),1),d("button",{class:"token-remove",onClick:m=>Ye(L.value,ve)},"×",8,Pv)])]))),128)),w.value==="radius"?(y(),_("div",Rv,[Ve(d("input",{"onUpdate:modelValue":P[21]||(P[21]=I=>k.value=I),class:"add-input",placeholder:"Role (e.g. xl)"},null,512),[[He,k.value]]),Ve(d("input",{"onUpdate:modelValue":P[22]||(P[22]=I=>A.value=I),class:"add-input",placeholder:"Value (e.g. 16px)"},null,512),[[He,A.value]]),Ve(d("input",{"onUpdate:modelValue":P[23]||(P[23]=I=>F.value=I),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[He,F.value]]),d("div",Mv,[d("button",{class:"theme-btn commit small",onClick:me,disabled:!k.value.trim()||!A.value.trim()},"Add",8,Lv),d("button",{class:"theme-btn discard small",onClick:be},"Cancel")])])):(y(),_("button",{key:2,class:"add-token-btn",onClick:P[24]||(P[24]=I=>le("radius"))},"+ Add Radius"))])):Y("",!0),r.value==="libraries"?(y(),_("div",Dv,[P[35]||(P[35]=d("h4",{class:"section-subtitle"},"Icons",-1)),Te.value?(y(),_("div",Vv,[d("span",Bv,R(Te.value.library),1),Te.value.version?(y(),_("span",Hv,"v"+R(Te.value.version),1)):Y("",!0)])):(y(),_("div",Nv,"No icon library detected")),P[36]||(P[36]=d("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Components",-1)),Pe.value?(y(),_(ie,{key:3},[d("div",Uv,[d("span",Yv,R(Pe.value.library),1),Pe.value.version?(y(),_("span",Kv,"v"+R(Pe.value.version),1)):Y("",!0)]),Pe.value.used.length?(y(),_("div",Wv,[(y(!0),_(ie,null,ye(Pe.value.used,I=>(y(),_("span",{key:I,class:"component-chip"},R(I),1))),128))])):Y("",!0)],64)):(y(),_("div",jv,"No component library detected")),P[37]||(P[37]=d("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Framework",-1)),(Fe=ee(n))!=null&&Fe.framework?(y(),_("div",zv,[d("span",Gv,R(ee(n).framework.name),1),d("span",Xv,"v"+R(ee(n).framework.version),1),(y(!0),_(ie,null,ye(ee(n).framework.styling,I=>(y(),_("span",{key:I,class:"styling-chip"},R(I),1))),128))])):Y("",!0)])):Y("",!0)])],64)):(y(),_("div",cg,[...P[27]||(P[27]=[d("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[d("circle",{cx:"12",cy:"12",r:"10"}),d("path",{d:"M12 8v4l2 2"})],-1),d("p",null,"No design spec found",-1),d("p",{class:"theme-empty-hint"},[rt("Run "),d("code",null,"/annotask-init"),rt(" in your AI assistant to scan your project's design system")],-1)])]))])}}}),Jv=ht(qv,[["__scopeId","data-v-67b64182"]]);var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _l={exports:{}},cs;function Qv(){return cs||(cs=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
21
21
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
22
22
|
*
|
|
23
23
|
* @license MIT <https://opensource.org/licenses/MIT>
|
|
24
24
|
* @author Lea Verou <https://lea.verou.me>
|
|
25
25
|
* @namespace
|
|
26
26
|
* @public
|
|
27
|
-
*/var n=(function(l){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},r={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function w(k){return k instanceof u?new u(k.type,w(k.content),k.alias):Array.isArray(k)?k.map(w):k.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(k,A){A=A||{};var F,L;switch(r.util.type(k)){case"Object":if(L=r.util.objId(k),A[L])return A[L];F={},A[L]=F;for(var U in k)k.hasOwnProperty(U)&&(F[U]=w(k[U],A));return F;case"Array":return L=r.util.objId(k),A[L]?A[L]:(F=[],A[L]=F,k.forEach(function(ne,T){F[T]=w(ne,A)}),F);default:return k}},getLanguage:function(w){for(;w;){var k=i.exec(w.className);if(k)return k[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,k){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+k)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(F){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack)||[])[1];if(w){var k=document.getElementsByTagName("script");for(var A in k)if(k[A].src==w)return k[A]}return null}},isActive:function(w,k,A){for(var F="no-"+k;w;){var L=w.classList;if(L.contains(k))return!0;if(L.contains(F))return!1;w=w.parentElement}return!!A}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(w,k){var A=r.util.clone(r.languages[w]);for(var F in k)A[F]=k[F];return A},insertBefore:function(w,k,A,F){F=F||r.languages;var L=F[w],U={};for(var ne in L)if(L.hasOwnProperty(ne)){if(ne==k)for(var T in A)A.hasOwnProperty(T)&&(U[T]=A[T]);A.hasOwnProperty(ne)||(U[ne]=L[ne])}var j=F[w];return F[w]=U,r.languages.DFS(r.languages,function(X,de){de===j&&X!=w&&(this[X]=U)}),U},DFS:function w(k,A,F,L){L=L||{};var U=r.util.objId;for(var ne in k)if(k.hasOwnProperty(ne)){A.call(k,ne,k[ne],F||ne);var T=k[ne],j=r.util.type(T);j==="Object"&&!L[U(T)]?(L[U(T)]=!0,w(T,A,null,L)):j==="Array"&&!L[U(T)]&&(L[U(T)]=!0,w(T,A,ne,L))}}},plugins:{},highlightAll:function(w,k){r.highlightAllUnder(document,w,k)},highlightAllUnder:function(w,k,A){var F={callback:A,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",F),F.elements=Array.prototype.slice.apply(F.container.querySelectorAll(F.selector)),r.hooks.run("before-all-elements-highlight",F);for(var L=0,U;U=F.elements[L++];)r.highlightElement(U,k===!0,F.callback)},highlightElement:function(w,k,A){var F=r.util.getLanguage(w),L=r.languages[F];r.util.setLanguage(w,F);var U=w.parentElement;U&&U.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(U,F);var ne=w.textContent,T={element:w,language:F,grammar:L,code:ne};function j(de){T.highlightedCode=de,r.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,r.hooks.run("after-highlight",T),r.hooks.run("complete",T),A&&A.call(T.element)}if(r.hooks.run("before-sanity-check",T),U=T.element.parentElement,U&&U.nodeName.toLowerCase()==="pre"&&!U.hasAttribute("tabindex")&&U.setAttribute("tabindex","0"),!T.code){r.hooks.run("complete",T),A&&A.call(T.element);return}if(r.hooks.run("before-highlight",T),!T.grammar){j(r.util.encode(T.code));return}if(k&&l.Worker){var X=new Worker(r.filename);X.onmessage=function(de){j(de.data)},X.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else j(r.highlight(T.code,T.grammar,T.language))},highlight:function(w,k,A){var F={code:w,grammar:k,language:A};if(r.hooks.run("before-tokenize",F),!F.grammar)throw new Error('The language "'+F.language+'" has no grammar.');return F.tokens=r.tokenize(F.code,F.grammar),r.hooks.run("after-tokenize",F),u.stringify(r.util.encode(F.tokens),F.language)},tokenize:function(w,k){var A=k.rest;if(A){for(var F in A)k[F]=A[F];delete k.rest}var L=new f;return g(L,L.head,w),a(w,L,k,L.head,0),v(L)},hooks:{all:{},add:function(w,k){var A=r.hooks.all;A[w]=A[w]||[],A[w].push(k)},run:function(w,k){var A=r.hooks.all[w];if(!(!A||!A.length))for(var F=0,L;L=A[F++];)L(k)}},Token:u};l.Prism=r;function u(w,k,A,F){this.type=w,this.content=k,this.alias=A,this.length=(F||"").length|0}u.stringify=function w(k,A){if(typeof k=="string")return k;if(Array.isArray(k)){var F="";return k.forEach(function(j){F+=w(j,A)}),F}var L={type:k.type,content:w(k.content,A),tag:"span",classes:["token",k.type],attributes:{},language:A},U=k.alias;U&&(Array.isArray(U)?Array.prototype.push.apply(L.classes,U):L.classes.push(U)),r.hooks.run("wrap",L);var ne="";for(var T in L.attributes)ne+=" "+T+'="'+(L.attributes[T]||"").replace(/"/g,""")+'"';return"<"+L.tag+' class="'+L.classes.join(" ")+'"'+ne+">"+L.content+"</"+L.tag+">"};function c(w,k,A,F){w.lastIndex=k;var L=w.exec(A);if(L&&F&&L[1]){var U=L[1].length;L.index+=U,L[0]=L[0].slice(U)}return L}function a(w,k,A,F,L,U){for(var ne in A)if(!(!A.hasOwnProperty(ne)||!A[ne])){var T=A[ne];T=Array.isArray(T)?T:[T];for(var j=0;j<T.length;++j){if(U&&U.cause==ne+","+j)return;var X=T[j],de=X.inside,Te=!!X.lookbehind,Pe=!!X.greedy,Xe=X.alias;if(Pe&&!X.pattern.global){var Ce=X.pattern.toString().match(/[imsuy]*$/)[0];X.pattern=RegExp(X.pattern.source,Ce+"g")}for(var he=X.pattern||X,E=F.next,z=L;E!==k.tail&&!(U&&z>=U.reach);z+=E.value.length,E=E.next){var le=E.value;if(k.length>w.length)return;if(!(le instanceof u)){var be=1,me;if(Pe){if(me=c(he,z,w,Te),!me||me.index>=w.length)break;var _e=me.index,Ye=me.index+me[0].length,Ke=z;for(Ke+=E.value.length;_e>=Ke;)E=E.next,Ke+=E.value.length;if(Ke-=E.value.length,z=Ke,E.value instanceof u)continue;for(var pe=E;pe!==k.tail&&(Ke<Ye||typeof pe.value=="string");pe=pe.next)be++,Ke+=pe.value.length;be--,le=w.slice(z,Ke),me.index-=z}else if(me=c(he,0,le,Te),!me)continue;var _e=me.index,G=me[0],P=le.slice(0,_e),Fe=le.slice(_e+G.length),I=z+le.length;U&&I>U.reach&&(U.reach=I);var ve=E.prev;P&&(ve=g(k,ve,P),z+=P.length),h(k,ve,be);var m=new u(ne,de?r.tokenize(G,de):G,Xe,G);if(E=g(k,ve,m),Fe&&g(k,E,Fe),be>1){var b={cause:ne+","+j,reach:I};a(w,k,A,E.prev,z,b),U&&b.reach>U.reach&&(U.reach=b.reach)}}}}}}function f(){var w={value:null,prev:null,next:null},k={value:null,prev:w,next:null};w.next=k,this.head=w,this.tail=k,this.length=0}function g(w,k,A){var F=k.next,L={value:A,prev:k,next:F};return k.next=L,F.prev=L,w.length++,L}function h(w,k,A){for(var F=k.next,L=0;L<A&&F!==w.tail;L++)F=F.next;k.next=F,F.prev=k,w.length-=L}function v(w){for(var k=[],A=w.head.next;A!==w.tail;)k.push(A.value),A=A.next;return k}if(!l.document)return l.addEventListener&&(r.disableWorkerMessageHandler||l.addEventListener("message",function(w){var k=JSON.parse(w.data),A=k.language,F=k.code,L=k.immediateClose;l.postMessage(r.highlight(F,r.languages[A],A)),L&&l.close()},!1)),r;var x=r.util.currentScript();x&&(r.filename=x.src,x.hasAttribute("data-manual")&&(r.manual=!0));function C(){r.manual||r.highlightAll()}if(!r.manual){var M=document.readyState;M==="loading"||M==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return r})(t);e.exports&&(e.exports=n),typeof as<"u"&&(as.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var s={};s["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};r["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var u={};u[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:r},n.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(l,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(l){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var o=l.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",i=function(x,C){return"✖ Error "+x+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",u="loading",c="loaded",a="failed",f="pre[data-src]:not(["+r+'="'+c+'"]):not(['+r+'="'+u+'"])';function g(x,C,M){var w=new XMLHttpRequest;w.open("GET",x,!0),w.onreadystatechange=function(){w.readyState==4&&(w.status<400&&w.responseText?C(w.responseText):w.status>=400?M(i(w.status,w.statusText)):M(o))},w.send(null)}function h(x){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(C){var M=Number(C[1]),w=C[2],k=C[3];return w?k?[M,Number(k)]:[M,void 0]:[M,M]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+f}),n.hooks.add("before-sanity-check",function(x){var C=x.element;if(C.matches(f)){x.code="",C.setAttribute(r,u);var M=C.appendChild(document.createElement("CODE"));M.textContent=l;var w=C.getAttribute("data-src"),k=x.language;if(k==="none"){var A=(/\.(\w+)$/.exec(w)||[,"none"])[1];k=s[A]||A}n.util.setLanguage(M,k),n.util.setLanguage(C,k);var F=n.plugins.autoloader;F&&F.loadLanguages(k),g(w,function(L){C.setAttribute(r,c);var U=h(C.getAttribute("data-range"));if(U){var ne=L.split(/\r\n?|\n/g),T=U[0],j=U[1]==null?ne.length:U[1];T<0&&(T+=ne.length),T=Math.max(0,Math.min(T-1,ne.length)),j<0&&(j+=ne.length),j=Math.max(0,Math.min(j,ne.length)),L=ne.slice(T,j).join(`
|
|
28
|
-
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(T+1))}
|
|
27
|
+
*/var n=(function(l){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},r={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function w(k){return k instanceof u?new u(k.type,w(k.content),k.alias):Array.isArray(k)?k.map(w):k.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(k,A){A=A||{};var F,D;switch(r.util.type(k)){case"Object":if(D=r.util.objId(k),A[D])return A[D];F={},A[D]=F;for(var U in k)k.hasOwnProperty(U)&&(F[U]=w(k[U],A));return F;case"Array":return D=r.util.objId(k),A[D]?A[D]:(F=[],A[D]=F,k.forEach(function(ne,T){F[T]=w(ne,A)}),F);default:return k}},getLanguage:function(w){for(;w;){var k=i.exec(w.className);if(k)return k[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,k){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+k)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(F){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack)||[])[1];if(w){var k=document.getElementsByTagName("script");for(var A in k)if(k[A].src==w)return k[A]}return null}},isActive:function(w,k,A){for(var F="no-"+k;w;){var D=w.classList;if(D.contains(k))return!0;if(D.contains(F))return!1;w=w.parentElement}return!!A}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(w,k){var A=r.util.clone(r.languages[w]);for(var F in k)A[F]=k[F];return A},insertBefore:function(w,k,A,F){F=F||r.languages;var D=F[w],U={};for(var ne in D)if(D.hasOwnProperty(ne)){if(ne==k)for(var T in A)A.hasOwnProperty(T)&&(U[T]=A[T]);A.hasOwnProperty(ne)||(U[ne]=D[ne])}var j=F[w];return F[w]=U,r.languages.DFS(r.languages,function(X,ce){ce===j&&X!=w&&(this[X]=U)}),U},DFS:function w(k,A,F,D){D=D||{};var U=r.util.objId;for(var ne in k)if(k.hasOwnProperty(ne)){A.call(k,ne,k[ne],F||ne);var T=k[ne],j=r.util.type(T);j==="Object"&&!D[U(T)]?(D[U(T)]=!0,w(T,A,null,D)):j==="Array"&&!D[U(T)]&&(D[U(T)]=!0,w(T,A,ne,D))}}},plugins:{},highlightAll:function(w,k){r.highlightAllUnder(document,w,k)},highlightAllUnder:function(w,k,A){var F={callback:A,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",F),F.elements=Array.prototype.slice.apply(F.container.querySelectorAll(F.selector)),r.hooks.run("before-all-elements-highlight",F);for(var D=0,U;U=F.elements[D++];)r.highlightElement(U,k===!0,F.callback)},highlightElement:function(w,k,A){var F=r.util.getLanguage(w),D=r.languages[F];r.util.setLanguage(w,F);var U=w.parentElement;U&&U.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(U,F);var ne=w.textContent,T={element:w,language:F,grammar:D,code:ne};function j(ce){T.highlightedCode=ce,r.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,r.hooks.run("after-highlight",T),r.hooks.run("complete",T),A&&A.call(T.element)}if(r.hooks.run("before-sanity-check",T),U=T.element.parentElement,U&&U.nodeName.toLowerCase()==="pre"&&!U.hasAttribute("tabindex")&&U.setAttribute("tabindex","0"),!T.code){r.hooks.run("complete",T),A&&A.call(T.element);return}if(r.hooks.run("before-highlight",T),!T.grammar){j(r.util.encode(T.code));return}if(k&&l.Worker){var X=new Worker(r.filename);X.onmessage=function(ce){j(ce.data)},X.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else j(r.highlight(T.code,T.grammar,T.language))},highlight:function(w,k,A){var F={code:w,grammar:k,language:A};if(r.hooks.run("before-tokenize",F),!F.grammar)throw new Error('The language "'+F.language+'" has no grammar.');return F.tokens=r.tokenize(F.code,F.grammar),r.hooks.run("after-tokenize",F),u.stringify(r.util.encode(F.tokens),F.language)},tokenize:function(w,k){var A=k.rest;if(A){for(var F in A)k[F]=A[F];delete k.rest}var D=new f;return g(D,D.head,w),a(w,D,k,D.head,0),v(D)},hooks:{all:{},add:function(w,k){var A=r.hooks.all;A[w]=A[w]||[],A[w].push(k)},run:function(w,k){var A=r.hooks.all[w];if(!(!A||!A.length))for(var F=0,D;D=A[F++];)D(k)}},Token:u};l.Prism=r;function u(w,k,A,F){this.type=w,this.content=k,this.alias=A,this.length=(F||"").length|0}u.stringify=function w(k,A){if(typeof k=="string")return k;if(Array.isArray(k)){var F="";return k.forEach(function(j){F+=w(j,A)}),F}var D={type:k.type,content:w(k.content,A),tag:"span",classes:["token",k.type],attributes:{},language:A},U=k.alias;U&&(Array.isArray(U)?Array.prototype.push.apply(D.classes,U):D.classes.push(U)),r.hooks.run("wrap",D);var ne="";for(var T in D.attributes)ne+=" "+T+'="'+(D.attributes[T]||"").replace(/"/g,""")+'"';return"<"+D.tag+' class="'+D.classes.join(" ")+'"'+ne+">"+D.content+"</"+D.tag+">"};function c(w,k,A,F){w.lastIndex=k;var D=w.exec(A);if(D&&F&&D[1]){var U=D[1].length;D.index+=U,D[0]=D[0].slice(U)}return D}function a(w,k,A,F,D,U){for(var ne in A)if(!(!A.hasOwnProperty(ne)||!A[ne])){var T=A[ne];T=Array.isArray(T)?T:[T];for(var j=0;j<T.length;++j){if(U&&U.cause==ne+","+j)return;var X=T[j],ce=X.inside,Te=!!X.lookbehind,Pe=!!X.greedy,Xe=X.alias;if(Pe&&!X.pattern.global){var Ce=X.pattern.toString().match(/[imsuy]*$/)[0];X.pattern=RegExp(X.pattern.source,Ce+"g")}for(var pe=X.pattern||X,E=F.next,z=D;E!==k.tail&&!(U&&z>=U.reach);z+=E.value.length,E=E.next){var le=E.value;if(k.length>w.length)return;if(!(le instanceof u)){var be=1,me;if(Pe){if(me=c(pe,z,w,Te),!me||me.index>=w.length)break;var _e=me.index,Ye=me.index+me[0].length,Ke=z;for(Ke+=E.value.length;_e>=Ke;)E=E.next,Ke+=E.value.length;if(Ke-=E.value.length,z=Ke,E.value instanceof u)continue;for(var fe=E;fe!==k.tail&&(Ke<Ye||typeof fe.value=="string");fe=fe.next)be++,Ke+=fe.value.length;be--,le=w.slice(z,Ke),me.index-=z}else if(me=c(pe,0,le,Te),!me)continue;var _e=me.index,G=me[0],P=le.slice(0,_e),Fe=le.slice(_e+G.length),I=z+le.length;U&&I>U.reach&&(U.reach=I);var ve=E.prev;P&&(ve=g(k,ve,P),z+=P.length),h(k,ve,be);var m=new u(ne,ce?r.tokenize(G,ce):G,Xe,G);if(E=g(k,ve,m),Fe&&g(k,E,Fe),be>1){var b={cause:ne+","+j,reach:I};a(w,k,A,E.prev,z,b),U&&b.reach>U.reach&&(U.reach=b.reach)}}}}}}function f(){var w={value:null,prev:null,next:null},k={value:null,prev:w,next:null};w.next=k,this.head=w,this.tail=k,this.length=0}function g(w,k,A){var F=k.next,D={value:A,prev:k,next:F};return k.next=D,F.prev=D,w.length++,D}function h(w,k,A){for(var F=k.next,D=0;D<A&&F!==w.tail;D++)F=F.next;k.next=F,F.prev=k,w.length-=D}function v(w){for(var k=[],A=w.head.next;A!==w.tail;)k.push(A.value),A=A.next;return k}if(!l.document)return l.addEventListener&&(r.disableWorkerMessageHandler||l.addEventListener("message",function(w){var k=JSON.parse(w.data),A=k.language,F=k.code,D=k.immediateClose;l.postMessage(r.highlight(F,r.languages[A],A)),D&&l.close()},!1)),r;var x=r.util.currentScript();x&&(r.filename=x.src,x.hasAttribute("data-manual")&&(r.manual=!0));function C(){r.manual||r.highlightAll()}if(!r.manual){var L=document.readyState;L==="loading"||L==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return r})(t);e.exports&&(e.exports=n),typeof us<"u"&&(us.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var s={};s["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};r["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var u={};u[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:r},n.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(l,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(l){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var o=l.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",i=function(x,C){return"✖ Error "+x+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",u="loading",c="loaded",a="failed",f="pre[data-src]:not(["+r+'="'+c+'"]):not(['+r+'="'+u+'"])';function g(x,C,L){var w=new XMLHttpRequest;w.open("GET",x,!0),w.onreadystatechange=function(){w.readyState==4&&(w.status<400&&w.responseText?C(w.responseText):w.status>=400?L(i(w.status,w.statusText)):L(o))},w.send(null)}function h(x){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(C){var L=Number(C[1]),w=C[2],k=C[3];return w?k?[L,Number(k)]:[L,void 0]:[L,L]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+f}),n.hooks.add("before-sanity-check",function(x){var C=x.element;if(C.matches(f)){x.code="",C.setAttribute(r,u);var L=C.appendChild(document.createElement("CODE"));L.textContent=l;var w=C.getAttribute("data-src"),k=x.language;if(k==="none"){var A=(/\.(\w+)$/.exec(w)||[,"none"])[1];k=s[A]||A}n.util.setLanguage(L,k),n.util.setLanguage(C,k);var F=n.plugins.autoloader;F&&F.loadLanguages(k),g(w,function(D){C.setAttribute(r,c);var U=h(C.getAttribute("data-range"));if(U){var ne=D.split(/\r\n?|\n/g),T=U[0],j=U[1]==null?ne.length:U[1];T<0&&(T+=ne.length),T=Math.max(0,Math.min(T-1,ne.length)),j<0&&(j+=ne.length),j=Math.max(0,Math.min(j,ne.length)),D=ne.slice(T,j).join(`
|
|
28
|
+
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(T+1))}L.textContent=D,n.highlightElement(L)},function(D){C.setAttribute(r,a),L.textContent=D})}}),n.plugins.fileHighlight={highlight:function(C){for(var L=(C||document).querySelectorAll(f),w=0,k;k=L[w++];)n.highlightElement(k)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(_l)),_l.exports}var e0=Qv();const ds=Zv(e0);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(r,u){u=(u||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return r});return RegExp(c,u)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml})(Prism);/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Hr(e){return typeof e>"u"||e===null}function t0(e){return typeof e=="object"&&e!==null}function n0(e){return Array.isArray(e)?e:Hr(e)?[]:[e]}function i0(e,t){var n,l,i,o;if(t)for(o=Object.keys(t),n=0,l=o.length;n<l;n+=1)i=o[n],e[i]=t[i];return e}function l0(e,t){var n="",l;for(l=0;l<t;l+=1)n+=e;return n}function o0(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var s0=Hr,r0=t0,a0=n0,u0=l0,c0=o0,d0=i0,Ge={isNothing:s0,isObject:r0,toArray:a0,repeat:u0,isNegativeZero:c0,extend:d0};function jr(e,t){var n="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
29
29
|
|
|
30
|
-
`+e.mark.snippet),l+" "+n):l}function ai(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=
|
|
31
|
-
`+r;for(c=
|
|
30
|
+
`+e.mark.snippet),l+" "+n):l}function ai(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=jr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ai.prototype=Object.create(Error.prototype);ai.prototype.constructor=ai;ai.prototype.toString=function(t){return this.name+": "+jr(this,t)};var ct=ai;function xl(e,t,n,l,i){var o="",s="",r=Math.floor(i/2)-1;return l-t>r&&(o=" ... ",t=l-r+o.length),n-l>r&&(s=" ...",n=l+r-s.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:l-t+o.length}}function kl(e,t){return Ge.repeat(" ",t-e.length)+e}function f0(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,l=[0],i=[],o,s=-1;o=n.exec(e.buffer);)i.push(o.index),l.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=l.length-2);s<0&&(s=l.length-1);var r="",u,c,a=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+a+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)c=xl(e.buffer,l[s-u],i[s-u],e.position-(l[s]-l[s-u]),f),r=Ge.repeat(" ",t.indent)+kl((e.line-u+1).toString(),a)+" | "+c.str+`
|
|
31
|
+
`+r;for(c=xl(e.buffer,l[s],i[s],e.position,f),r+=Ge.repeat(" ",t.indent)+kl((e.line+1).toString(),a)+" | "+c.str+`
|
|
32
32
|
`,r+=Ge.repeat("-",t.indent+a+3+c.pos)+`^
|
|
33
|
-
`,u=1;u<=t.linesAfter&&!(s+u>=i.length);u++)c=
|
|
34
|
-
`;return r.replace(/\n$/,"")}var f0
|
|
35
|
-
\r`;function
|
|
36
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function
|
|
37
|
-
`,t-1))}function
|
|
38
|
-
`,o?1+u:u):i===
|
|
33
|
+
`,u=1;u<=t.linesAfter&&!(s+u>=i.length);u++)c=xl(e.buffer,l[s+u],i[s+u],e.position-(l[s]-l[s+u]),f),r+=Ge.repeat(" ",t.indent)+kl((e.line+u+1).toString(),a)+" | "+c.str+`
|
|
34
|
+
`;return r.replace(/\n$/,"")}var p0=f0,h0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],g0=["scalar","sequence","mapping"];function v0(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(l){t[String(l)]=n})}),t}function m0(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(h0.indexOf(n)===-1)throw new ct('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=v0(t.styleAliases||null),g0.indexOf(this.kind)===-1)throw new ct('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Je=m0;function fs(e,t){var n=[];return e[t].forEach(function(l){var i=n.length;n.forEach(function(o,s){o.tag===l.tag&&o.kind===l.kind&&o.multi===l.multi&&(i=s)}),n[i]=l}),n}function y0(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function l(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(l);return e}function Ul(e){return this.extend(e)}Ul.prototype.extend=function(t){var n=[],l=[];if(t instanceof Je)l.push(t);else if(Array.isArray(t))l=l.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(l=l.concat(t.explicit));else throw new ct("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Je))throw new ct("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new ct("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new ct("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(o){if(!(o instanceof Je))throw new ct("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ul.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(l),i.compiledImplicit=fs(i,"implicit"),i.compiledExplicit=fs(i,"explicit"),i.compiledTypeMap=y0(i.compiledImplicit,i.compiledExplicit),i};var Ur=Ul,Yr=new Je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Kr=new Je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Wr=new Je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),zr=new Ur({explicit:[Yr,Kr,Wr]});function b0(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function w0(){return null}function _0(e){return e===null}var Gr=new Je("tag:yaml.org,2002:null",{kind:"scalar",resolve:b0,construct:w0,predicate:_0,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function x0(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function k0(e){return e==="true"||e==="True"||e==="TRUE"}function C0(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Xr=new Je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:x0,construct:k0,predicate:C0,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function A0(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function S0(e){return 48<=e&&e<=55}function $0(e){return 48<=e&&e<=57}function T0(e){if(e===null)return!1;var t=e.length,n=0,l=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;l=!0}return l&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!A0(e.charCodeAt(n)))return!1;l=!0}return l&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!S0(e.charCodeAt(n)))return!1;l=!0}return l&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!$0(e.charCodeAt(n)))return!1;l=!0}return!(!l||i==="_")}function E0(e){var t=e,n=1,l;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),l=t[0],(l==="-"||l==="+")&&(l==="-"&&(n=-1),t=t.slice(1),l=t[0]),t==="0")return 0;if(l==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function F0(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ge.isNegativeZero(e)}var qr=new Je("tag:yaml.org,2002:int",{kind:"scalar",resolve:T0,construct:E0,predicate:F0,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),I0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function O0(e){return!(e===null||!I0.test(e)||e[e.length-1]==="_")}function P0(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var R0=/^[-+]?[0-9]+e/;function M0(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ge.isNegativeZero(e))return"-0.0";return n=e.toString(10),R0.test(n)?n.replace("e",".e"):n}function L0(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ge.isNegativeZero(e))}var Jr=new Je("tag:yaml.org,2002:float",{kind:"scalar",resolve:O0,construct:P0,predicate:L0,represent:M0,defaultStyle:"lowercase"}),Zr=zr.extend({implicit:[Gr,Xr,qr,Jr]}),Qr=Zr,ea=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ta=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function D0(e){return e===null?!1:ea.exec(e)!==null||ta.exec(e)!==null}function N0(e){var t,n,l,i,o,s,r,u=0,c=null,a,f,g;if(t=ea.exec(e),t===null&&(t=ta.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],l=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,l,i));if(o=+t[4],s=+t[5],r=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(a=+t[10],f=+(t[11]||0),c=(a*60+f)*6e4,t[9]==="-"&&(c=-c)),g=new Date(Date.UTC(n,l,i,o,s,r,u)),c&&g.setTime(g.getTime()-c),g}function V0(e){return e.toISOString()}var na=new Je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:D0,construct:N0,instanceOf:Date,represent:V0});function B0(e){return e==="<<"||e===null}var ia=new Je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:B0}),fo=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
35
|
+
\r`;function H0(e){if(e===null)return!1;var t,n,l=0,i=e.length,o=fo;for(n=0;n<i;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;l+=6}return l%8===0}function j0(e){var t,n,l=e.replace(/[\r\n=]/g,""),i=l.length,o=fo,s=0,r=[];for(t=0;t<i;t++)t%4===0&&t&&(r.push(s>>16&255),r.push(s>>8&255),r.push(s&255)),s=s<<6|o.indexOf(l.charAt(t));return n=i%4*6,n===0?(r.push(s>>16&255),r.push(s>>8&255),r.push(s&255)):n===18?(r.push(s>>10&255),r.push(s>>2&255)):n===12&&r.push(s>>4&255),new Uint8Array(r)}function U0(e){var t="",n=0,l,i,o=e.length,s=fo;for(l=0;l<o;l++)l%3===0&&l&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[l];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function Y0(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var la=new Je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:H0,construct:j0,predicate:Y0,represent:U0}),K0=Object.prototype.hasOwnProperty,W0=Object.prototype.toString;function z0(e){if(e===null)return!0;var t=[],n,l,i,o,s,r=e;for(n=0,l=r.length;n<l;n+=1){if(i=r[n],s=!1,W0.call(i)!=="[object Object]")return!1;for(o in i)if(K0.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function G0(e){return e!==null?e:[]}var oa=new Je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:z0,construct:G0}),X0=Object.prototype.toString;function q0(e){if(e===null)return!0;var t,n,l,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(l=s[t],X0.call(l)!=="[object Object]"||(i=Object.keys(l),i.length!==1))return!1;o[t]=[i[0],l[i[0]]]}return!0}function J0(e){if(e===null)return[];var t,n,l,i,o,s=e;for(o=new Array(s.length),t=0,n=s.length;t<n;t+=1)l=s[t],i=Object.keys(l),o[t]=[i[0],l[i[0]]];return o}var sa=new Je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:q0,construct:J0}),Z0=Object.prototype.hasOwnProperty;function Q0(e){if(e===null)return!0;var t,n=e;for(t in n)if(Z0.call(n,t)&&n[t]!==null)return!1;return!0}function em(e){return e!==null?e:{}}var ra=new Je("tag:yaml.org,2002:set",{kind:"mapping",resolve:Q0,construct:em}),po=Qr.extend({implicit:[na,ia],explicit:[la,oa,sa,ra]}),ln=Object.prototype.hasOwnProperty,Bi=1,aa=2,ua=3,Hi=4,Cl=1,tm=2,ps=3,nm=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,im=/[\x85\u2028\u2029]/,lm=/[,\[\]\{\}]/,ca=/^(?:!|!!|![a-z\-]+!)$/i,da=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function hs(e){return Object.prototype.toString.call(e)}function Dt(e){return e===10||e===13}function yn(e){return e===9||e===32}function pt(e){return e===9||e===32||e===10||e===13}function Tn(e){return e===44||e===91||e===93||e===123||e===125}function om(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function sm(e){return e===120?2:e===117?4:e===85?8:0}function rm(e){return 48<=e&&e<=57?e-48:-1}function gs(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
36
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function am(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function fa(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var pa=new Array(256),ha=new Array(256);for(var Cn=0;Cn<256;Cn++)pa[Cn]=gs(Cn)?1:0,ha[Cn]=gs(Cn);function um(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||po,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ga(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=p0(n),new ct(t,n)}function se(e,t){throw ga(e,t)}function ji(e,t){e.onWarning&&e.onWarning.call(null,ga(e,t))}var vs={YAML:function(t,n,l){var i,o,s;t.version!==null&&se(t,"duplication of %YAML directive"),l.length!==1&&se(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),i===null&&se(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&se(t,"unacceptable YAML version of the document"),t.version=l[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&ji(t,"unsupported YAML version of the document")},TAG:function(t,n,l){var i,o;l.length!==2&&se(t,"TAG directive accepts exactly two arguments"),i=l[0],o=l[1],ca.test(i)||se(t,"ill-formed tag handle (first argument) of the TAG directive"),ln.call(t.tagMap,i)&&se(t,'there is a previously declared suffix for "'+i+'" tag handle'),da.test(o)||se(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{se(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function tn(e,t,n,l){var i,o,s,r;if(t<n){if(r=e.input.slice(t,n),l)for(i=0,o=r.length;i<o;i+=1)s=r.charCodeAt(i),s===9||32<=s&&s<=1114111||se(e,"expected valid JSON character");else nm.test(r)&&se(e,"the stream contains non-printable characters");e.result+=r}}function ms(e,t,n,l){var i,o,s,r;for(Ge.isObject(n)||se(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),s=0,r=i.length;s<r;s+=1)o=i[s],ln.call(t,o)||(fa(t,o,n[o]),l[o]=!0)}function En(e,t,n,l,i,o,s,r,u){var c,a;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,a=i.length;c<a;c+=1)Array.isArray(i[c])&&se(e,"nested arrays are not supported inside keys"),typeof i=="object"&&hs(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&hs(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,a=o.length;c<a;c+=1)ms(e,t,o[c],n);else ms(e,t,o,n);else!e.json&&!ln.call(n,i)&&ln.call(t,i)&&(e.line=s||e.line,e.lineStart=r||e.lineStart,e.position=u||e.position,se(e,"duplicated mapping key")),fa(t,i,o),delete n[i];return t}function ho(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):se(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function je(e,t,n){for(var l=0,i=e.input.charCodeAt(e.position);i!==0;){for(;yn(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Dt(i))for(ho(e),i=e.input.charCodeAt(e.position),l++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&l!==0&&e.lineIndent<n&&ji(e,"deficient indentation"),l}function ll(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||pt(n)))}function go(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ge.repeat(`
|
|
37
|
+
`,t-1))}function cm(e,t,n){var l,i,o,s,r,u,c,a,f=e.kind,g=e.result,h;if(h=e.input.charCodeAt(e.position),pt(h)||Tn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),pt(i)||n&&Tn(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,r=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),pt(i)||n&&Tn(i))break}else if(h===35){if(l=e.input.charCodeAt(e.position-1),pt(l))break}else{if(e.position===e.lineStart&&ll(e)||n&&Tn(h))break;if(Dt(h))if(u=e.line,c=e.lineStart,a=e.lineIndent,je(e,!1,-1),e.lineIndent>=t){r=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=c,e.lineIndent=a;break}}r&&(tn(e,o,s,!1),go(e,e.line-u),o=s=e.position,r=!1),yn(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return tn(e,o,s,!1),e.result?!0:(e.kind=f,e.result=g,!1)}function dm(e,t){var n,l,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(tn(e,l,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)l=e.position,e.position++,i=e.position;else return!0;else Dt(n)?(tn(e,l,i,!0),go(e,je(e,!1,t)),l=i=e.position):e.position===e.lineStart&&ll(e)?se(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);se(e,"unexpected end of the stream within a single quoted scalar")}function fm(e,t){var n,l,i,o,s,r;if(r=e.input.charCodeAt(e.position),r!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=l=e.position;(r=e.input.charCodeAt(e.position))!==0;){if(r===34)return tn(e,n,e.position,!0),e.position++,!0;if(r===92){if(tn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),Dt(r))je(e,!1,t);else if(r<256&&pa[r])e.result+=ha[r],e.position++;else if((s=sm(r))>0){for(i=s,o=0;i>0;i--)r=e.input.charCodeAt(++e.position),(s=om(r))>=0?o=(o<<4)+s:se(e,"expected hexadecimal character");e.result+=am(o),e.position++}else se(e,"unknown escape sequence");n=l=e.position}else Dt(r)?(tn(e,n,l,!0),go(e,je(e,!1,t)),n=l=e.position):e.position===e.lineStart&&ll(e)?se(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}se(e,"unexpected end of the stream within a double quoted scalar")}function pm(e,t){var n=!0,l,i,o,s=e.tag,r,u=e.anchor,c,a,f,g,h,v=Object.create(null),x,C,L,w;if(w=e.input.charCodeAt(e.position),w===91)a=93,h=!1,r=[];else if(w===123)a=125,h=!0,r={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=r),w=e.input.charCodeAt(++e.position);w!==0;){if(je(e,!0,t),w=e.input.charCodeAt(e.position),w===a)return e.position++,e.tag=s,e.anchor=u,e.kind=h?"mapping":"sequence",e.result=r,!0;n?w===44&&se(e,"expected the node content, but found ','"):se(e,"missed comma between flow collection entries"),C=x=L=null,f=g=!1,w===63&&(c=e.input.charCodeAt(e.position+1),pt(c)&&(f=g=!0,e.position++,je(e,!0,t))),l=e.line,i=e.lineStart,o=e.position,Dn(e,t,Bi,!1,!0),C=e.tag,x=e.result,je(e,!0,t),w=e.input.charCodeAt(e.position),(g||e.line===l)&&w===58&&(f=!0,w=e.input.charCodeAt(++e.position),je(e,!0,t),Dn(e,t,Bi,!1,!0),L=e.result),h?En(e,r,v,C,x,L,l,i,o):f?r.push(En(e,null,v,C,x,L,l,i,o)):r.push(x),je(e,!0,t),w=e.input.charCodeAt(e.position),w===44?(n=!0,w=e.input.charCodeAt(++e.position)):n=!1}se(e,"unexpected end of the stream within a flow collection")}function hm(e,t){var n,l,i=Cl,o=!1,s=!1,r=t,u=0,c=!1,a,f;if(f=e.input.charCodeAt(e.position),f===124)l=!1;else if(f===62)l=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Cl===i?i=f===43?ps:tm:se(e,"repeat of a chomping mode identifier");else if((a=rm(f))>=0)a===0?se(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?se(e,"repeat of an indentation width identifier"):(r=t+a-1,s=!0);else break;if(yn(f)){do f=e.input.charCodeAt(++e.position);while(yn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Dt(f)&&f!==0)}for(;f!==0;){for(ho(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<r)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>r&&(r=e.lineIndent),Dt(f)){u++;continue}if(e.lineIndent<r){i===ps?e.result+=Ge.repeat(`
|
|
38
|
+
`,o?1+u:u):i===Cl&&o&&(e.result+=`
|
|
39
39
|
`);break}for(l?yn(f)?(c=!0,e.result+=Ge.repeat(`
|
|
40
40
|
`,o?1+u:u)):c?(c=!1,e.result+=Ge.repeat(`
|
|
41
41
|
`,u+1)):u===0?o&&(e.result+=" "):e.result+=Ge.repeat(`
|
|
42
42
|
`,u):e.result+=Ge.repeat(`
|
|
43
|
-
`,o?1+u:u),o=!0,s=!0,u=0,n=e.position;!Dt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);
|
|
44
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new
|
|
43
|
+
`,o?1+u:u),o=!0,s=!0,u=0,n=e.position;!Dt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);tn(e,n,e.position,!1)}return!0}function ys(e,t){var n,l=e.tag,i=e.anchor,o=[],s,r=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,se(e,"tab characters must not be used in indentation")),!(u!==45||(s=e.input.charCodeAt(e.position+1),!pt(s))));){if(r=!0,e.position++,je(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,Dn(e,t,ua,!1,!0),o.push(e.result),je(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)se(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return r?(e.tag=l,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function gm(e,t,n){var l,i,o,s,r,u,c=e.tag,a=e.anchor,f={},g=Object.create(null),h=null,v=null,x=null,C=!1,L=!1,w;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),w=e.input.charCodeAt(e.position);w!==0;){if(!C&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,se(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),o=e.line,(w===63||w===58)&&pt(l))w===63?(C&&(En(e,f,g,h,v,null,s,r,u),h=v=x=null),L=!0,C=!0,i=!0):C?(C=!1,i=!0):se(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,w=l;else{if(s=e.line,r=e.lineStart,u=e.position,!Dn(e,n,aa,!1,!0))break;if(e.line===o){for(w=e.input.charCodeAt(e.position);yn(w);)w=e.input.charCodeAt(++e.position);if(w===58)w=e.input.charCodeAt(++e.position),pt(w)||se(e,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(En(e,f,g,h,v,null,s,r,u),h=v=x=null),L=!0,C=!1,i=!1,h=e.tag,v=e.result;else if(L)se(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=a,!0}else if(L)se(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=a,!0}if((e.line===o||e.lineIndent>t)&&(C&&(s=e.line,r=e.lineStart,u=e.position),Dn(e,t,Hi,!0,i)&&(C?v=e.result:x=e.result),C||(En(e,f,g,h,v,x,s,r,u),h=v=x=null),je(e,!0,-1),w=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&w!==0)se(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return C&&En(e,f,g,h,v,null,s,r,u),L&&(e.tag=c,e.anchor=a,e.kind="mapping",e.result=f),L}function vm(e){var t,n=!1,l=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&se(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(l=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):se(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!pt(s);)s===33&&(l?se(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),ca.test(i)||se(e,"named tag handle cannot contain such characters"),l=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),lm.test(o)&&se(e,"tag suffix cannot contain flow indicator characters")}o&&!da.test(o)&&se(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{se(e,"tag name is malformed: "+o)}return n?e.tag=o:ln.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:se(e,'undeclared tag handle "'+i+'"'),!0}function mm(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&se(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!pt(n)&&!Tn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&se(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ym(e){var t,n,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),t=e.position;l!==0&&!pt(l)&&!Tn(l);)l=e.input.charCodeAt(++e.position);return e.position===t&&se(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),ln.call(e.anchorMap,n)||se(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],je(e,!0,-1),!0}function Dn(e,t,n,l,i){var o,s,r,u=1,c=!1,a=!1,f,g,h,v,x,C;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=r=Hi===n||ua===n,l&&je(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;vm(e)||mm(e);)je(e,!0,-1)?(c=!0,r=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):r=!1;if(r&&(r=c||i),(u===1||Hi===n)&&(Bi===n||aa===n?x=t:x=t+1,C=e.position-e.lineStart,u===1?r&&(ys(e,C)||gm(e,C,x))||pm(e,x)?a=!0:(s&&hm(e,x)||dm(e,x)||fm(e,x)?a=!0:ym(e)?(a=!0,(e.tag!==null||e.anchor!==null)&&se(e,"alias node should not have any properties")):cm(e,x,Bi===n)&&(a=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(a=r&&ys(e,C))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&se(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,g=e.implicitTypes.length;f<g;f+=1)if(v=e.implicitTypes[f],v.resolve(e.result)){e.result=v.construct(e.result),e.tag=v.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ln.call(e.typeMap[e.kind||"fallback"],e.tag))v=e.typeMap[e.kind||"fallback"][e.tag];else for(v=null,h=e.typeMap.multi[e.kind||"fallback"],f=0,g=h.length;f<g;f+=1)if(e.tag.slice(0,h[f].tag.length)===h[f].tag){v=h[f];break}v||se(e,"unknown tag !<"+e.tag+">"),e.result!==null&&v.kind!==e.kind&&se(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+v.kind+'", not "'+e.kind+'"'),v.resolve(e.result,e.tag)?(e.result=v.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):se(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||a}function bm(e){var t=e.position,n,l,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(je(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!pt(s);)s=e.input.charCodeAt(++e.position);for(l=e.input.slice(n,e.position),i=[],l.length<1&&se(e,"directive name must not be less than one character in length");s!==0;){for(;yn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Dt(s));break}if(Dt(s))break;for(n=e.position;s!==0&&!pt(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}s!==0&&ho(e),ln.call(vs,l)?vs[l](e,l,i):ji(e,'unknown document directive "'+l+'"')}if(je(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,je(e,!0,-1)):o&&se(e,"directives end mark is expected"),Dn(e,e.lineIndent-1,Hi,!1,!0),je(e,!0,-1),e.checkLineBreaks&&im.test(e.input.slice(t,e.position))&&ji(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ll(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,je(e,!0,-1));return}if(e.position<e.length-1)se(e,"end of the stream or a document separator is expected");else return}function va(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
44
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new um(e,t),l=e.indexOf("\0");for(l!==-1&&(n.position=l,se(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)bm(n);return n.documents}function wm(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var l=va(e,n);if(typeof t!="function")return l;for(var i=0,o=l.length;i<o;i+=1)t(l[i])}function _m(e,t){var n=va(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new ct("expected a single document in the stream, but found more")}}var xm=wm,km=_m,ma={loadAll:xm,load:km},ya=Object.prototype.toString,ba=Object.prototype.hasOwnProperty,vo=65279,Cm=9,ui=10,Am=13,Sm=32,$m=33,Tm=34,Yl=35,Em=37,Fm=38,Im=39,Om=42,wa=44,Pm=45,Ui=58,Rm=61,Mm=62,Lm=63,Dm=64,_a=91,xa=93,Nm=96,ka=123,Vm=124,Ca=125,it={};it[0]="\\0";it[7]="\\a";it[8]="\\b";it[9]="\\t";it[10]="\\n";it[11]="\\v";it[12]="\\f";it[13]="\\r";it[27]="\\e";it[34]='\\"';it[92]="\\\\";it[133]="\\N";it[160]="\\_";it[8232]="\\L";it[8233]="\\P";var Bm=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Hm=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function jm(e,t){var n,l,i,o,s,r,u;if(t===null)return{};for(n={},l=Object.keys(t),i=0,o=l.length;i<o;i+=1)s=l[i],r=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&ba.call(u.styleAliases,r)&&(r=u.styleAliases[r]),n[s]=r;return n}function Um(e){var t,n,l;if(t=e.toString(16).toUpperCase(),e<=255)n="x",l=2;else if(e<=65535)n="u",l=4;else if(e<=4294967295)n="U",l=8;else throw new ct("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ge.repeat("0",l-t.length)+t}var Ym=1,ci=2;function Km(e){this.schema=e.schema||po,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ge.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=jm(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?ci:Ym,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function bs(e,t){for(var n=Ge.repeat(" ",t),l=0,i=-1,o="",s,r=e.length;l<r;)i=e.indexOf(`
|
|
45
45
|
`,l),i===-1?(s=e.slice(l),l=r):(s=e.slice(l,i+1),l=i+1),s.length&&s!==`
|
|
46
|
-
`&&(o+=n),o+=s;return o}function
|
|
47
|
-
`+Ge.repeat(" ",e.indent*t)}function
|
|
46
|
+
`&&(o+=n),o+=s;return o}function Kl(e,t){return`
|
|
47
|
+
`+Ge.repeat(" ",e.indent*t)}function Wm(e,t){var n,l,i;for(n=0,l=e.implicitTypes.length;n<l;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Yi(e){return e===Sm||e===Cm}function di(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==vo||65536<=e&&e<=1114111}function ws(e){return di(e)&&e!==vo&&e!==Am&&e!==ui}function _s(e,t,n){var l=ws(e),i=l&&!Yi(e);return(n?l:l&&e!==wa&&e!==_a&&e!==xa&&e!==ka&&e!==Ca)&&e!==Yl&&!(t===Ui&&!i)||ws(t)&&!Yi(t)&&e===Yl||t===Ui&&i}function zm(e){return di(e)&&e!==vo&&!Yi(e)&&e!==Pm&&e!==Lm&&e!==Ui&&e!==wa&&e!==_a&&e!==xa&&e!==ka&&e!==Ca&&e!==Yl&&e!==Fm&&e!==Om&&e!==$m&&e!==Vm&&e!==Rm&&e!==Mm&&e!==Im&&e!==Tm&&e!==Em&&e!==Dm&&e!==Nm}function Gm(e){return!Yi(e)&&e!==Ui}function Gn(e,t){var n=e.charCodeAt(t),l;return n>=55296&&n<=56319&&t+1<e.length&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(n-55296)*1024+l-56320+65536:n}function Aa(e){var t=/^\n* /;return t.test(e)}var Sa=1,Wl=2,$a=3,Ta=4,$n=5;function Xm(e,t,n,l,i,o,s,r){var u,c=0,a=null,f=!1,g=!1,h=l!==-1,v=-1,x=zm(Gn(e,0))&&Gm(Gn(e,e.length-1));if(t||s)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Gn(e,u),!di(c))return $n;x=x&&_s(c,a,r),a=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Gn(e,u),c===ui)f=!0,h&&(g=g||u-v-1>l&&e[v+1]!==" ",v=u);else if(!di(c))return $n;x=x&&_s(c,a,r),a=c}g=g||h&&u-v-1>l&&e[v+1]!==" "}return!f&&!g?x&&!s&&!i(e)?Sa:o===ci?$n:Wl:n>9&&Aa(e)?$n:s?o===ci?$n:Wl:g?Ta:$a}function qm(e,t,n,l,i){e.dump=(function(){if(t.length===0)return e.quotingType===ci?'""':"''";if(!e.noCompatMode&&(Bm.indexOf(t)!==-1||Hm.test(t)))return e.quotingType===ci?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),r=l||e.flowLevel>-1&&n>=e.flowLevel;function u(c){return Wm(e,c)}switch(Xm(t,r,e.indent,s,u,e.quotingType,e.forceQuotes&&!l,i)){case Sa:return t;case Wl:return"'"+t.replace(/'/g,"''")+"'";case $a:return"|"+xs(t,e.indent)+ks(bs(t,o));case Ta:return">"+xs(t,e.indent)+ks(bs(Jm(t,s),o));case $n:return'"'+Zm(t)+'"';default:throw new ct("impossible error: invalid scalar style")}})()}function xs(e,t){var n=Aa(e)?String(t):"",l=e[e.length-1]===`
|
|
48
48
|
`,i=l&&(e[e.length-2]===`
|
|
49
49
|
`||e===`
|
|
50
50
|
`),o=i?"+":l?"":"-";return n+o+`
|
|
51
|
-
`}function
|
|
52
|
-
`?e.slice(0,-1):e}function
|
|
53
|
-
`);return c=c!==-1?c:e.length,n.lastIndex=c,
|
|
51
|
+
`}function ks(e){return e[e.length-1]===`
|
|
52
|
+
`?e.slice(0,-1):e}function Jm(e,t){for(var n=/(\n+)([^\n]*)/g,l=(function(){var c=e.indexOf(`
|
|
53
|
+
`);return c=c!==-1?c:e.length,n.lastIndex=c,Cs(e.slice(0,c),t)})(),i=e[0]===`
|
|
54
54
|
`||e[0]===" ",o,s;s=n.exec(e);){var r=s[1],u=s[2];o=u[0]===" ",l+=r+(!i&&!o&&u!==""?`
|
|
55
|
-
`:"")+
|
|
55
|
+
`:"")+Cs(u,t),i=o}return l}function Cs(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,l,i=0,o,s=0,r=0,u="";l=n.exec(e);)r=l.index,r-i>t&&(o=s>i?s:r,u+=`
|
|
56
56
|
`+e.slice(i,o),i=o+1),s=r;return u+=`
|
|
57
57
|
`,e.length-i>t&&s>i?u+=e.slice(i,s)+`
|
|
58
|
-
`+e.slice(s+1):u+=e.slice(i),u.slice(1)}function
|
|
59
|
-
`:""}var i1=n1,l1={dump:i1};function vo(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var o1=Je,s1=jr,r1=Wr,a1=Jr,u1=Zr,c1=fo,d1=va.load,f1=va.loadAll,p1=l1.dump,h1=ct,g1={binary:ia,float:qr,map:Kr,null:zr,pairs:oa,set:sa,timestamp:ta,bool:Gr,int:Xr,merge:na,omap:la,seq:Yr,str:Ur},v1=vo("safeLoad","load"),m1=vo("safeLoadAll","loadAll"),y1=vo("safeDump","dump"),b1={Type:o1,Schema:s1,FAILSAFE_SCHEMA:r1,JSON_SCHEMA:a1,CORE_SCHEMA:u1,DEFAULT_SCHEMA:c1,load:d1,loadAll:f1,dump:p1,YAMLException:h1,types:g1,safeLoad:v1,safeLoadAll:m1,safeDump:y1};const w1={class:"report-drawer"},_1={class:"report-header"},x1={class:"report-title"},k1={key:0,class:"report-badge"},C1={class:"report-controls"},A1={class:"format-toggle"},S1=["disabled"],$1={key:0,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},T1={class:"report-body"},E1={key:0,class:"report-code"},F1=["innerHTML"],I1={key:1,class:"report-empty"},O1=nt({__name:"ReportViewer",props:{tasks:{}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,i=q("json"),o=q(!1),s=ce(()=>n.tasks.length?{version:"1.0",tasks:n.tasks}:null),r=ce(()=>s.value?i.value==="yaml"?b1.dump(s.value,{indent:2,lineWidth:120,noRefs:!0}):JSON.stringify(s.value,null,2):""),u=q("");mt([r,i],()=>{Zs(()=>{const g=i.value==="yaml"?"yaml":"json",h=cs.languages[g];u.value=h?cs.highlight(r.value,h,g):c(r.value)})},{immediate:!0});function c(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function a(){navigator.clipboard.writeText(r.value),o.value=!0,setTimeout(()=>o.value=!1,2e3)}function f(g){g.key==="Escape"&&l("close")}return(g,h)=>(y(),_("div",{class:"report-overlay",onKeydown:f,tabindex:"-1"},[d("div",{class:"report-backdrop",onClick:h[0]||(h[0]=v=>l("close"))}),d("aside",w1,[d("header",_1,[d("div",x1,[h[4]||(h[4]=d("span",null,"Tasks",-1)),e.tasks.length?(y(),_("span",k1,R(e.tasks.length)+" task"+R(e.tasks.length===1?"":"s"),1)):Y("",!0)]),d("div",C1,[d("div",A1,[d("button",{class:te(["fmt-btn",{active:i.value==="json"}]),onClick:h[1]||(h[1]=v=>i.value="json")},"JSON",2),d("button",{class:te(["fmt-btn",{active:i.value==="yaml"}]),onClick:h[2]||(h[2]=v=>i.value="yaml")},"YAML",2)]),d("button",{class:"copy-btn",onClick:a,disabled:!s.value},[o.value?Y("",!0):(y(),_("svg",$1,[...h[5]||(h[5]=[d("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1),d("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])])),rt(" "+R(o.value?"Copied!":"Copy"),1)],8,S1),d("button",{class:"close-btn",onClick:h[3]||(h[3]=v=>l("close")),title:"Close (Esc)"},[...h[6]||(h[6]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),d("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),d("div",T1,[s.value?(y(),_("pre",E1,[d("code",{innerHTML:u.value},null,8,F1)])):(y(),_("div",I1,[...h[7]||(h[7]=[d("p",null,"No tasks yet.",-1),d("p",{class:"report-empty-hint"},"Pin elements, draw sections, or add annotations to create tasks for your coding agent.",-1)])]))])])],32))}}),P1={class:"annotask-shell"},R1={class:"toolbar"},M1={class:"toolbar-left"},L1={class:"view-toggle"},D1={key:0,class:"toolbar-center"},N1={class:"route-indicator"},V1={key:1,class:"toolbar-center"},B1={key:2,class:"toolbar-right"},H1={class:"panel-toggle"},j1={key:0,class:"toggle-badge"},U1={class:"visibility-toggles"},Y1={key:0,class:"change-count"},K1={key:3,class:"toolbar-right"},W1={key:0,class:"warning-banner"},z1={key:1,class:"setup-banner"},G1={class:"main"},X1=["src"],q1={key:0,class:"hover-label"},J1={class:"hover-tag"},Z1={key:0,class:"hover-comp"},Q1={key:0,class:"select-label"},ey={key:0,class:"theme-panel"},ty={key:1,class:"panel"},ny={class:"panel-source"},iy={key:2,class:"panel"},ly={class:"pending-task-panel"},oy={class:"pending-task-context"},sy={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ry={key:1,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},ay={class:"pending-task-file"},uy=["onKeydown"],cy={class:"pending-task-actions"},dy=["disabled"],fy={key:3,class:"panel"},py={class:"panel-source"},hy={class:"component-badge"},gy={key:0,class:"new-task-form"},vy=["onKeydown"],my={class:"new-task-actions"},yy=["disabled"],by={class:"tab-content"},wy={key:0,class:"empty-hint",style:{padding:"20px 0"}},_y={class:"task-card-header"},xy={class:"task-card-desc"},ky=["onClick"],Cy={class:"task-card-meta"},Ay={class:"task-card-file"},Sy={key:0,class:"task-route-badge"},$y={key:0,class:"task-card-feedback"},Ty={key:1,class:"task-card-actions"},Ey=["onClick"],Fy=["onClick"],Iy=["onKeydown"],Oy=["disabled","onClick"],Py={key:4,class:"panel"},Ry={class:"panel-source"},My={class:"source-path"},Ly={class:"component-badge"},Dy={key:0,class:"panel-group-bar"},Ny={class:"group-summary"},Vy={key:0,class:"group-toggle"},By={class:"toggle-label"},Hy={class:"panel-tabs"},jy={key:0,class:"tab-badge"},Uy={class:"tab-content"},Yy={key:4,class:"classes-tab"},Ky=["onKeydown"],Wy={key:1,class:"changes-footer"},zy={class:"changes-summary"},Gy={class:"changes-list"},Xy={class:"change-prop"},qy={class:"change-val"},Jy={class:"change-prop"},Zy={class:"change-val"},Qy={key:5,class:"panel empty"},eb=nt({__name:"App",setup(e){const t=tp(),{applyStyle:n,recordAnnotation:l,recordClassChange:i,removeAnnotationsByFile:o,changes:s}=t;async function r(){const S=t.undo();S&&(S.type==="style"&&S.eid?await C.undoStyle(S.eid,S.property,S.value||""):S.type==="class"&&S.eid?await C.undoClass(S.eid,S.classes||""):S.type==="insert_remove"&&S.eid&&await C.removePlaceholder(S.eid),await oe())}async function u(){const S=t.clearChanges();for(const p of S)await C.removePlaceholder(p)}const c=lp(),a=Vr(),f=q(null),{mode:g}=np(),{isInitialized:h}=uo(),v=q(localStorage.getItem("annotask:shellView")==="theme"?"theme":"editor");mt(v,S=>localStorage.setItem("annotask:shellView",S));const x=ip(f),C=cp(f),{currentRoute:M}=C,w=dp(c,(S,p)=>C.resolveElementAt(S,p),()=>g.value,bi),{drawingArrow:k,drawingRect:A,onCanvasPointerDown:F,onCanvasPointerMove:L,onCanvasPointerUp:U}=w;mt(g,S=>{C.setMode(S),S==="interact"&&(pe.value=null,_e.value=[],G.value=[],W.value=null,K.value=null)});const ne=q(!1),T=q(!1),j=q("layout"),X=q({pins:!0,arrows:!0,sections:!0,highlights:!0}),de=q(localStorage.getItem("annotask:showTaskPanel")==="true");mt(de,S=>localStorage.setItem("annotask:showTaskPanel",String(S)));const Te=q(!1),Pe=q(""),Xe=q(null),Ce=q(""),he=q(localStorage.getItem("annotask:showShortcuts")==="true");mt(he,S=>localStorage.setItem("annotask:showShortcuts",String(S)));const E=q(null),z=q(""),le=ce(()=>a.tasks.value);function be(S){const p=a.tasks.value.find(D=>D.id===S);if(p!=null&&p.visual){const D=p.visual;if(D.annotationId)D.kind==="pin"?c.removePin(D.annotationId):D.kind==="arrow"?c.removeArrow(D.annotationId):D.kind==="section"&&c.removeDrawnSection(D.annotationId);else if(D.kind==="pin"){const Q=c.getPinsForElement(p.file,p.line);for(const ue of Q)c.removePin(ue.id)}else if(D.kind==="arrow"){const Q=c.arrows.value.find(ue=>Math.abs(ue.fromX-D.fromX)<5&&Math.abs(ue.fromY-D.fromY)<5);Q&&c.removeArrow(Q.id)}else if(D.kind==="section"){const Q=c.drawnSections.value.find(ue=>Math.abs(ue.x-D.x)<5&&Math.abs(ue.y-D.y)<5);Q&&c.removeDrawnSection(Q.id)}}p.file&&p.line!=null&&o(p.file,p.line),a.updateTaskStatus(S,"accepted")}function me(S){Ce.value.trim()&&(a.updateTaskStatus(S,"denied",Ce.value.trim()),Xe.value=null,Ce.value="")}function Ye(){const S=Pe.value.trim();S&&(ze({type:"annotation",description:S,file:"",line:0}),Pe.value="",Te.value=!1)}const Ke=q(null),pe=q(null),_e=q([]),G=q([]),P=q(!0),Fe=ce(()=>_e.value.length>1?_e.value:P.value&&G.value.length>1?G.value:pe.value?[pe.value.eid]:[]),I=q([]),ve=q([]);let m=0;async function b(){const S=++m;if(_e.value.length>0){const p=await C.getElementRects(_e.value);if(S!==m)return;I.value=p.filter(D=>D!==null)}else I.value=[];if(P.value&&_e.value.length<=1&&G.value.length>0){const p=G.value.filter(Q=>!_e.value.includes(Q)),D=await C.getElementRects(p);if(S!==m)return;ve.value=D.filter(Q=>Q!==null)}else ve.value=[]}mt([_e,G,P],b,{deep:!0});const $=ce(()=>{const S=_e.value.length,p=G.value.length;return S>1?`${S} elements selected`:p>1?`1 selected · ${p} instances in template`:null}),V=q(null);async function N(){if(!pe.value){V.value=null;return}const S=await C.classifyElement(pe.value.eid);V.value=(S==null?void 0:S.role)||null}const B=q({}),J=q(""),W=q(null),K=q(null),H=["display","position","width","height","min-width","max-width","min-height","max-height","padding","padding-top","padding-right","padding-bottom","padding-left","margin","margin-top","margin-right","margin-bottom","margin-left","gap","flex-direction","align-items","justify-content","flex-wrap","background-color","color","font-size","font-weight","font-family","text-align","line-height","letter-spacing","border","border-radius","border-color","border-width","opacity","overflow","box-shadow"];async function oe(){var S;(S=pe.value)!=null&&S.eid&&(B.value=await C.getComputedStyles(pe.value.eid,H))}async function Z(){C.initBridgeForIframe(),C.onBridgeReady(async()=>{C.setMode(g.value),ne.value=!await C.checkSourceMapping();const S=await C.getCurrentRoute();c.setRoute(S),We(),x.showOverlay.value&&x.scan()})}function re(){C.onBridgeEvent("hover:enter",S=>{const p=C.toShellRect(S.rect);W.value=p,K.value=S.file?{tag:S.tag,file:S.file,component:S.component}:null}),C.onBridgeEvent("hover:leave",()=>{W.value=null,K.value=null}),C.onBridgeEvent("click:element",async S=>{const{file:p,line:D,component:Q,tag:ue,classes:Ie,eid:O,shiftKey:Se,clientX:sn,clientY:sl}=S,rn=C.toShellRect(S.rect);if(g.value==="pin"){const $t=rn?rn.x+rn.width/2:sn,yo=rn?rn.y:sl,Oa=c.addPin({file:p,line:D,component:Q,elementTag:ue,elementClasses:Ie},$t,yo);pe.value={file:p,line:D,component:Q,tagName:ue,classes:Ie,eid:O},_e.value=[O],await oe(),await N(),E.value={kind:"pin",label:`Pin on ${wn({component:Q,tag:ue,classes:Ie})}`,file:p,line:D,component:Q,annotationId:Oa.id,meta:{elementTag:ue,elementClasses:Ie,pinX:$t,pinY:yo}},z.value="";return}if(Se&&pe.value){const $t=_e.value.indexOf(O);$t>=0?(_e.value.splice($t,1),_e.value.length===0&&(pe.value=null,G.value=[])):_e.value.push(O),await b()}else{pe.value={file:p,line:D,component:Q,tagName:ue,classes:Ie,eid:O},_e.value=[O];const $t=await C.findTemplateGroup(p,D,ue);G.value=$t.eids,P.value=$t.eids.length>1,J.value=Ie,await oe(),await N(),await b()}W.value=null}),C.onBridgeEvent("contextmenu:element",async S=>{const{file:p,line:D,component:Q,tag:ue,classes:Ie,eid:O}=S,Se=C.toShellRect(S.rect);pe.value={file:p,line:D,component:Q,tagName:ue,classes:Ie,eid:O},_e.value=[O],await oe(),await N(),xe.value={visible:!0,x:Se?Se.x+Se.width/2:S.clientX,y:Se?Se.y+Se.height/2:S.clientY}}),C.onBridgeEvent("selection:text",S=>{const p=f.value,D=(p==null?void 0:p.getBoundingClientRect().left)||0,Q=(p==null?void 0:p.getBoundingClientRect().top)||0;Ke.value={text:S.text,x:D+100,y:Q+100,file:S.file,line:S.line,component:S.component,tag:S.tag}}),C.onBridgeEvent("keydown",S=>{(S.ctrlKey||S.metaKey)&&S.key==="z"&&!S.shiftKey&&r()}),C.onBridgeEvent("route:changed",S=>{c.setRoute(S.path)})}async function ae(S,p){if(!pe.value)return;const D={file:pe.value.file,line:pe.value.line,component:pe.value.component},Q=Fe.value;for(const ue of Q){const Ie=await C.applyStyleVia(ue,S,p);n(ue,S,p,Ie,D)}await oe()}async function we(){if(!pe.value)return;const S=pe.value.classes,p=J.value;if(S===p)return;const D={file:pe.value.file,line:pe.value.line,component:pe.value.component},Q=Fe.value;for(const ue of Q)await C.setClass(ue,p),i(ue,S,p,D);pe.value.classes=p,await oe()}const xe=q({visible:!1,x:0,y:0});async function Ee(S){if(!pe.value)return;const p=pe.value,D=[{file:p.file,line:p.line,component:p.component,tag:p.tagName,classes:p.classes}];for(const O of D)if(l({file:O.file,line:O.line,component:O.component,intent:S,elementTag:O.tag,elementClasses:O.classes}),c.getPinsForElement(O.file,parseInt(O.line)).length===0){const sn=I.value[0],sl=sn?sn.x+sn.width/2:100,rn=sn?sn.y+10:100,$t=c.addPin({file:O.file,line:O.line,component:O.component,elementTag:O.tag,elementClasses:O.classes},sl,rn);c.updatePinNote($t.id,S)}const Q=D[0],ue=c.getPinsForElement(Q.file,parseInt(Q.line)),Ie=ue.length>0?{x:ue[0].clickX,y:ue[0].clickY}:null;ze({type:"annotation",description:S,file:Q.file,line:parseInt(Q.line)||0,component:Q.component,visual:Ie?{kind:"pin",annotationId:ue[0].id,x:Ie.x,y:Ie.y}:void 0,context:{element_tag:Q.tag,element_classes:Q.classes,...D.length>1?{elements:D.map(O=>({tag:O.tag,classes:O.classes,component:O.component,file:O.file,line:parseInt(O.line)||0}))}:{}}})}function Ne(S,p){if(!pe.value)return;const D=pe.value,Q=[{file:D.file,line:D.line,component:D.component,tag:D.tagName,classes:D.classes}];for(const Ie of Q)l({file:Ie.file,line:Ie.line,component:Ie.component,intent:p,action:S,elementTag:Ie.tag,elementClasses:Ie.classes});const ue=Q[0];ze({type:"annotation",description:p,file:ue.file,line:parseInt(ue.line)||0,component:ue.component,action:S,context:{element_tag:ue.tag,element_classes:ue.classes}})}async function We(){await a.fetchTasks();const S=M.value;for(const p of a.tasks.value){if(p.route&&p.route!==S||p.status==="accepted")continue;const D=p.visual;if(D){if(D.kind==="pin"&&D.x&&D.y){if(c.getPinsForElement(p.file,p.line).length===0){const ue=c.addPin({file:p.file,line:String(p.line),component:p.component||"",elementTag:D.element_tag||"",elementClasses:""},D.x,D.y);c.updatePinNote(ue.id,p.description)}}else if(D.kind==="arrow")c.addArrow(D.fromX,D.fromY,D.toX,D.toY,D.label||p.description);else if(D.kind==="section"){const Q=c.addDrawnSection(D.x,D.y,D.width,D.height);(p.prompt||p.description)&&c.updateDrawnSection(Q.id,{prompt:p.prompt||p.description,nearFile:p.file,nearLine:p.line})}}}}function ze(S){return a.createTask({...S,route:M.value})}function wt(S){if(!Ke.value||!S.trim())return;const p=Ke.value,D=c.addHighlight(p.text,{file:p.file,line:p.line,component:p.component,elementTag:p.tag});c.updateHighlight(D.id,{prompt:S.trim()});const Q=`Change "${p.text}" → ${S.trim()}`;l({file:p.file,line:String(p.line),component:p.component,intent:Q,action:"text_edit",elementTag:p.tag}),ze({type:"annotation",description:Q,file:p.file,line:p.line,component:p.component,action:"text_edit",context:{element_tag:p.tag,selected_text:p.text}}),Ke.value=null}function on(){Ke.value=null}const Vn=new Set;function lt(S){const p=c.drawnSections.value.find(D=>D.id===S);!p||!p.prompt.trim()||Vn.has(S)||(Vn.add(S),l({file:p.nearFile||"",line:String(p.nearLine||0),component:p.nearComponent||"",intent:p.prompt.trim(),action:"section_request"}),ze({type:"section_request",description:p.prompt.trim(),file:p.nearFile||"",line:p.nearLine||0,component:p.nearComponent||"",placement:p.placement||"",visual:{kind:"section",annotationId:p.id,x:Math.round(p.x),y:Math.round(p.y),width:Math.round(p.width),height:Math.round(p.height)}}))}const ht=new Set;function wn(S){var Q;if(!S)return"element";const p=S.tag||"element",D=(Q=S.classes)==null?void 0:Q.split(" ").find(ue=>ue&&!ue.startsWith("data-"));return S.component&&D?`<${p}.${D}> in ${S.component}`:S.component&&S.tag!==S.component.toLowerCase()?`<${p}> in ${S.component}`:D?`<${p}.${D}>`:`<${p}>`}function bi(S,p,D){const Q=c.arrows.value.find(O=>O.id===S);if(!Q)return;const ue=wn(p),Ie=wn(D);E.value={kind:"arrow",label:`Arrow from ${ue} → ${Ie}`,file:Q.fromFile||(p==null?void 0:p.file)||"",line:Q.fromLine||(p==null?void 0:p.line)||"",component:Q.fromComponent||(p==null?void 0:p.component)||"",annotationId:S,meta:{fromTag:(p==null?void 0:p.tag)||"",fromClasses:(p==null?void 0:p.classes)||"",fromComponent:(p==null?void 0:p.component)||"",toFile:Q.toFile||(D==null?void 0:D.file)||"",toLine:Q.toLine||(D==null?void 0:D.line)||0,toTag:(D==null?void 0:D.tag)||"",toClasses:(D==null?void 0:D.classes)||"",toComponent:(D==null?void 0:D.component)||""}},z.value=""}function Ta(S,p){var ue;const D=c.arrows.value.find(Ie=>Ie.id===S);if(!D||!p.trim()||ht.has(S))return;ht.add(S),c.updateArrow(S,{label:p.trim()});const Q=((ue=E.value)==null?void 0:ue.meta)||{};l({file:D.fromFile||"",line:String(D.fromLine||0),component:D.fromComponent||"",intent:p.trim(),elementTag:Q.fromTag||"",elementClasses:Q.fromClasses||""}),ze({type:"annotation",description:p.trim(),file:D.fromFile||"",line:D.fromLine||0,component:D.fromComponent||"",visual:{kind:"arrow",annotationId:D.id,fromX:D.fromX,fromY:D.fromY,toX:D.toX,toY:D.toY,label:p.trim()},context:{from_element_tag:Q.fromTag||"",from_element_classes:Q.fromClasses||"",to_element:{tag:Q.toTag||"",classes:Q.toClasses||"",component:Q.toComponent||"",file:D.toFile||"",line:D.toLine||0}}})}function mo(){const S=E.value;if(!(!S||!z.value.trim())){if(S.kind==="pin"){const p=S.meta;c.updatePinNote(S.annotationId,z.value.trim()),l({file:S.file,line:String(S.line),component:S.component,intent:z.value.trim(),elementTag:p.elementTag,elementClasses:p.elementClasses}),ze({type:"annotation",description:z.value.trim(),file:S.file,line:parseInt(String(S.line))||0,component:S.component,visual:{kind:"pin",annotationId:S.annotationId,x:p.pinX,y:p.pinY},context:{element_tag:p.elementTag,element_classes:p.elementClasses}})}else S.kind==="arrow"&&Ta(S.annotationId,z.value.trim());E.value=null,z.value=""}}function ol(){const S=E.value;S&&(S.kind==="pin"&&c.removePin(S.annotationId),S.kind==="arrow"&&c.removeArrow(S.annotationId)),E.value=null,z.value=""}function Ea(S){ze({type:"annotation",description:S,file:"",line:0})}function Fa(S){var ue;const p=S.ctrlKey||S.metaKey;if(p&&S.key==="z"&&!S.shiftKey){S.preventDefault(),r();return}const D=(ue=S.target)==null?void 0:ue.tagName;if(D==="INPUT"||D==="TEXTAREA"||D==="SELECT")return;const Q=S.key;if(Q==="?"||Q==="/"&&S.shiftKey){he.value=!he.value;return}if(Q==="Escape"){if(T.value){T.value=!1;return}if(he.value){he.value=!1;return}if(E.value){ol();return}pe.value=null,_e.value=[],G.value=[],I.value=[],ve.value=[];return}if((Q==="l"||Q==="L")&&!p){x.toggle();return}if((Q==="t"||Q==="T")&&!p){de.value=!de.value;return}}gi(()=>{var S;C.mountBridge(),re(),(S=f.value)==null||S.addEventListener("load",Z),document.addEventListener("keydown",Fa)}),Nn(()=>{C.unmountBridge()});const Ia=ce(()=>new URLSearchParams(window.location.search).get("appUrl")||window.location.origin+"/");return(S,p)=>{var D,Q,ue,Ie;return y(),_("div",P1,[d("header",R1,[d("div",M1,[p[46]||(p[46]=d("svg",{class:"logo",viewBox:"0 0 85.81 90.51",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"m72.02 90.31c-.17-.1-.43-.48-.57-.82-.37-.93-1.97-3.46-2.74-4.33-.66-.74-.77-.79-5.99-2.5-2.93-.96-5.52-1.85-5.77-1.98-.47-.25-.35.01-4.7-9.99-1.1-2.53-2.11-4.72-2.25-4.87-.22-.24-1.7-.26-11.7-.21-6.3.03-11.51.12-11.58.19-.11.11-2.06 4.98-4.34 10.84-.4 1.04-1.21 3.11-1.8 4.6-.58 1.49-1.52 3.88-2.08 5.32-.64 1.65-1.18 2.76-1.45 3.02l-.44.41H8.31 0l.49-1.22c4.92-12.33 8.69-21.78 9.54-23.94 1.22-3.09 4.33-10.89 6.52-16.32.82-2.03 1.72-4.3 2-5.05.28-.74 1.17-2.97 1.97-4.96 2.26-5.6 3-7.45 4.7-11.72 2.32-5.86 5.17-13 7.63-19.11 1.2-2.98 2.29-5.73 2.44-6.13.15-.4.45-.9.68-1.13l.42-.41h8.22c4.57 0 8.4.07 8.63.17.49.19.22-.38 3.81 8.22 1.57 3.77 3 7.18 3.17 7.57.73 1.72 6 14.31 7.22 17.22 1.71 4.1 5.73 13.7 6 14.34.17.4.66 1.58 1.09 2.61.43 1.04 1.63 3.94 2.68 6.46 1.05 2.51 1.9 4.63 1.9 4.71 0 .08-.14.2-.3.27-.17.07-2.89 1.13-6.05 2.37-3.16 1.23-6.39 2.5-7.17 2.81-.78.31-1.47.51-1.53.45-.06-.06-.47-1.07-.92-2.24-1.24-3.24-5.96-15.5-7.72-20.06-.86-2.23-2.45-6.33-3.52-9.11-1.07-2.78-2.93-7.6-4.14-10.73-1.2-3.12-2.4-6.25-2.67-6.94l-.48-1.26-.19.54c-.42 1.17-1.35 3.64-3.23 8.56-1.08 2.83-2.45 6.44-3.05 8.02-.6 1.59-2.24 5.89-3.65 9.56l-2.57 6.67 8.58.05 8.58.05.31.76c.17.42 1.14 2.91 2.16 5.54 6.49 16.81 6.66 17.24 6.88 17.18.08-.02 1.08-.41 2.21-.87 1.13-.46 3.45-1.39 5.15-2.06 5.12-2.03 14.4-5.73 14.68-5.85.14-.06.39-.01.55.12.32.25 2.19 4.68 2.19 5.19 0 .18-.14.48-.3.68-.27.32-5.46 2.61-10.94 4.83-4.74 1.92-6.58 2.65-7.29 2.92l-.77.29 1.94.34 1.94.34.77-.38c1.61-.79 3.36-1.45 7.27-2.71 2.22-.72 4.1-1.32 4.19-1.33.16-.02.94 1.75 2.24 5.12.41 1.04 1.36 3.49 2.13 5.45.77 1.96 1.39 3.71 1.39 3.89 0 .75-.14.76-6.94.76-4.33 0-6.64-.07-6.85-.2z"})],-1)),d("div",L1,[d("button",{class:te(["toggle-btn",{active:v.value==="editor"}]),onClick:p[0]||(p[0]=O=>v.value="editor")},"Editor",2),d("button",{class:te(["toggle-btn",{active:v.value==="theme"}]),onClick:p[1]||(p[1]=O=>v.value="theme")},"Theme",2)]),v.value==="editor"?(y(),_(ie,{key:0},[tt(hp,{modelValue:ee(g),"onUpdate:modelValue":p[2]||(p[2]=O=>Ue(g)?g.value=O:null)},null,8,["modelValue"]),d("button",{class:te(["tool-btn",{active:ee(x).showOverlay.value}]),onClick:p[3]||(p[3]=O=>ee(x).toggle()),title:"Show Layout (L)"},[...p[45]||(p[45]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),d("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),d("line",{x1:"9",y1:"3",x2:"9",y2:"21"})],-1)])],2)],64)):Y("",!0)]),v.value==="editor"?(y(),_("div",D1,[d("code",N1,R(ee(M)),1)])):(y(),_("div",V1)),v.value==="editor"?(y(),_("div",B1,[d("div",H1,[d("button",{class:te(["toggle-btn",{active:!de.value}]),onClick:p[4]||(p[4]=O=>de.value=!1)},[...p[47]||(p[47]=[d("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[d("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1),rt(" Inspector ",-1)])],2),d("button",{class:te(["toggle-btn",{active:de.value}]),onClick:p[5]||(p[5]=O=>de.value=!0)},[p[48]||(p[48]=d("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M9 11l3 3L22 4"}),d("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})],-1)),p[49]||(p[49]=rt(" Tasks ",-1)),le.value.length?(y(),_("span",j1,R(le.value.length),1)):Y("",!0)],2)]),d("div",U1,[d("button",{class:te(["vis-btn",{off:!X.value.pins}]),onClick:p[6]||(p[6]=O=>X.value.pins=!X.value.pins),title:"Toggle Pins"},"P",2),d("button",{class:te(["vis-btn",{off:!X.value.arrows}]),onClick:p[7]||(p[7]=O=>X.value.arrows=!X.value.arrows),title:"Toggle Arrows"},"A",2),d("button",{class:te(["vis-btn",{off:!X.value.sections}]),onClick:p[8]||(p[8]=O=>X.value.sections=!X.value.sections),title:"Toggle Sections"},"D",2),d("button",{class:te(["vis-btn",{off:!X.value.highlights}]),onClick:p[9]||(p[9]=O=>X.value.highlights=!X.value.highlights),title:"Toggle Highlights"},"H",2)]),ee(s).length?(y(),_("span",Y1,R(ee(s).length)+" change"+R(ee(s).length===1?"":"s"),1)):Y("",!0),d("button",{class:te(["tool-btn",{active:T.value}]),onClick:p[10]||(p[10]=O=>T.value=!T.value)}," View Tasks ",2),ee(s).length?(y(),_("button",{key:1,class:"tool-btn danger",onClick:u},"Clear")):Y("",!0),d("button",{class:te(["tool-btn",{active:he.value}]),onClick:p[11]||(p[11]=O=>he.value=!he.value),title:"Keyboard Shortcuts (?)"},"?",2)])):(y(),_("div",K1))]),ne.value?(y(),_("div",W1,[...p[50]||(p[50]=[rt(" Source mapping unavailable — add ",-1),d("code",null,"annotask()",-1),rt(" to your Vite plugins. ",-1)])])):Y("",!0),ee(h)?Y("",!0):(y(),_("div",z1,[...p[51]||(p[51]=[rt(" Annotask not initialized — run ",-1),d("code",null,"/annotask-init",-1),rt(" in your AI assistant to set up project tokens and component detection. ",-1)])])),d("div",G1,[d("div",{class:"canvas-area",onPointerdown:p[18]||(p[18]=O=>v.value==="editor"?ee(F)(O):void 0),onPointermove:p[19]||(p[19]=O=>v.value==="editor"?ee(L)(O):void 0),onPointerup:p[20]||(p[20]=O=>v.value==="editor"?ee(U)(O):void 0)},[d("iframe",{ref_key:"iframeRef",ref:f,src:Ia.value,class:"app-iframe"},null,8,X1),v.value==="editor"?(y(),_(ie,{key:0},[ee(g)==="arrow"||ee(g)==="draw"?(y(),_("div",{key:0,class:te(["drawing-shield",ee(g)])},null,2)):Y("",!0),W.value?(y(),_("div",{key:1,class:"highlight hover",style:Me({left:W.value.x+"px",top:W.value.y+"px",width:W.value.width+"px",height:W.value.height+"px"})},[K.value?(y(),_("div",q1,[d("span",J1,"<"+R(K.value.tag)+">",1),K.value.component?(y(),_("span",Z1,R(K.value.component),1)):Y("",!0)])):Y("",!0)],4)):Y("",!0),(y(!0),_(ie,null,ye(ve.value,(O,Se)=>(y(),_("div",{key:"g"+Se,class:"highlight group",style:Me({left:O.x+"px",top:O.y+"px",width:O.width+"px",height:O.height+"px"})},null,4))),128)),(y(!0),_(ie,null,ye(I.value,(O,Se)=>(y(),_("div",{key:"s"+Se,class:"highlight select",style:Me({left:O.x+"px",top:O.y+"px",width:O.width+"px",height:O.height+"px"})},[Se===0&&pe.value?(y(),_("div",Q1," <"+R(pe.value.tagName)+"> · "+R(pe.value.component),1)):Y("",!0)],4))),128)),X.value.pins?(y(),vt(Ap,{key:2,pins:ee(c).routePins.value,selectedPinId:ee(c).selectedPinId.value,iframeOffset:{x:((Q=(D=f.value)==null?void 0:D.getBoundingClientRect())==null?void 0:Q.left)||0,y:((Ie=(ue=f.value)==null?void 0:ue.getBoundingClientRect())==null?void 0:Ie.top)||0},onSelectPin:p[12]||(p[12]=O=>{ee(c).selectedPinId.value=O,j.value="notes"}),onRemovePin:ee(c).removePin},null,8,["pins","selectedPinId","iframeOffset","onRemovePin"])):Y("",!0),X.value.arrows?(y(),vt(Vp,{key:3,arrows:ee(c).routeArrows.value,selectedId:ee(c).selectedArrowId.value,drawingArrow:ee(k),onSelect:p[13]||(p[13]=O=>ee(c).selectedArrowId.value=O),onRemove:ee(c).removeArrow},null,8,["arrows","selectedId","drawingArrow","onRemove"])):Y("",!0),X.value.sections?(y(),vt(Gp,{key:4,sections:ee(c).routeSections.value,selectedId:ee(c).selectedSectionId.value,drawingRect:ee(A),onSelect:p[14]||(p[14]=O=>ee(c).selectedSectionId.value=O),onRemove:ee(c).removeDrawnSection,onUpdatePrompt:p[15]||(p[15]=(O,Se)=>ee(c).updateDrawnSection(O,{prompt:Se})),onCommit:lt},null,8,["sections","selectedId","drawingRect","onRemove"])):Y("",!0),X.value.highlights?(y(),vt(jh,{key:5,highlights:ee(c).routeHighlights.value,selectedId:ee(c).selectedHighlightId.value,pending:Ke.value,onSelect:p[16]||(p[16]=O=>ee(c).selectedHighlightId.value=O),onRemove:ee(c).removeHighlight,onUpdatePrompt:p[17]||(p[17]=(O,Se)=>ee(c).updateHighlight(O,{prompt:Se})),onSubmitPending:wt,onCancelPending:on},null,8,["highlights","selectedId","pending","onRemove"])):Y("",!0),ee(x).showOverlay.value?(y(),vt(Jh,{key:6,containers:ee(x).containers.value},null,8,["containers"])):Y("",!0)],64)):Y("",!0)],32),v.value==="theme"?(y(),_("aside",ey,[tt(qv,{iframeRef:f.value},null,8,["iframeRef"])])):Y("",!0),v.value==="editor"&&he.value?(y(),_("aside",ty,[d("div",ny,[p[52]||(p[52]=d("span",{class:"source-path",style:{color:"var(--text)"}},"Keyboard Shortcuts",-1)),d("button",{class:"component-badge",style:{cursor:"pointer","margin-left":"auto"},onClick:p[21]||(p[21]=O=>he.value=!1)},"Esc to close")]),p[53]||(p[53]=Er('<div class="shortcuts-panel"><div class="shortcut-group"><div class="shortcut-group-title">Tools</div><div class="shortcut-row"><kbd>V</kbd><span>Select</span></div><div class="shortcut-row"><kbd>P</kbd><span>Pin</span></div><div class="shortcut-row"><kbd>A</kbd><span>Arrow</span></div><div class="shortcut-row"><kbd>D</kbd><span>Draw Section</span></div><div class="shortcut-row"><kbd>H</kbd><span>Highlight Text</span></div><div class="shortcut-row"><kbd>I</kbd><span>Interact Mode</span></div></div><div class="shortcut-group"><div class="shortcut-group-title">View</div><div class="shortcut-row"><kbd>L</kbd><span>Toggle Layout Overlay</span></div><div class="shortcut-row"><kbd>T</kbd><span>Toggle Task Panel</span></div><div class="shortcut-row"><kbd>?</kbd><span>Toggle Shortcuts</span></div><div class="shortcut-row"><kbd>Esc</kbd><span>Deselect / Close Panel</span></div></div><div class="shortcut-group"><div class="shortcut-group-title">Actions</div><div class="shortcut-row"><kbd class="mod">Ctrl</kbd><kbd>Z</kbd><span>Undo</span></div><div class="shortcut-row"><kbd class="mod">Ctrl</kbd><kbd>Enter</kbd><span>Submit Form</span></div></div><div class="shortcut-hint">On Mac, use <kbd class="mod">⌘</kbd> instead of <kbd class="mod">Ctrl</kbd></div></div>',1))])):v.value==="editor"&&E.value?(y(),_("aside",iy,[p[56]||(p[56]=d("div",{class:"panel-source"},[d("span",{class:"source-path",style:{color:"var(--text)"}},"Add Task")],-1)),d("div",ly,[d("div",oy,[d("div",{class:te(["pending-task-kind",E.value.kind])},[E.value.kind==="pin"?(y(),_("svg",sy,[...p[54]||(p[54]=[d("circle",{cx:"12",cy:"10",r:"3"},null,-1),d("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"},null,-1)])])):E.value.kind==="arrow"?(y(),_("svg",ry,[...p[55]||(p[55]=[d("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),d("polyline",{points:"12 5 19 12 12 19"},null,-1)])])):Y("",!0),d("span",null,R(E.value.label),1)],2),d("code",ay,R(E.value.file)+":"+R(E.value.line),1)]),Ve(d("textarea",{"onUpdate:modelValue":p[22]||(p[22]=O=>z.value=O),class:"pending-task-input",rows:"3",placeholder:"Describe the change...",autofocus:"",onKeydown:[jt(De(mo,["ctrl"]),["enter"]),jt(ol,["escape"])]},null,40,uy),[[He,z.value]]),d("div",cy,[d("button",{class:"submit-btn",disabled:!z.value.trim(),onClick:mo},"Add Task",8,dy),d("button",{class:"cancel-btn",onClick:ol},"Cancel")])])])):v.value==="editor"&&de.value?(y(),_("aside",fy,[d("div",py,[p[57]||(p[57]=d("span",{class:"source-path",style:{color:"var(--text)"}},"Tasks",-1)),d("span",hy,R(ee(a).tasks.value.length),1),d("button",{class:"new-task-toggle",onClick:p[23]||(p[23]=O=>Te.value=!Te.value)},R(Te.value?"−":"+")+" New ",1)]),Te.value?(y(),_("div",gy,[Ve(d("textarea",{"onUpdate:modelValue":p[24]||(p[24]=O=>Pe.value=O),class:"new-task-input",rows:"2",placeholder:"Describe a change...",onKeydown:jt(De(Ye,["ctrl"]),["enter"])},null,40,vy),[[He,Pe.value]]),d("div",my,[d("button",{class:"submit-btn",disabled:!Pe.value.trim(),onClick:Ye},"Add",8,yy),d("button",{class:"cancel-btn",onClick:p[25]||(p[25]=O=>{Te.value=!1,Pe.value=""})},"Cancel")])])):Y("",!0),d("div",by,[ee(a).tasks.value.length===0&&!Te.value?(y(),_("div",wy," No tasks yet. Click + New to add one. ")):Y("",!0),(y(!0),_(ie,null,ye(le.value,O=>(y(),_("div",{key:O.id,class:te(["task-card",O.status])},[d("div",_y,[d("span",{class:te(["task-status-dot",O.status])},null,2),d("span",xy,R(O.description),1),d("button",{class:"task-card-close",onClick:Se=>be(O.id)},"×",8,ky)]),d("div",Cy,[d("code",Ay,R(O.file)+":"+R(O.line),1),O.route?(y(),_("span",Sy,R(O.route),1)):Y("",!0)]),O.feedback?(y(),_("div",$y,R(O.feedback),1)):Y("",!0),O.status==="review"?(y(),_("div",Ty,[Xe.value!==O.id?(y(),_(ie,{key:0},[d("button",{class:"task-accept",onClick:Se=>be(O.id)},"Accept",8,Ey),d("button",{class:"task-deny",onClick:Se=>{Xe.value=O.id,Ce.value=""}},"Deny",8,Fy)],64)):(y(),_(ie,{key:1},[Ve(d("input",{"onUpdate:modelValue":p[26]||(p[26]=Se=>Ce.value=Se),class:"deny-feedback-input",placeholder:"What needs to change?",autofocus:"",onKeydown:[jt(Se=>me(O.id),["enter"]),p[27]||(p[27]=jt(Se=>Xe.value=null,["escape"]))]},null,40,Iy),[[He,Ce.value]]),d("button",{class:"task-deny",disabled:!Ce.value.trim(),onClick:Se=>me(O.id)},"Send",8,Oy),d("button",{class:"cancel-btn",style:{padding:"4px 8px","font-size":"10px"},onClick:p[28]||(p[28]=Se=>Xe.value=null)},"Cancel")],64))])):Y("",!0)],2))),128))])])):v.value==="editor"&&pe.value?(y(),_("aside",Py,[d("div",Ry,[d("code",My,R(pe.value.file)+":"+R(pe.value.line),1),d("span",Ly,R(pe.value.component),1),V.value?(y(),_("span",{key:0,class:te(["role-badge",V.value])},R(V.value),3)):Y("",!0)]),$.value?(y(),_("div",Dy,[d("span",Ny,R($.value),1),G.value.length>1&&_e.value.length<=1?(y(),_("label",Vy,[Ve(d("input",{type:"checkbox","onUpdate:modelValue":p[29]||(p[29]=O=>P.value=O)},null,512),[[td,P.value]]),d("span",By,"Apply to all "+R(G.value.length),1)])):Y("",!0)])):Y("",!0),d("div",Hy,[d("button",{class:te(["tab",{active:j.value==="layout"}]),onClick:p[30]||(p[30]=O=>j.value="layout")},"Layout",2),d("button",{class:te(["tab",{active:j.value==="spacing"}]),onClick:p[31]||(p[31]=O=>j.value="spacing")},"Spacing",2),d("button",{class:te(["tab",{active:j.value==="size"}]),onClick:p[32]||(p[32]=O=>j.value="size")},"Size",2),d("button",{class:te(["tab",{active:j.value==="style"}]),onClick:p[33]||(p[33]=O=>j.value="style")},"Style",2),d("button",{class:te(["tab",{active:j.value==="classes"}]),onClick:p[34]||(p[34]=O=>j.value="classes")},"Classes",2),d("button",{class:te(["tab",{active:j.value==="notes"}]),onClick:p[35]||(p[35]=O=>j.value="notes")},[p[58]||(p[58]=rt(" Task ",-1)),ee(c).routePins.value.length?(y(),_("span",jy,R(ee(c).routePins.value.length),1)):Y("",!0)],2)]),d("div",Uy,[j.value==="layout"?(y(),vt(Td,{key:0,computedStyles:B.value,onChange:ae},null,8,["computedStyles"])):Y("",!0),j.value==="spacing"?(y(),vt(Ud,{key:1,computedStyles:B.value,onChange:ae},null,8,["computedStyles"])):Y("",!0),j.value==="size"?(y(),vt(nf,{key:2,computedStyles:B.value,onChange:ae},null,8,["computedStyles"])):Y("",!0),j.value==="style"?(y(),vt(Zf,{key:3,computedStyles:B.value,iframeDoc:null,onChange:ae},null,8,["computedStyles"])):Y("",!0),j.value==="classes"?(y(),_("div",Yy,[Ve(d("textarea",{"onUpdate:modelValue":p[36]||(p[36]=O=>J.value=O),class:"class-editor",rows:"4",onBlur:we,onKeydown:jt(De(we,["ctrl"]),["enter"]),placeholder:"Edit CSS classes..."},null,40,Ky),[[He,J.value]]),p[59]||(p[59]=d("p",{class:"hint"},"Ctrl+Enter or blur to apply",-1))])):Y("",!0),j.value==="notes"?(y(),vt(Fh,{key:5,pins:ee(c).routePins.value,selectedPinId:ee(c).selectedPinId.value,selectedElement:pe.value,elementRole:V.value,tasks:ee(a).tasks.value,onAddNote:Ee,onAddAction:Ne,onAddTask:Ea,onSelectPin:p[37]||(p[37]=O=>ee(c).selectedPinId.value=O),onUpdateNote:p[38]||(p[38]=O=>ee(c).updatePinNote(O,"")),onRemovePin:p[39]||(p[39]=O=>ee(c).removePin(O)),onAcceptTask:p[40]||(p[40]=O=>ee(a).updateTaskStatus(O,"accepted")),onDenyTask:p[41]||(p[41]=(O,Se)=>ee(a).updateTaskStatus(O,"denied",Se)),onCancelTask:p[42]||(p[42]=O=>ee(a).updateTaskStatus(O,"accepted"))},null,8,["pins","selectedPinId","selectedElement","elementRole","tasks"])):Y("",!0)]),ee(s).length?(y(),_("div",Wy,[d("details",null,[d("summary",zy,R(ee(s).length)+" change"+R(ee(s).length===1?"":"s")+" recorded",1),d("div",Gy,[(y(!0),_(ie,null,ye(ee(s),O=>(y(),_("div",{key:O.id,class:"change-item"},[O.type==="style_update"?(y(),_(ie,{key:0},[d("code",Xy,R(O.property),1),p[60]||(p[60]=d("span",{class:"change-arrow"},"→",-1)),d("code",qy,R(O.after),1)],64)):O.type==="annotation"?(y(),_(ie,{key:1},[d("code",Jy,R(O.action||"note"),1),p[61]||(p[61]=d("span",{class:"change-arrow"},"→",-1)),d("code",Zy,R(O.intent.substring(0,30)),1)],64)):Y("",!0)]))),128))])])])):Y("",!0)])):v.value==="editor"?(y(),_("aside",Qy,[...p[62]||(p[62]=[d("div",{class:"empty-content"},[d("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[d("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})]),d("p",null,"Click an element to inspect"),d("p",{class:"empty-hint"},"Press P to pin, hover to highlight")],-1)])])):Y("",!0)]),tt(wp,Fr(xe.value,{onClose:p[43]||(p[43]=O=>xe.value.visible=!1)}),null,16),T.value?(y(),vt(O1,{key:2,tasks:ee(a).tasks.value,onClose:p[44]||(p[44]=O=>T.value=!1)},null,8,["tasks"])):Y("",!0)])}}});ad(eb).mount("#app");
|
|
58
|
+
`+e.slice(s+1):u+=e.slice(i),u.slice(1)}function Zm(e){for(var t="",n=0,l,i=0;i<e.length;n>=65536?i+=2:i++)n=Gn(e,i),l=it[n],!l&&di(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=l||Um(n);return t}function Qm(e,t,n){var l="",i=e.tag,o,s,r;for(o=0,s=n.length;o<s;o+=1)r=n[o],e.replacer&&(r=e.replacer.call(n,String(o),r)),(Xt(e,t,r,!1,!1)||typeof r>"u"&&Xt(e,t,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=i,e.dump="["+l+"]"}function As(e,t,n,l){var i="",o=e.tag,s,r,u;for(s=0,r=n.length;s<r;s+=1)u=n[s],e.replacer&&(u=e.replacer.call(n,String(s),u)),(Xt(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Xt(e,t+1,null,!0,!0,!1,!0))&&((!l||i!=="")&&(i+=Kl(e,t)),e.dump&&ui===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function e1(e,t,n){var l="",i=e.tag,o=Object.keys(n),s,r,u,c,a;for(s=0,r=o.length;s<r;s+=1)a="",l!==""&&(a+=", "),e.condenseFlow&&(a+='"'),u=o[s],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),Xt(e,t,u,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Xt(e,t,c,!1,!1)&&(a+=e.dump,l+=a));e.tag=i,e.dump="{"+l+"}"}function t1(e,t,n,l){var i="",o=e.tag,s=Object.keys(n),r,u,c,a,f,g;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new ct("sortKeys must be a boolean or a function");for(r=0,u=s.length;r<u;r+=1)g="",(!l||i!=="")&&(g+=Kl(e,t)),c=s[r],a=n[c],e.replacer&&(a=e.replacer.call(n,c,a)),Xt(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&ui===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,f&&(g+=Kl(e,t)),Xt(e,t+1,a,!0,f)&&(e.dump&&ui===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,i+=g));e.tag=o,e.dump=i||"{}"}function Ss(e,t,n){var l,i,o,s,r,u;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(r=i[o],(r.instanceOf||r.predicate)&&(!r.instanceOf||typeof t=="object"&&t instanceof r.instanceOf)&&(!r.predicate||r.predicate(t))){if(n?r.multi&&r.representName?e.tag=r.representName(t):e.tag=r.tag:e.tag="?",r.represent){if(u=e.styleMap[r.tag]||r.defaultStyle,ya.call(r.represent)==="[object Function]")l=r.represent(t,u);else if(ba.call(r.represent,u))l=r.represent[u](t,u);else throw new ct("!<"+r.tag+'> tag resolver accepts not "'+u+'" style');e.dump=l}return!0}return!1}function Xt(e,t,n,l,i,o,s){e.tag=null,e.dump=n,Ss(e,n,!1)||Ss(e,n,!0);var r=ya.call(e.dump),u=l,c;l&&(l=e.flowLevel<0||e.flowLevel>t);var a=r==="[object Object]"||r==="[object Array]",f,g;if(a&&(f=e.duplicates.indexOf(n),g=f!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(i=!1),g&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(a&&g&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),r==="[object Object]")l&&Object.keys(e.dump).length!==0?(t1(e,t,e.dump,i),g&&(e.dump="&ref_"+f+e.dump)):(e1(e,t,e.dump),g&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?As(e,t-1,e.dump,i):As(e,t,e.dump,i),g&&(e.dump="&ref_"+f+e.dump)):(Qm(e,t,e.dump),g&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object String]")e.tag!=="?"&&qm(e,e.dump,t,o,u);else{if(r==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ct("unacceptable kind of an object to dump "+r)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function n1(e,t){var n=[],l=[],i,o;for(zl(e,n,l),i=0,o=l.length;i<o;i+=1)t.duplicates.push(n[l[i]]);t.usedDuplicates=new Array(o)}function zl(e,t,n){var l,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)zl(e[i],t,n);else for(l=Object.keys(e),i=0,o=l.length;i<o;i+=1)zl(e[l[i]],t,n)}function i1(e,t){t=t||{};var n=new Km(t);n.noRefs||n1(e,n);var l=e;return n.replacer&&(l=n.replacer.call({"":l},"",l)),Xt(n,0,l,!0,!0)?n.dump+`
|
|
59
|
+
`:""}var l1=i1,o1={dump:l1};function mo(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var s1=Je,r1=Ur,a1=zr,u1=Zr,c1=Qr,d1=po,f1=ma.load,p1=ma.loadAll,h1=o1.dump,g1=ct,v1={binary:la,float:Jr,map:Wr,null:Gr,pairs:sa,set:ra,timestamp:na,bool:Xr,int:qr,merge:ia,omap:oa,seq:Kr,str:Yr},m1=mo("safeLoad","load"),y1=mo("safeLoadAll","loadAll"),b1=mo("safeDump","dump"),w1={Type:s1,Schema:r1,FAILSAFE_SCHEMA:a1,JSON_SCHEMA:u1,CORE_SCHEMA:c1,DEFAULT_SCHEMA:d1,load:f1,loadAll:p1,dump:h1,YAMLException:g1,types:v1,safeLoad:m1,safeLoadAll:y1,safeDump:b1};const _1={class:"report-drawer"},x1={class:"report-header"},k1={class:"report-title"},C1={key:0,class:"report-badge"},A1={class:"report-controls"},S1={class:"format-toggle"},$1=["disabled"],T1={key:0,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},E1={class:"report-body"},F1={key:0,class:"report-code"},I1=["innerHTML"],O1={key:1,class:"report-empty"},P1=nt({__name:"ReportViewer",props:{tasks:{}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,i=q("json"),o=q(!1),s=ue(()=>n.tasks.length?{version:"1.0",tasks:n.tasks}:null),r=ue(()=>s.value?i.value==="yaml"?w1.dump(s.value,{indent:2,lineWidth:120,noRefs:!0}):JSON.stringify(s.value,null,2):""),u=q("");yt([r,i],()=>{Qs(()=>{const g=i.value==="yaml"?"yaml":"json",h=ds.languages[g];u.value=h?ds.highlight(r.value,h,g):c(r.value)})},{immediate:!0});function c(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function a(){navigator.clipboard.writeText(r.value),o.value=!0,setTimeout(()=>o.value=!1,2e3)}function f(g){g.key==="Escape"&&l("close")}return(g,h)=>(y(),_("div",{class:"report-overlay",onKeydown:f,tabindex:"-1"},[d("div",{class:"report-backdrop",onClick:h[0]||(h[0]=v=>l("close"))}),d("aside",_1,[d("header",x1,[d("div",k1,[h[4]||(h[4]=d("span",null,"Tasks",-1)),e.tasks.length?(y(),_("span",C1,R(e.tasks.length)+" task"+R(e.tasks.length===1?"":"s"),1)):Y("",!0)]),d("div",A1,[d("div",S1,[d("button",{class:te(["fmt-btn",{active:i.value==="json"}]),onClick:h[1]||(h[1]=v=>i.value="json")},"JSON",2),d("button",{class:te(["fmt-btn",{active:i.value==="yaml"}]),onClick:h[2]||(h[2]=v=>i.value="yaml")},"YAML",2)]),d("button",{class:"copy-btn",onClick:a,disabled:!s.value},[o.value?Y("",!0):(y(),_("svg",T1,[...h[5]||(h[5]=[d("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1),d("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])])),rt(" "+R(o.value?"Copied!":"Copy"),1)],8,$1),d("button",{class:"close-btn",onClick:h[3]||(h[3]=v=>l("close")),title:"Close (Esc)"},[...h[6]||(h[6]=[d("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),d("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),d("div",E1,[s.value?(y(),_("pre",F1,[d("code",{innerHTML:u.value},null,8,I1)])):(y(),_("div",O1,[...h[7]||(h[7]=[d("p",null,"No tasks yet.",-1),d("p",{class:"report-empty-hint"},"Pin elements, draw sections, or add annotations to create tasks for your coding agent.",-1)])]))])])],32))}}),R1={class:"annotask-shell"},M1={class:"toolbar"},L1={class:"toolbar-left"},D1={class:"view-toggle"},N1={key:0,class:"toolbar-center"},V1={class:"route-indicator"},B1={key:1,class:"toolbar-center"},H1={key:2,class:"toolbar-right"},j1={class:"panel-toggle"},U1={key:0,class:"toggle-badge"},Y1={class:"visibility-toggles"},K1={key:0,class:"change-count"},W1={key:3,class:"toolbar-right"},z1={key:0,class:"warning-banner"},G1={key:1,class:"setup-banner"},X1={class:"main"},q1=["src"],J1={key:0,class:"hover-label"},Z1={class:"hover-tag"},Q1={key:0,class:"hover-comp"},ey={key:0,class:"select-label"},ty={key:0,class:"theme-panel"},ny={key:1,class:"panel"},iy={class:"panel-source"},ly={key:2,class:"panel"},oy={class:"pending-task-panel"},sy={class:"pending-task-context"},ry={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ay={key:1,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},uy={class:"pending-task-file"},cy=["onKeydown"],dy={class:"pending-task-actions"},fy=["disabled"],py={key:3,class:"panel"},hy={class:"panel-source"},gy={class:"component-badge"},vy={key:0,class:"new-task-form"},my=["onKeydown"],yy={class:"new-task-actions"},by=["disabled"],wy={class:"tab-content"},_y={key:0,class:"empty-hint",style:{padding:"20px 0"}},xy={class:"task-card-header"},ky={class:"task-card-desc"},Cy=["onClick"],Ay={class:"task-card-meta"},Sy={class:"task-card-file"},$y={key:0,class:"task-route-badge"},Ty={key:0,class:"task-card-feedback"},Ey={key:1,class:"task-card-actions"},Fy=["onClick"],Iy=["onClick"],Oy=["onKeydown"],Py=["disabled","onClick"],Ry={key:4,class:"panel"},My={class:"panel-source"},Ly={class:"source-path"},Dy={class:"component-badge"},Ny={key:0,class:"panel-group-bar"},Vy={class:"group-summary"},By={key:0,class:"group-toggle"},Hy={class:"toggle-label"},jy={class:"panel-tabs"},Uy={key:0,class:"tab-badge"},Yy={class:"tab-content"},Ky={key:4,class:"classes-tab"},Wy=["onKeydown"],zy={key:1,class:"changes-footer"},Gy={class:"changes-summary"},Xy={class:"changes-list"},qy={class:"change-prop"},Jy={class:"change-val"},Zy={class:"change-prop"},Qy={class:"change-val"},eb={key:5,class:"panel empty"},tb=nt({__name:"App",setup(e){const t=np(),{applyStyle:n,recordAnnotation:l,recordClassChange:i,removeAnnotationsByFile:o,changes:s}=t;async function r(){const S=t.undo();S&&(S.type==="style"&&S.eid?await C.undoStyle(S.eid,S.property,S.value||""):S.type==="class"&&S.eid?await C.undoClass(S.eid,S.classes||""):S.type==="insert_remove"&&S.eid&&await C.removePlaceholder(S.eid),await oe())}async function u(){const S=t.clearChanges();for(const p of S)await C.removePlaceholder(p)}const c=op(),a=Br(),f=q(null),{mode:g}=ip(),{isInitialized:h}=co(),v=q(localStorage.getItem("annotask:shellView")==="theme"?"theme":"editor");yt(v,S=>localStorage.setItem("annotask:shellView",S));const x=lp(f),C=dp(f),{currentRoute:L}=C,w=fp(c,(S,p)=>C.resolveElementAt(S,p),()=>g.value,bi),{drawingArrow:k,drawingRect:A,onCanvasPointerDown:F,onCanvasPointerMove:D,onCanvasPointerUp:U}=w;yt(g,S=>{C.setMode(S),S==="interact"&&(fe.value=null,_e.value=[],G.value=[],W.value=null,K.value=null)});const ne=q(!1),T=q(!1),j=q("layout"),X=q({pins:!0,arrows:!0,sections:!0,highlights:!0}),ce=q(localStorage.getItem("annotask:showTaskPanel")==="true");yt(ce,S=>localStorage.setItem("annotask:showTaskPanel",String(S)));const Te=q(!1),Pe=q(""),Xe=q(null),Ce=q(""),pe=q(localStorage.getItem("annotask:showShortcuts")==="true");yt(pe,S=>localStorage.setItem("annotask:showShortcuts",String(S)));const E=q(null),z=q(""),le=ue(()=>a.tasks.value);function be(S){const p=a.tasks.value.find(M=>M.id===S);if(p!=null&&p.visual){const M=p.visual;if(M.annotationId)M.kind==="pin"?c.removePin(M.annotationId):M.kind==="arrow"?c.removeArrow(M.annotationId):M.kind==="section"&&c.removeDrawnSection(M.annotationId);else if(M.kind==="pin"){const Q=c.getPinsForElement(p.file,p.line);for(const he of Q)c.removePin(he.id)}else if(M.kind==="arrow"){const Q=c.arrows.value.find(he=>Math.abs(he.fromX-M.fromX)<5&&Math.abs(he.fromY-M.fromY)<5);Q&&c.removeArrow(Q.id)}else if(M.kind==="section"){const Q=c.drawnSections.value.find(he=>Math.abs(he.x-M.x)<5&&Math.abs(he.y-M.y)<5);Q&&c.removeDrawnSection(Q.id)}}p.file&&p.line!=null&&o(p.file,p.line),a.updateTaskStatus(S,"accepted")}function me(S){Ce.value.trim()&&(a.updateTaskStatus(S,"denied",Ce.value.trim()),Xe.value=null,Ce.value="")}function Ye(){const S=Pe.value.trim();S&&(ze({type:"annotation",description:S,file:"",line:0}),Pe.value="",Te.value=!1)}const Ke=q(null),fe=q(null),_e=q([]),G=q([]),P=q(!0),Fe=ue(()=>_e.value.length>1?_e.value:P.value&&G.value.length>1?G.value:fe.value?[fe.value.eid]:[]),I=q([]),ve=q([]);let m=0;async function b(){const S=++m;if(_e.value.length>0){const p=await C.getElementRects(_e.value);if(S!==m)return;I.value=p.filter(M=>M!==null)}else I.value=[];if(P.value&&_e.value.length<=1&&G.value.length>0){const p=G.value.filter(Q=>!_e.value.includes(Q)),M=await C.getElementRects(p);if(S!==m)return;ve.value=M.filter(Q=>Q!==null)}else ve.value=[]}yt([_e,G,P],b,{deep:!0});const $=ue(()=>{const S=_e.value.length,p=G.value.length;return S>1?`${S} elements selected`:p>1?`1 selected · ${p} instances in template`:null}),V=q(null);async function N(){if(!fe.value){V.value=null;return}const S=await C.classifyElement(fe.value.eid);V.value=(S==null?void 0:S.role)||null}const B=q({}),J=q(""),W=q(null),K=q(null),H=["display","position","width","height","min-width","max-width","min-height","max-height","padding","padding-top","padding-right","padding-bottom","padding-left","margin","margin-top","margin-right","margin-bottom","margin-left","gap","flex-direction","align-items","justify-content","flex-wrap","background-color","color","font-size","font-weight","font-family","text-align","line-height","letter-spacing","border","border-radius","border-color","border-width","opacity","overflow","box-shadow"];async function oe(){var S;(S=fe.value)!=null&&S.eid&&(B.value=await C.getComputedStyles(fe.value.eid,H))}async function Z(){C.initBridgeForIframe(),C.onBridgeReady(async()=>{C.setMode(g.value),ne.value=!await C.checkSourceMapping();const S=await C.getCurrentRoute();c.setRoute(S),We(),x.showOverlay.value&&x.scan()})}function re(){C.onBridgeEvent("hover:enter",S=>{const p=C.toShellRect(S.rect);W.value=p,K.value=S.file?{tag:S.tag,file:S.file,component:S.component}:null}),C.onBridgeEvent("hover:leave",()=>{W.value=null,K.value=null}),C.onBridgeEvent("click:element",async S=>{const{file:p,line:M,component:Q,mfe:he,tag:Ie,classes:O,eid:Ae,shiftKey:dt,clientX:sl,clientY:rl}=S,rn=C.toShellRect(S.rect);if(g.value==="pin"){const Jt=rn?rn.x+rn.width/2:sl,bo=rn?rn.y:rl,Pa=c.addPin({file:p,line:M,component:Q,elementTag:Ie,elementClasses:O},Jt,bo);fe.value={file:p,line:M,component:Q,mfe:he||"",tagName:Ie,classes:O,eid:Ae},_e.value=[Ae],await oe(),await N(),E.value={kind:"pin",label:`Pin on ${wn({component:Q,tag:Ie,classes:O})}`,file:p,line:M,component:Q,annotationId:Pa.id,meta:{elementTag:Ie,elementClasses:O,pinX:Jt,pinY:bo}},z.value="";return}if(dt&&fe.value){const Jt=_e.value.indexOf(Ae);Jt>=0?(_e.value.splice(Jt,1),_e.value.length===0&&(fe.value=null,G.value=[])):_e.value.push(Ae),await b()}else{fe.value={file:p,line:M,component:Q,mfe:he||"",tagName:Ie,classes:O,eid:Ae},_e.value=[Ae];const Jt=await C.findTemplateGroup(p,M,Ie);G.value=Jt.eids,P.value=Jt.eids.length>1,J.value=O,await oe(),await N(),await b()}W.value=null}),C.onBridgeEvent("contextmenu:element",async S=>{const{file:p,line:M,component:Q,mfe:he,tag:Ie,classes:O,eid:Ae}=S,dt=C.toShellRect(S.rect);fe.value={file:p,line:M,component:Q,tagName:Ie,classes:O,eid:Ae},_e.value=[Ae],await oe(),await N(),xe.value={visible:!0,x:dt?dt.x+dt.width/2:S.clientX,y:dt?dt.y+dt.height/2:S.clientY}}),C.onBridgeEvent("selection:text",S=>{const p=f.value,M=(p==null?void 0:p.getBoundingClientRect().left)||0,Q=(p==null?void 0:p.getBoundingClientRect().top)||0;Ke.value={text:S.text,x:M+100,y:Q+100,file:S.file,line:S.line,component:S.component,tag:S.tag}}),C.onBridgeEvent("keydown",S=>{(S.ctrlKey||S.metaKey)&&S.key==="z"&&!S.shiftKey&&r()}),C.onBridgeEvent("route:changed",S=>{c.setRoute(S.path)})}async function ae(S,p){if(!fe.value)return;const M={file:fe.value.file,line:fe.value.line,component:fe.value.component},Q=Fe.value;for(const he of Q){const Ie=await C.applyStyleVia(he,S,p);n(he,S,p,Ie,M)}await oe()}async function we(){if(!fe.value)return;const S=fe.value.classes,p=J.value;if(S===p)return;const M={file:fe.value.file,line:fe.value.line,component:fe.value.component},Q=Fe.value;for(const he of Q)await C.setClass(he,p),i(he,S,p,M);fe.value.classes=p,await oe()}const xe=q({visible:!1,x:0,y:0});async function Ee(S){if(!fe.value)return;const p=fe.value,M=[{file:p.file,line:p.line,component:p.component,tag:p.tagName,classes:p.classes}];for(const O of M)if(l({file:O.file,line:O.line,component:O.component,intent:S,elementTag:O.tag,elementClasses:O.classes}),c.getPinsForElement(O.file,parseInt(O.line)).length===0){const dt=I.value[0],sl=dt?dt.x+dt.width/2:100,rl=dt?dt.y+10:100,rn=c.addPin({file:O.file,line:O.line,component:O.component,elementTag:O.tag,elementClasses:O.classes},sl,rl);c.updatePinNote(rn.id,S)}const Q=M[0],he=c.getPinsForElement(Q.file,parseInt(Q.line)),Ie=he.length>0?{x:he[0].clickX,y:he[0].clickY}:null;ze({type:"annotation",description:S,file:Q.file,line:parseInt(Q.line)||0,component:Q.component,visual:Ie?{kind:"pin",annotationId:he[0].id,x:Ie.x,y:Ie.y}:void 0,context:{element_tag:Q.tag,element_classes:Q.classes,...M.length>1?{elements:M.map(O=>({tag:O.tag,classes:O.classes,component:O.component,file:O.file,line:parseInt(O.line)||0}))}:{}}})}function Ne(S,p){if(!fe.value)return;const M=fe.value,Q=[{file:M.file,line:M.line,component:M.component,tag:M.tagName,classes:M.classes}];for(const Ie of Q)l({file:Ie.file,line:Ie.line,component:Ie.component,intent:p,action:S,elementTag:Ie.tag,elementClasses:Ie.classes});const he=Q[0];ze({type:"annotation",description:p,file:he.file,line:parseInt(he.line)||0,component:he.component,action:S,context:{element_tag:he.tag,element_classes:he.classes}})}async function We(){await a.fetchTasks();const S=L.value;for(const p of a.tasks.value){if(p.route&&p.route!==S||p.status==="accepted")continue;const M=p.visual;if(M){if(M.kind==="pin"&&M.x&&M.y){if(c.getPinsForElement(p.file,p.line).length===0){const he=c.addPin({file:p.file,line:String(p.line),component:p.component||"",elementTag:M.element_tag||"",elementClasses:""},M.x,M.y);c.updatePinNote(he.id,p.description)}}else if(M.kind==="arrow")c.addArrow(M.fromX,M.fromY,M.toX,M.toY,M.label||p.description);else if(M.kind==="section"){const Q=c.addDrawnSection(M.x,M.y,M.width,M.height);(p.prompt||p.description)&&c.updateDrawnSection(Q.id,{prompt:p.prompt||p.description,nearFile:p.file,nearLine:p.line})}}}}function ze(S){var M;const p=((M=fe.value)==null?void 0:M.mfe)||"";return a.createTask({...S,route:L.value,...p?{mfe:p}:{}})}function _t(S){if(!Ke.value||!S.trim())return;const p=Ke.value,M=c.addHighlight(p.text,{file:p.file,line:p.line,component:p.component,elementTag:p.tag});c.updateHighlight(M.id,{prompt:S.trim()});const Q=`Change "${p.text}" → ${S.trim()}`;l({file:p.file,line:String(p.line),component:p.component,intent:Q,action:"text_edit",elementTag:p.tag}),ze({type:"annotation",description:Q,file:p.file,line:p.line,component:p.component,action:"text_edit",context:{element_tag:p.tag,selected_text:p.text}}),Ke.value=null}function sn(){Ke.value=null}const Vn=new Set;function lt(S){const p=c.drawnSections.value.find(M=>M.id===S);!p||!p.prompt.trim()||Vn.has(S)||(Vn.add(S),l({file:p.nearFile||"",line:String(p.nearLine||0),component:p.nearComponent||"",intent:p.prompt.trim(),action:"section_request"}),ze({type:"section_request",description:p.prompt.trim(),file:p.nearFile||"",line:p.nearLine||0,component:p.nearComponent||"",placement:p.placement||"",visual:{kind:"section",annotationId:p.id,x:Math.round(p.x),y:Math.round(p.y),width:Math.round(p.width),height:Math.round(p.height)}}))}const gt=new Set;function wn(S){var Q;if(!S)return"element";const p=S.tag||"element",M=(Q=S.classes)==null?void 0:Q.split(" ").find(he=>he&&!he.startsWith("data-"));return S.component&&M?`<${p}.${M}> in ${S.component}`:S.component&&S.tag!==S.component.toLowerCase()?`<${p}> in ${S.component}`:M?`<${p}.${M}>`:`<${p}>`}function bi(S,p,M){const Q=c.arrows.value.find(O=>O.id===S);if(!Q)return;const he=wn(p),Ie=wn(M);E.value={kind:"arrow",label:`Arrow from ${he} → ${Ie}`,file:Q.fromFile||(p==null?void 0:p.file)||"",line:Q.fromLine||(p==null?void 0:p.line)||"",component:Q.fromComponent||(p==null?void 0:p.component)||"",annotationId:S,meta:{fromTag:(p==null?void 0:p.tag)||"",fromClasses:(p==null?void 0:p.classes)||"",fromComponent:(p==null?void 0:p.component)||"",toFile:Q.toFile||(M==null?void 0:M.file)||"",toLine:Q.toLine||(M==null?void 0:M.line)||0,toTag:(M==null?void 0:M.tag)||"",toClasses:(M==null?void 0:M.classes)||"",toComponent:(M==null?void 0:M.component)||""}},z.value=""}function Ea(S,p){var he;const M=c.arrows.value.find(Ie=>Ie.id===S);if(!M||!p.trim()||gt.has(S))return;gt.add(S),c.updateArrow(S,{label:p.trim()});const Q=((he=E.value)==null?void 0:he.meta)||{};l({file:M.fromFile||"",line:String(M.fromLine||0),component:M.fromComponent||"",intent:p.trim(),elementTag:Q.fromTag||"",elementClasses:Q.fromClasses||""}),ze({type:"annotation",description:p.trim(),file:M.fromFile||"",line:M.fromLine||0,component:M.fromComponent||"",visual:{kind:"arrow",annotationId:M.id,fromX:M.fromX,fromY:M.fromY,toX:M.toX,toY:M.toY,label:p.trim()},context:{from_element_tag:Q.fromTag||"",from_element_classes:Q.fromClasses||"",to_element:{tag:Q.toTag||"",classes:Q.toClasses||"",component:Q.toComponent||"",file:M.toFile||"",line:M.toLine||0}}})}function yo(){const S=E.value;if(!(!S||!z.value.trim())){if(S.kind==="pin"){const p=S.meta;c.updatePinNote(S.annotationId,z.value.trim()),l({file:S.file,line:String(S.line),component:S.component,intent:z.value.trim(),elementTag:p.elementTag,elementClasses:p.elementClasses}),ze({type:"annotation",description:z.value.trim(),file:S.file,line:parseInt(String(S.line))||0,component:S.component,visual:{kind:"pin",annotationId:S.annotationId,x:p.pinX,y:p.pinY},context:{element_tag:p.elementTag,element_classes:p.elementClasses}})}else S.kind==="arrow"&&Ea(S.annotationId,z.value.trim());E.value=null,z.value=""}}function ol(){const S=E.value;S&&(S.kind==="pin"&&c.removePin(S.annotationId),S.kind==="arrow"&&c.removeArrow(S.annotationId)),E.value=null,z.value=""}function Fa(S){ze({type:"annotation",description:S,file:"",line:0})}function Ia(S){var he;const p=S.ctrlKey||S.metaKey;if(p&&S.key==="z"&&!S.shiftKey){S.preventDefault(),r();return}const M=(he=S.target)==null?void 0:he.tagName;if(M==="INPUT"||M==="TEXTAREA"||M==="SELECT")return;const Q=S.key;if(Q==="?"||Q==="/"&&S.shiftKey){pe.value=!pe.value;return}if(Q==="Escape"){if(T.value){T.value=!1;return}if(pe.value){pe.value=!1;return}if(E.value){ol();return}fe.value=null,_e.value=[],G.value=[],I.value=[],ve.value=[];return}if((Q==="l"||Q==="L")&&!p){x.toggle();return}if((Q==="t"||Q==="T")&&!p){ce.value=!ce.value;return}}gi(()=>{var S;C.mountBridge(),re(),(S=f.value)==null||S.addEventListener("load",Z),document.addEventListener("keydown",Ia)}),Nn(()=>{C.unmountBridge()});const Oa=ue(()=>new URLSearchParams(window.location.search).get("appUrl")||window.location.origin+"/");return(S,p)=>{var M,Q,he,Ie;return y(),_("div",R1,[d("header",M1,[d("div",L1,[p[46]||(p[46]=d("svg",{class:"logo",viewBox:"0 0 85.81 90.51",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[d("path",{d:"m72.02 90.31c-.17-.1-.43-.48-.57-.82-.37-.93-1.97-3.46-2.74-4.33-.66-.74-.77-.79-5.99-2.5-2.93-.96-5.52-1.85-5.77-1.98-.47-.25-.35.01-4.7-9.99-1.1-2.53-2.11-4.72-2.25-4.87-.22-.24-1.7-.26-11.7-.21-6.3.03-11.51.12-11.58.19-.11.11-2.06 4.98-4.34 10.84-.4 1.04-1.21 3.11-1.8 4.6-.58 1.49-1.52 3.88-2.08 5.32-.64 1.65-1.18 2.76-1.45 3.02l-.44.41H8.31 0l.49-1.22c4.92-12.33 8.69-21.78 9.54-23.94 1.22-3.09 4.33-10.89 6.52-16.32.82-2.03 1.72-4.3 2-5.05.28-.74 1.17-2.97 1.97-4.96 2.26-5.6 3-7.45 4.7-11.72 2.32-5.86 5.17-13 7.63-19.11 1.2-2.98 2.29-5.73 2.44-6.13.15-.4.45-.9.68-1.13l.42-.41h8.22c4.57 0 8.4.07 8.63.17.49.19.22-.38 3.81 8.22 1.57 3.77 3 7.18 3.17 7.57.73 1.72 6 14.31 7.22 17.22 1.71 4.1 5.73 13.7 6 14.34.17.4.66 1.58 1.09 2.61.43 1.04 1.63 3.94 2.68 6.46 1.05 2.51 1.9 4.63 1.9 4.71 0 .08-.14.2-.3.27-.17.07-2.89 1.13-6.05 2.37-3.16 1.23-6.39 2.5-7.17 2.81-.78.31-1.47.51-1.53.45-.06-.06-.47-1.07-.92-2.24-1.24-3.24-5.96-15.5-7.72-20.06-.86-2.23-2.45-6.33-3.52-9.11-1.07-2.78-2.93-7.6-4.14-10.73-1.2-3.12-2.4-6.25-2.67-6.94l-.48-1.26-.19.54c-.42 1.17-1.35 3.64-3.23 8.56-1.08 2.83-2.45 6.44-3.05 8.02-.6 1.59-2.24 5.89-3.65 9.56l-2.57 6.67 8.58.05 8.58.05.31.76c.17.42 1.14 2.91 2.16 5.54 6.49 16.81 6.66 17.24 6.88 17.18.08-.02 1.08-.41 2.21-.87 1.13-.46 3.45-1.39 5.15-2.06 5.12-2.03 14.4-5.73 14.68-5.85.14-.06.39-.01.55.12.32.25 2.19 4.68 2.19 5.19 0 .18-.14.48-.3.68-.27.32-5.46 2.61-10.94 4.83-4.74 1.92-6.58 2.65-7.29 2.92l-.77.29 1.94.34 1.94.34.77-.38c1.61-.79 3.36-1.45 7.27-2.71 2.22-.72 4.1-1.32 4.19-1.33.16-.02.94 1.75 2.24 5.12.41 1.04 1.36 3.49 2.13 5.45.77 1.96 1.39 3.71 1.39 3.89 0 .75-.14.76-6.94.76-4.33 0-6.64-.07-6.85-.2z"})],-1)),d("div",D1,[d("button",{class:te(["toggle-btn",{active:v.value==="editor"}]),onClick:p[0]||(p[0]=O=>v.value="editor")},"Editor",2),d("button",{class:te(["toggle-btn",{active:v.value==="theme"}]),onClick:p[1]||(p[1]=O=>v.value="theme")},"Theme",2)]),v.value==="editor"?(y(),_(ie,{key:0},[tt(gp,{modelValue:ee(g),"onUpdate:modelValue":p[2]||(p[2]=O=>Ue(g)?g.value=O:null)},null,8,["modelValue"]),d("button",{class:te(["tool-btn",{active:ee(x).showOverlay.value}]),onClick:p[3]||(p[3]=O=>ee(x).toggle()),title:"Show Layout (L)"},[...p[45]||(p[45]=[d("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),d("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),d("line",{x1:"9",y1:"3",x2:"9",y2:"21"})],-1)])],2)],64)):Y("",!0)]),v.value==="editor"?(y(),_("div",N1,[d("code",V1,R(ee(L)),1)])):(y(),_("div",B1)),v.value==="editor"?(y(),_("div",H1,[d("div",j1,[d("button",{class:te(["toggle-btn",{active:!ce.value}]),onClick:p[4]||(p[4]=O=>ce.value=!1)},[...p[47]||(p[47]=[d("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[d("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1),rt(" Inspector ",-1)])],2),d("button",{class:te(["toggle-btn",{active:ce.value}]),onClick:p[5]||(p[5]=O=>ce.value=!0)},[p[48]||(p[48]=d("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[d("path",{d:"M9 11l3 3L22 4"}),d("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})],-1)),p[49]||(p[49]=rt(" Tasks ",-1)),le.value.length?(y(),_("span",U1,R(le.value.length),1)):Y("",!0)],2)]),d("div",Y1,[d("button",{class:te(["vis-btn",{off:!X.value.pins}]),onClick:p[6]||(p[6]=O=>X.value.pins=!X.value.pins),title:"Toggle Pins"},"P",2),d("button",{class:te(["vis-btn",{off:!X.value.arrows}]),onClick:p[7]||(p[7]=O=>X.value.arrows=!X.value.arrows),title:"Toggle Arrows"},"A",2),d("button",{class:te(["vis-btn",{off:!X.value.sections}]),onClick:p[8]||(p[8]=O=>X.value.sections=!X.value.sections),title:"Toggle Sections"},"D",2),d("button",{class:te(["vis-btn",{off:!X.value.highlights}]),onClick:p[9]||(p[9]=O=>X.value.highlights=!X.value.highlights),title:"Toggle Highlights"},"H",2)]),ee(s).length?(y(),_("span",K1,R(ee(s).length)+" change"+R(ee(s).length===1?"":"s"),1)):Y("",!0),d("button",{class:te(["tool-btn",{active:T.value}]),onClick:p[10]||(p[10]=O=>T.value=!T.value)}," View Tasks ",2),ee(s).length?(y(),_("button",{key:1,class:"tool-btn danger",onClick:u},"Clear")):Y("",!0),d("button",{class:te(["tool-btn",{active:pe.value}]),onClick:p[11]||(p[11]=O=>pe.value=!pe.value),title:"Keyboard Shortcuts (?)"},"?",2)])):(y(),_("div",W1))]),ne.value?(y(),_("div",z1,[...p[50]||(p[50]=[rt(" Source mapping unavailable — add ",-1),d("code",null,"annotask()",-1),rt(" to your Vite plugins. ",-1)])])):Y("",!0),ee(h)?Y("",!0):(y(),_("div",G1,[...p[51]||(p[51]=[rt(" Annotask not initialized — run ",-1),d("code",null,"/annotask-init",-1),rt(" in your AI assistant to set up project tokens and component detection. ",-1)])])),d("div",X1,[d("div",{class:"canvas-area",onPointerdown:p[18]||(p[18]=O=>v.value==="editor"?ee(F)(O):void 0),onPointermove:p[19]||(p[19]=O=>v.value==="editor"?ee(D)(O):void 0),onPointerup:p[20]||(p[20]=O=>v.value==="editor"?ee(U)(O):void 0)},[d("iframe",{ref_key:"iframeRef",ref:f,src:Oa.value,class:"app-iframe"},null,8,q1),v.value==="editor"?(y(),_(ie,{key:0},[ee(g)==="arrow"||ee(g)==="draw"?(y(),_("div",{key:0,class:te(["drawing-shield",ee(g)])},null,2)):Y("",!0),W.value?(y(),_("div",{key:1,class:"highlight hover",style:Me({left:W.value.x+"px",top:W.value.y+"px",width:W.value.width+"px",height:W.value.height+"px"})},[K.value?(y(),_("div",J1,[d("span",Z1,"<"+R(K.value.tag)+">",1),K.value.component?(y(),_("span",Q1,R(K.value.component),1)):Y("",!0)])):Y("",!0)],4)):Y("",!0),(y(!0),_(ie,null,ye(ve.value,(O,Ae)=>(y(),_("div",{key:"g"+Ae,class:"highlight group",style:Me({left:O.x+"px",top:O.y+"px",width:O.width+"px",height:O.height+"px"})},null,4))),128)),(y(!0),_(ie,null,ye(I.value,(O,Ae)=>(y(),_("div",{key:"s"+Ae,class:"highlight select",style:Me({left:O.x+"px",top:O.y+"px",width:O.width+"px",height:O.height+"px"})},[Ae===0&&fe.value?(y(),_("div",ey," <"+R(fe.value.tagName)+"> · "+R(fe.value.component),1)):Y("",!0)],4))),128)),X.value.pins?(y(),mt(Sp,{key:2,pins:ee(c).routePins.value,selectedPinId:ee(c).selectedPinId.value,iframeOffset:{x:((Q=(M=f.value)==null?void 0:M.getBoundingClientRect())==null?void 0:Q.left)||0,y:((Ie=(he=f.value)==null?void 0:he.getBoundingClientRect())==null?void 0:Ie.top)||0},onSelectPin:p[12]||(p[12]=O=>{ee(c).selectedPinId.value=O,j.value="notes"}),onRemovePin:ee(c).removePin},null,8,["pins","selectedPinId","iframeOffset","onRemovePin"])):Y("",!0),X.value.arrows?(y(),mt(Bp,{key:3,arrows:ee(c).routeArrows.value,selectedId:ee(c).selectedArrowId.value,drawingArrow:ee(k),onSelect:p[13]||(p[13]=O=>ee(c).selectedArrowId.value=O),onRemove:ee(c).removeArrow},null,8,["arrows","selectedId","drawingArrow","onRemove"])):Y("",!0),X.value.sections?(y(),mt(Xp,{key:4,sections:ee(c).routeSections.value,selectedId:ee(c).selectedSectionId.value,drawingRect:ee(A),onSelect:p[14]||(p[14]=O=>ee(c).selectedSectionId.value=O),onRemove:ee(c).removeDrawnSection,onUpdatePrompt:p[15]||(p[15]=(O,Ae)=>ee(c).updateDrawnSection(O,{prompt:Ae})),onCommit:lt},null,8,["sections","selectedId","drawingRect","onRemove"])):Y("",!0),X.value.highlights?(y(),mt(Uh,{key:5,highlights:ee(c).routeHighlights.value,selectedId:ee(c).selectedHighlightId.value,pending:Ke.value,onSelect:p[16]||(p[16]=O=>ee(c).selectedHighlightId.value=O),onRemove:ee(c).removeHighlight,onUpdatePrompt:p[17]||(p[17]=(O,Ae)=>ee(c).updateHighlight(O,{prompt:Ae})),onSubmitPending:_t,onCancelPending:sn},null,8,["highlights","selectedId","pending","onRemove"])):Y("",!0),ee(x).showOverlay.value?(y(),mt(Zh,{key:6,containers:ee(x).containers.value},null,8,["containers"])):Y("",!0)],64)):Y("",!0)],32),v.value==="theme"?(y(),_("aside",ty,[tt(Jv,{iframeRef:f.value},null,8,["iframeRef"])])):Y("",!0),v.value==="editor"&&pe.value?(y(),_("aside",ny,[d("div",iy,[p[52]||(p[52]=d("span",{class:"source-path",style:{color:"var(--text)"}},"Keyboard Shortcuts",-1)),d("button",{class:"component-badge",style:{cursor:"pointer","margin-left":"auto"},onClick:p[21]||(p[21]=O=>pe.value=!1)},"Esc to close")]),p[53]||(p[53]=Fr('<div class="shortcuts-panel"><div class="shortcut-group"><div class="shortcut-group-title">Tools</div><div class="shortcut-row"><kbd>V</kbd><span>Select</span></div><div class="shortcut-row"><kbd>P</kbd><span>Pin</span></div><div class="shortcut-row"><kbd>A</kbd><span>Arrow</span></div><div class="shortcut-row"><kbd>D</kbd><span>Draw Section</span></div><div class="shortcut-row"><kbd>H</kbd><span>Highlight Text</span></div><div class="shortcut-row"><kbd>I</kbd><span>Interact Mode</span></div></div><div class="shortcut-group"><div class="shortcut-group-title">View</div><div class="shortcut-row"><kbd>L</kbd><span>Toggle Layout Overlay</span></div><div class="shortcut-row"><kbd>T</kbd><span>Toggle Task Panel</span></div><div class="shortcut-row"><kbd>?</kbd><span>Toggle Shortcuts</span></div><div class="shortcut-row"><kbd>Esc</kbd><span>Deselect / Close Panel</span></div></div><div class="shortcut-group"><div class="shortcut-group-title">Actions</div><div class="shortcut-row"><kbd class="mod">Ctrl</kbd><kbd>Z</kbd><span>Undo</span></div><div class="shortcut-row"><kbd class="mod">Ctrl</kbd><kbd>Enter</kbd><span>Submit Form</span></div></div><div class="shortcut-hint">On Mac, use <kbd class="mod">⌘</kbd> instead of <kbd class="mod">Ctrl</kbd></div></div>',1))])):v.value==="editor"&&E.value?(y(),_("aside",ly,[p[56]||(p[56]=d("div",{class:"panel-source"},[d("span",{class:"source-path",style:{color:"var(--text)"}},"Add Task")],-1)),d("div",oy,[d("div",sy,[d("div",{class:te(["pending-task-kind",E.value.kind])},[E.value.kind==="pin"?(y(),_("svg",ry,[...p[54]||(p[54]=[d("circle",{cx:"12",cy:"10",r:"3"},null,-1),d("path",{d:"M12 21.7C17.3 17 20 13 20 10a8 8 0 1 0-16 0c0 3 2.7 7 8 11.7z"},null,-1)])])):E.value.kind==="arrow"?(y(),_("svg",ay,[...p[55]||(p[55]=[d("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),d("polyline",{points:"12 5 19 12 12 19"},null,-1)])])):Y("",!0),d("span",null,R(E.value.label),1)],2),d("code",uy,R(E.value.file)+":"+R(E.value.line),1)]),Ve(d("textarea",{"onUpdate:modelValue":p[22]||(p[22]=O=>z.value=O),class:"pending-task-input",rows:"3",placeholder:"Describe the change...",autofocus:"",onKeydown:[jt(De(yo,["ctrl"]),["enter"]),jt(ol,["escape"])]},null,40,cy),[[He,z.value]]),d("div",dy,[d("button",{class:"submit-btn",disabled:!z.value.trim(),onClick:yo},"Add Task",8,fy),d("button",{class:"cancel-btn",onClick:ol},"Cancel")])])])):v.value==="editor"&&ce.value?(y(),_("aside",py,[d("div",hy,[p[57]||(p[57]=d("span",{class:"source-path",style:{color:"var(--text)"}},"Tasks",-1)),d("span",gy,R(ee(a).tasks.value.length),1),d("button",{class:"new-task-toggle",onClick:p[23]||(p[23]=O=>Te.value=!Te.value)},R(Te.value?"−":"+")+" New ",1)]),Te.value?(y(),_("div",vy,[Ve(d("textarea",{"onUpdate:modelValue":p[24]||(p[24]=O=>Pe.value=O),class:"new-task-input",rows:"2",placeholder:"Describe a change...",onKeydown:jt(De(Ye,["ctrl"]),["enter"])},null,40,my),[[He,Pe.value]]),d("div",yy,[d("button",{class:"submit-btn",disabled:!Pe.value.trim(),onClick:Ye},"Add",8,by),d("button",{class:"cancel-btn",onClick:p[25]||(p[25]=O=>{Te.value=!1,Pe.value=""})},"Cancel")])])):Y("",!0),d("div",wy,[ee(a).tasks.value.length===0&&!Te.value?(y(),_("div",_y," No tasks yet. Click + New to add one. ")):Y("",!0),(y(!0),_(ie,null,ye(le.value,O=>(y(),_("div",{key:O.id,class:te(["task-card",O.status])},[d("div",xy,[d("span",{class:te(["task-status-dot",O.status])},null,2),d("span",ky,R(O.description),1),d("button",{class:"task-card-close",onClick:Ae=>be(O.id)},"×",8,Cy)]),d("div",Ay,[d("code",Sy,R(O.file)+":"+R(O.line),1),O.route?(y(),_("span",$y,R(O.route),1)):Y("",!0)]),O.feedback?(y(),_("div",Ty,R(O.feedback),1)):Y("",!0),O.status==="review"?(y(),_("div",Ey,[Xe.value!==O.id?(y(),_(ie,{key:0},[d("button",{class:"task-accept",onClick:Ae=>be(O.id)},"Accept",8,Fy),d("button",{class:"task-deny",onClick:Ae=>{Xe.value=O.id,Ce.value=""}},"Deny",8,Iy)],64)):(y(),_(ie,{key:1},[Ve(d("input",{"onUpdate:modelValue":p[26]||(p[26]=Ae=>Ce.value=Ae),class:"deny-feedback-input",placeholder:"What needs to change?",autofocus:"",onKeydown:[jt(Ae=>me(O.id),["enter"]),p[27]||(p[27]=jt(Ae=>Xe.value=null,["escape"]))]},null,40,Oy),[[He,Ce.value]]),d("button",{class:"task-deny",disabled:!Ce.value.trim(),onClick:Ae=>me(O.id)},"Send",8,Py),d("button",{class:"cancel-btn",style:{padding:"4px 8px","font-size":"10px"},onClick:p[28]||(p[28]=Ae=>Xe.value=null)},"Cancel")],64))])):Y("",!0)],2))),128))])])):v.value==="editor"&&fe.value?(y(),_("aside",Ry,[d("div",My,[d("code",Ly,R(fe.value.file)+":"+R(fe.value.line),1),d("span",Dy,R(fe.value.component),1),V.value?(y(),_("span",{key:0,class:te(["role-badge",V.value])},R(V.value),3)):Y("",!0)]),$.value?(y(),_("div",Ny,[d("span",Vy,R($.value),1),G.value.length>1&&_e.value.length<=1?(y(),_("label",By,[Ve(d("input",{type:"checkbox","onUpdate:modelValue":p[29]||(p[29]=O=>P.value=O)},null,512),[[nd,P.value]]),d("span",Hy,"Apply to all "+R(G.value.length),1)])):Y("",!0)])):Y("",!0),d("div",jy,[d("button",{class:te(["tab",{active:j.value==="layout"}]),onClick:p[30]||(p[30]=O=>j.value="layout")},"Layout",2),d("button",{class:te(["tab",{active:j.value==="spacing"}]),onClick:p[31]||(p[31]=O=>j.value="spacing")},"Spacing",2),d("button",{class:te(["tab",{active:j.value==="size"}]),onClick:p[32]||(p[32]=O=>j.value="size")},"Size",2),d("button",{class:te(["tab",{active:j.value==="style"}]),onClick:p[33]||(p[33]=O=>j.value="style")},"Style",2),d("button",{class:te(["tab",{active:j.value==="classes"}]),onClick:p[34]||(p[34]=O=>j.value="classes")},"Classes",2),d("button",{class:te(["tab",{active:j.value==="notes"}]),onClick:p[35]||(p[35]=O=>j.value="notes")},[p[58]||(p[58]=rt(" Task ",-1)),ee(c).routePins.value.length?(y(),_("span",Uy,R(ee(c).routePins.value.length),1)):Y("",!0)],2)]),d("div",Yy,[j.value==="layout"?(y(),mt(Ed,{key:0,computedStyles:B.value,onChange:ae},null,8,["computedStyles"])):Y("",!0),j.value==="spacing"?(y(),mt(Yd,{key:1,computedStyles:B.value,onChange:ae},null,8,["computedStyles"])):Y("",!0),j.value==="size"?(y(),mt(lf,{key:2,computedStyles:B.value,onChange:ae},null,8,["computedStyles"])):Y("",!0),j.value==="style"?(y(),mt(Qf,{key:3,computedStyles:B.value,iframeDoc:null,onChange:ae},null,8,["computedStyles"])):Y("",!0),j.value==="classes"?(y(),_("div",Ky,[Ve(d("textarea",{"onUpdate:modelValue":p[36]||(p[36]=O=>J.value=O),class:"class-editor",rows:"4",onBlur:we,onKeydown:jt(De(we,["ctrl"]),["enter"]),placeholder:"Edit CSS classes..."},null,40,Wy),[[He,J.value]]),p[59]||(p[59]=d("p",{class:"hint"},"Ctrl+Enter or blur to apply",-1))])):Y("",!0),j.value==="notes"?(y(),mt(Ih,{key:5,pins:ee(c).routePins.value,selectedPinId:ee(c).selectedPinId.value,selectedElement:fe.value,elementRole:V.value,tasks:ee(a).tasks.value,onAddNote:Ee,onAddAction:Ne,onAddTask:Fa,onSelectPin:p[37]||(p[37]=O=>ee(c).selectedPinId.value=O),onUpdateNote:p[38]||(p[38]=O=>ee(c).updatePinNote(O,"")),onRemovePin:p[39]||(p[39]=O=>ee(c).removePin(O)),onAcceptTask:p[40]||(p[40]=O=>ee(a).updateTaskStatus(O,"accepted")),onDenyTask:p[41]||(p[41]=(O,Ae)=>ee(a).updateTaskStatus(O,"denied",Ae)),onCancelTask:p[42]||(p[42]=O=>ee(a).updateTaskStatus(O,"accepted"))},null,8,["pins","selectedPinId","selectedElement","elementRole","tasks"])):Y("",!0)]),ee(s).length?(y(),_("div",zy,[d("details",null,[d("summary",Gy,R(ee(s).length)+" change"+R(ee(s).length===1?"":"s")+" recorded",1),d("div",Xy,[(y(!0),_(ie,null,ye(ee(s),O=>(y(),_("div",{key:O.id,class:"change-item"},[O.type==="style_update"?(y(),_(ie,{key:0},[d("code",qy,R(O.property),1),p[60]||(p[60]=d("span",{class:"change-arrow"},"→",-1)),d("code",Jy,R(O.after),1)],64)):O.type==="annotation"?(y(),_(ie,{key:1},[d("code",Zy,R(O.action||"note"),1),p[61]||(p[61]=d("span",{class:"change-arrow"},"→",-1)),d("code",Qy,R(O.intent.substring(0,30)),1)],64)):Y("",!0)]))),128))])])])):Y("",!0)])):v.value==="editor"?(y(),_("aside",eb,[...p[62]||(p[62]=[d("div",{class:"empty-content"},[d("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[d("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})]),d("p",null,"Click an element to inspect"),d("p",{class:"empty-hint"},"Press P to pin, hover to highlight")],-1)])])):Y("",!0)]),tt(_p,Ir(xe.value,{onClose:p[43]||(p[43]=O=>xe.value.visible=!1)}),null,16),T.value?(y(),mt(P1,{key:2,tasks:ee(a).tasks.value,onClose:p[44]||(p[44]=O=>T.value=!1)},null,8,["tasks"])):Y("",!0)])}}});ud(tb).mount("#app");
|