The previous attempt at this publish (b7fea73, reverted asbb160bc) broke the live map: resolveAssetsBase computed <treeRoot>/../assets, one segment too high, so boundary geojson 404'd and the map painted a basemap with none of our data. Fixed at source in 852310d0 -- the asset pool lives INSIDE the tree, which is what a leaf's own '../../assets' has always meant and what generate-tree stages. Now covered by check:embed-base, pure path arithmetic, mutation-tested against the exact off-by-one. Verified before push: 24 bundles, 22 manifest bundles all resolving, 57 leaves with zero unresolved script srcs, boundaries present at the path the fix targets, tree settled, diff scoped to app/doxa-maps only.
317 lines
152 KiB
JavaScript
317 lines
152 KiB
JavaScript
(function(){"use strict";/**
|
|
* @vue/shared v3.5.42
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Is(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const z={},ot=[],_e=()=>{},Ci=()=>!1,Bt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Wt=e=>e.startsWith("onUpdate:"),Z=Object.assign,Ls=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},$o=Object.prototype.hasOwnProperty,D=(e,t)=>$o.call(e,t),R=Array.isArray,qe=e=>vt(e)==="[object Map]",qt=e=>vt(e)==="[object Set]",Oi=e=>vt(e)==="[object Date]",L=e=>typeof e=="function",G=e=>typeof e=="string",me=e=>typeof e=="symbol",K=e=>e!==null&&typeof e=="object",Ai=e=>(K(e)||L(e))&&L(e.then)&&L(e.catch),Mi=Object.prototype.toString,vt=e=>Mi.call(e),Do=e=>vt(e).slice(8,-1),Gt=e=>vt(e)==="[object Object]",Ps=e=>G(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mt=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jt=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Fo=/-\w/g,ie=Jt(e=>e.replace(Fo,t=>t.slice(1).toUpperCase())),jo=/\B([A-Z])/g,be=Jt(e=>e.replace(jo,"-$1").toLowerCase()),Yt=Jt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ns=Jt(e=>e?`on${Yt(e)}`:""),$e=(e,t)=>!Object.is(e,t),Xt=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Ri=(e,t,s,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},Hs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ii=e=>{const t=G(e)?Number(e):NaN;return isNaN(t)?e:t};let Li;const Zt=()=>Li||(Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xt(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const i=e[s],n=G(i)?zo(i):xt(i);if(n)for(const o in n)t[o]=n[o]}return t}else if(G(e)||K(e))return e}const Ko=/;(?![^(]*\))/g,Uo=/:([^]+)/,Vo=/\/\*[^]*?\*\//g;function zo(e){const t={};return e.replace(Vo,"").split(Ko).forEach(s=>{if(s){const i=s.split(Uo);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Se(e){let t="";if(G(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const i=Se(e[s]);i&&(t+=i+" ")}else if(K(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Bo=Is("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Pi(e){return!!e||e===""}function Wo(e,t){if(e.length!==t.length)return!1;let s=!0;for(let i=0;s&&i<e.length;i++)s=Qt(e[i],t[i]);return s}function Ni(e,t){if(e.size!==t.size)return!1;const s=Array.from(t),i=new Uint8Array(s.length);for(const n of e){let o=-1;for(let l=0;l<s.length;l++)if(!i[l]&&Qt(n,s[l])){o=l;break}if(o<0)return!1;i[o]=1}return!0}function Qt(e,t){if(e===t)return!0;let s=Oi(e),i=Oi(t);if(s||i)return s&&i?e.getTime()===t.getTime():!1;if(s=me(e),i=me(t),s||i)return e===t;if(s=R(e),i=R(t),s||i)return s&&i?Wo(e,t):!1;if(s=K(e),i=K(t),s||i){if(!s||!i)return!1;if(s=qe(e),i=qe(t),s||i||(s=qt(e),i=qt(t),s||i))return s&&i?Ni(e,t):!1;const n=Object.keys(e).length,o=Object.keys(t).length;if(n!==o)return!1;for(const l in e){const r=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(r&&!a||!r&&a||!Qt(e[l],t[l]))return!1}}return String(e)===String(t)}const Hi=e=>!!(e&&e.__v_isRef===!0),N=e=>G(e)?e:e==null?"":R(e)||K(e)&&(e.toString===Mi||!L(e.toString))?Hi(e)?N(e.value):JSON.stringify(e,$i,2):String(e),$i=(e,t)=>Hi(t)?$i(e,t.value):qe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,n],o)=>(s[$s(i,o)+" =>"]=n,s),{})}:qt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>$s(s))}:me(t)?$s(t):K(t)&&!R(t)&&!Gt(t)?String(t):t,$s=(e,t="")=>{var s;return me(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
|
* @vue/reactivity v3.5.42
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let ne;class qo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ne&&(ne.active?(this.parent=ne,this.index=(ne.scopes||(ne.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const i=this.scopes.slice();for(t=0,s=i.length;t<s;t++)i[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}const i=this.effects.slice();for(t=0,s=i.length;t<s;t++)i[t].resume()}}run(t){if(this._active){const s=ne;try{return ne=this,t()}finally{ne=s}}}on(){++this._on===1&&(this.prevScope=ne,ne=this)}off(){if(this._on>0&&--this._on===0){if(ne===this)ne=this.prevScope;else{let t=ne;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s<i;s++)this.effects[s].stop();for(this.effects.length=0,s=0,i=this.cleanups.length;s<i;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const n=this.scopes.slice();for(s=0,i=n.length;s<i;s++)n[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function Go(){return ne}let W;const Ds=new WeakSet;class Di{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,ne&&(ne.active?ne.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ds.has(this)&&(Ds.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ji(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Bi(this),Ki(this);const t=W,s=xe;W=this,xe=!0;try{return this.fn()}finally{Ui(this),W=t,xe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Us(t);this.deps=this.depsTail=void 0,Bi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ds.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ks(this)&&this.run()}get dirty(){return Ks(this)}}let Fi=0,yt,wt;function ji(e,t=!1){if(e.flags|=8,t){e.next=wt,wt=e;return}e.next=yt,yt=e}function Fs(){Fi++}function js(){if(--Fi>0)return;if(wt){let t=wt;for(wt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;yt;){let t=yt;for(yt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function Ki(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ui(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),Us(i),Jo(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function Ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_t)||(e.globalVersion=_t,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ks(e))))return;e.flags|=2;const t=e.dep,s=W,i=xe;W=e,xe=!0;try{Ki(e);const n=e.fn(e._value);(t.version===0||$e(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{W=s,xe=i,Ui(e),e.flags&=-3}}function Us(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Us(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Jo(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let xe=!0;const zi=[];function ke(){zi.push(xe),xe=!1}function Te(){const e=zi.pop();xe=e===void 0?!0:e}function Bi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=W;W=void 0;try{t()}finally{W=s}}}let _t=0;class Yo{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Wi{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(!W||!xe||W===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==W)s=this.activeLink=new Yo(W,this),W.deps?(s.prevDep=W.depsTail,W.depsTail.nextDep=s,W.depsTail=s):W.deps=W.depsTail=s,qi(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=W.depsTail,s.nextDep=void 0,W.depsTail.nextDep=s,W.depsTail=s,W.deps===s&&(W.deps=i)}return s}trigger(t){this.version++,_t++,this.notify(t)}notify(t){Fs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{js()}}}function qi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)qi(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Vs=new WeakMap,Xe=Symbol(""),zs=Symbol(""),St=Symbol("");function re(e,t,s){if(xe&&W){let i=Vs.get(e);i||Vs.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new Wi),n.map=i,n.key=s),n.track()}}function De(e,t,s,i,n,o){const l=Vs.get(e);if(!l){_t++;return}const r=a=>{a&&a.trigger()};if(Fs(),t==="clear")l.forEach(r);else{const a=R(e),p=a&&Ps(s);if(a&&s==="length"){const f=Number(i);l.forEach((h,y)=>{(y==="length"||y===St||!me(y)&&y>=f)&&r(h)})}else switch((s!==void 0||l.has(void 0))&&r(l.get(s)),p&&r(l.get(St)),t){case"add":a?p&&r(l.get("length")):(r(l.get(Xe)),qe(e)&&r(l.get(zs)));break;case"delete":a||(r(l.get(Xe)),qe(e)&&r(l.get(zs)));break;case"set":qe(e)&&r(l.get(Xe));break}}js()}function lt(e){const t=F(e);return t===e?t:(re(t,"iterate",St),ye(e)?t:t.map(je))}function es(e){return re(e=F(e),"iterate",St),e}function Ee(e,t){return Ge(e)?rt(Ze(e)?je(t):t):je(t)}const Xo={__proto__:null,[Symbol.iterator](){return Bs(this,Symbol.iterator,e=>Ee(this,e))},concat(...e){return lt(this).concat(...e.map(t=>R(t)?lt(t):t))},entries(){return Bs(this,"entries",e=>(e[1]=Ee(this,e[1]),e))},every(e,t){return Fe(this,"every",e,t,void 0,arguments)},filter(e,t){return Fe(this,"filter",e,t,s=>s.map(i=>Ee(this,i)),arguments)},find(e,t){return Fe(this,"find",e,t,s=>Ee(this,s),arguments)},findIndex(e,t){return Fe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fe(this,"findLast",e,t,s=>Ee(this,s),arguments)},findLastIndex(e,t){return Fe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ws(this,"includes",e)},indexOf(...e){return Ws(this,"indexOf",e)},join(e){return lt(this).join(e)},lastIndexOf(...e){return Ws(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return kt(this,"pop")},push(...e){return kt(this,"push",e)},reduce(e,...t){return Gi(this,"reduce",e,t)},reduceRight(e,...t){return Gi(this,"reduceRight",e,t)},shift(){return kt(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return kt(this,"splice",e)},toReversed(){return lt(this).toReversed()},toSorted(e){return lt(this).toSorted(e)},toSpliced(...e){return lt(this).toSpliced(...e)},unshift(...e){return kt(this,"unshift",e)},values(){return Bs(this,"values",e=>Ee(this,e))}};function Bs(e,t,s){const i=es(e),n=i[t]();return i!==e&&!ye(e)&&(n._next=n.next,n.next=()=>{const o=n._next();return o.done||(o.value=s(o.value)),o}),n}const Zo=Array.prototype;function Fe(e,t,s,i,n,o){const l=es(e),r=l!==e&&!ye(e),a=l[t];if(a!==Zo[t]){const h=a.apply(e,o);return r?je(h):h}let p=s;l!==e&&(r?p=function(h,y){return s.call(this,Ee(e,h),y,e)}:s.length>2&&(p=function(h,y){return s.call(this,h,y,e)}));const f=a.call(l,p,i);return r&&n?n(f):f}function Gi(e,t,s,i){const n=es(e),o=n!==e&&!ye(e);let l=s,r=!1;n!==e&&(o?(r=i.length===0,l=function(p,f,h){return r&&(r=!1,p=Ee(e,p)),s.call(this,p,Ee(e,f),h,e)}):s.length>3&&(l=function(p,f,h){return s.call(this,p,f,h,e)}));const a=n[t](l,...i);return r?Ee(e,a):a}function Ws(e,t,s){const i=F(e);re(i,"iterate",St);const n=i[t](...s);return(n===-1||n===!1)&&Ys(s[0])?(s[0]=F(s[0]),i[t](...s)):n}function kt(e,t,s=[]){ke(),Fs();const i=F(e)[t].apply(e,s);return js(),Te(),i}const Qo=Is("__proto__,__v_isRef,__isVue"),Ji=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(me));function el(e){me(e)||(e=String(e));const t=F(this);return re(t,"has",e),t.hasOwnProperty(e)}class Yi{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return o;if(s==="__v_raw")return i===(n?o?sn:tn:o?en:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const l=R(t);if(!n){let a;if(l&&(a=Xo[s]))return a;if(s==="hasOwnProperty")return el}const r=Reflect.get(t,s,ae(t)?t:i);if((me(s)?Ji.has(s):Qo(s))||(n||re(t,"get",s),o))return r;if(ae(r)){const a=l&&Ps(s)?r:r.value;return n&&K(a)?Js(a):a}return K(r)?n?Js(r):Gs(r):r}}class Xi extends Yi{constructor(t=!1){super(!1,t)}set(t,s,i,n){let o=t[s];const l=R(t)&&Ps(s);if(!this._isShallow){const p=Ge(o);if(!ye(i)&&!Ge(i)&&(o=F(o),i=F(i)),!l&&ae(o)&&!ae(i))return p||(o.value=i),!0}const r=l?Number(s)<t.length:D(t,s),a=Reflect.set(t,s,i,ae(t)?t:n);return t===F(n)&&a&&(r?$e(i,o)&&De(t,"set",s,i):De(t,"add",s,i)),a}deleteProperty(t,s){const i=D(t,s);t[s];const n=Reflect.deleteProperty(t,s);return n&&i&&De(t,"delete",s,void 0),n}has(t,s){const i=Reflect.has(t,s);return(!me(s)||!Ji.has(s))&&re(t,"has",s),i}ownKeys(t){return re(t,"iterate",R(t)?"length":Xe),Reflect.ownKeys(t)}}class Zi extends Yi{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const tl=new Xi,sl=new Zi,il=new Xi(!0),nl=new Zi(!0),qs=e=>e,ts=e=>Reflect.getPrototypeOf(e);function ol(e,t,s){return function(...i){const n=this.__v_raw,o=F(n),l=qe(o),r=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,p=n[e](...i),f=s?qs:t?rt:je;return!t&&re(o,"iterate",a?zs:Xe),Z(Object.create(p),{next(){const{value:h,done:y}=p.next();return y?{value:h,done:y}:{value:r?[f(h[0]),f(h[1])]:f(h),done:y}}})}}function ss(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ll(e,t){const s={get(n){const o=this.__v_raw,l=F(o),r=F(n);e||($e(n,r)&&re(l,"get",n),re(l,"get",r));const{has:a}=ts(l),p=t?qs:e?rt:je;if(a.call(l,n))return p(o.get(n));if(a.call(l,r))return p(o.get(r));o!==l&&o.get(n)},get size(){const n=this.__v_raw;return!e&&re(F(n),"iterate",Xe),n.size},has(n){const o=this.__v_raw,l=F(o),r=F(n);return e||($e(n,r)&&re(l,"has",n),re(l,"has",r)),n===r?o.has(n):o.has(n)||o.has(r)},forEach(n,o){const l=this,r=l.__v_raw,a=F(r),p=t?qs:e?rt:je;return!e&&re(a,"iterate",Xe),r.forEach((f,h)=>n.call(o,p(f),p(h),l))}};return Z(s,e?{add:ss("add"),set:ss("set"),delete:ss("delete"),clear:ss("clear")}:{add(n){const o=F(this),l=ts(o),r=F(n),a=!t&&!ye(n)&&!Ge(n)?r:n;return l.has.call(o,a)||$e(n,a)&&l.has.call(o,n)||$e(r,a)&&l.has.call(o,r)||(o.add(a),De(o,"add",a,a)),this},set(n,o){!t&&!ye(o)&&!Ge(o)&&(o=F(o));const l=F(this),{has:r,get:a}=ts(l);let p=r.call(l,n);p||(n=F(n),p=r.call(l,n));const f=a.call(l,n);return l.set(n,o),p?$e(o,f)&&De(l,"set",n,o):De(l,"add",n,o),this},delete(n){const o=F(this),{has:l,get:r}=ts(o);let a=l.call(o,n);a||(n=F(n),a=l.call(o,n)),r&&r.call(o,n);const p=o.delete(n);return a&&De(o,"delete",n,void 0),p},clear(){const n=F(this),o=n.size!==0,l=n.clear();return o&&De(n,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=ol(n,e,t)}),s}function is(e,t){const s=ll(e,t);return(i,n,o)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get(D(s,n)&&n in i?s:i,n,o)}const rl={get:is(!1,!1)},al={get:is(!1,!0)},cl={get:is(!0,!1)},dl={get:is(!0,!0)},Qi=new WeakMap,en=new WeakMap,tn=new WeakMap,sn=new WeakMap;function fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gs(e){return Ge(e)?e:ns(e,!1,tl,rl,Qi)}function pl(e){return ns(e,!1,il,al,en)}function Js(e){return ns(e,!0,sl,cl,tn)}function Td(e){return ns(e,!0,nl,dl,sn)}function ns(e,t,s,i,n){if(!K(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=n.get(e);if(o)return o;const l=fl(Do(e));if(l===0)return e;const r=new Proxy(e,l===2?i:s);return n.set(e,r),r}function Ze(e){return Ge(e)?Ze(e.__v_raw):!!(e&&e.__v_isReactive)}function Ge(e){return!!(e&&e.__v_isReadonly)}function ye(e){return!!(e&&e.__v_isShallow)}function Ys(e){return e?!!e.__v_raw:!1}function F(e){const t=e&&e.__v_raw;return t?F(t):e}function ul(e){return!D(e,"__v_skip")&&Object.isExtensible(e)&&Ri(e,"__v_skip",!0),e}const je=e=>K(e)?Gs(e):e,rt=e=>K(e)?Js(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function nn(e){return ae(e)?e.value:e}const hl={get:(e,t,s)=>t==="__v_raw"?e:nn(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return ae(n)&&!ae(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function on(e){return Ze(e)?e:new Proxy(e,hl)}class gl{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Wi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_t-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return ji(this,!0),!0}get value(){const t=this.dep.track();return Vi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bl(e,t,s=!1){let i,n;return L(e)?i=e:(i=e.get,n=e.set),new gl(i,n,s)}const os={},ls=new WeakMap;let Qe;function vl(e,t=!1,s=Qe){if(s){let i=ls.get(s);i||ls.set(s,i=[]),i.push(e)}}function ml(e,t,s=z){const{immediate:i,deep:n,once:o,scheduler:l,augmentJob:r,call:a}=s,p=M=>n?M:ye(M)||n===!1||n===0?Ke(M,1):Ke(M);let f,h,y,k,j=!1,P=!1;if(ae(e)?(h=()=>e.value,j=ye(e)):Ze(e)?(h=()=>p(e),j=!0):R(e)?(P=!0,j=e.some(M=>Ze(M)||ye(M)),h=()=>e.map(M=>{if(ae(M))return M.value;if(Ze(M))return p(M);if(L(M))return a?a(M,2):M()})):L(e)?t?h=a?()=>a(e,2):e:h=()=>{if(y){ke();try{y()}finally{Te()}}const M=Qe;Qe=f;try{return a?a(e,3,[k]):e(k)}finally{Qe=M}}:h=_e,t&&n){const M=h,se=n===!0?1/0:n;h=()=>Ke(M(),se)}const ee=Go(),Y=()=>{f.stop(),ee&&ee.active&&Ls(ee.effects,f)};if(o&&t){const M=t;t=(...se)=>{const Re=M(...se);return Y(),Re}}let $=P?new Array(e.length).fill(os):os;const U=M=>{if(!(!(f.flags&1)||!f.dirty&&!M))if(t){const se=f.run();if(M||n||j||(P?se.some((Re,Ie)=>$e(Re,$[Ie])):$e(se,$))){y&&y();const Re=Qe;Qe=f;try{const Ie=[se,$===os?void 0:P&&$[0]===os?[]:$,k];$=se,a?a(t,3,Ie):t(...Ie)}finally{Qe=Re}}}else f.run()};return r&&r(U),f=new Di(h),f.scheduler=l?()=>l(U,!1):U,k=M=>vl(M,!1,f),y=f.onStop=()=>{const M=ls.get(f);if(M){if(a)a(M,4);else for(const se of M)se();ls.delete(f)}},t?i?U(!0):$=f.run():l?l(U.bind(null,!0),!0):f.run(),Y.pause=f.pause.bind(f),Y.resume=f.resume.bind(f),Y.stop=Y,Y}function Ke(e,t=1/0,s){if(t<=0||!K(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ae(e))Ke(e.value,t,s);else if(R(e))for(let i=0;i<e.length;i++)Ke(e[i],t,s);else if(qt(e)||qe(e))e.forEach(i=>{Ke(i,t,s)});else if(Gt(e)){for(const i in e)Ke(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Ke(e[i],t,s)}return e}/**
|
|
* @vue/runtime-core v3.5.42
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/const Tt=[];let Xs=!1;function Ed(e,...t){if(Xs)return;Xs=!0,ke();const s=Tt.length?Tt[Tt.length-1].component:null,i=s&&s.appContext.config.warnHandler,n=xl();if(i)at(i,s,11,[e+t.map(o=>{var l,r;return(r=(l=o.toString)==null?void 0:l.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,n.map(({vnode:o})=>`at <${lo(s,o.type)}>`).join(`
|
|
`),n]);else{const o=[`[Vue warn]: ${e}`,...t];n.length&&o.push(`
|
|
`,...yl(n)),console.warn(...o)}Te(),Xs=!1}function xl(){let e=Tt[Tt.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function yl(e){const t=[];return e.forEach((s,i)=>{t.push(...i===0?[]:[`
|
|
`],...wl(s))}),t}function wl({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,n=` at <${lo(e.component,e.type,i)}`,o=">"+s;return e.props?[n,..._l(e.props),o]:[n+o]}function _l(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(i=>{t.push(...ln(i,e[i]))}),s.length>3&&t.push(" ..."),t}function ln(e,t,s){return G(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ae(t)?(t=ln(e,F(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):L(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=F(t),s?t:[`${e}=`,t])}function at(e,t,s,i){try{return i?e(...i):e()}catch(n){rs(n,t,s)}}function we(e,t,s,i){if(L(e)){const n=at(e,t,s,i);return n&&Ai(n)&&n.catch(o=>{rs(o,t,s)}),n}if(R(e)){const n=[];for(let o=0;o<e.length;o++)n.push(we(e[o],t,s,i));return n}}function rs(e,t,s,i=!0){const n=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||z;if(t){let r=t.parent;const a=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const f=r.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,a,p)===!1)return}r=r.parent}if(o){ke(),at(o,null,10,[e,a,p]),Te();return}}Sl(e,s,n,i,l)}function Sl(e,t,s,i=!0,n=!1){if(n)throw e;console.error(e)}const de=[];let Ce=-1;const ct=[];let Je=null,dt=0;const rn=Promise.resolve();let as=null;function an(e){const t=as||rn;return e?t.then(this?e.bind(this):e):t}function kl(e){let t=Ce+1,s=de.length;for(;t<s;){const i=t+s>>>1,n=de[i],o=Et(n);o<e||o===e&&n.flags&2?t=i+1:s=i}return t}function Zs(e){if(!(e.flags&1)){const t=Et(e),s=de[de.length-1];!s||!(e.flags&2)&&t>=Et(s)?de.push(e):de.splice(kl(t),0,e),e.flags|=1,cn()}}function cn(){as||(as=rn.then(pn))}function Tl(e){if(!R(e))Je&&e.id===-1?Je.splice(dt+1,0,e):e.flags&1||(ct.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)ct.push(e[t]);cn()}function dn(e,t,s=Ce+1){for(;s<de.length;s++){const i=de[s];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;de.splice(s,1),s--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function fn(e){if(ct.length){const t=[...new Set(ct)].sort((s,i)=>Et(s)-Et(i));if(ct.length=0,Je){for(let s=0;s<t.length;s++)Je.push(t[s]);return}for(Je=t,dt=0;dt<Je.length;dt++){const s=Je[dt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Je=null,dt=0}}const Et=e=>e.id==null?e.flags&2?-1:1/0:e.id;function pn(e){try{for(Ce=0;Ce<de.length;Ce++){const t=de[Ce];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),at(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ce<de.length;Ce++){const t=de[Ce];t&&(t.flags&=-2)}Ce=-1,de.length=0,fn(),as=null,(de.length||ct.length)&&pn()}}let oe=null,un=null;function cs(e){const t=oe;return oe=e,un=e&&e.type.__scopeId||null,t}function ft(e,t=oe,s){if(!t||e._n)return e;const i=(...n)=>{i._d&&Xn(-1);const o=cs(t),l=ze.length;let r;try{r=e(...n)}finally{for(let a=ze.length;a>l;a--)pi();cs(o),i._d&&Xn(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function ds(e,t){if(oe===null)return e;const s=_s(oe),i=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[o,l,r,a=z]=t[n];o&&(L(o)&&(o={mounted:o,updated:o}),o.deep&&Ke(l),i.push({dir:o,instance:s,value:l,oldValue:void 0,arg:r,modifiers:a}))}return e}function et(e,t,s,i){const n=e.dirs,o=t&&t.dirs;for(let l=0;l<n.length;l++){const r=n[l];o&&(r.oldValue=o[l].value);let a=r.dir[i];a&&(ke(),we(a,s,8,[e.el,r,e,t]),Te())}}function El(e,t){if(ce){let s=ce.provides;const i=ce.parent&&ce.parent.provides;i===s&&(s=ce.provides=Object.create(i)),s[e]=t}}function Ct(e,t,s=!1){const i=eo();if(i||ut){let n=ut?ut._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return s&&L(t)?t.call(i&&i.proxy):t}}const Cl=Symbol.for("v-scx"),Ol=()=>Ct(Cl);function Qs(e,t,s){return hn(e,t,s)}function hn(e,t,s=z){const{immediate:i,deep:n,flush:o,once:l}=s,r=Z({},s),a=t&&i||!t&&o!=="post";let p;if(Ht){if(o==="sync"){const k=Ol();p=k.__watcherHandles||(k.__watcherHandles=[])}else if(!a){const k=()=>{};return k.stop=_e,k.resume=_e,k.pause=_e,k}}const f=ce;r.call=(k,j,P)=>we(k,f,j,P);let h=!1;o==="post"?r.scheduler=k=>{ue(k,f&&f.suspense)}:o!=="sync"&&(h=!0,r.scheduler=(k,j)=>{j?k():Zs(k)}),r.augmentJob=k=>{t&&(k.flags|=4),h&&(k.flags|=2,f&&(k.id=f.uid,k.i=f))};const y=ml(e,t,r);return Ht&&(p?p.push(y):a&&y()),y}function Al(e,t,s){const i=this.proxy,n=G(e)?e.includes(".")?gn(i,e):()=>i[e]:e.bind(i,i);let o;L(t)?o=t:(o=t.handler,s=t);const l=Nt(this),r=hn(n,o.bind(i),s);return l(),r}function gn(e,t){const s=t.split(".");return()=>{let i=e;for(let n=0;n<s.length&&i;n++)i=i[s[n]];return i}}const Ml=Symbol("_vte"),fs=e=>e.__isTeleport,ei=Symbol("_leaveCb");function Rl(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==Oe){t=s;break}}return t}function bn(e){if(!si(e))return fs(e.type)&&e.children?Rl(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function ti(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;ti(fs(s.type)&&bn(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ps(e,t){return L(e)?Z({name:e.name},t,{setup:e}):e}function vn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const us=new WeakMap;function Ot(e,t,s,i,n=!1){if(R(e)){e.forEach((P,ee)=>Ot(P,t&&(R(t)?t[ee]:t),s,i,n));return}if(pt(i)&&!n){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Ot(e,t,s,i.component.subTree);return}const o=i.shapeFlag&4?_s(i.component):i.el,l=n?null:o,{i:r,r:a}=e,p=t&&t.r,f=r.refs===z?r.refs={}:r.refs,h=r.setupState,y=F(h),k=h===z?Ci:P=>mn(f,P)?!1:D(y,P),j=(P,ee)=>!(ee&&mn(f,ee));if(p!=null&&p!==a){if(xn(t),G(p))f[p]=null,k(p)&&(h[p]=null);else if(ae(p)){const P=t;j(p,P.k)&&(p.value=null),P.k&&(f[P.k]=null)}}if(L(a))at(a,r,12,[l,f]);else{const P=G(a),ee=ae(a);if(P||ee){const Y=()=>{if(e.f){const $=P?k(a)?h[a]:f[a]:j()||!e.k?a.value:f[e.k];if(n)R($)&&Ls($,o);else if(R($))$.includes(o)||$.push(o);else if(P)f[a]=[o],k(a)&&(h[a]=f[a]);else{const U=[o];j(a,e.k)&&(a.value=U),e.k&&(f[e.k]=U)}}else P?(f[a]=l,k(a)&&(h[a]=l)):ee&&(j(a,e.k)&&(a.value=l),e.k&&(f[e.k]=l))};if(l){const $=()=>{Y(),us.delete(e)};$.id=-1,us.set(e,$),ue($,s)}else xn(e),Y()}}}function xn(e){const t=us.get(e);t&&(t.flags|=8,us.delete(e))}Zt().requestIdleCallback,Zt().cancelIdleCallback;const pt=e=>!!e.type.__asyncLoader,si=e=>e.type.__isKeepAlive;function Il(e,t){yn(e,"a",t)}function Ll(e,t){yn(e,"da",t)}function yn(e,t,s=ce){const i=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(hs(t,i,s),s){let n=s.parent;for(;n&&n.parent;)si(n.parent.vnode)&&Pl(i,t,s,n),n=n.parent}}function Pl(e,t,s,i){const n=hs(t,e,i,!0);_n(()=>{Ls(i[t],n)},s)}function hs(e,t,s=ce,i=!1){if(s){const n=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...l)=>{ke();const r=Nt(s),a=we(t,s,e,l);return r(),Te(),a});return i?n.unshift(o):n.push(o),o}}const Ue=e=>(t,s=ce)=>{(!Ht||e==="sp")&&hs(e,(...i)=>t(...i),s)},Nl=Ue("bm"),wn=Ue("m"),Hl=Ue("bu"),$l=Ue("u"),Dl=Ue("bum"),_n=Ue("um"),Fl=Ue("sp"),jl=Ue("rtg"),Kl=Ue("rtc");function Ul(e,t=ce){hs("ec",e,t)}const Vl="components";function Sn(e,t){return Bl(Vl,e,!0,t)||e}const zl=Symbol.for("v-ndc");function Bl(e,t,s=!0,i=!1){const n=oe||ce;if(n){const o=n.type;{const r=oo(o,!1);if(r&&(r===t||r===ie(t)||r===Yt(ie(t))))return o}const l=kn(n[e]||o[e],t)||kn(n.appContext[e],t);return!l&&i?o:l}}function kn(e,t){return e&&(e[t]||e[ie(t)]||e[Yt(ie(t))])}function Ve(e,t,s,i){let n;const o=s,l=R(e);if(l||G(e)){const r=l&&Ze(e);let a=!1,p=!1;r&&(a=!ye(e),p=Ge(e),e=es(e)),n=new Array(e.length);for(let f=0,h=e.length;f<h;f++)n[f]=t(a?p?rt(je(e[f])):je(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r+1,r,void 0,o)}else if(K(e))if(e[Symbol.iterator])n=Array.from(e,(r,a)=>t(r,a,void 0,o));else{const r=Object.keys(e);n=new Array(r.length);for(let a=0,p=r.length;a<p;a++){const f=r[a];n[a]=t(e[f],f,a,o)}}else n=[];return n}function At(e,t,s,i,n,o){if(s==null&&(s={}),oe.ce||oe.parent&&pt(oe.parent)&&oe.parent.ce){const p=o!=null&&s.key==null?Z({},s,{key:o}):s,f=Object.keys(p).length>0;return t!=="default"&&(p.name=t),E(),ms(J,null,[ve("slot",p,i)],f?-2:64)}let l=e[t];l&&l._c&&(l._d=!1);const r=ze.length;E();let a;try{const p=l&&Tn(l(s)),f=s.key||o||p&&p.key;a=ms(J,{key:(f&&!me(f)?f:`_${t}`)+(!p&&i?"_fb":"")},p||(i?i():[]),p&&e._===1?64:-2)}catch(p){for(let f=ze.length;f>r;f--)pi();throw p}finally{l&&l._c&&(l._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function Tn(e){return e.some(t=>ui(t)?!(t.type===Oe||t.type===J&&!Tn(t.children)):!0)?e:null}const ii=e=>e?so(e)?_s(e):ii(e.parent):null,Mt=Z(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=>ii(e.parent),$root:e=>ii(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>An(e),$forceUpdate:e=>e.f||(e.f=()=>{Zs(e.update)}),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>Al.bind(e)}),ni=(e,t)=>e!==z&&!e.__isScriptSetup&&D(e,t),Wl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:i,data:n,props:o,accessCache:l,type:r,appContext:a}=e;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return i[t];case 2:return n[t];case 4:return s[t];case 3:return o[t]}else{if(ni(i,t))return l[t]=1,i[t];if(n!==z&&D(n,t))return l[t]=2,n[t];if(D(o,t))return l[t]=3,o[t];if(s!==z&&D(s,t))return l[t]=4,s[t];oi&&(l[t]=0)}}const p=Mt[t];let f,h;if(p)return t==="$attrs"&&re(e.attrs,"get",""),p(e);if((f=r.__cssModules)&&(f=f[t]))return f;if(s!==z&&D(s,t))return l[t]=4,s[t];if(h=a.config.globalProperties,D(h,t))return h[t]},set({_:e},t,s){const{data:i,setupState:n,ctx:o}=e;return ni(n,t)?(n[t]=s,!0):i!==z&&D(i,t)?(i[t]=s,!0):D(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:n,props:o,type:l}},r){let a;return!!(s[r]||e!==z&&r[0]!=="$"&&D(e,r)||ni(t,r)||D(o,r)||D(i,r)||D(Mt,r)||D(n.config.globalProperties,r)||(a=l.__cssModules)&&a[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:D(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function En(e){return R(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let oi=!0;function ql(e){const t=An(e),s=e.proxy,i=e.ctx;oi=!1,t.beforeCreate&&Cn(t.beforeCreate,e,"bc");const{data:n,computed:o,methods:l,watch:r,provide:a,inject:p,created:f,beforeMount:h,mounted:y,beforeUpdate:k,updated:j,activated:P,deactivated:ee,beforeDestroy:Y,beforeUnmount:$,destroyed:U,unmounted:M,render:se,renderTracked:Re,renderTriggered:Ie,errorCaptured:Ye,serverPrefetch:Cs,expose:st,inheritAttrs:Kt,components:Os,directives:As,filters:Ti}=t;if(p&&Gl(p,i,null),l)for(const X in l){const q=l[X];L(q)&&(i[X]=q.bind(s))}if(n){const X=n.call(s,s);K(X)&&(e.data=Gs(X))}if(oi=!0,o)for(const X in o){const q=o[X],it=L(q)?q.bind(s,s):L(q.get)?q.get.bind(s,s):_e,Ms=!L(q)&&L(q.set)?q.set.bind(s):_e,nt=Rr({get:it,set:Ms});Object.defineProperty(i,X,{enumerable:!0,configurable:!0,get:()=>nt.value,set:Le=>nt.value=Le})}if(r)for(const X in r)On(r[X],i,s,X);if(a){const X=L(a)?a.call(s):a;Reflect.ownKeys(X).forEach(q=>{El(q,X[q])})}f&&Cn(f,e,"c");function pe(X,q){R(q)?q.forEach(it=>X(it.bind(s))):q&&X(q.bind(s))}if(pe(Nl,h),pe(wn,y),pe(Hl,k),pe($l,j),pe(Il,P),pe(Ll,ee),pe(Ul,Ye),pe(Kl,Re),pe(jl,Ie),pe(Dl,$),pe(_n,M),pe(Fl,Cs),R(st))if(st.length){const X=e.exposed||(e.exposed={});st.forEach(q=>{Object.defineProperty(X,q,{get:()=>s[q],set:it=>s[q]=it,enumerable:!0})})}else e.exposed||(e.exposed={});se&&e.render===_e&&(e.render=se),Kt!=null&&(e.inheritAttrs=Kt),Os&&(e.components=Os),As&&(e.directives=As),Cs&&vn(e)}function Gl(e,t,s=_e){R(e)&&(e=li(e));for(const i in e){const n=e[i];let o;K(n)?"default"in n?o=Ct(n.from||i,n.default,!0):o=Ct(n.from||i):o=Ct(n),ae(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[i]=o}}function Cn(e,t,s){we(R(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function On(e,t,s,i){let n=i.includes(".")?gn(s,i):()=>s[i];if(G(e)){const o=t[e];L(o)&&Qs(n,o)}else if(L(e))Qs(n,e.bind(s));else if(K(e))if(R(e))e.forEach(o=>On(o,t,s,i));else{const o=L(e.handler)?e.handler.bind(s):t[e.handler];L(o)&&Qs(n,o,e)}}function An(e){const t=e.type,{mixins:s,extends:i}=t,{mixins:n,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,r=o.get(t);let a;return r?a=r:!n.length&&!s&&!i?a=t:(a={},n.length&&n.forEach(p=>gs(a,p,l,!0)),gs(a,t,l)),K(t)&&o.set(t,a),a}function gs(e,t,s,i=!1){const{mixins:n,extends:o}=t;o&&gs(e,o,s,!0),n&&n.forEach(l=>gs(e,l,s,!0));for(const l in t)if(!(i&&l==="expose")){const r=Jl[l]||s&&s[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const Jl={data:Mn,props:Rn,emits:Rn,methods:Rt,computed:Rt,beforeCreate:fe,created:fe,beforeMount:fe,mounted:fe,beforeUpdate:fe,updated:fe,beforeDestroy:fe,beforeUnmount:fe,destroyed:fe,unmounted:fe,activated:fe,deactivated:fe,errorCaptured:fe,serverPrefetch:fe,components:Rt,directives:Rt,watch:Xl,provide:Mn,inject:Yl};function Mn(e,t){return t?e?function(){return Z(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function Yl(e,t){return Rt(li(e),li(t))}function li(e){if(R(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function fe(e,t){return e?[...new Set([].concat(e,t))]:t}function Rt(e,t){return e?Z(Object.create(null),e,t):t}function Rn(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:Z(Object.create(null),En(e),En(t??{})):t}function Xl(e,t){if(!e)return t;if(!t)return e;const s=Z(Object.create(null),e);for(const i in t)s[i]=fe(e[i],t[i]);return s}function In(){return{app:null,config:{isNativeTag:Ci,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 Zl=0;function Ql(e,t){return function(i,n=null){L(i)||(i=Z({},i)),n!=null&&!K(n)&&(n=null);const o=In(),l=new WeakSet,r=[];let a=!1;const p=o.app={_uid:Zl++,_component:i,_props:n,_container:null,_context:o,_instance:null,version:Ir,get config(){return o.config},set config(f){},use(f,...h){return l.has(f)||(f&&L(f.install)?(l.add(f),f.install(p,...h)):L(f)&&(l.add(f),f(p,...h))),p},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),p},component(f,h){return h?(o.components[f]=h,p):o.components[f]},directive(f,h){return h?(o.directives[f]=h,p):o.directives[f]},mount(f,h,y){if(!a){const k=p._ceVNode||ve(i,n);return k.appContext=o,y===!0?y="svg":y===!1&&(y=void 0),e(k,f,y),a=!0,p._container=f,f.__vue_app__=p,_s(k.component)}},onUnmount(f){r.push(f)},unmount(){a&&(we(r,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(f,h){return o.provides[f]=h,p},runWithContext(f){const h=ut;ut=p;try{return f()}finally{ut=h}}};return p}}let ut=null;const er=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ie(t)}Modifiers`]||e[`${be(t)}Modifiers`];function tr(e,t,...s){if(e.isUnmounted)return;const i=e.vnode.props||z;let n=s;const o=t.startsWith("update:"),l=o&&er(i,t.slice(7));l&&(l.trim&&(n=s.map(f=>G(f)?f.trim():f)),l.number&&(n=n.map(Hs)));let r,a=i[r=Ns(t)]||i[r=Ns(ie(t))];!a&&o&&(a=i[r=Ns(be(t))]),a&&we(a,e,6,n);const p=i[r+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,we(p,e,6,n)}}const sr=new WeakMap;function Ln(e,t,s=!1){const i=s?sr:t.emitsCache,n=i.get(e);if(n!==void 0)return n;const o=e.emits;let l={},r=!1;if(!L(e)){const a=p=>{const f=Ln(p,t,!0);f&&(r=!0,Z(l,f))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!r?(K(e)&&i.set(e,null),null):(R(o)?o.forEach(a=>l[a]=null):Z(l,o),K(e)&&i.set(e,l),l)}function bs(e,t){return!e||!Bt(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,be(t))||D(e,t))}function Cd(){}function Pn(e){const{type:t,vnode:s,proxy:i,withProxy:n,propsOptions:[o],slots:l,attrs:r,emit:a,render:p,renderCache:f,props:h,data:y,setupState:k,ctx:j,inheritAttrs:P}=e,ee=cs(e);let Y,$;try{if(s.shapeFlag&4){const M=n||i,se=M;Y=Ae(p.call(se,M,f,h,k,y,j)),$=r}else{const M=t;Y=Ae(M.length>1?M(h,{attrs:r,slots:l,emit:a}):M(h,null)),$=t.props?r:ir(r)}}catch(M){ze.length=0,rs(M,e,1),Y=ve(Oe)}let U=Y;if($&&P!==!1){const M=Object.keys($),{shapeFlag:se}=U;M.length&&se&7&&(o&&M.some(Wt)&&($=nr($,o)),U=ht(U,$,!1,!0))}if(s.dirs&&(U=ht(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition){const M=fs(U.type)&&bn(U)||U;ti(M,s.transition)}return Y=U,cs(ee),Y}const ir=e=>{let t;for(const s in e)(s==="class"||s==="style"||Bt(s))&&((t||(t={}))[s]=e[s]);return t},nr=(e,t)=>{const s={};for(const i in e)(!Wt(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function or(e,t,s){const{props:i,children:n,component:o}=e,{props:l,children:r,patchFlag:a}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return i?Nn(i,l,p):!!l;if(a&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const y=f[h];if(Hn(l,i,y)&&!bs(p,y))return!0}}}else return(n||r)&&(!r||!r.$stable)?!0:i===l?!1:i?l?Nn(i,l,p):!0:!!l;return!1}function Nn(e,t,s){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let n=0;n<i.length;n++){const o=i[n];if(Hn(t,e,o)&&!bs(s,o))return!0}return!1}function Hn(e,t,s){const i=e[s],n=t[s];return s==="style"&&K(i)&&K(n)?!Qt(i,n):i!==n}function lr({vnode:e,parent:t,suspense:s},i){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=i,e=n),n===e)(e=t.vnode).el=i,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=i)}const $n={},Dn=()=>Object.create($n),Fn=e=>Object.getPrototypeOf(e)===$n;function rr(e,t,s,i=!1){const n={},o=Dn();e.propsDefaults=Object.create(null),jn(e,t,n,o);for(const l in e.propsOptions[0])l in n||(n[l]=void 0);s?e.props=i?n:pl(n):e.type.props?e.props=n:e.props=o,e.attrs=o}function ar(e,t,s,i){const{props:n,attrs:o,vnode:{patchFlag:l}}=e,r=F(n),[a]=e.propsOptions;let p=!1;if((i||l>0)&&!(l&16)){if(l&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let y=f[h];if(bs(e.emitsOptions,y))continue;const k=t[y];if(a)if(D(o,y))k!==o[y]&&(o[y]=k,p=!0);else{const j=ie(y);n[j]=ri(a,r,j,k,e,!1)}else k!==o[y]&&(o[y]=k,p=!0)}}}else{jn(e,t,n,o)&&(p=!0);let f;for(const h in r)(!t||!D(t,h)&&((f=be(h))===h||!D(t,f)))&&(a?s&&(s[h]!==void 0||s[f]!==void 0)&&(n[h]=ri(a,r,h,void 0,e,!0)):delete n[h]);if(o!==r)for(const h in o)(!t||!D(t,h))&&(delete o[h],p=!0)}p&&De(e.attrs,"set","")}function jn(e,t,s,i){const[n,o]=e.propsOptions;let l=!1,r;if(t)for(let a in t){if(mt(a))continue;const p=t[a];let f;n&&D(n,f=ie(a))?!o||!o.includes(f)?s[f]=p:(r||(r={}))[f]=p:bs(e.emitsOptions,a)||(!(a in i)||p!==i[a])&&(i[a]=p,l=!0)}if(o){const a=F(s),p=r||z;for(let f=0;f<o.length;f++){const h=o[f];s[h]=ri(n,a,h,p[h],e,!D(p,h))}}return l}function ri(e,t,s,i,n,o){const l=e[s];if(l!=null){const r=D(l,"default");if(r&&i===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&L(a)){const{propsDefaults:p}=n;if(s in p)i=p[s];else{const f=Nt(n);i=p[s]=a.call(null,t),f()}}else i=a;n.ce&&n.ce._setProp(s,i)}l[0]&&(o&&!r?i=!1:l[1]&&(i===""||i===be(s))&&(i=!0))}return i}const cr=new WeakMap;function Kn(e,t,s=!1){const i=s?cr:t.propsCache,n=i.get(e);if(n)return n;const o=e.props,l={},r=[];let a=!1;if(!L(e)){const f=h=>{a=!0;const[y,k]=Kn(h,t,!0);Z(l,y),k&&r.push(...k)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!a)return K(e)&&i.set(e,ot),ot;if(R(o))for(let f=0;f<o.length;f++){const h=ie(o[f]);Un(h)&&(l[h]=z)}else if(o)for(const f in o){const h=ie(f);if(Un(h)){const y=o[f],k=l[h]=R(y)||L(y)?{type:y}:Z({},y),j=k.type;let P=!1,ee=!0;if(R(j))for(let Y=0;Y<j.length;++Y){const $=j[Y],U=L($)&&$.name;if(U==="Boolean"){P=!0;break}else U==="String"&&(ee=!1)}else P=L(j)&&j.name==="Boolean";k[0]=P,k[1]=ee,(P||D(k,"default"))&&r.push(h)}}const p=[l,r];return K(e)&&i.set(e,p),p}function Un(e){return e[0]!=="$"&&!mt(e)}const ai=e=>e==="_"||e==="_ctx"||e==="$stable",ci=e=>R(e)?e.map(Ae):[Ae(e)],dr=(e,t,s)=>{if(t._n)return t;const i=ft((...n)=>ci(t(...n)),s);return i._c=!1,i},Vn=(e,t,s)=>{const i=e._ctx;for(const n in e){if(ai(n))continue;const o=e[n];if(L(o))t[n]=dr(n,o,i);else if(o!=null){const l=ci(o);t[n]=()=>l}}},zn=(e,t)=>{const s=ci(t);e.slots.default=()=>s},Bn=(e,t,s)=>{for(const i in t)(s||!ai(i))&&(e[i]=t[i])},fr=(e,t,s)=>{const i=e.slots=Dn();if(e.vnode.shapeFlag&32){const n=t._;n?(Bn(i,t,s),s&&Ri(i,"_",n,!0)):Vn(t,i)}else t&&zn(e,t)},pr=(e,t,s)=>{const{vnode:i,slots:n}=e;let o=!0,l=z;if(i.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:Bn(n,t,s):(o=!t.$stable,Vn(t,n)),l=t}else t&&(zn(e,t),l={default:1});if(o)for(const r in n)!ai(r)&&l[r]==null&&delete n[r]},ue=vr;function ur(e){return hr(e)}function hr(e,t){const s=Zt();s.__VUE__=!0;const{insert:i,remove:n,patchProp:o,createElement:l,createText:r,createComment:a,setText:p,setElementText:f,parentNode:h,nextSibling:y,setScopeId:k=_e,insertStaticContent:j}=e,P=(c,d,u,m=null,v=null,g=null,_=void 0,w=null,x=!!d.dynamicChildren)=>{if(c===d)return;c&&!Lt(c,d)&&(m=Rs(c),Le(c,v,g,!0),c=null),d.patchFlag===-2&&(x=!1,d.dynamicChildren=null);const{type:b,ref:A,shapeFlag:S}=d;switch(b){case vs:ee(c,d,u,m);break;case Oe:Y(c,d,u,m);break;case fi:c==null&&$(d,u,m,_);break;case J:Os(c,d,u,m,v,g,_,w,x);break;default:S&1?se(c,d,u,m,v,g,_,w,x):S&6?As(c,d,u,m,v,g,_,w,x):(S&64||S&128)&&b.process(c,d,u,m,v,g,_,w,x,Vt)}A!=null&&v?Ot(A,c&&c.ref,g,d||c,!d):A==null&&c&&c.ref!=null&&Ot(c.ref,null,g,c,!0)},ee=(c,d,u,m)=>{if(c==null)i(d.el=r(d.children),u,m);else{const v=d.el=c.el;d.children!==c.children&&p(v,d.children)}},Y=(c,d,u,m)=>{c==null?i(d.el=a(d.children||""),u,m):d.el=c.el},$=(c,d,u,m)=>{[c.el,c.anchor]=j(c.children,d,u,m,c.el,c.anchor)},U=({el:c,anchor:d},u,m)=>{let v;for(;c&&c!==d;)v=y(c),i(c,u,m),c=v;i(d,u,m)},M=({el:c,anchor:d})=>{let u;for(;c&&c!==d;)u=y(c),n(c),c=u;n(d)},se=(c,d,u,m,v,g,_,w,x)=>{if(d.type==="svg"?_="svg":d.type==="math"&&(_="mathml"),c==null)Re(d,u,m,v,g,_,w,x);else{const b=c.el&&c.el._isVueCE?c.el:null;try{b&&b._beginPatch(),Cs(c,d,v,g,_,w,x)}finally{b&&b._endPatch()}}},Re=(c,d,u,m,v,g,_,w)=>{let x,b;const{props:A,shapeFlag:S,transition:O,dirs:I}=c;if(x=c.el=l(c.type,g,A&&A.is,A),S&8?f(x,c.children):S&16&&Ye(c.children,x,null,m,v,di(c,g),_,w),I&&et(c,null,m,"created"),Ie(x,c,c.scopeId,_,m),A){for(const B in A)B!=="value"&&!mt(B)&&o(x,B,null,A[B],g,m);"value"in A&&o(x,"value",null,A.value,g),(b=A.onVnodeBeforeMount)&&Me(b,m,c)}I&&et(c,null,m,"beforeMount");const H=gr(v,O);H&&O.beforeEnter(x),i(x,d,u),((b=A&&A.onVnodeMounted)||H||I)&&ue(()=>{try{b&&Me(b,m,c),H&&O.enter(x),I&&et(c,null,m,"mounted")}finally{}},v)},Ie=(c,d,u,m,v)=>{if(u&&k(c,u),m)for(let g=0;g<m.length;g++)k(c,m[g]);if(v){let g=v.subTree;if(d===g||Yn(g.type)&&(g.ssContent===d||g.ssFallback===d)){const _=v.vnode;Ie(c,_,_.scopeId,_.slotScopeIds,v.parent)}}},Ye=(c,d,u,m,v,g,_,w,x=0)=>{for(let b=x;b<c.length;b++){const A=c[b]=w?Be(c[b]):Ae(c[b]);P(null,A,d,u,m,v,g,_,w)}},Cs=(c,d,u,m,v,g,_)=>{const w=d.el=c.el;let{patchFlag:x,dynamicChildren:b,dirs:A}=d;x|=c.patchFlag&16;const S=c.props||z,O=d.props||z;let I;if(u&&tt(u,!1),(I=O.onVnodeBeforeUpdate)&&Me(I,u,d,c),A&&et(d,c,u,"beforeUpdate"),u&&tt(u,!0),b&&(!c.dynamicChildren||c.dynamicChildren.length!==b.length)&&(x=0,_=!1,b=null),(S.innerHTML&&O.innerHTML==null||S.textContent&&O.textContent==null)&&f(w,""),b?st(c.dynamicChildren,b,w,u,m,di(d,v),g):_||q(c,d,w,null,u,m,di(d,v),g,!1),x>0){if(x&16)Kt(w,S,O,u,v);else if(x&2&&S.class!==O.class&&o(w,"class",null,O.class,v),x&4&&o(w,"style",S.style,O.style,v),x&8){const H=d.dynamicProps;for(let B=0;B<H.length;B++){const V=H[B],te=S[V],le=O[V];(le!==te||V==="value")&&o(w,V,te,le,v,u)}}x&1&&c.children!==d.children&&f(w,d.children)}else!_&&b==null&&Kt(w,S,O,u,v);((I=O.onVnodeUpdated)||A)&&ue(()=>{I&&Me(I,u,d,c),A&&et(d,c,u,"updated")},m)},st=(c,d,u,m,v,g,_)=>{for(let w=0;w<d.length;w++){const x=c[w],b=d[w],A=x.el&&(x.type===J||!Lt(x,b)||x.shapeFlag&198)?h(x.el):u;P(x,b,A,null,m,v,g,_,!0)}},Kt=(c,d,u,m,v)=>{if(d!==u){if(d!==z)for(const g in d)!mt(g)&&!(g in u)&&o(c,g,d[g],null,v,m);for(const g in u){if(mt(g))continue;const _=u[g],w=d[g];_!==w&&g!=="value"&&o(c,g,w,_,v,m)}"value"in u&&o(c,"value",d.value,u.value,v)}},Os=(c,d,u,m,v,g,_,w,x)=>{const b=d.el=c?c.el:r(""),A=d.anchor=c?c.anchor:r("");let{patchFlag:S,dynamicChildren:O,slotScopeIds:I}=d;I&&(w=w?w.concat(I):I),c==null?(i(b,u,m),i(A,u,m),Ye(d.children||[],u,A,v,g,_,w,x)):S>0&&S&64&&O&&c.dynamicChildren&&c.dynamicChildren.length===O.length?(st(c.dynamicChildren,O,u,v,g,_,w),(d.key!=null||v&&d===v.subTree)&&Wn(c,d,!0)):q(c,d,u,A,v,g,_,w,x)},As=(c,d,u,m,v,g,_,w,x)=>{d.slotScopeIds=w,c==null?d.shapeFlag&512?v.ctx.activate(d,u,m,_,x):Ti(d,u,m,v,g,_,x):Ro(c,d,x)},Ti=(c,d,u,m,v,g,_)=>{const w=c.component=Sr(c,m,v);if(si(c)&&(w.ctx.renderer=Vt),kr(w,!1,_),w.asyncDep){if(v&&v.registerDep(w,pe,_),!c.el){const x=w.subTree=ve(Oe);Y(null,x,d,u),c.placeholder=x.el}}else pe(w,c,d,u,v,g,_)},Ro=(c,d,u)=>{const m=d.component=c.component;if(or(c,d,u))if(m.asyncDep&&!m.asyncResolved){X(m,d,u);return}else m.next=d,m.update();else d.el=c.el,m.vnode=d},pe=(c,d,u,m,v,g,_)=>{const w=()=>{if(c.isMounted){let{next:S,bu:O,u:I,parent:H,vnode:B}=c;{const Ne=qn(c);if(Ne){S&&(S.el=B.el,X(c,S,_)),Ne.asyncDep.then(()=>{ue(()=>{c.isUnmounted||b()},v)});return}}let V=S,te;tt(c,!1),S?(S.el=B.el,X(c,S,_)):S=B,O&&Xt(O),(te=S.props&&S.props.onVnodeBeforeUpdate)&&Me(te,H,S,B),tt(c,!0);const le=Pn(c),Pe=c.subTree;c.subTree=le,P(Pe,le,h(Pe.el),Rs(Pe),c,v,g),S.el=le.el,V===null&&lr(c,le.el),I&&ue(I,v),(te=S.props&&S.props.onVnodeUpdated)&&ue(()=>Me(te,H,S,B),v)}else{let S;const{el:O,props:I}=d,{bm:H,m:B,parent:V,root:te,type:le}=c,Pe=pt(d);tt(c,!1),H&&Xt(H),!Pe&&(S=I&&I.onVnodeBeforeMount)&&Me(S,V,d),tt(c,!0);{te.ce&&te.ce._hasShadowRoot()&&te.ce._injectChildStyle(le,c.parent?c.parent.type:void 0);const Ne=c.subTree=Pn(c);P(null,Ne,u,m,c,v,g),d.el=Ne.el}if(B&&ue(B,v),!Pe&&(S=I&&I.onVnodeMounted)){const Ne=d;ue(()=>Me(S,V,Ne),v)}(d.shapeFlag&256||V&&pt(V.vnode)&&V.vnode.shapeFlag&256)&&c.a&&ue(c.a,v),c.isMounted=!0,d=u=m=null}};c.scope.on();const x=c.effect=new Di(w);c.scope.off();const b=c.update=x.run.bind(x),A=c.job=x.runIfDirty.bind(x);A.i=c,A.id=c.uid,x.scheduler=()=>Zs(A),tt(c,!0),b()},X=(c,d,u)=>{d.component=c;const m=c.vnode.props;c.vnode=d,c.next=null,ar(c,d.props,m,u),pr(c,d.children,u),ke(),dn(c),Te()},q=(c,d,u,m,v,g,_,w,x=!1)=>{const b=c&&c.children,A=c?c.shapeFlag:0,S=d.children,{patchFlag:O,shapeFlag:I}=d;if(O>0){if(O&128){Ms(b,S,u,m,v,g,_,w,x);return}else if(O&256){it(b,S,u,m,v,g,_,w,x);return}}I&8?(A&16&&Ut(b,v,g),S!==b&&f(u,S)):A&16?I&16?Ms(b,S,u,m,v,g,_,w,x):Ut(b,v,g,!0):(A&8&&f(u,""),I&16&&Ye(S,u,m,v,g,_,w,x))},it=(c,d,u,m,v,g,_,w,x)=>{c=c||ot,d=d||ot;const b=c.length,A=d.length,S=Math.min(b,A);let O;for(O=0;O<S;O++){const I=d[O]=x?Be(d[O]):Ae(d[O]);P(c[O],I,u,null,v,g,_,w,x)}b>A?Ut(c,v,g,!0,!1,S):Ye(d,u,m,v,g,_,w,x,S)},Ms=(c,d,u,m,v,g,_,w,x)=>{let b=0;const A=d.length;let S=c.length-1,O=A-1;for(;b<=S&&b<=O;){const I=c[b],H=d[b]=x?Be(d[b]):Ae(d[b]);if(Lt(I,H))P(I,H,u,null,v,g,_,w,x);else break;b++}for(;b<=S&&b<=O;){const I=c[S],H=d[O]=x?Be(d[O]):Ae(d[O]);if(Lt(I,H))P(I,H,u,null,v,g,_,w,x);else break;S--,O--}if(b>S){if(b<=O){const I=O+1,H=I<A?d[I].el:m;for(;b<=O;)P(null,d[b]=x?Be(d[b]):Ae(d[b]),u,H,v,g,_,w,x),b++}}else if(b>O)for(;b<=S;)Le(c[b],v,g,!0),b++;else{const I=b,H=b,B=new Map;for(b=H;b<=O;b++){const ge=d[b]=x?Be(d[b]):Ae(d[b]);ge.key!=null&&B.set(ge.key,b)}let V,te=0;const le=O-H+1;let Pe=!1,Ne=0;const zt=new Array(le);for(b=0;b<le;b++)zt[b]=0;for(b=I;b<=S;b++){const ge=c[b];if(te>=le){Le(ge,v,g,!0);continue}let He;if(ge.key!=null)He=B.get(ge.key);else for(V=H;V<=O;V++)if(zt[V-H]===0&&Lt(ge,d[V])){He=V;break}He===void 0?Le(ge,v,g,!0):(zt[He-H]=b+1,He>=Ne?Ne=He:Pe=!0,P(ge,d[He],u,null,v,g,_,w,x),te++)}const Po=Pe?br(zt):ot;for(V=Po.length-1,b=le-1;b>=0;b--){const ge=H+b,He=d[ge],No=d[ge+1],Ho=ge+1<A?No.el||Jn(No):m;zt[b]===0?P(null,He,u,Ho,v,g,_,w,x):Pe&&(V<0||b!==Po[V]?nt(He,u,Ho,2):V--)}}},nt=(c,d,u,m,v=null)=>{const{el:g,type:_,transition:w,children:x,shapeFlag:b}=c;if(b&6){nt(c.component.subTree,d,u,m);return}if(b&128){c.suspense.move(d,u,m);return}if(b&64){_.move(c,d,u,Vt);return}if(_===J){i(g,d,u);for(let S=0;S<x.length;S++)nt(x[S],d,u,m);i(c.anchor,d,u);return}if(_===fi){U(c,d,u);return}if(m!==2&&b&1&&w)if(m===0)w.persisted&&!g[ei]?i(g,d,u):(w.beforeEnter(g),i(g,d,u),ue(()=>w.enter(g),v));else{const{leave:S,delayLeave:O,afterLeave:I}=w,H=()=>{c.ctx.isUnmounted?n(g):i(g,d,u)},B=()=>{const V=g._isLeaving||!!g[ei];g._isLeaving&&g[ei](!0),w.persisted&&!V?H():S(g,()=>{H(),I&&I()})};O?O(g,H,B):B()}else i(g,d,u)},Le=(c,d,u,m=!1,v=!1)=>{const{type:g,props:_,ref:w,children:x,dynamicChildren:b,shapeFlag:A,patchFlag:S,dirs:O,cacheIndex:I,memo:H}=c;if(S===-2&&(v=!1),w!=null&&(ke(),Ot(w,null,u,c,!0),Te()),I!=null&&(d.renderCache[I]=void 0),A&256){d.ctx.deactivate(c);return}const B=A&1&&O,V=!pt(c);let te;if(V&&(te=_&&_.onVnodeBeforeUnmount)&&Me(te,d,c),A&6)Sd(c.component,u,m);else{if(A&128){c.suspense.unmount(u,m);return}B&&et(c,null,d,"beforeUnmount"),A&64?c.type.remove(c,d,u,Vt,m):b&&!b.hasOnce&&(g!==J||S>0&&S&64)?Ut(b,d,u,!1,!0):(g===J&&S&384||!v&&A&16)&&Ut(x,d,u),m&&Io(c)}const le=H!=null&&I==null;(V&&(te=_&&_.onVnodeUnmounted)||B||le)&&ue(()=>{te&&Me(te,d,c),B&&et(c,null,d,"unmounted"),le&&(c.el=null)},u)},Io=c=>{const{type:d,el:u,anchor:m,transition:v}=c;if(d===J){_d(u,m);return}if(d===fi){M(c);return}const g=()=>{n(u),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(c.shapeFlag&1&&v&&!v.persisted){const{leave:_,delayLeave:w}=v,x=()=>_(u,g);w?w(c.el,g,x):x()}else g()},_d=(c,d)=>{let u;for(;c!==d;)u=y(c),n(c),c=u;n(d)},Sd=(c,d,u)=>{const{bum:m,scope:v,job:g,subTree:_,um:w,m:x,a:b}=c;Gn(x),Gn(b),m&&Xt(m),v.stop(),g&&(g.flags|=8,Le(_,c,d,u)),w&&ue(w,d),ue(()=>{c.isUnmounted=!0},d)},Ut=(c,d,u,m=!1,v=!1,g=0)=>{for(let _=g;_<c.length;_++)Le(c[_],d,u,m,v)},Rs=c=>{if(c.shapeFlag&6)return Rs(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const d=y(c.anchor||c.el),u=d&&d[Ml];return u?y(u):d};let Ei=!1;const Lo=(c,d,u)=>{let m;c==null?d._vnode&&(Le(d._vnode,null,null,!0),m=d._vnode.component):P(d._vnode||null,c,d,null,null,null,u),d._vnode=c,Ei||(Ei=!0,dn(m),fn(),Ei=!1)},Vt={p:P,um:Le,m:nt,r:Io,mt:Ti,mc:Ye,pc:q,pbc:st,n:Rs,o:e};return{render:Lo,hydrate:void 0,createApp:Ql(Lo)}}function di({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function tt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wn(e,t,s=!1){const i=e.children,n=t.children;if(R(i)&&R(n))for(let o=0;o<i.length;o++){const l=i[o];let r=n[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=n[o]=Be(n[o]),r.el=l.el),!s&&r.patchFlag!==-2&&Wn(l,r)),r.type===vs&&(r.patchFlag===-1&&(r=n[o]=Be(r)),r.el=l.el),r.type===Oe&&!r.el&&(r.el=l.el)}}function br(e){const t=e.slice(),s=[0];let i,n,o,l,r;const a=e.length;for(i=0;i<a;i++){const p=e[i];if(p!==0){if(n=s[s.length-1],e[n]<p){t[i]=n,s.push(i);continue}for(o=0,l=s.length-1;o<l;)r=o+l>>1,e[s[r]]<p?o=r+1:l=r;p<e[s[o]]&&(o>0&&(t[i]=s[o-1]),s[o]=i)}}for(o=s.length,l=s[o-1];o-- >0;)s[o]=l,l=t[l];return s}function qn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qn(t)}function Gn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Jn(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Jn(t.subTree):null}const Yn=e=>e.__isSuspense;function vr(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Tl(e)}const J=Symbol.for("v-fgt"),vs=Symbol.for("v-txt"),Oe=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),ze=[];let he=null;function E(e=!1){ze.push(he=e?null:[])}function pi(){ze.pop(),he=ze[ze.length-1]||null}let It=1;function Xn(e,t=!1){It+=e,e<0&&he&&t&&(he.hasOnce=!0)}function Zn(e){return e.dynamicChildren=It>0?he||ot:null,pi(),It>0&&he&&he.push(e),e}function C(e,t,s,i,n,o){return Zn(T(e,t,s,i,n,o,!0))}function ms(e,t,s,i,n){return Zn(ve(e,t,s,i,n,!0))}function ui(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const Qn=({key:e})=>e??null,xs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?G(e)||ae(e)||L(e)?{i:oe,r:e,k:t,f:!!s}:e:null);function T(e,t=null,s=null,i=0,n=null,o=e===J?0:1,l=!1,r=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qn(t),ref:t&&xs(t),scopeId:un,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:oe};return r?(ys(a,s),o&128&&e.normalize(a)):s&&(a.shapeFlag|=G(s)?8:16),It>0&&!l&&he&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&he.push(a),a}const ve=mr;function mr(e,t=null,s=null,i=0,n=null,o=!1){if((!e||e===zl)&&(e=Oe),ui(e)){const r=ht(e,t,!0);return s&&ys(r,s),It>0&&!o&&he&&(r.shapeFlag&6?he[he.indexOf(e)]=r:he.push(r)),r.patchFlag=-2,r}if(Mr(e)&&(e=e.__vccOpts),t){t=xr(t);let{class:r,style:a}=t;r&&!G(r)&&(t.class=Se(r)),K(a)&&(Ys(a)&&!R(a)&&(a=Z({},a)),t.style=xt(a))}const l=G(e)?1:Yn(e)?128:fs(e)?64:K(e)?4:L(e)?2:0;return T(e,t,s,i,n,l,o,!0)}function xr(e){return e?Ys(e)||Fn(e)?Z({},e):e:null}function ht(e,t,s=!1,i=!1){const{props:n,ref:o,patchFlag:l,children:r,transition:a}=e,p=t?yr(n||{},t):n,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&Qn(p),ref:t&&t.ref?s&&o?R(o)?o.concat(xs(t)):[o,xs(t)]:xs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==J?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ht(e.ssContent),ssFallback:e.ssFallback&&ht(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&i&&ti(f,a.clone(f)),f}function gt(e=" ",t=0){return ve(vs,null,e,t)}function Q(e="",t=!1){return t?(E(),ms(Oe,null,e)):ve(Oe,null,e)}function Ae(e){return e==null||typeof e=="boolean"?ve(Oe):R(e)?ve(J,null,e.slice()):ui(e)?Be(e):ve(vs,null,String(e))}function Be(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ht(e)}function ys(e,t){let s=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(R(t))s=16;else if(typeof t=="object")if(i&65){const n=t.default;n&&(n._c&&(n._d=!1),ys(e,n()),n._c&&(n._d=!0));return}else{s=32;const n=t._;!n&&!Fn(t)?t._ctx=oe:n===3&&oe&&(oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(L(t)){if(i&65){ys(e,{default:t});return}t={default:t,_ctx:oe},s=32}else t=String(t),i&64?(s=16,t=[gt(t)]):s=8;e.children=t,e.shapeFlag|=s}function yr(...e){const t={};for(let s=0;s<e.length;s++){const i=e[s];for(const n in i)if(n==="class")t.class!==i.class&&(t.class=Se([t.class,i.class]));else if(n==="style")t.style=xt([t.style,i.style]);else if(Bt(n)){const o=t[n],l=i[n];l&&o!==l&&!(R(o)&&o.includes(l))?t[n]=o?[].concat(o,l):l:l==null&&o==null&&!Wt(n)&&(t[n]=l)}else n!==""&&(t[n]=i[n])}return t}function Me(e,t,s,i=null){we(e,t,7,[s,i])}const wr=In();let _r=0;function Sr(e,t,s){const i=e.type,n=(t?t.appContext:e.appContext)||wr,o={uid:_r++,vnode:e,type:i,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new qo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kn(i,n),emitsOptions:Ln(i,n),emit:null,emitted:null,propsDefaults:z,inheritAttrs:i.inheritAttrs,ctx:z,data:z,props:z,attrs:z,slots:z,refs:z,setupState:z,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=tr.bind(null,o),e.ce&&e.ce(o),o}let ce=null;const eo=()=>ce||oe;let ws,Pt;{const e=Zt(),t=(s,i)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(i),o=>{n.length>1?n.forEach(l=>l(o)):n[0](o)}};ws=t("__VUE_INSTANCE_SETTERS__",s=>ce=s),Pt=t("__VUE_SSR_SETTERS__",s=>Ht=s)}const Nt=e=>{const t=ce;return ws(e),e.scope.on(),()=>{e.scope.off(),ws(t)}},to=()=>{ce&&ce.scope.off(),ws(null)};function so(e){return e.vnode.shapeFlag&4}let Ht=!1;function kr(e,t=!1,s=!1){t&&Pt(t);const{props:i,children:n}=e.vnode,o=so(e);rr(e,i,o,t),fr(e,n,s||t);const l=o?Tr(e,t):void 0;return t&&Pt(!1),l}function Tr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wl);const{setup:i}=s;if(i){ke();const n=e.setupContext=i.length>1?Cr(e):null,o=Nt(e),l=at(i,e,0,[e.props,n]),r=Ai(l);if(Te(),o(),(r||e.sp)&&!pt(e)&&vn(e),r){if(l.then(to,to),t)return l.then(a=>{Pt(!0);try{io(e,a,t)}finally{Pt(!1)}}).catch(a=>{rs(a,e,0)});e.asyncDep=l}else io(e,l)}else no(e)}function io(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:K(t)&&(e.setupState=on(t)),no(e)}function no(e,t,s){const i=e.type;e.render||(e.render=i.render||_e);{const n=Nt(e);ke();try{ql(e)}finally{Te(),n()}}}const Er={get(e,t){return re(e,"get",""),e[t]}};function Cr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Er),slots:e.slots,emit:e.emit,expose:t}}function _s(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(on(ul(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Mt)return Mt[s](e)},has(t,s){return s in t||s in Mt}})):e.proxy}const Or=/(?:^|[-_])\w/g,Ar=e=>e.replace(Or,t=>t.toUpperCase()).replace(/[-_]/g,"");function oo(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function lo(e,t,s=!1){let i=oo(t);if(!i&&t.__file){const n=t.__file.match(/([^/\\]+)\.\w+$/);n&&(i=n[1])}if(!i&&e){const n=o=>{for(const l in o)if(o[l]===t)return l};i=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return i?Ar(i):s?"App":"Anonymous"}function Mr(e){return L(e)&&"__vccOpts"in e}const Rr=(e,t)=>bl(e,t,Ht),Ir="3.5.42";/**
|
|
* @vue/runtime-dom v3.5.42
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let hi;const ro=typeof window<"u"&&window.trustedTypes;if(ro)try{hi=ro.createPolicy("vue",{createHTML:e=>e})}catch{}const ao=hi?e=>hi.createHTML(e):e=>e,Lr="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1998/Math/MathML",We=typeof document<"u"?document:null,co=We&&We.createElement("template"),Nr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{const n=t==="svg"?We.createElementNS(Lr,e):t==="mathml"?We.createElementNS(Pr,e):s?We.createElement(e,{is:s}):We.createElement(e);return e==="select"&&i&&i.multiple!=null&&n.setAttribute("multiple",i.multiple),n},createText:e=>We.createTextNode(e),createComment:e=>We.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>We.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,n,o){const l=s?s.previousSibling:t.lastChild;if(n&&(n===o||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),s),!(n===o||!(n=n.nextSibling)););else{co.innerHTML=ao(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);const r=co.content;if(i==="svg"||i==="mathml"){const a=r.firstChild;for(;a.firstChild;)r.appendChild(a.firstChild);r.removeChild(a)}t.insertBefore(r,s)}return[l?l.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Hr=Symbol("_vtc");function $r(e,t,s){const i=e[Hr];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Ss=Symbol("_vod"),fo=Symbol("_vsh"),gi={name:"show",beforeMount(e,{value:t},{transition:s}){e[Ss]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):$t(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),$t(e,!0),i.enter(e)):i.leave(e,()=>{$t(e,!1)}):$t(e,t))},beforeUnmount(e,{value:t}){$t(e,t)}};function $t(e,t){e.style.display=t?e[Ss]:"none",e[fo]=!t}const Dr=Symbol(""),Fr=/(?:^|;)\s*display\s*:/;function jr(e,t,s){const i=e.style,n=G(s);let o=!1;if(s&&!n){if(t)if(G(t))for(const l of t.split(";")){const r=l.slice(0,l.indexOf(":")).trim();s[r]==null&&Dt(i,r,"")}else for(const l in t)s[l]==null&&Dt(i,l,"");for(const l in s){l==="display"&&(o=!0);const r=s[l];r!=null?Ur(e,l,!G(t)&&t?t[l]:void 0,r)||Dt(i,l,r):Dt(i,l,"")}}else if(n){if(t!==s){const l=i[Dr];l&&(s+=";"+l),i.cssText=s,o=Fr.test(s)}}else t&&e.removeAttribute("style");Ss in e&&(e[Ss]=o?i.display:"",e[fo]&&(i.display="none"))}const ks=/\s*!important$/;function Dt(e,t,s){if(R(s))s.forEach(i=>Dt(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))ks.test(s)?e.setProperty(t,s.replace(ks,""),"important"):e.setProperty(t,s);else{const i=Kr(e,t);ks.test(s)?e.setProperty(be(i),s.replace(ks,""),"important"):e[i]=s}}const po=["Webkit","Moz","ms"],bi={};function Kr(e,t){const s=bi[t];if(s)return s;let i=ie(t);if(i!=="filter"&&i in e)return bi[t]=i;i=Yt(i);for(let n=0;n<po.length;n++){const o=po[n]+i;if(o in e)return bi[t]=o}return t}function Ur(e,t,s,i){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&G(i)&&s===i}const uo="http://www.w3.org/1999/xlink";function ho(e,t,s,i,n,o=Bo(t)){i&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(uo,t.slice(6,t.length)):e.setAttributeNS(uo,t,s):s==null||o&&!Pi(s)?e.removeAttribute(t):e.setAttribute(t,o?"":me(s)?String(s):s)}function go(e,t,s,i,n){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ao(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(r!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let l=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=Pi(s):s==null&&r==="string"?(s="",l=!0):r==="number"&&(s=0,l=!0)}try{e[t]=s}catch{}l&&e.removeAttribute(n||t)}function bt(e,t,s,i){e.addEventListener(t,s,i)}function Vr(e,t,s,i){e.removeEventListener(t,s,i)}const bo=Symbol("_vei");function zr(e,t,s,i,n=null){const o=e[bo]||(e[bo]={}),l=o[t];if(i&&l)l.value=i;else{const[r,a]=qr(t);if(i){const p=o[t]=Yr(i,n);bt(e,r,p,a)}else l&&(Vr(e,r,l,a),o[t]=void 0)}}const Br=/(Once|Passive|Capture)$/,Wr=/^on:?(?:Once|Passive|Capture)$/;function qr(e){let t,s;for(;(s=e.match(Br))&&!Wr.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):be(e.slice(2)),t]}let vi=0;const Gr=Promise.resolve(),Jr=()=>vi||(Gr.then(()=>vi=0),vi=Date.now());function Yr(e,t){const s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;const n=s.value;if(R(n)){const o=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{o.call(i),i._stopped=!0};const l=n.slice(),r=[i];for(let a=0;a<l.length&&!i._stopped;a++){const p=l[a];p&&we(p,t,5,r)}}else we(n,t,5,[i])};return s.value=e,s.attached=Jr(),s}const vo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xr=(e,t,s,i,n,o)=>{const l=n==="svg";t==="class"?$r(e,i,l):t==="style"?jr(e,s,i):Bt(t)?Wt(t)||zr(e,t,s,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zr(e,t,i,l))?(go(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ho(e,t,i,l,o,t!=="value")):e._isVueCE&&(Qr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!G(i)))?go(e,ie(t),i,o,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),ho(e,t,i,l))};function Zr(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&vo(t)&&L(s));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 n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return vo(t)&&G(s)?!1:t in e}function Qr(e,t){const s=e._def.props;if(!s)return!1;const i=ie(t);return Array.isArray(s)?s.some(n=>ie(n)===i):Object.keys(s).some(n=>ie(n)===i)}const mo={};function ea(e,t,s){let i=ps(e,t);Gt(i)&&(i=Z({},i,t));class n extends mi{constructor(l){super(i,l,s)}}return n.def=i,n}const ta=typeof HTMLElement<"u"?HTMLElement:class{};class mi extends ta{constructor(t,s={},i=So){super(),this._def=t,this._props=s,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&i!==So?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Z({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof mi){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,an(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const s of t)this._setAttr(s.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(i,n=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:l}=i;let r;if(o&&!R(o))for(const a in o){const p=o[a];(p===Number||p&&p.type===Number)&&(a in this._props&&(this._props[a]=Ii(this._props[a])),(r||(r=Object.create(null)))[ie(a)]=!0)}this._numberProps=r,this._resolveProps(i),this.shadowRoot&&this._applyStyles(l),this._mount(i)},s=this._def.__asyncLoader;if(s)return this._pendingResolve=s().then(i=>{i.configureApp=this._def.configureApp,t(this._def=i,!0)}),this._pendingResolve;t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const i in s)D(this,i)||Object.defineProperty(this,i,{get:()=>nn(s[i])})}_resolveProps(t){const{props:s}=t,i=R(s)?s:Object.keys(s||{});for(const n of Object.keys(this))n[0]!=="_"&&i.includes(n)&&this._setProp(n,this[n]);for(const n of i.map(ie))Object.defineProperty(this,n,{get(){return this._getProp(n)},set(o){this._setProp(n,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const s=this.hasAttribute(t);let i=s?this.getAttribute(t):mo;const n=ie(t);s&&this._numberProps&&this._numberProps[n]&&(i=Ii(i)),this._setProp(n,i,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,s,i=!0,n=!1){if(s!==this._props[t]&&(this._dirty=!0,s===mo?delete this._props[t]:(this._props[t]=s,t==="key"&&this._app&&(this._app._ceVNode.key=s)),n&&this._instance&&this._update(),i)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),s===!0?this.setAttribute(be(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(be(t),s+""):s||this.removeAttribute(be(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),aa(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const s=ve(this._def,Z(t,this._props));return this._instance||(s.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const n=(o,l)=>{this.dispatchEvent(new CustomEvent(o,Gt(l[0])?Z({detail:l},l[0]):{detail:l}))};i.emit=(o,...l)=>{n(o,l),be(o)!==o&&n(be(o),l)},this._setParent()}),s}_applyStyles(t,s,i){if(!t)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const n=this._nonce,o=this.shadowRoot,l=i?this._getStyleAnchor(i)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let r=null;for(let a=t.length-1;a>=0;a--){const p=document.createElement("style");n&&p.setAttribute("nonce",n),p.textContent=t[a],o.insertBefore(p,r||l),r=p,a===0&&(i||this._styleAnchors.set(this._def,p),s&&this._styleAnchors.set(s,p))}}_getStyleAnchor(t){if(!t)return null;const s=this._styleAnchors.get(t);return s&&s.parentNode===this.shadowRoot?s:(s&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let s=0;s<t.childNodes.length;s++){const i=t.childNodes[s];if(!(i instanceof HTMLStyleElement))return i}return null}_parseSlots(){const t=this._slots={};let s;for(;s=this.firstChild;){const i=s.nodeType===1&&s.getAttribute("slot")||"default";(t[i]||(t[i]=[])).push(s),this.removeChild(s)}}_renderSlots(){const t=this._getSlots(),s=this._instance.type.__scopeId;for(let i=0;i<t.length;i++){const n=t[i],o=n.getAttribute("name")||"default",l=this._slots[o],r=n.parentNode;if(l)for(const a of l){if(s&&a.nodeType===1){const p=s+"-s",f=document.createTreeWalker(a,1);a.setAttribute(p,"");let h;for(;h=f.nextNode();)h.setAttribute(p,"")}r.insertBefore(a,n)}else for(;n.firstChild;)r.insertBefore(n.firstChild,n);r.removeChild(n)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const s=new Set;for(const i of t){const n=i.querySelectorAll("slot");for(let o=0;o<n.length;o++)s.add(n[o])}return Array.from(s)}_injectChildStyle(t,s){this._applyStyles(t.styles,t,s)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}const xo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?s=>Xt(t,s):t};function sa(e){e.target.composing=!0}function yo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ts=Symbol("_assign"),Es=Symbol("_initialValue");function xi(e,t,s){return t&&(e=e.trim()),s&&(e=Hs(e)),e}const ia={created(e,{modifiers:{lazy:t,trim:s,number:i}},n){e.parentNode&&(e.type==="text"?e[Es]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Es]=e.defaultValue.replace(/\r\n?/g,`
|
|
`))),e[Ts]=xo(n);const o=i||n.props&&n.props.type==="number";bt(e,t?"change":"input",l=>{l.target.composing||e[Ts](xi(e.value,s,o))}),(s||o)&&bt(e,"change",()=>{e.value=xi(e.value,s,o)}),t||(bt(e,"compositionstart",sa),bt(e,"compositionend",yo),bt(e,"change",yo))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){const n=t??"",o=e[Es];delete e[Es],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[Ts](xi(e.value,s,i)):e.value=n},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:n,number:o}},l){if(e[Ts]=xo(l),e.composing)return;const r=(o||e.type==="number")&&!/^0\d/.test(e.value)?Hs(e.value):e.value,a=t??"";if(r===a)return;const p=e.getRootNode();(p instanceof Document||p instanceof ShadowRoot)&&p.activeElement===e&&e.type!=="range"&&(i&&t===s||n&&e.value.trim()===a)||(e.value=a)}},na=["ctrl","shift","alt","meta"],oa={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)=>na.some(s=>e[`${s}Key`]&&!t.includes(s))},la=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=(n,...o)=>{for(let l=0;l<t.length;l++){const r=oa[t[l]];if(r&&r(n,t))return}return e(n,...o)})},ra=Z({patchProp:Xr},Nr);let wo;function _o(){return wo||(wo=ur(ra))}const aa=(...e)=>{_o().render(...e)},So=(...e)=>{const t=_o().createApp(...e),{mount:s}=t;return t.mount=i=>{const n=da(i);if(!n)return;const o=t._component;!L(o)&&!o.render&&!o.template&&(o.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const l=s(n,!1,ca(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),l},t};function ca(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function da(e){return G(e)?document.querySelector(e):e}function yi(e,t){const s=t||fa(e);wn(()=>{var r;const i=eo();if(!i)return;const n=(r=i.proxy)==null?void 0:r.$el;if(!n)return;const o=n.getRootNode();if(!(o instanceof ShadowRoot)||o.querySelector(`style[data-shadow-styles="${s}"]`))return;const l=document.createElement("style");l.setAttribute("data-shadow-styles",s),l.textContent=e,o.appendChild(l)})}function fa(e){let t=0;for(let s=0;s<e.length;s++)t=(t<<5)-t+e.charCodeAt(s),t|=0;return"s"+Math.abs(t).toString(36)}const ko={menu:'<line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/>',map:'<polygon points="3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21"/><line x1="9" y1="3" x2="9" y2="18"/><line x1="15" y1="6" x2="15" y2="21"/>',globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18"/><path d="M12 3a15 15 0 0 1 0 18a15 15 0 0 1 0-18"/>',heart:'<path d="M19 14c1.5-1.5 3-3.5 3-5.5A4.5 4.5 0 0 0 12 6a4.5 4.5 0 0 0-10 2.5C2 10.5 3.5 12.5 5 14l7 7Z"/>',prayer:'<path d="M12 4.2c-.9 1.4-1.9 2.6-2.9 3.8-1 1.2-1.6 2.6-1.6 4.2v3.3c0 1.3.7 2.4 1.8 3 .5.3 1.1-.1 1.1-.7"/><path d="M12 4.2c.9 1.4 1.9 2.6 2.9 3.8 1 1.2 1.6 2.6 1.6 4.2v3.3c0 1.3-.7 2.4-1.8 3-.5.3-1.1-.1-1.1-.7"/><path d="M12 4.2V17"/>',list:'<line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><circle cx="4" cy="6" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="18" r="1"/>',users:'<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.9"/><path d="M16 3.1a4 4 0 0 1 0 7.8"/>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V4s-1 1-4 1-5-2-8-2-4 1-4 1z"/><line x1="4" y1="22" x2="4" y2="15"/>',target:'<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="5"/><circle cx="12" cy="12" r="1"/>',pin:'<path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z"/><circle cx="12" cy="10" r="3"/>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/>',chart:'<line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/>',flask:'<path d="M9 3h6v5l5 11a2 2 0 0 1-2 3H6a2 2 0 0 1-2-3l5-11z"/><line x1="9" y1="3" x2="15" y2="3"/><line x1="6" y1="15" x2="18" y2="15"/>',share:'<circle cx="18" cy="5" r="3"/><circle cx="6" cy="12" r="3"/><circle cx="18" cy="19" r="3"/><line x1="8.6" y1="13.5" x2="15.4" y2="17.5"/><line x1="15.4" y1="6.5" x2="8.6" y2="10.5"/>',beaker:'<path d="M6 3h12"/><path d="M8 3v7l-3 8a2 2 0 0 0 2 3h10a2 2 0 0 0 2-3l-3-8V3"/>',chevron:'<polyline points="9 18 15 12 9 6"/>',grid:'<rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/>',tree:'<rect x="9" y="3" width="6" height="5" rx="1"/><rect x="2" y="16" width="6" height="5" rx="1"/><rect x="16" y="16" width="6" height="5" rx="1"/><path d="M12 8v4M5 16v-2h14v2"/>',dots:'<circle cx="12" cy="5" r="1.5"/><circle cx="12" cy="12" r="1.5"/><circle cx="12" cy="19" r="1.5"/>',embed:'<polyline points="9 7 4 12 9 17"/><polyline points="15 7 20 12 15 17"/>',send:'<path d="M21 3 L3 10.5 L9.5 13.5 L12.5 20 Z"/><line x1="21" y1="3" x2="9.5" y2="13.5"/>',poster:'<rect x="4" y="3" width="16" height="18" rx="2"/><circle cx="12" cy="10" r="2.5"/><path d="M8 17h8"/>',search:'<circle cx="10.5" cy="10.5" r="7.5"/><line x1="15.8" y1="15.8" x2="20.5" y2="20.5"/>',book:'<path d="M12 6.5C12 6.5 9.5 4.5 4 4.5v13C9.5 17.5 12 19.5 12 19.5"/><path d="M12 6.5C12 6.5 14.5 4.5 20 4.5v13C14.5 17.5 12 19.5 12 19.5"/>',wifi:'<path d="M3.5 9a13 13 0 0 1 17 0"/><path d="M6.8 12.4a8.5 8.5 0 0 1 10.4 0"/><path d="M10 15.7a4 4 0 0 1 4 0"/><circle cx="12" cy="19" r="1"/>'};function To(e,t=""){const s=ko[e]||ko.map;return`<svg class="ic ${t}" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
|
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${s}</svg>`}const pa=".vtl{position:absolute;top:0;right:0;bottom:0;left:0;display:grid!important;grid-template-rows:auto 1fr;height:100%;width:100%;min-height:420px;background:#f3f3f1;color:#3b463d;font-family:Public Sans,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;-webkit-font-smoothing:antialiased;--vtl-accent:#92b195;--vtl-border:#d1d4cd;--vtl-elevated:#ffffff;--vtl-accented:#d1d4cd;--vtl-muted:#6d766e;--vtl-rail:256px}.vtl.no-header{grid-template-rows:1fr}.vtl-top{flex:0 0 auto;display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:64px;padding:8px 16px;border-bottom:1px solid var(--vtl-border);background:#fff}.vtl-menu{display:none;font:16px/1 system-ui;color:#3b463d;background:#d1d4cd;border:1px solid #d1d4cd;border-radius:8px;padding:5px 10px;cursor:pointer}.vtl-fab{position:absolute;z-index:15;left:calc(12px + env(safe-area-inset-left));bottom:calc(12px + env(safe-area-inset-bottom));width:44px;height:44px;display:flex;align-items:center;justify-content:center;font:18px/1 system-ui;color:#3b463d;background:#fff;border:1px solid var(--vtl-border);border-radius:50%;box-shadow:0 2px 10px #0000002e;cursor:pointer}.vtl-fab:hover{background:#d1d4cd}.vtl-fab:focus-visible{outline:2px solid var(--vtl-accent);outline-offset:2px}.vtl-menu:hover{background:#d1d4cd}.vtl-brand{display:inline-flex;align-items:center}.vtl-brand:empty{display:none}.vtl-title{font-size:15px;font-weight:600;letter-spacing:-.01em;color:#3b463d}.vtl-meta{color:var(--vtl-muted);font-size:12px;margin-left:auto;display:inline-flex;align-items:center;gap:8px}.vtl-body{min-height:0;position:relative;display:flex}.vtl-nav{position:absolute;top:0;bottom:0;left:0;z-index:5;width:256px;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;border-right:1px solid var(--vtl-border);padding:12px 12px 20px;background:#fff;scrollbar-width:thin;scrollbar-color:#c4c8c0 transparent;contain:layout paint;transform:translate(0);transition:transform .2s cubic-bezier(.4,0,.2,1);will-change:transform}.vtl-nav::-webkit-scrollbar{width:8px;height:8px}.vtl-nav::-webkit-scrollbar-track{background:transparent}.vtl-nav::-webkit-scrollbar-thumb{background:#c4c8c0;border-radius:8px}.vtl-nav::-webkit-scrollbar-thumb:hover{background:#9aa197}.vtl-collapse{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;margin:0 0 8px;padding:7px 10px;border:1px solid var(--vtl-border);border-radius:8px;background:#d1d4cd;color:var(--vtl-muted);font:inherit;font-size:12px;cursor:pointer}.vtl-collapse:hover{background:var(--vtl-accented);color:#3b463d}.vtl-collapse:focus-visible{outline:2px solid var(--vtl-accent);outline-offset:-2px}.vtl-collapse-ic{flex:0 0 auto;display:inline-flex;transition:transform .16s ease;transform:rotate(180deg)}.vtl-collapse-ic svg{width:16px;height:16px}.vtl-collapse-tx{white-space:nowrap}.vtl-grp{margin-bottom:2px}.vtl-grp+.vtl-grp{margin-top:8px;padding-top:8px;border-top:1px solid var(--vtl-border)}.vtl-tier{width:100%;padding:8px 8px 6px;display:flex;align-items:center;gap:8px;box-sizing:border-box}.vtl-tier-btn{border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left;border-radius:8px}.vtl-tier-btn:hover{background:var(--vtl-accented)}.vtl-tier-btn:focus-visible{outline:2px solid var(--vtl-accent);outline-offset:-2px}.vtl-tier-ic{flex:0 0 auto;display:inline-flex;color:var(--vtl-muted)}.vtl-tier-ic svg{width:15px;height:15px}.vtl-cap{font:700 10px/1 system-ui;letter-spacing:.4px;color:#052e16;background:var(--vtl-accent);border-radius:999px;padding:3px 7px}.vtl-tl{font-weight:600;font-size:11px;letter-spacing:.03em;text-transform:uppercase;color:var(--vtl-muted)}.vtl-td{color:#6b6b6b;font-size:11px;margin-left:auto}.vtl-chev{margin-left:auto;display:inline-flex;color:var(--vtl-muted);transition:transform .16s ease}.vtl-chev svg{width:15px;height:15px}.vtl-chev.open{transform:rotate(90deg)}.vtl-rows{display:flex;flex-direction:column;gap:1px}.vtl-tab{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;text-align:left;border:0;background:none;color:var(--vtl-muted);padding:8px 12px;cursor:pointer;border-radius:var(--vtl-radius,8px);font:inherit;margin:0;transition:background .13s ease,color .13s ease}.vtl-tab:hover{background:var(--vtl-accented);color:#3b463d}.vtl-tab:focus-visible{outline:2px solid var(--vtl-accent);outline-offset:-2px}.vtl-tab.active{background:var(--vtl-accented);color:#3b463d;font-weight:500}.vtl-tab.active .vtl-tab-ic{color:var(--vtl-accent)}.vtl-tab-ic{flex:0 0 auto;display:inline-flex;color:var(--vtl-muted)}.vtl-tab-ic svg{width:20px;height:20px}.vtl-tab-emoji{font-size:17px;line-height:1;flex:0 0 auto}.vtl-tab-fallback{display:none;flex:0 0 auto;width:20px;height:20px;align-items:center;justify-content:center;font-size:12px;font-weight:600;color:var(--vtl-muted);background:var(--vtl-accented);border-radius:6px}.vtl-tab.active .vtl-tab-fallback{color:var(--vtl-accent)}.vtl-tab-text{display:flex;flex-direction:column;min-width:0}.vtl-tab-label{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}.vtl-tab-badge{font:600 9px/1 system-ui;letter-spacing:.3px;text-transform:uppercase;color:var(--vtl-accent);border:1px solid var(--vtl-accent);border-radius:var(--vtl-radius,8px);padding:2px 5px}.vtl-tab-sub{font-size:11px;color:#6b6b6b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vtl-tab-sub code{font-family:ui-monospace,Menlo,monospace}.vtl-tab.active .vtl-tab-sub{color:var(--vtl-muted)}.vtl-main{position:absolute;top:0;bottom:0;right:0;left:256px;min-width:0;display:flex;flex-direction:column}.vtl-content{flex:1 1 auto;position:relative;min-height:0}.vtl-host{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;--profile-min-h:0}.vtl-host-slot{position:relative;min-height:100%}.vtl-host-slot>*{min-height:0;max-height:none}.vtl-host-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;text-align:center;color:var(--dx-muted, #6d766e);font-size:13px;padding:20px}.vtl-host-hint.err{color:#f87171}.vtl-host-hint small{color:var(--dx-muted, #6d766e)}.vtl.rail-collapsed .vtl-nav{transform:translate(-184px)}.vtl.rail-collapsed .vtl-main{left:72px}.vtl.rail-collapsed .vtl-collapse{padding-left:184px;justify-content:flex-start}.vtl.rail-collapsed .vtl-collapse-ic{transform:rotate(0)}.vtl.rail-collapsed .vtl-collapse-tx{display:none}.vtl.rail-collapsed .vtl-tab{padding-left:188px;gap:0}.vtl.rail-collapsed .vtl-tab-text{display:none}.vtl.rail-collapsed .vtl-tab-emoji{font-size:19px}.vtl.rail-collapsed .vtl-tab-fallback{display:inline-flex}.vtl.rail-collapsed .vtl-tier{padding-left:196px}.vtl.rail-collapsed .vtl-tl,.vtl.rail-collapsed .vtl-td,.vtl.rail-collapsed .vtl-cap,.vtl.rail-collapsed .vtl-chev{display:none}.vtl.rail-collapsed .vtl-grp+.vtl-grp{margin-top:6px;padding-top:6px}@media (max-width: 760px){.vtl-top{min-height:56px}.vtl-menu{display:inline-block}.vtl-meta{display:none}.vtl-nav{z-index:20;width:256px;box-shadow:0 0 28px #0000008c;transform:translate(-100%)}.vtl.nav-open .vtl-nav{transform:translate(0)}.vtl-main{left:0}.vtl.rail-collapsed .vtl-nav{transform:translate(-100%)}.vtl.rail-collapsed.nav-open .vtl-nav{transform:translate(0)}.vtl.rail-collapsed .vtl-main{left:0}.vtl.rail-collapsed .vtl-collapse{padding-left:10px;justify-content:flex-start}.vtl.rail-collapsed .vtl-collapse-ic{transform:rotate(180deg)}.vtl.rail-collapsed .vtl-collapse-tx{display:inline}.vtl.rail-collapsed .vtl-tab{padding-left:10px;gap:11px}.vtl.rail-collapsed .vtl-tab-text{display:flex}.vtl.rail-collapsed .vtl-tab-fallback{display:none}.vtl.rail-collapsed .vtl-tier{padding-left:8px}.vtl.rail-collapsed .vtl-tl,.vtl.rail-collapsed .vtl-td,.vtl.rail-collapsed .vtl-cap,.vtl.rail-collapsed .vtl-chev{display:inline}}",wi=(e,t)=>{const s=e.__vccOpts||e;for(const[i,n]of t)s[i]=n;return s},Ft={};function ua(e){return e?(Ft[e]||(Ft[e]=new Promise((t,s)=>{const i=document.createElement("script");i.src=e,i.onload=()=>t(),i.onerror=()=>{delete Ft[e],s(new Error("failed to load "+e))},document.head.appendChild(i)})),Ft[e]):Promise.resolve()}function ha(e,t=5e3){return typeof customElements>"u"||customElements.get(e)?Promise.resolve():customElements.whenDefined?Promise.race([customElements.whenDefined(e),new Promise((s,i)=>setTimeout(()=>i(new Error("timeout waiting for <"+e+">")),t))]):Promise.resolve()}const ga=`
|
|
/* STRUCTURAL DISPLAY — the !important is deliberate, not a hack. This layout's display mode is
|
|
load-bearing: it CANNOT function as a block. As a library/ (high-bar) component it ships across
|
|
all 5 deployment methods, and a host (app-shell direct-mount, WordPress, mobile webview) may force
|
|
its own inline display onto the element. Declaring it non-overridable is the correct contract.
|
|
grid-template-rows: auto 1fr = header takes its natural height, .vtl-body gets a DEFINITE
|
|
remaining track — no dependence on in-flow children (nav/main are absolute for the rail slide). */
|
|
.vtl { position:absolute; inset:0; display:grid !important; grid-template-rows:auto 1fr; height:100%; width:100%; min-height:420px; background:#f3f3f1; color:#3b463d; font-family:'Public Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif; -webkit-font-smoothing:antialiased; --vtl-accent:#92b195; --vtl-border:#d1d4cd; --vtl-elevated:#ffffff; --vtl-accented:#d1d4cd; --vtl-muted:#6d766e; --vtl-rail:256px; }
|
|
/* HEADER-OFF (header=false, e.g. the cap-5 doxa-maps-spa): the .vtl-top element is NOT rendered, so
|
|
.vtl-body becomes the ONLY grid child and auto-places into row 1 — the auto row — which has no
|
|
content to size it and collapses to 0 (the 1fr row sits empty) → the same 0-height black screen.
|
|
With no header there is only one region, so declare a single 1fr row and the body fills. */
|
|
.vtl.no-header { grid-template-rows:1fr; }
|
|
/* MATERIAL APP BAR = 64px desktop / 56px mobile (2026-09-21), was 51px from 11px padding.
|
|
Stated as an explicit min-height rather than left to padding arithmetic, so the number a
|
|
reader sees is the number that renders. min-height keeps a wrapping title from clipping.
|
|
★ box-sizing:border-box IS LOAD-BEARING HERE. Without it this element is content-box, so
|
|
min-height:64px MEASURED 81px live: 64 + 16px vertical padding + 1px border. A height stated
|
|
in a comment is worth nothing if the box model adds to it — measure the rendered value, do not
|
|
trust the declaration. (Found exactly that way: the probe read 81 against a 64 target.)
|
|
THIS RULE EXISTS TWICE (VTL_SHADOW_CSS and the scoped style block); keep them identical. */
|
|
.vtl-top { flex:0 0 auto; display:flex; align-items:center; gap:10px; box-sizing:border-box; min-height:64px; padding:8px 16px; border-bottom:1px solid var(--vtl-border); background:#ffffff; }
|
|
.vtl-menu { display:none; font:16px/1 system-ui; color:#3b463d; background:#d1d4cd; border:1px solid #d1d4cd; border-radius:8px; padding:5px 10px; cursor:pointer; }
|
|
/* Headerless-mobile drawer opener. Only ever rendered when narrow AND header-off AND the drawer is
|
|
shut, so it cannot appear in any layout that already has a working toggle. z-index sits ABOVE the
|
|
content but BELOW the drawer (.vtl-nav is z-index:20) so the drawer covers it when it slides in.
|
|
44px is the minimum comfortable touch target; the safe-area insets keep it clear of an iOS home
|
|
indicator and a notch in landscape. */
|
|
.vtl-fab { position:absolute; z-index:15; left:calc(12px + env(safe-area-inset-left)); bottom:calc(12px + env(safe-area-inset-bottom)); width:44px; height:44px; display:flex; align-items:center; justify-content:center; font:18px/1 system-ui; color:#3b463d; background:#ffffff; border:1px solid var(--vtl-border); border-radius:50%; box-shadow:0 2px 10px rgba(0,0,0,.18); cursor:pointer; }
|
|
.vtl-fab:hover { background:#d1d4cd; }
|
|
.vtl-fab:focus-visible { outline:2px solid var(--vtl-accent); outline-offset:2px; }
|
|
.vtl-menu:hover { background:#d1d4cd; }
|
|
.vtl-brand { display:inline-flex; align-items:center; }
|
|
.vtl-brand:empty { display:none; }
|
|
.vtl-title { font-size:15px; font-weight:600; letter-spacing:-0.01em; color:#3b463d; }
|
|
.vtl-meta { color:var(--vtl-muted); font-size:12px; margin-left:auto; display:inline-flex; align-items:center; gap:8px; }
|
|
/* GRID ROWS, not flex (BUG-EMBEDDED-PLUGIN-STUDIO-BLACK-SCREEN). The collapsible-rail design makes
|
|
.vtl-nav and .vtl-main position:absolute (so the rail slides by transform without reflowing the
|
|
heavy map sibling). That leaves .vtl-body with NO in-flow children → ZERO intrinsic height, so it
|
|
could only fill via flex:1 from a flex parent. A host that forces display:block on .vtl (the
|
|
app-shell direct-mounts cap-5 elements that way) made that flex inert → .vtl-body collapsed to 0
|
|
→ black screen. The auto/1fr grid on .vtl gives this row a DEFINITE height by construction, so
|
|
it no longer depends on the parent's display mode NOR on in-flow children. Header-off
|
|
(header=false) still works: the auto row collapses to 0 and 1fr takes the full height. */
|
|
.vtl-body { min-height:0; position:relative; display:flex; }
|
|
.vtl-nav { position:absolute; top:0; bottom:0; left:0; z-index:5; width:256px; box-sizing:border-box; overflow-y:auto; overflow-x:hidden; border-right:1px solid var(--vtl-border); padding:12px 12px 20px; background:#ffffff; scrollbar-width:thin; scrollbar-color:#c4c8c0 transparent; contain:layout paint; transform:translateX(0); transition:transform .2s cubic-bezier(.4,0,.2,1); will-change:transform; }
|
|
/* Thin OVERLAY scrollbar: transparent track so the bar costs no visual space and sits flush to
|
|
the nav edge; low-contrast thumb that darkens on hover. Matches the research-dashboard rails. */
|
|
.vtl-nav::-webkit-scrollbar { width:8px; height:8px; }
|
|
.vtl-nav::-webkit-scrollbar-track { background:transparent; }
|
|
.vtl-nav::-webkit-scrollbar-thumb { background:#c4c8c0; border-radius:8px; }
|
|
.vtl-nav::-webkit-scrollbar-thumb:hover { background:#9aa197; }
|
|
.vtl-collapse { display:flex; align-items:center; gap:8px; width:100%; box-sizing:border-box; margin:0 0 8px; padding:7px 10px; border:1px solid var(--vtl-border); border-radius:8px; background:#d1d4cd; color:var(--vtl-muted); font:inherit; font-size:12px; cursor:pointer; }
|
|
.vtl-collapse:hover { background:var(--vtl-accented); color:#3b463d; }
|
|
.vtl-collapse:focus-visible { outline:2px solid var(--vtl-accent); outline-offset:-2px; }
|
|
.vtl-collapse-ic { flex:0 0 auto; display:inline-flex; transition:transform .16s ease; transform:rotate(180deg); }
|
|
.vtl-collapse-ic svg { width:16px; height:16px; }
|
|
.vtl-collapse-tx { white-space:nowrap; }
|
|
.vtl-grp { margin-bottom:2px; }
|
|
.vtl-grp + .vtl-grp { margin-top:8px; padding-top:8px; border-top:1px solid var(--vtl-border); }
|
|
.vtl-tier { width:100%; padding:8px 8px 6px; display:flex; align-items:center; gap:8px; box-sizing:border-box; }
|
|
.vtl-tier-btn { border:0; background:none; color:inherit; font:inherit; cursor:pointer; text-align:left; border-radius:8px; }
|
|
.vtl-tier-btn:hover { background:var(--vtl-accented); }
|
|
.vtl-tier-btn:focus-visible { outline:2px solid var(--vtl-accent); outline-offset:-2px; }
|
|
.vtl-tier-ic { flex:0 0 auto; display:inline-flex; color:var(--vtl-muted); }
|
|
.vtl-tier-ic svg { width:15px; height:15px; }
|
|
.vtl-cap { font:700 10px/1 system-ui; letter-spacing:.4px; color:#052e16; background:var(--vtl-accent); border-radius:999px; padding:3px 7px; }
|
|
.vtl-tl { font-weight:600; font-size:11px; letter-spacing:.03em; text-transform:uppercase; color:var(--vtl-muted); }
|
|
.vtl-td { color:#6b6b6b; font-size:11px; margin-left:auto; }
|
|
.vtl-chev { margin-left:auto; display:inline-flex; color:var(--vtl-muted); transition:transform .16s ease; }
|
|
.vtl-chev svg { width:15px; height:15px; }
|
|
.vtl-chev.open { transform:rotate(90deg); }
|
|
.vtl-rows { display:flex; flex-direction:column; gap:1px; }
|
|
/* MATERIAL NAV-ROW METRICS (2026-09-21). Driver: "people are used to the YouTube layout, Google
|
|
layout is just way better. We do not need to create custom styles people are not used to."
|
|
Measured before this change: 44px rows with an 8px radius.
|
|
min-height:48px the Material list-item height. min-height, not height, so a wrapping
|
|
label still grows instead of clipping.
|
|
border-radius var(--vtl-radius,8px) — SUPERSEDED THE FULL PILL (2026-09-23).
|
|
The 999px stadium above was a real instruction ("imitate the YouTube
|
|
active row") and it shipped. The Driver then measured it against the
|
|
rest of the product and reversed it: "the roundedness of the tabs is a
|
|
little bit too round because there is nowhere else in the app that has
|
|
that same roundedness. Even the collapse button is not that round...
|
|
it looks more material UI to have a more rounded tab than a less
|
|
circular tab." He is right on the facts — .vtl-collapse is 8px, the
|
|
filter toggles in @map/components/search are 8px, and 8px is already
|
|
the most common radius in this file. A 999px radius on a 48px row is a
|
|
stadium, which is why it reads as foreign beside everything else.
|
|
★ DO NOT "RESTORE" THE PILL on the strength of the YouTube rationale
|
|
above — that rationale is kept because it is true history, not because
|
|
it is current. The 48px Material row height is unaffected and stays.
|
|
NOT VENDORED: the card's law is to imitate the metrics in our own CSS, never to add Quasar or
|
|
MUI. Same clone-dont-edit rule the library follows everywhere else.
|
|
THIS RULE EXISTS TWICE (VTL_SHADOW_CSS and the scoped style block) and the two copies must stay
|
|
byte-identical — edit both or neither. */
|
|
.vtl-tab { display:flex; align-items:center; gap:11px; width:100%; min-height:48px; text-align:left; border:0; background:none; color:var(--vtl-muted); padding:8px 12px; cursor:pointer; border-radius:var(--vtl-radius,8px); font:inherit; margin:0; transition:background .13s ease,color .13s ease; }
|
|
.vtl-tab:hover { background:var(--vtl-accented); color:#3b463d; }
|
|
.vtl-tab:focus-visible { outline:2px solid var(--vtl-accent); outline-offset:-2px; }
|
|
.vtl-tab.active { background:var(--vtl-accented); color:#3b463d; font-weight:500; }
|
|
.vtl-tab.active .vtl-tab-ic { color:var(--vtl-accent); }
|
|
.vtl-tab-ic { flex:0 0 auto; display:inline-flex; color:var(--vtl-muted); }
|
|
.vtl-tab-ic svg { width:20px; height:20px; }
|
|
.vtl-tab-emoji { font-size:17px; line-height:1; flex:0 0 auto; }
|
|
.vtl-tab-fallback { display:none; flex:0 0 auto; width:20px; height:20px; align-items:center; justify-content:center; font-size:12px; font-weight:600; color:var(--vtl-muted); background:var(--vtl-accented); border-radius:6px; }
|
|
.vtl-tab.active .vtl-tab-fallback { color:var(--vtl-accent); }
|
|
.vtl-tab-text { display:flex; flex-direction:column; min-width:0; }
|
|
.vtl-tab-label { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:6px; }
|
|
.vtl-tab-badge { font:600 9px/1 system-ui; letter-spacing:.3px; text-transform:uppercase; color:var(--vtl-accent); border:1px solid var(--vtl-accent); border-radius:var(--vtl-radius,8px); padding:2px 5px; }
|
|
.vtl-tab-sub { font-size:11px; color:#6b6b6b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
.vtl-tab-sub code { font-family:ui-monospace,Menlo,monospace; }
|
|
.vtl-tab.active .vtl-tab-sub { color:var(--vtl-muted); }
|
|
.vtl-main { position:absolute; top:0; bottom:0; right:0; left:256px; min-width:0; display:flex; flex-direction:column; }
|
|
/* ★ contain:layout, NOT layout paint (BUG-STILL-CANNOT-SCROLL-DOWN-TO-THE-GRID, measured
|
|
2026-09-22). layout is the half that does the work the rail collapse needs — it isolates this
|
|
subtree so sliding the rail never reflows a heavy mounted map. paint additionally CLIPS the
|
|
subtree to this box, which silently swallowed every pixel a scroll-stack composite rendered below
|
|
one viewport. The clipping now belongs to .vtl-host, which owns a real scrollbar, so the content
|
|
is both contained AND reachable. Dropping paint costs the collapse nothing: paint never
|
|
contributed reflow isolation, only clipping. */
|
|
.vtl-content { flex:1 1 auto; position:relative; min-height:0; }
|
|
/* ★ NO containment AT ALL on .vtl-content (BUG-FULLSCREEN-MODALS-UNDERSIZED-INSIDE-THE-CAP5-SHELL,
|
|
measured 2026-09-23). contain:paint was dropped earlier for the scroll bug; contain:layout
|
|
stayed -- but LAYOUT containment ALSO makes this element the containing block for every
|
|
position:fixed descendant (CSS Containment spec), so all six modal scrims hosted in the shell
|
|
(PosterDialog, DataTable .dt-scrim, LegendTools .lt-overlay, SemanticTreeLegend export
|
|
backdrop, both poster-wall .modal-scrim) resolved inset:0 to the CONTENT PANE: measured, a
|
|
fixed inset:0 probe here read x=256 w=1184 on a 1440 viewport, leaving the 256px nav rail
|
|
uncovered and CLICKABLE behind an open modal. Visibly almost right, interactively wrong.
|
|
The perf rationale it was kept for does not hold: when the nav collapses, this element's own
|
|
width changes, and a width change re-lays-out the subtree with or without containment. */
|
|
/* ★ THE PANE OWNS THE SCROLL (BUG-STILL-CANNOT-SCROLL-DOWN-TO-THE-GRID). Measured in the cap-5
|
|
shell: the dashboard-plus-grid composite mounted here reported scrollHeight 3380 / clientHeight
|
|
769 — 2611px of real, mounted, populated content (the people-groups grid, h=2586) that NO element
|
|
could scroll to, because this box was position:absolute; inset:0 with the default
|
|
overflow:visible. The document itself measured scrollHeight 900 === clientHeight 900, so a
|
|
wheel gesture anywhere had nothing to move and the page simply sat still.
|
|
THIS IS A HOST GAP, NOT A PLUGIN BUG. The same composite is PERFECT standalone (document
|
|
2960/900, wheel scrolls to 2060, grid reachable) because its generated leaf sets
|
|
body{overflow-y:auto} — the document owns the scroll there. In this shell the pane is pinned to
|
|
viewport height and no ancestor scrolls, so the layout must own it. generate-tree.mjs keeps cap-5
|
|
leaves fixed-viewport on the reasoning that "any scroll-stack it hosts is its OWN iframe leaf" —
|
|
but the studio documents "there is NO iframe mode": every tab mounts its REAL custom element
|
|
directly into this pane. So the scroll has to land here.
|
|
WHY THIS IS SAFE FOR THE FIXED-VIEWPORT MAP TABS, which are the majority. A map element ships
|
|
position:absolute; inset:0 (or height:100%) and therefore fills this box exactly:
|
|
scrollHeight === clientHeight, so auto yields NO scrollbar and NOTHING changes for them. Only a
|
|
pane whose content genuinely exceeds one viewport — i.e. a StackLayout scroll-stack, which is the
|
|
composite that is meant to scroll — gets one. auto is load-bearing; scroll would paint a dead
|
|
scrollbar on all 19 map tabs.
|
|
overscroll-behavior:contain stops a wheel that bottoms out here from chaining to the document. */
|
|
.vtl-host { position:absolute; inset:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; --profile-min-h:0; }
|
|
/* The slot is the element's mount point. It must NOT be position:absolute; inset:0 any more: that
|
|
pinned it to the pane's height and re-created the exact trap one level down — an absolutely
|
|
positioned child cannot grow a scroll container. min-height:100% keeps a fixed-viewport map
|
|
filling the pane (the behaviour absolute-inset gave it) while letting a taller scroll-stack
|
|
composite push the pane's scrollHeight past its clientHeight, which is what produces the
|
|
scrollbar. */
|
|
.vtl-host-slot { position:relative; min-height:100%; }
|
|
/* ★ THE dvh FLOOR, NEUTRALISED FOR HOSTED ELEMENTS (measured 2026-09-22 in the studio, same layout
|
|
shape). A hosted map ships .profile-loader { height:100%; min-height:100dvh }, and the two resolve
|
|
against DIFFERENT bases: height:100% against this pane, min-height:100dvh against the VIEWPORT.
|
|
Wherever the pane is shorter than the viewport (any header/toolbar chrome above it), the floor
|
|
wins, the element overflows by exactly that chrome height, and the overflow-y:auto above then
|
|
correctly paints a scrollbar on a fixed-viewport map that should never have one.
|
|
The floor is DELIBERATE and must stay in the element (standalone it prevents a collapse to 0
|
|
against an auto-height body). It is only wrong HERE, against a definite shorter pane. A genuine
|
|
scroll-stack composite is unaffected: it exceeds the pane on its own content, not on this floor. */
|
|
.vtl-host-slot > * { min-height:0; max-height:none; }
|
|
.vtl-host-hint { position:absolute; inset:0; display:grid; place-items:center; text-align:center; color:var(--dx-muted, #6d766e); font-size:13px; padding:20px; }
|
|
.vtl-host-hint.err { color:#f87171; }
|
|
.vtl-host-hint small { color:var(--dx-muted, #6d766e); }
|
|
/* MATERIAL MINI-VARIANT RAIL = 72px (2026-09-21), up from 60px.
|
|
★ THE COLLAPSE IS A TRANSLATE, NOT A WIDTH CHANGE — so FOUR numbers are coupled and must move
|
|
together, which is precisely where a partial edit would break the layout:
|
|
nav translate -184px the 256px rail slides left, leaving 256-184 = 72px visible
|
|
main left 72px the content pane starts exactly where the rail ends
|
|
collapse pad 184px pushes the toggle's icon into the 72px strip that stays on screen
|
|
tab pad 188px the same for each row's icon (4px more, matching the old 196/200 pair)
|
|
Change one without the others and the icons drift out of the visible strip or the content
|
|
overlaps the rail. Old values were -196 / 60 / 196 / 200.
|
|
THIS BLOCK EXISTS TWICE (VTL_SHADOW_CSS and the scoped style block); keep them byte-identical. */
|
|
.vtl.rail-collapsed .vtl-nav { transform:translateX(-184px); }
|
|
.vtl.rail-collapsed .vtl-main { left:72px; }
|
|
.vtl.rail-collapsed .vtl-collapse { padding-left:184px; justify-content:flex-start; }
|
|
.vtl.rail-collapsed .vtl-collapse-ic { transform:rotate(0deg); }
|
|
.vtl.rail-collapsed .vtl-collapse-tx { display:none; }
|
|
.vtl.rail-collapsed .vtl-tab { padding-left:188px; gap:0; }
|
|
.vtl.rail-collapsed .vtl-tab-text { display:none; }
|
|
.vtl.rail-collapsed .vtl-tab-emoji { font-size:19px; }
|
|
.vtl.rail-collapsed .vtl-tab-fallback { display:inline-flex; }
|
|
.vtl.rail-collapsed .vtl-tier { padding-left:196px; }
|
|
.vtl.rail-collapsed .vtl-tl, .vtl.rail-collapsed .vtl-td, .vtl.rail-collapsed .vtl-cap, .vtl.rail-collapsed .vtl-chev { display:none; }
|
|
.vtl.rail-collapsed .vtl-grp + .vtl-grp { margin-top:6px; padding-top:6px; }
|
|
@media (max-width: 760px) {
|
|
/* Material app bar is 56px on mobile, 64px on desktop — the desktop value is set above. */
|
|
.vtl-top { min-height:56px; }
|
|
.vtl-menu { display:inline-block; }
|
|
.vtl-meta { display:none; }
|
|
/* MOBILE = the SAME composited-transform model, taken to its full-off-canvas extreme: a full-width
|
|
drawer that slides in/out via transform (never a layout property), so opening/closing the drawer
|
|
never reflows the content. Content is full-width (left:0) and stays put; the drawer floats over it. */
|
|
.vtl-nav { z-index:20; width:256px; box-shadow:0 0 28px rgba(0,0,0,.55); transform:translateX(-100%); }
|
|
.vtl.nav-open .vtl-nav { transform:translateX(0); }
|
|
.vtl-main { left:0; }
|
|
/* The desktop slim-rail collapse has no meaning on a phone — reconcileForWidth() clears railCollapsed
|
|
at this width, but neutralize its CSS too (belt-and-suspenders) so a full labelled drawer always
|
|
shows: no partial slide, no icon-column padding, labels/sections visible. */
|
|
.vtl.rail-collapsed .vtl-nav { transform:translateX(-100%); }
|
|
.vtl.rail-collapsed.nav-open .vtl-nav { transform:translateX(0); }
|
|
.vtl.rail-collapsed .vtl-main { left:0; }
|
|
.vtl.rail-collapsed .vtl-collapse { padding-left:10px; justify-content:flex-start; }
|
|
.vtl.rail-collapsed .vtl-collapse-ic { transform:rotate(180deg); }
|
|
.vtl.rail-collapsed .vtl-collapse-tx { display:inline; }
|
|
.vtl.rail-collapsed .vtl-tab { padding-left:10px; gap:11px; }
|
|
.vtl.rail-collapsed .vtl-tab-text { display:flex; }
|
|
.vtl.rail-collapsed .vtl-tab-fallback { display:none; }
|
|
.vtl.rail-collapsed .vtl-tier { padding-left:8px; }
|
|
.vtl.rail-collapsed .vtl-tl, .vtl.rail-collapsed .vtl-td, .vtl.rail-collapsed .vtl-cap, .vtl.rail-collapsed .vtl-chev { display:inline; }
|
|
}
|
|
`,ba=ps({name:"VerticalTabsLayout",props:{active:{type:String,default:""},title:{type:String,default:""},items:{type:Array,default:()=>[]},groups:{type:Array,default:()=>[]},navLabel:{type:String,default:"Sections"},initialNavOpen:{type:Boolean,default:!0},header:{type:Boolean,default:!0},initialRailCollapsed:{type:Boolean,default:!1}},emits:["update:active"],setup(){yi(ga,"vertical-tabs-layout")},data(){return{navOpen:this.initialNavOpen,railCollapsed:this.initialRailCollapsed,_tabEls:{},folderOverride:{},narrow:!1,_mql:null,_onMedia:null,activatedKeys:{},hostState:{},hostError:{},_hostSlots:{},_hostMounted:{}}},computed:{railShown(){return this.narrow?this.navOpen:!0},allRows(){if(this.groups&&this.groups.length){const e=[];for(const t of this.groups)for(const s of t.rows||[])e.push(s);return e}return this.items},orderedKeys(){return this.allRows.map(e=>e.key)},elementRows(){return this.allRows.filter(e=>e&&e.element)},mountedElementRows(){return this.elementRows.filter(e=>this.activatedKeys[e.key])}},watch:{active:{immediate:!0,handler(e){this.activateElement(e)}}},mounted(){try{window.matchMedia&&(this._mql=window.matchMedia("(max-width: 760px)"),this.narrow=this._mql.matches,this.reconcileForWidth(),this._onMedia=e=>{this.narrow=e.matches,this.reconcileForWidth()},this._mql.addEventListener?this._mql.addEventListener("change",this._onMedia):this._mql.addListener&&this._mql.addListener(this._onMedia))}catch{}this.$nextTick(()=>this.activateElement(this.active))},beforeUnmount(){try{this._mql&&this._onMedia&&(this._mql.removeEventListener?this._mql.removeEventListener("change",this._onMedia):this._mql.removeListener&&this._mql.removeListener(this._onMedia))}catch{}this._mql=null,this._onMedia=null},methods:{registerTab(e,t){t&&(this._tabEls[e]=t)},isNarrow(){return this.narrow},reconcileForWidth(){this.narrow?(this.navOpen=!1,this.railCollapsed=!1):this.navOpen=!0},expandRail(){!this.narrow&&this.railCollapsed&&(this.railCollapsed=!1)},toggleRail(){this.narrow?this.navOpen=!this.navOpen:this.railCollapsed=!this.railCollapsed},setHostSlot(e,t){t&&(this._hostSlots[e]=t,this.$nextTick(()=>this.mountHostElement(e)))},activateElement(e){!e||!this.elementRows.find(s=>s.key===e)||(this.activatedKeys[e]||(this.activatedKeys={...this.activatedKeys,[e]:!0},this.hostState={...this.hostState,[e]:"loading"}),this.$nextTick(()=>this.mountHostElement(e)))},mountHostElement(e){if(this._hostMounted[e])return;const t=this.elementRows.find(i=>i.key===e),s=this._hostSlots[e];!t||!s||(this._hostMounted[e]=!0,this.hostState={...this.hostState,[e]:"loading"},ua(t.src).then(()=>ha(t.element)).then(()=>{s.innerHTML="";const i=document.createElement(t.element),n=t.attrs||{};for(const o in n){const l=n[o],r=l!=null&&typeof l=="object"?JSON.stringify(l):String(l);try{i[o]=l}catch{}try{i.setAttribute(o,r)}catch{}}i.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;",s.appendChild(i),this.hostState={...this.hostState,[e]:"ready"}}).catch(i=>{this._hostMounted[e]=!1,this.hostState={...this.hostState,[e]:"error"},this.hostError={...this.hostError,[e]:i&&i.message||String(i)}}))},iconSvg(e){return e?To(e):""},initial(e){const t=(e||"").trim();return t?t.charAt(0).toUpperCase():"•"},isFolderClosed(e){const t=this.folderOverride[e.key];return t!=null?!t:e.open!==!0},toggleFolder(e){const t=this.folderOverride[e],s=(this.groups||[]).find(n=>n.key===e),i=t??(s&&s.open===!0);this.folderOverride={...this.folderOverride,[e]:!i}},pick(e){this.$emit("update:active",e),this.narrow&&(this.navOpen=!1)},onKey(e){const t=this.orderedKeys;if(!t.length)return;const s=t.indexOf(this.active);let i=-1;if(e.key==="ArrowDown"||e.key==="ArrowRight")i=(s+1)%t.length;else if(e.key==="ArrowUp"||e.key==="ArrowLeft")i=(s-1+t.length)%t.length;else if(e.key==="Home")i=0;else if(e.key==="End")i=t.length-1;else return;e.preventDefault();const n=t[i];this.pick(n),this.$nextTick(()=>{const o=this._tabEls[n];o&&o.focus&&o.focus()})}}}),va={key:0,class:"vtl-top"},ma=["aria-expanded"],xa={class:"vtl-brand"},ya={class:"vtl-title"},wa={class:"vtl-meta"},_a=["aria-expanded"],Sa={class:"vtl-body"},ka=["aria-label","aria-hidden","role","aria-orientation"],Ta=["aria-expanded","aria-label"],Ea=["innerHTML"],Ca=["aria-expanded","onClick"],Oa={key:0,class:"vtl-cap"},Aa={class:"vtl-tl"},Ma={key:1,class:"vtl-td"},Ra=["innerHTML"],Ia={key:1,class:"vtl-tier"},La={key:0,class:"vtl-cap"},Pa={class:"vtl-tl"},Na={key:1,class:"vtl-td"},Ha={class:"vtl-rows"},$a=["aria-selected","tabindex","onClick"],Da=["innerHTML"],Fa={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},ja={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},Ka={class:"vtl-tab-text"},Ua={class:"vtl-tab-label"},Va={key:0,class:"vtl-tab-badge"},za={key:0,class:"vtl-tab-sub"},Ba=["innerHTML"],Wa=["aria-selected","tabindex","onClick"],qa=["innerHTML"],Ga={key:1,class:"vtl-tab-emoji","aria-hidden":"true"},Ja={key:2,class:"vtl-tab-fallback","aria-hidden":"true"},Ya={class:"vtl-tab-text"},Xa={class:"vtl-tab-label"},Za={key:0,class:"vtl-tab-sub"},Qa={class:"vtl-main"},ec={class:"vtl-content"},tc=["hidden"],sc={key:0,class:"vtl-host-hint"},ic={key:1,class:"vtl-host-hint err"};function nc(e,t,s,i,n,o){return E(),C("div",{class:Se(["vtl",{"nav-open":e.navOpen,"rail-collapsed":e.railCollapsed,"no-header":!e.header}])},[e.header?(E(),C("header",va,[T("button",{class:"vtl-menu",type:"button","aria-expanded":String(e.navOpen),onClick:t[0]||(t[0]=l=>e.navOpen=!e.navOpen),"aria-label":"Toggle list"},"☰",8,ma),T("span",xa,[At(e.$slots,"brand")]),T("b",ya,N(e.title),1),T("span",wa,[At(e.$slots,"meta")])])):Q("",!0),e.narrow&&!e.header&&!e.navOpen?(E(),C("button",{key:1,class:"vtl-fab",type:"button","aria-expanded":String(e.navOpen),onClick:t[1]||(t[1]=l=>e.navOpen=!0),"aria-label":"Open the list of views"},"☰",8,_a)):Q("",!0),T("div",Sa,[T("nav",{class:"vtl-nav","aria-label":e.navLabel,"aria-hidden":String(!e.railShown),role:e.$slots.rail?null:"tablist","aria-orientation":e.$slots.rail?null:"vertical"},[T("button",{type:"button",class:"vtl-collapse","aria-expanded":String(!e.railCollapsed),"aria-label":e.railCollapsed?"Expand list":"Collapse list",onClick:t[2]||(t[2]=(...l)=>e.toggleRail&&e.toggleRail(...l))},[T("span",{class:"vtl-collapse-ic","aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,8,Ea),t[5]||(t[5]=T("span",{class:"vtl-collapse-tx"},"Collapse",-1))],8,Ta),e.$slots.rail?At(e.$slots,"rail",{collapsed:e.railCollapsed&&!e.narrow,expand:e.expandRail,pick:e.pick},void 0,void 0,0):e.groups&&e.groups.length?(E(!0),C(J,{key:1},Ve(e.groups,l=>(E(),C("div",{class:"vtl-grp",key:l.key},[l.folder?(E(),C("button",{key:0,type:"button",class:"vtl-tier vtl-tier-btn","aria-expanded":String(!e.isFolderClosed(l)),onClick:r=>e.toggleFolder(l.key)},[l.badge?(E(),C("span",Oa,N(l.badge),1)):Q("",!0),T("span",Aa,N(l.label),1),l.count!=null?(E(),C("span",Ma,N(l.count),1)):Q("",!0),T("span",{class:Se(["vtl-chev",{open:!e.isFolderClosed(l)}]),"aria-hidden":"true",innerHTML:e.iconSvg("chevron")},null,10,Ra)],8,Ca)):(E(),C("div",Ia,[l.badge?(E(),C("span",La,N(l.badge),1)):Q("",!0),T("span",Pa,N(l.label),1),l.count!=null?(E(),C("span",Na,N(l.count),1)):Q("",!0)])),ds(T("div",Ha,[(E(!0),C(J,null,Ve(l.rows,r=>(E(),C("button",{key:r.key,type:"button",role:"tab",class:Se(["vtl-tab",{active:r.key===e.active}]),"aria-selected":String(r.key===e.active),tabindex:r.key===e.active?0:-1,ref_for:!0,ref:a=>e.registerTab(r.key,a),onClick:a=>e.pick(r.key),onKeydown:t[3]||(t[3]=a=>e.onKey(a))},[r.icon?(E(),C("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(r.icon)},null,8,Da)):r.emoji?(E(),C("span",Fa,N(r.emoji),1)):(E(),C("span",ja,N(e.initial(r.label)),1)),T("span",Ka,[T("span",Ua,[gt(N(r.label),1),r.badge?(E(),C("span",Va,N(r.badge),1)):Q("",!0)]),r.sub?(E(),C("span",za,[T("span",{innerHTML:r.sub},null,8,Ba)])):Q("",!0)])],42,$a))),128))],512),[[gi,!l.folder||!e.isFolderClosed(l)]])]))),128)):(E(!0),C(J,{key:2},Ve(e.items,l=>(E(),C("button",{key:l.key,type:"button",role:"tab",class:Se(["vtl-tab",{active:l.key===e.active}]),"aria-selected":String(l.key===e.active),tabindex:l.key===e.active?0:-1,ref_for:!0,ref:r=>e.registerTab(l.key,r),onClick:r=>e.pick(l.key),onKeydown:t[4]||(t[4]=r=>e.onKey(r))},[l.icon?(E(),C("span",{key:0,class:"vtl-tab-ic","aria-hidden":"true",innerHTML:e.iconSvg(l.icon)},null,8,qa)):l.emoji?(E(),C("span",Ga,N(l.emoji),1)):(E(),C("span",Ja,N(e.initial(l.label)),1)),T("span",Ya,[T("span",Xa,N(l.label),1),l.sub?(E(),C("span",Za,N(l.sub),1)):Q("",!0)])],42,Wa))),128))],8,ka),T("main",Qa,[e.header?At(e.$slots,"toolbar",{},void 0,void 0,0):Q("",!0),T("div",ec,[(E(!0),C(J,null,Ve(e.mountedElementRows,l=>ds((E(),C("section",{key:l.key,class:"vtl-host",hidden:l.key!==e.active},[T("div",{class:"vtl-host-slot",ref_for:!0,ref:r=>e.setHostSlot(l.key,r)},null,512),e.hostState[l.key]==="loading"?(E(),C("div",sc,"Loading "+N(l.label)+"…",1)):e.hostState[l.key]==="error"?(E(),C("div",ic,[gt(" Could not load "+N(l.label)+".",1),t[6]||(t[6]=T("br",null,null,-1)),T("small",null,N(e.hostError[l.key]),1)])):Q("",!0)],8,tc)),[[gi,l.key===e.active]])),128)),At(e.$slots,"default")])])])],2)}const oc=wi(ba,[["render",nc],["styles",[pa]]]),lc='.st{display:flex;flex-direction:column;margin:0 -12px}.st-bar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:6px;padding:8px 12px;background:#fff}.st-find{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;height:30px;padding:0 8px;border:1px solid #d1d4cd;border-radius:8px;background:#f3f3f1;color:#6d766e}.st-find:focus-within{border-color:#92b195;background:#fff}.st-find-ic{display:inline-flex}.st-find-ic svg{width:14px;height:14px}.st-find-in{flex:1 1 auto;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:13px;color:#3b463d}.st-tool{flex:0 0 auto;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:8px;background:none;color:#6d766e;cursor:pointer}.st-tool:hover{background:#f3f3f1;color:#3b463d}.st-tool:focus-visible{outline:2px solid #92b195;outline-offset:-2px}.st-tool svg{width:16px;height:16px}.st-tree{display:flex;flex-direction:column;padding:0 0 8px;outline:0}.st-row{position:relative;display:flex;align-items:center;gap:6px;height:28px;box-sizing:border-box;padding:0 10px 0 calc(8px + var(--st-depth) * 14px);font-size:13px;color:#3b463d;cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;outline:0}.st-row:hover{background:#f3f3f1}.st-row:focus-visible{box-shadow:inset 0 0 0 1px #92b195}.st-row.active{background:#92b1953d}.st-row.active:after{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:0 3px 3px 0;background:#92b195}.st-row.alias.active{background:#92b1951f}.st-sec{position:sticky;top:46px;z-index:2;height:30px;margin-top:6px;background:#fff;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#6d766e;border-top:1px solid #eceee9}.st-sec:first-child{margin-top:0;border-top:0}.st-sec:hover{background:#fff;color:#3b463d}.st-cap{flex:0 0 auto;font:700 10px/1 system-ui,sans-serif;letter-spacing:.3px;padding:3px 6px;border-radius:999px;background:#92b195;color:#1d2a1f}.st-sec-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.st-twisty,.st-twisty-sp{flex:0 0 16px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;color:#6d766e}.st-twisty svg{width:14px;height:14px;transition:transform .12s ease}.st-row[aria-expanded=true]>.st-twisty svg{transform:rotate(90deg)}.st-ic{flex:0 0 16px;display:inline-flex;color:#6d766e}.st-ic svg{width:16px;height:16px}.st-row.active .st-ic{color:#5f8a63}.st-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.st-desc{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;font:11px/1 ui-monospace,Menlo,monospace;color:#8a928b}.st-part{flex:0 0 auto;font:600 9px/1 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.3px;padding:2px 4px;border:1px solid #92b195;border-radius:4px;color:#5f8a63}.st-count{flex:0 0 auto;margin-left:auto;min-width:18px;text-align:right;font-size:11px;font-weight:500;letter-spacing:0;color:#6d766e}.st-guide{position:absolute;top:0;bottom:0;left:calc(15px + var(--st-g) * 14px);border-left:1px solid #dfe2db;pointer-events:none}.st-row:hover>.st-guide{border-left-color:#c4c8c0}.st-empty{margin:12px;font-size:13px;color:#6d766e}.st-activity{display:flex;flex-direction:column;gap:4px}.st-act{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:44px;margin-left:172px;padding:0;border:0;border-radius:10px;background:none;color:#6d766e;cursor:pointer}.st-act:hover,.st-act.active{background:#f3f3f1;color:#3b463d}.st-act:focus-visible{outline:2px solid #92b195;outline-offset:-2px}.st-act-ic{display:inline-flex}.st-act-ic svg{width:20px;height:20px}.st-act-n{position:absolute;right:6px;bottom:5px;font:700 9px/1 system-ui,sans-serif;color:#5f8a63}',rc='.st { display:flex; flex-direction:column; margin:0 -12px; }.st-bar { position:sticky; top:0; z-index:3; display:flex; align-items:center; gap:6px; padding:8px 12px 8px; background:#ffffff; }.st-find { flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:6px; height:30px; padding:0 8px; border:1px solid #d1d4cd; border-radius:8px; background:#f3f3f1; color:#6d766e; }.st-find:focus-within { border-color:#92b195; background:#ffffff; }.st-find-ic { display:inline-flex; } .st-find-ic svg { width:14px; height:14px; }.st-find-in { flex:1 1 auto; min-width:0; border:0; outline:0; background:none; font:inherit; font-size:13px; color:#3b463d; }.st-tool { flex:0 0 auto; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:8px; background:none; color:#6d766e; cursor:pointer; }.st-tool:hover { background:#f3f3f1; color:#3b463d; } .st-tool:focus-visible { outline:2px solid #92b195; outline-offset:-2px; }.st-tool svg { width:16px; height:16px; }.st-tree { display:flex; flex-direction:column; padding:0 0 8px; outline:0; }.st-row { position:relative; display:flex; align-items:center; gap:6px; height:28px; box-sizing:border-box; padding:0 10px 0 calc(8px + var(--st-depth) * 14px); font-size:13px; color:#3b463d; cursor:pointer; white-space:nowrap; user-select:none; outline:0; }.st-row:hover { background:#f3f3f1; }.st-row:focus-visible { box-shadow:inset 0 0 0 1px #92b195; }.st-row.active { background:rgba(146,177,149,.24); }.st-row.active::after { content:""; position:absolute; left:0; top:4px; bottom:4px; width:3px; border-radius:0 3px 3px 0; background:#92b195; }.st-row.alias.active { background:rgba(146,177,149,.12); }.st-sec { position:sticky; top:46px; z-index:2; height:30px; margin-top:6px; background:#ffffff; font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#6d766e; border-top:1px solid #eceee9; }.st-sec:first-child { margin-top:0; border-top:0; }.st-sec:hover { background:#ffffff; color:#3b463d; }.st-cap { flex:0 0 auto; font:700 10px/1 system-ui,sans-serif; letter-spacing:.3px; padding:3px 6px; border-radius:999px; background:#92b195; color:#1d2a1f; }.st-sec-label { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }.st-twisty, .st-twisty-sp { flex:0 0 16px; width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center; color:#6d766e; }.st-twisty svg { width:14px; height:14px; transition:transform .12s ease; }.st-row[aria-expanded="true"] > .st-twisty svg { transform:rotate(90deg); }.st-ic { flex:0 0 16px; display:inline-flex; color:#6d766e; } .st-ic svg { width:16px; height:16px; }.st-row.active .st-ic { color:#5f8a63; }.st-label { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }.st-desc { flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; font:11px/1 ui-monospace,Menlo,monospace; color:#8a928b; }.st-part { flex:0 0 auto; font:600 9px/1 system-ui,sans-serif; text-transform:uppercase; letter-spacing:.3px; padding:2px 4px; border:1px solid #92b195; border-radius:4px; color:#5f8a63; }.st-count { flex:0 0 auto; margin-left:auto; min-width:18px; text-align:right; font-size:11px; font-weight:500; letter-spacing:0; color:#6d766e; }.st-guide { position:absolute; top:0; bottom:0; left:calc(15px + var(--st-g) * 14px); border-left:1px solid #dfe2db; pointer-events:none; }.st-row:hover > .st-guide { border-left-color:#c4c8c0; }.st-empty { margin:12px; font-size:13px; color:#6d766e; }.st-activity { display:flex; flex-direction:column; gap:4px; }.st-act { position:relative; display:flex; align-items:center; justify-content:center; width:48px; height:44px; margin-left:172px; padding:0; border:0; border-radius:10px; background:none; color:#6d766e; cursor:pointer; }.st-act:hover, .st-act.active { background:#f3f3f1; color:#3b463d; }.st-act:focus-visible { outline:2px solid #92b195; outline-offset:-2px; }.st-act-ic { display:inline-flex; } .st-act-ic svg { width:20px; height:20px; }.st-act-n { position:absolute; right:6px; bottom:5px; font:700 9px/1 system-ui,sans-serif; color:#5f8a63; }',ac='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="3"/><line x1="8.5" y1="12" x2="15.5" y2="12"/></svg>',cc='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 6 15 12 9 18"/></svg>',dc=ps({name:"StudioTree",props:{sections:{type:Array,default:()=>[]},active:{type:String,default:""},collapsed:{type:Boolean,default:!1},pick:{type:Function,default:null},expand:{type:Function,default:null}},emits:["select"],setup(){yi(rc,"studio-tree")},data(){const e=this.readState();return{query:"",focusId:"",secClosed:e.sec||{},nodeOpen:e.node||{},chev:cc,collapseAllSvg:ac}},computed:{byId(){const e=new Map;for(const t of this.sections)for(const s of t.nodes)e.set(s.id,s);return e},q(){return this.query.trim().toLowerCase()},kept(){if(!this.q)return null;const e=new Set;for(const t of this.sections)for(const s of t.nodes){if(!(s.label.toLowerCase().includes(this.q)||String(s.desc||"").toLowerCase().includes(this.q)))continue;e.add(s.id);let n=s.parent;for(;n;)e.add(n),n=this.byId.get(n)&&this.byId.get(n).parent}return e},visible(){const e=[];for(const t of this.sections){const s=this.kept?t.nodes.filter(i=>this.kept.has(i.id)):t.nodes;if(!(this.kept&&!s.length)&&(e.push({id:"sec:"+t.id,section:!0,sectionId:t.id,level:1,depth:0,expandable:!0,cap:t.cap,label:t.label,title:t.title||"",count:t.nodes.filter(i=>i.depth===0).length}),!(!this.kept&&this.secClosed[t.id])))for(const i of s)!this.kept&&!this.ancestorsOpen(i)||e.push({...i,sectionId:t.id,level:i.depth+2,expandable:!!i.kids,alias:i.depth>0})}return e},activeSectionId(){for(const e of this.sections)if(e.nodes.some(t=>t.depth===0&&t.target===this.active))return e.id;return""}},watch:{active:{handler(){this.reveal()},immediate:!0},sections(){this.reveal()},query(e){e&&this.visible.length&&(this.focusId=this.visible[0].id)}},methods:{svg(e){return e?To(e):""},storageKey(){return"dx-studio-tree:"+(typeof location<"u"&&location.pathname||"")},readState(){try{return JSON.parse(window.localStorage.getItem(this.storageKey())||"{}")||{}}catch{return{}}},saveState(){try{window.localStorage.setItem(this.storageKey(),JSON.stringify({sec:this.secClosed,node:this.nodeOpen}))}catch{}},ancestorsOpen(e){let t=e.parent;for(;t;){if(!this.nodeOpen[t])return!1;t=this.byId.get(t)&&this.byId.get(t).parent}return!0},isOpen(e){return this.kept?!0:e.section?!this.secClosed[e.sectionId]:!!this.nodeOpen[e.id]},setOpen(e,t){e.section?this.secClosed={...this.secClosed,[e.sectionId]:!t}:this.nodeOpen={...this.nodeOpen,[e.id]:t},this.saveState()},toggle(e){e.expandable&&this.setOpen(e,!this.isOpen(e))},collapseAll(){this.nodeOpen={},this.saveState();const e=this.visible.find(t=>!t.section&&t.target===this.active&&t.depth===0);e&&(this.focusId=e.id)},rowClass(e){return{"st-row":!0,"st-sec":!!e.section,active:!e.section&&e.target===this.active,alias:!!e.alias}},setRow(e,t){this._rows||(this._rows={}),t?this._rows[e]=t:delete this._rows[e]},activate(e){if(e.section){this.toggle(e);return}e.expandable&&!this.isOpen(e)&&this.setOpen(e,!0),e.target&&(this.pick?this.pick(e.target):this.$emit("select",e.target))},onRowClick(e){this.focusId=e.id,this.activate(e)},focusRow(e){e&&(this.focusId=e,this.$nextTick(()=>{const t=this._rows&&this._rows[e];t&&(t.focus({preventScroll:!0}),t.scrollIntoView({block:"nearest"}))}))},onTreeKey(e){const t=this.visible;if(!t.length)return;const s=Math.max(0,t.findIndex(o=>o.id===this.focusId)),i=t[s],n=o=>o.section?"":o.parent||"sec:"+o.sectionId;switch(e.key){case"ArrowDown":this.focusRow((t[s+1]||i).id);break;case"ArrowUp":this.focusRow((t[s-1]||i).id);break;case"Home":this.focusRow(t[0].id);break;case"End":this.focusRow(t[t.length-1].id);break;case"ArrowRight":if(!i.expandable)break;this.isOpen(i)?t[s+1]&&t[s+1].level>i.level&&this.focusRow(t[s+1].id):this.setOpen(i,!0);break;case"ArrowLeft":i.expandable&&this.isOpen(i)&&!this.kept?this.setOpen(i,!1):this.focusRow(n(i));break;case"Enter":case" ":this.activate(i);break;default:if(e.key.length===1&&/\S/.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey){const o=e.key.toLowerCase(),r=t.slice(s+1).concat(t.slice(0,s+1)).find(a=>String(a.label).toLowerCase().startsWith(o));r&&this.focusRow(r.id);break}return}e.preventDefault()},onFindKey(e){e.key==="Escape"?(this.query="",e.preventDefault()):e.key==="ArrowDown"&&this.visible.length&&(this.focusRow(this.visible[0].id),e.preventDefault())},reveal(){if(!this.active||!this.sections.length)return;let e=null;for(const t of this.sections)if(e=t.nodes.find(s=>s.depth===0&&s.target===this.active),e){this.secClosed[t.id]&&(this.secClosed={...this.secClosed,[t.id]:!1},this.saveState());break}e&&((!this.focusId||!this.byId.has(this.focusId)||this.byId.get(this.focusId).target!==this.active)&&(this.focusId=e.id),this.$nextTick(()=>{const t=this._rows&&this._rows[e.id];t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest"})}))},openSectionFromActivity(e){this.secClosed[e]&&(this.secClosed={...this.secClosed,[e]:!1},this.saveState()),this.expand&&this.expand(),this.$nextTick(()=>this.focusRow("sec:"+e))}}}),fc={key:0,class:"st-activity"},pc=["aria-label","onClick"],uc=["innerHTML"],hc={class:"st-act-n","aria-hidden":"true"},gc={key:1,class:"st"},bc={class:"st-bar"},vc={class:"st-find"},mc=["innerHTML"],xc=["innerHTML"],yc=["aria-level","aria-expanded","aria-selected","tabindex","title","onClick","onFocus"],wc=["innerHTML"],_c={class:"st-cap"},Sc={class:"st-sec-label"},kc={class:"st-count"},Tc=["innerHTML","onClick"],Ec={key:1,class:"st-twisty-sp","aria-hidden":"true"},Cc=["innerHTML"],Oc={class:"st-label"},Ac={key:2,class:"st-part"},Mc={class:"st-desc"},Rc={key:3,class:"st-count"},Ic={key:0,class:"st-empty"};function Lc(e,t,s,i,n,o){return e.collapsed?(E(),C("div",fc,[(E(!0),C(J,null,Ve(e.sections,l=>(E(),C("button",{key:l.id,type:"button",class:Se(["st-act",{active:l.id===e.activeSectionId}]),"aria-label":"Open CAP "+l.cap+", "+l.label,onClick:r=>e.openSectionFromActivity(l.id)},[T("span",{class:"st-act-ic","aria-hidden":"true",innerHTML:e.svg(l.icon)},null,8,uc),T("span",hc,N(l.cap),1)],10,pc))),128))])):(E(),C("div",gc,[T("div",bc,[T("label",vc,[T("span",{class:"st-find-ic","aria-hidden":"true",innerHTML:e.svg("search")},null,8,mc),ds(T("input",{ref:"find",type:"search",class:"st-find-in","onUpdate:modelValue":t[0]||(t[0]=l=>e.query=l),placeholder:"Filter plugins","aria-label":"Filter plugins",onKeydown:t[1]||(t[1]=(...l)=>e.onFindKey&&e.onFindKey(...l))},null,544),[[ia,e.query]])]),T("button",{type:"button",class:"st-tool","aria-label":"Collapse all",title:"Collapse all",onClick:t[2]||(t[2]=(...l)=>e.collapseAll&&e.collapseAll(...l))},[T("span",{"aria-hidden":"true",innerHTML:e.collapseAllSvg},null,8,xc)])]),T("div",{class:"st-tree",role:"tree","aria-label":"Plugins by capability",onKeydown:t[3]||(t[3]=(...l)=>e.onTreeKey&&e.onTreeKey(...l))},[(E(!0),C(J,null,Ve(e.visible,l=>(E(),C("div",{key:l.id,ref_for:!0,ref:r=>e.setRow(l.id,r),role:"treeitem","aria-level":l.level,"aria-expanded":l.expandable?String(e.isOpen(l)):null,"aria-selected":l.section?null:String(l.target===e.active),tabindex:l.id===e.focusId?0:-1,class:Se(e.rowClass(l)),style:xt({"--st-depth":l.depth}),title:l.title||null,onClick:r=>e.onRowClick(l),onFocus:r=>e.focusId=l.id},[l.section?(E(),C(J,{key:0},[T("span",{class:"st-twisty","aria-hidden":"true",innerHTML:e.chev},null,8,wc),T("span",_c,"CAP "+N(l.cap),1),T("span",Sc,N(l.label),1),T("span",kc,N(l.count),1)],64)):(E(),C(J,{key:1},[(E(!0),C(J,null,Ve(l.depth,r=>(E(),C("span",{key:r,class:"st-guide",style:xt({"--st-g":r-1}),"aria-hidden":"true"},null,4))),128)),l.expandable?(E(),C("span",{key:0,class:"st-twisty","aria-hidden":"true",innerHTML:e.chev,onClick:la(r=>e.toggle(l),["stop"])},null,8,Tc)):(E(),C("span",Ec)),T("span",{class:"st-ic","aria-hidden":"true",innerHTML:e.svg(l.icon)},null,8,Cc),T("span",Oc,N(l.label),1),l.part?(E(),C("span",Ac,"part")):Q("",!0),T("span",Mc,N(l.desc),1),l.expandable?(E(),C("span",Rc,N(l.kids),1)):Q("",!0)],64))],46,yc))),128)),e.query&&!e.visible.length?(E(),C("p",Ic,"No plugin matches “"+N(e.query)+"”.",1)):Q("",!0)],32)]))}const Pc=wi(dc,[["render",Lc],["styles",[lc]]]),_i=[{code:"en",name:"English",nativeName:"English",flag:"🇺🇸"},{code:"es",name:"Spanish",nativeName:"Español",flag:"🇪🇸"},{code:"fr",name:"French",nativeName:"Français",flag:"🇫🇷"},{code:"pt",name:"Portuguese",nativeName:"Português",flag:"🇵🇹"},{code:"ar",name:"Arabic",nativeName:"العربية",flag:"🇸🇦",dir:"rtl"},{code:"ru",name:"Russian",nativeName:"Русский",flag:"🇷🇺"},{code:"de",name:"German",nativeName:"Deutsch",flag:"🇩🇪",hideFromSwitcher:!0},{code:"hi",name:"Hindi",nativeName:"हिन्दी",flag:"🇮🇳",hideFromSwitcher:!0}],Nc=_i.filter(e=>!e.hideFromSwitcher);function Hc(e){return _i.find(t=>t.code===e)}function Eo(e){const t=String(e||"").split("-")[0].toLowerCase();return _i.some(s=>s.code===t)?t:"en"}const Co="doxa-maps:locale";function $c(){try{const e=localStorage.getItem(Co);if(e)return Eo(e)}catch{}return Eo(navigator==null?void 0:navigator.language)}function Dc(e){try{localStorage.setItem(Co,e)}catch{}}const Fc=":host{display:block;position:relative;height:var(--plugin-studio-height, 85vh);min-height:480px}:host([hidden]){display:none}.ps-logo{display:inline-flex;align-items:center}.ps-logo svg{display:block}.ps-count{color:#6d766e}.ps-locale{position:relative;display:inline-flex}.ps-locale-btn{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12px;padding:4px 9px;border:1px solid #d1d4cd;border-radius:8px;background:#d1d4cd;color:#3b463d;cursor:pointer}.ps-locale-btn:hover{background:#d1d4cd}.ps-flag{font-size:13px;line-height:1}.ps-locale-name{max-width:11ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ps-dots{color:#6d766e}.ps-locale-menu{position:absolute;top:100%;right:0;margin-top:4px;z-index:30;min-width:180px;list-style:none;padding:6px;border:1px solid #d1d4cd;border-radius:10px;background:#fff;box-shadow:0 12px 32px #00000080;max-height:320px;overflow:auto}.ps-locale-opt{display:flex;align-items:center;gap:8px;width:100%;text-align:left;font:inherit;font-size:13px;padding:7px 9px;border:0;border-radius:7px;background:none;color:#3b463d;cursor:pointer}.ps-locale-opt:hover,.ps-locale-opt.active{background:#d1d4cd;color:#3b463d}.ps-locale-opt.active .ps-locale-name{color:#92b195}.ps-locale-en{margin-left:auto;font-size:11px;color:#6d766e}.ps-toolbar{display:flex;flex-direction:column;gap:8px;padding:10px 12px 0}.ps-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ps-bar-t{flex:1 1 auto;min-width:0}.ps-bar-t b{font-size:15px;color:#3b463d}.ps-bar-sub{display:block;font-size:12px;color:#6d766e}.ps-btn{font:inherit;font-size:12px;padding:5px 10px;border:1px solid #d1d4cd;border-radius:8px;background:#d1d4cd;color:#3b463d;cursor:pointer;white-space:nowrap}.ps-btn:hover{background:#d1d4cd}.ps-embed{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid #d1d4cd;border-radius:8px;background:#f3f3f1}.ps-embed label{font-size:12px;color:#6d766e;display:flex;justify-content:space-between;align-items:center}.ps-embed textarea{width:100%;height:58px;font:11px/1.35 ui-monospace,Menlo,monospace;border:1px solid #d1d4cd;border-radius:6px;background:#fff;color:#3b463d;padding:6px;resize:vertical}.ps-stage{position:absolute;top:10px;right:12px;bottom:12px;left:12px;border:1px solid #d1d4cd;border-radius:10px;overflow:hidden;background:#f3f3f1}.ps-pane{position:absolute;top:0;right:0;bottom:0;left:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;--profile-min-h: 0}.ps-slot{position:relative;min-height:100%}.ps-slot>*{min-height:0;max-height:none}.ps-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;text-align:center;color:#6d766e;font-size:13px;padding:20px}.ps-hint.err{color:#f87171}.ps-hint small{color:#6d766e}",jc=`
|
|
:host { display:block; position:relative; height:var(--plugin-studio-height, 85vh); min-height:480px; }
|
|
:host([hidden]) { display:none; }
|
|
.ps-logo { display:inline-flex; align-items:center; }
|
|
.ps-logo svg { display:block; }
|
|
.ps-count { color:#6d766e; }
|
|
.ps-locale { position:relative; display:inline-flex; }
|
|
.ps-locale-btn { display:inline-flex; align-items:center; gap:6px; font:inherit; font-size:12px; padding:4px 9px; border:1px solid #d1d4cd; border-radius:8px; background:#d1d4cd; color:#3b463d; cursor:pointer; }
|
|
.ps-locale-btn:hover { background:#d1d4cd; }
|
|
.ps-flag { font-size:13px; line-height:1; }
|
|
.ps-locale-name { max-width:11ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
|
.ps-dots { color:#6d766e; }
|
|
.ps-locale-menu { position:absolute; top:100%; right:0; margin-top:4px; z-index:30; min-width:180px; list-style:none; padding:6px; border:1px solid #d1d4cd; border-radius:10px; background:#ffffff; box-shadow:0 12px 32px rgba(0,0,0,.5); max-height:320px; overflow:auto; }
|
|
.ps-locale-opt { display:flex; align-items:center; gap:8px; width:100%; text-align:left; font:inherit; font-size:13px; padding:7px 9px; border:0; border-radius:7px; background:none; color:#3b463d; cursor:pointer; }
|
|
.ps-locale-opt:hover { background:#d1d4cd; color:#3b463d; }
|
|
.ps-locale-opt.active { background:#d1d4cd; color:#3b463d; }
|
|
.ps-locale-opt.active .ps-locale-name { color:#92b195; }
|
|
.ps-locale-en { margin-left:auto; font-size:11px; color:#6d766e; }
|
|
.ps-toolbar { display:flex; flex-direction:column; gap:8px; padding:10px 12px 0; }
|
|
.ps-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
|
|
.ps-bar-t { flex:1 1 auto; min-width:0; }
|
|
.ps-bar-t b { font-size:15px; color:#3b463d; }
|
|
.ps-bar-sub { display:block; font-size:12px; color:#6d766e; }
|
|
.ps-btn { font:inherit; font-size:12px; padding:5px 10px; border:1px solid #d1d4cd; border-radius:8px; background:#d1d4cd; color:#3b463d; cursor:pointer; white-space:nowrap; }
|
|
.ps-btn:hover { background:#d1d4cd; }
|
|
.ps-embed { display:flex; flex-direction:column; gap:6px; padding:8px; border:1px solid #d1d4cd; border-radius:8px; background:#f3f3f1; }
|
|
.ps-embed label { font-size:12px; color:#6d766e; display:flex; justify-content:space-between; align-items:center; }
|
|
.ps-embed textarea { width:100%; height:58px; font:11px/1.35 ui-monospace,Menlo,monospace; border:1px solid #d1d4cd; border-radius:6px; background:#ffffff; color:#3b463d; padding:6px; resize:vertical; }
|
|
.ps-stage { position:absolute; inset:10px 12px 12px; border:1px solid #d1d4cd; border-radius:10px; overflow:hidden; background:#f3f3f1; }
|
|
/* ★ THE PANE OWNS THE SCROLL (BUG-STILL-CANNOT-SCROLL-DOWN-TO-THE-GRID, measured 2026-09-22).
|
|
A scroll-stack composite (dashboard-plus-grid: an 88svh dashboard band + the people-groups grid
|
|
below it) mounted here measured scrollHeight 3380 / clientHeight 769 — 2611px of real, mounted,
|
|
populated content that NO element could scroll to, because this pane was position:absolute;
|
|
inset:0 with the default overflow:visible inside a .ps-stage that is overflow:hidden.
|
|
Document scrollHeight was 900, exactly === clientHeight, so a wheel gesture had nothing to move.
|
|
The identical composite is PERFECT standalone (document 2960/900, wheel reaches 2060) because its
|
|
generated leaf gives the DOCUMENT the scroll — a host that pins the pane to viewport height has
|
|
to own that scroll itself.
|
|
auto, not scroll: only a pane whose content really exceeds its box gets a scrollbar, so the map
|
|
tabs stay scrollbar-free (see the dvh floor note below, which is what makes that true). */
|
|
.ps-pane { position:absolute; inset:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; --profile-min-h:0; }
|
|
/* NOT absolute-inset: that pinned the mount point to the pane's height and re-created the same trap
|
|
one level down (an absolutely positioned child cannot grow a scroll container). min-height:100%
|
|
keeps a fixed-viewport map filling the pane while letting a taller composite grow it. */
|
|
.ps-slot { position:relative; min-height:100%; }
|
|
/* ★ THE dvh FLOOR, NEUTRALISED FOR HOSTED ELEMENTS (measured 2026-09-22, caught by the regression
|
|
check on this very fix — my first version of the rule above was WRONG about this).
|
|
I claimed a fixed-viewport map "fills this box exactly, so auto is a no-op for it". It is not.
|
|
doxa-research-map ships .profile-loader { height:100%; min-height:100dvh }, and those two resolve
|
|
against DIFFERENT bases: height:100% against the pane (769px here, because the pane sits inside a
|
|
.ps-stage inset by the studio chrome), min-height:100dvh against the VIEWPORT (900px). The floor
|
|
wins, the element is 131px taller than its container, and overflow:auto then correctly reported a
|
|
scrollbar on a map tab that should never have one — a real regression my reasoning had ruled out.
|
|
The dvh floor is deliberate and must stay for the STANDALONE leaf, where it fixes the opposite
|
|
bug (BUG-UPG100-NESTED-ELEMENTS-ZERO-HEIGHT: min-height:100% against a body with no definite
|
|
height collapses to 0). It is only wrong HERE, where the pane is a definite box shorter than the
|
|
viewport. So neutralise it on the hosted subtree rather than editing the map: a direct child of a
|
|
studio pane is bounded by the PANE. A taller-than-viewport scroll-stack composite is unaffected —
|
|
it grows past this floor on its own content, which is what makes the grid reachable.
|
|
|
|
★ AND --profile-min-h:0 ON THE PANE, which is the half that actually does the work. Sizing the
|
|
host is NOT enough, and measuring proved it: the host correctly became 769px while the pane still
|
|
overflowed by exactly 131px, because .profile-loader lives INSIDE the map's SHADOW ROOT at
|
|
min-height:100dvh and a host-page SELECTOR cannot reach into a shadow tree. Inherited properties
|
|
CAN, so ProfileLoader.vue now reads min-height:var(--profile-min-h, 100dvh) and this pane sets it
|
|
to 0 — the floor keeps its default everywhere else, including every standalone leaf where it
|
|
still fixes BUG-UPG100.
|
|
★ NOT overflow:clip, which I tried first and MEASURED as wrong: it bounded the map (good) but
|
|
ALSO bounded the scroll-stack composite, whose host box is the pane height while its content is
|
|
3380px — so the grid became unreachable again and the gate went straight back to 0px scrolled.
|
|
One blanket rule cannot serve both; the variable targets the actual culprit instead. */
|
|
.ps-slot > * { min-height:0; max-height:none; }
|
|
.ps-hint { position:absolute; inset:0; display:grid; place-items:center; text-align:center; color:#6d766e; font-size:13px; padding:20px; }
|
|
.ps-hint.err { color:#f87171; }
|
|
.ps-hint small { color:#6d766e; }
|
|
`,Si={5:"App shell · nested-mfe-spa",4:"Composite element",3:"Multi-view element",2:"Preset element",1:"Single element"},Oo={"nested-mfe-spa":0,"nested-elements-mfe":1,monolithic:2,parameterized:3,single:4},Kc=e=>Oo[e]!=null?5-Oo[e]:1,Uc={5:"App shell",4:"Composite",3:"Multi-view",2:"Preset",1:"Single"},ki={5:"monitor",4:"tree",3:"layers",2:"grid",1:"embed"},Ao=new Set(["doxa-research-map","doxa-simple-map","cities-internet-map","gospel-resources-map","my-upg-100-list-map","doxa-map","doxa-maps-spa","dashboard-plus-grid","research-dashboard-map","demo-map","all-people-groups","country-posters-map","key-cities-map","research-map-plus-grid"]),Mo=new Set(["big-picture"]),Vc={"doxa-maps-spa/doxa-maps-spa":"Research Gallery"},jt={};function zc(e,t){return jt[e]||(jt[e]=new Promise((s,i)=>{const n=document.createElement("script");n.src=e,(/^\/plugin-designs\//.test(e)||/\/index\.js(\?|$)/.test(e))&&(n.type="module"),n.onload=()=>s(),n.onerror=()=>{delete jt[e],i(new Error("failed to load "+e))},document.head.appendChild(n)})),jt[e]}function Bc(e,t){return typeof customElements>"u"||customElements.get(e)?Promise.resolve():Promise.race([customElements.whenDefined(e),new Promise((s,i)=>setTimeout(()=>{customElements.get(e)||i(new Error("<"+e+"> never registered (bundle loaded but defined no element)"))},15e3))])}const Wc=ps({name:"PluginStudio",components:{VerticalTabsLayout:oc,StudioTree:Pc},props:{treeBase:{type:String,default:""},profileConfig:{type:[String,Object],default:""},provider:{type:String,default:""},heading:{type:String,default:"Plugin Studio"},tokenUrl:{type:String,default:""},tk:{type:String,default:""}},setup(){return yi(jc,"plugin-studio"),{injectedBase:Ct("psTreeBase","")}},data(){return{activeKey:"",embedOpen:!1,locale:$c(),localeOpen:!1,switcherLangs:Nc,rows:[],manifestBundles:[]}},computed:{cfg(){let e=this.profileConfig;if(typeof e=="string")try{e=e?JSON.parse(e):{}}catch{e={}}return e&&typeof e=="object"?e:{}},base(){const e=(this.treeBase||this.cfg.treeBase||this.injectedBase||"").trim();return e?e.replace(/\/+$/,"")+"/":""},flatRows(){return this.rows},groups(){const e={};for(const t of this.rows)(e[t.cap]=e[t.cap]||[]).push(t);return[5,4,3,2,1].filter(t=>e[t]&&e[t].length).map(t=>({cap:t,label:Si[t]||"capability "+t,rows:e[t]}))},treeSections(){const e=new Map(this.compositionTrees.map(t=>[t.nodes[0].selects,t]));return this.groups.map(t=>{const s=[];for(const i of t.rows){const n=e.get(i.key);if(s.push({id:i.key,parent:"",depth:0,label:i.label,desc:i.tag,icon:i.icon,target:i.key,kids:n?n.nodes[0].kids:0,title:i.label+" · <"+i.tag+"> · CAP "+i.cap+" "+(Si[i.cap]||"")}),!n)continue;const o=l=>l===0?i.key:i.key+">"+l;for(const l of n.nodes.slice(1))s.push({id:o(l.id),parent:o(l.ancestors[l.ancestors.length-1]),depth:l.depth,label:l.label,part:!!l.part,target:l.selects||"",icon:l.part?"dots":ki[l.cap]||"embed",desc:l.part?"no standalone page":"cap "+l.cap+" · "+l.tag,kids:l.kids||0,title:l.part?l.label+" · part of "+i.label+", not published on its own":l.label+" · <"+l.tag+"> · CAP "+l.cap+" "+(Si[l.cap]||"")})}return{id:"cap-"+t.cap,cap:t.cap,label:Uc[t.cap]||t.label,title:t.label,icon:ki[t.cap]||"embed",nodes:s}})},compositionTrees(){const e=[],t=(s,i,n,o,l)=>{const r=this.manifestBundles.find(y=>y.bundle===s.bundle),a=s.cap>=4&&r&&r.composes||[],p=[],f=[],h=new Set;for(const y of a){const k=this.resolveRef(y,s.bundle);if(!k){f.push(y);continue}k.key===s.key||h.has(k.key)||(h.add(k.key),p.push(k))}p.sort((y,k)=>k.cap-y.cap||y.label.localeCompare(k.label));for(const y of p){const k={id:o.length,label:y.label,tag:y.tag,cap:y.cap,selects:y.key,depth:i+1,ancestors:l,kids:0};o.push(k);const j=o.length;n.has(y.key)||t(y,i+1,new Set([...n,y.key]),o,[...l,k.id]),k.kids=o.filter((P,ee)=>ee>=j&&P.depth===i+2).length}for(const y of f)o.push({id:o.length,label:y,part:!0,selects:s.key,depth:i+1,ancestors:l,kids:0})};for(const s of this.manifestBundles){if(!s.composes||!s.composes.length||Mo.has(s.bundle))continue;const i=this.rows.find(o=>o.bundle===s.bundle);if(!i)continue;const n=[{id:0,label:i.label,tag:i.tag,cap:i.cap,selects:i.key,depth:0,ancestors:[]}];t(i,0,new Set([i.key]),n,[0]),n[0].kids=n.filter(o=>o.depth===1).length,n.length>1&&e.push({bundle:s.bundle,nodes:n})}return e},active(){return this.rows.find(e=>e.key===this.activeKey)||null},countLabel(){return new Set(this.rows.map(t=>t.bundle)).size+" bundles · "+this.rows.length+" elements listed here"},activeLang(){return Hc(this.locale)||{code:this.locale,flag:"🌐",nativeName:this.locale}}},mounted(){this.loadManifest()},methods:{resolveRef(e,t){return t&&this.rows.find(s=>s.key===t+"/"+e)||this.rows.find(s=>s.key===e)||this.rows.find(s=>s.tag===e)||this.rows.find(s=>s.bundle===e)||null},setSlot(e,t){t&&(this._slots=Object.assign(this._slots||{},{[e]:t}))},setLocale(e){this.locale=e,this.localeOpen=!1,Dc(e);try{const t=this.active,s=this._slots&&this._slots[this.activeKey],i=s&&s.firstElementChild;if(i&&i.setAttribute&&t){const n={profile:t.profile,instanceId:"ps-"+this.activeKey.replace(/\//g,"-"),locale:e};(this.tk||this.cfg.tk)&&(n.tk=this.tk||this.cfg.tk),i.setAttribute("profile-config",JSON.stringify(n))}}catch{}},resolve(e){const t=String(e);if(/^(https?:)?\/\//.test(t)||t.startsWith("/"))return t;const s=t.replace(/^\.\//,"");return this.base?this.base.replace(/\/+$/,"")+"/"+s:"../"+s},loadManifest(){const e=s=>{this.manifestBundles=s&&s.bundles||[],this.rows=this.rowsFromManifest(s),this.route()},t=typeof window<"u"&&window.__psBaked||null;if(typeof fetch=="function"&&typeof location<"u"&&location.protocol!=="file:"){const s=this.base?this.resolve("manifest.json"):"../manifest.json";fetch(s,{cache:"no-cache"}).then(i=>i.ok?i.json():null).then(i=>e(i||t||{bundles:[]})).catch(()=>e(t||{bundles:[]}))}else e(t||{bundles:[]})},rowsFromManifest(e){const t=[];for(const s of e.bundles||[])if(!(s.bundle==="plugin-studio"||Mo.has(s.bundle)))for(const i of s.profiles||[]){const n=i.element||s.elements&&s.elements[0]||s.bundle,o=Kc(i.type||"single"),l=Ao.has(n)||Ao.has(s.bundle);t.push({key:s.bundle+"/"+i.profile,bundle:s.bundle,label:Vc[s.bundle+"/"+i.profile]||i.profile,profile:i.profile,tag:n,cap:o,icon:ki[o]||"embed",description:i.description||"",heavy:l,bundleJs:s.scriptUrl||s.bundle+"/"+s.bundle+".js",embed:i.embed&&i.embed.script||"",mounted:!1,state:"idle",error:""})}return t.sort((s,i)=>i.cap-s.cap||s.bundle.localeCompare(i.bundle)||s.label.localeCompare(i.label)),t},route(){const e=(typeof location<"u"&&location.hash||"").replace(/^#\/?/,"");if(e&&this.rows.some(s=>s.key===e)){this.select(e);return}const t=this.readLastTab();if(t&&this.rows.some(s=>s.key===t)){this.select(t);return}this.rows.length&&this.select(this.rows[0].key)},storageKey(){return"dx-studio-tab:"+(typeof location<"u"&&location.pathname||"")},readLastTab(){try{return window.localStorage.getItem(this.storageKey())||""}catch{return""}},writeLastTab(e){try{window.localStorage.setItem(this.storageKey(),e)}catch{}},select(e){if(!this.rows.some(i=>i.key===e))return;const t=this.activeKey;if(this.activeKey=e,this.embedOpen=!1,t&&t!==e){const i=this.rows.find(n=>n.key===t);i&&i.heavy&&i.mounted&&this.releaseRow(i)}const s=this.rows.find(i=>i.key===e);s&&(this.writeLastTab(e),s.mounted||this.$nextTick(()=>{this.activeKey===s.key&&this.mountElement(s)}))},releaseRow(e){try{const t=this._slots&&this._slots[e.key];t&&(t.innerHTML="")}catch{}this._slots&&delete this._slots[e.key],e.mounted=!1,e.state="idle",e.error=""},mountElement(e){e.mounted=!0,e.state="loading";const t=this.resolve(e.bundleJs);zc(t).then(()=>Bc(e.tag)).then(()=>{try{if(e.heavy&&this.activeKey!==e.key){e.mounted=!1,e.state="idle";return}const s=this._slots&&this._slots[e.key];if(!s){e.state="error",e.error="no slot";return}s.innerHTML="";const i=document.createElement(e.tag),n={profile:e.profile,instanceId:"ps-"+e.key.replace(/\//g,"-"),locale:this.locale};(this.tk||this.cfg.tk)&&(n.tk=this.tk||this.cfg.tk),(this.tokenUrl||this.cfg.tokenUrl)&&(n.tokenUrl=this.tokenUrl||this.cfg.tokenUrl);const o=this.provider||this.cfg.provider;(o==="maplibre"||o==="mapbox")&&(n.provider=o),this.base&&(n.treeBase=this.base),i.setAttribute("profile-config",JSON.stringify(n)),i.style.cssText="display:block;position:absolute;inset:0;width:100%;height:100%;",s.appendChild(i),e.state="ready"}catch(s){e.state="error",e.error="mount failed: "+(s&&s.message||String(s))}}).catch(s=>{e.state="error",e.error=s&&s.message||String(s)})},copyText(e,t){const s=()=>{const i=t.textContent;t.textContent="Copied",setTimeout(()=>{t.textContent=i},1200)};if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(s,()=>{});else try{const i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),s()}catch{}}}}),qc={class:"ps-count"},Gc={class:"ps-locale"},Jc=["aria-expanded"],Yc={class:"ps-flag"},Xc={class:"ps-locale-name"},Zc={key:0,class:"ps-locale-menu",role:"listbox"},Qc=["aria-selected"],ed=["onClick"],td={class:"ps-flag"},sd={class:"ps-locale-name"},id={class:"ps-locale-en"},nd={key:0,class:"ps-toolbar"},od={class:"ps-bar"},ld={class:"ps-bar-t"},rd={class:"ps-bar-sub"},ad={key:0},cd=["aria-expanded"],dd={key:0,class:"ps-embed"},fd=["value"],pd={class:"ps-stage"},ud=["hidden"],hd={key:0,class:"ps-hint"},gd={key:1,class:"ps-hint err"},bd={key:0,class:"ps-hint"};function vd(e,t,s,i,n,o){const l=Sn("StudioTree"),r=Sn("VerticalTabsLayout");return E(),ms(r,{title:e.heading,"nav-label":"Plugin elements · by capability 5 → 1",header:!0,active:e.activeKey,"onUpdate:active":e.select},{rail:ft(({collapsed:a,expand:p,pick:f})=>[ve(l,{sections:e.treeSections,active:e.activeKey,collapsed:a,expand:p,pick:f},null,8,["sections","active","collapsed","expand","pick"])]),brand:ft(()=>[...t[3]||(t[3]=[T("span",{class:"ps-logo","aria-hidden":"true"},[T("svg",{viewBox:"0 0 24 24",width:"22",height:"22",fill:"none",stroke:"#92b195","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[T("path",{d:"M10 3v3M14 3v3M7 6h10v5a5 5 0 0 1-10 0V6Z"}),T("path",{d:"M12 16v5"})])],-1)])]),meta:ft(()=>[T("span",qc,N(e.countLabel),1),T("span",Gc,[T("button",{type:"button",class:"ps-locale-btn","aria-expanded":String(e.localeOpen),"aria-label":"Change language",onClick:t[0]||(t[0]=a=>e.localeOpen=!e.localeOpen)},[T("span",Yc,N(e.activeLang.flag),1),T("span",Xc,N(e.activeLang.nativeName),1),t[4]||(t[4]=T("span",{class:"ps-dots","aria-hidden":"true"},"⋮",-1))],8,Jc),e.localeOpen?(E(),C("ul",Zc,[(E(!0),C(J,null,Ve(e.switcherLangs,a=>(E(),C("li",{key:a.code,role:"option","aria-selected":String(a.code===e.locale)},[T("button",{type:"button",class:Se(["ps-locale-opt",{active:a.code===e.locale}]),onClick:p=>e.setLocale(a.code)},[T("span",td,N(a.flag),1),T("span",sd,N(a.nativeName),1),T("span",id,N(a.name),1)],10,ed)],8,Qc))),128))])):Q("",!0)])]),toolbar:ft(()=>[e.active?(E(),C("div",nd,[T("div",od,[T("div",ld,[T("b",null,N(e.active.label),1),T("span",rd,[gt(N(e.active.bundle)+" · <"+N(e.active.tag)+">",1),e.active.description?(E(),C("span",ad," · "+N(e.active.description),1)):Q("",!0)])]),e.active.embed?(E(),C("button",{key:0,type:"button",class:"ps-btn","aria-expanded":String(e.embedOpen),onClick:t[1]||(t[1]=a=>e.embedOpen=!e.embedOpen)},"Copy embed",8,cd)):Q("",!0)]),e.embedOpen&&e.active.embed?(E(),C("div",dd,[T("label",null,[t[5]||(t[5]=gt("script embed ",-1)),T("button",{type:"button",class:"ps-btn",onClick:t[2]||(t[2]=a=>e.copyText(e.active.embed,a.target))},"Copy")]),T("textarea",{readonly:"",value:e.active.embed},null,8,fd)])):Q("",!0)])):Q("",!0)]),default:ft(()=>[T("div",pd,[(E(!0),C(J,null,Ve(e.flatRows,a=>ds((E(),C("section",{key:a.key,class:"ps-pane",hidden:a.key!==e.activeKey},[!a.heavy||a.key===e.activeKey?(E(),C(J,{key:0},[T("div",{class:"ps-slot",ref_for:!0,ref:p=>e.setSlot(a.key,p)},null,512),a.state==="loading"?(E(),C("div",hd,"Loading "+N(a.label)+"…",1)):a.state==="error"?(E(),C("div",gd,[gt(" Could not load "+N(a.label)+".",1),t[6]||(t[6]=T("br",null,null,-1)),T("small",null,N(a.error),1)])):Q("",!0)],64)):Q("",!0)],8,ud)),[[gi,a.key===e.activeKey]])),128)),e.activeKey?Q("",!0):(E(),C("div",bd,"Choose an element from the list."))])]),_:1},8,["title","active","onUpdate:active"])}const md=wi(Wc,[["render",vd],["styles",[Fc]]]);function xd(){try{const e=typeof document<"u"&&document.currentScript&&document.currentScript.src||"";return e?e.replace(/[^/]+\/[^/]+$/,"").replace(/\/+$/,"")+"/":""}catch{return""}}const yd=xd(),wd=ea(md,{configureApp(e){e.provide("psTreeBase",yd)}});typeof customElements<"u"&&!customElements.get("plugin-studio")&&customElements.define("plugin-studio",wd)})();
|