annotask 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -7
- package/dist/chunk-2PL37QTY.js +1043 -0
- package/dist/chunk-2PL37QTY.js.map +1 -0
- package/dist/chunk-4J7F2BC5.js +61 -0
- package/dist/chunk-4J7F2BC5.js.map +1 -0
- package/dist/chunk-DPJXWLPB.js +61 -0
- package/dist/chunk-DPJXWLPB.js.map +1 -0
- package/dist/chunk-DQBM2VFQ.js +465 -0
- package/dist/chunk-DQBM2VFQ.js.map +1 -0
- package/dist/chunk-FMNBQLJZ.js +61 -0
- package/dist/chunk-FMNBQLJZ.js.map +1 -0
- package/dist/chunk-GBYXEWJS.js +1067 -0
- package/dist/chunk-GBYXEWJS.js.map +1 -0
- package/dist/chunk-LGNV6UH3.js +488 -0
- package/dist/chunk-LGNV6UH3.js.map +1 -0
- package/dist/chunk-TBBJTSMJ.js +496 -0
- package/dist/chunk-TBBJTSMJ.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +2 -2
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/shell/assets/index-B-SRjSQF.js +59 -0
- package/dist/shell/assets/{index-En0AXNAK.css → index-CeF02UAx.css} +1 -1
- package/dist/shell/index.html +2 -2
- package/dist/standalone.js +2 -2
- package/dist/vendor/axe-core.min.js +12 -0
- package/dist/vendor/html2canvas.min.js +20 -0
- package/dist/webpack.js +3 -3
- package/package.json +8 -3
- package/dist/shell/assets/index-Dko9s8T0.js +0 -59
- package/skills/annotask-watch/SKILL.md +0 -47
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();/**
|
|
2
|
+
* @vue/shared v3.5.31
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function ps(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Me={},zn=[],jt=()=>{},nr=()=>!1,al=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ul=e=>e.startsWith("onUpdate:"),lt=Object.assign,hs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},yu=Object.prototype.hasOwnProperty,Ee=(e,t)=>yu.call(e,t),pe=Array.isArray,Gn=e=>Ti(e)==="[object Map]",cl=e=>Ti(e)==="[object Set]",zs=e=>Ti(e)==="[object Date]",me=e=>typeof e=="function",Ke=e=>typeof e=="string",St=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",ir=e=>(Pe(e)||me(e))&&me(e.then)&&me(e.catch),lr=Object.prototype.toString,Ti=e=>lr.call(e),bu=e=>Ti(e).slice(8,-1),sr=e=>Ti(e)==="[object Object]",dl=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,di=ps(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fl=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},wu=/-\w/g,Ft=fl(e=>e.replace(wu,t=>t.slice(1).toUpperCase())),_u=/\B([A-Z])/g,yn=fl(e=>e.replace(_u,"-$1").toLowerCase()),or=fl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Sl=fl(e=>e?`on${or(e)}`:""),Bt=(e,t)=>!Object.is(e,t),Bi=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},rr=(e,t,n,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},vs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gs;const pl=()=>Gs||(Gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Le(e){if(pe(e)){const t={};for(let n=0;n<e.length;n++){const l=e[n],i=Ke(l)?Au(l):Le(l);if(i)for(const s in i)t[s]=i[s]}return t}else if(Ke(e)||Pe(e))return e}const xu=/;(?![^(]*\))/g,ku=/:([^]+)/,Cu=/\/\*[^]*?\*\//g;function Au(e){const t={};return e.replace(Cu,"").split(xu).forEach(n=>{if(n){const l=n.split(ku);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function Z(e){let t="";if(Ke(e))t=e;else if(pe(e))for(let n=0;n<e.length;n++){const l=Z(e[n]);l&&(t+=l+" ")}else if(Pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Su="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$u=ps(Su);function ar(e){return!!e||e===""}function Tu(e,t){if(e.length!==t.length)return!1;let n=!0;for(let l=0;n&&l<e.length;l++)n=Ei(e[l],t[l]);return n}function Ei(e,t){if(e===t)return!0;let n=zs(e),l=zs(t);if(n||l)return n&&l?e.getTime()===t.getTime():!1;if(n=St(e),l=St(t),n||l)return e===t;if(n=pe(e),l=pe(t),n||l)return n&&l?Tu(e,t):!1;if(n=Pe(e),l=Pe(t),n||l){if(!n||!l)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const o in e){const r=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(r&&!c||!r&&c||!Ei(e[o],t[o]))return!1}}return String(e)===String(t)}function ur(e,t){return e.findIndex(n=>Ei(n,t))}const cr=e=>!!(e&&e.__v_isRef===!0),I=e=>Ke(e)?e:e==null?"":pe(e)||Pe(e)&&(e.toString===lr||!me(e.toString))?cr(e)?I(e.value):JSON.stringify(e,dr,2):String(e),dr=(e,t)=>cr(t)?dr(e,t.value):Gn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,i],s)=>(n[$l(l,s)+" =>"]=i,n),{})}:cl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>$l(n))}:St(t)?$l(t):Pe(t)&&!pe(t)&&!sr(t)?String(t):t,$l=(e,t="")=>{var n;return St(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 mt;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=mt,!t&&mt&&(this.index=(mt.scopes||(mt.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=mt;try{return mt=this,t()}finally{mt=n}}}on(){++this._on===1&&(this.prevScope=mt,mt=this)}off(){this._on>0&&--this._on===0&&(mt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n<l;n++)this.effects[n].stop();for(this.effects.length=0,n=0,l=this.cleanups.length;n<l;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,l=this.scopes.length;n<l;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Fu(){return mt}let De;const Tl=new WeakSet;class fr{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,mt&&mt.active&&mt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Tl.has(this)&&(Tl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Xs(this),vr(this);const t=De,n=It;De=this,It=!0;try{return this.fn()}finally{gr(this),De=t,It=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ys(t);this.deps=this.depsTail=void 0,Xs(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Tl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ul(this)&&this.run()}get dirty(){return Ul(this)}}let pr=0,fi,pi;function hr(e,t=!1){if(e.flags|=8,t){e.next=pi,pi=e;return}e.next=fi,fi=e}function gs(){pr++}function ms(){if(--pr>0)return;if(pi){let t=pi;for(pi=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fi;){let t=fi;for(fi=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function vr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function gr(e){let t,n=e.depsTail,l=n;for(;l;){const i=l.prevDep;l.version===-1?(l===n&&(n=i),ys(l),Iu(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}e.deps=t,e.depsTail=n}function Ul(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===bi)||(e.globalVersion=bi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ul(e))))return;e.flags|=2;const t=e.dep,n=De,l=It;De=e,It=!0;try{vr(e);const i=e.fn(e._value);(t.version===0||Bt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{De=n,It=l,gr(e),e.flags&=-3}}function ys(e,t=!1){const{dep:n,prevSub:l,nextSub:i}=e;if(l&&(l.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)ys(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Iu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let It=!0;const yr=[];function sn(){yr.push(It),It=!1}function on(){const e=yr.pop();It=e===void 0?!0:e}function Xs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=De;De=void 0;try{t()}finally{De=n}}}let bi=0;class Pu{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 bs{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(!De||!It||De===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==De)n=this.activeLink=new Pu(De,this),De.deps?(n.prevDep=De.depsTail,De.depsTail.nextDep=n,De.depsTail=n):De.deps=De.depsTail=n,br(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=De.depsTail,n.nextDep=void 0,De.depsTail.nextDep=n,De.depsTail=n,De.deps===n&&(De.deps=l)}return n}trigger(t){this.version++,bi++,this.notify(t)}notify(t){gs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ms()}}}function br(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)br(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const zi=new WeakMap,Rn=Symbol(""),Yl=Symbol(""),wi=Symbol("");function at(e,t,n){if(It&&De){let l=zi.get(e);l||zi.set(e,l=new Map);let i=l.get(n);i||(l.set(n,i=new bs),i.map=l,i.key=n),i.track()}}function tn(e,t,n,l,i,s){const o=zi.get(e);if(!o){bi++;return}const r=c=>{c&&c.trigger()};if(gs(),t==="clear")o.forEach(r);else{const c=pe(e),d=c&&dl(n);if(c&&n==="length"){const a=Number(l);o.forEach((f,v)=>{(v==="length"||v===wi||!St(v)&&v>=a)&&r(f)})}else switch((n!==void 0||o.has(void 0))&&r(o.get(n)),d&&r(o.get(wi)),t){case"add":c?d&&r(o.get("length")):(r(o.get(Rn)),Gn(e)&&r(o.get(Yl)));break;case"delete":c||(r(o.get(Rn)),Gn(e)&&r(o.get(Yl)));break;case"set":Gn(e)&&r(o.get(Rn));break}}ms()}function Ou(e,t){const n=zi.get(e);return n&&n.get(t)}function Nn(e){const t=$e(e);return t===e?t:(at(t,"iterate",wi),kt(e)?t:t.map(Pt))}function hl(e){return at(e=$e(e),"iterate",wi),e}function Nt(e,t){return rn(e)?Zn(Mn(e)?Pt(t):t):Pt(t)}const Ru={__proto__:null,[Symbol.iterator](){return El(this,Symbol.iterator,e=>Nt(this,e))},concat(...e){return Nn(this).concat(...e.map(t=>pe(t)?Nn(t):t))},entries(){return El(this,"entries",e=>(e[1]=Nt(this,e[1]),e))},every(e,t){return Xt(this,"every",e,t,void 0,arguments)},filter(e,t){return Xt(this,"filter",e,t,n=>n.map(l=>Nt(this,l)),arguments)},find(e,t){return Xt(this,"find",e,t,n=>Nt(this,n),arguments)},findIndex(e,t){return Xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xt(this,"findLast",e,t,n=>Nt(this,n),arguments)},findLastIndex(e,t){return Xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Fl(this,"includes",e)},indexOf(...e){return Fl(this,"indexOf",e)},join(e){return Nn(this).join(e)},lastIndexOf(...e){return Fl(this,"lastIndexOf",e)},map(e,t){return Xt(this,"map",e,t,void 0,arguments)},pop(){return ni(this,"pop")},push(...e){return ni(this,"push",e)},reduce(e,...t){return qs(this,"reduce",e,t)},reduceRight(e,...t){return qs(this,"reduceRight",e,t)},shift(){return ni(this,"shift")},some(e,t){return Xt(this,"some",e,t,void 0,arguments)},splice(...e){return ni(this,"splice",e)},toReversed(){return Nn(this).toReversed()},toSorted(e){return Nn(this).toSorted(e)},toSpliced(...e){return Nn(this).toSpliced(...e)},unshift(...e){return ni(this,"unshift",e)},values(){return El(this,"values",e=>Nt(this,e))}};function El(e,t,n){const l=hl(e),i=l[t]();return l!==e&&!kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const Mu=Array.prototype;function Xt(e,t,n,l,i,s){const o=hl(e),r=o!==e&&!kt(e),c=o[t];if(c!==Mu[t]){const f=c.apply(e,s);return r?Pt(f):f}let d=n;o!==e&&(r?d=function(f,v){return n.call(this,Nt(e,f),v,e)}:n.length>2&&(d=function(f,v){return n.call(this,f,v,e)}));const a=c.call(o,d,l);return r&&i?i(a):a}function qs(e,t,n,l){const i=hl(e),s=i!==e&&!kt(e);let o=n,r=!1;i!==e&&(s?(r=l.length===0,o=function(d,a,f){return r&&(r=!1,d=Nt(e,d)),n.call(this,d,Nt(e,a),f,e)}):n.length>3&&(o=function(d,a,f){return n.call(this,d,a,f,e)}));const c=i[t](o,...l);return r?Nt(e,c):c}function Fl(e,t,n){const l=$e(e);at(l,"iterate",wi);const i=l[t](...n);return(i===-1||i===!1)&&vl(n[0])?(n[0]=$e(n[0]),l[t](...n)):i}function ni(e,t,n=[]){sn(),gs();const l=$e(e)[t].apply(e,n);return ms(),on(),l}const Lu=ps("__proto__,__v_isRef,__isVue"),wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St));function Du(e){St(e)||(e=String(e));const t=$e(this);return at(t,"has",e),t.hasOwnProperty(e)}class _r{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return l===(i?s?zu:Ar:s?Cr:kr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const o=pe(t);if(!i){let c;if(o&&(c=Ru[n]))return c;if(n==="hasOwnProperty")return Du}const r=Reflect.get(t,n,Ge(t)?t:l);if((St(n)?wr.has(n):Lu(n))||(i||at(t,"get",n),s))return r;if(Ge(r)){const c=o&&dl(n)?r:r.value;return i&&Pe(c)?Wl(c):c}return Pe(r)?i?Wl(r):_s(r):r}}class xr extends _r{constructor(t=!1){super(!1,t)}set(t,n,l,i){let s=t[n];const o=pe(t)&&dl(n);if(!this._isShallow){const d=rn(s);if(!kt(l)&&!rn(l)&&(s=$e(s),l=$e(l)),!o&&Ge(s)&&!Ge(l))return d||(s.value=l),!0}const r=o?Number(n)<t.length:Ee(t,n),c=Reflect.set(t,n,l,Ge(t)?t:i);return t===$e(i)&&(r?Bt(l,s)&&tn(t,"set",n,l):tn(t,"add",n,l)),c}deleteProperty(t,n){const l=Ee(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&l&&tn(t,"delete",n,void 0),i}has(t,n){const l=Reflect.has(t,n);return(!St(n)||!wr.has(n))&&at(t,"has",n),l}ownKeys(t){return at(t,"iterate",pe(t)?"length":Rn),Reflect.ownKeys(t)}}class Nu extends _r{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Vu=new xr,Hu=new Nu,Bu=new xr(!0);const Kl=e=>e,Di=e=>Reflect.getPrototypeOf(e);function ju(e,t,n){return function(...l){const i=this.__v_raw,s=$e(i),o=Gn(s),r=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=i[e](...l),a=n?Kl:t?Zn:Pt;return!t&&at(s,"iterate",c?Yl:Rn),lt(Object.create(d),{next(){const{value:f,done:v}=d.next();return v?{value:f,done:v}:{value:r?[a(f[0]),a(f[1])]:a(f),done:v}}})}}function Ni(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Uu(e,t){const n={get(i){const s=this.__v_raw,o=$e(s),r=$e(i);e||(Bt(i,r)&&at(o,"get",i),at(o,"get",r));const{has:c}=Di(o),d=t?Kl:e?Zn:Pt;if(c.call(o,i))return d(s.get(i));if(c.call(o,r))return d(s.get(r));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!e&&at($e(i),"iterate",Rn),i.size},has(i){const s=this.__v_raw,o=$e(s),r=$e(i);return e||(Bt(i,r)&&at(o,"has",i),at(o,"has",r)),i===r?s.has(i):s.has(i)||s.has(r)},forEach(i,s){const o=this,r=o.__v_raw,c=$e(r),d=t?Kl:e?Zn:Pt;return!e&&at(c,"iterate",Rn),r.forEach((a,f)=>i.call(s,d(a),d(f),o))}};return lt(n,e?{add:Ni("add"),set:Ni("set"),delete:Ni("delete"),clear:Ni("clear")}:{add(i){const s=$e(this),o=Di(s),r=$e(i),c=!t&&!kt(i)&&!rn(i)?r:i;return o.has.call(s,c)||Bt(i,c)&&o.has.call(s,i)||Bt(r,c)&&o.has.call(s,r)||(s.add(c),tn(s,"add",c,c)),this},set(i,s){!t&&!kt(s)&&!rn(s)&&(s=$e(s));const o=$e(this),{has:r,get:c}=Di(o);let d=r.call(o,i);d||(i=$e(i),d=r.call(o,i));const a=c.call(o,i);return o.set(i,s),d?Bt(s,a)&&tn(o,"set",i,s):tn(o,"add",i,s),this},delete(i){const s=$e(this),{has:o,get:r}=Di(s);let c=o.call(s,i);c||(i=$e(i),c=o.call(s,i)),r&&r.call(s,i);const d=s.delete(i);return c&&tn(s,"delete",i,void 0),d},clear(){const i=$e(this),s=i.size!==0,o=i.clear();return s&&tn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=ju(i,e,t)}),n}function ws(e,t){const n=Uu(e,t);return(l,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?l:Reflect.get(Ee(n,i)&&i in l?n:l,i,s)}const Yu={get:ws(!1,!1)},Ku={get:ws(!1,!0)},Wu={get:ws(!0,!1)};const kr=new WeakMap,Cr=new WeakMap,Ar=new WeakMap,zu=new WeakMap;function Gu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xu(e){return e.__v_skip||!Object.isExtensible(e)?0:Gu(bu(e))}function _s(e){return rn(e)?e:xs(e,!1,Vu,Yu,kr)}function qu(e){return xs(e,!1,Bu,Ku,Cr)}function Wl(e){return xs(e,!0,Hu,Wu,Ar)}function xs(e,t,n,l,i){if(!Pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Xu(e);if(s===0)return e;const o=i.get(e);if(o)return o;const r=new Proxy(e,s===2?l:n);return i.set(e,r),r}function Mn(e){return rn(e)?Mn(e.__v_raw):!!(e&&e.__v_isReactive)}function rn(e){return!!(e&&e.__v_isReadonly)}function kt(e){return!!(e&&e.__v_isShallow)}function vl(e){return e?!!e.__v_raw:!1}function $e(e){const t=e&&e.__v_raw;return t?$e(t):e}function Ju(e){return!Ee(e,"__v_skip")&&Object.isExtensible(e)&&rr(e,"__v_skip",!0),e}const Pt=e=>Pe(e)?_s(e):e,Zn=e=>Pe(e)?Wl(e):e;function Ge(e){return e?e.__v_isRef===!0:!1}function U(e){return Zu(e,!1)}function Zu(e,t){return Ge(e)?e:new Qu(e,t)}class Qu{constructor(t,n){this.dep=new bs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:$e(t),this._value=n?t:Pt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||kt(t)||rn(t);t=l?t:$e(t),Bt(t,n)&&(this._rawValue=t,this._value=l?t:Pt(t),this.dep.trigger())}}function O(e){return Ge(e)?e.value:e}const ec={get:(e,t,n)=>t==="__v_raw"?e:O(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const i=e[t];return Ge(i)&&!Ge(n)?(i.value=n,!0):Reflect.set(e,t,n,l)}};function Sr(e){return Mn(e)?e:new Proxy(e,ec)}class tc{constructor(t,n,l){this._object=t,this._defaultValue=l,this.__v_isRef=!0,this._value=void 0,this._key=St(n)?n:String(n),this._raw=$e(t);let i=!0,s=t;if(!pe(t)||St(this._key)||!dl(this._key))do i=!vl(s)||kt(s);while(i&&(s=s.__v_raw));this._shallow=i}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&&Ge(this._raw[this._key])){const n=this._object[this._key];if(Ge(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Ou(this._raw,this._key)}}class nc{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 ic(e,t,n){return Ge(e)?e:me(e)?new nc(e):Pe(e)&&arguments.length>1?lc(e,t,n):U(e)}function lc(e,t,n){return new tc(e,t,n)}class sc{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new bs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&De!==this)return hr(this,!0),!0}get value(){const t=this.dep.track();return mr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function oc(e,t,n=!1){let l,i;return me(e)?l=e:(l=e.get,i=e.set),new sc(l,i,n)}const Vi={},Gi=new WeakMap;let Pn;function rc(e,t=!1,n=Pn){if(n){let l=Gi.get(n);l||Gi.set(n,l=[]),l.push(e)}}function ac(e,t,n=Me){const{immediate:l,deep:i,once:s,scheduler:o,augmentJob:r,call:c}=n,d=C=>i?C:kt(C)||i===!1||i===0?nn(C,1):nn(C);let a,f,v,h,g=!1,k=!1;if(Ge(e)?(f=()=>e.value,g=kt(e)):Mn(e)?(f=()=>d(e),g=!0):pe(e)?(k=!0,g=e.some(C=>Mn(C)||kt(C)),f=()=>e.map(C=>{if(Ge(C))return C.value;if(Mn(C))return d(C);if(me(C))return c?c(C,2):C()})):me(e)?t?f=c?()=>c(e,2):e:f=()=>{if(v){sn();try{v()}finally{on()}}const C=Pn;Pn=a;try{return c?c(e,3,[h]):e(h)}finally{Pn=C}}:f=jt,t&&i){const C=f,F=i===!0?1/0:i;f=()=>nn(C(),F)}const $=Fu(),E=()=>{a.stop(),$&&$.active&&hs($.effects,a)};if(s&&t){const C=t;t=(...F)=>{C(...F),E()}}let x=k?new Array(e.length).fill(Vi):Vi;const w=C=>{if(!(!(a.flags&1)||!a.dirty&&!C))if(t){const F=a.run();if(i||g||(k?F.some((D,H)=>Bt(D,x[H])):Bt(F,x))){v&&v();const D=Pn;Pn=a;try{const H=[F,x===Vi?void 0:k&&x[0]===Vi?[]:x,h];x=F,c?c(t,3,H):t(...H)}finally{Pn=D}}}else a.run()};return r&&r(w),a=new fr(f),a.scheduler=o?()=>o(w,!1):w,h=C=>rc(C,!1,a),v=a.onStop=()=>{const C=Gi.get(a);if(C){if(c)c(C,4);else for(const F of C)F();Gi.delete(a)}},t?l?w(!0):x=a.run():o?o(w.bind(null,!0),!0):a.run(),E.pause=a.pause.bind(a),E.resume=a.resume.bind(a),E.stop=E,E}function nn(e,t=1/0,n){if(t<=0||!Pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ge(e))nn(e.value,t,n);else if(pe(e))for(let l=0;l<e.length;l++)nn(e[l],t,n);else if(cl(e)||Gn(e))e.forEach(l=>{nn(l,t,n)});else if(sr(e)){for(const l in e)nn(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&nn(e[l],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 Fi(e,t,n,l){try{return l?e(...l):e()}catch(i){gl(i,t,n)}}function Yt(e,t,n,l){if(me(e)){const i=Fi(e,t,n,l);return i&&ir(i)&&i.catch(s=>{gl(s,t,n)}),i}if(pe(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Yt(e[s],t,n,l));return i}}function gl(e,t,n,l=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Me;if(t){let r=t.parent;const c=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,c,d)===!1)return}r=r.parent}if(s){sn(),Fi(s,null,10,[e,c,d]),on();return}}uc(e,n,i,l,o)}function uc(e,t,n,l=!0,i=!1){if(i)throw e;console.error(e)}const ft=[];let Mt=-1;const Xn=[];let pn=null,jn=0;const $r=Promise.resolve();let Xi=null;function Tr(e){const t=Xi||$r;return e?t.then(this?e.bind(this):e):t}function cc(e){let t=Mt+1,n=ft.length;for(;t<n;){const l=t+n>>>1,i=ft[l],s=_i(i);s<e||s===e&&i.flags&2?t=l+1:n=l}return t}function ks(e){if(!(e.flags&1)){const t=_i(e),n=ft[ft.length-1];!n||!(e.flags&2)&&t>=_i(n)?ft.push(e):ft.splice(cc(t),0,e),e.flags|=1,Er()}}function Er(){Xi||(Xi=$r.then(Ir))}function dc(e){pe(e)?Xn.push(...e):pn&&e.id===-1?pn.splice(jn+1,0,e):e.flags&1||(Xn.push(e),e.flags|=1),Er()}function Js(e,t,n=Mt+1){for(;n<ft.length;n++){const l=ft[n];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;ft.splice(n,1),n--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Fr(e){if(Xn.length){const t=[...new Set(Xn)].sort((n,l)=>_i(n)-_i(l));if(Xn.length=0,pn){pn.push(...t);return}for(pn=t,jn=0;jn<pn.length;jn++){const n=pn[jn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pn=null,jn=0}}const _i=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ir(e){try{for(Mt=0;Mt<ft.length;Mt++){const t=ft[Mt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Mt<ft.length;Mt++){const t=ft[Mt];t&&(t.flags&=-2)}Mt=-1,ft.length=0,Fr(),Xi=null,(ft.length||Xn.length)&&Ir()}}let At=null,Pr=null;function qi(e){const t=At;return At=e,Pr=e&&e.type.__scopeId||null,t}function fc(e,t=At,n){if(!t||e._n)return e;const l=(...i)=>{l._d&&co(-1);const s=qi(t);let o;try{o=e(...i)}finally{qi(s),l._d&&co(1)}return o};return l._n=!0,l._c=!0,l._d=!0,l}function Ie(e,t){if(At===null)return e;const n=wl(At),l=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,o,r,c=Me]=t[i];s&&(me(s)&&(s={mounted:s,updated:s}),s.deep&&nn(o),l.push({dir:s,instance:n,value:o,oldValue:void 0,arg:r,modifiers:c}))}return e}function An(e,t,n,l){const i=e.dirs,s=t&&t.dirs;for(let o=0;o<i.length;o++){const r=i[o];s&&(r.oldValue=s[o].value);let c=r.dir[l];c&&(sn(),Yt(c,n,8,[e.el,r,e,t]),on())}}function pc(e,t){if(pt){let n=pt.provides;const l=pt.parent&&pt.parent.provides;l===n&&(n=pt.provides=Object.create(l)),n[e]=t}}function ji(e,t,n=!1){const l=fd();if(l||qn){let i=qn?qn._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&me(t)?t.call(l&&l.proxy):t}}const hc=Symbol.for("v-scx"),vc=()=>ji(hc);function rt(e,t,n){return Or(e,t,n)}function Or(e,t,n=Me){const{immediate:l,deep:i,flush:s,once:o}=n,r=lt({},n),c=t&&l||!t&&s!=="post";let d;if(ki){if(s==="sync"){const h=vc();d=h.__watcherHandles||(h.__watcherHandles=[])}else if(!c){const h=()=>{};return h.stop=jt,h.resume=jt,h.pause=jt,h}}const a=pt;r.call=(h,g,k)=>Yt(h,a,g,k);let f=!1;s==="post"?r.scheduler=h=>{ot(h,a&&a.suspense)}:s!=="sync"&&(f=!0,r.scheduler=(h,g)=>{g?h():ks(h)}),r.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,a&&(h.id=a.uid,h.i=a))};const v=ac(e,t,r);return ki&&(d?d.push(v):c&&v()),v}function gc(e,t,n){const l=this.proxy,i=Ke(e)?e.includes(".")?Rr(l,e):()=>l[e]:e.bind(l,l);let s;me(t)?s=t:(s=t.handler,n=t);const o=Ii(this),r=Or(i,s.bind(l),n);return o(),r}function Rr(e,t){const n=t.split(".");return()=>{let l=e;for(let i=0;i<n.length&&l;i++)l=l[n[i]];return l}}const Mr=Symbol("_vte"),mc=e=>e.__isTeleport,hi=e=>e&&(e.disabled||e.disabled===""),yc=e=>e&&(e.defer||e.defer===""),Zs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Qs=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zl=(e,t)=>{const n=e&&e.to;return Ke(n)?t?t(n):null:n},Lr={name:"Teleport",__isTeleport:!0,process(e,t,n,l,i,s,o,r,c,d){const{mc:a,pc:f,pbc:v,o:{insert:h,querySelector:g,createText:k,createComment:$}}=d,E=hi(t.props);let{shapeFlag:x,children:w,dynamicChildren:C}=t;if(e==null){const F=t.el=k(""),D=t.anchor=k("");h(F,n,l),h(D,n,l);const H=(P,X)=>{x&16&&a(w,P,X,i,s,o,r,c)},se=()=>{const P=t.target=zl(t.props,g),X=Gl(P,t,k,h);P&&(o!=="svg"&&Zs(P)?o="svg":o!=="mathml"&&Qs(P)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(P),E||(H(P,X),Ui(t,!1)))};E&&(H(n,D),Ui(t,!0)),yc(t.props)||s&&s.pendingBranch?(t.el.__isMounted=!1,ot(()=>{t.el.__isMounted===!1&&(se(),delete t.el.__isMounted)},s)):se()}else{t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,D=t.target=e.target,H=t.targetAnchor=e.targetAnchor;if(e.el.__isMounted===!1){ot(()=>{Lr.process(e,t,n,l,i,s,o,r,c,d)},s);return}const se=hi(e.props),P=se?n:D,X=se?F:H;if(o==="svg"||Zs(D)?o="svg":(o==="mathml"||Qs(D))&&(o="mathml"),C?(v(e.dynamicChildren,C,P,i,s,o,r),$s(e,t,!0)):c||f(e,t,P,X,i,s,o,r,!1),E)se?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Hi(t,n,F,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ne=t.target=zl(t.props,g);ne&&Hi(t,ne,null,d,0)}else se&&Hi(t,D,H,d,1);Ui(t,E)}},remove(e,t,n,{um:l,o:{remove:i}},s){const{shapeFlag:o,children:r,anchor:c,targetStart:d,targetAnchor:a,target:f,props:v}=e;if(f&&(i(d),i(a)),s&&i(c),o&16){const h=s||!hi(v);for(let g=0;g<r.length;g++){const k=r[g];l(k,t,n,h,!!k.dynamicChildren)}}},move:Hi,hydrate:bc};function Hi(e,t,n,{o:{insert:l},m:i},s=2){s===0&&l(e.targetAnchor,t,n);const{el:o,anchor:r,shapeFlag:c,children:d,props:a}=e,f=s===2;if(f&&l(o,t,n),(!f||hi(a))&&c&16)for(let v=0;v<d.length;v++)i(d[v],t,n,2);f&&l(r,t,n)}function bc(e,t,n,l,i,s,{o:{nextSibling:o,parentNode:r,querySelector:c,insert:d,createText:a}},f){function v($,E){let x=E;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 h($,E){E.anchor=f(o($),E,r($),n,l,i,s)}const g=t.target=zl(t.props,c),k=hi(t.props);if(g){const $=g._lpa||g.firstChild;t.shapeFlag&16&&(k?(h(e,t),v(g,$),t.targetAnchor||Gl(g,t,a,d,r(e)===g?e:null)):(t.anchor=o(e),v(g,$),t.targetAnchor||Gl(g,t,a,d),f($&&o($),t,g,n,l,i,s))),Ui(t,k)}else k&&t.shapeFlag&16&&(h(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const wc=Lr;function Ui(e,t){const n=e.ctx;if(n&&n.ut){let l,i;for(t?(l=e.el,i=e.anchor):(l=e.targetStart,i=e.targetAnchor);l&&l!==i;)l.nodeType===1&&l.setAttribute("data-v-owner",n.uid),l=l.nextSibling;n.ut()}}function Gl(e,t,n,l,i=null){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[Mr]=o,e&&(l(s,e,i),l(o,e,i)),o}const _c=Symbol("_leaveCb");function Cs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Cs(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 st(e,t){return me(e)?lt({name:e.name},t,{setup:e}):e}function Dr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function eo(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ji=new WeakMap;function vi(e,t,n,l,i=!1){if(pe(e)){e.forEach((k,$)=>vi(k,t&&(pe(t)?t[$]:t),n,l,i));return}if(gi(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&vi(e,t,n,l.component.subTree);return}const s=l.shapeFlag&4?wl(l.component):l.el,o=i?null:s,{i:r,r:c}=e,d=t&&t.r,a=r.refs===Me?r.refs={}:r.refs,f=r.setupState,v=$e(f),h=f===Me?nr:k=>eo(a,k)?!1:Ee(v,k),g=(k,$)=>!($&&eo(a,$));if(d!=null&&d!==c){if(to(t),Ke(d))a[d]=null,h(d)&&(f[d]=null);else if(Ge(d)){const k=t;g(d,k.k)&&(d.value=null),k.k&&(a[k.k]=null)}}if(me(c))Fi(c,r,12,[o,a]);else{const k=Ke(c),$=Ge(c);if(k||$){const E=()=>{if(e.f){const x=k?h(c)?f[c]:a[c]:g()||!e.k?c.value:a[e.k];if(i)pe(x)&&hs(x,s);else if(pe(x))x.includes(s)||x.push(s);else if(k)a[c]=[s],h(c)&&(f[c]=a[c]);else{const w=[s];g(c,e.k)&&(c.value=w),e.k&&(a[e.k]=w)}}else k?(a[c]=o,h(c)&&(f[c]=o)):$&&(g(c,e.k)&&(c.value=o),e.k&&(a[e.k]=o))};if(o){const x=()=>{E(),Ji.delete(e)};x.id=-1,Ji.set(e,x),ot(x,n)}else to(e),E()}}}function to(e){const t=Ji.get(e);t&&(t.flags|=8,Ji.delete(e))}pl().requestIdleCallback;pl().cancelIdleCallback;const gi=e=>!!e.type.__asyncLoader,Nr=e=>e.type.__isKeepAlive;function xc(e,t){Vr(e,"a",t)}function kc(e,t){Vr(e,"da",t)}function Vr(e,t,n=pt){const l=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ml(t,l,n),n){let i=n.parent;for(;i&&i.parent;)Nr(i.parent.vnode)&&Cc(l,t,n,i),i=i.parent}}function Cc(e,t,n,l){const i=ml(t,e,l,!0);bn(()=>{hs(l[t],i)},n)}function ml(e,t,n=pt,l=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{sn();const r=Ii(n),c=Yt(t,n,e,o);return r(),on(),c});return l?i.unshift(s):i.push(s),s}}const cn=e=>(t,n=pt)=>{(!ki||e==="sp")&&ml(e,(...l)=>t(...l),n)},Ac=cn("bm"),Dn=cn("m"),Sc=cn("bu"),$c=cn("u"),Tc=cn("bum"),bn=cn("um"),Ec=cn("sp"),Fc=cn("rtg"),Ic=cn("rtc");function Pc(e,t=pt){ml("ec",e,t)}const Oc=Symbol.for("v-ndc");function ye(e,t,n,l){let i;const s=n,o=pe(e);if(o||Ke(e)){const r=o&&Mn(e);let c=!1,d=!1;r&&(c=!kt(e),d=rn(e),e=hl(e)),i=new Array(e.length);for(let a=0,f=e.length;a<f;a++)i[a]=t(c?d?Zn(Pt(e[a])):Pt(e[a]):e[a],a,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,s)}else if(Pe(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,s));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,d=r.length;c<d;c++){const a=r[c];i[c]=t(e[a],a,c,s)}}else i=[];return i}const Xl=e=>e?ra(e)?wl(e):Xl(e.parent):null,mi=lt(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=>Xl(e.parent),$root:e=>Xl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Br(e),$forceUpdate:e=>e.f||(e.f=()=>{ks(e.update)}),$nextTick:e=>e.n||(e.n=Tr.bind(e.proxy)),$watch:e=>gc.bind(e)}),Il=(e,t)=>e!==Me&&!e.__isScriptSetup&&Ee(e,t),Rc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:i,props:s,accessCache:o,type:r,appContext:c}=e;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Il(l,t))return o[t]=1,l[t];if(i!==Me&&Ee(i,t))return o[t]=2,i[t];if(Ee(s,t))return o[t]=3,s[t];if(n!==Me&&Ee(n,t))return o[t]=4,n[t];ql&&(o[t]=0)}}const d=mi[t];let a,f;if(d)return t==="$attrs"&&at(e.attrs,"get",""),d(e);if((a=r.__cssModules)&&(a=a[t]))return a;if(n!==Me&&Ee(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,Ee(f,t))return f[t]},set({_:e},t,n){const{data:l,setupState:i,ctx:s}=e;return Il(i,t)?(i[t]=n,!0):l!==Me&&Ee(l,t)?(l[t]=n,!0):Ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:i,props:s,type:o}},r){let c;return!!(n[r]||e!==Me&&r[0]!=="$"&&Ee(e,r)||Il(t,r)||Ee(s,r)||Ee(l,r)||Ee(mi,r)||Ee(i.config.globalProperties,r)||(c=o.__cssModules)&&c[r])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function no(e){return pe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ql=!0;function Mc(e){const t=Br(e),n=e.proxy,l=e.ctx;ql=!1,t.beforeCreate&&io(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:r,provide:c,inject:d,created:a,beforeMount:f,mounted:v,beforeUpdate:h,updated:g,activated:k,deactivated:$,beforeDestroy:E,beforeUnmount:x,destroyed:w,unmounted:C,render:F,renderTracked:D,renderTriggered:H,errorCaptured:se,serverPrefetch:P,expose:X,inheritAttrs:ne,components:he,directives:be,filters:we}=t;if(d&&Lc(d,l,null),o)for(const _e in o){const le=o[_e];me(le)&&(l[_e]=le.bind(n))}if(i){const _e=i.call(n,n);Pe(_e)&&(e.data=_s(_e))}if(ql=!0,s)for(const _e in s){const le=s[_e],xe=me(le)?le.bind(n,n):me(le.get)?le.get.bind(n,n):jt,He=!me(le)&&me(le.set)?le.set.bind(n):jt,K=re({get:xe,set:He});Object.defineProperty(l,_e,{enumerable:!0,configurable:!0,get:()=>K.value,set:z=>K.value=z})}if(r)for(const _e in r)Hr(r[_e],l,n,_e);if(c){const _e=me(c)?c.call(n):c;Reflect.ownKeys(_e).forEach(le=>{pc(le,_e[le])})}a&&io(a,e,"c");function Te(_e,le){pe(le)?le.forEach(xe=>_e(xe.bind(n))):le&&_e(le.bind(n))}if(Te(Ac,f),Te(Dn,v),Te(Sc,h),Te($c,g),Te(xc,k),Te(kc,$),Te(Pc,se),Te(Ic,D),Te(Fc,H),Te(Tc,x),Te(bn,C),Te(Ec,P),pe(X))if(X.length){const _e=e.exposed||(e.exposed={});X.forEach(le=>{Object.defineProperty(_e,le,{get:()=>n[le],set:xe=>n[le]=xe,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===jt&&(e.render=F),ne!=null&&(e.inheritAttrs=ne),he&&(e.components=he),be&&(e.directives=be),P&&Dr(e)}function Lc(e,t,n=jt){pe(e)&&(e=Jl(e));for(const l in e){const i=e[l];let s;Pe(i)?"default"in i?s=ji(i.from||l,i.default,!0):s=ji(i.from||l):s=ji(i),Ge(s)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[l]=s}}function io(e,t,n){Yt(pe(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function Hr(e,t,n,l){let i=l.includes(".")?Rr(n,l):()=>n[l];if(Ke(e)){const s=t[e];me(s)&&rt(i,s)}else if(me(e))rt(i,e.bind(n));else if(Pe(e))if(pe(e))e.forEach(s=>Hr(s,t,n,l));else{const s=me(e.handler)?e.handler.bind(n):t[e.handler];me(s)&&rt(i,s,e)}}function Br(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,r=s.get(t);let c;return r?c=r:!i.length&&!n&&!l?c=t:(c={},i.length&&i.forEach(d=>Zi(c,d,o,!0)),Zi(c,t,o)),Pe(t)&&s.set(t,c),c}function Zi(e,t,n,l=!1){const{mixins:i,extends:s}=t;s&&Zi(e,s,n,!0),i&&i.forEach(o=>Zi(e,o,n,!0));for(const o in t)if(!(l&&o==="expose")){const r=Dc[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Dc={data:lo,props:so,emits:so,methods:ri,computed:ri,beforeCreate:dt,created:dt,beforeMount:dt,mounted:dt,beforeUpdate:dt,updated:dt,beforeDestroy:dt,beforeUnmount:dt,destroyed:dt,unmounted:dt,activated:dt,deactivated:dt,errorCaptured:dt,serverPrefetch:dt,components:ri,directives:ri,watch:Vc,provide:lo,inject:Nc};function lo(e,t){return t?e?function(){return lt(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function Nc(e,t){return ri(Jl(e),Jl(t))}function Jl(e){if(pe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function dt(e,t){return e?[...new Set([].concat(e,t))]:t}function ri(e,t){return e?lt(Object.create(null),e,t):t}function so(e,t){return e?pe(e)&&pe(t)?[...new Set([...e,...t])]:lt(Object.create(null),no(e),no(t??{})):t}function Vc(e,t){if(!e)return t;if(!t)return e;const n=lt(Object.create(null),e);for(const l in t)n[l]=dt(e[l],t[l]);return n}function jr(){return{app:null,config:{isNativeTag:nr,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 Hc=0;function Bc(e,t){return function(l,i=null){me(l)||(l=lt({},l)),i!=null&&!Pe(i)&&(i=null);const s=jr(),o=new WeakSet,r=[];let c=!1;const d=s.app={_uid:Hc++,_component:l,_props:i,_container:null,_context:s,_instance:null,version:yd,get config(){return s.config},set config(a){},use(a,...f){return o.has(a)||(a&&me(a.install)?(o.add(a),a.install(d,...f)):me(a)&&(o.add(a),a(d,...f))),d},mixin(a){return s.mixins.includes(a)||s.mixins.push(a),d},component(a,f){return f?(s.components[a]=f,d):s.components[a]},directive(a,f){return f?(s.directives[a]=f,d):s.directives[a]},mount(a,f,v){if(!c){const h=d._ceVNode||nt(l,i);return h.appContext=s,v===!0?v="svg":v===!1&&(v=void 0),e(h,a,v),c=!0,d._container=a,a.__vue_app__=d,wl(h.component)}},onUnmount(a){r.push(a)},unmount(){c&&(Yt(r,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,f){return s.provides[a]=f,d},runWithContext(a){const f=qn;qn=d;try{return a()}finally{qn=f}}};return d}}let qn=null;const jc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ft(t)}Modifiers`]||e[`${yn(t)}Modifiers`];function Uc(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||Me;let i=n;const s=t.startsWith("update:"),o=s&&jc(l,t.slice(7));o&&(o.trim&&(i=n.map(a=>Ke(a)?a.trim():a)),o.number&&(i=n.map(vs)));let r,c=l[r=Sl(t)]||l[r=Sl(Ft(t))];!c&&s&&(c=l[r=Sl(yn(t))]),c&&Yt(c,e,6,i);const d=l[r+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,Yt(d,e,6,i)}}const Yc=new WeakMap;function Ur(e,t,n=!1){const l=n?Yc:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const s=e.emits;let o={},r=!1;if(!me(e)){const c=d=>{const a=Ur(d,t,!0);a&&(r=!0,lt(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!r?(Pe(e)&&l.set(e,null),null):(pe(s)?s.forEach(c=>o[c]=null):lt(o,s),Pe(e)&&l.set(e,o),o)}function yl(e,t){return!e||!al(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ee(e,t[0].toLowerCase()+t.slice(1))||Ee(e,yn(t))||Ee(e,t))}function oo(e){const{type:t,vnode:n,proxy:l,withProxy:i,propsOptions:[s],slots:o,attrs:r,emit:c,render:d,renderCache:a,props:f,data:v,setupState:h,ctx:g,inheritAttrs:k}=e,$=qi(e);let E,x;try{if(n.shapeFlag&4){const C=i||l,F=C;E=Vt(d.call(F,C,a,f,h,v,g)),x=r}else{const C=t;E=Vt(C.length>1?C(f,{attrs:r,slots:o,emit:c}):C(f,null)),x=t.props?r:Kc(r)}}catch(C){yi.length=0,gl(C,e,1),E=nt(gn)}let w=E;if(x&&k!==!1){const C=Object.keys(x),{shapeFlag:F}=w;C.length&&F&7&&(s&&C.some(ul)&&(x=Wc(x,s)),w=Qn(w,x,!1,!0))}return n.dirs&&(w=Qn(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Cs(w,n.transition),E=w,qi($),E}const Kc=e=>{let t;for(const n in e)(n==="class"||n==="style"||al(n))&&((t||(t={}))[n]=e[n]);return t},Wc=(e,t)=>{const n={};for(const l in e)(!ul(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function zc(e,t,n){const{props:l,children:i,component:s}=e,{props:o,children:r,patchFlag:c}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return l?ro(l,o,d):!!o;if(c&8){const a=t.dynamicProps;for(let f=0;f<a.length;f++){const v=a[f];if(Yr(o,l,v)&&!yl(d,v))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===o?!1:l?o?ro(l,o,d):!0:!!o;return!1}function ro(e,t,n){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const s=l[i];if(Yr(t,e,s)&&!yl(n,s))return!0}return!1}function Yr(e,t,n){const l=e[n],i=t[n];return n==="style"&&Pe(l)&&Pe(i)?!Ei(l,i):l!==i}function Gc({vnode:e,parent:t,suspense:n},l){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=l,e=i),i===e)(e=t.vnode).el=l,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=l)}const Kr={},Wr=()=>Object.create(Kr),zr=e=>Object.getPrototypeOf(e)===Kr;function Xc(e,t,n,l=!1){const i={},s=Wr();e.propsDefaults=Object.create(null),Gr(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=l?i:qu(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function qc(e,t,n,l){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,r=$e(i),[c]=e.propsOptions;let d=!1;if((l||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let f=0;f<a.length;f++){let v=a[f];if(yl(e.emitsOptions,v))continue;const h=t[v];if(c)if(Ee(s,v))h!==s[v]&&(s[v]=h,d=!0);else{const g=Ft(v);i[g]=Zl(c,r,g,h,e,!1)}else h!==s[v]&&(s[v]=h,d=!0)}}}else{Gr(e,t,i,s)&&(d=!0);let a;for(const f in r)(!t||!Ee(t,f)&&((a=yn(f))===f||!Ee(t,a)))&&(c?n&&(n[f]!==void 0||n[a]!==void 0)&&(i[f]=Zl(c,r,f,void 0,e,!0)):delete i[f]);if(s!==r)for(const f in s)(!t||!Ee(t,f))&&(delete s[f],d=!0)}d&&tn(e.attrs,"set","")}function Gr(e,t,n,l){const[i,s]=e.propsOptions;let o=!1,r;if(t)for(let c in t){if(di(c))continue;const d=t[c];let a;i&&Ee(i,a=Ft(c))?!s||!s.includes(a)?n[a]=d:(r||(r={}))[a]=d:yl(e.emitsOptions,c)||(!(c in l)||d!==l[c])&&(l[c]=d,o=!0)}if(s){const c=$e(n),d=r||Me;for(let a=0;a<s.length;a++){const f=s[a];n[f]=Zl(i,c,f,d[f],e,!Ee(d,f))}}return o}function Zl(e,t,n,l,i,s){const o=e[n];if(o!=null){const r=Ee(o,"default");if(r&&l===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&me(c)){const{propsDefaults:d}=i;if(n in d)l=d[n];else{const a=Ii(i);l=d[n]=c.call(null,t),a()}}else l=c;i.ce&&i.ce._setProp(n,l)}o[0]&&(s&&!r?l=!1:o[1]&&(l===""||l===yn(n))&&(l=!0))}return l}const Jc=new WeakMap;function Xr(e,t,n=!1){const l=n?Jc:t.propsCache,i=l.get(e);if(i)return i;const s=e.props,o={},r=[];let c=!1;if(!me(e)){const a=f=>{c=!0;const[v,h]=Xr(f,t,!0);lt(o,v),h&&r.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!s&&!c)return Pe(e)&&l.set(e,zn),zn;if(pe(s))for(let a=0;a<s.length;a++){const f=Ft(s[a]);ao(f)&&(o[f]=Me)}else if(s)for(const a in s){const f=Ft(a);if(ao(f)){const v=s[a],h=o[f]=pe(v)||me(v)?{type:v}:lt({},v),g=h.type;let k=!1,$=!0;if(pe(g))for(let E=0;E<g.length;++E){const x=g[E],w=me(x)&&x.name;if(w==="Boolean"){k=!0;break}else w==="String"&&($=!1)}else k=me(g)&&g.name==="Boolean";h[0]=k,h[1]=$,(k||Ee(h,"default"))&&r.push(f)}}const d=[o,r];return Pe(e)&&l.set(e,d),d}function ao(e){return e[0]!=="$"&&!di(e)}const As=e=>e==="_"||e==="_ctx"||e==="$stable",Ss=e=>pe(e)?e.map(Vt):[Vt(e)],Zc=(e,t,n)=>{if(t._n)return t;const l=fc((...i)=>Ss(t(...i)),n);return l._c=!1,l},qr=(e,t,n)=>{const l=e._ctx;for(const i in e){if(As(i))continue;const s=e[i];if(me(s))t[i]=Zc(i,s,l);else if(s!=null){const o=Ss(s);t[i]=()=>o}}},Jr=(e,t)=>{const n=Ss(t);e.slots.default=()=>n},Zr=(e,t,n)=>{for(const l in t)(n||!As(l))&&(e[l]=t[l])},Qc=(e,t,n)=>{const l=e.slots=Wr();if(e.vnode.shapeFlag&32){const i=t._;i?(Zr(l,t,n),n&&rr(l,"_",i,!0)):qr(t,l)}else t&&Jr(e,t)},ed=(e,t,n)=>{const{vnode:l,slots:i}=e;let s=!0,o=Me;if(l.shapeFlag&32){const r=t._;r?n&&r===1?s=!1:Zr(i,t,n):(s=!t.$stable,qr(t,i)),o=t}else t&&(Jr(e,t),o={default:1});if(s)for(const r in i)!As(r)&&o[r]==null&&delete i[r]},ot=sd;function td(e){return nd(e)}function nd(e,t){const n=pl();n.__VUE__=!0;const{insert:l,remove:i,patchProp:s,createElement:o,createText:r,createComment:c,setText:d,setElementText:a,parentNode:f,nextSibling:v,setScopeId:h=jt,insertStaticContent:g}=e,k=(m,_,T,Y=null,N=null,V=null,J=void 0,q=null,G=!!_.dynamicChildren)=>{if(m===_)return;m&&!ii(m,_)&&(Y=Q(m),z(m,N,V,!0),m=null),_.patchFlag===-2&&(G=!1,_.dynamicChildren=null);const{type:j,ref:ce,shapeFlag:ee}=_;switch(j){case bl:$(m,_,T,Y);break;case gn:E(m,_,T,Y);break;case Yi:m==null&&x(_,T,Y,J);break;case ie:he(m,_,T,Y,N,V,J,q,G);break;default:ee&1?F(m,_,T,Y,N,V,J,q,G):ee&6?be(m,_,T,Y,N,V,J,q,G):(ee&64||ee&128)&&j.process(m,_,T,Y,N,V,J,q,G,R)}ce!=null&&N?vi(ce,m&&m.ref,V,_||m,!_):ce==null&&m&&m.ref!=null&&vi(m.ref,null,V,m,!0)},$=(m,_,T,Y)=>{if(m==null)l(_.el=r(_.children),T,Y);else{const N=_.el=m.el;_.children!==m.children&&d(N,_.children)}},E=(m,_,T,Y)=>{m==null?l(_.el=c(_.children||""),T,Y):_.el=m.el},x=(m,_,T,Y)=>{[m.el,m.anchor]=g(m.children,_,T,Y,m.el,m.anchor)},w=({el:m,anchor:_},T,Y)=>{let N;for(;m&&m!==_;)N=v(m),l(m,T,Y),m=N;l(_,T,Y)},C=({el:m,anchor:_})=>{let T;for(;m&&m!==_;)T=v(m),i(m),m=T;i(_)},F=(m,_,T,Y,N,V,J,q,G)=>{if(_.type==="svg"?J="svg":_.type==="math"&&(J="mathml"),m==null)D(_,T,Y,N,V,J,q,G);else{const j=m.el&&m.el._isVueCE?m.el:null;try{j&&j._beginPatch(),P(m,_,N,V,J,q,G)}finally{j&&j._endPatch()}}},D=(m,_,T,Y,N,V,J,q)=>{let G,j;const{props:ce,shapeFlag:ee,transition:oe,dirs:de}=m;if(G=m.el=o(m.type,V,ce&&ce.is,ce),ee&8?a(G,m.children):ee&16&&se(m.children,G,null,Y,N,Pl(m,V),J,q),de&&An(m,null,Y,"created"),H(G,m,m.scopeId,J,Y),ce){for(const Ae in ce)Ae!=="value"&&!di(Ae)&&s(G,Ae,null,ce[Ae],V,Y);"value"in ce&&s(G,"value",null,ce.value,V),(j=ce.onVnodeBeforeMount)&&Ot(j,Y,m)}de&&An(m,null,Y,"beforeMount");const Ce=id(N,oe);Ce&&oe.beforeEnter(G),l(G,_,T),((j=ce&&ce.onVnodeMounted)||Ce||de)&&ot(()=>{try{j&&Ot(j,Y,m),Ce&&oe.enter(G),de&&An(m,null,Y,"mounted")}finally{}},N)},H=(m,_,T,Y,N)=>{if(T&&h(m,T),Y)for(let V=0;V<Y.length;V++)h(m,Y[V]);if(N){let V=N.subTree;if(_===V||ta(V.type)&&(V.ssContent===_||V.ssFallback===_)){const J=N.vnode;H(m,J,J.scopeId,J.slotScopeIds,N.parent)}}},se=(m,_,T,Y,N,V,J,q,G=0)=>{for(let j=G;j<m.length;j++){const ce=m[j]=q?Jt(m[j]):Vt(m[j]);k(null,ce,_,T,Y,N,V,J,q)}},P=(m,_,T,Y,N,V,J)=>{const q=_.el=m.el;let{patchFlag:G,dynamicChildren:j,dirs:ce}=_;G|=m.patchFlag&16;const ee=m.props||Me,oe=_.props||Me;let de;if(T&&Sn(T,!1),(de=oe.onVnodeBeforeUpdate)&&Ot(de,T,_,m),ce&&An(_,m,T,"beforeUpdate"),T&&Sn(T,!0),(ee.innerHTML&&oe.innerHTML==null||ee.textContent&&oe.textContent==null)&&a(q,""),j?X(m.dynamicChildren,j,q,T,Y,Pl(_,N),V):J||le(m,_,q,null,T,Y,Pl(_,N),V,!1),G>0){if(G&16)ne(q,ee,oe,T,N);else if(G&2&&ee.class!==oe.class&&s(q,"class",null,oe.class,N),G&4&&s(q,"style",ee.style,oe.style,N),G&8){const Ce=_.dynamicProps;for(let Ae=0;Ae<Ce.length;Ae++){const Se=Ce[Ae],Ue=ee[Se],We=oe[Se];(We!==Ue||Se==="value")&&s(q,Se,Ue,We,N,T)}}G&1&&m.children!==_.children&&a(q,_.children)}else!J&&j==null&&ne(q,ee,oe,T,N);((de=oe.onVnodeUpdated)||ce)&&ot(()=>{de&&Ot(de,T,_,m),ce&&An(_,m,T,"updated")},Y)},X=(m,_,T,Y,N,V,J)=>{for(let q=0;q<_.length;q++){const G=m[q],j=_[q],ce=G.el&&(G.type===ie||!ii(G,j)||G.shapeFlag&198)?f(G.el):T;k(G,j,ce,null,Y,N,V,J,!0)}},ne=(m,_,T,Y,N)=>{if(_!==T){if(_!==Me)for(const V in _)!di(V)&&!(V in T)&&s(m,V,_[V],null,N,Y);for(const V in T){if(di(V))continue;const J=T[V],q=_[V];J!==q&&V!=="value"&&s(m,V,q,J,N,Y)}"value"in T&&s(m,"value",_.value,T.value,N)}},he=(m,_,T,Y,N,V,J,q,G)=>{const j=_.el=m?m.el:r(""),ce=_.anchor=m?m.anchor:r("");let{patchFlag:ee,dynamicChildren:oe,slotScopeIds:de}=_;de&&(q=q?q.concat(de):de),m==null?(l(j,T,Y),l(ce,T,Y),se(_.children||[],T,ce,N,V,J,q,G)):ee>0&&ee&64&&oe&&m.dynamicChildren&&m.dynamicChildren.length===oe.length?(X(m.dynamicChildren,oe,T,N,V,J,q),(_.key!=null||N&&_===N.subTree)&&$s(m,_,!0)):le(m,_,T,ce,N,V,J,q,G)},be=(m,_,T,Y,N,V,J,q,G)=>{_.slotScopeIds=q,m==null?_.shapeFlag&512?N.ctx.activate(_,T,Y,J,G):we(_,T,Y,N,V,J,G):Ne(m,_,G)},we=(m,_,T,Y,N,V,J)=>{const q=m.component=dd(m,Y,N);if(Nr(m)&&(q.ctx.renderer=R),pd(q,!1,J),q.asyncDep){if(N&&N.registerDep(q,Te,J),!m.el){const G=q.subTree=nt(gn);E(null,G,_,T),m.placeholder=G.el}}else Te(q,m,_,T,N,V,J)},Ne=(m,_,T)=>{const Y=_.component=m.component;if(zc(m,_,T))if(Y.asyncDep&&!Y.asyncResolved){_e(Y,_,T);return}else Y.next=_,Y.update();else _.el=m.el,Y.vnode=_},Te=(m,_,T,Y,N,V,J)=>{const q=()=>{if(m.isMounted){let{next:ee,bu:oe,u:de,parent:Ce,vnode:Ae}=m;{const gt=Qr(m);if(gt){ee&&(ee.el=Ae.el,_e(m,ee,J)),gt.asyncDep.then(()=>{ot(()=>{m.isUnmounted||j()},N)});return}}let Se=ee,Ue;Sn(m,!1),ee?(ee.el=Ae.el,_e(m,ee,J)):ee=Ae,oe&&Bi(oe),(Ue=ee.props&&ee.props.onVnodeBeforeUpdate)&&Ot(Ue,Ce,ee,Ae),Sn(m,!0);const We=oo(m),Qe=m.subTree;m.subTree=We,k(Qe,We,f(Qe.el),Q(Qe),m,N,V),ee.el=We.el,Se===null&&Gc(m,We.el),de&&ot(de,N),(Ue=ee.props&&ee.props.onVnodeUpdated)&&ot(()=>Ot(Ue,Ce,ee,Ae),N)}else{let ee;const{el:oe,props:de}=_,{bm:Ce,m:Ae,parent:Se,root:Ue,type:We}=m,Qe=gi(_);Sn(m,!1),Ce&&Bi(Ce),!Qe&&(ee=de&&de.onVnodeBeforeMount)&&Ot(ee,Se,_),Sn(m,!0);{Ue.ce&&Ue.ce._hasShadowRoot()&&Ue.ce._injectChildStyle(We,m.parent?m.parent.type:void 0);const gt=m.subTree=oo(m);k(null,gt,T,Y,m,N,V),_.el=gt.el}if(Ae&&ot(Ae,N),!Qe&&(ee=de&&de.onVnodeMounted)){const gt=_;ot(()=>Ot(ee,Se,gt),N)}(_.shapeFlag&256||Se&&gi(Se.vnode)&&Se.vnode.shapeFlag&256)&&m.a&&ot(m.a,N),m.isMounted=!0,_=T=Y=null}};m.scope.on();const G=m.effect=new fr(q);m.scope.off();const j=m.update=G.run.bind(G),ce=m.job=G.runIfDirty.bind(G);ce.i=m,ce.id=m.uid,G.scheduler=()=>ks(ce),Sn(m,!0),j()},_e=(m,_,T)=>{_.component=m;const Y=m.vnode.props;m.vnode=_,m.next=null,qc(m,_.props,Y,T),ed(m,_.children,T),sn(),Js(m),on()},le=(m,_,T,Y,N,V,J,q,G=!1)=>{const j=m&&m.children,ce=m?m.shapeFlag:0,ee=_.children,{patchFlag:oe,shapeFlag:de}=_;if(oe>0){if(oe&128){He(j,ee,T,Y,N,V,J,q,G);return}else if(oe&256){xe(j,ee,T,Y,N,V,J,q,G);return}}de&8?(ce&16&&je(j,N,V),ee!==j&&a(T,ee)):ce&16?de&16?He(j,ee,T,Y,N,V,J,q,G):je(j,N,V,!0):(ce&8&&a(T,""),de&16&&se(ee,T,Y,N,V,J,q,G))},xe=(m,_,T,Y,N,V,J,q,G)=>{m=m||zn,_=_||zn;const j=m.length,ce=_.length,ee=Math.min(j,ce);let oe;for(oe=0;oe<ee;oe++){const de=_[oe]=G?Jt(_[oe]):Vt(_[oe]);k(m[oe],de,T,null,N,V,J,q,G)}j>ce?je(m,N,V,!0,!1,ee):se(_,T,Y,N,V,J,q,G,ee)},He=(m,_,T,Y,N,V,J,q,G)=>{let j=0;const ce=_.length;let ee=m.length-1,oe=ce-1;for(;j<=ee&&j<=oe;){const de=m[j],Ce=_[j]=G?Jt(_[j]):Vt(_[j]);if(ii(de,Ce))k(de,Ce,T,null,N,V,J,q,G);else break;j++}for(;j<=ee&&j<=oe;){const de=m[ee],Ce=_[oe]=G?Jt(_[oe]):Vt(_[oe]);if(ii(de,Ce))k(de,Ce,T,null,N,V,J,q,G);else break;ee--,oe--}if(j>ee){if(j<=oe){const de=oe+1,Ce=de<ce?_[de].el:Y;for(;j<=oe;)k(null,_[j]=G?Jt(_[j]):Vt(_[j]),T,Ce,N,V,J,q,G),j++}}else if(j>oe)for(;j<=ee;)z(m[j],N,V,!0),j++;else{const de=j,Ce=j,Ae=new Map;for(j=Ce;j<=oe;j++){const Be=_[j]=G?Jt(_[j]):Vt(_[j]);Be.key!=null&&Ae.set(Be.key,j)}let Se,Ue=0;const We=oe-Ce+1;let Qe=!1,gt=0;const $t=new Array(We);for(j=0;j<We;j++)$t[j]=0;for(j=de;j<=ee;j++){const Be=m[j];if(Ue>=We){z(Be,N,V,!0);continue}let Ze;if(Be.key!=null)Ze=Ae.get(Be.key);else for(Se=Ce;Se<=oe;Se++)if($t[Se-Ce]===0&&ii(Be,_[Se])){Ze=Se;break}Ze===void 0?z(Be,N,V,!0):($t[Ze-Ce]=j+1,Ze>=gt?gt=Ze:Qe=!0,k(Be,_[Ze],T,null,N,V,J,q,G),Ue++)}const wn=Qe?ld($t):zn;for(Se=wn.length-1,j=We-1;j>=0;j--){const Be=Ce+j,Ze=_[Be],Ri=_[Be+1],Kt=Be+1<ce?Ri.el||ea(Ri):Y;$t[j]===0?k(null,Ze,T,Kt,N,V,J,q,G):Qe&&(Se<0||j!==wn[Se]?K(Ze,T,Kt,2):Se--)}}},K=(m,_,T,Y,N=null)=>{const{el:V,type:J,transition:q,children:G,shapeFlag:j}=m;if(j&6){K(m.component.subTree,_,T,Y);return}if(j&128){m.suspense.move(_,T,Y);return}if(j&64){J.move(m,_,T,R);return}if(J===ie){l(V,_,T);for(let ee=0;ee<G.length;ee++)K(G[ee],_,T,Y);l(m.anchor,_,T);return}if(J===Yi){w(m,_,T);return}if(Y!==2&&j&1&&q)if(Y===0)q.beforeEnter(V),l(V,_,T),ot(()=>q.enter(V),N);else{const{leave:ee,delayLeave:oe,afterLeave:de}=q,Ce=()=>{m.ctx.isUnmounted?i(V):l(V,_,T)},Ae=()=>{V._isLeaving&&V[_c](!0),ee(V,()=>{Ce(),de&&de()})};oe?oe(V,Ce,Ae):Ae()}else l(V,_,T)},z=(m,_,T,Y=!1,N=!1)=>{const{type:V,props:J,ref:q,children:G,dynamicChildren:j,shapeFlag:ce,patchFlag:ee,dirs:oe,cacheIndex:de,memo:Ce}=m;if(ee===-2&&(N=!1),q!=null&&(sn(),vi(q,null,T,m,!0),on()),de!=null&&(_.renderCache[de]=void 0),ce&256){_.ctx.deactivate(m);return}const Ae=ce&1&&oe,Se=!gi(m);let Ue;if(Se&&(Ue=J&&J.onVnodeBeforeUnmount)&&Ot(Ue,_,m),ce&6)Fe(m.component,T,Y);else{if(ce&128){m.suspense.unmount(T,Y);return}Ae&&An(m,null,_,"beforeUnmount"),ce&64?m.type.remove(m,_,T,R,Y):j&&!j.hasOnce&&(V!==ie||ee>0&&ee&64)?je(j,_,T,!1,!0):(V===ie&&ee&384||!N&&ce&16)&&je(G,_,T),Y&&ue(m)}const We=Ce!=null&&de==null;(Se&&(Ue=J&&J.onVnodeUnmounted)||Ae||We)&&ot(()=>{Ue&&Ot(Ue,_,m),Ae&&An(m,null,_,"unmounted"),We&&(m.el=null)},T)},ue=m=>{const{type:_,el:T,anchor:Y,transition:N}=m;if(_===ie){ge(T,Y);return}if(_===Yi){C(m);return}const V=()=>{i(T),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(m.shapeFlag&1&&N&&!N.persisted){const{leave:J,delayLeave:q}=N,G=()=>J(T,V);q?q(m.el,V,G):G()}else V()},ge=(m,_)=>{let T;for(;m!==_;)T=v(m),i(m),m=T;i(_)},Fe=(m,_,T)=>{const{bum:Y,scope:N,job:V,subTree:J,um:q,m:G,a:j}=m;uo(G),uo(j),Y&&Bi(Y),N.stop(),V&&(V.flags|=8,z(J,m,_,T)),q&&ot(q,_),ot(()=>{m.isUnmounted=!0},_)},je=(m,_,T,Y=!1,N=!1,V=0)=>{for(let J=V;J<m.length;J++)z(m[J],_,T,Y,N)},Q=m=>{if(m.shapeFlag&6)return Q(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const _=v(m.anchor||m.el),T=_&&_[Mr];return T?v(T):_};let L=!1;const Oe=(m,_,T)=>{let Y;m==null?_._vnode&&(z(_._vnode,null,null,!0),Y=_._vnode.component):k(_._vnode||null,m,_,null,null,null,T),_._vnode=m,L||(L=!0,Js(Y),Fr(),L=!1)},R={p:k,um:z,m:K,r:ue,mt:we,mc:se,pc:le,pbc:X,n:Q,o:e};return{render:Oe,hydrate:void 0,createApp:Bc(Oe)}}function Pl({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function id(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $s(e,t,n=!1){const l=e.children,i=t.children;if(pe(l)&&pe(i))for(let s=0;s<l.length;s++){const o=l[s];let r=i[s];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[s]=Jt(i[s]),r.el=o.el),!n&&r.patchFlag!==-2&&$s(o,r)),r.type===bl&&(r.patchFlag===-1&&(r=i[s]=Jt(r)),r.el=o.el),r.type===gn&&!r.el&&(r.el=o.el)}}function ld(e){const t=e.slice(),n=[0];let l,i,s,o,r;const c=e.length;for(l=0;l<c;l++){const d=e[l];if(d!==0){if(i=n[n.length-1],e[i]<d){t[l]=i,n.push(l);continue}for(s=0,o=n.length-1;s<o;)r=s+o>>1,e[n[r]]<d?s=r+1:o=r;d<e[n[s]]&&(s>0&&(t[l]=n[s-1]),n[s]=l)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}function Qr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qr(t)}function uo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ea(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ea(t.subTree):null}const ta=e=>e.__isSuspense;function sd(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):dc(e)}const ie=Symbol.for("v-fgt"),bl=Symbol.for("v-txt"),gn=Symbol.for("v-cmt"),Yi=Symbol.for("v-stc"),yi=[];let xt=null;function y(e=!1){yi.push(xt=e?null:[])}function od(){yi.pop(),xt=yi[yi.length-1]||null}let xi=1;function co(e,t=!1){xi+=e,e<0&&xt&&t&&(xt.hasOnce=!0)}function na(e){return e.dynamicChildren=xi>0?xt||zn:null,od(),xi>0&&xt&&xt.push(e),e}function b(e,t,n,l,i,s){return na(u(e,t,n,l,i,s,!0))}function _t(e,t,n,l,i){return na(nt(e,t,n,l,i,!0))}function ia(e){return e?e.__v_isVNode===!0:!1}function ii(e,t){return e.type===t.type&&e.key===t.key}const la=({key:e})=>e??null,Ki=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ke(e)||Ge(e)||me(e)?{i:At,r:e,k:t,f:!!n}:e:null);function u(e,t=null,n=null,l=0,i=null,s=e===ie?0:1,o=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&la(t),ref:t&&Ki(t),scopeId:Pr,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:s,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:At};return r?(Ts(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=Ke(n)?8:16),xi>0&&!o&&xt&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&xt.push(c),c}const nt=rd;function rd(e,t=null,n=null,l=0,i=null,s=!1){if((!e||e===Oc)&&(e=gn),ia(e)){const r=Qn(e,t,!0);return n&&Ts(r,n),xi>0&&!s&&xt&&(r.shapeFlag&6?xt[xt.indexOf(e)]=r:xt.push(r)),r.patchFlag=-2,r}if(md(e)&&(e=e.__vccOpts),t){t=ad(t);let{class:r,style:c}=t;r&&!Ke(r)&&(t.class=Z(r)),Pe(c)&&(vl(c)&&!pe(c)&&(c=lt({},c)),t.style=Le(c))}const o=Ke(e)?1:ta(e)?128:mc(e)?64:Pe(e)?4:me(e)?2:0;return u(e,t,n,l,i,o,s,!0)}function ad(e){return e?vl(e)||zr(e)?lt({},e):e:null}function Qn(e,t,n=!1,l=!1){const{props:i,ref:s,patchFlag:o,children:r,transition:c}=e,d=t?oa(i||{},t):i,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&la(d),ref:t&&t.ref?n&&s?pe(s)?s.concat(Ki(t)):[s,Ki(t)]:Ki(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qn(e.ssContent),ssFallback:e.ssFallback&&Qn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Cs(a,c.clone(a)),a}function tt(e=" ",t=0){return nt(bl,null,e,t)}function sa(e,t){const n=nt(Yi,null,e);return n.staticCount=t,n}function B(e="",t=!1){return t?(y(),_t(gn,null,e)):nt(gn,null,e)}function Vt(e){return e==null||typeof e=="boolean"?nt(gn):pe(e)?nt(ie,null,e.slice()):ia(e)?Jt(e):nt(bl,null,String(e))}function Jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qn(e)}function Ts(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(pe(t))n=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),Ts(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!zr(t)?t._ctx=At:i===3&&At&&(At.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else me(t)?(t={default:t,_ctx:At},n=32):(t=String(t),l&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function oa(...e){const t={};for(let n=0;n<e.length;n++){const l=e[n];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=Z([t.class,l.class]));else if(i==="style")t.style=Le([t.style,l.style]);else if(al(i)){const s=t[i],o=l[i];o&&s!==o&&!(pe(s)&&s.includes(o))?t[i]=s?[].concat(s,o):o:o==null&&s==null&&!ul(i)&&(t[i]=o)}else i!==""&&(t[i]=l[i])}return t}function Ot(e,t,n,l=null){Yt(e,t,7,[n,l])}const ud=jr();let cd=0;function dd(e,t,n){const l=e.type,i=(t?t.appContext:e.appContext)||ud,s={uid:cd++,vnode:e,type:l,parent:t,appContext:i,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(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Xr(l,i),emitsOptions:Ur(l,i),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:l.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Uc.bind(null,s),e.ce&&e.ce(s),s}let pt=null;const fd=()=>pt||At;let Qi,Ql;{const e=pl(),t=(n,l)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(l),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};Qi=t("__VUE_INSTANCE_SETTERS__",n=>pt=n),Ql=t("__VUE_SSR_SETTERS__",n=>ki=n)}const Ii=e=>{const t=pt;return Qi(e),e.scope.on(),()=>{e.scope.off(),Qi(t)}},fo=()=>{pt&&pt.scope.off(),Qi(null)};function ra(e){return e.vnode.shapeFlag&4}let ki=!1;function pd(e,t=!1,n=!1){t&&Ql(t);const{props:l,children:i}=e.vnode,s=ra(e);Xc(e,l,s,t),Qc(e,i,n||t);const o=s?hd(e,t):void 0;return t&&Ql(!1),o}function hd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Rc);const{setup:l}=n;if(l){sn();const i=e.setupContext=l.length>1?gd(e):null,s=Ii(e),o=Fi(l,e,0,[e.props,i]),r=ir(o);if(on(),s(),(r||e.sp)&&!gi(e)&&Dr(e),r){if(o.then(fo,fo),t)return o.then(c=>{po(e,c)}).catch(c=>{gl(c,e,0)});e.asyncDep=o}else po(e,o)}else aa(e)}function po(e,t,n){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pe(t)&&(e.setupState=Sr(t)),aa(e)}function aa(e,t,n){const l=e.type;e.render||(e.render=l.render||jt);{const i=Ii(e);sn();try{Mc(e)}finally{on(),i()}}}const vd={get(e,t){return at(e,"get",""),e[t]}};function gd(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,vd),slots:e.slots,emit:e.emit,expose:t}}function wl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sr(Ju(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mi)return mi[n](e)},has(t,n){return n in t||n in mi}})):e.proxy}function md(e){return me(e)&&"__vccOpts"in e}const re=(e,t)=>oc(e,t,ki),yd="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 es;const ho=typeof window<"u"&&window.trustedTypes;if(ho)try{es=ho.createPolicy("vue",{createHTML:e=>e})}catch{}const ua=es?e=>es.createHTML(e):e=>e,bd="http://www.w3.org/2000/svg",wd="http://www.w3.org/1998/Math/MathML",qt=typeof document<"u"?document:null,vo=qt&&qt.createElement("template"),_d={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const i=t==="svg"?qt.createElementNS(bd,e):t==="mathml"?qt.createElementNS(wd,e):n?qt.createElement(e,{is:n}):qt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>qt.createTextNode(e),createComment:e=>qt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{vo.innerHTML=ua(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=vo.content;if(l==="svg"||l==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},xd=Symbol("_vtc");function kd(e,t,n){const l=e[xd];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const go=Symbol("_vod"),Cd=Symbol("_vsh"),Ad=Symbol(""),Sd=/(?:^|;)\s*display\s*:/;function $d(e,t,n){const l=e.style,i=Ke(n);let s=!1;if(n&&!i){if(t)if(Ke(t))for(const o of t.split(";")){const r=o.slice(0,o.indexOf(":")).trim();n[r]==null&&Wi(l,r,"")}else for(const o in t)n[o]==null&&Wi(l,o,"");for(const o in n)o==="display"&&(s=!0),Wi(l,o,n[o])}else if(i){if(t!==n){const o=l[Ad];o&&(n+=";"+o),l.cssText=n,s=Sd.test(n)}}else t&&e.removeAttribute("style");go in e&&(e[go]=s?l.display:"",e[Cd]&&(l.display="none"))}const mo=/\s*!important$/;function Wi(e,t,n){if(pe(n))n.forEach(l=>Wi(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const l=Td(e,t);mo.test(n)?e.setProperty(yn(l),n.replace(mo,""),"important"):e[l]=n}}const yo=["Webkit","Moz","ms"],Ol={};function Td(e,t){const n=Ol[t];if(n)return n;let l=Ft(t);if(l!=="filter"&&l in e)return Ol[t]=l;l=or(l);for(let i=0;i<yo.length;i++){const s=yo[i]+l;if(s in e)return Ol[t]=s}return t}const bo="http://www.w3.org/1999/xlink";function wo(e,t,n,l,i,s=$u(t)){l&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(bo,t.slice(6,t.length)):e.setAttributeNS(bo,t,n):n==null||s&&!ar(n)?e.removeAttribute(t):e.setAttribute(t,s?"":St(n)?String(n):n)}function _o(e,t,n,l,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ua(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const r=s==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(r!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const r=typeof e[t];r==="boolean"?n=ar(n):n==null&&r==="string"?(n="",o=!0):r==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function On(e,t,n,l){e.addEventListener(t,n,l)}function Ed(e,t,n,l){e.removeEventListener(t,n,l)}const xo=Symbol("_vei");function Fd(e,t,n,l,i=null){const s=e[xo]||(e[xo]={}),o=s[t];if(l&&o)o.value=l;else{const[r,c]=Id(t);if(l){const d=s[t]=Rd(l,i);On(e,r,d,c)}else o&&(Ed(e,r,o,c),s[t]=void 0)}}const ko=/(?:Once|Passive|Capture)$/;function Id(e){let t;if(ko.test(e)){t={};let l;for(;l=e.match(ko);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):yn(e.slice(2)),t]}let Rl=0;const Pd=Promise.resolve(),Od=()=>Rl||(Pd.then(()=>Rl=0),Rl=Date.now());function Rd(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;Yt(Md(l,n.value),t,5,[l])};return n.value=e,n.attached=Od(),n}function Md(e,t){if(pe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const Co=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ld=(e,t,n,l,i,s)=>{const o=i==="svg";t==="class"?kd(e,l,o):t==="style"?$d(e,n,l):al(t)?ul(t)||Fd(e,t,n,l,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Dd(e,t,l,o))?(_o(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&wo(e,t,l,o,s,t!=="value")):e._isVueCE&&(Nd(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ke(l)))?_o(e,Ft(t),l,s,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),wo(e,t,l,o))};function Dd(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Co(t)&&me(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Co(t)&&Ke(n)?!1:t in e}function Nd(e,t){const n=e._def.props;if(!n)return!1;const l=Ft(t);return Array.isArray(n)?n.some(i=>Ft(i)===l):Object.keys(n).some(i=>Ft(i)===l)}const el=e=>{const t=e.props["onUpdate:modelValue"]||!1;return pe(t)?n=>Bi(t,n):t};function Vd(e){e.target.composing=!0}function Ao(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Jn=Symbol("_assign");function So(e,t,n){return t&&(e=e.trim()),n&&(e=vs(e)),e}const Ye={created(e,{modifiers:{lazy:t,trim:n,number:l}},i){e[Jn]=el(i);const s=l||i.props&&i.props.type==="number";On(e,t?"change":"input",o=>{o.target.composing||e[Jn](So(e.value,n,s))}),(n||s)&&On(e,"change",()=>{e.value=So(e.value,n,s)}),t||(On(e,"compositionstart",Vd),On(e,"compositionend",Ao),On(e,"change",Ao))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:i,number:s}},o){if(e[Jn]=el(o),e.composing)return;const r=(s||e.type==="number")&&!/^0\d/.test(e.value)?vs(e.value):e.value,c=t??"";if(r===c)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(l&&t===n||i&&e.value.trim()===c)||(e.value=c)}},$n={deep:!0,created(e,t,n){e[Jn]=el(n),On(e,"change",()=>{const l=e._modelValue,i=Hd(e),s=e.checked,o=e[Jn];if(pe(l)){const r=ur(l,i),c=r!==-1;if(s&&!c)o(l.concat(i));else if(!s&&c){const d=[...l];d.splice(r,1),o(d)}}else if(cl(l)){const r=new Set(l);s?r.add(i):r.delete(i),o(r)}else o(ca(e,s))})},mounted:$o,beforeUpdate(e,t,n){e[Jn]=el(n),$o(e,t,n)}};function $o(e,{value:t,oldValue:n},l){e._modelValue=t;let i;if(pe(t))i=ur(t,l.props.value)>-1;else if(cl(t))i=t.has(l.props.value);else{if(t===n)return;i=Ei(t,ca(e,!0))}e.checked!==i&&(e.checked=i)}function Hd(e){return"_value"in e?e._value:e.value}function ca(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Bd=["ctrl","shift","alt","meta"],jd={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)=>Bd.some(n=>e[`${n}Key`]&&!t.includes(n))},Ve=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((i,...s)=>{for(let o=0;o<t.length;o++){const r=jd[t[o]];if(r&&r(i,t))return}return e(i,...s)}))},Ud={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ct=(e,t)=>{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(i=>{if(!("key"in i))return;const s=yn(i.key);if(t.some(o=>o===s||Ud[o]===s))return e(i)}))},Yd=lt({patchProp:Ld},_d);let To;function Kd(){return To||(To=td(Yd))}const Wd=((...e)=>{const t=Kd().createApp(...e),{mount:n}=t;return t.mount=l=>{const i=Gd(l);if(!i)return;const s=t._component;!me(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,zd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function zd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Gd(e){return Ke(e)?document.querySelector(e):e}const Xd={class:"layout-controls"},qd={class:"control-row"},Jd={class:"button-group"},Zd=["onClick"],Qd={class:"control-row"},ef={class:"button-group"},tf={class:"control-row"},nf={class:"button-group"},lf=["title","onClick"],sf={class:"control-row"},of={class:"button-group"},rf=["title","onClick"],af={class:"control-row"},uf={class:"num-input-group"},cf=["value"],df={class:"num-value"},ff=st({__name:"LayoutControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t,i=re(()=>n.computedStyles.display||"block"),s=re(()=>n.computedStyles["flex-direction"]||"row"),o=re(()=>n.computedStyles["align-items"]||"stretch"),r=re(()=>n.computedStyles["justify-content"]||"flex-start"),c=re(()=>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"}],v=re(()=>i.value==="flex"||i.value==="inline-flex");function h(g){return parseFloat(g)||0}return(g,k)=>(y(),b("div",Xd,[u("div",qd,[k[5]||(k[5]=u("label",{class:"control-label"},"Display",-1)),u("div",Jd,[(y(),b(ie,null,ye(d,$=>u("button",{key:$,class:Z(["seg-btn",{active:i.value===$}]),onClick:E=>l("change","display",$)},I($),11,Zd)),64))])]),v.value?(y(),b(ie,{key:0},[u("div",Qd,[k[6]||(k[6]=u("label",{class:"control-label"},"Direction",-1)),u("div",ef,[u("button",{class:Z(["seg-btn icon-btn",{active:s.value==="row"}]),onClick:k[0]||(k[0]=$=>l("change","flex-direction","row")),title:"Row"},"→",2),u("button",{class:Z(["seg-btn icon-btn",{active:s.value==="row-reverse"}]),onClick:k[1]||(k[1]=$=>l("change","flex-direction","row-reverse")),title:"Row Reverse"},"←",2),u("button",{class:Z(["seg-btn icon-btn",{active:s.value==="column"}]),onClick:k[2]||(k[2]=$=>l("change","flex-direction","column")),title:"Column"},"↓",2),u("button",{class:Z(["seg-btn icon-btn",{active:s.value==="column-reverse"}]),onClick:k[3]||(k[3]=$=>l("change","flex-direction","column-reverse")),title:"Column Reverse"},"↑",2)])]),u("div",tf,[k[7]||(k[7]=u("label",{class:"control-label"},"Align",-1)),u("div",nf,[(y(),b(ie,null,ye(a,$=>u("button",{key:$.value,class:Z(["seg-btn",{active:o.value===$.value}]),title:$.label,onClick:E=>l("change","align-items",$.value)},I($.icon),11,lf)),64))])]),u("div",sf,[k[8]||(k[8]=u("label",{class:"control-label"},"Justify",-1)),u("div",of,[(y(),b(ie,null,ye(f,$=>u("button",{key:$.value,class:Z(["seg-btn",{active:r.value===$.value}]),title:$.label,onClick:E=>l("change","justify-content",$.value)},I($.icon),11,rf)),64))])]),u("div",af,[k[9]||(k[9]=u("label",{class:"control-label"},"Gap",-1)),u("div",uf,[u("input",{type:"range",min:"0",max:"64",step:"1",value:h(c.value),class:"range-input",onInput:k[4]||(k[4]=$=>l("change","gap",$.target.value+"px"))},null,40,cf),u("span",df,I(h(c.value))+"px",1)])])],64)):B("",!0)]))}}),vt=(e,t)=>{const n=e.__vccOpts||e;for(const[l,i]of t)n[l]=i;return n},pf=vt(ff,[["__scopeId","data-v-548da941"]]),hf={class:"spacing-controls"},vf={class:"box-model"},gf={class:"margin-box"},mf=["value"],yf=["value"],bf=["value"],wf=["value"],_f={class:"padding-box"},xf=["value"],kf=["value"],Cf=["value"],Af=["value"],Sf={class:"content-box"},$f=st({__name:"SpacingControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(c){return parseFloat(c)||0}function s(c){const d=c.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=re(()=>s(n.computedStyles.padding||"0")),r=re(()=>s(n.computedStyles.margin||"0"));return(c,d)=>(y(),b("div",hf,[u("div",vf,[u("div",gf,[d[9]||(d[9]=u("span",{class:"box-label margin-label"},"margin",-1)),u("input",{class:"side-input top",value:r.value.top,onChange:d[0]||(d[0]=a=>l("change","margin-top",a.target.value+"px"))},null,40,mf),u("input",{class:"side-input right",value:r.value.right,onChange:d[1]||(d[1]=a=>l("change","margin-right",a.target.value+"px"))},null,40,yf),u("input",{class:"side-input bottom",value:r.value.bottom,onChange:d[2]||(d[2]=a=>l("change","margin-bottom",a.target.value+"px"))},null,40,bf),u("input",{class:"side-input left",value:r.value.left,onChange:d[3]||(d[3]=a=>l("change","margin-left",a.target.value+"px"))},null,40,wf),u("div",_f,[d[8]||(d[8]=u("span",{class:"box-label padding-label"},"padding",-1)),u("input",{class:"side-input top",value:o.value.top,onChange:d[4]||(d[4]=a=>l("change","padding-top",a.target.value+"px"))},null,40,xf),u("input",{class:"side-input right",value:o.value.right,onChange:d[5]||(d[5]=a=>l("change","padding-right",a.target.value+"px"))},null,40,kf),u("input",{class:"side-input bottom",value:o.value.bottom,onChange:d[6]||(d[6]=a=>l("change","padding-bottom",a.target.value+"px"))},null,40,Cf),u("input",{class:"side-input left",value:o.value.left,onChange:d[7]||(d[7]=a=>l("change","padding-left",a.target.value+"px"))},null,40,Af),u("div",Sf,I(i(n.computedStyles.width||"0").toFixed(0))+" × "+I(i(n.computedStyles.height||"0").toFixed(0)),1)])])])]))}}),Tf=vt($f,[["__scopeId","data-v-e06fb04c"]]),Ef={class:"size-controls"},Ff={class:"size-row"},If={class:"size-field"},Pf={class:"size-input-group"},Of=["value"],Rf={class:"size-field"},Mf={class:"size-input-group"},Lf=["value"],Df={class:"control-row"},Nf={class:"button-group"},Vf=["onClick"],Hf=st({__name:"SizeControls",props:{computedStyles:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(d){return parseFloat(d)||0}const s=re(()=>n.computedStyles.width||"auto"),o=re(()=>n.computedStyles.height||"auto"),r=re(()=>n.computedStyles.overflow||"visible"),c=["visible","hidden","scroll","auto"];return(d,a)=>(y(),b("div",Ef,[u("div",Ff,[u("div",If,[a[3]||(a[3]=u("label",{class:"control-label"},"Width",-1)),u("div",Pf,[u("input",{class:"size-input",value:i(s.value),type:"number",onChange:a[0]||(a[0]=f=>l("change","width",f.target.value+"px"))},null,40,Of),a[2]||(a[2]=u("span",{class:"size-unit"},"px",-1))])]),u("div",Rf,[a[5]||(a[5]=u("label",{class:"control-label"},"Height",-1)),u("div",Mf,[u("input",{class:"size-input",value:i(o.value),type:"number",onChange:a[1]||(a[1]=f=>l("change","height",f.target.value+"px"))},null,40,Lf),a[4]||(a[4]=u("span",{class:"size-unit"},"px",-1))])])]),u("div",Df,[a[6]||(a[6]=u("label",{class:"control-label"},"Overflow",-1)),u("div",Nf,[(y(),b(ie,null,ye(c,f=>u("button",{key:f,class:Z(["seg-btn",{active:r.value===f}]),onClick:v=>l("change","overflow",f)},I(f),11,Vf)),64))])])]))}}),Bf=vt(Hf,[["__scopeId","data-v-c3ca7e31"]]),jf=[{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"}}],Uf=["50","100","200","300","400","500","600","700","800","900","950"],Ml=U([]),Yf=20;function ts(e){const t=e.match(/\d+/g);if(!t||t.length<3)return"#000000";const[n,l,i]=t.map(Number);return"#"+[n,l,i].map(s=>s.toString(16).padStart(2,"0")).join("")}function Kf(e,t){var l;if(!e||e==="inherit"||e==="initial"||e==="unset")return null;const n=t.createElement("span");n.style.display="none",n.style.color="",t.body.appendChild(n);try{n.style.color=e;const i=(l=t.defaultView)==null?void 0:l.getComputedStyle(n).color;return!i||i===""?null:ts(i)}finally{n.remove()}}function Wf(e){var s;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&&((s=r.selectorText)!=null&&s.includes(":root")))for(let c=0;c<r.style.length;c++){const d=r.style[c];d.startsWith("--")&&n.add(d)}}catch{}const l=getComputedStyle(t),i=[];for(const o of n){const r=l.getPropertyValue(o).trim(),c=Kf(r,e);c&&i.push({label:o,value:c,source:"css-var"})}return i}function zf(e){const t=U([]);let n=!1;const l=re(()=>jf.map(c=>({name:c.name,swatches:Uf.map(d=>({label:`${c.name.toLowerCase()}-${d}`,value:c.shades[d],source:"tailwind"}))}))),i=re(()=>t.value.length===0?null:{name:"App Variables",swatches:t.value});function s(){const c=e.value;c&&(t.value=Wf(c),n=!0)}function o(){n||s()}function r(c){const d=c.toLowerCase();Ml.value=[{label:d,value:d,source:"recent"},...Ml.value.filter(a=>a.value!==d)].slice(0,Yf)}return{tailwindCategories:l,cssVarCategory:i,recentColors:Ml,ensureScanned:o,refreshCssVars:s,addRecentColor:r}}const Gf={class:"picker-trigger"},Xf=["value"],qf={key:0,class:"color-match"},Jf={class:"palette-tabs"},Zf={key:0,class:"palette-body"},Qf={class:"family-label"},ep={class:"swatch-row"},tp=["title","onClick"],np={key:1,class:"palette-body"},ip={key:0,class:"var-grid"},lp=["onClick"],sp={class:"var-name"},op={class:"var-hex"},rp={key:1,class:"empty-msg"},ap={key:2,class:"palette-body"},up={key:0,class:"swatch-grid"},cp=["title","onClick"],dp={key:1,class:"empty-msg"},fp=st({__name:"ColorPalettePicker",props:{modelValue:{},iframeDoc:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,{tailwindCategories:i,cssVarCategory:s,recentColors:o,ensureScanned:r,addRecentColor:c}=zf(ic(n,"iframeDoc")),d=U(!1),a=U("tailwind"),f=U(null),v=U(null);function h(){d.value=!d.value,d.value&&r()}function g(E){l("update:modelValue",E),c(E),d.value=!1}function k(E){var w,C;if(!d.value)return;const x=E.target;(w=f.value)!=null&&w.contains(x)||(C=v.value)!=null&&C.contains(x)||(d.value=!1)}const $=re(()=>{var w,C;const E=(w=n.modelValue)==null?void 0:w.toLowerCase();if(!E)return null;for(const F of i.value){const D=F.swatches.find(H=>H.value.toLowerCase()===E);if(D)return D.label}const x=(C=s.value)==null?void 0:C.swatches.find(F=>F.value.toLowerCase()===E);return x?x.label:null});return Dn(()=>{document.addEventListener("mousedown",k)}),bn(()=>{document.removeEventListener("mousedown",k)}),(E,x)=>(y(),b("div",{class:"color-palette-picker",ref_key:"triggerRef",ref:v},[u("div",Gf,[u("input",{type:"color",value:e.modelValue,class:"color-swatch",onInput:x[0]||(x[0]=w=>E.$emit("update:modelValue",w.target.value))},null,40,Xf),u("button",{class:Z(["palette-btn",{active:d.value}]),onClick:h,title:"Color palette"},[...x[4]||(x[4]=[sa('<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?(y(),b("span",qf,I($.value),1)):B("",!0)]),d.value?(y(),b("div",{key:0,class:"palette-popover",ref_key:"popoverRef",ref:f},[u("div",Jf,[u("button",{class:Z(["ptab",{active:a.value==="tailwind"}]),onClick:x[1]||(x[1]=w=>a.value="tailwind")},"Tailwind",2),u("button",{class:Z(["ptab",{active:a.value==="css-var"}]),onClick:x[2]||(x[2]=w=>a.value="css-var")},"App Vars",2),u("button",{class:Z(["ptab",{active:a.value==="recent"}]),onClick:x[3]||(x[3]=w=>a.value="recent")},"Recent",2)]),a.value==="tailwind"?(y(),b("div",Zf,[(y(!0),b(ie,null,ye(O(i),w=>(y(),b("div",{key:w.name,class:"color-family"},[u("span",Qf,I(w.name),1),u("div",ep,[(y(!0),b(ie,null,ye(w.swatches,C=>{var F;return y(),b("button",{key:C.value,class:Z(["swatch",{selected:C.value.toLowerCase()===((F=e.modelValue)==null?void 0:F.toLowerCase())}]),style:Le({background:C.value}),title:C.label,onClick:D=>g(C.value)},null,14,tp)}),128))])]))),128))])):B("",!0),a.value==="css-var"?(y(),b("div",np,[O(s)?(y(),b("div",ip,[(y(!0),b(ie,null,ye(O(s).swatches,w=>{var C;return y(),b("button",{key:w.label,class:Z(["var-swatch",{selected:w.value.toLowerCase()===((C=e.modelValue)==null?void 0:C.toLowerCase())}]),onClick:F=>g(w.value)},[u("span",{class:"var-color",style:Le({background:w.value})},null,4),u("span",sp,I(w.label),1),u("span",op,I(w.value),1)],10,lp)}),128))])):(y(),b("p",rp,"No color variables detected"))])):B("",!0),a.value==="recent"?(y(),b("div",ap,[O(o).length?(y(),b("div",up,[(y(!0),b(ie,null,ye(O(o),w=>{var C;return y(),b("button",{key:w.value,class:Z(["swatch large",{selected:w.value.toLowerCase()===((C=e.modelValue)==null?void 0:C.toLowerCase())}]),style:Le({background:w.value}),title:w.value,onClick:F=>g(w.value)},null,14,cp)}),128))])):(y(),b("p",dp,"No colors used yet"))])):B("",!0)],512)):B("",!0)],512))}}),ns=vt(fp,[["__scopeId","data-v-b0ade670"]]),pp={class:"appearance-controls"},hp={class:"control-row"},vp={class:"color-input-group"},gp={class:"color-value"},mp={class:"control-row"},yp={class:"color-input-group"},bp={class:"color-value"},wp={class:"control-row"},_p={class:"num-input-group"},xp=["value"],kp={class:"num-value"},Cp={class:"control-row"},Ap={class:"button-group"},Sp=["onClick"],$p={class:"control-row"},Tp={class:"num-input-group"},Ep=["value"],Fp={class:"num-value"},Ip={class:"control-row"},Pp={class:"num-input-group"},Op=["value"],Rp={class:"num-value"},Mp=st({__name:"AppearanceControls",props:{computedStyles:{},iframeDoc:{}},emits:["change"],setup(e,{emit:t}){const n=e,l=t;function i(v){return parseFloat(v)||0}const s=re(()=>n.computedStyles["background-color"]||"rgba(0,0,0,0)"),o=re(()=>n.computedStyles.color||"#000"),r=re(()=>i(n.computedStyles["font-size"]||"16")),c=re(()=>n.computedStyles["font-weight"]||"400"),d=re(()=>i(n.computedStyles["border-radius"]||"0")),a=re(()=>i(n.computedStyles.opacity||"1")),f=["100","300","400","500","600","700","900"];return(v,h)=>(y(),b("div",pp,[u("div",hp,[h[5]||(h[5]=u("label",{class:"control-label"},"Background",-1)),u("div",vp,[nt(ns,{modelValue:O(ts)(s.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[0]||(h[0]=g=>l("change","background-color",g))},null,8,["modelValue","iframeDoc"]),u("span",gp,I(s.value),1)])]),u("div",mp,[h[6]||(h[6]=u("label",{class:"control-label"},"Text Color",-1)),u("div",yp,[nt(ns,{modelValue:O(ts)(o.value),iframeDoc:e.iframeDoc,"onUpdate:modelValue":h[1]||(h[1]=g=>l("change","color",g))},null,8,["modelValue","iframeDoc"]),u("span",bp,I(o.value),1)])]),u("div",wp,[h[7]||(h[7]=u("label",{class:"control-label"},"Font Size",-1)),u("div",_p,[u("input",{type:"range",min:"8",max:"72",step:"1",value:r.value,class:"range-input",onInput:h[2]||(h[2]=g=>l("change","font-size",g.target.value+"px"))},null,40,xp),u("span",kp,I(r.value)+"px",1)])]),u("div",Cp,[h[8]||(h[8]=u("label",{class:"control-label"},"Font Weight",-1)),u("div",Ap,[(y(),b(ie,null,ye(f,g=>u("button",{key:g,class:Z(["seg-btn",{active:c.value===g}]),onClick:k=>l("change","font-weight",g)},I(g),11,Sp)),64))])]),u("div",$p,[h[9]||(h[9]=u("label",{class:"control-label"},"Border Radius",-1)),u("div",Tp,[u("input",{type:"range",min:"0",max:"50",step:"1",value:d.value,class:"range-input",onInput:h[3]||(h[3]=g=>l("change","border-radius",g.target.value+"px"))},null,40,Ep),u("span",Fp,I(d.value)+"px",1)])]),u("div",Ip,[h[10]||(h[10]=u("label",{class:"control-label"},"Opacity",-1)),u("div",Pp,[u("input",{type:"range",min:"0",max:"1",step:"0.05",value:a.value,class:"range-input",onInput:h[4]||(h[4]=g=>l("change","opacity",g.target.value))},null,40,Op),u("span",Rp,I((a.value*100).toFixed(0))+"%",1)])])]))}}),Lp=vt(Mp,[["__scopeId","data-v-47449e0a"]]);let Ht=null,is=0,Ll=null;const ai=new Map;function Dp(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/__annotask/ws`}function da(){try{Ht=new WebSocket(Dp()),Ht.onopen=()=>{is=0,console.log("[Annotask] WebSocket connected")},Ht.onmessage=e=>{try{const t=JSON.parse(e.data);if(t.event){const n=ai.get(t.event);if(n)for(const l of n)l(t.data)}}catch{}},Ht.onclose=()=>{Ht=null,Eo()},Ht.onerror=()=>{}}catch{Eo()}}function Eo(){if(Ll)return;is++;const e=Math.min(1e3*Math.pow(2,is-1),3e4);Ll=setTimeout(()=>{Ll=null,da()},e)}function fa(e,t){return ai.has(e)||ai.set(e,new Set),ai.get(e).add(t),()=>{var n;(n=ai.get(e))==null||n.delete(t)}}function Np(e,t){(Ht==null?void 0:Ht.readyState)===WebSocket.OPEN&&Ht.send(JSON.stringify({event:e,data:t,timestamp:Date.now()}))}da();const ls=U(null),ss=U(!1),pa=U(!0);let Fo=!1;async function Dl(){try{const t=await(await fetch("/__annotask/api/design-spec")).json();ls.value=t,ss.value=!!t.initialized}catch{ls.value=null,ss.value=!1}finally{pa.value=!1}}function Es(){return Fo||(Fo=!0,Dl(),fa("designspec:updated",()=>Dl())),{designSpec:ls,isInitialized:ss,isLoading:pa,refetch:Dl}}const os=[{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"}],Zt=U(null),Qt=U(null),en=U(null),Dt=U(!1);try{const e=localStorage.getItem("annotask:viewport");if(e){const t=JSON.parse(e);Zt.value=t.presetId??null,Qt.value=t.customWidth??null,en.value=t.customHeight??null,Dt.value=t.rotated??!1}}catch{}function Vp(){localStorage.setItem("annotask:viewport",JSON.stringify({presetId:Zt.value,customWidth:Qt.value,customHeight:en.value,rotated:Dt.value}))}rt([Zt,Qt,en,Dt],Vp);function Fs(){const e=re(()=>Zt.value?os.find(o=>o.id===Zt.value)??null:null),t=re(()=>!Zt.value&&!Qt.value&&!en.value),n=re(()=>{const o=e.value;if(o){const r=Dt.value?o.height:o.width,c=Dt.value?o.width:o.height;return{width:r,height:c,label:o.label}}return Qt.value||en.value?{width:Qt.value,height:en.value,label:"Custom"}:{width:null,height:null,label:"Full Width"}});function l(o){Zt.value=(o==null?void 0:o.id)??null,Qt.value=null,en.value=null,Dt.value=!1}function i(o,r){Zt.value=null,Qt.value=o,en.value=r,Dt.value=!1}function s(){Dt.value=!Dt.value}return{activePreset:e,activePresetId:Zt,customWidth:Qt,customHeight:en,rotated:Dt,effectiveViewport:n,isFullWidth:t,selectPreset:l,setCustomDimensions:i,toggleRotate:s,VIEWPORT_PRESETS:os}}const Io=100,dn=U([]);function ha(){function e(i,s,o){const r={};for(const[c,d]of Object.entries(o))d!==""&&(r[c]=d);dn.value.push({event:i,route:s,data:r}),dn.value.length>Io&&dn.value.splice(0,dn.value.length-Io)}function t(){const i=[];for(const s of dn.value)if(s.event==="route_change"){const o=s.data.path||s.route;i[i.length-1]!==o&&i.push(o)}else i.length===0&&s.route&&i.push(s.route);return i}function n(i){const s=dn.value.slice(-20).map(o=>{if(o.route===i){const{route:r,...c}=o;return c}return o});return{current_route:i,navigation_path:t(),recent_actions:s}}function l(){dn.value=[]}return{push:e,snapshotForChange:n,clear:l,history:dn}}const et=U([]);let fn=0;const wt=new Map;function Tn(e,t){Np(e,t)}function Hp(){function e(a,f,v,h,g){const k=et.value.find($=>$.type==="style_update"&&$.file===g.file&&$.line===(parseInt(g.line)||0)&&$.property===f&&wt.get($.id)===a);if(k)k.after=v,k.description=`Set ${f} to ${v}`;else{fn++;const $=`s${fn}`;et.value.push({id:$,type:"style_update",description:`Set ${f} to ${v}`,file:g.file,section:"style",line:parseInt(g.line)||0,component:g.component,...g.mfe?{mfe:g.mfe}:{},element:"element",property:f,before:h,after:v}),wt.set($,a)}}function t(a,f){fn++;const v=`ci${fn}`,h=a.position==="append"||a.position==="prepend",g={id:v,type:"component_insert",description:`Insert <${f.tag}> ${a.position} in ${a.component}`,file:a.file,section:"template",line:parseInt(a.line)||0,component:a.component,insert_inside:h?{component:a.component}:void 0,insert_position:a.position,inserted:{tag:f.tag,library:f.library,props:f.defaultProps,classes:f.defaultClasses,text_content:f.defaultTextContent}};return et.value.push(g),v}function n(a){fn++;const f=`an${fn}`,v={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 et.value.push(v),f}function l(a,f,v,h){const g=parseInt(h.line)||0,k=et.value.find(E=>E.type!=="class_update"||E.file!==h.file||E.line!==g?!1:wt.get(E.id)===a);if(k)return k.after={classes:v},k.description="Update classes",k.id;fn++;const $=`cl${fn}`;return et.value.push({id:$,type:"class_update",description:"Update classes",file:h.file,section:"template",line:g,component:h.component,...h.mfe?{mfe:h.mfe}:{},element:"element",before:{classes:f},after:{classes:v}}),wt.set($,a),$}function i(){if(et.value.length===0)return null;const a=et.value.pop();if(a.type==="style_update"){const f=wt.get(a.id);return wt.delete(a.id),Tn("report:updated",d.value),{type:"style",eid:f,property:a.property,value:a.before}}else if(a.type==="class_update"){const f=wt.get(a.id);return wt.delete(a.id),Tn("report:updated",d.value),{type:"class",eid:f,classes:a.before.classes}}else if(a.type==="component_insert"){const f=wt.get(a.id);return wt.delete(a.id),Tn("report:updated",d.value),{type:"insert_remove",eid:f}}return Tn("report:updated",d.value),null}function s(a){et.value=et.value.filter(f=>f.id!==a),wt.delete(a)}function o(a,f){et.value=et.value.filter(v=>v.type!=="annotation"?!0:!(v.file===a&&v.line===f))}function r(){const a=[];for(const f of et.value)if(f.type==="component_insert"){const v=wt.get(f.id);v&&a.push(v)}return et.value=[],wt.clear(),Tn("changes:cleared",{}),a}function c(a){const f=typeof a.line=="number"&&Number.isFinite(a.line)?a.line:0,v={id:a.id,type:a.type,description:a.description||"",file:a.file||"",section:a.section,line:f};switch(a.type){case"style_update":return{...v,component:a.component,element:a.element,property:a.property,before:a.before,after:a.after};case"class_update":return{...v,component:a.component,element:a.element,before:a.before,after:a.after};case"component_insert":return{...v,insert_inside:a.insert_inside,insert_position:a.insert_position,component:a.inserted};case"component_move":return{...v,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{...v,component:a.component,intent:a.intent,action:a.action,context:a.context};default:return null}}const d=re(()=>{var D;if(et.value.length===0)return null;const a=et.value.filter(H=>H.type==="component_insert"||H.type==="component_move"||H.type==="annotation"?!0:H.type==="class_update"?H.before.classes!==H.after.classes:H.before!==H.after);if(a.length===0)return null;const f=a.map(c).filter(Boolean),{designSpec:v}=Es(),h=v.value,g=((D=h==null?void 0:h.framework)==null?void 0:D.name)||"html",k=h!=null&&h.framework?{framework:g,styling:h.framework.styling||[],root:""}:{framework:"html",styling:[],root:""},{effectiveViewport:$}=Fs(),E=$.value,x=E.width||E.height?{width:E.width,height:E.height}:void 0,{snapshotForChange:w}=ha(),C=w(window.location.pathname),F=C.recent_actions.length>0?C:void 0;return{version:"1.0",project:k,...x?{viewport:x}:{},...F?{interaction_history:F}:{},changes:f}});return rt(()=>d.value,a=>{Tn("report:updated",a)},{deep:!0}),{changes:et,applyStyle:e,recordInsert:t,recordAnnotation:n,recordClassChange:l,removeChange:s,removeAnnotationsByFile:o,undo:i,clearChanges:r,report:d,broadcast:Tn}}const Nl=localStorage.getItem("annotask:mode"),hn=U(Nl&&["select","interact","pin","arrow","draw","highlight"].includes(Nl)?Nl:"interact");function Po(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":hn.value="select";break;case"i":hn.value="interact";break;case"p":hn.value="pin";break;case"a":hn.value="arrow";break;case"d":hn.value="draw";break;case"h":hn.value="highlight";break}}rt(hn,e=>localStorage.setItem("annotask:mode",e));function Bp(){return Dn(()=>document.addEventListener("keydown",Po)),bn(()=>document.removeEventListener("keydown",Po)),{mode:hn}}function jp(e){const t=U(!1),n=U([]);function l(){var d;try{return((d=e.value)==null?void 0:d.contentDocument)??null}catch{return null}}function i(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 s(){const d=l();if(!d){n.value=[];return}const a=[],f=d.querySelectorAll("*"),v=d.defaultView;if(v){for(const h of f){if(h.nodeType!==1)continue;const g=v.getComputedStyle(h),k=g.display;if(!k.includes("flex")&&!k.includes("grid"))continue;const $=i(h);if(!$||$.width<20||$.height<20)continue;const E=k.includes("grid"),x=E?"grid":"flex",w=E?"grid":g.flexDirection,C={x:$.x,y:$.y,width:$.width,height:$.height,display:x,direction:w,columnGap:parseFloat(g.columnGap)||0,rowGap:parseFloat(g.rowGap)||0,el:h};if(E){const F=g.gridTemplateColumns,D=g.gridTemplateRows;C.templateColumns=F,C.templateRows=D,F&&F!=="none"&&(C.columns=F.split(/\s+/).map(H=>parseFloat(H)||0).filter(H=>H>0)),D&&D!=="none"&&(C.rows=D.split(/\s+/).map(H=>parseFloat(H)||0).filter(H=>H>0))}a.push(C)}n.value=a}}function o(){t.value=!t.value,t.value?s():n.value=[]}function r(d,a){const f=d.el;if(!f)return null;const v=f.ownerDocument.defaultView;if(!v)return null;const h=v.getComputedStyle(f),g=a==="col"?"grid-template-columns":"grid-template-rows",k=h.getPropertyValue(g)||"",$=k,E=k&&k!=="none"?k+" 1fr":"1fr";return f.style.setProperty(g,E),s(),{el:f,property:g,before:$,after:E}}function c(d){const a=d.el;if(!a)return null;const v=a.ownerDocument.createElement("div");return v.style.minWidth="60px",v.style.minHeight="40px",v.style.border="2px dashed #a855f7",v.style.borderRadius="4px",v.style.background="rgba(168,85,247,0.05)",v.setAttribute("data-annotask-placeholder","true"),a.appendChild(v),s(),{parentEl:a,childEl:v}}return{showOverlay:t,containers:n,toggle:o,scan:s,addTrack:r,addChild:c}}const Rt=U([]),Vn=U([]),En=U([]),Fn=U([]),In=U([]),Et=U("/"),Hn=U(null),li=U(null),si=U(null),oi=U(null);let ct=0;function Up(){function e(P){Et.value=P}const t=re(()=>Rt.value.filter(P=>P.route===Et.value)),n=re(()=>En.value.filter(P=>P.route===Et.value)),l=re(()=>Fn.value.filter(P=>P.route===Et.value)),i=re(()=>In.value.filter(P=>P.route===Et.value));function s(P,X,ne){ct++;const he={id:`pin-${ct}`,number:ct,file:P.file,line:parseInt(P.line)||0,component:P.component,elementTag:P.elementTag,elementClasses:P.elementClasses,clickX:X,clickY:ne,note:"",route:Et.value,timestamp:Date.now()};return Rt.value.push(he),Hn.value=he.id,he}function o(P){Rt.value=Rt.value.filter(X=>X.id!==P),Hn.value===P&&(Hn.value=null)}function r(P,X){const ne=Rt.value.find(he=>he.id===P);ne&&(ne.note=X)}function c(P,X){const ne=Rt.value.find(he=>he.id===P);ne&&(ne.action=X)}function d(P,X){return Rt.value.filter(ne=>ne.file===P&&ne.line===X)}const a=re(()=>Rt.value.find(P=>P.id===Hn.value)||null);function f(P,X){ct++;const ne={id:`sticky-${ct}`,number:ct,x:P-60,y:X-60,width:120,height:120,text:"",color:"yellow",route:Et.value,timestamp:Date.now()};return Vn.value.push(ne),li.value=ne.id,ne}function v(P){Vn.value=Vn.value.filter(X=>X.id!==P),li.value===P&&(li.value=null)}function h(P,X){const ne=Vn.value.find(he=>he.id===P);ne&&Object.assign(ne,X)}function g(P,X,ne,he,be){ct++;const we={id:`arrow-${ct}`,number:ct,fromX:P,fromY:X,toX:ne,toY:he,label:be||"Move here",route:Et.value,timestamp:Date.now()};return En.value.push(we),si.value=we.id,we}function k(P){En.value=En.value.filter(X=>X.id!==P),si.value===P&&(si.value=null)}function $(P,X){const ne=En.value.find(he=>he.id===P);ne&&Object.assign(ne,X)}function E(P,X,ne,he){ct++;const be={id:`section-${ct}`,number:ct,x:P,y:X,width:ne,height:he,prompt:"",route:Et.value,timestamp:Date.now()};return Fn.value.push(be),oi.value=be.id,be}function x(P){Fn.value=Fn.value.filter(X=>X.id!==P),oi.value===P&&(oi.value=null)}function w(P,X){const ne=Fn.value.find(he=>he.id===P);ne&&Object.assign(ne,X)}const C=U(null);function F(P,X){ct++;const ne={id:`hl-${ct}`,number:ct,selectedText:P,prompt:"",file:X.file,line:X.line,component:X.component,elementTag:X.elementTag,route:Et.value,timestamp:Date.now()};return In.value.push(ne),C.value=ne.id,ne}function D(P){In.value=In.value.filter(X=>X.id!==P),C.value===P&&(C.value=null)}function H(P,X){const ne=In.value.find(he=>he.id===P);ne&&Object.assign(ne,X)}function se(){Rt.value=[],Vn.value=[],En.value=[],Fn.value=[],In.value=[],Hn.value=null,li.value=null,si.value=null,oi.value=null}return{pins:Rt,stickyNotes:Vn,arrows:En,drawnSections:Fn,highlights:In,routePins:t,routeArrows:n,routeSections:l,routeHighlights:i,activeRoute:Et,setRoute:e,selectedPinId:Hn,selectedStickyId:li,selectedArrowId:si,selectedSectionId:oi,selectedHighlightId:C,selectedPin:a,addPin:s,removePin:o,updatePinNote:r,setPinAction:c,getPinsForElement:d,addStickyNote:f,removeStickyNote:v,updateStickyNote:h,addArrow:g,removeArrow:k,updateArrow:$,addDrawnSection:E,removeDrawnSection:x,updateDrawnSection:w,addHighlight:F,removeHighlight:D,updateHighlight:H,clearAll:se}}let Yp=0;const ln=new Map,ui=new Map;let an=null,Pi="*",Oi=!1,tl=[];function va(e){const t=e.data;if(!(!t||t.source!=="annotask-client")&&!(an&&e.source!==an)){if(t.type==="bridge:ready"){Pi=e.origin||"*",Oi=!0;for(const n of tl)n();tl=[],Oo("bridge:ready",t.payload);return}if(t.id&&ln.has(t.id)){const n=ln.get(t.id);clearTimeout(n.timer),ln.delete(t.id),n.resolve(t.payload);return}Oo(t.type,t.payload)}}function Oo(e,t){const n=ui.get(e);if(n)for(const l of n)l(t)}function Kp(e){an=e,Oi=!1,Pi="*",window.addEventListener("message",va)}function Wp(){window.removeEventListener("message",va);for(const[,e]of ln)clearTimeout(e.timer),e.reject(new Error("bridge destroyed"));ln.clear(),an=null,Oi=!1,tl=[]}function zp(e){for(const[,t]of ln)clearTimeout(t.timer),t.reject(new Error("bridge reset"));ln.clear(),an=e,Oi=!1,Pi="*"}function Ro(e){if(Oi){e();return}tl.push(e)}function Gp(e,t={}){if(!an)return;const n={type:e,payload:t,source:"annotask-shell"};an.postMessage(n,Pi)}function Re(e,t={},n=5e3){return new Promise((l,i)=>{if(!an){i(new Error("bridge not connected"));return}const s=`req-${++Yp}`,o=setTimeout(()=>{ln.delete(s),i(new Error(`bridge timeout: ${e}`))},n);ln.set(s,{resolve:l,reject:i,timer:o});const r={type:e,id:s,payload:t,source:"annotask-shell"};an.postMessage(r,Pi)})}function Mo(e,t){return ui.has(e)||ui.set(e,new Set),ui.get(e).add(t),()=>{var n;(n=ui.get(e))==null||n.delete(t)}}function Xp(e){const t=U("/"),n=U(!1);function l(){var z;const K=(z=e.value)==null?void 0:z.contentWindow;K&&(zp(K),n.value=!1,Ro(()=>{n.value=!0}),Mo("route:changed",ue=>{t.value=ue.path}))}function i(){var z;const K=(z=e.value)==null?void 0:z.contentWindow;K&&Kp(K)}function s(){Wp()}function o(K){const z=e.value;if(!z)return null;const ue=z.getBoundingClientRect();return{x:ue.left+K.x,y:ue.top+K.y,width:K.width,height:K.height}}function r(K,z){const ue=e.value;if(!ue)return null;const ge=ue.getBoundingClientRect();return{x:K-ge.left,y:z-ge.top}}async function c(K,z){const ue=r(K,z);if(!ue||ue.x<0||ue.y<0)return null;const ge=e.value;if(!ge)return null;const Fe=ge.getBoundingClientRect();if(ue.x>Fe.width||ue.y>Fe.height)return null;try{const je=await Re("resolve:at-point",ue,500);return je?(je.rect=o(je.rect)||je.rect,je):null}catch{return null}}async function d(K,z,ue){try{const ge=await Re("resolve:template-group",{file:K,line:z,tagName:ue});return ge.rects=ge.rects.map(Fe=>o(Fe)||Fe),ge}catch{return{eids:[],rects:[]}}}async function a(K){try{const z=await Re("resolve:rect",{eid:K});return z?o(z.rect)||z.rect:null}catch{return null}}async function f(K){if(K.length===0)return[];try{return(await Re("resolve:rects",{eids:[...K]})).rects.map(ue=>ue?o(ue)||ue:null)}catch{return K.map(()=>null)}}async function v(K,z){try{return(await Re("style:get-computed",{eid:K,properties:z})).styles}catch{return{}}}async function h(K,z,ue){try{return(await Re("style:apply",{eid:K,property:z,value:ue})).before}catch{return""}}async function g(K,z,ue){try{return(await Re("style:apply-batch",{eids:[...K],property:z,value:ue})).befores}catch{return K.map(()=>"")}}async function k(K,z){try{return(await Re("class:set",{eid:K,classes:z})).before}catch{return""}}async function $(K,z){try{return(await Re("class:set-batch",{eids:[...K],classes:z})).befores}catch{return K.map(()=>"")}}async function E(K,z,ue){try{await Re("style:undo",{eid:K,property:z,value:ue})}catch{}}async function x(K,z){try{await Re("class:undo",{eid:K,classes:z})}catch{}}async function w(K){try{return await Re("classify:element",{eid:K})}catch{return null}}async function C(){try{const K=await Re("layout:scan");for(const z of K.containers)z.rect=o(z.rect)||z.rect;return K.containers}catch{return[]}}async function F(K,z){try{return await Re("layout:add-track",{eid:K,axis:z})}catch{return null}}async function D(K){try{return await Re("layout:add-child",{eid:K})}catch{return null}}async function H(){try{return(await Re("check:source-mapping")).hasMapping}catch{return!1}}async function se(K,z){try{await Re("theme:inject-css",{css:K,styleId:z})}catch{}}async function P(K){try{await Re("theme:remove-css",{styleId:K})}catch{}}async function X(){try{return(await Re("palette:scan-vars")).swatches}catch{return[]}}async function ne(){try{const K=await Re("route:current");return t.value=K.path,K.path}catch{return"/"}}async function he(K,z,ue,ge){try{return(await Re("insert:placeholder",{targetEid:K,position:z,tag:ue,...ge||{}})).placeholderEid}catch{return""}}async function be(K){try{await Re("insert:remove",{eid:K})}catch{}}async function we(K,z,ue){try{await Re("move:element",{eid:K,targetEid:z,position:ue})}catch{}}async function Ne(K,z,ue,ge){try{return await Re("insert:component",{targetEid:K,position:z,componentName:ue,props:ge})}catch{return{eid:"",mounted:!1}}}const Te=Ne;async function _e(K){try{return await Re("resolve:element-context",{eid:K})}catch{return null}}async function le(K){try{return await Re("screenshot:capture",{rect:K},15e3)}catch{return{error:"timeout"}}}async function xe(K){try{return await Re("a11y:scan",{eid:K},15e3)}catch{return{violations:[],error:"timeout"}}}function He(K){Gp("mode:set",{mode:K})}return{currentRoute:t,bridgeReady:n,mountBridge:i,unmountBridge:s,initBridgeForIframe:l,toShellRect:o,toIframeCoords:r,resolveElementAt:c,findTemplateGroup:d,getElementRect:a,getElementRects:f,getComputedStyles:v,applyStyleVia:h,applyStyleBatch:g,setClass:k,setClassBatch:$,undoStyle:E,undoClass:x,classifyElement:w,getElementContext:_e,captureScreenshot:le,scanA11y:xe,scanLayout:C,layoutAddTrack:F,layoutAddChild:D,checkSourceMapping:H,injectThemeCss:se,removeThemeCss:P,scanColorVars:X,getCurrentRoute:ne,insertPlaceholder:he,removePlaceholder:be,moveElement:we,insertComponent:Ne,insertVueComponent:Te,setMode:He,onBridgeEvent:Mo,onBridgeReady:Ro}}function qp(e,t,n,l){const i=U(null),s=U(null);let o=null;async function r(f){const v=n();if(v==="arrow"){o={x:f.clientX,y:f.clientY},i.value={fromX:f.clientX,fromY:f.clientY,toX:f.clientX,toY:f.clientY};const h=await t(f.clientX,f.clientY);i.value&&h&&(i.value={...i.value,fromRect:h.rect})}else v==="draw"&&(o={x:f.clientX,y:f.clientY},s.value={x:f.clientX,y:f.clientY,width:0,height:0})}let c=null;function d(f){if(!o)return;const v=n();if(v==="arrow"&&i.value){i.value={...i.value,toX:f.clientX,toY:f.clientY},c&&clearTimeout(c);const h=f.clientX,g=f.clientY;c=setTimeout(async()=>{const k=await t(h,g);i.value&&(i.value={...i.value,toRect:k==null?void 0:k.rect})},50)}else if(v==="draw"&&s.value){const h=Math.min(o.x,f.clientX),g=Math.min(o.y,f.clientY),k=Math.abs(f.clientX-o.x),$=Math.abs(f.clientY-o.y);s.value={x:h,y:g,width:k,height:$}}}async function a(f){if(!o)return;c&&(clearTimeout(c),c=null);const v=n();if(v==="arrow"&&i.value){const h=i.value;if(Math.abs(h.toX-h.fromX)>20||Math.abs(h.toY-h.fromY)>20){const g=await t(h.fromX,h.fromY),k=await t(h.toX,h.toY),$=e.addArrow(h.fromX,h.fromY,h.toX,h.toY);g&&e.updateArrow($.id,{fromFile:g.file,fromLine:parseInt(g.line)||0,fromComponent:g.component}),k&&e.updateArrow($.id,{toFile:k.file,toLine:parseInt(k.line)||0}),e.updateArrow($.id,{label:""}),l==null||l($.id,g,k)}i.value=null}else if(v==="draw"&&s.value){const h=s.value;if(h.width>30&&h.height>30){const g=await t(h.x+h.width/2,h.y),k=e.addDrawnSection(h.x,h.y,h.width,h.height);if(g){const $=h.y>((o==null?void 0:o.y)||0)?"below":"above";e.updateDrawnSection(k.id,{nearFile:g.file,nearLine:parseInt(g.line)||0,nearComponent:g.component,placement:$})}}s.value=null}o=null}return{drawingArrow:i,drawingRect:s,onCanvasPointerDown:r,onCanvasPointerMove:d,onCanvasPointerUp:a}}function Jp(e){const t=U(!1),n=U(null),l=U(null),i=U(null);function s(){t.value=!0}function o(v){l.value={x:v.clientX,y:v.clientY},n.value={x:v.clientX,y:v.clientY,width:0,height:0}}function r(v){if(!l.value)return;const h=Math.min(l.value.x,v.clientX),g=Math.min(l.value.y,v.clientY);n.value={x:h,y:g,width:Math.abs(v.clientX-l.value.x),height:Math.abs(v.clientY-l.value.y)}}async function c(){let v=null;if(n.value&&n.value.width>30&&n.value.height>30){const g=e.toIframeCoords(n.value.x,n.value.y),k=e.toIframeCoords(n.value.x+n.value.width,n.value.y+n.value.height);g&&k&&(v={x:g.x,y:g.y,width:k.x-g.x,height:k.y-g.y})}t.value=!1,n.value=null,l.value=null;const h=await e.captureScreenshot(v);if(h.error||!h.dataUrl){console.warn("Screenshot failed:",h.error);return}try{const g=await fetch("/__annotask/api/screenshots",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:h.dataUrl})}),{filename:k}=await g.json();i.value=k}catch{console.warn("Screenshot upload failed")}}function d(){t.value=!1,n.value=null,l.value=null}function a(){i.value=null}function f(){const v=i.value;return i.value=null,v}return{snipActive:t,snipRect:n,snipStart:l,pendingScreenshot:i,startSnip:s,onSnipDown:o,onSnipMove:r,onSnipUp:c,cancelSnip:d,removeScreenshot:a,consumeScreenshot:f}}function Zp(e){const t=e.showShortcuts;function n(l){var r;const i=l.ctrlKey||l.metaKey;if(i&&l.key==="z"&&!l.shiftKey){l.preventDefault(),e.doUndo();return}const s=(r=l.target)==null?void 0:r.tagName;if(s==="INPUT"||s==="TEXTAREA"||s==="SELECT")return;const o=l.key;if(o==="?"||o==="/"&&l.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")&&!i){e.layoutOverlayToggle();return}if((o==="t"||o==="T")&&!i){e.activePanel.value=e.activePanel.value==="tasks"?"inspector":"tasks";return}}return Dn(()=>{document.addEventListener("keydown",n)}),bn(()=>{document.removeEventListener("keydown",n)}),{showShortcuts:t}}function Qp(e,t,n,l){const i=U([]),s=U(!1),o=U(null),r=U(!1),c=U(""),d=re(()=>{var h;const v=new Set;for(const g of t.tasks.value)g.type==="a11y_fix"&&((h=g.context)!=null&&h.rule)&&v.add(g.context.rule);return v});async function a(v="element"){var k,$,E;s.value=!0,o.value=null;const h=v==="element"?(k=n.value)==null?void 0:k.eid:void 0;c.value=h?`<${($=n.value)==null?void 0:$.tagName}> · ${(E=n.value)==null?void 0:E.component}`:"full page";const g=await e.scanA11y(h);i.value=g.violations,o.value=g.error||null,s.value=!1,r.value=!0}function f(v){const h=v.elements||[],g=h.find(k=>k.file);t.createTask({type:"a11y_fix",description:`Fix accessibility: ${v.help}`,file:(g==null?void 0:g.file)||"",line:g!=null&&g.line?parseInt(g.line):0,component:(g==null?void 0:g.component)||"",route:l.value,context:{rule:v.id,impact:v.impact,description:v.description,help:v.help,helpUrl:v.helpUrl,affected_elements:v.nodes,elements:h.map(k=>({html:k.html,selector:k.target,fix:k.failureSummary,...k.file?{file:k.file,line:k.line,component:k.component}:{}}))}})}return{a11yViolations:i,a11yLoading:s,a11yError:o,a11yScanned:r,a11yScanTarget:c,a11yTaskRules:d,scanA11y:a,createA11yTask:f}}const eh={class:"mode-toolbar"},th=st({__name:"ModeToolbar",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),b("div",eh,[u("button",{class:Z(["mode-btn mode-interact",{active:e.modelValue==="interact"}]),onClick:i[0]||(i[0]=s=>n("update:modelValue","interact")),title:"Interact (I)"},[...i[6]||(i[6]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M18 8a6 6 0 0 0-12 0c0 7 6 13 6 13s6-6 6-13z"}),u("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"}),u("path",{d:"M9 21h6"})],-1)])],2),u("button",{class:Z(["mode-btn",{active:e.modelValue==="select"}]),onClick:i[1]||(i[1]=s=>n("update:modelValue","select")),title:"Select (V)"},[...i[7]||(i[7]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1)])],2),i[12]||(i[12]=u("span",{class:"mode-sep"},null,-1)),u("button",{class:Z(["mode-btn",{active:e.modelValue==="pin"}]),onClick:i[2]||(i[2]=s=>n("update:modelValue","pin")),title:"Pin Note (P)"},[...i[8]||(i[8]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"12",cy:"10",r:"3"}),u("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),u("button",{class:Z(["mode-btn arrow",{active:e.modelValue==="arrow"}]),onClick:i[3]||(i[3]=s=>n("update:modelValue","arrow")),title:"Arrow (A)"},[...i[9]||(i[9]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),u("polyline",{points:"12 5 19 12 12 19"})],-1)])],2),u("button",{class:Z(["mode-btn draw",{active:e.modelValue==="draw"}]),onClick:i[4]||(i[4]=s=>n("update:modelValue","draw")),title:"Draw Section (D)"},[...i[10]||(i[10]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2","stroke-dasharray":"4 2"}),u("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),u("line",{x1:"8",y1:"12",x2:"16",y2:"12"})],-1)])],2),u("button",{class:Z(["mode-btn mode-highlight",{active:e.modelValue==="highlight"}]),onClick:i[5]||(i[5]=s=>n("update:modelValue","highlight")),title:"Highlight Text (H)"},[...i[11]||(i[11]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M12 20h9"}),u("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})],-1)])],2)]))}}),nh=vt(th,[["__scopeId","data-v-90efa075"]]),ih={key:0,class:"separator"},lh=["disabled","onClick"],sh={class:"item-label"},oh={key:0,class:"item-shortcut"},rh=st({__name:"ContextMenu",props:{visible:{type:Boolean},x:{},y:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,l=t,i=U(null),s=[{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){l("action",d),l("close")}function r(d){var a;n.visible&&((a=i.value)!=null&&a.contains(d.target)||l("close"))}function c(d){d.key==="Escape"&&l("close")}return Dn(()=>{document.addEventListener("mousedown",r),document.addEventListener("keydown",c)}),bn(()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",c)}),(d,a)=>(y(),_t(wc,{to:"body"},[e.visible?(y(),b("div",{key:0,ref_key:"menuRef",ref:i,class:"context-menu",style:Le({left:e.x+"px",top:e.y+"px"})},[(y(),b(ie,null,ye(s,f=>(y(),b(ie,{key:f.id},[f.id==="separator"?(y(),b("div",ih)):(y(),b("button",{key:1,class:Z(["menu-item",{disabled:!f.enabled}]),disabled:!f.enabled,onClick:v=>f.enabled&&o(f.id)},[u("span",sh,I(f.label),1),f.shortcut?(y(),b("span",oh,I(f.shortcut),1)):B("",!0)],10,lh))],64))),64))],4)):B("",!0)]))}}),ah=vt(rh,[["__scopeId","data-v-b4795b28"]]),uh=["onClick"],ch={class:"pin-number"},dh=["onClick"],fh=st({__name:"PinOverlay",props:{pins:{},selectedPinId:{},iframeOffset:{}},emits:["select-pin","remove-pin"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(!0),b(ie,null,ye(e.pins,s=>(y(),b("div",{key:s.id,class:Z(["pin",{selected:s.id===e.selectedPinId,"has-action":!!s.action,"has-note":!!s.note}]),style:Le({left:e.iframeOffset.x+s.clickX+"px",top:e.iframeOffset.y+s.clickY+"px"}),onClick:Ve(o=>n("select-pin",s.id),["stop"])},[u("span",ch,I(s.number),1),u("button",{class:"pin-remove",onClick:Ve(o=>n("remove-pin",s.id),["stop"])},"×",8,dh)],14,uh))),128))}}),ph=vt(fh,[["__scopeId","data-v-006ef709"]]),hh={class:"arrow-svg"},vh=["onClick"],gh=["d","stroke","stroke-width"],mh=["cx","cy"],yh=["cx","cy"],bh=["x","y"],wh=["transform","onClick"],_h={key:0},xh=["d"],kh=["d"],Ch=["d"],Ah=["cx","cy"],Sh=st({__name:"ArrowOverlay",props:{arrows:{},selectedId:{},drawingArrow:{}},emits:["select","remove"],setup(e,{emit:t}){const n=t;function l(r,c,d,a,f,v){let h=r,g=c;if(f){const D=f.x+f.width/2,H=f.y+f.height/2,se=Math.atan2(a-H,d-D);h=D+Math.cos(se)*(f.width/2+4),g=H+Math.sin(se)*(f.height/2+4)}let k=d,$=a;if(v){const D=v.x+v.width/2,H=v.y+v.height/2,se=Math.atan2(g-H,h-D);k=D+Math.cos(se)*(v.width/2+4),$=H+Math.sin(se)*(v.height/2+4)}const E=k-h,x=h+E*.4,w=g,C=h+E*.6;return`M ${h} ${g} C ${x} ${w}, ${C} ${$}, ${k} ${$}`}function i(r,c,d,a){const f=d-r,v=r+f*.4,h=c,g=r+f*.6;return`M ${r} ${c} C ${v} ${h}, ${g} ${a}, ${d} ${a}`}function s(r,c,d,a){return{x:(r+d)/2,y:(c+a)/2-10}}function o(r){return`M ${r.x} ${r.y} h ${r.width} v ${r.height} h ${-r.width} Z`}return(r,c)=>(y(),b("svg",hh,[c[1]||(c[1]=u("defs",null,[u("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[u("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#ef4444"})]),u("marker",{id:"arrowhead-drawing",markerWidth:"10",markerHeight:"7",refX:"9",refY:"3.5",orient:"auto"},[u("polygon",{points:"0 0, 10 3.5, 0 7",fill:"#3b82f6"})])],-1)),(y(!0),b(ie,null,ye(e.arrows,d=>(y(),b("g",{key:d.id,onClick:Ve(a=>n("select",d.id),["stop"])},[u("path",{d:i(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,gh),u("circle",{cx:d.fromX,cy:d.fromY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,mh),u("circle",{cx:d.toX,cy:d.toY,r:"5",fill:"#ef4444",opacity:"0.8"},null,8,yh),d.label?(y(),b("text",{key:0,x:s(d.fromX,d.fromY,d.toX,d.toY).x,y:s(d.fromX,d.fromY,d.toX,d.toY).y,"text-anchor":"middle",class:"arrow-label"},I(d.label),9,bh)):B("",!0),d.id===e.selectedId?(y(),b("g",{key:1,class:"arrow-delete",transform:`translate(${(d.fromX+d.toX)/2+20}, ${(d.fromY+d.toY)/2-20})`,onClick:Ve(a=>n("remove",d.id),["stop"])},[...c[0]||(c[0]=[u("circle",{r:"8",fill:"#ef4444"},null,-1),u("text",{"text-anchor":"middle",dy:"3.5",fill:"white","font-size":"10","font-weight":"bold"},"×",-1)])],8,wh)):B("",!0)],8,vh))),128)),e.drawingArrow?(y(),b("g",_h,[e.drawingArrow.fromRect?(y(),b("path",{key:0,d:o(e.drawingArrow.fromRect),fill:"none",stroke:"#3b82f6","stroke-width":"2","stroke-dasharray":"4 2",opacity:"0.6"},null,8,xh)):B("",!0),e.drawingArrow.toRect?(y(),b("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,kh)):B("",!0),u("path",{d:l(e.drawingArrow.fromX,e.drawingArrow.fromY,e.drawingArrow.toX,e.drawingArrow.toY,e.drawingArrow.fromRect,e.drawingArrow.toRect),fill:"none",stroke:"#3b82f6","stroke-width":"2.5","stroke-dasharray":"6 3","marker-end":"url(#arrowhead-drawing)",opacity:"0.8"},null,8,Ch),u("circle",{cx:e.drawingArrow.fromX,cy:e.drawingArrow.fromY,r:"5",fill:"#3b82f6",opacity:"0.6"},null,8,Ah)])):B("",!0)]))}}),$h=vt(Sh,[["__scopeId","data-v-1d2c9ec9"]]),Th=["onClick"],Eh={class:"section-header"},Fh={class:"section-badge"},Ih={key:0,class:"section-placement"},Ph=["onClick"],Oh=["value","onInput","onBlur"],Rh={class:"section-dims"},Mh=st({__name:"DrawnSectionOverlay",props:{sections:{},selectedId:{},drawingRect:{}},emits:["select","remove","update-prompt","commit"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),b(ie,null,[e.drawingRect&&e.drawingRect.width>5&&e.drawingRect.height>5?(y(),b("div",{key:0,class:"section-preview",style:Le({left:e.drawingRect.x+"px",top:e.drawingRect.y+"px",width:e.drawingRect.width+"px",height:e.drawingRect.height+"px"})},null,4)):B("",!0),(y(!0),b(ie,null,ye(e.sections,s=>(y(),b("div",{key:s.id,class:Z(["drawn-section",{selected:s.id===e.selectedId}]),style:Le({left:s.x+"px",top:s.y+"px",width:s.width+"px",height:s.height+"px"}),onClick:Ve(o=>n("select",s.id),["stop"])},[u("div",Eh,[u("span",Fh,"#"+I(s.number)+" New Section",1),s.placement?(y(),b("span",Ih,I(s.placement),1)):B("",!0),u("button",{class:"section-delete",onClick:Ve(o=>n("remove",s.id),["stop"])},"×",8,Ph)]),u("textarea",{class:"section-prompt",value:s.prompt,placeholder:"Describe what should go here...",onInput:o=>n("update-prompt",s.id,o.target.value),onBlur:o=>n("commit",s.id),onClick:i[0]||(i[0]=Ve(()=>{},["stop"]))},null,40,Oh),u("div",Rh,I(Math.round(s.width))+"×"+I(Math.round(s.height))+"px ",1)],14,Th))),128))],64))}}),Lh=vt(Mh,[["__scopeId","data-v-d10f1f9f"]]),Dh={class:"notes-tab"},Nh={key:0,class:"quick-actions"},Vh={class:"action-grid"},Hh=["onClick"],Bh={key:1,class:"add-note"},jh=["onKeydown"],Uh={class:"task-toggles"},Yh={class:"history-toggle"},Kh=["checked"],Wh={class:"history-toggle"},zh=["checked"],Gh={key:0,class:"screenshot-preview"},Xh=["src"],qh={class:"note-actions"},Jh=["disabled"],Zh={key:2,class:"element-pins"},Qh=["onClick"],ev={class:"pin-content"},tv={key:0,class:"pin-action"},nv={key:1,class:"pin-note"},iv={key:2,class:"pin-empty"},lv=["onClick"],sv={class:"all-pins"},ov={class:"section-label"},rv={key:0,class:"empty-hint"},av=["onClick"],uv={class:"pin-content"},cv={class:"pin-file"},dv={key:0,class:"pin-action"},fv={key:1,class:"pin-note"},pv=["onClick"],hv={key:3,class:"task-review"},vv={class:"section-label"},gv={class:"task-header"},mv={class:"task-desc"},yv={class:"task-file"},bv={key:0,class:"task-feedback"},wv={class:"task-actions"},_v=["onClick"],xv=["value","onInput"],kv=["onClick"],Cv=["onClick"],Av=st({__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,l=U({}),i=t,s=U(""),o=re(()=>n.selectedElement?n.pins.filter(v=>v.file===n.selectedElement.file&&v.line===parseInt(n.selectedElement.line)):[]),r=[{action:"add_column",label:"+ Column"},{action:"add_row",label:"+ Row"},{action:"change_direction",label:"Direction"},{action:"set_gap",label:"Set Gap"}],c=[{action:"move_up",label:"Move Up"},{action:"move_down",label:"Move Down"},{action:"wrap_container",label:"Wrap"},{action:"duplicate",label:"Duplicate"}],d=[{action:"delete",label:"Delete"}],a=re(()=>{const v=n.elementRole;return v==="container"?[...r,...d]:v==="content"?[...c,...d]:d});function f(){const v=s.value.trim();v&&(i("add-note",v),s.value="")}return(v,h)=>(y(),b("div",Dh,[e.selectedElement?(y(),b("div",Nh,[h[6]||(h[6]=u("span",{class:"section-label"},"Quick Actions",-1)),u("div",Vh,[(y(!0),b(ie,null,ye(a.value,g=>(y(),b("button",{key:g.action,class:"action-btn",onClick:k=>i("add-action",g.action,g.label)},I(g.label),9,Hh))),128))])])):B("",!0),e.selectedElement?(y(),b("div",Bh,[h[9]||(h[9]=u("span",{class:"section-label"},"Add Task",-1)),Ie(u("textarea",{"onUpdate:modelValue":h[0]||(h[0]=g=>s.value=g),class:"note-input",rows:"3",placeholder:"Describe what you want to change...",onKeydown:Ct(Ve(f,["ctrl"]),["enter"])},null,40,jh),[[Ye,s.value]]),u("div",Uh,[u("label",Yh,[u("input",{type:"checkbox",checked:e.includeHistory,onChange:h[1]||(h[1]=g=>i("update:includeHistory",g.target.checked))},null,40,Kh),h[7]||(h[7]=u("span",null,"History",-1))]),u("label",Wh,[u("input",{type:"checkbox",checked:e.includeElementContext,onChange:h[2]||(h[2]=g=>i("update:includeElementContext",g.target.checked))},null,40,zh),h[8]||(h[8]=u("span",null,"DOM context",-1))])]),e.pendingScreenshot?(y(),b("div",Gh,[u("img",{src:"/__annotask/screenshots/"+e.pendingScreenshot,class:"screenshot-thumb"},null,8,Xh),u("button",{class:"screenshot-remove",onClick:h[3]||(h[3]=g=>i("remove-screenshot"))},"×")])):(y(),b("button",{key:1,class:"screenshot-btn",onClick:h[4]||(h[4]=g=>i("start-snip"))},"Add Screenshot")),u("div",qh,[u("button",{class:"submit-btn",disabled:!s.value.trim(),onClick:f},"Add Task",8,Jh)])])):B("",!0),o.value.length?(y(),b("div",Zh,[h[10]||(h[10]=u("span",{class:"section-label"},"Notes on this element",-1)),(y(!0),b(ie,null,ye(o.value,g=>(y(),b("div",{key:g.id,class:"pin-item",onClick:k=>i("select-pin",g.id)},[u("span",{class:Z(["pin-badge",{action:g.action}])},I(g.number),3),u("div",ev,[g.action?(y(),b("span",tv,I(g.action),1)):B("",!0),g.note?(y(),b("span",nv,I(g.note),1)):B("",!0),!g.note&&!g.action?(y(),b("span",iv,"No note yet")):B("",!0)]),u("button",{class:"pin-delete",onClick:Ve(k=>i("remove-pin",g.id),["stop"])},"×",8,lv)],8,Qh))),128))])):B("",!0),u("div",sv,[u("span",ov,"All Pins ("+I(e.pins.length)+")",1),e.pins.length===0?(y(),b("div",rv," Press P then click on the page to add pins ")):B("",!0),(y(!0),b(ie,null,ye(e.pins,g=>(y(),b("div",{key:g.id,class:Z(["pin-item",{selected:g.id===e.selectedPinId}]),onClick:k=>i("select-pin",g.id)},[u("span",{class:Z(["pin-badge",{action:g.action}])},I(g.number),3),u("div",uv,[u("code",cv,I(g.file)+":"+I(g.line),1),g.action?(y(),b("span",dv,I(g.action),1)):B("",!0),g.note?(y(),b("span",fv,I(g.note),1)):B("",!0)]),u("button",{class:"pin-delete",onClick:Ve(k=>i("remove-pin",g.id),["stop"])},"×",8,pv)],10,av))),128))]),e.tasks.length>0?(y(),b("div",hv,[u("span",vv,"Tasks ("+I(e.tasks.length)+")",1),(y(!0),b(ie,null,ye(e.tasks,g=>(y(),b("div",{key:g.id,class:Z(["task-item",g.status])},[u("div",gv,[u("span",{class:Z(["task-status-badge",g.status])},I(g.status),3),u("span",mv,I(g.description),1)]),u("code",yv,I(g.file),1),g.feedback?(y(),b("div",bv,"Feedback: "+I(g.feedback),1)):B("",!0),u("div",wv,[g.status==="review"?(y(),b(ie,{key:0},[u("button",{class:"task-accept",onClick:k=>i("accept-task",g.id)},"Accept",8,_v),u("input",{value:l.value[g.id]||"",onInput:k=>l.value[g.id]=k.target.value,class:"deny-input",placeholder:"Reason...",onClick:h[5]||(h[5]=Ve(()=>{},["stop"]))},null,40,xv),u("button",{class:"task-deny",onClick:k=>{i("deny-task",g.id,l.value[g.id]||""),delete l.value[g.id]}},"Deny",8,kv)],64)):B("",!0),u("button",{class:"task-cancel",onClick:k=>i("cancel-task",g.id)},"×",8,Cv)])],2))),128))])):B("",!0)]))}}),Sv=vt(Av,[["__scopeId","data-v-0b4424b4"]]),$v={class:"prompt-header"},Tv={class:"prompt-text-preview"},Ev=["onClick"],Fv={class:"hl-header"},Iv={class:"hl-badge"},Pv={class:"hl-file"},Ov=["onClick"],Rv={class:"hl-text"},Mv={key:0,class:"hl-prompt"},Lv=["value","onInput"],Dv=st({__name:"TextHighlightOverlay",props:{highlights:{},selectedId:{},pending:{}},emits:["select","remove","update-prompt","submit-pending","cancel-pending"],setup(e,{emit:t}){const n=t;return(l,i)=>(y(),b(ie,null,[e.pending?(y(),b("div",{key:0,class:"highlight-prompt",style:Le({left:e.pending.x+"px",top:e.pending.y+"px"})},[u("div",$v,[u("span",Tv,'"'+I(e.pending.text.substring(0,50))+I(e.pending.text.length>50?"...":"")+'"',1)]),u("input",{class:"prompt-input",placeholder:"What should this text become?",autofocus:"",onKeydown:[i[0]||(i[0]=Ct(s=>n("submit-pending",s.target.value),["enter"])),i[1]||(i[1]=Ct(s=>n("cancel-pending"),["escape"]))]},null,32),i[3]||(i[3]=u("div",{class:"prompt-hint"},"Enter to submit, Escape to cancel",-1))],4)):B("",!0),(y(!0),b(ie,null,ye(e.highlights,s=>(y(),b("div",{key:s.id,class:Z(["text-highlight-card",{selected:s.id===e.selectedId}]),onClick:Ve(o=>n("select",s.id),["stop"])},[u("div",Fv,[u("span",Iv,"#"+I(s.number),1),u("code",Pv,I(s.file)+":"+I(s.line),1),u("button",{class:"hl-delete",onClick:Ve(o=>n("remove",s.id),["stop"])},"×",8,Ov)]),u("div",Rv,'"'+I(s.selectedText)+'"',1),s.prompt?(y(),b("div",Mv,"→ "+I(s.prompt),1)):B("",!0),s.id===e.selectedId?(y(),b("input",{key:1,class:"hl-prompt-edit",value:s.prompt,placeholder:"What should this become?",onInput:o=>n("update-prompt",s.id,o.target.value),onClick:i[2]||(i[2]=Ve(()=>{},["stop"]))},null,40,Lv)):B("",!0)],10,Ev))),128))],64))}}),Nv=vt(Dv,[["__scopeId","data-v-b4a28a2c"]]),Vv={class:"layout-label"},Hv=["onPointerdown"],Bv=["onPointerdown"],jv=["onClick"],Uv=["onClick"],Yv=["onClick"],Kv=["onClick"],Wv=st({__name:"LayoutOverlay",props:{containers:{}},emits:["grid-line-drag","add-track","add-child"],setup(e,{emit:t}){const n=t;function l(c){var d,a;if(c.display==="grid"){const f=((d=c.columns)==null?void 0:d.length)||"?",v=((a=c.rows)==null?void 0:a.length)||"?";return`grid ${f}×${v}`}return c.direction==="row"?"flex →":c.direction==="row-reverse"?"flex ←":c.direction==="column"?"flex ↓":c.direction==="column-reverse"?"flex ↑":"flex"}function i(c){if(!c.columns||c.columns.length<=1)return[];const d=[];let a=0;for(let f=0;f<c.columns.length-1;f++)a+=c.columns[f],c.columnGap&&(a+=c.columnGap/2),d.push({x:a,height:c.height}),c.columnGap&&(a+=c.columnGap/2);return d}function s(c){if(!c.rows||c.rows.length<=1)return[];const d=[];let a=0;for(let f=0;f<c.rows.length-1;f++)a+=c.rows[f],c.rowGap&&(a+=c.rowGap/2),d.push({y:a,width:c.width}),c.rowGap&&(a+=c.rowGap/2);return d}function o(c){return c.width>60&&c.height>60}function r(c){return c.display==="grid"||c.direction==="row"||c.direction==="row-reverse"}return(c,d)=>(y(!0),b(ie,null,ye(e.containers,(a,f)=>(y(),b(ie,{key:f},[u("div",{class:Z(["layout-outline",a.display]),style:Le({left:a.x+"px",top:a.y+"px",width:a.width+"px",height:a.height+"px"})},[u("span",Vv,I(l(a)),1)],6),(y(!0),b(ie,null,ye(i(a),(v,h)=>(y(),b("div",{key:"col-"+f+"-"+h,class:"grid-line col",style:Le({left:a.x+v.x+"px",top:a.y+"px",height:v.height+"px"}),onPointerdown:Ve(g=>n("grid-line-drag",a,"col",h,g),["stop","prevent"])},null,44,Hv))),128)),(y(!0),b(ie,null,ye(s(a),(v,h)=>(y(),b("div",{key:"row-"+f+"-"+h,class:"grid-line row",style:Le({left:a.x+"px",top:a.y+v.y+"px",width:v.width+"px"}),onPointerdown:Ve(g=>n("grid-line-drag",a,"row",h,g),["stop","prevent"])},null,44,Bv))),128)),o(a)?(y(),b(ie,{key:0},[a.display==="grid"?(y(),b(ie,{key:0},[u("button",{class:"add-track-btn col",style:Le({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add column",onClick:Ve(v=>n("add-track",a,"col"),["stop"])},"+col",12,jv),u("button",{class:"add-track-btn row",style:Le({left:a.x+a.width/2-16+"px",top:a.y+a.height+4+"px"}),title:"Add row",onClick:Ve(v=>n("add-track",a,"row"),["stop"])},"+row",12,Uv)],64)):(y(),b(ie,{key:1},[r(a)?(y(),b("button",{key:0,class:"add-child-btn",style:Le({left:a.x+a.width+4+"px",top:a.y+a.height/2-11+"px"}),title:"Add item",onClick:Ve(v=>n("add-child",a),["stop"])},"+",12,Yv)):(y(),b("button",{key:1,class:"add-child-btn",style:Le({left:a.x+a.width/2-11+"px",top:a.y+a.height+4+"px"}),title:"Add item",onClick:Ve(v=>n("add-child",a),["stop"])},"+",12,Kv))],64))],64)):B("",!0)],64))),128))}}),zv=vt(Wv,[["__scopeId","data-v-ed4fb8a3"]]),Lo="annotask-theme-preview",Lt=U(new Map);function Gv(){return Lt.value.size===0?"":`:root {
|
|
18
|
+
${Array.from(Lt.value.entries()).map(([t,n])=>` ${t}: ${n} !important;`).join(`
|
|
19
|
+
`)}
|
|
20
|
+
}`}function Xv(e){var t;try{return((t=e.value)==null?void 0:t.contentDocument)??null}catch{return null}}function qv(e){const t=Gv();let n=e.getElementById(Lo);if(!t){n==null||n.remove();return}n||(n=e.createElement("style"),n.id=Lo,e.head.appendChild(n)),n.textContent=t}function Jv(e){function t(){const o=Xv(e);o&&qv(o)}function n(o,r){const c=new Map(Lt.value);c.set(o,r),Lt.value=c}function l(o){const r=new Map(Lt.value);r.delete(o),Lt.value=r}function i(){Lt.value=new Map}rt(Lt,t,{deep:!0});function s(){t()}return rt(e,(o,r)=>{r&&r.removeEventListener("load",s),o&&(o.addEventListener("load",s),t())},{immediate:!0}),{overrides:Lt,setOverride:n,removeOverride:l,clearAll:i,hasChanges:()=>Lt.value.size>0}}const Un=U([]),rs=U(!1);async function nl(){try{rs.value=!0;const t=await(await fetch("/__annotask/api/tasks")).json();Un.value=t.tasks||[]}catch{}finally{rs.value=!1}}async function Zv(e){try{const n=await(await fetch("/__annotask/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return await nl(),n}catch{return null}}async function Qv(e,t,n,l){try{await fetch(`/__annotask/api/tasks/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:t,...n?{feedback:n}:{},...l})}),await nl()}catch{}}let Do=!1;function ga(){Do||(Do=!0,nl(),fa("tasks:updated",l=>{const i=l;Un.value=(i==null?void 0:i.tasks)||[]}));const e=re(()=>Un.value.filter(l=>l.status==="pending")),t=re(()=>Un.value.filter(l=>l.status==="review")),n=re(()=>Un.value.filter(l=>l.status==="denied"));return{tasks:Un,pendingTasks:e,reviewTasks:t,deniedTasks:n,isLoading:rs,createTask:Zv,updateTaskStatus:Qv,fetchTasks:nl}}const eg={class:"theme-page"},tg={class:"theme-header"},ng={key:0,class:"theme-actions"},ig={class:"theme-change-count"},lg={key:0,class:"theme-empty"},sg={key:1,class:"theme-empty"},og={class:"theme-tabs"},rg={key:0,class:"theme-tab-badge"},ag={key:0,class:"theme-tab-badge"},ug={key:0,class:"theme-tab-badge"},cg={key:0,class:"theme-tab-badge"},dg={class:"theme-content"},fg={key:0,class:"theme-section"},pg={key:0,class:"theme-section-empty"},hg={class:"token-info"},vg={class:"token-source"},gg={class:"token-controls"},mg={class:"color-swatch-wrapper"},yg=["value","onChange"],bg={key:0,class:"no-preview-badge",title:"No CSS variable — preview unavailable"},wg={class:"token-info"},_g={class:"token-role new-badge"},xg={class:"token-controls"},kg={class:"token-value-ro"},Cg=["onClick"],Ag={key:1,class:"add-token-form"},Sg={class:"add-actions"},$g=["disabled"],Tg={key:1,class:"theme-section"},Eg={key:0,class:"theme-section-empty"},Fg={class:"token-info"},Ig={class:"token-source"},Pg={class:"token-controls"},Og=["value","onChange"],Rg={class:"token-info"},Mg={class:"token-role new-badge"},Lg={class:"token-controls"},Dg={class:"token-value-ro"},Ng=["onClick"],Vg={key:1,class:"add-token-form"},Hg={class:"add-actions"},Bg=["disabled"],jg={key:3,class:"theme-section-empty"},Ug={class:"token-info"},Yg={class:"token-source"},Kg={class:"token-controls"},Wg=["value","onChange"],zg={class:"token-info"},Gg={class:"token-role new-badge"},Xg={class:"token-controls"},qg={class:"token-value-ro"},Jg=["onClick"],Zg={key:4,class:"add-token-form"},Qg={class:"add-actions"},em=["disabled"],tm={key:6,class:"section-subtitle",style:{"margin-top":"16px"}},nm={key:7,class:"weight-chips"},im={key:2,class:"theme-section"},lm={key:0,class:"theme-section-empty"},sm={class:"token-info"},om={class:"token-source"},rm={class:"token-controls"},am=["value","onChange"],um={class:"spacing-preview"},cm={class:"token-info"},dm={class:"token-role new-badge"},fm={class:"token-controls"},pm={class:"token-value-ro"},hm=["onClick"],vm={key:1,class:"add-token-form"},gm={class:"add-actions"},mm=["disabled"],ym={key:3,class:"theme-section"},bm={key:0,class:"theme-section-empty"},wm={class:"token-info"},_m={class:"token-source"},xm={class:"token-controls"},km=["value","onChange"],Cm={class:"token-info"},Am={class:"token-role new-badge"},Sm={class:"token-controls"},$m={class:"token-value-ro"},Tm=["onClick"],Em={key:1,class:"add-token-form"},Fm={class:"add-actions"},Im=["disabled"],Pm={key:4,class:"theme-section"},Om={key:0,class:"theme-section-empty"},Rm={key:1,class:"library-card"},Mm={class:"library-name"},Lm={key:0,class:"library-version"},Dm={key:2,class:"theme-section-empty"},Nm={class:"library-card"},Vm={class:"library-name"},Hm={key:0,class:"library-version"},Bm={key:0,class:"library-components"},jm={key:4,class:"library-card"},Um={class:"library-name"},Ym={class:"library-version"},Km=st({__name:"ThemePage",props:{iframeRef:{}},setup(e){const t=e,{designSpec:n,isInitialized:l,isLoading:i}=Es(),s=Jv(re(()=>t.iframeRef)),o=ga(),r=U("colors"),c=U(new Map),d=U(new Map),a=U(new Map),f=U(new Map),v=U(new Map),h=U([]),g=U([]),k=U([]),$=U([]),E=U([]),x=U(null),w=U(""),C=U(""),F=U(""),D=re(()=>{var Q;try{return((Q=t.iframeRef)==null?void 0:Q.contentDocument)??null}catch{return null}}),H=re(()=>{var Q;return((Q=n.value)==null?void 0:Q.colors)??[]}),se=re(()=>{var Q,L;return((L=(Q=n.value)==null?void 0:Q.typography)==null?void 0:L.families)??[]}),P=re(()=>{var Q,L;return((L=(Q=n.value)==null?void 0:Q.typography)==null?void 0:L.scale)??[]}),X=re(()=>{var Q,L;return((L=(Q=n.value)==null?void 0:Q.typography)==null?void 0:L.weights)??[]}),ne=re(()=>{var Q;return((Q=n.value)==null?void 0:Q.spacing)??[]}),he=re(()=>{var Q,L;return((L=(Q=n.value)==null?void 0:Q.borders)==null?void 0:L.radius)??[]}),be=re(()=>{var Q;return((Q=n.value)==null?void 0:Q.icons)??null}),we=re(()=>{var Q;return((Q=n.value)==null?void 0:Q.components)??null}),Ne=re(()=>c.value.size+d.value.size+a.value.size+f.value.size+v.value.size+h.value.length+g.value.length+k.value.length+$.value.length+E.value.length);function Te(Q,L){c.value.set(Q.role,L),c.value=new Map(c.value),Q.cssVar&&s.setOverride(Q.cssVar,L)}function _e(Q,L,Oe){Oe.value.set(Q.role,L),Oe.value=new Map(Oe.value),Q.cssVar&&s.setOverride(Q.cssVar,L)}function le(Q,L){return L.get(Q.role)??Q.value}function xe(Q,L){const Oe=L.get(Q.role);return Oe!==void 0&&Oe!==Q.value}function He(Q){x.value=Q,w.value="",C.value="",F.value=""}function K(){x.value=null}function z(){if(!w.value.trim()||!C.value.trim())return;const Q={role:w.value.trim(),value:C.value.trim(),cssVar:F.value.trim()||void 0,source:"new"};switch(x.value){case"colors":h.value=[...h.value,Q];break;case"families":g.value=[...g.value,Q];break;case"scale":k.value=[...k.value,Q];break;case"spacing":$.value=[...$.value,Q];break;case"radius":E.value=[...E.value,Q];break}Q.cssVar&&s.setOverride(Q.cssVar,Q.value),x.value=null}function ue(Q,L){const Oe=Q.value[L];Oe.cssVar&&s.removeOverride(Oe.cssVar),Q.value=Q.value.filter((R,W)=>W!==L)}function ge(){var W,m;const Q=[],L=((m=(W=n.value)==null?void 0:W.framework)==null?void 0:m.styling)??[];function Oe(_,T,Y){const N=Y.get(T.role);!N||N===T.value||Q.push({type:"theme_update",description:`Update ${_} "${T.role}" from ${T.value} to ${N}`,file:T.sourceFile||"",line:T.sourceLine||0,intent:`Change the ${T.role} ${_} token to ${N} across the application`,action:"theme_update",context:{category:_,role:T.role,before:T.value,after:N,cssVar:T.cssVar||null,source:T.source,sourceFile:T.sourceFile||null,sourceLine:T.sourceLine||null,styling:L}})}function R(_,T){Q.push({type:"theme_update",description:`Add new ${_} token "${T.role}" with value ${T.value}`,file:"",line:0,intent:`Add a new ${T.role} ${_} token with value ${T.value} to the design system`,action:"theme_update",context:{category:_,role:T.role,before:null,after:T.value,cssVar:T.cssVar||null,source:null,sourceFile:null,sourceLine:null,styling:L,isNew:!0}})}for(const _ of H.value)Oe("colors",_,c.value);for(const _ of se.value)Oe("typography.families",_,d.value);for(const _ of P.value)Oe("typography.scale",_,a.value);for(const _ of ne.value)Oe("spacing",_,f.value);for(const _ of he.value)Oe("borders.radius",_,v.value);for(const _ of h.value)R("colors",_);for(const _ of g.value)R("typography.families",_);for(const _ of k.value)R("typography.scale",_);for(const _ of $.value)R("spacing",_);for(const _ of E.value)R("borders.radius",_);return Q}async function Fe(){const Q=ge();for(const L of Q)await o.createTask(L);c.value=new Map,d.value=new Map,a.value=new Map,f.value=new Map,v.value=new Map,h.value=[],g.value=[],k.value=[],$.value=[],E.value=[],s.clearAll()}function je(){c.value=new Map,d.value=new Map,a.value=new Map,f.value=new Map,v.value=new Map,h.value=[],g.value=[],k.value=[],$.value=[],E.value=[],s.clearAll()}return(Q,L)=>{var Oe;return y(),b("div",eg,[u("div",tg,[L[25]||(L[25]=u("span",{class:"theme-title"},"Design Tokens",-1)),Ne.value>0?(y(),b("div",ng,[u("span",ig,I(Ne.value)+" change"+I(Ne.value===1?"":"s"),1),u("button",{class:"theme-btn commit",onClick:Fe},"Commit"),u("button",{class:"theme-btn discard",onClick:je},"Discard")])):B("",!0)]),O(i)?(y(),b("div",lg,[...L[26]||(L[26]=[u("p",null,"Loading design spec...",-1)])])):O(l)?(y(),b(ie,{key:2},[u("div",og,[u("button",{class:Z(["theme-tab",{active:r.value==="colors"}]),onClick:L[0]||(L[0]=R=>r.value="colors")},[L[28]||(L[28]=tt(" Colors ",-1)),c.value.size+h.value.length?(y(),b("span",rg,I(c.value.size+h.value.length),1)):B("",!0)],2),u("button",{class:Z(["theme-tab",{active:r.value==="typography"}]),onClick:L[1]||(L[1]=R=>r.value="typography")},[L[29]||(L[29]=tt(" Type ",-1)),d.value.size+a.value.size+g.value.length+k.value.length?(y(),b("span",ag,I(d.value.size+a.value.size+g.value.length+k.value.length),1)):B("",!0)],2),u("button",{class:Z(["theme-tab",{active:r.value==="spacing"}]),onClick:L[2]||(L[2]=R=>r.value="spacing")},[L[30]||(L[30]=tt(" Spacing ",-1)),f.value.size+$.value.length?(y(),b("span",ug,I(f.value.size+$.value.length),1)):B("",!0)],2),u("button",{class:Z(["theme-tab",{active:r.value==="borders"}]),onClick:L[3]||(L[3]=R=>r.value="borders")},[L[31]||(L[31]=tt(" Borders ",-1)),v.value.size+E.value.length?(y(),b("span",cg,I(v.value.size+E.value.length),1)):B("",!0)],2),u("button",{class:Z(["theme-tab",{active:r.value==="libraries"}]),onClick:L[4]||(L[4]=R=>r.value="libraries")},"Libraries",2)]),u("div",dg,[r.value==="colors"?(y(),b("div",fg,[H.value.length===0&&h.value.length===0?(y(),b("div",pg,"No color tokens detected")):B("",!0),(y(!0),b(ie,null,ye(H.value,R=>(y(),b("div",{key:R.role,class:"token-row"},[u("div",hg,[u("span",{class:Z(["token-role",{edited:xe(R,c.value)}])},I(R.role),3),u("code",vg,I(R.source),1)]),u("div",gg,[u("div",mg,[nt(ns,{modelValue:le(R,c.value),iframeDoc:D.value,"onUpdate:modelValue":W=>Te(R,W)},null,8,["modelValue","iframeDoc","onUpdate:modelValue"])]),u("input",{class:"token-value-input color-hex",value:le(R,c.value),onChange:W=>Te(R,W.target.value)},null,40,yg),R.cssVar?B("",!0):(y(),b("span",bg,"no preview"))])]))),128)),(y(!0),b(ie,null,ye(h.value,(R,W)=>(y(),b("div",{key:"new-"+W,class:"token-row new"},[u("div",wg,[u("span",_g,"+ "+I(R.role),1)]),u("div",xg,[u("div",{class:"color-swatch-inline",style:Le({background:R.value})},null,4),u("code",kg,I(R.value),1),u("button",{class:"token-remove",onClick:m=>ue(h.value,W)},"×",8,Cg)])]))),128)),x.value==="colors"?(y(),b("div",Ag,[Ie(u("input",{"onUpdate:modelValue":L[5]||(L[5]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. info)"},null,512),[[Ye,w.value]]),Ie(u("input",{"onUpdate:modelValue":L[6]||(L[6]=R=>C.value=R),class:"add-input",placeholder:"Value (e.g. #3b82f6)"},null,512),[[Ye,C.value]]),Ie(u("input",{"onUpdate:modelValue":L[7]||(L[7]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional, e.g. --color-info)"},null,512),[[Ye,F.value]]),u("div",Sg,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!C.value.trim()},"Add",8,$g),u("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(y(),b("button",{key:2,class:"add-token-btn",onClick:L[8]||(L[8]=R=>He("colors"))},"+ Add Color"))])):B("",!0),r.value==="typography"?(y(),b("div",Tg,[L[32]||(L[32]=u("h4",{class:"section-subtitle"},"Font Families",-1)),se.value.length===0&&g.value.length===0?(y(),b("div",Eg,"No font families detected")):B("",!0),(y(!0),b(ie,null,ye(se.value,R=>(y(),b("div",{key:R.role,class:"token-row"},[u("div",Fg,[u("span",{class:Z(["token-role",{edited:xe(R,d.value)}])},I(R.role),3),u("code",Ig,I(R.source),1)]),u("div",Pg,[u("input",{class:"token-value-input wide",value:le(R,d.value),onChange:W=>_e(R,W.target.value,d.value)},null,40,Og)])]))),128)),(y(!0),b(ie,null,ye(g.value,(R,W)=>(y(),b("div",{key:"new-"+W,class:"token-row new"},[u("div",Rg,[u("span",Mg,"+ "+I(R.role),1)]),u("div",Lg,[u("code",Dg,I(R.value),1),u("button",{class:"token-remove",onClick:m=>ue(g.value,W)},"×",8,Ng)])]))),128)),x.value==="families"?(y(),b("div",Vg,[Ie(u("input",{"onUpdate:modelValue":L[9]||(L[9]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. display)"},null,512),[[Ye,w.value]]),Ie(u("input",{"onUpdate:modelValue":L[10]||(L[10]=R=>C.value=R),class:"add-input",placeholder:"Value (e.g. Poppins, sans-serif)"},null,512),[[Ye,C.value]]),Ie(u("input",{"onUpdate:modelValue":L[11]||(L[11]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Ye,F.value]]),u("div",Hg,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!C.value.trim()},"Add",8,Bg),u("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(y(),b("button",{key:2,class:"add-token-btn",onClick:L[12]||(L[12]=R=>He("families"))},"+ Add Family")),L[33]||(L[33]=u("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Font Scale",-1)),P.value.length===0&&k.value.length===0?(y(),b("div",jg,"No font sizes detected")):B("",!0),(y(!0),b(ie,null,ye(P.value,R=>(y(),b("div",{key:R.role,class:"token-row"},[u("div",Ug,[u("span",{class:Z(["token-role",{edited:xe(R,a.value)}])},I(R.role),3),u("code",Yg,I(R.source),1)]),u("div",Kg,[u("input",{class:"token-value-input",value:le(R,a.value),onChange:W=>_e(R,W.target.value,a.value)},null,40,Wg),u("div",{class:"font-size-preview",style:Le({fontSize:le(R,a.value)})},"Aa",4)])]))),128)),(y(!0),b(ie,null,ye(k.value,(R,W)=>(y(),b("div",{key:"new-"+W,class:"token-row new"},[u("div",zg,[u("span",Gg,"+ "+I(R.role),1)]),u("div",Xg,[u("code",qg,I(R.value),1),u("button",{class:"token-remove",onClick:m=>ue(k.value,W)},"×",8,Jg)])]))),128)),x.value==="scale"?(y(),b("div",Zg,[Ie(u("input",{"onUpdate:modelValue":L[13]||(L[13]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[Ye,w.value]]),Ie(u("input",{"onUpdate:modelValue":L[14]||(L[14]=R=>C.value=R),class:"add-input",placeholder:"Value (e.g. 1.5rem)"},null,512),[[Ye,C.value]]),Ie(u("input",{"onUpdate:modelValue":L[15]||(L[15]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Ye,F.value]]),u("div",Qg,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!C.value.trim()},"Add",8,em),u("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(y(),b("button",{key:5,class:"add-token-btn",onClick:L[16]||(L[16]=R=>He("scale"))},"+ Add Size")),X.value.length?(y(),b("h4",tm,"Weights")):B("",!0),X.value.length?(y(),b("div",nm,[(y(!0),b(ie,null,ye(X.value,R=>(y(),b("span",{key:R,class:"weight-chip"},I(R),1))),128))])):B("",!0)])):B("",!0),r.value==="spacing"?(y(),b("div",im,[ne.value.length===0&&$.value.length===0?(y(),b("div",lm,"No spacing tokens detected")):B("",!0),(y(!0),b(ie,null,ye(ne.value,R=>(y(),b("div",{key:R.role,class:"token-row"},[u("div",sm,[u("span",{class:Z(["token-role",{edited:xe(R,f.value)}])},I(R.role),3),u("code",om,I(R.source),1)]),u("div",rm,[u("input",{class:"token-value-input",value:le(R,f.value),onChange:W=>_e(R,W.target.value,f.value)},null,40,am),u("div",um,[u("div",{class:"spacing-bar",style:Le({width:le(R,f.value)})},null,4)])])]))),128)),(y(!0),b(ie,null,ye($.value,(R,W)=>(y(),b("div",{key:"new-"+W,class:"token-row new"},[u("div",cm,[u("span",dm,"+ "+I(R.role),1)]),u("div",fm,[u("code",pm,I(R.value),1),u("button",{class:"token-remove",onClick:m=>ue($.value,W)},"×",8,hm)])]))),128)),x.value==="spacing"?(y(),b("div",vm,[Ie(u("input",{"onUpdate:modelValue":L[17]||(L[17]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. 2xl)"},null,512),[[Ye,w.value]]),Ie(u("input",{"onUpdate:modelValue":L[18]||(L[18]=R=>C.value=R),class:"add-input",placeholder:"Value (e.g. 32px)"},null,512),[[Ye,C.value]]),Ie(u("input",{"onUpdate:modelValue":L[19]||(L[19]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Ye,F.value]]),u("div",gm,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!C.value.trim()},"Add",8,mm),u("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(y(),b("button",{key:2,class:"add-token-btn",onClick:L[20]||(L[20]=R=>He("spacing"))},"+ Add Spacing"))])):B("",!0),r.value==="borders"?(y(),b("div",ym,[L[34]||(L[34]=u("h4",{class:"section-subtitle"},"Border Radius",-1)),he.value.length===0&&E.value.length===0?(y(),b("div",bm,"No border radius tokens detected")):B("",!0),(y(!0),b(ie,null,ye(he.value,R=>(y(),b("div",{key:R.role,class:"token-row"},[u("div",wm,[u("span",{class:Z(["token-role",{edited:xe(R,v.value)}])},I(R.role),3),u("code",_m,I(R.source),1)]),u("div",xm,[u("input",{class:"token-value-input",value:le(R,v.value),onChange:W=>_e(R,W.target.value,v.value)},null,40,km),u("div",{class:"radius-preview",style:Le({borderRadius:le(R,v.value)})},null,4)])]))),128)),(y(!0),b(ie,null,ye(E.value,(R,W)=>(y(),b("div",{key:"new-"+W,class:"token-row new"},[u("div",Cm,[u("span",Am,"+ "+I(R.role),1)]),u("div",Sm,[u("code",$m,I(R.value),1),u("button",{class:"token-remove",onClick:m=>ue(E.value,W)},"×",8,Tm)])]))),128)),x.value==="radius"?(y(),b("div",Em,[Ie(u("input",{"onUpdate:modelValue":L[21]||(L[21]=R=>w.value=R),class:"add-input",placeholder:"Role (e.g. xl)"},null,512),[[Ye,w.value]]),Ie(u("input",{"onUpdate:modelValue":L[22]||(L[22]=R=>C.value=R),class:"add-input",placeholder:"Value (e.g. 16px)"},null,512),[[Ye,C.value]]),Ie(u("input",{"onUpdate:modelValue":L[23]||(L[23]=R=>F.value=R),class:"add-input",placeholder:"CSS var (optional)"},null,512),[[Ye,F.value]]),u("div",Fm,[u("button",{class:"theme-btn commit small",onClick:z,disabled:!w.value.trim()||!C.value.trim()},"Add",8,Im),u("button",{class:"theme-btn discard small",onClick:K},"Cancel")])])):(y(),b("button",{key:2,class:"add-token-btn",onClick:L[24]||(L[24]=R=>He("radius"))},"+ Add Radius"))])):B("",!0),r.value==="libraries"?(y(),b("div",Pm,[L[35]||(L[35]=u("h4",{class:"section-subtitle"},"Icons",-1)),be.value?(y(),b("div",Rm,[u("span",Mm,I(be.value.library),1),be.value.version?(y(),b("span",Lm,"v"+I(be.value.version),1)):B("",!0)])):(y(),b("div",Om,"No icon library detected")),L[36]||(L[36]=u("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Components",-1)),we.value?(y(),b(ie,{key:3},[u("div",Nm,[u("span",Vm,I(we.value.library),1),we.value.version?(y(),b("span",Hm,"v"+I(we.value.version),1)):B("",!0)]),we.value.used.length?(y(),b("div",Bm,[(y(!0),b(ie,null,ye(we.value.used,R=>(y(),b("span",{key:R,class:"component-chip"},I(R),1))),128))])):B("",!0)],64)):(y(),b("div",Dm,"No component library detected")),L[37]||(L[37]=u("h4",{class:"section-subtitle",style:{"margin-top":"16px"}},"Framework",-1)),(Oe=O(n))!=null&&Oe.framework?(y(),b("div",jm,[u("span",Um,I(O(n).framework.name),1),u("span",Ym,"v"+I(O(n).framework.version),1),(y(!0),b(ie,null,ye(O(n).framework.styling,R=>(y(),b("span",{key:R,class:"styling-chip"},I(R),1))),128))])):B("",!0)])):B("",!0)])],64)):(y(),b("div",sg,[...L[27]||(L[27]=[u("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[u("circle",{cx:"12",cy:"12",r:"10"}),u("path",{d:"M12 8v4l2 2"})],-1),u("p",null,"No design spec found",-1),u("p",{class:"theme-empty-hint"},[tt("Run "),u("code",null,"/annotask-init"),tt(" in your AI assistant to scan your project's design system")],-1)])]))])}}}),Wm=vt(Km,[["__scopeId","data-v-67b64182"]]);var No=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vl={exports:{}},Vo;function Gm(){return Vo||(Vo=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(l){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},r={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function x(w){return w instanceof c?new c(w.type,x(w.content),w.alias):Array.isArray(w)?w.map(x):w.replace(/&/g,"&").replace(/</g,"<").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:++s}),x.__id},clone:function x(w,C){C=C||{};var F,D;switch(r.util.type(w)){case"Object":if(D=r.util.objId(w),C[D])return C[D];F={},C[D]=F;for(var H in w)w.hasOwnProperty(H)&&(F[H]=x(w[H],C));return F;case"Array":return D=r.util.objId(w),C[D]?C[D]:(F=[],C[D]=F,w.forEach(function(se,P){F[P]=x(se,C)}),F);default:return w}},getLanguage:function(x){for(;x;){var w=i.exec(x.className);if(w)return w[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,w){x.className=x.className.replace(RegExp(i,"gi"),""),x.classList.add("language-"+w)},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 w=document.getElementsByTagName("script");for(var C in w)if(w[C].src==x)return w[C]}return null}},isActive:function(x,w,C){for(var F="no-"+w;x;){var D=x.classList;if(D.contains(w))return!0;if(D.contains(F))return!1;x=x.parentElement}return!!C}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(x,w){var C=r.util.clone(r.languages[x]);for(var F in w)C[F]=w[F];return C},insertBefore:function(x,w,C,F){F=F||r.languages;var D=F[x],H={};for(var se in D)if(D.hasOwnProperty(se)){if(se==w)for(var P in C)C.hasOwnProperty(P)&&(H[P]=C[P]);C.hasOwnProperty(se)||(H[se]=D[se])}var X=F[x];return F[x]=H,r.languages.DFS(r.languages,function(ne,he){he===X&&ne!=x&&(this[ne]=H)}),H},DFS:function x(w,C,F,D){D=D||{};var H=r.util.objId;for(var se in w)if(w.hasOwnProperty(se)){C.call(w,se,w[se],F||se);var P=w[se],X=r.util.type(P);X==="Object"&&!D[H(P)]?(D[H(P)]=!0,x(P,C,null,D)):X==="Array"&&!D[H(P)]&&(D[H(P)]=!0,x(P,C,se,D))}}},plugins:{},highlightAll:function(x,w){r.highlightAllUnder(document,x,w)},highlightAllUnder:function(x,w,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 D=0,H;H=F.elements[D++];)r.highlightElement(H,w===!0,F.callback)},highlightElement:function(x,w,C){var F=r.util.getLanguage(x),D=r.languages[F];r.util.setLanguage(x,F);var H=x.parentElement;H&&H.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(H,F);var se=x.textContent,P={element:x,language:F,grammar:D,code:se};function X(he){P.highlightedCode=he,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),H=P.element.parentElement,H&&H.nodeName.toLowerCase()==="pre"&&!H.hasAttribute("tabindex")&&H.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){X(r.util.encode(P.code));return}if(w&&l.Worker){var ne=new Worker(r.filename);ne.onmessage=function(he){X(he.data)},ne.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else X(r.highlight(P.code,P.grammar,P.language))},highlight:function(x,w,C){var F={code:x,grammar:w,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),c.stringify(r.util.encode(F.tokens),F.language)},tokenize:function(x,w){var C=w.rest;if(C){for(var F in C)w[F]=C[F];delete w.rest}var D=new f;return v(D,D.head,x),a(x,D,w,D.head,0),g(D)},hooks:{all:{},add:function(x,w){var C=r.hooks.all;C[x]=C[x]||[],C[x].push(w)},run:function(x,w){var C=r.hooks.all[x];if(!(!C||!C.length))for(var F=0,D;D=C[F++];)D(w)}},Token:c};l.Prism=r;function c(x,w,C,F){this.type=x,this.content=w,this.alias=C,this.length=(F||"").length|0}c.stringify=function x(w,C){if(typeof w=="string")return w;if(Array.isArray(w)){var F="";return w.forEach(function(X){F+=x(X,C)}),F}var D={type:w.type,content:x(w.content,C),tag:"span",classes:["token",w.type],attributes:{},language:C},H=w.alias;H&&(Array.isArray(H)?Array.prototype.push.apply(D.classes,H):D.classes.push(H)),r.hooks.run("wrap",D);var se="";for(var P in D.attributes)se+=" "+P+'="'+(D.attributes[P]||"").replace(/"/g,""")+'"';return"<"+D.tag+' class="'+D.classes.join(" ")+'"'+se+">"+D.content+"</"+D.tag+">"};function d(x,w,C,F){x.lastIndex=w;var D=x.exec(C);if(D&&F&&D[1]){var H=D[1].length;D.index+=H,D[0]=D[0].slice(H)}return D}function a(x,w,C,F,D,H){for(var se in C)if(!(!C.hasOwnProperty(se)||!C[se])){var P=C[se];P=Array.isArray(P)?P:[P];for(var X=0;X<P.length;++X){if(H&&H.cause==se+","+X)return;var ne=P[X],he=ne.inside,be=!!ne.lookbehind,we=!!ne.greedy,Ne=ne.alias;if(we&&!ne.pattern.global){var Te=ne.pattern.toString().match(/[imsuy]*$/)[0];ne.pattern=RegExp(ne.pattern.source,Te+"g")}for(var _e=ne.pattern||ne,le=F.next,xe=D;le!==w.tail&&!(H&&xe>=H.reach);xe+=le.value.length,le=le.next){var He=le.value;if(w.length>x.length)return;if(!(He instanceof c)){var K=1,z;if(we){if(z=d(_e,xe,x,be),!z||z.index>=x.length)break;var je=z.index,ue=z.index+z[0].length,ge=xe;for(ge+=le.value.length;je>=ge;)le=le.next,ge+=le.value.length;if(ge-=le.value.length,xe=ge,le.value instanceof c)continue;for(var Fe=le;Fe!==w.tail&&(ge<ue||typeof Fe.value=="string");Fe=Fe.next)K++,ge+=Fe.value.length;K--,He=x.slice(xe,ge),z.index-=xe}else if(z=d(_e,0,He,be),!z)continue;var je=z.index,Q=z[0],L=He.slice(0,je),Oe=He.slice(je+Q.length),R=xe+He.length;H&&R>H.reach&&(H.reach=R);var W=le.prev;L&&(W=v(w,W,L),xe+=L.length),h(w,W,K);var m=new c(se,he?r.tokenize(Q,he):Q,Ne,Q);if(le=v(w,W,m),Oe&&v(w,le,Oe),K>1){var _={cause:se+","+X,reach:R};a(x,w,C,le.prev,xe,_),H&&_.reach>H.reach&&(H.reach=_.reach)}}}}}}function f(){var x={value:null,prev:null,next:null},w={value:null,prev:x,next:null};x.next=w,this.head=x,this.tail=w,this.length=0}function v(x,w,C){var F=w.next,D={value:C,prev:w,next:F};return w.next=D,F.prev=D,x.length++,D}function h(x,w,C){for(var F=w.next,D=0;D<C&&F!==x.tail;D++)F=F.next;w.next=F,F.prev=w,x.length-=D}function g(x){for(var w=[],C=x.head.next;C!==x.tail;)w.push(C.value),C=C.next;return w}if(!l.document)return l.addEventListener&&(r.disableWorkerMessageHandler||l.addEventListener("message",function(x){var w=JSON.parse(x.data),C=w.language,F=w.code,D=w.immediateClose;l.postMessage(r.highlight(F,r.languages[C],C)),D&&l.close()},!1)),r;var k=r.util.currentScript();k&&(r.filename=k.src,k.hasAttribute("data-manual")&&(r.manual=!0));function $(){r.manual||r.highlightAll()}if(!r.manual){var E=document.readyState;E==="loading"||E==="interactive"&&k&&k.defer?document.addEventListener("DOMContentLoaded",$):window.requestAnimationFrame?window.requestAnimationFrame($):window.setTimeout($,16)}return r})(t);e.exports&&(e.exports=n),typeof No<"u"&&(No.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};r["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:r},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(l,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(l){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var s=l.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",i=function(k,$){return"✖ Error "+k+" while fetching file: "+$},s="✖ 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",c="loading",d="loaded",a="failed",f="pre[data-src]:not(["+r+'="'+d+'"]):not(['+r+'="'+c+'"])';function v(k,$,E){var x=new XMLHttpRequest;x.open("GET",k,!0),x.onreadystatechange=function(){x.readyState==4&&(x.status<400&&x.responseText?$(x.responseText):x.status>=400?E(i(x.status,x.statusText)):E(s))},x.send(null)}function h(k){var $=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(k||"");if($){var E=Number($[1]),x=$[2],w=$[3];return x?w?[E,Number(w)]:[E,void 0]:[E,E]}}n.hooks.add("before-highlightall",function(k){k.selector+=", "+f}),n.hooks.add("before-sanity-check",function(k){var $=k.element;if($.matches(f)){k.code="",$.setAttribute(r,c);var E=$.appendChild(document.createElement("CODE"));E.textContent=l;var x=$.getAttribute("data-src"),w=k.language;if(w==="none"){var C=(/\.(\w+)$/.exec(x)||[,"none"])[1];w=o[C]||C}n.util.setLanguage(E,w),n.util.setLanguage($,w);var F=n.plugins.autoloader;F&&F.loadLanguages(w),v(x,function(D){$.setAttribute(r,d);var H=h($.getAttribute("data-range"));if(H){var se=D.split(/\r\n?|\n/g),P=H[0],X=H[1]==null?se.length:H[1];P<0&&(P+=se.length),P=Math.max(0,Math.min(P-1,se.length)),X<0&&(X+=se.length),X=Math.max(0,Math.min(X,se.length)),D=se.slice(P,X).join(`
|
|
28
|
+
`),$.hasAttribute("data-start")||$.setAttribute("data-start",String(P+1))}E.textContent=D,n.highlightElement(E)},function(D){$.setAttribute(r,a),E.textContent=D})}}),n.plugins.fileHighlight={highlight:function($){for(var E=($||document).querySelectorAll(f),x=0,w;w=E[x++];)n.highlightElement(w)}};var g=!1;n.fileHighlight=function(){g||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),g=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(Vl)),Vl.exports}var Xm=Gm();const Ho=zm(Xm);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;(function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(r,c){c=(c||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return r});return RegExp(d,c)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+s+")"})),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(s),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 ma(e){return typeof e>"u"||e===null}function qm(e){return typeof e=="object"&&e!==null}function Jm(e){return Array.isArray(e)?e:ma(e)?[]:[e]}function Zm(e,t){var n,l,i,s;if(t)for(s=Object.keys(t),n=0,l=s.length;n<l;n+=1)i=s[n],e[i]=t[i];return e}function Qm(e,t){var n="",l;for(l=0;l<t;l+=1)n+=e;return n}function e0(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var t0=ma,n0=qm,i0=Jm,l0=Qm,s0=e0,o0=Zm,Je={isNothing:t0,isObject:n0,toArray:i0,repeat:l0,isNegativeZero:s0,extend:o0};function ya(e,t){var n="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
29
|
+
|
|
30
|
+
`+e.mark.snippet),l+" "+n):l}function Ci(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ya(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ci.prototype=Object.create(Error.prototype);Ci.prototype.constructor=Ci;Ci.prototype.toString=function(t){return this.name+": "+ya(this,t)};var ht=Ci;function Hl(e,t,n,l,i){var s="",o="",r=Math.floor(i/2)-1;return l-t>r&&(s=" ... ",t=l-r+s.length),n-l>r&&(o=" ...",n=l+r-o.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+o,pos:l-t+s.length}}function Bl(e,t){return Je.repeat(" ",t-e.length)+e}function r0(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,l=[0],i=[],s,o=-1;s=n.exec(e.buffer);)i.push(s.index),l.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=l.length-2);o<0&&(o=l.length-1);var r="",c,d,a=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+a+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)d=Hl(e.buffer,l[o-c],i[o-c],e.position-(l[o]-l[o-c]),f),r=Je.repeat(" ",t.indent)+Bl((e.line-c+1).toString(),a)+" | "+d.str+`
|
|
31
|
+
`+r;for(d=Hl(e.buffer,l[o],i[o],e.position,f),r+=Je.repeat(" ",t.indent)+Bl((e.line+1).toString(),a)+" | "+d.str+`
|
|
32
|
+
`,r+=Je.repeat("-",t.indent+a+3+d.pos)+`^
|
|
33
|
+
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)d=Hl(e.buffer,l[o+c],i[o+c],e.position-(l[o]-l[o+c]),f),r+=Je.repeat(" ",t.indent)+Bl((e.line+c+1).toString(),a)+" | "+d.str+`
|
|
34
|
+
`;return r.replace(/\n$/,"")}var a0=r0,u0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],c0=["scalar","sequence","mapping"];function d0(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(l){t[String(l)]=n})}),t}function f0(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(u0.indexOf(n)===-1)throw new ht('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=d0(t.styleAliases||null),c0.indexOf(this.kind)===-1)throw new ht('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var it=f0;function Bo(e,t){var n=[];return e[t].forEach(function(l){var i=n.length;n.forEach(function(s,o){s.tag===l.tag&&s.kind===l.kind&&s.multi===l.multi&&(i=o)}),n[i]=l}),n}function p0(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function l(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(l);return e}function as(e){return this.extend(e)}as.prototype.extend=function(t){var n=[],l=[];if(t instanceof it)l.push(t);else if(Array.isArray(t))l=l.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(l=l.concat(t.explicit));else throw new ht("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof it))throw new ht("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ht("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ht("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(s){if(!(s instanceof it))throw new ht("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(as.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(l),i.compiledImplicit=Bo(i,"implicit"),i.compiledExplicit=Bo(i,"explicit"),i.compiledTypeMap=p0(i.compiledImplicit,i.compiledExplicit),i};var ba=as,wa=new it("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),_a=new it("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),xa=new it("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),ka=new ba({explicit:[wa,_a,xa]});function h0(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function v0(){return null}function g0(e){return e===null}var Ca=new it("tag:yaml.org,2002:null",{kind:"scalar",resolve:h0,construct:v0,predicate:g0,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function m0(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 y0(e){return e==="true"||e==="True"||e==="TRUE"}function b0(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Aa=new it("tag:yaml.org,2002:bool",{kind:"scalar",resolve:m0,construct:y0,predicate:b0,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 w0(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function _0(e){return 48<=e&&e<=55}function x0(e){return 48<=e&&e<=57}function k0(e){if(e===null)return!1;var t=e.length,n=0,l=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;l=!0}return l&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!w0(e.charCodeAt(n)))return!1;l=!0}return l&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!_0(e.charCodeAt(n)))return!1;l=!0}return l&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!x0(e.charCodeAt(n)))return!1;l=!0}return!(!l||i==="_")}function C0(e){var t=e,n=1,l;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),l=t[0],(l==="-"||l==="+")&&(l==="-"&&(n=-1),t=t.slice(1),l=t[0]),t==="0")return 0;if(l==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function A0(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Je.isNegativeZero(e)}var Sa=new it("tag:yaml.org,2002:int",{kind:"scalar",resolve:k0,construct:C0,predicate:A0,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"]}}),S0=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $0(e){return!(e===null||!S0.test(e)||e[e.length-1]==="_")}function T0(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 E0=/^[-+]?[0-9]+e/;function F0(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(Je.isNegativeZero(e))return"-0.0";return n=e.toString(10),E0.test(n)?n.replace("e",".e"):n}function I0(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Je.isNegativeZero(e))}var $a=new it("tag:yaml.org,2002:float",{kind:"scalar",resolve:$0,construct:T0,predicate:I0,represent:F0,defaultStyle:"lowercase"}),Ta=ka.extend({implicit:[Ca,Aa,Sa,$a]}),Ea=Ta,Fa=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Ia=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 P0(e){return e===null?!1:Fa.exec(e)!==null||Ia.exec(e)!==null}function O0(e){var t,n,l,i,s,o,r,c=0,d=null,a,f,v;if(t=Fa.exec(e),t===null&&(t=Ia.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],l=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,l,i));if(s=+t[4],o=+t[5],r=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(a=+t[10],f=+(t[11]||0),d=(a*60+f)*6e4,t[9]==="-"&&(d=-d)),v=new Date(Date.UTC(n,l,i,s,o,r,c)),d&&v.setTime(v.getTime()-d),v}function R0(e){return e.toISOString()}var Pa=new it("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:P0,construct:O0,instanceOf:Date,represent:R0});function M0(e){return e==="<<"||e===null}var Oa=new it("tag:yaml.org,2002:merge",{kind:"scalar",resolve:M0}),Is=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
35
|
+
\r`;function L0(e){if(e===null)return!1;var t,n,l=0,i=e.length,s=Is;for(n=0;n<i;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;l+=6}return l%8===0}function D0(e){var t,n,l=e.replace(/[\r\n=]/g,""),i=l.length,s=Is,o=0,r=[];for(t=0;t<i;t++)t%4===0&&t&&(r.push(o>>16&255),r.push(o>>8&255),r.push(o&255)),o=o<<6|s.indexOf(l.charAt(t));return n=i%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 N0(e){var t="",n=0,l,i,s=e.length,o=Is;for(l=0;l<s;l++)l%3===0&&l&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[l];return i=s%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function V0(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Ra=new it("tag:yaml.org,2002:binary",{kind:"scalar",resolve:L0,construct:D0,predicate:V0,represent:N0}),H0=Object.prototype.hasOwnProperty,B0=Object.prototype.toString;function j0(e){if(e===null)return!0;var t=[],n,l,i,s,o,r=e;for(n=0,l=r.length;n<l;n+=1){if(i=r[n],o=!1,B0.call(i)!=="[object Object]")return!1;for(s in i)if(H0.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function U0(e){return e!==null?e:[]}var Ma=new it("tag:yaml.org,2002:omap",{kind:"sequence",resolve:j0,construct:U0}),Y0=Object.prototype.toString;function K0(e){if(e===null)return!0;var t,n,l,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1){if(l=o[t],Y0.call(l)!=="[object Object]"||(i=Object.keys(l),i.length!==1))return!1;s[t]=[i[0],l[i[0]]]}return!0}function W0(e){if(e===null)return[];var t,n,l,i,s,o=e;for(s=new Array(o.length),t=0,n=o.length;t<n;t+=1)l=o[t],i=Object.keys(l),s[t]=[i[0],l[i[0]]];return s}var La=new it("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:K0,construct:W0}),z0=Object.prototype.hasOwnProperty;function G0(e){if(e===null)return!0;var t,n=e;for(t in n)if(z0.call(n,t)&&n[t]!==null)return!1;return!0}function X0(e){return e!==null?e:{}}var Da=new it("tag:yaml.org,2002:set",{kind:"mapping",resolve:G0,construct:X0}),Ps=Ea.extend({implicit:[Pa,Oa],explicit:[Ra,Ma,La,Da]}),mn=Object.prototype.hasOwnProperty,il=1,Na=2,Va=3,ll=4,jl=1,q0=2,jo=3,J0=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Z0=/[\x85\u2028\u2029]/,Q0=/[,\[\]\{\}]/,Ha=/^(?:!|!!|![a-z\-]+!)$/i,Ba=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Uo(e){return Object.prototype.toString.call(e)}function Ut(e){return e===10||e===13}function Ln(e){return e===9||e===32}function yt(e){return e===9||e===32||e===10||e===13}function Kn(e){return e===44||e===91||e===93||e===123||e===125}function e1(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function t1(e){return e===120?2:e===117?4:e===85?8:0}function n1(e){return 48<=e&&e<=57?e-48:-1}function Yo(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 i1(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function ja(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var Ua=new Array(256),Ya=new Array(256);for(var Bn=0;Bn<256;Bn++)Ua[Bn]=Yo(Bn)?1:0,Ya[Bn]=Yo(Bn);function l1(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ps,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 Ka(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=a0(n),new ht(t,n)}function ae(e,t){throw Ka(e,t)}function sl(e,t){e.onWarning&&e.onWarning.call(null,Ka(e,t))}var Ko={YAML:function(t,n,l){var i,s,o;t.version!==null&&ae(t,"duplication of %YAML directive"),l.length!==1&&ae(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),i===null&&ae(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ae(t,"unacceptable YAML version of the document"),t.version=l[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&sl(t,"unsupported YAML version of the document")},TAG:function(t,n,l){var i,s;l.length!==2&&ae(t,"TAG directive accepts exactly two arguments"),i=l[0],s=l[1],Ha.test(i)||ae(t,"ill-formed tag handle (first argument) of the TAG directive"),mn.call(t.tagMap,i)&&ae(t,'there is a previously declared suffix for "'+i+'" tag handle'),Ba.test(s)||ae(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ae(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function vn(e,t,n,l){var i,s,o,r;if(t<n){if(r=e.input.slice(t,n),l)for(i=0,s=r.length;i<s;i+=1)o=r.charCodeAt(i),o===9||32<=o&&o<=1114111||ae(e,"expected valid JSON character");else J0.test(r)&&ae(e,"the stream contains non-printable characters");e.result+=r}}function Wo(e,t,n,l){var i,s,o,r;for(Je.isObject(n)||ae(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,r=i.length;o<r;o+=1)s=i[o],mn.call(t,s)||(ja(t,s,n[s]),l[s]=!0)}function Wn(e,t,n,l,i,s,o,r,c){var d,a;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),d=0,a=i.length;d<a;d+=1)Array.isArray(i[d])&&ae(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Uo(i[d])==="[object Object]"&&(i[d]="[object Object]");if(typeof i=="object"&&Uo(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(d=0,a=s.length;d<a;d+=1)Wo(e,t,s[d],n);else Wo(e,t,s,n);else!e.json&&!mn.call(n,i)&&mn.call(t,i)&&(e.line=o||e.line,e.lineStart=r||e.lineStart,e.position=c||e.position,ae(e,"duplicated mapping key")),ja(t,i,s),delete n[i];return t}function Os(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++):ae(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ze(e,t,n){for(var l=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ln(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Ut(i))for(Os(e),i=e.input.charCodeAt(e.position),l++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&l!==0&&e.lineIndent<n&&sl(e,"deficient indentation"),l}function _l(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||yt(n)))}function Rs(e,t){t===1?e.result+=" ":t>1&&(e.result+=Je.repeat(`
|
|
37
|
+
`,t-1))}function s1(e,t,n){var l,i,s,o,r,c,d,a,f=e.kind,v=e.result,h;if(h=e.input.charCodeAt(e.position),yt(h)||Kn(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),yt(i)||n&&Kn(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,r=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),yt(i)||n&&Kn(i))break}else if(h===35){if(l=e.input.charCodeAt(e.position-1),yt(l))break}else{if(e.position===e.lineStart&&_l(e)||n&&Kn(h))break;if(Ut(h))if(c=e.line,d=e.lineStart,a=e.lineIndent,ze(e,!1,-1),e.lineIndent>=t){r=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=d,e.lineIndent=a;break}}r&&(vn(e,s,o,!1),Rs(e,e.line-c),s=o=e.position,r=!1),Ln(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return vn(e,s,o,!1),e.result?!0:(e.kind=f,e.result=v,!1)}function o1(e,t){var n,l,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(vn(e,l,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)l=e.position,e.position++,i=e.position;else return!0;else Ut(n)?(vn(e,l,i,!0),Rs(e,ze(e,!1,t)),l=i=e.position):e.position===e.lineStart&&_l(e)?ae(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ae(e,"unexpected end of the stream within a single quoted scalar")}function r1(e,t){var n,l,i,s,o,r;if(r=e.input.charCodeAt(e.position),r!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=l=e.position;(r=e.input.charCodeAt(e.position))!==0;){if(r===34)return vn(e,n,e.position,!0),e.position++,!0;if(r===92){if(vn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),Ut(r))ze(e,!1,t);else if(r<256&&Ua[r])e.result+=Ya[r],e.position++;else if((o=t1(r))>0){for(i=o,s=0;i>0;i--)r=e.input.charCodeAt(++e.position),(o=e1(r))>=0?s=(s<<4)+o:ae(e,"expected hexadecimal character");e.result+=i1(s),e.position++}else ae(e,"unknown escape sequence");n=l=e.position}else Ut(r)?(vn(e,n,l,!0),Rs(e,ze(e,!1,t)),n=l=e.position):e.position===e.lineStart&&_l(e)?ae(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}ae(e,"unexpected end of the stream within a double quoted scalar")}function a1(e,t){var n=!0,l,i,s,o=e.tag,r,c=e.anchor,d,a,f,v,h,g=Object.create(null),k,$,E,x;if(x=e.input.charCodeAt(e.position),x===91)a=93,h=!1,r=[];else if(x===123)a=125,h=!0,r={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=r),x=e.input.charCodeAt(++e.position);x!==0;){if(ze(e,!0,t),x=e.input.charCodeAt(e.position),x===a)return e.position++,e.tag=o,e.anchor=c,e.kind=h?"mapping":"sequence",e.result=r,!0;n?x===44&&ae(e,"expected the node content, but found ','"):ae(e,"missed comma between flow collection entries"),$=k=E=null,f=v=!1,x===63&&(d=e.input.charCodeAt(e.position+1),yt(d)&&(f=v=!0,e.position++,ze(e,!0,t))),l=e.line,i=e.lineStart,s=e.position,ei(e,t,il,!1,!0),$=e.tag,k=e.result,ze(e,!0,t),x=e.input.charCodeAt(e.position),(v||e.line===l)&&x===58&&(f=!0,x=e.input.charCodeAt(++e.position),ze(e,!0,t),ei(e,t,il,!1,!0),E=e.result),h?Wn(e,r,g,$,k,E,l,i,s):f?r.push(Wn(e,null,g,$,k,E,l,i,s)):r.push(k),ze(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(n=!0,x=e.input.charCodeAt(++e.position)):n=!1}ae(e,"unexpected end of the stream within a flow collection")}function u1(e,t){var n,l,i=jl,s=!1,o=!1,r=t,c=0,d=!1,a,f;if(f=e.input.charCodeAt(e.position),f===124)l=!1;else if(f===62)l=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)jl===i?i=f===43?jo:q0:ae(e,"repeat of a chomping mode identifier");else if((a=n1(f))>=0)a===0?ae(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ae(e,"repeat of an indentation width identifier"):(r=t+a-1,o=!0);else break;if(Ln(f)){do f=e.input.charCodeAt(++e.position);while(Ln(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Ut(f)&&f!==0)}for(;f!==0;){for(Os(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),Ut(f)){c++;continue}if(e.lineIndent<r){i===jo?e.result+=Je.repeat(`
|
|
38
|
+
`,s?1+c:c):i===jl&&s&&(e.result+=`
|
|
39
|
+
`);break}for(l?Ln(f)?(d=!0,e.result+=Je.repeat(`
|
|
40
|
+
`,s?1+c:c)):d?(d=!1,e.result+=Je.repeat(`
|
|
41
|
+
`,c+1)):c===0?s&&(e.result+=" "):e.result+=Je.repeat(`
|
|
42
|
+
`,c):e.result+=Je.repeat(`
|
|
43
|
+
`,s?1+c:c),s=!0,o=!0,c=0,n=e.position;!Ut(f)&&f!==0;)f=e.input.charCodeAt(++e.position);vn(e,n,e.position,!1)}return!0}function zo(e,t){var n,l=e.tag,i=e.anchor,s=[],o,r=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ae(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!yt(o))));){if(r=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,ei(e,t,Va,!1,!0),s.push(e.result),ze(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)ae(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return r?(e.tag=l,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function c1(e,t,n){var l,i,s,o,r,c,d=e.tag,a=e.anchor,f={},v=Object.create(null),h=null,g=null,k=null,$=!1,E=!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,ae(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),s=e.line,(x===63||x===58)&&yt(l))x===63?($&&(Wn(e,f,v,h,g,null,o,r,c),h=g=k=null),E=!0,$=!0,i=!0):$?($=!1,i=!0):ae(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=l;else{if(o=e.line,r=e.lineStart,c=e.position,!ei(e,n,Na,!1,!0))break;if(e.line===s){for(x=e.input.charCodeAt(e.position);Ln(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),yt(x)||ae(e,"a whitespace character is expected after the key-value separator within a block mapping"),$&&(Wn(e,f,v,h,g,null,o,r,c),h=g=k=null),E=!0,$=!1,i=!1,h=e.tag,g=e.result;else if(E)ae(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=a,!0}else if(E)ae(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===s||e.lineIndent>t)&&($&&(o=e.line,r=e.lineStart,c=e.position),ei(e,t,ll,!0,i)&&($?g=e.result:k=e.result),$||(Wn(e,f,v,h,g,k,o,r,c),h=g=k=null),ze(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&x!==0)ae(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return $&&Wn(e,f,v,h,g,null,o,r,c),E&&(e.tag=d,e.anchor=a,e.kind="mapping",e.result=f),E}function d1(e){var t,n=!1,l=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ae(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(l=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ae(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!yt(o);)o===33&&(l?ae(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ha.test(i)||ae(e,"named tag handle cannot contain such characters"),l=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Q0.test(s)&&ae(e,"tag suffix cannot contain flow indicator characters")}s&&!Ba.test(s)&&ae(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ae(e,"tag name is malformed: "+s)}return n?e.tag=s:mn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ae(e,'undeclared tag handle "'+i+'"'),!0}function f1(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&ae(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!yt(n)&&!Kn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ae(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function p1(e){var t,n,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),t=e.position;l!==0&&!yt(l)&&!Kn(l);)l=e.input.charCodeAt(++e.position);return e.position===t&&ae(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),mn.call(e.anchorMap,n)||ae(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ze(e,!0,-1),!0}function ei(e,t,n,l,i){var s,o,r,c=1,d=!1,a=!1,f,v,h,g,k,$;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=r=ll===n||Va===n,l&&ze(e,!0,-1)&&(d=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;d1(e)||f1(e);)ze(e,!0,-1)?(d=!0,r=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):r=!1;if(r&&(r=d||i),(c===1||ll===n)&&(il===n||Na===n?k=t:k=t+1,$=e.position-e.lineStart,c===1?r&&(zo(e,$)||c1(e,$,k))||a1(e,k)?a=!0:(o&&u1(e,k)||o1(e,k)||r1(e,k)?a=!0:p1(e)?(a=!0,(e.tag!==null||e.anchor!==null)&&ae(e,"alias node should not have any properties")):s1(e,k,il===n)&&(a=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(a=r&&zo(e,$))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ae(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,v=e.implicitTypes.length;f<v;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(mn.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,h=e.typeMap.multi[e.kind||"fallback"],f=0,v=h.length;f<v;f+=1)if(e.tag.slice(0,h[f].tag.length)===h[f].tag){g=h[f];break}g||ae(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&ae(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ae(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 h1(e){var t=e.position,n,l,i,s=!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&&(ze(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!yt(o);)o=e.input.charCodeAt(++e.position);for(l=e.input.slice(n,e.position),i=[],l.length<1&&ae(e,"directive name must not be less than one character in length");o!==0;){for(;Ln(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Ut(o));break}if(Ut(o))break;for(n=e.position;o!==0&&!yt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&Os(e),mn.call(Ko,l)?Ko[l](e,l,i):sl(e,'unknown document directive "'+l+'"')}if(ze(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,ze(e,!0,-1)):s&&ae(e,"directives end mark is expected"),ei(e,e.lineIndent-1,ll,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&Z0.test(e.input.slice(t,e.position))&&sl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&_l(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position<e.length-1)ae(e,"end of the stream or a document separator is expected");else return}function Wa(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 l1(e,t),l=e.indexOf("\0");for(l!==-1&&(n.position=l,ae(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;)h1(n);return n.documents}function v1(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var l=Wa(e,n);if(typeof t!="function")return l;for(var i=0,s=l.length;i<s;i+=1)t(l[i])}function g1(e,t){var n=Wa(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new ht("expected a single document in the stream, but found more")}}var m1=v1,y1=g1,za={loadAll:m1,load:y1},Ga=Object.prototype.toString,Xa=Object.prototype.hasOwnProperty,Ms=65279,b1=9,Ai=10,w1=13,_1=32,x1=33,k1=34,us=35,C1=37,A1=38,S1=39,$1=42,qa=44,T1=45,ol=58,E1=61,F1=62,I1=63,P1=64,Ja=91,Za=93,O1=96,Qa=123,R1=124,eu=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 M1=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],L1=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function D1(e,t){var n,l,i,s,o,r,c;if(t===null)return{};for(n={},l=Object.keys(t),i=0,s=l.length;i<s;i+=1)o=l[i],r=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&Xa.call(c.styleAliases,r)&&(r=c.styleAliases[r]),n[o]=r;return n}function N1(e){var t,n,l;if(t=e.toString(16).toUpperCase(),e<=255)n="x",l=2;else if(e<=65535)n="u",l=4;else if(e<=4294967295)n="U",l=8;else throw new ht("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Je.repeat("0",l-t.length)+t}var V1=1,Si=2;function H1(e){this.schema=e.schema||Ps,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Je.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=D1(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==='"'?Si:V1,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 Go(e,t){for(var n=Je.repeat(" ",t),l=0,i=-1,s="",o,r=e.length;l<r;)i=e.indexOf(`
|
|
45
|
+
`,l),i===-1?(o=e.slice(l),l=r):(o=e.slice(l,i+1),l=i+1),o.length&&o!==`
|
|
46
|
+
`&&(s+=n),s+=o;return s}function cs(e,t){return`
|
|
47
|
+
`+Je.repeat(" ",e.indent*t)}function B1(e,t){var n,l,i;for(n=0,l=e.implicitTypes.length;n<l;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function rl(e){return e===_1||e===b1}function $i(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ms||65536<=e&&e<=1114111}function Xo(e){return $i(e)&&e!==Ms&&e!==w1&&e!==Ai}function qo(e,t,n){var l=Xo(e),i=l&&!rl(e);return(n?l:l&&e!==qa&&e!==Ja&&e!==Za&&e!==Qa&&e!==eu)&&e!==us&&!(t===ol&&!i)||Xo(t)&&!rl(t)&&e===us||t===ol&&i}function j1(e){return $i(e)&&e!==Ms&&!rl(e)&&e!==T1&&e!==I1&&e!==ol&&e!==qa&&e!==Ja&&e!==Za&&e!==Qa&&e!==eu&&e!==us&&e!==A1&&e!==$1&&e!==x1&&e!==R1&&e!==E1&&e!==F1&&e!==S1&&e!==k1&&e!==C1&&e!==P1&&e!==O1}function U1(e){return!rl(e)&&e!==ol}function ci(e,t){var n=e.charCodeAt(t),l;return n>=55296&&n<=56319&&t+1<e.length&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(n-55296)*1024+l-56320+65536:n}function tu(e){var t=/^\n* /;return t.test(e)}var nu=1,ds=2,iu=3,lu=4,Yn=5;function Y1(e,t,n,l,i,s,o,r){var c,d=0,a=null,f=!1,v=!1,h=l!==-1,g=-1,k=j1(ci(e,0))&&U1(ci(e,e.length-1));if(t||o)for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ci(e,c),!$i(d))return Yn;k=k&&qo(d,a,r),a=d}else{for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ci(e,c),d===Ai)f=!0,h&&(v=v||c-g-1>l&&e[g+1]!==" ",g=c);else if(!$i(d))return Yn;k=k&&qo(d,a,r),a=d}v=v||h&&c-g-1>l&&e[g+1]!==" "}return!f&&!v?k&&!o&&!i(e)?nu:s===Si?Yn:ds:n>9&&tu(e)?Yn:o?s===Si?Yn:ds:v?lu:iu}function K1(e,t,n,l,i){e.dump=(function(){if(t.length===0)return e.quotingType===Si?'""':"''";if(!e.noCompatMode&&(M1.indexOf(t)!==-1||L1.test(t)))return e.quotingType===Si?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),r=l||e.flowLevel>-1&&n>=e.flowLevel;function c(d){return B1(e,d)}switch(Y1(t,r,e.indent,o,c,e.quotingType,e.forceQuotes&&!l,i)){case nu:return t;case ds:return"'"+t.replace(/'/g,"''")+"'";case iu:return"|"+Jo(t,e.indent)+Zo(Go(t,s));case lu:return">"+Jo(t,e.indent)+Zo(Go(W1(t,o),s));case Yn:return'"'+z1(t)+'"';default:throw new ht("impossible error: invalid scalar style")}})()}function Jo(e,t){var n=tu(e)?String(t):"",l=e[e.length-1]===`
|
|
48
|
+
`,i=l&&(e[e.length-2]===`
|
|
49
|
+
`||e===`
|
|
50
|
+
`),s=i?"+":l?"":"-";return n+s+`
|
|
51
|
+
`}function Zo(e){return e[e.length-1]===`
|
|
52
|
+
`?e.slice(0,-1):e}function W1(e,t){for(var n=/(\n+)([^\n]*)/g,l=(function(){var d=e.indexOf(`
|
|
53
|
+
`);return d=d!==-1?d:e.length,n.lastIndex=d,Qo(e.slice(0,d),t)})(),i=e[0]===`
|
|
54
|
+
`||e[0]===" ",s,o;o=n.exec(e);){var r=o[1],c=o[2];s=c[0]===" ",l+=r+(!i&&!s&&c!==""?`
|
|
55
|
+
`:"")+Qo(c,t),i=s}return l}function Qo(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,l,i=0,s,o=0,r=0,c="";l=n.exec(e);)r=l.index,r-i>t&&(s=o>i?o:r,c+=`
|
|
56
|
+
`+e.slice(i,s),i=s+1),o=r;return c+=`
|
|
57
|
+
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
58
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function z1(e){for(var t="",n=0,l,i=0;i<e.length;n>=65536?i+=2:i++)n=ci(e,i),l=ut[n],!l&&$i(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=l||N1(n);return t}function G1(e,t,n){var l="",i=e.tag,s,o,r;for(s=0,o=n.length;s<o;s+=1)r=n[s],e.replacer&&(r=e.replacer.call(n,String(s),r)),(un(e,t,r,!1,!1)||typeof r>"u"&&un(e,t,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=i,e.dump="["+l+"]"}function er(e,t,n,l){var i="",s=e.tag,o,r,c;for(o=0,r=n.length;o<r;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(un(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&un(e,t+1,null,!0,!0,!1,!0))&&((!l||i!=="")&&(i+=cs(e,t)),e.dump&&Ai===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function X1(e,t,n){var l="",i=e.tag,s=Object.keys(n),o,r,c,d,a;for(o=0,r=s.length;o<r;o+=1)a="",l!==""&&(a+=", "),e.condenseFlow&&(a+='"'),c=s[o],d=n[c],e.replacer&&(d=e.replacer.call(n,c,d)),un(e,t,c,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),un(e,t,d,!1,!1)&&(a+=e.dump,l+=a));e.tag=i,e.dump="{"+l+"}"}function q1(e,t,n,l){var i="",s=e.tag,o=Object.keys(n),r,c,d,a,f,v;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ht("sortKeys must be a boolean or a function");for(r=0,c=o.length;r<c;r+=1)v="",(!l||i!=="")&&(v+=cs(e,t)),d=o[r],a=n[d],e.replacer&&(a=e.replacer.call(n,d,a)),un(e,t+1,d,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ai===e.dump.charCodeAt(0)?v+="?":v+="? "),v+=e.dump,f&&(v+=cs(e,t)),un(e,t+1,a,!0,f)&&(e.dump&&Ai===e.dump.charCodeAt(0)?v+=":":v+=": ",v+=e.dump,i+=v));e.tag=s,e.dump=i||"{}"}function tr(e,t,n){var l,i,s,o,r,c;for(i=n?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(r=i[s],(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(c=e.styleMap[r.tag]||r.defaultStyle,Ga.call(r.represent)==="[object Function]")l=r.represent(t,c);else if(Xa.call(r.represent,c))l=r.represent[c](t,c);else throw new ht("!<"+r.tag+'> tag resolver accepts not "'+c+'" style');e.dump=l}return!0}return!1}function un(e,t,n,l,i,s,o){e.tag=null,e.dump=n,tr(e,n,!1)||tr(e,n,!0);var r=Ga.call(e.dump),c=l,d;l&&(l=e.flowLevel<0||e.flowLevel>t);var a=r==="[object Object]"||r==="[object Array]",f,v;if(a&&(f=e.duplicates.indexOf(n),v=f!==-1),(e.tag!==null&&e.tag!=="?"||v||e.indent!==2&&t>0)&&(i=!1),v&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(a&&v&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),r==="[object Object]")l&&Object.keys(e.dump).length!==0?(q1(e,t,e.dump,i),v&&(e.dump="&ref_"+f+e.dump)):(X1(e,t,e.dump),v&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?er(e,t-1,e.dump,i):er(e,t,e.dump,i),v&&(e.dump="&ref_"+f+e.dump)):(G1(e,t,e.dump),v&&(e.dump="&ref_"+f+" "+e.dump));else if(r==="[object String]")e.tag!=="?"&&K1(e,e.dump,t,s,c);else{if(r==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ht("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 J1(e,t){var n=[],l=[],i,s;for(fs(e,n,l),i=0,s=l.length;i<s;i+=1)t.duplicates.push(n[l[i]]);t.usedDuplicates=new Array(s)}function fs(e,t,n){var l,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)fs(e[i],t,n);else for(l=Object.keys(e),i=0,s=l.length;i<s;i+=1)fs(e[l[i]],t,n)}function Z1(e,t){t=t||{};var n=new H1(t);n.noRefs||J1(e,n);var l=e;return n.replacer&&(l=n.replacer.call({"":l},"",l)),un(n,0,l,!0,!0)?n.dump+`
|
|
59
|
+
`:""}var Q1=Z1,ey={dump:Q1};function Ls(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 ty=it,ny=ba,iy=ka,ly=Ta,sy=Ea,oy=Ps,ry=za.load,ay=za.loadAll,uy=ey.dump,cy=ht,dy={binary:Ra,float:$a,map:xa,null:Ca,pairs:La,set:Da,timestamp:Pa,bool:Aa,int:Sa,merge:Oa,omap:Ma,seq:_a,str:wa},fy=Ls("safeLoad","load"),py=Ls("safeLoadAll","loadAll"),hy=Ls("safeDump","dump"),vy={Type:ty,Schema:ny,FAILSAFE_SCHEMA:iy,JSON_SCHEMA:ly,CORE_SCHEMA:sy,DEFAULT_SCHEMA:oy,load:ry,loadAll:ay,dump:uy,YAMLException:cy,types:dy,safeLoad:fy,safeLoadAll:py,safeDump:hy};const gy={class:"report-drawer"},my={class:"report-header"},yy={class:"report-title"},by={key:0,class:"report-badge"},wy={class:"report-controls"},_y={class:"format-toggle"},xy=["disabled"],ky={key:0,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},Cy={class:"report-body"},Ay={key:0,class:"report-code"},Sy=["innerHTML"],$y={key:1,class:"report-empty"},Ty=st({__name:"ReportViewer",props:{tasks:{}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,i=U("json"),s=U(!1),o=re(()=>n.tasks.length?{version:"1.0",tasks:n.tasks}:null),r=re(()=>o.value?i.value==="yaml"?vy.dump(o.value,{indent:2,lineWidth:120,noRefs:!0}):JSON.stringify(o.value,null,2):""),c=U("");rt([r,i],()=>{Tr(()=>{const v=i.value==="yaml"?"yaml":"json",h=Ho.languages[v];c.value=h?Ho.highlight(r.value,h,v):d(r.value)})},{immediate:!0});function d(v){return v.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function a(){navigator.clipboard.writeText(r.value),s.value=!0,setTimeout(()=>s.value=!1,2e3)}function f(v){v.key==="Escape"&&l("close")}return(v,h)=>(y(),b("div",{class:"report-overlay",onKeydown:f,tabindex:"-1"},[u("div",{class:"report-backdrop",onClick:h[0]||(h[0]=g=>l("close"))}),u("aside",gy,[u("header",my,[u("div",yy,[h[4]||(h[4]=u("span",null,"Tasks",-1)),e.tasks.length?(y(),b("span",by,I(e.tasks.length)+" task"+I(e.tasks.length===1?"":"s"),1)):B("",!0)]),u("div",wy,[u("div",_y,[u("button",{class:Z(["fmt-btn",{active:i.value==="json"}]),onClick:h[1]||(h[1]=g=>i.value="json")},"JSON",2),u("button",{class:Z(["fmt-btn",{active:i.value==="yaml"}]),onClick:h[2]||(h[2]=g=>i.value="yaml")},"YAML",2)]),u("button",{class:"copy-btn",onClick:a,disabled:!o.value},[s.value?B("",!0):(y(),b("svg",ky,[...h[5]||(h[5]=[u("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"},null,-1),u("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},null,-1)])])),tt(" "+I(s.value?"Copied!":"Copy"),1)],8,xy),u("button",{class:"close-btn",onClick:h[3]||(h[3]=g=>l("close")),title:"Close (Esc)"},[...h[6]||(h[6]=[u("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),u("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])])]),u("div",Cy,[o.value?(y(),b("pre",Ay,[u("code",{innerHTML:c.value},null,8,Sy)])):(y(),b("div",$y,[...h[7]||(h[7]=[u("p",null,"No tasks yet.",-1),u("p",{class:"report-empty-hint"},"Pin elements, draw sections, or add annotations to create tasks for your coding agent.",-1)])]))])])],32))}}),Ey=["title"],Fy={class:"vp-label"},Iy={key:0,class:"vp-dropdown"},Py={class:"vp-group"},Oy=["onClick"],Ry={class:"vp-item-label"},My={class:"vp-item-dim"},Ly={class:"vp-group"},Dy=["onClick"],Ny={class:"vp-item-label"},Vy={class:"vp-item-dim"},Hy={class:"vp-group"},By=["onClick"],jy={class:"vp-item-label"},Uy={class:"vp-item-dim"},Yy={class:"vp-custom"},Ky={class:"vp-custom-row"},Wy=st({__name:"ViewportSelector",setup(e){const t=Fs(),n=U(!1),l=U(""),i=U(""),s=U(null),o=re(()=>{const f={phone:[],tablet:[],desktop:[]};for(const v of os)f[v.category].push(v);return f}),r=re(()=>{const f=t.effectiveViewport.value;return!f.width&&!f.height?"Responsive":`${f.width}×${f.height}`});function c(f){t.selectPreset(f),n.value=!1}function d(){const f=parseInt(l.value)||null,v=parseInt(i.value)||null;(f||v)&&(t.setCustomDimensions(f,v),n.value=!1)}function a(f){n.value&&s.value&&!s.value.contains(f.target)&&(n.value=!1)}return Dn(()=>document.addEventListener("click",a)),bn(()=>document.removeEventListener("click",a)),(f,v)=>(y(),b("div",{ref_key:"root",ref:s,class:"viewport-selector"},[u("button",{class:"vp-trigger",onClick:v[0]||(v[0]=h=>n.value=!n.value),title:O(t).effectiveViewport.value.label},[v[5]||(v[5]=u("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),u("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),u("line",{x1:"12",y1:"17",x2:"12",y2:"21"})],-1)),u("span",Fy,I(r.value),1),v[6]||(v[6]=u("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3"},[u("polyline",{points:"6 9 12 15 18 9"})],-1))],8,Ey),n.value?(y(),b("div",Iy,[u("button",{class:Z(["vp-item",{active:O(t).isFullWidth.value}]),onClick:v[1]||(v[1]=h=>c(null))},[...v[7]||(v[7]=[u("span",{class:"vp-item-label"},"Responsive",-1),u("span",{class:"vp-item-dim"},"100%",-1)])],2),u("div",Py,[v[8]||(v[8]=u("div",{class:"vp-group-title"},"Phone",-1)),(y(!0),b(ie,null,ye(o.value.phone,h=>(y(),b("button",{key:h.id,class:Z(["vp-item",{active:O(t).activePresetId.value===h.id}]),onClick:g=>c(h)},[u("span",Ry,I(h.label),1),u("span",My,I(h.width)+"×"+I(h.height),1)],10,Oy))),128))]),u("div",Ly,[v[9]||(v[9]=u("div",{class:"vp-group-title"},"Tablet",-1)),(y(!0),b(ie,null,ye(o.value.tablet,h=>(y(),b("button",{key:h.id,class:Z(["vp-item",{active:O(t).activePresetId.value===h.id}]),onClick:g=>c(h)},[u("span",Ny,I(h.label),1),u("span",Vy,I(h.width)+"×"+I(h.height),1)],10,Dy))),128))]),u("div",Hy,[v[10]||(v[10]=u("div",{class:"vp-group-title"},"Desktop",-1)),(y(!0),b(ie,null,ye(o.value.desktop,h=>(y(),b("button",{key:h.id,class:Z(["vp-item",{active:O(t).activePresetId.value===h.id}]),onClick:g=>c(h)},[u("span",jy,I(h.label),1),u("span",Uy,I(h.width)+"×"+I(h.height),1)],10,By))),128))]),u("div",Yy,[v[12]||(v[12]=u("div",{class:"vp-group-title"},"Custom",-1)),u("div",Ky,[Ie(u("input",{"onUpdate:modelValue":v[2]||(v[2]=h=>l.value=h),type:"number",placeholder:"W",class:"vp-input",onKeydown:Ct(d,["enter"])},null,544),[[Ye,l.value]]),v[11]||(v[11]=u("span",{class:"vp-x"},"×",-1)),Ie(u("input",{"onUpdate:modelValue":v[3]||(v[3]=h=>i.value=h),type:"number",placeholder:"H",class:"vp-input",onKeydown:Ct(d,["enter"])},null,544),[[Ye,i.value]]),u("button",{class:"vp-apply",onClick:d},"Set")])]),O(t).isFullWidth.value?B("",!0):(y(),b("button",{key:0,class:"vp-item vp-rotate",onClick:v[4]||(v[4]=h=>O(t).toggleRotate())},[...v[13]||(v[13]=[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("polyline",{points:"1 4 1 10 7 10"}),u("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})],-1),u("span",{class:"vp-item-label"},"Rotate",-1)])]))])):B("",!0)],512))}}),zy=vt(Wy,[["__scopeId","data-v-0f350755"]]),Gy={class:"annotask-shell"},Xy={class:"toolbar"},qy={class:"toolbar-left"},Jy={class:"view-toggle"},Zy={key:0,class:"toolbar-center"},Qy={class:"route-indicator"},eb={key:1,class:"toolbar-center"},tb={key:2,class:"toolbar-right"},nb={class:"panel-toggle"},ib={key:0,class:"toggle-badge"},lb={key:0,class:"toggle-badge"},sb={class:"visibility-toggles"},ob={key:3,class:"toolbar-right"},rb={key:0,class:"warning-banner"},ab={key:1,class:"setup-banner"},ub={class:"main"},cb=["src"],db={key:0,class:"hover-label"},fb={class:"hover-tag"},pb={key:0,class:"hover-comp"},hb={key:0,class:"select-label"},vb={key:0,class:"theme-panel"},gb={key:1,class:"panel"},mb={class:"panel-source"},yb={key:2,class:"panel"},bb={class:"pending-task-panel"},wb={class:"pending-task-context"},_b={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},xb={key:1,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},kb={class:"pending-task-file"},Cb=["onKeydown"],Ab={class:"task-toggles"},Sb={class:"history-toggle"},$b={class:"history-toggle"},Tb={key:0,class:"screenshot-preview"},Eb=["src"],Fb={class:"pending-task-actions"},Ib=["disabled"],Pb={key:3,class:"panel"},Ob={class:"panel-source"},Rb={class:"component-badge"},Mb={key:0,class:"new-task-form"},Lb=["onKeydown"],Db={class:"task-toggles"},Nb={class:"history-toggle"},Vb={class:"history-toggle"},Hb={key:0,class:"screenshot-preview"},Bb=["src"],jb={class:"new-task-actions"},Ub=["disabled"],Yb={class:"tab-content"},Kb={key:0,class:"empty-hint",style:{padding:"20px 0"}},Wb={class:"task-card-header"},zb={class:"task-card-desc"},Gb=["onClick"],Xb={class:"task-card-meta"},qb={class:"task-card-file"},Jb={key:0,class:"task-route-badge"},Zb=["src"],Qb={key:1,class:"task-card-feedback"},ew={key:2,class:"task-card-actions"},tw=["onClick"],nw=["onClick"],iw={key:1,class:"deny-form"},lw=["onKeydown"],sw={class:"task-toggles"},ow={class:"history-toggle"},rw={class:"history-toggle"},aw={key:0,class:"screenshot-preview"},uw=["src"],cw={class:"deny-form-actions"},dw=["disabled","onClick"],fw={key:4,class:"panel"},pw={class:"panel-source"},hw=["disabled"],vw={class:"tab-content"},gw={key:0,class:"a11y-error"},mw={key:1,class:"a11y-pass"},yw={key:2,class:"a11y-empty"},bw={key:3,class:"a11y-summary"},ww={class:"a11y-card-header"},_w={class:"a11y-rule"},xw={class:"a11y-count"},kw={class:"a11y-help"},Cw={key:0,class:"a11y-tasked"},Aw=["onClick"],Sw={key:5,class:"panel"},$w={class:"panel-source"},Tw={class:"source-path"},Ew={class:"component-badge"},Fw={key:0,class:"panel-group-bar"},Iw={class:"group-summary"},Pw={key:0,class:"group-toggle"},Ow={class:"toggle-label"},Rw={class:"panel-tabs"},Mw={key:0,class:"tab-badge"},Lw={class:"tab-content"},Dw={key:4,class:"classes-tab"},Nw=["onKeydown"],Vw={key:1,class:"changes-footer"},Hw={class:"changes-list"},Bw={class:"change-prop"},jw={class:"change-val"},Uw={class:"change-val"},Yw={class:"changes-actions"},Kw={class:"changes-count"},Ww={key:6,class:"panel empty"},zw=st({__name:"App",setup(e){const t=Hp(),{applyStyle:n,recordAnnotation:l,recordClassChange:i,removeAnnotationsByFile:s,changes:o}=t;async function r(){const S=t.undo();S&&(S.type==="style"&&S.eid?await w.undoStyle(S.eid,S.property,S.value||""):S.type==="class"&&S.eid?await w.undoClass(S.eid,S.classes||""):S.type==="insert_remove"&&S.eid&&await w.removePlaceholder(S.eid),await Kt())}async function c(){const S=t.clearChanges();for(const p of S)await w.removePlaceholder(p)}async function d(){var Xe,zt,Gt,bt,Tt,ti,Li,Ks,Ws;if(o.value.length===0)return;const S=o.value.filter(qe=>qe.type==="style_update"),p=o.value.filter(qe=>qe.type==="class_update"),M=[];for(const qe of S)M.push(`${qe.property}: ${qe.after}`);for(const qe of p)M.push(`classes: ${qe.after.classes}`);const te=M.length<=3?`Update ${M.join(", ")}`:`Update ${M.slice(0,2).join(", ")} and ${M.length-2} more`,fe=((Xe=W.value)==null?void 0:Xe.file)||((zt=S[0])==null?void 0:zt.file)||((Gt=p[0])==null?void 0:Gt.file)||"",ke=(bt=W.value)!=null&&bt.line?parseInt(W.value.line):((Tt=S[0])==null?void 0:Tt.line)||((ti=p[0])==null?void 0:ti.line)||0,A=((Li=W.value)==null?void 0:Li.component)||((Ks=S[0])==null?void 0:Ks.component)||((Ws=p[0])==null?void 0:Ws.component)||"",ve=[];for(const qe of S)ve.push({property:qe.property,before:qe.before,after:qe.after,file:qe.file,line:qe.line});for(const qe of p)ve.push({type:"class",before:qe.before.classes,after:qe.after.classes,file:qe.file,line:qe.line});await Wt({type:"style_update",description:te,file:fe,line:ke,component:A,context:{changes:ve}}),await c()}const a=Up(),f=ga(),v=Fs(),h=ha(),g=U(null),{mode:k}=Bp(),{isInitialized:$}=Es(),E=U(localStorage.getItem("annotask:shellView")==="theme"?"theme":"editor");rt(E,S=>localStorage.setItem("annotask:shellView",S));const x=jp(g),w=Xp(g),{currentRoute:C}=w,F=qp(a,(S,p)=>w.resolveElementAt(S,p),()=>k.value,pu),{drawingArrow:D,drawingRect:H,onCanvasPointerDown:se,onCanvasPointerMove:P,onCanvasPointerUp:X}=F;rt(k,S=>{w.setMode(S),S==="interact"&&(W.value=null,m.value=[],_.value=[],Be.value=null,Ze.value=null),S==="select"&&(be.value="notes")});const ne=U(!1),he=U(!1),be=U("notes"),we=U({pins:!0,arrows:!0,sections:!0,highlights:!0,inspector:!0}),Ne=U(["inspector","tasks","a11y"].includes(localStorage.getItem("annotask:activePanel")||"")?localStorage.getItem("annotask:activePanel"):"inspector");rt(Ne,S=>localStorage.setItem("annotask:activePanel",S));const Te=U(!1),_e=U(""),le=U(localStorage.getItem("annotask:includeHistory")==="true");rt(le,S=>localStorage.setItem("annotask:includeHistory",String(S)));const xe=U(localStorage.getItem("annotask:includeElementContext")==="true"),He=Jp(w);rt(xe,S=>localStorage.setItem("annotask:includeElementContext",String(S)));const K=U(null),z=U(""),ue=U(localStorage.getItem("annotask:showShortcuts")==="true");rt(ue,S=>localStorage.setItem("annotask:showShortcuts",String(S)));const ge=U(null),Fe=U(""),je=re(()=>f.tasks.value);function Q(S){const p=f.tasks.value.find(M=>M.id===S);if(p!=null&&p.visual){const M=p.visual;if(M.annotationId)M.kind==="pin"?a.removePin(M.annotationId):M.kind==="arrow"?a.removeArrow(M.annotationId):M.kind==="section"&&a.removeDrawnSection(M.annotationId);else if(M.kind==="pin"){const te=a.getPinsForElement(p.file,p.line);for(const fe of te)a.removePin(fe.id)}else if(M.kind==="arrow"){const te=a.arrows.value.find(fe=>Math.abs(fe.fromX-M.fromX)<5&&Math.abs(fe.fromY-M.fromY)<5);te&&a.removeArrow(te.id)}else if(M.kind==="section"){const te=a.drawnSections.value.find(fe=>Math.abs(fe.x-M.x)<5&&Math.abs(fe.y-M.y)<5);te&&a.removeDrawnSection(te.id)}}p.file&&p.line!=null&&s(p.file,p.line),f.updateTaskStatus(S,"accepted")}async function L(S){var fe;if(!z.value.trim())return;const p={},M=He.consumeScreenshot();M&&(p.screenshot=M);const te=v.effectiveViewport.value;if((te.width||te.height)&&(p.viewport={width:te.width,height:te.height}),le.value){const ke=h.snapshotForChange(C.value);ke.recent_actions.length>0&&(p.interaction_history=ke)}if(xe.value&&((fe=W.value)!=null&&fe.eid)){const ke=await w.getElementContext(W.value.eid);ke&&(p.element_context=ke)}f.updateTaskStatus(S,"denied",z.value.trim(),Object.keys(p).length>0?p:void 0),K.value=null,z.value=""}function Oe(){const S=_e.value.trim();S&&(Wt({type:"annotation",description:S,file:"",line:0}),_e.value="",Te.value=!1)}const R=U(null),W=U(null),m=U([]),_=U([]),T=U(!0),Y=Qp(w,f,W,C),{a11yViolations:N,a11yLoading:V,a11yError:J,a11yScanned:q,a11yTaskRules:G,scanA11y:j,createA11yTask:ce}=Y,ee=re(()=>m.value.length>1?m.value:T.value&&_.value.length>1?_.value:W.value?[W.value.eid]:[]),oe=U([]),de=U([]);let Ce=0,Ae=!1;async function Se(){const S=++Ce;if(m.value.length>0){const p=await w.getElementRects(m.value);if(S!==Ce)return;oe.value=p.filter(M=>M!==null)}else oe.value=[];if(T.value&&m.value.length<=1&&_.value.length>0){const p=_.value.filter(te=>!m.value.includes(te)),M=await w.getElementRects(p);if(S!==Ce)return;de.value=M.filter(te=>te!==null)}else de.value=[]}function Ue(){if(Ae)return;Ae=!0;function S(){if(!m.value.length){Ae=!1;return}Se(),requestAnimationFrame(S)}requestAnimationFrame(S)}rt([m,_,T],()=>{m.value.length?Ue():Se()},{deep:!0});const We=re(()=>{const S=m.value.length,p=_.value.length;return S>1?`${S} elements selected`:p>1?`1 selected · ${p} instances in template`:null}),Qe=U(null);async function gt(){if(!W.value){Qe.value=null;return}const S=await w.classifyElement(W.value.eid);Qe.value=(S==null?void 0:S.role)||null}const $t=U({}),wn=U(""),Be=U(null),Ze=U(null),Ri=["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 Kt(){var S;(S=W.value)!=null&&S.eid&&($t.value=await w.getComputedStyles(W.value.eid,Ri))}async function su(){w.initBridgeForIframe(),w.onBridgeReady(async()=>{w.setMode(k.value),ne.value=!await w.checkSourceMapping();const S=await w.getCurrentRoute();a.setRoute(S),uu(),x.showOverlay.value&&x.scan()})}function ou(){w.onBridgeEvent("hover:enter",S=>{const p=w.toShellRect(S.rect);Be.value=p,Ze.value=S.file?{tag:S.tag,file:S.file,component:S.component}:null}),w.onBridgeEvent("hover:leave",()=>{Be.value=null,Ze.value=null}),w.onBridgeEvent("click:element",async S=>{const{file:p,line:M,component:te,mfe:fe,tag:ke,classes:A,eid:ve,shiftKey:Xe,clientX:zt,clientY:Gt}=S,bt=w.toShellRect(S.rect);if(k.value==="pin"){const Tt=bt?bt.x+bt.width/2:zt,ti=bt?bt.y:Gt,Li=a.addPin({file:p,line:M,component:te,elementTag:ke,elementClasses:A},Tt,ti);W.value={file:p,line:M,component:te,mfe:fe||"",tagName:ke,classes:A,eid:ve},m.value=[ve],await Kt(),await gt(),ge.value={kind:"pin",label:`Pin on ${Cl({component:te,tag:ke,classes:A})}`,file:p,line:M,component:te,annotationId:Li.id,meta:{elementTag:ke,elementClasses:A,pinX:Tt,pinY:ti}},Fe.value="";return}if(Xe&&W.value){const Tt=m.value.indexOf(ve);Tt>=0?(m.value.splice(Tt,1),m.value.length===0&&(W.value=null,_.value=[])):m.value.push(ve),await Se()}else{W.value={file:p,line:M,component:te,mfe:fe||"",tagName:ke,classes:A,eid:ve},m.value=[ve];const Tt=await w.findTemplateGroup(p,M,ke);_.value=Tt.eids,T.value=Tt.eids.length>1,wn.value=A,await Kt(),await gt(),await Se()}Be.value=null}),w.onBridgeEvent("contextmenu:element",async S=>{const{file:p,line:M,component:te,mfe:fe,tag:ke,classes:A,eid:ve}=S,Xe=w.toShellRect(S.rect);W.value={file:p,line:M,component:te,tagName:ke,classes:A,eid:ve},m.value=[ve],await Kt(),await gt(),xl.value={visible:!0,x:Xe?Xe.x+Xe.width/2:S.clientX,y:Xe?Xe.y+Xe.height/2:S.clientY}}),w.onBridgeEvent("selection:text",S=>{const p=g.value,M=(p==null?void 0:p.getBoundingClientRect().left)||0,te=(p==null?void 0:p.getBoundingClientRect().top)||0;R.value={text:S.text,x:M+100,y:te+100,file:S.file,line:S.line,component:S.component,tag:S.tag}}),w.onBridgeEvent("keydown",S=>{(S.ctrlKey||S.metaKey)&&S.key==="z"&&!S.shiftKey&&r()}),w.onBridgeEvent("route:changed",S=>{a.setRoute(S.path),h.push("route_change",S.path,{previousRoute:C.value})}),w.onBridgeEvent("user:action",S=>{h.push("action",C.value,S)})}async function Mi(S,p){if(!W.value)return;const M={file:W.value.file,line:W.value.line,component:W.value.component,mfe:W.value.mfe||void 0},te=ee.value;for(const fe of te){const ke=await w.applyStyleVia(fe,S,p);n(fe,S,p,ke,M)}await Kt()}async function Ds(){if(!W.value)return;const S=W.value.classes,p=wn.value;if(S===p)return;const M={file:W.value.file,line:W.value.line,component:W.value.component,mfe:W.value.mfe||void 0},te=ee.value;for(const fe of te)await w.setClass(fe,p),i(fe,S,p,M);W.value.classes=p,await Kt()}const xl=U({visible:!1,x:0,y:0});async function ru(S){if(!W.value)return;const p=W.value,M=[{file:p.file,line:p.line,component:p.component,tag:p.tagName,classes:p.classes}];for(const A of M)if(l({file:A.file,line:A.line,component:A.component,intent:S,elementTag:A.tag,elementClasses:A.classes}),a.getPinsForElement(A.file,parseInt(A.line)).length===0){const Xe=oe.value[0],zt=Xe?Xe.x+Xe.width/2:100,Gt=Xe?Xe.y+10:100,bt=a.addPin({file:A.file,line:A.line,component:A.component,elementTag:A.tag,elementClasses:A.classes},zt,Gt);a.updatePinNote(bt.id,S)}const te=M[0],fe=a.getPinsForElement(te.file,parseInt(te.line)),ke=fe.length>0?{x:fe[0].clickX,y:fe[0].clickY}:null;Wt({type:"annotation",description:S,file:te.file,line:parseInt(te.line)||0,component:te.component,visual:ke?{kind:"pin",annotationId:fe[0].id,x:ke.x,y:ke.y}:void 0,context:{element_tag:te.tag,element_classes:te.classes,...M.length>1?{elements:M.map(A=>({tag:A.tag,classes:A.classes,component:A.component,file:A.file,line:parseInt(A.line)||0}))}:{}}})}function au(S,p){if(!W.value)return;const M=W.value,te=[{file:M.file,line:M.line,component:M.component,tag:M.tagName,classes:M.classes}];for(const ke of te)l({file:ke.file,line:ke.line,component:ke.component,intent:p,action:S,elementTag:ke.tag,elementClasses:ke.classes});const fe=te[0];Wt({type:"annotation",description:p,file:fe.file,line:parseInt(fe.line)||0,component:fe.component,action:S,context:{element_tag:fe.tag,element_classes:fe.classes}})}async function uu(){await f.fetchTasks();const S=C.value;for(const p of f.tasks.value){if(p.route&&p.route!==S||p.status==="accepted")continue;const M=p.visual;if(M){if(M.kind==="pin"&&M.x&&M.y){if(a.getPinsForElement(p.file,p.line).length===0){const fe=a.addPin({file:p.file,line:String(p.line),component:p.component||"",elementTag:M.element_tag||"",elementClasses:""},M.x,M.y);a.updatePinNote(fe.id,p.description)}}else if(M.kind==="arrow")a.addArrow(M.fromX,M.fromY,M.toX,M.toY,M.label||p.description);else if(M.kind==="section"){const te=a.addDrawnSection(M.x,M.y,M.width,M.height);(p.prompt||p.description)&&a.updateDrawnSection(te.id,{prompt:p.prompt||p.description,nearFile:p.file,nearLine:p.line})}}}}async function Wt(S){var zt,Gt;const p=((zt=W.value)==null?void 0:zt.mfe)||"",M=v.effectiveViewport.value,te=M.width||M.height?{viewport:{width:M.width,height:M.height}}:{},fe=le.value?h.snapshotForChange(C.value):null,ke=fe&&fe.recent_actions.length>0?{interaction_history:fe}:{};let A={};if(xe.value&&((Gt=W.value)!=null&&Gt.eid)){const bt=await w.getElementContext(W.value.eid);bt&&(A={element_context:bt})}const ve=He.consumeScreenshot(),Xe=ve?{screenshot:ve}:{};return f.createTask({...S,route:C.value,...p?{mfe:p}:{},...te,...ke,...A,...Xe})}const{snipActive:Ns,snipRect:_n,pendingScreenshot:xn,startSnip:kn,onSnipDown:Vs,onSnipMove:Hs,onSnipUp:Bs,cancelSnip:kl,removeScreenshot:Cn}=He;function cu(S){if(!R.value||!S.trim())return;const p=R.value,M=a.addHighlight(p.text,{file:p.file,line:p.line,component:p.component,elementTag:p.tag});a.updateHighlight(M.id,{prompt:S.trim()});const te=`Change "${p.text}" → ${S.trim()}`;l({file:p.file,line:String(p.line),component:p.component,intent:te,action:"text_edit",elementTag:p.tag}),Wt({type:"annotation",description:te,file:p.file,line:p.line,component:p.component,action:"text_edit",context:{element_tag:p.tag,selected_text:p.text}}),R.value=null}function du(){R.value=null}const js=new Set;function fu(S){const p=a.drawnSections.value.find(M=>M.id===S);!p||!p.prompt.trim()||js.has(S)||(js.add(S),l({file:p.nearFile||"",line:String(p.nearLine||0),component:p.nearComponent||"",intent:p.prompt.trim(),action:"section_request"}),Wt({type:"section_request",description:p.prompt.trim(),file:p.nearFile||"",line:p.nearLine||0,component:p.nearComponent||"",placement:p.placement||"",visual:{kind:"section",annotationId:p.id,x:Math.round(p.x),y:Math.round(p.y),width:Math.round(p.width),height:Math.round(p.height)}}))}const Us=new Set;function Cl(S){var te;if(!S)return"element";const p=S.tag||"element",M=(te=S.classes)==null?void 0:te.split(" ").find(fe=>fe&&!fe.startsWith("data-"));return S.component&&M?`<${p}.${M}> in ${S.component}`:S.component&&S.tag!==S.component.toLowerCase()?`<${p}> in ${S.component}`:M?`<${p}.${M}>`:`<${p}>`}function pu(S,p,M){const te=a.arrows.value.find(A=>A.id===S);if(!te)return;const fe=Cl(p),ke=Cl(M);ge.value={kind:"arrow",label:`Arrow from ${fe} → ${ke}`,file:te.fromFile||(p==null?void 0:p.file)||"",line:te.fromLine||(p==null?void 0:p.line)||"",component:te.fromComponent||(p==null?void 0:p.component)||"",annotationId:S,meta:{fromTag:(p==null?void 0:p.tag)||"",fromClasses:(p==null?void 0:p.classes)||"",fromComponent:(p==null?void 0:p.component)||"",toFile:te.toFile||(M==null?void 0:M.file)||"",toLine:te.toLine||(M==null?void 0:M.line)||0,toTag:(M==null?void 0:M.tag)||"",toClasses:(M==null?void 0:M.classes)||"",toComponent:(M==null?void 0:M.component)||""}},Fe.value=""}function hu(S,p){var fe;const M=a.arrows.value.find(ke=>ke.id===S);if(!M||!p.trim()||Us.has(S))return;Us.add(S),a.updateArrow(S,{label:p.trim()});const te=((fe=ge.value)==null?void 0:fe.meta)||{};l({file:M.fromFile||"",line:String(M.fromLine||0),component:M.fromComponent||"",intent:p.trim(),elementTag:te.fromTag||"",elementClasses:te.fromClasses||""}),Wt({type:"annotation",description:p.trim(),file:M.fromFile||"",line:M.fromLine||0,component:M.fromComponent||"",visual:{kind:"arrow",annotationId:M.id,fromX:M.fromX,fromY:M.fromY,toX:M.toX,toY:M.toY,label:p.trim()},context:{from_element_tag:te.fromTag||"",from_element_classes:te.fromClasses||"",to_element:{tag:te.toTag||"",classes:te.toClasses||"",component:te.toComponent||"",file:M.toFile||"",line:M.toLine||0}}})}function Ys(){const S=ge.value;if(!(!S||!Fe.value.trim())){if(S.kind==="pin"){const p=S.meta;a.updatePinNote(S.annotationId,Fe.value.trim()),l({file:S.file,line:String(S.line),component:S.component,intent:Fe.value.trim(),elementTag:p.elementTag,elementClasses:p.elementClasses}),Wt({type:"annotation",description:Fe.value.trim(),file:S.file,line:parseInt(String(S.line))||0,component:S.component,visual:{kind:"pin",annotationId:S.annotationId,x:p.pinX,y:p.pinY},context:{element_tag:p.elementTag,element_classes:p.elementClasses}})}else S.kind==="arrow"&&hu(S.annotationId,Fe.value.trim());ge.value=null,Fe.value=""}}function Al(){const S=ge.value;S&&(S.kind==="pin"&&a.removePin(S.annotationId),S.kind==="arrow"&&a.removeArrow(S.annotationId)),ge.value=null,Fe.value=""}function vu(S){Wt({type:"annotation",description:S,file:"",line:0})}Zp({snipActive:Ns,showReportPanel:he,showShortcuts:ue,pendingTaskCreation:ge,primarySelection:W,selectedEids:m,templateGroupEids:_,selectionRects:oe,groupRects:de,activePanel:Ne,doUndo:r,cancelSnip:kl,cancelPendingTask:Al,layoutOverlayToggle:()=>x.toggle()}),Dn(()=>{var S;w.mountBridge(),ou(),(S=g.value)==null||S.addEventListener("load",su)}),bn(()=>{w.unmountBridge()});const gu=re(()=>{const S=v.effectiveViewport.value;return!S.width&&!S.height?{}:{width:S.width?`${S.width}px`:"100%",height:S.height?`${S.height}px`:"100%"}}),mu=re(()=>new URLSearchParams(window.location.search).get("appUrl")||window.location.origin+"/");return(S,p)=>{var M,te,fe,ke;return y(),b("div",Gy,[u("header",Xy,[u("div",qy,[p[67]||(p[67]=u("svg",{class:"logo",viewBox:"0 0 85.81 90.51",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[u("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)),u("div",Jy,[u("button",{class:Z(["toggle-btn",{active:E.value==="editor"}]),onClick:p[0]||(p[0]=A=>E.value="editor")},"Editor",2),u("button",{class:Z(["toggle-btn",{active:E.value==="theme"}]),onClick:p[1]||(p[1]=A=>E.value="theme")},"Theme",2)]),E.value==="editor"?(y(),b(ie,{key:0},[nt(nh,{modelValue:O(k),"onUpdate:modelValue":p[2]||(p[2]=A=>Ge(k)?k.value=A:null)},null,8,["modelValue"]),u("button",{class:Z(["tool-btn",{active:O(x).showOverlay.value}]),onClick:p[3]||(p[3]=A=>O(x).toggle()),title:"Show Layout (L)"},[...p[66]||(p[66]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),u("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),u("line",{x1:"9",y1:"3",x2:"9",y2:"21"})],-1)])],2)],64)):B("",!0)]),E.value==="editor"?(y(),b("div",Zy,[nt(zy),u("code",Qy,I(O(C)),1)])):(y(),b("div",eb)),E.value==="editor"?(y(),b("div",tb,[u("div",nb,[u("button",{class:Z(["toggle-btn",{active:Ne.value==="inspector"}]),onClick:p[4]||(p[4]=A=>Ne.value="inspector")},[...p[68]||(p[68]=[u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})],-1),tt(" Inspector ",-1)])],2),u("button",{class:Z(["toggle-btn",{active:Ne.value==="tasks"}]),onClick:p[5]||(p[5]=A=>Ne.value="tasks")},[p[69]||(p[69]=u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("path",{d:"M9 11l3 3L22 4"}),u("path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"})],-1)),p[70]||(p[70]=tt(" Tasks ",-1)),je.value.length?(y(),b("span",ib,I(je.value.length),1)):B("",!0)],2),u("button",{class:Z(["toggle-btn",{active:Ne.value==="a11y"}]),onClick:p[6]||(p[6]=A=>Ne.value="a11y")},[p[71]||(p[71]=u("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[u("circle",{cx:"12",cy:"4",r:"2"}),u("path",{d:"M4 8h16M6 12l3 8M18 12l-3 8"})],-1)),p[72]||(p[72]=tt(" A11y ",-1)),O(N).length?(y(),b("span",lb,I(O(N).length),1)):B("",!0)],2)]),u("div",sb,[u("button",{class:Z(["vis-btn",{off:!we.value.inspector}]),onClick:p[7]||(p[7]=A=>we.value.inspector=!we.value.inspector),title:"Toggle Inspector Highlights"},"I",2),u("button",{class:Z(["vis-btn",{off:!we.value.pins}]),onClick:p[8]||(p[8]=A=>we.value.pins=!we.value.pins),title:"Toggle Pins"},"P",2),u("button",{class:Z(["vis-btn",{off:!we.value.arrows}]),onClick:p[9]||(p[9]=A=>we.value.arrows=!we.value.arrows),title:"Toggle Arrows"},"A",2),u("button",{class:Z(["vis-btn",{off:!we.value.sections}]),onClick:p[10]||(p[10]=A=>we.value.sections=!we.value.sections),title:"Toggle Sections"},"D",2),u("button",{class:Z(["vis-btn",{off:!we.value.highlights}]),onClick:p[11]||(p[11]=A=>we.value.highlights=!we.value.highlights),title:"Toggle Highlights"},"H",2)]),u("button",{class:Z(["tool-btn",{active:he.value}]),onClick:p[12]||(p[12]=A=>he.value=!he.value)}," View Tasks ",2),u("button",{class:Z(["tool-btn",{active:ue.value}]),onClick:p[13]||(p[13]=A=>ue.value=!ue.value),title:"Keyboard Shortcuts (?)"},"?",2)])):(y(),b("div",ob))]),ne.value?(y(),b("div",rb,[...p[73]||(p[73]=[tt(" Source mapping unavailable — add ",-1),u("code",null,"annotask()",-1),tt(" to your Vite plugins. ",-1)])])):B("",!0),O($)?B("",!0):(y(),b("div",ab,[...p[74]||(p[74]=[tt(" Annotask not initialized — run ",-1),u("code",null,"/annotask-init",-1),tt(" in your AI assistant to set up project tokens and component detection. ",-1)])])),O(Ns)?(y(),b("div",{key:2,class:"snip-overlay",onPointerdown:p[14]||(p[14]=(...A)=>O(Vs)&&O(Vs)(...A)),onPointermove:p[15]||(p[15]=(...A)=>O(Hs)&&O(Hs)(...A)),onPointerup:p[16]||(p[16]=(...A)=>O(Bs)&&O(Bs)(...A)),onKeydown:p[17]||(p[17]=Ct((...A)=>O(kl)&&O(kl)(...A),["escape"]))},[p[75]||(p[75]=u("div",{class:"snip-hint"},"Drag to select a region, or click for full page",-1)),O(_n)&&O(_n).width>5&&O(_n).height>5?(y(),b("div",{key:0,class:"snip-selection",style:Le({left:O(_n).x+"px",top:O(_n).y+"px",width:O(_n).width+"px",height:O(_n).height+"px"})},null,4)):B("",!0)],32)):B("",!0),u("div",ub,[u("div",{class:Z(["canvas-area",{"viewport-active":!O(v).isFullWidth.value}]),onPointerdown:p[24]||(p[24]=A=>E.value==="editor"?O(se)(A):void 0),onPointermove:p[25]||(p[25]=A=>E.value==="editor"?O(P)(A):void 0),onPointerup:p[26]||(p[26]=A=>E.value==="editor"?O(X)(A):void 0)},[u("iframe",{ref_key:"iframeRef",ref:g,src:mu.value,class:"app-iframe",style:Le(gu.value)},null,12,cb),E.value==="editor"?(y(),b(ie,{key:0},[O(k)==="arrow"||O(k)==="draw"?(y(),b("div",{key:0,class:Z(["drawing-shield",O(k)])},null,2)):B("",!0),we.value.inspector?(y(),b(ie,{key:1},[Be.value?(y(),b("div",{key:0,class:"highlight hover",style:Le({left:Be.value.x+"px",top:Be.value.y+"px",width:Be.value.width+"px",height:Be.value.height+"px"})},[Ze.value?(y(),b("div",db,[u("span",fb,"<"+I(Ze.value.tag)+">",1),Ze.value.component?(y(),b("span",pb,I(Ze.value.component),1)):B("",!0)])):B("",!0)],4)):B("",!0),(y(!0),b(ie,null,ye(de.value,(A,ve)=>(y(),b("div",{key:"g"+ve,class:"highlight group",style:Le({left:A.x+"px",top:A.y+"px",width:A.width+"px",height:A.height+"px"})},null,4))),128)),(y(!0),b(ie,null,ye(oe.value,(A,ve)=>(y(),b("div",{key:"s"+ve,class:"highlight select",style:Le({left:A.x+"px",top:A.y+"px",width:A.width+"px",height:A.height+"px"})},[ve===0&&W.value?(y(),b("div",hb," <"+I(W.value.tagName)+"> · "+I(W.value.component),1)):B("",!0)],4))),128))],64)):B("",!0),we.value.pins?(y(),_t(ph,{key:2,pins:O(a).routePins.value,selectedPinId:O(a).selectedPinId.value,iframeOffset:{x:((te=(M=g.value)==null?void 0:M.getBoundingClientRect())==null?void 0:te.left)||0,y:((ke=(fe=g.value)==null?void 0:fe.getBoundingClientRect())==null?void 0:ke.top)||0},onSelectPin:p[18]||(p[18]=A=>{O(a).selectedPinId.value=A,be.value="notes"}),onRemovePin:O(a).removePin},null,8,["pins","selectedPinId","iframeOffset","onRemovePin"])):B("",!0),we.value.arrows?(y(),_t($h,{key:3,arrows:O(a).routeArrows.value,selectedId:O(a).selectedArrowId.value,drawingArrow:O(D),onSelect:p[19]||(p[19]=A=>O(a).selectedArrowId.value=A),onRemove:O(a).removeArrow},null,8,["arrows","selectedId","drawingArrow","onRemove"])):B("",!0),we.value.sections?(y(),_t(Lh,{key:4,sections:O(a).routeSections.value,selectedId:O(a).selectedSectionId.value,drawingRect:O(H),onSelect:p[20]||(p[20]=A=>O(a).selectedSectionId.value=A),onRemove:O(a).removeDrawnSection,onUpdatePrompt:p[21]||(p[21]=(A,ve)=>O(a).updateDrawnSection(A,{prompt:ve})),onCommit:fu},null,8,["sections","selectedId","drawingRect","onRemove"])):B("",!0),we.value.highlights?(y(),_t(Nv,{key:5,highlights:O(a).routeHighlights.value,selectedId:O(a).selectedHighlightId.value,pending:R.value,onSelect:p[22]||(p[22]=A=>O(a).selectedHighlightId.value=A),onRemove:O(a).removeHighlight,onUpdatePrompt:p[23]||(p[23]=(A,ve)=>O(a).updateHighlight(A,{prompt:ve})),onSubmitPending:cu,onCancelPending:du},null,8,["highlights","selectedId","pending","onRemove"])):B("",!0),O(x).showOverlay.value?(y(),_t(zv,{key:6,containers:O(x).containers.value},null,8,["containers"])):B("",!0)],64)):B("",!0)],34),E.value==="theme"?(y(),b("aside",vb,[nt(Wm,{iframeRef:g.value},null,8,["iframeRef"])])):B("",!0),E.value==="editor"&&ue.value?(y(),b("aside",gb,[u("div",mb,[p[76]||(p[76]=u("span",{class:"source-path",style:{color:"var(--text)"}},"Keyboard Shortcuts",-1)),u("button",{class:"component-badge",style:{cursor:"pointer","margin-left":"auto"},onClick:p[27]||(p[27]=A=>ue.value=!1)},"Esc to close")]),p[77]||(p[77]=sa('<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))])):E.value==="editor"&&ge.value?(y(),b("aside",yb,[p[82]||(p[82]=u("div",{class:"panel-source"},[u("span",{class:"source-path",style:{color:"var(--text)"}},"Add Task")],-1)),u("div",bb,[u("div",wb,[u("div",{class:Z(["pending-task-kind",ge.value.kind])},[ge.value.kind==="pin"?(y(),b("svg",_b,[...p[78]||(p[78]=[u("circle",{cx:"12",cy:"10",r:"3"},null,-1),u("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)])])):ge.value.kind==="arrow"?(y(),b("svg",xb,[...p[79]||(p[79]=[u("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),u("polyline",{points:"12 5 19 12 12 19"},null,-1)])])):B("",!0),u("span",null,I(ge.value.label),1)],2),u("code",kb,I(ge.value.file)+":"+I(ge.value.line),1)]),Ie(u("textarea",{"onUpdate:modelValue":p[28]||(p[28]=A=>Fe.value=A),class:"pending-task-input",rows:"3",placeholder:"Describe the change...",autofocus:"",onKeydown:[Ct(Ve(Ys,["ctrl"]),["enter"]),Ct(Al,["escape"])]},null,40,Cb),[[Ye,Fe.value]]),u("div",Ab,[u("label",Sb,[Ie(u("input",{type:"checkbox","onUpdate:modelValue":p[29]||(p[29]=A=>le.value=A)},null,512),[[$n,le.value]]),p[80]||(p[80]=u("span",null,"History",-1))]),u("label",$b,[Ie(u("input",{type:"checkbox","onUpdate:modelValue":p[30]||(p[30]=A=>xe.value=A)},null,512),[[$n,xe.value]]),p[81]||(p[81]=u("span",null,"DOM context",-1))])]),O(xn)?(y(),b("div",Tb,[u("img",{src:"/__annotask/screenshots/"+O(xn),class:"screenshot-thumb"},null,8,Eb),u("button",{class:"screenshot-remove",onClick:p[31]||(p[31]=(...A)=>O(Cn)&&O(Cn)(...A))},"×")])):(y(),b("button",{key:1,class:"screenshot-btn",onClick:p[32]||(p[32]=(...A)=>O(kn)&&O(kn)(...A))},"Add Screenshot")),u("div",Fb,[u("button",{class:"submit-btn",disabled:!Fe.value.trim(),onClick:Ys},"Add Task",8,Ib),u("button",{class:"cancel-btn",onClick:Al},"Cancel")])])])):E.value==="editor"&&Ne.value==="tasks"?(y(),b("aside",Pb,[u("div",Ob,[p[83]||(p[83]=u("span",{class:"source-path",style:{color:"var(--text)"}},"Tasks",-1)),u("span",Rb,I(O(f).tasks.value.length),1),u("button",{class:"new-task-toggle",onClick:p[33]||(p[33]=A=>Te.value=!Te.value)},I(Te.value?"−":"+")+" New ",1)]),Te.value?(y(),b("div",Mb,[Ie(u("textarea",{"onUpdate:modelValue":p[34]||(p[34]=A=>_e.value=A),class:"new-task-input",rows:"2",placeholder:"Describe a change...",onKeydown:Ct(Ve(Oe,["ctrl"]),["enter"])},null,40,Lb),[[Ye,_e.value]]),u("div",Db,[u("label",Nb,[Ie(u("input",{type:"checkbox","onUpdate:modelValue":p[35]||(p[35]=A=>le.value=A)},null,512),[[$n,le.value]]),p[84]||(p[84]=u("span",null,"History",-1))]),u("label",Vb,[Ie(u("input",{type:"checkbox","onUpdate:modelValue":p[36]||(p[36]=A=>xe.value=A)},null,512),[[$n,xe.value]]),p[85]||(p[85]=u("span",null,"DOM context",-1))])]),O(xn)?(y(),b("div",Hb,[u("img",{src:"/__annotask/screenshots/"+O(xn),class:"screenshot-thumb"},null,8,Bb),u("button",{class:"screenshot-remove",onClick:p[37]||(p[37]=(...A)=>O(Cn)&&O(Cn)(...A))},"×")])):(y(),b("button",{key:1,class:"screenshot-btn",onClick:p[38]||(p[38]=(...A)=>O(kn)&&O(kn)(...A))},"Add Screenshot")),u("div",jb,[u("button",{class:"submit-btn",disabled:!_e.value.trim(),onClick:Oe},"Add",8,Ub),u("button",{class:"cancel-btn",onClick:p[39]||(p[39]=A=>{Te.value=!1,_e.value=""})},"Cancel")])])):B("",!0),u("div",Yb,[O(f).tasks.value.length===0&&!Te.value?(y(),b("div",Kb," No tasks yet. Click + New to add one. ")):B("",!0),(y(!0),b(ie,null,ye(je.value,A=>(y(),b("div",{key:A.id,class:Z(["task-card",A.status])},[u("div",Wb,[u("span",{class:Z(["task-status-dot",A.status])},null,2),u("span",zb,I(A.description),1),u("button",{class:"task-card-close",onClick:ve=>Q(A.id)},"×",8,Gb)]),u("div",Xb,[u("code",qb,I(A.file)+":"+I(A.line),1),A.route?(y(),b("span",Jb,I(A.route),1)):B("",!0)]),A.screenshot?(y(),b("img",{key:0,class:"task-screenshot-thumb",src:"/__annotask/screenshots/"+A.screenshot},null,8,Zb)):B("",!0),A.feedback?(y(),b("div",Qb,I(A.feedback),1)):B("",!0),A.status==="review"?(y(),b("div",ew,[K.value!==A.id?(y(),b(ie,{key:0},[u("button",{class:"task-accept",onClick:ve=>Q(A.id)},"Accept",8,tw),u("button",{class:"task-deny",onClick:ve=>{K.value=A.id,z.value=""}},"Deny",8,nw)],64)):(y(),b("div",iw,[Ie(u("textarea",{"onUpdate:modelValue":p[40]||(p[40]=ve=>z.value=ve),class:"deny-feedback-textarea",rows:"3",placeholder:"What needs to change?",autofocus:"",onKeydown:[Ct(Ve(ve=>L(A.id),["ctrl"]),["enter"]),p[41]||(p[41]=Ct(ve=>K.value=null,["escape"]))]},null,40,lw),[[Ye,z.value]]),u("div",sw,[u("label",ow,[Ie(u("input",{type:"checkbox","onUpdate:modelValue":p[42]||(p[42]=ve=>le.value=ve)},null,512),[[$n,le.value]]),p[86]||(p[86]=u("span",null,"History",-1))]),u("label",rw,[Ie(u("input",{type:"checkbox","onUpdate:modelValue":p[43]||(p[43]=ve=>xe.value=ve)},null,512),[[$n,xe.value]]),p[87]||(p[87]=u("span",null,"DOM context",-1))])]),O(xn)?(y(),b("div",aw,[u("img",{src:"/__annotask/screenshots/"+O(xn),class:"screenshot-thumb"},null,8,uw),u("button",{class:"screenshot-remove",onClick:p[44]||(p[44]=(...ve)=>O(Cn)&&O(Cn)(...ve))},"×")])):(y(),b("button",{key:1,class:"screenshot-btn",onClick:p[45]||(p[45]=(...ve)=>O(kn)&&O(kn)(...ve))},"Add Screenshot")),u("div",cw,[u("button",{class:"task-deny",disabled:!z.value.trim(),onClick:ve=>L(A.id)},"Deny",8,dw),u("button",{class:"cancel-btn",style:{padding:"4px 8px","font-size":"10px"},onClick:p[46]||(p[46]=ve=>K.value=null)},"Cancel")])]))])):B("",!0)],2))),128))])])):E.value==="editor"&&Ne.value==="a11y"?(y(),b("aside",fw,[u("div",pw,[p[88]||(p[88]=u("span",{class:"source-path",style:{color:"var(--text)"}},"Accessibility",-1)),u("button",{class:"scan-btn",disabled:O(V),onClick:p[47]||(p[47]=A=>O(j)("page")),style:{"margin-left":"auto"}},I(O(V)?"Scanning...":"Scan Page"),9,hw)]),u("div",vw,[O(J)?(y(),b("div",gw,I(O(J)),1)):B("",!0),!O(V)&&O(N).length===0&&!O(J)&&O(q)?(y(),b("div",mw,[...p[89]||(p[89]=[u("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"},[u("path",{d:"M20 6L9 17l-5-5"})],-1),tt(" No violations found ",-1)])])):!O(V)&&O(N).length===0&&!O(J)?(y(),b("div",yw," Click Scan Page to check accessibility ")):B("",!0),O(N).length?(y(),b("div",bw,I(O(N).length)+" violation"+I(O(N).length===1?"":"s"),1)):B("",!0),(y(!0),b(ie,null,ye(O(N),A=>(y(),b("div",{key:A.id,class:Z(["a11y-card",A.impact])},[u("div",ww,[u("span",{class:Z(["a11y-impact",A.impact])},I(A.impact),3),u("span",_w,I(A.id),1),u("span",xw,I(A.nodes)+" element"+I(A.nodes===1?"":"s"),1)]),u("p",kw,I(A.help),1),O(G).has(A.id)?(y(),b("span",Cw,"Task created")):(y(),b("button",{key:1,class:"a11y-fix-btn",onClick:ve=>O(ce)(A)},"Create Fix Task",8,Aw))],2))),128))])])):E.value==="editor"&&Ne.value==="inspector"&&W.value?(y(),b("aside",Sw,[u("div",$w,[u("code",Tw,I(W.value.file)+":"+I(W.value.line),1),u("span",Ew,I(W.value.component),1),Qe.value?(y(),b("span",{key:0,class:Z(["role-badge",Qe.value])},I(Qe.value),3)):B("",!0)]),We.value?(y(),b("div",Fw,[u("span",Iw,I(We.value),1),_.value.length>1&&m.value.length<=1?(y(),b("label",Pw,[Ie(u("input",{type:"checkbox","onUpdate:modelValue":p[48]||(p[48]=A=>T.value=A)},null,512),[[$n,T.value]]),u("span",Ow,"Apply to all "+I(_.value.length),1)])):B("",!0)])):B("",!0),u("div",Rw,[u("button",{class:Z(["tab",{active:be.value==="notes"}]),onClick:p[49]||(p[49]=A=>be.value="notes")},[p[90]||(p[90]=tt(" Task ",-1)),O(a).routePins.value.length?(y(),b("span",Mw,I(O(a).routePins.value.length),1)):B("",!0)],2),u("button",{class:Z(["tab",{active:be.value==="layout"}]),onClick:p[50]||(p[50]=A=>be.value="layout")},"Layout",2),u("button",{class:Z(["tab",{active:be.value==="spacing"}]),onClick:p[51]||(p[51]=A=>be.value="spacing")},"Spacing",2),u("button",{class:Z(["tab",{active:be.value==="size"}]),onClick:p[52]||(p[52]=A=>be.value="size")},"Size",2),u("button",{class:Z(["tab",{active:be.value==="style"}]),onClick:p[53]||(p[53]=A=>be.value="style")},"Style",2),u("button",{class:Z(["tab",{active:be.value==="classes"}]),onClick:p[54]||(p[54]=A=>be.value="classes")},"Classes",2)]),u("div",Lw,[be.value==="layout"?(y(),_t(pf,{key:0,computedStyles:$t.value,onChange:Mi},null,8,["computedStyles"])):B("",!0),be.value==="spacing"?(y(),_t(Tf,{key:1,computedStyles:$t.value,onChange:Mi},null,8,["computedStyles"])):B("",!0),be.value==="size"?(y(),_t(Bf,{key:2,computedStyles:$t.value,onChange:Mi},null,8,["computedStyles"])):B("",!0),be.value==="style"?(y(),_t(Lp,{key:3,computedStyles:$t.value,iframeDoc:null,onChange:Mi},null,8,["computedStyles"])):B("",!0),be.value==="classes"?(y(),b("div",Dw,[Ie(u("textarea",{"onUpdate:modelValue":p[55]||(p[55]=A=>wn.value=A),class:"class-editor",rows:"4",onBlur:Ds,onKeydown:Ct(Ve(Ds,["ctrl"]),["enter"]),placeholder:"Edit CSS classes..."},null,40,Nw),[[Ye,wn.value]]),p[91]||(p[91]=u("p",{class:"hint"},"Ctrl+Enter or blur to apply",-1))])):B("",!0),be.value==="notes"?(y(),_t(Sv,{key:5,pins:O(a).routePins.value,selectedPinId:O(a).selectedPinId.value,selectedElement:W.value,elementRole:Qe.value,tasks:O(f).tasks.value,includeHistory:le.value,includeElementContext:xe.value,"onUpdate:includeHistory":p[56]||(p[56]=A=>le.value=A),"onUpdate:includeElementContext":p[57]||(p[57]=A=>xe.value=A),pendingScreenshot:O(xn),onStartSnip:O(kn),onRemoveScreenshot:O(Cn),onAddNote:ru,onAddAction:au,onAddTask:vu,onSelectPin:p[58]||(p[58]=A=>O(a).selectedPinId.value=A),onUpdateNote:p[59]||(p[59]=A=>O(a).updatePinNote(A,"")),onRemovePin:p[60]||(p[60]=A=>O(a).removePin(A)),onAcceptTask:p[61]||(p[61]=A=>O(f).updateTaskStatus(A,"accepted")),onDenyTask:p[62]||(p[62]=(A,ve)=>O(f).updateTaskStatus(A,"denied",ve)),onCancelTask:p[63]||(p[63]=A=>O(f).updateTaskStatus(A,"accepted"))},null,8,["pins","selectedPinId","selectedElement","elementRole","tasks","includeHistory","includeElementContext","pendingScreenshot","onStartSnip","onRemoveScreenshot"])):B("",!0)]),O(o).length?(y(),b("div",Vw,[u("div",Hw,[(y(!0),b(ie,null,ye(O(o),A=>(y(),b("div",{key:A.id,class:"change-item"},[A.type==="style_update"?(y(),b(ie,{key:0},[u("code",Bw,I(A.property),1),p[92]||(p[92]=u("span",{class:"change-arrow"},"→",-1)),u("code",jw,I(A.after),1)],64)):A.type==="class_update"?(y(),b(ie,{key:1},[p[93]||(p[93]=u("code",{class:"change-prop"},"classes",-1)),p[94]||(p[94]=u("span",{class:"change-arrow"},"→",-1)),u("code",Uw,I(A.after.classes.substring(0,30)),1)],64)):B("",!0)]))),128))]),u("div",Yw,[u("span",Kw,I(O(o).length)+" change"+I(O(o).length===1?"":"s"),1),u("button",{class:"changes-commit",onClick:d},"Commit to Task"),u("button",{class:"changes-discard",onClick:c},"Discard")])])):B("",!0)])):E.value==="editor"&&Ne.value==="inspector"?(y(),b("aside",Ww,[...p[95]||(p[95]=[u("div",{class:"empty-content"},[u("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",opacity:"0.3"},[u("path",{d:"M4 4l7.07 17 2.51-7.39L21 11.07z"})]),u("p",null,"Click an element to inspect"),u("p",{class:"empty-hint"},"Press P to pin, hover to highlight")],-1)])])):B("",!0)]),nt(ah,oa(xl.value,{onClose:p[64]||(p[64]=A=>xl.value.visible=!1)}),null,16),he.value?(y(),_t(Ty,{key:3,tasks:O(f).tasks.value,onClose:p[65]||(p[65]=A=>he.value=!1)},null,8,["tasks"])):B("",!0)])}}});Wd(zw).mount("#app");
|