annotask 0.0.8 → 0.0.9

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.
@@ -0,0 +1,117 @@
1
+ var vu=Object.defineProperty;var mu=(e,t,n)=>t in e?vu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ne=(e,t,n)=>mu(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();/**
2
+ * @vue/shared v3.5.31
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Bl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const He={},ls=[],Zt=()=>{},zr=()=>!1,Ei=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ii=e=>e.startsWith("onUpdate:"),rt=Object.assign,Vl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yu=Object.prototype.hasOwnProperty,Oe=(e,t)=>yu.call(e,t),ye=Array.isArray,os=e=>zs(e)==="[object Map]",Ri=e=>zs(e)==="[object Set]",Io=e=>zs(e)==="[object Date]",we=e=>typeof e=="function",qe=e=>typeof e=="string",Ft=e=>typeof e=="symbol",Me=e=>e!==null&&typeof e=="object",Yr=e=>(Me(e)||we(e))&&we(e.then)&&we(e.catch),Kr=Object.prototype.toString,zs=e=>Kr.call(e),bu=e=>zs(e).slice(8,-1),Wr=e=>zs(e)==="[object Object]",Fi=e=>qe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,As=Bl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pi=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ku=/-\w/g,Dt=Pi(e=>e.replace(ku,t=>t.slice(1).toUpperCase())),wu=/\B([A-Z])/g,Sn=Pi(e=>e.replace(wu,"-$1").toLowerCase()),qr=Pi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gi=Pi(e=>e?`on${qr(e)}`:""),Xt=(e,t)=>!Object.is(e,t),li=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Gr=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Hl=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ro;const Oi=()=>Ro||(Ro=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],s=qe(i)?$u(i):je(i);if(s)for(const l in s)t[l]=s[l]}return t}else if(qe(e)||Me(e))return e}const xu=/;(?![^(]*\))/g,_u=/:([^]+)/,Cu=/\/\*[^]*?\*\//g;function $u(e){const t={};return e.replace(Cu,"").split(xu).forEach(n=>{if(n){const i=n.split(_u);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function te(e){let t="";if(qe(e))t=e;else if(ye(e))for(let n=0;n<e.length;n++){const i=te(e[n]);i&&(t+=i+" ")}else if(Me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Su="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Au=Bl(Su);function Xr(e){return!!e||e===""}function Tu(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=Ys(e[i],t[i]);return n}function Ys(e,t){if(e===t)return!0;let n=Io(e),i=Io(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=Ft(e),i=Ft(t),n||i)return e===t;if(n=ye(e),i=ye(t),n||i)return n&&i?Tu(e,t):!1;if(n=Me(e),i=Me(t),n||i){if(!n||!i)return!1;const s=Object.keys(e).length,l=Object.keys(t).length;if(s!==l)return!1;for(const o in e){const r=e.hasOwnProperty(o),u=t.hasOwnProperty(o);if(r&&!u||!r&&u||!Ys(e[o],t[o]))return!1}}return String(e)===String(t)}function Zr(e,t){return e.findIndex(n=>Ys(n,t))}const Jr=e=>!!(e&&e.__v_isRef===!0),T=e=>qe(e)?e:e==null?"":ye(e)||Me(e)&&(e.toString===Kr||!we(e.toString))?Jr(e)?T(e.value):JSON.stringify(e,Qr,2):String(e),Qr=(e,t)=>Jr(t)?Qr(e,t.value):os(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],l)=>(n[Xi(i,l)+" =>"]=s,n),{})}:Ri(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Xi(n))}:Ft(t)?Xi(t):Me(t)&&!ye(t)&&!Wr(t)?String(t):t,Xi=(e,t="")=>{var n;return Ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.31
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let kt;class Eu{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=kt,!t&&kt&&(this.index=(kt.scopes||(kt.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=kt;try{return kt=this,t()}finally{kt=n}}}on(){++this._on===1&&(this.prevScope=kt,kt=this)}off(){this._on>0&&--this._on===0&&(kt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Iu(){return kt}let Ue;const Zi=new WeakSet;class ea{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,kt&&kt.active&&kt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zi.has(this)&&(Zi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||na(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Fo(this),sa(this);const t=Ue,n=Nt;Ue=this,Nt=!0;try{return this.fn()}finally{ia(this),Ue=t,Nt=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,Fo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){fl(this)&&this.run()}get dirty(){return fl(this)}}let ta=0,Ts,Es;function na(e,t=!1){if(e.flags|=8,t){e.next=Es,Es=e;return}e.next=Ts,Ts=e}function jl(){ta++}function Ul(){if(--ta>0)return;if(Es){let t=Es;for(Es=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ts;){let t=Ts;for(Ts=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function sa(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ia(e){let t,n=e.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),zl(i),Ru(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=t,e.depsTail=n}function fl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(la(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function la(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ms)||(e.globalVersion=Ms,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!fl(e))))return;e.flags|=2;const t=e.dep,n=Ue,i=Nt;Ue=e,Nt=!0;try{sa(e);const s=e.fn(e._value);(t.version===0||Xt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ue=n,Nt=i,ia(e),e.flags&=-3}}function zl(e,t=!1){const{dep:n,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)zl(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ru(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Nt=!0;const oa=[];function pn(){oa.push(Nt),Nt=!1}function hn(){const e=oa.pop();Nt=e===void 0?!0:e}function Fo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ue;Ue=void 0;try{t()}finally{Ue=n}}}let Ms=0;class Fu{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 Yl{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(!Ue||!Nt||Ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ue)n=this.activeLink=new Fu(Ue,this),Ue.deps?(n.prevDep=Ue.depsTail,Ue.depsTail.nextDep=n,Ue.depsTail=n):Ue.deps=Ue.depsTail=n,ra(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=Ue.depsTail,n.nextDep=void 0,Ue.depsTail.nextDep=n,Ue.depsTail=n,Ue.deps===n&&(Ue.deps=i)}return n}trigger(t){this.version++,Ms++,this.notify(t)}notify(t){jl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ul()}}}function ra(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)ra(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const di=new WeakMap,jn=Symbol(""),pl=Symbol(""),Ls=Symbol("");function ct(e,t,n){if(Nt&&Ue){let i=di.get(e);i||di.set(e,i=new Map);let s=i.get(n);s||(i.set(n,s=new Yl),s.map=i,s.key=n),s.track()}}function un(e,t,n,i,s,l){const o=di.get(e);if(!o){Ms++;return}const r=u=>{u&&u.trigger()};if(jl(),t==="clear")o.forEach(r);else{const u=ye(e),d=u&&Fi(n);if(u&&n==="length"){const a=Number(i);o.forEach((f,g)=>{(g==="length"||g===Ls||!Ft(g)&&g>=a)&&r(f)})}else switch((n!==void 0||o.has(void 0))&&r(o.get(n)),d&&r(o.get(Ls)),t){case"add":u?d&&r(o.get("length")):(r(o.get(jn)),os(e)&&r(o.get(pl)));break;case"delete":u||(r(o.get(jn)),os(e)&&r(o.get(pl)));break;case"set":os(e)&&r(o.get(jn));break}}Ul()}function Pu(e,t){const n=di.get(e);return n&&n.get(t)}function Xn(e){const t=Ie(e);return t===e?t:(ct(t,"iterate",Ls),At(e)?t:t.map(Bt))}function Mi(e){return ct(e=Ie(e),"iterate",Ls),e}function Wt(e,t){return gn(e)?us(Un(e)?Bt(t):t):Bt(t)}const Ou={__proto__:null,[Symbol.iterator](){return Ji(this,Symbol.iterator,e=>Wt(this,e))},concat(...e){return Xn(this).concat(...e.map(t=>ye(t)?Xn(t):t))},entries(){return Ji(this,"entries",e=>(e[1]=Wt(this,e[1]),e))},every(e,t){return sn(this,"every",e,t,void 0,arguments)},filter(e,t){return sn(this,"filter",e,t,n=>n.map(i=>Wt(this,i)),arguments)},find(e,t){return sn(this,"find",e,t,n=>Wt(this,n),arguments)},findIndex(e,t){return sn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return sn(this,"findLast",e,t,n=>Wt(this,n),arguments)},findLastIndex(e,t){return sn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return sn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qi(this,"includes",e)},indexOf(...e){return Qi(this,"indexOf",e)},join(e){return Xn(this).join(e)},lastIndexOf(...e){return Qi(this,"lastIndexOf",e)},map(e,t){return sn(this,"map",e,t,void 0,arguments)},pop(){return gs(this,"pop")},push(...e){return gs(this,"push",e)},reduce(e,...t){return Po(this,"reduce",e,t)},reduceRight(e,...t){return Po(this,"reduceRight",e,t)},shift(){return gs(this,"shift")},some(e,t){return sn(this,"some",e,t,void 0,arguments)},splice(...e){return gs(this,"splice",e)},toReversed(){return Xn(this).toReversed()},toSorted(e){return Xn(this).toSorted(e)},toSpliced(...e){return Xn(this).toSpliced(...e)},unshift(...e){return gs(this,"unshift",e)},values(){return Ji(this,"values",e=>Wt(this,e))}};function Ji(e,t,n){const i=Mi(e),s=i[t]();return i!==e&&!At(e)&&(s._next=s.next,s.next=()=>{const l=s._next();return l.done||(l.value=n(l.value)),l}),s}const Mu=Array.prototype;function sn(e,t,n,i,s,l){const o=Mi(e),r=o!==e&&!At(e),u=o[t];if(u!==Mu[t]){const f=u.apply(e,l);return r?Bt(f):f}let d=n;o!==e&&(r?d=function(f,g){return n.call(this,Wt(e,f),g,e)}:n.length>2&&(d=function(f,g){return n.call(this,f,g,e)}));const a=u.call(o,d,i);return r&&s?s(a):a}function Po(e,t,n,i){const s=Mi(e),l=s!==e&&!At(e);let o=n,r=!1;s!==e&&(l?(r=i.length===0,o=function(d,a,f){return r&&(r=!1,d=Wt(e,d)),n.call(this,d,Wt(e,a),f,e)}):n.length>3&&(o=function(d,a,f){return n.call(this,d,a,f,e)}));const u=s[t](o,...i);return r?Wt(e,u):u}function Qi(e,t,n){const i=Ie(e);ct(i,"iterate",Ls);const s=i[t](...n);return(s===-1||s===!1)&&Li(n[0])?(n[0]=Ie(n[0]),i[t](...n)):s}function gs(e,t,n=[]){pn(),jl();const i=Ie(e)[t].apply(e,n);return Ul(),hn(),i}const Lu=Bl("__proto__,__v_isRef,__isVue"),aa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ft));function Du(e){Ft(e)||(e=String(e));const t=Ie(this);return ct(t,"has",e),t.hasOwnProperty(e)}class ca{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return l;if(n==="__v_raw")return i===(s?l?Wu:pa:l?fa:da).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const o=ye(t);if(!s){let u;if(o&&(u=Ou[n]))return u;if(n==="hasOwnProperty")return Du}const r=Reflect.get(t,n,Xe(t)?t:i);if((Ft(n)?aa.has(n):Lu(n))||(s||ct(t,"get",n),l))return r;if(Xe(r)){const u=o&&Fi(n)?r:r.value;return s&&Me(u)?gl(u):u}return Me(r)?s?gl(r):Wl(r):r}}class ua extends ca{constructor(t=!1){super(!1,t)}set(t,n,i,s){let l=t[n];const o=ye(t)&&Fi(n);if(!this._isShallow){const d=gn(l);if(!At(i)&&!gn(i)&&(l=Ie(l),i=Ie(i)),!o&&Xe(l)&&!Xe(i))return d||(l.value=i),!0}const r=o?Number(n)<t.length:Oe(t,n),u=Reflect.set(t,n,i,Xe(t)?t:s);return t===Ie(s)&&(r?Xt(i,l)&&un(t,"set",n,i):un(t,"add",n,i)),u}deleteProperty(t,n){const i=Oe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&i&&un(t,"delete",n,void 0),s}has(t,n){const i=Reflect.has(t,n);return(!Ft(n)||!aa.has(n))&&ct(t,"has",n),i}ownKeys(t){return ct(t,"iterate",ye(t)?"length":jn),Reflect.ownKeys(t)}}class Nu extends ca{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Bu=new ua,Vu=new Nu,Hu=new ua(!0);const hl=e=>e,Qs=e=>Reflect.getPrototypeOf(e);function ju(e,t,n){return function(...i){const s=this.__v_raw,l=Ie(s),o=os(l),r=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=s[e](...i),a=n?hl:t?us:Bt;return!t&&ct(l,"iterate",u?pl:jn),rt(Object.create(d),{next(){const{value:f,done:g}=d.next();return g?{value:f,done:g}:{value:r?[a(f[0]),a(f[1])]:a(f),done:g}}})}}function ei(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Uu(e,t){const n={get(s){const l=this.__v_raw,o=Ie(l),r=Ie(s);e||(Xt(s,r)&&ct(o,"get",s),ct(o,"get",r));const{has:u}=Qs(o),d=t?hl:e?us:Bt;if(u.call(o,s))return d(l.get(s));if(u.call(o,r))return d(l.get(r));l!==o&&l.get(s)},get size(){const s=this.__v_raw;return!e&&ct(Ie(s),"iterate",jn),s.size},has(s){const l=this.__v_raw,o=Ie(l),r=Ie(s);return e||(Xt(s,r)&&ct(o,"has",s),ct(o,"has",r)),s===r?l.has(s):l.has(s)||l.has(r)},forEach(s,l){const o=this,r=o.__v_raw,u=Ie(r),d=t?hl:e?us:Bt;return!e&&ct(u,"iterate",jn),r.forEach((a,f)=>s.call(l,d(a),d(f),o))}};return rt(n,e?{add:ei("add"),set:ei("set"),delete:ei("delete"),clear:ei("clear")}:{add(s){const l=Ie(this),o=Qs(l),r=Ie(s),u=!t&&!At(s)&&!gn(s)?r:s;return o.has.call(l,u)||Xt(s,u)&&o.has.call(l,s)||Xt(r,u)&&o.has.call(l,r)||(l.add(u),un(l,"add",u,u)),this},set(s,l){!t&&!At(l)&&!gn(l)&&(l=Ie(l));const o=Ie(this),{has:r,get:u}=Qs(o);let d=r.call(o,s);d||(s=Ie(s),d=r.call(o,s));const a=u.call(o,s);return o.set(s,l),d?Xt(l,a)&&un(o,"set",s,l):un(o,"add",s,l),this},delete(s){const l=Ie(this),{has:o,get:r}=Qs(l);let u=o.call(l,s);u||(s=Ie(s),u=o.call(l,s)),r&&r.call(l,s);const d=l.delete(s);return u&&un(l,"delete",s,void 0),d},clear(){const s=Ie(this),l=s.size!==0,o=s.clear();return l&&un(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=ju(s,e,t)}),n}function Kl(e,t){const n=Uu(e,t);return(i,s,l)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(Oe(n,s)&&s in i?n:i,s,l)}const zu={get:Kl(!1,!1)},Yu={get:Kl(!1,!0)},Ku={get:Kl(!0,!1)};const da=new WeakMap,fa=new WeakMap,pa=new WeakMap,Wu=new WeakMap;function qu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gu(e){return e.__v_skip||!Object.isExtensible(e)?0:qu(bu(e))}function Wl(e){return gn(e)?e:ql(e,!1,Bu,zu,da)}function Xu(e){return ql(e,!1,Hu,Yu,fa)}function gl(e){return ql(e,!0,Vu,Ku,pa)}function ql(e,t,n,i,s){if(!Me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=Gu(e);if(l===0)return e;const o=s.get(e);if(o)return o;const r=new Proxy(e,l===2?i:n);return s.set(e,r),r}function Un(e){return gn(e)?Un(e.__v_raw):!!(e&&e.__v_isReactive)}function gn(e){return!!(e&&e.__v_isReadonly)}function At(e){return!!(e&&e.__v_isShallow)}function Li(e){return e?!!e.__v_raw:!1}function Ie(e){const t=e&&e.__v_raw;return t?Ie(t):e}function Zu(e){return!Oe(e,"__v_skip")&&Object.isExtensible(e)&&Gr(e,"__v_skip",!0),e}const Bt=e=>Me(e)?Wl(e):e,us=e=>Me(e)?gl(e):e;function Xe(e){return e?e.__v_isRef===!0:!1}function z(e){return Ju(e,!1)}function Ju(e,t){return Xe(e)?e:new Qu(e,t)}class Qu{constructor(t,n){this.dep=new Yl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ie(t),this._value=n?t:Bt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||At(t)||gn(t);t=i?t:Ie(t),Xt(t,n)&&(this._rawValue=t,this._value=i?t:Bt(t),this.dep.trigger())}}function O(e){return Xe(e)?e.value:e}const ed={get:(e,t,n)=>t==="__v_raw"?e:O(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return Xe(s)&&!Xe(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function ha(e){return Un(e)?e:new Proxy(e,ed)}class td{constructor(t,n,i){this._object=t,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._key=Ft(n)?n:String(n),this._raw=Ie(t);let s=!0,l=t;if(!ye(t)||Ft(this._key)||!Fi(this._key))do s=!Li(l)||At(l);while(s&&(l=l.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=O(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Xe(this._raw[this._key])){const n=this._object[this._key];if(Xe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Pu(this._raw,this._key)}}class nd{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 sd(e,t,n){return Xe(e)?e:we(e)?new nd(e):Me(e)&&arguments.length>1?id(e,t,n):z(e)}function id(e,t,n){return new td(e,t,n)}class ld{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Yl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ms-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return na(this,!0),!0}get value(){const t=this.dep.track();return la(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function od(e,t,n=!1){let i,s;return we(e)?i=e:(i=e.get,s=e.set),new ld(i,s,n)}const ti={},fi=new WeakMap;let Bn;function rd(e,t=!1,n=Bn){if(n){let i=fi.get(n);i||fi.set(n,i=[]),i.push(e)}}function ad(e,t,n=He){const{immediate:i,deep:s,once:l,scheduler:o,augmentJob:r,call:u}=n,d=C=>s?C:At(C)||s===!1||s===0?dn(C,1):dn(C);let a,f,g,p,k=!1,b=!1;if(Xe(e)?(f=()=>e.value,k=At(e)):Un(e)?(f=()=>d(e),k=!0):ye(e)?(b=!0,k=e.some(C=>Un(C)||At(C)),f=()=>e.map(C=>{if(Xe(C))return C.value;if(Un(C))return d(C);if(we(C))return u?u(C,2):C()})):we(e)?t?f=u?()=>u(e,2):e:f=()=>{if(g){pn();try{g()}finally{hn()}}const C=Bn;Bn=a;try{return u?u(e,3,[p]):e(p)}finally{Bn=C}}:f=Zt,t&&s){const C=f,F=s===!0?1/0:s;f=()=>dn(C(),F)}const $=Iu(),R=()=>{a.stop(),$&&$.active&&Vl($.effects,a)};if(l&&t){const C=t;t=(...F)=>{C(...F),R()}}let x=b?new Array(e.length).fill(ti):ti;const _=C=>{if(!(!(a.flags&1)||!a.dirty&&!C))if(t){const F=a.run();if(s||k||(b?F.some((N,U)=>Xt(N,x[U])):Xt(F,x))){g&&g();const N=Bn;Bn=a;try{const U=[F,x===ti?void 0:b&&x[0]===ti?[]:x,p];x=F,u?u(t,3,U):t(...U)}finally{Bn=N}}}else a.run()};return r&&r(_),a=new ea(f),a.scheduler=o?()=>o(_,!1):_,p=C=>rd(C,!1,a),g=a.onStop=()=>{const C=fi.get(a);if(C){if(u)u(C,4);else for(const F of C)F();fi.delete(a)}},t?i?_(!0):x=a.run():o?o(_.bind(null,!0),!0):a.run(),R.pause=a.pause.bind(a),R.resume=a.resume.bind(a),R.stop=R,R}function dn(e,t=1/0,n){if(t<=0||!Me(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Xe(e))dn(e.value,t,n);else if(ye(e))for(let i=0;i<e.length;i++)dn(e[i],t,n);else if(Ri(e)||os(e))e.forEach(i=>{dn(i,t,n)});else if(Wr(e)){for(const i in e)dn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&dn(e[i],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.31
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function Ks(e,t,n,i){try{return i?e(...i):e()}catch(s){Di(s,t,n)}}function Qt(e,t,n,i){if(we(e)){const s=Ks(e,t,n,i);return s&&Yr(s)&&s.catch(l=>{Di(l,t,n)}),s}if(ye(e)){const s=[];for(let l=0;l<e.length;l++)s.push(Qt(e[l],t,n,i));return s}}function Di(e,t,n,i=!0){const s=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||He;if(t){let r=t.parent;const u=t.proxy,d=`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,d)===!1)return}r=r.parent}if(l){pn(),Ks(l,null,10,[e,u,d]),hn();return}}cd(e,n,s,i,o)}function cd(e,t,n,i=!0,s=!1){if(s)throw e;console.error(e)}const ht=[];let zt=-1;const rs=[];let wn=null,es=0;const ga=Promise.resolve();let pi=null;function Gl(e){const t=pi||ga;return e?t.then(this?e.bind(this):e):t}function ud(e){let t=zt+1,n=ht.length;for(;t<n;){const i=t+n>>>1,s=ht[i],l=Ds(s);l<e||l===e&&s.flags&2?t=i+1:n=i}return t}function Xl(e){if(!(e.flags&1)){const t=Ds(e),n=ht[ht.length-1];!n||!(e.flags&2)&&t>=Ds(n)?ht.push(e):ht.splice(ud(t),0,e),e.flags|=1,va()}}function va(){pi||(pi=ga.then(ya))}function dd(e){ye(e)?rs.push(...e):wn&&e.id===-1?wn.splice(es+1,0,e):e.flags&1||(rs.push(e),e.flags|=1),va()}function Oo(e,t,n=zt+1){for(;n<ht.length;n++){const i=ht[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;ht.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function ma(e){if(rs.length){const t=[...new Set(rs)].sort((n,i)=>Ds(n)-Ds(i));if(rs.length=0,wn){wn.push(...t);return}for(wn=t,es=0;es<wn.length;es++){const n=wn[es];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}wn=null,es=0}}const Ds=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ya(e){try{for(zt=0;zt<ht.length;zt++){const t=ht[zt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ks(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;zt<ht.length;zt++){const t=ht[zt];t&&(t.flags&=-2)}zt=-1,ht.length=0,ma(),pi=null,(ht.length||rs.length)&&ya()}}let Rt=null,ba=null;function hi(e){const t=Rt;return Rt=e,ba=e&&e.type.__scopeId||null,t}function fd(e,t=Rt,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&Wo(-1);const l=hi(t);let o;try{o=e(...s)}finally{hi(l),i._d&&Wo(1)}return o};return i._n=!0,i._c=!0,i._d=!0,i}function Pe(e,t){if(Rt===null)return e;const n=Hi(Rt),i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,o,r,u=He]=t[s];l&&(we(l)&&(l={mounted:l,updated:l}),l.deep&&dn(o),i.push({dir:l,instance:n,value:o,oldValue:void 0,arg:r,modifiers:u}))}return e}function Fn(e,t,n,i){const s=e.dirs,l=t&&t.dirs;for(let o=0;o<s.length;o++){const r=s[o];l&&(r.oldValue=l[o].value);let u=r.dir[i];u&&(pn(),Qt(u,n,8,[e.el,r,e,t]),hn())}}function pd(e,t){if(gt){let n=gt.provides;const i=gt.parent&&gt.parent.provides;i===n&&(n=gt.provides=Object.create(i)),n[e]=t}}function oi(e,t,n=!1){const i=pf();if(i||as){let s=as?as._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&we(t)?t.call(i&&i.proxy):t}}const hd=Symbol.for("v-scx"),gd=()=>oi(hd);function it(e,t,n){return ka(e,t,n)}function ka(e,t,n=He){const{immediate:i,deep:s,flush:l,once:o}=n,r=rt({},n),u=t&&i||!t&&l!=="post";let d;if(Bs){if(l==="sync"){const p=gd();d=p.__watcherHandles||(p.__watcherHandles=[])}else if(!u){const p=()=>{};return p.stop=Zt,p.resume=Zt,p.pause=Zt,p}}const a=gt;r.call=(p,k,b)=>Qt(p,a,k,b);let f=!1;l==="post"?r.scheduler=p=>{at(p,a&&a.suspense)}:l!=="sync"&&(f=!0,r.scheduler=(p,k)=>{k?p():Xl(p)}),r.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,a&&(p.id=a.uid,p.i=a))};const g=ad(e,t,r);return Bs&&(d?d.push(g):u&&g()),g}function vd(e,t,n){const i=this.proxy,s=qe(e)?e.includes(".")?wa(i,e):()=>i[e]:e.bind(i,i);let l;we(t)?l=t:(l=t.handler,n=t);const o=Ws(this),r=ka(s,l.bind(i),n);return o(),r}function wa(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;s<n.length&&i;s++)i=i[n[s]];return i}}const xa=Symbol("_vte"),md=e=>e.__isTeleport,Is=e=>e&&(e.disabled||e.disabled===""),yd=e=>e&&(e.defer||e.defer===""),Mo=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Lo=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,vl=(e,t)=>{const n=e&&e.to;return qe(n)?t?t(n):null:n},_a={name:"Teleport",__isTeleport:!0,process(e,t,n,i,s,l,o,r,u,d){const{mc:a,pc:f,pbc:g,o:{insert:p,querySelector:k,createText:b,createComment:$}}=d,R=Is(t.props);let{shapeFlag:x,children:_,dynamicChildren:C}=t;if(e==null){const F=t.el=b(""),N=t.anchor=b("");p(F,n,i),p(N,n,i);const U=(P,J)=>{x&16&&a(_,P,J,s,l,o,r,u)},ne=()=>{const P=t.target=vl(t.props,k),J=ml(P,t,b,p);P&&(o!=="svg"&&Mo(P)?o="svg":o!=="mathml"&&Lo(P)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(P),R||(U(P,J),ri(t,!1)))};R&&(U(n,N),ri(t,!0)),yd(t.props)||l&&l.pendingBranch?(t.el.__isMounted=!1,at(()=>{t.el.__isMounted===!1&&(ne(),delete t.el.__isMounted)},l)):ne()}else{t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,N=t.target=e.target,U=t.targetAnchor=e.targetAnchor;if(e.el.__isMounted===!1){at(()=>{_a.process(e,t,n,i,s,l,o,r,u,d)},l);return}const ne=Is(e.props),P=ne?n:N,J=ne?F:U;if(o==="svg"||Mo(N)?o="svg":(o==="mathml"||Lo(N))&&(o="mathml"),C?(g(e.dynamicChildren,C,P,s,l,o,r),eo(e,t,!0)):u||f(e,t,P,J,s,l,o,r,!1),R)ne?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ni(t,n,F,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=t.target=vl(t.props,k);ie&&ni(t,ie,null,d,0)}else ne&&ni(t,N,U,d,1);ri(t,R)}},remove(e,t,n,{um:i,o:{remove:s}},l){const{shapeFlag:o,children:r,anchor:u,targetStart:d,targetAnchor:a,target:f,props:g}=e;if(f&&(s(d),s(a)),l&&s(u),o&16){const p=l||!Is(g);for(let k=0;k<r.length;k++){const b=r[k];i(b,t,n,p,!!b.dynamicChildren)}}},move:ni,hydrate:bd};function ni(e,t,n,{o:{insert:i},m:s},l=2){l===0&&i(e.targetAnchor,t,n);const{el:o,anchor:r,shapeFlag:u,children:d,props:a}=e,f=l===2;if(f&&i(o,t,n),(!f||Is(a))&&u&16)for(let g=0;g<d.length;g++)s(d[g],t,n,2);f&&i(r,t,n)}function bd(e,t,n,i,s,l,{o:{nextSibling:o,parentNode:r,querySelector:u,insert:d,createText:a}},f){function g($,R){let x=R;for(;x;){if(x&&x.nodeType===8){if(x.data==="teleport start anchor")t.targetStart=x;else if(x.data==="teleport anchor"){t.targetAnchor=x,$._lpa=t.targetAnchor&&o(t.targetAnchor);break}}x=o(x)}}function p($,R){R.anchor=f(o($),R,r($),n,i,s,l)}const k=t.target=vl(t.props,u),b=Is(t.props);if(k){const $=k._lpa||k.firstChild;t.shapeFlag&16&&(b?(p(e,t),g(k,$),t.targetAnchor||ml(k,t,a,d,r(e)===k?e:null)):(t.anchor=o(e),g(k,$),t.targetAnchor||ml(k,t,a,d),f($&&o($),t,k,n,i,s,l))),ri(t,b)}else b&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const kd=_a;function ri(e,t){const n=e.ctx;if(n&&n.ut){let i,s;for(t?(i=e.el,s=e.anchor):(i=e.targetStart,s=e.targetAnchor);i&&i!==s;)i.nodeType===1&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function ml(e,t,n,i,s=null){const l=t.targetStart=n(""),o=t.targetAnchor=n("");return l[xa]=o,e&&(i(l,e,s),i(o,e,s)),o}const wd=Symbol("_leaveCb");function Zl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zl(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 we(e)?rt({name:e.name},t,{setup:e}):e}function Ca(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Do(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const gi=new WeakMap;function Rs(e,t,n,i,s=!1){if(ye(e)){e.forEach((b,$)=>Rs(b,t&&(ye(t)?t[$]:t),n,i,s));return}if(Fs(i)&&!s){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Rs(e,t,n,i.component.subTree);return}const l=i.shapeFlag&4?Hi(i.component):i.el,o=s?null:l,{i:r,r:u}=e,d=t&&t.r,a=r.refs===He?r.refs={}:r.refs,f=r.setupState,g=Ie(f),p=f===He?zr:b=>Do(a,b)?!1:Oe(g,b),k=(b,$)=>!($&&Do(a,$));if(d!=null&&d!==u){if(No(t),qe(d))a[d]=null,p(d)&&(f[d]=null);else if(Xe(d)){const b=t;k(d,b.k)&&(d.value=null),b.k&&(a[b.k]=null)}}if(we(u))Ks(u,r,12,[o,a]);else{const b=qe(u),$=Xe(u);if(b||$){const R=()=>{if(e.f){const x=b?p(u)?f[u]:a[u]:k()||!e.k?u.value:a[e.k];if(s)ye(x)&&Vl(x,l);else if(ye(x))x.includes(l)||x.push(l);else if(b)a[u]=[l],p(u)&&(f[u]=a[u]);else{const _=[l];k(u,e.k)&&(u.value=_),e.k&&(a[e.k]=_)}}else b?(a[u]=o,p(u)&&(f[u]=o)):$&&(k(u,e.k)&&(u.value=o),e.k&&(a[e.k]=o))};if(o){const x=()=>{R(),gi.delete(e)};x.id=-1,gi.set(e,x),at(x,n)}else No(e),R()}}}function No(e){const t=gi.get(e);t&&(t.flags|=8,gi.delete(e))}Oi().requestIdleCallback;Oi().cancelIdleCallback;const Fs=e=>!!e.type.__asyncLoader,$a=e=>e.type.__isKeepAlive;function xd(e,t){Sa(e,"a",t)}function _d(e,t){Sa(e,"da",t)}function Sa(e,t,n=gt){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Ni(t,i,n),n){let s=n.parent;for(;s&&s.parent;)$a(s.parent.vnode)&&Cd(i,t,n,s),s=s.parent}}function Cd(e,t,n,i){const s=Ni(t,e,i,!0);An(()=>{Vl(i[t],s)},n)}function Ni(e,t,n=gt,i=!1){if(n){const s=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...o)=>{pn();const r=Ws(n),u=Qt(t,n,e,o);return r(),hn(),u});return i?s.unshift(l):s.push(l),l}}const yn=e=>(t,n=gt)=>{(!Bs||e==="sp")&&Ni(e,(...i)=>t(...i),n)},$d=yn("bm"),Kn=yn("m"),Sd=yn("bu"),Ad=yn("u"),Td=yn("bum"),An=yn("um"),Ed=yn("sp"),Id=yn("rtg"),Rd=yn("rtc");function Fd(e,t=gt){Ni("ec",e,t)}const Pd=Symbol.for("v-ndc");function me(e,t,n,i){let s;const l=n,o=ye(e);if(o||qe(e)){const r=o&&Un(e);let u=!1,d=!1;r&&(u=!At(e),d=gn(e),e=Mi(e)),s=new Array(e.length);for(let a=0,f=e.length;a<f;a++)s[a]=t(u?d?us(Bt(e[a])):Bt(e[a]):e[a],a,void 0,l)}else if(typeof e=="number"){s=new Array(e);for(let r=0;r<e;r++)s[r]=t(r+1,r,void 0,l)}else if(Me(e))if(e[Symbol.iterator])s=Array.from(e,(r,u)=>t(r,u,void 0,l));else{const r=Object.keys(e);s=new Array(r.length);for(let u=0,d=r.length;u<d;u++){const a=r[u];s[u]=t(e[a],a,u,l)}}else s=[];return s}const yl=e=>e?qa(e)?Hi(e):yl(e.parent):null,Ps=rt(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=>yl(e.parent),$root:e=>yl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ta(e),$forceUpdate:e=>e.f||(e.f=()=>{Xl(e.update)}),$nextTick:e=>e.n||(e.n=Gl.bind(e.proxy)),$watch:e=>vd.bind(e)}),el=(e,t)=>e!==He&&!e.__isScriptSetup&&Oe(e,t),Od={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:l,accessCache:o,type:r,appContext:u}=e;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return l[t]}else{if(el(i,t))return o[t]=1,i[t];if(s!==He&&Oe(s,t))return o[t]=2,s[t];if(Oe(l,t))return o[t]=3,l[t];if(n!==He&&Oe(n,t))return o[t]=4,n[t];bl&&(o[t]=0)}}const d=Ps[t];let a,f;if(d)return t==="$attrs"&&ct(e.attrs,"get",""),d(e);if((a=r.__cssModules)&&(a=a[t]))return a;if(n!==He&&Oe(n,t))return o[t]=4,n[t];if(f=u.config.globalProperties,Oe(f,t))return f[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:l}=e;return el(s,t)?(s[t]=n,!0):i!==He&&Oe(i,t)?(i[t]=n,!0):Oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,props:l,type:o}},r){let u;return!!(n[r]||e!==He&&r[0]!=="$"&&Oe(e,r)||el(t,r)||Oe(l,r)||Oe(i,r)||Oe(Ps,r)||Oe(s.config.globalProperties,r)||(u=o.__cssModules)&&u[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bo(e){return ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let bl=!0;function Md(e){const t=Ta(e),n=e.proxy,i=e.ctx;bl=!1,t.beforeCreate&&Vo(t.beforeCreate,e,"bc");const{data:s,computed:l,methods:o,watch:r,provide:u,inject:d,created:a,beforeMount:f,mounted:g,beforeUpdate:p,updated:k,activated:b,deactivated:$,beforeDestroy:R,beforeUnmount:x,destroyed:_,unmounted:C,render:F,renderTracked:N,renderTriggered:U,errorCaptured:ne,serverPrefetch:P,expose:J,inheritAttrs:ie,components:pe,directives:be,filters:ke}=t;if(d&&Ld(d,i,null),o)for(const Y in o){const I=o[Y];we(I)&&(i[Y]=I.bind(n))}if(s){const Y=s.call(n,n);Me(Y)&&(e.data=Wl(Y))}if(bl=!0,l)for(const Y in l){const I=l[Y],V=we(I)?I.bind(n,n):we(I.get)?I.get.bind(n,n):Zt,he=!we(I)&&we(I.set)?I.set.bind(n):Zt,K=oe({get:V,set:he});Object.defineProperty(i,Y,{enumerable:!0,configurable:!0,get:()=>K.value,set:G=>K.value=G})}if(r)for(const Y in r)Aa(r[Y],i,n,Y);if(u){const Y=we(u)?u.call(n):u;Reflect.ownKeys(Y).forEach(I=>{pd(I,Y[I])})}a&&Vo(a,e,"c");function Te(Y,I){ye(I)?I.forEach(V=>Y(V.bind(n))):I&&Y(I.bind(n))}if(Te($d,f),Te(Kn,g),Te(Sd,p),Te(Ad,k),Te(xd,b),Te(_d,$),Te(Fd,ne),Te(Rd,N),Te(Id,U),Te(Td,x),Te(An,C),Te(Ed,P),ye(J))if(J.length){const Y=e.exposed||(e.exposed={});J.forEach(I=>{Object.defineProperty(Y,I,{get:()=>n[I],set:V=>n[I]=V,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===Zt&&(e.render=F),ie!=null&&(e.inheritAttrs=ie),pe&&(e.components=pe),be&&(e.directives=be),P&&Ca(e)}function Ld(e,t,n=Zt){ye(e)&&(e=kl(e));for(const i in e){const s=e[i];let l;Me(s)?"default"in s?l=oi(s.from||i,s.default,!0):l=oi(s.from||i):l=oi(s),Xe(l)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):t[i]=l}}function Vo(e,t,n){Qt(ye(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function Aa(e,t,n,i){let s=i.includes(".")?wa(n,i):()=>n[i];if(qe(e)){const l=t[e];we(l)&&it(s,l)}else if(we(e))it(s,e.bind(n));else if(Me(e))if(ye(e))e.forEach(l=>Aa(l,t,n,i));else{const l=we(e.handler)?e.handler.bind(n):t[e.handler];we(l)&&it(s,l,e)}}function Ta(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,r=l.get(t);let u;return r?u=r:!s.length&&!n&&!i?u=t:(u={},s.length&&s.forEach(d=>vi(u,d,o,!0)),vi(u,t,o)),Me(t)&&l.set(t,u),u}function vi(e,t,n,i=!1){const{mixins:s,extends:l}=t;l&&vi(e,l,n,!0),s&&s.forEach(o=>vi(e,o,n,!0));for(const o in t)if(!(i&&o==="expose")){const r=Dd[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Dd={data:Ho,props:jo,emits:jo,methods:xs,computed:xs,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:xs,directives:xs,watch:Bd,provide:Ho,inject:Nd};function Ho(e,t){return t?e?function(){return rt(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function Nd(e,t){return xs(kl(e),kl(t))}function kl(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function pt(e,t){return e?[...new Set([].concat(e,t))]:t}function xs(e,t){return e?rt(Object.create(null),e,t):t}function jo(e,t){return e?ye(e)&&ye(t)?[...new Set([...e,...t])]:rt(Object.create(null),Bo(e),Bo(t??{})):t}function Bd(e,t){if(!e)return t;if(!t)return e;const n=rt(Object.create(null),e);for(const i in t)n[i]=pt(e[i],t[i]);return n}function Ea(){return{app:null,config:{isNativeTag:zr,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 Vd=0;function Hd(e,t){return function(i,s=null){we(i)||(i=rt({},i)),s!=null&&!Me(s)&&(s=null);const l=Ea(),o=new WeakSet,r=[];let u=!1;const d=l.app={_uid:Vd++,_component:i,_props:s,_container:null,_context:l,_instance:null,version:bf,get config(){return l.config},set config(a){},use(a,...f){return o.has(a)||(a&&we(a.install)?(o.add(a),a.install(d,...f)):we(a)&&(o.add(a),a(d,...f))),d},mixin(a){return l.mixins.includes(a)||l.mixins.push(a),d},component(a,f){return f?(l.components[a]=f,d):l.components[a]},directive(a,f){return f?(l.directives[a]=f,d):l.directives[a]},mount(a,f,g){if(!u){const p=d._ceVNode||lt(i,s);return p.appContext=l,g===!0?g="svg":g===!1&&(g=void 0),e(p,a,g),u=!0,d._container=a,a.__vue_app__=d,Hi(p.component)}},onUnmount(a){r.push(a)},unmount(){u&&(Qt(r,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,f){return l.provides[a]=f,d},runWithContext(a){const f=as;as=d;try{return a()}finally{as=f}}};return d}}let as=null;const jd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Dt(t)}Modifiers`]||e[`${Sn(t)}Modifiers`];function Ud(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||He;let s=n;const l=t.startsWith("update:"),o=l&&jd(i,t.slice(7));o&&(o.trim&&(s=n.map(a=>qe(a)?a.trim():a)),o.number&&(s=n.map(Hl)));let r,u=i[r=Gi(t)]||i[r=Gi(Dt(t))];!u&&l&&(u=i[r=Gi(Sn(t))]),u&&Qt(u,e,6,s);const d=i[r+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Qt(d,e,6,s)}}const zd=new WeakMap;function Ia(e,t,n=!1){const i=n?zd:t.emitsCache,s=i.get(e);if(s!==void 0)return s;const l=e.emits;let o={},r=!1;if(!we(e)){const u=d=>{const a=Ia(d,t,!0);a&&(r=!0,rt(o,a))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!r?(Me(e)&&i.set(e,null),null):(ye(l)?l.forEach(u=>o[u]=null):rt(o,l),Me(e)&&i.set(e,o),o)}function Bi(e,t){return!e||!Ei(t)?!1:(t=t.slice(2).replace(/Once$/,""),Oe(e,t[0].toLowerCase()+t.slice(1))||Oe(e,Sn(t))||Oe(e,t))}function Uo(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[l],slots:o,attrs:r,emit:u,render:d,renderCache:a,props:f,data:g,setupState:p,ctx:k,inheritAttrs:b}=e,$=hi(e);let R,x;try{if(n.shapeFlag&4){const C=s||i,F=C;R=qt(d.call(F,C,a,f,p,g,k)),x=r}else{const C=t;R=qt(C.length>1?C(f,{attrs:r,slots:o,emit:u}):C(f,null)),x=t.props?r:Yd(r)}}catch(C){Os.length=0,Di(C,e,1),R=lt(Cn)}let _=R;if(x&&b!==!1){const C=Object.keys(x),{shapeFlag:F}=_;C.length&&F&7&&(l&&C.some(Ii)&&(x=Kd(x,l)),_=ds(_,x,!1,!0))}return n.dirs&&(_=ds(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&Zl(_,n.transition),R=_,hi($),R}const Yd=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ei(n))&&((t||(t={}))[n]=e[n]);return t},Kd=(e,t)=>{const n={};for(const i in e)(!Ii(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Wd(e,t,n){const{props:i,children:s,component:l}=e,{props:o,children:r,patchFlag:u}=t,d=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return i?zo(i,o,d):!!o;if(u&8){const a=t.dynamicProps;for(let f=0;f<a.length;f++){const g=a[f];if(Ra(o,i,g)&&!Bi(d,g))return!0}}}else return(s||r)&&(!r||!r.$stable)?!0:i===o?!1:i?o?zo(i,o,d):!0:!!o;return!1}function zo(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let s=0;s<i.length;s++){const l=i[s];if(Ra(t,e,l)&&!Bi(n,l))return!0}return!1}function Ra(e,t,n){const i=e[n],s=t[n];return n==="style"&&Me(i)&&Me(s)?!Ys(i,s):i!==s}function qd({vnode:e,parent:t,suspense:n},i){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=i,e=s),s===e)(e=t.vnode).el=i,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=i)}const Fa={},Pa=()=>Object.create(Fa),Oa=e=>Object.getPrototypeOf(e)===Fa;function Gd(e,t,n,i=!1){const s={},l=Pa();e.propsDefaults=Object.create(null),Ma(e,t,s,l);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=i?s:Xu(s):e.type.props?e.props=s:e.props=l,e.attrs=l}function Xd(e,t,n,i){const{props:s,attrs:l,vnode:{patchFlag:o}}=e,r=Ie(s),[u]=e.propsOptions;let d=!1;if((i||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let f=0;f<a.length;f++){let g=a[f];if(Bi(e.emitsOptions,g))continue;const p=t[g];if(u)if(Oe(l,g))p!==l[g]&&(l[g]=p,d=!0);else{const k=Dt(g);s[k]=wl(u,r,k,p,e,!1)}else p!==l[g]&&(l[g]=p,d=!0)}}}else{Ma(e,t,s,l)&&(d=!0);let a;for(const f in r)(!t||!Oe(t,f)&&((a=Sn(f))===f||!Oe(t,a)))&&(u?n&&(n[f]!==void 0||n[a]!==void 0)&&(s[f]=wl(u,r,f,void 0,e,!0)):delete s[f]);if(l!==r)for(const f in l)(!t||!Oe(t,f))&&(delete l[f],d=!0)}d&&un(e.attrs,"set","")}function Ma(e,t,n,i){const[s,l]=e.propsOptions;let o=!1,r;if(t)for(let u in t){if(As(u))continue;const d=t[u];let a;s&&Oe(s,a=Dt(u))?!l||!l.includes(a)?n[a]=d:(r||(r={}))[a]=d:Bi(e.emitsOptions,u)||(!(u in i)||d!==i[u])&&(i[u]=d,o=!0)}if(l){const u=Ie(n),d=r||He;for(let a=0;a<l.length;a++){const f=l[a];n[f]=wl(s,u,f,d[f],e,!Oe(d,f))}}return o}function wl(e,t,n,i,s,l){const o=e[n];if(o!=null){const r=Oe(o,"default");if(r&&i===void 0){const u=o.default;if(o.type!==Function&&!o.skipFactory&&we(u)){const{propsDefaults:d}=s;if(n in d)i=d[n];else{const a=Ws(s);i=d[n]=u.call(null,t),a()}}else i=u;s.ce&&s.ce._setProp(n,i)}o[0]&&(l&&!r?i=!1:o[1]&&(i===""||i===Sn(n))&&(i=!0))}return i}const Zd=new WeakMap;function La(e,t,n=!1){const i=n?Zd:t.propsCache,s=i.get(e);if(s)return s;const l=e.props,o={},r=[];let u=!1;if(!we(e)){const a=f=>{u=!0;const[g,p]=La(f,t,!0);rt(o,g),p&&r.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!l&&!u)return Me(e)&&i.set(e,ls),ls;if(ye(l))for(let a=0;a<l.length;a++){const f=Dt(l[a]);Yo(f)&&(o[f]=He)}else if(l)for(const a in l){const f=Dt(a);if(Yo(f)){const g=l[a],p=o[f]=ye(g)||we(g)?{type:g}:rt({},g),k=p.type;let b=!1,$=!0;if(ye(k))for(let R=0;R<k.length;++R){const x=k[R],_=we(x)&&x.name;if(_==="Boolean"){b=!0;break}else _==="String"&&($=!1)}else b=we(k)&&k.name==="Boolean";p[0]=b,p[1]=$,(b||Oe(p,"default"))&&r.push(f)}}const d=[o,r];return Me(e)&&i.set(e,d),d}function Yo(e){return e[0]!=="$"&&!As(e)}const Jl=e=>e==="_"||e==="_ctx"||e==="$stable",Ql=e=>ye(e)?e.map(qt):[qt(e)],Jd=(e,t,n)=>{if(t._n)return t;const i=fd((...s)=>Ql(t(...s)),n);return i._c=!1,i},Da=(e,t,n)=>{const i=e._ctx;for(const s in e){if(Jl(s))continue;const l=e[s];if(we(l))t[s]=Jd(s,l,i);else if(l!=null){const o=Ql(l);t[s]=()=>o}}},Na=(e,t)=>{const n=Ql(t);e.slots.default=()=>n},Ba=(e,t,n)=>{for(const i in t)(n||!Jl(i))&&(e[i]=t[i])},Qd=(e,t,n)=>{const i=e.slots=Pa();if(e.vnode.shapeFlag&32){const s=t._;s?(Ba(i,t,n),n&&Gr(i,"_",s,!0)):Da(t,i)}else t&&Na(e,t)},ef=(e,t,n)=>{const{vnode:i,slots:s}=e;let l=!0,o=He;if(i.shapeFlag&32){const r=t._;r?n&&r===1?l=!1:Ba(s,t,n):(l=!t.$stable,Da(t,s)),o=t}else t&&(Na(e,t),o={default:1});if(l)for(const r in s)!Jl(r)&&o[r]==null&&delete s[r]},at=of;function tf(e){return nf(e)}function nf(e,t){const n=Oi();n.__VUE__=!0;const{insert:i,remove:s,patchProp:l,createElement:o,createText:r,createComment:u,setText:d,setElementText:a,parentNode:f,nextSibling:g,setScopeId:p=Zt,insertStaticContent:k}=e,b=(w,y,E,j=null,H=null,W=null,Q=void 0,ee=null,X=!!y.dynamicChildren)=>{if(w===y)return;w&&!vs(w,y)&&(j=Z(w),G(w,H,W,!0),w=null),y.patchFlag===-2&&(X=!1,y.dynamicChildren=null);const{type:q,ref:de,shapeFlag:re}=y;switch(q){case Vi:$(w,y,E,j);break;case Cn:R(w,y,E,j);break;case ai:w==null&&x(y,E,j,Q);break;case se:pe(w,y,E,j,H,W,Q,ee,X);break;default:re&1?F(w,y,E,j,H,W,Q,ee,X):re&6?be(w,y,E,j,H,W,Q,ee,X):(re&64||re&128)&&q.process(w,y,E,j,H,W,Q,ee,X,L)}de!=null&&H?Rs(de,w&&w.ref,W,y||w,!y):de==null&&w&&w.ref!=null&&Rs(w.ref,null,W,w,!0)},$=(w,y,E,j)=>{if(w==null)i(y.el=r(y.children),E,j);else{const H=y.el=w.el;y.children!==w.children&&d(H,y.children)}},R=(w,y,E,j)=>{w==null?i(y.el=u(y.children||""),E,j):y.el=w.el},x=(w,y,E,j)=>{[w.el,w.anchor]=k(w.children,y,E,j,w.el,w.anchor)},_=({el:w,anchor:y},E,j)=>{let H;for(;w&&w!==y;)H=g(w),i(w,E,j),w=H;i(y,E,j)},C=({el:w,anchor:y})=>{let E;for(;w&&w!==y;)E=g(w),s(w),w=E;s(y)},F=(w,y,E,j,H,W,Q,ee,X)=>{if(y.type==="svg"?Q="svg":y.type==="math"&&(Q="mathml"),w==null)N(y,E,j,H,W,Q,ee,X);else{const q=w.el&&w.el._isVueCE?w.el:null;try{q&&q._beginPatch(),P(w,y,H,W,Q,ee,X)}finally{q&&q._endPatch()}}},N=(w,y,E,j,H,W,Q,ee)=>{let X,q;const{props:de,shapeFlag:re,transition:ue,dirs:ge}=w;if(X=w.el=o(w.type,W,de&&de.is,de),re&8?a(X,w.children):re&16&&ne(w.children,X,null,j,H,tl(w,W),Q,ee),ge&&Fn(w,null,j,"created"),U(X,w,w.scopeId,Q,j),de){for(const Ee in de)Ee!=="value"&&!As(Ee)&&l(X,Ee,null,de[Ee],W,j);"value"in de&&l(X,"value",null,de.value,W),(q=de.onVnodeBeforeMount)&&Ht(q,j,w)}ge&&Fn(w,null,j,"beforeMount");const Ce=sf(H,ue);Ce&&ue.beforeEnter(X),i(X,y,E),((q=de&&de.onVnodeMounted)||Ce||ge)&&at(()=>{try{q&&Ht(q,j,w),Ce&&ue.enter(X),ge&&Fn(w,null,j,"mounted")}finally{}},H)},U=(w,y,E,j,H)=>{if(E&&p(w,E),j)for(let W=0;W<j.length;W++)p(w,j[W]);if(H){let W=H.subTree;if(y===W||ja(W.type)&&(W.ssContent===y||W.ssFallback===y)){const Q=H.vnode;U(w,Q,Q.scopeId,Q.slotScopeIds,H.parent)}}},ne=(w,y,E,j,H,W,Q,ee,X=0)=>{for(let q=X;q<w.length;q++){const de=w[q]=ee?on(w[q]):qt(w[q]);b(null,de,y,E,j,H,W,Q,ee)}},P=(w,y,E,j,H,W,Q)=>{const ee=y.el=w.el;let{patchFlag:X,dynamicChildren:q,dirs:de}=y;X|=w.patchFlag&16;const re=w.props||He,ue=y.props||He;let ge;if(E&&Pn(E,!1),(ge=ue.onVnodeBeforeUpdate)&&Ht(ge,E,y,w),de&&Fn(y,w,E,"beforeUpdate"),E&&Pn(E,!0),(re.innerHTML&&ue.innerHTML==null||re.textContent&&ue.textContent==null)&&a(ee,""),q?J(w.dynamicChildren,q,ee,E,j,tl(y,H),W):Q||I(w,y,ee,null,E,j,tl(y,H),W,!1),X>0){if(X&16)ie(ee,re,ue,E,H);else if(X&2&&re.class!==ue.class&&l(ee,"class",null,ue.class,H),X&4&&l(ee,"style",re.style,ue.style,H),X&8){const Ce=y.dynamicProps;for(let Ee=0;Ee<Ce.length;Ee++){const Fe=Ce[Ee],Ye=re[Fe],We=ue[Fe];(We!==Ye||Fe==="value")&&l(ee,Fe,Ye,We,H,E)}}X&1&&w.children!==y.children&&a(ee,y.children)}else!Q&&q==null&&ie(ee,re,ue,E,H);((ge=ue.onVnodeUpdated)||de)&&at(()=>{ge&&Ht(ge,E,y,w),de&&Fn(y,w,E,"updated")},j)},J=(w,y,E,j,H,W,Q)=>{for(let ee=0;ee<y.length;ee++){const X=w[ee],q=y[ee],de=X.el&&(X.type===se||!vs(X,q)||X.shapeFlag&198)?f(X.el):E;b(X,q,de,null,j,H,W,Q,!0)}},ie=(w,y,E,j,H)=>{if(y!==E){if(y!==He)for(const W in y)!As(W)&&!(W in E)&&l(w,W,y[W],null,H,j);for(const W in E){if(As(W))continue;const Q=E[W],ee=y[W];Q!==ee&&W!=="value"&&l(w,W,ee,Q,H,j)}"value"in E&&l(w,"value",y.value,E.value,H)}},pe=(w,y,E,j,H,W,Q,ee,X)=>{const q=y.el=w?w.el:r(""),de=y.anchor=w?w.anchor:r("");let{patchFlag:re,dynamicChildren:ue,slotScopeIds:ge}=y;ge&&(ee=ee?ee.concat(ge):ge),w==null?(i(q,E,j),i(de,E,j),ne(y.children||[],E,de,H,W,Q,ee,X)):re>0&&re&64&&ue&&w.dynamicChildren&&w.dynamicChildren.length===ue.length?(J(w.dynamicChildren,ue,E,H,W,Q,ee),(y.key!=null||H&&y===H.subTree)&&eo(w,y,!0)):I(w,y,E,de,H,W,Q,ee,X)},be=(w,y,E,j,H,W,Q,ee,X)=>{y.slotScopeIds=ee,w==null?y.shapeFlag&512?H.ctx.activate(y,E,j,Q,X):ke(y,E,j,H,W,Q,X):Le(w,y,X)},ke=(w,y,E,j,H,W,Q)=>{const ee=w.component=ff(w,j,H);if($a(w)&&(ee.ctx.renderer=L),hf(ee,!1,Q),ee.asyncDep){if(H&&H.registerDep(ee,Te,Q),!w.el){const X=ee.subTree=lt(Cn);R(null,X,y,E),w.placeholder=X.el}}else Te(ee,w,y,E,H,W,Q)},Le=(w,y,E)=>{const j=y.component=w.component;if(Wd(w,y,E))if(j.asyncDep&&!j.asyncResolved){Y(j,y,E);return}else j.next=y,j.update();else y.el=w.el,j.vnode=y},Te=(w,y,E,j,H,W,Q)=>{const ee=()=>{if(w.isMounted){let{next:re,bu:ue,u:ge,parent:Ce,vnode:Ee}=w;{const _t=Va(w);if(_t){re&&(re.el=Ee.el,Y(w,re,Q)),_t.asyncDep.then(()=>{at(()=>{w.isUnmounted||q()},H)});return}}let Fe=re,Ye;Pn(w,!1),re?(re.el=Ee.el,Y(w,re,Q)):re=Ee,ue&&li(ue),(Ye=re.props&&re.props.onVnodeBeforeUpdate)&&Ht(Ye,Ce,re,Ee),Pn(w,!0);const We=Uo(w),Tt=w.subTree;w.subTree=We,b(Tt,We,f(Tt.el),Z(Tt),w,H,W),re.el=We.el,Fe===null&&qd(w,We.el),ge&&at(ge,H),(Ye=re.props&&re.props.onVnodeUpdated)&&at(()=>Ht(Ye,Ce,re,Ee),H)}else{let re;const{el:ue,props:ge}=y,{bm:Ce,m:Ee,parent:Fe,root:Ye,type:We}=w,Tt=Fs(y);Pn(w,!1),Ce&&li(Ce),!Tt&&(re=ge&&ge.onVnodeBeforeMount)&&Ht(re,Fe,y),Pn(w,!0);{Ye.ce&&Ye.ce._hasShadowRoot()&&Ye.ce._injectChildStyle(We,w.parent?w.parent.type:void 0);const _t=w.subTree=Uo(w);b(null,_t,E,j,w,H,W),y.el=_t.el}if(Ee&&at(Ee,H),!Tt&&(re=ge&&ge.onVnodeMounted)){const _t=y;at(()=>Ht(re,Fe,_t),H)}(y.shapeFlag&256||Fe&&Fs(Fe.vnode)&&Fe.vnode.shapeFlag&256)&&w.a&&at(w.a,H),w.isMounted=!0,y=E=j=null}};w.scope.on();const X=w.effect=new ea(ee);w.scope.off();const q=w.update=X.run.bind(X),de=w.job=X.runIfDirty.bind(X);de.i=w,de.id=w.uid,X.scheduler=()=>Xl(de),Pn(w,!0),q()},Y=(w,y,E)=>{y.component=w;const j=w.vnode.props;w.vnode=y,w.next=null,Xd(w,y.props,j,E),ef(w,y.children,E),pn(),Oo(w),hn()},I=(w,y,E,j,H,W,Q,ee,X=!1)=>{const q=w&&w.children,de=w?w.shapeFlag:0,re=y.children,{patchFlag:ue,shapeFlag:ge}=y;if(ue>0){if(ue&128){he(q,re,E,j,H,W,Q,ee,X);return}else if(ue&256){V(q,re,E,j,H,W,Q,ee,X);return}}ge&8?(de&16&&Se(q,H,W),re!==q&&a(E,re)):de&16?ge&16?he(q,re,E,j,H,W,Q,ee,X):Se(q,H,W,!0):(de&8&&a(E,""),ge&16&&ne(re,E,j,H,W,Q,ee,X))},V=(w,y,E,j,H,W,Q,ee,X)=>{w=w||ls,y=y||ls;const q=w.length,de=y.length,re=Math.min(q,de);let ue;for(ue=0;ue<re;ue++){const ge=y[ue]=X?on(y[ue]):qt(y[ue]);b(w[ue],ge,E,null,H,W,Q,ee,X)}q>de?Se(w,H,W,!0,!1,re):ne(y,E,j,H,W,Q,ee,X,re)},he=(w,y,E,j,H,W,Q,ee,X)=>{let q=0;const de=y.length;let re=w.length-1,ue=de-1;for(;q<=re&&q<=ue;){const ge=w[q],Ce=y[q]=X?on(y[q]):qt(y[q]);if(vs(ge,Ce))b(ge,Ce,E,null,H,W,Q,ee,X);else break;q++}for(;q<=re&&q<=ue;){const ge=w[re],Ce=y[ue]=X?on(y[ue]):qt(y[ue]);if(vs(ge,Ce))b(ge,Ce,E,null,H,W,Q,ee,X);else break;re--,ue--}if(q>re){if(q<=ue){const ge=ue+1,Ce=ge<de?y[ge].el:j;for(;q<=ue;)b(null,y[q]=X?on(y[q]):qt(y[q]),E,Ce,H,W,Q,ee,X),q++}}else if(q>ue)for(;q<=re;)G(w[q],H,W,!0),q++;else{const ge=q,Ce=q,Ee=new Map;for(q=Ce;q<=ue;q++){const Ze=y[q]=X?on(y[q]):qt(y[q]);Ze.key!=null&&Ee.set(Ze.key,q)}let Fe,Ye=0;const We=ue-Ce+1;let Tt=!1,_t=0;const Et=new Array(We);for(q=0;q<We;q++)Et[q]=0;for(q=ge;q<=re;q++){const Ze=w[q];if(Ye>=We){G(Ze,H,W,!0);continue}let dt;if(Ze.key!=null)dt=Ee.get(Ze.key);else for(Fe=Ce;Fe<=ue;Fe++)if(Et[Fe-Ce]===0&&vs(Ze,y[Fe])){dt=Fe;break}dt===void 0?G(Ze,H,W,!0):(Et[dt-Ce]=q+1,dt>=_t?_t=dt:Tt=!0,b(Ze,y[dt],E,null,H,W,Q,ee,X),Ye++)}const qn=Tt?lf(Et):ls;for(Fe=qn.length-1,q=We-1;q>=0;q--){const Ze=Ce+q,dt=y[Ze],It=y[Ze+1],Vt=Ze+1<de?It.el||Ha(It):j;Et[q]===0?b(null,dt,E,Vt,H,W,Q,ee,X):Tt&&(Fe<0||q!==qn[Fe]?K(dt,E,Vt,2):Fe--)}}},K=(w,y,E,j,H=null)=>{const{el:W,type:Q,transition:ee,children:X,shapeFlag:q}=w;if(q&6){K(w.component.subTree,y,E,j);return}if(q&128){w.suspense.move(y,E,j);return}if(q&64){Q.move(w,y,E,L);return}if(Q===se){i(W,y,E);for(let re=0;re<X.length;re++)K(X[re],y,E,j);i(w.anchor,y,E);return}if(Q===ai){_(w,y,E);return}if(j!==2&&q&1&&ee)if(j===0)ee.beforeEnter(W),i(W,y,E),at(()=>ee.enter(W),H);else{const{leave:re,delayLeave:ue,afterLeave:ge}=ee,Ce=()=>{w.ctx.isUnmounted?s(W):i(W,y,E)},Ee=()=>{W._isLeaving&&W[wd](!0),re(W,()=>{Ce(),ge&&ge()})};ue?ue(W,Ce,Ee):Ee()}else i(W,y,E)},G=(w,y,E,j=!1,H=!1)=>{const{type:W,props:Q,ref:ee,children:X,dynamicChildren:q,shapeFlag:de,patchFlag:re,dirs:ue,cacheIndex:ge,memo:Ce}=w;if(re===-2&&(H=!1),ee!=null&&(pn(),Rs(ee,null,E,w,!0),hn()),ge!=null&&(y.renderCache[ge]=void 0),de&256){y.ctx.deactivate(w);return}const Ee=de&1&&ue,Fe=!Fs(w);let Ye;if(Fe&&(Ye=Q&&Q.onVnodeBeforeUnmount)&&Ht(Ye,y,w),de&6)ze(w.component,E,j);else{if(de&128){w.suspense.unmount(E,j);return}Ee&&Fn(w,null,y,"beforeUnmount"),de&64?w.type.remove(w,y,E,L,j):q&&!q.hasOnce&&(W!==se||re>0&&re&64)?Se(q,y,E,!1,!0):(W===se&&re&384||!H&&de&16)&&Se(X,y,E),j&&ae(w)}const We=Ce!=null&&ge==null;(Fe&&(Ye=Q&&Q.onVnodeUnmounted)||Ee||We)&&at(()=>{Ye&&Ht(Ye,y,w),Ee&&Fn(w,null,y,"unmounted"),We&&(w.el=null)},E)},ae=w=>{const{type:y,el:E,anchor:j,transition:H}=w;if(y===se){xe(E,j);return}if(y===ai){C(w);return}const W=()=>{s(E),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(w.shapeFlag&1&&H&&!H.persisted){const{leave:Q,delayLeave:ee}=H,X=()=>Q(E,W);ee?ee(w.el,W,X):X()}else W()},xe=(w,y)=>{let E;for(;w!==y;)E=g(w),s(w),w=E;s(y)},ze=(w,y,E)=>{const{bum:j,scope:H,job:W,subTree:Q,um:ee,m:X,a:q}=w;Ko(X),Ko(q),j&&li(j),H.stop(),W&&(W.flags|=8,G(Q,w,y,E)),ee&&at(ee,y),at(()=>{w.isUnmounted=!0},y)},Se=(w,y,E,j=!1,H=!1,W=0)=>{for(let Q=W;Q<w.length;Q++)G(w[Q],y,E,j,H)},Z=w=>{if(w.shapeFlag&6)return Z(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const y=g(w.anchor||w.el),E=y&&y[xa];return E?g(E):y};let B=!1;const De=(w,y,E)=>{let j;w==null?y._vnode&&(G(y._vnode,null,null,!0),j=y._vnode.component):b(y._vnode||null,w,y,null,null,null,E),y._vnode=w,B||(B=!0,Oo(j),ma(),B=!1)},L={p:b,um:G,m:K,r:ae,mt:ke,mc:ne,pc:I,pbc:J,n:Z,o:e};return{render:De,hydrate:void 0,createApp:Hd(De)}}function tl({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 Pn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function sf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function eo(e,t,n=!1){const i=e.children,s=t.children;if(ye(i)&&ye(s))for(let l=0;l<i.length;l++){const o=i[l];let r=s[l];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=s[l]=on(s[l]),r.el=o.el),!n&&r.patchFlag!==-2&&eo(o,r)),r.type===Vi&&(r.patchFlag===-1&&(r=s[l]=on(r)),r.el=o.el),r.type===Cn&&!r.el&&(r.el=o.el)}}function lf(e){const t=e.slice(),n=[0];let i,s,l,o,r;const u=e.length;for(i=0;i<u;i++){const d=e[i];if(d!==0){if(s=n[n.length-1],e[s]<d){t[i]=s,n.push(i);continue}for(l=0,o=n.length-1;l<o;)r=l+o>>1,e[n[r]]<d?l=r+1:o=r;d<e[n[l]]&&(l>0&&(t[i]=n[l-1]),n[l]=i)}}for(l=n.length,o=n[l-1];l-- >0;)n[l]=o,o=t[o];return n}function Va(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Va(t)}function Ko(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ha(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ha(t.subTree):null}const ja=e=>e.__isSuspense;function of(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):dd(e)}const se=Symbol.for("v-fgt"),Vi=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt"),ai=Symbol.for("v-stc"),Os=[];let St=null;function v(e=!1){Os.push(St=e?null:[])}function rf(){Os.pop(),St=Os[Os.length-1]||null}let Ns=1;function Wo(e,t=!1){Ns+=e,e<0&&St&&t&&(St.hasOnce=!0)}function Ua(e){return e.dynamicChildren=Ns>0?St||ls:null,rf(),Ns>0&&St&&St.push(e),e}function m(e,t,n,i,s,l){return Ua(c(e,t,n,i,s,l,!0))}function bt(e,t,n,i,s){return Ua(lt(e,t,n,i,s,!0))}function za(e){return e?e.__v_isVNode===!0:!1}function vs(e,t){return e.type===t.type&&e.key===t.key}const Ya=({key:e})=>e??null,ci=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?qe(e)||Xe(e)||we(e)?{i:Rt,r:e,k:t,f:!!n}:e:null);function c(e,t=null,n=null,i=0,s=null,l=e===se?0:1,o=!1,r=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ya(t),ref:t&&ci(t),scopeId:ba,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:l,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Rt};return r?(to(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=qe(n)?8:16),Ns>0&&!o&&St&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&St.push(u),u}const lt=af;function af(e,t=null,n=null,i=0,s=null,l=!1){if((!e||e===Pd)&&(e=Cn),za(e)){const r=ds(e,t,!0);return n&&to(r,n),Ns>0&&!l&&St&&(r.shapeFlag&6?St[St.indexOf(e)]=r:St.push(r)),r.patchFlag=-2,r}if(yf(e)&&(e=e.__vccOpts),t){t=cf(t);let{class:r,style:u}=t;r&&!qe(r)&&(t.class=te(r)),Me(u)&&(Li(u)&&!ye(u)&&(u=rt({},u)),t.style=je(u))}const o=qe(e)?1:ja(e)?128:md(e)?64:Me(e)?4:we(e)?2:0;return c(e,t,n,i,s,o,l,!0)}function cf(e){return e?Li(e)||Oa(e)?rt({},e):e:null}function ds(e,t,n=!1,i=!1){const{props:s,ref:l,patchFlag:o,children:r,transition:u}=e,d=t?Wa(s||{},t):s,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Ya(d),ref:t&&t.ref?n&&l?ye(l)?l.concat(ci(t)):[l,ci(t)]:ci(t):l,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!==se?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ds(e.ssContent),ssFallback:e.ssFallback&&ds(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&i&&Zl(a,u.clone(a)),a}function et(e=" ",t=0){return lt(Vi,null,e,t)}function Ka(e,t){const n=lt(ai,null,e);return n.staticCount=t,n}function M(e="",t=!1){return t?(v(),bt(Cn,null,e)):lt(Cn,null,e)}function qt(e){return e==null||typeof e=="boolean"?lt(Cn):ye(e)?lt(se,null,e.slice()):za(e)?on(e):lt(Vi,null,String(e))}function on(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ds(e)}function to(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ye(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),to(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Oa(t)?t._ctx=Rt:s===3&&Rt&&(Rt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:Rt},n=32):(t=String(t),i&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wa(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const s in i)if(s==="class")t.class!==i.class&&(t.class=te([t.class,i.class]));else if(s==="style")t.style=je([t.style,i.style]);else if(Ei(s)){const l=t[s],o=i[s];o&&l!==o&&!(ye(l)&&l.includes(o))?t[s]=l?[].concat(l,o):o:o==null&&l==null&&!Ii(s)&&(t[s]=o)}else s!==""&&(t[s]=i[s])}return t}function Ht(e,t,n,i=null){Qt(e,t,7,[n,i])}const uf=Ea();let df=0;function ff(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||uf,l={uid:df++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Eu(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:La(i,s),emitsOptions:Ia(i,s),emit:null,emitted:null,propsDefaults:He,inheritAttrs:i.inheritAttrs,ctx:He,data:He,props:He,attrs:He,slots:He,refs:He,setupState:He,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 l.ctx={_:l},l.root=t?t.root:l,l.emit=Ud.bind(null,l),e.ce&&e.ce(l),l}let gt=null;const pf=()=>gt||Rt;let mi,xl;{const e=Oi(),t=(n,i)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(i),l=>{s.length>1?s.forEach(o=>o(l)):s[0](l)}};mi=t("__VUE_INSTANCE_SETTERS__",n=>gt=n),xl=t("__VUE_SSR_SETTERS__",n=>Bs=n)}const Ws=e=>{const t=gt;return mi(e),e.scope.on(),()=>{e.scope.off(),mi(t)}},qo=()=>{gt&&gt.scope.off(),mi(null)};function qa(e){return e.vnode.shapeFlag&4}let Bs=!1;function hf(e,t=!1,n=!1){t&&xl(t);const{props:i,children:s}=e.vnode,l=qa(e);Gd(e,i,l,t),Qd(e,s,n||t);const o=l?gf(e,t):void 0;return t&&xl(!1),o}function gf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Od);const{setup:i}=n;if(i){pn();const s=e.setupContext=i.length>1?mf(e):null,l=Ws(e),o=Ks(i,e,0,[e.props,s]),r=Yr(o);if(hn(),l(),(r||e.sp)&&!Fs(e)&&Ca(e),r){if(o.then(qo,qo),t)return o.then(u=>{Go(e,u)}).catch(u=>{Di(u,e,0)});e.asyncDep=o}else Go(e,o)}else Ga(e)}function Go(e,t,n){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Me(t)&&(e.setupState=ha(t)),Ga(e)}function Ga(e,t,n){const i=e.type;e.render||(e.render=i.render||Zt);{const s=Ws(e);pn();try{Md(e)}finally{hn(),s()}}}const vf={get(e,t){return ct(e,"get",""),e[t]}};function mf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,vf),slots:e.slots,emit:e.emit,expose:t}}function Hi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ha(Zu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ps)return Ps[n](e)},has(t,n){return n in t||n in Ps}})):e.proxy}function yf(e){return we(e)&&"__vccOpts"in e}const oe=(e,t)=>od(e,t,Bs),bf="3.5.31";/**
14
+ * @vue/runtime-dom v3.5.31
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let _l;const Xo=typeof window<"u"&&window.trustedTypes;if(Xo)try{_l=Xo.createPolicy("vue",{createHTML:e=>e})}catch{}const Xa=_l?e=>_l.createHTML(e):e=>e,kf="http://www.w3.org/2000/svg",wf="http://www.w3.org/1998/Math/MathML",ln=typeof document<"u"?document:null,Zo=ln&&ln.createElement("template"),xf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s=t==="svg"?ln.createElementNS(kf,e):t==="mathml"?ln.createElementNS(wf,e):n?ln.createElement(e,{is:n}):ln.createElement(e);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>ln.createTextNode(e),createComment:e=>ln.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ln.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,l){const o=n?n.previousSibling:t.lastChild;if(s&&(s===l||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===l||!(s=s.nextSibling)););else{Zo.innerHTML=Xa(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const r=Zo.content;if(i==="svg"||i==="mathml"){const u=r.firstChild;for(;u.firstChild;)r.appendChild(u.firstChild);r.removeChild(u)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},_f=Symbol("_vtc");function Cf(e,t,n){const i=e[_f];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Jo=Symbol("_vod"),$f=Symbol("_vsh"),Sf=Symbol(""),Af=/(?:^|;)\s*display\s*:/;function Tf(e,t,n){const i=e.style,s=qe(n);let l=!1;if(n&&!s){if(t)if(qe(t))for(const o of t.split(";")){const r=o.slice(0,o.indexOf(":")).trim();n[r]==null&&ui(i,r,"")}else for(const o in t)n[o]==null&&ui(i,o,"");for(const o in n)o==="display"&&(l=!0),ui(i,o,n[o])}else if(s){if(t!==n){const o=i[Sf];o&&(n+=";"+o),i.cssText=n,l=Af.test(n)}}else t&&e.removeAttribute("style");Jo in e&&(e[Jo]=l?i.display:"",e[$f]&&(i.display="none"))}const Qo=/\s*!important$/;function ui(e,t,n){if(ye(n))n.forEach(i=>ui(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Ef(e,t);Qo.test(n)?e.setProperty(Sn(i),n.replace(Qo,""),"important"):e[i]=n}}const er=["Webkit","Moz","ms"],nl={};function Ef(e,t){const n=nl[t];if(n)return n;let i=Dt(t);if(i!=="filter"&&i in e)return nl[t]=i;i=qr(i);for(let s=0;s<er.length;s++){const l=er[s]+i;if(l in e)return nl[t]=l}return t}const tr="http://www.w3.org/1999/xlink";function nr(e,t,n,i,s,l=Au(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(tr,t.slice(6,t.length)):e.setAttributeNS(tr,t,n):n==null||l&&!Xr(n)?e.removeAttribute(t):e.setAttribute(t,l?"":Ft(n)?String(n):n)}function sr(e,t,n,i,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Xa(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const r=l==="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 o=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=Xr(n):n==null&&r==="string"?(n="",o=!0):r==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Vn(e,t,n,i){e.addEventListener(t,n,i)}function If(e,t,n,i){e.removeEventListener(t,n,i)}const ir=Symbol("_vei");function Rf(e,t,n,i,s=null){const l=e[ir]||(e[ir]={}),o=l[t];if(i&&o)o.value=i;else{const[r,u]=Ff(t);if(i){const d=l[t]=Mf(i,s);Vn(e,r,d,u)}else o&&(If(e,r,o,u),l[t]=void 0)}}const lr=/(?:Once|Passive|Capture)$/;function Ff(e){let t;if(lr.test(e)){t={};let i;for(;i=e.match(lr);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Sn(e.slice(2)),t]}let sl=0;const Pf=Promise.resolve(),Of=()=>sl||(Pf.then(()=>sl=0),sl=Date.now());function Mf(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Qt(Lf(i,n.value),t,5,[i])};return n.value=e,n.attached=Of(),n}function Lf(e,t){if(ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const or=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Df=(e,t,n,i,s,l)=>{const o=s==="svg";t==="class"?Cf(e,i,o):t==="style"?Tf(e,n,i):Ei(t)?Ii(t)||Rf(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nf(e,t,i,o))?(sr(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&nr(e,t,i,o,l,t!=="value")):e._isVueCE&&(Bf(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!qe(i)))?sr(e,Dt(t),i,l,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),nr(e,t,i,o))};function Nf(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&or(t)&&we(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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return or(t)&&qe(n)?!1:t in e}function Bf(e,t){const n=e._def.props;if(!n)return!1;const i=Dt(t);return Array.isArray(n)?n.some(s=>Dt(s)===i):Object.keys(n).some(s=>Dt(s)===i)}const yi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ye(t)?n=>li(t,n):t};function Vf(e){e.target.composing=!0}function rr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cs=Symbol("_assign");function ar(e,t,n){return t&&(e=e.trim()),n&&(e=Hl(e)),e}const Ke={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[cs]=yi(s);const l=i||s.props&&s.props.type==="number";Vn(e,t?"change":"input",o=>{o.target.composing||e[cs](ar(e.value,n,l))}),(n||l)&&Vn(e,"change",()=>{e.value=ar(e.value,n,l)}),t||(Vn(e,"compositionstart",Vf),Vn(e,"compositionend",rr),Vn(e,"change",rr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:s,number:l}},o){if(e[cs]=yi(o),e.composing)return;const r=(l||e.type==="number")&&!/^0\d/.test(e.value)?Hl(e.value):e.value,u=t??"";if(r===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(i&&t===n||s&&e.value.trim()===u)||(e.value=u)}},On={deep:!0,created(e,t,n){e[cs]=yi(n),Vn(e,"change",()=>{const i=e._modelValue,s=Hf(e),l=e.checked,o=e[cs];if(ye(i)){const r=Zr(i,s),u=r!==-1;if(l&&!u)o(i.concat(s));else if(!l&&u){const d=[...i];d.splice(r,1),o(d)}}else if(Ri(i)){const r=new Set(i);l?r.add(s):r.delete(s),o(r)}else o(Za(e,l))})},mounted:cr,beforeUpdate(e,t,n){e[cs]=yi(n),cr(e,t,n)}};function cr(e,{value:t,oldValue:n},i){e._modelValue=t;let s;if(ye(t))s=Zr(t,i.props.value)>-1;else if(Ri(t))s=t.has(i.props.value);else{if(t===n)return;s=Ys(t,Za(e,!0))}e.checked!==s&&(e.checked=s)}function Hf(e){return"_value"in e?e._value:e.value}function Za(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const jf=["ctrl","shift","alt","meta"],Uf={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)=>jf.some(n=>e[`${n}Key`]&&!t.includes(n))},Be=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=((s,...l)=>{for(let o=0;o<t.length;o++){const r=Uf[t[o]];if(r&&r(s,t))return}return e(s,...l)}))},zf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wt=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=(s=>{if(!("key"in s))return;const l=Sn(s.key);if(t.some(o=>o===l||zf[o]===l))return e(s)}))},Yf=rt({patchProp:Df},xf);let ur;function Kf(){return ur||(ur=tf(Yf))}const Wf=((...e)=>{const t=Kf().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=Gf(i);if(!s)return;const l=t._component;!we(l)&&!l.render&&!l.template&&(l.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,qf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function qf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Gf(e){return qe(e)?document.querySelector(e):e}const Xf={class:"layout-controls"},Zf={class:"control-row"},Jf={class:"button-group"},Qf=["onClick"],ep={class:"control-row"},tp={class:"button-group"},np={class:"control-row"},sp={class:"button-group"},ip=["title","onClick"],lp={class:"control-row"},op={class:"button-group"},rp=["title","onClick"],ap={class:"control-row"},cp={class:"num-input-group"},up=["value"],dp={class:"num-value"},fp=nt({__name:"LayoutControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,s=oe(()=>n.computedStyles.display||"block"),l=oe(()=>n.computedStyles["flex-direction"]||"row"),o=oe(()=>n.computedStyles["align-items"]||"stretch"),r=oe(()=>n.computedStyles["justify-content"]||"flex-start"),u=oe(()=>n.computedStyles.gap||"0px"),d=["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=oe(()=>s.value==="flex"||s.value==="inline-flex");function p(k){return parseFloat(k)||0}return(k,b)=>(v(),m("div",Xf,[c("div",Zf,[b[5]||(b[5]=c("label",{class:"control-label"},"Display",-1)),c("div",Jf,[(v(),m(se,null,me(d,$=>c("button",{key:$,class:te(["seg-btn",{active:s.value===$}]),onClick:R=>i("change","display",$)},T($),11,Qf)),64))])]),g.value?(v(),m(se,{key:0},[c("div",ep,[b[6]||(b[6]=c("label",{class:"control-label"},"Direction",-1)),c("div",tp,[c("button",{class:te(["seg-btn icon-btn",{active:l.value==="row"}]),onClick:b[0]||(b[0]=$=>i("change","flex-direction","row")),title:"Row"},"→",2),c("button",{class:te(["seg-btn icon-btn",{active:l.value==="row-reverse"}]),onClick:b[1]||(b[1]=$=>i("change","flex-direction","row-reverse")),title:"Row Reverse"},"←",2),c("button",{class:te(["seg-btn icon-btn",{active:l.value==="column"}]),onClick:b[2]||(b[2]=$=>i("change","flex-direction","column")),title:"Column"},"↓",2),c("button",{class:te(["seg-btn icon-btn",{active:l.value==="column-reverse"}]),onClick:b[3]||(b[3]=$=>i("change","flex-direction","column-reverse")),title:"Column Reverse"},"↑",2)])]),c("div",np,[b[7]||(b[7]=c("label",{class:"control-label"},"Align",-1)),c("div",sp,[(v(),m(se,null,me(a,$=>c("button",{key:$.value,class:te(["seg-btn",{active:o.value===$.value}]),title:$.label,onClick:R=>i("change","align-items",$.value)},T($.icon),11,ip)),64))])]),c("div",lp,[b[8]||(b[8]=c("label",{class:"control-label"},"Justify",-1)),c("div",op,[(v(),m(se,null,me(f,$=>c("button",{key:$.value,class:te(["seg-btn",{active:r.value===$.value}]),title:$.label,onClick:R=>i("change","justify-content",$.value)},T($.icon),11,rp)),64))])]),c("div",ap,[b[9]||(b[9]=c("label",{class:"control-label"},"Gap",-1)),c("div",cp,[c("input",{type:"range",min:"0",max:"64",step:"1",value:p(u.value),class:"range-input",onInput:b[4]||(b[4]=$=>i("change","gap",$.target.value+"px"))},null,40,up),c("span",dp,T(p(u.value))+"px",1)])])],64)):M("",!0)]))}}),yt=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},pp=yt(fp,[["__scopeId","data-v-548da941"]]),hp={class:"spacing-controls"},gp={class:"box-model"},vp={class:"margin-box"},mp=["value"],yp=["value"],bp=["value"],kp=["value"],wp={class:"padding-box"},xp=["value"],_p=["value"],Cp=["value"],$p=["value"],Sp={class:"content-box"},Ap=nt({__name:"SpacingControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,i=t;function s(u){return parseFloat(u)||0}function l(u){const d=u.split(" ").map(a=>parseFloat(a)||0);return d.length===1?{top:d[0],right:d[0],bottom:d[0],left:d[0]}:d.length===2?{top:d[0],right:d[1],bottom:d[0],left:d[1]}:d.length===3?{top:d[0],right:d[1],bottom:d[2],left:d[1]}:{top:d[0],right:d[1],bottom:d[2],left:d[3]}}const o=oe(()=>l(n.computedStyles.padding||"0")),r=oe(()=>l(n.computedStyles.margin||"0"));return(u,d)=>(v(),m("div",hp,[c("div",gp,[c("div",vp,[d[9]||(d[9]=c("span",{class:"box-label margin-label"},"margin",-1)),c("input",{class:"side-input top",value:r.value.top,onChange:d[0]||(d[0]=a=>i("change","margin-top",a.target.value+"px"))},null,40,mp),c("input",{class:"side-input right",value:r.value.right,onChange:d[1]||(d[1]=a=>i("change","margin-right",a.target.value+"px"))},null,40,yp),c("input",{class:"side-input bottom",value:r.value.bottom,onChange:d[2]||(d[2]=a=>i("change","margin-bottom",a.target.value+"px"))},null,40,bp),c("input",{class:"side-input left",value:r.value.left,onChange:d[3]||(d[3]=a=>i("change","margin-left",a.target.value+"px"))},null,40,kp),c("div",wp,[d[8]||(d[8]=c("span",{class:"box-label padding-label"},"padding",-1)),c("input",{class:"side-input top",value:o.value.top,onChange:d[4]||(d[4]=a=>i("change","padding-top",a.target.value+"px"))},null,40,xp),c("input",{class:"side-input right",value:o.value.right,onChange:d[5]||(d[5]=a=>i("change","padding-right",a.target.value+"px"))},null,40,_p),c("input",{class:"side-input bottom",value:o.value.bottom,onChange:d[6]||(d[6]=a=>i("change","padding-bottom",a.target.value+"px"))},null,40,Cp),c("input",{class:"side-input left",value:o.value.left,onChange:d[7]||(d[7]=a=>i("change","padding-left",a.target.value+"px"))},null,40,$p),c("div",Sp,T(s(n.computedStyles.width||"0").toFixed(0))+" × "+T(s(n.computedStyles.height||"0").toFixed(0)),1)])])])]))}}),Tp=yt(Ap,[["__scopeId","data-v-e06fb04c"]]),Ep={class:"size-controls"},Ip={class:"size-row"},Rp={class:"size-field"},Fp={class:"size-input-group"},Pp=["value"],Op={class:"size-field"},Mp={class:"size-input-group"},Lp=["value"],Dp={class:"control-row"},Np={class:"button-group"},Bp=["onClick"],Vp=nt({__name:"SizeControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,i=t;function s(d){return parseFloat(d)||0}const l=oe(()=>n.computedStyles.width||"auto"),o=oe(()=>n.computedStyles.height||"auto"),r=oe(()=>n.computedStyles.overflow||"visible"),u=["visible","hidden","scroll","auto"];return(d,a)=>(v(),m("div",Ep,[c("div",Ip,[c("div",Rp,[a[3]||(a[3]=c("label",{class:"control-label"},"Width",-1)),c("div",Fp,[c("input",{class:"size-input",value:s(l.value),type:"number",onChange:a[0]||(a[0]=f=>i("change","width",f.target.value+"px"))},null,40,Pp),a[2]||(a[2]=c("span",{class:"size-unit"},"px",-1))])]),c("div",Op,[a[5]||(a[5]=c("label",{class:"control-label"},"Height",-1)),c("div",Mp,[c("input",{class:"size-input",value:s(o.value),type:"number",onChange:a[1]||(a[1]=f=>i("change","height",f.target.value+"px"))},null,40,Lp),a[4]||(a[4]=c("span",{class:"size-unit"},"px",-1))])])]),c("div",Dp,[a[6]||(a[6]=c("label",{class:"control-label"},"Overflow",-1)),c("div",Np,[(v(),m(se,null,me(u,f=>c("button",{key:f,class:te(["seg-btn",{active:r.value===f}]),onClick:g=>i("change","overflow",f)},T(f),11,Bp)),64))])])]))}}),Hp=yt(Vp,[["__scopeId","data-v-c3ca7e31"]]),jp=[{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"}}],Up=["50","100","200","300","400","500","600","700","800","900","950"],il=z([]),zp=20;function Cl(e){const t=e.match(/\d+/g);if(!t||t.length<3)return"#000000";const[n,i,s]=t.map(Number);return"#"+[n,i,s].map(l=>l.toString(16).padStart(2,"0")).join("")}function Yp(e,t){var i;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 s=(i=t.defaultView)==null?void 0:i.getComputedStyle(n).color;return!s||s===""?null:Cl(s)}finally{n.remove()}}function Kp(e){var l;const t=e.documentElement,n=new Set;for(const o of Array.from(e.styleSheets))try{for(const r of Array.from(o.cssRules))if(r instanceof CSSStyleRule&&((l=r.selectorText)!=null&&l.includes(":root")))for(let u=0;u<r.style.length;u++){const d=r.style[u];d.startsWith("--")&&n.add(d)}}catch{}const i=getComputedStyle(t),s=[];for(const o of n){const r=i.getPropertyValue(o).trim(),u=Yp(r,e);u&&s.push({label:o,value:u,source:"css-var"})}return s}function Wp(e){const t=z([]);let n=!1;const i=oe(()=>jp.map(u=>({name:u.name,swatches:Up.map(d=>({label:`${u.name.toLowerCase()}-${d}`,value:u.shades[d],source:"tailwind"}))}))),s=oe(()=>t.value.length===0?null:{name:"App Variables",swatches:t.value});function l(){const u=e.value;u&&(t.value=Kp(u),n=!0)}function o(){n||l()}function r(u){const d=u.toLowerCase();il.value=[{label:d,value:d,source:"recent"},...il.value.filter(a=>a.value!==d)].slice(0,zp)}return{tailwindCategories:i,cssVarCategory:s,recentColors:il,ensureScanned:o,refreshCssVars:l,addRecentColor:r}}const qp={class:"picker-trigger"},Gp=["value"],Xp={key:0,class:"color-match"},Zp={class:"palette-tabs"},Jp={key:0,class:"palette-body"},Qp={class:"family-label"},eh={class:"swatch-row"},th=["title","onClick"],nh={key:1,class:"palette-body"},sh={key:0,class:"var-grid"},ih=["onClick"],lh={class:"var-name"},oh={class:"var-hex"},rh={key:1,class:"empty-msg"},ah={key:2,class:"palette-body"},ch={key:0,class:"swatch-grid"},uh=["title","onClick"],dh={key:1,class:"empty-msg"},fh=nt({__name:"ColorPalettePicker",props:{modelValue:{},iframeDoc:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,{tailwindCategories:s,cssVarCategory:l,recentColors:o,ensureScanned:r,addRecentColor:u}=Wp(sd(n,"iframeDoc")),d=z(!1),a=z("tailwind"),f=z(null),g=z(null);function p(){d.value=!d.value,d.value&&r()}function k(R){i("update:modelValue",R),u(R),d.value=!1}function b(R){var _,C;if(!d.value)return;const x=R.target;(_=f.value)!=null&&_.contains(x)||(C=g.value)!=null&&C.contains(x)||(d.value=!1)}const $=oe(()=>{var _,C;const R=(_=n.modelValue)==null?void 0:_.toLowerCase();if(!R)return null;for(const F of s.value){const N=F.swatches.find(U=>U.value.toLowerCase()===R);if(N)return N.label}const x=(C=l.value)==null?void 0:C.swatches.find(F=>F.value.toLowerCase()===R);return x?x.label:null});return Kn(()=>{document.addEventListener("mousedown",b)}),An(()=>{document.removeEventListener("mousedown",b)}),(R,x)=>(v(),m("div",{class:"color-palette-picker",ref_key:"triggerRef",ref:g},[c("div",qp,[c("input",{type:"color",value:e.modelValue,class:"color-swatch",onInput:x[0]||(x[0]=_=>R.$emit("update:modelValue",_.target.value))},null,40,Gp),c("button",{class:te(["palette-btn",{active:d.value}]),onClick:p,title:"Color palette"},[...x[4]||(x[4]=[Ka('<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),$.value?(v(),m("span",Xp,T($.value),1)):M("",!0)]),d.value?(v(),m("div",{key:0,class:"palette-popover",ref_key:"popoverRef",ref:f},[c("div",Zp,[c("button",{class:te(["ptab",{active:a.value==="tailwind"}]),onClick:x[1]||(x[1]=_=>a.value="tailwind")},"Tailwind",2),c("button",{class:te(["ptab",{active:a.value==="css-var"}]),onClick:x[2]||(x[2]=_=>a.value="css-var")},"App Vars",2),c("button",{class:te(["ptab",{active:a.value==="recent"}]),onClick:x[3]||(x[3]=_=>a.value="recent")},"Recent",2)]),a.value==="tailwind"?(v(),m("div",Jp,[(v(!0),m(se,null,me(O(s),_=>(v(),m("div",{key:_.name,class:"color-family"},[c("span",Qp,T(_.name),1),c("div",eh,[(v(!0),m(se,null,me(_.swatches,C=>{var F;return v(),m("button",{key:C.value,class:te(["swatch",{selected:C.value.toLowerCase()===((F=e.modelValue)==null?void 0:F.toLowerCase())}]),style:je({background:C.value}),title:C.label,onClick:N=>k(C.value)},null,14,th)}),128))])]))),128))])):M("",!0),a.value==="css-var"?(v(),m("div",nh,[O(l)?(v(),m("div",sh,[(v(!0),m(se,null,me(O(l).swatches,_=>{var C;return v(),m("button",{key:_.label,class:te(["var-swatch",{selected:_.value.toLowerCase()===((C=e.modelValue)==null?void 0:C.toLowerCase())}]),onClick:F=>k(_.value)},[c("span",{class:"var-color",style:je({background:_.value})},null,4),c("span",lh,T(_.label),1),c("span",oh,T(_.value),1)],10,ih)}),128))])):(v(),m("p",rh,"No color variables detected"))])):M("",!0),a.value==="recent"?(v(),m("div",ah,[O(o).length?(v(),m("div",ch,[(v(!0),m(se,null,me(O(o),_=>{var C;return v(),m("button",{key:_.value,class:te(["swatch large",{selected:_.value.toLowerCase()===((C=e.modelValue)==null?void 0:C.toLowerCase())}]),style:je({background:_.value}),title:_.value,onClick:F=>k(_.value)},null,14,uh)}),128))])):(v(),m("p",dh,"No colors used yet"))])):M("",!0)],512)):M("",!0)],512))}}),$l=yt(fh,[["__scopeId","data-v-b0ade670"]]),ph={class:"appearance-controls"},hh={class:"control-row"},gh={class:"color-input-group"},vh={class:"color-value"},mh={class:"control-row"},yh={class:"color-input-group"},bh={class:"color-value"},kh={class:"control-row"},wh={class:"num-input-group"},xh=["value"],_h={class:"num-value"},Ch={class:"control-row"},$h={class:"button-group"},Sh=["onClick"],Ah={class:"control-row"},Th={class:"num-input-group"},Eh=["value"],Ih={class:"num-value"},Rh={class:"control-row"},Fh={class:"num-input-group"},Ph=["value"],Oh={class:"num-value"},Mh=nt({__name:"AppearanceControls",props:{computedStyles:{},iframeDoc:{}},emits:["change"],setup(e,{emit:t}){const n=e,i=t;function s(g){return parseFloat(g)||0}const l=oe(()=>n.computedStyles["background-color"]||"rgba(0,0,0,0)"),o=oe(()=>n.computedStyles.color||"#000"),r=oe(()=>s(n.computedStyles["font-size"]||"16")),u=oe(()=>n.computedStyles["font-weight"]||"400"),d=oe(()=>s(n.computedStyles["border-radius"]||"0")),a=oe(()=>s(n.computedStyles.opacity||"1")),f=["100","300","400","500","600","700","900"];return(g,p)=>(v(),m("div",ph,[c("div",hh,[p[5]||(p[5]=c("label",{class:"control-label"},"Background",-1)),c("div",gh,[lt($l,{modelValue:O(Cl)(l.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":p[0]||(p[0]=k=>i("change","background-color",k))},null,8,["modelValue","iframeDoc"]),c("span",vh,T(l.value),1)])]),c("div",mh,[p[6]||(p[6]=c("label",{class:"control-label"},"Text Color",-1)),c("div",yh,[lt($l,{modelValue:O(Cl)(o.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":p[1]||(p[1]=k=>i("change","color",k))},null,8,["modelValue","iframeDoc"]),c("span",bh,T(o.value),1)])]),c("div",kh,[p[7]||(p[7]=c("label",{class:"control-label"},"Font Size",-1)),c("div",wh,[c("input",{type:"range",min:"8",max:"72",step:"1",value:r.value,class:"range-input",onInput:p[2]||(p[2]=k=>i("change","font-size",k.target.value+"px"))},null,40,xh),c("span",_h,T(r.value)+"px",1)])]),c("div",Ch,[p[8]||(p[8]=c("label",{class:"control-label"},"Font Weight",-1)),c("div",$h,[(v(),m(se,null,me(f,k=>c("button",{key:k,class:te(["seg-btn",{active:u.value===k}]),onClick:b=>i("change","font-weight",k)},T(k),11,Sh)),64))])]),c("div",Ah,[p[9]||(p[9]=c("label",{class:"control-label"},"Border Radius",-1)),c("div",Th,[c("input",{type:"range",min:"0",max:"50",step:"1",value:d.value,class:"range-input",onInput:p[3]||(p[3]=k=>i("change","border-radius",k.target.value+"px"))},null,40,Eh),c("span",Ih,T(d.value)+"px",1)])]),c("div",Rh,[p[10]||(p[10]=c("label",{class:"control-label"},"Opacity",-1)),c("div",Fh,[c("input",{type:"range",min:"0",max:"1",step:"0.05",value:a.value,class:"range-input",onInput:p[4]||(p[4]=k=>i("change","opacity",k.target.value))},null,40,Ph),c("span",Oh,T((a.value*100).toFixed(0))+"%",1)])])]))}}),Lh=yt(Mh,[["__scopeId","data-v-47449e0a"]]);let Gt=null,Sl=0,ll=null;const _s=new Map;function Dh(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/__annotask/ws`}function Ja(){try{Gt=new WebSocket(Dh()),Gt.onopen=()=>{Sl=0,console.log("[Annotask] WebSocket connected")},Gt.onmessage=e=>{try{const t=JSON.parse(e.data);if(t.event){const n=_s.get(t.event);if(n)for(const i of n)i(t.data)}}catch{}},Gt.onclose=()=>{Gt=null,dr()},Gt.onerror=()=>{}}catch{dr()}}function dr(){if(ll)return;Sl++;const e=Math.min(1e3*Math.pow(2,Sl-1),3e4);ll=setTimeout(()=>{ll=null,Ja()},e)}function Qa(e,t){return _s.has(e)||_s.set(e,new Set),_s.get(e).add(t),()=>{var n;(n=_s.get(e))==null||n.delete(t)}}function Nh(e,t){(Gt==null?void 0:Gt.readyState)===WebSocket.OPEN&&Gt.send(JSON.stringify({event:e,data:t,timestamp:Date.now()}))}Ja();const Al=z(null),Tl=z(!1),ec=z(!0);let fr=!1;async function ol(){try{const t=await(await fetch("/__annotask/api/design-spec")).json();Al.value=t,Tl.value=!!t.initialized}catch{Al.value=null,Tl.value=!1}finally{ec.value=!1}}function no(){return fr||(fr=!0,ol(),Qa("designspec:updated",()=>ol())),{designSpec:Al,isInitialized:Tl,isLoading:ec,refetch:ol}}const El=[{id:"iphone-se",label:"iPhone SE",width:375,height:667,category:"phone"},{id:"iphone-14-pro",label:"iPhone 14 Pro",width:393,height:852,category:"phone"},{id:"iphone-16-pro-max",label:"iPhone 16 Pro Max",width:440,height:956,category:"phone"},{id:"pixel-7",label:"Pixel 7",width:412,height:915,category:"phone"},{id:"ipad",label:"iPad",width:768,height:1024,category:"tablet"},{id:"ipad-pro",label:'iPad Pro 12.9"',width:1024,height:1366,category:"tablet"},{id:"laptop",label:"Laptop",width:1366,height:768,category:"desktop"},{id:"desktop",label:"Desktop",width:1440,height:900,category:"desktop"},{id:"desktop-xl",label:"Desktop XL",width:1920,height:1080,category:"desktop"}],rn=z(null),an=z(null),cn=z(null),Kt=z(!1);try{const e=localStorage.getItem("annotask:viewport");if(e){const t=JSON.parse(e);rn.value=t.presetId??null,an.value=t.customWidth??null,cn.value=t.customHeight??null,Kt.value=t.rotated??!1}}catch{}function Bh(){localStorage.setItem("annotask:viewport",JSON.stringify({presetId:rn.value,customWidth:an.value,customHeight:cn.value,rotated:Kt.value}))}it([rn,an,cn,Kt],Bh);function so(){const e=oe(()=>rn.value?El.find(o=>o.id===rn.value)??null:null),t=oe(()=>!rn.value&&!an.value&&!cn.value),n=oe(()=>{const o=e.value;if(o){const r=Kt.value?o.height:o.width,u=Kt.value?o.width:o.height;return{width:r,height:u,label:o.label}}return an.value||cn.value?{width:an.value,height:cn.value,label:"Custom"}:{width:null,height:null,label:"Full Width"}});function i(o){rn.value=(o==null?void 0:o.id)??null,an.value=null,cn.value=null,Kt.value=!1}function s(o,r){rn.value=null,an.value=o,cn.value=r,Kt.value=!1}function l(){Kt.value=!Kt.value}return{activePreset:e,activePresetId:rn,customWidth:an,customHeight:cn,rotated:Kt,effectiveViewport:n,isFullWidth:t,selectPreset:i,setCustomDimensions:s,toggleRotate:l,VIEWPORT_PRESETS:El}}const pr=100,bn=z([]);function tc(){function e(s,l,o){const r={};for(const[u,d]of Object.entries(o))d!==""&&(r[u]=d);bn.value.push({event:s,route:l,data:r}),bn.value.length>pr&&bn.value.splice(0,bn.value.length-pr)}function t(){const s=[];for(const l of bn.value)if(l.event==="route_change"){const o=l.data.path||l.route;s[s.length-1]!==o&&s.push(o)}else s.length===0&&l.route&&s.push(l.route);return s}function n(s){const l=bn.value.slice(-20).map(o=>{if(o.route===s){const{route:r,...u}=o;return u}return o});return{current_route:s,navigation_path:t(),recent_actions:l}}function i(){bn.value=[]}return{push:e,snapshotForChange:n,clear:i,history:bn}}const st=z([]);let kn=0;const $t=new Map;function Mn(e,t){Nh(e,t)}function Vh(){function e(a,f,g,p,k){const b=st.value.find($=>$.type==="style_update"&&$.file===k.file&&$.line===(parseInt(k.line)||0)&&$.property===f&&$t.get($.id)===a);if(b)b.after=g,b.description=`Set ${f} to ${g}`;else{kn++;const $=`s${kn}`;st.value.push({id:$,type:"style_update",description:`Set ${f} to ${g}`,file:k.file,section:"style",line:parseInt(k.line)||0,component:k.component,...k.mfe?{mfe:k.mfe}:{},element:"element",property:f,before:p,after:g}),$t.set($,a)}}function t(a,f){kn++;const g=`ci${kn}`,p=a.position==="append"||a.position==="prepend",k={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:p?{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 st.value.push(k),g}function n(a){kn++;const f=`an${kn}`,g={id:f,type:"annotation",description:a.intent,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,...a.mfe?{mfe:a.mfe}:{},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 st.value.push(g),f}function i(a,f,g,p){const k=parseInt(p.line)||0,b=st.value.find(R=>R.type!=="class_update"||R.file!==p.file||R.line!==k?!1:$t.get(R.id)===a);if(b)return b.after={classes:g},b.description="Update classes",b.id;kn++;const $=`cl${kn}`;return st.value.push({id:$,type:"class_update",description:"Update classes",file:p.file,section:"template",line:k,component:p.component,...p.mfe?{mfe:p.mfe}:{},element:"element",before:{classes:f},after:{classes:g}}),$t.set($,a),$}function s(){if(st.value.length===0)return null;const a=st.value.pop();if(a.type==="style_update"){const f=$t.get(a.id);return $t.delete(a.id),Mn("report:updated",d.value),{type:"style",eid:f,property:a.property,value:a.before}}else if(a.type==="class_update"){const f=$t.get(a.id);return $t.delete(a.id),Mn("report:updated",d.value),{type:"class",eid:f,classes:a.before.classes}}else if(a.type==="component_insert"){const f=$t.get(a.id);return $t.delete(a.id),Mn("report:updated",d.value),{type:"insert_remove",eid:f}}return Mn("report:updated",d.value),null}function l(a){st.value=st.value.filter(f=>f.id!==a),$t.delete(a)}function o(a,f){st.value=st.value.filter(g=>g.type!=="annotation"?!0:!(g.file===a&&g.line===f))}function r(){const a=[];for(const f of st.value)if(f.type==="component_insert"){const g=$t.get(f.id);g&&a.push(g)}return st.value=[],$t.clear(),Mn("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 d=oe(()=>{var N;if(st.value.length===0)return null;const a=st.value.filter(U=>U.type==="component_insert"||U.type==="component_move"||U.type==="annotation"?!0:U.type==="class_update"?U.before.classes!==U.after.classes:U.before!==U.after);if(a.length===0)return null;const f=a.map(u).filter(Boolean),{designSpec:g}=no(),p=g.value,k=((N=p==null?void 0:p.framework)==null?void 0:N.name)||"html",b=p!=null&&p.framework?{framework:k,styling:p.framework.styling||[],root:""}:{framework:"html",styling:[],root:""},{effectiveViewport:$}=so(),R=$.value,x=R.width||R.height?{width:R.width,height:R.height}:void 0,{snapshotForChange:_}=tc(),C=_(window.location.pathname),F=C.recent_actions.length>0?C:void 0;return{version:"1.0",project:b,...x?{viewport:x}:{},...F?{interaction_history:F}:{},changes:f}});return it(()=>d.value,a=>{Mn("report:updated",a)},{deep:!0}),{changes:st,applyStyle:e,recordInsert:t,recordAnnotation:n,recordClassChange:i,removeChange:l,removeAnnotationsByFile:o,undo:s,clearChanges:r,report:d,broadcast:Mn}}const rl=localStorage.getItem("annotask:mode"),xn=z(rl&&["select","interact","pin","arrow","draw","highlight"].includes(rl)?rl:"interact");function hr(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":xn.value="select";break;case"i":xn.value="interact";break;case"p":xn.value="pin";break;case"a":xn.value="arrow";break;case"d":xn.value="draw";break;case"h":xn.value="highlight";break}}it(xn,e=>localStorage.setItem("annotask:mode",e));function Hh(){return Kn(()=>document.addEventListener("keydown",hr)),An(()=>document.removeEventListener("keydown",hr)),{mode:xn}}function jh(e){const t=z(!1),n=z([]);function i(){var d;try{return((d=e.value)==null?void 0:d.contentDocument)??null}catch{return null}}function s(d){if(!e.value)return null;const a=d.getBoundingClientRect(),f=e.value.getBoundingClientRect();return new DOMRect(f.left+a.left,f.top+a.top,a.width,a.height)}function l(){const d=i();if(!d){n.value=[];return}const a=[],f=d.querySelectorAll("*"),g=d.defaultView;if(g){for(const p of f){if(p.nodeType!==1)continue;const k=g.getComputedStyle(p),b=k.display;if(!b.includes("flex")&&!b.includes("grid"))continue;const $=s(p);if(!$||$.width<20||$.height<20)continue;const R=b.includes("grid"),x=R?"grid":"flex",_=R?"grid":k.flexDirection,C={x:$.x,y:$.y,width:$.width,height:$.height,display:x,direction:_,columnGap:parseFloat(k.columnGap)||0,rowGap:parseFloat(k.rowGap)||0,el:p};if(R){const F=k.gridTemplateColumns,N=k.gridTemplateRows;C.templateColumns=F,C.templateRows=N,F&&F!=="none"&&(C.columns=F.split(/\s+/).map(U=>parseFloat(U)||0).filter(U=>U>0)),N&&N!=="none"&&(C.rows=N.split(/\s+/).map(U=>parseFloat(U)||0).filter(U=>U>0))}a.push(C)}n.value=a}}function o(){t.value=!t.value,t.value?l():n.value=[]}function r(d,a){const f=d.el;if(!f)return null;const g=f.ownerDocument.defaultView;if(!g)return null;const p=g.getComputedStyle(f),k=a==="col"?"grid-template-columns":"grid-template-rows",b=p.getPropertyValue(k)||"",$=b,R=b&&b!=="none"?b+" 1fr":"1fr";return f.style.setProperty(k,R),l(),{el:f,property:k,before:$,after:R}}function u(d){const a=d.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),l(),{parentEl:a,childEl:g}}return{showOverlay:t,containers:n,toggle:o,scan:l,addTrack:r,addChild:u}}const jt=z([]),Zn=z([]),Ln=z([]),Dn=z([]),Nn=z([]),Ot=z("/"),Jn=z(null),ms=z(null),ys=z(null),bs=z(null);let ft=0;function Uh(){function e(P){Ot.value=P}const t=oe(()=>jt.value.filter(P=>P.route===Ot.value)),n=oe(()=>Ln.value.filter(P=>P.route===Ot.value)),i=oe(()=>Dn.value.filter(P=>P.route===Ot.value)),s=oe(()=>Nn.value.filter(P=>P.route===Ot.value));function l(P,J,ie){ft++;const pe={id:`pin-${ft}`,number:ft,file:P.file,line:parseInt(P.line)||0,component:P.component,elementTag:P.elementTag,elementClasses:P.elementClasses,clickX:J,clickY:ie,note:"",route:Ot.value,timestamp:Date.now()};return jt.value.push(pe),Jn.value=pe.id,pe}function o(P){jt.value=jt.value.filter(J=>J.id!==P),Jn.value===P&&(Jn.value=null)}function r(P,J){const ie=jt.value.find(pe=>pe.id===P);ie&&(ie.note=J)}function u(P,J){const ie=jt.value.find(pe=>pe.id===P);ie&&(ie.action=J)}function d(P,J){return jt.value.filter(ie=>ie.file===P&&ie.line===J)}const a=oe(()=>jt.value.find(P=>P.id===Jn.value)||null);function f(P,J){ft++;const ie={id:`sticky-${ft}`,number:ft,x:P-60,y:J-60,width:120,height:120,text:"",color:"yellow",route:Ot.value,timestamp:Date.now()};return Zn.value.push(ie),ms.value=ie.id,ie}function g(P){Zn.value=Zn.value.filter(J=>J.id!==P),ms.value===P&&(ms.value=null)}function p(P,J){const ie=Zn.value.find(pe=>pe.id===P);ie&&Object.assign(ie,J)}function k(P,J,ie,pe,be){ft++;const ke={id:`arrow-${ft}`,number:ft,fromX:P,fromY:J,toX:ie,toY:pe,label:be||"Move here",route:Ot.value,timestamp:Date.now()};return Ln.value.push(ke),ys.value=ke.id,ke}function b(P){Ln.value=Ln.value.filter(J=>J.id!==P),ys.value===P&&(ys.value=null)}function $(P,J){const ie=Ln.value.find(pe=>pe.id===P);ie&&Object.assign(ie,J)}function R(P,J,ie,pe){ft++;const be={id:`section-${ft}`,number:ft,x:P,y:J,width:ie,height:pe,prompt:"",route:Ot.value,timestamp:Date.now()};return Dn.value.push(be),bs.value=be.id,be}function x(P){Dn.value=Dn.value.filter(J=>J.id!==P),bs.value===P&&(bs.value=null)}function _(P,J){const ie=Dn.value.find(pe=>pe.id===P);ie&&Object.assign(ie,J)}const C=z(null);function F(P,J){ft++;const ie={id:`hl-${ft}`,number:ft,selectedText:P,prompt:"",file:J.file,line:J.line,component:J.component,elementTag:J.elementTag,route:Ot.value,timestamp:Date.now()};return Nn.value.push(ie),C.value=ie.id,ie}function N(P){Nn.value=Nn.value.filter(J=>J.id!==P),C.value===P&&(C.value=null)}function U(P,J){const ie=Nn.value.find(pe=>pe.id===P);ie&&Object.assign(ie,J)}function ne(){jt.value=[],Zn.value=[],Ln.value=[],Dn.value=[],Nn.value=[],Jn.value=null,ms.value=null,ys.value=null,bs.value=null}return{pins:jt,stickyNotes:Zn,arrows:Ln,drawnSections:Dn,highlights:Nn,routePins:t,routeArrows:n,routeSections:i,routeHighlights:s,activeRoute:Ot,setRoute:e,selectedPinId:Jn,selectedStickyId:ms,selectedArrowId:ys,selectedSectionId:bs,selectedHighlightId:C,selectedPin:a,addPin:l,removePin:o,updatePinNote:r,setPinAction:u,getPinsForElement:d,addStickyNote:f,removeStickyNote:g,updateStickyNote:p,addArrow:k,removeArrow:b,updateArrow:$,addDrawnSection:R,removeDrawnSection:x,updateDrawnSection:_,addHighlight:F,removeHighlight:N,updateHighlight:U,clearAll:ne}}let zh=0;const fn=new Map,Cs=new Map;let vn=null,qs="*",Gs=!1,bi=[];function nc(e){const t=e.data;if(!(!t||t.source!=="annotask-client")&&!(vn&&e.source!==vn)){if(t.type==="bridge:ready"){qs=e.origin||"*",Gs=!0;for(const n of bi)n();bi=[],gr("bridge:ready",t.payload);return}if(t.id&&fn.has(t.id)){const n=fn.get(t.id);clearTimeout(n.timer),fn.delete(t.id),n.resolve(t.payload);return}gr(t.type,t.payload)}}function gr(e,t){const n=Cs.get(e);if(n)for(const i of n)i(t)}function Yh(e){vn=e,Gs=!1,qs="*",window.addEventListener("message",nc)}function Kh(){window.removeEventListener("message",nc);for(const[,e]of fn)clearTimeout(e.timer),e.reject(new Error("bridge destroyed"));fn.clear(),vn=null,Gs=!1,bi=[]}function Wh(e){for(const[,t]of fn)clearTimeout(t.timer),t.reject(new Error("bridge reset"));fn.clear(),vn=e,Gs=!1,qs="*"}function vr(e){if(Gs){e();return}bi.push(e)}function qh(e,t={}){if(!vn)return;const n={type:e,payload:t,source:"annotask-shell"};vn.postMessage(n,qs)}function Ve(e,t={},n=5e3){return new Promise((i,s)=>{if(!vn){s(new Error("bridge not connected"));return}const l=`req-${++zh}`,o=setTimeout(()=>{fn.delete(l),s(new Error(`bridge timeout: ${e}`))},n);fn.set(l,{resolve:i,reject:s,timer:o});const r={type:e,id:l,payload:t,source:"annotask-shell"};vn.postMessage(r,qs)})}function mr(e,t){return Cs.has(e)||Cs.set(e,new Set),Cs.get(e).add(t),()=>{var n;(n=Cs.get(e))==null||n.delete(t)}}function Gh(e){const t=z("/"),n=z(!1);function i(){var G;const K=(G=e.value)==null?void 0:G.contentWindow;K&&(Wh(K),n.value=!1,vr(()=>{n.value=!0}),mr("route:changed",ae=>{t.value=ae.path}))}function s(){var G;const K=(G=e.value)==null?void 0:G.contentWindow;K&&Yh(K)}function l(){Kh()}function o(K){const G=e.value;if(!G)return null;const ae=G.getBoundingClientRect();return{x:ae.left+K.x,y:ae.top+K.y,width:K.width,height:K.height}}function r(K,G){const ae=e.value;if(!ae)return null;const xe=ae.getBoundingClientRect();return{x:K-xe.left,y:G-xe.top}}async function u(K,G){const ae=r(K,G);if(!ae||ae.x<0||ae.y<0)return null;const xe=e.value;if(!xe)return null;const ze=xe.getBoundingClientRect();if(ae.x>ze.width||ae.y>ze.height)return null;try{const Se=await Ve("resolve:at-point",ae,500);return Se?(Se.rect=o(Se.rect)||Se.rect,Se):null}catch{return null}}async function d(K,G,ae){try{const xe=await Ve("resolve:template-group",{file:K,line:G,tagName:ae});return xe.rects=xe.rects.map(ze=>o(ze)||ze),xe}catch{return{eids:[],rects:[]}}}async function a(K){try{const G=await Ve("resolve:rect",{eid:K});return G?o(G.rect)||G.rect:null}catch{return null}}async function f(K){if(K.length===0)return[];try{return(await Ve("resolve:rects",{eids:[...K]})).rects.map(ae=>ae?o(ae)||ae:null)}catch{return K.map(()=>null)}}async function g(K,G){try{return(await Ve("style:get-computed",{eid:K,properties:G})).styles}catch{return{}}}async function p(K,G,ae){try{return(await Ve("style:apply",{eid:K,property:G,value:ae})).before}catch{return""}}async function k(K,G,ae){try{return(await Ve("style:apply-batch",{eids:[...K],property:G,value:ae})).befores}catch{return K.map(()=>"")}}async function b(K,G){try{return(await Ve("class:set",{eid:K,classes:G})).before}catch{return""}}async function $(K,G){try{return(await Ve("class:set-batch",{eids:[...K],classes:G})).befores}catch{return K.map(()=>"")}}async function R(K,G,ae){try{await Ve("style:undo",{eid:K,property:G,value:ae})}catch{}}async function x(K,G){try{await Ve("class:undo",{eid:K,classes:G})}catch{}}async function _(K){try{return await Ve("classify:element",{eid:K})}catch{return null}}async function C(){try{const K=await Ve("layout:scan");for(const G of K.containers)G.rect=o(G.rect)||G.rect;return K.containers}catch{return[]}}async function F(K,G){try{return await Ve("layout:add-track",{eid:K,axis:G})}catch{return null}}async function N(K){try{return await Ve("layout:add-child",{eid:K})}catch{return null}}async function U(){try{return(await Ve("check:source-mapping")).hasMapping}catch{return!1}}async function ne(K,G){try{await Ve("theme:inject-css",{css:K,styleId:G})}catch{}}async function P(K){try{await Ve("theme:remove-css",{styleId:K})}catch{}}async function J(){try{return(await Ve("palette:scan-vars")).swatches}catch{return[]}}async function ie(){try{const K=await Ve("route:current");return t.value=K.path,K.path}catch{return"/"}}async function pe(K,G,ae,xe){try{return(await Ve("insert:placeholder",{targetEid:K,position:G,tag:ae,...xe||{}})).placeholderEid}catch{return""}}async function be(K){try{await Ve("insert:remove",{eid:K})}catch{}}async function ke(K,G,ae){try{await Ve("move:element",{eid:K,targetEid:G,position:ae})}catch{}}async function Le(K,G,ae,xe){try{return await Ve("insert:component",{targetEid:K,position:G,componentName:ae,props:xe})}catch{return{eid:"",mounted:!1}}}const Te=Le;async function Y(K){try{return await Ve("resolve:element-context",{eid:K})}catch{return null}}async function I(K){try{return await Ve("screenshot:capture",{rect:K},15e3)}catch{return{error:"timeout"}}}async function V(K){try{return await Ve("a11y:scan",{eid:K},15e3)}catch{return{violations:[],error:"timeout"}}}function he(K){qh("mode:set",{mode:K})}return{currentRoute:t,bridgeReady:n,mountBridge:s,unmountBridge:l,initBridgeForIframe:i,toShellRect:o,toIframeCoords:r,resolveElementAt:u,findTemplateGroup:d,getElementRect:a,getElementRects:f,getComputedStyles:g,applyStyleVia:p,applyStyleBatch:k,setClass:b,setClassBatch:$,undoStyle:R,undoClass:x,classifyElement:_,getElementContext:Y,captureScreenshot:I,scanA11y:V,scanLayout:C,layoutAddTrack:F,layoutAddChild:N,checkSourceMapping:U,injectThemeCss:ne,removeThemeCss:P,scanColorVars:J,getCurrentRoute:ie,insertPlaceholder:pe,removePlaceholder:be,moveElement:ke,insertComponent:Le,insertVueComponent:Te,setMode:he,onBridgeEvent:mr,onBridgeReady:vr}}function Xh(e,t,n,i){const s=z(null),l=z(null);let o=null;async function r(f){const g=n();if(g==="arrow"){o={x:f.clientX,y:f.clientY},s.value={fromX:f.clientX,fromY:f.clientY,toX:f.clientX,toY:f.clientY};const p=await t(f.clientX,f.clientY);s.value&&p&&(s.value={...s.value,fromRect:p.rect})}else g==="draw"&&(o={x:f.clientX,y:f.clientY},l.value={x:f.clientX,y:f.clientY,width:0,height:0})}let u=null;function d(f){if(!o)return;const g=n();if(g==="arrow"&&s.value){s.value={...s.value,toX:f.clientX,toY:f.clientY},u&&clearTimeout(u);const p=f.clientX,k=f.clientY;u=setTimeout(async()=>{const b=await t(p,k);s.value&&(s.value={...s.value,toRect:b==null?void 0:b.rect})},50)}else if(g==="draw"&&l.value){const p=Math.min(o.x,f.clientX),k=Math.min(o.y,f.clientY),b=Math.abs(f.clientX-o.x),$=Math.abs(f.clientY-o.y);l.value={x:p,y:k,width:b,height:$}}}async function a(f){if(!o)return;u&&(clearTimeout(u),u=null);const g=n();if(g==="arrow"&&s.value){const p=s.value;if(Math.abs(p.toX-p.fromX)>20||Math.abs(p.toY-p.fromY)>20){const k=await t(p.fromX,p.fromY),b=await t(p.toX,p.toY),$=e.addArrow(p.fromX,p.fromY,p.toX,p.toY);k&&e.updateArrow($.id,{fromFile:k.file,fromLine:parseInt(k.line)||0,fromComponent:k.component}),b&&e.updateArrow($.id,{toFile:b.file,toLine:parseInt(b.line)||0}),e.updateArrow($.id,{label:""}),i==null||i($.id,k,b)}s.value=null}else if(g==="draw"&&l.value){const p=l.value;if(p.width>30&&p.height>30){const k=await t(p.x+p.width/2,p.y),b=e.addDrawnSection(p.x,p.y,p.width,p.height);if(k){const $=p.y>((o==null?void 0:o.y)||0)?"below":"above";e.updateDrawnSection(b.id,{nearFile:k.file,nearLine:parseInt(k.line)||0,nearComponent:k.component,placement:$})}}l.value=null}o=null}return{drawingArrow:s,drawingRect:l,onCanvasPointerDown:r,onCanvasPointerMove:d,onCanvasPointerUp:a}}function Zh(e){const t=z(!1),n=z(null),i=z(null),s=z(null);function l(){t.value=!0}function o(g){i.value={x:g.clientX,y:g.clientY},n.value={x:g.clientX,y:g.clientY,width:0,height:0}}function r(g){if(!i.value)return;const p=Math.min(i.value.x,g.clientX),k=Math.min(i.value.y,g.clientY);n.value={x:p,y:k,width:Math.abs(g.clientX-i.value.x),height:Math.abs(g.clientY-i.value.y)}}async function u(){let g=null;if(n.value&&n.value.width>30&&n.value.height>30){const k=e.toIframeCoords(n.value.x,n.value.y),b=e.toIframeCoords(n.value.x+n.value.width,n.value.y+n.value.height);k&&b&&(g={x:k.x,y:k.y,width:b.x-k.x,height:b.y-k.y})}t.value=!1,n.value=null,i.value=null;const p=await e.captureScreenshot(g);if(p.error||!p.dataUrl){console.warn("Screenshot failed:",p.error);return}try{const k=await fetch("/__annotask/api/screenshots",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:p.dataUrl})}),{filename:b}=await k.json();s.value=b}catch{console.warn("Screenshot upload failed")}}function d(){t.value=!1,n.value=null,i.value=null}function a(){s.value=null}function f(){const g=s.value;return s.value=null,g}return{snipActive:t,snipRect:n,snipStart:i,pendingScreenshot:s,startSnip:l,onSnipDown:o,onSnipMove:r,onSnipUp:u,cancelSnip:d,removeScreenshot:a,consumeScreenshot:f}}function Jh(e){const t=e.showShortcuts;function n(i){var r;const s=i.ctrlKey||i.metaKey;if(s&&i.key==="z"&&!i.shiftKey){i.preventDefault(),e.doUndo();return}const l=(r=i.target)==null?void 0:r.tagName;if(l==="INPUT"||l==="TEXTAREA"||l==="SELECT")return;const o=i.key;if(o==="?"||o==="/"&&i.shiftKey){t.value=!t.value;return}if(o==="Escape"){if(e.snipActive.value){e.cancelSnip();return}if(e.showReportPanel.value){e.showReportPanel.value=!1;return}if(t.value){t.value=!1;return}if(e.pendingTaskCreation.value){e.cancelPendingTask();return}e.primarySelection.value=null,e.selectedEids.value=[],e.templateGroupEids.value=[],e.selectionRects.value=[],e.groupRects.value=[];return}if((o==="l"||o==="L")&&!s){e.layoutOverlayToggle();return}if((o==="t"||o==="T")&&!s){e.activePanel.value=e.activePanel.value==="tasks"?"inspector":"tasks";return}}return Kn(()=>{document.addEventListener("keydown",n)}),An(()=>{document.removeEventListener("keydown",n)}),{showShortcuts:t}}function Qh(e,t,n,i){const s=z([]),l=z(!1),o=z(null),r=z(!1),u=z(""),d=oe(()=>{var p;const g=new Set;for(const k of t.tasks.value)k.type==="a11y_fix"&&((p=k.context)!=null&&p.rule)&&g.add(k.context.rule);return g});async function a(g="element"){var b,$,R;l.value=!0,o.value=null;const p=g==="element"?(b=n.value)==null?void 0:b.eid:void 0;u.value=p?`<${($=n.value)==null?void 0:$.tagName}> · ${(R=n.value)==null?void 0:R.component}`:"full page";const k=await e.scanA11y(p);s.value=k.violations,o.value=k.error||null,l.value=!1,r.value=!0}function f(g){const p=g.elements||[],k=p.find(b=>b.file);t.createTask({type:"a11y_fix",description:`Fix accessibility: ${g.help}`,file:(k==null?void 0:k.file)||"",line:k!=null&&k.line?parseInt(k.line):0,component:(k==null?void 0:k.component)||"",route:i.value,context:{rule:g.id,impact:g.impact,description:g.description,help:g.help,helpUrl:g.helpUrl,affected_elements:g.nodes,elements:p.map(b=>({html:b.html,selector:b.target,fix:b.failureSummary,...b.file?{file:b.file,line:b.line,component:b.component}:{}}))}})}return{a11yViolations:s,a11yLoading:l,a11yError:o,a11yScanned:r,a11yScanTarget:u,a11yTaskRules:d,scanA11y:a,createA11yTask:f}}const eg={class:"mode-toolbar"},tg=nt({__name:"ModeToolbar",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;return(i,s)=>(v(),m("div",eg,[c("button",{class:te(["mode-btn mode-interact",{active:e.modelValue==="interact"}]),onClick:s[0]||(s[0]=l=>n("update:modelValue","interact")),title:"Interact (I)"},[...s[6]||(s[6]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("path",{d:"M18 8a6 6 0 0 0-12 0c0 7 6 13 6 13s6-6 6-13z"}),c("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"}),c("path",{d:"M9 21h6"})],-1)])],2),c("button",{class:te(["mode-btn",{active:e.modelValue==="select"}]),onClick:s[1]||(s[1]=l=>n("update:modelValue","select")),title:"Select (V)"},[...s[7]||(s[7]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1)])],2),s[12]||(s[12]=c("span",{class:"mode-sep"},null,-1)),c("button",{class:te(["mode-btn",{active:e.modelValue==="pin"}]),onClick:s[2]||(s[2]=l=>n("update:modelValue","pin")),title:"Pin Note (P)"},[...s[8]||(s[8]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("circle",{cx:"12",cy:"10",r:"3"}),c("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),c("button",{class:te(["mode-btn arrow",{active:e.modelValue==="arrow"}]),onClick:s[3]||(s[3]=l=>n("update:modelValue","arrow")),title:"Arrow (A)"},[...s[9]||(s[9]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),c("polyline",{points:"12 5 19 12 12 19"})],-1)])],2),c("button",{class:te(["mode-btn draw",{active:e.modelValue==="draw"}]),onClick:s[4]||(s[4]=l=>n("update:modelValue","draw")),title:"Draw Section (D)"},[...s[10]||(s[10]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2","stroke-dasharray":"4 2"}),c("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),c("line",{x1:"8",y1:"12",x2:"16",y2:"12"})],-1)])],2),c("button",{class:te(["mode-btn mode-highlight",{active:e.modelValue==="highlight"}]),onClick:s[5]||(s[5]=l=>n("update:modelValue","highlight")),title:"Highlight Text (H)"},[...s[11]||(s[11]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("path",{d:"M12 20h9"}),c("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})],-1)])],2)]))}}),ng=yt(tg,[["__scopeId","data-v-90efa075"]]),sg={key:0,class:"separator"},ig=["disabled","onClick"],lg={class:"item-label"},og={key:0,class:"item-shortcut"},rg=nt({__name:"ContextMenu",props:{visible:{type:Boolean},x:{},y:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,i=t,s=z(null),l=[{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 o(d){i("action",d),i("close")}function r(d){var a;n.visible&&((a=s.value)!=null&&a.contains(d.target)||i("close"))}function u(d){d.key==="Escape"&&i("close")}return Kn(()=>{document.addEventListener("mousedown",r),document.addEventListener("keydown",u)}),An(()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",u)}),(d,a)=>(v(),bt(kd,{to:"body"},[e.visible?(v(),m("div",{key:0,ref_key:"menuRef",ref:s,class:"context-menu",style:je({left:e.x+"px",top:e.y+"px"})},[(v(),m(se,null,me(l,f=>(v(),m(se,{key:f.id},[f.id==="separator"?(v(),m("div",sg)):(v(),m("button",{key:1,class:te(["menu-item",{disabled:!f.enabled}]),disabled:!f.enabled,onClick:g=>f.enabled&&o(f.id)},[c("span",lg,T(f.label),1),f.shortcut?(v(),m("span",og,T(f.shortcut),1)):M("",!0)],10,ig))],64))),64))],4)):M("",!0)]))}}),ag=yt(rg,[["__scopeId","data-v-b4795b28"]]),cg=["onClick"],ug={class:"pin-number"},dg=["onClick"],fg=nt({__name:"PinOverlay",props:{pins:{},selectedPinId:{},iframeOffset:{}},emits:["select-pin","remove-pin"],setup(e,{emit:t}){const n=t;return(i,s)=>(v(!0),m(se,null,me(e.pins,l=>(v(),m("div",{key:l.id,class:te(["pin",{selected:l.id===e.selectedPinId,"has-action":!!l.action,"has-note":!!l.note}]),style:je({left:e.iframeOffset.x+l.clickX+"px",top:e.iframeOffset.y+l.clickY+"px"}),onClick:Be(o=>n("select-pin",l.id),["stop"])},[c("span",ug,T(l.number),1),c("button",{class:"pin-remove",onClick:Be(o=>n("remove-pin",l.id),["stop"])},"×",8,dg)],14,cg))),128))}}),pg=yt(fg,[["__scopeId","data-v-006ef709"]]),hg={class:"arrow-svg"},gg=["onClick"],vg=["d","stroke","stroke-width"],mg=["cx","cy"],yg=["cx","cy"],bg=["x","y"],kg=["transform","onClick"],wg={key:0},xg=["d"],_g=["d"],Cg=["d"],$g=["cx","cy"],Sg=nt({__name:"ArrowOverlay",props:{arrows:{},selectedId:{},drawingArrow:{}},emits:["select","remove"],setup(e,{emit:t}){const n=t;function i(r,u,d,a,f,g){let p=r,k=u;if(f){const N=f.x+f.width/2,U=f.y+f.height/2,ne=Math.atan2(a-U,d-N);p=N+Math.cos(ne)*(f.width/2+4),k=U+Math.sin(ne)*(f.height/2+4)}let b=d,$=a;if(g){const N=g.x+g.width/2,U=g.y+g.height/2,ne=Math.atan2(k-U,p-N);b=N+Math.cos(ne)*(g.width/2+4),$=U+Math.sin(ne)*(g.height/2+4)}const R=b-p,x=p+R*.4,_=k,C=p+R*.6;return`M ${p} ${k} C ${x} ${_}, ${C} ${$}, ${b} ${$}`}function s(r,u,d,a){const f=d-r,g=r+f*.4,p=u,k=r+f*.6;return`M ${r} ${u} C ${g} ${p}, ${k} ${a}, ${d} ${a}`}function l(r,u,d,a){return{x:(r+d)/2,y:(u+a)/2-10}}function o(r){return`M ${r.x} ${r.y} h ${r.width} v ${r.height} h ${-r.width} Z`}return(r,u)=>(v(),m("svg",hg,[u[1]||(u[1]=c("defs",null,[c("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[c("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#ef4444"})]),c("marker",{id:"arrowhead-drawing",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[c("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#3b82f6"})])],-1)),(v(!0),m(se,null,me(e.arrows,d=>(v(),m("g",{key:d.id,onClick:Be(a=>n("select",d.id),["stop"])},[c("path",{d:s(d.fromX,d.fromY,d.toX,d.toY),fill:"none",stroke:d.id===e.selectedId?"#dc2626":"#ef4444","stroke-width":d.id===e.selectedId?3:2,"stroke-dasharray":"6 3","marker-end":"url(#arrowhead)",class:"arrow-path"},null,8,vg),c("circle",{cx:d.fromX,cy:d.fromY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,mg),c("circle",{cx:d.toX,cy:d.toY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,yg),d.label?(v(),m("text",{key:0,x:l(d.fromX,d.fromY,d.toX,d.toY).x,y:l(d.fromX,d.fromY,d.toX,d.toY).y,"text-anchor":"middle",class:"arrow-label"},T(d.label),9,bg)):M("",!0),d.id===e.selectedId?(v(),m("g",{key:1,class:"arrow-delete",transform:`translate(${(d.fromX+d.toX)/2+20}, ${(d.fromY+d.toY)/2-20})`,onClick:Be(a=>n("remove",d.id),["stop"])},[...u[0]||(u[0]=[c("circle",{r:"8",fill:"#ef4444"},null,-1),c("text",{"text-anchor":"middle",dy:"3.5",fill:"white","font-size":"10","font-weight":"bold"},"×",-1)])],8,kg)):M("",!0)],8,gg))),128)),e.drawingArrow?(v(),m("g",wg,[e.drawingArrow.fromRect?(v(),m("path",{key:0,d:o(e.drawingArrow.fromRect),fill:"none",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,xg)):M("",!0),e.drawingArrow.toRect?(v(),m("path",{key:1,d:o(e.drawingArrow.toRect),fill:"rgba(59,130,246,0.08)",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,_g)):M("",!0),c("path",{d:i(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,Cg),c("circle",{cx:e.drawingArrow.fromX,cy:e.drawingArrow.fromY,r:"5",fill:"#3b82f6",opacity:"0.6"},null,8,$g)])):M("",!0)]))}}),Ag=yt(Sg,[["__scopeId","data-v-1d2c9ec9"]]),Tg=["onClick"],Eg={class:"section-header"},Ig={class:"section-badge"},Rg={key:0,class:"section-placement"},Fg=["onClick"],Pg=["value","onInput","onBlur"],Og={class:"section-dims"},Mg=nt({__name:"DrawnSectionOverlay",props:{sections:{},selectedId:{},drawingRect:{}},emits:["select","remove","update-prompt","commit"],setup(e,{emit:t}){const n=t;return(i,s)=>(v(),m(se,null,[e.drawingRect&&e.drawingRect.width>5&&e.drawingRect.height>5?(v(),m("div",{key:0,class:"section-preview",style:je({left:e.drawingRect.x+"px",top:e.drawingRect.y+"px",width:e.drawingRect.width+"px",height:e.drawingRect.height+"px"})},null,4)):M("",!0),(v(!0),m(se,null,me(e.sections,l=>(v(),m("div",{key:l.id,class:te(["drawn-section",{selected:l.id===e.selectedId}]),style:je({left:l.x+"px",top:l.y+"px",width:l.width+"px",height:l.height+"px"}),onClick:Be(o=>n("select",l.id),["stop"])},[c("div",Eg,[c("span",Ig,"#"+T(l.number)+" New Section",1),l.placement?(v(),m("span",Rg,T(l.placement),1)):M("",!0),c("button",{class:"section-delete",onClick:Be(o=>n("remove",l.id),["stop"])},"×",8,Fg)]),c("textarea",{class:"section-prompt",value:l.prompt,placeholder:"Describe what should go here...",onInput:o=>n("update-prompt",l.id,o.target.value),onBlur:o=>n("commit",l.id),onClick:s[0]||(s[0]=Be(()=>{},["stop"]))},null,40,Pg),c("div",Og,T(Math.round(l.width))+"×"+T(Math.round(l.height))+"px ",1)],14,Tg))),128))],64))}}),Lg=yt(Mg,[["__scopeId","data-v-d10f1f9f"]]),Dg={class:"notes-tab"},Ng={key:0,class:"add-note"},Bg=["onKeydown"],Vg={class:"task-toggles"},Hg={class:"history-toggle",title:"Attach your navigation path and click actions to this task"},jg=["checked"],Ug={class:"history-toggle",title:"Attach parent layout chain and DOM subtree snapshot to this task"},zg=["checked"],Yg={key:0,class:"screenshot-preview"},Kg=["src"],Wg={class:"note-actions"},qg=["disabled"],Gg={key:1,class:"element-pins"},Xg=["onClick"],Zg={class:"pin-content"},Jg={key:0,class:"pin-action"},Qg={key:1,class:"pin-note"},ev={key:2,class:"pin-empty"},tv=["onClick"],nv={class:"all-pins"},sv={class:"section-label"},iv={key:0,class:"empty-hint"},lv=["onClick"],ov={class:"pin-content"},rv={class:"pin-file"},av={key:0,class:"pin-action"},cv={key:1,class:"pin-note"},uv=["onClick"],dv={key:2,class:"task-review"},fv={class:"section-label"},pv={class:"task-header"},hv={class:"task-desc"},gv={class:"task-file"},vv={key:0,class:"task-feedback"},mv={class:"task-actions"},yv=["onClick"],bv=["value","onInput"],kv=["onClick"],wv=["onClick"],xv=nt({__name:"NotesTab",props:{pins:{},selectedPinId:{},selectedElement:{},elementRole:{},tasks:{},includeHistory:{type:Boolean},includeElementContext:{type:Boolean},pendingScreenshot:{}},emits:["add-note","add-action","add-task","update:includeHistory","update:includeElementContext","start-snip","remove-screenshot","select-pin","accept-task","deny-task","cancel-task","update-note","remove-pin"],setup(e,{emit:t}){const n=e,i=z({}),s=t,l=z(""),o=oe(()=>n.selectedElement?n.pins.filter(u=>u.file===n.selectedElement.file&&u.line===parseInt(n.selectedElement.line)):[]);function r(){const u=l.value.trim();u&&(s("add-note",u),l.value="")}return(u,d)=>(v(),m("div",Dg,[e.selectedElement?(v(),m("div",Ng,[d[8]||(d[8]=c("span",{class:"section-label",title:"Describe a change in plain text or markdown — your AI agent will apply it"},"Add Task",-1)),Pe(c("textarea",{"onUpdate:modelValue":d[0]||(d[0]=a=>l.value=a),class:"note-input",rows:"3",placeholder:"Describe what you want to change (supports markdown)...",onKeydown:wt(Be(r,["ctrl"]),["enter"])},null,40,Bg),[[Ke,l.value]]),c("div",Vg,[c("label",Hg,[c("input",{type:"checkbox",checked:e.includeHistory,onChange:d[1]||(d[1]=a=>s("update:includeHistory",a.target.checked))},null,40,jg),d[6]||(d[6]=c("span",null,"Include interaction history",-1))]),c("label",Ug,[c("input",{type:"checkbox",checked:e.includeElementContext,onChange:d[2]||(d[2]=a=>s("update:includeElementContext",a.target.checked))},null,40,zg),d[7]||(d[7]=c("span",null,"Include DOM context",-1))])]),e.pendingScreenshot?(v(),m("div",Yg,[c("img",{src:"/__annotask/screenshots/"+e.pendingScreenshot,class:"screenshot-thumb"},null,8,Kg),c("button",{class:"screenshot-remove",onClick:d[3]||(d[3]=a=>s("remove-screenshot"))},"×")])):(v(),m("button",{key:1,class:"screenshot-btn",onClick:d[4]||(d[4]=a=>s("start-snip")),title:"Capture a screenshot — drag a region or click for full page"},"Add Screenshot")),c("div",Wg,[c("button",{class:"submit-btn",disabled:!l.value.trim(),onClick:r},"Add Task",8,qg)])])):M("",!0),o.value.length?(v(),m("div",Gg,[d[9]||(d[9]=c("span",{class:"section-label"},"Notes on this element",-1)),(v(!0),m(se,null,me(o.value,a=>(v(),m("div",{key:a.id,class:"pin-item",onClick:f=>s("select-pin",a.id)},[c("span",{class:te(["pin-badge",{action:a.action}])},T(a.number),3),c("div",Zg,[a.action?(v(),m("span",Jg,T(a.action),1)):M("",!0),a.note?(v(),m("span",Qg,T(a.note),1)):M("",!0),!a.note&&!a.action?(v(),m("span",ev,"No note yet")):M("",!0)]),c("button",{class:"pin-delete",onClick:Be(f=>s("remove-pin",a.id),["stop"])},"×",8,tv)],8,Xg))),128))])):M("",!0),c("div",nv,[c("span",sv,"All Pins ("+T(e.pins.length)+")",1),e.pins.length===0?(v(),m("div",iv," Press P then click on the page to add pins ")):M("",!0),(v(!0),m(se,null,me(e.pins,a=>(v(),m("div",{key:a.id,class:te(["pin-item",{selected:a.id===e.selectedPinId}]),onClick:f=>s("select-pin",a.id)},[c("span",{class:te(["pin-badge",{action:a.action}])},T(a.number),3),c("div",ov,[c("code",rv,T(a.file)+":"+T(a.line),1),a.action?(v(),m("span",av,T(a.action),1)):M("",!0),a.note?(v(),m("span",cv,T(a.note),1)):M("",!0)]),c("button",{class:"pin-delete",onClick:Be(f=>s("remove-pin",a.id),["stop"])},"×",8,uv)],10,lv))),128))]),e.tasks.length>0?(v(),m("div",dv,[c("span",fv,"Tasks ("+T(e.tasks.length)+")",1),(v(!0),m(se,null,me(e.tasks,a=>(v(),m("div",{key:a.id,class:te(["task-item",a.status])},[c("div",pv,[c("span",{class:te(["task-status-badge",a.status])},T(a.status),3),c("span",hv,T(a.description),1)]),c("code",gv,T(a.file),1),a.feedback?(v(),m("div",vv,"Feedback: "+T(a.feedback),1)):M("",!0),c("div",mv,[a.status==="review"?(v(),m(se,{key:0},[c("button",{class:"task-accept",onClick:f=>s("accept-task",a.id)},"Accept",8,yv),c("input",{value:i.value[a.id]||"",onInput:f=>i.value[a.id]=f.target.value,class:"deny-input",placeholder:"Reason...",onClick:d[5]||(d[5]=Be(()=>{},["stop"]))},null,40,bv),c("button",{class:"task-deny",onClick:f=>{s("deny-task",a.id,i.value[a.id]||""),delete i.value[a.id]}},"Deny",8,kv)],64)):M("",!0),c("button",{class:"task-cancel",onClick:f=>s("cancel-task",a.id)},"×",8,wv)])],2))),128))])):M("",!0)]))}}),_v=yt(xv,[["__scopeId","data-v-95807637"]]),Cv={class:"prompt-header"},$v={class:"prompt-text-preview"},Sv=["onClick"],Av={class:"hl-header"},Tv={class:"hl-badge"},Ev={class:"hl-file"},Iv=["onClick"],Rv={class:"hl-text"},Fv={key:0,class:"hl-prompt"},Pv=["value","onInput"],Ov=nt({__name:"TextHighlightOverlay",props:{highlights:{},selectedId:{},pending:{}},emits:["select","remove","update-prompt","submit-pending","cancel-pending"],setup(e,{emit:t}){const n=t;return(i,s)=>(v(),m(se,null,[e.pending?(v(),m("div",{key:0,class:"highlight-prompt",style:je({left:e.pending.x+"px",top:e.pending.y+"px"})},[c("div",Cv,[c("span",$v,'"'+T(e.pending.text.substring(0,50))+T(e.pending.text.length>50?"...":"")+'"',1)]),c("input",{class:"prompt-input",placeholder:"What should this text become?",autofocus:"",onKeydown:[s[0]||(s[0]=wt(l=>n("submit-pending",l.target.value),["enter"])),s[1]||(s[1]=wt(l=>n("cancel-pending"),["escape"]))]},null,32),s[3]||(s[3]=c("div",{class:"prompt-hint"},"Enter to submit, Escape to cancel",-1))],4)):M("",!0),(v(!0),m(se,null,me(e.highlights,l=>(v(),m("div",{key:l.id,class:te(["text-highlight-card",{selected:l.id===e.selectedId}]),onClick:Be(o=>n("select",l.id),["stop"])},[c("div",Av,[c("span",Tv,"#"+T(l.number),1),c("code",Ev,T(l.file)+":"+T(l.line),1),c("button",{class:"hl-delete",onClick:Be(o=>n("remove",l.id),["stop"])},"×",8,Iv)]),c("div",Rv,'"'+T(l.selectedText)+'"',1),l.prompt?(v(),m("div",Fv,"→ "+T(l.prompt),1)):M("",!0),l.id===e.selectedId?(v(),m("input",{key:1,class:"hl-prompt-edit",value:l.prompt,placeholder:"What should this become?",onInput:o=>n("update-prompt",l.id,o.target.value),onClick:s[2]||(s[2]=Be(()=>{},["stop"]))},null,40,Pv)):M("",!0)],10,Sv))),128))],64))}}),Mv=yt(Ov,[["__scopeId","data-v-b4a28a2c"]]),Lv={class:"layout-label"},Dv=["onPointerdown"],Nv=["onPointerdown"],Bv=["onClick"],Vv=["onClick"],Hv=["onClick"],jv=["onClick"],Uv=nt({__name:"LayoutOverlay",props:{containers:{}},emits:["grid-line-drag","add-track","add-child"],setup(e,{emit:t}){const n=t;function i(u){var d,a;if(u.display==="grid"){const f=((d=u.columns)==null?void 0:d.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 s(u){if(!u.columns||u.columns.length<=1)return[];const d=[];let a=0;for(let f=0;f<u.columns.length-1;f++)a+=u.columns[f],u.columnGap&&(a+=u.columnGap/2),d.push({x:a,height:u.height}),u.columnGap&&(a+=u.columnGap/2);return d}function l(u){if(!u.rows||u.rows.length<=1)return[];const d=[];let a=0;for(let f=0;f<u.rows.length-1;f++)a+=u.rows[f],u.rowGap&&(a+=u.rowGap/2),d.push({y:a,width:u.width}),u.rowGap&&(a+=u.rowGap/2);return d}function o(u){return u.width>60&&u.height>60}function r(u){return u.display==="grid"||u.direction==="row"||u.direction==="row-reverse"}return(u,d)=>(v(!0),m(se,null,me(e.containers,(a,f)=>(v(),m(se,{key:f},[c("div",{class:te(["layout-outline",a.display]),style:je({left:a.x+"px",top:a.y+"px",width:a.width+"px",height:a.height+"px"})},[c("span",Lv,T(i(a)),1)],6),(v(!0),m(se,null,me(s(a),(g,p)=>(v(),m("div",{key:"col-"+f+"-"+p,class:"grid-line col",style:je({left:a.x+g.x+"px",top:a.y+"px",height:g.height+"px"}),onPointerdown:Be(k=>n("grid-line-drag",a,"col",p,k),["stop","prevent"])},null,44,Dv))),128)),(v(!0),m(se,null,me(l(a),(g,p)=>(v(),m("div",{key:"row-"+f+"-"+p,class:"grid-line row",style:je({left:a.x+"px",top:a.y+g.y+"px",width:g.width+"px"}),onPointerdown:Be(k=>n("grid-line-drag",a,"row",p,k),["stop","prevent"])},null,44,Nv))),128)),o(a)?(v(),m(se,{key:0},[a.display==="grid"?(v(),m(se,{key:0},[c("button",{class:"add-track-btn col",style:je({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add column",onClick:Be(g=>n("add-track",a,"col"),["stop"])},"+col",12,Bv),c("button",{class:"add-track-btn row",style:je({left:a.x+a.width/2-16+"px",top:a.y+a.height+4+"px"}),title:"Add row",onClick:Be(g=>n("add-track",a,"row"),["stop"])},"+row",12,Vv)],64)):(v(),m(se,{key:1},[r(a)?(v(),m("button",{key:0,class:"add-child-btn",style:je({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add item",onClick:Be(g=>n("add-child",a),["stop"])},"+",12,Hv)):(v(),m("button",{key:1,class:"add-child-btn",style:je({left:a.x+a.width/2-11+"px",top:a.y+a.height+4+"px"}),title:"Add item",onClick:Be(g=>n("add-child",a),["stop"])},"+",12,jv))],64))],64)):M("",!0)],64))),128))}}),zv=yt(Uv,[["__scopeId","data-v-ed4fb8a3"]]),yr="annotask-theme-preview",Yt=z(new Map);function Yv(){return Yt.value.size===0?"":`:root {
18
+ ${Array.from(Yt.value.entries()).map(([t,n])=>` ${t}: ${n} !important;`).join(`
19
+ `)}
20
+ }`}function Kv(e){var t;try{return((t=e.value)==null?void 0:t.contentDocument)??null}catch{return null}}function Wv(e){const t=Yv();let n=e.getElementById(yr);if(!t){n==null||n.remove();return}n||(n=e.createElement("style"),n.id=yr,e.head.appendChild(n)),n.textContent=t}function qv(e){function t(){const o=Kv(e);o&&Wv(o)}function n(o,r){const u=new Map(Yt.value);u.set(o,r),Yt.value=u}function i(o){const r=new Map(Yt.value);r.delete(o),Yt.value=r}function s(){Yt.value=new Map}it(Yt,t,{deep:!0});function l(){t()}return it(e,(o,r)=>{r&&r.removeEventListener("load",l),o&&(o.addEventListener("load",l),t())},{immediate:!0}),{overrides:Yt,setOverride:n,removeOverride:i,clearAll:s,hasChanges:()=>Yt.value.size>0}}const ts=z([]),Il=z(!1);async function ki(){try{Il.value=!0;const t=await(await fetch("/__annotask/api/tasks")).json();ts.value=t.tasks||[]}catch{}finally{Il.value=!1}}async function Gv(e){try{const n=await(await fetch("/__annotask/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return await ki(),n}catch{return null}}async function Xv(e,t,n,i){try{await fetch(`/__annotask/api/tasks/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:t,...n?{feedback:n}:{},...i})}),await ki()}catch{}}let br=!1;function sc(){br||(br=!0,ki(),Qa("tasks:updated",i=>{const s=i;ts.value=(s==null?void 0:s.tasks)||[]}));const e=oe(()=>ts.value.filter(i=>i.status==="pending")),t=oe(()=>ts.value.filter(i=>i.status==="review")),n=oe(()=>ts.value.filter(i=>i.status==="denied"));return{tasks:ts,pendingTasks:e,reviewTasks:t,deniedTasks:n,isLoading:Il,createTask:Gv,updateTaskStatus:Xv,fetchTasks:ki}}const Zv={class:"theme-page"},Jv={class:"theme-header"},Qv={key:0,class:"theme-actions"},em={class:"theme-change-count"},tm={key:0,class:"theme-empty"},nm={key:1,class:"theme-empty"},sm={class:"theme-tabs"},im={key:0,class:"theme-tab-badge"},lm={key:0,class:"theme-tab-badge"},om={key:0,class:"theme-tab-badge"},rm={key:0,class:"theme-tab-badge"},am={class:"theme-content"},cm={key:0,class:"theme-section"},um={key:0,class:"theme-section-empty"},dm={class:"token-info"},fm={class:"token-source"},pm={class:"token-controls"},hm={class:"color-swatch-wrapper"},gm=["value","onChange"],vm={key:0,class:"no-preview-badge",title:"No CSS variable — preview unavailable"},mm={class:"token-info"},ym={class:"token-role new-badge"},bm={class:"token-controls"},km={class:"token-value-ro"},wm=["onClick"],xm={key:1,class:"add-token-form"},_m={class:"add-actions"},Cm=["disabled"],$m={key:1,class:"theme-section"},Sm={key:0,class:"theme-section-empty"},Am={class:"token-info"},Tm={class:"token-source"},Em={class:"token-controls"},Im=["value","onChange"],Rm={class:"token-info"},Fm={class:"token-role new-badge"},Pm={class:"token-controls"},Om={class:"token-value-ro"},Mm=["onClick"],Lm={key:1,class:"add-token-form"},Dm={class:"add-actions"},Nm=["disabled"],Bm={key:3,class:"theme-section-empty"},Vm={class:"token-info"},Hm={class:"token-source"},jm={class:"token-controls"},Um=["value","onChange"],zm={class:"token-info"},Ym={class:"token-role new-badge"},Km={class:"token-controls"},Wm={class:"token-value-ro"},qm=["onClick"],Gm={key:4,class:"add-token-form"},Xm={class:"add-actions"},Zm=["disabled"],Jm={key:6,class:"section-subtitle",style:{"margin-top":"16px"}},Qm={key:7,class:"weight-chips"},e0={key:2,class:"theme-section"},t0={key:0,class:"theme-section-empty"},n0={class:"token-info"},s0={class:"token-source"},i0={class:"token-controls"},l0=["value","onChange"],o0={class:"spacing-preview"},r0={class:"token-info"},a0={class:"token-role new-badge"},c0={class:"token-controls"},u0={class:"token-value-ro"},d0=["onClick"],f0={key:1,class:"add-token-form"},p0={class:"add-actions"},h0=["disabled"],g0={key:3,class:"theme-section"},v0={key:0,class:"theme-section-empty"},m0={class:"token-info"},y0={class:"token-source"},b0={class:"token-controls"},k0=["value","onChange"],w0={class:"token-info"},x0={class:"token-role new-badge"},_0={class:"token-controls"},C0={class:"token-value-ro"},$0=["onClick"],S0={key:1,class:"add-token-form"},A0={class:"add-actions"},T0=["disabled"],E0={key:4,class:"theme-section"},I0={key:0,class:"theme-section-empty"},R0={key:1,class:"library-card"},F0={class:"library-name"},P0={key:0,class:"library-version"},O0={key:2,class:"theme-section-empty"},M0={class:"library-card"},L0={class:"library-name"},D0={key:0,class:"library-version"},N0={key:0,class:"library-components"},B0={key:4,class:"library-card"},V0={class:"library-name"},H0={class:"library-version"},j0=nt({__name:"ThemePage",props:{iframeRef:{}},setup(e){const t=e,{designSpec:n,isInitialized:i,isLoading:s}=no(),l=qv(oe(()=>t.iframeRef)),o=sc(),r=z("colors"),u=z(new Map),d=z(new Map),a=z(new Map),f=z(new Map),g=z(new Map),p=z([]),k=z([]),b=z([]),$=z([]),R=z([]),x=z(null),_=z(""),C=z(""),F=z(""),N=oe(()=>{var Z;try{return((Z=t.iframeRef)==null?void 0:Z.contentDocument)??null}catch{return null}}),U=oe(()=>{var Z;return((Z=n.value)==null?void 0:Z.colors)??[]}),ne=oe(()=>{var Z,B;return((B=(Z=n.value)==null?void 0:Z.typography)==null?void 0:B.families)??[]}),P=oe(()=>{var Z,B;return((B=(Z=n.value)==null?void 0:Z.typography)==null?void 0:B.scale)??[]}),J=oe(()=>{var Z,B;return((B=(Z=n.value)==null?void 0:Z.typography)==null?void 0:B.weights)??[]}),ie=oe(()=>{var Z;return((Z=n.value)==null?void 0:Z.spacing)??[]}),pe=oe(()=>{var Z,B;return((B=(Z=n.value)==null?void 0:Z.borders)==null?void 0:B.radius)??[]}),be=oe(()=>{var Z;return((Z=n.value)==null?void 0:Z.icons)??null}),ke=oe(()=>{var Z;return((Z=n.value)==null?void 0:Z.components)??null}),Le=oe(()=>u.value.size+d.value.size+a.value.size+f.value.size+g.value.size+p.value.length+k.value.length+b.value.length+$.value.length+R.value.length);function Te(Z,B){u.value.set(Z.role,B),u.value=new Map(u.value),Z.cssVar&&l.setOverride(Z.cssVar,B)}function Y(Z,B,De){De.value.set(Z.role,B),De.value=new Map(De.value),Z.cssVar&&l.setOverride(Z.cssVar,B)}function I(Z,B){return B.get(Z.role)??Z.value}function V(Z,B){const De=B.get(Z.role);return De!==void 0&&De!==Z.value}function he(Z){x.value=Z,_.value="",C.value="",F.value=""}function K(){x.value=null}function G(){if(!_.value.trim()||!C.value.trim())return;const Z={role:_.value.trim(),value:C.value.trim(),cssVar:F.value.trim()||void 0,source:"new"};switch(x.value){case"colors":p.value=[...p.value,Z];break;case"families":k.value=[...k.value,Z];break;case"scale":b.value=[...b.value,Z];break;case"spacing":$.value=[...$.value,Z];break;case"radius":R.value=[...R.value,Z];break}Z.cssVar&&l.setOverride(Z.cssVar,Z.value),x.value=null}function ae(Z,B){const De=Z.value[B];De.cssVar&&l.removeOverride(De.cssVar),Z.value=Z.value.filter((L,_e)=>_e!==B)}function xe(){var _e,w;const Z=[],B=((w=(_e=n.value)==null?void 0:_e.framework)==null?void 0:w.styling)??[];function De(y,E,j){const H=j.get(E.role);!H||H===E.value||Z.push({type:"theme_update",description:`Update ${y} "${E.role}" from ${E.value} to ${H}`,file:E.sourceFile||"",line:E.sourceLine||0,intent:`Change the ${E.role} ${y} token to ${H} across the application`,action:"theme_update",context:{category:y,role:E.role,before:E.value,after:H,cssVar:E.cssVar||null,source:E.source,sourceFile:E.sourceFile||null,sourceLine:E.sourceLine||null,styling:B}})}function L(y,E){Z.push({type:"theme_update",description:`Add new ${y} token "${E.role}" with value ${E.value}`,file:"",line:0,intent:`Add a new ${E.role} ${y} token with value ${E.value} to the design system`,action:"theme_update",context:{category:y,role:E.role,before:null,after:E.value,cssVar:E.cssVar||null,source:null,sourceFile:null,sourceLine:null,styling:B,isNew:!0}})}for(const y of U.value)De("colors",y,u.value);for(const y of ne.value)De("typography.families",y,d.value);for(const y of P.value)De("typography.scale",y,a.value);for(const y of ie.value)De("spacing",y,f.value);for(const y of pe.value)De("borders.radius",y,g.value);for(const y of p.value)L("colors",y);for(const y of k.value)L("typography.families",y);for(const y of b.value)L("typography.scale",y);for(const y of $.value)L("spacing",y);for(const y of R.value)L("borders.radius",y);return Z}async function ze(){const Z=xe();for(const B of Z)await o.createTask(B);u.value=new Map,d.value=new Map,a.value=new Map,f.value=new Map,g.value=new Map,p.value=[],k.value=[],b.value=[],$.value=[],R.value=[],l.clearAll()}function Se(){u.value=new Map,d.value=new Map,a.value=new Map,f.value=new Map,g.value=new Map,p.value=[],k.value=[],b.value=[],$.value=[],R.value=[],l.clearAll()}return(Z,B)=>{var De;return v(),m("div",Zv,[c("div",Jv,[B[25]||(B[25]=c("span",{class:"theme-title"},"Design Tokens",-1)),Le.value>0?(v(),m("div",Qv,[c("span",em,T(Le.value)+" change"+T(Le.value===1?"":"s"),1),c("button",{class:"theme-btn commit",onClick:ze},"Commit"),c("button",{class:"theme-btn discard",onClick:Se},"Discard")])):M("",!0)]),O(s)?(v(),m("div",tm,[...B[26]||(B[26]=[c("p",null,"Loading design spec...",-1)])])):O(i)?(v(),m(se,{key:2},[c("div",sm,[c("button",{class:te(["theme-tab",{active:r.value==="colors"}]),onClick:B[0]||(B[0]=L=>r.value="colors")},[B[28]||(B[28]=et(" Colors ",-1)),u.value.size+p.value.length?(v(),m("span",im,T(u.value.size+p.value.length),1)):M("",!0)],2),c("button",{class:te(["theme-tab",{active:r.value==="typography"}]),onClick:B[1]||(B[1]=L=>r.value="typography")},[B[29]||(B[29]=et(" Type ",-1)),d.value.size+a.value.size+k.value.length+b.value.length?(v(),m("span",lm,T(d.value.size+a.value.size+k.value.length+b.value.length),1)):M("",!0)],2),c("button",{class:te(["theme-tab",{active:r.value==="spacing"}]),onClick:B[2]||(B[2]=L=>r.value="spacing")},[B[30]||(B[30]=et(" Spacing ",-1)),f.value.size+$.value.length?(v(),m("span",om,T(f.value.size+$.value.length),1)):M("",!0)],2),c("button",{class:te(["theme-tab",{active:r.value==="borders"}]),onClick:B[3]||(B[3]=L=>r.value="borders")},[B[31]||(B[31]=et(" Borders ",-1)),g.value.size+R.value.length?(v(),m("span",rm,T(g.value.size+R.value.length),1)):M("",!0)],2),c("button",{class:te(["theme-tab",{active:r.value==="libraries"}]),onClick:B[4]||(B[4]=L=>r.value="libraries")},"Libraries",2)]),c("div",am,[r.value==="colors"?(v(),m("div",cm,[U.value.length===0&&p.value.length===0?(v(),m("div",um,"No color tokens detected")):M("",!0),(v(!0),m(se,null,me(U.value,L=>(v(),m("div",{key:L.role,class:"token-row"},[c("div",dm,[c("span",{class:te(["token-role",{edited:V(L,u.value)}])},T(L.role),3),c("code",fm,T(L.source),1)]),c("div",pm,[c("div",hm,[lt($l,{modelValue:I(L,u.value),iframeDoc:N.value,"onUpdate:modelValue":_e=>Te(L,_e)},null,8,["modelValue","iframeDoc","onUpdate:modelValue"])]),c("input",{class:"token-value-input color-hex",value:I(L,u.value),onChange:_e=>Te(L,_e.target.value)},null,40,gm),L.cssVar?M("",!0):(v(),m("span",vm,"no preview"))])]))),128)),(v(!0),m(se,null,me(p.value,(L,_e)=>(v(),m("div",{key:"new-"+_e,class:"token-row new"},[c("div",mm,[c("span",ym,"+ "+T(L.role),1)]),c("div",bm,[c("div",{class:"color-swatch-inline",style:je({background:L.value})},null,4),c("code",km,T(L.value),1),c("button",{class:"token-remove",onClick:w=>ae(p.value,_e)},"×",8,wm)])]))),128)),x.value==="colors"?(v(),m("div",xm,[Pe(c("input",{"onUpdate:modelValue":B[5]||(B[5]=L=>_.value=L),class:"add-input",placeholder:"Role (e.g. info)"},null,512),[[Ke,_.value]]),Pe(c("input",{"onUpdate:modelValue":B[6]||(B[6]=L=>C.value=L),class:"add-input",placeholder:"Value (e.g. #3b82f6)"},null,512),[[Ke,C.value]]),Pe(c("input",{"onUpdate:modelValue":B[7]||(B[7]=L=>F.value=L),class:"add-input",placeholder:"CSS var (optional, e.g. --color-info)"},null,512),[[Ke,F.value]]),c("div",_m,[c("button",{class:"theme-btn commit small",onClick:G,disabled:!_.value.trim()||!C.value.trim()},"Add",8,Cm),c("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(v(),m("button",{key:2,class:"add-token-btn",onClick:B[8]||(B[8]=L=>he("colors"))},"+ Add Color"))])):M("",!0),r.value==="typography"?(v(),m("div",$m,[B[32]||(B[32]=c("h4",{class:"section-subtitle"},"Font Families",-1)),ne.value.length===0&&k.value.length===0?(v(),m("div",Sm,"No font families detected")):M("",!0),(v(!0),m(se,null,me(ne.value,L=>(v(),m("div",{key:L.role,class:"token-row"},[c("div",Am,[c("span",{class:te(["token-role",{edited:V(L,d.value)}])},T(L.role),3),c("code",Tm,T(L.source),1)]),c("div",Em,[c("input",{class:"token-value-input wide",value:I(L,d.value),onChange:_e=>Y(L,_e.target.value,d.value)},null,40,Im)])]))),128)),(v(!0),m(se,null,me(k.value,(L,_e)=>(v(),m("div",{key:"new-"+_e,class:"token-row new"},[c("div",Rm,[c("span",Fm,"+ "+T(L.role),1)]),c("div",Pm,[c("code",Om,T(L.value),1),c("button",{class:"token-remove",onClick:w=>ae(k.value,_e)},"×",8,Mm)])]))),128)),x.value==="families"?(v(),m("div",Lm,[Pe(c("input",{"onUpdate:modelValue":B[9]||(B[9]=L=>_.value=L),class:"add-input",placeholder:"Role (e.g. display)"},null,512),[[Ke,_.value]]),Pe(c("input",{"onUpdate:modelValue":B[10]||(B[10]=L=>C.value=L),class:"add-input",placeholder:"Value (e.g. Poppins, sans-serif)"},null,512),[[Ke,C.value]]),Pe(c("input",{"onUpdate:modelValue":B[11]||(B[11]=L=>F.value=L),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Ke,F.value]]),c("div",Dm,[c("button",{class:"theme-btn commit small",onClick:G,disabled:!_.value.trim()||!C.value.trim()},"Add",8,Nm),c("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(v(),m("button",{key:2,class:"add-token-btn",onClick:B[12]||(B[12]=L=>he("families"))},"+ Add Family")),B[33]||(B[33]=c("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Font Scale",-1)),P.value.length===0&&b.value.length===0?(v(),m("div",Bm,"No font sizes detected")):M("",!0),(v(!0),m(se,null,me(P.value,L=>(v(),m("div",{key:L.role,class:"token-row"},[c("div",Vm,[c("span",{class:te(["token-role",{edited:V(L,a.value)}])},T(L.role),3),c("code",Hm,T(L.source),1)]),c("div",jm,[c("input",{class:"token-value-input",value:I(L,a.value),onChange:_e=>Y(L,_e.target.value,a.value)},null,40,Um),c("div",{class:"font-size-preview",style:je({fontSize:I(L,a.value)})},"Aa",4)])]))),128)),(v(!0),m(se,null,me(b.value,(L,_e)=>(v(),m("div",{key:"new-"+_e,class:"token-row new"},[c("div",zm,[c("span",Ym,"+ "+T(L.role),1)]),c("div",Km,[c("code",Wm,T(L.value),1),c("button",{class:"token-remove",onClick:w=>ae(b.value,_e)},"×",8,qm)])]))),128)),x.value==="scale"?(v(),m("div",Gm,[Pe(c("input",{"onUpdate:modelValue":B[13]||(B[13]=L=>_.value=L),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[Ke,_.value]]),Pe(c("input",{"onUpdate:modelValue":B[14]||(B[14]=L=>C.value=L),class:"add-input",placeholder:"Value (e.g. 1.5rem)"},null,512),[[Ke,C.value]]),Pe(c("input",{"onUpdate:modelValue":B[15]||(B[15]=L=>F.value=L),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Ke,F.value]]),c("div",Xm,[c("button",{class:"theme-btn commit small",onClick:G,disabled:!_.value.trim()||!C.value.trim()},"Add",8,Zm),c("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(v(),m("button",{key:5,class:"add-token-btn",onClick:B[16]||(B[16]=L=>he("scale"))},"+ Add Size")),J.value.length?(v(),m("h4",Jm,"Weights")):M("",!0),J.value.length?(v(),m("div",Qm,[(v(!0),m(se,null,me(J.value,L=>(v(),m("span",{key:L,class:"weight-chip"},T(L),1))),128))])):M("",!0)])):M("",!0),r.value==="spacing"?(v(),m("div",e0,[ie.value.length===0&&$.value.length===0?(v(),m("div",t0,"No spacing tokens detected")):M("",!0),(v(!0),m(se,null,me(ie.value,L=>(v(),m("div",{key:L.role,class:"token-row"},[c("div",n0,[c("span",{class:te(["token-role",{edited:V(L,f.value)}])},T(L.role),3),c("code",s0,T(L.source),1)]),c("div",i0,[c("input",{class:"token-value-input",value:I(L,f.value),onChange:_e=>Y(L,_e.target.value,f.value)},null,40,l0),c("div",o0,[c("div",{class:"spacing-bar",style:je({width:I(L,f.value)})},null,4)])])]))),128)),(v(!0),m(se,null,me($.value,(L,_e)=>(v(),m("div",{key:"new-"+_e,class:"token-row new"},[c("div",r0,[c("span",a0,"+ "+T(L.role),1)]),c("div",c0,[c("code",u0,T(L.value),1),c("button",{class:"token-remove",onClick:w=>ae($.value,_e)},"×",8,d0)])]))),128)),x.value==="spacing"?(v(),m("div",f0,[Pe(c("input",{"onUpdate:modelValue":B[17]||(B[17]=L=>_.value=L),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[Ke,_.value]]),Pe(c("input",{"onUpdate:modelValue":B[18]||(B[18]=L=>C.value=L),class:"add-input",placeholder:"Value (e.g. 32px)"},null,512),[[Ke,C.value]]),Pe(c("input",{"onUpdate:modelValue":B[19]||(B[19]=L=>F.value=L),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Ke,F.value]]),c("div",p0,[c("button",{class:"theme-btn commit small",onClick:G,disabled:!_.value.trim()||!C.value.trim()},"Add",8,h0),c("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(v(),m("button",{key:2,class:"add-token-btn",onClick:B[20]||(B[20]=L=>he("spacing"))},"+ Add Spacing"))])):M("",!0),r.value==="borders"?(v(),m("div",g0,[B[34]||(B[34]=c("h4",{class:"section-subtitle"},"Border Radius",-1)),pe.value.length===0&&R.value.length===0?(v(),m("div",v0,"No border radius tokens detected")):M("",!0),(v(!0),m(se,null,me(pe.value,L=>(v(),m("div",{key:L.role,class:"token-row"},[c("div",m0,[c("span",{class:te(["token-role",{edited:V(L,g.value)}])},T(L.role),3),c("code",y0,T(L.source),1)]),c("div",b0,[c("input",{class:"token-value-input",value:I(L,g.value),onChange:_e=>Y(L,_e.target.value,g.value)},null,40,k0),c("div",{class:"radius-preview",style:je({borderRadius:I(L,g.value)})},null,4)])]))),128)),(v(!0),m(se,null,me(R.value,(L,_e)=>(v(),m("div",{key:"new-"+_e,class:"token-row new"},[c("div",w0,[c("span",x0,"+ "+T(L.role),1)]),c("div",_0,[c("code",C0,T(L.value),1),c("button",{class:"token-remove",onClick:w=>ae(R.value,_e)},"×",8,$0)])]))),128)),x.value==="radius"?(v(),m("div",S0,[Pe(c("input",{"onUpdate:modelValue":B[21]||(B[21]=L=>_.value=L),class:"add-input",placeholder:"Role (e.g. xl)"},null,512),[[Ke,_.value]]),Pe(c("input",{"onUpdate:modelValue":B[22]||(B[22]=L=>C.value=L),class:"add-input",placeholder:"Value (e.g. 16px)"},null,512),[[Ke,C.value]]),Pe(c("input",{"onUpdate:modelValue":B[23]||(B[23]=L=>F.value=L),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Ke,F.value]]),c("div",A0,[c("button",{class:"theme-btn commit small",onClick:G,disabled:!_.value.trim()||!C.value.trim()},"Add",8,T0),c("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(v(),m("button",{key:2,class:"add-token-btn",onClick:B[24]||(B[24]=L=>he("radius"))},"+ Add Radius"))])):M("",!0),r.value==="libraries"?(v(),m("div",E0,[B[35]||(B[35]=c("h4",{class:"section-subtitle"},"Icons",-1)),be.value?(v(),m("div",R0,[c("span",F0,T(be.value.library),1),be.value.version?(v(),m("span",P0,"v"+T(be.value.version),1)):M("",!0)])):(v(),m("div",I0,"No icon library detected")),B[36]||(B[36]=c("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Components",-1)),ke.value?(v(),m(se,{key:3},[c("div",M0,[c("span",L0,T(ke.value.library),1),ke.value.version?(v(),m("span",D0,"v"+T(ke.value.version),1)):M("",!0)]),ke.value.used.length?(v(),m("div",N0,[(v(!0),m(se,null,me(ke.value.used,L=>(v(),m("span",{key:L,class:"component-chip"},T(L),1))),128))])):M("",!0)],64)):(v(),m("div",O0,"No component library detected")),B[37]||(B[37]=c("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Framework",-1)),(De=O(n))!=null&&De.framework?(v(),m("div",B0,[c("span",V0,T(O(n).framework.name),1),c("span",H0,"v"+T(O(n).framework.version),1),(v(!0),m(se,null,me(O(n).framework.styling,L=>(v(),m("span",{key:L,class:"styling-chip"},T(L),1))),128))])):M("",!0)])):M("",!0)])],64)):(v(),m("div",nm,[...B[27]||(B[27]=[c("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[c("circle",{cx:"12",cy:"12",r:"10"}),c("path",{d:"M12 8v4l2 2"})],-1),c("p",null,"No design spec found",-1),c("p",{class:"theme-empty-hint"},[et("Run "),c("code",null,"/annotask-init"),et(" in your AI assistant to scan your project's design system")],-1)])]))])}}}),U0=yt(j0,[["__scopeId","data-v-67b64182"]]);var kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var al={exports:{}},wr;function Y0(){return wr||(wr=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
21
+ * Prism: Lightweight, robust, elegant syntax highlighting
22
+ *
23
+ * @license MIT <https://opensource.org/licenses/MIT>
24
+ * @author Lea Verou <https://lea.verou.me>
25
+ * @namespace
26
+ * @public
27
+ */var n=(function(i){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,l=0,o={},r={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function x(_){return _ instanceof u?new u(_.type,x(_.content),_.alias):Array.isArray(_)?_.map(x):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++l}),x.__id},clone:function x(_,C){C=C||{};var F,N;switch(r.util.type(_)){case"Object":if(N=r.util.objId(_),C[N])return C[N];F={},C[N]=F;for(var U in _)_.hasOwnProperty(U)&&(F[U]=x(_[U],C));return F;case"Array":return N=r.util.objId(_),C[N]?C[N]:(F=[],C[N]=F,_.forEach(function(ne,P){F[P]=x(ne,C)}),F);default:return _}},getLanguage:function(x){for(;x;){var _=s.exec(x.className);if(_)return _[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,_){x.className=x.className.replace(RegExp(s,"gi"),""),x.classList.add("language-"+_)},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 x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack)||[])[1];if(x){var _=document.getElementsByTagName("script");for(var C in _)if(_[C].src==x)return _[C]}return null}},isActive:function(x,_,C){for(var F="no-"+_;x;){var N=x.classList;if(N.contains(_))return!0;if(N.contains(F))return!1;x=x.parentElement}return!!C}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(x,_){var C=r.util.clone(r.languages[x]);for(var F in _)C[F]=_[F];return C},insertBefore:function(x,_,C,F){F=F||r.languages;var N=F[x],U={};for(var ne in N)if(N.hasOwnProperty(ne)){if(ne==_)for(var P in C)C.hasOwnProperty(P)&&(U[P]=C[P]);C.hasOwnProperty(ne)||(U[ne]=N[ne])}var J=F[x];return F[x]=U,r.languages.DFS(r.languages,function(ie,pe){pe===J&&ie!=x&&(this[ie]=U)}),U},DFS:function x(_,C,F,N){N=N||{};var U=r.util.objId;for(var ne in _)if(_.hasOwnProperty(ne)){C.call(_,ne,_[ne],F||ne);var P=_[ne],J=r.util.type(P);J==="Object"&&!N[U(P)]?(N[U(P)]=!0,x(P,C,null,N)):J==="Array"&&!N[U(P)]&&(N[U(P)]=!0,x(P,C,ne,N))}}},plugins:{},highlightAll:function(x,_){r.highlightAllUnder(document,x,_)},highlightAllUnder:function(x,_,C){var F={callback:C,container:x,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 N=0,U;U=F.elements[N++];)r.highlightElement(U,_===!0,F.callback)},highlightElement:function(x,_,C){var F=r.util.getLanguage(x),N=r.languages[F];r.util.setLanguage(x,F);var U=x.parentElement;U&&U.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(U,F);var ne=x.textContent,P={element:x,language:F,grammar:N,code:ne};function J(pe){P.highlightedCode=pe,r.hooks.run("before-insert",P),P.element.innerHTML=P.highlightedCode,r.hooks.run("after-highlight",P),r.hooks.run("complete",P),C&&C.call(P.element)}if(r.hooks.run("before-sanity-check",P),U=P.element.parentElement,U&&U.nodeName.toLowerCase()==="pre"&&!U.hasAttribute("tabindex")&&U.setAttribute("tabindex","0"),!P.code){r.hooks.run("complete",P),C&&C.call(P.element);return}if(r.hooks.run("before-highlight",P),!P.grammar){J(r.util.encode(P.code));return}if(_&&i.Worker){var ie=new Worker(r.filename);ie.onmessage=function(pe){J(pe.data)},ie.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else J(r.highlight(P.code,P.grammar,P.language))},highlight:function(x,_,C){var F={code:x,grammar:_,language:C};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(x,_){var C=_.rest;if(C){for(var F in C)_[F]=C[F];delete _.rest}var N=new f;return g(N,N.head,x),a(x,N,_,N.head,0),k(N)},hooks:{all:{},add:function(x,_){var C=r.hooks.all;C[x]=C[x]||[],C[x].push(_)},run:function(x,_){var C=r.hooks.all[x];if(!(!C||!C.length))for(var F=0,N;N=C[F++];)N(_)}},Token:u};i.Prism=r;function u(x,_,C,F){this.type=x,this.content=_,this.alias=C,this.length=(F||"").length|0}u.stringify=function x(_,C){if(typeof _=="string")return _;if(Array.isArray(_)){var F="";return _.forEach(function(J){F+=x(J,C)}),F}var N={type:_.type,content:x(_.content,C),tag:"span",classes:["token",_.type],attributes:{},language:C},U=_.alias;U&&(Array.isArray(U)?Array.prototype.push.apply(N.classes,U):N.classes.push(U)),r.hooks.run("wrap",N);var ne="";for(var P in N.attributes)ne+=" "+P+'="'+(N.attributes[P]||"").replace(/"/g,"&quot;")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+ne+">"+N.content+"</"+N.tag+">"};function d(x,_,C,F){x.lastIndex=_;var N=x.exec(C);if(N&&F&&N[1]){var U=N[1].length;N.index+=U,N[0]=N[0].slice(U)}return N}function a(x,_,C,F,N,U){for(var ne in C)if(!(!C.hasOwnProperty(ne)||!C[ne])){var P=C[ne];P=Array.isArray(P)?P:[P];for(var J=0;J<P.length;++J){if(U&&U.cause==ne+","+J)return;var ie=P[J],pe=ie.inside,be=!!ie.lookbehind,ke=!!ie.greedy,Le=ie.alias;if(ke&&!ie.pattern.global){var Te=ie.pattern.toString().match(/[imsuy]*$/)[0];ie.pattern=RegExp(ie.pattern.source,Te+"g")}for(var Y=ie.pattern||ie,I=F.next,V=N;I!==_.tail&&!(U&&V>=U.reach);V+=I.value.length,I=I.next){var he=I.value;if(_.length>x.length)return;if(!(he instanceof u)){var K=1,G;if(ke){if(G=d(Y,V,x,be),!G||G.index>=x.length)break;var Se=G.index,ae=G.index+G[0].length,xe=V;for(xe+=I.value.length;Se>=xe;)I=I.next,xe+=I.value.length;if(xe-=I.value.length,V=xe,I.value instanceof u)continue;for(var ze=I;ze!==_.tail&&(xe<ae||typeof ze.value=="string");ze=ze.next)K++,xe+=ze.value.length;K--,he=x.slice(V,xe),G.index-=V}else if(G=d(Y,0,he,be),!G)continue;var Se=G.index,Z=G[0],B=he.slice(0,Se),De=he.slice(Se+Z.length),L=V+he.length;U&&L>U.reach&&(U.reach=L);var _e=I.prev;B&&(_e=g(_,_e,B),V+=B.length),p(_,_e,K);var w=new u(ne,pe?r.tokenize(Z,pe):Z,Le,Z);if(I=g(_,_e,w),De&&g(_,I,De),K>1){var y={cause:ne+","+J,reach:L};a(x,_,C,I.prev,V,y),U&&y.reach>U.reach&&(U.reach=y.reach)}}}}}}function f(){var x={value:null,prev:null,next:null},_={value:null,prev:x,next:null};x.next=_,this.head=x,this.tail=_,this.length=0}function g(x,_,C){var F=_.next,N={value:C,prev:_,next:F};return _.next=N,F.prev=N,x.length++,N}function p(x,_,C){for(var F=_.next,N=0;N<C&&F!==x.tail;N++)F=F.next;_.next=F,F.prev=_,x.length-=N}function k(x){for(var _=[],C=x.head.next;C!==x.tail;)_.push(C.value),C=C.next;return _}if(!i.document)return i.addEventListener&&(r.disableWorkerMessageHandler||i.addEventListener("message",function(x){var _=JSON.parse(x.data),C=_.language,F=_.code,N=_.immediateClose;i.postMessage(r.highlight(F,r.languages[C],C)),N&&i.close()},!1)),r;var b=r.util.currentScript();b&&(r.filename=b.src,b.hasAttribute("data-manual")&&(r.manual=!0));function $(){r.manual||r.highlightAll()}if(!r.manual){var R=document.readyState;R==="loading"||R==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",$):window.requestAnimationFrame?window.requestAnimationFrame($):window.setTimeout($,16)}return r})(t);e.exports&&(e.exports=n),typeof kr<"u"&&(kr.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(i){i.type==="entity"&&(i.attributes.title=i.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(s,l){var o={};o["language-"+l]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[l]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["language-"+l]={pattern:/[\s\S]+/,inside:n.languages[l]};var u={};u[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:r},n.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(i,s){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\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:[s,"language-"+s],inside:n.languages[s]},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(i){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.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\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,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:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var l=i.languages.markup;l&&(l.tag.addInlined("style","css"),l.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 i="Loading…",s=function(b,$){return"✖ Error "+b+" while fetching file: "+$},l="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",u="loading",d="loaded",a="failed",f="pre[data-src]:not(["+r+'="'+d+'"]):not(['+r+'="'+u+'"])';function g(b,$,R){var x=new XMLHttpRequest;x.open("GET",b,!0),x.onreadystatechange=function(){x.readyState==4&&(x.status<400&&x.responseText?$(x.responseText):x.status>=400?R(s(x.status,x.statusText)):R(l))},x.send(null)}function p(b){var $=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if($){var R=Number($[1]),x=$[2],_=$[3];return x?_?[R,Number(_)]:[R,void 0]:[R,R]}}n.hooks.add("before-highlightall",function(b){b.selector+=", "+f}),n.hooks.add("before-sanity-check",function(b){var $=b.element;if($.matches(f)){b.code="",$.setAttribute(r,u);var R=$.appendChild(document.createElement("CODE"));R.textContent=i;var x=$.getAttribute("data-src"),_=b.language;if(_==="none"){var C=(/\.(\w+)$/.exec(x)||[,"none"])[1];_=o[C]||C}n.util.setLanguage(R,_),n.util.setLanguage($,_);var F=n.plugins.autoloader;F&&F.loadLanguages(_),g(x,function(N){$.setAttribute(r,d);var U=p($.getAttribute("data-range"));if(U){var ne=N.split(/\r\n?|\n/g),P=U[0],J=U[1]==null?ne.length:U[1];P<0&&(P+=ne.length),P=Math.max(0,Math.min(P-1,ne.length)),J<0&&(J+=ne.length),J=Math.max(0,Math.min(J,ne.length)),N=ne.slice(P,J).join(`
28
+ `),$.hasAttribute("data-start")||$.setAttribute("data-start",String(P+1))}R.textContent=N,n.highlightElement(R)},function(N){$.setAttribute(r,a),R.textContent=N})}}),n.plugins.fileHighlight={highlight:function($){for(var R=($||document).querySelectorAll(f),x=0,_;_=R[x++];)n.highlightElement(_)}};var k=!1;n.fileHighlight=function(){k||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),k=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(al)),al.exports}var K0=Y0();const xr=z0(K0);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\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",s=/(?:[^\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}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(r,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return r});return RegExp(d,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 i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(l),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?: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 ic(e){return typeof e>"u"||e===null}function W0(e){return typeof e=="object"&&e!==null}function q0(e){return Array.isArray(e)?e:ic(e)?[]:[e]}function G0(e,t){var n,i,s,l;if(t)for(l=Object.keys(t),n=0,i=l.length;n<i;n+=1)s=l[n],e[s]=t[s];return e}function X0(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function Z0(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var J0=ic,Q0=W0,e1=q0,t1=X0,n1=Z0,s1=G0,tt={isNothing:J0,isObject:Q0,toArray:e1,repeat:t1,isNegativeZero:n1,extend:s1};function lc(e,t){var n="",i=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
+
30
+ `+e.mark.snippet),i+" "+n):i}function Vs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=lc(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Vs.prototype=Object.create(Error.prototype);Vs.prototype.constructor=Vs;Vs.prototype.toString=function(t){return this.name+": "+lc(this,t)};var vt=Vs;function cl(e,t,n,i,s){var l="",o="",r=Math.floor(s/2)-1;return i-t>r&&(l=" ... ",t=i-r+l.length),n-i>r&&(o=" ...",n=i+r-o.length),{str:l+e.slice(t,n).replace(/\t/g,"→")+o,pos:i-t+l.length}}function ul(e,t){return tt.repeat(" ",t-e.length)+e}function i1(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,i=[0],s=[],l,o=-1;l=n.exec(e.buffer);)s.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var r="",u,d,a=Math.min(e.line+t.linesAfter,s.length).toString().length,f=t.maxLength-(t.indent+a+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)d=cl(e.buffer,i[o-u],s[o-u],e.position-(i[o]-i[o-u]),f),r=tt.repeat(" ",t.indent)+ul((e.line-u+1).toString(),a)+" | "+d.str+`
31
+ `+r;for(d=cl(e.buffer,i[o],s[o],e.position,f),r+=tt.repeat(" ",t.indent)+ul((e.line+1).toString(),a)+" | "+d.str+`
32
+ `,r+=tt.repeat("-",t.indent+a+3+d.pos)+`^
33
+ `,u=1;u<=t.linesAfter&&!(o+u>=s.length);u++)d=cl(e.buffer,i[o+u],s[o+u],e.position-(i[o]-i[o+u]),f),r+=tt.repeat(" ",t.indent)+ul((e.line+u+1).toString(),a)+" | "+d.str+`
34
+ `;return r.replace(/\n$/,"")}var l1=i1,o1=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r1=["scalar","sequence","mapping"];function a1(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){t[String(i)]=n})}),t}function c1(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(o1.indexOf(n)===-1)throw new vt('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=a1(t.styleAliases||null),r1.indexOf(this.kind)===-1)throw new vt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ot=c1;function _r(e,t){var n=[];return e[t].forEach(function(i){var s=n.length;n.forEach(function(l,o){l.tag===i.tag&&l.kind===i.kind&&l.multi===i.multi&&(s=o)}),n[s]=i}),n}function u1(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function i(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(i);return e}function Rl(e){return this.extend(e)}Rl.prototype.extend=function(t){var n=[],i=[];if(t instanceof ot)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new vt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(l){if(!(l instanceof ot))throw new vt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new vt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new vt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(l){if(!(l instanceof ot))throw new vt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Rl.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(i),s.compiledImplicit=_r(s,"implicit"),s.compiledExplicit=_r(s,"explicit"),s.compiledTypeMap=u1(s.compiledImplicit,s.compiledExplicit),s};var oc=Rl,rc=new ot("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ac=new ot("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),cc=new ot("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),uc=new oc({explicit:[rc,ac,cc]});function d1(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function f1(){return null}function p1(e){return e===null}var dc=new ot("tag:yaml.org,2002:null",{kind:"scalar",resolve:d1,construct:f1,predicate:p1,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function h1(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 g1(e){return e==="true"||e==="True"||e==="TRUE"}function v1(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var fc=new ot("tag:yaml.org,2002:bool",{kind:"scalar",resolve:h1,construct:g1,predicate:v1,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 m1(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function y1(e){return 48<=e&&e<=55}function b1(e){return 48<=e&&e<=57}function k1(e){if(e===null)return!1;var t=e.length,n=0,i=!1,s;if(!t)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===t)return!0;if(s=e[++n],s==="b"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;i=!0}return i&&s!=="_"}if(s==="x"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(!m1(e.charCodeAt(n)))return!1;i=!0}return i&&s!=="_"}if(s==="o"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(!y1(e.charCodeAt(n)))return!1;i=!0}return i&&s!=="_"}}if(s==="_")return!1;for(;n<t;n++)if(s=e[n],s!=="_"){if(!b1(e.charCodeAt(n)))return!1;i=!0}return!(!i||s==="_")}function w1(e){var t=e,n=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="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 x1(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!tt.isNegativeZero(e)}var pc=new ot("tag:yaml.org,2002:int",{kind:"scalar",resolve:k1,construct:w1,predicate:x1,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"]}}),_1=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function C1(e){return!(e===null||!_1.test(e)||e[e.length-1]==="_")}function $1(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 S1=/^[-+]?[0-9]+e/;function A1(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(tt.isNegativeZero(e))return"-0.0";return n=e.toString(10),S1.test(n)?n.replace("e",".e"):n}function T1(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||tt.isNegativeZero(e))}var hc=new ot("tag:yaml.org,2002:float",{kind:"scalar",resolve:C1,construct:$1,predicate:T1,represent:A1,defaultStyle:"lowercase"}),gc=uc.extend({implicit:[dc,fc,pc,hc]}),vc=gc,mc=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),yc=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 E1(e){return e===null?!1:mc.exec(e)!==null||yc.exec(e)!==null}function I1(e){var t,n,i,s,l,o,r,u=0,d=null,a,f,g;if(t=mc.exec(e),t===null&&(t=yc.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(n,i,s));if(l=+t[4],o=+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),d=(a*60+f)*6e4,t[9]==="-"&&(d=-d)),g=new Date(Date.UTC(n,i,s,l,o,r,u)),d&&g.setTime(g.getTime()-d),g}function R1(e){return e.toISOString()}var bc=new ot("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:E1,construct:I1,instanceOf:Date,represent:R1});function F1(e){return e==="<<"||e===null}var kc=new ot("tag:yaml.org,2002:merge",{kind:"scalar",resolve:F1}),io=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
35
+ \r`;function P1(e){if(e===null)return!1;var t,n,i=0,s=e.length,l=io;for(n=0;n<s;n++)if(t=l.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function O1(e){var t,n,i=e.replace(/[\r\n=]/g,""),s=i.length,l=io,o=0,r=[];for(t=0;t<s;t++)t%4===0&&t&&(r.push(o>>16&255),r.push(o>>8&255),r.push(o&255)),o=o<<6|l.indexOf(i.charAt(t));return n=s%4*6,n===0?(r.push(o>>16&255),r.push(o>>8&255),r.push(o&255)):n===18?(r.push(o>>10&255),r.push(o>>2&255)):n===12&&r.push(o>>4&255),new Uint8Array(r)}function M1(e){var t="",n=0,i,s,l=e.length,o=io;for(i=0;i<l;i++)i%3===0&&i&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[i];return s=l%3,s===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):s===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):s===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function L1(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var wc=new ot("tag:yaml.org,2002:binary",{kind:"scalar",resolve:P1,construct:O1,predicate:L1,represent:M1}),D1=Object.prototype.hasOwnProperty,N1=Object.prototype.toString;function B1(e){if(e===null)return!0;var t=[],n,i,s,l,o,r=e;for(n=0,i=r.length;n<i;n+=1){if(s=r[n],o=!1,N1.call(s)!=="[object Object]")return!1;for(l in s)if(D1.call(s,l))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(l)===-1)t.push(l);else return!1}return!0}function V1(e){return e!==null?e:[]}var xc=new ot("tag:yaml.org,2002:omap",{kind:"sequence",resolve:B1,construct:V1}),H1=Object.prototype.toString;function j1(e){if(e===null)return!0;var t,n,i,s,l,o=e;for(l=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(i=o[t],H1.call(i)!=="[object Object]"||(s=Object.keys(i),s.length!==1))return!1;l[t]=[s[0],i[s[0]]]}return!0}function U1(e){if(e===null)return[];var t,n,i,s,l,o=e;for(l=new Array(o.length),t=0,n=o.length;t<n;t+=1)i=o[t],s=Object.keys(i),l[t]=[s[0],i[s[0]]];return l}var _c=new ot("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:j1,construct:U1}),z1=Object.prototype.hasOwnProperty;function Y1(e){if(e===null)return!0;var t,n=e;for(t in n)if(z1.call(n,t)&&n[t]!==null)return!1;return!0}function K1(e){return e!==null?e:{}}var Cc=new ot("tag:yaml.org,2002:set",{kind:"mapping",resolve:Y1,construct:K1}),lo=vc.extend({implicit:[bc,kc],explicit:[wc,xc,_c,Cc]}),$n=Object.prototype.hasOwnProperty,wi=1,$c=2,Sc=3,xi=4,dl=1,W1=2,Cr=3,q1=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,G1=/[\x85\u2028\u2029]/,X1=/[,\[\]\{\}]/,Ac=/^(?:!|!!|![a-z\-]+!)$/i,Tc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function $r(e){return Object.prototype.toString.call(e)}function Jt(e){return e===10||e===13}function zn(e){return e===9||e===32}function xt(e){return e===9||e===32||e===10||e===13}function ss(e){return e===44||e===91||e===93||e===123||e===125}function Z1(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function J1(e){return e===120?2:e===117?4:e===85?8:0}function Q1(e){return 48<=e&&e<=57?e-48:-1}function Sr(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 ey(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Ec(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var Ic=new Array(256),Rc=new Array(256);for(var Qn=0;Qn<256;Qn++)Ic[Qn]=Sr(Qn)?1:0,Rc[Qn]=Sr(Qn);function ty(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||lo,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 Fc(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=l1(n),new vt(t,n)}function ce(e,t){throw Fc(e,t)}function _i(e,t){e.onWarning&&e.onWarning.call(null,Fc(e,t))}var Ar={YAML:function(t,n,i){var s,l,o;t.version!==null&&ce(t,"duplication of %YAML directive"),i.length!==1&&ce(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),s===null&&ce(t,"ill-formed argument of the YAML directive"),l=parseInt(s[1],10),o=parseInt(s[2],10),l!==1&&ce(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&_i(t,"unsupported YAML version of the document")},TAG:function(t,n,i){var s,l;i.length!==2&&ce(t,"TAG directive accepts exactly two arguments"),s=i[0],l=i[1],Ac.test(s)||ce(t,"ill-formed tag handle (first argument) of the TAG directive"),$n.call(t.tagMap,s)&&ce(t,'there is a previously declared suffix for "'+s+'" tag handle'),Tc.test(l)||ce(t,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{ce(t,"tag prefix is malformed: "+l)}t.tagMap[s]=l}};function _n(e,t,n,i){var s,l,o,r;if(t<n){if(r=e.input.slice(t,n),i)for(s=0,l=r.length;s<l;s+=1)o=r.charCodeAt(s),o===9||32<=o&&o<=1114111||ce(e,"expected valid JSON character");else q1.test(r)&&ce(e,"the stream contains non-printable characters");e.result+=r}}function Tr(e,t,n,i){var s,l,o,r;for(tt.isObject(n)||ce(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(n),o=0,r=s.length;o<r;o+=1)l=s[o],$n.call(t,l)||(Ec(t,l,n[l]),i[l]=!0)}function is(e,t,n,i,s,l,o,r,u){var d,a;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),d=0,a=s.length;d<a;d+=1)Array.isArray(s[d])&&ce(e,"nested arrays are not supported inside keys"),typeof s=="object"&&$r(s[d])==="[object Object]"&&(s[d]="[object Object]");if(typeof s=="object"&&$r(s)==="[object Object]"&&(s="[object Object]"),s=String(s),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(d=0,a=l.length;d<a;d+=1)Tr(e,t,l[d],n);else Tr(e,t,l,n);else!e.json&&!$n.call(n,s)&&$n.call(t,s)&&(e.line=o||e.line,e.lineStart=r||e.lineStart,e.position=u||e.position,ce(e,"duplicated mapping key")),Ec(t,s,l),delete n[s];return t}function oo(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++):ce(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ge(e,t,n){for(var i=0,s=e.input.charCodeAt(e.position);s!==0;){for(;zn(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(Jt(s))for(oo(e),s=e.input.charCodeAt(e.position),i++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&_i(e,"deficient indentation"),i}function ji(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||xt(n)))}function ro(e,t){t===1?e.result+=" ":t>1&&(e.result+=tt.repeat(`
37
+ `,t-1))}function ny(e,t,n){var i,s,l,o,r,u,d,a,f=e.kind,g=e.result,p;if(p=e.input.charCodeAt(e.position),xt(p)||ss(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(s=e.input.charCodeAt(e.position+1),xt(s)||n&&ss(s)))return!1;for(e.kind="scalar",e.result="",l=o=e.position,r=!1;p!==0;){if(p===58){if(s=e.input.charCodeAt(e.position+1),xt(s)||n&&ss(s))break}else if(p===35){if(i=e.input.charCodeAt(e.position-1),xt(i))break}else{if(e.position===e.lineStart&&ji(e)||n&&ss(p))break;if(Jt(p))if(u=e.line,d=e.lineStart,a=e.lineIndent,Ge(e,!1,-1),e.lineIndent>=t){r=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=d,e.lineIndent=a;break}}r&&(_n(e,l,o,!1),ro(e,e.line-u),l=o=e.position,r=!1),zn(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return _n(e,l,o,!1),e.result?!0:(e.kind=f,e.result=g,!1)}function sy(e,t){var n,i,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(_n(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)i=e.position,e.position++,s=e.position;else return!0;else Jt(n)?(_n(e,i,s,!0),ro(e,Ge(e,!1,t)),i=s=e.position):e.position===e.lineStart&&ji(e)?ce(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);ce(e,"unexpected end of the stream within a single quoted scalar")}function iy(e,t){var n,i,s,l,o,r;if(r=e.input.charCodeAt(e.position),r!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;){if(r===34)return _n(e,n,e.position,!0),e.position++,!0;if(r===92){if(_n(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),Jt(r))Ge(e,!1,t);else if(r<256&&Ic[r])e.result+=Rc[r],e.position++;else if((o=J1(r))>0){for(s=o,l=0;s>0;s--)r=e.input.charCodeAt(++e.position),(o=Z1(r))>=0?l=(l<<4)+o:ce(e,"expected hexadecimal character");e.result+=ey(l),e.position++}else ce(e,"unknown escape sequence");n=i=e.position}else Jt(r)?(_n(e,n,i,!0),ro(e,Ge(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ji(e)?ce(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}ce(e,"unexpected end of the stream within a double quoted scalar")}function ly(e,t){var n=!0,i,s,l,o=e.tag,r,u=e.anchor,d,a,f,g,p,k=Object.create(null),b,$,R,x;if(x=e.input.charCodeAt(e.position),x===91)a=93,p=!1,r=[];else if(x===123)a=125,p=!0,r={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=r),x=e.input.charCodeAt(++e.position);x!==0;){if(Ge(e,!0,t),x=e.input.charCodeAt(e.position),x===a)return e.position++,e.tag=o,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=r,!0;n?x===44&&ce(e,"expected the node content, but found ','"):ce(e,"missed comma between flow collection entries"),$=b=R=null,f=g=!1,x===63&&(d=e.input.charCodeAt(e.position+1),xt(d)&&(f=g=!0,e.position++,Ge(e,!0,t))),i=e.line,s=e.lineStart,l=e.position,fs(e,t,wi,!1,!0),$=e.tag,b=e.result,Ge(e,!0,t),x=e.input.charCodeAt(e.position),(g||e.line===i)&&x===58&&(f=!0,x=e.input.charCodeAt(++e.position),Ge(e,!0,t),fs(e,t,wi,!1,!0),R=e.result),p?is(e,r,k,$,b,R,i,s,l):f?r.push(is(e,null,k,$,b,R,i,s,l)):r.push(b),Ge(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(n=!0,x=e.input.charCodeAt(++e.position)):n=!1}ce(e,"unexpected end of the stream within a flow collection")}function oy(e,t){var n,i,s=dl,l=!1,o=!1,r=t,u=0,d=!1,a,f;if(f=e.input.charCodeAt(e.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)dl===s?s=f===43?Cr:W1:ce(e,"repeat of a chomping mode identifier");else if((a=Q1(f))>=0)a===0?ce(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ce(e,"repeat of an indentation width identifier"):(r=t+a-1,o=!0);else break;if(zn(f)){do f=e.input.charCodeAt(++e.position);while(zn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Jt(f)&&f!==0)}for(;f!==0;){for(oo(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!o||e.lineIndent<r)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>r&&(r=e.lineIndent),Jt(f)){u++;continue}if(e.lineIndent<r){s===Cr?e.result+=tt.repeat(`
38
+ `,l?1+u:u):s===dl&&l&&(e.result+=`
39
+ `);break}for(i?zn(f)?(d=!0,e.result+=tt.repeat(`
40
+ `,l?1+u:u)):d?(d=!1,e.result+=tt.repeat(`
41
+ `,u+1)):u===0?l&&(e.result+=" "):e.result+=tt.repeat(`
42
+ `,u):e.result+=tt.repeat(`
43
+ `,l?1+u:u),l=!0,o=!0,u=0,n=e.position;!Jt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);_n(e,n,e.position,!1)}return!0}function Er(e,t){var n,i=e.tag,s=e.anchor,l=[],o,r=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!xt(o))));){if(r=!0,e.position++,Ge(e,!0,-1)&&e.lineIndent<=t){l.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,fs(e,t,Sc,!1,!0),l.push(e.result),Ge(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)ce(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return r?(e.tag=i,e.anchor=s,e.kind="sequence",e.result=l,!0):!1}function ry(e,t,n){var i,s,l,o,r,u,d=e.tag,a=e.anchor,f={},g=Object.create(null),p=null,k=null,b=null,$=!1,R=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),x=e.input.charCodeAt(e.position);x!==0;){if(!$&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),l=e.line,(x===63||x===58)&&xt(i))x===63?($&&(is(e,f,g,p,k,null,o,r,u),p=k=b=null),R=!0,$=!0,s=!0):$?($=!1,s=!0):ce(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=i;else{if(o=e.line,r=e.lineStart,u=e.position,!fs(e,n,$c,!1,!0))break;if(e.line===l){for(x=e.input.charCodeAt(e.position);zn(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),xt(x)||ce(e,"a whitespace character is expected after the key-value separator within a block mapping"),$&&(is(e,f,g,p,k,null,o,r,u),p=k=b=null),R=!0,$=!1,s=!1,p=e.tag,k=e.result;else if(R)ce(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=a,!0}else if(R)ce(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=d,e.anchor=a,!0}if((e.line===l||e.lineIndent>t)&&($&&(o=e.line,r=e.lineStart,u=e.position),fs(e,t,xi,!0,s)&&($?k=e.result:b=e.result),$||(is(e,f,g,p,k,b,o,r,u),p=k=b=null),Ge(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>t)&&x!==0)ce(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return $&&is(e,f,g,p,k,null,o,r,u),R&&(e.tag=d,e.anchor=a,e.kind="mapping",e.result=f),R}function ay(e){var t,n=!1,i=!1,s,l,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ce(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,s="!!",o=e.input.charCodeAt(++e.position)):s="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(l=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ce(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!xt(o);)o===33&&(i?ce(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(t-1,e.position+1),Ac.test(s)||ce(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);l=e.input.slice(t,e.position),X1.test(l)&&ce(e,"tag suffix cannot contain flow indicator characters")}l&&!Tc.test(l)&&ce(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{ce(e,"tag name is malformed: "+l)}return n?e.tag=l:$n.call(e.tagMap,s)?e.tag=e.tagMap[s]+l:s==="!"?e.tag="!"+l:s==="!!"?e.tag="tag:yaml.org,2002:"+l:ce(e,'undeclared tag handle "'+s+'"'),!0}function cy(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ce(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!xt(n)&&!ss(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function uy(e){var t,n,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!xt(i)&&!ss(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),$n.call(e.anchorMap,n)||ce(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ge(e,!0,-1),!0}function fs(e,t,n,i,s){var l,o,r,u=1,d=!1,a=!1,f,g,p,k,b,$;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=o=r=xi===n||Sc===n,i&&Ge(e,!0,-1)&&(d=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;ay(e)||cy(e);)Ge(e,!0,-1)?(d=!0,r=l,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):r=!1;if(r&&(r=d||s),(u===1||xi===n)&&(wi===n||$c===n?b=t:b=t+1,$=e.position-e.lineStart,u===1?r&&(Er(e,$)||ry(e,$,b))||ly(e,b)?a=!0:(o&&oy(e,b)||sy(e,b)||iy(e,b)?a=!0:uy(e)?(a=!0,(e.tag!==null||e.anchor!==null)&&ce(e,"alias node should not have any properties")):ny(e,b,wi===n)&&(a=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(a=r&&Er(e,$))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ce(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,g=e.implicitTypes.length;f<g;f+=1)if(k=e.implicitTypes[f],k.resolve(e.result)){e.result=k.construct(e.result),e.tag=k.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if($n.call(e.typeMap[e.kind||"fallback"],e.tag))k=e.typeMap[e.kind||"fallback"][e.tag];else for(k=null,p=e.typeMap.multi[e.kind||"fallback"],f=0,g=p.length;f<g;f+=1)if(e.tag.slice(0,p[f].tag.length)===p[f].tag){k=p[f];break}k||ce(e,"unknown tag !<"+e.tag+">"),e.result!==null&&k.kind!==e.kind&&ce(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+k.kind+'", not "'+e.kind+'"'),k.resolve(e.result,e.tag)?(e.result=k.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ce(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 dy(e){var t=e.position,n,i,s,l=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Ge(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(l=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!xt(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(n,e.position),s=[],i.length<1&&ce(e,"directive name must not be less than one character in length");o!==0;){for(;zn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Jt(o));break}if(Jt(o))break;for(n=e.position;o!==0&&!xt(o);)o=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}o!==0&&oo(e),$n.call(Ar,i)?Ar[i](e,i,s):_i(e,'unknown document directive "'+i+'"')}if(Ge(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,Ge(e,!0,-1)):l&&ce(e,"directives end mark is expected"),fs(e,e.lineIndent-1,xi,!1,!0),Ge(e,!0,-1),e.checkLineBreaks&&G1.test(e.input.slice(t,e.position))&&_i(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ji(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ge(e,!0,-1));return}if(e.position<e.length-1)ce(e,"end of the stream or a document separator is expected");else return}function Pc(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 ty(e,t),i=e.indexOf("\0");for(i!==-1&&(n.position=i,ce(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;)dy(n);return n.documents}function fy(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var i=Pc(e,n);if(typeof t!="function")return i;for(var s=0,l=i.length;s<l;s+=1)t(i[s])}function py(e,t){var n=Pc(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new vt("expected a single document in the stream, but found more")}}var hy=fy,gy=py,Oc={loadAll:hy,load:gy},Mc=Object.prototype.toString,Lc=Object.prototype.hasOwnProperty,ao=65279,vy=9,Hs=10,my=13,yy=32,by=33,ky=34,Fl=35,wy=37,xy=38,_y=39,Cy=42,Dc=44,$y=45,Ci=58,Sy=61,Ay=62,Ty=63,Ey=64,Nc=91,Bc=93,Iy=96,Vc=123,Ry=124,Hc=125,ut={};ut[0]="\\0";ut[7]="\\a";ut[8]="\\b";ut[9]="\\t";ut[10]="\\n";ut[11]="\\v";ut[12]="\\f";ut[13]="\\r";ut[27]="\\e";ut[34]='\\"';ut[92]="\\\\";ut[133]="\\N";ut[160]="\\_";ut[8232]="\\L";ut[8233]="\\P";var Fy=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Py=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Oy(e,t){var n,i,s,l,o,r,u;if(t===null)return{};for(n={},i=Object.keys(t),s=0,l=i.length;s<l;s+=1)o=i[s],r=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&Lc.call(u.styleAliases,r)&&(r=u.styleAliases[r]),n[o]=r;return n}function My(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else if(e<=4294967295)n="U",i=8;else throw new vt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+tt.repeat("0",i-t.length)+t}var Ly=1,js=2;function Dy(e){this.schema=e.schema||lo,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=tt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Oy(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==='"'?js:Ly,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 Ir(e,t){for(var n=tt.repeat(" ",t),i=0,s=-1,l="",o,r=e.length;i<r;)s=e.indexOf(`
45
+ `,i),s===-1?(o=e.slice(i),i=r):(o=e.slice(i,s+1),i=s+1),o.length&&o!==`
46
+ `&&(l+=n),l+=o;return l}function Pl(e,t){return`
47
+ `+tt.repeat(" ",e.indent*t)}function Ny(e,t){var n,i,s;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(s=e.implicitTypes[n],s.resolve(t))return!0;return!1}function $i(e){return e===yy||e===vy}function Us(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==ao||65536<=e&&e<=1114111}function Rr(e){return Us(e)&&e!==ao&&e!==my&&e!==Hs}function Fr(e,t,n){var i=Rr(e),s=i&&!$i(e);return(n?i:i&&e!==Dc&&e!==Nc&&e!==Bc&&e!==Vc&&e!==Hc)&&e!==Fl&&!(t===Ci&&!s)||Rr(t)&&!$i(t)&&e===Fl||t===Ci&&s}function By(e){return Us(e)&&e!==ao&&!$i(e)&&e!==$y&&e!==Ty&&e!==Ci&&e!==Dc&&e!==Nc&&e!==Bc&&e!==Vc&&e!==Hc&&e!==Fl&&e!==xy&&e!==Cy&&e!==by&&e!==Ry&&e!==Sy&&e!==Ay&&e!==_y&&e!==ky&&e!==wy&&e!==Ey&&e!==Iy}function Vy(e){return!$i(e)&&e!==Ci}function $s(e,t){var n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function jc(e){var t=/^\n* /;return t.test(e)}var Uc=1,Ol=2,zc=3,Yc=4,ns=5;function Hy(e,t,n,i,s,l,o,r){var u,d=0,a=null,f=!1,g=!1,p=i!==-1,k=-1,b=By($s(e,0))&&Vy($s(e,e.length-1));if(t||o)for(u=0;u<e.length;d>=65536?u+=2:u++){if(d=$s(e,u),!Us(d))return ns;b=b&&Fr(d,a,r),a=d}else{for(u=0;u<e.length;d>=65536?u+=2:u++){if(d=$s(e,u),d===Hs)f=!0,p&&(g=g||u-k-1>i&&e[k+1]!==" ",k=u);else if(!Us(d))return ns;b=b&&Fr(d,a,r),a=d}g=g||p&&u-k-1>i&&e[k+1]!==" "}return!f&&!g?b&&!o&&!s(e)?Uc:l===js?ns:Ol:n>9&&jc(e)?ns:o?l===js?ns:Ol:g?Yc:zc}function jy(e,t,n,i,s){e.dump=(function(){if(t.length===0)return e.quotingType===js?'""':"''";if(!e.noCompatMode&&(Fy.indexOf(t)!==-1||Py.test(t)))return e.quotingType===js?'"'+t+'"':"'"+t+"'";var l=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),r=i||e.flowLevel>-1&&n>=e.flowLevel;function u(d){return Ny(e,d)}switch(Hy(t,r,e.indent,o,u,e.quotingType,e.forceQuotes&&!i,s)){case Uc:return t;case Ol:return"'"+t.replace(/'/g,"''")+"'";case zc:return"|"+Pr(t,e.indent)+Or(Ir(t,l));case Yc:return">"+Pr(t,e.indent)+Or(Ir(Uy(t,o),l));case ns:return'"'+zy(t)+'"';default:throw new vt("impossible error: invalid scalar style")}})()}function Pr(e,t){var n=jc(e)?String(t):"",i=e[e.length-1]===`
48
+ `,s=i&&(e[e.length-2]===`
49
+ `||e===`
50
+ `),l=s?"+":i?"":"-";return n+l+`
51
+ `}function Or(e){return e[e.length-1]===`
52
+ `?e.slice(0,-1):e}function Uy(e,t){for(var n=/(\n+)([^\n]*)/g,i=(function(){var d=e.indexOf(`
53
+ `);return d=d!==-1?d:e.length,n.lastIndex=d,Mr(e.slice(0,d),t)})(),s=e[0]===`
54
+ `||e[0]===" ",l,o;o=n.exec(e);){var r=o[1],u=o[2];l=u[0]===" ",i+=r+(!s&&!l&&u!==""?`
55
+ `:"")+Mr(u,t),s=l}return i}function Mr(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,i,s=0,l,o=0,r=0,u="";i=n.exec(e);)r=i.index,r-s>t&&(l=o>s?o:r,u+=`
56
+ `+e.slice(s,l),s=l+1),o=r;return u+=`
57
+ `,e.length-s>t&&o>s?u+=e.slice(s,o)+`
58
+ `+e.slice(o+1):u+=e.slice(s),u.slice(1)}function zy(e){for(var t="",n=0,i,s=0;s<e.length;n>=65536?s+=2:s++)n=$s(e,s),i=ut[n],!i&&Us(n)?(t+=e[s],n>=65536&&(t+=e[s+1])):t+=i||My(n);return t}function Yy(e,t,n){var i="",s=e.tag,l,o,r;for(l=0,o=n.length;l<o;l+=1)r=n[l],e.replacer&&(r=e.replacer.call(n,String(l),r)),(mn(e,t,r,!1,!1)||typeof r>"u"&&mn(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=s,e.dump="["+i+"]"}function Lr(e,t,n,i){var s="",l=e.tag,o,r,u;for(o=0,r=n.length;o<r;o+=1)u=n[o],e.replacer&&(u=e.replacer.call(n,String(o),u)),(mn(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&mn(e,t+1,null,!0,!0,!1,!0))&&((!i||s!=="")&&(s+=Pl(e,t)),e.dump&&Hs===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function Ky(e,t,n){var i="",s=e.tag,l=Object.keys(n),o,r,u,d,a;for(o=0,r=l.length;o<r;o+=1)a="",i!==""&&(a+=", "),e.condenseFlow&&(a+='"'),u=l[o],d=n[u],e.replacer&&(d=e.replacer.call(n,u,d)),mn(e,t,u,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),mn(e,t,d,!1,!1)&&(a+=e.dump,i+=a));e.tag=s,e.dump="{"+i+"}"}function Wy(e,t,n,i){var s="",l=e.tag,o=Object.keys(n),r,u,d,a,f,g;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new vt("sortKeys must be a boolean or a function");for(r=0,u=o.length;r<u;r+=1)g="",(!i||s!=="")&&(g+=Pl(e,t)),d=o[r],a=n[d],e.replacer&&(a=e.replacer.call(n,d,a)),mn(e,t+1,d,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Hs===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,f&&(g+=Pl(e,t)),mn(e,t+1,a,!0,f)&&(e.dump&&Hs===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,s+=g));e.tag=l,e.dump=s||"{}"}function Dr(e,t,n){var i,s,l,o,r,u;for(s=n?e.explicitTypes:e.implicitTypes,l=0,o=s.length;l<o;l+=1)if(r=s[l],(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,Mc.call(r.represent)==="[object Function]")i=r.represent(t,u);else if(Lc.call(r.represent,u))i=r.represent[u](t,u);else throw new vt("!<"+r.tag+'> tag resolver accepts not "'+u+'" style');e.dump=i}return!0}return!1}function mn(e,t,n,i,s,l,o){e.tag=null,e.dump=n,Dr(e,n,!1)||Dr(e,n,!0);var r=Mc.call(e.dump),u=i,d;i&&(i=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)&&(s=!1),g&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(a&&g&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),r==="[object Object]")i&&Object.keys(e.dump).length!==0?(Wy(e,t,e.dump,s),g&&(e.dump="&ref_"+f+e.dump)):(Ky(e,t,e.dump),g&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Lr(e,t-1,e.dump,s):Lr(e,t,e.dump,s),g&&(e.dump="&ref_"+f+e.dump)):(Yy(e,t,e.dump),g&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object String]")e.tag!=="?"&&jy(e,e.dump,t,l,u);else{if(r==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new vt("unacceptable kind of an object to dump "+r)}e.tag!==null&&e.tag!=="?"&&(d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",e.dump=d+" "+e.dump)}return!0}function qy(e,t){var n=[],i=[],s,l;for(Ml(e,n,i),s=0,l=i.length;s<l;s+=1)t.duplicates.push(n[i[s]]);t.usedDuplicates=new Array(l)}function Ml(e,t,n){var i,s,l;if(e!==null&&typeof e=="object")if(s=t.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(t.push(e),Array.isArray(e))for(s=0,l=e.length;s<l;s+=1)Ml(e[s],t,n);else for(i=Object.keys(e),s=0,l=i.length;s<l;s+=1)Ml(e[i[s]],t,n)}function Gy(e,t){t=t||{};var n=new Dy(t);n.noRefs||qy(e,n);var i=e;return n.replacer&&(i=n.replacer.call({"":i},"",i)),mn(n,0,i,!0,!0)?n.dump+`
59
+ `:""}var Xy=Gy,Zy={dump:Xy};function co(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 Jy=ot,Qy=oc,eb=uc,tb=gc,nb=vc,sb=lo,ib=Oc.load,lb=Oc.loadAll,ob=Zy.dump,rb=vt,ab={binary:wc,float:hc,map:cc,null:dc,pairs:_c,set:Cc,timestamp:bc,bool:fc,int:pc,merge:kc,omap:xc,seq:ac,str:rc},cb=co("safeLoad","load"),ub=co("safeLoadAll","loadAll"),db=co("safeDump","dump"),fb={Type:Jy,Schema:Qy,FAILSAFE_SCHEMA:eb,JSON_SCHEMA:tb,CORE_SCHEMA:nb,DEFAULT_SCHEMA:sb,load:ib,loadAll:lb,dump:ob,YAMLException:rb,types:ab,safeLoad:cb,safeLoadAll:ub,safeDump:db};const pb={class:"report-drawer"},hb={class:"report-header"},gb={class:"report-title"},vb={key:0,class:"report-badge"},mb={class:"report-controls"},yb={class:"format-toggle"},bb=["disabled"],kb={key:0,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},wb={class:"report-body"},xb={key:0,class:"report-code"},_b=["innerHTML"],Cb={key:1,class:"report-empty"},$b=nt({__name:"ReportViewer",props:{tasks:{}},emits:["close"],setup(e,{emit:t}){const n=e,i=t,s=z("json"),l=z(!1),o=oe(()=>n.tasks.length?{version:"1.0",tasks:n.tasks}:null),r=oe(()=>o.value?s.value==="yaml"?fb.dump(o.value,{indent:2,lineWidth:120,noRefs:!0}):JSON.stringify(o.value,null,2):""),u=z("");it([r,s],()=>{Gl(()=>{const g=s.value==="yaml"?"yaml":"json",p=xr.languages[g];u.value=p?xr.highlight(r.value,p,g):d(r.value)})},{immediate:!0});function d(g){return g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(){navigator.clipboard.writeText(r.value),l.value=!0,setTimeout(()=>l.value=!1,2e3)}function f(g){g.key==="Escape"&&i("close")}return(g,p)=>(v(),m("div",{class:"report-overlay",onKeydown:f,tabindex:"-1"},[c("div",{class:"report-backdrop",onClick:p[0]||(p[0]=k=>i("close"))}),c("aside",pb,[c("header",hb,[c("div",gb,[p[4]||(p[4]=c("span",null,"Tasks",-1)),e.tasks.length?(v(),m("span",vb,T(e.tasks.length)+" task"+T(e.tasks.length===1?"":"s"),1)):M("",!0)]),c("div",mb,[c("div",yb,[c("button",{class:te(["fmt-btn",{active:s.value==="json"}]),onClick:p[1]||(p[1]=k=>s.value="json")},"JSON",2),c("button",{class:te(["fmt-btn",{active:s.value==="yaml"}]),onClick:p[2]||(p[2]=k=>s.value="yaml")},"YAML",2)]),c("button",{class:"copy-btn",onClick:a,disabled:!o.value},[l.value?M("",!0):(v(),m("svg",kb,[...p[5]||(p[5]=[c("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1),c("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])])),et(" "+T(l.value?"Copied!":"Copy"),1)],8,bb),c("button",{class:"close-btn",onClick:p[3]||(p[3]=k=>i("close")),title:"Close (Esc)"},[...p[6]||(p[6]=[c("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),c("div",wb,[o.value?(v(),m("pre",xb,[c("code",{innerHTML:u.value},null,8,_b)])):(v(),m("div",Cb,[...p[7]||(p[7]=[c("p",null,"No tasks yet.",-1),c("p",{class:"report-empty-hint"},"Pin elements, draw sections, or add annotations to create tasks for your coding agent.",-1)])]))])])],32))}});function uo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Wn=uo();function Kc(e){Wn=e}var Hn={exec:()=>null};function Ae(e,t=""){let n=typeof e=="string"?e:e.source,i={replace:(s,l)=>{let o=typeof l=="string"?l:l.source;return o=o.replace(mt.caret,"$1"),n=n.replace(s,o),i},getRegex:()=>new RegExp(n,t)};return i}var Sb=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),mt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Ab=/^(?:[ \t]*(?:\n|$))+/,Tb=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Eb=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ib=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fo=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,qc=Ae(Wc).replace(/bull/g,fo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Rb=Ae(Wc).replace(/bull/g,fo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),po=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Fb=/^[^\n]+/,ho=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Pb=Ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ho).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ob=Ae(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fo).getRegex(),Ui="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",go=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Mb=Ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",go).replace("tag",Ui).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Gc=Ae(po).replace("hr",Xs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ui).getRegex(),Lb=Ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Gc).getRegex(),vo={blockquote:Lb,code:Tb,def:Pb,fences:Eb,heading:Ib,hr:Xs,html:Mb,lheading:qc,list:Ob,newline:Ab,paragraph:Gc,table:Hn,text:Fb},Nr=Ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ui).getRegex(),Db={...vo,lheading:Rb,table:Nr,paragraph:Ae(po).replace("hr",Xs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ui).getRegex()},Nb={...vo,html:Ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",go).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Hn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ae(po).replace("hr",Xs).replace("heading",` *#{1,6} *[^
60
+ ]`).replace("lheading",qc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Bb=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Vb=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Xc=/^( {2,}|\\)\n(?!\s*$)/,Hb=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ps=/[\p{P}\p{S}]/u,zi=/[\s\p{P}\p{S}]/u,mo=/[^\s\p{P}\p{S}]/u,jb=Ae(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,zi).getRegex(),Zc=/(?!~)[\p{P}\p{S}]/u,Ub=/(?!~)[\s\p{P}\p{S}]/u,zb=/(?:[^\s\p{P}\p{S}]|~)/u,Yb=Ae(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Sb?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Jc=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Kb=Ae(Jc,"u").replace(/punct/g,ps).getRegex(),Wb=Ae(Jc,"u").replace(/punct/g,Zc).getRegex(),Qc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",qb=Ae(Qc,"gu").replace(/notPunctSpace/g,mo).replace(/punctSpace/g,zi).replace(/punct/g,ps).getRegex(),Gb=Ae(Qc,"gu").replace(/notPunctSpace/g,zb).replace(/punctSpace/g,Ub).replace(/punct/g,Zc).getRegex(),Xb=Ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,mo).replace(/punctSpace/g,zi).replace(/punct/g,ps).getRegex(),Zb=Ae(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ps).getRegex(),Jb="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Qb=Ae(Jb,"gu").replace(/notPunctSpace/g,mo).replace(/punctSpace/g,zi).replace(/punct/g,ps).getRegex(),ek=Ae(/\\(punct)/,"gu").replace(/punct/g,ps).getRegex(),tk=Ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nk=Ae(go).replace("(?:-->|$)","-->").getRegex(),sk=Ae("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",nk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Si=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ik=Ae(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Si).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),eu=Ae(/^!?\[(label)\]\[(ref)\]/).replace("label",Si).replace("ref",ho).getRegex(),tu=Ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",ho).getRegex(),lk=Ae("reflink|nolink(?!\\()","g").replace("reflink",eu).replace("nolink",tu).getRegex(),Br=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yo={_backpedal:Hn,anyPunctuation:ek,autolink:tk,blockSkip:Yb,br:Xc,code:Vb,del:Hn,delLDelim:Hn,delRDelim:Hn,emStrongLDelim:Kb,emStrongRDelimAst:qb,emStrongRDelimUnd:Xb,escape:Bb,link:ik,nolink:tu,punctuation:jb,reflink:eu,reflinkSearch:lk,tag:sk,text:Hb,url:Hn},ok={...yo,link:Ae(/^!?\[(label)\]\((.*?)\)/).replace("label",Si).getRegex(),reflink:Ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Si).getRegex()},Ll={...yo,emStrongRDelimAst:Gb,emStrongLDelim:Wb,delLDelim:Zb,delRDelim:Qb,url:Ae(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Br).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ae(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Br).getRegex()},rk={...Ll,br:Ae(Xc).replace("{2,}","*").getRegex(),text:Ae(Ll.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},si={normal:vo,gfm:Db,pedantic:Nb},ks={normal:yo,gfm:Ll,breaks:rk,pedantic:ok},ak={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vr=e=>ak[e];function Ut(e,t){if(t){if(mt.escapeTest.test(e))return e.replace(mt.escapeReplace,Vr)}else if(mt.escapeTestNoEncode.test(e))return e.replace(mt.escapeReplaceNoEncode,Vr);return e}function Hr(e){try{e=encodeURI(e).replace(mt.percentDecode,"%")}catch{return null}return e}function jr(e,t){var l;let n=e.replace(mt.findPipe,(o,r,u)=>{let d=!1,a=r;for(;--a>=0&&u[a]==="\\";)d=!d;return d?"|":" |"}),i=n.split(mt.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((l=i.at(-1))!=null&&l.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(mt.slashPipe,"|");return i}function ws(e,t,n){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function ck(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}function uk(e,t=0){let n=t,i="";for(let s of e)if(s===" "){let l=4-n%4;i+=" ".repeat(l),n+=l}else i+=s,n++;return i}function Ur(e,t,n,i,s){let l=t.href,o=t.title||null,r=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:o,text:r,tokens:i.inlineTokens(r)};return i.state.inLink=!1,u}function dk(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
61
+ `).map(l=>{let o=l.match(n.other.beginningSpace);if(o===null)return l;let[r]=o;return r.length>=s.length?l.slice(s.length):l}).join(`
62
+ `)}var Ai=class{constructor(e){Ne(this,"options");Ne(this,"rules");Ne(this,"lexer");this.options=e||Wn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ws(n,`
63
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=dk(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let i=ws(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ws(t[0],`
64
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=ws(t[0],`
65
+ `).split(`
66
+ `),i="",s="",l=[];for(;n.length>0;){let o=!1,r=[],u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))r.push(n[u]),o=!0;else if(!o)r.push(n[u]);else break;n=n.slice(u);let d=r.join(`
67
+ `),a=d.replace(this.rules.other.blockquoteSetextReplace,`
68
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
69
+ ${d}`:d,s=s?`${s}
70
+ ${a}`:a;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,l,!0),this.lexer.state.top=f,n.length===0)break;let g=l.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let p=g,k=p.raw+`
71
+ `+n.join(`
72
+ `),b=this.blockquote(k);l[l.length-1]=b,i=i.substring(0,i.length-p.raw.length)+b.raw,s=s.substring(0,s.length-p.text.length)+b.text;break}else if((g==null?void 0:g.type)==="list"){let p=g,k=p.raw+`
73
+ `+n.join(`
74
+ `),b=this.list(k);l[l.length-1]=b,i=i.substring(0,i.length-g.raw.length)+b.raw,s=s.substring(0,s.length-p.raw.length)+b.raw,n=k.substring(l.at(-1).raw.length).split(`
75
+ `);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(e){var n,i;let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),l=s.length>1,o={type:"list",raw:"",ordered:l,start:l?+s.slice(0,-1):"",loose:!1,items:[]};s=l?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=l?s:"[*+-]");let r=this.rules.other.listItemRegex(s),u=!1;for(;e;){let a=!1,f="",g="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let p=uk(t[2].split(`
76
+ `,1)[0],t[1].length),k=e.split(`
77
+ `,1)[0],b=!p.trim(),$=0;if(this.options.pedantic?($=2,g=p.trimStart()):b?$=t[1].length+1:($=p.search(this.rules.other.nonSpaceChar),$=$>4?1:$,g=p.slice($),$+=t[1].length),b&&this.rules.other.blankLine.test(k)&&(f+=k+`
78
+ `,e=e.substring(k.length+1),a=!0),!a){let R=this.rules.other.nextBulletRegex($),x=this.rules.other.hrRegex($),_=this.rules.other.fencesBeginRegex($),C=this.rules.other.headingBeginRegex($),F=this.rules.other.htmlBeginRegex($),N=this.rules.other.blockquoteBeginRegex($);for(;e;){let U=e.split(`
79
+ `,1)[0],ne;if(k=U,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),ne=k):ne=k.replace(this.rules.other.tabCharGlobal," "),_.test(k)||C.test(k)||F.test(k)||N.test(k)||R.test(k)||x.test(k))break;if(ne.search(this.rules.other.nonSpaceChar)>=$||!k.trim())g+=`
80
+ `+ne.slice($);else{if(b||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(p)||C.test(p)||x.test(p))break;g+=`
81
+ `+k}b=!k.trim(),f+=U+`
82
+ `,e=e.substring(U.length+1),p=ne.slice($)}}o.loose||(u?o.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(u=!0)),o.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),o.raw+=f}let d=o.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let a of o.items){if(this.lexer.state.top=!1,a.tokens=this.lexer.blockTokens(a.text,[]),a.task){if(a.text=a.text.replace(this.rules.other.listReplaceTask,""),((n=a.tokens[0])==null?void 0:n.type)==="text"||((i=a.tokens[0])==null?void 0:i.type)==="paragraph"){a.tokens[0].raw=a.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),a.tokens[0].text=a.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let g=this.lexer.inlineQueue.length-1;g>=0;g--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[g].src)){this.lexer.inlineQueue[g].src=this.lexer.inlineQueue[g].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(a.raw);if(f){let g={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};a.checked=g.checked,o.loose?a.tokens[0]&&["paragraph","text"].includes(a.tokens[0].type)&&"tokens"in a.tokens[0]&&a.tokens[0].tokens?(a.tokens[0].raw=g.raw+a.tokens[0].raw,a.tokens[0].text=g.raw+a.tokens[0].text,a.tokens[0].tokens.unshift(g)):a.tokens.unshift({type:"paragraph",raw:g.raw,text:g.raw,tokens:[g]}):a.tokens.unshift(g)}}if(!o.loose){let f=a.tokens.filter(p=>p.type==="space"),g=f.length>0&&f.some(p=>this.rules.other.anyLine.test(p.raw));o.loose=g}}if(o.loose)for(let a of o.items){a.loose=!0;for(let f of a.tokens)f.type==="text"&&(f.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:i,title:s}}}table(e){var o;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=jr(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=t[3])!=null&&o.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
83
+ `):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let r of i)this.rules.other.tableAlignRight.test(r)?l.align.push("right"):this.rules.other.tableAlignCenter.test(r)?l.align.push("center"):this.rules.other.tableAlignLeft.test(r)?l.align.push("left"):l.align.push(null);for(let r=0;r<n.length;r++)l.header.push({text:n[r],tokens:this.lexer.inline(n[r]),header:!0,align:l.align[r]});for(let r of s)l.rows.push(jr(r,l.header.length).map((u,d)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:l.align[d]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
84
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=ws(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=ck(t[2],"()");if(l===-2)return;if(l>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+l;t[2]=t[2].substring(0,l),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let i=t[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),Ur(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[i.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return Ur(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,o,r=s,u=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+s);(i=d.exec(t))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(o=[...l].length,i[3]||i[4]){r+=o;continue}else if((i[5]||i[6])&&s%3&&!((s+o)%3)){u+=o;continue}if(r-=o,r>0)continue;o=Math.min(o,o+r+u);let a=[...i[0]][0].length,f=e.slice(0,s+i.index+a+o);if(Math.min(s,o)%2){let p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}let g=f.slice(2,-2);return{type:"strong",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,o,r=s,u=this.rules.inline.delRDelim;for(u.lastIndex=0,t=t.slice(-1*e.length+s);(i=u.exec(t))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l||(o=[...l].length,o!==s))continue;if(i[3]||i[4]){r+=o;continue}if(r-=o,r>0)continue;o=Math.min(o,o+r);let d=[...i[0]][0].length,a=e.slice(0,s+i.index+d+o),f=a.slice(s,-s);return{type:"del",raw:a,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,i;return t[2]==="@"?(n=t[1],i="mailto:"+n):(n=t[1],i=n),{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=t[0],s="mailto:"+i;else{let l;do l=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(l!==t[0]);i=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Mt=class Dl{constructor(t){Ne(this,"tokens");Ne(this,"options");Ne(this,"state");Ne(this,"inlineQueue");Ne(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Wn,this.options.tokenizer=this.options.tokenizer||new Ai,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:mt,block:si.normal,inline:ks.normal};this.options.pedantic?(n.block=si.pedantic,n.inline=ks.pedantic):this.options.gfm&&(n.block=si.gfm,this.options.breaks?n.inline=ks.breaks:n.inline=ks.gfm),this.tokenizer.rules=n}static get rules(){return{block:si,inline:ks}}static lex(t,n){return new Dl(n).lex(t)}static lexInline(t,n){return new Dl(n).inlineTokens(t)}lex(t){t=t.replace(mt.carriageReturn,`
85
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],i=!1){var s,l,o;for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(mt.tabCharGlobal," ").replace(mt.spaceLine,""));t;){let r;if((l=(s=this.options.extensions)==null?void 0:s.block)!=null&&l.some(d=>(r=d.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let d=n.at(-1);r.raw.length===1&&d!==void 0?d.raw+=`
86
+ `:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let d=n.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
87
+ `)?"":`
88
+ `)+r.raw,d.text+=`
89
+ `+r.text,this.inlineQueue.at(-1).src=d.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let d=n.at(-1);(d==null?void 0:d.type)==="paragraph"||(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
90
+ `)?"":`
91
+ `)+r.raw,d.text+=`
92
+ `+r.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}let u=t;if((o=this.options.extensions)!=null&&o.startBlock){let d=1/0,a=t.slice(1),f;this.options.extensions.startBlock.forEach(g=>{f=g.call({lexer:this},a),typeof f=="number"&&f>=0&&(d=Math.min(d,f))}),d<1/0&&d>=0&&(u=t.substring(0,d+1))}if(this.state.top&&(r=this.tokenizer.paragraph(u))){let d=n.at(-1);i&&(d==null?void 0:d.type)==="paragraph"?(d.raw+=(d.raw.endsWith(`
93
+ `)?"":`
94
+ `)+r.raw,d.text+=`
95
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):n.push(r),i=u.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=(d.raw.endsWith(`
96
+ `)?"":`
97
+ `)+r.raw,d.text+=`
98
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):n.push(r);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var u,d,a,f,g;this.tokenizer.lexer=this;let i=t,s=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)p.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)l=s[2]?s[2].length:0,i=i.slice(0,s.index+l)+"["+"a".repeat(s[0].length-l-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((d=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:d.call({lexer:this},i))??i;let o=!1,r="";for(;t;){o||(r=""),o=!1;let p;if((f=(a=this.options.extensions)==null?void 0:a.inline)!=null&&f.some(b=>(p=b.call({lexer:this},t,n))?(t=t.substring(p.raw.length),n.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let b=n.at(-1);p.type==="text"&&(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):n.push(p);continue}if(p=this.tokenizer.emStrong(t,i,r)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.del(t,i,r)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),n.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),n.push(p);continue}let k=t;if((g=this.options.extensions)!=null&&g.startInline){let b=1/0,$=t.slice(1),R;this.options.extensions.startInline.forEach(x=>{R=x.call({lexer:this},$),typeof R=="number"&&R>=0&&(b=Math.min(b,R))}),b<1/0&&b>=0&&(k=t.substring(0,b+1))}if(p=this.tokenizer.inlineText(k)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(r=p.raw.slice(-1)),o=!0;let b=n.at(-1);(b==null?void 0:b.type)==="text"?(b.raw+=p.raw,b.text+=p.text):n.push(p);continue}if(t){let b="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(b);break}else throw new Error(b)}}return n}},Ti=class{constructor(e){Ne(this,"options");Ne(this,"parser");this.options=e||Wn}space(e){return""}code({text:e,lang:t,escaped:n}){var l;let i=(l=(t||"").match(mt.notSpaceStart))==null?void 0:l[0],s=e.replace(mt.endingNewline,"")+`
99
+ `;return i?'<pre><code class="language-'+Ut(i)+'">'+(n?s:Ut(s,!0))+`</code></pre>
100
+ `:"<pre><code>"+(n?s:Ut(s,!0))+`</code></pre>
101
+ `}blockquote({tokens:e}){return`<blockquote>
102
+ ${this.parser.parse(e)}</blockquote>
103
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
104
+ `}hr(e){return`<hr>
105
+ `}list(e){let t=e.ordered,n=e.start,i="";for(let o=0;o<e.items.length;o++){let r=e.items[o];i+=this.listitem(r)}let s=t?"ol":"ul",l=t&&n!==1?' start="'+n+'"':"";return"<"+s+l+`>
106
+ `+i+"</"+s+`>
107
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
108
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
109
+ `}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let i="";for(let s=0;s<e.rows.length;s++){let l=e.rows[s];n="";for(let o=0;o<l.length;o++)n+=this.tablecell(l[o]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
110
+ <thead>
111
+ `+t+`</thead>
112
+ `+i+`</table>
113
+ `}tablerow({text:e}){return`<tr>
114
+ ${e}</tr>
115
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
116
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ut(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let i=this.parser.parseInline(n),s=Hr(e);if(s===null)return i;e=s;let l='<a href="'+e+'"';return t&&(l+=' title="'+Ut(t)+'"'),l+=">"+i+"</a>",l}image({href:e,title:t,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let s=Hr(e);if(s===null)return Ut(n);e=s;let l=`<img src="${e}" alt="${Ut(n)}"`;return t&&(l+=` title="${Ut(t)}"`),l+=">",l}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ut(e.text)}},bo=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Lt=class Nl{constructor(t){Ne(this,"options");Ne(this,"renderer");Ne(this,"textRenderer");this.options=t||Wn,this.options.renderer=this.options.renderer||new Ti,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new bo}static parse(t,n){return new Nl(n).parse(t)}static parseInline(t,n){return new Nl(n).parseInline(t)}parse(t){var i,s;this.renderer.parser=this;let n="";for(let l=0;l<t.length;l++){let o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){let u=o,d=this.options.extensions.renderers[u.type].call({parser:this},u);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){n+=d||"";continue}}let r=o;switch(r.type){case"space":{n+=this.renderer.space(r);break}case"hr":{n+=this.renderer.hr(r);break}case"heading":{n+=this.renderer.heading(r);break}case"code":{n+=this.renderer.code(r);break}case"table":{n+=this.renderer.table(r);break}case"blockquote":{n+=this.renderer.blockquote(r);break}case"list":{n+=this.renderer.list(r);break}case"checkbox":{n+=this.renderer.checkbox(r);break}case"html":{n+=this.renderer.html(r);break}case"def":{n+=this.renderer.def(r);break}case"paragraph":{n+=this.renderer.paragraph(r);break}case"text":{n+=this.renderer.text(r);break}default:{let u='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,n=this.renderer){var s,l;this.renderer.parser=this;let i="";for(let o=0;o<t.length;o++){let r=t[o];if((l=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&l[r.type]){let d=this.options.extensions.renderers[r.type].call({parser:this},r);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){i+=d||"";continue}}let u=r;switch(u.type){case"escape":{i+=n.text(u);break}case"html":{i+=n.html(u);break}case"link":{i+=n.link(u);break}case"image":{i+=n.image(u);break}case"checkbox":{i+=n.checkbox(u);break}case"strong":{i+=n.strong(u);break}case"em":{i+=n.em(u);break}case"codespan":{i+=n.codespan(u);break}case"br":{i+=n.br(u);break}case"del":{i+=n.del(u);break}case"text":{i+=n.text(u);break}default:{let d='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return i}},ii,Ss=(ii=class{constructor(e){Ne(this,"options");Ne(this,"block");this.options=e||Wn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Mt.lex:Mt.lexInline}provideParser(){return this.block?Lt.parse:Lt.parseInline}},Ne(ii,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ne(ii,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ii),fk=class{constructor(...e){Ne(this,"defaults",uo());Ne(this,"options",this.setOptions);Ne(this,"parse",this.parseMarkdown(!0));Ne(this,"parseInline",this.parseMarkdown(!1));Ne(this,"Parser",Lt);Ne(this,"Renderer",Ti);Ne(this,"TextRenderer",bo);Ne(this,"Lexer",Mt);Ne(this,"Tokenizer",Ai);Ne(this,"Hooks",Ss);this.use(...e)}walkTokens(e,t){var i,s;let n=[];for(let l of e)switch(n=n.concat(t.call(this,l)),l.type){case"table":{let o=l;for(let r of o.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of o.rows)for(let u of r)n=n.concat(this.walkTokens(u.tokens,t));break}case"list":{let o=l;n=n.concat(this.walkTokens(o.items,t));break}default:{let o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(r=>{let u=o[r].flat(1/0);n=n.concat(this.walkTokens(u,t))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=t.renderers[s.name];l?t.renderers[s.name]=function(...o){let r=s.renderer.apply(this,o);return r===!1&&(r=l.apply(this,o)),r}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=t[s.level];l?l.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),i.extensions=t),n.renderer){let s=this.defaults.renderer||new Ti(this.defaults);for(let l in n.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let o=l,r=n.renderer[o],u=s[o];s[o]=(...d)=>{let a=r.apply(s,d);return a===!1&&(a=u.apply(s,d)),a||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Ai(this.defaults);for(let l in n.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let o=l,r=n.tokenizer[o],u=s[o];s[o]=(...d)=>{let a=r.apply(s,d);return a===!1&&(a=u.apply(s,d)),a}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Ss;for(let l in n.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let o=l,r=n.hooks[o],u=s[o];Ss.passThroughHooks.has(l)?s[o]=d=>{if(this.defaults.async&&Ss.passThroughHooksRespectAsync.has(l))return(async()=>{let f=await r.call(s,d);return u.call(s,f)})();let a=r.call(s,d);return u.call(s,a)}:s[o]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await r.apply(s,d);return f===!1&&(f=await u.apply(s,d)),f})();let a=r.apply(s,d);return a===!1&&(a=u.apply(s,d)),a}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,l=n.walkTokens;i.walkTokens=function(o){let r=[];return r.push(l.call(this,o)),s&&(r=r.concat(s.call(this,o))),r}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Mt.lex(e,t??this.defaults)}parser(e,t){return Lt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let i={...n},s={...this.defaults,...i},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let o=s.hooks?await s.hooks.preprocess(t):t,r=await(s.hooks?await s.hooks.provideLexer():e?Mt.lex:Mt.lexInline)(o,s),u=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(u,s.walkTokens));let d=await(s.hooks?await s.hooks.provideParser():e?Lt.parse:Lt.parseInline)(u,s);return s.hooks?await s.hooks.postprocess(d):d})().catch(l);try{s.hooks&&(t=s.hooks.preprocess(t));let o=(s.hooks?s.hooks.provideLexer():e?Mt.lex:Mt.lexInline)(t,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let r=(s.hooks?s.hooks.provideParser():e?Lt.parse:Lt.parseInline)(o,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(o){return l(o)}}}onError(e,t){return n=>{if(n.message+=`
117
+ Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+Ut(n.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(n);throw n}}},Yn=new fk;function Re(e,t){return Yn.parse(e,t)}Re.options=Re.setOptions=function(e){return Yn.setOptions(e),Re.defaults=Yn.defaults,Kc(Re.defaults),Re};Re.getDefaults=uo;Re.defaults=Wn;Re.use=function(...e){return Yn.use(...e),Re.defaults=Yn.defaults,Kc(Re.defaults),Re};Re.walkTokens=function(e,t){return Yn.walkTokens(e,t)};Re.parseInline=Yn.parseInline;Re.Parser=Lt;Re.parser=Lt.parse;Re.Renderer=Ti;Re.TextRenderer=bo;Re.Lexer=Mt;Re.lexer=Mt.lex;Re.Tokenizer=Ai;Re.Hooks=Ss;Re.parse=Re;Re.options;Re.setOptions;Re.use;Re.walkTokens;Re.parseInline;Lt.parse;Mt.lex;const pk={class:"td-drawer"},hk={class:"td-header"},gk={class:"td-header-left"},vk={class:"td-type"},mk={key:0,class:"td-locked-badge"},yk={class:"td-header-right"},bk={key:0,class:"td-body td-json-body"},kk={class:"td-json-toolbar"},wk={class:"td-json-pre"},xk={key:1,class:"td-body"},_k={class:"td-section"},Ck={key:0,class:"td-editor"},$k=["onKeydown"],Sk={class:"td-editor-footer"},Ak={class:"td-edit-actions"},Tk=["disabled"],Ek=["innerHTML"],Ik={key:0,class:"td-section"},Rk={class:"td-label"},Fk={class:"td-elements"},Pk={key:0,class:"td-el-role"},Ok={class:"td-el-tag"},Mk={key:1,class:"td-el-classes"},Lk={key:2,class:"td-el-comp"},Dk={key:1,class:"td-section"},Nk={class:"td-selected-text"},Bk={key:2,class:"td-section"},Vk={class:"td-change-prop"},Hk={class:"td-change-val"},jk={class:"td-section"},Uk={class:"td-label"},zk={key:0,class:"td-file-label"},Yk={class:"td-file-path"},Kk={key:1,class:"td-file-comp"},Wk={key:0,class:"td-file-ref"},qk={class:"td-file-path"},Gk={key:1,class:"td-file-ref"},Xk={class:"td-file-path"},Zk={key:3,class:"td-section"},Jk={class:"td-screenshots"},Qk=["src","onClick"],ew={key:4,class:"td-section"},tw={class:"td-feedback"},nw=["innerHTML"],sw={key:5,class:"td-section"},iw={class:"td-meta-val"},lw={key:6,class:"td-section"},ow={class:"td-context-key"},rw={key:0,class:"td-pre"},aw={key:1,class:"td-context-val"},cw={key:7,class:"td-section"},uw={class:"td-ancestor-tag"},dw={class:"td-ancestor-display"},fw={key:0,class:"td-ancestor-prop"},pw={key:1,class:"td-ancestor-prop"},hw={key:2,class:"td-ancestor-comp"},gw={key:8,class:"td-section"},vw={class:"td-label"},mw={key:0,class:"td-history-current"},yw={key:0,class:"td-nav-path"},bw={class:"td-nav-route"},kw={key:0,class:"td-nav-sep"},ww={class:"td-log"},xw={class:"td-log-idx"},_w={class:"td-log-detail"},Cw={class:"td-section td-timestamps"},$w={class:"td-meta-item"},Sw={class:"td-meta-val"},Aw={class:"td-meta-item"},Tw={class:"td-meta-val"},Ew={class:"td-meta-item"},Iw={class:"td-meta-val"},Rw={key:2,class:"td-footer"},Fw=["src"],Pw=nt({__name:"TaskDetailModal",props:{task:{}},emits:["close","accept","deny","update"],setup(e,{emit:t}){const n=e,i=t,s=z(null),l=z(!1),o=z(""),r=z(null),u=z(!1),d=z(!1),a=oe(()=>JSON.stringify(n.task,null,2));function f(){navigator.clipboard.writeText(a.value),d.value=!0,setTimeout(()=>d.value=!1,2e3)}const g={pending:"Pending",in_progress:"In Progress",applied:"Applied",review:"In Review",accepted:"Accepted",denied:"Denied"},p=oe(()=>n.task.status==="pending"||n.task.status==="denied"),k=oe(()=>new Date(n.task.createdAt).toLocaleString()),b=oe(()=>new Date(n.task.updatedAt).toLocaleString()),$=oe(()=>Re.parse(n.task.description,{breaks:!0,gfm:!0})),R=oe(()=>n.task.feedback?Re.parse(n.task.feedback,{breaks:!0,gfm:!0}):""),x=oe(()=>{const Y=n.task.context;if(!Y)return[];const I=[];if(Y.elements&&Array.isArray(Y.elements)){for(const V of Y.elements)I.push({tag:V.tag,classes:V.classes,component:V.component,file:V.file,line:V.line});return I}if(Y.from_element_tag&&I.push({tag:Y.from_element_tag,classes:Y.from_element_classes,role:"from"}),Y.to_element){const V=Y.to_element;I.push({tag:V.tag,classes:V.classes,component:V.component,file:V.file,line:V.line,role:"to"})}return I.length===0&&Y.element_tag&&I.push({tag:Y.element_tag,classes:Y.element_classes}),I}),_=oe(()=>{var V;const Y=[];n.task.file&&Y.push({file:n.task.file,line:n.task.line,component:n.task.component});const I=n.task.context;if((V=I==null?void 0:I.to_element)!=null&&V.file&&I.to_element.file!==n.task.file&&Y.push({file:I.to_element.file,line:I.to_element.line,component:I.to_element.component,label:"to"}),I!=null&&I.elements&&Array.isArray(I.elements))for(const he of I.elements)he.file&&!Y.some(K=>K.file===he.file&&K.line===he.line)&&Y.push({file:he.file,line:he.line,component:he.component});return Y}),C=new Set(["element_tag","element_classes","elements","from_element_tag","from_element_classes","to_element","changes","selected_text"]),F=oe(()=>n.task.context?Object.entries(n.task.context).filter(([Y])=>!C.has(Y)).map(([Y,I])=>({key:Y,value:typeof I=="object"?JSON.stringify(I,null,2):String(I),isObject:typeof I=="object"})):[]),N=oe(()=>{const Y=n.task.context;return!(Y!=null&&Y.changes)||!Array.isArray(Y.changes)?[]:Y.changes}),U=oe(()=>{var Y;return(Y=n.task.context)==null?void 0:Y.selected_text}),ne=oe(()=>{const Y=n.task.element_context;return Y!=null&&Y.ancestors?Y.ancestors:[]}),P=oe(()=>{const Y=n.task.interaction_history;return Y!=null&&Y.recent_actions?Y.recent_actions.map(I=>{var he,K,G,ae;let V="";if(I.event==="route_change"){const xe=(he=I.data)==null?void 0:he.previousRoute;V=xe?`${xe} → ${I.route||Y.current_route}`:`navigated to ${I.route||Y.current_route}`}else if(I.event==="action"){const xe=[];(K=I.data)!=null&&K.tag&&xe.push(`<${I.data.tag}>`),(G=I.data)!=null&&G.text&&xe.push(`"${String(I.data.text).slice(0,40)}"`),(ae=I.data)!=null&&ae.href&&xe.push(`→ ${I.data.href}`),V=xe.join(" ")||"user action"}else V=JSON.stringify(I.data||{});return{event:I.event,route:I.route,detail:V,data:I.data||{}}}):[]}),J=oe(()=>{const Y=n.task.interaction_history;return(Y==null?void 0:Y.current_route)||""}),ie=oe(()=>{const Y=n.task.interaction_history;return(Y==null?void 0:Y.navigation_path)||[]}),pe=oe(()=>{const Y=[];return n.task.screenshot&&Y.push("/__annotask/screenshots/"+n.task.screenshot),Y});function be(){p.value&&(o.value=n.task.description,l.value=!0,Gl(()=>{var Y;return(Y=r.value)==null?void 0:Y.focus()}))}function ke(){const Y=o.value.trim();if(!Y||Y===n.task.description){l.value=!1;return}i("update",n.task.id,{description:Y}),l.value=!1}function Le(){l.value=!1}it(()=>n.task.id,()=>{l.value=!1});function Te(Y){if(Y.key==="Escape"){if(l.value){Le();return}if(s.value){s.value=null;return}i("close")}}return(Y,I)=>(v(),m("div",{class:"td-overlay",onKeydown:Te,tabindex:"-1"},[c("div",{class:"td-backdrop",onClick:I[0]||(I[0]=V=>i("close"))}),c("aside",pk,[c("header",hk,[c("div",gk,[c("span",{class:te(["td-status",e.task.status])},T(g[e.task.status]||e.task.status),3),c("span",vk,T(e.task.type),1),e.task.status==="in_progress"?(v(),m("span",mk,[...I[10]||(I[10]=[c("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"}),c("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})],-1),et(" Locked ",-1)])])):M("",!0)]),c("div",yk,[c("button",{class:te(["td-json-btn",{active:u.value}]),onClick:I[1]||(I[1]=V=>u.value=!u.value),title:"View JSON"},[...I[11]||(I[11]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("polyline",{points:"16 18 22 12 16 6"}),c("polyline",{points:"8 6 2 12 8 18"})],-1)])],2),c("button",{class:"td-close-btn",onClick:I[2]||(I[2]=V=>i("close")),title:"Close (Esc)"},[...I[12]||(I[12]=[c("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),u.value?(v(),m("div",bk,[c("div",kk,[c("button",{class:"td-json-copy",onClick:f},T(d.value?"Copied!":"Copy"),1)]),c("pre",wk,[c("code",null,T(a.value),1)])])):(v(),m("div",xk,[c("section",_k,[l.value?(v(),m("div",Ck,[Pe(c("textarea",{ref_key:"textareaRef",ref:r,"onUpdate:modelValue":I[3]||(I[3]=V=>o.value=V),class:"td-edit-textarea",rows:"8",placeholder:"Describe the task (supports markdown)...",onKeydown:[wt(Be(ke,["ctrl"]),["enter"]),wt(Le,["escape"])]},null,40,$k),[[Ke,o.value]]),c("div",Sk,[I[13]||(I[13]=c("span",{class:"td-edit-hint"},"Markdown supported. Ctrl+Enter to save.",-1)),c("div",Ak,[c("button",{class:"td-save-btn",disabled:!o.value.trim(),onClick:ke},"Save",8,Tk),c("button",{class:"td-cancel-btn",onClick:Le},"Cancel")])])])):(v(),m("div",{key:1,class:te(["td-markdown",{"td-clickable":p.value}]),innerHTML:$.value,onClick:I[4]||(I[4]=V=>p.value?be():void 0)},null,10,Ek))]),x.value.length?(v(),m("section",Ik,[c("h4",Rk,"Element"+T(x.value.length>1?"s":""),1),c("div",Fk,[(v(!0),m(se,null,me(x.value,(V,he)=>(v(),m("div",{key:he,class:"td-element-chip"},[V.role?(v(),m("span",Pk,T(V.role),1)):M("",!0),c("code",Ok,"<"+T(V.tag)+">",1),V.classes?(v(),m("span",Mk,"."+T(V.classes.split(" ").slice(0,3).join(".")),1)):M("",!0),V.component?(v(),m("span",Lk,T(V.component),1)):M("",!0)]))),128))])])):M("",!0),U.value?(v(),m("section",Dk,[I[14]||(I[14]=c("h4",{class:"td-label"},"Selected Text",-1)),c("code",Nk,'"'+T(U.value)+'"',1)])):M("",!0),N.value.length?(v(),m("section",Bk,[I[16]||(I[16]=c("h4",{class:"td-label"},"Changes",-1)),(v(!0),m(se,null,me(N.value,(V,he)=>(v(),m("div",{key:he,class:"td-change-row"},[c("code",Vk,T(V.type==="class"?"classes":V.property),1),I[15]||(I[15]=c("span",{class:"td-change-arrow"},"→",-1)),c("code",Hk,T(V.after),1)]))),128))])):M("",!0),c("section",jk,[c("h4",Uk,T(_.value.length>1?"Files":"Source"),1),(v(!0),m(se,null,me(_.value,(V,he)=>(v(),m("div",{key:he,class:"td-file-ref"},[V.label?(v(),m("span",zk,T(V.label),1)):M("",!0),c("code",Yk,T(V.file)+T(V.line?":"+V.line:""),1),V.component?(v(),m("span",Kk,T(V.component),1)):M("",!0)]))),128)),e.task.route?(v(),m("div",Wk,[I[17]||(I[17]=c("span",{class:"td-file-label"},"route",-1)),c("code",qk,T(e.task.route),1)])):M("",!0),e.task.mfe?(v(),m("div",Gk,[I[18]||(I[18]=c("span",{class:"td-file-label"},"mfe",-1)),c("code",Xk,T(e.task.mfe),1)])):M("",!0)]),pe.value.length?(v(),m("section",Zk,[I[19]||(I[19]=c("h4",{class:"td-label"},"Screenshots",-1)),c("div",Jk,[(v(!0),m(se,null,me(pe.value,(V,he)=>(v(),m("img",{key:he,src:V,class:"td-screenshot-thumb",onClick:K=>s.value=V},null,8,Qk))),128))])])):M("",!0),e.task.feedback?(v(),m("section",ew,[I[20]||(I[20]=c("h4",{class:"td-label"},"Feedback",-1)),c("div",tw,[c("div",{class:"td-markdown",innerHTML:R.value},null,8,nw)])])):M("",!0),e.task.viewport&&(e.task.viewport.width||e.task.viewport.height)?(v(),m("section",sw,[I[21]||(I[21]=c("h4",{class:"td-label"},"Viewport",-1)),c("code",iw,T(e.task.viewport.width||"auto")+" × "+T(e.task.viewport.height||"auto"),1)])):M("",!0),F.value.length?(v(),m("section",lw,[I[22]||(I[22]=c("h4",{class:"td-label"},"Context",-1)),(v(!0),m(se,null,me(F.value,V=>(v(),m("div",{key:V.key,class:"td-context-entry"},[c("span",ow,T(V.key),1),V.isObject?(v(),m("pre",rw,T(V.value),1)):(v(),m("span",aw,T(V.value),1))]))),128))])):M("",!0),ne.value.length?(v(),m("section",cw,[I[23]||(I[23]=c("h4",{class:"td-label"},"Layout Ancestors",-1)),(v(!0),m(se,null,me(ne.value,(V,he)=>(v(),m("div",{key:he,class:"td-ancestor"},[c("code",uw,"<"+T(V.tag)+">",1),c("span",dw,T(V.display),1),V.flexDirection?(v(),m("span",fw,"flex: "+T(V.flexDirection),1)):M("",!0),V.gap?(v(),m("span",pw,"gap: "+T(V.gap),1)):M("",!0),V.component?(v(),m("span",hw,T(V.component),1)):M("",!0)]))),128))])):M("",!0),P.value.length?(v(),m("section",gw,[c("h4",vw,[I[24]||(I[24]=et(" Interaction History ",-1)),J.value?(v(),m("span",mw,"on "+T(J.value),1)):M("",!0)]),ie.value.length>1?(v(),m("div",yw,[(v(!0),m(se,null,me(ie.value,(V,he)=>(v(),m("span",{key:he,class:"td-nav-step"},[c("span",bw,T(V),1),he<ie.value.length-1?(v(),m("span",kw,"→")):M("",!0)]))),128))])):M("",!0),c("div",ww,[(v(!0),m(se,null,me(P.value,(V,he)=>(v(),m("div",{key:he,class:"td-log-entry"},[c("span",xw,T(he+1),1),c("span",{class:te(["td-log-event",V.event])},T(V.event==="route_change"?"navigate":V.event),3),c("span",_w,T(V.detail),1)]))),128))])])):M("",!0),c("section",Cw,[c("div",$w,[I[25]||(I[25]=c("span",{class:"td-meta-key"},"Created",-1)),c("span",Sw,T(k.value),1)]),c("div",Aw,[I[26]||(I[26]=c("span",{class:"td-meta-key"},"Updated",-1)),c("span",Tw,T(b.value),1)]),c("div",Ew,[I[27]||(I[27]=c("span",{class:"td-meta-key"},"ID",-1)),c("code",Iw,T(e.task.id),1)])])])),e.task.status==="review"?(v(),m("div",Rw,[c("button",{class:"td-accept",onClick:I[5]||(I[5]=V=>i("accept",e.task.id))},"Accept"),c("button",{class:"td-deny-btn",onClick:I[6]||(I[6]=V=>i("deny",e.task.id))},"Deny")])):M("",!0)]),s.value?(v(),m("div",{key:0,class:"td-lightbox",onClick:I[9]||(I[9]=V=>s.value=null)},[c("img",{src:s.value,class:"td-lightbox-img",onClick:I[7]||(I[7]=Be(()=>{},["stop"]))},null,8,Fw),c("button",{class:"td-lightbox-close",onClick:I[8]||(I[8]=V=>s.value=null)},"×")])):M("",!0)],32))}}),Ow=["title"],Mw={class:"vp-label"},Lw={key:0,class:"vp-dropdown"},Dw={class:"vp-group"},Nw=["onClick"],Bw={class:"vp-item-label"},Vw={class:"vp-item-dim"},Hw={class:"vp-group"},jw=["onClick"],Uw={class:"vp-item-label"},zw={class:"vp-item-dim"},Yw={class:"vp-group"},Kw=["onClick"],Ww={class:"vp-item-label"},qw={class:"vp-item-dim"},Gw={class:"vp-custom"},Xw={class:"vp-custom-row"},Zw=nt({__name:"ViewportSelector",setup(e){const t=so(),n=z(!1),i=z(""),s=z(""),l=z(null),o=oe(()=>{const f={phone:[],tablet:[],desktop:[]};for(const g of El)f[g.category].push(g);return f}),r=oe(()=>{const f=t.effectiveViewport.value;return!f.width&&!f.height?"Responsive":`${f.width}×${f.height}`});function u(f){t.selectPreset(f),n.value=!1}function d(){const f=parseInt(i.value)||null,g=parseInt(s.value)||null;(f||g)&&(t.setCustomDimensions(f,g),n.value=!1)}function a(f){n.value&&l.value&&!l.value.contains(f.target)&&(n.value=!1)}return Kn(()=>document.addEventListener("click",a)),An(()=>document.removeEventListener("click",a)),(f,g)=>(v(),m("div",{ref_key:"root",ref:l,class:"viewport-selector"},[c("button",{class:"vp-trigger",onClick:g[0]||(g[0]=p=>n.value=!n.value),title:"Preview at different screen sizes — "+(O(t).effectiveViewport.value.label||"Responsive")},[g[5]||(g[5]=c("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),c("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),c("line",{x1:"12",y1:"17",x2:"12",y2:"21"})],-1)),c("span",Mw,T(r.value),1),g[6]||(g[6]=c("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3"},[c("polyline",{points:"6 9 12 15 18 9"})],-1))],8,Ow),n.value?(v(),m("div",Lw,[c("button",{class:te(["vp-item",{active:O(t).isFullWidth.value}]),onClick:g[1]||(g[1]=p=>u(null))},[...g[7]||(g[7]=[c("span",{class:"vp-item-label"},"Responsive",-1),c("span",{class:"vp-item-dim"},"100%",-1)])],2),c("div",Dw,[g[8]||(g[8]=c("div",{class:"vp-group-title"},"Phone",-1)),(v(!0),m(se,null,me(o.value.phone,p=>(v(),m("button",{key:p.id,class:te(["vp-item",{active:O(t).activePresetId.value===p.id}]),onClick:k=>u(p)},[c("span",Bw,T(p.label),1),c("span",Vw,T(p.width)+"×"+T(p.height),1)],10,Nw))),128))]),c("div",Hw,[g[9]||(g[9]=c("div",{class:"vp-group-title"},"Tablet",-1)),(v(!0),m(se,null,me(o.value.tablet,p=>(v(),m("button",{key:p.id,class:te(["vp-item",{active:O(t).activePresetId.value===p.id}]),onClick:k=>u(p)},[c("span",Uw,T(p.label),1),c("span",zw,T(p.width)+"×"+T(p.height),1)],10,jw))),128))]),c("div",Yw,[g[10]||(g[10]=c("div",{class:"vp-group-title"},"Desktop",-1)),(v(!0),m(se,null,me(o.value.desktop,p=>(v(),m("button",{key:p.id,class:te(["vp-item",{active:O(t).activePresetId.value===p.id}]),onClick:k=>u(p)},[c("span",Ww,T(p.label),1),c("span",qw,T(p.width)+"×"+T(p.height),1)],10,Kw))),128))]),c("div",Gw,[g[12]||(g[12]=c("div",{class:"vp-group-title"},"Custom",-1)),c("div",Xw,[Pe(c("input",{"onUpdate:modelValue":g[2]||(g[2]=p=>i.value=p),type:"number",placeholder:"W",class:"vp-input",onKeydown:wt(d,["enter"])},null,544),[[Ke,i.value]]),g[11]||(g[11]=c("span",{class:"vp-x"},"×",-1)),Pe(c("input",{"onUpdate:modelValue":g[3]||(g[3]=p=>s.value=p),type:"number",placeholder:"H",class:"vp-input",onKeydown:wt(d,["enter"])},null,544),[[Ke,s.value]]),c("button",{class:"vp-apply",onClick:d},"Set")])]),O(t).isFullWidth.value?M("",!0):(v(),m("button",{key:0,class:"vp-item vp-rotate",onClick:g[4]||(g[4]=p=>O(t).toggleRotate())},[...g[13]||(g[13]=[c("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("polyline",{points:"1 4 1 10 7 10"}),c("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})],-1),c("span",{class:"vp-item-label"},"Rotate",-1)])]))])):M("",!0)],512))}}),Jw=yt(Zw,[["__scopeId","data-v-072c5940"]]),Qw={class:"annotask-shell"},ex={class:"toolbar"},tx={class:"toolbar-left"},nx={class:"view-toggle"},sx={key:0,class:"toolbar-center"},ix={class:"route-indicator",title:"Current page route in your app"},lx={key:1,class:"toolbar-center"},ox={key:2,class:"toolbar-right"},rx={class:"panel-toggle"},ax={key:0,class:"toggle-badge"},cx={key:0,class:"toggle-badge"},ux={class:"visibility-toggles"},dx={key:3,class:"toolbar-right"},fx={key:0,class:"warning-banner"},px={key:1,class:"setup-banner"},hx={class:"main"},gx=["src"],vx={key:0,class:"hover-label"},mx={class:"hover-tag"},yx={key:0,class:"hover-comp"},bx={key:0,class:"select-label"},kx={key:0,class:"theme-panel"},wx={key:1,class:"panel"},xx={class:"panel-source"},_x={key:2,class:"panel"},Cx={class:"pending-task-panel"},$x={class:"pending-task-context"},Sx={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Ax={key:1,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},Tx={class:"pending-task-file"},Ex=["onKeydown"],Ix={class:"task-toggles"},Rx={class:"history-toggle",title:"Attach your navigation path and click actions to this task"},Fx={class:"history-toggle",title:"Attach parent layout chain and DOM subtree snapshot to this task"},Px={key:0,class:"screenshot-preview"},Ox=["src"],Mx={class:"pending-task-actions"},Lx=["disabled"],Dx={key:3,class:"panel"},Nx={class:"panel-source"},Bx={class:"component-badge"},Vx={key:0,class:"new-task-form"},Hx=["onKeydown"],jx={class:"task-toggles"},Ux={class:"history-toggle",title:"Attach your navigation path and click actions to this task"},zx={class:"history-toggle",title:"Attach parent layout chain and DOM subtree snapshot to this task"},Yx={key:0,class:"screenshot-preview"},Kx=["src"],Wx={class:"new-task-actions"},qx=["disabled"],Gx={class:"tab-content"},Xx={key:0,class:"empty-hint",style:{padding:"20px 0"}},Zx=["onClick"],Jx={class:"task-card-header"},Qx=["innerHTML"],e_=["onClick"],t_={class:"task-card-meta"},n_={class:"task-card-file"},s_={key:0,class:"task-route-badge"},i_=["src"],l_={key:1,class:"task-card-feedback"},o_=["onClick"],r_=["onClick"],a_={key:1,class:"deny-form"},c_=["onKeydown"],u_={class:"task-toggles"},d_={class:"history-toggle",title:"Attach your navigation path and click actions to this task"},f_={class:"history-toggle",title:"Attach parent layout chain and DOM subtree snapshot to this task"},p_={key:0,class:"screenshot-preview"},h_=["src"],g_={class:"deny-form-actions"},v_=["disabled","onClick"],m_={key:4,class:"panel"},y_={class:"panel-source"},b_=["disabled"],k_={class:"tab-content"},w_={key:0,class:"a11y-error"},x_={key:1,class:"a11y-pass"},__={key:2,class:"a11y-empty"},C_={key:3,class:"a11y-summary"},$_={class:"a11y-card-header"},S_={class:"a11y-rule"},A_={class:"a11y-count"},T_={class:"a11y-help"},E_={key:0,class:"a11y-tasked"},I_=["onClick"],R_={key:5,class:"panel"},F_={class:"panel-source"},P_={class:"source-path"},O_={class:"component-badge"},M_={key:0,class:"panel-group-bar"},L_={class:"group-summary"},D_={key:0,class:"group-toggle",title:"Apply style changes to all instances of this element in the template"},N_={class:"toggle-label"},B_={class:"panel-tabs"},V_={key:0,class:"tab-badge"},H_={class:"tab-content"},j_={key:4,class:"classes-tab"},U_=["onKeydown"],z_={key:1,class:"changes-footer"},Y_={class:"changes-list"},K_={class:"change-prop"},W_={class:"change-val"},q_={class:"change-val"},G_={class:"changes-actions"},X_={class:"changes-count"},Z_={key:6,class:"panel empty"},J_=nt({__name:"App",setup(e){const t=Vh(),{applyStyle:n,recordAnnotation:i,recordClassChange:s,removeAnnotationsByFile:l,changes:o}=t;async function r(){const A=t.undo();A&&(A.type==="style"&&A.eid?await _.undoStyle(A.eid,A.property,A.value||""):A.type==="class"&&A.eid?await _.undoClass(A.eid,A.classes||""):A.type==="insert_remove"&&A.eid&&await _.removePlaceholder(A.eid),await Gn())}async function u(){const A=t.clearChanges();for(const h of A)await _.removePlaceholder(h)}async function d(){var Je,tn,nn,Ct,Pt,hs,Js,To,Eo;if(o.value.length===0)return;const A=o.value.filter(Qe=>Qe.type==="style_update"),h=o.value.filter(Qe=>Qe.type==="class_update"),D=[];for(const Qe of A)D.push(`${Qe.property}: ${Qe.after}`);for(const Qe of h)D.push(`classes: ${Qe.after.classes}`);const le=D.length<=3?`Update ${D.join(", ")}`:`Update ${D.slice(0,2).join(", ")} and ${D.length-2} more`,fe=((Je=y.value)==null?void 0:Je.file)||((tn=A[0])==null?void 0:tn.file)||((nn=h[0])==null?void 0:nn.file)||"",$e=(Ct=y.value)!=null&&Ct.line?parseInt(y.value.line):((Pt=A[0])==null?void 0:Pt.line)||((hs=h[0])==null?void 0:hs.line)||0,S=((Js=y.value)==null?void 0:Js.component)||((To=A[0])==null?void 0:To.component)||((Eo=h[0])==null?void 0:Eo.component)||"",ve=[];for(const Qe of A)ve.push({property:Qe.property,before:Qe.before,after:Qe.after,file:Qe.file,line:Qe.line});for(const Qe of h)ve.push({type:"class",before:Qe.before.classes,after:Qe.after.classes,file:Qe.file,line:Qe.line});await en({type:"style_update",description:le,file:fe,line:$e,component:S,context:{changes:ve}}),await u()}const a=Uh(),f=sc(),g=so(),p=tc(),k=z(null),{mode:b}=Hh(),{isInitialized:$}=no(),R=z(localStorage.getItem("annotask:shellView")==="theme"?"theme":"editor");it(R,A=>localStorage.setItem("annotask:shellView",A));const x=jh(k),_=Gh(k),{currentRoute:C}=_,F=Xh(a,(A,h)=>_.resolveElementAt(A,h),()=>b.value,du),{drawingArrow:N,drawingRect:U,onCanvasPointerDown:ne,onCanvasPointerMove:P,onCanvasPointerUp:J}=F;it(b,A=>{_.setMode(A),A==="interact"&&(y.value=null,E.value=[],j.value=[],It.value=null,Vt.value=null),A==="select"&&(be.value="notes")});const ie=z(!1),pe=z(!1),be=z("notes"),ke=z({pins:!0,arrows:!0,sections:!0,highlights:!0,inspector:!0}),Le=z(["inspector","tasks","a11y"].includes(localStorage.getItem("annotask:activePanel")||"")?localStorage.getItem("annotask:activePanel"):"inspector");it(Le,A=>localStorage.setItem("annotask:activePanel",A));const Te=z(!1),Y=z(""),I=z(localStorage.getItem("annotask:includeHistory")==="true");it(I,A=>localStorage.setItem("annotask:includeHistory",String(A)));const V=z(localStorage.getItem("annotask:includeElementContext")==="true"),he=Zh(_);it(V,A=>localStorage.setItem("annotask:includeElementContext",String(A)));const K=z(null),G=z(""),ae=z(null),xe=oe(()=>ae.value?f.tasks.value.find(A=>A.id===ae.value)??null:null),ze=z(localStorage.getItem("annotask:showShortcuts")==="true");it(ze,A=>localStorage.setItem("annotask:showShortcuts",String(A)));const Se=z(null),Z=z(""),B=oe(()=>f.tasks.value);function De(A){const h=f.tasks.value.find(D=>D.id===A);if(h!=null&&h.visual){const D=h.visual;if(D.annotationId)D.kind==="pin"?a.removePin(D.annotationId):D.kind==="arrow"?a.removeArrow(D.annotationId):D.kind==="section"&&a.removeDrawnSection(D.annotationId);else if(D.kind==="pin"){const le=a.getPinsForElement(h.file,h.line);for(const fe of le)a.removePin(fe.id)}else if(D.kind==="arrow"){const le=a.arrows.value.find(fe=>Math.abs(fe.fromX-D.fromX)<5&&Math.abs(fe.fromY-D.fromY)<5);le&&a.removeArrow(le.id)}else if(D.kind==="section"){const le=a.drawnSections.value.find(fe=>Math.abs(fe.x-D.x)<5&&Math.abs(fe.y-D.y)<5);le&&a.removeDrawnSection(le.id)}}h.file&&h.line!=null&&l(h.file,h.line),f.updateTaskStatus(A,"accepted")}async function L(A){var fe;if(!G.value.trim())return;const h={},D=he.consumeScreenshot();D&&(h.screenshot=D);const le=g.effectiveViewport.value;if((le.width||le.height)&&(h.viewport={width:le.width,height:le.height}),I.value){const $e=p.snapshotForChange(C.value);$e.recent_actions.length>0&&(h.interaction_history=$e)}if(V.value&&((fe=y.value)!=null&&fe.eid)){const $e=await _.getElementContext(y.value.eid);$e&&(h.element_context=$e)}f.updateTaskStatus(A,"denied",G.value.trim(),Object.keys(h).length>0?h:void 0),K.value=null,G.value=""}function _e(){const A=Y.value.trim();A&&(en({type:"annotation",description:A,file:"",line:0}),Y.value="",Te.value=!1)}const w=z(null),y=z(null),E=z([]),j=z([]),H=z(!0),W=Qh(_,f,y,C),{a11yViolations:Q,a11yLoading:ee,a11yError:X,a11yScanned:q,a11yTaskRules:de,scanA11y:re,createA11yTask:ue}=W,ge=oe(()=>E.value.length>1?E.value:H.value&&j.value.length>1?j.value:y.value?[y.value.eid]:[]),Ce=z([]),Ee=z([]);let Fe=0,Ye=!1;async function We(){const A=++Fe;if(E.value.length>0){const h=await _.getElementRects(E.value);if(A!==Fe)return;Ce.value=h.filter(D=>D!==null)}else Ce.value=[];if(H.value&&E.value.length<=1&&j.value.length>0){const h=j.value.filter(le=>!E.value.includes(le)),D=await _.getElementRects(h);if(A!==Fe)return;Ee.value=D.filter(le=>le!==null)}else Ee.value=[]}function Tt(){if(Ye)return;Ye=!0;function A(){if(!E.value.length){Ye=!1;return}We(),requestAnimationFrame(A)}requestAnimationFrame(A)}it([E,j,H],()=>{E.value.length?Tt():We()},{deep:!0});const _t=oe(()=>{const A=E.value.length,h=j.value.length;return A>1?`${A} elements selected`:h>1?`1 selected · ${h} instances in template`:null}),Et=z(null);async function qn(){if(!y.value){Et.value=null;return}const A=await _.classifyElement(y.value.eid);Et.value=(A==null?void 0:A.role)||null}const Ze=z({}),dt=z(""),It=z(null),Vt=z(null),nu=["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 Gn(){var A;(A=y.value)!=null&&A.eid&&(Ze.value=await _.getComputedStyles(y.value.eid,nu))}async function su(){_.initBridgeForIframe(),_.onBridgeReady(async()=>{_.setMode(b.value),ie.value=!await _.checkSourceMapping();const A=await _.getCurrentRoute();a.setRoute(A),ru(),x.showOverlay.value&&x.scan()})}function iu(){_.onBridgeEvent("hover:enter",A=>{const h=_.toShellRect(A.rect);It.value=h,Vt.value=A.file?{tag:A.tag,file:A.file,component:A.component}:null}),_.onBridgeEvent("hover:leave",()=>{It.value=null,Vt.value=null}),_.onBridgeEvent("click:element",async A=>{const{file:h,line:D,component:le,mfe:fe,tag:$e,classes:S,eid:ve,shiftKey:Je,clientX:tn,clientY:nn}=A,Ct=_.toShellRect(A.rect);if(b.value==="pin"){const Pt=Ct?Ct.x+Ct.width/2:tn,hs=Ct?Ct.y:nn,Js=a.addPin({file:h,line:D,component:le,elementTag:$e,elementClasses:S},Pt,hs);y.value={file:h,line:D,component:le,mfe:fe||"",tagName:$e,classes:S,eid:ve},E.value=[ve],await Gn(),await qn(),Se.value={kind:"pin",label:`Pin on ${Wi({component:le,tag:$e,classes:S})}`,file:h,line:D,component:le,annotationId:Js.id,meta:{elementTag:$e,elementClasses:S,pinX:Pt,pinY:hs}},Z.value="";return}if(Je&&y.value){const Pt=E.value.indexOf(ve);Pt>=0?(E.value.splice(Pt,1),E.value.length===0&&(y.value=null,j.value=[])):E.value.push(ve),await We()}else{y.value={file:h,line:D,component:le,mfe:fe||"",tagName:$e,classes:S,eid:ve},E.value=[ve];const Pt=await _.findTemplateGroup(h,D,$e);j.value=Pt.eids,H.value=Pt.eids.length>1,dt.value=S,await Gn(),await qn(),await We()}It.value=null}),_.onBridgeEvent("contextmenu:element",async A=>{const{file:h,line:D,component:le,mfe:fe,tag:$e,classes:S,eid:ve}=A,Je=_.toShellRect(A.rect);y.value={file:h,line:D,component:le,tagName:$e,classes:S,eid:ve},E.value=[ve],await Gn(),await qn(),Yi.value={visible:!0,x:Je?Je.x+Je.width/2:A.clientX,y:Je?Je.y+Je.height/2:A.clientY}}),_.onBridgeEvent("selection:text",A=>{const h=k.value,D=(h==null?void 0:h.getBoundingClientRect().left)||0,le=(h==null?void 0:h.getBoundingClientRect().top)||0;w.value={text:A.text,x:D+100,y:le+100,file:A.file,line:A.line,component:A.component,tag:A.tag}}),_.onBridgeEvent("keydown",A=>{(A.ctrlKey||A.metaKey)&&A.key==="z"&&!A.shiftKey&&r()}),_.onBridgeEvent("route:changed",A=>{a.setRoute(A.path),p.push("route_change",A.path,{previousRoute:C.value})}),_.onBridgeEvent("user:action",A=>{p.push("action",C.value,A)})}async function Zs(A,h){if(!y.value)return;const D={file:y.value.file,line:y.value.line,component:y.value.component,mfe:y.value.mfe||void 0},le=ge.value;for(const fe of le){const $e=await _.applyStyleVia(fe,A,h);n(fe,A,h,$e,D)}await Gn()}async function ko(){if(!y.value)return;const A=y.value.classes,h=dt.value;if(A===h)return;const D={file:y.value.file,line:y.value.line,component:y.value.component,mfe:y.value.mfe||void 0},le=ge.value;for(const fe of le)await _.setClass(fe,h),s(fe,A,h,D);y.value.classes=h,await Gn()}const Yi=z({visible:!1,x:0,y:0});async function lu(A){if(!y.value)return;const h=y.value,D=[{file:h.file,line:h.line,component:h.component,tag:h.tagName,classes:h.classes}];for(const S of D)if(i({file:S.file,line:S.line,component:S.component,intent:A,elementTag:S.tag,elementClasses:S.classes}),a.getPinsForElement(S.file,parseInt(S.line)).length===0){const Je=Ce.value[0],tn=Je?Je.x+Je.width/2:100,nn=Je?Je.y+10:100,Ct=a.addPin({file:S.file,line:S.line,component:S.component,elementTag:S.tag,elementClasses:S.classes},tn,nn);a.updatePinNote(Ct.id,A)}const le=D[0],fe=a.getPinsForElement(le.file,parseInt(le.line)),$e=fe.length>0?{x:fe[0].clickX,y:fe[0].clickY}:null;en({type:"annotation",description:A,file:le.file,line:parseInt(le.line)||0,component:le.component,visual:$e?{kind:"pin",annotationId:fe[0].id,x:$e.x,y:$e.y}:void 0,context:{element_tag:le.tag,element_classes:le.classes,...D.length>1?{elements:D.map(S=>({tag:S.tag,classes:S.classes,component:S.component,file:S.file,line:parseInt(S.line)||0}))}:{}}})}function ou(A,h){if(!y.value)return;const D=y.value,le=[{file:D.file,line:D.line,component:D.component,tag:D.tagName,classes:D.classes}];for(const $e of le)i({file:$e.file,line:$e.line,component:$e.component,intent:h,action:A,elementTag:$e.tag,elementClasses:$e.classes});const fe=le[0];en({type:"annotation",description:h,file:fe.file,line:parseInt(fe.line)||0,component:fe.component,action:A,context:{element_tag:fe.tag,element_classes:fe.classes}})}async function ru(){await f.fetchTasks();const A=C.value;for(const h of f.tasks.value){if(h.route&&h.route!==A||h.status==="accepted")continue;const D=h.visual;if(D){if(D.kind==="pin"&&D.x&&D.y){if(a.getPinsForElement(h.file,h.line).length===0){const fe=a.addPin({file:h.file,line:String(h.line),component:h.component||"",elementTag:D.element_tag||"",elementClasses:""},D.x,D.y);a.updatePinNote(fe.id,h.description)}}else if(D.kind==="arrow")a.addArrow(D.fromX,D.fromY,D.toX,D.toY,D.label||h.description);else if(D.kind==="section"){const le=a.addDrawnSection(D.x,D.y,D.width,D.height);(h.prompt||h.description)&&a.updateDrawnSection(le.id,{prompt:h.prompt||h.description,nearFile:h.file,nearLine:h.line})}}}}async function en(A){var tn,nn;const h=((tn=y.value)==null?void 0:tn.mfe)||"",D=g.effectiveViewport.value,le=D.width||D.height?{viewport:{width:D.width,height:D.height}}:{},fe=I.value?p.snapshotForChange(C.value):null,$e=fe&&fe.recent_actions.length>0?{interaction_history:fe}:{};let S={};if(V.value&&((nn=y.value)!=null&&nn.eid)){const Ct=await _.getElementContext(y.value.eid);Ct&&(S={element_context:Ct})}const ve=he.consumeScreenshot(),Je=ve?{screenshot:ve}:{};return f.createTask({...A,route:C.value,...h?{mfe:h}:{},...le,...$e,...S,...Je})}const{snipActive:wo,snipRect:Tn,pendingScreenshot:En,startSnip:In,onSnipDown:xo,onSnipMove:_o,onSnipUp:Co,cancelSnip:Ki,removeScreenshot:Rn}=he;function au(A){if(!w.value||!A.trim())return;const h=w.value,D=a.addHighlight(h.text,{file:h.file,line:h.line,component:h.component,elementTag:h.tag});a.updateHighlight(D.id,{prompt:A.trim()});const le=`Change "${h.text}" → ${A.trim()}`;i({file:h.file,line:String(h.line),component:h.component,intent:le,action:"text_edit",elementTag:h.tag}),en({type:"annotation",description:le,file:h.file,line:h.line,component:h.component,action:"text_edit",context:{element_tag:h.tag,selected_text:h.text}}),w.value=null}function cu(){w.value=null}const $o=new Set;function uu(A){const h=a.drawnSections.value.find(D=>D.id===A);!h||!h.prompt.trim()||$o.has(A)||($o.add(A),i({file:h.nearFile||"",line:String(h.nearLine||0),component:h.nearComponent||"",intent:h.prompt.trim(),action:"section_request"}),en({type:"section_request",description:h.prompt.trim(),file:h.nearFile||"",line:h.nearLine||0,component:h.nearComponent||"",placement:h.placement||"",visual:{kind:"section",annotationId:h.id,x:Math.round(h.x),y:Math.round(h.y),width:Math.round(h.width),height:Math.round(h.height)}}))}const So=new Set;function Wi(A){var le;if(!A)return"element";const h=A.tag||"element",D=(le=A.classes)==null?void 0:le.split(" ").find(fe=>fe&&!fe.startsWith("data-"));return A.component&&D?`<${h}.${D}> in ${A.component}`:A.component&&A.tag!==A.component.toLowerCase()?`<${h}> in ${A.component}`:D?`<${h}.${D}>`:`<${h}>`}function du(A,h,D){const le=a.arrows.value.find(S=>S.id===A);if(!le)return;const fe=Wi(h),$e=Wi(D);Se.value={kind:"arrow",label:`Arrow from ${fe} → ${$e}`,file:le.fromFile||(h==null?void 0:h.file)||"",line:le.fromLine||(h==null?void 0:h.line)||"",component:le.fromComponent||(h==null?void 0:h.component)||"",annotationId:A,meta:{fromTag:(h==null?void 0:h.tag)||"",fromClasses:(h==null?void 0:h.classes)||"",fromComponent:(h==null?void 0:h.component)||"",toFile:le.toFile||(D==null?void 0:D.file)||"",toLine:le.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 fu(A,h){var fe;const D=a.arrows.value.find($e=>$e.id===A);if(!D||!h.trim()||So.has(A))return;So.add(A),a.updateArrow(A,{label:h.trim()});const le=((fe=Se.value)==null?void 0:fe.meta)||{};i({file:D.fromFile||"",line:String(D.fromLine||0),component:D.fromComponent||"",intent:h.trim(),elementTag:le.fromTag||"",elementClasses:le.fromClasses||""}),en({type:"annotation",description:h.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:h.trim()},context:{from_element_tag:le.fromTag||"",from_element_classes:le.fromClasses||"",to_element:{tag:le.toTag||"",classes:le.toClasses||"",component:le.toComponent||"",file:D.toFile||"",line:D.toLine||0}}})}function Ao(){const A=Se.value;if(!(!A||!Z.value.trim())){if(A.kind==="pin"){const h=A.meta;a.updatePinNote(A.annotationId,Z.value.trim()),i({file:A.file,line:String(A.line),component:A.component,intent:Z.value.trim(),elementTag:h.elementTag,elementClasses:h.elementClasses}),en({type:"annotation",description:Z.value.trim(),file:A.file,line:parseInt(String(A.line))||0,component:A.component,visual:{kind:"pin",annotationId:A.annotationId,x:h.pinX,y:h.pinY},context:{element_tag:h.elementTag,element_classes:h.elementClasses}})}else A.kind==="arrow"&&fu(A.annotationId,Z.value.trim());Se.value=null,Z.value=""}}function qi(){const A=Se.value;A&&(A.kind==="pin"&&a.removePin(A.annotationId),A.kind==="arrow"&&a.removeArrow(A.annotationId)),Se.value=null,Z.value=""}function pu(A){en({type:"annotation",description:A,file:"",line:0})}Jh({snipActive:wo,showReportPanel:pe,showShortcuts:ze,pendingTaskCreation:Se,primarySelection:y,selectedEids:E,templateGroupEids:j,selectionRects:Ce,groupRects:Ee,activePanel:Le,doUndo:r,cancelSnip:Ki,cancelPendingTask:qi,layoutOverlayToggle:()=>x.toggle()}),Kn(()=>{var A;_.mountBridge(),iu(),(A=k.value)==null||A.addEventListener("load",su)}),An(()=>{_.unmountBridge()});const hu=oe(()=>{const A=g.effectiveViewport.value;return!A.width&&!A.height?{}:{width:A.width?`${A.width}px`:"100%",height:A.height?`${A.height}px`:"100%"}}),gu=oe(()=>new URLSearchParams(window.location.search).get("appUrl")||window.location.origin+"/");return(A,h)=>{var D,le,fe,$e;return v(),m("div",Qw,[c("header",ex,[c("div",tx,[h[72]||(h[72]=c("svg",{class:"logo",viewBox:"0 0 85.81 90.51",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[c("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)),c("div",nx,[c("button",{class:te(["toggle-btn",{active:R.value==="editor"}]),onClick:h[0]||(h[0]=S=>R.value="editor"),title:"Annotate and inspect your UI"},"Editor",2),c("button",{class:te(["toggle-btn",{active:R.value==="theme"}]),onClick:h[1]||(h[1]=S=>R.value="theme"),title:"Edit design tokens (colors, typography, spacing)"},"Theme",2)]),R.value==="editor"?(v(),m(se,{key:0},[lt(ng,{modelValue:O(b),"onUpdate:modelValue":h[2]||(h[2]=S=>Xe(b)?b.value=S:null)},null,8,["modelValue"]),c("button",{class:te(["tool-btn",{active:O(x).showOverlay.value}]),onClick:h[3]||(h[3]=S=>O(x).toggle()),title:"Show Layout (L)"},[...h[71]||(h[71]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),c("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),c("line",{x1:"9",y1:"3",x2:"9",y2:"21"})],-1)])],2)],64)):M("",!0)]),R.value==="editor"?(v(),m("div",sx,[lt(Jw),c("code",ix,T(O(C)),1)])):(v(),m("div",lx)),R.value==="editor"?(v(),m("div",ox,[c("div",rx,[c("button",{class:te(["toggle-btn",{active:Le.value==="inspector"}]),onClick:h[4]||(h[4]=S=>Le.value="inspector"),title:"Inspect element styles, layout, and classes"},[...h[73]||(h[73]=[c("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1),et(" Inspector ",-1)])],2),c("button",{class:te(["toggle-btn",{active:Le.value==="tasks"}]),onClick:h[5]||(h[5]=S=>Le.value="tasks"),title:"View and manage design tasks for your AI agent (T)"},[h[74]||(h[74]=c("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("path",{d:"M9 11l3 3L22 4"}),c("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})],-1)),h[75]||(h[75]=et(" Tasks ",-1)),B.value.length?(v(),m("span",ax,T(B.value.length),1)):M("",!0)],2),c("button",{class:te(["toggle-btn",{active:Le.value==="a11y"}]),onClick:h[6]||(h[6]=S=>Le.value="a11y"),title:"Run accessibility checks (axe-core WCAG)"},[h[76]||(h[76]=c("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[c("circle",{cx:"12",cy:"4",r:"2"}),c("path",{d:"M4 8h16M6 12l3 8M18 12l-3 8"})],-1)),h[77]||(h[77]=et(" A11y ",-1)),O(Q).length?(v(),m("span",cx,T(O(Q).length),1)):M("",!0)],2)]),c("div",ux,[c("button",{class:te(["vis-btn",{off:!ke.value.inspector}]),onClick:h[7]||(h[7]=S=>ke.value.inspector=!ke.value.inspector),title:"Toggle Inspector Highlights"},"I",2),c("button",{class:te(["vis-btn",{off:!ke.value.pins}]),onClick:h[8]||(h[8]=S=>ke.value.pins=!ke.value.pins),title:"Toggle Pins"},"P",2),c("button",{class:te(["vis-btn",{off:!ke.value.arrows}]),onClick:h[9]||(h[9]=S=>ke.value.arrows=!ke.value.arrows),title:"Toggle Arrows"},"A",2),c("button",{class:te(["vis-btn",{off:!ke.value.sections}]),onClick:h[10]||(h[10]=S=>ke.value.sections=!ke.value.sections),title:"Toggle Sections"},"D",2),c("button",{class:te(["vis-btn",{off:!ke.value.highlights}]),onClick:h[11]||(h[11]=S=>ke.value.highlights=!ke.value.highlights),title:"Toggle Highlights"},"H",2)]),c("button",{class:te(["tool-btn",{active:pe.value}]),onClick:h[12]||(h[12]=S=>pe.value=!pe.value),title:"View all tasks as raw JSON/YAML for agents"}," Task JSON ",2),c("button",{class:te(["tool-btn",{active:ze.value}]),onClick:h[13]||(h[13]=S=>ze.value=!ze.value),title:"Keyboard Shortcuts (?)"},"?",2)])):(v(),m("div",dx))]),ie.value?(v(),m("div",fx,[...h[78]||(h[78]=[et(" Source mapping unavailable — add ",-1),c("code",null,"annotask()",-1),et(" to your Vite plugins. ",-1)])])):M("",!0),O($)?M("",!0):(v(),m("div",px,[...h[79]||(h[79]=[et(" Annotask not initialized — run ",-1),c("code",null,"/annotask-init",-1),et(" in your AI assistant to set up project tokens and component detection. ",-1)])])),O(wo)?(v(),m("div",{key:2,class:"snip-overlay",onPointerdown:h[14]||(h[14]=(...S)=>O(xo)&&O(xo)(...S)),onPointermove:h[15]||(h[15]=(...S)=>O(_o)&&O(_o)(...S)),onPointerup:h[16]||(h[16]=(...S)=>O(Co)&&O(Co)(...S)),onKeydown:h[17]||(h[17]=wt((...S)=>O(Ki)&&O(Ki)(...S),["escape"]))},[h[80]||(h[80]=c("div",{class:"snip-hint"},"Drag to select a region, or click for full page",-1)),O(Tn)&&O(Tn).width>5&&O(Tn).height>5?(v(),m("div",{key:0,class:"snip-selection",style:je({left:O(Tn).x+"px",top:O(Tn).y+"px",width:O(Tn).width+"px",height:O(Tn).height+"px"})},null,4)):M("",!0)],32)):M("",!0),c("div",hx,[c("div",{class:te(["canvas-area",{"viewport-active":!O(g).isFullWidth.value}]),onPointerdown:h[24]||(h[24]=S=>R.value==="editor"?O(ne)(S):void 0),onPointermove:h[25]||(h[25]=S=>R.value==="editor"?O(P)(S):void 0),onPointerup:h[26]||(h[26]=S=>R.value==="editor"?O(J)(S):void 0)},[c("iframe",{ref_key:"iframeRef",ref:k,src:gu.value,class:"app-iframe",style:je(hu.value)},null,12,gx),R.value==="editor"?(v(),m(se,{key:0},[O(b)==="arrow"||O(b)==="draw"?(v(),m("div",{key:0,class:te(["drawing-shield",O(b)])},null,2)):M("",!0),ke.value.inspector?(v(),m(se,{key:1},[It.value?(v(),m("div",{key:0,class:"highlight hover",style:je({left:It.value.x+"px",top:It.value.y+"px",width:It.value.width+"px",height:It.value.height+"px"})},[Vt.value?(v(),m("div",vx,[c("span",mx,"<"+T(Vt.value.tag)+">",1),Vt.value.component?(v(),m("span",yx,T(Vt.value.component),1)):M("",!0)])):M("",!0)],4)):M("",!0),(v(!0),m(se,null,me(Ee.value,(S,ve)=>(v(),m("div",{key:"g"+ve,class:"highlight group",style:je({left:S.x+"px",top:S.y+"px",width:S.width+"px",height:S.height+"px"})},null,4))),128)),(v(!0),m(se,null,me(Ce.value,(S,ve)=>(v(),m("div",{key:"s"+ve,class:"highlight select",style:je({left:S.x+"px",top:S.y+"px",width:S.width+"px",height:S.height+"px"})},[ve===0&&y.value?(v(),m("div",bx," <"+T(y.value.tagName)+"> · "+T(y.value.component),1)):M("",!0)],4))),128))],64)):M("",!0),ke.value.pins?(v(),bt(pg,{key:2,pins:O(a).routePins.value,selectedPinId:O(a).selectedPinId.value,iframeOffset:{x:((le=(D=k.value)==null?void 0:D.getBoundingClientRect())==null?void 0:le.left)||0,y:(($e=(fe=k.value)==null?void 0:fe.getBoundingClientRect())==null?void 0:$e.top)||0},onSelectPin:h[18]||(h[18]=S=>{O(a).selectedPinId.value=S,be.value="notes"}),onRemovePin:O(a).removePin},null,8,["pins","selectedPinId","iframeOffset","onRemovePin"])):M("",!0),ke.value.arrows?(v(),bt(Ag,{key:3,arrows:O(a).routeArrows.value,selectedId:O(a).selectedArrowId.value,drawingArrow:O(N),onSelect:h[19]||(h[19]=S=>O(a).selectedArrowId.value=S),onRemove:O(a).removeArrow},null,8,["arrows","selectedId","drawingArrow","onRemove"])):M("",!0),ke.value.sections?(v(),bt(Lg,{key:4,sections:O(a).routeSections.value,selectedId:O(a).selectedSectionId.value,drawingRect:O(U),onSelect:h[20]||(h[20]=S=>O(a).selectedSectionId.value=S),onRemove:O(a).removeDrawnSection,onUpdatePrompt:h[21]||(h[21]=(S,ve)=>O(a).updateDrawnSection(S,{prompt:ve})),onCommit:uu},null,8,["sections","selectedId","drawingRect","onRemove"])):M("",!0),ke.value.highlights?(v(),bt(Mv,{key:5,highlights:O(a).routeHighlights.value,selectedId:O(a).selectedHighlightId.value,pending:w.value,onSelect:h[22]||(h[22]=S=>O(a).selectedHighlightId.value=S),onRemove:O(a).removeHighlight,onUpdatePrompt:h[23]||(h[23]=(S,ve)=>O(a).updateHighlight(S,{prompt:ve})),onSubmitPending:au,onCancelPending:cu},null,8,["highlights","selectedId","pending","onRemove"])):M("",!0),O(x).showOverlay.value?(v(),bt(zv,{key:6,containers:O(x).containers.value},null,8,["containers"])):M("",!0)],64)):M("",!0)],34),R.value==="theme"?(v(),m("aside",kx,[lt(U0,{iframeRef:k.value},null,8,["iframeRef"])])):M("",!0),R.value==="editor"&&ze.value?(v(),m("aside",wx,[c("div",xx,[h[81]||(h[81]=c("span",{class:"source-path",style:{color:"var(--text)"}},"Keyboard Shortcuts",-1)),c("button",{class:"component-badge",style:{cursor:"pointer","margin-left":"auto"},onClick:h[27]||(h[27]=S=>ze.value=!1)},"Esc to close")]),h[82]||(h[82]=Ka('<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))])):R.value==="editor"&&Se.value?(v(),m("aside",_x,[h[87]||(h[87]=c("div",{class:"panel-source"},[c("span",{class:"source-path",style:{color:"var(--text)"}},"Add Task")],-1)),c("div",Cx,[c("div",$x,[c("div",{class:te(["pending-task-kind",Se.value.kind])},[Se.value.kind==="pin"?(v(),m("svg",Sx,[...h[83]||(h[83]=[c("circle",{cx:"12",cy:"10",r:"3"},null,-1),c("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)])])):Se.value.kind==="arrow"?(v(),m("svg",Ax,[...h[84]||(h[84]=[c("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),c("polyline",{points:"12 5 19 12 12 19"},null,-1)])])):M("",!0),c("span",null,T(Se.value.label),1)],2),c("code",Tx,T(Se.value.file)+":"+T(Se.value.line),1)]),Pe(c("textarea",{"onUpdate:modelValue":h[28]||(h[28]=S=>Z.value=S),class:"pending-task-input",rows:"3",placeholder:"Describe the change...",autofocus:"",onKeydown:[wt(Be(Ao,["ctrl"]),["enter"]),wt(qi,["escape"])]},null,40,Ex),[[Ke,Z.value]]),c("div",Ix,[c("label",Rx,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":h[29]||(h[29]=S=>I.value=S)},null,512),[[On,I.value]]),h[85]||(h[85]=c("span",null,"Include interaction history",-1))]),c("label",Fx,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":h[30]||(h[30]=S=>V.value=S)},null,512),[[On,V.value]]),h[86]||(h[86]=c("span",null,"Include DOM context",-1))])]),O(En)?(v(),m("div",Px,[c("img",{src:"/__annotask/screenshots/"+O(En),class:"screenshot-thumb"},null,8,Ox),c("button",{class:"screenshot-remove",onClick:h[31]||(h[31]=(...S)=>O(Rn)&&O(Rn)(...S))},"×")])):(v(),m("button",{key:1,class:"screenshot-btn",onClick:h[32]||(h[32]=(...S)=>O(In)&&O(In)(...S)),title:"Capture a screenshot — drag a region or click for full page"},"Add Screenshot")),c("div",Mx,[c("button",{class:"submit-btn",disabled:!Z.value.trim(),onClick:Ao},"Add Task",8,Lx),c("button",{class:"cancel-btn",onClick:qi},"Cancel")])])])):R.value==="editor"&&Le.value==="tasks"?(v(),m("aside",Dx,[c("div",Nx,[h[88]||(h[88]=c("span",{class:"source-path",style:{color:"var(--text)"}},"Tasks",-1)),c("span",Bx,T(O(f).tasks.value.length),1),c("button",{class:"new-task-toggle",onClick:h[33]||(h[33]=S=>Te.value=!Te.value),title:"Create a general task (not tied to an element)"},T(Te.value?"−":"+")+" New ",1)]),Te.value?(v(),m("div",Vx,[Pe(c("textarea",{"onUpdate:modelValue":h[34]||(h[34]=S=>Y.value=S),class:"new-task-input",rows:"2",placeholder:"Describe a change...",onKeydown:wt(Be(_e,["ctrl"]),["enter"])},null,40,Hx),[[Ke,Y.value]]),c("div",jx,[c("label",Ux,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":h[35]||(h[35]=S=>I.value=S)},null,512),[[On,I.value]]),h[89]||(h[89]=c("span",null,"Include interaction history",-1))]),c("label",zx,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":h[36]||(h[36]=S=>V.value=S)},null,512),[[On,V.value]]),h[90]||(h[90]=c("span",null,"Include DOM context",-1))])]),O(En)?(v(),m("div",Yx,[c("img",{src:"/__annotask/screenshots/"+O(En),class:"screenshot-thumb"},null,8,Kx),c("button",{class:"screenshot-remove",onClick:h[37]||(h[37]=(...S)=>O(Rn)&&O(Rn)(...S))},"×")])):(v(),m("button",{key:1,class:"screenshot-btn",onClick:h[38]||(h[38]=(...S)=>O(In)&&O(In)(...S)),title:"Capture a screenshot — drag a region or click for full page"},"Add Screenshot")),c("div",Wx,[c("button",{class:"submit-btn",disabled:!Y.value.trim(),onClick:_e},"Add",8,qx),c("button",{class:"cancel-btn",onClick:h[39]||(h[39]=S=>{Te.value=!1,Y.value=""})},"Cancel")])])):M("",!0),c("div",Gx,[O(f).tasks.value.length===0&&!Te.value?(v(),m("div",Xx," No tasks yet. Click + New to add one. ")):M("",!0),(v(!0),m(se,null,me(B.value,S=>(v(),m("div",{key:S.id,class:te(["task-card",S.status]),onClick:ve=>ae.value=S.id},[c("div",Jx,[c("span",{class:te(["task-status-dot",S.status])},null,2),c("span",{class:"task-card-desc task-card-md",innerHTML:O(Re).parse(S.description,{breaks:!0,gfm:!0})},null,8,Qx),c("button",{class:"task-card-close",onClick:Be(ve=>De(S.id),["stop"]),title:"Accept and remove this task"},"×",8,e_)]),c("div",t_,[c("code",n_,T(S.file)+":"+T(S.line),1),S.route?(v(),m("span",s_,T(S.route),1)):M("",!0)]),S.screenshot?(v(),m("img",{key:0,class:"task-screenshot-thumb",src:"/__annotask/screenshots/"+S.screenshot},null,8,i_)):M("",!0),S.feedback?(v(),m("div",l_,T(S.feedback),1)):M("",!0),S.status==="review"?(v(),m("div",{key:2,class:"task-card-actions",onClick:h[47]||(h[47]=Be(()=>{},["stop"]))},[K.value!==S.id?(v(),m(se,{key:0},[c("button",{class:"task-accept",onClick:ve=>De(S.id),title:"Accept this change and remove the task"},"Accept",8,o_),c("button",{class:"task-deny",onClick:ve=>{K.value=S.id,G.value=""},title:"Reject and send feedback to the agent"},"Deny",8,r_)],64)):(v(),m("div",a_,[Pe(c("textarea",{"onUpdate:modelValue":h[40]||(h[40]=ve=>G.value=ve),class:"deny-feedback-textarea",rows:"3",placeholder:"What needs to change?",autofocus:"",onKeydown:[wt(Be(ve=>L(S.id),["ctrl"]),["enter"]),h[41]||(h[41]=wt(ve=>K.value=null,["escape"]))]},null,40,c_),[[Ke,G.value]]),c("div",u_,[c("label",d_,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":h[42]||(h[42]=ve=>I.value=ve)},null,512),[[On,I.value]]),h[91]||(h[91]=c("span",null,"Include interaction history",-1))]),c("label",f_,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":h[43]||(h[43]=ve=>V.value=ve)},null,512),[[On,V.value]]),h[92]||(h[92]=c("span",null,"Include DOM context",-1))])]),O(En)?(v(),m("div",p_,[c("img",{src:"/__annotask/screenshots/"+O(En),class:"screenshot-thumb"},null,8,h_),c("button",{class:"screenshot-remove",onClick:h[44]||(h[44]=(...ve)=>O(Rn)&&O(Rn)(...ve))},"×")])):(v(),m("button",{key:1,class:"screenshot-btn",onClick:h[45]||(h[45]=(...ve)=>O(In)&&O(In)(...ve)),title:"Capture a screenshot — drag a region or click for full page"},"Add Screenshot")),c("div",g_,[c("button",{class:"task-deny",disabled:!G.value.trim(),onClick:ve=>L(S.id)},"Deny",8,v_),c("button",{class:"cancel-btn",style:{padding:"4px 8px","font-size":"10px"},onClick:h[46]||(h[46]=ve=>K.value=null)},"Cancel")])]))])):M("",!0)],10,Zx))),128))])])):R.value==="editor"&&Le.value==="a11y"?(v(),m("aside",m_,[c("div",y_,[h[93]||(h[93]=c("span",{class:"source-path",style:{color:"var(--text)"}},"Accessibility",-1)),c("button",{class:"scan-btn",disabled:O(ee),onClick:h[48]||(h[48]=S=>O(re)("page")),style:{"margin-left":"auto"},title:"Run axe-core WCAG accessibility scan on the page"},T(O(ee)?"Scanning...":"Scan Page"),9,b_)]),c("div",k_,[O(X)?(v(),m("div",w_,T(O(X)),1)):M("",!0),!O(ee)&&O(Q).length===0&&!O(X)&&O(q)?(v(),m("div",x_,[...h[94]||(h[94]=[c("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[c("path",{d:"M20 6L9 17l-5-5"})],-1),et(" No violations found ",-1)])])):!O(ee)&&O(Q).length===0&&!O(X)?(v(),m("div",__," Click Scan Page to check accessibility ")):M("",!0),O(Q).length?(v(),m("div",C_,T(O(Q).length)+" violation"+T(O(Q).length===1?"":"s"),1)):M("",!0),(v(!0),m(se,null,me(O(Q),S=>(v(),m("div",{key:S.id,class:te(["a11y-card",S.impact])},[c("div",$_,[c("span",{class:te(["a11y-impact",S.impact])},T(S.impact),3),c("span",S_,T(S.id),1),c("span",A_,T(S.nodes)+" element"+T(S.nodes===1?"":"s"),1)]),c("p",T_,T(S.help),1),O(de).has(S.id)?(v(),m("span",E_,"Task created")):(v(),m("button",{key:1,class:"a11y-fix-btn",onClick:ve=>O(ue)(S),title:"Create a task for your AI agent to fix this accessibility violation"},"Create Fix Task",8,I_))],2))),128))])])):R.value==="editor"&&Le.value==="inspector"&&y.value?(v(),m("aside",R_,[c("div",F_,[c("code",P_,T(y.value.file)+":"+T(y.value.line),1),c("span",O_,T(y.value.component),1),Et.value?(v(),m("span",{key:0,class:te(["role-badge",Et.value])},T(Et.value),3)):M("",!0)]),_t.value?(v(),m("div",M_,[c("span",L_,T(_t.value),1),j.value.length>1&&E.value.length<=1?(v(),m("label",D_,[Pe(c("input",{type:"checkbox","onUpdate:modelValue":h[49]||(h[49]=S=>H.value=S)},null,512),[[On,H.value]]),c("span",N_,"Apply to all "+T(j.value.length),1)])):M("",!0)])):M("",!0),c("div",B_,[c("button",{class:te(["tab",{active:be.value==="notes"}]),onClick:h[50]||(h[50]=S=>be.value="notes"),title:"Create tasks and annotations for this element"},[h[95]||(h[95]=et(" Task ",-1)),O(a).routePins.value.length?(v(),m("span",V_,T(O(a).routePins.value.length),1)):M("",!0)],2),c("button",{class:te(["tab",{active:be.value==="layout"}]),onClick:h[51]||(h[51]=S=>be.value="layout"),title:"Edit display, flex, and grid properties"},"Layout",2),c("button",{class:te(["tab",{active:be.value==="spacing"}]),onClick:h[52]||(h[52]=S=>be.value="spacing"),title:"Edit padding and margin"},"Spacing",2),c("button",{class:te(["tab",{active:be.value==="size"}]),onClick:h[53]||(h[53]=S=>be.value="size"),title:"Edit width, height, and constraints"},"Size",2),c("button",{class:te(["tab",{active:be.value==="style"}]),onClick:h[54]||(h[54]=S=>be.value="style"),title:"Edit colors, typography, and appearance"},"Style",2),c("button",{class:te(["tab",{active:be.value==="classes"}]),onClick:h[55]||(h[55]=S=>be.value="classes"),title:"Edit CSS classes directly"},"Classes",2)]),c("div",H_,[be.value==="layout"?(v(),bt(pp,{key:0,computedStyles:Ze.value,onChange:Zs},null,8,["computedStyles"])):M("",!0),be.value==="spacing"?(v(),bt(Tp,{key:1,computedStyles:Ze.value,onChange:Zs},null,8,["computedStyles"])):M("",!0),be.value==="size"?(v(),bt(Hp,{key:2,computedStyles:Ze.value,onChange:Zs},null,8,["computedStyles"])):M("",!0),be.value==="style"?(v(),bt(Lh,{key:3,computedStyles:Ze.value,iframeDoc:null,onChange:Zs},null,8,["computedStyles"])):M("",!0),be.value==="classes"?(v(),m("div",j_,[Pe(c("textarea",{"onUpdate:modelValue":h[56]||(h[56]=S=>dt.value=S),class:"class-editor",rows:"4",onBlur:ko,onKeydown:wt(Be(ko,["ctrl"]),["enter"]),placeholder:"Edit CSS classes..."},null,40,U_),[[Ke,dt.value]]),h[96]||(h[96]=c("p",{class:"hint"},"Ctrl+Enter or blur to apply",-1))])):M("",!0),be.value==="notes"?(v(),bt(_v,{key:5,pins:O(a).routePins.value,selectedPinId:O(a).selectedPinId.value,selectedElement:y.value,elementRole:Et.value,tasks:O(f).tasks.value,includeHistory:I.value,includeElementContext:V.value,"onUpdate:includeHistory":h[57]||(h[57]=S=>I.value=S),"onUpdate:includeElementContext":h[58]||(h[58]=S=>V.value=S),pendingScreenshot:O(En),onStartSnip:O(In),onRemoveScreenshot:O(Rn),onAddNote:lu,onAddAction:ou,onAddTask:pu,onSelectPin:h[59]||(h[59]=S=>O(a).selectedPinId.value=S),onUpdateNote:h[60]||(h[60]=S=>O(a).updatePinNote(S,"")),onRemovePin:h[61]||(h[61]=S=>O(a).removePin(S)),onAcceptTask:h[62]||(h[62]=S=>O(f).updateTaskStatus(S,"accepted")),onDenyTask:h[63]||(h[63]=(S,ve)=>O(f).updateTaskStatus(S,"denied",ve)),onCancelTask:h[64]||(h[64]=S=>O(f).updateTaskStatus(S,"accepted"))},null,8,["pins","selectedPinId","selectedElement","elementRole","tasks","includeHistory","includeElementContext","pendingScreenshot","onStartSnip","onRemoveScreenshot"])):M("",!0)]),O(o).length?(v(),m("div",z_,[c("div",Y_,[(v(!0),m(se,null,me(O(o),S=>(v(),m("div",{key:S.id,class:"change-item"},[S.type==="style_update"?(v(),m(se,{key:0},[c("code",K_,T(S.property),1),h[97]||(h[97]=c("span",{class:"change-arrow"},"→",-1)),c("code",W_,T(S.after),1)],64)):S.type==="class_update"?(v(),m(se,{key:1},[h[98]||(h[98]=c("code",{class:"change-prop"},"classes",-1)),h[99]||(h[99]=c("span",{class:"change-arrow"},"→",-1)),c("code",q_,T(S.after.classes.substring(0,30)),1)],64)):M("",!0)]))),128))]),c("div",G_,[c("span",X_,T(O(o).length)+" change"+T(O(o).length===1?"":"s"),1),c("button",{class:"changes-commit",onClick:d,title:"Save these visual changes as a task for your AI agent to apply to source code"},"Commit to Task"),c("button",{class:"changes-discard",onClick:u,title:"Undo all visual changes (does not affect source code)"},"Discard")])])):M("",!0)])):R.value==="editor"&&Le.value==="inspector"?(v(),m("aside",Z_,[...h[100]||(h[100]=[c("div",{class:"empty-content"},[c("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[c("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})]),c("p",null,"Click an element to inspect"),c("p",{class:"empty-hint"},"Use the toolbar modes: Select (V), Pin (P), Arrow (A), Draw (D), Highlight (H)")],-1)])])):M("",!0)]),lt(ag,Wa(Yi.value,{onClose:h[65]||(h[65]=S=>Yi.value.visible=!1)}),null,16),pe.value?(v(),bt($b,{key:3,tasks:O(f).tasks.value,onClose:h[66]||(h[66]=S=>pe.value=!1)},null,8,["tasks"])):M("",!0),xe.value?(v(),bt(Pw,{key:4,task:xe.value,onClose:h[67]||(h[67]=S=>ae.value=null),onAccept:h[68]||(h[68]=S=>{De(S),ae.value=null}),onDeny:h[69]||(h[69]=S=>{K.value=S,G.value="",ae.value=null}),onUpdate:h[70]||(h[70]=(S,ve)=>{O(f).updateTaskStatus(S,xe.value.status,void 0,ve)})},null,8,["task"])):M("",!0)])}}});Wf(J_).mount("#app");