function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["./Selection-CSOtD1lF.js","./three.module-D3Ak6BAf.js","./VList-nj0j-Es3.js","./LineSegments2-B-upxEmL.js","./LineSegmentsGeometry-BpHZ-rvn.js","./LineMaterial-Y8G2yrnZ.js","./ModelViewerWrapper-8SoyXKaN.js"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
var mm=Object.defineProperty;var gm=(t,e,n)=>e in t?mm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Dt=(t,e,n)=>(gm(t,typeof e!="symbol"?e+"":e,n),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function za(t,e){const n=new Set(t.split(","));return e?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Ae={},Ms=[],Ct=()=>{},vm=()=>!1,Gi=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Da=t=>t.startsWith("onUpdate:"),$e=Object.assign,$a=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},pm=Object.prototype.hasOwnProperty,_e=(t,e)=>pm.call(t,e),oe=Array.isArray,Ts=t=>qi(t)==="[object Map]",ed=t=>qi(t)==="[object Set]",he=t=>typeof t=="function",Be=t=>typeof t=="string",Bs=t=>typeof t=="symbol",Ie=t=>t!==null&&typeof t=="object",td=t=>(Ie(t)||he(t))&&he(t.then)&&he(t.catch),nd=Object.prototype.toString,qi=t=>nd.call(t),ym=t=>qi(t).slice(8,-1),sd=t=>qi(t)==="[object Object]",Ha=t=>Be(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,er=za(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yi=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},bm=/-(\w)/g,bt=Yi(t=>t.replace(bm,(e,n)=>n?n.toUpperCase():"")),xm=/\B([A-Z])/g,rs=Yi(t=>t.replace(xm,"-$1").toLowerCase()),cn=Yi(t=>t.charAt(0).toUpperCase()+t.slice(1)),_o=Yi(t=>t?`on${cn(t)}`:""),Gt=(t,e)=>!Object.is(t,e),So=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},pi=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},wm=t=>{const e=parseFloat(t);return isNaN(e)?t:e},_m=t=>{const e=Be(t)?Number(t):NaN;return isNaN(e)?t:e};let Nl;const rd=()=>Nl||(Nl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xi(t){if(oe(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],r=Be(s)?Mm(s):Xi(s);if(r)for(const i in r)e[i]=r[i]}return e}else if(Be(t)||Ie(t))return t}const Sm=/;(?![^(]*\))/g,Cm=/:([^]+)/,Em=/\/\*[^]*?\*\//g;function Mm(t){const e={};return t.replace(Em,"").split(Sm).forEach(n=>{if(n){const s=n.split(Cm);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function Zi(t){let e="";if(Be(t))e=t;else if(oe(t))for(let n=0;n<t.length;n++){const s=Zi(t[n]);s&&(e+=s+" ")}else if(Ie(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Tm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Am=za(Tm);function id(t){return!!t||t===""}const sn=t=>Be(t)?t:t==null?"":oe(t)||Ie(t)&&(t.toString===nd||!he(t.toString))?JSON.stringify(t,od,2):String(t),od=(t,e)=>e&&e.__v_isRef?od(t,e.value):Ts(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,r],i)=>(n[Co(s,i)+" =>"]=r,n),{})}:ed(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Co(n))}:Bs(e)?Co(e):Ie(e)&&!oe(e)&&!sd(e)?String(e):e,Co=(t,e="")=>{var n;return Bs(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
* @vue/reactivity v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let mt;class ad{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=mt,!e&&mt&&(this.index=(mt.scopes||(mt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=mt;try{return mt=this,e()}finally{mt=n}}}on(){mt=this}off(){mt=this.parent}stop(e){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Ua(t){return new ad(t)}function Rm(t,e=mt){e&&e.active&&e.effects.push(t)}function Im(){return mt}function Rt(t){mt&&mt.cleanups.push(t)}let Xn;class ja{constructor(e,n,s,r){this.fn=e,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Rm(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,is();for(let e=0;e<this._depsLength;e++){const n=this.deps[e];if(n.computed&&(km(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),os()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=An,n=Xn;try{return An=!0,Xn=this,this._runnings++,Bl(this),this.fn()}finally{zl(this),this._runnings--,Xn=n,An=e}}stop(){var e;this.active&&(Bl(this),zl(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function km(t){return t.value}function Bl(t){t._trackId++,t._depsLength=0}function zl(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)ld(t.deps[e],t);t.deps.length=t._depsLength}}function ld(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let An=!0,ra=0;const ud=[];function is(){ud.push(An),An=!1}function os(){const t=ud.pop();An=t===void 0?!0:t}function Wa(){ra++}function Ga(){for(ra--;!ra&&ia.length;)ia.shift()()}function cd(t,e,n){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const s=t.deps[t._depsLength];s!==e?(s&&ld(s,t),t.deps[t._depsLength++]=e):t._depsLength++}}const ia=[];function dd(t,e,n){Wa();for(const s of t.keys()){let r;s._dirtyLevel<e&&(r??(r=t.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=e),s._shouldSchedule&&(r??(r=t.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&ia.push(s.scheduler)))}Ga()}const fd=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},yi=new WeakMap,Zn=Symbol(""),oa=Symbol("");function lt(t,e,n){if(An&&Xn){let s=yi.get(t);s||yi.set(t,s=new Map);let r=s.get(n);r||s.set(n,r=fd(()=>s.delete(n))),cd(Xn,r)}}function rn(t,e,n,s,r,i){const o=yi.get(t);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(n==="length"&&oe(t)){const l=Number(s);o.forEach((u,c)=>{(c==="length"||!Bs(c)&&c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(o.get(n)),e){case"add":oe(t)?Ha(n)&&a.push(o.get("length")):(a.push(o.get(Zn)),Ts(t)&&a.push(o.get(oa)));break;case"delete":oe(t)||(a.push(o.get(Zn)),Ts(t)&&a.push(o.get(oa)));break;case"set":Ts(t)&&a.push(o.get(Zn));break}Wa();for(const l of a)l&&dd(l,4);Ga()}function Fm(t,e){var n;return(n=yi.get(t))==null?void 0:n.get(e)}const Vm=za("__proto__,__v_isRef,__isVue"),hd=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Bs)),Dl=Lm();function Lm(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const s=pe(this);for(let i=0,o=this.length;i<o;i++)lt(s,"get",i+"");const r=s[e](...n);return r===-1||r===!1?s[e](...n.map(pe)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){is(),Wa();const s=pe(this)[e].apply(this,n);return Ga(),os(),s}}),t}function Pm(t){const e=pe(this);return lt(e,"has",t),e.hasOwnProperty(t)}class md{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Ym:yd:i?pd:vd).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=oe(e);if(!r){if(o&&_e(Dl,n))return Reflect.get(Dl,n,s);if(n==="hasOwnProperty")return Pm}const a=Reflect.get(e,n,s);return(Bs(n)?hd.has(n):Vm(n))||(r||lt(e,"get",n),i)?a:Me(a)?o&&Ha(n)?a:a.value:Ie(a)?r?_r(a):tt(a):a}}class gd extends md{constructor(e=!1){super(!1,e)}set(e,n,s,r){let i=e[n];if(!this._isShallow){const l=Fs(i);if(!bi(s)&&!Fs(s)&&(i=pe(i),s=pe(s)),!oe(e)&&Me(i)&&!Me(s))return l?!1:(i.value=s,!0)}const o=oe(e)&&Ha(n)?Number(n)<e.length:_e(e,n),a=Reflect.set(e,n,s,r);return e===pe(r)&&(o?Gt(s,i)&&rn(e,"set",n,s):rn(e,"add",n,s)),a}deleteProperty(e,n){const s=_e(e,n);e[n];const r=Reflect.deleteProperty(e,n);return r&&s&&rn(e,"delete",n,void 0),r}has(e,n){const s=Reflect.has(e,n);return(!Bs(n)||!hd.has(n))&&lt(e,"has",n),s}ownKeys(e){return lt(e,"iterate",oe(e)?"length":Zn),Reflect.ownKeys(e)}}class Om extends md{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const Nm=new gd,Bm=new Om,zm=new gd(!0),qa=t=>t,Ki=t=>Reflect.getPrototypeOf(t);function Pr(t,e,n=!1,s=!1){t=t.__v_raw;const r=pe(t),i=pe(e);n||(Gt(e,i)&&lt(r,"get",e),lt(r,"get",i));const{has:o}=Ki(r),a=s?qa:n?Za:cr;if(o.call(r,e))return a(t.get(e));if(o.call(r,i))return a(t.get(i));t!==r&&t.get(e)}function Or(t,e=!1){const n=this.__v_raw,s=pe(n),r=pe(t);return e||(Gt(t,r)&&lt(s,"has",t),lt(s,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function Nr(t,e=!1){return t=t.__v_raw,!e&&lt(pe(t),"iterate",Zn),Reflect.get(t,"size",t)}function $l(t){t=pe(t);const e=pe(this);return Ki(e).has.call(e,t)||(e.add(t),rn(e,"add",t,t)),this}function Hl(t,e){e=pe(e);const n=pe(this),{has:s,get:r}=Ki(n);let i=s.call(n,t);i||(t=pe(t),i=s.call(n,t));const o=r.call(n,t);return n.set(t,e),i?Gt(e,o)&&rn(n,"set",t,e):rn(n,"add",t,e),this}function Ul(t){const e=pe(this),{has:n,get:s}=Ki(e);let r=n.call(e,t);r||(t=pe(t),r=n.call(e,t)),s&&s.call(e,t);const i=e.delete(t);return r&&rn(e,"delete",t,void 0),i}function jl(){const t=pe(this),e=t.size!==0,n=t.clear();return e&&rn(t,"clear",void 0,void 0),n}function Br(t,e){return function(s,r){const i=this,o=i.__v_raw,a=pe(o),l=e?qa:t?Za:cr;return!t&&lt(a,"iterate",Zn),o.forEach((u,c)=>s.call(r,l(u),l(c),i))}}function zr(t,e,n){return function(...s){const r=this.__v_raw,i=pe(r),o=Ts(i),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=r[t](...s),c=n?qa:e?Za:cr;return!e&&lt(i,"iterate",l?oa:Zn),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function vn(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Dm(){const t={get(i){return Pr(this,i)},get size(){return Nr(this)},has:Or,add:$l,set:Hl,delete:Ul,clear:jl,forEach:Br(!1,!1)},e={get(i){return Pr(this,i,!1,!0)},get size(){return Nr(this)},has:Or,add:$l,set:Hl,delete:Ul,clear:jl,forEach:Br(!1,!0)},n={get(i){return Pr(this,i,!0)},get size(){return Nr(this,!0)},has(i){return Or.call(this,i,!0)},add:vn("add"),set:vn("set"),delete:vn("delete"),clear:vn("clear"),forEach:Br(!0,!1)},s={get(i){return Pr(this,i,!0,!0)},get size(){return Nr(this,!0)},has(i){return Or.call(this,i,!0)},add:vn("add"),set:vn("set"),delete:vn("delete"),clear:vn("clear"),forEach:Br(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=zr(i,!1,!1),n[i]=zr(i,!0,!1),e[i]=zr(i,!1,!0),s[i]=zr(i,!0,!0)}),[t,n,e,s]}const[$m,Hm,Um,jm]=Dm();function Ya(t,e){const n=e?t?jm:Um:t?Hm:$m;return(s,r,i)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?s:Reflect.get(_e(n,r)&&r in s?n:s,r,i)}const Wm={get:Ya(!1,!1)},Gm={get:Ya(!1,!0)},qm={get:Ya(!0,!1)},vd=new WeakMap,pd=new WeakMap,yd=new WeakMap,Ym=new WeakMap;function Xm(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zm(t){return t.__v_skip||!Object.isExtensible(t)?0:Xm(ym(t))}function tt(t){return Fs(t)?t:Xa(t,!1,Nm,Wm,vd)}function Km(t){return Xa(t,!1,zm,Gm,pd)}function _r(t){return Xa(t,!0,Bm,qm,yd)}function Xa(t,e,n,s,r){if(!Ie(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=r.get(t);if(i)return i;const o=Zm(t);if(o===0)return t;const a=new Proxy(t,o===2?s:n);return r.set(t,a),a}function As(t){return Fs(t)?As(t.__v_raw):!!(t&&t.__v_isReactive)}function Fs(t){return!!(t&&t.__v_isReadonly)}function bi(t){return!!(t&&t.__v_isShallow)}function bd(t){return As(t)||Fs(t)}function pe(t){const e=t&&t.__v_raw;return e?pe(e):t}function xd(t){return Object.isExtensible(t)&&pi(t,"__v_skip",!0),t}const cr=t=>Ie(t)?tt(t):t,Za=t=>Ie(t)?_r(t):t;class wd{constructor(e,n,s,r){this.getter=e,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ja(()=>e(this._value),()=>Rs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const e=pe(this);return(!e._cacheable||e.effect.dirty)&&Gt(e._value,e._value=e.effect.run())&&Rs(e,4),Ka(e),e.effect._dirtyLevel>=2&&Rs(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Jm(t,e,n=!1){let s,r;const i=he(t);return i?(s=t,r=Ct):(s=t.get,r=t.set),new wd(s,r,i||!r,n)}function Ka(t){var e;An&&Xn&&(t=pe(t),cd(Xn,(e=t.dep)!=null?e:t.dep=fd(()=>t.dep=void 0,t instanceof wd?t:void 0)))}function Rs(t,e=4,n){t=pe(t);const s=t.dep;s&&dd(s,e)}function Me(t){return!!(t&&t.__v_isRef===!0)}function te(t){return _d(t,!1)}function be(t){return _d(t,!0)}function _d(t,e){return Me(t)?t:new Qm(t,e)}class Qm{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:pe(e),this._value=n?e:cr(e)}get value(){return Ka(this),this._value}set value(e){const n=this.__v_isShallow||bi(e)||Fs(e);e=n?e:pe(e),Gt(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:cr(e),Rs(this,4))}}function Wl(t){Rs(t,4)}function L(t){return Me(t)?t.value:t}const eg={get:(t,e,n)=>L(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const r=t[e];return Me(r)&&!Me(n)?(r.value=n,!0):Reflect.set(t,e,n,s)}};function Sd(t){return As(t)?t:new Proxy(t,eg)}class tg{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=e(()=>Ka(this),()=>Rs(this));this._get=n,this._set=s}get value(){return this._get()}set value(e){this._set(e)}}function ng(t){return new tg(t)}function Ja(t){const e=oe(t)?new Array(t.length):{};for(const n in t)e[n]=Cd(t,n);return e}class sg{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Fm(pe(this._object),this._key)}}class rg{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function fe(t,e,n){return Me(t)?t:he(t)?new rg(t):Ie(t)&&arguments.length>1?Cd(t,e,n):te(t)}function Cd(t,e,n){const s=t[e];return Me(s)?s:new sg(t,e,n)}/**
* @vue/runtime-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Rn(t,e,n,s){try{return s?t(...s):t()}catch(r){Sr(r,e,n)}}function Mt(t,e,n,s){if(he(t)){const i=Rn(t,e,n,s);return i&&td(i)&&i.catch(o=>{Sr(o,e,n)}),i}const r=[];for(let i=0;i<t.length;i++)r.push(Mt(t[i],e,n,s));return r}function Sr(t,e,n,s=!0){const r=e?e.vnode:null;if(e){let i=e.parent;const o=e.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](t,o,a)===!1)return}i=i.parent}const l=e.appContext.config.errorHandler;if(l){Rn(l,null,10,[t,o,a]);return}}ig(t,n,r,s)}function ig(t,e,n,s=!0){console.error(t)}let dr=!1,aa=!1;const Ze=[];let Ut=0;const Is=[];let Cn=null,Wn=0;const Ed=Promise.resolve();let Qa=null;function It(t){const e=Qa||Ed;return t?e.then(this?t.bind(this):t):e}function og(t){let e=Ut+1,n=Ze.length;for(;e<n;){const s=e+n>>>1,r=Ze[s],i=fr(r);i<t||i===t&&r.pre?e=s+1:n=s}return e}function Ji(t){(!Ze.length||!Ze.includes(t,dr&&t.allowRecurse?Ut+1:Ut))&&(t.id==null?Ze.push(t):Ze.splice(og(t.id),0,t),Md())}function Md(){!dr&&!aa&&(aa=!0,Qa=Ed.then(Ad))}function ag(t){const e=Ze.indexOf(t);e>Ut&&Ze.splice(e,1)}function lg(t){oe(t)?Is.push(...t):(!Cn||!Cn.includes(t,t.allowRecurse?Wn+1:Wn))&&Is.push(t),Md()}function Gl(t,e,n=dr?Ut+1:0){for(;n<Ze.length;n++){const s=Ze[n];if(s&&s.pre){if(t&&s.id!==t.uid)continue;Ze.splice(n,1),n--,s()}}}function Td(t){if(Is.length){const e=[...new Set(Is)].sort((n,s)=>fr(n)-fr(s));if(Is.length=0,Cn){Cn.push(...e);return}for(Cn=e,Wn=0;Wn<Cn.length;Wn++)Cn[Wn]();Cn=null,Wn=0}}const fr=t=>t.id==null?1/0:t.id,ug=(t,e)=>{const n=fr(t)-fr(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Ad(t){aa=!1,dr=!0,Ze.sort(ug);try{for(Ut=0;Ut<Ze.length;Ut++){const e=Ze[Ut];e&&e.active!==!1&&Rn(e,null,14)}}finally{Ut=0,Ze.length=0,Td(),dr=!1,Qa=null,(Ze.length||Is.length)&&Ad()}}function cg(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||Ae;let r=n;const i=e.startsWith("update:"),o=i&&e.slice(7);if(o&&o in s){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:f}=s[c]||Ae;f&&(r=n.map(h=>Be(h)?h.trim():h)),d&&(r=n.map(wm))}let a,l=s[a=_o(e)]||s[a=_o(bt(e))];!l&&i&&(l=s[a=_o(rs(e))]),l&&Mt(l,t,6,r);const u=s[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Mt(u,t,6,r)}}function Rd(t,e,n=!1){const s=e.emitsCache,r=s.get(t);if(r!==void 0)return r;const i=t.emits;let o={},a=!1;if(!he(t)){const l=u=>{const c=Rd(u,e,!0);c&&(a=!0,$e(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!a?(Ie(t)&&s.set(t,null),null):(oe(i)?i.forEach(l=>o[l]=null):$e(o,i),Ie(t)&&s.set(t,o),o)}function Qi(t,e){return!t||!Gi(e)?!1:(e=e.slice(2).replace(/Once$/,""),_e(t,e[0].toLowerCase()+e.slice(1))||_e(t,rs(e))||_e(t,e))}let He=null,Id=null;function xi(t){const e=He;return He=t,Id=t&&t.type.__scopeId||null,e}function Y(t,e=He,n){if(!e||t._n)return t;const s=(...r)=>{s._d&&ou(-1);const i=xi(e);let o;try{o=t(...r)}finally{xi(i),s._d&&ou(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Eo(t){const{type:e,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:a,attrs:l,emit:u,render:c,renderCache:d,data:f,setupState:h,ctx:g,inheritAttrs:p}=t;let v,S;const m=xi(t);try{if(n.shapeFlag&4){const x=r||s,C=x;v=Ht(c.call(C,x,d,i,h,f,g)),S=l}else{const x=e;v=Ht(x.length>1?x(i,{attrs:l,slots:a,emit:u}):x(i,null)),S=e.props?l:dg(l)}}catch(x){ir.length=0,Sr(x,t,1),v=_(pt)}let y=v;if(S&&p!==!1){const x=Object.keys(S),{shapeFlag:C}=y;x.length&&C&7&&(o&&x.some(Da)&&(S=fg(S,o)),y=Vn(y,S))}return n.dirs&&(y=Vn(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),v=y,xi(m),v}const dg=t=>{let e;for(const n in t)(n==="class"||n==="style"||Gi(n))&&((e||(e={}))[n]=t[n]);return e},fg=(t,e)=>{const n={};for(const s in t)(!Da(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function hg(t,e,n){const{props:s,children:r,component:i}=t,{props:o,children:a,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?ql(s,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(o[f]!==s[f]&&!Qi(u,f))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?ql(s,o,u):!0:!!o;return!1}function ql(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(e[i]!==t[i]&&!Qi(n,i))return!0}return!1}function mg({vnode:t,parent:e},n){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=e.vnode).el=n,e=e.parent;else break}}const kd="components",gg="directives",Fd=Symbol.for("v-ndc");function vg(t){return Be(t)?Vd(kd,t,!1)||t:t||Fd}function as(t){return Vd(gg,t)}function Vd(t,e,n=!0,s=!1){const r=He||We;if(r){const i=r.type;if(t===kd){const a=uv(i,!1);if(a&&(a===e||a===bt(e)||a===cn(bt(e))))return i}const o=Yl(r[t]||i[t],e)||Yl(r.appContext[t],e);return!o&&s?i:o}}function Yl(t,e){return t&&(t[e]||t[bt(e)]||t[cn(bt(e))])}const pg=t=>t.__isSuspense;function yg(t,e){e&&e.pendingBranch?oe(t)?e.effects.push(...t):e.effects.push(t):lg(t)}const bg=Symbol.for("v-scx"),xg=()=>Oe(bg);function Pn(t,e){return eo(t,null,e)}function wg(t,e){return eo(t,null,{flush:"sync"})}const Dr={};function le(t,e,n){return eo(t,e,n)}function eo(t,e,{immediate:n,deep:s,flush:r,once:i,onTrack:o,onTrigger:a}=Ae){if(e&&i){const b=e;e=(...w)=>{b(...w),C()}}const l=We,u=b=>s===!0?b:qn(b,s===!1?1:void 0);let c,d=!1,f=!1;if(Me(t)?(c=()=>t.value,d=bi(t)):As(t)?(c=()=>u(t),d=!0):oe(t)?(f=!0,d=t.some(b=>As(b)||bi(b)),c=()=>t.map(b=>{if(Me(b))return b.value;if(As(b))return u(b);if(he(b))return Rn(b,l,2)})):he(t)?e?c=()=>Rn(t,l,2):c=()=>(h&&h(),Mt(t,l,3,[g])):c=Ct,e&&s){const b=c;c=()=>qn(b())}let h,g=b=>{h=y.onStop=()=>{Rn(b,l,4),h=y.onStop=void 0}},p;if(Ar)if(g=Ct,e?n&&Mt(e,l,3,[c(),f?[]:void 0,g]):c(),r==="sync"){const b=xg();p=b.__watcherHandles||(b.__watcherHandles=[])}else return Ct;let v=f?new Array(t.length).fill(Dr):Dr;const S=()=>{if(!(!y.active||!y.dirty))if(e){const b=y.run();(s||d||(f?b.some((w,E)=>Gt(w,v[E])):Gt(b,v)))&&(h&&h(),Mt(e,l,3,[b,v===Dr?void 0:f&&v[0]===Dr?[]:v,g]),v=b)}else y.run()};S.allowRecurse=!!e;let m;r==="sync"?m=S:r==="post"?m=()=>rt(S,l&&l.suspense):(S.pre=!0,l&&(S.id=l.uid),m=()=>Ji(S));const y=new ja(c,Ct,m),x=Im(),C=()=>{y.stop(),x&&$a(x.effects,y)};return e?n?S():v=y.run():r==="post"?rt(y.run.bind(y),l&&l.suspense):y.run(),p&&p.push(C),C}function _g(t,e,n){const s=this.proxy,r=Be(t)?t.includes(".")?Ld(s,t):()=>s[t]:t.bind(s,s);let i;he(e)?i=e:(i=e.handler,n=e);const o=Tr(this),a=eo(r,i.bind(s),n);return o(),a}function Ld(t,e){const n=e.split(".");return()=>{let s=t;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function qn(t,e,n=0,s){if(!Ie(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(s=s||new Set,s.has(t))return t;if(s.add(t),Me(t))qn(t.value,e,n,s);else if(oe(t))for(let r=0;r<t.length;r++)qn(t[r],e,n,s);else if(ed(t)||Ts(t))t.forEach(r=>{qn(r,e,n,s)});else if(sd(t))for(const r in t)qn(t[r],e,n,s);return t}function qt(t,e){if(He===null)return t;const n=io(He)||He.proxy,s=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[i,o,a,l=Ae]=e[r];i&&(he(i)&&(i={mounted:i,updated:i}),i.deep&&qn(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return t}function Bn(t,e,n,s){const r=t.dirs,i=e&&e.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[s];l&&(is(),Mt(l,n,8,[t.el,a,t,e]),os())}}const En=Symbol("_leaveCb"),$r=Symbol("_enterCb");function Pd(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xt(()=>{t.isMounted=!0}),kt(()=>{t.isUnmounting=!0}),t}const _t=[Function,Array],Od={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_t,onEnter:_t,onAfterEnter:_t,onEnterCancelled:_t,onBeforeLeave:_t,onLeave:_t,onAfterLeave:_t,onLeaveCancelled:_t,onBeforeAppear:_t,onAppear:_t,onAfterAppear:_t,onAppearCancelled:_t},Sg={name:"BaseTransition",props:Od,setup(t,{slots:e}){const n=ro(),s=Pd();return()=>{const r=e.default&&el(e.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const f of r)if(f.type!==pt){i=f;break}}const o=pe(t),{mode:a}=o;if(s.isLeaving)return Mo(i);const l=Xl(i);if(!l)return Mo(i);const u=hr(l,o,s,n);mr(l,u);const c=n.subTree,d=c&&Xl(c);if(d&&d.type!==pt&&!Gn(l,d)){const f=hr(d,o,s,n);if(mr(d,f),a==="out-in")return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Mo(i);a==="in-out"&&l.type!==pt&&(f.delayLeave=(h,g,p)=>{const v=Nd(s,d);v[String(d.key)]=d,h[En]=()=>{g(),h[En]=void 0,delete u.delayedLeave},u.delayedLeave=p})}return i}}},Cg=Sg;function Nd(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function hr(t,e,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:p,onAppear:v,onAfterAppear:S,onAppearCancelled:m}=e,y=String(t.key),x=Nd(n,t),C=(E,k)=>{E&&Mt(E,s,9,k)},b=(E,k)=>{const V=k[1];C(E,k),oe(E)?E.every(I=>I.length<=1)&&V():E.length<=1&&V()},w={mode:i,persisted:o,beforeEnter(E){let k=a;if(!n.isMounted)if(r)k=p||a;else return;E[En]&&E[En](!0);const V=x[y];V&&Gn(t,V)&&V.el[En]&&V.el[En](),C(k,[E])},enter(E){let k=l,V=u,I=c;if(!n.isMounted)if(r)k=v||l,V=S||u,I=m||c;else return;let T=!1;const F=E[$r]=P=>{T||(T=!0,P?C(I,[E]):C(V,[E]),w.delayedLeave&&w.delayedLeave(),E[$r]=void 0)};k?b(k,[E,F]):F()},leave(E,k){const V=String(t.key);if(E[$r]&&E[$r](!0),n.isUnmounting)return k();C(d,[E]);let I=!1;const T=E[En]=F=>{I||(I=!0,k(),F?C(g,[E]):C(h,[E]),E[En]=void 0,x[V]===t&&delete x[V])};x[V]=t,f?b(f,[E,T]):T()},clone(E){return hr(E,e,n,s)}};return w}function Mo(t){if(Cr(t))return t=Vn(t),t.children=null,t}function Xl(t){return Cr(t)?t.children?t.children[0]:void 0:t}function mr(t,e){t.shapeFlag&6&&t.component?mr(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function el(t,e=!1,n){let s=[],r=0;for(let i=0;i<t.length;i++){let o=t[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Re?(o.patchFlag&128&&r++,s=s.concat(el(o.children,e,a))):(e||o.type!==pt)&&s.push(a!=null?Vn(o,{key:a}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function dn(t,e){return he(t)?$e({name:t.name},e,{setup:t}):t}const tr=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function la(t){he(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:a}=t;let l=null,u,c=0;const d=()=>(c++,l=null,f()),f=()=>{let h;return l||(h=l=e().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),a)return new Promise((p,v)=>{a(g,()=>p(d()),()=>v(g),c+1)});throw g}).then(g=>h!==l&&l?l:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return dn({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const h=We;if(u)return()=>To(u,h);const g=m=>{l=null,Sr(m,h,13,!s)};if(o&&h.suspense||Ar)return f().then(m=>()=>To(m,h)).catch(m=>(g(m),()=>s?_(s,{error:m}):null));const p=te(!1),v=te(),S=te(!!r);return r&&setTimeout(()=>{S.value=!1},r),i!=null&&setTimeout(()=>{if(!p.value&&!v.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),v.value=m}},i),f().then(()=>{p.value=!0,h.parent&&Cr(h.parent.vnode)&&(h.parent.effect.dirty=!0,Ji(h.parent.update))}).catch(m=>{g(m),v.value=m}),()=>{if(p.value&&u)return To(u,h);if(v.value&&s)return _(s,{error:v.value});if(n&&!S.value)return _(n)}}})}function To(t,e){const{ref:n,props:s,children:r,ce:i}=e.vnode,o=_(t,s,r);return o.ref=n,o.ce=i,delete e.vnode.ce,o}const Cr=t=>t.type.__isKeepAlive;function Bd(t,e){Dd(t,"a",e)}function zd(t,e){Dd(t,"da",e)}function Dd(t,e,n=We){const s=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(to(e,s,n),n){let r=n.parent;for(;r&&r.parent;)Cr(r.parent.vnode)&&Eg(s,e,n,r),r=r.parent}}function Eg(t,e,n,s){const r=to(e,t,s,!0);$d(()=>{$a(s[e],r)},n)}function to(t,e,n=We,s=!1){if(n){const r=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;is();const a=Tr(n),l=Mt(e,n,t,o);return a(),os(),l});return s?r.unshift(i):r.push(i),i}}const fn=t=>(e,n=We)=>(!Ar||t==="sp")&&to(t,(...s)=>e(...s),n),no=fn("bm"),Xt=fn("m"),Mg=fn("bu"),tl=fn("u"),kt=fn("bum"),$d=fn("um"),Tg=fn("sp"),Ag=fn("rtg"),Rg=fn("rtc");function Ig(t,e=We){to("ec",t,e)}function kg(t,e,n,s){let r;const i=n&&n[s];if(oe(t)||Be(t)){r=new Array(t.length);for(let o=0,a=t.length;o<a;o++)r[o]=e(t[o],o,void 0,i&&i[o])}else if(typeof t=="number"){r=new Array(t);for(let o=0;o<t;o++)r[o]=e(o+1,o,void 0,i&&i[o])}else if(Ie(t))if(t[Symbol.iterator])r=Array.from(t,(o,a)=>e(o,a,void 0,i&&i[a]));else{const o=Object.keys(t);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const u=o[a];r[a]=e(t[u],u,a,i&&i[a])}}else r=[];return n&&(n[s]=r),r}function Ys(t,e,n={},s,r){if(He.isCE||He.parent&&tr(He.parent)&&He.parent.isCE)return e!=="default"&&(n.name=e),_("slot",n,s&&s());let i=t[e];i&&i._c&&(i._d=!1),at();const o=i&&Hd(i(n)),a=ln(Re,{key:n.key||o&&o.key||`_${e}`},o||(s?s():[]),o&&t._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Hd(t){return t.some(e=>vr(e)?!(e.type===pt||e.type===Re&&!Hd(e.children)):!0)?t:null}const ua=t=>t?ef(t)?io(t)||t.proxy:ua(t.parent):null,nr=$e(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ua(t.parent),$root:t=>ua(t.root),$emit:t=>t.emit,$options:t=>nl(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,Ji(t.update)}),$nextTick:t=>t.n||(t.n=It.bind(t.proxy)),$watch:t=>_g.bind(t)}),Ao=(t,e)=>t!==Ae&&!t.__isScriptSetup&&_e(t,e),Fg={get({_:t},e){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return s[e];case 2:return r[e];case 4:return n[e];case 3:return i[e]}else{if(Ao(s,e))return o[e]=1,s[e];if(r!==Ae&&_e(r,e))return o[e]=2,r[e];if((u=t.propsOptions[0])&&_e(u,e))return o[e]=3,i[e];if(n!==Ae&&_e(n,e))return o[e]=4,n[e];ca&&(o[e]=0)}}const c=nr[e];let d,f;if(c)return e==="$attrs"&&lt(t,"get",e),c(t);if((d=a.__cssModules)&&(d=d[e]))return d;if(n!==Ae&&_e(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,_e(f,e))return f[e]},set({_:t},e,n){const{data:s,setupState:r,ctx:i}=t;return Ao(r,e)?(r[e]=n,!0):s!==Ae&&_e(s,e)?(s[e]=n,!0):_e(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!n[o]||t!==Ae&&_e(t,o)||Ao(e,o)||(a=i[0])&&_e(a,o)||_e(s,o)||_e(nr,o)||_e(r.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:_e(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function wi(t){return oe(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function Zl(t,e){return!t||!e?t||e:oe(t)&&oe(e)?t.concat(e):$e({},wi(t),wi(e))}let ca=!0;function Vg(t){const e=nl(t),n=t.proxy,s=t.ctx;ca=!1,e.beforeCreate&&Kl(e.beforeCreate,t,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:h,updated:g,activated:p,deactivated:v,beforeDestroy:S,beforeUnmount:m,destroyed:y,unmounted:x,render:C,renderTracked:b,renderTriggered:w,errorCaptured:E,serverPrefetch:k,expose:V,inheritAttrs:I,components:T,directives:F,filters:P}=e;if(u&&Lg(u,s,null),o)for(const Z in o){const j=o[Z];he(j)&&(s[Z]=j.bind(n))}if(r){const Z=r.call(n,n);Ie(Z)&&(t.data=tt(Z))}if(ca=!0,i)for(const Z in i){const j=i[Z],ae=he(j)?j.bind(n,n):he(j.get)?j.get.bind(n,n):Ct,Q=!he(j)&&he(j.set)?j.set.bind(n):Ct,se=R({get:ae,set:Q});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>se.value,set:ce=>se.value=ce})}if(a)for(const Z in a)Ud(a[Z],s,n,Z);if(l){const Z=he(l)?l.call(n):l;Reflect.ownKeys(Z).forEach(j=>{ut(j,Z[j])})}c&&Kl(c,t,"c");function q(Z,j){oe(j)?j.forEach(ae=>Z(ae.bind(n))):j&&Z(j.bind(n))}if(q(no,d),q(Xt,f),q(Mg,h),q(tl,g),q(Bd,p),q(zd,v),q(Ig,E),q(Rg,b),q(Ag,w),q(kt,m),q($d,x),q(Tg,k),oe(V))if(V.length){const Z=t.exposed||(t.exposed={});V.forEach(j=>{Object.defineProperty(Z,j,{get:()=>n[j],set:ae=>n[j]=ae})})}else t.exposed||(t.exposed={});C&&t.render===Ct&&(t.render=C),I!=null&&(t.inheritAttrs=I),T&&(t.components=T),F&&(t.directives=F)}function Lg(t,e,n=Ct){oe(t)&&(t=da(t));for(const s in t){const r=t[s];let i;Ie(r)?"default"in r?i=Oe(r.from||s,r.default,!0):i=Oe(r.from||s):i=Oe(r),Me(i)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[s]=i}}function Kl(t,e,n){Mt(oe(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function Ud(t,e,n,s){const r=s.includes(".")?Ld(n,s):()=>n[s];if(Be(t)){const i=e[t];he(i)&&le(r,i)}else if(he(t))le(r,t.bind(n));else if(Ie(t))if(oe(t))t.forEach(i=>Ud(i,e,n,s));else{const i=he(t.handler)?t.handler.bind(n):e[t.handler];he(i)&&le(r,i,t)}}function nl(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let l;return a?l=a:!r.length&&!n&&!s?l=e:(l={},r.length&&r.forEach(u=>_i(l,u,o,!0)),_i(l,e,o)),Ie(e)&&i.set(e,l),l}function _i(t,e,n,s=!1){const{mixins:r,extends:i}=e;i&&_i(t,i,n,!0),r&&r.forEach(o=>_i(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const a=Pg[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const Pg={data:Jl,props:Ql,emits:Ql,methods:Xs,computed:Xs,beforeCreate:et,created:et,beforeMount:et,mounted:et,beforeUpdate:et,updated:et,beforeDestroy:et,beforeUnmount:et,destroyed:et,unmounted:et,activated:et,deactivated:et,errorCaptured:et,serverPrefetch:et,components:Xs,directives:Xs,watch:Ng,provide:Jl,inject:Og};function Jl(t,e){return e?t?function(){return $e(he(t)?t.call(this,this):t,he(e)?e.call(this,this):e)}:e:t}function Og(t,e){return Xs(da(t),da(e))}function da(t){if(oe(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function et(t,e){return t?[...new Set([].concat(t,e))]:e}function Xs(t,e){return t?$e(Object.create(null),t,e):e}function Ql(t,e){return t?oe(t)&&oe(e)?[...new Set([...t,...e])]:$e(Object.create(null),wi(t),wi(e??{})):e}function Ng(t,e){if(!t)return e;if(!e)return t;const n=$e(Object.create(null),t);for(const s in e)n[s]=et(t[s],e[s]);return n}function jd(){return{app:null,config:{isNativeTag:vm,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 Bg=0;function zg(t,e){return function(s,r=null){he(s)||(s=$e({},s)),r!=null&&!Ie(r)&&(r=null);const i=jd(),o=new WeakSet;let a=!1;const l=i.app={_uid:Bg++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:dv,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&he(u.install)?(o.add(u),u.install(l,...c)):he(u)&&(o.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,d){if(!a){const f=_(s,r);return f.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),c&&e?e(f,u):t(f,u,d),a=!0,l._container=u,u.__vue_app__=l,io(f.component)||f.component.proxy}},unmount(){a&&(t(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l},runWithContext(u){const c=sr;sr=l;try{return u()}finally{sr=c}}};return l}}let sr=null;function ut(t,e){if(We){let n=We.provides;const s=We.parent&&We.parent.provides;s===n&&(n=We.provides=Object.create(s)),n[t]=e}}function Oe(t,e,n=!1){const s=We||He;if(s||sr){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:sr._context.provides;if(r&&t in r)return r[t];if(arguments.length>1)return n&&he(e)?e.call(s&&s.proxy):e}}function Dg(t,e,n,s=!1){const r={},i={};pi(i,so,1),t.propsDefaults=Object.create(null),Wd(t,e,r,i);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);n?t.props=s?r:Km(r):t.type.props?t.props=r:t.props=i,t.attrs=i}function $g(t,e,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=t,a=pe(r),[l]=t.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(Qi(t.emitsOptions,f))continue;const h=e[f];if(l)if(_e(i,f))h!==i[f]&&(i[f]=h,u=!0);else{const g=bt(f);r[g]=fa(l,a,g,h,t,!1)}else h!==i[f]&&(i[f]=h,u=!0)}}}else{Wd(t,e,r,i)&&(u=!0);let c;for(const d in a)(!e||!_e(e,d)&&((c=rs(d))===d||!_e(e,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(r[d]=fa(l,a,d,void 0,t,!0)):delete r[d]);if(i!==a)for(const d in i)(!e||!_e(e,d))&&(delete i[d],u=!0)}u&&rn(t,"set","$attrs")}function Wd(t,e,n,s){const[r,i]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(er(l))continue;const u=e[l];let c;r&&_e(r,c=bt(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:Qi(t.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,o=!0)}if(i){const l=pe(n),u=a||Ae;for(let c=0;c<i.length;c++){const d=i[c];n[d]=fa(r,l,d,u[d],t,!_e(u,d))}}return o}function fa(t,e,n,s,r,i){const o=t[n];if(o!=null){const a=_e(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&he(l)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const c=Tr(r);s=u[n]=l.call(null,e),c()}}else s=l}o[0]&&(i&&!a?s=!1:o[1]&&(s===""||s===rs(n))&&(s=!0))}return s}function Gd(t,e,n=!1){const s=e.propsCache,r=s.get(t);if(r)return r;const i=t.props,o={},a=[];let l=!1;if(!he(t)){const c=d=>{l=!0;const[f,h]=Gd(d,e,!0);$e(o,f),h&&a.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return Ie(t)&&s.set(t,Ms),Ms;if(oe(i))for(let c=0;c<i.length;c++){const d=bt(i[c]);eu(d)&&(o[d]=Ae)}else if(i)for(const c in i){const d=bt(c);if(eu(d)){const f=i[c],h=o[d]=oe(f)||he(f)?{type:f}:$e({},f);if(h){const g=su(Boolean,h.type),p=su(String,h.type);h[0]=g>-1,h[1]=p<0||g<p,(g>-1||_e(h,"default"))&&a.push(d)}}}const u=[o,a];return Ie(t)&&s.set(t,u),u}function eu(t){return t[0]!=="$"&&!er(t)}function tu(t){return t===null?"null":typeof t=="function"?t.name||"":typeof t=="object"&&t.constructor&&t.constructor.name||""}function nu(t,e){return tu(t)===tu(e)}function su(t,e){return oe(e)?e.findIndex(n=>nu(n,t)):he(e)&&nu(e,t)?0:-1}const qd=t=>t[0]==="_"||t==="$stable",sl=t=>oe(t)?t.map(Ht):[Ht(t)],Hg=(t,e,n)=>{if(e._n)return e;const s=Y((...r)=>sl(e(...r)),n);return s._c=!1,s},Yd=(t,e,n)=>{const s=t._ctx;for(const r in t){if(qd(r))continue;const i=t[r];if(he(i))e[r]=Hg(r,i,s);else if(i!=null){const o=sl(i);e[r]=()=>o}}},Xd=(t,e)=>{const n=sl(e);t.slots.default=()=>n},Ug=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=pe(e),pi(e,"_",n)):Yd(e,t.slots={})}else t.slots={},e&&Xd(t,e);pi(t.slots,so,1)},jg=(t,e,n)=>{const{vnode:s,slots:r}=t;let i=!0,o=Ae;if(s.shapeFlag&32){const a=e._;a?n&&a===1?i=!1:($e(r,e),!n&&a===1&&delete r._):(i=!e.$stable,Yd(e,r)),o=e}else e&&(Xd(t,e),o={default:1});if(i)for(const a in r)!qd(a)&&o[a]==null&&delete r[a]};function ha(t,e,n,s,r=!1){if(oe(t)){t.forEach((f,h)=>ha(f,e&&(oe(e)?e[h]:e),n,s,r));return}if(tr(s)&&!r)return;const i=s.shapeFlag&4?io(s.component)||s.component.proxy:s.el,o=r?null:i,{i:a,r:l}=t,u=e&&e.r,c=a.refs===Ae?a.refs={}:a.refs,d=a.setupState;if(u!=null&&u!==l&&(Be(u)?(c[u]=null,_e(d,u)&&(d[u]=null)):Me(u)&&(u.value=null)),he(l))Rn(l,a,12,[o,c]);else{const f=Be(l),h=Me(l);if(f||h){const g=()=>{if(t.f){const p=f?_e(d,l)?d[l]:c[l]:l.value;r?oe(p)&&$a(p,i):oe(p)?p.includes(i)||p.push(i):f?(c[l]=[i],_e(d,l)&&(d[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else f?(c[l]=o,_e(d,l)&&(d[l]=o)):h&&(l.value=o,t.k&&(c[t.k]=o))};o?(g.id=-1,rt(g,n)):g()}}}const rt=yg;function Wg(t){return Gg(t)}function Gg(t,e){const n=rd();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:h=Ct,insertStaticContent:g}=t,p=(M,A,O,N=null,B=null,$=null,W=void 0,D=null,U=!!A.dynamicChildren)=>{if(M===A)return;M&&!Gn(M,A)&&(N=xe(M),ce(M,B,$,!0),M=null),A.patchFlag===-2&&(U=!1,A.dynamicChildren=null);const{type:z,ref:K,shapeFlag:re}=A;switch(z){case Er:v(M,A,O,N);break;case pt:S(M,A,O,N);break;case Io:M==null&&m(A,O,N,W);break;case Re:T(M,A,O,N,B,$,W,D,U);break;default:re&1?C(M,A,O,N,B,$,W,D,U):re&6?F(M,A,O,N,B,$,W,D,U):(re&64||re&128)&&z.process(M,A,O,N,B,$,W,D,U,wt)}K!=null&&B&&ha(K,M&&M.ref,$,A||M,!A)},v=(M,A,O,N)=>{if(M==null)s(A.el=a(A.children),O,N);else{const B=A.el=M.el;A.children!==M.children&&u(B,A.children)}},S=(M,A,O,N)=>{M==null?s(A.el=l(A.children||""),O,N):A.el=M.el},m=(M,A,O,N)=>{[M.el,M.anchor]=g(M.children,A,O,N,M.el,M.anchor)},y=({el:M,anchor:A},O,N)=>{let B;for(;M&&M!==A;)B=f(M),s(M,O,N),M=B;s(A,O,N)},x=({el:M,anchor:A})=>{let O;for(;M&&M!==A;)O=f(M),r(M),M=O;r(A)},C=(M,A,O,N,B,$,W,D,U)=>{A.type==="svg"?W="svg":A.type==="math"&&(W="mathml"),M==null?b(A,O,N,B,$,W,D,U):k(M,A,B,$,W,D,U)},b=(M,A,O,N,B,$,W,D)=>{let U,z;const{props:K,shapeFlag:re,transition:ee,dirs:de}=M;if(U=M.el=o(M.type,$,K&&K.is,K),re&8?c(U,M.children):re&16&&E(M.children,U,null,N,B,Ro(M,$),W,D),de&&Bn(M,null,N,"created"),w(U,M,M.scopeId,W,N),K){for(const Ee in K)Ee!=="value"&&!er(Ee)&&i(U,Ee,null,K[Ee],$,M.children,N,B,X);"value"in K&&i(U,"value",null,K.value,$),(z=K.onVnodeBeforeMount)&&$t(z,N,M)}de&&Bn(M,null,N,"beforeMount");const ve=qg(B,ee);ve&&ee.beforeEnter(U),s(U,A,O),((z=K&&K.onVnodeMounted)||ve||de)&&rt(()=>{z&&$t(z,N,M),ve&&ee.enter(U),de&&Bn(M,null,N,"mounted")},B)},w=(M,A,O,N,B)=>{if(O&&h(M,O),N)for(let $=0;$<N.length;$++)h(M,N[$]);if(B){let $=B.subTree;if(A===$){const W=B.vnode;w(M,W,W.scopeId,W.slotScopeIds,B.parent)}}},E=(M,A,O,N,B,$,W,D,U=0)=>{for(let z=U;z<M.length;z++){const K=M[z]=D?Mn(M[z]):Ht(M[z]);p(null,K,A,O,N,B,$,W,D)}},k=(M,A,O,N,B,$,W)=>{const D=A.el=M.el;let{patchFlag:U,dynamicChildren:z,dirs:K}=A;U|=M.patchFlag&16;const re=M.props||Ae,ee=A.props||Ae;let de;if(O&&zn(O,!1),(de=ee.onVnodeBeforeUpdate)&&$t(de,O,A,M),K&&Bn(A,M,O,"beforeUpdate"),O&&zn(O,!0),z?V(M.dynamicChildren,z,D,O,N,Ro(A,B),$):W||j(M,A,D,null,O,N,Ro(A,B),$,!1),U>0){if(U&16)I(D,A,re,ee,O,N,B);else if(U&2&&re.class!==ee.class&&i(D,"class",null,ee.class,B),U&4&&i(D,"style",re.style,ee.style,B),U&8){const ve=A.dynamicProps;for(let Ee=0;Ee<ve.length;Ee++){const Le=ve[Ee],je=re[Le],Vt=ee[Le];(Vt!==je||Le==="value")&&i(D,Le,je,Vt,B,M.children,O,N,X)}}U&1&&M.children!==A.children&&c(D,A.children)}else!W&&z==null&&I(D,A,re,ee,O,N,B);((de=ee.onVnodeUpdated)||K)&&rt(()=>{de&&$t(de,O,A,M),K&&Bn(A,M,O,"updated")},N)},V=(M,A,O,N,B,$,W)=>{for(let D=0;D<A.length;D++){const U=M[D],z=A[D],K=U.el&&(U.type===Re||!Gn(U,z)||U.shapeFlag&70)?d(U.el):O;p(U,z,K,null,N,B,$,W,!0)}},I=(M,A,O,N,B,$,W)=>{if(O!==N){if(O!==Ae)for(const D in O)!er(D)&&!(D in N)&&i(M,D,O[D],null,W,A.children,B,$,X);for(const D in N){if(er(D))continue;const U=N[D],z=O[D];U!==z&&D!=="value"&&i(M,D,z,U,W,A.children,B,$,X)}"value"in N&&i(M,"value",O.value,N.value,W)}},T=(M,A,O,N,B,$,W,D,U)=>{const z=A.el=M?M.el:a(""),K=A.anchor=M?M.anchor:a("");let{patchFlag:re,dynamicChildren:ee,slotScopeIds:de}=A;de&&(D=D?D.concat(de):de),M==null?(s(z,O,N),s(K,O,N),E(A.children||[],O,K,B,$,W,D,U)):re>0&&re&64&&ee&&M.dynamicChildren?(V(M.dynamicChildren,ee,O,B,$,W,D),(A.key!=null||B&&A===B.subTree)&&rl(M,A,!0)):j(M,A,O,K,B,$,W,D,U)},F=(M,A,O,N,B,$,W,D,U)=>{A.slotScopeIds=D,M==null?A.shapeFlag&512?B.ctx.activate(A,O,N,W,U):P(A,O,N,B,$,W,U):H(M,A,U)},P=(M,A,O,N,B,$,W)=>{const D=M.component=rv(M,N,B);if(Cr(M)&&(D.ctx.renderer=wt),iv(D),D.asyncDep){if(B&&B.registerDep(D,q),!M.el){const U=D.subTree=_(pt);S(null,U,A,O)}}else q(D,M,A,O,B,$,W)},H=(M,A,O)=>{const N=A.component=M.component;if(hg(M,A,O))if(N.asyncDep&&!N.asyncResolved){Z(N,A,O);return}else N.next=A,ag(N.update),N.effect.dirty=!0,N.update();else A.el=M.el,N.vnode=A},q=(M,A,O,N,B,$,W)=>{const D=()=>{if(M.isMounted){let{next:K,bu:re,u:ee,parent:de,vnode:ve}=M;{const hs=Zd(M);if(hs){K&&(K.el=ve.el,Z(M,K,W)),hs.asyncDep.then(()=>{M.isUnmounted||D()});return}}let Ee=K,Le;zn(M,!1),K?(K.el=ve.el,Z(M,K,W)):K=ve,re&&So(re),(Le=K.props&&K.props.onVnodeBeforeUpdate)&&$t(Le,de,K,ve),zn(M,!0);const je=Eo(M),Vt=M.subTree;M.subTree=je,p(Vt,je,d(Vt.el),xe(Vt),M,B,$),K.el=je.el,Ee===null&&mg(M,je.el),ee&&rt(ee,B),(Le=K.props&&K.props.onVnodeUpdated)&&rt(()=>$t(Le,de,K,ve),B)}else{let K;const{el:re,props:ee}=A,{bm:de,m:ve,parent:Ee}=M,Le=tr(A);if(zn(M,!1),de&&So(de),!Le&&(K=ee&&ee.onVnodeBeforeMount)&&$t(K,Ee,A),zn(M,!0),re&&Nn){const je=()=>{M.subTree=Eo(M),Nn(re,M.subTree,M,B,null)};Le?A.type.__asyncLoader().then(()=>!M.isUnmounted&&je()):je()}else{const je=M.subTree=Eo(M);p(null,je,O,N,M,B,$),A.el=je.el}if(ve&&rt(ve,B),!Le&&(K=ee&&ee.onVnodeMounted)){const je=A;rt(()=>$t(K,Ee,je),B)}(A.shapeFlag&256||Ee&&tr(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&M.a&&rt(M.a,B),M.isMounted=!0,A=O=N=null}},U=M.effect=new ja(D,Ct,()=>Ji(z),M.scope),z=M.update=()=>{U.dirty&&U.run()};z.id=M.uid,zn(M,!0),z()},Z=(M,A,O)=>{A.component=M;const N=M.vnode.props;M.vnode=A,M.next=null,$g(M,A.props,N,O),jg(M,A.children,O),is(),Gl(M),os()},j=(M,A,O,N,B,$,W,D,U=!1)=>{const z=M&&M.children,K=M?M.shapeFlag:0,re=A.children,{patchFlag:ee,shapeFlag:de}=A;if(ee>0){if(ee&128){Q(z,re,O,N,B,$,W,D,U);return}else if(ee&256){ae(z,re,O,N,B,$,W,D,U);return}}de&8?(K&16&&X(z,B,$),re!==z&&c(O,re)):K&16?de&16?Q(z,re,O,N,B,$,W,D,U):X(z,B,$,!0):(K&8&&c(O,""),de&16&&E(re,O,N,B,$,W,D,U))},ae=(M,A,O,N,B,$,W,D,U)=>{M=M||Ms,A=A||Ms;const z=M.length,K=A.length,re=Math.min(z,K);let ee;for(ee=0;ee<re;ee++){const de=A[ee]=U?Mn(A[ee]):Ht(A[ee]);p(M[ee],de,O,null,B,$,W,D,U)}z>K?X(M,B,$,!0,!1,re):E(A,O,N,B,$,W,D,U,re)},Q=(M,A,O,N,B,$,W,D,U)=>{let z=0;const K=A.length;let re=M.length-1,ee=K-1;for(;z<=re&&z<=ee;){const de=M[z],ve=A[z]=U?Mn(A[z]):Ht(A[z]);if(Gn(de,ve))p(de,ve,O,null,B,$,W,D,U);else break;z++}for(;z<=re&&z<=ee;){const de=M[re],ve=A[ee]=U?Mn(A[ee]):Ht(A[ee]);if(Gn(de,ve))p(de,ve,O,null,B,$,W,D,U);else break;re--,ee--}if(z>re){if(z<=ee){const de=ee+1,ve=de<K?A[de].el:N;for(;z<=ee;)p(null,A[z]=U?Mn(A[z]):Ht(A[z]),O,ve,B,$,W,D,U),z++}}else if(z>ee)for(;z<=re;)ce(M[z],B,$,!0),z++;else{const de=z,ve=z,Ee=new Map;for(z=ve;z<=ee;z++){const ft=A[z]=U?Mn(A[z]):Ht(A[z]);ft.key!=null&&Ee.set(ft.key,z)}let Le,je=0;const Vt=ee-ve+1;let hs=!1,Ll=0;const $s=new Array(Vt);for(z=0;z<Vt;z++)$s[z]=0;for(z=de;z<=re;z++){const ft=M[z];if(je>=Vt){ce(ft,B,$,!0);continue}let zt;if(ft.key!=null)zt=Ee.get(ft.key);else for(Le=ve;Le<=ee;Le++)if($s[Le-ve]===0&&Gn(ft,A[Le])){zt=Le;break}zt===void 0?ce(ft,B,$,!0):($s[zt-ve]=z+1,zt>=Ll?Ll=zt:hs=!0,p(ft,A[zt],O,null,B,$,W,D,U),je++)}const Pl=hs?Yg($s):Ms;for(Le=Pl.length-1,z=Vt-1;z>=0;z--){const ft=ve+z,zt=A[ft],Ol=ft+1<K?A[ft+1].el:N;$s[z]===0?p(null,zt,O,Ol,B,$,W,D,U):hs&&(Le<0||z!==Pl[Le]?se(zt,O,Ol,2):Le--)}}},se=(M,A,O,N,B=null)=>{const{el:$,type:W,transition:D,children:U,shapeFlag:z}=M;if(z&6){se(M.component.subTree,A,O,N);return}if(z&128){M.suspense.move(A,O,N);return}if(z&64){W.move(M,A,O,wt);return}if(W===Re){s($,A,O);for(let re=0;re<U.length;re++)se(U[re],A,O,N);s(M.anchor,A,O);return}if(W===Io){y(M,A,O);return}if(N!==2&&z&1&&D)if(N===0)D.beforeEnter($),s($,A,O),rt(()=>D.enter($),B);else{const{leave:re,delayLeave:ee,afterLeave:de}=D,ve=()=>s($,A,O),Ee=()=>{re($,()=>{ve(),de&&de()})};ee?ee($,ve,Ee):Ee()}else s($,A,O)},ce=(M,A,O,N=!1,B=!1)=>{const{type:$,props:W,ref:D,children:U,dynamicChildren:z,shapeFlag:K,patchFlag:re,dirs:ee}=M;if(D!=null&&ha(D,null,O,M,!0),K&256){A.ctx.deactivate(M);return}const de=K&1&&ee,ve=!tr(M);let Ee;if(ve&&(Ee=W&&W.onVnodeBeforeUnmount)&&$t(Ee,A,M),K&6)Ve(M.component,O,N);else{if(K&128){M.suspense.unmount(O,N);return}de&&Bn(M,null,A,"beforeUnmount"),K&64?M.type.remove(M,A,O,B,wt,N):z&&($!==Re||re>0&&re&64)?X(z,A,O,!1,!0):($===Re&&re&384||!B&&K&16)&&X(U,A,O),N&&Te(M)}(ve&&(Ee=W&&W.onVnodeUnmounted)||de)&&rt(()=>{Ee&&$t(Ee,A,M),de&&Bn(M,null,A,"unmounted")},O)},Te=M=>{const{type:A,el:O,anchor:N,transition:B}=M;if(A===Re){ge(O,N);return}if(A===Io){x(M);return}const $=()=>{r(O),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(M.shapeFlag&1&&B&&!B.persisted){const{leave:W,delayLeave:D}=B,U=()=>W(O,$);D?D(M.el,$,U):U()}else $()},ge=(M,A)=>{let O;for(;M!==A;)O=f(M),r(M),M=O;r(A)},Ve=(M,A,O)=>{const{bum:N,scope:B,update:$,subTree:W,um:D}=M;N&&So(N),B.stop(),$&&($.active=!1,ce(W,M,A,O)),D&&rt(D,A),rt(()=>{M.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&M.asyncDep&&!M.asyncResolved&&M.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},X=(M,A,O,N=!1,B=!1,$=0)=>{for(let W=$;W<M.length;W++)ce(M[W],A,O,N,B)},xe=M=>M.shapeFlag&6?xe(M.component.subTree):M.shapeFlag&128?M.suspense.next():f(M.anchor||M.el);let gn=!1;const ke=(M,A,O)=>{M==null?A._vnode&&ce(A._vnode,null,null,!0):p(A._vnode||null,M,A,null,null,null,O),gn||(gn=!0,Gl(),Td(),gn=!1),A._vnode=M},wt={p,um:ce,m:se,r:Te,mt:P,mc:E,pc:j,pbc:V,n:xe,o:t};let Qe,Nn;return e&&([Qe,Nn]=e(wt)),{render:ke,hydrate:Qe,createApp:zg(ke,Qe)}}function Ro({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function zn({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function qg(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function rl(t,e,n=!1){const s=t.children,r=e.children;if(oe(s)&&oe(r))for(let i=0;i<s.length;i++){const o=s[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=Mn(r[i]),a.el=o.el),n||rl(o,a)),a.type===Er&&(a.el=o.el)}}function Yg(t){const e=t.slice(),n=[0];let s,r,i,o,a;const l=t.length;for(s=0;s<l;s++){const u=t[s];if(u!==0){if(r=n[n.length-1],t[r]<u){e[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,t[n[a]]<u?i=a+1:o=a;u<t[n[i]]&&(i>0&&(e[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}function Zd(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Zd(e)}const Xg=t=>t.__isTeleport,rr=t=>t&&(t.disabled||t.disabled===""),ru=t=>typeof SVGElement<"u"&&t instanceof SVGElement,iu=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,ma=(t,e)=>{const n=t&&t.to;return Be(n)?e?e(n):null:n},Zg={name:"Teleport",__isTeleport:!0,process(t,e,n,s,r,i,o,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:h,querySelector:g,createText:p,createComment:v}}=u,S=rr(e.props);let{shapeFlag:m,children:y,dynamicChildren:x}=e;if(t==null){const C=e.el=p(""),b=e.anchor=p("");h(C,n,s),h(b,n,s);const w=e.target=ma(e.props,g),E=e.targetAnchor=p("");w&&(h(E,w),o==="svg"||ru(w)?o="svg":(o==="mathml"||iu(w))&&(o="mathml"));const k=(V,I)=>{m&16&&c(y,V,I,r,i,o,a,l)};S?k(n,b):w&&k(w,E)}else{e.el=t.el;const C=e.anchor=t.anchor,b=e.target=t.target,w=e.targetAnchor=t.targetAnchor,E=rr(t.props),k=E?n:b,V=E?C:w;if(o==="svg"||ru(b)?o="svg":(o==="mathml"||iu(b))&&(o="mathml"),x?(f(t.dynamicChildren,x,k,r,i,o,a),rl(t,e,!0)):l||d(t,e,k,V,r,i,o,a,!1),S)E?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Hr(e,n,C,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const I=e.target=ma(e.props,g);I&&Hr(e,I,null,u,0)}else E&&Hr(e,b,w,u,1)}Kd(e)},remove(t,e,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:d,props:f}=t;if(d&&i(c),o&&i(u),a&16){const h=o||!rr(f);for(let g=0;g<l.length;g++){const p=l[g];r(p,e,n,h,!!p.dynamicChildren)}}},move:Hr,hydrate:Kg};function Hr(t,e,n,{o:{insert:s},m:r},i=2){i===0&&s(t.targetAnchor,e,n);const{el:o,anchor:a,shapeFlag:l,children:u,props:c}=t,d=i===2;if(d&&s(o,e,n),(!d||rr(c))&&l&16)for(let f=0;f<u.length;f++)r(u[f],e,n,2);d&&s(a,e,n)}function Kg(t,e,n,s,r,i,{o:{nextSibling:o,parentNode:a,querySelector:l}},u){const c=e.target=ma(e.props,l);if(c){const d=c._lpa||c.firstChild;if(e.shapeFlag&16)if(rr(e.props))e.anchor=u(o(t),e,a(t),n,s,r,i),e.targetAnchor=d;else{e.anchor=o(t);let f=d;for(;f;)if(f=o(f),f&&f.nodeType===8&&f.data==="teleport anchor"){e.targetAnchor=f,c._lpa=e.targetAnchor&&o(e.targetAnchor);break}u(d,e,c,n,s,r,i)}Kd(e)}return e.anchor&&o(e.anchor)}const Jg=Zg;function Kd(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const Re=Symbol.for("v-fgt"),Er=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),Io=Symbol.for("v-stc"),ir=[];let Bt=null;function at(t=!1){ir.push(Bt=t?null:[])}function Qg(){ir.pop(),Bt=ir[ir.length-1]||null}let gr=1;function ou(t){gr+=t}function Jd(t){return t.dynamicChildren=gr>0?Bt||Ms:null,Qg(),gr>0&&Bt&&Bt.push(t),t}function Mr(t,e,n,s,r,i){return Jd(Wt(t,e,n,s,r,i,!0))}function ln(t,e,n,s,r){return Jd(_(t,e,n,s,r,!0))}function vr(t){return t?t.__v_isVNode===!0:!1}function Gn(t,e){return t.type===e.type&&t.key===e.key}const so="__vInternal",Qd=({key:t})=>t??null,ci=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Be(t)||Me(t)||he(t)?{i:He,r:t,k:e,f:!!n}:t:null);function Wt(t,e=null,n=null,s=0,r=null,i=t===Re?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Qd(e),ref:e&&ci(e),scopeId:Id,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:He};return a?(il(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=Be(n)?8:16),gr>0&&!o&&Bt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Bt.push(l),l}const _=ev;function ev(t,e=null,n=null,s=0,r=null,i=!1){if((!t||t===Fd)&&(t=pt),vr(t)){const a=Vn(t,e,!0);return n&&il(a,n),gr>0&&!i&&Bt&&(a.shapeFlag&6?Bt[Bt.indexOf(t)]=a:Bt.push(a)),a.patchFlag|=-2,a}if(cv(t)&&(t=t.__vccOpts),e){e=tv(e);let{class:a,style:l}=e;a&&!Be(a)&&(e.class=Zi(a)),Ie(l)&&(bd(l)&&!oe(l)&&(l=$e({},l)),e.style=Xi(l))}const o=Be(t)?1:pg(t)?128:Xg(t)?64:Ie(t)?4:he(t)?2:0;return Wt(t,e,n,s,r,o,i,!0)}function tv(t){return t?bd(t)||so in t?$e({},t):t:null}function Vn(t,e,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=t,a=e?Pe(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Qd(a),ref:e&&e.ref?n&&r?oe(r)?r.concat(ci(e)):[r,ci(e)]:ci(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Re?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Vn(t.ssContent),ssFallback:t.ssFallback&&Vn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Fe(t=" ",e=0){return _(Er,null,t,e)}function ga(t="",e=!1){return e?(at(),ln(pt,null,t)):_(pt,null,t)}function Ht(t){return t==null||typeof t=="boolean"?_(pt):oe(t)?_(Re,null,t.slice()):typeof t=="object"?Mn(t):_(Er,null,String(t))}function Mn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Vn(t)}function il(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(oe(e))n=16;else if(typeof e=="object")if(s&65){const r=e.default;r&&(r._c&&(r._d=!1),il(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!(so in e)?e._ctx=He:r===3&&He&&(He.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else he(e)?(e={default:e,_ctx:He},n=32):(e=String(e),s&64?(n=16,e=[Fe(e)]):n=8);t.children=e,t.shapeFlag|=n}function Pe(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const r in s)if(r==="class")e.class!==s.class&&(e.class=Zi([e.class,s.class]));else if(r==="style")e.style=Xi([e.style,s.style]);else if(Gi(r)){const i=e[r],o=s[r];o&&i!==o&&!(oe(i)&&i.includes(o))&&(e[r]=i?[].concat(i,o):o)}else r!==""&&(e[r]=s[r])}return e}function $t(t,e,n,s=null){Mt(t,e,7,[n,s])}const nv=jd();let sv=0;function rv(t,e,n){const s=t.type,r=(e?e.appContext:t.appContext)||nv,i={uid:sv++,vnode:t,type:s,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ad(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Gd(s,r),emitsOptions:Rd(s,r),emit:null,emitted:null,propsDefaults:Ae,inheritAttrs:s.inheritAttrs,ctx:Ae,data:Ae,props:Ae,attrs:Ae,slots:Ae,refs:Ae,setupState:Ae,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=cg.bind(null,i),t.ce&&t.ce(i),i}let We=null;const ro=()=>We||He;let Si,va;{const t=rd(),e=(n,s)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Si=e("__VUE_INSTANCE_SETTERS__",n=>We=n),va=e("__VUE_SSR_SETTERS__",n=>Ar=n)}const Tr=t=>{const e=We;return Si(t),t.scope.on(),()=>{t.scope.off(),Si(e)}},au=()=>{We&&We.scope.off(),Si(null)};function ef(t){return t.vnode.shapeFlag&4}let Ar=!1;function iv(t,e=!1){e&&va(e);const{props:n,children:s}=t.vnode,r=ef(t);Dg(t,n,r,e),Ug(t,s);const i=r?ov(t,e):void 0;return e&&va(!1),i}function ov(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=xd(new Proxy(t.ctx,Fg));const{setup:s}=n;if(s){const r=t.setupContext=s.length>1?lv(t):null,i=Tr(t);is();const o=Rn(s,t,0,[t.props,r]);if(os(),i(),td(o)){if(o.then(au,au),e)return o.then(a=>{lu(t,a,e)}).catch(a=>{Sr(a,t,0)});t.asyncDep=o}else lu(t,o,e)}else tf(t,e)}function lu(t,e,n){he(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ie(e)&&(t.setupState=Sd(e)),tf(t,n)}let uu;function tf(t,e,n){const s=t.type;if(!t.render){if(!e&&uu&&!s.render){const r=s.template||nl(t).template;if(r){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=s,u=$e($e({isCustomElement:i,delimiters:a},o),l);s.render=uu(r,u)}}t.render=s.render||Ct}{const r=Tr(t);is();try{Vg(t)}finally{os(),r()}}}function av(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return lt(t,"get","$attrs"),e[n]}}))}function lv(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return av(t)},slots:t.slots,emit:t.emit,expose:e}}function io(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Sd(xd(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in nr)return nr[n](t)},has(e,n){return n in e||n in nr}}))}function uv(t,e=!0){return he(t)?t.displayName||t.name:t.name||e&&t.__name}function cv(t){return he(t)&&"__vccOpts"in t}const R=(t,e)=>Jm(t,e,Ar);function cu(t,e,n=Ae){const s=ro(),r=bt(e),i=rs(e),o=ng((l,u)=>{let c;return wg(()=>{const d=t[e];Gt(c,d)&&(c=d,u())}),{get(){return l(),n.get?n.get(c):c},set(d){const f=s.vnode.props;!(f&&(e in f||r in f||i in f)&&(`onUpdate:${e}`in f||`onUpdate:${r}`in f||`onUpdate:${i}`in f))&&Gt(d,c)&&(c=d,u()),s.emit(`update:${e}`,n.set?n.set(d):d)}}}),a=e==="modelValue"?"modelModifiers":`${e}Modifiers`;return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?t[a]||{}:o,done:!1}:{done:!0}}}},o}function On(t,e,n){const s=arguments.length;return s===2?Ie(e)&&!oe(e)?vr(e)?_(t,null,[e]):_(t,e):_(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&vr(n)&&(n=[n]),_(t,e,n))}const dv="3.4.21";/**
* @vue/runtime-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const fv="http://www.w3.org/2000/svg",hv="http://www.w3.org/1998/Math/MathML",Tn=typeof document<"u"?document:null,du=Tn&&Tn.createElement("template"),mv={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const r=e==="svg"?Tn.createElementNS(fv,t):e==="mathml"?Tn.createElementNS(hv,t):Tn.createElement(t,n?{is:n}:void 0);return t==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:t=>Tn.createTextNode(t),createComment:t=>Tn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Tn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,r,i){const o=n?n.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{du.innerHTML=s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t;const a=du.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},pn="transition",Hs="animation",Vs=Symbol("_vtc"),Yt=(t,{slots:e})=>On(Cg,sf(t),e);Yt.displayName="Transition";const nf={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},gv=Yt.props=$e({},Od,nf),Dn=(t,e=[])=>{oe(t)?t.forEach(n=>n(...e)):t&&t(...e)},fu=t=>t?oe(t)?t.some(e=>e.length>1):t.length>1:!1;function sf(t){const e={};for(const T in t)T in nf||(e[T]=t[T]);if(t.css===!1)return e;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,g=vv(r),p=g&&g[0],v=g&&g[1],{onBeforeEnter:S,onEnter:m,onEnterCancelled:y,onLeave:x,onLeaveCancelled:C,onBeforeAppear:b=S,onAppear:w=m,onAppearCancelled:E=y}=e,k=(T,F,P)=>{_n(T,F?c:a),_n(T,F?u:o),P&&P()},V=(T,F)=>{T._isLeaving=!1,_n(T,d),_n(T,h),_n(T,f),F&&F()},I=T=>(F,P)=>{const H=T?w:m,q=()=>k(F,T,P);Dn(H,[F,q]),hu(()=>{_n(F,T?l:i),nn(F,T?c:a),fu(H)||mu(F,s,p,q)})};return $e(e,{onBeforeEnter(T){Dn(S,[T]),nn(T,i),nn(T,o)},onBeforeAppear(T){Dn(b,[T]),nn(T,l),nn(T,u)},onEnter:I(!1),onAppear:I(!0),onLeave(T,F){T._isLeaving=!0;const P=()=>V(T,F);nn(T,d),of(),nn(T,f),hu(()=>{T._isLeaving&&(_n(T,d),nn(T,h),fu(x)||mu(T,s,v,P))}),Dn(x,[T,P])},onEnterCancelled(T){k(T,!1),Dn(y,[T])},onAppearCancelled(T){k(T,!0),Dn(E,[T])},onLeaveCancelled(T){V(T),Dn(C,[T])}})}function vv(t){if(t==null)return null;if(Ie(t))return[ko(t.enter),ko(t.leave)];{const e=ko(t);return[e,e]}}function ko(t){return _m(t)}function nn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Vs]||(t[Vs]=new Set)).add(e)}function _n(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[Vs];n&&(n.delete(e),n.size||(t[Vs]=void 0))}function hu(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let pv=0;function mu(t,e,n,s){const r=t._endId=++pv,i=()=>{r===t._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=rf(t,e);if(!o)return s();const u=o+"end";let c=0;const d=()=>{t.removeEventListener(u,f),i()},f=h=>{h.target===t&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),t.addEventListener(u,f)}function rf(t,e){const n=window.getComputedStyle(t),s=g=>(n[g]||"").split(", "),r=s(`${pn}Delay`),i=s(`${pn}Duration`),o=gu(r,i),a=s(`${Hs}Delay`),l=s(`${Hs}Duration`),u=gu(a,l);let c=null,d=0,f=0;e===pn?o>0&&(c=pn,d=o,f=i.length):e===Hs?u>0&&(c=Hs,d=u,f=l.length):(d=Math.max(o,u),c=d>0?o>u?pn:Hs:null,f=c?c===pn?i.length:l.length:0);const h=c===pn&&/\b(transform|all)(,|$)/.test(s(`${pn}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:h}}function gu(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,s)=>vu(n)+vu(t[s])))}function vu(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function of(){return document.body.offsetHeight}function yv(t,e,n){const s=t[Vs];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Ci=Symbol("_vod"),af=Symbol("_vsh"),oo={beforeMount(t,{value:e},{transition:n}){t[Ci]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Us(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:s}){!e!=!n&&(s?e?(s.beforeEnter(t),Us(t,!0),s.enter(t)):s.leave(t,()=>{Us(t,!1)}):Us(t,e))},beforeUnmount(t,{value:e}){Us(t,e)}};function Us(t,e){t.style.display=e?t[Ci]:"none",t[af]=!e}const bv=Symbol(""),xv=/(^|;)\s*display\s*:/;function wv(t,e,n){const s=t.style,r=Be(n);let i=!1;if(n&&!r){if(e)if(Be(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&di(s,a,"")}else for(const o in e)n[o]==null&&di(s,o,"");for(const o in n)o==="display"&&(i=!0),di(s,o,n[o])}else if(r){if(e!==n){const o=s[bv];o&&(n+=";"+o),s.cssText=n,i=xv.test(n)}}else e&&t.removeAttribute("style");Ci in t&&(t[Ci]=i?s.display:"",t[af]&&(s.display="none"))}const pu=/\s*!important$/;function di(t,e,n){if(oe(n))n.forEach(s=>di(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=_v(t,e);pu.test(n)?t.setProperty(rs(s),n.replace(pu,""),"important"):t[s]=n}}const yu=["Webkit","Moz","ms"],Fo={};function _v(t,e){const n=Fo[e];if(n)return n;let s=bt(e);if(s!=="filter"&&s in t)return Fo[e]=s;s=cn(s);for(let r=0;r<yu.length;r++){const i=yu[r]+s;if(i in t)return Fo[e]=i}return e}const bu="http://www.w3.org/1999/xlink";function Sv(t,e,n,s,r){if(s&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(bu,e.slice(6,e.length)):t.setAttributeNS(bu,e,n);else{const i=Am(e);n==null||i&&!id(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function Cv(t,e,n,s,r,i,o){if(e==="innerHTML"||e==="textContent"){s&&o(s,r,i),t[e]=n??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const u=a==="OPTION"?t.getAttribute("value")||"":t.value,c=n??"";(u!==c||!("_value"in t))&&(t.value=c),n==null&&t.removeAttribute(e),t._value=n;return}let l=!1;if(n===""||n==null){const u=typeof t[e];u==="boolean"?n=id(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function Ev(t,e,n,s){t.addEventListener(e,n,s)}function Mv(t,e,n,s){t.removeEventListener(e,n,s)}const xu=Symbol("_vei");function Tv(t,e,n,s,r=null){const i=t[xu]||(t[xu]={}),o=i[e];if(s&&o)o.value=s;else{const[a,l]=Av(e);if(s){const u=i[e]=kv(s,r);Ev(t,a,u,l)}else o&&(Mv(t,a,o,l),i[e]=void 0)}}const wu=/(?:Once|Passive|Capture)$/;function Av(t){let e;if(wu.test(t)){e={};let s;for(;s=t.match(wu);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):rs(t.slice(2)),e]}let Vo=0;const Rv=Promise.resolve(),Iv=()=>Vo||(Rv.then(()=>Vo=0),Vo=Date.now());function kv(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Mt(Fv(s,n.value),e,5,[s])};return n.value=t,n.attached=Iv(),n}function Fv(t,e){if(oe(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>r=>!r._stopped&&s&&s(r))}else return e}const _u=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Vv=(t,e,n,s,r,i,o,a,l)=>{const u=r==="svg";e==="class"?yv(t,s,u):e==="style"?wv(t,n,s):Gi(e)?Da(e)||Tv(t,e,n,s,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Lv(t,e,s,u))?Cv(t,e,s,i,o,a,l):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),Sv(t,e,s,u))};function Lv(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&_u(e)&&he(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return _u(e)&&Be(n)?!1:e in t}const lf=new WeakMap,uf=new WeakMap,Ei=Symbol("_moveCb"),Su=Symbol("_enterCb"),cf={name:"TransitionGroup",props:$e({},gv,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=ro(),s=Pd();let r,i;return tl(()=>{if(!r.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!zv(r[0].el,n.vnode.el,o))return;r.forEach(Ov),r.forEach(Nv);const a=r.filter(Bv);of(),a.forEach(l=>{const u=l.el,c=u.style;nn(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Ei]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u[Ei]=null,_n(u,o))};u.addEventListener("transitionend",d)})}),()=>{const o=pe(t),a=sf(o);let l=o.tag||Re;r=i,i=e.default?el(e.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&mr(c,hr(c,a,s,n))}if(r)for(let u=0;u<r.length;u++){const c=r[u];mr(c,hr(c,a,s,n)),lf.set(c,c.el.getBoundingClientRect())}return _(l,null,i)}}},Pv=t=>delete t.mode;cf.props;const df=cf;function Ov(t){const e=t.el;e[Ei]&&e[Ei](),e[Su]&&e[Su]()}function Nv(t){uf.set(t,t.el.getBoundingClientRect())}function Bv(t){const e=lf.get(t),n=uf.get(t),s=e.left-n.left,r=e.top-n.top;if(s||r){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",t}}function zv(t,e,n){const s=t.cloneNode(),r=t[Vs];r&&r.forEach(a=>{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(s);const{hasTransform:o}=rf(s);return i.removeChild(s),o}const Dv=["ctrl","shift","alt","meta"],$v={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Dv.some(n=>t[`${n}Key`]&&!e.includes(n))},Cu=(t,e)=>{const n=t._withMods||(t._withMods={}),s=e.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<e.length;o++){const a=$v[e[o]];if(a&&a(r,e))return}return t(r,...i)})},Hv=$e({patchProp:Vv},mv);let Eu;function Uv(){return Eu||(Eu=Wg(Hv))}const jv=(...t)=>{const e=Uv().createApp(...t),{mount:n}=e;return e.mount=s=>{const r=Gv(s);if(!r)return;const i=e._component;!he(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,Wv(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e};function Wv(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Gv(t){return Be(t)?document.querySelector(t):t}const qv="modulepreload",Yv=function(t,e){return new URL(t,e).href},Mu={},Ls=function(e,n,s){let r=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=Yv(l,s),l in Mu)return;Mu[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!s)for(let h=i.length-1;h>=0;h--){const g=i[h];if(g.href===l&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":qv,u||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((h,g)=>{f.addEventListener("load",h),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};function G(t,e){return n=>Object.keys(t).reduce((s,r)=>{const o=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return n&&r in n?s[r]={...o,default:n[r]}:s[r]=o,e&&!s[r].source&&(s[r].source=e),s},{})}const we=G({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),Ne=typeof window<"u",ol=Ne&&"IntersectionObserver"in window,Xv=Ne&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function Tu(t,e,n){Zv(t,e),e.set(t,n)}function Zv(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kv(t,e,n){var s=ff(t,e,"set");return Jv(t,s,n),n}function Jv(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function $n(t,e){var n=ff(t,e,"get");return Qv(t,n)}function ff(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function Qv(t,e){return e.get?e.get.call(t):e.value}function hf(t,e,n){const s=e.length-1;if(s<0)return t===void 0?n:t;for(let r=0;r<s;r++){if(t==null)return n;t=t[e[r]]}return t==null||t[e[s]]===void 0?n:t[e[s]]}function ao(t,e){if(t===e)return!0;if(t instanceof Date&&e instanceof Date&&t.getTime()!==e.getTime()||t!==Object(t)||e!==Object(e))return!1;const n=Object.keys(t);return n.length!==Object.keys(e).length?!1:n.every(s=>ao(t[s],e[s]))}function pa(t,e,n){return t==null||!e||typeof e!="string"?n:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),hf(t,e.split("."),n))}function Rw(t,e,n){if(e===!0)return t===void 0?n:t;if(e==null||typeof e=="boolean")return n;if(t!==Object(t)){if(typeof e!="function")return n;const r=e(t,n);return typeof r>"u"?n:r}if(typeof e=="string")return pa(t,e,n);if(Array.isArray(e))return hf(t,e,n);if(typeof e!="function")return n;const s=e(t,n);return typeof s>"u"?n:s}function al(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(n,s)=>e+s)}function ie(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function ya(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Mi(t){if(t&&"$el"in t){const e=t.$el;return(e==null?void 0:e.nodeType)===Node.TEXT_NODE?e.nextElementSibling:e}return t}const Au=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),ep=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function mf(t){return Object.keys(t)}function Lo(t,e){return e.every(n=>t.hasOwnProperty(n))}function tp(t,e){const n={},s=new Set(Object.keys(t));for(const r of e)s.has(r)&&(n[r]=t[r]);return n}function Ru(t,e,n){const s=Object.create(null),r=Object.create(null);for(const i in t)e.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(n!=null&&n.some(o=>o===i))?s[i]=t[i]:r[i]=t[i];return[s,r]}function ll(t,e){const n={...t};return e.forEach(s=>delete n[s]),n}const gf=/^on[^a-z]/,vf=t=>gf.test(t),np=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function sp(t){const[e,n]=Ru(t,[gf]),s=ll(e,np),[r,i]=Ru(n,["class","style","id",/^data-/]);return Object.assign(r,e),Object.assign(i,s),[r,i]}function In(t){return t==null?[]:Array.isArray(t)?t:[t]}function Iw(t,e){let n=0;const s=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout(()=>t(...i),L(e))};return s.clear=()=>{clearTimeout(n)},s.immediate=t,s}function pr(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(n,t))}function Iu(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function ku(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+n.repeat(Math.max(0,e-t.length))}function Fu(t,e){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,e-t.length))+t}function rp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let s=0;for(;s<t.length;)n.push(t.substr(s,e)),s+=e;return n}function vt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const s={};for(const r in t)s[r]=t[r];for(const r in e){const i=t[r],o=e[r];if(ya(i)&&ya(o)){s[r]=vt(i,o,n);continue}if(Array.isArray(i)&&Array.isArray(o)&&n){s[r]=n(i,o);continue}s[r]=o}return s}function pf(t){return t.map(e=>e.type===Re?pf(e.children):e).flat()}function Kn(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Kn.cache.has(t))return Kn.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Kn.cache.set(t,e),e}Kn.cache=new Map;function or(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(n=>or(t,n)).flat(1);if(Array.isArray(e.children))return e.children.map(n=>or(t,n)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return or(t,e.component.subTree).flat(1)}return[]}var Ur=new WeakMap,ms=new WeakMap;class ip{constructor(e){Tu(this,Ur,{writable:!0,value:[]}),Tu(this,ms,{writable:!0,value:0}),this.size=e}push(e){$n(this,Ur)[$n(this,ms)]=e,Kv(this,ms,($n(this,ms)+1)%this.size)}values(){return $n(this,Ur).slice($n(this,ms)).concat($n(this,Ur).slice(0,$n(this,ms)))}}function ul(t){const e=tt({}),n=R(t);return Pn(()=>{for(const s in n.value)e[s]=n.value[s]},{flush:"sync"}),Ja(e)}function Ti(t,e){return t.includes(e)}function yf(t){return t[2].toLowerCase()+t.slice(3)}const Ai=()=>[Function,Array];function Vu(t,e){return e="on"+cn(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function kw(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];if(Array.isArray(t))for(const r of t)r(...n);else typeof t=="function"&&t(...n)}function bf(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(s=>`${s}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(n)]}function op(t,e,n){let s,r=t.indexOf(document.activeElement);const i=e==="next"?1:-1;do r+=i,s=t[r];while((!s||s.offsetParent==null||!((n==null?void 0:n(s))??!0))&&r<t.length&&r>=0);return s}function ap(t,e){var s,r,i,o;const n=bf(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((s=n[0])==null||s.focus());else if(e==="first")(r=n[0])==null||r.focus();else if(e==="last")(i=n.at(-1))==null||i.focus();else if(typeof e=="number")(o=n[e])==null||o.focus();else{const a=op(n,e);a?a.focus():ap(t,e==="next"?"first":"last")}}function xf(t,e){if(!(Ne&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}function lp(t){return t.some(e=>vr(e)?e.type===pt?!1:e.type!==Re||lp(e.children):!0)?t:null}function up(t,e){if(!Ne||t===0)return e(),()=>{};const n=window.setTimeout(e,t);return()=>window.clearTimeout(n)}function Fw(t,e){const n=t.clientX,s=t.clientY,r=e.getBoundingClientRect(),i=r.left,o=r.top,a=r.right,l=r.bottom;return n>=i&&n<=a&&s>=o&&s<=l}const wf=["top","bottom"],cp=["start","end","left","right"];function ba(t,e){let[n,s]=t.split(" ");return s||(s=Ti(wf,n)?"start":Ti(cp,n)?"top":"center"),{side:xa(n,e),align:xa(s,e)}}function xa(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function Po(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function Oo(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function Lu(t){return{side:t.align,align:t.side}}function Pu(t){return Ti(wf,t.side)?"y":"x"}class Jn{constructor(e){let{x:n,y:s,width:r,height:i}=e;this.x=n,this.y=s,this.width=r,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Ou(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function _f(t){return Array.isArray(t)?new Jn({x:t[0],y:t[1],width:0,height:0}):t.getBoundingClientRect()}function Sf(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t),s=n.transform;if(s){let r,i,o,a,l;if(s.startsWith("matrix3d("))r=s.slice(9,-1).split(/, /),i=+r[0],o=+r[5],a=+r[12],l=+r[13];else if(s.startsWith("matrix("))r=s.slice(7,-1).split(/, /),i=+r[0],o=+r[3],a=+r[4],l=+r[5];else return new Jn(e);const u=n.transformOrigin,c=e.x-a-(1-i)*parseFloat(u),d=e.y-l-(1-o)*parseFloat(u.slice(u.indexOf(" ")+1)),f=i?e.width/i:t.offsetWidth+1,h=o?e.height/o:t.offsetHeight+1;return new Jn({x:c,y:d,width:f,height:h})}else return new Jn(e)}function Zs(t,e,n){if(typeof t.animate>"u")return{finished:Promise.resolve()};let s;try{s=t.animate(e,n)}catch{return{finished:Promise.resolve()}}return typeof s.finished>"u"&&(s.finished=new Promise(r=>{s.onfinish=()=>{r(s)}})),s}const fi=new WeakMap;function dp(t,e){Object.keys(e).forEach(n=>{if(vf(n)){const s=yf(n),r=fi.get(t);if(e[n]==null)r==null||r.forEach(i=>{const[o,a]=i;o===s&&(t.removeEventListener(s,a),r.delete(i))});else if(!r||![...r].some(i=>i[0]===s&&i[1]===e[n])){t.addEventListener(s,e[n]);const i=r||new Set;i.add([s,e[n]]),fi.has(t)||fi.set(t,i)}}else e[n]==null?t.removeAttribute(n):t.setAttribute(n,e[n])})}function fp(t,e){Object.keys(e).forEach(n=>{if(vf(n)){const s=yf(n),r=fi.get(t);r==null||r.forEach(i=>{const[o,a]=i;o===s&&(t.removeEventListener(s,a),r.delete(i))})}else t.removeAttribute(n)})}const gs=2.4,Nu=.2126729,Bu=.7151522,zu=.072175,hp=.55,mp=.58,gp=.57,vp=.62,jr=.03,Du=1.45,pp=5e-4,yp=1.25,bp=1.25,$u=.078,Hu=12.82051282051282,Wr=.06,Uu=.001;function ju(t,e){const n=(t.r/255)**gs,s=(t.g/255)**gs,r=(t.b/255)**gs,i=(e.r/255)**gs,o=(e.g/255)**gs,a=(e.b/255)**gs;let l=n*Nu+s*Bu+r*zu,u=i*Nu+o*Bu+a*zu;if(l<=jr&&(l+=(jr-l)**Du),u<=jr&&(u+=(jr-u)**Du),Math.abs(u-l)<pp)return 0;let c;if(u>l){const d=(u**hp-l**mp)*yp;c=d<Uu?0:d<$u?d-d*Hu*Wr:d-Wr}else{const d=(u**vp-l**gp)*bp;c=d>-Uu?0:d>-$u?d-d*Hu*Wr:d+Wr}return c*100}function Vw(t,e){e=Array.isArray(e)?e.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const Ri=.20689655172413793,xp=t=>t>Ri**3?Math.cbrt(t):t/(3*Ri**2)+4/29,wp=t=>t>Ri?t**3:3*Ri**2*(t-4/29);function Cf(t){const e=xp,n=e(t[1]);return[116*n-16,500*(e(t[0]/.95047)-n),200*(n-e(t[2]/1.08883))]}function Ef(t){const e=wp,n=(t[0]+16)/116;return[e(n+t[1]/500)*.95047,e(n),e(n-t[2]/200)*1.08883]}const _p=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Sp=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,Cp=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Ep=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function Mf(t){const e=Array(3),n=Sp,s=_p;for(let r=0;r<3;++r)e[r]=Math.round(pr(n(s[r][0]*t[0]+s[r][1]*t[1]+s[r][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function cl(t){let{r:e,g:n,b:s}=t;const r=[0,0,0],i=Ep,o=Cp;e=i(e/255),n=i(n/255),s=i(s/255);for(let a=0;a<3;++a)r[a]=o[a][0]*e+o[a][1]*n+o[a][2]*s;return r}function wa(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function Mp(t){return wa(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Wu=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,Tp={rgb:(t,e,n,s)=>({r:t,g:e,b:n,a:s}),rgba:(t,e,n,s)=>({r:t,g:e,b:n,a:s}),hsl:(t,e,n,s)=>Gu({h:t,s:e,l:n,a:s}),hsla:(t,e,n,s)=>Gu({h:t,s:e,l:n,a:s}),hsv:(t,e,n,s)=>yr({h:t,s:e,v:n,a:s}),hsva:(t,e,n,s)=>yr({h:t,s:e,v:n,a:s})};function jt(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Wu.test(t)){const{groups:e}=t.match(Wu),{fn:n,values:s}=e,r=s.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return Tp[n](...r)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(n=>n+n).join(""):[6,8].includes(e.length),Rp(e)}else if(typeof t=="object"){if(Lo(t,["r","g","b"]))return t;if(Lo(t,["h","s","l"]))return yr(Tf(t));if(Lo(t,["h","s","v"]))return yr(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function yr(t){const{h:e,s:n,v:s,a:r}=t,i=a=>{const l=(a+e/60)%6;return s-s*n*Math.max(Math.min(l,4-l,1),0)},o=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:o[0],g:o[1],b:o[2],a:r}}function Gu(t){return yr(Tf(t))}function Tf(t){const{h:e,s:n,l:s,a:r}=t,i=s+n*Math.min(s,1-s),o=i===0?0:2-2*s/i;return{h:e,s:o,v:i,a:r}}function Gr(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function Ap(t){let{r:e,g:n,b:s,a:r}=t;return`#${[Gr(e),Gr(n),Gr(s),r!==void 0?Gr(Math.round(r*255)):""].join("")}`}function Rp(t){t=Ip(t);let[e,n,s,r]=rp(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:n,b:s,a:r}}function Ip(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=ku(ku(t,6),8,"F")),t}function kp(t,e){const n=Cf(cl(t));return n[0]=n[0]+e*10,Mf(Ef(n))}function Fp(t,e){const n=Cf(cl(t));return n[0]=n[0]-e*10,Mf(Ef(n))}function Vp(t){const e=jt(t);return cl(e)[1]}function Af(t){const e=Math.abs(ju(jt(0),jt(t)));return Math.abs(ju(jt(16777215),jt(t)))>Math.min(e,50)?"#fff":"#000"}const Ps=Symbol.for("vuetify:defaults");function Lp(t){return te(t)}function dl(){const t=Oe(Ps);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function hn(t,e){const n=dl(),s=te(t),r=R(()=>{if(L(e==null?void 0:e.disabled))return n.value;const o=L(e==null?void 0:e.scoped),a=L(e==null?void 0:e.reset),l=L(e==null?void 0:e.root);if(s.value==null&&!(o||a||l))return n.value;let u=vt(s.value,{prev:n.value});if(o)return u;if(a||l){const c=Number(a||1/0);for(let d=0;d<=c&&!(!u||!("prev"in u));d++)u=u.prev;return u&&typeof l=="string"&&l in u&&(u=vt(vt(u,{prev:u}),u[l])),u}return u.prev?vt(u.prev,u):u});return ut(Ps,r),r}function Pp(t,e){var n,s;return typeof((n=t.props)==null?void 0:n[e])<"u"||typeof((s=t.props)==null?void 0:s[Kn(e)])<"u"}function Op(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dl();const s=qe("useDefaults");if(e=e??s.type.name??s.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=R(()=>{var l;return(l=n.value)==null?void 0:l[t._as??e]}),i=new Proxy(t,{get(l,u){var d,f,h,g;const c=Reflect.get(l,u);return u==="class"||u==="style"?[(d=r.value)==null?void 0:d[u],c].filter(p=>p!=null):typeof u=="string"&&!Pp(s.vnode,u)?((f=r.value)==null?void 0:f[u])??((g=(h=n.value)==null?void 0:h.global)==null?void 0:g[u])??c:c}}),o=be();Pn(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});o.value=l.length?Object.fromEntries(l):void 0}else o.value=void 0});function a(){const l=$p(Ps,s);ut(Ps,R(()=>o.value?vt((l==null?void 0:l.value)??{},o.value):l==null?void 0:l.value))}return{props:i,provideSubDefaults:a}}function Rr(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=G(t.props??{},t.name)();const e=Object.keys(t.props).filter(n=>n!=="class"&&n!=="style");t.filterProps=function(s){return tp(s,e)},t.props._as=String,t.setup=function(s,r){const i=dl();if(!i.value)return t._setup(s,r);const{props:o,provideSubDefaults:a}=Op(s,s._as??t.name,i),l=t._setup(o,r);return a(),l}}return t}function me(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?Rr:dn)(e)}function lo(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return me()({name:n??cn(bt(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...we()},setup(s,r){let{slots:i}=r;return()=>{var o;return On(s.tag,{class:[t,s.class],style:s.style},(o=i.default)==null?void 0:o.call(i))}}})}function Rf(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const _a="cubic-bezier(0.4, 0, 0.2, 1)",Np="cubic-bezier(0.0, 0, 0.2, 1)",Bp="cubic-bezier(0.4, 0, 1, 1)";function qe(t,e){const n=ro();if(!n)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return n}function Zt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=qe(t).type;return Kn((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let If=0,hi=new WeakMap;function mn(){const t=qe("getUid");if(hi.has(t))return hi.get(t);{const e=If++;return hi.set(t,e),e}}mn.reset=()=>{If=0,hi=new WeakMap};function zp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?Dp(t):fl(t))return t;t=t.parentElement}return document.scrollingElement}function Ii(t,e){const n=[];if(e&&t&&!e.contains(t))return n;for(;t&&(fl(t)&&n.push(t),t!==e);)t=t.parentElement;return n}function fl(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function Dp(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function $p(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qe("injectSelf");const{provides:n}=e;if(n&&t in n)return n[t]}function Hp(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function ye(t){const e=qe("useRender");e.render=t}function kf(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=te(),s=te();if(Ne){const r=new ResizeObserver(i=>{t==null||t(i,r),i.length&&(e==="content"?s.value=i[0].contentRect:s.value=i[0].target.getBoundingClientRect())});kt(()=>{r.disconnect()}),le(n,(i,o)=>{o&&(r.unobserve(Mi(o)),s.value=void 0),i&&r.observe(Mi(i))},{flush:"post"})}return{resizeRef:n,contentRect:_r(s)}}const ki=Symbol.for("vuetify:layout"),Ff=Symbol.for("vuetify:layout-item"),qu=1e3,Up=G({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),jp=G({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Wp(){const t=Oe(ki);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function Gp(t){const e=Oe(ki);if(!e)throw new Error("[Vuetify] Could not find injected layout");const n=t.id??`layout-item-${mn()}`,s=qe("useLayoutItem");ut(Ff,{id:n});const r=be(!1);zd(()=>r.value=!0),Bd(()=>r.value=!1);const{layoutItemStyles:i,layoutItemScrimStyles:o}=e.register(s,{...t,active:R(()=>r.value?!1:t.active.value),id:n});return kt(()=>e.unregister(n)),{layoutItemStyles:i,layoutRect:e.layoutRect,layoutItemScrimStyles:o}}const qp=(t,e,n,s)=>{let r={top:0,left:0,right:0,bottom:0};const i=[{id:"",layer:{...r}}];for(const o of t){const a=e.get(o),l=n.get(o),u=s.get(o);if(!a||!l||!u)continue;const c={...r,[a.value]:parseInt(r[a.value],10)+(u.value?parseInt(l.value,10):0)};i.push({id:o,layer:c}),r=c}return i};function Yp(t){const e=Oe(ki,null),n=R(()=>e?e.rootZIndex.value-100:qu),s=te([]),r=tt(new Map),i=tt(new Map),o=tt(new Map),a=tt(new Map),l=tt(new Map),{resizeRef:u,contentRect:c}=kf(),d=R(()=>{const b=new Map,w=t.overlaps??[];for(const E of w.filter(k=>k.includes(":"))){const[k,V]=E.split(":");if(!s.value.includes(k)||!s.value.includes(V))continue;const I=r.get(k),T=r.get(V),F=i.get(k),P=i.get(V);!I||!T||!F||!P||(b.set(V,{position:I.value,amount:parseInt(F.value,10)}),b.set(k,{position:T.value,amount:-parseInt(P.value,10)}))}return b}),f=R(()=>{const b=[...new Set([...o.values()].map(E=>E.value))].sort((E,k)=>E-k),w=[];for(const E of b){const k=s.value.filter(V=>{var I;return((I=o.get(V))==null?void 0:I.value)===E});w.push(...k)}return qp(w,r,i,a)}),h=R(()=>!Array.from(l.values()).some(b=>b.value)),g=R(()=>f.value[f.value.length-1].layer),p=R(()=>({"--v-layout-left":ie(g.value.left),"--v-layout-right":ie(g.value.right),"--v-layout-top":ie(g.value.top),"--v-layout-bottom":ie(g.value.bottom),...h.value?void 0:{transition:"none"}})),v=R(()=>f.value.slice(1).map((b,w)=>{let{id:E}=b;const{layer:k}=f.value[w],V=i.get(E),I=r.get(E);return{id:E,...k,size:Number(V.value),position:I.value}})),S=b=>v.value.find(w=>w.id===b),m=qe("createLayout"),y=be(!1);Xt(()=>{y.value=!0}),ut(ki,{register:(b,w)=>{let{id:E,order:k,position:V,layoutSize:I,elementSize:T,active:F,disableTransitions:P,absolute:H}=w;o.set(E,k),r.set(E,V),i.set(E,I),a.set(E,F),P&&l.set(E,P);const Z=or(Ff,m==null?void 0:m.vnode).indexOf(b);Z>-1?s.value.splice(Z,0,E):s.value.push(E);const j=R(()=>v.value.findIndex(ce=>ce.id===E)),ae=R(()=>n.value+f.value.length*2-j.value*2),Q=R(()=>{const ce=V.value==="left"||V.value==="right",Te=V.value==="right",ge=V.value==="bottom",Ve={[V.value]:0,zIndex:ae.value,transform:`translate${ce?"X":"Y"}(${(F.value?0:-110)*(Te||ge?-1:1)}%)`,position:H.value||n.value!==qu?"absolute":"fixed",...h.value?void 0:{transition:"none"}};if(!y.value)return Ve;const X=v.value[j.value];if(!X)throw new Error(`[Vuetify] Could not find layout item "${E}"`);const xe=d.value.get(E);return xe&&(X[xe.position]+=xe.amount),{...Ve,height:ce?`calc(100% - ${X.top}px - ${X.bottom}px)`:T.value?`${T.value}px`:void 0,left:Te?void 0:`${X.left}px`,right:Te?`${X.right}px`:void 0,top:V.value!=="bottom"?`${X.top}px`:void 0,bottom:V.value!=="top"?`${X.bottom}px`:void 0,width:ce?T.value?`${T.value}px`:void 0:`calc(100% - ${X.left}px - ${X.right}px)`}}),se=R(()=>({zIndex:ae.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:se,zIndex:ae}},unregister:b=>{o.delete(b),r.delete(b),i.delete(b),a.delete(b),l.delete(b),s.value=s.value.filter(w=>w!==b)},mainRect:g,mainStyles:p,getLayoutItem:S,items:v,layoutRect:c,rootZIndex:n});const x=R(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),C=R(()=>({zIndex:e?n.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:x,layoutStyles:C,getLayoutItem:S,items:v,layoutRect:c,layoutRef:u}}function on(t,e){let n;function s(){n=Ua(),n.run(()=>e.length?e(()=>{n==null||n.stop(),s()}):e())}le(t,r=>{r&&!n?s():r||(n==null||n.stop(),n=void 0)},{immediate:!0}),Rt(()=>{n==null||n.stop()})}function ct(t,e,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d=>d,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:d=>d;const i=qe("useProxiedModel"),o=te(t[e]!==void 0?t[e]:n),a=Kn(e),u=R(a!==e?()=>{var d,f,h,g;return t[e],!!(((d=i.vnode.props)!=null&&d.hasOwnProperty(e)||(f=i.vnode.props)!=null&&f.hasOwnProperty(a))&&((h=i.vnode.props)!=null&&h.hasOwnProperty(`onUpdate:${e}`)||(g=i.vnode.props)!=null&&g.hasOwnProperty(`onUpdate:${a}`)))}:()=>{var d,f;return t[e],!!((d=i.vnode.props)!=null&&d.hasOwnProperty(e)&&((f=i.vnode.props)!=null&&f.hasOwnProperty(`onUpdate:${e}`)))});on(()=>!u.value,()=>{le(()=>t[e],d=>{o.value=d})});const c=R({get(){const d=t[e];return s(u.value?d:o.value)},set(d){const f=r(d),h=pe(u.value?t[e]:o.value);h===f||s(h)===d||(o.value=f,i==null||i.emit(`update:${e}`,f))}});return Object.defineProperty(c,"externalValue",{get:()=>u.value?t[e]:o.value}),c}const Xp={badge:"Badge",open:"Open",close:"Close",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},Yu="$vuetify.",Xu=(t,e)=>t.replace(/\{(\d+)\}/g,(n,s)=>String(e[+s])),Vf=(t,e,n)=>function(s){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(!s.startsWith(Yu))return Xu(s,i);const a=s.replace(Yu,""),l=t.value&&n.value[t.value],u=e.value&&n.value[e.value];let c=pa(l,a,null);return c||(`${s}${t.value}`,c=pa(u,a,null)),c||(c=s),typeof c!="string"&&(c=s),Xu(c,i)};function Lf(t,e){return(n,s)=>new Intl.NumberFormat([t.value,e.value],s).format(n)}function No(t,e,n){const s=ct(t,e,t[e]??n.value);return s.value=t[e]??n.value,le(n,r=>{t[e]==null&&(s.value=n.value)}),s}function Pf(t){return e=>{const n=No(e,"locale",t.current),s=No(e,"fallback",t.fallback),r=No(e,"messages",t.messages);return{name:"vuetify",current:n,fallback:s,messages:r,t:Vf(n,s,r),n:Lf(n,s),provide:Pf({current:n,fallback:s,messages:r})}}}function Zp(t){const e=be((t==null?void 0:t.locale)??"en"),n=be((t==null?void 0:t.fallback)??"en"),s=te({en:Xp,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:n,messages:s,t:Vf(e,n,s),n:Lf(e,n),provide:Pf({current:e,fallback:n,messages:s})}}const Fi=Symbol.for("vuetify:locale");function Kp(t){return t.name!=null}function Jp(t){const e=t!=null&&t.adapter&&Kp(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:Zp(t),n=ty(e,t);return{...e,...n}}function Qp(){const t=Oe(Fi);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function ey(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function ty(t,e){const n=te((e==null?void 0:e.rtl)??ey()),s=R(()=>n.value[t.current.value]??!1);return{isRtl:s,rtl:n,rtlClasses:R(()=>`v-locale--is-${s.value?"rtl":"ltr"}`)}}function Kt(){const t=Oe(Fi);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const Vi=Symbol.for("vuetify:theme"),dt=G({theme:String},"theme");function Zu(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function ny(){var s,r;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zu();const e=Zu();if(!t)return{...e,isDisabled:!0};const n={};for(const[i,o]of Object.entries(t.themes??{})){const a=o.dark||i==="dark"?(s=e.themes)==null?void 0:s.dark:(r=e.themes)==null?void 0:r.light;n[i]=vt(a,o)}return vt(e,{...t,themes:n})}function sy(t){const e=ny(t),n=te(e.defaultTheme),s=te(e.themes),r=R(()=>{const c={};for(const[d,f]of Object.entries(s.value)){const h=c[d]={...f,colors:{...f.colors}};if(e.variations)for(const g of e.variations.colors){const p=h.colors[g];if(p)for(const v of["lighten","darken"]){const S=v==="lighten"?kp:Fp;for(const m of al(e.variations[v],1))h.colors[`${g}-${v}-${m}`]=Ap(S(jt(p),m))}}for(const g of Object.keys(h.colors)){if(/^on-[a-z]/.test(g)||h.colors[`on-${g}`])continue;const p=`on-${g}`,v=jt(h.colors[g]);h.colors[p]=Af(v)}}return c}),i=R(()=>r.value[n.value]),o=R(()=>{var g;const c=[];(g=i.value)!=null&&g.dark&&Hn(c,":root",["color-scheme: dark"]),Hn(c,":root",Ku(i.value));for(const[p,v]of Object.entries(r.value))Hn(c,`.v-theme--${p}`,[`color-scheme: ${v.dark?"dark":"normal"}`,...Ku(v)]);const d=[],f=[],h=new Set(Object.values(r.value).flatMap(p=>Object.keys(p.colors)));for(const p of h)/^on-[a-z]/.test(p)?Hn(f,`.${p}`,[`color: rgb(var(--v-theme-${p})) !important`]):(Hn(d,`.bg-${p}`,[`--v-theme-overlay-multiplier: var(--v-theme-${p}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${p})) !important`,`color: rgb(var(--v-theme-on-${p})) !important`]),Hn(f,`.text-${p}`,[`color: rgb(var(--v-theme-${p})) !important`]),Hn(f,`.border-${p}`,[`--v-border-color: var(--v-theme-${p})`]));return c.push(...d,...f),c.map((p,v)=>v===0?p:`    ${p}`).join("")});function a(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function l(c){if(e.isDisabled)return;const d=c._context.provides.usehead;if(d)if(d.push){const f=d.push(a);Ne&&le(o,()=>{f.patch(a)})}else Ne?(d.addHeadObjs(R(a)),Pn(()=>d.updateDOM())):d.addHeadObjs(a());else{let h=function(){if(typeof document<"u"&&!f){const g=document.createElement("style");g.type="text/css",g.id="vuetify-theme-stylesheet",e.cspNonce&&g.setAttribute("nonce",e.cspNonce),f=g,document.head.appendChild(f)}f&&(f.innerHTML=o.value)},f=Ne?document.getElementById("vuetify-theme-stylesheet"):null;Ne?le(o,h,{immediate:!0}):h()}}const u=R(()=>e.isDisabled?void 0:`v-theme--${n.value}`);return{install:l,isDisabled:e.isDisabled,name:n,themes:s,current:i,computedThemes:r,themeClasses:u,styles:o,global:{name:n,current:i}}}function Ft(t){qe("provideTheme");const e=Oe(Vi,null);if(!e)throw new Error("Could not find Vuetify theme injection");const n=R(()=>t.theme??e.name.value),s=R(()=>e.themes.value[n.value]),r=R(()=>e.isDisabled?void 0:`v-theme--${n.value}`),i={...e,name:n,current:s,themeClasses:r};return ut(Vi,i),i}function Hn(t,e,n){t.push(`${e} {
`,...n.map(s=>`  ${s};
`),`}
`)}function Ku(t){const e=t.dark?2:1,n=t.dark?1:2,s=[];for(const[r,i]of Object.entries(t.colors)){const o=jt(i);s.push(`--v-theme-${r}: ${o.r},${o.g},${o.b}`),r.startsWith("on-")||s.push(`--v-theme-${r}-overlay-multiplier: ${Vp(i)>.18?e:n}`)}for(const[r,i]of Object.entries(t.variables)){const o=typeof i=="string"&&i.startsWith("#")?jt(i):void 0,a=o?`${o.r}, ${o.g}, ${o.b}`:void 0;s.push(`--v-${r}: ${a??i}`)}return s}const Je=G({tag:{type:String,default:"div"}},"tag"),ry=G({text:String,...we(),...Je()},"VToolbarTitle"),Li=me()({name:"VToolbarTitle",props:ry(),setup(t,e){let{slots:n}=e;return ye(()=>{const s=!!(n.default||n.text||t.text);return _(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var r;return[s&&_("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():t.text,(r=n.default)==null?void 0:r.call(n)])]}})}),{}}}),iy=G({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function xt(t,e,n){return me()({name:t,props:iy({mode:n,origin:e}),setup(s,r){let{slots:i}=r;const o={onBeforeEnter(a){s.origin&&(a.style.transformOrigin=s.origin)},onLeave(a){if(s.leaveAbsolute){const{offsetTop:l,offsetLeft:u,offsetWidth:c,offsetHeight:d}=a;a._transitionInitialStyles={position:a.style.position,top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height},a.style.position="absolute",a.style.top=`${l}px`,a.style.left=`${u}px`,a.style.width=`${c}px`,a.style.height=`${d}px`}s.hideOnLeave&&a.style.setProperty("display","none","important")},onAfterLeave(a){if(s.leaveAbsolute&&(a!=null&&a._transitionInitialStyles)){const{position:l,top:u,left:c,width:d,height:f}=a._transitionInitialStyles;delete a._transitionInitialStyles,a.style.position=l||"",a.style.top=u||"",a.style.left=c||"",a.style.width=d||"",a.style.height=f||""}}};return()=>{const a=s.group?df:Yt;return On(a,{name:s.disabled?"":t,css:!s.disabled,...s.group?void 0:{mode:s.mode},...s.disabled?{}:o},i.default)}}})}function Of(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return me()({name:t,props:{mode:{type:String,default:n},disabled:Boolean},setup(s,r){let{slots:i}=r;return()=>On(Yt,{name:s.disabled?"":t,css:!s.disabled,...s.disabled?{}:e},i.default)}})}function Nf(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",s=bt(`offset-${n}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[n]:o.style[n]}},onEnter(o){const a=o._initialStyle;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const l=`${o[s]}px`;o.style[n]="0",o.offsetHeight,o.style.transition=a.transition,t&&o._parent&&o._parent.classList.add(t),requestAnimationFrame(()=>{o.style[n]=l})},onAfterEnter:i,onEnterCancelled:i,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[n]:o.style[n]},o.style.overflow="hidden",o.style[n]=`${o[s]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[n]="0")},onAfterLeave:r,onLeaveCancelled:r};function r(o){t&&o._parent&&o._parent.classList.remove(t),i(o)}function i(o){const a=o._initialStyle[n];o.style.overflow=o._initialStyle.overflow,a!=null&&(o.style[n]=a),delete o._initialStyle}}const oy=G({target:[Object,Array]},"v-dialog-transition"),ay=me()({name:"VDialogTransition",props:oy(),setup(t,e){let{slots:n}=e;const s={onBeforeEnter(r){r.style.pointerEvents="none",r.style.visibility="hidden"},async onEnter(r,i){var f;await new Promise(h=>requestAnimationFrame(h)),await new Promise(h=>requestAnimationFrame(h)),r.style.visibility="";const{x:o,y:a,sx:l,sy:u,speed:c}=Qu(t.target,r),d=Zs(r,[{transform:`translate(${o}px, ${a}px) scale(${l}, ${u})`,opacity:0},{}],{duration:225*c,easing:Np});(f=Ju(r))==null||f.forEach(h=>{Zs(h,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*c,easing:_a})}),d.finished.then(()=>i())},onAfterEnter(r){r.style.removeProperty("pointer-events")},onBeforeLeave(r){r.style.pointerEvents="none"},async onLeave(r,i){var f;await new Promise(h=>requestAnimationFrame(h));const{x:o,y:a,sx:l,sy:u,speed:c}=Qu(t.target,r);Zs(r,[{},{transform:`translate(${o}px, ${a}px) scale(${l}, ${u})`,opacity:0}],{duration:125*c,easing:Bp}).finished.then(()=>i()),(f=Ju(r))==null||f.forEach(h=>{Zs(h,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*c,easing:_a})})},onAfterLeave(r){r.style.removeProperty("pointer-events")}};return()=>t.target?_(Yt,Pe({name:"dialog-transition"},s,{css:!1}),n):_(Yt,{name:"dialog-transition"},n)}});function Ju(t){var n;const e=(n=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return e&&[...e]}function Qu(t,e){const n=_f(t),s=Sf(e),[r,i]=getComputedStyle(e).transformOrigin.split(" ").map(S=>parseFloat(S)),[o,a]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;o==="left"||a==="left"?l-=n.width/2:(o==="right"||a==="right")&&(l+=n.width/2);let u=n.top+n.height/2;o==="top"||a==="top"?u-=n.height/2:(o==="bottom"||a==="bottom")&&(u+=n.height/2);const c=n.width/s.width,d=n.height/s.height,f=Math.max(1,c,d),h=c/f||0,g=d/f||0,p=s.width*s.height/(window.innerWidth*window.innerHeight),v=p>.12?Math.min(1.5,(p-.12)*10+1):1;return{x:l-(r+s.left),y:u-(i+s.top),sx:h,sy:g,speed:v}}xt("fab-transition","center center","out-in");xt("dialog-bottom-transition");xt("dialog-top-transition");const Lw=xt("fade-transition"),ly=xt("scale-transition");xt("scroll-x-transition");xt("scroll-x-reverse-transition");xt("scroll-y-transition");xt("scroll-y-reverse-transition");xt("slide-x-transition");xt("slide-x-reverse-transition");const uy=xt("slide-y-transition");xt("slide-y-reverse-transition");const Bf=Of("expand-transition",Nf()),Pw=Of("expand-x-transition",Nf("",!0)),cy=G({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Tt=me(!1)({name:"VDefaultsProvider",props:cy(),setup(t,e){let{slots:n}=e;const{defaults:s,disabled:r,reset:i,root:o,scoped:a}=Ja(t);return hn(s,{reset:i,root:o,scoped:a,disabled:r}),()=>{var l;return(l=n.default)==null?void 0:l.call(n)}}}),uo=G({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function co(t){return{dimensionStyles:R(()=>({height:ie(t.height),maxHeight:ie(t.maxHeight),maxWidth:ie(t.maxWidth),minHeight:ie(t.minHeight),minWidth:ie(t.minWidth),width:ie(t.width)}))}}function dy(t){return{aspectStyles:R(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const zf=G({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...we(),...uo()},"VResponsive"),ec=me()({name:"VResponsive",props:zf(),setup(t,e){let{slots:n}=e;const{aspectStyles:s}=dy(t),{dimensionStyles:r}=co(t);return ye(()=>{var i;return _("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[r.value,t.style]},[_("div",{class:"v-responsive__sizer",style:s.value},null),(i=n.additional)==null?void 0:i.call(n),n.default&&_("div",{class:["v-responsive__content",t.contentClass]},[n.default()])])}),{}}});function hl(t){return ul(()=>{const e=[],n={};if(t.value.background)if(wa(t.value.background)){if(n.backgroundColor=t.value.background,!t.value.text&&Mp(t.value.background)){const s=jt(t.value.background);if(s.a==null||s.a===1){const r=Af(s);n.color=r,n.caretColor=r}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(wa(t.value.text)?(n.color=t.value.text,n.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:n}})}function Ln(t,e){const n=R(()=>({text:Me(t)?t.value:e?t[e]:null})),{colorClasses:s,colorStyles:r}=hl(n);return{textColorClasses:s,textColorStyles:r}}function At(t,e){const n=R(()=>({background:Me(t)?t.value:e?t[e]:null})),{colorClasses:s,colorStyles:r}=hl(n);return{backgroundColorClasses:s,backgroundColorStyles:r}}const Jt=G({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Qt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();return{roundedClasses:R(()=>{const s=Me(t)?t.value:t.rounded,r=Me(t)?t.value:t.tile,i=[];if(s===!0||s==="")i.push(`${e}--rounded`);else if(typeof s=="string"||s===0)for(const o of String(s).split(" "))i.push(`rounded-${o}`);else r&&i.push("rounded-0");return i})}}const ml=G({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),Cs=(t,e)=>{let{slots:n}=e;const{transition:s,disabled:r,group:i,...o}=t,{component:a=i?df:Yt,...l}=typeof s=="object"?s:{};return On(a,Pe(typeof s=="string"?{name:r?"":s}:l,typeof s=="string"?{}:{disabled:r,group:i},o),n)};function fy(t,e){if(!ol)return;const n=e.modifiers||{},s=e.value,{handler:r,options:i}=typeof s=="object"?s:{handler:s,options:{}},o=new IntersectionObserver(function(){var d;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const u=(d=t._observe)==null?void 0:d[e.instance.$.uid];if(!u)return;const c=a.some(f=>f.isIntersecting);r&&(!n.quiet||u.init)&&(!n.once||c||u.init)&&r(c,a,l),c&&n.once?Df(t,e):u.init=!0},i);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:o},o.observe(t)}function Df(t,e){var s;const n=(s=t._observe)==null?void 0:s[e.instance.$.uid];n&&(n.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const $f={mounted:fy,unmounted:Df},hy=G({alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...zf(),...we(),...Jt(),...ml()},"VImg"),fo=me()({name:"VImg",directives:{intersect:$f},props:hy(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:n,slots:s}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=At(fe(t,"color")),{roundedClasses:o}=Qt(t),a=qe("VImg"),l=be(""),u=te(),c=be(t.eager?"loading":"idle"),d=be(),f=be(),h=R(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),g=R(()=>h.value.aspect||d.value/f.value||0);le(()=>t.src,()=>{p(c.value!=="idle")}),le(g,(T,F)=>{!T&&F&&u.value&&x(u.value)}),no(()=>p());function p(T){if(!(t.eager&&T)&&!(ol&&!T&&!t.eager)){if(c.value="loading",h.value.lazySrc){const F=new Image;F.src=h.value.lazySrc,x(F,null)}h.value.src&&It(()=>{var F;n("loadstart",((F=u.value)==null?void 0:F.currentSrc)||h.value.src),setTimeout(()=>{var P;if(!a.isUnmounted)if((P=u.value)!=null&&P.complete){if(u.value.naturalWidth||S(),c.value==="error")return;g.value||x(u.value,null),c.value==="loading"&&v()}else g.value||x(u.value),m()})})}}function v(){var T;a.isUnmounted||(m(),x(u.value),c.value="loaded",n("load",((T=u.value)==null?void 0:T.currentSrc)||h.value.src))}function S(){var T;a.isUnmounted||(c.value="error",n("error",((T=u.value)==null?void 0:T.currentSrc)||h.value.src))}function m(){const T=u.value;T&&(l.value=T.currentSrc||T.src)}let y=-1;kt(()=>{clearTimeout(y)});function x(T){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const P=()=>{if(clearTimeout(y),a.isUnmounted)return;const{naturalHeight:H,naturalWidth:q}=T;H||q?(d.value=q,f.value=H):!T.complete&&c.value==="loading"&&F!=null?y=window.setTimeout(P,F):(T.currentSrc.endsWith(".svg")||T.currentSrc.startsWith("data:image/svg+xml"))&&(d.value=1,f.value=1)};P()}const C=R(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),b=()=>{var P;if(!h.value.src||c.value==="idle")return null;const T=_("img",{class:["v-img__img",C.value],style:{objectPosition:t.position},src:h.value.src,srcset:h.value.srcset,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:u,onLoad:v,onError:S},null),F=(P=s.sources)==null?void 0:P.call(s);return _(Cs,{transition:t.transition,appear:!0},{default:()=>[qt(F?_("picture",{class:"v-img__picture"},[F,T]):T,[[oo,c.value==="loaded"]])]})},w=()=>_(Cs,{transition:t.transition},{default:()=>[h.value.lazySrc&&c.value!=="loaded"&&_("img",{class:["v-img__img","v-img__img--preload",C.value],style:{objectPosition:t.position},src:h.value.lazySrc,alt:t.alt,crossorigin:t.crossorigin,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),E=()=>s.placeholder?_(Cs,{transition:t.transition,appear:!0},{default:()=>[(c.value==="loading"||c.value==="error"&&!s.error)&&_("div",{class:"v-img__placeholder"},[s.placeholder()])]}):null,k=()=>s.error?_(Cs,{transition:t.transition,appear:!0},{default:()=>[c.value==="error"&&_("div",{class:"v-img__error"},[s.error()])]}):null,V=()=>t.gradient?_("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,I=be(!1);{const T=le(g,F=>{F&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{I.value=!0})}),T())})}return ye(()=>{const T=ec.filterProps(t);return qt(_(ec,Pe({class:["v-img",{"v-img--booting":!I.value},r.value,o.value,t.class],style:[{width:ie(t.width==="auto"?d.value:t.width)},i.value,t.style]},T,{aspectRatio:g.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>_(Re,null,[_(b,null,null),_(w,null,null),_(V,null,null),_(E,null,null),_(k,null,null)]),default:s.default}),[[as("intersect"),{handler:p,options:t.options},null,{once:!0}]])}),{currentSrc:l,image:u,state:c,naturalWidth:d,naturalHeight:f}}}),Ir=G({border:[Boolean,Number,String]},"border");function kr(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();return{borderClasses:R(()=>{const s=Me(t)?t.value:t.border,r=[];if(s===!0||s==="")r.push(`${e}--border`);else if(typeof s=="string"||s===0)for(const i of String(s).split(" "))r.push(`border-${i}`);return r})}}const ls=G({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function us(t){return{elevationClasses:R(()=>{const n=Me(t)?t.value:t.elevation,s=[];return n==null||s.push(`elevation-${n}`),s})}}const my=[null,"prominent","default","comfortable","compact"],gy=G({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>my.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Ir(),...we(),...ls(),...Jt(),...Je({tag:"header"}),...dt()},"VToolbar"),Hf=me()({name:"VToolbar",props:gy(),setup(t,e){var h;let{slots:n}=e;const{backgroundColorClasses:s,backgroundColorStyles:r}=At(fe(t,"color")),{borderClasses:i}=kr(t),{elevationClasses:o}=us(t),{roundedClasses:a}=Qt(t),{themeClasses:l}=Ft(t),{rtlClasses:u}=Kt(),c=be(!!(t.extended||(h=n.extension)!=null&&h.call(n))),d=R(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),f=R(()=>c.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return hn({VBtn:{variant:"text"}}),ye(()=>{var S;const g=!!(t.title||n.title),p=!!(n.image||t.image),v=(S=n.extension)==null?void 0:S.call(n);return c.value=!!(t.extended||v),_(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},s.value,i.value,o.value,a.value,l.value,u.value,t.class],style:[r.value,t.style]},{default:()=>[p&&_("div",{key:"image",class:"v-toolbar__image"},[n.image?_(Tt,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},n.image):_(fo,{key:"image-img",cover:!0,src:t.image},null)]),_(Tt,{defaults:{VTabs:{height:ie(d.value)}}},{default:()=>{var m,y,x;return[_("div",{class:"v-toolbar__content",style:{height:ie(d.value)}},[n.prepend&&_("div",{class:"v-toolbar__prepend"},[(m=n.prepend)==null?void 0:m.call(n)]),g&&_(Li,{key:"title",text:t.title},{text:n.title}),(y=n.default)==null?void 0:y.call(n),n.append&&_("div",{class:"v-toolbar__append"},[(x=n.append)==null?void 0:x.call(n)])])]}}),_(Tt,{defaults:{VTabs:{height:ie(f.value)}}},{default:()=>[_(Bf,null,{default:()=>[c.value&&_("div",{class:"v-toolbar__extension",style:{height:ie(f.value)}},[v])]})]})]})}),{contentHeight:d,extensionHeight:f}}});function Uf(){const t=be(!1);return Xt(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:R(()=>t.value?void 0:{transition:"none !important"}),isBooted:_r(t)}}const vy=[null,"default","comfortable","compact"],cs=G({density:{type:String,default:"default",validator:t=>vy.includes(t)}},"density");function zs(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();return{densityClasses:R(()=>`${e}--density-${t.density}`)}}const py=["elevated","flat","tonal","outlined","text","plain"];function gl(t,e){return _(Re,null,[t&&_("span",{key:"overlay",class:`${e}__overlay`},null),_("span",{key:"underlay",class:`${e}__underlay`},null)])}const Fr=G({color:String,variant:{type:String,default:"elevated",validator:t=>py.includes(t)}},"variant");function vl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();const n=R(()=>{const{variant:i}=L(t);return`${e}--variant-${i}`}),{colorClasses:s,colorStyles:r}=hl(R(()=>{const{variant:i,color:o}=L(t);return{[["elevated","flat"].includes(i)?"background":"text"]:o}}));return{colorClasses:s,colorStyles:r,variantClasses:n}}const jf=G({divided:Boolean,...Ir(),...we(),...cs(),...ls(),...Jt(),...Je(),...dt(),...Fr()},"VBtnGroup"),tc=me()({name:"VBtnGroup",props:jf(),setup(t,e){let{slots:n}=e;const{themeClasses:s}=Ft(t),{densityClasses:r}=zs(t),{borderClasses:i}=kr(t),{elevationClasses:o}=us(t),{roundedClasses:a}=Qt(t);hn({VBtn:{height:"auto",color:fe(t,"color"),density:fe(t,"density"),flat:!0,variant:fe(t,"variant")}}),ye(()=>_(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},s.value,i.value,r.value,o.value,a.value,t.class],style:t.style},n))}}),Wf=G({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Gf=G({value:null,disabled:Boolean,selectedClass:String},"group-item");function qf(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const s=qe("useGroupItem");if(!s)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const r=mn();ut(Symbol.for(`${e.description}:id`),r);const i=Oe(e,null);if(!i){if(!n)return i;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const o=fe(t,"value"),a=R(()=>!!(i.disabled.value||t.disabled));i.register({id:r,value:o,disabled:a},s),kt(()=>{i.unregister(r)});const l=R(()=>i.isSelected(r)),u=R(()=>l.value&&[i.selectedClass.value,t.selectedClass]);return le(l,c=>{s.emit("group:selected",{value:c})},{flush:"sync"}),{id:r,isSelected:l,toggle:()=>i.select(r,!l.value),select:c=>i.select(r,c),selectedClass:u,value:o,disabled:a,group:i}}function Yf(t,e){let n=!1;const s=tt([]),r=ct(t,"modelValue",[],f=>f==null?[]:Xf(s,In(f)),f=>{const h=by(s,f);return t.multiple?h:h[0]}),i=qe("useGroup");function o(f,h){const g=f,p=Symbol.for(`${e.description}:id`),S=or(p,i==null?void 0:i.vnode).indexOf(h);L(g.value)==null&&(g.value=S),S>-1?s.splice(S,0,g):s.push(g)}function a(f){if(n)return;l();const h=s.findIndex(g=>g.id===f);s.splice(h,1)}function l(){const f=s.find(h=>!h.disabled);f&&t.mandatory==="force"&&!r.value.length&&(r.value=[f.id])}Xt(()=>{l()}),kt(()=>{n=!0});function u(f,h){const g=s.find(p=>p.id===f);if(!(h&&(g!=null&&g.disabled)))if(t.multiple){const p=r.value.slice(),v=p.findIndex(m=>m===f),S=~v;if(h=h??!S,S&&t.mandatory&&p.length<=1||!S&&t.max!=null&&p.length+1>t.max)return;v<0&&h?p.push(f):v>=0&&!h&&p.splice(v,1),r.value=p}else{const p=r.value.includes(f);if(t.mandatory&&p)return;r.value=h??!p?[f]:[]}}function c(f){if(t.multiple,r.value.length){const h=r.value[0],g=s.findIndex(S=>S.id===h);let p=(g+f)%s.length,v=s[p];for(;v.disabled&&p!==g;)p=(p+f)%s.length,v=s[p];if(v.disabled)return;r.value=[s[p].id]}else{const h=s.find(g=>!g.disabled);h&&(r.value=[h.id])}}const d={register:o,unregister:a,selected:r,select:u,disabled:fe(t,"disabled"),prev:()=>c(s.length-1),next:()=>c(1),isSelected:f=>r.value.includes(f),selectedClass:R(()=>t.selectedClass),items:R(()=>s),getItemIndex:f=>yy(s,f)};return ut(e,d),d}function yy(t,e){const n=Xf(t,[e]);return n.length?t.findIndex(s=>s.id===n[0]):-1}function Xf(t,e){const n=[];return e.forEach(s=>{const r=t.find(o=>ao(s,o.value)),i=t[s];(r==null?void 0:r.value)!=null?n.push(r.id):i!=null&&n.push(i.id)}),n}function by(t,e){const n=[];return e.forEach(s=>{const r=t.findIndex(i=>i.id===s);if(~r){const i=t[r];n.push(i.value!=null?i.value:r)}}),n}const Zf=Symbol.for("vuetify:v-btn-toggle"),xy=G({...jf(),...Wf()},"VBtnToggle"),wy=me()({name:"VBtnToggle",props:xy(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const{isSelected:s,next:r,prev:i,select:o,selected:a}=Yf(t,Zf);return ye(()=>{const l=tc.filterProps(t);return _(tc,Pe({class:["v-btn-toggle",t.class]},l,{style:t.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:s,next:r,prev:i,select:o,selected:a})]}})}),{next:r,prev:i,select:o}}}),_y={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",eyeDropper:"mdi-eyedropper"},Sy={component:t=>On(Jf,{...t,class:"mdi"})},Ke=[String,Function,Object,Array],Sa=Symbol.for("vuetify:icons"),ho=G({icon:{type:Ke},tag:{type:String,required:!0}},"icon"),nc=me()({name:"VComponentIcon",props:ho(),setup(t,e){let{slots:n}=e;return()=>{const s=t.icon;return _(t.tag,null,{default:()=>{var r;return[t.icon?_(s,null,null):(r=n.default)==null?void 0:r.call(n)]}})}}}),Kf=Rr({name:"VSvgIcon",inheritAttrs:!1,props:ho(),setup(t,e){let{attrs:n}=e;return()=>_(t.tag,Pe(n,{style:null}),{default:()=>[_("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(s=>Array.isArray(s)?_("path",{d:s[0],"fill-opacity":s[1]},null):_("path",{d:s},null)):_("path",{d:t.icon},null)])]})}});Rr({name:"VLigatureIcon",props:ho(),setup(t){return()=>_(t.tag,null,{default:()=>[t.icon]})}});const Jf=Rr({name:"VClassIcon",props:ho(),setup(t){return()=>_(t.tag,{class:t.icon},null)}});function Cy(){return{svg:{component:Kf},class:{component:Jf}}}function Ey(t){const e=Cy(),n=(t==null?void 0:t.defaultSet)??"mdi";return n==="mdi"&&!e.mdi&&(e.mdi=Sy),vt({defaultSet:n,sets:e,aliases:{..._y,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},t)}const My=t=>{const e=Oe(Sa);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:R(()=>{var l;const s=L(t);if(!s)return{component:nc};let r=s;if(typeof r=="string"&&(r=r.trim(),r.startsWith("$")&&(r=(l=e.aliases)==null?void 0:l[r.slice(1)])),!r)throw new Error(`Could not find aliased icon "${s}"`);if(Array.isArray(r))return{component:Kf,icon:r};if(typeof r!="string")return{component:nc,icon:r};const i=Object.keys(e.sets).find(u=>typeof r=="string"&&r.startsWith(`${u}:`)),o=i?r.slice(i.length+1):r;return{component:e.sets[i??e.defaultSet].component,icon:o}})}},Ty=["x-small","small","default","large","x-large"],mo=G({size:{type:[String,Number],default:"default"}},"size");function go(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();return ul(()=>{let n,s;return Ti(Ty,t.size)?n=`${e}--size-${t.size}`:t.size&&(s={width:ie(t.size),height:ie(t.size)}),{sizeClasses:n,sizeStyles:s}})}const Ay=G({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Ke,...we(),...mo(),...Je({tag:"i"}),...dt()},"VIcon"),an=me()({name:"VIcon",props:Ay(),setup(t,e){let{attrs:n,slots:s}=e;const r=te(),{themeClasses:i}=Ft(t),{iconData:o}=My(R(()=>r.value||t.icon)),{sizeClasses:a}=go(t),{textColorClasses:l,textColorStyles:u}=Ln(fe(t,"color"));return ye(()=>{var f,h;const c=(f=s.default)==null?void 0:f.call(s);c&&(r.value=(h=pf(c).filter(g=>g.type===Er&&g.children&&typeof g.children=="string")[0])==null?void 0:h.children);const d=!!(n.onClick||n.onClickOnce);return _(o.value.component,{tag:t.tag,icon:o.value.icon,class:["v-icon","notranslate",i.value,a.value,l.value,{"v-icon--clickable":d,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[a.value?void 0:{fontSize:ie(t.size),height:ie(t.size),width:ie(t.size)},u.value,t.style],role:d?"button":void 0,"aria-hidden":!d,tabindex:d?t.disabled?-1:0:void 0},{default:()=>[c]})}),{}}});function Qf(t,e){const n=te(),s=be(!1);if(ol){const r=new IntersectionObserver(i=>{t==null||t(i,r),s.value=!!i.find(o=>o.isIntersecting)},e);kt(()=>{r.disconnect()}),le(n,(i,o)=>{o&&(r.unobserve(o),s.value=!1),i&&r.observe(i)},{flush:"post"})}return{intersectionRef:n,isIntersecting:s}}const Ry=G({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...we(),...mo(),...Je({tag:"div"}),...dt()},"VProgressCircular"),eh=me()({name:"VProgressCircular",props:Ry(),setup(t,e){let{slots:n}=e;const s=20,r=2*Math.PI*s,i=te(),{themeClasses:o}=Ft(t),{sizeClasses:a,sizeStyles:l}=go(t),{textColorClasses:u,textColorStyles:c}=Ln(fe(t,"color")),{textColorClasses:d,textColorStyles:f}=Ln(fe(t,"bgColor")),{intersectionRef:h,isIntersecting:g}=Qf(),{resizeRef:p,contentRect:v}=kf(),S=R(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),m=R(()=>Number(t.width)),y=R(()=>l.value?Number(t.size):v.value?v.value.width:Math.max(m.value,32)),x=R(()=>s/(1-m.value/y.value)*2),C=R(()=>m.value/y.value*x.value),b=R(()=>ie((100-S.value)/100*r));return Pn(()=>{h.value=i.value,p.value=i.value}),ye(()=>_(t.tag,{ref:i,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":g.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},o.value,a.value,u.value,t.class],style:[l.value,c.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:S.value},{default:()=>[_("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${x.value} ${x.value}`},[_("circle",{class:["v-progress-circular__underlay",d.value],style:f.value,fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":C.value,"stroke-dasharray":r,"stroke-dashoffset":0},null),_("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":C.value,"stroke-dasharray":r,"stroke-dashoffset":b.value},null)]),n.default&&_("div",{class:"v-progress-circular__content"},[n.default({value:S.value})])]})),{}}}),sc={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},pl=G({location:String},"location");function yl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:s}=Kt();return{locationStyles:R(()=>{if(!t.location)return{};const{side:i,align:o}=ba(t.location.split(" ").length>1?t.location:`${t.location} center`,s.value);function a(u){return n?n(u):0}const l={};return i!=="center"&&(e?l[sc[i]]=`calc(100% - ${a(i)}px)`:l[i]=0),o!=="center"?e?l[sc[o]]=`calc(100% - ${a(o)}px)`:l[o]=0:(i==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[i]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[i]),l})}}const Iy=G({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...we(),...pl({location:"top"}),...Jt(),...Je(),...dt()},"VProgressLinear"),ky=me()({name:"VProgressLinear",props:Iy(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const s=ct(t,"modelValue"),{isRtl:r,rtlClasses:i}=Kt(),{themeClasses:o}=Ft(t),{locationStyles:a}=yl(t),{textColorClasses:l,textColorStyles:u}=Ln(t,"color"),{backgroundColorClasses:c,backgroundColorStyles:d}=At(R(()=>t.bgColor||t.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=At(t,"color"),{roundedClasses:g}=Qt(t),{intersectionRef:p,isIntersecting:v}=Qf(),S=R(()=>parseInt(t.max,10)),m=R(()=>parseInt(t.height,10)),y=R(()=>parseFloat(t.bufferValue)/S.value*100),x=R(()=>parseFloat(s.value)/S.value*100),C=R(()=>r.value!==t.reverse),b=R(()=>t.indeterminate?"fade-transition":"slide-x-transition"),w=R(()=>t.bgOpacity==null?t.bgOpacity:parseFloat(t.bgOpacity));function E(k){if(!p.value)return;const{left:V,right:I,width:T}=p.value.getBoundingClientRect(),F=C.value?T-k.clientX+(I-T):k.clientX-V;s.value=Math.round(F/T*S.value)}return ye(()=>_(t.tag,{ref:p,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&v.value,"v-progress-linear--reverse":C.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},g.value,o.value,i.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?ie(m.value):0,"--v-progress-linear-height":ie(m.value),...a.value},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:x.value,onClick:t.clickable&&E},{default:()=>[t.stream&&_("div",{key:"stream",class:["v-progress-linear__stream",l.value],style:{...u.value,[C.value?"left":"right"]:ie(-m.value),borderTop:`${ie(m.value/2)} dotted`,opacity:w.value,top:`calc(50% - ${ie(m.value/4)})`,width:ie(100-y.value,"%"),"--v-progress-linear-stream-to":ie(m.value*(C.value?1:-1))}},null),_("div",{class:["v-progress-linear__background",c.value],style:[d.value,{opacity:w.value,width:ie(t.stream?y.value:100,"%")}]},null),_(Yt,{name:b.value},{default:()=>[t.indeterminate?_("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(k=>_("div",{key:k,class:["v-progress-linear__indeterminate",k,f.value],style:h.value},null))]):_("div",{class:["v-progress-linear__determinate",f.value],style:[h.value,{width:ie(x.value,"%")}]},null)]}),n.default&&_("div",{class:"v-progress-linear__content"},[n.default({value:x.value,buffer:y.value})])]})),{}}}),th=G({loading:[Boolean,String]},"loader");function nh(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();return{loaderClasses:R(()=>({[`${e}--loading`]:t.loading}))}}function Fy(t,e){var s;let{slots:n}=e;return _("div",{class:`${t.name}__loader`},[((s=n.default)==null?void 0:s.call(n,{color:t.color,isActive:t.active}))||_(ky,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const Vy=["static","relative","fixed","absolute","sticky"],sh=G({position:{type:String,validator:t=>Vy.includes(t)}},"position");function rh(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();return{positionClasses:R(()=>t.position?`${e}--${t.position}`:void 0)}}function Ly(){const t=qe("useRoute");return R(()=>{var e;return(e=t==null?void 0:t.proxy)==null?void 0:e.$route})}function ih(){var t,e;return(e=(t=qe("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function oh(t,e){const n=vg("RouterLink"),s=R(()=>!!(t.href||t.to)),r=R(()=>(s==null?void 0:s.value)||Vu(e,"click")||Vu(t,"click"));if(typeof n=="string")return{isLink:s,isClickable:r,href:fe(t,"href")};const i=t.to?n.useLink(t):void 0,o=Ly();return{isLink:s,isClickable:r,route:i==null?void 0:i.route,navigate:i==null?void 0:i.navigate,isActive:i&&R(()=>{var a,l,u;return t.exact?o.value?((u=i.isExactActive)==null?void 0:u.value)&&ao(i.route.value.query,o.value.query):(l=i.isExactActive)==null?void 0:l.value:(a=i.isActive)==null?void 0:a.value}),href:R(()=>t.to?i==null?void 0:i.route.value.href:t.href)}}const ah=G({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Bo=!1;function Py(t,e){let n=!1,s,r;Ne&&(It(()=>{window.addEventListener("popstate",i),s=t==null?void 0:t.beforeEach((o,a,l)=>{Bo?n?e(l):l():setTimeout(()=>n?e(l):l()),Bo=!0}),r=t==null?void 0:t.afterEach(()=>{Bo=!1})}),Rt(()=>{window.removeEventListener("popstate",i),s==null||s(),r==null||r()}));function i(o){var a;(a=o.state)!=null&&a.replaced||(n=!0,setTimeout(()=>n=!1))}}function Oy(t,e){le(()=>{var n;return(n=t.isActive)==null?void 0:n.value},n=>{t.isLink.value&&n&&e&&It(()=>{e(!0)})},{immediate:!0})}const Ca=Symbol("rippleStop"),Ny=80;function rc(t,e){t.style.transform=e,t.style.webkitTransform=e}function Ea(t){return t.constructor.name==="TouchEvent"}function lh(t){return t.constructor.name==="KeyboardEvent"}const By=function(t,e){var d;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=0,r=0;if(!lh(t)){const f=e.getBoundingClientRect(),h=Ea(t)?t.touches[t.touches.length-1]:t;s=h.clientX-f.left,r=h.clientY-f.top}let i=0,o=.3;(d=e._ripple)!=null&&d.circle?(o=.15,i=e.clientWidth/2,i=n.center?i:i+Math.sqrt((s-i)**2+(r-i)**2)/4):i=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const a=`${(e.clientWidth-i*2)/2}px`,l=`${(e.clientHeight-i*2)/2}px`,u=n.center?a:`${s-i}px`,c=n.center?l:`${r-i}px`;return{radius:i,scale:o,x:u,y:c,centerX:a,centerY:l}},Pi={show(t,e){var h;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((h=e==null?void 0:e._ripple)!=null&&h.enabled))return;const s=document.createElement("span"),r=document.createElement("span");s.appendChild(r),s.className="v-ripple__container",n.class&&(s.className+=` ${n.class}`);const{radius:i,scale:o,x:a,y:l,centerX:u,centerY:c}=By(t,e,n),d=`${i*2}px`;r.className="v-ripple__animation",r.style.width=d,r.style.height=d,e.appendChild(s);const f=window.getComputedStyle(e);f&&f.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),r.classList.add("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--visible"),rc(r,`translate(${a}, ${l}) scale3d(${o},${o},${o})`),r.dataset.activated=String(performance.now()),setTimeout(()=>{r.classList.remove("v-ripple__animation--enter"),r.classList.add("v-ripple__animation--in"),rc(r,`translate(${u}, ${c}) scale3d(1,1,1)`)},0)},hide(t){var i;if(!((i=t==null?void 0:t._ripple)!=null&&i.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const n=e[e.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const s=performance.now()-Number(n.dataset.activated),r=Math.max(250-s,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var a;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((a=n.parentNode)==null?void 0:a.parentNode)===t&&t.removeChild(n.parentNode)},300)},r)}};function uh(t){return typeof t>"u"||!!t}function br(t){const e={},n=t.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||t[Ca])){if(t[Ca]=!0,Ea(t))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(e.center=n._ripple.centered||lh(t),n._ripple.class&&(e.class=n._ripple.class),Ea(t)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Pi.show(t,n,e)},n._ripple.showTimer=window.setTimeout(()=>{var s;(s=n==null?void 0:n._ripple)!=null&&s.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},Ny)}else Pi.show(t,n,e)}}function ic(t){t[Ca]=!0}function gt(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{gt(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),Pi.hide(e)}}function ch(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let xr=!1;function dh(t){!xr&&(t.keyCode===Au.enter||t.keyCode===Au.space)&&(xr=!0,br(t))}function fh(t){xr=!1,gt(t)}function hh(t){xr&&(xr=!1,gt(t))}function mh(t,e,n){const{value:s,modifiers:r}=e,i=uh(s);if(i||Pi.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=i,t._ripple.centered=r.center,t._ripple.circle=r.circle,ya(s)&&s.class&&(t._ripple.class=s.class),i&&!n){if(r.stop){t.addEventListener("touchstart",ic,{passive:!0}),t.addEventListener("mousedown",ic);return}t.addEventListener("touchstart",br,{passive:!0}),t.addEventListener("touchend",gt,{passive:!0}),t.addEventListener("touchmove",ch,{passive:!0}),t.addEventListener("touchcancel",gt),t.addEventListener("mousedown",br),t.addEventListener("mouseup",gt),t.addEventListener("mouseleave",gt),t.addEventListener("keydown",dh),t.addEventListener("keyup",fh),t.addEventListener("blur",hh),t.addEventListener("dragstart",gt,{passive:!0})}else!i&&n&&gh(t)}function gh(t){t.removeEventListener("mousedown",br),t.removeEventListener("touchstart",br),t.removeEventListener("touchend",gt),t.removeEventListener("touchmove",ch),t.removeEventListener("touchcancel",gt),t.removeEventListener("mouseup",gt),t.removeEventListener("mouseleave",gt),t.removeEventListener("keydown",dh),t.removeEventListener("keyup",fh),t.removeEventListener("dragstart",gt),t.removeEventListener("blur",hh)}function zy(t,e){mh(t,e,!1)}function Dy(t){delete t._ripple,gh(t)}function $y(t,e){if(e.value===e.oldValue)return;const n=uh(e.oldValue);mh(t,e,n)}const Ds={mounted:zy,unmounted:Dy,updated:$y},Hy=G({active:{type:Boolean,default:void 0},symbol:{type:null,default:Zf},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Ke,appendIcon:Ke,block:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...Ir(),...we(),...cs(),...uo(),...ls(),...Gf(),...th(),...pl(),...sh(),...Jt(),...ah(),...mo(),...Je({tag:"button"}),...dt(),...Fr({variant:"elevated"})},"VBtn"),it=me()({name:"VBtn",directives:{Ripple:Ds},props:Hy(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:n,slots:s}=e;const{themeClasses:r}=Ft(t),{borderClasses:i}=kr(t),{colorClasses:o,colorStyles:a,variantClasses:l}=vl(t),{densityClasses:u}=zs(t),{dimensionStyles:c}=co(t),{elevationClasses:d}=us(t),{loaderClasses:f}=nh(t),{locationStyles:h}=yl(t),{positionClasses:g}=rh(t),{roundedClasses:p}=Qt(t),{sizeClasses:v,sizeStyles:S}=go(t),m=qf(t,t.symbol,!1),y=oh(t,n),x=R(()=>{var k;return t.active!==void 0?t.active:y.isLink.value?(k=y.isActive)==null?void 0:k.value:m==null?void 0:m.isSelected.value}),C=R(()=>(m==null?void 0:m.disabled.value)||t.disabled),b=R(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),w=R(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function E(k){var V;C.value||y.isLink.value&&(k.metaKey||k.ctrlKey||k.shiftKey||k.button!==0||n.target==="_blank")||((V=y.navigate)==null||V.call(y,k),m==null||m.toggle())}return Oy(y,m==null?void 0:m.select),ye(()=>{var P,H;const k=y.isLink.value?"a":t.tag,V=!!(t.prependIcon||s.prepend),I=!!(t.appendIcon||s.append),T=!!(t.icon&&t.icon!==!0),F=(m==null?void 0:m.isSelected.value)&&(!y.isLink.value||((P=y.isActive)==null?void 0:P.value))||!m||((H=y.isActive)==null?void 0:H.value);return qt(_(k,{type:k==="a"?void 0:"button",class:["v-btn",m==null?void 0:m.selectedClass.value,{"v-btn--active":x.value,"v-btn--block":t.block,"v-btn--disabled":C.value,"v-btn--elevated":b.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},r.value,i.value,F?o.value:void 0,u.value,d.value,f.value,g.value,p.value,v.value,l.value,t.class],style:[F?a.value:void 0,c.value,h.value,S.value,t.style],disabled:C.value||void 0,href:y.href.value,onClick:E,value:w.value},{default:()=>{var q;return[gl(!0,"v-btn"),!t.icon&&V&&_("span",{key:"prepend",class:"v-btn__prepend"},[s.prepend?_(Tt,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},s.prepend):_(an,{key:"prepend-icon",icon:t.prependIcon},null)]),_("span",{class:"v-btn__content","data-no-activator":""},[!s.default&&T?_(an,{key:"content-icon",icon:t.icon},null):_(Tt,{key:"content-defaults",disabled:!T,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var Z;return[((Z=s.default)==null?void 0:Z.call(s))??t.text]}})]),!t.icon&&I&&_("span",{key:"append",class:"v-btn__append"},[s.append?_(Tt,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},s.append):_(an,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&_("span",{key:"loader",class:"v-btn__loader"},[((q=s.loader)==null?void 0:q.call(s))??_(eh,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[as("ripple"),!C.value&&t.ripple,null]])}),{group:m}}}),Uy=G({start:Boolean,end:Boolean,icon:Ke,image:String,text:String,...we(),...cs(),...Jt(),...mo(),...Je(),...dt(),...Fr({variant:"flat"})},"VAvatar"),oc=me()({name:"VAvatar",props:Uy(),setup(t,e){let{slots:n}=e;const{themeClasses:s}=Ft(t),{colorClasses:r,colorStyles:i,variantClasses:o}=vl(t),{densityClasses:a}=zs(t),{roundedClasses:l}=Qt(t),{sizeClasses:u,sizeStyles:c}=go(t);return ye(()=>_(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},s.value,r.value,a.value,l.value,u.value,o.value,t.class],style:[i.value,c.value,t.style]},{default:()=>[n.default?_(Tt,{key:"content-defaults",defaults:{VImg:{cover:!0,image:t.image},VIcon:{icon:t.icon}}},{default:()=>[n.default()]}):t.image?_(fo,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?_(an,{key:"icon",icon:t.icon},null):t.text,gl(!1,"v-avatar")]})),{}}}),jy=G({text:String,onClick:Ai(),...we(),...dt()},"VLabel"),vh=me()({name:"VLabel",props:jy(),setup(t,e){let{slots:n}=e;return ye(()=>{var s;return _("label",{class:["v-label",{"v-label--clickable":!!t.onClick},t.class],style:t.style,onClick:t.onClick},[t.text,(s=n.default)==null?void 0:s.call(n)])}),{}}}),ph=Symbol.for("vuetify:selection-control-group"),yh=G({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:Ke,trueIcon:Ke,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:ao},...we(),...cs(),...dt()},"SelectionControlGroup"),Wy=G({...yh({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");me()({name:"VSelectionControlGroup",props:Wy(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const s=ct(t,"modelValue"),r=mn(),i=R(()=>t.id||`v-selection-control-group-${r}`),o=R(()=>t.name||i.value),a=new Set;return ut(ph,{modelValue:s,forceUpdate:()=>{a.forEach(l=>l())},onForceUpdate:l=>{a.add(l),Rt(()=>{a.delete(l)})}}),hn({[t.defaultsTarget]:{color:fe(t,"color"),disabled:fe(t,"disabled"),density:fe(t,"density"),error:fe(t,"error"),inline:fe(t,"inline"),modelValue:s,multiple:R(()=>!!t.multiple||t.multiple==null&&Array.isArray(s.value)),name:o,falseIcon:fe(t,"falseIcon"),trueIcon:fe(t,"trueIcon"),readonly:fe(t,"readonly"),ripple:fe(t,"ripple"),type:fe(t,"type"),valueComparator:fe(t,"valueComparator")}}),ye(()=>{var l;return _("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(l=n.default)==null?void 0:l.call(n)])}),{}}});const bh=G({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...we(),...yh()},"VSelectionControl");function Gy(t){const e=Oe(ph,void 0),{densityClasses:n}=zs(t),s=ct(t,"modelValue"),r=R(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),i=R(()=>t.falseValue!==void 0?t.falseValue:!1),o=R(()=>!!t.multiple||t.multiple==null&&Array.isArray(s.value)),a=R({get(){const h=e?e.modelValue.value:s.value;return o.value?In(h).some(g=>t.valueComparator(g,r.value)):t.valueComparator(h,r.value)},set(h){if(t.readonly)return;const g=h?r.value:i.value;let p=g;o.value&&(p=h?[...In(s.value),g]:In(s.value).filter(v=>!t.valueComparator(v,r.value))),e?e.modelValue.value=p:s.value=p}}),{textColorClasses:l,textColorStyles:u}=Ln(R(()=>{if(!(t.error||t.disabled))return a.value?t.color:t.baseColor})),{backgroundColorClasses:c,backgroundColorStyles:d}=At(R(()=>a.value&&!t.error&&!t.disabled?t.color:void 0)),f=R(()=>a.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:n,trueValue:r,falseValue:i,model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,icon:f}}const ac=me()({name:"VSelectionControl",directives:{Ripple:Ds},inheritAttrs:!1,props:bh(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:n,slots:s}=e;const{group:r,densityClasses:i,icon:o,model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,trueValue:f}=Gy(t),h=mn(),g=be(!1),p=be(!1),v=te(),S=R(()=>t.id||`input-${h}`),m=R(()=>!t.disabled&&!t.readonly);r==null||r.onForceUpdate(()=>{v.value&&(v.value.checked=a.value)});function y(w){m.value&&(g.value=!0,xf(w.target,":focus-visible")!==!1&&(p.value=!0))}function x(){g.value=!1,p.value=!1}function C(w){w.stopPropagation()}function b(w){m.value&&(t.readonly&&r&&It(()=>r.forceUpdate()),a.value=w.target.checked)}return ye(()=>{var I,T;const w=s.label?s.label({label:t.label,props:{for:S.value}}):t.label,[E,k]=sp(n),V=_("input",Pe({ref:v,checked:a.value,disabled:!!t.disabled,id:S.value,onBlur:x,onFocus:y,onInput:b,"aria-disabled":!!t.disabled,type:t.type,value:f.value,name:t.name,"aria-checked":t.type==="checkbox"?a.value:void 0},k),null);return _("div",Pe({class:["v-selection-control",{"v-selection-control--dirty":a.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":g.value,"v-selection-control--focus-visible":p.value,"v-selection-control--inline":t.inline},i.value,t.class]},E,{style:t.style}),[_("div",{class:["v-selection-control__wrapper",l.value],style:u.value},[(I=s.default)==null?void 0:I.call(s,{backgroundColorClasses:c,backgroundColorStyles:d}),qt(_("div",{class:["v-selection-control__input"]},[((T=s.input)==null?void 0:T.call(s,{model:a,textColorClasses:l,textColorStyles:u,backgroundColorClasses:c,backgroundColorStyles:d,inputNode:V,icon:o.value,props:{onFocus:y,onBlur:x,id:S.value}}))??_(Re,null,[o.value&&_(an,{key:"icon",icon:o.value},null),V])]),[[as("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),w&&_(vh,{for:S.value,onClick:C},{default:()=>[w]})])}),{isFocused:g,input:v}}}),qy=G({indeterminate:Boolean,indeterminateIcon:{type:Ke,default:"$checkboxIndeterminate"},...bh({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),qr=me()({name:"VCheckboxBtn",props:qy(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:n}=e;const s=ct(t,"indeterminate"),r=ct(t,"modelValue");function i(l){s.value&&(s.value=!1)}const o=R(()=>s.value?t.indeterminateIcon:t.falseIcon),a=R(()=>s.value?t.indeterminateIcon:t.trueIcon);return ye(()=>{const l=ll(ac.filterProps(t),["modelValue"]);return _(ac,Pe(l,{modelValue:r.value,"onUpdate:modelValue":[u=>r.value=u,i],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:o.value,trueIcon:a.value,"aria-checked":s.value?"mixed":void 0}),n)}),{}}});function Yy(t){const{t:e}=Qp();function n(s){let{name:r}=s;const i={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[r],o=t[`onClick:${r}`],a=o&&i?e(`$vuetify.input.${i}`,t.label??""):void 0;return _(an,{icon:t[`${r}Icon`],"aria-label":a,onClick:o},null)}return{InputIcon:n}}const Xy=G({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...we(),...ml({transition:{component:uy,leaveAbsolute:!0,group:!0}})},"VMessages"),Zy=me()({name:"VMessages",props:Xy(),setup(t,e){let{slots:n}=e;const s=R(()=>In(t.messages)),{textColorClasses:r,textColorStyles:i}=Ln(R(()=>t.color));return ye(()=>_(Cs,{transition:t.transition,tag:"div",class:["v-messages",r.value,t.class],style:[i.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&s.value.map((o,a)=>_("div",{class:"v-messages__message",key:`${a}-${s.value}`},[n.message?n.message({message:o}):o]))]})),{}}}),xh=G({focused:Boolean,"onUpdate:focused":Ai()},"focus");function Ky(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();const n=ct(t,"focused"),s=R(()=>({[`${e}--focused`]:n.value}));function r(){n.value=!0}function i(){n.value=!1}return{focusClasses:s,isFocused:n,focus:r,blur:i}}const Jy=Symbol.for("vuetify:form");function Qy(){return Oe(Jy,null)}const e0=G({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...xh()},"validation");function t0(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mn();const s=ct(t,"modelValue"),r=R(()=>t.validationValue===void 0?s.value:t.validationValue),i=Qy(),o=te([]),a=be(!0),l=R(()=>!!(In(s.value===""?null:s.value).length||In(r.value===""?null:r.value).length)),u=R(()=>!!(t.disabled??(i==null?void 0:i.isDisabled.value))),c=R(()=>!!(t.readonly??(i==null?void 0:i.isReadonly.value))),d=R(()=>{var x;return(x=t.errorMessages)!=null&&x.length?In(t.errorMessages).concat(o.value).slice(0,Math.max(0,+t.maxErrors)):o.value}),f=R(()=>{let x=(t.validateOn??(i==null?void 0:i.validateOn.value))||"input";x==="lazy"&&(x="input lazy");const C=new Set((x==null?void 0:x.split(" "))??[]);return{blur:C.has("blur")||C.has("input"),input:C.has("input"),submit:C.has("submit"),lazy:C.has("lazy")}}),h=R(()=>{var x;return t.error||(x=t.errorMessages)!=null&&x.length?!1:t.rules.length?a.value?o.value.length||f.value.lazy?null:!0:!o.value.length:!0}),g=be(!1),p=R(()=>({[`${e}--error`]:h.value===!1,[`${e}--dirty`]:l.value,[`${e}--disabled`]:u.value,[`${e}--readonly`]:c.value})),v=R(()=>t.name??L(n));no(()=>{i==null||i.register({id:v.value,validate:y,reset:S,resetValidation:m})}),kt(()=>{i==null||i.unregister(v.value)}),Xt(async()=>{f.value.lazy||await y(!0),i==null||i.update(v.value,h.value,d.value)}),on(()=>f.value.input,()=>{le(r,()=>{if(r.value!=null)y();else if(t.focused){const x=le(()=>t.focused,C=>{C||y(),x()})}})}),on(()=>f.value.blur,()=>{le(()=>t.focused,x=>{x||y()})}),le([h,d],()=>{i==null||i.update(v.value,h.value,d.value)});function S(){s.value=null,It(m)}function m(){a.value=!0,f.value.lazy?o.value=[]:y(!0)}async function y(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const C=[];g.value=!0;for(const b of t.rules){if(C.length>=+(t.maxErrors??1))break;const E=await(typeof b=="function"?b:()=>b)(r.value);if(E!==!0){if(E!==!1&&typeof E!="string"){console.warn(`${E} is not a valid value. Rule functions must return boolean true or a string.`);continue}C.push(E||"")}}return o.value=C,g.value=!1,a.value=x,o.value}return{errorMessages:d,isDirty:l,isDisabled:u,isReadonly:c,isPristine:a,isValid:h,isValidating:g,reset:S,resetValidation:m,validate:y,validationClasses:p}}const wh=G({id:String,appendIcon:Ke,centerAffix:{type:Boolean,default:!0},prependIcon:Ke,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":Ai(),"onClick:append":Ai(),...we(),...cs(),...e0()},"VInput"),lc=me()({name:"VInput",props:{...wh()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:n,slots:s,emit:r}=e;const{densityClasses:i}=zs(t),{rtlClasses:o}=Kt(),{InputIcon:a}=Yy(t),l=mn(),u=R(()=>t.id||`input-${l}`),c=R(()=>`${u.value}-messages`),{errorMessages:d,isDirty:f,isDisabled:h,isReadonly:g,isPristine:p,isValid:v,isValidating:S,reset:m,resetValidation:y,validate:x,validationClasses:C}=t0(t,"v-input",u),b=R(()=>({id:u,messagesId:c,isDirty:f,isDisabled:h,isReadonly:g,isPristine:p,isValid:v,isValidating:S,reset:m,resetValidation:y,validate:x})),w=R(()=>{var E;return(E=t.errorMessages)!=null&&E.length||!p.value&&d.value.length?d.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return ye(()=>{var T,F,P,H;const E=!!(s.prepend||t.prependIcon),k=!!(s.append||t.appendIcon),V=w.value.length>0,I=!t.hideDetails||t.hideDetails==="auto"&&(V||!!s.details);return _("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--hide-spin-buttons":t.hideSpinButtons},i.value,o.value,C.value,t.class],style:t.style},[E&&_("div",{key:"prepend",class:"v-input__prepend"},[(T=s.prepend)==null?void 0:T.call(s,b.value),t.prependIcon&&_(a,{key:"prepend-icon",name:"prepend"},null)]),s.default&&_("div",{class:"v-input__control"},[(F=s.default)==null?void 0:F.call(s,b.value)]),k&&_("div",{key:"append",class:"v-input__append"},[t.appendIcon&&_(a,{key:"append-icon",name:"append"},null),(P=s.append)==null?void 0:P.call(s,b.value)]),I&&_("div",{class:"v-input__details"},[_(Zy,{id:c.value,active:V,messages:w.value},{message:s.message}),(H=s.details)==null?void 0:H.call(s,b.value)])])}),{reset:m,resetValidation:y,validate:x,isValid:v,errorMessages:d}}}),vo=["sm","md","lg","xl","xxl"],Ma=Symbol.for("vuetify:display"),uc={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},n0=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uc;return vt(uc,t)};function cc(t){return Ne&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function dc(t){return Ne&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function fc(t){const e=Ne&&!t?window.navigator.userAgent:"ssr";function n(g){return!!e.match(g)}const s=n(/android/i),r=n(/iphone|ipad|ipod/i),i=n(/cordova/i),o=n(/electron/i),a=n(/chrome/i),l=n(/edge/i),u=n(/firefox/i),c=n(/opera/i),d=n(/win/i),f=n(/mac/i),h=n(/linux/i);return{android:s,ios:r,cordova:i,electron:o,chrome:a,edge:l,firefox:u,opera:c,win:d,mac:f,linux:h,touch:Xv,ssr:e==="ssr"}}function s0(t,e){const{thresholds:n,mobileBreakpoint:s}=n0(t),r=be(dc(e)),i=be(fc(e)),o=tt({}),a=be(cc(e));function l(){r.value=dc(),a.value=cc()}function u(){l(),i.value=fc()}return Pn(()=>{const c=a.value<n.sm,d=a.value<n.md&&!c,f=a.value<n.lg&&!(d||c),h=a.value<n.xl&&!(f||d||c),g=a.value<n.xxl&&!(h||f||d||c),p=a.value>=n.xxl,v=c?"xs":d?"sm":f?"md":h?"lg":g?"xl":"xxl",S=typeof s=="number"?s:n[s],m=a.value<S;o.xs=c,o.sm=d,o.md=f,o.lg=h,o.xl=g,o.xxl=p,o.smAndUp=!c,o.mdAndUp=!(c||d),o.lgAndUp=!(c||d||f),o.xlAndUp=!(c||d||f||h),o.smAndDown=!(f||h||g||p),o.mdAndDown=!(h||g||p),o.lgAndDown=!(g||p),o.xlAndDown=!p,o.name=v,o.height=r.value,o.width=a.value,o.mobile=m,o.mobileBreakpoint=s,o.platform=i.value,o.thresholds=n}),Ne&&window.addEventListener("resize",l,{passive:!0}),{...Ja(o),update:u,ssr:!!e}}const r0=G({mobileBreakpoint:[Number,String]},"display");function _h(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt();const n=Oe(Ma);if(!n)throw new Error("Could not find Vuetify display injection");const s=R(()=>{if(!t.mobileBreakpoint)return n.mobile.value;const i=typeof t.mobileBreakpoint=="number"?t.mobileBreakpoint:n.thresholds.value[t.mobileBreakpoint];return n.width.value<i}),r=R(()=>e?{[`${e}--mobile`]:s.value}:{});return{...n,displayClasses:r,mobile:s}}const i0=G({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...we(),...dt()},"VDivider"),mi=me()({name:"VDivider",props:i0(),setup(t,e){let{attrs:n}=e;const{themeClasses:s}=Ft(t),{textColorClasses:r,textColorStyles:i}=Ln(fe(t,"color")),o=R(()=>{const a={};return t.length&&(a[t.vertical?"maxHeight":"maxWidth"]=ie(t.length)),t.thickness&&(a[t.vertical?"borderRightWidth":"borderTopWidth"]=ie(t.thickness)),a});return ye(()=>_("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},s.value,r.value,t.class],style:[o.value,i.value,t.style],"aria-orientation":!n.role||n.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null)),{}}});function zo(t,e){return{x:t.x+e.x,y:t.y+e.y}}function o0(t,e){return{x:t.x-e.x,y:t.y-e.y}}function hc(t,e){if(t.side==="top"||t.side==="bottom"){const{side:n,align:s}=t,r=s==="left"?0:s==="center"?e.width/2:s==="right"?e.width:s,i=n==="top"?0:n==="bottom"?e.height:n;return zo({x:r,y:i},e)}else if(t.side==="left"||t.side==="right"){const{side:n,align:s}=t,r=n==="left"?0:n==="right"?e.width:n,i=s==="top"?0:s==="center"?e.height/2:s==="bottom"?e.height:s;return zo({x:r,y:i},e)}return zo({x:e.width/2,y:e.height/2},e)}const Sh={static:u0,connected:d0},a0=G({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in Sh},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function l0(t,e){const n=te({}),s=te();Ne&&on(()=>!!(e.isActive.value&&t.locationStrategy),i=>{var o,a;le(()=>t.locationStrategy,i),Rt(()=>{window.removeEventListener("resize",r),s.value=void 0}),window.addEventListener("resize",r,{passive:!0}),typeof t.locationStrategy=="function"?s.value=(o=t.locationStrategy(e,t,n))==null?void 0:o.updateLocation:s.value=(a=Sh[t.locationStrategy](e,t,n))==null?void 0:a.updateLocation});function r(i){var o;(o=s.value)==null||o.call(s,i)}return{contentStyles:n,updateLocation:s}}function u0(){}function c0(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const n=Sf(t);return e?n.x+=parseFloat(t.style.right||0):n.x-=parseFloat(t.style.left||0),n.y-=parseFloat(t.style.top||0),n}function d0(t,e,n){(Array.isArray(t.target.value)||Hp(t.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:r,preferredOrigin:i}=ul(()=>{const g=ba(e.location,t.isRtl.value),p=e.origin==="overlap"?g:e.origin==="auto"?Po(g):ba(e.origin,t.isRtl.value);return g.side===p.side&&g.align===Oo(p).align?{preferredAnchor:Lu(g),preferredOrigin:Lu(p)}:{preferredAnchor:g,preferredOrigin:p}}),[o,a,l,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(g=>R(()=>{const p=parseFloat(e[g]);return isNaN(p)?1/0:p})),c=R(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const g=e.offset.split(" ").map(parseFloat);return g.length<2&&g.push(0),g}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let d=!1;const f=new ResizeObserver(()=>{d&&h()});le([t.target,t.contentEl],(g,p)=>{let[v,S]=g,[m,y]=p;m&&!Array.isArray(m)&&f.unobserve(m),v&&!Array.isArray(v)&&f.observe(v),y&&f.unobserve(y),S&&f.observe(S)},{immediate:!0}),Rt(()=>{f.disconnect()});function h(){if(d=!1,requestAnimationFrame(()=>d=!0),!t.target.value||!t.contentEl.value)return;const g=_f(t.target.value),p=c0(t.contentEl.value,t.isRtl.value),v=Ii(t.contentEl.value),S=12;v.length||(v.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(p.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),p.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const m=v.reduce((I,T)=>{const F=T.getBoundingClientRect(),P=new Jn({x:T===document.documentElement?0:F.x,y:T===document.documentElement?0:F.y,width:T.clientWidth,height:T.clientHeight});return I?new Jn({x:Math.max(I.left,P.left),y:Math.max(I.top,P.top),width:Math.min(I.right,P.right)-Math.max(I.left,P.left),height:Math.min(I.bottom,P.bottom)-Math.max(I.top,P.top)}):P},void 0);m.x+=S,m.y+=S,m.width-=S*2,m.height-=S*2;let y={anchor:r.value,origin:i.value};function x(I){const T=new Jn(p),F=hc(I.anchor,g),P=hc(I.origin,T);let{x:H,y:q}=o0(F,P);switch(I.anchor.side){case"top":q-=c.value[0];break;case"bottom":q+=c.value[0];break;case"left":H-=c.value[0];break;case"right":H+=c.value[0];break}switch(I.anchor.align){case"top":q-=c.value[1];break;case"bottom":q+=c.value[1];break;case"left":H-=c.value[1];break;case"right":H+=c.value[1];break}return T.x+=H,T.y+=q,T.width=Math.min(T.width,l.value),T.height=Math.min(T.height,u.value),{overflows:Ou(T,m),x:H,y:q}}let C=0,b=0;const w={x:0,y:0},E={x:!1,y:!1};let k=-1;for(;!(k++>10);){const{x:I,y:T,overflows:F}=x(y);C+=I,b+=T,p.x+=I,p.y+=T;{const P=Pu(y.anchor),H=F.x.before||F.x.after,q=F.y.before||F.y.after;let Z=!1;if(["x","y"].forEach(j=>{if(j==="x"&&H&&!E.x||j==="y"&&q&&!E.y){const ae={anchor:{...y.anchor},origin:{...y.origin}},Q=j==="x"?P==="y"?Oo:Po:P==="y"?Po:Oo;ae.anchor=Q(ae.anchor),ae.origin=Q(ae.origin);const{overflows:se}=x(ae);(se[j].before<=F[j].before&&se[j].after<=F[j].after||se[j].before+se[j].after<(F[j].before+F[j].after)/2)&&(y=ae,Z=E[j]=!0)}}),Z)continue}F.x.before&&(C+=F.x.before,p.x+=F.x.before),F.x.after&&(C-=F.x.after,p.x-=F.x.after),F.y.before&&(b+=F.y.before,p.y+=F.y.before),F.y.after&&(b-=F.y.after,p.y-=F.y.after);{const P=Ou(p,m);w.x=m.width-P.x.before-P.x.after,w.y=m.height-P.y.before-P.y.after,C+=P.x.before,p.x+=P.x.before,b+=P.y.before,p.y+=P.y.before}break}const V=Pu(y.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${y.anchor.side} ${y.anchor.align}`,transformOrigin:`${y.origin.side} ${y.origin.align}`,top:ie(Do(b)),left:t.isRtl.value?void 0:ie(Do(C)),right:t.isRtl.value?ie(Do(-C)):void 0,minWidth:ie(V==="y"?Math.min(o.value,g.width):o.value),maxWidth:ie(mc(pr(w.x,o.value===1/0?0:o.value,l.value))),maxHeight:ie(mc(pr(w.y,a.value===1/0?0:a.value,u.value)))}),{available:w,contentBox:p}}return le(()=>[r.value,i.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>h()),It(()=>{const g=h();if(!g)return;const{available:p,contentBox:v}=g;v.height>p.y&&requestAnimationFrame(()=>{h(),requestAnimationFrame(()=>{h()})})}),{updateLocation:h}}function Do(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function mc(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let Ta=!0;const Oi=[];function f0(t){!Ta||Oi.length?(Oi.push(t),Aa()):(Ta=!1,t(),Aa())}let gc=-1;function Aa(){cancelAnimationFrame(gc),gc=requestAnimationFrame(()=>{const t=Oi.shift();t&&t(),Oi.length?Aa():Ta=!0})}const gi={none:null,close:g0,block:v0,reposition:p0},h0=G({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in gi}},"VOverlay-scroll-strategies");function m0(t,e){if(!Ne)return;let n;Pn(async()=>{n==null||n.stop(),e.isActive.value&&t.scrollStrategy&&(n=Ua(),await new Promise(s=>setTimeout(s)),n.active&&n.run(()=>{var s;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,n):(s=gi[t.scrollStrategy])==null||s.call(gi,e,t,n)}))}),Rt(()=>{n==null||n.stop()})}function g0(t){function e(n){t.isActive.value=!1}Ch(t.targetEl.value??t.contentEl.value,e)}function v0(t,e){var o;const n=(o=t.root.value)==null?void 0:o.offsetParent,s=[...new Set([...Ii(t.targetEl.value,e.contained?n:void 0),...Ii(t.contentEl.value,e.contained?n:void 0)])].filter(a=>!a.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,i=(a=>fl(a)&&a)(n||document.documentElement);i&&t.root.value.classList.add("v-overlay--scroll-blocked"),s.forEach((a,l)=>{a.style.setProperty("--v-body-scroll-x",ie(-a.scrollLeft)),a.style.setProperty("--v-body-scroll-y",ie(-a.scrollTop)),a!==document.documentElement&&a.style.setProperty("--v-scrollbar-offset",ie(r)),a.classList.add("v-overlay-scroll-blocked")}),Rt(()=>{s.forEach((a,l)=>{const u=parseFloat(a.style.getPropertyValue("--v-body-scroll-x")),c=parseFloat(a.style.getPropertyValue("--v-body-scroll-y")),d=a.style.scrollBehavior;a.style.scrollBehavior="auto",a.style.removeProperty("--v-body-scroll-x"),a.style.removeProperty("--v-body-scroll-y"),a.style.removeProperty("--v-scrollbar-offset"),a.classList.remove("v-overlay-scroll-blocked"),a.scrollLeft=-u,a.scrollTop=-c,a.style.scrollBehavior=d}),i&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function p0(t,e,n){let s=!1,r=-1,i=-1;function o(a){f0(()=>{var c,d;const l=performance.now();(d=(c=t.updateLocation).value)==null||d.call(c,a),s=(performance.now()-l)/(1e3/60)>2})}i=(typeof requestIdleCallback>"u"?a=>a():requestIdleCallback)(()=>{n.run(()=>{Ch(t.targetEl.value??t.contentEl.value,a=>{s?(cancelAnimationFrame(r),r=requestAnimationFrame(()=>{r=requestAnimationFrame(()=>{o(a)})})):o(a)})})}),Rt(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(i),cancelAnimationFrame(r)})}function Ch(t,e){const n=[document,...Ii(t)];n.forEach(s=>{s.addEventListener("scroll",e,{passive:!0})}),Rt(()=>{n.forEach(s=>{s.removeEventListener("scroll",e)})})}const y0=Symbol.for("vuetify:v-menu"),b0=G({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function x0(t,e){let n=()=>{};function s(o){n==null||n();const a=Number(o?t.openDelay:t.closeDelay);return new Promise(l=>{n=up(a,()=>{e==null||e(o),l(o)})})}function r(){return s(!0)}function i(){return s(!1)}return{clearDelay:n,runOpenDelay:r,runCloseDelay:i}}const w0=G({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...b0()},"VOverlay-activator");function _0(t,e){let{isActive:n,isTop:s}=e;const r=qe("useActivator"),i=te();let o=!1,a=!1,l=!0;const u=R(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),c=R(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!u.value),{runOpenDelay:d,runCloseDelay:f}=x0(t,w=>{w===(t.openOnHover&&o||u.value&&a)&&!(t.openOnHover&&n.value&&!s.value)&&(n.value!==w&&(l=!0),n.value=w)}),h=te(),g={onClick:w=>{w.stopPropagation(),i.value=w.currentTarget||w.target,n.value||(h.value=[w.clientX,w.clientY]),n.value=!n.value},onMouseenter:w=>{var E;(E=w.sourceCapabilities)!=null&&E.firesTouchEvents||(o=!0,i.value=w.currentTarget||w.target,d())},onMouseleave:w=>{o=!1,f()},onFocus:w=>{xf(w.target,":focus-visible")!==!1&&(a=!0,w.stopPropagation(),i.value=w.currentTarget||w.target,d())},onBlur:w=>{a=!1,w.stopPropagation(),f()}},p=R(()=>{const w={};return c.value&&(w.onClick=g.onClick),t.openOnHover&&(w.onMouseenter=g.onMouseenter,w.onMouseleave=g.onMouseleave),u.value&&(w.onFocus=g.onFocus,w.onBlur=g.onBlur),w}),v=R(()=>{const w={};if(t.openOnHover&&(w.onMouseenter=()=>{o=!0,d()},w.onMouseleave=()=>{o=!1,f()}),u.value&&(w.onFocusin=()=>{a=!0,d()},w.onFocusout=()=>{a=!1,f()}),t.closeOnContentClick){const E=Oe(y0,null);w.onClick=()=>{n.value=!1,E==null||E.closeParents()}}return w}),S=R(()=>{const w={};return t.openOnHover&&(w.onMouseenter=()=>{l&&(o=!0,l=!1,d())},w.onMouseleave=()=>{o=!1,f()}),w});le(s,w=>{w&&(t.openOnHover&&!o&&(!u.value||!a)||u.value&&!a&&(!t.openOnHover||!o))&&(n.value=!1)}),le(n,w=>{w||setTimeout(()=>{h.value=void 0})},{flush:"post"});const m=te();Pn(()=>{m.value&&It(()=>{i.value=Mi(m.value)})});const y=te(),x=R(()=>t.target==="cursor"&&h.value?h.value:y.value?Mi(y.value):Eh(t.target,r)||i.value),C=R(()=>Array.isArray(x.value)?void 0:x.value);let b;return le(()=>!!t.activator,w=>{w&&Ne?(b=Ua(),b.run(()=>{S0(t,r,{activatorEl:i,activatorEvents:p})})):b&&b.stop()},{flush:"post",immediate:!0}),Rt(()=>{b==null||b.stop()}),{activatorEl:i,activatorRef:m,target:x,targetEl:C,targetRef:y,activatorEvents:p,contentEvents:v,scrimEvents:S}}function S0(t,e,n){let{activatorEl:s,activatorEvents:r}=n;le(()=>t.activator,(l,u)=>{if(u&&l!==u){const c=a(u);c&&o(c)}l&&It(()=>i())},{immediate:!0}),le(()=>t.activatorProps,()=>{i()}),Rt(()=>{o()});function i(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;l&&dp(l,Pe(r.value,u))}function o(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;l&&fp(l,Pe(r.value,u))}function a(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const u=Eh(l,e);return s.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,s.value}}function Eh(t,e){var s,r;if(!t)return;let n;if(t==="parent"){let i=(r=(s=e==null?void 0:e.proxy)==null?void 0:s.$el)==null?void 0:r.parentNode;for(;i!=null&&i.hasAttribute("data-no-activator");)i=i.parentNode;n=i}else typeof t=="string"?n=document.querySelector(t):"$el"in t?n=t.$el:n=t;return n}function C0(){if(!Ne)return be(!1);const{ssr:t}=_h();if(t){const e=be(!1);return Xt(()=>{e.value=!0}),e}else return be(!0)}const bl=G({eager:Boolean},"lazy");function Mh(t,e){const n=be(!1),s=R(()=>n.value||t.eager||e.value);le(e,()=>n.value=!0);function r(){t.eager||(n.value=!1)}return{isBooted:n,hasContent:s,onAfterLeave:r}}function po(){const e=qe("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const vc=Symbol.for("vuetify:stack"),js=tt([]);function E0(t,e,n){const s=qe("useStack"),r=!n,i=Oe(vc,void 0),o=tt({activeChildren:new Set});ut(vc,o);const a=be(+e.value);on(t,()=>{var d;const c=(d=js.at(-1))==null?void 0:d[1];a.value=c?c+10:+e.value,r&&js.push([s.uid,a.value]),i==null||i.activeChildren.add(s.uid),Rt(()=>{if(r){const f=pe(js).findIndex(h=>h[0]===s.uid);js.splice(f,1)}i==null||i.activeChildren.delete(s.uid)})});const l=be(!0);r&&Pn(()=>{var d;const c=((d=js.at(-1))==null?void 0:d[0])===s.uid;setTimeout(()=>l.value=c)});const u=R(()=>!o.activeChildren.size);return{globalTop:_r(l),localTop:u,stackStyles:R(()=>({zIndex:a.value}))}}function M0(t){return{teleportTarget:R(()=>{const n=t.value;if(n===!0||!Ne)return;const s=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(s==null)return;let r=s.querySelector(":scope > .v-overlay-container");return r||(r=document.createElement("div"),r.className="v-overlay-container",s.appendChild(r)),r})}}function T0(){return!0}function Th(t,e,n){if(!t||Ah(t,n)===!1)return!1;const s=Rf(e);if(typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&s.host===t.target)return!1;const r=(typeof n.value=="object"&&n.value.include||(()=>[]))();return r.push(e),!r.some(i=>i==null?void 0:i.contains(t.target))}function Ah(t,e){return(typeof e.value=="object"&&e.value.closeConditional||T0)(t)}function A0(t,e,n){const s=typeof n.value=="function"?n.value:n.value.handler;e._clickOutside.lastMousedownWasOutside&&Th(t,e,n)&&setTimeout(()=>{Ah(t,n)&&s&&s(t)},0)}function pc(t,e){const n=Rf(t);e(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&e(n)}const Rh={mounted(t,e){const n=r=>A0(r,t,e),s=r=>{t._clickOutside.lastMousedownWasOutside=Th(r,t,e)};pc(t,r=>{r.addEventListener("click",n,!0),r.addEventListener("mousedown",s,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:n,onMousedown:s}},unmounted(t,e){t._clickOutside&&(pc(t,n=>{var i;if(!n||!((i=t._clickOutside)!=null&&i[e.instance.$.uid]))return;const{onClick:s,onMousedown:r}=t._clickOutside[e.instance.$.uid];n.removeEventListener("click",s,!0),n.removeEventListener("mousedown",r,!0)}),delete t._clickOutside[e.instance.$.uid])}};function R0(t){const{modelValue:e,color:n,...s}=t;return _(Yt,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&_("div",Pe({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},s),null)]})}const xl=G({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...w0(),...we(),...uo(),...bl(),...a0(),...h0(),...dt(),...ml()},"VOverlay"),Ni=me()({name:"VOverlay",directives:{ClickOutside:Rh},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...xl()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterLeave:()=>!0},setup(t,e){let{slots:n,attrs:s,emit:r}=e;const i=ct(t,"modelValue"),o=R({get:()=>i.value,set:ge=>{ge&&t.disabled||(i.value=ge)}}),{teleportTarget:a}=M0(R(()=>t.attach||t.contained)),{themeClasses:l}=Ft(t),{rtlClasses:u,isRtl:c}=Kt(),{hasContent:d,onAfterLeave:f}=Mh(t,o),h=At(R(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:g,localTop:p,stackStyles:v}=E0(o,fe(t,"zIndex"),t._disableGlobalStack),{activatorEl:S,activatorRef:m,target:y,targetEl:x,targetRef:C,activatorEvents:b,contentEvents:w,scrimEvents:E}=_0(t,{isActive:o,isTop:p}),{dimensionStyles:k}=co(t),V=C0(),{scopeId:I}=po();le(()=>t.disabled,ge=>{ge&&(o.value=!1)});const T=te(),F=te(),P=te(),{contentStyles:H,updateLocation:q}=l0(t,{isRtl:c,contentEl:P,target:y,isActive:o});m0(t,{root:T,contentEl:P,targetEl:x,isActive:o,updateLocation:q});function Z(ge){r("click:outside",ge),t.persistent?ce():o.value=!1}function j(ge){return o.value&&g.value&&(!t.scrim||ge.target===F.value)}Ne&&le(o,ge=>{ge?window.addEventListener("keydown",ae):window.removeEventListener("keydown",ae)},{immediate:!0}),kt(()=>{Ne&&window.removeEventListener("keydown",ae)});function ae(ge){var Ve,X;ge.key==="Escape"&&g.value&&(t.persistent?ce():(o.value=!1,(Ve=P.value)!=null&&Ve.contains(document.activeElement)&&((X=S.value)==null||X.focus())))}const Q=ih();on(()=>t.closeOnBack,()=>{Py(Q,ge=>{g.value&&o.value?(ge(!1),t.persistent?ce():o.value=!1):ge()})});const se=te();le(()=>o.value&&(t.absolute||t.contained)&&a.value==null,ge=>{if(ge){const Ve=zp(T.value);Ve&&Ve!==document.scrollingElement&&(se.value=Ve.scrollTop)}});function ce(){t.noClickAnimation||P.value&&Zs(P.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:_a})}function Te(){f(),r("afterLeave")}return ye(()=>{var ge;return _(Re,null,[(ge=n.activator)==null?void 0:ge.call(n,{isActive:o.value,props:Pe({ref:m,targetRef:C},b.value,t.activatorProps)}),V.value&&d.value&&_(Jg,{disabled:!a.value,to:a.value},{default:()=>[_("div",Pe({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":o.value,"v-overlay--contained":t.contained},l.value,u.value,t.class],style:[v.value,{"--v-overlay-opacity":t.opacity,top:ie(se.value)},t.style],ref:T},I,s),[_(R0,Pe({color:h,modelValue:o.value&&!!t.scrim,ref:F},E.value),null),_(Cs,{appear:!0,persisted:!0,transition:t.transition,target:y.value,onAfterLeave:Te},{default:()=>{var Ve;return[qt(_("div",Pe({ref:P,class:["v-overlay__content",t.contentClass],style:[k.value,H.value]},w.value,t.contentProps),[(Ve=n.default)==null?void 0:Ve.call(n,{isActive:o})]),[[oo,o.value],[as("click-outside"),{handler:Z,closeConditional:j,include:()=>[S.value]}]])]}})])]})])}),{activatorEl:S,scrimEl:F,target:y,animateClick:ce,contentEl:P,globalTop:g,localTop:p,updateLocation:q}}}),$o=Symbol("Forwarded refs");function Ho(t,e){let n=t;for(;n;){const s=Reflect.getOwnPropertyDescriptor(n,e);if(s)return s;n=Object.getPrototypeOf(n)}}function Ih(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),s=1;s<e;s++)n[s-1]=arguments[s];return t[$o]=n,new Proxy(t,{get(r,i){if(Reflect.has(r,i))return Reflect.get(r,i);if(!(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))){for(const o of n)if(o.value&&Reflect.has(o.value,i)){const a=Reflect.get(o.value,i);return typeof a=="function"?a.bind(o.value):a}}},has(r,i){if(Reflect.has(r,i))return!0;if(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,i))return!0;return!1},set(r,i,o){if(Reflect.has(r,i))return Reflect.set(r,i,o);if(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))return!1;for(const a of n)if(a.value&&Reflect.has(a.value,i))return Reflect.set(a.value,i,o);return!1},getOwnPropertyDescriptor(r,i){var a;const o=Reflect.getOwnPropertyDescriptor(r,i);if(o)return o;if(!(typeof i=="symbol"||i.startsWith("$")||i.startsWith("__"))){for(const l of n){if(!l.value)continue;const u=Ho(l.value,i)??("_"in l.value?Ho((a=l.value._)==null?void 0:a.setupState,i):void 0);if(u)return u}for(const l of n){const u=l.value&&l.value[$o];if(!u)continue;const c=u.slice();for(;c.length;){const d=c.shift(),f=Ho(d.value,i);if(f)return f;const h=d.value&&d.value[$o];h&&c.push(...h)}}}}})}const I0=G({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...xl({origin:"center center",scrollStrategy:"block",transition:{component:ay},zIndex:2400})},"VDialog"),k0=me()({name:"VDialog",props:I0(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const s=ct(t,"modelValue"),{scopeId:r}=po(),i=te();function o(l){var d,f;const u=l.relatedTarget,c=l.target;if(u!==c&&((d=i.value)!=null&&d.contentEl)&&((f=i.value)!=null&&f.globalTop)&&![document,i.value.contentEl].includes(c)&&!i.value.contentEl.contains(c)){const h=bf(i.value.contentEl);if(!h.length)return;const g=h[0],p=h[h.length-1];u===g?p.focus():g.focus()}}Ne&&le(()=>s.value&&t.retainFocus,l=>{l?document.addEventListener("focusin",o):document.removeEventListener("focusin",o)},{immediate:!0}),le(s,async l=>{var u,c;await It(),l?(u=i.value.contentEl)==null||u.focus({preventScroll:!0}):(c=i.value.activatorEl)==null||c.focus({preventScroll:!0})});const a=R(()=>Pe({"aria-haspopup":"dialog","aria-expanded":String(s.value)},t.activatorProps));return ye(()=>{const l=Ni.filterProps(t);return _(Ni,Pe({ref:i,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},l,{modelValue:s.value,"onUpdate:modelValue":u=>s.value=u,"aria-modal":"true",activatorProps:a.value,role:"dialog"},r),{activator:n.activator,default:function(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];return _(Tt,{root:"VDialog"},{default:()=>{var f;return[(f=n.default)==null?void 0:f.call(n,...c)]}})}})}),Ih({},i)}}),F0=me()({name:"VCardActions",props:we(),setup(t,e){let{slots:n}=e;return hn({VBtn:{slim:!0,variant:"text"}}),ye(()=>{var s;return _("div",{class:["v-card-actions",t.class],style:t.style},[(s=n.default)==null?void 0:s.call(n)])}),{}}}),V0=lo("v-card-subtitle"),L0=lo("v-card-title"),P0=G({appendAvatar:String,appendIcon:Ke,prependAvatar:String,prependIcon:Ke,subtitle:[String,Number],title:[String,Number],...we(),...cs()},"VCardItem"),O0=me()({name:"VCardItem",props:P0(),setup(t,e){let{slots:n}=e;return ye(()=>{var u;const s=!!(t.prependAvatar||t.prependIcon),r=!!(s||n.prepend),i=!!(t.appendAvatar||t.appendIcon),o=!!(i||n.append),a=!!(t.title!=null||n.title),l=!!(t.subtitle!=null||n.subtitle);return _("div",{class:["v-card-item",t.class],style:t.style},[r&&_("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?_(Tt,{key:"prepend-defaults",disabled:!s,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},n.prepend):_(Re,null,[t.prependAvatar&&_(oc,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&_(an,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),_("div",{class:"v-card-item__content"},[a&&_(L0,{key:"title"},{default:()=>{var c;return[((c=n.title)==null?void 0:c.call(n))??t.title]}}),l&&_(V0,{key:"subtitle"},{default:()=>{var c;return[((c=n.subtitle)==null?void 0:c.call(n))??t.subtitle]}}),(u=n.default)==null?void 0:u.call(n)]),o&&_("div",{key:"append",class:"v-card-item__append"},[n.append?_(Tt,{key:"append-defaults",disabled:!i,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},n.append):_(Re,null,[t.appendIcon&&_(an,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&_(oc,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])])}),{}}}),kh=lo("v-card-text"),N0=G({appendAvatar:String,appendIcon:Ke,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:Ke,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...Ir(),...we(),...cs(),...uo(),...ls(),...th(),...pl(),...sh(),...Jt(),...ah(),...Je(),...dt(),...Fr({variant:"elevated"})},"VCard"),B0=me()({name:"VCard",directives:{Ripple:Ds},props:N0(),setup(t,e){let{attrs:n,slots:s}=e;const{themeClasses:r}=Ft(t),{borderClasses:i}=kr(t),{colorClasses:o,colorStyles:a,variantClasses:l}=vl(t),{densityClasses:u}=zs(t),{dimensionStyles:c}=co(t),{elevationClasses:d}=us(t),{loaderClasses:f}=nh(t),{locationStyles:h}=yl(t),{positionClasses:g}=rh(t),{roundedClasses:p}=Qt(t),v=oh(t,n),S=R(()=>t.link!==!1&&v.isLink.value),m=R(()=>!t.disabled&&t.link!==!1&&(t.link||v.isClickable.value));return ye(()=>{const y=S.value?"a":t.tag,x=!!(s.title||t.title!=null),C=!!(s.subtitle||t.subtitle!=null),b=x||C,w=!!(s.append||t.appendAvatar||t.appendIcon),E=!!(s.prepend||t.prependAvatar||t.prependIcon),k=!!(s.image||t.image),V=b||E||w,I=!!(s.text||t.text!=null);return qt(_(y,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":m.value},r.value,i.value,o.value,u.value,d.value,f.value,g.value,p.value,l.value,t.class],style:[a.value,c.value,h.value,t.style],href:v.href.value,onClick:m.value&&v.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var T;return[k&&_("div",{key:"image",class:"v-card__image"},[s.image?_(Tt,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},s.image):_(fo,{key:"image-img",cover:!0,src:t.image},null)]),_(Fy,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:s.loader}),V&&_(O0,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:s.item,prepend:s.prepend,title:s.title,subtitle:s.subtitle,append:s.append}),I&&_(kh,{key:"text"},{default:()=>{var F;return[((F=s.text)==null?void 0:F.call(s))??t.text]}}),(T=s.default)==null?void 0:T.call(s),s.actions&&_(F0,null,{default:s.actions}),gl(m.value,"v-card")]}}),[[as("ripple"),m.value&&t.ripple]])}),{}}}),z0=t=>{const{touchstartX:e,touchendX:n,touchstartY:s,touchendY:r}=t,i=.5,o=16;t.offsetX=n-e,t.offsetY=r-s,Math.abs(t.offsetY)<i*Math.abs(t.offsetX)&&(t.left&&n<e-o&&t.left(t),t.right&&n>e+o&&t.right(t)),Math.abs(t.offsetX)<i*Math.abs(t.offsetY)&&(t.up&&r<s-o&&t.up(t),t.down&&r>s+o&&t.down(t))};function D0(t,e){var s;const n=t.changedTouches[0];e.touchstartX=n.clientX,e.touchstartY=n.clientY,(s=e.start)==null||s.call(e,{originalEvent:t,...e})}function $0(t,e){var s;const n=t.changedTouches[0];e.touchendX=n.clientX,e.touchendY=n.clientY,(s=e.end)==null||s.call(e,{originalEvent:t,...e}),z0(e)}function H0(t,e){var s;const n=t.changedTouches[0];e.touchmoveX=n.clientX,e.touchmoveY=n.clientY,(s=e.move)==null||s.call(e,{originalEvent:t,...e})}function U0(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:t.left,right:t.right,up:t.up,down:t.down,start:t.start,move:t.move,end:t.end};return{touchstart:n=>D0(n,e),touchend:n=>$0(n,e),touchmove:n=>H0(n,e)}}function j0(t,e){var a;const n=e.value,s=n!=null&&n.parent?t.parentElement:t,r=(n==null?void 0:n.options)??{passive:!0},i=(a=e.instance)==null?void 0:a.$.uid;if(!s||!i)return;const o=U0(e.value);s._touchHandlers=s._touchHandlers??Object.create(null),s._touchHandlers[i]=o,mf(o).forEach(l=>{s.addEventListener(l,o[l],r)})}function W0(t,e){var i,o;const n=(i=e.value)!=null&&i.parent?t.parentElement:t,s=(o=e.instance)==null?void 0:o.$.uid;if(!(n!=null&&n._touchHandlers)||!s)return;const r=n._touchHandlers[s];mf(r).forEach(a=>{n.removeEventListener(a,r[a])}),delete n._touchHandlers[s]}const G0={mounted:j0,unmounted:W0},wl=Symbol.for("vuetify:v-slider");function q0(t,e,n){const s=n==="vertical",r=e.getBoundingClientRect(),i="touches"in t?t.touches[0]:t;return s?i.clientY-(r.top+r.height/2):i.clientX-(r.left+r.width/2)}function Y0(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const X0=G({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...Jt(),...ls({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Z0=t=>{const e=R(()=>parseFloat(t.min)),n=R(()=>parseFloat(t.max)),s=R(()=>+t.step>0?parseFloat(t.step):0),r=R(()=>Math.max(Iu(s.value),Iu(e.value)));function i(o){if(o=parseFloat(o),s.value<=0)return o;const a=pr(o,e.value,n.value),l=e.value%s.value,u=Math.round((a-l)/s.value)*s.value+l;return parseFloat(Math.min(u,n.value).toFixed(r.value))}return{min:e,max:n,step:s,decimals:r,roundValue:i}},K0=t=>{let{props:e,steps:n,onSliderStart:s,onSliderMove:r,onSliderEnd:i,getActiveThumb:o}=t;const{isRtl:a}=Kt(),l=fe(e,"reverse"),u=R(()=>e.direction==="vertical"),c=R(()=>u.value!==l.value),{min:d,max:f,step:h,decimals:g,roundValue:p}=n,v=R(()=>parseInt(e.thumbSize,10)),S=R(()=>parseInt(e.tickSize,10)),m=R(()=>parseInt(e.trackSize,10)),y=R(()=>(f.value-d.value)/h.value),x=fe(e,"disabled"),C=R(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),b=R(()=>e.error||e.disabled?void 0:e.trackColor??e.color),w=R(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),E=be(!1),k=be(0),V=te(),I=te();function T(X){var O;const xe=e.direction==="vertical",gn=xe?"top":"left",ke=xe?"height":"width",wt=xe?"clientY":"clientX",{[gn]:Qe,[ke]:Nn}=(O=V.value)==null?void 0:O.$el.getBoundingClientRect(),M=Y0(X,wt);let A=Math.min(Math.max((M-Qe-k.value)/Nn,0),1)||0;return(xe?c.value:c.value!==a.value)&&(A=1-A),p(d.value+A*(f.value-d.value))}const F=X=>{i({value:T(X)}),E.value=!1,k.value=0},P=X=>{I.value=o(X),I.value&&(I.value.focus(),E.value=!0,I.value.contains(X.target)?k.value=q0(X,I.value,e.direction):(k.value=0,r({value:T(X)})),s({value:T(X)}))},H={passive:!0,capture:!0};function q(X){r({value:T(X)})}function Z(X){X.stopPropagation(),X.preventDefault(),F(X),window.removeEventListener("mousemove",q,H),window.removeEventListener("mouseup",Z)}function j(X){var xe;F(X),window.removeEventListener("touchmove",q,H),(xe=X.target)==null||xe.removeEventListener("touchend",j)}function ae(X){var xe;P(X),window.addEventListener("touchmove",q,H),(xe=X.target)==null||xe.addEventListener("touchend",j,{passive:!1})}function Q(X){X.preventDefault(),P(X),window.addEventListener("mousemove",q,H),window.addEventListener("mouseup",Z,{passive:!1})}const se=X=>{const xe=(X-d.value)/(f.value-d.value)*100;return pr(isNaN(xe)?0:xe,0,100)},ce=fe(e,"showTicks"),Te=R(()=>ce.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(X=>({value:X,position:se(X),label:X.toString()})):Object.keys(e.ticks).map(X=>({value:parseFloat(X),position:se(parseFloat(X)),label:e.ticks[X]})):y.value!==1/0?al(y.value+1).map(X=>{const xe=d.value+X*h.value;return{value:xe,position:se(xe)}}):[]:[]),ge=R(()=>Te.value.some(X=>{let{label:xe}=X;return!!xe})),Ve={activeThumbRef:I,color:fe(e,"color"),decimals:g,disabled:x,direction:fe(e,"direction"),elevation:fe(e,"elevation"),hasLabels:ge,isReversed:l,indexFromEnd:c,min:d,max:f,mousePressed:E,numTicks:y,onSliderMousedown:Q,onSliderTouchstart:ae,parsedTicks:Te,parseMouseMove:T,position:se,readonly:fe(e,"readonly"),rounded:fe(e,"rounded"),roundValue:p,showTicks:ce,startOffset:k,step:h,thumbSize:v,thumbColor:C,thumbLabel:fe(e,"thumbLabel"),ticks:fe(e,"ticks"),tickSize:S,trackColor:b,trackContainerRef:V,trackFillColor:w,trackSize:m,vertical:u};return ut(wl,Ve),Ve},J0=G({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...we()},"VSliderThumb"),Q0=me()({name:"VSliderThumb",directives:{Ripple:Ds},props:J0(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n,emit:s}=e;const r=Oe(wl),{isRtl:i,rtlClasses:o}=Kt();if(!r)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:a,step:l,disabled:u,thumbSize:c,thumbLabel:d,direction:f,isReversed:h,vertical:g,readonly:p,elevation:v,mousePressed:S,decimals:m,indexFromEnd:y}=r,x=R(()=>u.value?void 0:v.value),{elevationClasses:C}=us(x),{textColorClasses:b,textColorStyles:w}=Ln(a),{pageup:E,pagedown:k,end:V,home:I,left:T,right:F,down:P,up:H}=ep,q=[E,k,V,I,T,F,P,H],Z=R(()=>l.value?[1,2,3]:[1,5,10]);function j(Q,se){if(!q.includes(Q.key))return;Q.preventDefault();const ce=l.value||.1,Te=(t.max-t.min)/ce;if([T,F,P,H].includes(Q.key)){const Ve=(g.value?[i.value?T:F,h.value?P:H]:y.value!==i.value?[T,H]:[F,H]).includes(Q.key)?1:-1,X=Q.shiftKey?2:Q.ctrlKey?1:0;se=se+Ve*ce*Z.value[X]}else if(Q.key===I)se=t.min;else if(Q.key===V)se=t.max;else{const ge=Q.key===k?1:-1;se=se-ge*ce*(Te>100?Te/10:10)}return Math.max(t.min,Math.min(t.max,se))}function ae(Q){const se=j(Q,t.modelValue);se!=null&&s("update:modelValue",se)}return ye(()=>{const Q=ie(y.value?100-t.position:t.position,"%");return _("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&S.value},t.class,o.value],style:[{"--v-slider-thumb-position":Q,"--v-slider-thumb-size":ie(c.value)},t.style],role:"slider",tabindex:u.value?-1:0,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!p.value,"aria-orientation":f.value,onKeydown:p.value?void 0:ae},[_("div",{class:["v-slider-thumb__surface",b.value,C.value],style:{...w.value}},null),qt(_("div",{class:["v-slider-thumb__ripple",b.value],style:w.value},null),[[as("ripple"),t.ripple,null,{circle:!0,center:!0}]]),_(ly,{origin:"bottom center"},{default:()=>{var se;return[qt(_("div",{class:"v-slider-thumb__label-container"},[_("div",{class:["v-slider-thumb__label"]},[_("div",null,[((se=n["thumb-label"])==null?void 0:se.call(n,{modelValue:t.modelValue}))??t.modelValue.toFixed(l.value?m.value:1)])])]),[[oo,d.value&&t.focused||d.value==="always"]])]}})])}),{}}}),e1=G({start:{type:Number,required:!0},stop:{type:Number,required:!0},...we()},"VSliderTrack"),t1=me()({name:"VSliderTrack",props:e1(),emits:{},setup(t,e){let{slots:n}=e;const s=Oe(wl);if(!s)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:r,parsedTicks:i,rounded:o,showTicks:a,tickSize:l,trackColor:u,trackFillColor:c,trackSize:d,vertical:f,min:h,max:g,indexFromEnd:p}=s,{roundedClasses:v}=Qt(o),{backgroundColorClasses:S,backgroundColorStyles:m}=At(c),{backgroundColorClasses:y,backgroundColorStyles:x}=At(u),C=R(()=>`inset-${f.value?"block":"inline"}-${p.value?"end":"start"}`),b=R(()=>f.value?"height":"width"),w=R(()=>({[C.value]:"0%",[b.value]:"100%"})),E=R(()=>t.stop-t.start),k=R(()=>({[C.value]:ie(t.start,"%"),[b.value]:ie(E.value,"%")})),V=R(()=>a.value?(f.value?i.value.slice().reverse():i.value).map((T,F)=>{var H;const P=T.value!==h.value&&T.value!==g.value?ie(T.position,"%"):void 0;return _("div",{key:T.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":T.position>=t.start&&T.position<=t.stop,"v-slider-track__tick--first":T.value===h.value,"v-slider-track__tick--last":T.value===g.value}],style:{[C.value]:P}},[(T.label||n["tick-label"])&&_("div",{class:"v-slider-track__tick-label"},[((H=n["tick-label"])==null?void 0:H.call(n,{tick:T,index:F}))??T.label])])}):[]);return ye(()=>_("div",{class:["v-slider-track",v.value,t.class],style:[{"--v-slider-track-size":ie(d.value),"--v-slider-tick-size":ie(l.value)},t.style]},[_("div",{class:["v-slider-track__background",y.value,{"v-slider-track__background--opacity":!!r.value||!c.value}],style:{...w.value,...x.value}},null),_("div",{class:["v-slider-track__fill",S.value],style:{...k.value,...m.value}},null),a.value&&_("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":a.value==="always"}]},[V.value])])),{}}}),n1=G({...xh(),...X0(),...wh(),modelValue:{type:[Number,String],default:0}},"VSlider"),Yr=me()({name:"VSlider",props:n1(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:n,emit:s}=e;const r=te(),{rtlClasses:i}=Kt(),o=Z0(t),a=ct(t,"modelValue",void 0,b=>o.roundValue(b??o.min.value)),{min:l,max:u,mousePressed:c,roundValue:d,onSliderMousedown:f,onSliderTouchstart:h,trackContainerRef:g,position:p,hasLabels:v,readonly:S}=K0({props:t,steps:o,onSliderStart:()=>{s("start",a.value)},onSliderEnd:b=>{let{value:w}=b;const E=d(w);a.value=E,s("end",E)},onSliderMove:b=>{let{value:w}=b;return a.value=d(w)},getActiveThumb:()=>{var b;return(b=r.value)==null?void 0:b.$el}}),{isFocused:m,focus:y,blur:x}=Ky(t),C=R(()=>p(a.value));return ye(()=>{const b=lc.filterProps(t),w=!!(t.label||n.label||n.prepend);return _(lc,Pe({class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||v.value,"v-slider--focused":m.value,"v-slider--pressed":c.value,"v-slider--disabled":t.disabled},i.value,t.class],style:t.style},b,{focused:m.value}),{...n,prepend:w?E=>{var k,V;return _(Re,null,[((k=n.label)==null?void 0:k.call(n,E))??(t.label?_(vh,{id:E.id.value,class:"v-slider__label",text:t.label},null):void 0),(V=n.prepend)==null?void 0:V.call(n,E)])}:void 0,default:E=>{let{id:k,messagesId:V}=E;return _("div",{class:"v-slider__container",onMousedown:S.value?void 0:f,onTouchstartPassive:S.value?void 0:h},[_("input",{id:k.value,name:t.name||k.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:a.value},null),_(t1,{ref:g,start:0,stop:C.value},{"tick-label":n["tick-label"]}),_(Q0,{ref:r,"aria-describedby":V.value,focused:m.value,min:l.value,max:u.value,modelValue:a.value,"onUpdate:modelValue":I=>a.value=I,position:C.value,elevation:t.elevation,onFocus:y,onBlur:x,ripple:t.ripple},{"thumb-label":n["thumb-label"]})])}})}),{}}}),Ra={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function s1(t,e){const n=[];let s=[];const r=Fh(t),i=Vh(t),o=(r.getDay()-Ra[e.slice(-2).toUpperCase()]+7)%7,a=(i.getDay()-Ra[e.slice(-2).toUpperCase()]+7)%7;for(let l=0;l<o;l++){const u=new Date(r);u.setDate(u.getDate()-(o-l)),s.push(u)}for(let l=1;l<=i.getDate();l++){const u=new Date(t.getFullYear(),t.getMonth(),l);s.push(u),s.length===7&&(n.push(s),s=[])}for(let l=1;l<7-a;l++){const u=new Date(i);u.setDate(u.getDate()+l),s.push(u)}return s.length>0&&n.push(s),n}function r1(t){const e=new Date(t);for(;e.getDay()!==0;)e.setDate(e.getDate()-1);return e}function i1(t){const e=new Date(t);for(;e.getDay()!==6;)e.setDate(e.getDate()+1);return e}function Fh(t){return new Date(t.getFullYear(),t.getMonth(),1)}function Vh(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function o1(t){const e=t.split("-").map(Number);return new Date(e[0],e[1]-1,e[2])}const a1=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function Lh(t){if(t==null)return new Date;if(t instanceof Date)return t;if(typeof t=="string"){let e;if(a1.test(t))return o1(t);if(e=Date.parse(t),!isNaN(e))return new Date(e)}return null}const yc=new Date(2e3,0,2);function l1(t){const e=Ra[t.slice(-2).toUpperCase()];return al(7).map(n=>{const s=new Date(yc);return s.setDate(yc.getDate()+e+n),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(s)})}function u1(t,e,n,s){const r=Lh(t)??new Date,i=s==null?void 0:s[e];if(typeof i=="function")return i(r,e,n);let o={};switch(e){case"fullDateWithWeekday":o={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"hours12h":o={hour:"numeric",hour12:!0};break;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":o={day:"2-digit",month:"2-digit",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(r.getDate());case"shortDate":o={year:"2-digit",month:"numeric",day:"numeric"};break;case"weekdayShort":o={weekday:"short"};break;case"year":o={year:"numeric"};break;default:o=i??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(r)}function c1(t,e){const n=t.toJsDate(e),s=n.getFullYear(),r=Fu(String(n.getMonth()+1),2,"0"),i=Fu(String(n.getDate()),2,"0");return`${s}-${r}-${i}`}function d1(t){const[e,n,s]=t.split("-").map(Number);return new Date(e,n-1,s)}function f1(t,e){const n=new Date(t);return n.setMinutes(n.getMinutes()+e),n}function h1(t,e){const n=new Date(t);return n.setHours(n.getHours()+e),n}function m1(t,e){const n=new Date(t);return n.setDate(n.getDate()+e),n}function g1(t,e){const n=new Date(t);return n.setDate(n.getDate()+e*7),n}function v1(t,e){const n=new Date(t);return n.setMonth(n.getMonth()+e),n}function p1(t){return t.getFullYear()}function y1(t){return t.getMonth()}function b1(t){return new Date(t.getFullYear(),t.getMonth()+1,1)}function x1(t){return t.getHours()}function w1(t){return t.getMinutes()}function _1(t){return new Date(t.getFullYear(),0,1)}function S1(t){return new Date(t.getFullYear(),11,31)}function C1(t,e){return Ia(t,e[0])&&M1(t,e[1])}function E1(t){const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function Ia(t,e){return t.getTime()>e.getTime()}function M1(t,e){return t.getTime()<e.getTime()}function bc(t,e){return t.getTime()===e.getTime()}function T1(t,e){return t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}function A1(t,e){return t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}function R1(t,e,n){const s=new Date(t),r=new Date(e);switch(n){case"years":return s.getFullYear()-r.getFullYear();case"quarters":return Math.floor((s.getMonth()-r.getMonth()+(s.getFullYear()-r.getFullYear())*12)/4);case"months":return s.getMonth()-r.getMonth()+(s.getFullYear()-r.getFullYear())*12;case"weeks":return Math.floor((s.getTime()-r.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((s.getTime()-r.getTime())/(1e3*60*60*24));case"hours":return Math.floor((s.getTime()-r.getTime())/(1e3*60*60));case"minutes":return Math.floor((s.getTime()-r.getTime())/(1e3*60));case"seconds":return Math.floor((s.getTime()-r.getTime())/1e3);default:return s.getTime()-r.getTime()}}function I1(t,e){const n=new Date(t);return n.setHours(e),n}function k1(t,e){const n=new Date(t);return n.setMinutes(e),n}function F1(t,e){const n=new Date(t);return n.setMonth(e),n}function V1(t,e){const n=new Date(t);return n.setFullYear(e),n}function L1(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)}function P1(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59,999)}class O1{constructor(e){this.locale=e.locale,this.formats=e.formats}date(e){return Lh(e)}toJsDate(e){return e}toISO(e){return c1(this,e)}parseISO(e){return d1(e)}addMinutes(e,n){return f1(e,n)}addHours(e,n){return h1(e,n)}addDays(e,n){return m1(e,n)}addWeeks(e,n){return g1(e,n)}addMonths(e,n){return v1(e,n)}getWeekArray(e){return s1(e,this.locale)}startOfWeek(e){return r1(e)}endOfWeek(e){return i1(e)}startOfMonth(e){return Fh(e)}endOfMonth(e){return Vh(e)}format(e,n){return u1(e,n,this.locale,this.formats)}isEqual(e,n){return bc(e,n)}isValid(e){return E1(e)}isWithinRange(e,n){return C1(e,n)}isAfter(e,n){return Ia(e,n)}isBefore(e,n){return!Ia(e,n)&&!bc(e,n)}isSameDay(e,n){return T1(e,n)}isSameMonth(e,n){return A1(e,n)}setMinutes(e,n){return k1(e,n)}setHours(e,n){return I1(e,n)}setMonth(e,n){return F1(e,n)}setYear(e,n){return V1(e,n)}getDiff(e,n,s){return R1(e,n,s)}getWeekdays(){return l1(this.locale)}getYear(e){return p1(e)}getMonth(e){return y1(e)}getNextMonth(e){return b1(e)}getHours(e){return x1(e)}getMinutes(e){return w1(e)}startOfDay(e){return L1(e)}endOfDay(e){return P1(e)}startOfYear(e){return _1(e)}endOfYear(e){return S1(e)}}const N1=Symbol.for("vuetify:date-options"),xc=Symbol.for("vuetify:date-adapter");function B1(t,e){const n=vt({adapter:O1,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},t);return{options:n,instance:z1(n,e)}}function z1(t,e){const n=tt(typeof t.adapter=="function"?new t.adapter({locale:t.locale[e.current.value]??e.current.value,formats:t.formats}):t.adapter);return le(e.current,s=>{n.locale=t.locale[s]??s??n.locale}),n}const D1=Symbol.for("vuetify:goto");function $1(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5}}}function H1(t,e){return{rtl:e.isRtl,options:vt($1(),t)}}const U1=G({fluid:{type:Boolean,default:!1},...we(),...Je()},"VContainer"),j1=me()({name:"VContainer",props:U1(),setup(t,e){let{slots:n}=e;const{rtlClasses:s}=Kt();return ye(()=>_(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},s.value,t.class],style:t.style},n)),{}}}),Ph=vo.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}),Oh=vo.reduce((t,e)=>{const n="offset"+cn(e);return t[n]={type:[String,Number],default:null},t},{}),Nh=vo.reduce((t,e)=>{const n="order"+cn(e);return t[n]={type:[String,Number],default:null},t},{}),wc={col:Object.keys(Ph),offset:Object.keys(Oh),order:Object.keys(Nh)};function W1(t,e,n){let s=t;if(!(n==null||n===!1)){if(e){const r=e.replace(t,"");s+=`-${r}`}return t==="col"&&(s="v-"+s),t==="col"&&(n===""||n===!0)||(s+=`-${n}`),s.toLowerCase()}}const G1=["auto","start","end","center","baseline","stretch"],q1=G({cols:{type:[Boolean,String,Number],default:!1},...Ph,offset:{type:[String,Number],default:null},...Oh,order:{type:[String,Number],default:null},...Nh,alignSelf:{type:String,default:null,validator:t=>G1.includes(t)},...we(),...Je()},"VCol"),Y1=me()({name:"VCol",props:q1(),setup(t,e){let{slots:n}=e;const s=R(()=>{const r=[];let i;for(i in wc)wc[i].forEach(a=>{const l=t[a],u=W1(i,a,l);u&&r.push(u)});const o=r.some(a=>a.startsWith("v-col-"));return r.push({"v-col":!o||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),r});return()=>{var r;return On(t.tag,{class:[s.value,t.class],style:t.style},(r=n.default)==null?void 0:r.call(n))}}}),_l=["start","end","center"],Bh=["space-between","space-around","space-evenly"];function Sl(t,e){return vo.reduce((n,s)=>{const r=t+cn(s);return n[r]=e(),n},{})}const X1=[..._l,"baseline","stretch"],zh=t=>X1.includes(t),Dh=Sl("align",()=>({type:String,default:null,validator:zh})),Z1=[..._l,...Bh],$h=t=>Z1.includes(t),Hh=Sl("justify",()=>({type:String,default:null,validator:$h})),K1=[..._l,...Bh,"stretch"],Uh=t=>K1.includes(t),jh=Sl("alignContent",()=>({type:String,default:null,validator:Uh})),_c={align:Object.keys(Dh),justify:Object.keys(Hh),alignContent:Object.keys(jh)},J1={align:"align",justify:"justify",alignContent:"align-content"};function Q1(t,e,n){let s=J1[t];if(n!=null){if(e){const r=e.replace(t,"");s+=`-${r}`}return s+=`-${n}`,s.toLowerCase()}}const eb=G({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:zh},...Dh,justify:{type:String,default:null,validator:$h},...Hh,alignContent:{type:String,default:null,validator:Uh},...jh,...we(),...Je()},"VRow"),tb=me()({name:"VRow",props:eb(),setup(t,e){let{slots:n}=e;const s=R(()=>{const r=[];let i;for(i in _c)_c[i].forEach(o=>{const a=t[o],l=Q1(i,o,a);l&&r.push(l)});return r.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),r});return()=>{var r;return On(t.tag,{class:["v-row",s.value,t.class],style:t.style},(r=n.default)==null?void 0:r.call(n))}}}),ka=lo("v-spacer","div","VSpacer"),wr=Symbol.for("vuetify:v-expansion-panel"),nb=["default","accordion","inset","popout"],sb=G({color:String,flat:Boolean,focusable:Boolean,static:Boolean,tile:Boolean,variant:{type:String,default:"default",validator:t=>nb.includes(t)},readonly:Boolean,...we(),...Wf(),...Je(),...dt()},"VExpansionPanels"),rb=me()({name:"VExpansionPanels",props:sb(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;Yf(t,wr);const{themeClasses:s}=Ft(t),r=R(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return hn({VExpansionPanel:{color:fe(t,"color"),readonly:fe(t,"readonly")},VExpansionPanelTitle:{focusable:fe(t,"focusable"),static:fe(t,"static")}}),ye(()=>_(t.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":t.flat,"v-expansion-panels--tile":t.tile},s.value,r.value,t.class],style:t.style},n)),{}}}),ib=G({...we(),...bl()},"VExpansionPanelText"),Wh=me()({name:"VExpansionPanelText",props:ib(),setup(t,e){let{slots:n}=e;const s=Oe(wr);if(!s)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:r,onAfterLeave:i}=Mh(t,s.isSelected);return ye(()=>_(Bf,{onAfterLeave:i},{default:()=>{var o;return[qt(_("div",{class:["v-expansion-panel-text",t.class],style:t.style},[n.default&&r.value&&_("div",{class:"v-expansion-panel-text__wrapper"},[(o=n.default)==null?void 0:o.call(n)])]),[[oo,s.isSelected.value]])]}})),{}}}),Gh=G({color:String,expandIcon:{type:Ke,default:"$expand"},collapseIcon:{type:Ke,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...we()},"VExpansionPanelTitle"),qh=me()({name:"VExpansionPanelTitle",directives:{Ripple:Ds},props:Gh(),setup(t,e){let{slots:n}=e;const s=Oe(wr);if(!s)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:r,backgroundColorStyles:i}=At(t,"color"),o=R(()=>({collapseIcon:t.collapseIcon,disabled:s.disabled.value,expanded:s.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly}));return ye(()=>{var a;return qt(_("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":s.isSelected.value,"v-expansion-panel-title--focusable":t.focusable,"v-expansion-panel-title--static":t.static},r.value,t.class],style:[i.value,t.style],type:"button",tabindex:s.disabled.value?-1:void 0,disabled:s.disabled.value,"aria-expanded":s.isSelected.value,onClick:t.readonly?void 0:s.toggle},[_("span",{class:"v-expansion-panel-title__overlay"},null),(a=n.default)==null?void 0:a.call(n,o.value),!t.hideActions&&_("span",{class:"v-expansion-panel-title__icon"},[n.actions?n.actions(o.value):_(an,{icon:s.isSelected.value?t.collapseIcon:t.expandIcon},null)])]),[[as("ripple"),t.ripple]])}),{}}}),ob=G({title:String,text:String,bgColor:String,...we(),...ls(),...Gf(),...bl(),...Jt(),...Je(),...Gh()},"VExpansionPanel"),ab=me()({name:"VExpansionPanel",props:ob(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:n}=e;const s=qf(t,wr),{backgroundColorClasses:r,backgroundColorStyles:i}=At(t,"bgColor"),{elevationClasses:o}=us(t),{roundedClasses:a}=Qt(t),l=R(()=>(s==null?void 0:s.disabled.value)||t.disabled),u=R(()=>s.group.items.value.reduce((f,h,g)=>(s.group.selected.value.includes(h.id)&&f.push(g),f),[])),c=R(()=>{const f=s.group.items.value.findIndex(h=>h.id===s.id);return!s.isSelected.value&&u.value.some(h=>h-f===1)}),d=R(()=>{const f=s.group.items.value.findIndex(h=>h.id===s.id);return!s.isSelected.value&&u.value.some(h=>h-f===-1)});return ut(wr,s),hn({VExpansionPanelText:{eager:fe(t,"eager")},VExpansionPanelTitle:{readonly:fe(t,"readonly")}}),ye(()=>{const f=!!(n.text||t.text),h=!!(n.title||t.title);return _(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":s.isSelected.value,"v-expansion-panel--before-active":c.value,"v-expansion-panel--after-active":d.value,"v-expansion-panel--disabled":l.value},a.value,r.value,t.class],style:[i.value,t.style]},{default:()=>{var g;return[_("div",{class:["v-expansion-panel__shadow",...o.value]},null),h&&_(qh,{key:"title",collapseIcon:t.collapseIcon,color:t.color,expandIcon:t.expandIcon,hideActions:t.hideActions,ripple:t.ripple},{default:()=>[n.title?n.title():t.title]}),f&&_(Wh,{key:"text"},{default:()=>[n.text?n.text():t.text]}),(g=n.default)==null?void 0:g.call(n)]}})}),{}}}),lb=G({...we(),...Up()},"VLayout"),ub=me()({name:"VLayout",props:lb(),setup(t,e){let{slots:n}=e;const{layoutClasses:s,layoutStyles:r,getLayoutItem:i,items:o,layoutRef:a}=Yp(t);return ye(()=>{var l;return _("div",{ref:a,class:[s.value,t.class],style:[r.value,t.style]},[(l=n.default)==null?void 0:l.call(n)])}),{getLayoutItem:i,items:o}}}),cb=G({scrollable:Boolean,...we(),...Je({tag:"main"})},"VMain"),db=me()({name:"VMain",props:cb(),setup(t,e){let{slots:n}=e;const{mainStyles:s}=Wp(),{ssrBootStyles:r}=Uf();return ye(()=>_(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[s.value,r.value,t.style]},{default:()=>{var i,o;return[t.scrollable?_("div",{class:"v-main__scroller"},[(i=n.default)==null?void 0:i.call(n)]):(o=n.default)==null?void 0:o.call(n)]}})),{}}});function fb(t){let{rootEl:e,isSticky:n,layoutItemStyles:s}=t;const r=be(!1),i=be(0),o=R(()=>{const u=typeof r.value=="boolean"?"top":r.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,r.value?{[u]:ie(i.value)}:{top:s.value.top}]});Xt(()=>{le(n,u=>{u?window.addEventListener("scroll",l,{passive:!0}):window.removeEventListener("scroll",l)},{immediate:!0})}),kt(()=>{window.removeEventListener("scroll",l)});let a=0;function l(){const u=a>window.scrollY?"up":"down",c=e.value.getBoundingClientRect(),d=parseFloat(s.value.top??0),f=window.scrollY-Math.max(0,i.value-d),h=c.height+Math.max(i.value,d)-window.scrollY-window.innerHeight,g=parseFloat(getComputedStyle(e.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-d?(r.value="top",i.value=d):u==="up"&&r.value==="bottom"||u==="down"&&r.value==="top"?(i.value=window.scrollY+c.top-g,r.value=!0):u==="down"&&h<=0?(i.value=0,r.value="bottom"):u==="up"&&f<=0&&(g?r.value!=="top"&&(i.value=-f+g+d,r.value="top"):(i.value=c.top+f,r.value="top")),a=window.scrollY}return{isStuck:r,stickyStyles:o}}const hb=100,mb=20;function Sc(t){return(t<0?-1:1)*Math.sqrt(Math.abs(t))*1.41421356237}function Cc(t){if(t.length<2)return 0;if(t.length===2)return t[1].t===t[0].t?0:(t[1].d-t[0].d)/(t[1].t-t[0].t);let e=0;for(let n=t.length-1;n>0;n--){if(t[n].t===t[n-1].t)continue;const s=Sc(e),r=(t[n].d-t[n-1].d)/(t[n].t-t[n-1].t);e+=(r-s)*Math.abs(r),n===t.length-1&&(e*=.5)}return Sc(e)*1e3}function gb(){const t={};function e(r){Array.from(r.changedTouches).forEach(i=>{(t[i.identifier]??(t[i.identifier]=new ip(mb))).push([r.timeStamp,i])})}function n(r){Array.from(r.changedTouches).forEach(i=>{delete t[i.identifier]})}function s(r){var u;const i=(u=t[r])==null?void 0:u.values().reverse();if(!i)throw new Error(`No samples for touch id ${r}`);const o=i[0],a=[],l=[];for(const c of i){if(o[0]-c[0]>hb)break;a.push({t:c[0],d:c[1].clientX}),l.push({t:c[0],d:c[1].clientY})}return{x:Cc(a),y:Cc(l),get direction(){const{x:c,y:d}=this,[f,h]=[Math.abs(c),Math.abs(d)];return f>h&&c>=0?"right":f>h&&c<=0?"left":h>f&&d>=0?"down":h>f&&d<=0?"up":vb()}}}return{addMovement:e,endTouch:n,getVelocity:s}}function vb(){throw new Error}function pb(t){let{isActive:e,isTemporary:n,width:s,touchless:r,position:i}=t;Xt(()=>{window.addEventListener("touchstart",S,{passive:!0}),window.addEventListener("touchmove",m,{passive:!1}),window.addEventListener("touchend",y,{passive:!0})}),kt(()=>{window.removeEventListener("touchstart",S),window.removeEventListener("touchmove",m),window.removeEventListener("touchend",y)});const o=R(()=>["left","right"].includes(i.value)),{addMovement:a,endTouch:l,getVelocity:u}=gb();let c=!1;const d=be(!1),f=be(0),h=be(0);let g;function p(C,b){return(i.value==="left"?C:i.value==="right"?document.documentElement.clientWidth-C:i.value==="top"?C:i.value==="bottom"?document.documentElement.clientHeight-C:vs())-(b?s.value:0)}function v(C){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const w=i.value==="left"?(C-h.value)/s.value:i.value==="right"?(document.documentElement.clientWidth-C-h.value)/s.value:i.value==="top"?(C-h.value)/s.value:i.value==="bottom"?(document.documentElement.clientHeight-C-h.value)/s.value:vs();return b?Math.max(0,Math.min(1,w)):w}function S(C){if(r.value)return;const b=C.changedTouches[0].clientX,w=C.changedTouches[0].clientY,E=25,k=i.value==="left"?b<E:i.value==="right"?b>document.documentElement.clientWidth-E:i.value==="top"?w<E:i.value==="bottom"?w>document.documentElement.clientHeight-E:vs(),V=e.value&&(i.value==="left"?b<s.value:i.value==="right"?b>document.documentElement.clientWidth-s.value:i.value==="top"?w<s.value:i.value==="bottom"?w>document.documentElement.clientHeight-s.value:vs());(k||V||e.value&&n.value)&&(c=!0,g=[b,w],h.value=p(o.value?b:w,e.value),f.value=v(o.value?b:w),l(C),a(C))}function m(C){const b=C.changedTouches[0].clientX,w=C.changedTouches[0].clientY;if(c){if(!C.cancelable){c=!1;return}const k=Math.abs(b-g[0]),V=Math.abs(w-g[1]);(o.value?k>V&&k>3:V>k&&V>3)?(d.value=!0,c=!1):(o.value?V:k)>3&&(c=!1)}if(!d.value)return;C.preventDefault(),a(C);const E=v(o.value?b:w,!1);f.value=Math.max(0,Math.min(1,E)),E>1?h.value=p(o.value?b:w,!0):E<0&&(h.value=p(o.value?b:w,!1))}function y(C){if(c=!1,!d.value)return;a(C),d.value=!1;const b=u(C.changedTouches[0].identifier),w=Math.abs(b.x),E=Math.abs(b.y);(o.value?w>E&&w>400:E>w&&E>3)?e.value=b.direction===({left:"right",right:"left",top:"down",bottom:"up"}[i.value]||vs()):e.value=f.value>.5}const x=R(()=>d.value?{transform:i.value==="left"?`translateX(calc(-100% + ${f.value*s.value}px))`:i.value==="right"?`translateX(calc(100% - ${f.value*s.value}px))`:i.value==="top"?`translateY(calc(-100% + ${f.value*s.value}px))`:i.value==="bottom"?`translateY(calc(100% - ${f.value*s.value}px))`:vs(),transition:"none"}:void 0);return{isDragging:d,dragProgress:f,dragStyles:x}}function vs(){throw new Error}const yb=["start","end","left","right","top","bottom"],bb=G({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:t=>yb.includes(t)},sticky:Boolean,...Ir(),...we(),...r0(),...ls(),...jp(),...Jt(),...Je({tag:"nav"}),...dt()},"VNavigationDrawer"),xb=me()({name:"VNavigationDrawer",props:bb(),emits:{"update:modelValue":t=>!0,"update:rail":t=>!0},setup(t,e){let{attrs:n,emit:s,slots:r}=e;const{isRtl:i}=Kt(),{themeClasses:o}=Ft(t),{borderClasses:a}=kr(t),{backgroundColorClasses:l,backgroundColorStyles:u}=At(fe(t,"color")),{elevationClasses:c}=us(t),{displayClasses:d,mobile:f}=_h(t),{roundedClasses:h}=Qt(t),g=ih(),p=ct(t,"modelValue",null,Q=>!!Q),{ssrBootStyles:v}=Uf(),{scopeId:S}=po(),m=te(),y=be(!1),x=R(()=>t.rail&&t.expandOnHover&&y.value?Number(t.width):Number(t.rail?t.railWidth:t.width)),C=R(()=>xa(t.location,i.value)),b=R(()=>!t.permanent&&(f.value||t.temporary)),w=R(()=>t.sticky&&!b.value&&C.value!=="bottom");on(()=>t.expandOnHover&&t.rail!=null,()=>{le(y,Q=>s("update:rail",!Q))}),on(()=>!t.disableResizeWatcher,()=>{le(b,Q=>!t.permanent&&It(()=>p.value=!Q))}),on(()=>!t.disableRouteWatcher&&!!g,()=>{le(g.currentRoute,()=>b.value&&(p.value=!1))}),le(()=>t.permanent,Q=>{Q&&(p.value=!0)}),no(()=>{t.modelValue!=null||b.value||(p.value=t.permanent||!f.value)});const{isDragging:E,dragProgress:k,dragStyles:V}=pb({isActive:p,isTemporary:b,width:x,touchless:fe(t,"touchless"),position:C}),I=R(()=>{const Q=b.value?0:t.rail&&t.expandOnHover?Number(t.railWidth):x.value;return E.value?Q*k.value:Q}),{layoutItemStyles:T,layoutItemScrimStyles:F}=Gp({id:t.name,order:R(()=>parseInt(t.order,10)),position:C,layoutSize:I,elementSize:x,active:R(()=>p.value||E.value),disableTransitions:R(()=>E.value),absolute:R(()=>t.absolute||w.value&&typeof P.value!="string")}),{isStuck:P,stickyStyles:H}=fb({rootEl:m,isSticky:w,layoutItemStyles:T}),q=At(R(()=>typeof t.scrim=="string"?t.scrim:null)),Z=R(()=>({...E.value?{opacity:k.value*.2,transition:"none"}:void 0,...F.value}));hn({VList:{bgColor:"transparent"}});function j(){y.value=!0}function ae(){y.value=!1}return ye(()=>{const Q=r.image||t.image;return _(Re,null,[_(t.tag,Pe({ref:m,onMouseenter:j,onMouseleave:ae,class:["v-navigation-drawer",`v-navigation-drawer--${C.value}`,{"v-navigation-drawer--expand-on-hover":t.expandOnHover,"v-navigation-drawer--floating":t.floating,"v-navigation-drawer--is-hovering":y.value,"v-navigation-drawer--rail":t.rail,"v-navigation-drawer--temporary":b.value,"v-navigation-drawer--active":p.value,"v-navigation-drawer--sticky":w.value},o.value,l.value,a.value,d.value,c.value,h.value,t.class],style:[u.value,T.value,V.value,v.value,H.value,t.style]},S,n),{default:()=>{var se,ce,Te;return[Q&&_("div",{key:"image",class:"v-navigation-drawer__img"},[r.image?_(Tt,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:t.image}}},r.image):_(fo,{key:"image-img",alt:"",cover:!0,height:"inherit",src:t.image},null)]),r.prepend&&_("div",{class:"v-navigation-drawer__prepend"},[(se=r.prepend)==null?void 0:se.call(r)]),_("div",{class:"v-navigation-drawer__content"},[(ce=r.default)==null?void 0:ce.call(r)]),r.append&&_("div",{class:"v-navigation-drawer__append"},[(Te=r.append)==null?void 0:Te.call(r)])]}}),_(Yt,{name:"fade-transition"},{default:()=>[b.value&&(E.value||p.value)&&!!t.scrim&&_("div",Pe({class:["v-navigation-drawer__scrim",q.backgroundColorClasses.value],style:[Z.value,q.backgroundColorStyles.value],onClick:()=>p.value=!1},S),null)]})])}),{isStuck:P}}}),wb=G({...we(),...Fr({variant:"text"})},"VToolbarItems"),Ec=me()({name:"VToolbarItems",props:wb(),setup(t,e){let{slots:n}=e;return hn({VBtn:{color:fe(t,"color"),height:"inherit",variant:fe(t,"variant")}}),ye(()=>{var s;return _("div",{class:["v-toolbar-items",t.class],style:t.style},[(s=n.default)==null?void 0:s.call(n)])}),{}}}),_b=G({id:String,text:String,...ll(xl({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Ge=me()({name:"VTooltip",props:_b(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:n}=e;const s=ct(t,"modelValue"),{scopeId:r}=po(),i=mn(),o=R(()=>t.id||`v-tooltip-${i}`),a=te(),l=R(()=>t.location.split(" ").length>1?t.location:t.location+" center"),u=R(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),c=R(()=>t.transition?t.transition:s.value?"scale-transition":"fade-transition"),d=R(()=>Pe({"aria-describedby":o.value},t.activatorProps));return ye(()=>{const f=Ni.filterProps(t);return _(Ni,Pe({ref:a,class:["v-tooltip",t.class],style:t.style,id:o.value},f,{modelValue:s.value,"onUpdate:modelValue":h=>s.value=h,transition:c.value,absolute:!0,location:l.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:d.value,_disableGlobalStack:!0},r),{activator:n.activator,default:function(){var v;for(var h=arguments.length,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return((v=n.default)==null?void 0:v.call(n,...g))??t.text}})}),Ih({},a)}});var Sb="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",Cb="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",Eb="M18 10V8H20V10H18M18 12V10H16V12H18M18 8V6H16V8H18M16 2.84V4H18C17.37 3.54 16.71 3.15 16 2.84M18 4V6H20C19.42 5.25 18.75 4.58 18 4M20 6V8H21.16C20.85 7.29 20.46 6.63 20 6M22 12C22 11.32 21.93 10.65 21.8 10H20V12H22M16 6V4H14V6H16M16 16H18V14H16V16M18 18H20L20 18V16H18V18M16 20H18L18 20V18H16V20M14 21.8C14.7 21.66 15.36 21.44 16 21.16V20H14V21.8M18 14H20V12H18V14M16 8H14V10H16V8M20 16H21.16C21.44 15.36 21.66 14.7 21.8 14H20V16M16 12H14V14H16V12M12 18V16H14V14H12V12H14V10H12V8H14V6H12V4H14V2.2C13.35 2.07 12.69 2 12 2C6.5 2 2 6.5 2 12S6.5 22 12 22V20H14V18H12M14 18H16V16H14V18Z",Fa="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",Mb="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M3.05,13H1V11H3.05C3.5,6.83 6.83,3.5 11,3.05V1H13V3.05C17.17,3.5 20.5,6.83 20.95,11H23V13H20.95C20.5,17.17 17.17,20.5 13,20.95V23H11V20.95C6.83,20.5 3.5,17.17 3.05,13M12,5A7,7 0 0,0 5,12A7,7 0 0,0 12,19A7,7 0 0,0 19,12A7,7 0 0,0 12,5Z",Uo="M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15Z",Ow="M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z",Nw="M10.76,8.69A0.76,0.76 0 0,0 10,9.45V20.9C10,21.32 10.34,21.66 10.76,21.66C10.95,21.66 11.11,21.6 11.24,21.5L13.15,19.95L14.81,23.57C14.94,23.84 15.21,24 15.5,24C15.61,24 15.72,24 15.83,23.92L18.59,22.64C18.97,22.46 19.15,22 18.95,21.63L17.28,18L19.69,17.55C19.85,17.5 20,17.43 20.12,17.29C20.39,16.97 20.35,16.5 20,16.21L11.26,8.86L11.25,8.87C11.12,8.76 10.95,8.69 10.76,8.69M15,10V8H20V10H15M13.83,4.76L16.66,1.93L18.07,3.34L15.24,6.17L13.83,4.76M10,0H12V5H10V0M3.93,14.66L6.76,11.83L8.17,13.24L5.34,16.07L3.93,14.66M3.93,3.34L5.34,1.93L8.17,4.76L6.76,6.17L3.93,3.34M7,10H2V8H7V10",Tb="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",Ab="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",Bw="M20,20A2,2 0 0,1 18,22H4A2,2 0 0,1 2,20V6A2,2 0 0,1 4,4H9.5C9.2,4.8 9,5.6 9,6.5C9,10.1 11.9,13 15.5,13C16.3,13 17,12.9 17.6,12.6L20,15V20M19.3,8.9C19.7,8.2 20,7.4 20,6.5C20,4 18,2 15.5,2C13,2 11,4 11,6.5C11,9 13,11 15.5,11C16.4,11 17.2,10.7 17.9,10.3L21,13.4L22.4,12L19.3,8.9M15.5,9C14.1,9 13,7.9 13,6.5C13,5.1 14.1,4 15.5,4C16.9,4 18,5.1 18,6.5C18,7.9 16.9,9 15.5,9Z",Rb="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",Ib="M9 10A3.04 3.04 0 0 1 12 7A3.04 3.04 0 0 1 15 10A3.04 3.04 0 0 1 12 13A3.04 3.04 0 0 1 9 10M12 19L16 20V16.92A7.54 7.54 0 0 1 12 18A7.54 7.54 0 0 1 8 16.92V20M12 4A5.78 5.78 0 0 0 7.76 5.74A5.78 5.78 0 0 0 6 10A5.78 5.78 0 0 0 7.76 14.23A5.78 5.78 0 0 0 12 16A5.78 5.78 0 0 0 16.24 14.23A5.78 5.78 0 0 0 18 10A5.78 5.78 0 0 0 16.24 5.74A5.78 5.78 0 0 0 12 4M20 10A8.04 8.04 0 0 1 19.43 12.8A7.84 7.84 0 0 1 18 15.28V23L12 21L6 23V15.28A7.9 7.9 0 0 1 4 10A7.68 7.68 0 0 1 6.33 4.36A7.73 7.73 0 0 1 12 2A7.73 7.73 0 0 1 17.67 4.36A7.68 7.68 0 0 1 20 10Z",kb="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",Fb="M16,6C14.87,6 13.77,6.35 12.84,7H4C2.89,7 2,7.89 2,9V15C2,16.11 2.89,17 4,17H5V18A1,1 0 0,0 6,19H8A1,1 0 0,0 9,18V17H15V18A1,1 0 0,0 16,19H18A1,1 0 0,0 19,18V17H20C21.11,17 22,16.11 22,15V9C22,7.89 21.11,7 20,7H19.15C18.23,6.35 17.13,6 16,6M16,7.5A3.5,3.5 0 0,1 19.5,11A3.5,3.5 0 0,1 16,14.5A3.5,3.5 0 0,1 12.5,11A3.5,3.5 0 0,1 16,7.5M4,9H8V10H4V9M16,9A2,2 0 0,0 14,11A2,2 0 0,0 16,13A2,2 0 0,0 18,11A2,2 0 0,0 16,9M4,11H8V12H4V11M4,13H8V14H4V13Z",Vb="M4,6V19H20V6H4Z",Lb="M4,6V19H20V6H4M18,17H6V8H18V17Z",zw="M1.39,18.36L3.16,16.6L4.58,18L5.64,16.95L4.22,15.54L5.64,14.12L8.11,16.6L9.17,15.54L6.7,13.06L8.11,11.65L9.53,13.06L10.59,12L9.17,10.59L10.59,9.17L13.06,11.65L14.12,10.59L11.65,8.11L13.06,6.7L14.47,8.11L15.54,7.05L14.12,5.64L15.54,4.22L18,6.7L19.07,5.64L16.6,3.16L18.36,1.39L22.61,5.64L5.64,22.61L1.39,18.36Z",jo="M21,9L17,5V8H10V10H17V13M7,11L3,15L7,19V16H14V14H7V11Z",Pb="M2,4H8V6H16V4H22V10H20V14H22V20H16V18H8V20H2V14H4V10H2V4M16,10V8H8V10H6V14H8V16H16V14H18V10H16M4,6V8H6V6H4M18,6V8H20V6H18M4,16V18H6V16H4M18,16V18H20V16H18Z";const Cl=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},Mc={mdi:{size:24,viewbox:"0 0 24 24"},"simple-icons":{size:24,viewbox:"0 0 24 24"},default:{size:0,viewbox:"0 0 0 0"}},Ob={name:"icon",props:{type:String,path:{type:String,required:!0},size:{type:[String,Number],default:24},viewbox:String,flip:{type:String,validator:t=>["horizontal","vertical","both","none"].includes(t)},rotate:{type:Number,default:0}},computed:{styles(){return{"--sx":["both","horizontal"].includes(this.flip)?"-1":"1","--sy":["both","vertical"].includes(this.flip)?"-1":"1","--r":isNaN(this.rotate)?this.rotate:this.rotate+"deg"}},defaults(){return Mc[this.type]||Mc.default},sizeValue(){return this.size||this.defaults.size},viewboxValue(){return this.viewbox||this.defaults.viewbox}}},Nb=["width","height","viewBox"],Bb=["d"];function zb(t,e,n,s,r,i){return at(),Mr("svg",{width:i.sizeValue,height:i.sizeValue,viewBox:i.viewboxValue,style:Xi(i.styles)},[Wt("path",{d:n.path},null,8,Bb)],12,Nb)}const ze=Cl(Ob,[["render",zb],["__scopeId","data-v-76aa6b74"]]),Db=dn({__name:"Sidebar",props:{openedInit:{},side:{},width:{}},setup(t){const e=t;let n=te(e.openedInit.valueOf());const s=e.side==="left"?Cb:Sb;return(r,i)=>(at(),Mr(Re,null,[_(L(it),{icon:"",onClick:i[0]||(i[0]=o=>Me(n)?n.value=!L(n):n=!L(n)),class:Zi(["open-button",r.side])},{default:Y(()=>[_(L(ze),{type:"mdi",path:L(s)},null,8,["path"])]),_:1},8,["class"]),_(L(xb),{modelValue:L(n),"onUpdate:modelValue":i[3]||(i[3]=o=>Me(n)?n.value=o:n=o),permanent:"",location:r.side,width:e.width},{default:Y(()=>[_(L(Hf),{density:"compact"},{default:Y(()=>[r.side=="right"?(at(),ln(L(Ec),{key:0},{default:Y(()=>[Ys(r.$slots,"toolbar-items",{},void 0,!0),_(L(it),{icon:"",onClick:i[1]||(i[1]=o=>Me(n)?n.value=!L(n):n=!L(n))},{default:Y(()=>[_(L(ze),{type:"mdi",path:L(Fa)},null,8,["path"])]),_:1})]),_:3})):ga("",!0),Ys(r.$slots,"toolbar",{},void 0,!0),r.side=="left"?(at(),ln(L(Ec),{key:1},{default:Y(()=>[Ys(r.$slots,"toolbar-items",{},void 0,!0),_(L(it),{icon:"",onClick:i[2]||(i[2]=o=>Me(n)?n.value=!L(n):n=!L(n))},{default:Y(()=>[_(L(ze),{type:"mdi",path:L(Fa)},null,8,["path"])]),_:1})]),_:3})):ga("",!0)]),_:3}),Ys(r.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue","location","width"])],64))}}),Tc=Cl(Db,[["__scopeId","data-v-7849b5fc"]]),Yh=dn({__name:"Loading",setup(t){return(e,n)=>(at(),ln(L(j1),null,{default:Y(()=>[_(L(tb),{justify:"center",style:{height:"100%"}},{default:Y(()=>[_(L(Y1),{"align-self":"center"},{default:Y(()=>[_(L(eh),{indeterminate:"",style:{display:"block",margin:"0 auto"}}),Ys(e.$slots,"default")]),_:3})]),_:3})]),_:3}))}});function $b(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}class Xh extends HTMLElement{constructor(e,n){super(),this.camera=e,this.options=Object.assign({size:90,padding:8,bubbleSizePrimary:8,bubbleSizeSeconday:6,showSecondary:!0,lineWidth:2,fontSize:"11px",fontFamily:"arial",fontWeight:"bold",fontColor:"#151515",fontYAdjust:0,colors:{x:["#f73c3c","#942424"],y:["#6ccb26","#417a17"],z:["#178cf0","#0e5490"]}},n),this.onAxisSelected=null,this.bubbles=[{axis:"x",direction:new THREE.Vector3(1,0,0),size:this.options.bubbleSizePrimary,color:this.options.colors.x,line:this.options.lineWidth,label:"X"},{axis:"y",direction:new THREE.Vector3(0,1,0),size:this.options.bubbleSizePrimary,color:this.options.colors.y,line:this.options.lineWidth,label:"Y"},{axis:"z",direction:new THREE.Vector3(0,0,1),size:this.options.bubbleSizePrimary,color:this.options.colors.z,line:this.options.lineWidth,label:"Z"},{axis:"-x",direction:new THREE.Vector3(-1,0,0),size:this.options.bubbleSizeSeconday,color:this.options.colors.x},{axis:"-y",direction:new THREE.Vector3(0,-1,0),size:this.options.bubbleSizeSeconday,color:this.options.colors.y},{axis:"-z",direction:new THREE.Vector3(0,0,-1),size:this.options.bubbleSizeSeconday,color:this.options.colors.z}],this.center=new THREE.Vector3(this.options.size/2,this.options.size/2,0),this.selectedAxis=null,this.innerHTML="<canvas width='"+this.options.size+"' height='"+this.options.size+"'></canvas>",this.onMouseMove=this.onMouseMove.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onMouseClick=this.onMouseClick.bind(this)}connectedCallback(){this.canvas=this.querySelector("canvas"),this.context=this.canvas.getContext("2d"),this.canvas.addEventListener("mousemove",this.onMouseMove,!1),this.canvas.addEventListener("mouseout",this.onMouseOut,!1),this.canvas.addEventListener("click",this.onMouseClick,!1)}disconnectedCallback(){this.canvas.removeEventListener("mousemove",this.onMouseMove,!1),this.canvas.removeEventListener("mouseout",this.onMouseOut,!1),this.canvas.removeEventListener("click",this.onMouseClick,!1)}onMouseMove(e){const n=this.canvas.getBoundingClientRect();this.mouse=new THREE.Vector3(e.clientX-n.left,e.clientY-n.top,0)}onMouseOut(e){this.mouse=null}onMouseClick(e){this.onAxisSelected&&typeof this.onAxisSelected=="function"&&this.onAxisSelected({axis:this.selectedAxis.axis,direction:this.selectedAxis.direction.clone()})}clear(){this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}drawCircle(e,n=10,s="#FF0000"){this.context.beginPath(),this.context.arc(e.x,e.y,n,0,2*Math.PI,!1),this.context.fillStyle=s,this.context.fill(),this.context.closePath()}drawLine(e,n,s=1,r="#FF0000"){this.context.beginPath(),this.context.moveTo(e.x,e.y),this.context.lineTo(n.x,n.y),this.context.lineWidth=s,this.context.strokeStyle=r,this.context.stroke(),this.context.closePath()}update(){this.clear();let n=new THREE.Matrix4().makeRotationFromEuler(this.camera.rotation).clone().invert();for(var s of this.bubbles)s.position=this.getBubblePosition(s.direction.clone().applyMatrix4(n));const r=[];for(let i in this.bubbles)(this.options.showSecondary===!0||i[0]!=="-")&&r.push(this.bubbles[i]);if(r.sort((i,o)=>i.position.z>o.position.z?1:-1),this.selectedAxis=null,this.mouse){let i=1/0;for(var s of r){const a=this.mouse.distanceTo(s.position);(a<i||a<s.size)&&(i=a,this.selectedAxis=s)}}this.drawLayers(r)}drawLayers(e){for(let n of e){let s=n.color;this.selectedAxis===n?s="#FFFFFF":n.position.z>=-.01?s=n.color[0]:s=n.color[1],this.drawCircle(n.position,n.size,s),n.line&&this.drawLine(this.center,n.position,n.line,s),n.label&&(this.context.font=[this.options.fontWeight,this.options.fontSize,this.options.fontFamily].join(" "),this.context.fillStyle=this.options.fontColor,this.context.textBaseline="middle",this.context.textAlign="center",this.context.fillText(n.label,n.position.x,n.position.y+this.options.fontYAdjust))}}getBubblePosition(e){return new THREE.Vector3(e.x*(this.center.x-this.options.bubbleSizePrimary/2-this.options.padding)+this.center.x,this.center.y-e.y*(this.center.y-this.options.bubbleSizePrimary/2-this.options.padding),e.z)}}window.customElements.define("orientation-gizmo",Xh);var Hb=Xh;const Ub=$b(Hb),Ye=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];function jb(){const t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,s=Math.random()*4294967295|0;return(Ye[t&255]+Ye[t>>8&255]+Ye[t>>16&255]+Ye[t>>24&255]+"-"+Ye[e&255]+Ye[e>>8&255]+"-"+Ye[e>>16&15|64]+Ye[e>>24&255]+"-"+Ye[n&63|128]+Ye[n>>8&255]+"-"+Ye[n>>16&255]+Ye[n>>24&255]+Ye[s&255]+Ye[s>>8&255]+Ye[s>>16&255]+Ye[s>>24&255]).toLowerCase()}function ot(t,e,n){return Math.max(e,Math.min(n,t))}function Wb(t,e){return(t%e+e)%e}function Wo(t,e,n){return(1-n)*t+n*e}class Vr{constructor(e=0,n=0,s=0,r=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=s,this._w=r}static slerpFlat(e,n,s,r,i,o,a){let l=s[r+0],u=s[r+1],c=s[r+2],d=s[r+3];const f=i[o+0],h=i[o+1],g=i[o+2],p=i[o+3];if(a===0){e[n+0]=l,e[n+1]=u,e[n+2]=c,e[n+3]=d;return}if(a===1){e[n+0]=f,e[n+1]=h,e[n+2]=g,e[n+3]=p;return}if(d!==p||l!==f||u!==h||c!==g){let v=1-a;const S=l*f+u*h+c*g+d*p,m=S>=0?1:-1,y=1-S*S;if(y>Number.EPSILON){const C=Math.sqrt(y),b=Math.atan2(C,S*m);v=Math.sin(v*b)/C,a=Math.sin(a*b)/C}const x=a*m;if(l=l*v+f*x,u=u*v+h*x,c=c*v+g*x,d=d*v+p*x,v===1-a){const C=1/Math.sqrt(l*l+u*u+c*c+d*d);l*=C,u*=C,c*=C,d*=C}}e[n]=l,e[n+1]=u,e[n+2]=c,e[n+3]=d}static multiplyQuaternionsFlat(e,n,s,r,i,o){const a=s[r],l=s[r+1],u=s[r+2],c=s[r+3],d=i[o],f=i[o+1],h=i[o+2],g=i[o+3];return e[n]=a*g+c*d+l*h-u*f,e[n+1]=l*g+c*f+u*d-a*h,e[n+2]=u*g+c*h+a*f-l*d,e[n+3]=c*g-a*d-l*f-u*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,s,r){return this._x=e,this._y=n,this._z=s,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n=!0){const s=e._x,r=e._y,i=e._z,o=e._order,a=Math.cos,l=Math.sin,u=a(s/2),c=a(r/2),d=a(i/2),f=l(s/2),h=l(r/2),g=l(i/2);switch(o){case"XYZ":this._x=f*c*d+u*h*g,this._y=u*h*d-f*c*g,this._z=u*c*g+f*h*d,this._w=u*c*d-f*h*g;break;case"YXZ":this._x=f*c*d+u*h*g,this._y=u*h*d-f*c*g,this._z=u*c*g-f*h*d,this._w=u*c*d+f*h*g;break;case"ZXY":this._x=f*c*d-u*h*g,this._y=u*h*d+f*c*g,this._z=u*c*g+f*h*d,this._w=u*c*d-f*h*g;break;case"ZYX":this._x=f*c*d-u*h*g,this._y=u*h*d+f*c*g,this._z=u*c*g-f*h*d,this._w=u*c*d+f*h*g;break;case"YZX":this._x=f*c*d+u*h*g,this._y=u*h*d+f*c*g,this._z=u*c*g-f*h*d,this._w=u*c*d-f*h*g;break;case"XZY":this._x=f*c*d-u*h*g,this._y=u*h*d-f*c*g,this._z=u*c*g+f*h*d,this._w=u*c*d+f*h*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const s=n/2,r=Math.sin(s);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,s=n[0],r=n[4],i=n[8],o=n[1],a=n[5],l=n[9],u=n[2],c=n[6],d=n[10],f=s+a+d;if(f>0){const h=.5/Math.sqrt(f+1);this._w=.25/h,this._x=(c-l)*h,this._y=(i-u)*h,this._z=(o-r)*h}else if(s>a&&s>d){const h=2*Math.sqrt(1+s-a-d);this._w=(c-l)/h,this._x=.25*h,this._y=(r+o)/h,this._z=(i+u)/h}else if(a>d){const h=2*Math.sqrt(1+a-s-d);this._w=(i-u)/h,this._x=(r+o)/h,this._y=.25*h,this._z=(l+c)/h}else{const h=2*Math.sqrt(1+d-s-a);this._w=(o-r)/h,this._x=(i+u)/h,this._y=(l+c)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let s=e.dot(n)+1;return s<Number.EPSILON?(s=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=s):(this._x=0,this._y=-e.z,this._z=e.y,this._w=s)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=s),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(ot(this.dot(e),-1,1)))}rotateTowards(e,n){const s=this.angleTo(e);if(s===0)return this;const r=Math.min(1,n/s);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const s=e._x,r=e._y,i=e._z,o=e._w,a=n._x,l=n._y,u=n._z,c=n._w;return this._x=s*c+o*a+r*u-i*l,this._y=r*c+o*l+i*a-s*u,this._z=i*c+o*u+s*l-r*a,this._w=o*c-s*a-r*l-i*u,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const s=this._x,r=this._y,i=this._z,o=this._w;let a=o*e._w+s*e._x+r*e._y+i*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=s,this._y=r,this._z=i,this;const l=1-a*a;if(l<=Number.EPSILON){const h=1-n;return this._w=h*o+n*this._w,this._x=h*s+n*this._x,this._y=h*r+n*this._y,this._z=h*i+n*this._z,this.normalize(),this}const u=Math.sqrt(l),c=Math.atan2(u,a),d=Math.sin((1-n)*c)/u,f=Math.sin(n*c)/u;return this._w=o*d+this._w*f,this._x=s*d+this._x*f,this._y=r*d+this._y*f,this._z=i*d+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,s){return this.copy(e).slerp(n,s)}random(){const e=2*Math.PI*Math.random(),n=2*Math.PI*Math.random(),s=Math.random(),r=Math.sqrt(1-s),i=Math.sqrt(s);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(n),i*Math.cos(n))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class J{constructor(e=0,n=0,s=0){J.prototype.isVector3=!0,this.x=e,this.y=n,this.z=s}set(e,n,s){return s===void 0&&(s=this.z),this.x=e,this.y=n,this.z=s,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(Ac.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(Ac.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,s=this.y,r=this.z,i=e.elements;return this.x=i[0]*n+i[3]*s+i[6]*r,this.y=i[1]*n+i[4]*s+i[7]*r,this.z=i[2]*n+i[5]*s+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,s=this.y,r=this.z,i=e.elements,o=1/(i[3]*n+i[7]*s+i[11]*r+i[15]);return this.x=(i[0]*n+i[4]*s+i[8]*r+i[12])*o,this.y=(i[1]*n+i[5]*s+i[9]*r+i[13])*o,this.z=(i[2]*n+i[6]*s+i[10]*r+i[14])*o,this}applyQuaternion(e){const n=this.x,s=this.y,r=this.z,i=e.x,o=e.y,a=e.z,l=e.w,u=2*(o*r-a*s),c=2*(a*n-i*r),d=2*(i*s-o*n);return this.x=n+l*u+o*d-a*c,this.y=s+l*c+a*u-i*d,this.z=r+l*d+i*c-o*u,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,s=this.y,r=this.z,i=e.elements;return this.x=i[0]*n+i[4]*s+i[8]*r,this.y=i[1]*n+i[5]*s+i[9]*r,this.z=i[2]*n+i[6]*s+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(n,s)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,s){return this.x=e.x+(n.x-e.x)*s,this.y=e.y+(n.y-e.y)*s,this.z=e.z+(n.z-e.z)*s,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const s=e.x,r=e.y,i=e.z,o=n.x,a=n.y,l=n.z;return this.x=r*l-i*a,this.y=i*o-s*l,this.z=s*a-r*o,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const s=e.dot(this)/n;return this.copy(e).multiplyScalar(s)}projectOnPlane(e){return Go.copy(this).projectOnVector(e),this.sub(Go)}reflect(e){return this.sub(Go.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const s=this.dot(e)/n;return Math.acos(ot(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,s=this.y-e.y,r=this.z-e.z;return n*n+s*s+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,s){const r=Math.sin(n)*e;return this.x=r*Math.sin(s),this.y=Math.cos(n)*e,this.z=r*Math.cos(s),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,s){return this.x=e*Math.sin(n),this.y=s,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),s=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=s,this.z=r,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,n=Math.random()*2-1,s=Math.sqrt(1-n*n);return this.x=s*Math.cos(e),this.y=n,this.z=s*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Go=new J,Ac=new Vr,Gb=0,qb=1,Yb="",Sn="srgb",El="srgb-linear",Xb="display-p3",Zh="display-p3-linear",Va="linear",Rc="srgb",Ic="rec709",kc="p3",Ks=2e3,Fc=2001;class Ue{constructor(e,n,s,r,i,o,a,l,u,c,d,f,h,g,p,v){Ue.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,n,s,r,i,o,a,l,u,c,d,f,h,g,p,v)}set(e,n,s,r,i,o,a,l,u,c,d,f,h,g,p,v){const S=this.elements;return S[0]=e,S[4]=n,S[8]=s,S[12]=r,S[1]=i,S[5]=o,S[9]=a,S[13]=l,S[2]=u,S[6]=c,S[10]=d,S[14]=f,S[3]=h,S[7]=g,S[11]=p,S[15]=v,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ue().fromArray(this.elements)}copy(e){const n=this.elements,s=e.elements;return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],n[9]=s[9],n[10]=s[10],n[11]=s[11],n[12]=s[12],n[13]=s[13],n[14]=s[14],n[15]=s[15],this}copyPosition(e){const n=this.elements,s=e.elements;return n[12]=s[12],n[13]=s[13],n[14]=s[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,s){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),s.setFromMatrixColumn(this,2),this}makeBasis(e,n,s){return this.set(e.x,n.x,s.x,0,e.y,n.y,s.y,0,e.z,n.z,s.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,s=e.elements,r=1/ps.setFromMatrixColumn(e,0).length(),i=1/ps.setFromMatrixColumn(e,1).length(),o=1/ps.setFromMatrixColumn(e,2).length();return n[0]=s[0]*r,n[1]=s[1]*r,n[2]=s[2]*r,n[3]=0,n[4]=s[4]*i,n[5]=s[5]*i,n[6]=s[6]*i,n[7]=0,n[8]=s[8]*o,n[9]=s[9]*o,n[10]=s[10]*o,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,s=e.x,r=e.y,i=e.z,o=Math.cos(s),a=Math.sin(s),l=Math.cos(r),u=Math.sin(r),c=Math.cos(i),d=Math.sin(i);if(e.order==="XYZ"){const f=o*c,h=o*d,g=a*c,p=a*d;n[0]=l*c,n[4]=-l*d,n[8]=u,n[1]=h+g*u,n[5]=f-p*u,n[9]=-a*l,n[2]=p-f*u,n[6]=g+h*u,n[10]=o*l}else if(e.order==="YXZ"){const f=l*c,h=l*d,g=u*c,p=u*d;n[0]=f+p*a,n[4]=g*a-h,n[8]=o*u,n[1]=o*d,n[5]=o*c,n[9]=-a,n[2]=h*a-g,n[6]=p+f*a,n[10]=o*l}else if(e.order==="ZXY"){const f=l*c,h=l*d,g=u*c,p=u*d;n[0]=f-p*a,n[4]=-o*d,n[8]=g+h*a,n[1]=h+g*a,n[5]=o*c,n[9]=p-f*a,n[2]=-o*u,n[6]=a,n[10]=o*l}else if(e.order==="ZYX"){const f=o*c,h=o*d,g=a*c,p=a*d;n[0]=l*c,n[4]=g*u-h,n[8]=f*u+p,n[1]=l*d,n[5]=p*u+f,n[9]=h*u-g,n[2]=-u,n[6]=a*l,n[10]=o*l}else if(e.order==="YZX"){const f=o*l,h=o*u,g=a*l,p=a*u;n[0]=l*c,n[4]=p-f*d,n[8]=g*d+h,n[1]=d,n[5]=o*c,n[9]=-a*c,n[2]=-u*c,n[6]=h*d+g,n[10]=f-p*d}else if(e.order==="XZY"){const f=o*l,h=o*u,g=a*l,p=a*u;n[0]=l*c,n[4]=-d,n[8]=u*c,n[1]=f*d+p,n[5]=o*c,n[9]=h*d-g,n[2]=g*d-h,n[6]=a*c,n[10]=p*d+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Zb,e,Kb)}lookAt(e,n,s){const r=this.elements;return ht.subVectors(e,n),ht.lengthSq()===0&&(ht.z=1),ht.normalize(),yn.crossVectors(s,ht),yn.lengthSq()===0&&(Math.abs(s.z)===1?ht.x+=1e-4:ht.z+=1e-4,ht.normalize(),yn.crossVectors(s,ht)),yn.normalize(),Xr.crossVectors(ht,yn),r[0]=yn.x,r[4]=Xr.x,r[8]=ht.x,r[1]=yn.y,r[5]=Xr.y,r[9]=ht.y,r[2]=yn.z,r[6]=Xr.z,r[10]=ht.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const s=e.elements,r=n.elements,i=this.elements,o=s[0],a=s[4],l=s[8],u=s[12],c=s[1],d=s[5],f=s[9],h=s[13],g=s[2],p=s[6],v=s[10],S=s[14],m=s[3],y=s[7],x=s[11],C=s[15],b=r[0],w=r[4],E=r[8],k=r[12],V=r[1],I=r[5],T=r[9],F=r[13],P=r[2],H=r[6],q=r[10],Z=r[14],j=r[3],ae=r[7],Q=r[11],se=r[15];return i[0]=o*b+a*V+l*P+u*j,i[4]=o*w+a*I+l*H+u*ae,i[8]=o*E+a*T+l*q+u*Q,i[12]=o*k+a*F+l*Z+u*se,i[1]=c*b+d*V+f*P+h*j,i[5]=c*w+d*I+f*H+h*ae,i[9]=c*E+d*T+f*q+h*Q,i[13]=c*k+d*F+f*Z+h*se,i[2]=g*b+p*V+v*P+S*j,i[6]=g*w+p*I+v*H+S*ae,i[10]=g*E+p*T+v*q+S*Q,i[14]=g*k+p*F+v*Z+S*se,i[3]=m*b+y*V+x*P+C*j,i[7]=m*w+y*I+x*H+C*ae,i[11]=m*E+y*T+x*q+C*Q,i[15]=m*k+y*F+x*Z+C*se,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],s=e[4],r=e[8],i=e[12],o=e[1],a=e[5],l=e[9],u=e[13],c=e[2],d=e[6],f=e[10],h=e[14],g=e[3],p=e[7],v=e[11],S=e[15];return g*(+i*l*d-r*u*d-i*a*f+s*u*f+r*a*h-s*l*h)+p*(+n*l*h-n*u*f+i*o*f-r*o*h+r*u*c-i*l*c)+v*(+n*u*d-n*a*h-i*o*d+s*o*h+i*a*c-s*u*c)+S*(-r*a*c-n*l*d+n*a*f+r*o*d-s*o*f+s*l*c)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,s){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=n,r[14]=s),this}invert(){const e=this.elements,n=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],l=e[6],u=e[7],c=e[8],d=e[9],f=e[10],h=e[11],g=e[12],p=e[13],v=e[14],S=e[15],m=d*v*u-p*f*u+p*l*h-a*v*h-d*l*S+a*f*S,y=g*f*u-c*v*u-g*l*h+o*v*h+c*l*S-o*f*S,x=c*p*u-g*d*u+g*a*h-o*p*h-c*a*S+o*d*S,C=g*d*l-c*p*l-g*a*f+o*p*f+c*a*v-o*d*v,b=n*m+s*y+r*x+i*C;if(b===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/b;return e[0]=m*w,e[1]=(p*f*i-d*v*i-p*r*h+s*v*h+d*r*S-s*f*S)*w,e[2]=(a*v*i-p*l*i+p*r*u-s*v*u-a*r*S+s*l*S)*w,e[3]=(d*l*i-a*f*i-d*r*u+s*f*u+a*r*h-s*l*h)*w,e[4]=y*w,e[5]=(c*v*i-g*f*i+g*r*h-n*v*h-c*r*S+n*f*S)*w,e[6]=(g*l*i-o*v*i-g*r*u+n*v*u+o*r*S-n*l*S)*w,e[7]=(o*f*i-c*l*i+c*r*u-n*f*u-o*r*h+n*l*h)*w,e[8]=x*w,e[9]=(g*d*i-c*p*i-g*s*h+n*p*h+c*s*S-n*d*S)*w,e[10]=(o*p*i-g*a*i+g*s*u-n*p*u-o*s*S+n*a*S)*w,e[11]=(c*a*i-o*d*i-c*s*u+n*d*u+o*s*h-n*a*h)*w,e[12]=C*w,e[13]=(c*p*r-g*d*r+g*s*f-n*p*f-c*s*v+n*d*v)*w,e[14]=(g*a*r-o*p*r-g*s*l+n*p*l+o*s*v-n*a*v)*w,e[15]=(o*d*r-c*a*r+c*s*l-n*d*l-o*s*f+n*a*f)*w,this}scale(e){const n=this.elements,s=e.x,r=e.y,i=e.z;return n[0]*=s,n[4]*=r,n[8]*=i,n[1]*=s,n[5]*=r,n[9]*=i,n[2]*=s,n[6]*=r,n[10]*=i,n[3]*=s,n[7]*=r,n[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],s=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,s,r))}makeTranslation(e,n,s){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,n,0,0,1,s,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),s=Math.sin(e);return this.set(1,0,0,0,0,n,-s,0,0,s,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,0,s,0,0,1,0,0,-s,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,-s,0,0,s,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const s=Math.cos(n),r=Math.sin(n),i=1-s,o=e.x,a=e.y,l=e.z,u=i*o,c=i*a;return this.set(u*o+s,u*a-r*l,u*l+r*a,0,u*a+r*l,c*a+s,c*l-r*o,0,u*l-r*a,c*l+r*o,i*l*l+s,0,0,0,0,1),this}makeScale(e,n,s){return this.set(e,0,0,0,0,n,0,0,0,0,s,0,0,0,0,1),this}makeShear(e,n,s,r,i,o){return this.set(1,s,i,0,e,1,o,0,n,r,1,0,0,0,0,1),this}compose(e,n,s){const r=this.elements,i=n._x,o=n._y,a=n._z,l=n._w,u=i+i,c=o+o,d=a+a,f=i*u,h=i*c,g=i*d,p=o*c,v=o*d,S=a*d,m=l*u,y=l*c,x=l*d,C=s.x,b=s.y,w=s.z;return r[0]=(1-(p+S))*C,r[1]=(h+x)*C,r[2]=(g-y)*C,r[3]=0,r[4]=(h-x)*b,r[5]=(1-(f+S))*b,r[6]=(v+m)*b,r[7]=0,r[8]=(g+y)*w,r[9]=(v-m)*w,r[10]=(1-(f+p))*w,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,n,s){const r=this.elements;let i=ps.set(r[0],r[1],r[2]).length();const o=ps.set(r[4],r[5],r[6]).length(),a=ps.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],Lt.copy(this);const u=1/i,c=1/o,d=1/a;return Lt.elements[0]*=u,Lt.elements[1]*=u,Lt.elements[2]*=u,Lt.elements[4]*=c,Lt.elements[5]*=c,Lt.elements[6]*=c,Lt.elements[8]*=d,Lt.elements[9]*=d,Lt.elements[10]*=d,n.setFromRotationMatrix(Lt),s.x=i,s.y=o,s.z=a,this}makePerspective(e,n,s,r,i,o,a=Ks){const l=this.elements,u=2*i/(n-e),c=2*i/(s-r),d=(n+e)/(n-e),f=(s+r)/(s-r);let h,g;if(a===Ks)h=-(o+i)/(o-i),g=-2*o*i/(o-i);else if(a===Fc)h=-o/(o-i),g=-o*i/(o-i);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=u,l[4]=0,l[8]=d,l[12]=0,l[1]=0,l[5]=c,l[9]=f,l[13]=0,l[2]=0,l[6]=0,l[10]=h,l[14]=g,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,n,s,r,i,o,a=Ks){const l=this.elements,u=1/(n-e),c=1/(s-r),d=1/(o-i),f=(n+e)*u,h=(s+r)*c;let g,p;if(a===Ks)g=(o+i)*d,p=-2*d;else if(a===Fc)g=i*d,p=-1*d;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*u,l[4]=0,l[8]=0,l[12]=-f,l[1]=0,l[5]=2*c,l[9]=0,l[13]=-h,l[2]=0,l[6]=0,l[10]=p,l[14]=-g,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const n=this.elements,s=e.elements;for(let r=0;r<16;r++)if(n[r]!==s[r])return!1;return!0}fromArray(e,n=0){for(let s=0;s<16;s++)this.elements[s]=e[s+n];return this}toArray(e=[],n=0){const s=this.elements;return e[n]=s[0],e[n+1]=s[1],e[n+2]=s[2],e[n+3]=s[3],e[n+4]=s[4],e[n+5]=s[5],e[n+6]=s[6],e[n+7]=s[7],e[n+8]=s[8],e[n+9]=s[9],e[n+10]=s[10],e[n+11]=s[11],e[n+12]=s[12],e[n+13]=s[13],e[n+14]=s[14],e[n+15]=s[15],e}}const ps=new J,Lt=new Ue,Zb=new J(0,0,0),Kb=new J(1,1,1),yn=new J,Xr=new J,ht=new J,Jb=dn({__name:"OrientationGizmo",props:{elem:{},scene:{}},setup(t){globalThis.THREE={Vector3:J,Matrix4:Ue};const e=t;function n(a,l){let u=new Ub(l.camera,{size:a.clientWidth,bubbleSizePrimary:a.clientWidth/12,bubbleSizeSeconday:a.clientWidth/14,fontSize:a.clientWidth/10+"px"});for(let c of[["y","-z"],["z","-y"],["z","-z"]]){let d=u.bubbles.findIndex(p=>p.axis==c[0]),f=u.bubbles.findIndex(p=>p.axis==c[1]),h=u.bubbles[d].direction.clone(),g=u.bubbles[f].direction.clone();u.bubbles[d].direction.copy(g),u.bubbles[f].direction.copy(h)}return u.onAxisSelected=c=>{let d=l.getCamera().position.clone(),f=l.getTarget().clone().add(l.target.position),h=d.clone().sub(f).length(),g=new J(c.direction.x,c.direction.y,c.direction.z),p=f.clone().add(g.clone().multiplyScalar(h));l.getCamera().position.copy(p),l.getCamera().lookAt(f),l.__perspectiveCamera&&(l.__perspectiveCamera.position.copy(p),l.__perspectiveCamera.lookAt(f)),l.queueRender(),requestIdleCallback(()=>{var v;return(v=e.elem)==null?void 0:v.dispatchEvent(new CustomEvent("camera-change",{detail:{source:"none"}}))},{timeout:100})},u}let s=te(null),r;function i(){r.isConnected&&(r.update(),requestIdleCallback(i,{timeout:250}))}let o=()=>{s.value&&(r&&s.value.removeChild(r),r=n(s.value,e.scene),s.value.appendChild(r),requestIdleCallback(i,{timeout:250}))};return Xt(o),tl(o),(a,l)=>(at(),Mr("div",{ref_key:"container",ref:s,class:"orientation-gizmo"},null,512))}});let Qb=class{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(n)===-1&&s[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const s=this._listeners;return s[e]!==void 0&&s[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const s=this._listeners[e.type];if(s!==void 0){e.target=this;const r=s.slice(0);for(let i=0,o=r.length;i<o;i++)r[i].call(this,e);e.target=null}}};const Vc=new Ue,Lc=new Vr;class yo{constructor(e=0,n=0,s=0,r=yo.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=s,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,s,r=this._order){return this._x=e,this._y=n,this._z=s,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,s=!0){const r=e.elements,i=r[0],o=r[4],a=r[8],l=r[1],u=r[5],c=r[9],d=r[2],f=r[6],h=r[10];switch(n){case"XYZ":this._y=Math.asin(ot(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(f,u),this._z=0);break;case"YXZ":this._x=Math.asin(-ot(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(l,u)):(this._y=Math.atan2(-d,i),this._z=0);break;case"ZXY":this._x=Math.asin(ot(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-d,h),this._z=Math.atan2(-o,u)):(this._y=0,this._z=Math.atan2(l,i));break;case"ZYX":this._y=Math.asin(-ot(d,-1,1)),Math.abs(d)<.9999999?(this._x=Math.atan2(f,h),this._z=Math.atan2(l,i)):(this._x=0,this._z=Math.atan2(-o,u));break;case"YZX":this._z=Math.asin(ot(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-c,u),this._y=Math.atan2(-d,i)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-ot(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(f,u),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-c,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,s===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,s){return Vc.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Vc,n,s)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return Lc.setFromEuler(this),this.setFromQuaternion(Lc,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}yo.DEFAULT_ORDER="XYZ";class ex{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}class ds{constructor(e,n,s,r,i,o,a,l,u){ds.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,s,r,i,o,a,l,u)}set(e,n,s,r,i,o,a,l,u){const c=this.elements;return c[0]=e,c[1]=r,c[2]=a,c[3]=n,c[4]=i,c[5]=l,c[6]=s,c[7]=o,c[8]=u,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,s=e.elements;return n[0]=s[0],n[1]=s[1],n[2]=s[2],n[3]=s[3],n[4]=s[4],n[5]=s[5],n[6]=s[6],n[7]=s[7],n[8]=s[8],this}extractBasis(e,n,s){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),s.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const s=e.elements,r=n.elements,i=this.elements,o=s[0],a=s[3],l=s[6],u=s[1],c=s[4],d=s[7],f=s[2],h=s[5],g=s[8],p=r[0],v=r[3],S=r[6],m=r[1],y=r[4],x=r[7],C=r[2],b=r[5],w=r[8];return i[0]=o*p+a*m+l*C,i[3]=o*v+a*y+l*b,i[6]=o*S+a*x+l*w,i[1]=u*p+c*m+d*C,i[4]=u*v+c*y+d*b,i[7]=u*S+c*x+d*w,i[2]=f*p+h*m+g*C,i[5]=f*v+h*y+g*b,i[8]=f*S+h*x+g*w,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],l=e[6],u=e[7],c=e[8];return n*o*c-n*a*u-s*i*c+s*a*l+r*i*u-r*o*l}invert(){const e=this.elements,n=e[0],s=e[1],r=e[2],i=e[3],o=e[4],a=e[5],l=e[6],u=e[7],c=e[8],d=c*o-a*u,f=a*l-c*i,h=u*i-o*l,g=n*d+s*f+r*h;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const p=1/g;return e[0]=d*p,e[1]=(r*u-c*s)*p,e[2]=(a*s-r*o)*p,e[3]=f*p,e[4]=(c*n-r*l)*p,e[5]=(r*i-a*n)*p,e[6]=h*p,e[7]=(s*l-u*n)*p,e[8]=(o*n-s*i)*p,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,s,r,i,o,a){const l=Math.cos(i),u=Math.sin(i);return this.set(s*l,s*u,-s*(l*o+u*a)+o+e,-r*u,r*l,-r*(-u*o+l*a)+a+n,0,0,1),this}scale(e,n){return this.premultiply(qo.makeScale(e,n)),this}rotate(e){return this.premultiply(qo.makeRotation(-e)),this}translate(e,n){return this.premultiply(qo.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),s=Math.sin(e);return this.set(n,-s,0,s,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,s=e.elements;for(let r=0;r<9;r++)if(n[r]!==s[r])return!1;return!0}fromArray(e,n=0){for(let s=0;s<9;s++)this.elements[s]=e[s+n];return this}toArray(e=[],n=0){const s=this.elements;return e[n]=s[0],e[n+1]=s[1],e[n+2]=s[2],e[n+3]=s[3],e[n+4]=s[4],e[n+5]=s[5],e[n+6]=s[6],e[n+7]=s[7],e[n+8]=s[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const qo=new ds;let tx=0;const Pc=new J,ys=new Vr,en=new Ue,Zr=new J,Ws=new J,nx=new J,sx=new Vr,Oc=new J(1,0,0),Nc=new J(0,1,0),Bc=new J(0,0,1),rx={type:"added"},ix={type:"removed"},Yo={type:"childadded",child:null},Xo={type:"childremoved",child:null};class kn extends Qb{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:tx++}),this.uuid=jb(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=kn.DEFAULT_UP.clone();const e=new J,n=new yo,s=new Vr,r=new J(1,1,1);function i(){s.setFromEuler(n,!1)}function o(){n.setFromQuaternion(s,void 0,!1)}n._onChange(i),s._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:s},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Ue},normalMatrix:{value:new ds}}),this.matrix=new Ue,this.matrixWorld=new Ue,this.matrixAutoUpdate=kn.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=kn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new ex,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,n){this.quaternion.setFromAxisAngle(e,n)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,n){return ys.setFromAxisAngle(e,n),this.quaternion.multiply(ys),this}rotateOnWorldAxis(e,n){return ys.setFromAxisAngle(e,n),this.quaternion.premultiply(ys),this}rotateX(e){return this.rotateOnAxis(Oc,e)}rotateY(e){return this.rotateOnAxis(Nc,e)}rotateZ(e){return this.rotateOnAxis(Bc,e)}translateOnAxis(e,n){return Pc.copy(e).applyQuaternion(this.quaternion),this.position.add(Pc.multiplyScalar(n)),this}translateX(e){return this.translateOnAxis(Oc,e)}translateY(e){return this.translateOnAxis(Nc,e)}translateZ(e){return this.translateOnAxis(Bc,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(en.copy(this.matrixWorld).invert())}lookAt(e,n,s){e.isVector3?Zr.copy(e):Zr.set(e,n,s);const r=this.parent;this.updateWorldMatrix(!0,!1),Ws.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?en.lookAt(Ws,Zr,this.up):en.lookAt(Zr,Ws,this.up),this.quaternion.setFromRotationMatrix(en),r&&(en.extractRotation(r.matrixWorld),ys.setFromRotationMatrix(en),this.quaternion.premultiply(ys.invert()))}add(e){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.parent!==null&&e.parent.remove(e),e.parent=this,this.children.push(e),e.dispatchEvent(rx),Yo.child=e,this.dispatchEvent(Yo),Yo.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let s=0;s<arguments.length;s++)this.remove(arguments[s]);return this}const n=this.children.indexOf(e);return n!==-1&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(ix),Xo.child=e,this.dispatchEvent(Xo),Xo.child=null),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),en.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),en.multiply(e.parent.matrixWorld)),e.applyMatrix4(en),this.add(e),e.updateWorldMatrix(!1,!0),this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,n){if(this[e]===n)return this;for(let s=0,r=this.children.length;s<r;s++){const o=this.children[s].getObjectByProperty(e,n);if(o!==void 0)return o}}getObjectsByProperty(e,n,s=[]){this[e]===n&&s.push(this);const r=this.children;for(let i=0,o=r.length;i<o;i++)r[i].getObjectsByProperty(e,n,s);return s}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ws,e,nx),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ws,sx,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(e){e(this);const n=this.children;for(let s=0,r=n.length;s<r;s++)n[s].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const n=this.children;for(let s=0,r=n.length;s<r;s++)n[s].traverseVisible(e)}traverseAncestors(e){const n=this.parent;n!==null&&(e(n),n.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const n=this.children;for(let s=0,r=n.length;s<r;s++){const i=n[s];(i.matrixWorldAutoUpdate===!0||e===!0)&&i.updateMatrixWorld(e)}}updateWorldMatrix(e,n){const s=this.parent;if(e===!0&&s!==null&&s.matrixWorldAutoUpdate===!0&&s.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),n===!0){const r=this.children;for(let i=0,o=r.length;i<o;i++){const a=r[i];a.matrixWorldAutoUpdate===!0&&a.updateWorldMatrix(!1,!0)}}}toJSON(e){const n=e===void 0||typeof e=="string",s={};n&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},s.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const r={};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function i(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let u=0,c=l.length;u<c;u++){const d=l[u];i(e.shapes,d)}else i(e.shapes,l)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(i(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const a=[];for(let l=0,u=this.material.length;l<u;l++)a.push(i(e.materials,this.material[l]));r.material=a}else r.material=i(e.materials,this.material);if(this.children.length>0){r.children=[];for(let a=0;a<this.children.length;a++)r.children.push(this.children[a].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let a=0;a<this.animations.length;a++){const l=this.animations[a];r.animations.push(i(e.animations,l))}}if(n){const a=o(e.geometries),l=o(e.materials),u=o(e.textures),c=o(e.images),d=o(e.shapes),f=o(e.skeletons),h=o(e.animations),g=o(e.nodes);a.length>0&&(s.geometries=a),l.length>0&&(s.materials=l),u.length>0&&(s.textures=u),c.length>0&&(s.images=c),d.length>0&&(s.shapes=d),f.length>0&&(s.skeletons=f),h.length>0&&(s.animations=h),g.length>0&&(s.nodes=g)}return s.object=r,s;function o(a){const l=[];for(const u in a){const c=a[u];delete c.metadata,l.push(c)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let s=0;s<e.children.length;s++){const r=e.children[s];this.add(r.clone())}return this}}kn.DEFAULT_UP=new J(0,1,0);kn.DEFAULT_MATRIX_AUTO_UPDATE=!0;kn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;class ox extends kn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ue,this.projectionMatrix=new Ue,this.projectionMatrixInverse=new Ue,this.coordinateSystem=Ks}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class ax extends ox{constructor(e=-1,n=1,s=1,r=-1,i=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=s,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,s,r,i,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=s,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),s=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=s-e,o=s+e,a=r+n,l=r-n;if(this.view!==null&&this.view.enabled){const u=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=u*this.view.offsetX,o=i+u*this.view.width,a-=c*this.view.offsetY,l=a-c*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const lx=Wt("h5",null,"Camera",-1),ux={class:"icon-detail"},cx=Wt("br",null,null,-1),dx=Wt("h5",null,"Extras",-1),fx={ref:"statsHolder"},hx=dn({__name:"Tools",props:{viewer:{}},emits:["findModel"],setup(t,{emit:e}){const n=la({loader:()=>Ls(()=>import("./Selection-CSOtD1lF.js"),__vite__mapDeps([0,1,2]),import.meta.url),loadingComponent:()=>"Loading...",delay:0});let s=te(null);const r=la({loader:()=>Ls(()=>import("./LicensesDialogContent-DU93gWpl.js"),__vite__mapDeps([]),import.meta.url),loadingComponent:Yh,delay:0});let i=t;const o=e;let a=te([]),l=()=>a.value.filter(S=>S.kind=="face").length,u=()=>a.value.filter(S=>S.kind=="edge").length,c=()=>a.value.filter(S=>S.kind=="vertex").length;function d(S){var x;let m=(x=i.viewer)==null?void 0:x.scene;if(!m)return;let y=m.__perspectiveCamera;if(S||y&&m.camera!=y){let C=m.getTarget().clone().add(m.target.position),b=2*Math.tan(y.fov*Math.PI/180/2)*y.position.distanceTo(C),w=b,E=b/m.aspect;m.camera=new ax(-w,w,E,-E,y.near,y.far),m.camera.position.copy(y.position),m.camera.lookAt(C),S&&m.queueRender(),requestAnimationFrame(()=>d(!1))}}let f=te("PERSP");function h(){var x;let S=(x=i.viewer)==null?void 0:x.scene;if(!S)return;let m=S.camera,y=m.isPerspectiveCamera;y?(S.__perspectiveCamera=m,d(!0)):(S.camera=S.__perspectiveCamera,S.queueRender()),f.value=y?"ORTHO":"PERSP",requestIdleCallback(()=>{var C,b;return(b=(C=i.viewer)==null?void 0:C.elem)==null?void 0:b.dispatchEvent(new CustomEvent("camera-change",{detail:{source:"none"}}))},{timeout:100})}async function g(){var m;let S=(m=i.viewer)==null?void 0:m.elem;S&&(await S.updateFraming(),S.zoom(3))}async function p(){var C;let S=(C=i.viewer)==null?void 0:C.elem;if(!S)return;const m=await S.exportScene({onlyVisible:!0,binary:!0}),y=new File([m],"export.glb"),x=document.createElement("a");x.download=y.name,x.href=URL.createObjectURL(y),x.click()}async function v(){window.open("https://github.com/yeicor-3d/yet-another-cad-viewer","_blank")}return window.addEventListener("keydown",S=>{S.key==="p"?h():S.key==="c"?g():S.key==="d"?p():S.key==="g"&&v()}),(S,m)=>{var y;return at(),Mr(Re,null,[(y=L(i).viewer)!=null&&y.scene?(at(),ln(Jb,{key:0,scene:L(i).viewer.scene,elem:L(i).viewer.elem},null,8,["scene","elem"])):ga("",!0),_(L(mi)),lx,_(L(it),{icon:"",onClick:h},{default:Y(()=>[Wt("span",ux,sn(L(f)),1),_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Toggle (P)rojection"),cx,Fe("(currently "+sn(L(f)==="PERSP"?"perspective":"orthographic")+") ",1)]),_:1}),_(L(ze),{type:"mdi",path:L(Fb)},null,8,["path"])]),_:1}),_(L(it),{icon:"",onClick:g},{default:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Re(c)enter Camera")]),_:1}),_(L(ze),{type:"mdi",path:L(Mb)},null,8,["path"])]),_:1}),_(L(mi)),Wt("h5",null,"Selection ("+sn(L(l)())+"F "+sn(L(u)())+"E "+sn(L(c)())+"V)",1),_(L(n),{ref:L(s),viewer:L(i).viewer,modelValue:L(a),"onUpdate:modelValue":m[0]||(m[0]=x=>Me(a)?a.value=x:a=x),onFindModel:m[1]||(m[1]=x=>o("findModel",x))},null,8,["viewer","modelValue"]),_(L(mi)),_(L(ka)),dx,_(L(it),{icon:"",onClick:p},{default:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("(D)ownload Scene")]),_:1}),_(L(ze),{type:"mdi",path:L(Ab)},null,8,["path"])]),_:1}),_(L(k0),{id:"licenses-dialog",fullscreen:""},{activator:Y(({props:x})=>[_(L(it),Pe({icon:""},x),{default:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Show Licenses")]),_:1}),_(L(ze),{type:"mdi",path:L(Ib)},null,8,["path"])]),_:2},1040)]),default:Y(({isActive:x})=>[_(L(B0),null,{default:Y(()=>[_(L(Hf),null,{default:Y(()=>[_(L(Li),null,{default:Y(()=>[Fe("Licenses")]),_:1}),_(L(ka)),_(L(it),{icon:"",onClick:C=>x.value=!1},{default:Y(()=>[_(L(ze),{type:"mdi",path:L(Fa)},null,8,["path"])]),_:2},1032,["onClick"])]),_:2},1024),_(L(kh),null,{default:Y(()=>[_(L(r))]),_:1})]),_:2},1024)]),_:1}),_(L(it),{icon:"",onClick:v},{default:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Open (G)itHub")]),_:1}),_(L(ze),{type:"mdi",path:L(Rb)},null,8,["path"])]),_:1}),Wt("div",fx,null,512)],64)}}});class Ml{constructor(){this._listeners={}}addEventListener(e,n){const s=this._listeners;return s[e]===void 0&&(s[e]=[]),s[e].indexOf(n)===-1&&s[e].push(n),this}removeEventListener(e,n){if(this._listeners===void 0)return this;const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}return this}dispatchEvent(e){if(this._listeners===void 0)return this;const s=this._listeners[e.type];if(s!==void 0){const r=s.slice(0);for(let i=0,o=r.length;i<o;i++)r[i].call(this,e)}return this}dispose(){for(const e in this._listeners)delete this._listeners[e]}}class Os extends Ml{constructor(e,n,s,r={}){if(super(),this._name=void 0,this._parent=void 0,this._child=void 0,this._attributes=void 0,this._disposed=!1,this._name=e,this._parent=n,this._child=s,this._attributes=r,!n.isOnGraph(s))throw new Error("Cannot connect disconnected graphs.")}getName(){return this._name}getParent(){return this._parent}getChild(){return this._child}setChild(e){return this._child=e,this}getAttributes(){return this._attributes}dispose(){this._disposed||(this._disposed=!0,this.dispatchEvent({type:"dispose",target:this}),super.dispose())}isDisposed(){return this._disposed}}class mx extends Ml{constructor(...e){super(...e),this._emptySet=new Set,this._edges=new Set,this._parentEdges=new Map,this._childEdges=new Map}listEdges(){return Array.from(this._edges)}listParentEdges(e){return Array.from(this._childEdges.get(e)||this._emptySet)}listParents(e){return this.listParentEdges(e).map(n=>n.getParent())}listChildEdges(e){return Array.from(this._parentEdges.get(e)||this._emptySet)}listChildren(e){return this.listChildEdges(e).map(n=>n.getChild())}disconnectParents(e,n){let s=this.listParentEdges(e);return n&&(s=s.filter(r=>n(r.getParent()))),s.forEach(r=>r.dispose()),this}createEdge(e,n,s,r){return this._registerEdge(new Os(e,n,s,r))}_registerEdge(e){this._edges.add(e);const n=e.getParent();this._parentEdges.has(n)||this._parentEdges.set(n,new Set),this._parentEdges.get(n).add(e);const s=e.getChild();return this._childEdges.has(s)||this._childEdges.set(s,new Set),this._childEdges.get(s).add(e),e.addEventListener("dispose",()=>this._removeEdge(e)),e}_removeEdge(e){return this._edges.delete(e),this._parentEdges.get(e.getParent()).delete(e),this._childEdges.get(e.getChild()).delete(e),this}}function ar(){return ar=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ar.apply(this,arguments)}function La(t){return t instanceof Os}function Js(t){return Array.isArray(t)&&t[0]instanceof Os}function Qs(t){return!!(vx(t)&&gx(t)instanceof Os)}function gx(t){for(const e in t)return t[e]}function vx(t){return!!t&&Object.getPrototypeOf(t)===Object.prototype}const Ce=Symbol("attributes"),Es=Symbol("immutableKeys");class Tl extends Ml{constructor(e){super(),this._disposed=!1,this.graph=void 0,this[Ce]=void 0,this[Es]=void 0,this.graph=e,this[Es]=new Set,this[Ce]=this._createAttributes()}getDefaults(){return{}}_createAttributes(){const e=this.getDefaults(),n={};for(const s in e){const r=e[s];if(r instanceof Tl){const i=this.graph.createEdge(s,this,r);i.addEventListener("dispose",()=>r.dispose()),this[Es].add(s),n[s]=i}else n[s]=r}return n}isOnGraph(e){return this.graph===e.graph}isDisposed(){return this._disposed}dispose(){this._disposed||(this.graph.listChildEdges(this).forEach(e=>e.dispose()),this.graph.disconnectParents(this),this._disposed=!0,this.dispatchEvent({type:"dispose"}))}detach(){return this.graph.disconnectParents(this),this}swap(e,n){for(const s in this[Ce]){const r=this[Ce][s];if(La(r)){const i=r;i.getChild()===e&&this.setRef(s,n,i.getAttributes())}else if(Js(r)){const o=r.find(a=>a.getChild()===e);if(o){const a=o.getAttributes();this.removeRef(s,e).addRef(s,n,a)}}else if(Qs(r)){const i=r;for(const o in i){const a=i[o];a.getChild()===e&&this.setRefMap(s,o,n,a.getAttributes())}}}return this}get(e){return this[Ce][e]}set(e,n){return this[Ce][e]=n,this.dispatchEvent({type:"change",attribute:e})}getRef(e){const n=this[Ce][e];return n?n.getChild():null}setRef(e,n,s){if(this[Es].has(e))throw new Error(`Cannot overwrite immutable attribute, "${e}".`);const r=this[Ce][e];if(r&&r.dispose(),!n)return this;const i=this.graph.createEdge(e,this,n,s);return i.addEventListener("dispose",()=>{delete this[Ce][e],this.dispatchEvent({type:"change",attribute:e})}),this[Ce][e]=i,this.dispatchEvent({type:"change",attribute:e})}listRefs(e){return this[Ce][e].map(s=>s.getChild())}addRef(e,n,s){const r=this.graph.createEdge(e,this,n,s),i=this[Ce][e];return i.push(r),r.addEventListener("dispose",()=>{let o;for(;(o=i.indexOf(r))!==-1;)i.splice(o,1);this.dispatchEvent({type:"change",attribute:e})}),this.dispatchEvent({type:"change",attribute:e})}removeRef(e,n){return this[Ce][e].filter(i=>i.getChild()===n).forEach(i=>i.dispose()),this}listRefMapKeys(e){return Object.keys(this[Ce][e])}listRefMapValues(e){return Object.values(this[Ce][e]).map(n=>n.getChild())}getRefMap(e,n){const s=this[Ce][e];return s[n]?s[n].getChild():null}setRefMap(e,n,s,r){const i=this[Ce][e],o=i[n];if(o&&o.dispose(),!s)return this;r=Object.assign(r||{},{key:n});const a=this.graph.createEdge(e,this,s,ar({},r,{key:n}));return a.addEventListener("dispose",()=>{delete i[n],this.dispatchEvent({type:"change",attribute:e,key:n})}),i[n]=a,this.dispatchEvent({type:"change",attribute:e,key:n})}dispatchEvent(e){return super.dispatchEvent(ar({},e,{target:this})),this.graph.dispatchEvent(ar({},e,{target:this,type:`node:${e.type}`})),this}}const Kh="v3.10.1",Bi="@glb.bin";var ne,zi,yt,Pa,Qn;(function(t){t.ACCESSOR="Accessor",t.ANIMATION="Animation",t.ANIMATION_CHANNEL="AnimationChannel",t.ANIMATION_SAMPLER="AnimationSampler",t.BUFFER="Buffer",t.CAMERA="Camera",t.MATERIAL="Material",t.MESH="Mesh",t.PRIMITIVE="Primitive",t.PRIMITIVE_TARGET="PrimitiveTarget",t.NODE="Node",t.ROOT="Root",t.SCENE="Scene",t.SKIN="Skin",t.TEXTURE="Texture",t.TEXTURE_INFO="TextureInfo"})(ne||(ne={})),function(t){t.INTERLEAVED="interleaved",t.SEPARATE="separate"}(zi||(zi={})),function(t){t.ARRAY_BUFFER="ARRAY_BUFFER",t.ELEMENT_ARRAY_BUFFER="ELEMENT_ARRAY_BUFFER",t.INVERSE_BIND_MATRICES="INVERSE_BIND_MATRICES",t.OTHER="OTHER",t.SPARSE="SPARSE"}(yt||(yt={})),function(t){t[t.R=4096]="R",t[t.G=256]="G",t[t.B=16]="B",t[t.A=1]="A"}(Pa||(Pa={})),function(t){t.GLTF="GLTF",t.GLB="GLB"}(Qn||(Qn={}));const Di={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};var Kr,Oa=typeof Float32Array<"u"?Float32Array:Array;function Zo(t){return Math.hypot(t[0],t[1],t[2])}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),Kr=new Oa(3),Oa!=Float32Array&&(Kr[0]=0,Kr[1]=0,Kr[2]=0);class Se{static createBufferFromDataURI(e){if(typeof Buffer>"u"){const n=atob(e.split(",")[1]),s=new Uint8Array(n.length);for(let r=0;r<n.length;r++)s[r]=n.charCodeAt(r);return s}{const n=e.split(",")[1],s=e.indexOf("base64")>=0;return Buffer.from(n,s?"base64":"utf8")}}static encodeText(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Buffer.from(e)}static decodeText(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Buffer.from(e).toString("utf8")}static concat(e){let n=0;for(const i of e)n+=i.byteLength;const s=new Uint8Array(n);let r=0;for(const i of e)s.set(i,r),r+=i.byteLength;return s}static pad(e,n=0){const s=this.padNumber(e.byteLength);if(s===e.byteLength)return e;const r=new Uint8Array(s);if(r.set(e),n!==0)for(let i=e.byteLength;i<s;i++)r[i]=n;return r}static padNumber(e){return 4*Math.ceil(e/4)}static equals(e,n){if(e===n)return!0;if(e.byteLength!==n.byteLength)return!1;let s=e.byteLength;for(;s--;)if(e[s]!==n[s])return!1;return!0}static toView(e,n=0,s=1/0){return new Uint8Array(e.buffer,e.byteOffset+n,Math.min(e.byteLength,s))}static assertView(e){if(e&&!ArrayBuffer.isView(e))throw new Error(`Method requires Uint8Array parameter; received "${typeof e}".`);return e}}class Jr{static hexToFactor(e,n){e=Math.floor(e);const s=n;return s[0]=(e>>16&255)/255,s[1]=(e>>8&255)/255,s[2]=(255&e)/255,this.convertSRGBToLinear(n,n)}static factorToHex(e){const n=[...e],[s,r,i]=this.convertLinearToSRGB(e,n);return 255*s<<16^255*r<<8^255*i<<0}static convertSRGBToLinear(e,n){const s=e,r=n;for(let i=0;i<3;i++)r[i]=s[i]<.04045?.0773993808*s[i]:Math.pow(.9478672986*s[i]+.0521327014,2.4);return n}static convertLinearToSRGB(e,n){const s=e,r=n;for(let i=0;i<3;i++)r[i]=s[i]<.0031308?12.92*s[i]:1.055*Math.pow(s[i],.41666)-.055;return n}}class bo{match(e){return e.length>=8&&e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71&&e[4]===13&&e[5]===10&&e[6]===26&&e[7]===10}getSize(e){const n=new DataView(e.buffer,e.byteOffset);return Se.decodeText(e.slice(12,16))===bo.PNG_FRIED_CHUNK_NAME?[n.getUint32(32,!1),n.getUint32(36,!1)]:[n.getUint32(16,!1),n.getUint32(20,!1)]}getChannels(e){return 4}}bo.PNG_FRIED_CHUNK_NAME="CgBI";class es{static registerFormat(e,n){this.impls[e]=n}static getMimeType(e){for(const n in this.impls)if(this.impls[n].match(e))return n;return null}static getSize(e,n){return this.impls[n]?this.impls[n].getSize(e):null}static getChannels(e,n){return this.impls[n]?this.impls[n].getChannels(e):null}static getVRAMByteLength(e,n){if(!this.impls[n])return null;if(this.impls[n].getVRAMByteLength)return this.impls[n].getVRAMByteLength(e);let s=0;const r=this.getSize(e,n);if(!r)return null;for(;r[0]>1||r[1]>1;)s+=r[0]*r[1]*4,r[0]=Math.max(Math.floor(r[0]/2),1),r[1]=Math.max(Math.floor(r[1]/2),1);return s+=4,s}static mimeTypeToExtension(e){return e==="image/jpeg"?"jpg":e.split("/").pop()}static extensionToMimeType(e){return e==="jpg"?"image/jpeg":e?`image/${e}`:""}}function px(t,e){if(e>t.byteLength)throw new TypeError("Corrupt JPG, exceeded buffer limits");if(t.getUint8(e)!==255)throw new TypeError("Invalid JPG, marker table corrupted");return t}es.impls={"image/jpeg":new class{match(t){return t.length>=3&&t[0]===255&&t[1]===216&&t[2]===255}getSize(t){let e,n,s=new DataView(t.buffer,t.byteOffset+4);for(;s.byteLength;){if(e=s.getUint16(0,!1),px(s,e),n=s.getUint8(e+1),n===192||n===193||n===194)return[s.getUint16(e+7,!1),s.getUint16(e+5,!1)];s=new DataView(t.buffer,s.byteOffset+e+2)}throw new TypeError("Invalid JPG, no size found")}getChannels(t){return 3}},"image/png":new bo};class Ns{static basename(e){const n=e.split(/[\\/]/).pop();return n.substring(0,n.lastIndexOf("."))}static extension(e){if(e.startsWith("data:image/")){const n=e.match(/data:(image\/\w+)/)[1];return es.mimeTypeToExtension(n)}return e.startsWith("data:model/gltf+json")?"gltf":e.startsWith("data:model/gltf-binary")?"glb":e.startsWith("data:application/")?"bin":e.split(/[\\/]/).pop().split(/[.]/).pop()}}function zc(t){return Object.prototype.toString.call(t)==="[object Object]"}function Yn(t){if(zc(t)===!1)return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return zc(n)!==!1&&Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")!==!1}var Ko,Na;(function(t){t[t.SILENT=4]="SILENT",t[t.ERROR=3]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=1]="INFO",t[t.DEBUG=0]="DEBUG"})(Na||(Na={}));class Et{constructor(e){this.verbosity=void 0,this.verbosity=e}debug(e){this.verbosity<=Et.Verbosity.DEBUG&&console.debug(e)}info(e){this.verbosity<=Et.Verbosity.INFO&&console.info(e)}warn(e){this.verbosity<=Et.Verbosity.WARN&&console.warn(e)}error(e){this.verbosity<=Et.Verbosity.ERROR&&console.error(e)}}function yx(t,e,n){var s=e[0],r=e[1],i=e[2],o=e[3],a=e[4],l=e[5],u=e[6],c=e[7],d=e[8],f=e[9],h=e[10],g=e[11],p=e[12],v=e[13],S=e[14],m=e[15],y=n[0],x=n[1],C=n[2],b=n[3];return t[0]=y*s+x*a+C*d+b*p,t[1]=y*r+x*l+C*f+b*v,t[2]=y*i+x*u+C*h+b*S,t[3]=y*o+x*c+C*g+b*m,t[4]=(y=n[4])*s+(x=n[5])*a+(C=n[6])*d+(b=n[7])*p,t[5]=y*r+x*l+C*f+b*v,t[6]=y*i+x*u+C*h+b*S,t[7]=y*o+x*c+C*g+b*m,t[8]=(y=n[8])*s+(x=n[9])*a+(C=n[10])*d+(b=n[11])*p,t[9]=y*r+x*l+C*f+b*v,t[10]=y*i+x*u+C*h+b*S,t[11]=y*o+x*c+C*g+b*m,t[12]=(y=n[12])*s+(x=n[13])*a+(C=n[14])*d+(b=n[15])*p,t[13]=y*r+x*l+C*f+b*v,t[14]=y*i+x*u+C*h+b*S,t[15]=y*o+x*c+C*g+b*m,t}Ko=Et,Et.Verbosity=Na,Et.DEFAULT_INSTANCE=new Ko(Ko.Verbosity.INFO);class De{static identity(e){return e}static eq(e,n,s=1e-5){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(Math.abs(e[r]-n[r])>s)return!1;return!0}static decodeNormalizedInt(e,n){switch(n){case 5126:return e;case 5123:return e/65535;case 5121:return e/255;case 5122:return Math.max(e/32767,-1);case 5120:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}static denormalize(e,n){return De.decodeNormalizedInt(e,n)}static encodeNormalizedInt(e,n){switch(n){case 5126:return e;case 5123:return Math.round(65535*e);case 5121:return Math.round(255*e);case 5122:return Math.round(32767*e);case 5120:return Math.round(127*e);default:throw new Error("Invalid component type.")}}static normalize(e,n){return De.encodeNormalizedInt(e,n)}static decompose(e,n,s,r){let i=Zo([e[0],e[1],e[2]]);const o=Zo([e[4],e[5],e[6]]),a=Zo([e[8],e[9],e[10]]);var l,u,c,d,f,h,g,p,v,S,m,y,x,C,b,w,E;((u=(l=e)[0])*(g=l[5])-(c=l[1])*(h=l[4]))*((y=l[10])*(E=l[15])-(x=l[11])*(w=l[14]))-(u*(p=l[6])-(d=l[2])*h)*((m=l[9])*E-x*(b=l[13]))+(u*(v=l[7])-(f=l[3])*h)*(m*w-y*b)+(c*p-d*g)*((S=l[8])*E-x*(C=l[12]))-(c*v-f*g)*(S*w-y*C)+(d*v-f*p)*(S*b-m*C)<0&&(i=-i),n[0]=e[12],n[1]=e[13],n[2]=e[14];const k=e.slice(),V=1/i,I=1/o,T=1/a;k[0]*=V,k[1]*=V,k[2]*=V,k[4]*=I,k[5]*=I,k[6]*=I,k[8]*=T,k[9]*=T,k[10]*=T,function(F,P){var H=new Oa(3);(function(wt,Qe){var Nn=Qe[4],M=Qe[5],A=Qe[6],O=Qe[8],N=Qe[9],B=Qe[10];wt[0]=Math.hypot(Qe[0],Qe[1],Qe[2]),wt[1]=Math.hypot(Nn,M,A),wt[2]=Math.hypot(O,N,B)})(H,P);var q=1/H[0],Z=1/H[1],j=1/H[2],ae=P[0]*q,Q=P[1]*Z,se=P[2]*j,ce=P[4]*q,Te=P[5]*Z,ge=P[6]*j,Ve=P[8]*q,X=P[9]*Z,xe=P[10]*j,gn=ae+Te+xe,ke=0;gn>0?(ke=2*Math.sqrt(gn+1),F[3]=.25*ke,F[0]=(ge-X)/ke,F[1]=(Ve-se)/ke,F[2]=(Q-ce)/ke):ae>Te&&ae>xe?(ke=2*Math.sqrt(1+ae-Te-xe),F[3]=(ge-X)/ke,F[0]=.25*ke,F[1]=(Q+ce)/ke,F[2]=(Ve+se)/ke):Te>xe?(ke=2*Math.sqrt(1+Te-ae-xe),F[3]=(Ve-se)/ke,F[0]=(Q+ce)/ke,F[1]=.25*ke,F[2]=(ge+X)/ke):(ke=2*Math.sqrt(1+xe-ae-Te),F[3]=(Q-ce)/ke,F[0]=(Ve+se)/ke,F[1]=(ge+X)/ke,F[2]=.25*ke)}(s,k),r[0]=i,r[1]=o,r[2]=a}static compose(e,n,s,r){const i=r,o=n[0],a=n[1],l=n[2],u=n[3],c=o+o,d=a+a,f=l+l,h=o*c,g=o*d,p=o*f,v=a*d,S=a*f,m=l*f,y=u*c,x=u*d,C=u*f,b=s[0],w=s[1],E=s[2];return i[0]=(1-(v+m))*b,i[1]=(g+C)*b,i[2]=(p-x)*b,i[3]=0,i[4]=(g-C)*w,i[5]=(1-(h+m))*w,i[6]=(S+y)*w,i[7]=0,i[8]=(p+x)*E,i[9]=(S-y)*E,i[10]=(1-(h+v))*E,i[11]=0,i[12]=e[0],i[13]=e[1],i[14]=e[2],i[15]=1,i}}function bx(t,e){if(!!t!=!!e)return!1;const n=t.getChild(),s=e.getChild();return n===s||n.equals(s)}function xx(t,e){if(!!t!=!!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++){const s=t[n],r=e[n];if(s.getChild()!==r.getChild()&&!s.getChild().equals(r.getChild()))return!1}return!0}function wx(t,e){if(!!t!=!!e)return!1;const n=Object.keys(t),s=Object.keys(e);if(n.length!==s.length)return!1;for(const r in t){const i=t[r],o=e[r];if(!!i!=!!o)return!1;const a=i.getChild(),l=o.getChild();if(a!==l&&!a.equals(l))return!1}return!0}function Jh(t,e){if(t===e)return!0;if(!!t!=!!e||!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Qh(t,e){if(t===e)return!0;if(!!t!=!!e)return!1;if(!Yn(t)||!Yn(e))return t===e;const n=t,s=e;let r,i=0,o=0;for(r in n)i++;for(r in s)o++;if(i!==o)return!1;for(r in n){const a=n[r],l=s[r];if($i(a)&&$i(l)){if(!Jh(a,l))return!1}else if(Yn(a)&&Yn(l)){if(!Qh(a,l))return!1}else if(a!==l)return!1}return!0}function $i(t){return Array.isArray(t)||ArrayBuffer.isView(t)}const Dc=new Set,_x=function(){let t="";for(let e=0;e<6;e++)t+="23456789abdegjkmnpqrvwxyzABDEGJKMNPQRVWXYZ".charAt(Math.floor(42*Math.random()));return t},Sx=function(){for(let t=0;t<999;t++){const e=_x();if(!Dc.has(e))return Dc.add(e),e}return""},$c="https://null.example";let lr=class{static dirname(e){const n=e.lastIndexOf("/");return n===-1?"./":e.substring(0,n+1)}static basename(e){return Ns.basename(new URL(e,$c).pathname)}static extension(e){return Ns.extension(new URL(e,$c).pathname)}static resolve(e,n){if(!this.isRelativePath(n))return n;const s=e.split("/"),r=n.split("/");s.pop();for(let i=0;i<r.length;i++)r[i]!=="."&&(r[i]===".."?s.pop():s.push(r[i]));return s.join("/")}static isAbsoluteURL(e){return this.PROTOCOL_REGEXP.test(e)}static isRelativePath(e){return!/^(?:[a-zA-Z]+:)?\//.test(e)}};lr.DEFAULT_INIT={},lr.PROTOCOL_REGEXP=/^[a-zA-Z]+:\/\//;const un=t=>t,Cx=new Set;class Al extends Tl{constructor(e,n=""){super(e),this[Ce].name=n,this.init(),this.dispatchEvent({type:"create"})}getGraph(){return this.graph}getDefaults(){return Object.assign(super.getDefaults(),{name:"",extras:{}})}set(e,n){return Array.isArray(n)&&(n=n.slice()),super.set(e,n)}getName(){return this.get("name")}setName(e){return this.set("name",e)}getExtras(){return this.get("extras")}setExtras(e){return this.set("extras",e)}clone(){return new this.constructor(this.graph).copy(this,un)}copy(e,n=un){for(const s in this[Ce]){const r=this[Ce][s];if(r instanceof Os)this[Es].has(s)||r.dispose();else if(Js(r))for(const i of r)i.dispose();else if(Qs(r))for(const i in r)r[i].dispose()}for(const s in e[Ce]){const r=this[Ce][s],i=e[Ce][s];if(i instanceof Os)this[Es].has(s)?r.getChild().copy(n(i.getChild()),n):this.setRef(s,n(i.getChild()),i.getAttributes());else if(Js(i))for(const o of i)this.addRef(s,n(o.getChild()),o.getAttributes());else if(Qs(i))for(const o in i){const a=i[o];this.setRefMap(s,o,n(a.getChild()),a.getAttributes())}else this[Ce][s]=Yn(i)?JSON.parse(JSON.stringify(i)):Array.isArray(i)||i instanceof ArrayBuffer||ArrayBuffer.isView(i)?i.slice():i}return this}equals(e,n=Cx){if(this===e)return!0;if(this.propertyType!==e.propertyType)return!1;for(const s in this[Ce]){if(n.has(s))continue;const r=this[Ce][s],i=e[Ce][s];if(La(r)||La(i)){if(!bx(r,i))return!1}else if(Js(r)||Js(i)){if(!xx(r,i))return!1}else if(Qs(r)||Qs(i)){if(!wx(r,i))return!1}else if(Yn(r)||Yn(i)){if(!Qh(r,i))return!1}else if($i(r)||$i(i)){if(!Jh(r,i))return!1}else if(r!==i)return!1}return!0}detach(){return this.graph.disconnectParents(this,e=>e.propertyType!=="Root"),this}listParents(){return this.graph.listParents(this)}}class st extends Al{getDefaults(){return Object.assign(super.getDefaults(),{extensions:{}})}getExtension(e){return this.getRefMap("extensions",e)}setExtension(e,n){return n&&n.t(this),this.setRefMap("extensions",e,n)}listExtensions(){return this.listRefMapValues("extensions")}}class ue extends st{constructor(...e){super(...e),this.i=De.identity,this.o=De.identity}init(){this.propertyType=ne.ACCESSOR}getDefaults(){return Object.assign(super.getDefaults(),{array:null,type:ue.Type.SCALAR,componentType:ue.ComponentType.FLOAT,normalized:!1,sparse:!1,buffer:null})}copy(e,n=un){return super.copy(e,n),this.i=e.i,this.o=e.o,this}static getElementSize(e){switch(e){case ue.Type.SCALAR:return 1;case ue.Type.VEC2:return 2;case ue.Type.VEC3:return 3;case ue.Type.VEC4:case ue.Type.MAT2:return 4;case ue.Type.MAT3:return 9;case ue.Type.MAT4:return 16;default:throw new Error("Unexpected type: "+e)}}static getComponentSize(e){switch(e){case ue.ComponentType.BYTE:case ue.ComponentType.UNSIGNED_BYTE:return 1;case ue.ComponentType.SHORT:case ue.ComponentType.UNSIGNED_SHORT:return 2;case ue.ComponentType.UNSIGNED_INT:case ue.ComponentType.FLOAT:return 4;default:throw new Error("Unexpected component type: "+e)}}getMinNormalized(e){const n=this.getElementSize();this.getMin(e);for(let s=0;s<n;s++)e[s]=this.o(e[s]);return e}getMin(e){const n=this.get("array"),s=this.getCount(),r=this.getElementSize();for(let i=0;i<r;i++)e[i]=1/0;for(let i=0;i<s*r;i+=r)for(let o=0;o<r;o++){const a=n[i+o];Number.isFinite(a)&&(e[o]=Math.min(e[o],a))}return e}getMaxNormalized(e){const n=this.getElementSize();this.getMax(e);for(let s=0;s<n;s++)e[s]=this.o(e[s]);return e}getMax(e){const n=this.get("array"),s=this.getCount(),r=this.getElementSize();for(let i=0;i<r;i++)e[i]=-1/0;for(let i=0;i<s*r;i+=r)for(let o=0;o<r;o++){const a=n[i+o];Number.isFinite(a)&&(e[o]=Math.max(e[o],a))}return e}getCount(){const e=this.get("array");return e?e.length/this.getElementSize():0}getType(){return this.get("type")}setType(e){return this.set("type",e)}getElementSize(){return ue.getElementSize(this.get("type"))}getComponentSize(){return this.get("array").BYTES_PER_ELEMENT}getComponentType(){return this.get("componentType")}getNormalized(){return this.get("normalized")}setNormalized(e){return this.set("normalized",e),e?(this.o=n=>De.decodeNormalizedInt(n,this.get("componentType")),this.i=n=>De.encodeNormalizedInt(n,this.get("componentType"))):(this.o=De.identity,this.i=De.identity),this}getScalar(e){const n=this.getElementSize();return this.o(this.get("array")[e*n])}setScalar(e,n){return this.get("array")[e*this.getElementSize()]=this.i(n),this}getElement(e,n){const s=this.getElementSize(),r=this.get("array");for(let i=0;i<s;i++)n[i]=this.o(r[e*s+i]);return n}setElement(e,n){const s=this.getElementSize(),r=this.get("array");for(let i=0;i<s;i++)r[e*s+i]=this.i(n[i]);return this}getSparse(){return this.get("sparse")}setSparse(e){return this.set("sparse",e)}getBuffer(){return this.getRef("buffer")}setBuffer(e){return this.setRef("buffer",e)}getArray(){return this.get("array")}setArray(e){return this.set("componentType",e?function(n){switch(n.constructor){case Float32Array:return ue.ComponentType.FLOAT;case Uint32Array:return ue.ComponentType.UNSIGNED_INT;case Uint16Array:return ue.ComponentType.UNSIGNED_SHORT;case Uint8Array:return ue.ComponentType.UNSIGNED_BYTE;case Int16Array:return ue.ComponentType.SHORT;case Int8Array:return ue.ComponentType.BYTE;default:throw new Error("Unknown accessor componentType.")}}(e):ue.ComponentType.FLOAT),this.set("array",e),this}getByteLength(){const e=this.get("array");return e?e.byteLength:0}}ue.Type={SCALAR:"SCALAR",VEC2:"VEC2",VEC3:"VEC3",VEC4:"VEC4",MAT2:"MAT2",MAT3:"MAT3",MAT4:"MAT4"},ue.ComponentType={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,UNSIGNED_INT:5125,FLOAT:5126};class em extends st{init(){this.propertyType=ne.ANIMATION}getDefaults(){return Object.assign(super.getDefaults(),{channels:[],samplers:[]})}addChannel(e){return this.addRef("channels",e)}removeChannel(e){return this.removeRef("channels",e)}listChannels(){return this.listRefs("channels")}addSampler(e){return this.addRef("samplers",e)}removeSampler(e){return this.removeRef("samplers",e)}listSamplers(){return this.listRefs("samplers")}}class Rl extends st{init(){this.propertyType=ne.ANIMATION_CHANNEL}getDefaults(){return Object.assign(super.getDefaults(),{targetPath:null,targetNode:null,sampler:null})}getTargetPath(){return this.get("targetPath")}setTargetPath(e){return this.set("targetPath",e)}getTargetNode(){return this.getRef("targetNode")}setTargetNode(e){return this.setRef("targetNode",e)}getSampler(){return this.getRef("sampler")}setSampler(e){return this.setRef("sampler",e)}}Rl.TargetPath={TRANSLATION:"translation",ROTATION:"rotation",SCALE:"scale",WEIGHTS:"weights"};class Lr extends st{init(){this.propertyType=ne.ANIMATION_SAMPLER}getDefaultAttributes(){return Object.assign(super.getDefaults(),{interpolation:Lr.Interpolation.LINEAR,input:null,output:null})}getInterpolation(){return this.get("interpolation")}setInterpolation(e){return this.set("interpolation",e)}getInput(){return this.getRef("input")}setInput(e){return this.setRef("input",e,{usage:yt.OTHER})}getOutput(){return this.getRef("output")}setOutput(e){return this.setRef("output",e,{usage:yt.OTHER})}}Lr.Interpolation={LINEAR:"LINEAR",STEP:"STEP",CUBICSPLINE:"CUBICSPLINE"};class Il extends st{init(){this.propertyType=ne.BUFFER}getDefaults(){return Object.assign(super.getDefaults(),{uri:""})}getURI(){return this.get("uri")}setURI(e){return this.set("uri",e)}}class fs extends st{init(){this.propertyType=ne.CAMERA}getDefaults(){return Object.assign(super.getDefaults(),{type:fs.Type.PERSPECTIVE,znear:.1,zfar:100,aspectRatio:null,yfov:2*Math.PI*50/360,xmag:1,ymag:1})}getType(){return this.get("type")}setType(e){return this.set("type",e)}getZNear(){return this.get("znear")}setZNear(e){return this.set("znear",e)}getZFar(){return this.get("zfar")}setZFar(e){return this.set("zfar",e)}getAspectRatio(){return this.get("aspectRatio")}setAspectRatio(e){return this.set("aspectRatio",e)}getYFov(){return this.get("yfov")}setYFov(e){return this.set("yfov",e)}getXMag(){return this.get("xmag")}setXMag(e){return this.set("xmag",e)}getYMag(){return this.get("ymag")}setYMag(e){return this.set("ymag",e)}}fs.Type={PERSPECTIVE:"perspective",ORTHOGRAPHIC:"orthographic"};class Ex extends Al{t(e){if(!this.parentTypes.includes(e.propertyType))throw new Error(`Parent "${e.propertyType}" invalid for child "${this.propertyType}".`)}}Ex.EXTENSION_NAME=void 0;class Nt extends st{init(){this.propertyType=ne.TEXTURE_INFO}getDefaults(){return Object.assign(super.getDefaults(),{texCoord:0,magFilter:null,minFilter:null,wrapS:Nt.WrapMode.REPEAT,wrapT:Nt.WrapMode.REPEAT})}getTexCoord(){return this.get("texCoord")}setTexCoord(e){return this.set("texCoord",e)}getMagFilter(){return this.get("magFilter")}setMagFilter(e){return this.set("magFilter",e)}getMinFilter(){return this.get("minFilter")}setMinFilter(e){return this.set("minFilter",e)}getWrapS(){return this.get("wrapS")}setWrapS(e){return this.set("wrapS",e)}getWrapT(){return this.get("wrapT")}setWrapT(e){return this.set("wrapT",e)}}Nt.WrapMode={CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,REPEAT:10497},Nt.MagFilter={NEAREST:9728,LINEAR:9729},Nt.MinFilter={NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987};const{R:Qr,G:ei,B:ti,A:Mx}=Pa;class ss extends st{init(){this.propertyType=ne.MATERIAL}getDefaults(){return Object.assign(super.getDefaults(),{alphaMode:ss.AlphaMode.OPAQUE,alphaCutoff:.5,doubleSided:!1,baseColorFactor:[1,1,1,1],baseColorTexture:null,baseColorTextureInfo:new Nt(this.graph,"baseColorTextureInfo"),emissiveFactor:[0,0,0],emissiveTexture:null,emissiveTextureInfo:new Nt(this.graph,"emissiveTextureInfo"),normalScale:1,normalTexture:null,normalTextureInfo:new Nt(this.graph,"normalTextureInfo"),occlusionStrength:1,occlusionTexture:null,occlusionTextureInfo:new Nt(this.graph,"occlusionTextureInfo"),roughnessFactor:1,metallicFactor:1,metallicRoughnessTexture:null,metallicRoughnessTextureInfo:new Nt(this.graph,"metallicRoughnessTextureInfo")})}getDoubleSided(){return this.get("doubleSided")}setDoubleSided(e){return this.set("doubleSided",e)}getAlpha(){return this.get("baseColorFactor")[3]}setAlpha(e){const n=this.get("baseColorFactor").slice();return n[3]=e,this.set("baseColorFactor",n)}getAlphaMode(){return this.get("alphaMode")}setAlphaMode(e){return this.set("alphaMode",e)}getAlphaCutoff(){return this.get("alphaCutoff")}setAlphaCutoff(e){return this.set("alphaCutoff",e)}getBaseColorFactor(){return this.get("baseColorFactor")}setBaseColorFactor(e){return this.set("baseColorFactor",e)}getBaseColorHex(){return Jr.factorToHex(this.get("baseColorFactor"))}setBaseColorHex(e){const n=this.get("baseColorFactor").slice();return this.set("baseColorFactor",Jr.hexToFactor(e,n))}getBaseColorTexture(){return this.getRef("baseColorTexture")}getBaseColorTextureInfo(){return this.getRef("baseColorTexture")?this.getRef("baseColorTextureInfo"):null}setBaseColorTexture(e){return this.setRef("baseColorTexture",e,{channels:Qr|ei|ti|Mx,isColor:!0})}getEmissiveFactor(){return this.get("emissiveFactor")}setEmissiveFactor(e){return this.set("emissiveFactor",e)}getEmissiveHex(){return Jr.factorToHex(this.get("emissiveFactor"))}setEmissiveHex(e){const n=this.get("emissiveFactor").slice();return this.set("emissiveFactor",Jr.hexToFactor(e,n))}getEmissiveTexture(){return this.getRef("emissiveTexture")}getEmissiveTextureInfo(){return this.getRef("emissiveTexture")?this.getRef("emissiveTextureInfo"):null}setEmissiveTexture(e){return this.setRef("emissiveTexture",e,{channels:Qr|ei|ti,isColor:!0})}getNormalScale(){return this.get("normalScale")}setNormalScale(e){return this.set("normalScale",e)}getNormalTexture(){return this.getRef("normalTexture")}getNormalTextureInfo(){return this.getRef("normalTexture")?this.getRef("normalTextureInfo"):null}setNormalTexture(e){return this.setRef("normalTexture",e,{channels:Qr|ei|ti})}getOcclusionStrength(){return this.get("occlusionStrength")}setOcclusionStrength(e){return this.set("occlusionStrength",e)}getOcclusionTexture(){return this.getRef("occlusionTexture")}getOcclusionTextureInfo(){return this.getRef("occlusionTexture")?this.getRef("occlusionTextureInfo"):null}setOcclusionTexture(e){return this.setRef("occlusionTexture",e,{channels:Qr})}getRoughnessFactor(){return this.get("roughnessFactor")}setRoughnessFactor(e){return this.set("roughnessFactor",e)}getMetallicFactor(){return this.get("metallicFactor")}setMetallicFactor(e){return this.set("metallicFactor",e)}getMetallicRoughnessTexture(){return this.getRef("metallicRoughnessTexture")}getMetallicRoughnessTextureInfo(){return this.getRef("metallicRoughnessTexture")?this.getRef("metallicRoughnessTextureInfo"):null}setMetallicRoughnessTexture(e){return this.setRef("metallicRoughnessTexture",e,{channels:ei|ti})}}ss.AlphaMode={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};class tm extends st{init(){this.propertyType=ne.MESH}getDefaults(){return Object.assign(super.getDefaults(),{weights:[],primitives:[]})}addPrimitive(e){return this.addRef("primitives",e)}removePrimitive(e){return this.removeRef("primitives",e)}listPrimitives(){return this.listRefs("primitives")}getWeights(){return this.get("weights")}setWeights(e){return this.set("weights",e)}}class nm extends st{constructor(...e){super(...e),this.u=null,this.h=new Set}init(){this.propertyType=ne.NODE}getDefaults(){return Object.assign(super.getDefaults(),{translation:[0,0,0],rotation:[0,0,0,1],scale:[1,1,1],weights:[],camera:null,mesh:null,skin:null,children:[]})}copy(e,n=un){if(n===un)throw new Error("Node cannot be copied.");return super.copy(e,n)}getTranslation(){return this.get("translation")}getRotation(){return this.get("rotation")}getScale(){return this.get("scale")}setTranslation(e){return this.set("translation",e)}setRotation(e){return this.set("rotation",e)}setScale(e){return this.set("scale",e)}getMatrix(){return De.compose(this.get("translation"),this.get("rotation"),this.get("scale"),[])}setMatrix(e){const n=this.get("translation").slice(),s=this.get("rotation").slice(),r=this.get("scale").slice();return De.decompose(e,n,s,r),this.set("translation",n).set("rotation",s).set("scale",r)}getWorldTranslation(){const e=[0,0,0];return De.decompose(this.getWorldMatrix(),e,[0,0,0,1],[1,1,1]),e}getWorldRotation(){const e=[0,0,0,1];return De.decompose(this.getWorldMatrix(),[0,0,0],e,[1,1,1]),e}getWorldScale(){const e=[1,1,1];return De.decompose(this.getWorldMatrix(),[0,0,0],[0,0,0,1],e),e}getWorldMatrix(){const e=[];for(let r=this;r!=null;r=r.u)e.push(r);let n;const s=e.pop().getMatrix();for(;n=e.pop();)yx(s,s,n.getMatrix());return s}addChild(e){if(e.u&&e.u.removeChild(e),e.h.size)for(const s of e.h)s.removeChild(e);this.addRef("children",e),e.u=this;const n=this[Ce].children;return n[n.length-1].addEventListener("dispose",()=>e.u=null),this}removeChild(e){return this.removeRef("children",e)}listChildren(){return this.listRefs("children")}getParent(){return this.u?this.u:this.listParents().find(e=>e.propertyType===ne.SCENE)||null}getParentNode(){return this.u}getMesh(){return this.getRef("mesh")}setMesh(e){return this.setRef("mesh",e)}getCamera(){return this.getRef("camera")}setCamera(e){return this.setRef("camera",e)}getSkin(){return this.getRef("skin")}setSkin(e){return this.setRef("skin",e)}getWeights(){return this.get("weights")}setWeights(e){return this.set("weights",e)}traverse(e){e(this);for(const n of this.listChildren())n.traverse(e);return this}}class xo extends st{init(){this.propertyType=ne.PRIMITIVE}getDefaults(){return Object.assign(super.getDefaults(),{mode:xo.Mode.TRIANGLES,material:null,indices:null,attributes:{},targets:[]})}getIndices(){return this.getRef("indices")}setIndices(e){return this.setRef("indices",e,{usage:yt.ELEMENT_ARRAY_BUFFER})}getAttribute(e){return this.getRefMap("attributes",e)}setAttribute(e,n){return this.setRefMap("attributes",e,n,{usage:yt.ARRAY_BUFFER})}listAttributes(){return this.listRefMapValues("attributes")}listSemantics(){return this.listRefMapKeys("attributes")}getMaterial(){return this.getRef("material")}setMaterial(e){return this.setRef("material",e)}getMode(){return this.get("mode")}setMode(e){return this.set("mode",e)}listTargets(){return this.listRefs("targets")}addTarget(e){return this.addRef("targets",e)}removeTarget(e){return this.removeRef("targets",e)}}xo.Mode={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6};class Tx extends Al{init(){this.propertyType=ne.PRIMITIVE_TARGET}getDefaults(){return Object.assign(super.getDefaults(),{attributes:{}})}getAttribute(e){return this.getRefMap("attributes",e)}setAttribute(e,n){return this.setRefMap("attributes",e,n,{usage:yt.ARRAY_BUFFER})}listAttributes(){return this.listRefMapValues("attributes")}listSemantics(){return this.listRefMapKeys("attributes")}}function nt(){return nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},nt.apply(this,arguments)}class kl extends st{init(){this.propertyType=ne.SCENE}getDefaults(){return Object.assign(super.getDefaults(),{children:[]})}copy(e,n=un){if(n===un)throw new Error("Scene cannot be copied.");return super.copy(e,n)}addChild(e){e.u&&e.u.removeChild(e),this.addRef("children",e),e.h.add(this);const n=this[Ce].children;return n[n.length-1].addEventListener("dispose",()=>e.h.delete(this)),this}removeChild(e){return this.removeRef("children",e)}listChildren(){return this.listRefs("children")}traverse(e){for(const n of this.listChildren())n.traverse(e);return this}}class sm extends st{init(){this.propertyType=ne.SKIN}getDefaults(){return Object.assign(super.getDefaults(),{skeleton:null,inverseBindMatrices:null,joints:[]})}getSkeleton(){return this.getRef("skeleton")}setSkeleton(e){return this.setRef("skeleton",e)}getInverseBindMatrices(){return this.getRef("inverseBindMatrices")}setInverseBindMatrices(e){return this.setRef("inverseBindMatrices",e,{usage:yt.INVERSE_BIND_MATRICES})}addJoint(e){return this.addRef("joints",e)}removeJoint(e){return this.removeRef("joints",e)}listJoints(){return this.listRefs("joints")}}class rm extends st{init(){this.propertyType=ne.TEXTURE}getDefaults(){return Object.assign(super.getDefaults(),{image:null,mimeType:"",uri:""})}getMimeType(){return this.get("mimeType")||es.extensionToMimeType(Ns.extension(this.get("uri")))}setMimeType(e){return this.set("mimeType",e)}getURI(){return this.get("uri")}setURI(e){this.set("uri",e);const n=es.extensionToMimeType(Ns.extension(e));return n&&this.set("mimeType",n),this}getImage(){return this.get("image")}setImage(e){return this.set("image",Se.assertView(e))}getSize(){const e=this.get("image");return e?es.getSize(e,this.getMimeType()):null}}class Ax extends st{init(){this.propertyType=ne.ROOT}getDefaults(){return Object.assign(super.getDefaults(),{asset:{generator:`glTF-Transform ${Kh}`,version:"2.0"},defaultScene:null,accessors:[],animations:[],buffers:[],cameras:[],materials:[],meshes:[],nodes:[],scenes:[],skins:[],textures:[]})}constructor(e){super(e),this.l=new Set,e.addEventListener("node:create",n=>{this.g(n.target)})}clone(){throw new Error("Root cannot be cloned.")}copy(e,n=un){if(n===un)throw new Error("Root cannot be copied.");this.set("asset",nt({},e.get("asset"))),this.setName(e.getName()),this.setExtras(nt({},e.getExtras())),this.setDefaultScene(e.getDefaultScene()?n(e.getDefaultScene()):null);for(const s of e.listRefMapKeys("extensions")){const r=e.getExtension(s);this.setExtension(s,n(r))}return this}g(e){return e instanceof kl?this.addRef("scenes",e):e instanceof nm?this.addRef("nodes",e):e instanceof fs?this.addRef("cameras",e):e instanceof sm?this.addRef("skins",e):e instanceof tm?this.addRef("meshes",e):e instanceof ss?this.addRef("materials",e):e instanceof rm?this.addRef("textures",e):e instanceof em?this.addRef("animations",e):e instanceof ue?this.addRef("accessors",e):e instanceof Il&&this.addRef("buffers",e),this}getAsset(){return this.get("asset")}listExtensionsUsed(){return Array.from(this.l)}listExtensionsRequired(){return this.listExtensionsUsed().filter(e=>e.isRequired())}p(e){return this.l.add(e),this}m(e){return this.l.delete(e),this}listScenes(){return this.listRefs("scenes")}setDefaultScene(e){return this.setRef("defaultScene",e)}getDefaultScene(){return this.getRef("defaultScene")}listNodes(){return this.listRefs("nodes")}listCameras(){return this.listRefs("cameras")}listSkins(){return this.listRefs("skins")}listMeshes(){return this.listRefs("meshes")}listMaterials(){return this.listRefs("materials")}listTextures(){return this.listRefs("textures")}listAnimations(){return this.listRefs("animations")}listAccessors(){return this.listRefs("accessors")}listBuffers(){return this.listRefs("buffers")}}class Fn{static fromGraph(e){return Fn.v.get(e)||null}constructor(){this.T=new mx,this.S=new Ax(this.T),this.M=Et.DEFAULT_INSTANCE,Fn.v.set(this.T,this)}getRoot(){return this.S}getGraph(){return this.T}getLogger(){return this.M}setLogger(e){return this.M=e,this}clone(){return new Fn().setLogger(this.M).merge(this)}merge(e){for(const i of e.getRoot().listExtensionsUsed()){const o=this.createExtension(i.constructor);i.isRequired()&&o.setRequired(!0)}const n=new Set,s=new Map;n.add(e.S),s.set(e.S,this.S);for(const i of e.T.listEdges())for(const o of[i.getParent(),i.getChild()]){if(n.has(o))continue;let a;a=o.propertyType===ne.TEXTURE_INFO?o:new o.constructor(this.T),s.set(o,a),n.add(o)}const r=i=>{const o=s.get(i);if(!o)throw new Error("Could resolve property.");return o};for(const i of n){const o=s.get(i);if(!o)throw new Error("Could resolve property.");o.propertyType!==ne.TEXTURE_INFO&&o.copy(i,r)}return this}async transform(...e){const n=e.map(s=>s.name);for(const s of e)await s(this,{stack:n});return this}createExtension(e){const n=e.EXTENSION_NAME;return this.getRoot().listExtensionsUsed().find(s=>s.extensionName===n)||new e(this)}createScene(e=""){return new kl(this.T,e)}createNode(e=""){return new nm(this.T,e)}createCamera(e=""){return new fs(this.T,e)}createSkin(e=""){return new sm(this.T,e)}createMesh(e=""){return new tm(this.T,e)}createPrimitive(){return new xo(this.T)}createPrimitiveTarget(e=""){return new Tx(this.T,e)}createMaterial(e=""){return new ss(this.T,e)}createTexture(e=""){return new rm(this.T,e)}createAnimation(e=""){return new em(this.T,e)}createAnimationChannel(e=""){return new Rl(this.T,e)}createAnimationSampler(e=""){return new Lr(this.T,e)}createAccessor(e="",n=null){return n||(n=this.getRoot().listBuffers()[0]),new ue(this.T,e).setBuffer(n)}createBuffer(e=""){return new Il(this.T,e)}}Fn.v=new WeakMap;class Rx{constructor(e){this.jsonDoc=void 0,this.buffers=[],this.bufferViews=[],this.bufferViewBuffers=[],this.accessors=[],this.textures=[],this.textureInfos=new Map,this.materials=[],this.meshes=[],this.cameras=[],this.nodes=[],this.skins=[],this.animations=[],this.scenes=[],this.jsonDoc=e}setTextureInfo(e,n){this.textureInfos.set(e,n),n.texCoord!==void 0&&e.setTexCoord(n.texCoord),n.extras!==void 0&&e.setExtras(n.extras);const s=this.jsonDoc.json.textures[n.index];if(s.sampler===void 0)return;const r=this.jsonDoc.json.samplers[s.sampler];r.magFilter!==void 0&&e.setMagFilter(r.magFilter),r.minFilter!==void 0&&e.setMinFilter(r.minFilter),r.wrapS!==void 0&&e.setWrapS(r.wrapS),r.wrapT!==void 0&&e.setWrapT(r.wrapT)}}const Hc={logger:Et.DEFAULT_INSTANCE,extensions:[],dependencies:{}};class Ix{static read(e,n=Hc){const s=nt({},Hc,n),{json:r}=e,i=new Fn().setLogger(s.logger);this.validate(e,s);const o=new Rx(e),a=r.asset,l=i.getRoot().getAsset();a.copyright&&(l.copyright=a.copyright),a.extras&&(l.extras=a.extras),r.extras!==void 0&&i.getRoot().setExtras(nt({},r.extras));const u=r.extensionsUsed||[],c=r.extensionsRequired||[];for(const m of s.extensions)if(u.includes(m.EXTENSION_NAME)){const y=i.createExtension(m).setRequired(c.includes(m.EXTENSION_NAME));for(const x of y.readDependencies)y.install(x,s.dependencies[x])}const d=r.buffers||[];i.getRoot().listExtensionsUsed().filter(m=>m.prereadTypes.includes(ne.BUFFER)).forEach(m=>m.preread(o,ne.BUFFER)),o.buffers=d.map(m=>{const y=i.createBuffer(m.name);return m.extras&&y.setExtras(m.extras),m.uri&&m.uri.indexOf("__")!==0&&y.setURI(m.uri),y}),o.bufferViewBuffers=(r.bufferViews||[]).map((m,y)=>{if(!o.bufferViews[y]){const x=e.json.buffers[m.buffer];o.bufferViews[y]=Se.toView(x.uri?e.resources[x.uri]:e.resources[Bi],m.byteOffset||0,m.byteLength)}return o.buffers[m.buffer]});const f=r.accessors||[];o.accessors=f.map(m=>{const y=i.createAccessor(m.name,o.bufferViewBuffers[m.bufferView]).setType(m.type);return m.extras&&y.setExtras(m.extras),m.normalized!==void 0&&y.setNormalized(m.normalized),m.bufferView===void 0||y.setArray(ni(m,o)),y});const h=r.images||[],g=r.textures||[];i.getRoot().listExtensionsUsed().filter(m=>m.prereadTypes.includes(ne.TEXTURE)).forEach(m=>m.preread(o,ne.TEXTURE)),o.textures=h.map(m=>{const y=i.createTexture(m.name);if(m.extras&&y.setExtras(m.extras),m.bufferView!==void 0){const x=r.bufferViews[m.bufferView],C=e.json.buffers[x.buffer],b=x.byteOffset||0,w=(C.uri?e.resources[C.uri]:e.resources[Bi]).slice(b,b+x.byteLength);y.setImage(w)}else m.uri!==void 0&&(y.setImage(e.resources[m.uri]),m.uri.indexOf("__")!==0&&y.setURI(m.uri));if(m.mimeType!==void 0)y.setMimeType(m.mimeType);else if(m.uri){const x=Ns.extension(m.uri);y.setMimeType(es.extensionToMimeType(x))}return y}),o.materials=(r.materials||[]).map(m=>{const y=i.createMaterial(m.name);m.extras&&y.setExtras(m.extras),m.alphaMode!==void 0&&y.setAlphaMode(m.alphaMode),m.alphaCutoff!==void 0&&y.setAlphaCutoff(m.alphaCutoff),m.doubleSided!==void 0&&y.setDoubleSided(m.doubleSided);const x=m.pbrMetallicRoughness||{};if(x.baseColorFactor!==void 0&&y.setBaseColorFactor(x.baseColorFactor),m.emissiveFactor!==void 0&&y.setEmissiveFactor(m.emissiveFactor),x.metallicFactor!==void 0&&y.setMetallicFactor(x.metallicFactor),x.roughnessFactor!==void 0&&y.setRoughnessFactor(x.roughnessFactor),x.baseColorTexture!==void 0){const C=x.baseColorTexture;y.setBaseColorTexture(o.textures[g[C.index].source]),o.setTextureInfo(y.getBaseColorTextureInfo(),C)}if(m.emissiveTexture!==void 0){const C=m.emissiveTexture;y.setEmissiveTexture(o.textures[g[C.index].source]),o.setTextureInfo(y.getEmissiveTextureInfo(),C)}if(m.normalTexture!==void 0){const C=m.normalTexture;y.setNormalTexture(o.textures[g[C.index].source]),o.setTextureInfo(y.getNormalTextureInfo(),C),m.normalTexture.scale!==void 0&&y.setNormalScale(m.normalTexture.scale)}if(m.occlusionTexture!==void 0){const C=m.occlusionTexture;y.setOcclusionTexture(o.textures[g[C.index].source]),o.setTextureInfo(y.getOcclusionTextureInfo(),C),m.occlusionTexture.strength!==void 0&&y.setOcclusionStrength(m.occlusionTexture.strength)}if(x.metallicRoughnessTexture!==void 0){const C=x.metallicRoughnessTexture;y.setMetallicRoughnessTexture(o.textures[g[C.index].source]),o.setTextureInfo(y.getMetallicRoughnessTextureInfo(),C)}return y});const p=r.meshes||[];i.getRoot().listExtensionsUsed().filter(m=>m.prereadTypes.includes(ne.PRIMITIVE)).forEach(m=>m.preread(o,ne.PRIMITIVE)),o.meshes=p.map(m=>{const y=i.createMesh(m.name);return m.extras&&y.setExtras(m.extras),m.weights!==void 0&&y.setWeights(m.weights),(m.primitives||[]).forEach(x=>{const C=i.createPrimitive();x.extras&&C.setExtras(x.extras),x.material!==void 0&&C.setMaterial(o.materials[x.material]),x.mode!==void 0&&C.setMode(x.mode);for(const[w,E]of Object.entries(x.attributes||{}))C.setAttribute(w,o.accessors[E]);x.indices!==void 0&&C.setIndices(o.accessors[x.indices]);const b=m.extras&&m.extras.targetNames||[];(x.targets||[]).forEach((w,E)=>{const k=b[E]||E.toString(),V=i.createPrimitiveTarget(k);for(const[I,T]of Object.entries(w))V.setAttribute(I,o.accessors[T]);C.addTarget(V)}),y.addPrimitive(C)}),y}),o.cameras=(r.cameras||[]).map(m=>{const y=i.createCamera(m.name).setType(m.type);if(m.extras&&y.setExtras(m.extras),m.type===fs.Type.PERSPECTIVE){const x=m.perspective;y.setYFov(x.yfov),y.setZNear(x.znear),x.zfar!==void 0&&y.setZFar(x.zfar),x.aspectRatio!==void 0&&y.setAspectRatio(x.aspectRatio)}else{const x=m.orthographic;y.setZNear(x.znear).setZFar(x.zfar).setXMag(x.xmag).setYMag(x.ymag)}return y});const v=r.nodes||[];i.getRoot().listExtensionsUsed().filter(m=>m.prereadTypes.includes(ne.NODE)).forEach(m=>m.preread(o,ne.NODE)),o.nodes=v.map(m=>{const y=i.createNode(m.name);if(m.extras&&y.setExtras(m.extras),m.translation!==void 0&&y.setTranslation(m.translation),m.rotation!==void 0&&y.setRotation(m.rotation),m.scale!==void 0&&y.setScale(m.scale),m.matrix!==void 0){const x=[0,0,0],C=[0,0,0,1],b=[1,1,1];De.decompose(m.matrix,x,C,b),y.setTranslation(x),y.setRotation(C),y.setScale(b)}return m.weights!==void 0&&y.setWeights(m.weights),y}),o.skins=(r.skins||[]).map(m=>{const y=i.createSkin(m.name);m.extras&&y.setExtras(m.extras),m.inverseBindMatrices!==void 0&&y.setInverseBindMatrices(o.accessors[m.inverseBindMatrices]),m.skeleton!==void 0&&y.setSkeleton(o.nodes[m.skeleton]);for(const x of m.joints)y.addJoint(o.nodes[x]);return y}),v.map((m,y)=>{const x=o.nodes[y];(m.children||[]).forEach(C=>x.addChild(o.nodes[C])),m.mesh!==void 0&&x.setMesh(o.meshes[m.mesh]),m.camera!==void 0&&x.setCamera(o.cameras[m.camera]),m.skin!==void 0&&x.setSkin(o.skins[m.skin])}),o.animations=(r.animations||[]).map(m=>{const y=i.createAnimation(m.name);m.extras&&y.setExtras(m.extras);const x=(m.samplers||[]).map(C=>{const b=i.createAnimationSampler().setInput(o.accessors[C.input]).setOutput(o.accessors[C.output]).setInterpolation(C.interpolation||Lr.Interpolation.LINEAR);return C.extras&&b.setExtras(C.extras),y.addSampler(b),b});return(m.channels||[]).forEach(C=>{const b=i.createAnimationChannel().setSampler(x[C.sampler]).setTargetPath(C.target.path);C.target.node!==void 0&&b.setTargetNode(o.nodes[C.target.node]),C.extras&&b.setExtras(C.extras),y.addChannel(b)}),y});const S=r.scenes||[];return i.getRoot().listExtensionsUsed().filter(m=>m.prereadTypes.includes(ne.SCENE)).forEach(m=>m.preread(o,ne.SCENE)),o.scenes=S.map(m=>{const y=i.createScene(m.name);return m.extras&&y.setExtras(m.extras),(m.nodes||[]).map(x=>o.nodes[x]).forEach(x=>y.addChild(x)),y}),r.scene!==void 0&&i.getRoot().setDefaultScene(o.scenes[r.scene]),i.getRoot().listExtensionsUsed().forEach(m=>m.read(o)),f.forEach((m,y)=>{const x=o.accessors[y],C=!!m.sparse,b=!m.bufferView&&!x.getArray();(C||b)&&x.setSparse(!0).setArray(function(w,E){const k=Di[w.componentType],V=ue.getElementSize(w.type);let I;I=w.bufferView!==void 0?ni(w,E):new k(w.count*V);const T=w.sparse;if(!T)return I;const F=T.count,P=nt({},w,T.indices,{count:F,type:"SCALAR"}),H=nt({},w,T.values,{count:F}),q=ni(P,E),Z=ni(H,E);for(let j=0;j<P.count;j++)for(let ae=0;ae<V;ae++)I[q[j]*V+ae]=Z[j*V+ae];return I}(m,o))}),i}static validate(e,n){const s=e.json;if(s.asset.version!=="2.0")throw new Error(`Unsupported glTF version, "${s.asset.version}".`);if(s.extensionsRequired){for(const r of s.extensionsRequired)if(!n.extensions.find(i=>i.EXTENSION_NAME===r))throw new Error(`Missing required extension, "${r}".`)}if(s.extensionsUsed)for(const r of s.extensionsUsed)n.extensions.find(i=>i.EXTENSION_NAME===r)||n.logger.warn(`Missing optional extension, "${r}".`)}}function ni(t,e){const n=e.bufferViews[t.bufferView],s=e.jsonDoc.json.bufferViews[t.bufferView],r=Di[t.componentType],i=ue.getElementSize(t.type),o=r.BYTES_PER_ELEMENT;if(s.byteStride!==void 0&&s.byteStride!==i*o)return function(l,u){const c=u.bufferViews[l.bufferView],d=u.jsonDoc.json.bufferViews[l.bufferView],f=Di[l.componentType],h=ue.getElementSize(l.type),g=f.BYTES_PER_ELEMENT,p=l.byteOffset||0,v=new f(l.count*h),S=new DataView(c.buffer,c.byteOffset,c.byteLength),m=d.byteStride;for(let y=0;y<l.count;y++)for(let x=0;x<h;x++){const C=p+y*m+x*g;let b;switch(l.componentType){case ue.ComponentType.FLOAT:b=S.getFloat32(C,!0);break;case ue.ComponentType.UNSIGNED_INT:b=S.getUint32(C,!0);break;case ue.ComponentType.UNSIGNED_SHORT:b=S.getUint16(C,!0);break;case ue.ComponentType.UNSIGNED_BYTE:b=S.getUint8(C);break;case ue.ComponentType.SHORT:b=S.getInt16(C,!0);break;case ue.ComponentType.BYTE:b=S.getInt8(C);break;default:throw new Error(`Unexpected componentType "${l.componentType}".`)}v[y*h+x]=b}return v}(t,e);const a=n.byteOffset+(t.byteOffset||0);return new r(n.buffer.slice(a,a+t.count*i*o))}var ur;(function(t){t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"})(ur||(ur={}));class ts{constructor(e,n,s){this.C=void 0,this.jsonDoc=void 0,this.options=void 0,this.accessorIndexMap=new Map,this.animationIndexMap=new Map,this.bufferIndexMap=new Map,this.cameraIndexMap=new Map,this.skinIndexMap=new Map,this.materialIndexMap=new Map,this.meshIndexMap=new Map,this.nodeIndexMap=new Map,this.imageIndexMap=new Map,this.textureDefIndexMap=new Map,this.textureInfoDefMap=new Map,this.samplerDefIndexMap=new Map,this.sceneIndexMap=new Map,this.imageBufferViews=[],this.otherBufferViews=new Map,this.otherBufferViewsIndexMap=new Map,this.extensionData={},this.bufferURIGenerator=void 0,this.imageURIGenerator=void 0,this.logger=void 0,this.F=new Map,this.accessorUsageGroupedByParent=new Set(["ARRAY_BUFFER"]),this.accessorParents=new Map,this.C=e,this.jsonDoc=n,this.options=s;const r=e.getRoot(),i=r.listBuffers().length,o=r.listTextures().length;this.bufferURIGenerator=new Uc(i>1,()=>s.basename||"buffer"),this.imageURIGenerator=new Uc(o>1,a=>function(l,u){const c=l.getGraph().listParentEdges(u).find(d=>d.getParent()!==l.getRoot());return c?c.getName().replace(/texture$/i,""):""}(e,a)||s.basename||"texture"),this.logger=e.getLogger()}createTextureInfoDef(e,n){const s={magFilter:n.getMagFilter()||void 0,minFilter:n.getMinFilter()||void 0,wrapS:n.getWrapS(),wrapT:n.getWrapT()},r=JSON.stringify(s);this.samplerDefIndexMap.has(r)||(this.samplerDefIndexMap.set(r,this.jsonDoc.json.samplers.length),this.jsonDoc.json.samplers.push(s));const i={source:this.imageIndexMap.get(e),sampler:this.samplerDefIndexMap.get(r)},o=JSON.stringify(i);this.textureDefIndexMap.has(o)||(this.textureDefIndexMap.set(o,this.jsonDoc.json.textures.length),this.jsonDoc.json.textures.push(i));const a={index:this.textureDefIndexMap.get(o)};return n.getTexCoord()!==0&&(a.texCoord=n.getTexCoord()),Object.keys(n.getExtras()).length>0&&(a.extras=n.getExtras()),this.textureInfoDefMap.set(n,a),a}createPropertyDef(e){const n={};return e.getName()&&(n.name=e.getName()),Object.keys(e.getExtras()).length>0&&(n.extras=e.getExtras()),n}createAccessorDef(e){const n=this.createPropertyDef(e);return n.type=e.getType(),n.componentType=e.getComponentType(),n.count=e.getCount(),this.C.getGraph().listParentEdges(e).some(s=>s.getName()==="attributes"&&s.getAttributes().key==="POSITION"||s.getName()==="input")&&(n.max=e.getMax([]).map(Math.fround),n.min=e.getMin([]).map(Math.fround)),e.getNormalized()&&(n.normalized=e.getNormalized()),n}createImageData(e,n,s){if(this.options.format===Qn.GLB)this.imageBufferViews.push(n),e.bufferView=this.jsonDoc.json.bufferViews.length,this.jsonDoc.json.bufferViews.push({buffer:0,byteOffset:-1,byteLength:n.byteLength});else{const r=es.mimeTypeToExtension(s.getMimeType());e.uri=this.imageURIGenerator.createURI(s,r),this.jsonDoc.resources[e.uri]=n}}getAccessorUsage(e){const n=this.F.get(e);if(n)return n;if(e.getSparse())return yt.SPARSE;for(const s of this.C.getGraph().listParentEdges(e)){const{usage:r}=s.getAttributes();if(r)return r;s.getParent().propertyType!==ne.ROOT&&this.logger.warn(`Missing attribute ".usage" on edge, "${s.getName()}".`)}return yt.OTHER}addAccessorToUsageGroup(e,n){const s=this.F.get(e);if(s&&s!==n)throw new Error(`Accessor with usage "${s}" cannot be reused as "${n}".`);return this.F.set(e,n),this}listAccessorUsageGroups(){const e={};for(const[n,s]of Array.from(this.F.entries()))e[s]=e[s]||[],e[s].push(n);return e}}ts.BufferViewTarget=ur,ts.BufferViewUsage=yt,ts.USAGE_TO_TARGET={[yt.ARRAY_BUFFER]:ur.ARRAY_BUFFER,[yt.ELEMENT_ARRAY_BUFFER]:ur.ELEMENT_ARRAY_BUFFER};class Uc{constructor(e,n){this.multiple=void 0,this.basename=void 0,this.counter={},this.multiple=e,this.basename=n}createURI(e,n){if(e.getURI())return e.getURI();if(this.multiple){const s=this.basename(e);return this.counter[s]=this.counter[s]||1,`${s}_${this.counter[s]++}.${n}`}return`${this.basename(e)}.${n}`}}const{BufferViewUsage:si}=ts,{UNSIGNED_INT:kx,UNSIGNED_SHORT:Fx,UNSIGNED_BYTE:Vx}=ue.ComponentType;class Lx{static write(e,n){const s=e.getRoot(),r={asset:nt({generator:`glTF-Transform ${Kh}`},s.getAsset()),extras:nt({},s.getExtras())},i={json:r,resources:{}},o=new ts(e,i,n),a=n.logger||Et.DEFAULT_INSTANCE,l=new Set(n.extensions.map(v=>v.EXTENSION_NAME)),u=e.getRoot().listExtensionsUsed().filter(v=>l.has(v.extensionName)),c=e.getRoot().listExtensionsRequired().filter(v=>l.has(v.extensionName));u.length<e.getRoot().listExtensionsUsed().length&&a.warn("Some extensions were not registered for I/O, and will not be written.");for(const v of u)for(const S of v.writeDependencies)v.install(S,n.dependencies[S]);function d(v,S,m,y){const x=[];let C=0;for(const w of v){const E=o.createAccessorDef(w);E.bufferView=r.bufferViews.length;const k=w.getArray(),V=Se.pad(Se.toView(k));E.byteOffset=C,C+=V.byteLength,x.push(V),o.accessorIndexMap.set(w,r.accessors.length),r.accessors.push(E)}const b={buffer:S,byteOffset:m,byteLength:Se.concat(x).byteLength};return y&&(b.target=y),r.bufferViews.push(b),{buffers:x,byteLength:C}}function f(v,S,m){const y=v[0].getCount();let x=0;for(const E of v){const k=o.createAccessorDef(E);k.bufferView=r.bufferViews.length,k.byteOffset=x;const V=E.getElementSize(),I=E.getComponentSize();x+=Se.padNumber(V*I),o.accessorIndexMap.set(E,r.accessors.length),r.accessors.push(k)}const C=y*x,b=new ArrayBuffer(C),w=new DataView(b);for(let E=0;E<y;E++){let k=0;for(const V of v){const I=V.getElementSize(),T=V.getComponentSize(),F=V.getComponentType(),P=V.getArray();for(let H=0;H<I;H++){const q=E*x+k+H*T,Z=P[E*I+H];switch(F){case ue.ComponentType.FLOAT:w.setFloat32(q,Z,!0);break;case ue.ComponentType.BYTE:w.setInt8(q,Z);break;case ue.ComponentType.SHORT:w.setInt16(q,Z,!0);break;case ue.ComponentType.UNSIGNED_BYTE:w.setUint8(q,Z);break;case ue.ComponentType.UNSIGNED_SHORT:w.setUint16(q,Z,!0);break;case ue.ComponentType.UNSIGNED_INT:w.setUint32(q,Z,!0);break;default:throw new Error("Unexpected component type: "+F)}}k+=Se.padNumber(I*T)}}return r.bufferViews.push({buffer:S,byteOffset:m,byteLength:C,byteStride:x,target:ts.BufferViewTarget.ARRAY_BUFFER}),{byteLength:C,buffers:[new Uint8Array(b)]}}function h(v,S,m){const y=[];let x=0;const C=new Map;let b=-1/0;for(const F of v){const P=o.createAccessorDef(F);r.accessors.push(P),o.accessorIndexMap.set(F,r.accessors.length-1);const H=[],q=[],Z=[],j=new Array(F.getElementSize()).fill(0);for(let ce=0,Te=F.getCount();ce<Te;ce++)if(F.getElement(ce,Z),!De.eq(Z,j,0)){b=Math.max(ce,b),H.push(ce);for(let ge=0;ge<Z.length;ge++)q.push(Z[ge])}const ae=H.length,Q={accessorDef:P,count:ae};if(C.set(F,Q),ae===0)continue;if(ae>F.getCount()/3){const ce=(100*H.length/F.getCount()).toFixed(1);a.warn(`Sparse accessor with many non-zero elements (${ce}%) may increase file size.`)}const se=Di[F.getComponentType()];Q.indices=H,Q.values=new se(q)}if(!Number.isFinite(b))return{buffers:y,byteLength:x};const w=b<255?Uint8Array:b<65535?Uint16Array:Uint32Array,E=b<255?Vx:b<65535?Fx:kx,k={buffer:S,byteOffset:m+x,byteLength:0};for(const F of v){const P=C.get(F);if(P.count===0)continue;P.indicesByteOffset=k.byteLength;const H=Se.pad(Se.toView(new w(P.indices)));y.push(H),x+=H.byteLength,k.byteLength+=H.byteLength}r.bufferViews.push(k);const V=r.bufferViews.length-1,I={buffer:S,byteOffset:m+x,byteLength:0};for(const F of v){const P=C.get(F);if(P.count===0)continue;P.valuesByteOffset=I.byteLength;const H=Se.pad(Se.toView(P.values));y.push(H),x+=H.byteLength,I.byteLength+=H.byteLength}r.bufferViews.push(I);const T=r.bufferViews.length-1;for(const F of v){const P=C.get(F);P.count!==0&&(P.accessorDef.sparse={count:P.count,indices:{bufferView:V,byteOffset:P.indicesByteOffset,componentType:E},values:{bufferView:T,byteOffset:P.valuesByteOffset}})}return{buffers:y,byteLength:x}}const g=new Map;for(const v of e.getGraph().listEdges()){if(v.getParent()===s)continue;const S=v.getChild();if(S instanceof ue){const m=g.get(S)||[];m.push(v),g.set(S,m)}}if(r.accessors=[],r.bufferViews=[],r.samplers=[],r.textures=[],r.images=s.listTextures().map((v,S)=>{const m=o.createPropertyDef(v);v.getMimeType()&&(m.mimeType=v.getMimeType());const y=v.getImage();return y&&o.createImageData(m,y,v),o.imageIndexMap.set(v,S),m}),u.filter(v=>v.prewriteTypes.includes(ne.ACCESSOR)).forEach(v=>v.prewrite(o,ne.ACCESSOR)),s.listAccessors().forEach(v=>{const S=o.accessorUsageGroupedByParent,m=o.accessorParents;if(o.accessorIndexMap.has(v))return;const y=g.get(v)||[],x=o.getAccessorUsage(v);if(o.addAccessorToUsageGroup(v,x),S.has(x)){const C=y[0].getParent(),b=m.get(C)||new Set;b.add(v),m.set(C,b)}}),u.filter(v=>v.prewriteTypes.includes(ne.BUFFER)).forEach(v=>v.prewrite(o,ne.BUFFER)),(s.listAccessors().length>0||s.listTextures().length>0||o.otherBufferViews.size>0)&&s.listBuffers().length===0)throw new Error("Buffer required for Document resources, but none was found.");r.buffers=[],s.listBuffers().forEach((v,S)=>{const m=o.createPropertyDef(v),y=o.accessorUsageGroupedByParent,x=o.accessorParents,C=v.listParents().filter(I=>I instanceof ue),b=new Set(C),w=[],E=r.buffers.length;let k=0;const V=o.listAccessorUsageGroups();for(const I in V)if(y.has(I))for(const T of Array.from(x.values())){const F=Array.from(T).filter(P=>b.has(P)).filter(P=>o.getAccessorUsage(P)===I);if(F.length)if(I!==si.ARRAY_BUFFER||n.vertexLayout===zi.INTERLEAVED){const P=I===si.ARRAY_BUFFER?f(F,E,k):d(F,E,k);k+=P.byteLength,w.push(...P.buffers)}else for(const P of F){const H=f([P],E,k);k+=H.byteLength,w.push(...H.buffers)}}else{const T=V[I].filter(H=>b.has(H));if(!T.length)continue;const F=I===si.ELEMENT_ARRAY_BUFFER?ts.BufferViewTarget.ELEMENT_ARRAY_BUFFER:void 0,P=I===si.SPARSE?h(T,E,k):d(T,E,k,F);k+=P.byteLength,w.push(...P.buffers)}if(o.imageBufferViews.length&&S===0){for(let I=0;I<o.imageBufferViews.length;I++)if(r.bufferViews[r.images[I].bufferView].byteOffset=k,k+=o.imageBufferViews[I].byteLength,w.push(o.imageBufferViews[I]),k%8){const T=8-k%8;k+=T,w.push(new Uint8Array(T))}}if(o.otherBufferViews.has(v))for(const I of o.otherBufferViews.get(v))r.bufferViews.push({buffer:E,byteOffset:k,byteLength:I.byteLength}),o.otherBufferViewsIndexMap.set(I,r.bufferViews.length-1),k+=I.byteLength,w.push(I);if(k){let I;n.format===Qn.GLB?I=Bi:(I=o.bufferURIGenerator.createURI(v,"bin"),m.uri=I),m.byteLength=k,i.resources[I]=Se.concat(w)}r.buffers.push(m),o.bufferIndexMap.set(v,S)}),s.listAccessors().find(v=>!v.getBuffer())&&a.warn("Skipped writing one or more Accessors: no Buffer assigned."),r.materials=s.listMaterials().map((v,S)=>{const m=o.createPropertyDef(v);if(v.getAlphaMode()!==ss.AlphaMode.OPAQUE&&(m.alphaMode=v.getAlphaMode()),v.getAlphaMode()===ss.AlphaMode.MASK&&(m.alphaCutoff=v.getAlphaCutoff()),v.getDoubleSided()&&(m.doubleSided=!0),m.pbrMetallicRoughness={},De.eq(v.getBaseColorFactor(),[1,1,1,1])||(m.pbrMetallicRoughness.baseColorFactor=v.getBaseColorFactor()),De.eq(v.getEmissiveFactor(),[0,0,0])||(m.emissiveFactor=v.getEmissiveFactor()),v.getRoughnessFactor()!==1&&(m.pbrMetallicRoughness.roughnessFactor=v.getRoughnessFactor()),v.getMetallicFactor()!==1&&(m.pbrMetallicRoughness.metallicFactor=v.getMetallicFactor()),v.getBaseColorTexture()){const y=v.getBaseColorTexture(),x=v.getBaseColorTextureInfo();m.pbrMetallicRoughness.baseColorTexture=o.createTextureInfoDef(y,x)}if(v.getEmissiveTexture()){const y=v.getEmissiveTexture(),x=v.getEmissiveTextureInfo();m.emissiveTexture=o.createTextureInfoDef(y,x)}if(v.getNormalTexture()){const y=v.getNormalTexture(),x=v.getNormalTextureInfo(),C=o.createTextureInfoDef(y,x);v.getNormalScale()!==1&&(C.scale=v.getNormalScale()),m.normalTexture=C}if(v.getOcclusionTexture()){const y=v.getOcclusionTexture(),x=v.getOcclusionTextureInfo(),C=o.createTextureInfoDef(y,x);v.getOcclusionStrength()!==1&&(C.strength=v.getOcclusionStrength()),m.occlusionTexture=C}if(v.getMetallicRoughnessTexture()){const y=v.getMetallicRoughnessTexture(),x=v.getMetallicRoughnessTextureInfo();m.pbrMetallicRoughness.metallicRoughnessTexture=o.createTextureInfoDef(y,x)}return o.materialIndexMap.set(v,S),m}),r.meshes=s.listMeshes().map((v,S)=>{const m=o.createPropertyDef(v);let y=null;return m.primitives=v.listPrimitives().map(x=>{const C={attributes:{}};C.mode=x.getMode();const b=x.getMaterial();b&&(C.material=o.materialIndexMap.get(b)),Object.keys(x.getExtras()).length&&(C.extras=x.getExtras());const w=x.getIndices();w&&(C.indices=o.accessorIndexMap.get(w));for(const E of x.listSemantics())C.attributes[E]=o.accessorIndexMap.get(x.getAttribute(E));for(const E of x.listTargets()){const k={};for(const V of E.listSemantics())k[V]=o.accessorIndexMap.get(E.getAttribute(V));C.targets=C.targets||[],C.targets.push(k)}return x.listTargets().length&&!y&&(y=x.listTargets().map(E=>E.getName())),C}),v.getWeights().length&&(m.weights=v.getWeights()),y&&(m.extras=m.extras||{},m.extras.targetNames=y),o.meshIndexMap.set(v,S),m}),r.cameras=s.listCameras().map((v,S)=>{const m=o.createPropertyDef(v);if(m.type=v.getType(),m.type===fs.Type.PERSPECTIVE){m.perspective={znear:v.getZNear(),zfar:v.getZFar(),yfov:v.getYFov()};const y=v.getAspectRatio();y!==null&&(m.perspective.aspectRatio=y)}else m.orthographic={znear:v.getZNear(),zfar:v.getZFar(),xmag:v.getXMag(),ymag:v.getYMag()};return o.cameraIndexMap.set(v,S),m}),r.nodes=s.listNodes().map((v,S)=>{const m=o.createPropertyDef(v);return De.eq(v.getTranslation(),[0,0,0])||(m.translation=v.getTranslation()),De.eq(v.getRotation(),[0,0,0,1])||(m.rotation=v.getRotation()),De.eq(v.getScale(),[1,1,1])||(m.scale=v.getScale()),v.getWeights().length&&(m.weights=v.getWeights()),o.nodeIndexMap.set(v,S),m}),r.skins=s.listSkins().map((v,S)=>{const m=o.createPropertyDef(v),y=v.getInverseBindMatrices();y&&(m.inverseBindMatrices=o.accessorIndexMap.get(y));const x=v.getSkeleton();return x&&(m.skeleton=o.nodeIndexMap.get(x)),m.joints=v.listJoints().map(C=>o.nodeIndexMap.get(C)),o.skinIndexMap.set(v,S),m}),s.listNodes().forEach((v,S)=>{const m=r.nodes[S],y=v.getMesh();y&&(m.mesh=o.meshIndexMap.get(y));const x=v.getCamera();x&&(m.camera=o.cameraIndexMap.get(x));const C=v.getSkin();C&&(m.skin=o.skinIndexMap.get(C)),v.listChildren().length>0&&(m.children=v.listChildren().map(b=>o.nodeIndexMap.get(b)))}),r.animations=s.listAnimations().map((v,S)=>{const m=o.createPropertyDef(v),y=new Map;return m.samplers=v.listSamplers().map((x,C)=>{const b=o.createPropertyDef(x);return b.input=o.accessorIndexMap.get(x.getInput()),b.output=o.accessorIndexMap.get(x.getOutput()),b.interpolation=x.getInterpolation(),y.set(x,C),b}),m.channels=v.listChannels().map(x=>{const C=o.createPropertyDef(x);return C.sampler=y.get(x.getSampler()),C.target={node:o.nodeIndexMap.get(x.getTargetNode()),path:x.getTargetPath()},C}),o.animationIndexMap.set(v,S),m}),r.scenes=s.listScenes().map((v,S)=>{const m=o.createPropertyDef(v);return m.nodes=v.listChildren().map(y=>o.nodeIndexMap.get(y)),o.sceneIndexMap.set(v,S),m});const p=s.getDefaultScene();return p&&(r.scene=s.listScenes().indexOf(p)),r.extensionsUsed=u.map(v=>v.extensionName),r.extensionsRequired=c.map(v=>v.extensionName),u.forEach(v=>v.write(o)),function(v){const S=[];for(const m in v){const y=v[m];(Array.isArray(y)&&y.length===0||y===null||y===""||y&&typeof y=="object"&&Object.keys(y).length===0)&&S.push(m)}for(const m of S)delete v[m]}(r),i}}var Hi;(function(t){t[t.JSON=1313821514]="JSON",t[t.BIN=5130562]="BIN"})(Hi||(Hi={}));class Px{constructor(){this.M=Et.DEFAULT_INSTANCE,this.l=new Set,this.U={},this.P=zi.INTERLEAVED,this.lastReadBytes=0,this.lastWriteBytes=0}setLogger(e){return this.M=e,this}registerExtensions(e){for(const n of e)this.l.add(n),n.register();return this}registerDependencies(e){return Object.assign(this.U,e),this}setVertexLayout(e){return this.P=e,this}async read(e){return await this.readJSON(await this.readAsJSON(e))}async readAsJSON(e){const n=await this.readURI(e,"view");this.lastReadBytes=n.byteLength;const s=jc(n)?this.L(n):{json:JSON.parse(Se.decodeText(n)),resources:{}};return await this.j(s,this.dirname(e)),this.D(s),s}async readJSON(e){return e=this._(e),this.D(e),Ix.read(e,{extensions:Array.from(this.l),dependencies:this.U,logger:this.M})}async binaryToJSON(e){const n=this.L(Se.assertView(e));this.D(n);const s=n.json;if(s.buffers&&s.buffers.some(r=>function(i,o){return o.uri!==void 0&&!(o.uri in i.resources)}(n,r)))throw new Error("Cannot resolve external buffers with binaryToJSON().");if(s.images&&s.images.some(r=>function(i,o){return o.uri!==void 0&&!(o.uri in i.resources)&&o.bufferView===void 0}(n,r)))throw new Error("Cannot resolve external images with binaryToJSON().");return n}async readBinary(e){return this.readJSON(await this.binaryToJSON(Se.assertView(e)))}async writeJSON(e,n={}){if(n.format===Qn.GLB&&e.getRoot().listBuffers().length>1)throw new Error("GLB must have 0–1 buffers.");return Lx.write(e,{format:n.format||Qn.GLTF,basename:n.basename||"",logger:this.M,vertexLayout:this.P,dependencies:nt({},this.U),extensions:Array.from(this.l)})}async writeBinary(e){const{json:n,resources:s}=await this.writeJSON(e,{format:Qn.GLB}),r=new Uint32Array([1179937895,2,12]),i=JSON.stringify(n),o=Se.pad(Se.encodeText(i),32),a=Se.toView(new Uint32Array([o.byteLength,1313821514])),l=Se.concat([a,o]);r[r.length-1]+=l.byteLength;const u=Object.values(s)[0];if(!u||!u.byteLength)return Se.concat([Se.toView(r),l]);const c=Se.pad(u,0),d=Se.toView(new Uint32Array([c.byteLength,5130562])),f=Se.concat([d,c]);return r[r.length-1]+=f.byteLength,Se.concat([Se.toView(r),l,f])}async j(e,n){var s=this;const r=[...e.json.images||[],...e.json.buffers||[]].map(async function(i){const o=i.uri;if(!o||o.match(/data:/))return Promise.resolve();e.resources[o]=await s.readURI(s.resolve(n,o),"view"),s.lastReadBytes+=e.resources[o].byteLength});await Promise.all(r)}D(e){function n(s){if(s.uri){if(s.uri in e.resources)Se.assertView(e.resources[s.uri]);else if(s.uri.match(/data:/)){const r=`__${Sx()}.${Ns.extension(s.uri)}`;e.resources[r]=Se.createBufferFromDataURI(s.uri),s.uri=r}}}(e.json.images||[]).forEach(s=>{if(s.bufferView===void 0&&s.uri===void 0)throw new Error("Missing resource URI or buffer view.");n(s)}),(e.json.buffers||[]).forEach(n)}_(e){const{images:n,buffers:s}=e.json;return e={json:nt({},e.json),resources:nt({},e.resources)},n&&(e.json.images=n.map(r=>nt({},r))),s&&(e.json.buffers=s.map(r=>nt({},r))),e}L(e){if(!jc(e))throw new Error("Invalid glTF 2.0 binary.");const n=new Uint32Array(e.buffer,e.byteOffset+12,2);if(n[1]!==Hi.JSON)throw new Error("Missing required GLB JSON chunk.");const s=n[0],r=Se.decodeText(Se.toView(e,20,s)),i=JSON.parse(r),o=20+s;if(e.byteLength<=o)return{json:i,resources:{}};const a=new Uint32Array(e.buffer,e.byteOffset+o,2);if(a[1]!==Hi.BIN)throw new Error("Expected GLB BIN in second chunk.");const l=Se.toView(e,o+8,a[0]);return{json:i,resources:{[Bi]:l}}}}function jc(t){if(t.byteLength<3*Uint32Array.BYTES_PER_ELEMENT)return!1;const e=new Uint32Array(t.buffer,t.byteOffset,3);return e[0]===1179937895&&e[1]===2}class Ox extends Px{constructor(e=lr.DEFAULT_INIT){super(),this.J=void 0,this.J=e}async readURI(e,n){const s=await fetch(e,this.J);switch(n){case"view":return new Uint8Array(await s.arrayBuffer());case"text":return s.text()}}resolve(e,n){return lr.resolve(e,n)}dirname(e){return lr.dirname(e)}}function Ui(){return Ui=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ui.apply(this,arguments)}function Nx(t,e){return Object.defineProperty(e,"name",{value:t}),e}var ji=typeof Float32Array<"u"?Float32Array:Array;function Bx(){var t=new ji(3);return ji!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function zx(){var t=new ji(4);return ji!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}Bx();zx();ne.ACCESSOR,ne.MESH,ne.TEXTURE,ne.MATERIAL,ne.SKIN;ne.NODE,ne.SKIN,ne.MESH,ne.CAMERA,ne.PRIMITIVE,ne.PRIMITIVE_TARGET,ne.ANIMATION,ne.MATERIAL,ne.TEXTURE,ne.ACCESSOR,ne.BUFFER;Rl.TargetPath;const Dx={pattern:/.*/,quantizationVolume:"mesh",quantizePosition:14,quantizeNormal:10,quantizeTexcoord:12,quantizeColor:8,quantizeWeight:8,quantizeGeneric:12,normalizeWeights:!0};Ui({level:"high"},Dx);var Wc;function Gs(t,e,n){for(let s=0,r=n.length;s<r;s++)n[s]=t[e*r+s];return n}function Gc(t,e,n){for(let s=0,r=n.length;s<r;s++)t[e*r+s]=n[s]}function ri(t,e,n=0){if(t.length!==e.length)return!1;for(let s=0;s<t.length;s++)if(Math.abs(t[s]-e[s])>n)return!1;return!0}function $x(t,e,n){return t*(1-n)+e*n}function Hx(t,e,n,s){for(let r=0;r<e.length;r++)t[r]=$x(e[r],n[r],s);return t}function Ux(t,e,n,s){let r,i,o,a,l,u=e[0],c=e[1],d=e[2],f=e[3],h=n[0],g=n[1],p=n[2],v=n[3];return i=u*h+c*g+d*p+f*v,i<0&&(i=-i,h=-h,g=-g,p=-p,v=-v),1-i>1e-6?(r=Math.acos(i),o=Math.sin(r),a=Math.sin((1-s)*r)/o,l=Math.sin(s*r)/o):(a=1-s,l=s),t[0]=a*u+l*h,t[1]=a*c+l*g,t[2]=a*d+l*p,t[3]=a*f+l*v,t}function qc(t,e){const n=function(s,r){return s[0]*r[0]+s[1]*r[1]+s[2]*r[2]+s[3]*r[3]}(t,e);return Math.acos(2*n*n-1)}(function(t){t[t.STEP=0]="STEP",t[t.LERP=1]="LERP",t[t.SLERP=2]="SLERP"})(Wc||(Wc={}));Promise.resolve();var Wi;(function(t){t.LANCZOS3="lanczos3",t.LANCZOS2="lanczos2"})(Wi||(Wi={}));Wi.LANCZOS3;Wi.LANCZOS3;const Yc="unpartition",Xc={};function jx(t=Xc){return Ui({},Xc,t),Nx(Yc,async e=>{const n=e.getLogger(),s=e.getRoot().listBuffers()[0];e.getRoot().listAccessors().forEach(r=>r.setBuffer(s)),e.getRoot().listBuffers().forEach((r,i)=>i>0?r.dispose():null),n.debug(`${Yc}: Complete.`)})}let im=new Ox,St="__yacv_name",vi="__helpers";async function Wx(t,e,n,s=()=>{}){let i=await(await fetch(t)).arrayBuffer();s();let o=await im.readBinary(new Uint8Array(i));return await n.transform(om(e)),await o.transform(Yx(e)),n.merge(o)}async function Gx(t){return await t.transform(Xx(),jx())}async function Zc(t){return im.writeBinary(t)}async function qx(t,e){return await e.transform(om(t))}function Yx(t){return e=>{for(let n of e.getGraph().listEdges().map(s=>s.getChild()))n.getExtras()||n.setExtras({}),n.getExtras()[St]=t;return e}}function om(t){return e=>{var n;for(let s of e.getGraph().listEdges().map(r=>r.getChild()))s.getExtras()==null||s instanceof kl||s instanceof Il||(((n=s.getExtras()[St])==null?void 0:n.toString())??"")==t&&s.dispose();return e}}function Xx(){return t=>{let e=t.getRoot(),n=e.getDefaultScene()??e.listScenes()[0];for(let s of e.listScenes())if(s!==n){for(let r of s.listChildren())n.addChild(r);s.dispose()}}}class Fl{constructor(e=new J(1/0,1/0,1/0),n=new J(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,s=e.length;n<s;n+=3)this.expandByPoint(Pt.fromArray(e,n));return this}setFromBufferAttribute(e){this.makeEmpty();for(let n=0,s=e.count;n<s;n++)this.expandByPoint(Pt.fromBufferAttribute(e,n));return this}setFromPoints(e){this.makeEmpty();for(let n=0,s=e.length;n<s;n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const s=Pt.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(s),this.max.copy(e).add(s),this}setFromObject(e,n=!1){return this.makeEmpty(),this.expandByObject(e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,n=!1){e.updateWorldMatrix(!1,!1);const s=e.geometry;if(s!==void 0){const i=s.getAttribute("position");if(n===!0&&i!==void 0&&e.isInstancedMesh!==!0)for(let o=0,a=i.count;o<a;o++)e.isMesh===!0?e.getVertexPosition(o,Pt):Pt.fromBufferAttribute(i,o),Pt.applyMatrix4(e.matrixWorld),this.expandByPoint(Pt);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),ii.copy(e.boundingBox)):(s.boundingBox===null&&s.computeBoundingBox(),ii.copy(s.boundingBox)),ii.applyMatrix4(e.matrixWorld),this.union(ii)}const r=e.children;for(let i=0,o=r.length;i<o;i++)this.expandByObject(r[i],n);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Pt),Pt.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,s;return e.normal.x>0?(n=e.normal.x*this.min.x,s=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,s=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,s+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,s+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,s+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,s+=e.normal.z*this.min.z),n<=-e.constant&&s>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(qs),oi.subVectors(this.max,qs),bs.subVectors(e.a,qs),xs.subVectors(e.b,qs),ws.subVectors(e.c,qs),bn.subVectors(xs,bs),xn.subVectors(ws,xs),Un.subVectors(bs,ws);let n=[0,-bn.z,bn.y,0,-xn.z,xn.y,0,-Un.z,Un.y,bn.z,0,-bn.x,xn.z,0,-xn.x,Un.z,0,-Un.x,-bn.y,bn.x,0,-xn.y,xn.x,0,-Un.y,Un.x,0];return!Jo(n,bs,xs,ws,oi)||(n=[1,0,0,0,1,0,0,0,1],!Jo(n,bs,xs,ws,oi))?!1:(ai.crossVectors(bn,xn),n=[ai.x,ai.y,ai.z],Jo(n,bs,xs,ws,oi))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Pt).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Pt).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(tn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),tn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),tn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),tn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),tn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),tn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),tn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),tn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(tn),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const tn=[new J,new J,new J,new J,new J,new J,new J,new J],Pt=new J,ii=new Fl,bs=new J,xs=new J,ws=new J,bn=new J,xn=new J,Un=new J,qs=new J,oi=new J,ai=new J,jn=new J;function Jo(t,e,n,s,r){for(let i=0,o=t.length-3;i<=o;i+=3){jn.fromArray(t,i);const a=r.x*Math.abs(jn.x)+r.y*Math.abs(jn.y)+r.z*Math.abs(jn.z),l=e.dot(jn),u=n.dot(jn),c=s.dot(jn);if(Math.max(-Math.max(l,u,c),Math.min(l,u,c))>a)return!1}return!0}const Kc=new ds().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Jc=new ds().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),li={[El]:{transfer:Va,primaries:Ic,toReference:t=>t,fromReference:t=>t},[Sn]:{transfer:Rc,primaries:Ic,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[Zh]:{transfer:Va,primaries:kc,toReference:t=>t.applyMatrix3(Jc),fromReference:t=>t.applyMatrix3(Kc)},[Xb]:{transfer:Rc,primaries:kc,toReference:t=>t.convertSRGBToLinear().applyMatrix3(Jc),fromReference:t=>t.applyMatrix3(Kc).convertLinearToSRGB()}},Zx=new Set([El,Zh]),Ot={enabled:!0,_workingColorSpace:El,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!Zx.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const s=li[e].toReference,r=li[n].fromReference;return r(s(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return li[t].primaries},getTransfer:function(t){return t===Yb?Va:li[t].transfer}};function Qo(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function ea(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}const am={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},wn={h:0,s:0,l:0},ui={h:0,s:0,l:0};function ta(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class Vl{constructor(e,n,s){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,s)}set(e,n,s){if(n===void 0&&s===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,n,s);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=Sn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Ot.toWorkingColorSpace(this,n),this}setRGB(e,n,s,r=Ot.workingColorSpace){return this.r=e,this.g=n,this.b=s,Ot.toWorkingColorSpace(this,r),this}setHSL(e,n,s,r=Ot.workingColorSpace){if(e=Wb(e,1),n=ot(n,0,1),s=ot(s,0,1),n===0)this.r=this.g=this.b=s;else{const i=s<=.5?s*(1+n):s+n-s*n,o=2*s-i;this.r=ta(o,i,e+1/3),this.g=ta(o,i,e),this.b=ta(o,i,e-1/3)}return Ot.toWorkingColorSpace(this,r),this}setStyle(e,n=Sn){function s(i){i!==void 0&&parseFloat(i)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i;const o=r[1],a=r[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,n);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,n);break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return s(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const i=r[1],o=i.length;if(o===3)return this.setRGB(parseInt(i.charAt(0),16)/15,parseInt(i.charAt(1),16)/15,parseInt(i.charAt(2),16)/15,n);if(o===6)return this.setHex(parseInt(i,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=Sn){const s=am[e.toLowerCase()];return s!==void 0?this.setHex(s,n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Qo(e.r),this.g=Qo(e.g),this.b=Qo(e.b),this}copyLinearToSRGB(e){return this.r=ea(e.r),this.g=ea(e.g),this.b=ea(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Sn){return Ot.fromWorkingColorSpace(Xe.copy(this),e),Math.round(ot(Xe.r*255,0,255))*65536+Math.round(ot(Xe.g*255,0,255))*256+Math.round(ot(Xe.b*255,0,255))}getHexString(e=Sn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=Ot.workingColorSpace){Ot.fromWorkingColorSpace(Xe.copy(this),n);const s=Xe.r,r=Xe.g,i=Xe.b,o=Math.max(s,r,i),a=Math.min(s,r,i);let l,u;const c=(a+o)/2;if(a===o)l=0,u=0;else{const d=o-a;switch(u=c<=.5?d/(o+a):d/(2-o-a),o){case s:l=(r-i)/d+(r<i?6:0);break;case r:l=(i-s)/d+2;break;case i:l=(s-r)/d+4;break}l/=6}return e.h=l,e.s=u,e.l=c,e}getRGB(e,n=Ot.workingColorSpace){return Ot.fromWorkingColorSpace(Xe.copy(this),n),e.r=Xe.r,e.g=Xe.g,e.b=Xe.b,e}getStyle(e=Sn){Ot.fromWorkingColorSpace(Xe.copy(this),e);const n=Xe.r,s=Xe.g,r=Xe.b;return e!==Sn?`color(${e} ${n.toFixed(3)} ${s.toFixed(3)} ${r.toFixed(3)})`:`rgb(${Math.round(n*255)},${Math.round(s*255)},${Math.round(r*255)})`}offsetHSL(e,n,s){return this.getHSL(wn),this.setHSL(wn.h+e,wn.s+n,wn.l+s)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,n){return this.r=e.r+n.r,this.g=e.g+n.g,this.b=e.b+n.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,n){return this.r+=(e.r-this.r)*n,this.g+=(e.g-this.g)*n,this.b+=(e.b-this.b)*n,this}lerpColors(e,n,s){return this.r=e.r+(n.r-e.r)*s,this.g=e.g+(n.g-e.g)*s,this.b=e.b+(n.b-e.b)*s,this}lerpHSL(e,n){this.getHSL(wn),e.getHSL(ui);const s=Wo(wn.h,ui.h,n),r=Wo(wn.s,ui.s,n),i=Wo(wn.l,ui.l,n);return this.setHSL(s,r,i),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const n=this.r,s=this.g,r=this.b,i=e.elements;return this.r=i[0]*n+i[3]*s+i[6]*r,this.g=i[1]*n+i[4]*s+i[7]*r,this.b=i[2]*n+i[5]*s+i[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,n=0){return this.r=e[n],this.g=e[n+1],this.b=e[n+2],this}toArray(e=[],n=0){return e[n]=this.r,e[n+1]=this.g,e[n+2]=this.b,e}fromBufferAttribute(e,n){return this.r=e.getX(n),this.g=e.getY(n),this.b=e.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const Xe=new Vl;Vl.NAMES=am;const na=new J,Kx=new J,Jx=new ds;class sa{constructor(e=new J(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,s,r){return this.normal.set(e,n,s),this.constant=r,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,s){const r=na.subVectors(s,n).cross(Kx.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const s=e.delta(na),r=this.normal.dot(s);if(r===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:n.copy(e.start).addScaledVector(s,i)}intersectsLine(e){const n=this.distanceToPoint(e.start),s=this.distanceToPoint(e.end);return n<0&&s>0||s<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const s=n||Jx.getNormalMatrix(e),r=this.coplanarPoint(na).applyMatrix4(e),i=this.normal.applyMatrix3(s).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}class wo{constructor(e=0,n=0){wo.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,s=this.y,r=e.elements;return this.x=r[0]*n+r[3]*s+r[6],this.y=r[1]*n+r[4]*s+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Math.max(e,Math.min(n,s)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const s=this.dot(e)/n;return Math.acos(ot(s,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,s=this.y-e.y;return n*n+s*s}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,s){return this.x=e.x+(n.x-e.x)*s,this.y=e.y+(n.y-e.y)*s,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const s=Math.cos(n),r=Math.sin(n),i=this.x-e.x,o=this.y-e.y;return this.x=i*s-o*r+e.x,this.y=i*r+o*s+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}const Qx=Ls(()=>import("./LineSegments2-B-upxEmL.js"),__vite__mapDeps([3,1,4,5]),import.meta.url),ew=Ls(()=>import("./LineMaterial-Y8G2yrnZ.js"),__vite__mapDeps([5,1]),import.meta.url),tw=Ls(()=>import("./LineSegmentsGeometry-BpHZ-rvn.js"),__vite__mapDeps([4,1]),import.meta.url);async function nw(t){const e=(await Qx).LineSegments2,n=(await ew).LineMaterial;return new e(await sw(t),new n({color:4294967295,vertexColors:!0,linewidth:.1,worldUnits:!0,resolution:new wo(1,1)}))}async function sw(t){const e=(await tw).LineSegmentsGeometry,n=new e,s=t.getAttribute("position"),r=t.index,i=[];for(let l=0;l!=r.count;++l){const u=r.getX(l),c=s.getX(u),d=s.getY(u),f=s.getZ(u);i.push(c,d,f)}n.setPositions(i);const o=[],a=t.getAttribute("color");if(a){for(let l=0;l!=r.count;++l){const u=r.getX(l),c=a.getX(u),d=a.getY(u),f=a.getZ(u);o.push(c,d,f)}n.setColors(o)}return n.userData=t.userData,n}const rw={class:"model-name"},iw=dn({__name:"Model",props:Zl({meshes:{},viewer:{}},{enabledFeatures:{default:[0,1,2]},enabledFeaturesModifiers:{},opacity:{default:1},opacityModifiers:{}}),emits:Zl(["remove"],["update:enabledFeatures","update:opacity"]),setup(t,{emit:e}){const n=t,s=e;let r=n.meshes[0].getExtras()[St];const i=cu(t,"enabledFeatures"),o=cu(t,"opacity"),a=te(!1),l=te(1),u=te(!1),c=te(1),d=te(!1),f=te(1),h=te(!1);let g=n.meshes.flatMap(b=>b.listPrimitives().filter(w=>w.getMode()===WebGL2RenderingContext.TRIANGLES)).map(b=>{var w,E;return((E=(w=b.getExtras())==null?void 0:w.face_triangles_end)==null?void 0:E.length)??1}).reduce((b,w)=>b+w,0),p=n.meshes.flatMap(b=>b.listPrimitives().filter(w=>w.getMode()in[WebGL2RenderingContext.LINE_STRIP,WebGL2RenderingContext.LINES])).map(b=>{var w,E;return((E=(w=b.getExtras())==null?void 0:w.edge_points_end)==null?void 0:E.length)??0}).reduce((b,w)=>b+w,0),v=n.meshes.flatMap(b=>b.listPrimitives().filter(w=>w.getMode()===WebGL2RenderingContext.POINTS)).map(b=>{var w;return((w=b.getAttribute("POSITION"))==null?void 0:w.getCount())??0}).reduce((b,w)=>b+w,0);g===0&&(i.value=i.value.filter(b=>b!==0)),p===0&&(i.value=i.value.filter(b=>b!==1)),v===0&&(i.value=i.value.filter(b=>b!==2));function S(b){var k;let w=(k=n.viewer)==null?void 0:k.scene,E=w==null?void 0:w._model;!w||!E||(E.traverse(V=>{if(V.userData[St]===r){let I=V.type=="Mesh"||V.type=="SkinnedMesh",T=V.type=="Line"||V.type=="LineSegments"||V.type=="LineSegments2",F=V.type=="Points";if(I||T||F){let P=b.includes(I?0:T?1:F?2:-1);V.visible!==P&&(V.visible=P,V.userData.backChild&&(V.userData.backChild.visible=P))}}}),w.queueRender())}le(i,S);function m(b){var k;let w=(k=n.viewer)==null?void 0:k.scene,E=w==null?void 0:w._model;!w||!E||(E.traverse(V=>{V.userData[St]===r&&V.material&&V.material.opacity!==b&&(V.material.transparent=b<1,V.material.opacity=b,V.material.needsUpdate=!0)}),w.queueRender())}le(o,m);function y(b){var k;let w=(k=n.viewer)==null?void 0:k.scene,E=w==null?void 0:w._model;!w||!E||(E.traverse(V=>{V.userData[St]===r&&V.material&&V.material.wireframe!==b&&(V.material.wireframe=b,V.material.needsUpdate=!0)}),w.queueRender())}le(a,y),Oe("sceneDocument");function x(){var T,F;let b=(T=n.viewer)==null?void 0:T.scene,w=b==null?void 0:b._model;if(!b||!w)return;let E=l.value<1&&!u.value||l.value>0&&u.value,k=c.value<1&&!d.value||c.value>0&&d.value,V=f.value<1&&!h.value||f.value>0&&h.value,I;(F=n.viewer)!=null&&F.renderer&&(E||k||V)&&(n.viewer.renderer.threeRenderer.localClippingEnabled=!0,I=new Fl,w.traverse(P=>{P.userData[St]===r&&I.expandByObject(P)})),w.traverse(P=>{if(P.userData[St]===r&&P.material)if((I==null?void 0:I.isEmpty())==!1){let H=I.min.x+l.value*(I.max.x-I.min.x),q=I.min.y+c.value*(I.max.y-I.min.y),Z=I.min.z+(1-f.value)*(I.max.z-I.min.z),j=[new sa(new J(-1,0,0),H),new sa(new J(0,-1,0),q),new sa(new J(0,0,1),-Z)];u.value&&j[0].negate(),d.value&&j[1].negate(),h.value&&j[2].negate(),V||j.pop(),k||j.splice(1,1),E||j.shift(),P.material.clippingPlanes=j,P.userData.backChild&&P.userData.backChild.material&&(P.userData.backChild.material.clippingPlanes=j)}else P.material.clippingPlanes=[],P.userData.backChild&&P.userData.backChild.material&&(P.userData.backChild.material.clippingPlanes=[])}),b.queueRender()}le(l,x),le(c,x),le(f,x),le(u,x),le(d,x),le(h,x),n.viewer.onElemReady(b=>b.addEventListener("camera-change",x));function C(){var V;let b=(V=n.viewer)==null?void 0:V.scene,w=b==null?void 0:b._model;if(!b||!w)return;let E=[],k=[];w.traverse(I=>{var T;if(I.userData[St]===r){if((I.type=="Mesh"||I.type=="SkinnedMesh")&&((T=I.geometry)==null||T.computeBoundsTree({indirect:!0}),I.material.side=Gb,r!==vi)){let F=I.clone();F.material=I.material.clone(),F.material.side=qb,F.material.color=new Vl(.25,.25,.25),I.userData.backChild=F,F.userData.noHit=!0,E.push(F)}(I.type=="Line"||I.type=="LineSegments")&&k.push(I),I.type=="Points"&&(I.material.size=7,I.material.needsUpdate=!0)}}),E.forEach(I=>w.add(I)),k.forEach(async I=>{let T=await nw(I.geometry);n.viewer.onElemReady(F=>{let P=()=>{T.material.resolution.set(F.clientWidth,F.clientHeight),T.material.needsUpdate=!0};F.addEventListener("resize",P),P()}),T.computeLineDistances(),T.userData=Object.assign({},I.userData),I.parent.add(T),I.children.forEach(F=>T.add(F)),I.visible=!1,I.userData.niceLine=T,T.userData.noHit=!0}),S(i.value),m(o.value),y(a.value),x(),b.queueRender()}return n.viewer.onElemReady(b=>b.addEventListener("load",C)),(b,w)=>(at(),ln(L(ab),{value:L(r)},{default:Y(()=>[_(L(qh),{"expand-icon":"hide-this-icon","collapse-icon":"hide-this-icon"},{default:Y(()=>[_(L(wy),{modelValue:i.value,"onUpdate:modelValue":w[0]||(w[0]=E=>i.value=E),multiple:"",onClick:w[1]||(w[1]=Cu(()=>{},["stop"])),color:"surface-light"},{default:Y(()=>[_(L(it),{icon:""},{default:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Toggle Faces ("+sn(L(g))+")",1)]),_:1}),_(L(ze),{type:"mdi",path:L(Vb),rotate:90},null,8,["path"])]),_:1}),_(L(it),{icon:""},{default:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Toggle Edges ("+sn(L(p))+")",1)]),_:1}),_(L(ze),{type:"mdi",path:L(Lb),rotate:90},null,8,["path"])]),_:1}),_(L(it),{icon:""},{default:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Toggle Vertices ("+sn(L(v))+")",1)]),_:1}),_(L(ze),{type:"mdi",path:L(Pb),rotate:90},null,8,["path"])]),_:1})]),_:1},8,["modelValue"]),Wt("div",rw,sn(L(r)),1),_(L(ka)),_(L(it),{icon:"",onClick:w[2]||(w[2]=Cu(E=>s("remove"),["stop"]))},{default:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Remove")]),_:1}),_(L(ze),{type:"mdi",path:L(Tb)},null,8,["path"])]),_:1})]),_:1}),_(L(Wh),null,{default:Y(()=>[_(L(Yr),{modelValue:o.value,"onUpdate:modelValue":w[4]||(w[4]=E=>o.value=E),"hide-details":"",min:"0",max:"1",step:.1},{prepend:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Change opacity")]),_:1}),_(L(ze),{type:"mdi",path:L(Eb)},null,8,["path"])]),append:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Wireframe")]),_:1}),_(L(qr),{trueIcon:"mdi-triangle-outline",falseIcon:"mdi-triangle",modelValue:a.value,"onUpdate:modelValue":w[3]||(w[3]=E=>a.value=E)},null,8,["modelValue"])]),_:1},8,["modelValue"]),_(L(mi)),_(L(Yr),{modelValue:l.value,"onUpdate:modelValue":w[6]||(w[6]=E=>l.value=E),"hide-details":"",min:"0",max:"1"},{prepend:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Clip plane X")]),_:1}),_(L(ze),{type:"mdi",path:L(Uo),rotate:120},null,8,["path"]),Fe(" X ")]),append:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Swap clip plane X")]),_:1}),_(L(qr),{trueIcon:"mdi-checkbox-marked-outline",falseIcon:"mdi-checkbox-blank-outline",modelValue:u.value,"onUpdate:modelValue":w[5]||(w[5]=E=>u.value=E)},{label:Y(()=>[_(L(ze),{type:"mdi",path:L(jo)},null,8,["path"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),_(L(Yr),{modelValue:f.value,"onUpdate:modelValue":w[8]||(w[8]=E=>f.value=E),"hide-details":"",min:"0",max:"1"},{prepend:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Clip plane Y")]),_:1}),_(L(ze),{type:"mdi",path:L(Uo),rotate:-120},null,8,["path"]),Fe(" Y ")]),append:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Swap clip plane Y")]),_:1}),_(L(qr),{trueIcon:"mdi-checkbox-marked-outline",falseIcon:"mdi-checkbox-blank-outline",modelValue:h.value,"onUpdate:modelValue":w[7]||(w[7]=E=>h.value=E)},{label:Y(()=>[_(L(ze),{type:"mdi",path:L(jo)},null,8,["path"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),_(L(Yr),{modelValue:c.value,"onUpdate:modelValue":w[10]||(w[10]=E=>c.value=E),"hide-details":"",min:"0",max:"1"},{prepend:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Clip plane Z")]),_:1}),_(L(ze),{type:"mdi",path:L(Uo)},null,8,["path"]),Fe(" Z ")]),append:Y(()=>[_(L(Ge),{activator:"parent"},{default:Y(()=>[Fe("Swap clip plane Z")]),_:1}),_(L(qr),{trueIcon:"mdi-checkbox-marked-outline",falseIcon:"mdi-checkbox-blank-outline",modelValue:d.value,"onUpdate:modelValue":w[9]||(w[9]=E=>d.value=E)},{label:Y(()=>[_(L(ze),{type:"mdi",path:L(jo)},null,8,["path"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["value"]))}}),ow=Cl(iw,[["__scopeId","data-v-2aa5089b"]]),aw=dn({__name:"Models",props:{viewer:{}},emits:["remove"],setup(t,{expose:e,emit:n}){const s=t,r=n;let{sceneDocument:i}=Oe("sceneDocument"),o=te([]);function a(d){return d.getRoot().listMeshes().reduce((f,h)=>{var v;let g=((v=h.getExtras()[St])==null?void 0:v.toString())??"Unnamed",p=f.find(S=>l(S[0])===g);return p?p.push(h):f.push([h]),f},[])}function l(d){var f;return((f=d.getExtras()[St])==null?void 0:f.toString())??"Unnamed"}function u(d){r("remove",l(d))}function c(d){console.log("Find model",d),o.value.includes(d)||o.value.push(d),console.log("Expanded",o.value)}return e({findModel:c}),(d,f)=>(at(!0),Mr(Re,null,kg(a(L(i)),h=>(at(),ln(L(rb),{key:l(h[0]),modelValue:L(o),"onUpdate:modelValue":f[0]||(f[0]=g=>Me(o)?o.value=g:o=g),multiple:""},{default:Y(()=>[_(ow,{meshes:h,viewer:s.viewer,onRemove:g=>u(h[0])},null,8,["meshes","viewer","onRemove"])]),_:2},1032,["modelValue"]))),128))}}),ns={preload:["dev+http://127.0.0.1:32323/"],loadHelpers:!0,displayLoadingEveryMs:1e3,monitorEveryMs:100,monitorOpenTimeoutMs:1e3,autoplay:!0,arModes:"webxr scene-viewer quick-look",exposure:1,shadowIntensity:0,background:""},Qc=[];function lm(t,e){let n=t.endsWith(".0");n&&(t=t.slice(0,-2));let s=ns[t];if(s===void 0)throw new Error(`Unknown setting: ${t}`);if(Array.isArray(s))if(n)s=s[0];else{let r=[];return Qc.includes(t)?r=s:Qc.push(t),r.push(lm(t+".0",e)),r}switch(typeof s){case"boolean":return e==="true";case"number":return Number(e);case"string":return e;default:throw new Error(`Unknown setting type: ${typeof s} -- ${s}`)}}const lw=new URL(window.location.href);lw.searchParams.forEach((t,e)=>{e in ns&&(ns[e]=lm(e,t))});const uw=250;class cw{constructor(e,n,s,r){Dt(this,"name");Dt(this,"url");Dt(this,"hash");Dt(this,"isRemove");this.name=e,this.url=n,this.hash=s,this.isRemove=r}}class dw extends Event{constructor(n,s){super("update");Dt(this,"models");Dt(this,"disconnect");this.models=n,this.disconnect=s}}class fw extends EventTarget{constructor(){super(...arguments);Dt(this,"knownObjectHashes",{});Dt(this,"bufferedUpdates",[]);Dt(this,"batchTimeout",null)}async load(n){if(n.startsWith("dev+")){let s=new URL(n.slice(4));s.searchParams.set("api_updates","true"),await this.monitorDevServer(s)}else{let s=n.split("/").pop();s=(s==null?void 0:s.split(".")[0])||`unknown-${Math.random()}`;let i=(await fetch(n,{method:"HEAD"})).headers.get("etag");this.foundModel(s,i,n,!1)}}async monitorDevServer(n,s=()=>!1){for(;!s();){try{const r=new AbortController;let i=await fetch(n.toString(),{signal:r.signal});if(i.status===200){let o=hw(i.body.getReader());for await(let a of o){if(s())break;if(!a||!a.startsWith("data:"))continue;let l=JSON.parse(a.slice(5)),u=new URL(n);u.searchParams.delete("api_updates"),u.searchParams.set("api_object",l.name),this.foundModel(l.name,l.hash,u.toString(),l.is_remove,async()=>{r.abort()})}}r.abort()}catch{}await new Promise(r=>setTimeout(r,ns.monitorEveryMs))}}foundModel(n,s,r,i,o=()=>{}){let a=this.knownObjectHashes[n];if(!s||s!==a||i){if(i==!1)this.knownObjectHashes[n]=s;else if(i==!0){if(!(n in this.knownObjectHashes))return;delete this.knownObjectHashes[n],this.bufferedUpdates=this.bufferedUpdates.filter(u=>u.name!==n)}let l=new cw(n,r,s,i);this.bufferedUpdates.push(l),this.batchTimeout!==null&&clearTimeout(this.batchTimeout),this.batchTimeout=setTimeout(()=>{this.dispatchEvent(new dw(this.bufferedUpdates,o)),this.bufferedUpdates=[]},uw)}}}async function*hw(t){let e=new TextDecoder,n=new Uint8Array;for(;;){let{value:s,done:r}=await t.read();if(r||!s)break;n=new Uint8Array([...n,...s]);let o=e.decode(n).split(`
`);for(let a=0;a<o.length-1;a++)yield o[a];n=new Uint8Array([...n.slice(-1)])}}const _s={x:[[247,60,60],[148,36,36]],z:[[108,203,38],[65,122,23]],y:[[23,140,240],[14,84,144]]};function Ba(t,e,n,s,r,i="__helper",o=WebGL2RenderingContext.LINES){const a=t.getRoot().listBuffers()[0]??t.createBuffer(i+"Buffer"),l=t.getRoot().getDefaultScene()??t.getRoot().listScenes()[0]??t.createScene(i+"Scene"),u=t.createAccessor(i+"Position").setArray(new Float32Array(e)).setType("VEC3").setBuffer(a),c=t.createAccessor(i+"Indices").setArray(new Uint32Array(n)).setType("SCALAR").setBuffer(a);let d=null;s&&(d=t.createAccessor(i+"Color").setArray(new Float32Array(s)).setType("VEC4").setBuffer(a));const f=t.createMaterial(i+"Material").setAlphaMode("OPAQUE"),h=t.createPrimitive().setIndices(c).setAttribute("POSITION",u).setMode(o).setMaterial(f);s&&h.setAttribute("COLOR_0",d),o==WebGL2RenderingContext.TRIANGLES?h.setExtras({face_triangles_end:[n.length/6,n.length*2/6,n.length*3/6,n.length*4/6,n.length*5/6,n.length]}):o==WebGL2RenderingContext.LINES&&h.setExtras({edge_points_end:[n.length/3,n.length*2/3,n.length]});const g=t.createMesh(i+"Mesh").addPrimitive(h),p=t.createNode(i+"Node").setMesh(g).setMatrix(r.elements);l.addChild(p)}function mw(t,e,n){let s=[0,1,2,3,4,5],r=[0,0,0,e.x,0,0,0,0,0,0,e.y,0,0,0,0,0,0,-e.z],i=[..._s.x[0],255,..._s.x[1],255,..._s.y[0],255,..._s.y[1],255,..._s.z[0],255,..._s.z[1],255].map(o=>o/255);Ba(t,r,s,i,new Ue,"__helper_axes"),Ba(t,[0,0,0],[0],[1,1,1,1],n,"__helper_axes",WebGL2RenderingContext.POINTS)}async function gw(t,e,n,s=10){let r=[],i=[];for(let a of[new J(1,0,0),new J(0,1,0),new J(0,0,-1)])for(let l of[1,-1]){let u=a.clone().multiply(e.clone().multiplyScalar(.5*l)),c=new Ue().makeTranslation(u.x,u.y,u.z),d=new Ue().lookAt(new J,u,new J(0,1,0)),f=new wo;a.x&&f.set(e.z,e.y),a.y&&f.set(e.x,e.z),a.z&&f.set(e.x,e.y);let h=new Ue().multiply(c).multiply(d),[g,p]=vw(f,s),v=r.length/3;for(let S of p)i.push(S+v);for(let S=0;S<g.length;S+=3){let m=new J(g[S],g[S+1],g[S+2]);m.applyMatrix4(h),r.push(m.x,m.y,m.z)}}let o=new Array(r.length/3*4).fill(1);Ba(t,r,i,o,n,"__helper_grid",WebGL2RenderingContext.TRIANGLES)}function vw(t,e=10,n=.002){const s=[],r=[];for(let i=0;i<=e;i++){const o=-t.x/2+t.x*i/e,a=-t.y/2+t.y*i/e;s.push(o-n*t.x/2,-t.y/2,0),s.push(o+n*t.x/2,-t.y/2,0),s.push(o+n*t.x/2,t.y/2,0),s.push(o-n*t.x/2,t.y/2,0);const l=i*4;r.push(l,l+1,l+2),r.push(l,l+2,l+3),s.push(-t.x/2,a-n*t.y/2,0),s.push(t.x/2,a-n*t.y/2,0),s.push(t.x/2,a+n*t.y/2,0),s.push(-t.x/2,a+n*t.y/2,0);const u=(e+1+i)*4;r.push(u,u+1,u+2),r.push(u,u+2,u+3)}return[s,r]}class ks{static async loadModel(e,n,s,r,i=!0,o=!0){let a=performance.now(),l;if(n=await Wx(r,s,n,()=>l=performance.now()),console.log("Model",s,"loaded in",performance.now()-l,"ms after",l-a,"ms of transferring data (maybe building the object on the server)"),i&&(await this.reloadHelpers(e,n,o),o=!1),o){let u=performance.now();n=await this.showCurrentDoc(e,n),console.log("Scene displayed in",performance.now()-u,"ms")}return n}static async reloadHelpers(e,n,s){let r=ks.getBoundingBox(n);if(!r)return n;let i=new Fn,o=new Ue().makeTranslation(r.getCenter(new J));mw(i,r.getSize(new J).multiplyScalar(.5),o),gw(i,r.getSize(new J),o);let a=URL.createObjectURL(new Blob([await Zc(i)]));return await ks.loadModel(e,n,vi,a,!1,s)}static getBoundingBox(e){if(e.getRoot().listNodes().length===0)return null;let n=[1e6,1e6,1e6],s=[-1e6,-1e6,-1e6];e.getRoot().listNodes().forEach(o=>{var l;if((o.getExtras()[St]??vi)===vi)return;let a=new Ue(...o.getWorldMatrix());for(let u of((l=o.getMesh())==null?void 0:l.listPrimitives())??[]){let c=u.getAttribute("POSITION");if(!c)continue;let d=new J(...c.getMin([0,0,0])).applyMatrix4(a),f=new J(...c.getMax([0,0,0])).applyMatrix4(a);n=n.map((h,g)=>Math.min(h,d.getComponent(g))),s=s.map((h,g)=>Math.max(h,f.getComponent(g)))}});let r=new J().fromArray(s).sub(new J().fromArray(n)),i=new J().fromArray(n).add(r.clone().multiplyScalar(.5));return new Fl().setFromCenterAndSize(i,r)}static async removeModel(e,n,s,r=!0,i=!0){let o=performance.now();return n=await qx(s,n),console.log("Model",s,"removed in",performance.now()-o,"ms"),r&&(n=await this.reloadHelpers(e,n,i)),n}static async showCurrentDoc(e,n){n=await Gx(n);let s=await Zc(n),r=new Blob([s],{type:"model/gltf-binary"});return console.debug("Showing current doc",n,"as",Array.from(s)),e.value=URL.createObjectURL(r),n}}const pw=dn({__name:"App",setup(t){const e=la({loader:()=>Ls(()=>import("./ModelViewerWrapper-8SoyXKaN.js"),__vite__mapDeps([6,1,2]),import.meta.url),loadingComponent:Yh,delay:0});let n=te(window.innerWidth>1200);const s=te(""),r=te(null),i=be(new Fn);ut("sceneDocument",{sceneDocument:i});const o=te(null),a=te(!1);ut("disableTap",{disableTap:a,setDisableTap:h=>a.value=h});async function u(h){console.log("Received model update request",h.models);let g=h.models.findIndex(S=>S.isRemove==null),p=null;g!==-1&&(console.log("Will shut down the connection after this load, as requested by the server"),p=h.models.splice(g,1)[0]);let v=i.value;for(let S in h.models){let m=parseInt(S)===h.models.length-1,y=h.models[S];try{y.isRemove?v=await ks.removeModel(s,v,y.name,m&&ns.loadHelpers,m):v=await ks.loadModel(s,v,y.name,y.url,m&&ns.loadHelpers,m)}catch(x){console.error("Error loading model",y,x)}}p!==null&&(console.log("Shutting down the connection as requested by the server"),h.disconnect()),i.value=v,Wl(i)}async function c(h){i.value=await ks.removeModel(s,i.value,h),Wl(i)}let d=new fw;d.addEventListener("update",h=>u(h));for(let h of ns.preload)d.load(h);async function f(){const h=prompt(`For an improved experience in viewing CAD/GLTF models with automatic updates, it's recommended to use the official yacv_server Python package. This ensures seamless serving of models and automatic updates.

Otherwise, enter the URL of the model to load:`);h&&await d.load(h)}return(h,g)=>(at(),ln(L(ub),{"full-height":""},{default:Y(()=>[_(L(db),{id:"main"},{default:Y(()=>[_(L(e),{ref_key:"viewer",ref:r,src:s.value},null,8,["src"])]),_:1}),_(Tc,{"opened-init":L(n),side:"left",width:300},{toolbar:Y(()=>[_(L(Li),null,{default:Y(()=>[Fe("Models")]),_:1})]),"toolbar-items":Y(()=>[_(L(it),{icon:"",onClick:f},{default:Y(()=>[_(L(ze),{type:"mdi",path:L(kb)},null,8,["path"])]),_:1})]),default:Y(()=>[_(aw,{ref_key:"models",ref:o,viewer:r.value,onRemove:c},null,8,["viewer"])]),_:1},8,["opened-init"]),_(Tc,{"opened-init":L(n),side:"right",width:48*3+1},{toolbar:Y(()=>[_(L(Li),null,{default:Y(()=>[Fe("Tools")]),_:1})]),default:Y(()=>[_(hx,{viewer:r.value,onFindModel:g[0]||(g[0]=p=>{var v;return(v=o.value)==null?void 0:v.findModel(p)})},null,8,["viewer"])]),_:1},8,["opened-init"])]),_:1}))}});function um(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...n}=t,s=vt(e,n),{aliases:r={},components:i={},directives:o={}}=s,a=Lp(s.defaults),l=s0(s.display,s.ssr),u=sy(s.theme),c=Ey(s.icons),d=Jp(s.locale),f=B1(s.date,d),h=H1(s.goTo,d);return{install:p=>{for(const v in o)p.directive(v,o[v]);for(const v in i)p.component(v,i[v]);for(const v in r)p.component(v,Rr({...r[v],name:v,aliasName:r[v].name}));if(u.install(p),p.provide(Ps,a),p.provide(Ma,l),p.provide(Vi,u),p.provide(Sa,c),p.provide(Fi,d),p.provide(N1,f.options),p.provide(xc,f.instance),p.provide(D1,h),Ne&&s.ssr)if(p.$nuxt)p.$nuxt.hook("app:suspense:resolve",()=>{l.update()});else{const{mount:v}=p;p.mount=function(){const S=v(...arguments);return It(()=>l.update()),p.mount=v,S}}mn.reset(),p.mixin({computed:{$vuetify(){return tt({defaults:Ss.call(this,Ps),display:Ss.call(this,Ma),theme:Ss.call(this,Vi),icons:Ss.call(this,Sa),locale:Ss.call(this,Fi),date:Ss.call(this,xc)})}}})},defaults:a,display:l,theme:u,icons:c,locale:d,date:f,goTo:h}}const yw="3.5.11";um.version=yw;function Ss(t){var s,r;const e=this.$,n=((s=e.parent)==null?void 0:s.provides)??((r=e.vnode.appContext)==null?void 0:r.provides);if(n&&t in n)return n[t]}function bw(t,e){const n=e.modifiers||{},s=e.value,{once:r,immediate:i,...o}=n,a=!Object.keys(o).length,{handler:l,options:u}=typeof s=="object"?s:{handler:s,options:{attributes:(o==null?void 0:o.attr)??a,characterData:(o==null?void 0:o.char)??a,childList:(o==null?void 0:o.child)??a,subtree:(o==null?void 0:o.sub)??a}},c=new MutationObserver(function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1?arguments[1]:void 0;l==null||l(d,f),r&&cm(t,e)});i&&(l==null||l([],c)),t._mutate=Object(t._mutate),t._mutate[e.instance.$.uid]={observer:c},c.observe(t,u)}function cm(t,e){var n;(n=t._mutate)!=null&&n[e.instance.$.uid]&&(t._mutate[e.instance.$.uid].observer.disconnect(),delete t._mutate[e.instance.$.uid])}const xw={mounted:bw,unmounted:cm};function ww(t,e){var r,i;const n=e.value,s={passive:!((r=e.modifiers)!=null&&r.active)};window.addEventListener("resize",n,s),t._onResize=Object(t._onResize),t._onResize[e.instance.$.uid]={handler:n,options:s},(i=e.modifiers)!=null&&i.quiet||n()}function _w(t,e){var r;if(!((r=t._onResize)!=null&&r[e.instance.$.uid]))return;const{handler:n,options:s}=t._onResize[e.instance.$.uid];window.removeEventListener("resize",n,s),delete t._onResize[e.instance.$.uid]}const Sw={mounted:ww,unmounted:_w};function dm(t,e){const{self:n=!1}=e.modifiers??{},s=e.value,r=typeof s=="object"&&s.options||{passive:!0},i=typeof s=="function"||"handleEvent"in s?s:s.handler,o=n?t:e.arg?document.querySelector(e.arg):window;o&&(o.addEventListener("scroll",i,r),t._onScroll=Object(t._onScroll),t._onScroll[e.instance.$.uid]={handler:i,options:r,target:n?void 0:o})}function fm(t,e){var i;if(!((i=t._onScroll)!=null&&i[e.instance.$.uid]))return;const{handler:n,options:s,target:r=t}=t._onScroll[e.instance.$.uid];r.removeEventListener("scroll",n,s),delete t._onScroll[e.instance.$.uid]}function Cw(t,e){e.value!==e.oldValue&&(fm(t,e),dm(t,e))}const Ew={mounted:dm,unmounted:fm,updated:Cw},Mw=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside:Rh,Intersect:$f,Mutate:xw,Resize:Sw,Ripple:Ds,Scroll:Ew,Touch:G0},Symbol.toStringTag,{value:"Module"}));console.log("Starting yet-another-cad-viewer v0.7.0 (5083037b739a03cc302ed11fb78a2d9027eb130a)...");const Tw=um({directives:Mw,theme:{defaultTheme:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}),hm=jv(pw);hm.use(Tw);hm.mount("body");export{Gf as $,Wf as A,me as B,Kt as C,_h as D,Yf as E,Re as F,be as G,R as H,Ke as I,kf as J,Ne as K,ye as L,an as M,bf as N,pr as O,ao as P,dt as Q,Fr as R,Ft as S,hn as T,fe as U,Lw as V,Ai as W,Ir as X,cs as Y,ls as Z,Ls as _,at as a,co as a$,Jt as a0,ah as a1,mo as a2,Ds as a3,Qp as a4,kr as a5,vl as a6,zs as a7,us as a8,Qt as a9,Cs as aA,vh as aB,th as aC,xh as aD,nh as aE,Ky as aF,Yy as aG,At as aH,Ln as aI,Sf as aJ,ie as aK,Zs as aL,_a as aM,Fy as aN,vf as aO,tp as aP,wh as aQ,$f as aR,sp as aS,lc as aT,Vn as aU,kw as aV,Pn as aW,Rt as aX,Iw as aY,uo as aZ,qe as a_,go as aa,ct as ab,qf as ac,oh as ad,qt as ae,as as af,gl as ag,Pw as ah,Tt as ai,oo as aj,oc as ak,ll as al,xl as am,ay as an,po as ao,mn as ap,y0 as aq,ut as ar,Fw as as,Ni as at,Ih as au,It as av,op as aw,ap as ax,ml as ay,uy as az,Wt as b,on as b0,zp as b1,In as b2,Qy as b3,qr as b4,lp as b5,xf as b6,Zl as b7,cu as b8,Ge as b9,ze as ba,Nw as bb,it as bc,Me as bd,Bw as be,Ow as bf,zw as bg,ks as bh,_s as bi,St as bj,pe as bk,kt as bl,Rr as bm,Uf as bn,Bf as bo,lo as bp,Vw as bq,mi as br,Rw as bs,Mr as c,dn as d,Ys as e,Fe as f,kg as g,ln as h,Oe as i,Y as j,_ as k,Wo as l,Pe as m,ga as n,Xt as o,Zi as p,Cl as q,te as r,ns as s,sn as t,L as u,G as v,le as w,we as x,r0 as y,Je as z};
