From 9f71f9b38e85b514cae51c5b460d7fe073364e47 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 13 Aug 2025 19:07:31 -0400 Subject: [PATCH 1/3] runable --- dist/assets/index-Bmbs5Xef.js | 876 ++++++++++++++++++++++++++++++ dist/assets/index-Brf5E4PI.css | 1 + dist/favicon.ico | Bin 0 -> 194282 bytes dist/index.html | 22 + src/views/HeadscoutReviewView.vue | 226 ++++++++ 5 files changed, 1125 insertions(+) create mode 100644 dist/assets/index-Bmbs5Xef.js create mode 100644 dist/assets/index-Brf5E4PI.css create mode 100644 dist/favicon.ico create mode 100644 dist/index.html create mode 100644 src/views/HeadscoutReviewView.vue diff --git a/dist/assets/index-Bmbs5Xef.js b/dist/assets/index-Bmbs5Xef.js new file mode 100644 index 0000000..61b3f62 --- /dev/null +++ b/dist/assets/index-Bmbs5Xef.js @@ -0,0 +1,876 @@ +var _x=Object.defineProperty;var xx=(t,e,i)=>e in t?_x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var ie=(t,e,i)=>xx(t,typeof e!="symbol"?e+"":e,i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function i(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=i(n);fetch(n.href,r)}})();/** +* @vue/shared v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function _h(t){const e=Object.create(null);for(const i of t.split(","))e[i]=1;return i=>i in e}const Ue={},fr=[],qi=()=>{},wx=()=>!1,dc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),xh=t=>t.startsWith("onUpdate:"),pt=Object.assign,wh=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},kx=Object.prototype.hasOwnProperty,Pe=(t,e)=>kx.call(t,e),de=Array.isArray,pr=t=>uc(t)==="[object Map]",Fv=t=>uc(t)==="[object Set]",ue=t=>typeof t=="function",nt=t=>typeof t=="string",_s=t=>typeof t=="symbol",He=t=>t!==null&&typeof t=="object",Nv=t=>(He(t)||ue(t))&&ue(t.then)&&ue(t.catch),Bv=Object.prototype.toString,uc=t=>Bv.call(t),Sx=t=>uc(t).slice(8,-1),jv=t=>uc(t)==="[object Object]",kh=t=>nt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,fo=_h(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hc=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},Cx=/-(\w)/g,gi=hc(t=>t.replace(Cx,(e,i)=>i?i.toUpperCase():"")),Ax=/\B([A-Z])/g,zn=hc(t=>t.replace(Ax,"-$1").toLowerCase()),fc=hc(t=>t.charAt(0).toUpperCase()+t.slice(1)),Jc=hc(t=>t?`on${fc(t)}`:""),qs=(t,e)=>!Object.is(t,e),Xc=(t,...e)=>{for(let i=0;i{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:i})},Tx=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ex=t=>{const e=nt(t)?Number(t):NaN;return isNaN(e)?t:e};let Qf;const pc=()=>Qf||(Qf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ri(t){if(de(t)){const e={};for(let i=0;i{if(i){const s=i.split(Ox);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function kr(t){let e="";if(nt(t))e=t;else if(de(t))for(let i=0;i!!(t&&t.__v_isRef===!0),fe=t=>nt(t)?t:t==null?"":de(t)||He(t)&&(t.toString===Bv||!ue(t.toString))?Vv(t)?fe(t.value):JSON.stringify(t,Uv,2):String(t),Uv=(t,e)=>Vv(e)?Uv(t,e.value):pr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[s,n],r)=>(i[Qc(s,r)+" =>"]=n,i),{})}:Fv(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>Qc(i))}:_s(e)?Qc(e):He(e)&&!de(e)&&!jv(e)?String(e):e,Qc=(t,e="")=>{var i;return _s(t)?`Symbol(${(i=t.description)!=null?i:e})`:t};/** +* @vue/reactivity v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let xt;class qv{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xt,!e&&xt&&(this.index=(xt.scopes||(xt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,i;if(this.scopes)for(e=0,i=this.scopes.length;e0&&--this._on===0&&(xt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let i,s;for(i=0,s=this.effects.length;i0)return;if(go){let e=go;for(go=void 0;e;){const i=e.next;e.next=void 0,e.flags&=-9,e=i}}let t;for(;po;){let e=po;for(po=void 0;e;){const i=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=i}}if(t)throw t}function Jv(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Xv(t){let e,i=t.depsTail,s=i;for(;s;){const n=s.prevDep;s.version===-1?(s===i&&(i=n),Ah(s),Dx(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=n}t.deps=e,t.depsTail=i}function nu(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Qv(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Qv(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Bo)||(t.globalVersion=Bo,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!nu(t))))return;t.flags|=2;const e=t.dep,i=Ve,s=Si;Ve=t,Si=!0;try{Jv(t);const n=t.fn(t._value);(e.version===0||qs(n,t._value))&&(t.flags|=128,t._value=n,e.version++)}catch(n){throw e.version++,n}finally{Ve=i,Si=s,Xv(t),t.flags&=-3}}function Ah(t,e=!1){const{dep:i,prevSub:s,nextSub:n}=t;if(s&&(s.nextSub=n,t.prevSub=void 0),n&&(n.prevSub=s,t.nextSub=void 0),i.subs===t&&(i.subs=s,!s&&i.computed)){i.computed.flags&=-5;for(let r=i.computed.deps;r;r=r.nextDep)Ah(r,!0)}!e&&!--i.sc&&i.map&&i.map.delete(i.key)}function Dx(t){const{prevDep:e,nextDep:i}=t;e&&(e.nextDep=i,t.prevDep=void 0),i&&(i.prevDep=e,t.nextDep=void 0)}let Si=!0;const Zv=[];function ms(){Zv.push(Si),Si=!1}function vs(){const t=Zv.pop();Si=t===void 0?!0:t}function Zf(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const i=Ve;Ve=void 0;try{e()}finally{Ve=i}}}let Bo=0;class Fx{constructor(e,i){this.sub=e,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Th{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ve||!Si||Ve===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==Ve)i=this.activeLink=new Fx(Ve,this),Ve.deps?(i.prevDep=Ve.depsTail,Ve.depsTail.nextDep=i,Ve.depsTail=i):Ve.deps=Ve.depsTail=i,eb(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=Ve.depsTail,i.nextDep=void 0,Ve.depsTail.nextDep=i,Ve.depsTail=i,Ve.deps===i&&(Ve.deps=s)}return i}trigger(e){this.version++,Bo++,this.notify(e)}notify(e){Sh();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{Ch()}}}function eb(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)eb(s)}const i=t.dep.subs;i!==t&&(t.prevSub=i,i&&(i.nextSub=t)),t.dep.subs=t}}const Ml=new WeakMap,En=Symbol(""),ru=Symbol(""),jo=Symbol("");function St(t,e,i){if(Si&&Ve){let s=Ml.get(t);s||Ml.set(t,s=new Map);let n=s.get(i);n||(s.set(i,n=new Th),n.map=s,n.key=i),n.track()}}function ds(t,e,i,s,n,r){const o=Ml.get(t);if(!o){Bo++;return}const a=l=>{l&&l.trigger()};if(Sh(),e==="clear")o.forEach(a);else{const l=de(t),c=l&&kh(i);if(l&&i==="length"){const d=Number(s);o.forEach((u,h)=>{(h==="length"||h===jo||!_s(h)&&h>=d)&&a(u)})}else switch((i!==void 0||o.has(void 0))&&a(o.get(i)),c&&a(o.get(jo)),e){case"add":l?c&&a(o.get("length")):(a(o.get(En)),pr(t)&&a(o.get(ru)));break;case"delete":l||(a(o.get(En)),pr(t)&&a(o.get(ru)));break;case"set":pr(t)&&a(o.get(En));break}}Ch()}function Nx(t,e){const i=Ml.get(t);return i&&i.get(e)}function Kn(t){const e=we(t);return e===t?e:(St(e,"iterate",jo),fi(t)?e:e.map(mt))}function gc(t){return St(t=we(t),"iterate",jo),t}const Bx={__proto__:null,[Symbol.iterator](){return ed(this,Symbol.iterator,mt)},concat(...t){return Kn(this).concat(...t.map(e=>de(e)?Kn(e):e))},entries(){return ed(this,"entries",t=>(t[1]=mt(t[1]),t))},every(t,e){return Yi(this,"every",t,e,void 0,arguments)},filter(t,e){return Yi(this,"filter",t,e,i=>i.map(mt),arguments)},find(t,e){return Yi(this,"find",t,e,mt,arguments)},findIndex(t,e){return Yi(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Yi(this,"findLast",t,e,mt,arguments)},findLastIndex(t,e){return Yi(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Yi(this,"forEach",t,e,void 0,arguments)},includes(...t){return td(this,"includes",t)},indexOf(...t){return td(this,"indexOf",t)},join(t){return Kn(this).join(t)},lastIndexOf(...t){return td(this,"lastIndexOf",t)},map(t,e){return Yi(this,"map",t,e,void 0,arguments)},pop(){return Hr(this,"pop")},push(...t){return Hr(this,"push",t)},reduce(t,...e){return ep(this,"reduce",t,e)},reduceRight(t,...e){return ep(this,"reduceRight",t,e)},shift(){return Hr(this,"shift")},some(t,e){return Yi(this,"some",t,e,void 0,arguments)},splice(...t){return Hr(this,"splice",t)},toReversed(){return Kn(this).toReversed()},toSorted(t){return Kn(this).toSorted(t)},toSpliced(...t){return Kn(this).toSpliced(...t)},unshift(...t){return Hr(this,"unshift",t)},values(){return ed(this,"values",mt)}};function ed(t,e,i){const s=gc(t),n=s[e]();return s!==t&&!fi(t)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=i(r.value)),r}),n}const jx=Array.prototype;function Yi(t,e,i,s,n,r){const o=gc(t),a=o!==t&&!fi(t),l=o[e];if(l!==jx[e]){const u=l.apply(t,r);return a?mt(u):u}let c=i;o!==t&&(a?c=function(u,h){return i.call(this,mt(u),h,t)}:i.length>2&&(c=function(u,h){return i.call(this,u,h,t)}));const d=l.call(o,c,s);return a&&n?n(d):d}function ep(t,e,i,s){const n=gc(t);let r=i;return n!==t&&(fi(t)?i.length>3&&(r=function(o,a,l){return i.call(this,o,a,l,t)}):r=function(o,a,l){return i.call(this,o,mt(a),l,t)}),n[e](r,...s)}function td(t,e,i){const s=we(t);St(s,"iterate",jo);const n=s[e](...i);return(n===-1||n===!1)&&aa(i[0])?(i[0]=we(i[0]),s[e](...i)):n}function Hr(t,e,i=[]){ms(),Sh();const s=we(t)[e].apply(t,i);return Ch(),vs(),s}const zx=_h("__proto__,__v_isRef,__isVue"),tb=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_s));function Vx(t){_s(t)||(t=String(t));const e=we(this);return St(e,"has",t),e.hasOwnProperty(t)}class ib{constructor(e=!1,i=!1){this._isReadonly=e,this._isShallow=i}get(e,i,s){if(i==="__v_skip")return e.__v_skip;const n=this._isReadonly,r=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return r;if(i==="__v_raw")return s===(n?r?Qx:ob:r?rb:nb).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=de(e);if(!n){let l;if(o&&(l=Bx[i]))return l;if(i==="hasOwnProperty")return Vx}const a=Reflect.get(e,i,et(e)?e:s);return(_s(i)?tb.has(i):zx(i))||(n||St(e,"get",i),r)?a:et(a)?o&&kh(i)?a:a.value:He(a)?n?lb(a):Dr(a):a}}class sb extends ib{constructor(e=!1){super(!1,e)}set(e,i,s,n){let r=e[i];if(!this._isShallow){const l=Xs(r);if(!fi(s)&&!Xs(s)&&(r=we(r),s=we(s)),!de(e)&&et(r)&&!et(s))return l?!1:(r.value=s,!0)}const o=de(e)&&kh(i)?Number(i)t,Aa=t=>Reflect.getPrototypeOf(t);function Kx(t,e,i){return function(...s){const n=this.__v_raw,r=we(n),o=pr(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=n[t](...s),d=i?ou:e?Rl:mt;return!e&&St(r,"iterate",l?ru:En),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function Ta(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Gx(t,e){const i={get(n){const r=this.__v_raw,o=we(r),a=we(n);t||(qs(n,a)&&St(o,"get",n),St(o,"get",a));const{has:l}=Aa(o),c=e?ou:t?Rl:mt;if(l.call(o,n))return c(r.get(n));if(l.call(o,a))return c(r.get(a));r!==o&&r.get(n)},get size(){const n=this.__v_raw;return!t&&St(we(n),"iterate",En),Reflect.get(n,"size",n)},has(n){const r=this.__v_raw,o=we(r),a=we(n);return t||(qs(n,a)&&St(o,"has",n),St(o,"has",a)),n===a?r.has(n):r.has(n)||r.has(a)},forEach(n,r){const o=this,a=o.__v_raw,l=we(a),c=e?ou:t?Rl:mt;return!t&&St(l,"iterate",En),a.forEach((d,u)=>n.call(r,c(d),c(u),o))}};return pt(i,t?{add:Ta("add"),set:Ta("set"),delete:Ta("delete"),clear:Ta("clear")}:{add(n){!e&&!fi(n)&&!Xs(n)&&(n=we(n));const r=we(this);return Aa(r).has.call(r,n)||(r.add(n),ds(r,"add",n,n)),this},set(n,r){!e&&!fi(r)&&!Xs(r)&&(r=we(r));const o=we(this),{has:a,get:l}=Aa(o);let c=a.call(o,n);c||(n=we(n),c=a.call(o,n));const d=l.call(o,n);return o.set(n,r),c?qs(r,d)&&ds(o,"set",n,r):ds(o,"add",n,r),this},delete(n){const r=we(this),{has:o,get:a}=Aa(r);let l=o.call(r,n);l||(n=we(n),l=o.call(r,n)),a&&a.call(r,n);const c=r.delete(n);return l&&ds(r,"delete",n,void 0),c},clear(){const n=we(this),r=n.size!==0,o=n.clear();return r&&ds(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{i[n]=Kx(n,t,e)}),i}function Eh(t,e){const i=Gx(t,e);return(s,n,r)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?s:Reflect.get(Pe(i,n)&&n in s?i:s,n,r)}const Yx={get:Eh(!1,!1)},Jx={get:Eh(!1,!0)},Xx={get:Eh(!0,!1)};const nb=new WeakMap,rb=new WeakMap,ob=new WeakMap,Qx=new WeakMap;function Zx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ew(t){return t.__v_skip||!Object.isExtensible(t)?0:Zx(Sx(t))}function Dr(t){return Xs(t)?t:Ph(t,!1,qx,Yx,nb)}function ab(t){return Ph(t,!1,Wx,Jx,rb)}function lb(t){return Ph(t,!0,Hx,Xx,ob)}function Ph(t,e,i,s,n){if(!He(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=ew(t);if(r===0)return t;const o=n.get(t);if(o)return o;const a=new Proxy(t,r===2?s:i);return n.set(t,a),a}function Hs(t){return Xs(t)?Hs(t.__v_raw):!!(t&&t.__v_isReactive)}function Xs(t){return!!(t&&t.__v_isReadonly)}function fi(t){return!!(t&&t.__v_isShallow)}function aa(t){return t?!!t.__v_raw:!1}function we(t){const e=t&&t.__v_raw;return e?we(e):t}function Oh(t){return!Pe(t,"__v_skip")&&Object.isExtensible(t)&&su(t,"__v_skip",!0),t}const mt=t=>He(t)?Dr(t):t,Rl=t=>He(t)?lb(t):t;function et(t){return t?t.__v_isRef===!0:!1}function Vn(t){return cb(t,!1)}function Ih(t){return cb(t,!0)}function cb(t,e){return et(t)?t:new tw(t,e)}class tw{constructor(e,i){this.dep=new Th,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?e:we(e),this._value=i?e:mt(e),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(e){const i=this._rawValue,s=this.__v_isShallow||fi(e)||Xs(e);e=s?e:we(e),qs(e,i)&&(this._rawValue=e,this._value=s?e:mt(e),this.dep.trigger())}}function Re(t){return et(t)?t.value:t}const iw={get:(t,e,i)=>e==="__v_raw"?t:Re(Reflect.get(t,e,i)),set:(t,e,i,s)=>{const n=t[e];return et(n)&&!et(i)?(n.value=i,!0):Reflect.set(t,e,i,s)}};function db(t){return Hs(t)?t:new Proxy(t,iw)}function sw(t){const e=de(t)?new Array(t.length):{};for(const i in t)e[i]=ub(t,i);return e}class nw{constructor(e,i,s){this._object=e,this._key=i,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Nx(we(this._object),this._key)}}class rw{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Di(t,e,i){return et(t)?t:ue(t)?new rw(t):He(t)&&arguments.length>1?ub(t,e,i):Vn(t)}function ub(t,e,i){const s=t[e];return et(s)?s:new nw(t,e,i)}class ow{constructor(e,i,s){this.fn=e,this.setter=i,this._value=void 0,this.dep=new Th(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ve!==this)return Yv(this,!0),!0}get value(){const e=this.dep.track();return Qv(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function aw(t,e,i=!1){let s,n;return ue(t)?s=t:(s=t.get,n=t.set),new ow(s,n,i)}const Ea={},$l=new WeakMap;let yn;function lw(t,e=!1,i=yn){if(i){let s=$l.get(i);s||$l.set(i,s=[]),s.push(t)}}function cw(t,e,i=Ue){const{immediate:s,deep:n,once:r,scheduler:o,augmentJob:a,call:l}=i,c=A=>n?A:fi(A)||n===!1||n===0?Fs(A,1):Fs(A);let d,u,h,f,p=!1,g=!1;if(et(t)?(u=()=>t.value,p=fi(t)):Hs(t)?(u=()=>c(t),p=!0):de(t)?(g=!0,p=t.some(A=>Hs(A)||fi(A)),u=()=>t.map(A=>{if(et(A))return A.value;if(Hs(A))return c(A);if(ue(A))return l?l(A,2):A()})):ue(t)?e?u=l?()=>l(t,2):t:u=()=>{if(h){ms();try{h()}finally{vs()}}const A=yn;yn=d;try{return l?l(t,3,[f]):t(f)}finally{yn=A}}:u=qi,e&&n){const A=u,x=n===!0?1/0:n;u=()=>Fs(A(),x)}const m=Wv(),y=()=>{d.stop(),m&&m.active&&wh(m.effects,d)};if(r&&e){const A=e;e=(...x)=>{A(...x),y()}}let C=g?new Array(t.length).fill(Ea):Ea;const w=A=>{if(!(!(d.flags&1)||!d.dirty&&!A))if(e){const x=d.run();if(n||p||(g?x.some((E,T)=>qs(E,C[T])):qs(x,C))){h&&h();const E=yn;yn=d;try{const T=[x,C===Ea?void 0:g&&C[0]===Ea?[]:C,f];C=x,l?l(e,3,T):e(...T)}finally{yn=E}}}else d.run()};return a&&a(w),d=new Kv(u),d.scheduler=o?()=>o(w,!1):w,f=A=>lw(A,!1,d),h=d.onStop=()=>{const A=$l.get(d);if(A){if(l)l(A,4);else for(const x of A)x();$l.delete(d)}},e?s?w(!0):C=d.run():o?o(w.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function Fs(t,e=1/0,i){if(e<=0||!He(t)||t.__v_skip||(i=i||new Set,i.has(t)))return t;if(i.add(t),e--,et(t))Fs(t.value,e,i);else if(de(t))for(let s=0;s{Fs(s,e,i)});else if(jv(t)){for(const s in t)Fs(t[s],e,i);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&Fs(t[s],e,i)}return t}/** +* @vue/runtime-core v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function la(t,e,i,s){try{return s?t(...s):t()}catch(n){mc(n,e,i)}}function Ei(t,e,i,s){if(ue(t)){const n=la(t,e,i,s);return n&&Nv(n)&&n.catch(r=>{mc(r,e,i)}),n}if(de(t)){const n=[];for(let r=0;r>>1,n=Dt[s],r=zo(n);r=zo(i)?Dt.push(t):Dt.splice(uw(e),0,t),t.flags|=1,fb()}}function fb(){Ll||(Ll=hb.then(gb))}function hw(t){de(t)?gr.push(...t):Is&&t.id===-1?Is.splice(or+1,0,t):t.flags&1||(gr.push(t),t.flags|=1),fb()}function tp(t,e,i=ji+1){for(;izo(i)-zo(s));if(gr.length=0,Is){Is.push(...e);return}for(Is=e,or=0;ort.id==null?t.flags&2?-1:1/0:t.id;function gb(t){try{for(ji=0;ji{s._d&&fp(-1);const r=Dl(e);let o;try{o=t(...n)}finally{Dl(r),s._d&&fp(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function an(t,e,i,s){const n=t.dirs,r=e&&e.dirs;for(let o=0;ot.__isTeleport,Ms=Symbol("_leaveCb"),Pa=Symbol("_enterCb");function pw(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yc(()=>{t.isMounted=!0}),Cb(()=>{t.isUnmounting=!0}),t}const oi=[Function,Array],bb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oi,onEnter:oi,onAfterEnter:oi,onEnterCancelled:oi,onBeforeLeave:oi,onLeave:oi,onAfterLeave:oi,onLeaveCancelled:oi,onBeforeAppear:oi,onAppear:oi,onAfterAppear:oi,onAppearCancelled:oi},yb=t=>{const e=t.subTree;return e.component?yb(e.component):e},gw={name:"BaseTransition",props:bb,setup(t,{slots:e}){const i=Fh(),s=pw();return()=>{const n=e.default&&wb(e.default(),!0);if(!n||!n.length)return;const r=_b(n),o=we(t),{mode:a}=o;if(s.isLeaving)return id(r);const l=ip(r);if(!l)return id(r);let c=au(l,o,s,i,u=>c=u);l.type!==Ct&&Vo(l,c);let d=i.subTree&&ip(i.subTree);if(d&&d.type!==Ct&&!Sn(l,d)&&yb(i).type!==Ct){let u=au(d,o,s,i);if(Vo(d,u),a==="out-in"&&l.type!==Ct)return s.isLeaving=!0,u.afterLeave=()=>{s.isLeaving=!1,i.job.flags&8||i.update(),delete u.afterLeave,d=void 0},id(r);a==="in-out"&&l.type!==Ct?u.delayLeave=(h,f,p)=>{const g=xb(s,d);g[String(d.key)]=d,h[Ms]=()=>{f(),h[Ms]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function _b(t){let e=t[0];if(t.length>1){for(const i of t)if(i.type!==Ct){e=i;break}}return e}const mw=gw;function xb(t,e){const{leavingVNodes:i}=t;let s=i.get(e.type);return s||(s=Object.create(null),i.set(e.type,s)),s}function au(t,e,i,s,n){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:y,onAfterAppear:C,onAppearCancelled:w}=e,A=String(t.key),x=xb(i,t),E=(k,I)=>{k&&Ei(k,s,9,I)},T=(k,I)=>{const S=I[1];E(k,I),de(k)?k.every(b=>b.length<=1)&&S():k.length<=1&&S()},P={mode:o,persisted:a,beforeEnter(k){let I=l;if(!i.isMounted)if(r)I=m||l;else return;k[Ms]&&k[Ms](!0);const S=x[A];S&&Sn(t,S)&&S.el[Ms]&&S.el[Ms](),E(I,[k])},enter(k){let I=c,S=d,b=u;if(!i.isMounted)if(r)I=y||c,S=C||d,b=w||u;else return;let D=!1;const B=k[Pa]=N=>{D||(D=!0,N?E(b,[k]):E(S,[k]),P.delayedLeave&&P.delayedLeave(),k[Pa]=void 0)};I?T(I,[k,B]):B()},leave(k,I){const S=String(t.key);if(k[Pa]&&k[Pa](!0),i.isUnmounting)return I();E(h,[k]);let b=!1;const D=k[Ms]=B=>{b||(b=!0,I(),B?E(g,[k]):E(p,[k]),k[Ms]=void 0,x[S]===t&&delete x[S])};x[S]=t,f?T(f,[k,D]):D()},clone(k){const I=au(k,e,i,s,n);return n&&n(I),I}};return P}function id(t){if(vc(t))return t=Qs(t),t.children=null,t}function ip(t){if(!vc(t))return vb(t.type)&&t.children?_b(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:i}=t;if(i){if(e&16)return i[0];if(e&32&&ue(i.default))return i.default()}}function Vo(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Vo(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 wb(t,e=!1,i){let s=[],n=0;for(let r=0;r1)for(let r=0;rmo(p,e&&(de(e)?e[g]:e),i,s,n));return}if(mr(s)&&!n){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&mo(t,e,i,s.component.subTree);return}const r=s.shapeFlag&4?Nh(s.component):s.el,o=n?null:r,{i:a,r:l}=t,c=e&&e.r,d=a.refs===Ue?a.refs={}:a.refs,u=a.setupState,h=we(u),f=u===Ue?()=>!1:p=>Pe(h,p);if(c!=null&&c!==l&&(nt(c)?(d[c]=null,f(c)&&(u[c]=null)):et(c)&&(c.value=null)),ue(l))la(l,a,12,[o,d]);else{const p=nt(l),g=et(l);if(p||g){const m=()=>{if(t.f){const y=p?f(l)?u[l]:d[l]:l.value;n?de(y)&&wh(y,r):de(y)?y.includes(r)||y.push(r):p?(d[l]=[r],f(l)&&(u[l]=d[l])):(l.value=[r],t.k&&(d[t.k]=l.value))}else p?(d[l]=o,f(l)&&(u[l]=o)):g&&(l.value=o,t.k&&(d[t.k]=o))};o?(m.id=-1,ti(m,i)):m()}}}pc().requestIdleCallback;pc().cancelIdleCallback;const mr=t=>!!t.type.__asyncLoader,vc=t=>t.type.__isKeepAlive;function vw(t,e){Sb(t,"a",e)}function bw(t,e){Sb(t,"da",e)}function Sb(t,e,i=At){const s=t.__wdc||(t.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if(bc(e,s,i),i){let n=i.parent;for(;n&&n.parent;)vc(n.parent.vnode)&&yw(s,e,i,n),n=n.parent}}function yw(t,e,i,s){const n=bc(e,t,s,!0);Rh(()=>{wh(s[e],n)},i)}function bc(t,e,i=At,s=!1){if(i){const n=i[t]||(i[t]=[]),r=e.__weh||(e.__weh=(...o)=>{ms();const a=da(i),l=Ei(e,i,t,o);return a(),vs(),l});return s?n.unshift(r):n.push(r),r}}const xs=t=>(e,i=At)=>{(!Ho||t==="sp")&&bc(t,(...s)=>e(...s),i)},_w=xs("bm"),yc=xs("m"),xw=xs("bu"),ww=xs("u"),Cb=xs("bum"),Rh=xs("um"),kw=xs("sp"),Sw=xs("rtg"),Cw=xs("rtc");function Aw(t,e=At){bc("ec",t,e)}const Tw="components";function sp(t,e){return Pw(Tw,t,!0,e)||t}const Ew=Symbol.for("v-ndc");function Pw(t,e,i=!0,s=!1){const n=Bt||At;if(n){const r=n.type;{const a=m1(r,!1);if(a&&(a===e||a===gi(e)||a===fc(gi(e))))return r}const o=np(n[t]||r[t],e)||np(n.appContext[t],e);return!o&&s?r:o}}function np(t,e){return t&&(t[e]||t[gi(e)]||t[fc(gi(e))])}function st(t,e,i,s){let n;const r=i,o=de(t);if(o||nt(t)){const a=o&&Hs(t);let l=!1,c=!1;a&&(l=!fi(t),c=Xs(t),t=gc(t)),n=new Array(t.length);for(let d=0,u=t.length;de(a,l,void 0,r));else{const a=Object.keys(t);n=new Array(a.length);for(let l=0,c=a.length;lqo(e)?!(e.type===Ct||e.type===ye&&!Ab(e.children)):!0)?t:null}const lu=t=>t?Wb(t)?Nh(t):lu(t.parent):null,vo=pt(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=>lu(t.parent),$root:t=>lu(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Eb(t),$forceUpdate:t=>t.f||(t.f=()=>{Mh(t.update)}),$nextTick:t=>t.n||(t.n=ca.bind(t.proxy)),$watch:t=>Xw.bind(t)}),nd=(t,e)=>t!==Ue&&!t.__isScriptSetup&&Pe(t,e),Ow={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:i,setupState:s,data:n,props:r,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return s[e];case 2:return n[e];case 4:return i[e];case 3:return r[e]}else{if(nd(s,e))return o[e]=1,s[e];if(n!==Ue&&Pe(n,e))return o[e]=2,n[e];if((c=t.propsOptions[0])&&Pe(c,e))return o[e]=3,r[e];if(i!==Ue&&Pe(i,e))return o[e]=4,i[e];cu&&(o[e]=0)}}const d=vo[e];let u,h;if(d)return e==="$attrs"&&St(t.attrs,"get",""),d(t);if((u=a.__cssModules)&&(u=u[e]))return u;if(i!==Ue&&Pe(i,e))return o[e]=4,i[e];if(h=l.config.globalProperties,Pe(h,e))return h[e]},set({_:t},e,i){const{data:s,setupState:n,ctx:r}=t;return nd(n,e)?(n[e]=i,!0):s!==Ue&&Pe(s,e)?(s[e]=i,!0):Pe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=i,!0)},has({_:{data:t,setupState:e,accessCache:i,ctx:s,appContext:n,propsOptions:r}},o){let a;return!!i[o]||t!==Ue&&Pe(t,o)||nd(e,o)||(a=r[0])&&Pe(a,o)||Pe(s,o)||Pe(vo,o)||Pe(n.config.globalProperties,o)},defineProperty(t,e,i){return i.get!=null?t._.accessCache[e]=0:Pe(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};function rp(t){return de(t)?t.reduce((e,i)=>(e[i]=null,e),{}):t}let cu=!0;function Iw(t){const e=Eb(t),i=t.proxy,s=t.ctx;cu=!1,e.beforeCreate&&op(e.beforeCreate,t,"bc");const{data:n,computed:r,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:C,destroyed:w,unmounted:A,render:x,renderTracked:E,renderTriggered:T,errorCaptured:P,serverPrefetch:k,expose:I,inheritAttrs:S,components:b,directives:D,filters:B}=e;if(c&&Mw(c,s,null),o)for(const U in o){const Y=o[U];ue(Y)&&(s[U]=Y.bind(i))}if(n){const U=n.call(i,i);He(U)&&(t.data=Dr(U))}if(cu=!0,r)for(const U in r){const Y=r[U],ae=ue(Y)?Y.bind(i,i):ue(Y.get)?Y.get.bind(i,i):qi,ve=!ue(Y)&&ue(Y.set)?Y.set.bind(i):qi,Ae=Be({get:ae,set:ve});Object.defineProperty(s,U,{enumerable:!0,configurable:!0,get:()=>Ae.value,set:xe=>Ae.value=xe})}if(a)for(const U in a)Tb(a[U],s,i,U);if(l){const U=ue(l)?l.call(i):l;Reflect.ownKeys(U).forEach(Y=>{bo(Y,U[Y])})}d&&op(d,t,"c");function W(U,Y){de(Y)?Y.forEach(ae=>U(ae.bind(i))):Y&&U(Y.bind(i))}if(W(_w,u),W(yc,h),W(xw,f),W(ww,p),W(vw,g),W(bw,m),W(Aw,P),W(Cw,E),W(Sw,T),W(Cb,C),W(Rh,A),W(kw,k),de(I))if(I.length){const U=t.exposed||(t.exposed={});I.forEach(Y=>{Object.defineProperty(U,Y,{get:()=>i[Y],set:ae=>i[Y]=ae,enumerable:!0})})}else t.exposed||(t.exposed={});x&&t.render===qi&&(t.render=x),S!=null&&(t.inheritAttrs=S),b&&(t.components=b),D&&(t.directives=D),k&&kb(t)}function Mw(t,e,i=qi){de(t)&&(t=du(t));for(const s in t){const n=t[s];let r;He(n)?"default"in n?r=pi(n.from||s,n.default,!0):r=pi(n.from||s):r=pi(n),et(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function op(t,e,i){Ei(de(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,i)}function Tb(t,e,i,s){let n=s.includes(".")?zb(i,s):()=>i[s];if(nt(t)){const r=e[t];ue(r)&&di(n,r)}else if(ue(t))di(n,t.bind(i));else if(He(t))if(de(t))t.forEach(r=>Tb(r,e,i,s));else{const r=ue(t.handler)?t.handler.bind(i):e[t.handler];ue(r)&&di(n,r,t)}}function Eb(t){const e=t.type,{mixins:i,extends:s}=e,{mixins:n,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!n.length&&!i&&!s?l=e:(l={},n.length&&n.forEach(c=>Fl(l,c,o,!0)),Fl(l,e,o)),He(e)&&r.set(e,l),l}function Fl(t,e,i,s=!1){const{mixins:n,extends:r}=e;r&&Fl(t,r,i,!0),n&&n.forEach(o=>Fl(t,o,i,!0));for(const o in e)if(!(s&&o==="expose")){const a=Rw[o]||i&&i[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const Rw={data:ap,props:lp,emits:lp,methods:no,computed:no,beforeCreate:It,created:It,beforeMount:It,mounted:It,beforeUpdate:It,updated:It,beforeDestroy:It,beforeUnmount:It,destroyed:It,unmounted:It,activated:It,deactivated:It,errorCaptured:It,serverPrefetch:It,components:no,directives:no,watch:Lw,provide:ap,inject:$w};function ap(t,e){return e?t?function(){return pt(ue(t)?t.call(this,this):t,ue(e)?e.call(this,this):e)}:e:t}function $w(t,e){return no(du(t),du(e))}function du(t){if(de(t)){const e={};for(let i=0;i1)return i&&ue(e)?e.call(s&&s.proxy):e}}function Nw(){return!!(Fh()||Pn)}const Ob={},Ib=()=>Object.create(Ob),Mb=t=>Object.getPrototypeOf(t)===Ob;function Bw(t,e,i,s=!1){const n={},r=Ib();t.propsDefaults=Object.create(null),Rb(t,e,n,r);for(const o in t.propsOptions[0])o in n||(n[o]=void 0);i?t.props=s?n:ab(n):t.type.props?t.props=n:t.props=r,t.attrs=r}function jw(t,e,i,s){const{props:n,attrs:r,vnode:{patchFlag:o}}=t,a=we(n),[l]=t.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const d=t.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=$b(u,e,!0);pt(o,h),f&&a.push(...f)};!i&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!r&&!l)return He(t)&&s.set(t,fr),fr;if(de(r))for(let d=0;dt==="_"||t==="__"||t==="_ctx"||t==="$stable",Lh=t=>de(t)?t.map(Vi):[Vi(t)],Vw=(t,e,i)=>{if(e._n)return e;const s=ht((...n)=>Lh(e(...n)),i);return s._c=!1,s},Lb=(t,e,i)=>{const s=t._ctx;for(const n in t){if($h(n))continue;const r=t[n];if(ue(r))e[n]=Vw(n,r,s);else if(r!=null){const o=Lh(r);e[n]=()=>o}}},Db=(t,e)=>{const i=Lh(e);t.slots.default=()=>i},Fb=(t,e,i)=>{for(const s in e)(i||!$h(s))&&(t[s]=e[s])},Uw=(t,e,i)=>{const s=t.slots=Ib();if(t.vnode.shapeFlag&32){const n=e.__;n&&su(s,"__",n,!0);const r=e._;r?(Fb(s,e,i),i&&su(s,"_",r,!0)):Lb(e,s)}else e&&Db(t,e)},qw=(t,e,i)=>{const{vnode:s,slots:n}=t;let r=!0,o=Ue;if(s.shapeFlag&32){const a=e._;a?i&&a===1?r=!1:Fb(n,e,i):(r=!e.$stable,Lb(e,n)),o=e}else e&&(Db(t,e),o={default:1});if(r)for(const a in n)!$h(a)&&o[a]==null&&delete n[a]},ti=n1;function Hw(t){return Ww(t)}function Ww(t,e){const i=pc();i.__VUE__=!0;const{insert:s,remove:n,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=qi,insertStaticContent:p}=t,g=(v,_,O,L=null,z=null,V=null,H=void 0,ee=null,Q=!!_.dynamicChildren)=>{if(v===_)return;v&&!Sn(v,_)&&(L=K(v),xe(v,z,V,!0),v=null),_.patchFlag===-2&&(Q=!1,_.dynamicChildren=null);const{type:Z,ref:ne,shapeFlag:te}=_;switch(Z){case xc:m(v,_,O,L);break;case Ct:y(v,_,O,L);break;case od:v==null&&C(_,O,L,H);break;case ye:b(v,_,O,L,z,V,H,ee,Q);break;default:te&1?x(v,_,O,L,z,V,H,ee,Q):te&6?D(v,_,O,L,z,V,H,ee,Q):(te&64||te&128)&&Z.process(v,_,O,L,z,V,H,ee,Q,M)}ne!=null&&z?mo(ne,v&&v.ref,V,_||v,!_):ne==null&&v&&v.ref!=null&&mo(v.ref,null,V,v,!0)},m=(v,_,O,L)=>{if(v==null)s(_.el=a(_.children),O,L);else{const z=_.el=v.el;_.children!==v.children&&c(z,_.children)}},y=(v,_,O,L)=>{v==null?s(_.el=l(_.children||""),O,L):_.el=v.el},C=(v,_,O,L)=>{[v.el,v.anchor]=p(v.children,_,O,L,v.el,v.anchor)},w=({el:v,anchor:_},O,L)=>{let z;for(;v&&v!==_;)z=h(v),s(v,O,L),v=z;s(_,O,L)},A=({el:v,anchor:_})=>{let O;for(;v&&v!==_;)O=h(v),n(v),v=O;n(_)},x=(v,_,O,L,z,V,H,ee,Q)=>{_.type==="svg"?H="svg":_.type==="math"&&(H="mathml"),v==null?E(_,O,L,z,V,H,ee,Q):k(v,_,z,V,H,ee,Q)},E=(v,_,O,L,z,V,H,ee)=>{let Q,Z;const{props:ne,shapeFlag:te,transition:re,dirs:le}=v;if(Q=v.el=o(v.type,V,ne&&ne.is,ne),te&8?d(Q,v.children):te&16&&P(v.children,Q,null,L,z,rd(v,V),H,ee),le&&an(v,null,L,"created"),T(Q,v,v.scopeId,H,L),ne){for(const je in ne)je!=="value"&&!fo(je)&&r(Q,je,null,ne[je],V,L);"value"in ne&&r(Q,"value",null,ne.value,V),(Z=ne.onVnodeBeforeMount)&&Fi(Z,L,v)}le&&an(v,null,L,"beforeMount");const Ce=Kw(z,re);Ce&&re.beforeEnter(Q),s(Q,_,O),((Z=ne&&ne.onVnodeMounted)||Ce||le)&&ti(()=>{Z&&Fi(Z,L,v),Ce&&re.enter(Q),le&&an(v,null,L,"mounted")},z)},T=(v,_,O,L,z)=>{if(O&&f(v,O),L)for(let V=0;V{for(let Z=Q;Z{const ee=_.el=v.el;let{patchFlag:Q,dynamicChildren:Z,dirs:ne}=_;Q|=v.patchFlag&16;const te=v.props||Ue,re=_.props||Ue;let le;if(O&&ln(O,!1),(le=re.onVnodeBeforeUpdate)&&Fi(le,O,_,v),ne&&an(_,v,O,"beforeUpdate"),O&&ln(O,!0),(te.innerHTML&&re.innerHTML==null||te.textContent&&re.textContent==null)&&d(ee,""),Z?I(v.dynamicChildren,Z,ee,O,L,rd(_,z),V):H||Y(v,_,ee,null,O,L,rd(_,z),V,!1),Q>0){if(Q&16)S(ee,te,re,O,z);else if(Q&2&&te.class!==re.class&&r(ee,"class",null,re.class,z),Q&4&&r(ee,"style",te.style,re.style,z),Q&8){const Ce=_.dynamicProps;for(let je=0;je{le&&Fi(le,O,_,v),ne&&an(_,v,O,"updated")},L)},I=(v,_,O,L,z,V,H)=>{for(let ee=0;ee<_.length;ee++){const Q=v[ee],Z=_[ee],ne=Q.el&&(Q.type===ye||!Sn(Q,Z)||Q.shapeFlag&198)?u(Q.el):O;g(Q,Z,ne,null,L,z,V,H,!0)}},S=(v,_,O,L,z)=>{if(_!==O){if(_!==Ue)for(const V in _)!fo(V)&&!(V in O)&&r(v,V,_[V],null,z,L);for(const V in O){if(fo(V))continue;const H=O[V],ee=_[V];H!==ee&&V!=="value"&&r(v,V,ee,H,z,L)}"value"in O&&r(v,"value",_.value,O.value,z)}},b=(v,_,O,L,z,V,H,ee,Q)=>{const Z=_.el=v?v.el:a(""),ne=_.anchor=v?v.anchor:a("");let{patchFlag:te,dynamicChildren:re,slotScopeIds:le}=_;le&&(ee=ee?ee.concat(le):le),v==null?(s(Z,O,L),s(ne,O,L),P(_.children||[],O,ne,z,V,H,ee,Q)):te>0&&te&64&&re&&v.dynamicChildren?(I(v.dynamicChildren,re,O,z,V,H,ee),(_.key!=null||z&&_===z.subTree)&&Nb(v,_,!0)):Y(v,_,O,ne,z,V,H,ee,Q)},D=(v,_,O,L,z,V,H,ee,Q)=>{_.slotScopeIds=ee,v==null?_.shapeFlag&512?z.ctx.activate(_,O,L,H,Q):B(_,O,L,z,V,H,Q):N(v,_,Q)},B=(v,_,O,L,z,V,H)=>{const ee=v.component=u1(v,L,z);if(vc(v)&&(ee.ctx.renderer=M),h1(ee,!1,H),ee.asyncDep){if(z&&z.registerDep(ee,W,H),!v.el){const Q=ee.subTree=oe(Ct);y(null,Q,_,O),v.placeholder=Q.el}}else W(ee,v,_,O,z,V,H)},N=(v,_,O)=>{const L=_.component=v.component;if(i1(v,_,O))if(L.asyncDep&&!L.asyncResolved){U(L,_,O);return}else L.next=_,L.update();else _.el=v.el,L.vnode=_},W=(v,_,O,L,z,V,H)=>{const ee=()=>{if(v.isMounted){let{next:te,bu:re,u:le,parent:Ce,vnode:je}=v;{const $i=Bb(v);if($i){te&&(te.el=je.el,U(v,te,H)),$i.asyncDep.then(()=>{v.isUnmounted||ee()});return}}let Me=te,Vt;ln(v,!1),te?(te.el=je.el,U(v,te,H)):te=je,re&&Xc(re),(Vt=te.props&&te.props.onVnodeBeforeUpdate)&&Fi(Vt,Ce,te,je),ln(v,!0);const Ut=up(v),Ri=v.subTree;v.subTree=Ut,g(Ri,Ut,u(Ri.el),K(Ri),v,z,V),te.el=Ut.el,Me===null&&s1(v,Ut.el),le&&ti(le,z),(Vt=te.props&&te.props.onVnodeUpdated)&&ti(()=>Fi(Vt,Ce,te,je),z)}else{let te;const{el:re,props:le}=_,{bm:Ce,m:je,parent:Me,root:Vt,type:Ut}=v,Ri=mr(_);ln(v,!1),Ce&&Xc(Ce),!Ri&&(te=le&&le.onVnodeBeforeMount)&&Fi(te,Me,_),ln(v,!0);{Vt.ce&&Vt.ce._def.shadowRoot!==!1&&Vt.ce._injectChildStyle(Ut);const $i=v.subTree=up(v);g(null,$i,O,L,v,z,V),_.el=$i.el}if(je&&ti(je,z),!Ri&&(te=le&&le.onVnodeMounted)){const $i=_;ti(()=>Fi(te,Me,$i),z)}(_.shapeFlag&256||Me&&mr(Me.vnode)&&Me.vnode.shapeFlag&256)&&v.a&&ti(v.a,z),v.isMounted=!0,_=O=L=null}};v.scope.on();const Q=v.effect=new Kv(ee);v.scope.off();const Z=v.update=Q.run.bind(Q),ne=v.job=Q.runIfDirty.bind(Q);ne.i=v,ne.id=v.uid,Q.scheduler=()=>Mh(ne),ln(v,!0),Z()},U=(v,_,O)=>{_.component=v;const L=v.vnode.props;v.vnode=_,v.next=null,jw(v,_.props,L,O),qw(v,_.children,O),ms(),tp(v),vs()},Y=(v,_,O,L,z,V,H,ee,Q=!1)=>{const Z=v&&v.children,ne=v?v.shapeFlag:0,te=_.children,{patchFlag:re,shapeFlag:le}=_;if(re>0){if(re&128){ve(Z,te,O,L,z,V,H,ee,Q);return}else if(re&256){ae(Z,te,O,L,z,V,H,ee,Q);return}}le&8?(ne&16&&Te(Z,z,V),te!==Z&&d(O,te)):ne&16?le&16?ve(Z,te,O,L,z,V,H,ee,Q):Te(Z,z,V,!0):(ne&8&&d(O,""),le&16&&P(te,O,L,z,V,H,ee,Q))},ae=(v,_,O,L,z,V,H,ee,Q)=>{v=v||fr,_=_||fr;const Z=v.length,ne=_.length,te=Math.min(Z,ne);let re;for(re=0;rene?Te(v,z,V,!0,!1,te):P(_,O,L,z,V,H,ee,Q,te)},ve=(v,_,O,L,z,V,H,ee,Q)=>{let Z=0;const ne=_.length;let te=v.length-1,re=ne-1;for(;Z<=te&&Z<=re;){const le=v[Z],Ce=_[Z]=Q?Rs(_[Z]):Vi(_[Z]);if(Sn(le,Ce))g(le,Ce,O,null,z,V,H,ee,Q);else break;Z++}for(;Z<=te&&Z<=re;){const le=v[te],Ce=_[re]=Q?Rs(_[re]):Vi(_[re]);if(Sn(le,Ce))g(le,Ce,O,null,z,V,H,ee,Q);else break;te--,re--}if(Z>te){if(Z<=re){const le=re+1,Ce=lere)for(;Z<=te;)xe(v[Z],z,V,!0),Z++;else{const le=Z,Ce=Z,je=new Map;for(Z=Ce;Z<=re;Z++){const ei=_[Z]=Q?Rs(_[Z]):Vi(_[Z]);ei.key!=null&&je.set(ei.key,Z)}let Me,Vt=0;const Ut=re-Ce+1;let Ri=!1,$i=0;const qr=new Array(Ut);for(Z=0;Z=Ut){xe(ei,z,V,!0);continue}let Li;if(ei.key!=null)Li=je.get(ei.key);else for(Me=Ce;Me<=re;Me++)if(qr[Me-Ce]===0&&Sn(ei,_[Me])){Li=Me;break}Li===void 0?xe(ei,z,V,!0):(qr[Li-Ce]=Z+1,Li>=$i?$i=Li:Ri=!0,g(ei,_[Li],O,null,z,V,H,ee,Q),Vt++)}const Yf=Ri?Gw(qr):fr;for(Me=Yf.length-1,Z=Ut-1;Z>=0;Z--){const ei=Ce+Z,Li=_[ei],Jf=_[ei+1],Xf=ei+1{const{el:V,type:H,transition:ee,children:Q,shapeFlag:Z}=v;if(Z&6){Ae(v.component.subTree,_,O,L);return}if(Z&128){v.suspense.move(_,O,L);return}if(Z&64){H.move(v,_,O,M);return}if(H===ye){s(V,_,O);for(let te=0;teee.enter(V),z);else{const{leave:te,delayLeave:re,afterLeave:le}=ee,Ce=()=>{v.ctx.isUnmounted?n(V):s(V,_,O)},je=()=>{te(V,()=>{Ce(),le&&le()})};re?re(V,Ce,je):je()}else s(V,_,O)},xe=(v,_,O,L=!1,z=!1)=>{const{type:V,props:H,ref:ee,children:Q,dynamicChildren:Z,shapeFlag:ne,patchFlag:te,dirs:re,cacheIndex:le}=v;if(te===-2&&(z=!1),ee!=null&&(ms(),mo(ee,null,O,v,!0),vs()),le!=null&&(_.renderCache[le]=void 0),ne&256){_.ctx.deactivate(v);return}const Ce=ne&1&&re,je=!mr(v);let Me;if(je&&(Me=H&&H.onVnodeBeforeUnmount)&&Fi(Me,_,v),ne&6)ut(v.component,O,L);else{if(ne&128){v.suspense.unmount(O,L);return}Ce&&an(v,null,_,"beforeUnmount"),ne&64?v.type.remove(v,_,O,M,L):Z&&!Z.hasOnce&&(V!==ye||te>0&&te&64)?Te(Z,_,O,!1,!0):(V===ye&&te&384||!z&&ne&16)&&Te(Q,_,O),L&&Ye(v)}(je&&(Me=H&&H.onVnodeUnmounted)||Ce)&&ti(()=>{Me&&Fi(Me,_,v),Ce&&an(v,null,_,"unmounted")},O)},Ye=v=>{const{type:_,el:O,anchor:L,transition:z}=v;if(_===ye){Qe(O,L);return}if(_===od){A(v);return}const V=()=>{n(O),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(v.shapeFlag&1&&z&&!z.persisted){const{leave:H,delayLeave:ee}=z,Q=()=>H(O,V);ee?ee(v.el,V,Q):Q()}else V()},Qe=(v,_)=>{let O;for(;v!==_;)O=h(v),n(v),v=O;n(_)},ut=(v,_,O)=>{const{bum:L,scope:z,job:V,subTree:H,um:ee,m:Q,a:Z,parent:ne,slots:{__:te}}=v;dp(Q),dp(Z),L&&Xc(L),ne&&de(te)&&te.forEach(re=>{ne.renderCache[re]=void 0}),z.stop(),V&&(V.flags|=8,xe(H,v,_,O)),ee&&ti(ee,_),ti(()=>{v.isUnmounted=!0},_),_&&_.pendingBranch&&!_.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===_.pendingId&&(_.deps--,_.deps===0&&_.resolve())},Te=(v,_,O,L=!1,z=!1,V=0)=>{for(let H=V;H{if(v.shapeFlag&6)return K(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const _=h(v.anchor||v.el),O=_&&_[fw];return O?h(O):_};let $=!1;const R=(v,_,O)=>{v==null?_._vnode&&xe(_._vnode,null,null,!0):g(_._vnode||null,v,_,null,null,null,O),_._vnode=v,$||($=!0,tp(),pb(),$=!1)},M={p:g,um:xe,m:Ae,r:Ye,mt:B,mc:P,pc:Y,pbc:I,n:K,o:t};return{render:R,hydrate:void 0,createApp:Fw(R)}}function rd({type:t,props:e},i){return i==="svg"&&t==="foreignObject"||i==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function ln({effect:t,job:e},i){i?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Kw(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Nb(t,e,i=!1){const s=t.children,n=e.children;if(de(s)&&de(n))for(let r=0;r>1,t[i[a]]0&&(e[s]=i[r-1]),i[r]=s)}}for(r=i.length,o=i[r-1];r-- >0;)i[r]=o,o=e[o];return i}function Bb(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Bb(e)}function dp(t){if(t)for(let e=0;epi(Yw);function di(t,e,i){return jb(t,e,i)}function jb(t,e,i=Ue){const{immediate:s,deep:n,flush:r,once:o}=i,a=pt({},i),l=e&&s||!e&&r!=="post";let c;if(Ho){if(r==="sync"){const f=Jw();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=qi,f.resume=qi,f.pause=qi,f}}const d=At;a.call=(f,p,g)=>Ei(f,d,p,g);let u=!1;r==="post"?a.scheduler=f=>{ti(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():Mh(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=cw(t,e,a);return Ho&&(c?c.push(h):l&&h()),h}function Xw(t,e,i){const s=this.proxy,n=nt(t)?t.includes(".")?zb(s,t):()=>s[t]:t.bind(s,s);let r;ue(e)?r=e:(r=e.handler,i=e);const o=da(this),a=jb(n,r.bind(s),i);return o(),a}function zb(t,e){const i=e.split(".");return()=>{let s=t;for(let n=0;ne==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${gi(e)}Modifiers`]||t[`${zn(e)}Modifiers`];function Zw(t,e,...i){if(t.isUnmounted)return;const s=t.vnode.props||Ue;let n=i;const r=e.startsWith("update:"),o=r&&Qw(s,e.slice(7));o&&(o.trim&&(n=i.map(d=>nt(d)?d.trim():d)),o.number&&(n=i.map(Tx)));let a,l=s[a=Jc(e)]||s[a=Jc(gi(e))];!l&&r&&(l=s[a=Jc(zn(e))]),l&&Ei(l,t,6,n);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Ei(c,t,6,n)}}function Vb(t,e,i=!1){const s=e.emitsCache,n=s.get(t);if(n!==void 0)return n;const r=t.emits;let o={},a=!1;if(!ue(t)){const l=c=>{const d=Vb(c,e,!0);d&&(a=!0,pt(o,d))};!i&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(He(t)&&s.set(t,null),null):(de(r)?r.forEach(l=>o[l]=null):pt(o,r),He(t)&&s.set(t,o),o)}function _c(t,e){return!t||!dc(e)?!1:(e=e.slice(2).replace(/Once$/,""),Pe(t,e[0].toLowerCase()+e.slice(1))||Pe(t,zn(e))||Pe(t,e))}function up(t){const{type:e,vnode:i,proxy:s,withProxy:n,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:p,inheritAttrs:g}=t,m=Dl(t);let y,C;try{if(i.shapeFlag&4){const A=n||s,x=A;y=Vi(c.call(x,A,d,u,f,h,p)),C=a}else{const A=e;y=Vi(A.length>1?A(u,{attrs:a,slots:o,emit:l}):A(u,null)),C=e.props?a:e1(a)}}catch(A){yo.length=0,mc(A,t,1),y=oe(Ct)}let w=y;if(C&&g!==!1){const A=Object.keys(C),{shapeFlag:x}=w;A.length&&x&7&&(r&&A.some(xh)&&(C=t1(C,r)),w=Qs(w,C,!1,!0))}return i.dirs&&(w=Qs(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&Vo(w,i.transition),y=w,Dl(m),y}const e1=t=>{let e;for(const i in t)(i==="class"||i==="style"||dc(i))&&((e||(e={}))[i]=t[i]);return e},t1=(t,e)=>{const i={};for(const s in t)(!xh(s)||!(s.slice(9)in e))&&(i[s]=t[s]);return i};function i1(t,e,i){const{props:s,children:n,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return s?hp(s,o,c):!!o;if(l&8){const d=e.dynamicProps;for(let u=0;ut.__isSuspense;function n1(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):hw(t)}const ye=Symbol.for("v-fgt"),xc=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),od=Symbol.for("v-stc"),yo=[];let si=null;function q(t=!1){yo.push(si=t?null:[])}function r1(){yo.pop(),si=yo[yo.length-1]||null}let Uo=1;function fp(t,e=!1){Uo+=t,t<0&&si&&e&&(si.hasOnce=!0)}function qb(t){return t.dynamicChildren=Uo>0?si||fr:null,r1(),Uo>0&&si&&si.push(t),t}function G(t,e,i,s,n,r){return qb(X(t,e,i,s,n,r,!0))}function vt(t,e,i,s,n){return qb(oe(t,e,i,s,n,!0))}function qo(t){return t?t.__v_isVNode===!0:!1}function Sn(t,e){return t.type===e.type&&t.key===e.key}const Hb=({key:t})=>t??null,yl=({ref:t,ref_key:e,ref_for:i})=>(typeof t=="number"&&(t=""+t),t!=null?nt(t)||et(t)||ue(t)?{i:Bt,r:t,k:e,f:!!i}:t:null);function X(t,e=null,i=null,s=0,n=null,r=t===ye?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Hb(e),ref:e&&yl(e),scopeId:mb,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Bt};return a?(Dh(l,i),r&128&&t.normalize(l)):i&&(l.shapeFlag|=nt(i)?8:16),Uo>0&&!o&&si&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&si.push(l),l}const oe=o1;function o1(t,e=null,i=null,s=0,n=null,r=!1){if((!t||t===Ew)&&(t=Ct),qo(t)){const a=Qs(t,e,!0);return i&&Dh(a,i),Uo>0&&!r&&si&&(a.shapeFlag&6?si[si.indexOf(t)]=a:si.push(a)),a.patchFlag=-2,a}if(v1(t)&&(t=t.__vccOpts),e){e=a1(e);let{class:a,style:l}=e;a&&!nt(a)&&(e.class=kr(a)),He(l)&&(aa(l)&&!de(l)&&(l=pt({},l)),e.style=ri(l))}const o=nt(t)?1:Ub(t)?128:vb(t)?64:He(t)?4:ue(t)?2:0;return X(t,e,i,s,n,o,r,!0)}function a1(t){return t?aa(t)||Mb(t)?pt({},t):t:null}function Qs(t,e,i=!1,s=!1){const{props:n,ref:r,patchFlag:o,children:a,transition:l}=t,c=e?l1(n||{},e):n,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Hb(c),ref:e&&e.ref?i&&r?de(r)?r.concat(yl(e)):[r,yl(e)]:yl(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ye?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Qs(t.ssContent),ssFallback:t.ssFallback&&Qs(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&s&&Vo(d,l.clone(d)),d}function Fe(t=" ",e=0){return oe(xc,null,t,e)}function qe(t="",e=!1){return e?(q(),vt(Ct,null,t)):oe(Ct,null,t)}function Vi(t){return t==null||typeof t=="boolean"?oe(Ct):de(t)?oe(ye,null,t.slice()):qo(t)?Rs(t):oe(xc,null,String(t))}function Rs(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Qs(t)}function Dh(t,e){let i=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(de(e))i=16;else if(typeof e=="object")if(s&65){const n=e.default;n&&(n._c&&(n._d=!1),Dh(t,n()),n._c&&(n._d=!0));return}else{i=32;const n=e._;!n&&!Mb(e)?e._ctx=Bt:n===3&&Bt&&(Bt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ue(e)?(e={default:e,_ctx:Bt},i=32):(e=String(e),s&64?(i=16,e=[Fe(e)]):i=8);t.children=e,t.shapeFlag|=i}function l1(...t){const e={};for(let i=0;iAt||Bt;let Nl,hu;{const t=pc(),e=(i,s)=>{let n;return(n=t[i])||(n=t[i]=[]),n.push(s),r=>{n.length>1?n.forEach(o=>o(r)):n[0](r)}};Nl=e("__VUE_INSTANCE_SETTERS__",i=>At=i),hu=e("__VUE_SSR_SETTERS__",i=>Ho=i)}const da=t=>{const e=At;return Nl(t),t.scope.on(),()=>{t.scope.off(),Nl(e)}},pp=()=>{At&&At.scope.off(),Nl(null)};function Wb(t){return t.vnode.shapeFlag&4}let Ho=!1;function h1(t,e=!1,i=!1){e&&hu(e);const{props:s,children:n}=t.vnode,r=Wb(t);Bw(t,s,r,e),Uw(t,n,i||e);const o=r?f1(t,e):void 0;return e&&hu(!1),o}function f1(t,e){const i=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Ow);const{setup:s}=i;if(s){ms();const n=t.setupContext=s.length>1?g1(t):null,r=da(t),o=la(s,t,0,[t.props,n]),a=Nv(o);if(vs(),r(),(a||t.sp)&&!mr(t)&&kb(t),a){if(o.then(pp,pp),e)return o.then(l=>{gp(t,l)}).catch(l=>{mc(l,t,0)});t.asyncDep=o}else gp(t,o)}else Kb(t)}function gp(t,e,i){ue(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:He(e)&&(t.setupState=db(e)),Kb(t)}function Kb(t,e,i){const s=t.type;t.render||(t.render=s.render||qi);{const n=da(t);ms();try{Iw(t)}finally{vs(),n()}}}const p1={get(t,e){return St(t,"get",""),t[e]}};function g1(t){const e=i=>{t.exposed=i||{}};return{attrs:new Proxy(t.attrs,p1),slots:t.slots,emit:t.emit,expose:e}}function Nh(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(db(Oh(t.exposed)),{get(e,i){if(i in e)return e[i];if(i in vo)return vo[i](t)},has(e,i){return i in e||i in vo}})):t.proxy}function m1(t,e=!0){return ue(t)?t.displayName||t.name:t.name||e&&t.__name}function v1(t){return ue(t)&&"__vccOpts"in t}const Be=(t,e)=>aw(t,e,Ho);function Xe(t,e,i){const s=arguments.length;return s===2?He(e)&&!de(e)?qo(e)?oe(t,null,[e]):oe(t,e):oe(t,null,e):(s>3?i=Array.prototype.slice.call(arguments,2):s===3&&qo(i)&&(i=[i]),oe(t,e,i))}const Gb="3.5.18";/** +* @vue/runtime-dom v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let fu;const mp=typeof window<"u"&&window.trustedTypes;if(mp)try{fu=mp.createPolicy("vue",{createHTML:t=>t})}catch{}const Yb=fu?t=>fu.createHTML(t):t=>t,b1="http://www.w3.org/2000/svg",y1="http://www.w3.org/1998/Math/MathML",rs=typeof document<"u"?document:null,vp=rs&&rs.createElement("template"),_1={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,s)=>{const n=e==="svg"?rs.createElementNS(b1,t):e==="mathml"?rs.createElementNS(y1,t):i?rs.createElement(t,{is:i}):rs.createElement(t);return t==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:t=>rs.createTextNode(t),createComment:t=>rs.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>rs.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,s,n,r){const o=i?i.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),i),!(n===r||!(n=n.nextSibling)););else{vp.innerHTML=Yb(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const a=vp.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,i)}return[o?o.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},Ss="transition",Wr="animation",Wo=Symbol("_vtc"),Jb={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},x1=pt({},bb,Jb),w1=t=>(t.displayName="Transition",t.props=x1,t),k1=w1((t,{slots:e})=>Xe(mw,S1(t),e)),cn=(t,e=[])=>{de(t)?t.forEach(i=>i(...e)):t&&t(...e)},bp=t=>t?de(t)?t.some(e=>e.length>1):t.length>1:!1;function S1(t){const e={};for(const b in t)b in Jb||(e[b]=t[b]);if(t.css===!1)return e;const{name:i="v",type:s,duration:n,enterFromClass:r=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=t,p=C1(n),g=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:w,onLeave:A,onLeaveCancelled:x,onBeforeAppear:E=y,onAppear:T=C,onAppearCancelled:P=w}=e,k=(b,D,B,N)=>{b._enterCancelled=N,dn(b,D?d:a),dn(b,D?c:o),B&&B()},I=(b,D)=>{b._isLeaving=!1,dn(b,u),dn(b,f),dn(b,h),D&&D()},S=b=>(D,B)=>{const N=b?T:C,W=()=>k(D,b,B);cn(N,[D,W]),yp(()=>{dn(D,b?l:r),Ji(D,b?d:a),bp(N)||_p(D,s,g,W)})};return pt(e,{onBeforeEnter(b){cn(y,[b]),Ji(b,r),Ji(b,o)},onBeforeAppear(b){cn(E,[b]),Ji(b,l),Ji(b,c)},onEnter:S(!1),onAppear:S(!0),onLeave(b,D){b._isLeaving=!0;const B=()=>I(b,D);Ji(b,u),b._enterCancelled?(Ji(b,h),kp()):(kp(),Ji(b,h)),yp(()=>{b._isLeaving&&(dn(b,u),Ji(b,f),bp(A)||_p(b,s,m,B))}),cn(A,[b,B])},onEnterCancelled(b){k(b,!1,void 0,!0),cn(w,[b])},onAppearCancelled(b){k(b,!0,void 0,!0),cn(P,[b])},onLeaveCancelled(b){I(b),cn(x,[b])}})}function C1(t){if(t==null)return null;if(He(t))return[ad(t.enter),ad(t.leave)];{const e=ad(t);return[e,e]}}function ad(t){return Ex(t)}function Ji(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.add(i)),(t[Wo]||(t[Wo]=new Set)).add(e)}function dn(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const i=t[Wo];i&&(i.delete(e),i.size||(t[Wo]=void 0))}function yp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let A1=0;function _p(t,e,i,s){const n=t._endId=++A1,r=()=>{n===t._endId&&s()};if(i!=null)return setTimeout(r,i);const{type:o,timeout:a,propCount:l}=T1(t,e);if(!o)return s();const c=o+"end";let d=0;const u=()=>{t.removeEventListener(c,h),r()},h=f=>{f.target===t&&++d>=l&&u()};setTimeout(()=>{d(i[p]||"").split(", "),n=s(`${Ss}Delay`),r=s(`${Ss}Duration`),o=xp(n,r),a=s(`${Wr}Delay`),l=s(`${Wr}Duration`),c=xp(a,l);let d=null,u=0,h=0;e===Ss?o>0&&(d=Ss,u=o,h=r.length):e===Wr?c>0&&(d=Wr,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?Ss:Wr:null,h=d?d===Ss?r.length:l.length:0);const f=d===Ss&&/\b(transform|all)(,|$)/.test(s(`${Ss}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function xp(t,e){for(;t.lengthwp(i)+wp(t[s])))}function wp(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function kp(){return document.body.offsetHeight}function E1(t,e,i){const s=t[Wo];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}const Sp=Symbol("_vod"),P1=Symbol("_vsh"),O1=Symbol(""),I1=/(^|;)\s*display\s*:/;function M1(t,e,i){const s=t.style,n=nt(i);let r=!1;if(i&&!n){if(e)if(nt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&_l(s,a,"")}else for(const o in e)i[o]==null&&_l(s,o,"");for(const o in i)o==="display"&&(r=!0),_l(s,o,i[o])}else if(n){if(e!==i){const o=s[O1];o&&(i+=";"+o),s.cssText=i,r=I1.test(i)}}else e&&t.removeAttribute("style");Sp in t&&(t[Sp]=r?s.display:"",t[P1]&&(s.display="none"))}const Cp=/\s*!important$/;function _l(t,e,i){if(de(i))i.forEach(s=>_l(t,e,s));else if(i==null&&(i=""),e.startsWith("--"))t.setProperty(e,i);else{const s=R1(t,e);Cp.test(i)?t.setProperty(zn(s),i.replace(Cp,""),"important"):t[s]=i}}const Ap=["Webkit","Moz","ms"],ld={};function R1(t,e){const i=ld[e];if(i)return i;let s=gi(e);if(s!=="filter"&&s in t)return ld[e]=s;s=fc(s);for(let n=0;ncd||(N1.then(()=>cd=0),cd=Date.now());function j1(t,e){const i=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=i.attached)return;Ei(z1(s,i.value),e,5,[s])};return i.value=t,i.attached=B1(),i}function z1(t,e){if(de(e)){const i=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{i.call(t),t._stopped=!0},e.map(s=>n=>!n._stopped&&s&&s(n))}else return e}const Mp=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,V1=(t,e,i,s,n,r)=>{const o=n==="svg";e==="class"?E1(t,s,o):e==="style"?M1(t,i,s):dc(e)?xh(e)||D1(t,e,i,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):U1(t,e,s,o))?(Pp(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ep(t,e,s,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!nt(s))?Pp(t,gi(e),s,r,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),Ep(t,e,s,o))};function U1(t,e,i,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&Mp(e)&&ue(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const n=t.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Mp(e)&&nt(i)?!1:e in t}const q1=pt({patchProp:V1},_1);let Rp;function H1(){return Rp||(Rp=Hw(q1))}const W1=(...t)=>{const e=H1().createApp(...t),{mount:i}=e;return e.mount=s=>{const n=G1(s);if(!n)return;const r=e._component;!ue(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=i(n,!1,K1(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e};function K1(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function G1(t){return nt(t)?document.querySelector(t):t}/*! + * pinia v2.3.1 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let Xb;const wc=t=>Xb=t,Qb=Symbol();function pu(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var _o;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(_o||(_o={}));function Y1(){const t=Hv(!0),e=t.run(()=>Vn({}));let i=[],s=[];const n=Oh({install(r){wc(n),n._a=r,r.provide(Qb,n),r.config.globalProperties.$pinia=n,s.forEach(o=>i.push(o)),s=[]},use(r){return this._a?i.push(r):s.push(r),this},_p:i,_a:null,_e:t,_s:new Map,state:e});return n}const Zb=()=>{};function $p(t,e,i,s=Zb){t.push(e);const n=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),s())};return!i&&Wv()&&Lx(n),n}function Gn(t,...e){t.slice().forEach(i=>{i(...e)})}const J1=t=>t(),Lp=Symbol(),dd=Symbol();function gu(t,e){t instanceof Map&&e instanceof Map?e.forEach((i,s)=>t.set(s,i)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const i in e){if(!e.hasOwnProperty(i))continue;const s=e[i],n=t[i];pu(n)&&pu(s)&&t.hasOwnProperty(i)&&!et(s)&&!Hs(s)?t[i]=gu(n,s):t[i]=s}return t}const X1=Symbol();function Q1(t){return!pu(t)||!t.hasOwnProperty(X1)}const{assign:Ps}=Object;function Z1(t){return!!(et(t)&&t.effect)}function ek(t,e,i,s){const{state:n,actions:r,getters:o}=e,a=i.state.value[t];let l;function c(){a||(i.state.value[t]=n?n():{});const d=sw(i.state.value[t]);return Ps(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Oh(Be(()=>{wc(i);const f=i._s.get(t);return o[h].call(f,f)})),u),{}))}return l=ey(t,c,e,i,s,!0),l}function ey(t,e,i={},s,n,r){let o;const a=Ps({actions:{}},i),l={deep:!0};let c,d,u=[],h=[],f;const p=s.state.value[t];!r&&!p&&(s.state.value[t]={}),Vn({});let g;function m(P){let k;c=d=!1,typeof P=="function"?(P(s.state.value[t]),k={type:_o.patchFunction,storeId:t,events:f}):(gu(s.state.value[t],P),k={type:_o.patchObject,payload:P,storeId:t,events:f});const I=g=Symbol();ca().then(()=>{g===I&&(c=!0)}),d=!0,Gn(u,k,s.state.value[t])}const y=r?function(){const{state:k}=i,I=k?k():{};this.$patch(S=>{Ps(S,I)})}:Zb;function C(){o.stop(),u=[],h=[],s._s.delete(t)}const w=(P,k="")=>{if(Lp in P)return P[dd]=k,P;const I=function(){wc(s);const S=Array.from(arguments),b=[],D=[];function B(U){b.push(U)}function N(U){D.push(U)}Gn(h,{args:S,name:I[dd],store:x,after:B,onError:N});let W;try{W=P.apply(this&&this.$id===t?this:x,S)}catch(U){throw Gn(D,U),U}return W instanceof Promise?W.then(U=>(Gn(b,U),U)).catch(U=>(Gn(D,U),Promise.reject(U))):(Gn(b,W),W)};return I[Lp]=!0,I[dd]=k,I},A={_p:s,$id:t,$onAction:$p.bind(null,h),$patch:m,$reset:y,$subscribe(P,k={}){const I=$p(u,P,k.detached,()=>S()),S=o.run(()=>di(()=>s.state.value[t],b=>{(k.flush==="sync"?d:c)&&P({storeId:t,type:_o.direct,events:f},b)},Ps({},l,k)));return I},$dispose:C},x=Dr(A);s._s.set(t,x);const T=(s._a&&s._a.runWithContext||J1)(()=>s._e.run(()=>(o=Hv()).run(()=>e({action:w}))));for(const P in T){const k=T[P];if(et(k)&&!Z1(k)||Hs(k))r||(p&&Q1(k)&&(et(k)?k.value=p[P]:gu(k,p[P])),s.state.value[t][P]=k);else if(typeof k=="function"){const I=w(k,P);T[P]=I,a.actions[P]=k}}return Ps(x,T),Ps(we(x),T),Object.defineProperty(x,"$state",{get:()=>s.state.value[t],set:P=>{m(k=>{Ps(k,P)})}}),s._p.forEach(P=>{Ps(x,o.run(()=>P({store:x,app:s._a,pinia:s,options:a})))}),p&&r&&i.hydrate&&i.hydrate(x.$state,p),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function ty(t,e,i){let s,n;const r=typeof e=="function";typeof t=="string"?(s=t,n=r?i:e):(n=t,s=t.id);function o(a,l){const c=Nw();return a=a||(c?pi(Qb,null):null),a&&wc(a),a=Xb,a._s.has(s)||(r?ey(s,e,n,a):ek(s,n,a)),a._s.get(s)}return o.$id=s,o}var Wt,Yn,tk=Object.defineProperty,ik=Object.prototype.hasOwnProperty,Dp=Object.getOwnPropertySymbols,sk=Object.prototype.propertyIsEnumerable,Fp=(t,e,i)=>e in t?tk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Et=(t,e)=>{for(var i in e||(e={}))ik.call(e,i)&&Fp(t,i,e[i]);if(Dp)for(var i of Dp(e))sk.call(e,i)&&Fp(t,i,e[i]);return t};function mu(t,e){const i=(e=(e=e.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let s=t;for(const n of i){if(!(n in s))return;s=s[n]}return s}function Np(t){return!Array.isArray(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function nk(t,e){if(function(i){return i&&typeof i.custom=="function"}(e)&&!e.custom(e.value,t))return!1;if(!function(i){return Array.isArray(i.keys)}(e)||e.value===null||e.value===void 0||e.value.length===0)return!0;for(const i of e.keys){const s=mu(t,i);if(s!=null){const n=Array.isArray(e.value)?e.value:[e.value];for(const r of n)if(e.exact){if(s.toString()===r.toString())return!0}else if(s.toString().toLowerCase().includes(r.toString().toLowerCase()))return!0}}return!1}(Yn=Wt||(Wt={}))[Yn.DESC=-1]="DESC",Yn[Yn.NONE=0]="NONE",Yn[Yn.ASC=1]="ASC";let rk=class{constructor(e){this.state=Dr({data:[],filters:{},selectedRows:[],selectionMode:"single",selectOnClick:!0,selectedClass:"",hideSortIcons:!1,sortId:null,sortKey:null,customSort:null,sortOrder:Wt.NONE,currentPage:0,pageSize:void 0,sortIconPosition:"after",sortHeaderClass:""}),this.emit=e,this.filteredData=Be(()=>this.state.data.length===0?[]:Object.keys(this.state.filters).length===0?this.state.data:function(s,n){const r=[];for(const o of s){let a=!0;for(const l of Object.keys(n))if(!nk(o,n[l])){a=!1;break}a&&r.push(o)}return r}(this.state.data,this.state.filters)),this.sortedData=Be(()=>{return(this.state.sortKey||this.state.customSort)&&this.state.sortOrder!==0?(s=this.filteredData.value,n=this.state.sortKey,r=this.state.customSort,o=this.state.sortOrder,[...s].sort((a,l)=>{if(typeof r=="function")return r(a,l,o);let c,d;if(n?typeof n=="function"?(c=n(a,o),d=n(l,o)):(c=mu(a,n),d=mu(l,n)):(c=null,d=null),c==null&&(c=""),d==null&&(d=""),Np(c)&&Np(d))return(c-d)*o;const u=c.toString(),h=d.toString();return u.localeCompare(h)*o})):this.filteredData.value;var s,n,r,o}),this.totalItems=Be(()=>this.filteredData.value.length),this.totalPages=Be(()=>{return this.state.pageSize?(s=this.totalItems.value,n=this.state.pageSize,s<=n?1:Math.ceil(s/n)):0;var s,n}),di(this.totalPages,s=>{this.emit("totalPagesChanged",s)},{immediate:!0}),this.paginationEnabled=Be(()=>this.state.pageSize);const i=Be(()=>this.paginationEnabled.value&&this.state.currentPage>this.totalPages.value);di(i,s=>{s&&this.paginationEnabled.value&&(this.state.currentPage=1,this.emit("update:currentPage",this.state.currentPage))}),this.displayData=Be(()=>this.paginationEnabled.value?function(s,n,r){if(s.length<=n||n<=0||r<=0)return s;const o=(r-1)*n,a=o+n;return[...s].slice(o,a)}(this.sortedData.value,this.state.pageSize,this.state.currentPage):this.sortedData.value),di(this.displayData,s=>{this.emit("totalItemsChanged",s.length)}),this.tableState=Be(()=>({rows:this.displayData.value,rowsPrePagination:this.sortedData.value,selectedRows:this.state.selectedRows})),di(this.tableState,s=>{this.emit("stateChanged",s)},{immediate:!0,deep:!0})}revealItem(e){if(!this.paginationEnabled.value)return!1;let i;return i=typeof e=="function"?this.sortedData.value.findIndex(e):this.sortedData.value.indexOf(e),i!==-1&&(this.emit("update:currentPage",Math.ceil((i+1)/this.state.pageSize)),!0)}selectRow(e){this.state.selectionMode!=="single"?this.state.selectedRows.includes(e)||this.state.selectedRows.push(e):this.state.selectedRows=[e]}selectRows(e){for(const i of e)this.selectRow(i)}deselectRow(e){const i=this.state.selectedRows.indexOf(e);i>-1&&this.state.selectedRows.splice(i,1)}deselectRows(e){for(const i of e)this.deselectRow(i)}selectAll(){this.state.selectionMode!=="single"&&(this.state.selectedRows=[...this.state.data])}deselectAll(){this.state.selectedRows=[]}setSort({sortKey:e,customSort:i,sortOrder:s,sortId:n}){this.state.sortKey=e,this.state.customSort=i,this.state.sortOrder=s,this.state.sortId=n}syncProp(e,i,s=!1){di(i,()=>{this.state[e]=i.value},{immediate:!0,deep:s})}};const Bh=Symbol("store-key");var Bp=Se({name:"VTable",props:{data:{type:Array,required:!0},filters:{type:Object,required:!1,default:()=>({})},currentPage:{type:Number,required:!1,default:void 0},pageSize:{type:Number,required:!1,default:void 0},selectionMode:{type:String,required:!1,default:"single",validator:t=>["single","multiple"].includes(t)},selectedClass:{required:!1,type:String,default:"vt-selected"},selectOnClick:{required:!1,type:Boolean,default:!0},hideSortIcons:{required:!1,type:Boolean,default:!1},sortIconPosition:{required:!1,type:String,default:"after"},sortHeaderClass:{type:String,required:!1,default:""}},emits:{stateChanged:t=>!0,totalPagesChanged:t=>!0,totalItemsChanged:t=>!0},setup(t,e){const i=new rk(e.emit);bo(Bh,i),i.syncProp("data",Di(t,"data")),i.syncProp("filters",Di(t,"filters"),!0),i.syncProp("currentPage",Di(t,"currentPage")),i.syncProp("pageSize",Di(t,"pageSize")),i.syncProp("selectionMode",Di(t,"selectionMode")),i.syncProp("selectedClass",Di(t,"selectedClass")),i.syncProp("selectOnClick",Di(t,"selectOnClick")),i.syncProp("hideSortIcons",Di(t,"hideSortIcons")),i.syncProp("sortIconPosition",Di(t,"sortIconPosition")),i.syncProp("sortHeaderClass",Di(t,"sortHeaderClass"));const s=Be(()=>i.state.selectedRows.length===i.state.data.length);return{store:i,tableState:i.tableState,allRowsSelected:s,toggleAllRows:()=>s.value?i.deselectAll():i.selectAll(),selectAll:()=>i.selectAll(),deselectAll:()=>i.deselectAll(),selectRows:n=>i.selectRows(n),selectRow:n=>i.selectRow(n),deselectRows:n=>i.deselectRows(n),deselectRow:n=>i.deselectRow(n),revealItem:n=>i.revealItem(n),slots:e.slots}},render(){return Xe("table",{class:"v-table"},[Xe("thead",this.slots.head?this.slots.head({rows:this.tableState.rows,selectedRows:this.tableState.selectedRows,toggleAllRows:this.toggleAllRows,selectAll:this.selectAll,deselectAll:this.deselectAll,allRowsSelected:this.allRowsSelected}):void 0),Xe("tbody",this.slots.body?this.slots.body({rows:this.tableState.rows,selectedRows:this.tableState.selectedRows,selectRow:this.selectRow,deselectRow:this.deselectRow}):void 0)])}});function Oa(t){var e;const i={width:16,height:16,xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${t.vbWidth} ${t.vbHeight}`},s={fill:"currentColor",d:t.d,opacity:(e=t.opacity)!=null?e:1};return Xe("svg",Et(Et({attrs:i},i),{style:Et({},t.disabled?{color:"#9CA3AF"}:{})}),[Xe("path",Et({attrs:s},s))])}var ok=Se({name:"VTh",props:{sortKey:{type:[String,Function],required:!1,default:null},customSort:{type:[Function,Object],required:!1,default:null},defaultSort:{type:String,required:!1,validator:t=>["asc","desc",null].includes(t),default:null}},emits:["defaultSort","sortChanged"],setup(t,{emit:e,slots:i}){const s=pi(Bh);if(!t.sortKey&&!t.customSort)throw new Error("Must provide the Sort Key value or a Custom Sort function.");const n="_"+Math.random().toString(36).substr(2,9),r=Vn(Wt.NONE);yc(()=>{t.defaultSort&&(r.value=t.defaultSort==="desc"?Wt.DESC:Wt.ASC,s.setSort({sortOrder:r.value,sortKey:t.sortKey,customSort:t.customSort,sortId:n}),ca(()=>{e("defaultSort"),e("sortChanged",{sortOrder:r.value})}))});const o=Be(()=>{if(!s.state.hideSortIcons)return function(c){const d={width:16,height:16,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},u=()=>({fill:"currentColor",opacity:c===Wt.NONE||c===Wt.ASC?.4:1,d:"M41.05 288.05h238c21.4 0 32.1 25.9 17 41l-119 119a23.9 23.9 0 0 1-33.8.1l-.1-.1-119.1-119c-15.05-15.05-4.4-41 17-41z"}),h=()=>({fill:"currentColor",opacity:c===Wt.NONE||c===Wt.DESC?.4:1,d:"M24.05 183.05l119.1-119A23.9 23.9 0 0 1 177 64a.94.94 0 0 1 .1.1l119 119c15.1 15.1 4.4 41-17 41h-238c-21.45-.05-32.1-25.95-17.05-41.05z"});return Xe("svg",Et({attrs:d},d),[Xe("g",[Xe("path",Et({attrs:u()},u())),Xe("path",Et({attrs:h()},h()))])])}(r.value)});di(()=>s.state.sortId,()=>{s.state.sortId!==n&&r.value!==0&&(r.value=0)});const a=()=>{[Wt.DESC,Wt.NONE].includes(r.value)?r.value=Wt.ASC:r.value=Wt.DESC,s.setSort({sortOrder:r.value,sortKey:t.sortKey,customSort:t.customSort,sortId:n}),e("sortChanged",{sortOrder:r.value})},l=Be(()=>{const c=[];return s.state.sortIconPosition!=="before"||s.state.hideSortIcons||c.push(o.value),i.default&&c.push(Xe("span",[i.default({sortOrder:r.value})])),s.state.sortIconPosition!=="after"||s.state.hideSortIcons||c.push(o.value),c});return()=>Xe("th",Et({class:"v-th"},{onClick:a}),[Xe("div",{class:s.state.sortHeaderClass},l.value)])}}),ak=Se({name:"VTr",props:{row:{type:Object,required:!0}},setup(t,{slots:e}){const i=pi(Bh),s=Be(()=>i.state.selectedRows.find(a=>a===t.row)),n=Be(()=>s.value?i.state.selectedClass:""),r=Be(()=>Et({},i.state.selectOnClick?{cursor:"pointer"}:{})),o=a=>{const l=a.target;l&&l.tagName.toLowerCase()==="td"&&(s.value?i.deselectRow(t.row):i.selectRow(t.row))};return()=>Xe("tr",Et(Et({class:n.value,style:r.value},i.state.selectOnClick?{onClick:o}:{}),{on:Et({},i.state.selectOnClick?{click:o}:{})}),e.default?e.default({isSelected:s.value,toggle:()=>s.value?i.deselectRow(t.row):i.selectRow(t.row)}):[])}}),lk=Se({name:"VTPagination",props:{currentPage:{type:Number,required:!0},totalPages:{type:Number,required:!0},hideSinglePage:{required:!1,type:Boolean,default:!0},maxPageLinks:{required:!1,type:Number,default:NaN},boundaryLinks:{required:!1,type:Boolean,default:!1},directionLinks:{required:!1,type:Boolean,default:!0}},setup(t,{slots:e,emit:i}){const s=Be(()=>isNaN(t.maxPageLinks)||t.maxPageLinks<=0?(()=>{const d=[];for(let u=1;u<=t.totalPages;u++)d.push({title:u.toString(),value:u});return d})():(()=>{const d=[],u=Math.ceil(t.totalPages/t.maxPageLinks),h=Math.ceil((t.currentPage||1)/t.maxPageLinks);let f=(h-1)*t.maxPageLinks+1;const p=Math.min(f+t.maxPageLinks-1,t.totalPages),g=p-f+1,m=t.maxPageLinks-g;h===u&&h>1&&m>0&&(f-=m),h>1&&d.push({title:"...",value:f-1});for(let y=f;y<=p&&!(y>t.totalPages);y++)d.push({title:y.toString(),value:y});return h{d<1||d>t.totalPages||d===t.currentPage||i("update:currentPage",d)},r=()=>{t.currentPage?t.currentPage{t.currentPage?t.currentPage>1&&i("update:currentPage",t.currentPage-1):i("update:currentPage",1)},a=()=>{i("update:currentPage",1)},l=()=>{i("update:currentPage",t.totalPages)},c=(d,u,h,f=!1)=>Xe("li",{class:["page-item",{disabled:h,active:f}]},[Xe("a",Et(Et({class:"page-link",style:Et({},h?{cursor:"not-allowed"}:{}),attrs:{href:"javascript:void(0)"},href:"javascript:void(0)"},h?{}:{onClick:u}),{on:Et({},h?{}:{click:u})}),[d])]);return()=>{var d,u,h,f,p,g,m,y;if(t.hideSinglePage&&t.totalPages===1)return Xe("");const C=[];if(t.boundaryLinks){const w=Oa({vbWidth:512,vbHeight:512,d:"M34.5 239L228.9 44.7c9.4-9.4 24.6-9.4 33.9 0l22.7 22.7c9.4 9.4 9.4 24.5 0 33.9L131.5 256l154 154.7c9.3 9.4 9.3 24.5 0 33.9l-22.7 22.7c-9.4 9.4-24.6 9.4-33.9 0L34.5 273c-9.3-9.4-9.3-24.6 0-34zm192 34l194.3 194.3c9.4 9.4 24.6 9.4 33.9 0l22.7-22.7c9.4-9.4 9.4-24.5 0-33.9L323.5 256l154-154.7c9.3-9.4 9.3-24.5 0-33.9l-22.7-22.7c-9.4-9.4-24.6-9.4-33.9 0L226.5 239c-9.3 9.4-9.3 24.6 0 34z"}),A=t.currentPage===1,x=(u=(d=e.firstPage)==null?void 0:d.call(e,{disabled:A}))!=null?u:w;C.push(c(x,a,A))}if(t.directionLinks){const w=Oa({vbWidth:320,vbHeight:512,d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"}),A=t.currentPage===1,x=(f=(h=e.previous)==null?void 0:h.call(e,{disabled:A}))!=null?f:w;C.push(c(x,o,A))}for(const w of s.value)C.push(c(w.title,()=>n(w.value),!1,w.value===t.currentPage));if(t.directionLinks){const w=Oa({vbWidth:320,vbHeight:512,d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}),A=t.currentPage===t.totalPages,x=(g=(p=e.next)==null?void 0:p.call(e,{disabled:A}))!=null?g:w;C.push(c(x,r,A))}if(t.boundaryLinks){const w=Oa({vbWidth:512,vbHeight:512,d:"M477.5 273L283.1 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.7-22.7c-9.4-9.4-9.4-24.5 0-33.9l154-154.7-154-154.7c-9.3-9.4-9.3-24.5 0-33.9l22.7-22.7c9.4-9.4 24.6-9.4 33.9 0L477.5 239c9.3 9.4 9.3 24.6 0 34zm-192-34L91.1 44.7c-9.4-9.4-24.6-9.4-33.9 0L34.5 67.4c-9.4 9.4-9.4 24.5 0 33.9l154 154.7-154 154.7c-9.3 9.4-9.3 24.5 0 33.9l22.7 22.7c9.4 9.4 24.6 9.4 33.9 0L285.5 273c9.3-9.4 9.3-24.6 0-34z"}),A=t.currentPage===t.totalPages,x=(y=(m=e.lastPage)==null?void 0:m.call(e,{disabled:A}))!=null?y:w;C.push(c(x,l,A))}return Xe("nav",{class:"vt-pagination"},[Xe("ul",{class:"pagination"},[C])])}}}),ck={install(t,e={}){["hideSortIcons","sortIconPosition","sortHeaderClass"].forEach(i=>{e.hasOwnProperty(i)&&(Bp.props[i].default=e[i])}),t.component("VTable",Bp),t.component("VTh",ok),t.component("VTr",ak),t.component("VTPagination",lk)}};/*! + * vue-router v4.5.1 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const ar=typeof document<"u";function iy(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dk(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&iy(t.default)}const Ee=Object.assign;function ud(t,e){const i={};for(const s in e){const n=e[s];i[s]=Pi(n)?n.map(t):t(n)}return i}const xo=()=>{},Pi=Array.isArray,sy=/#/g,uk=/&/g,hk=/\//g,fk=/=/g,pk=/\?/g,ny=/\+/g,gk=/%5B/g,mk=/%5D/g,ry=/%5E/g,vk=/%60/g,oy=/%7B/g,bk=/%7C/g,ay=/%7D/g,yk=/%20/g;function jh(t){return encodeURI(""+t).replace(bk,"|").replace(gk,"[").replace(mk,"]")}function _k(t){return jh(t).replace(oy,"{").replace(ay,"}").replace(ry,"^")}function vu(t){return jh(t).replace(ny,"%2B").replace(yk,"+").replace(sy,"%23").replace(uk,"%26").replace(vk,"`").replace(oy,"{").replace(ay,"}").replace(ry,"^")}function xk(t){return vu(t).replace(fk,"%3D")}function wk(t){return jh(t).replace(sy,"%23").replace(pk,"%3F")}function kk(t){return t==null?"":wk(t).replace(hk,"%2F")}function Ko(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Sk=/\/$/,Ck=t=>t.replace(Sk,"");function hd(t,e,i="/"){let s,n={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(s=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),n=t(r)),a>-1&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=Pk(s??e,i),{fullPath:s+(r&&"?")+r+o,path:s,query:n,hash:Ko(o)}}function Ak(t,e){const i=e.query?t(e.query):"";return e.path+(i&&"?")+i+(e.hash||"")}function jp(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Tk(t,e,i){const s=e.matched.length-1,n=i.matched.length-1;return s>-1&&s===n&&Sr(e.matched[s],i.matched[n])&&ly(e.params,i.params)&&t(e.query)===t(i.query)&&e.hash===i.hash}function Sr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function ly(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(!Ek(t[i],e[i]))return!1;return!0}function Ek(t,e){return Pi(t)?zp(t,e):Pi(e)?zp(e,t):t===e}function zp(t,e){return Pi(e)?t.length===e.length&&t.every((i,s)=>i===e[s]):t.length===1&&t[0]===e}function Pk(t,e){if(t.startsWith("/"))return t;if(!t)return e;const i=e.split("/"),s=t.split("/"),n=s[s.length-1];(n===".."||n===".")&&s.push("");let r=i.length-1,o,a;for(o=0;o1&&r--;else break;return i.slice(0,r).join("/")+"/"+s.slice(o).join("/")}const Cs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Go;(function(t){t.pop="pop",t.push="push"})(Go||(Go={}));var wo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(wo||(wo={}));function Ok(t){if(!t)if(ar){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Ck(t)}const Ik=/^[^#]+#/;function Mk(t,e){return t.replace(Ik,"#")+e}function Rk(t,e){const i=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-i.left-(e.left||0),top:s.top-i.top-(e.top||0)}}const kc=()=>({left:window.scrollX,top:window.scrollY});function $k(t){let e;if("el"in t){const i=t.el,s=typeof i=="string"&&i.startsWith("#"),n=typeof i=="string"?s?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!n)return;e=Rk(n,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Vp(t,e){return(history.state?history.state.position-e:-1)+t}const bu=new Map;function Lk(t,e){bu.set(t,e)}function Dk(t){const e=bu.get(t);return bu.delete(t),e}let Fk=()=>location.protocol+"//"+location.host;function cy(t,e){const{pathname:i,search:s,hash:n}=e,r=t.indexOf("#");if(r>-1){let a=n.includes(t.slice(r))?t.slice(r).length:1,l=n.slice(a);return l[0]!=="/"&&(l="/"+l),jp(l,"")}return jp(i,t)+s+n}function Nk(t,e,i,s){let n=[],r=[],o=null;const a=({state:h})=>{const f=cy(t,location),p=i.value,g=e.value;let m=0;if(h){if(i.value=f,e.value=h,o&&o===p){o=null;return}m=g?h.position-g.position:0}else s(f);n.forEach(y=>{y(i.value,p,{delta:m,type:Go.pop,direction:m?m>0?wo.forward:wo.back:wo.unknown})})};function l(){o=i.value}function c(h){n.push(h);const f=()=>{const p=n.indexOf(h);p>-1&&n.splice(p,1)};return r.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Ee({},h.state,{scroll:kc()}),"")}function u(){for(const h of r)h();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function Up(t,e,i,s=!1,n=!1){return{back:t,current:e,forward:i,replaced:s,position:window.history.length,scroll:n?kc():null}}function Bk(t){const{history:e,location:i}=window,s={value:cy(t,i)},n={value:e.state};n.value||r(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,d){const u=t.indexOf("#"),h=u>-1?(i.host&&document.querySelector("base")?t:t.slice(u))+l:Fk()+t+l;try{e[d?"replaceState":"pushState"](c,"",h),n.value=c}catch(f){console.error(f),i[d?"replace":"assign"](h)}}function o(l,c){const d=Ee({},e.state,Up(n.value.back,l,n.value.forward,!0),c,{position:n.value.position});r(l,d,!0),s.value=l}function a(l,c){const d=Ee({},n.value,e.state,{forward:l,scroll:kc()});r(d.current,d,!0);const u=Ee({},Up(s.value,l,null),{position:d.position+1},c);r(l,u,!1),s.value=l}return{location:s,state:n,push:a,replace:o}}function jk(t){t=Ok(t);const e=Bk(t),i=Nk(t,e.state,e.location,e.replace);function s(r,o=!0){o||i.pauseListeners(),history.go(r)}const n=Ee({location:"",base:t,go:s,createHref:Mk.bind(null,t)},e,i);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function zk(t){return typeof t=="string"||t&&typeof t=="object"}function dy(t){return typeof t=="string"||typeof t=="symbol"}const uy=Symbol("");var qp;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(qp||(qp={}));function Cr(t,e){return Ee(new Error,{type:t,[uy]:!0},e)}function Xi(t,e){return t instanceof Error&&uy in t&&(e==null||!!(t.type&e))}const Hp="[^/]+?",Vk={sensitive:!1,strict:!1,start:!0,end:!0},Uk=/[.+*?^${}()[\]/\\]/g;function qk(t,e){const i=Ee({},Vk,e),s=[];let n=i.start?"^":"";const r=[];for(const c of t){const d=c.length?[]:[90];i.strict&&!c.length&&(n+="/");for(let u=0;ue.length?e.length===1&&e[0]===80?1:-1:0}function hy(t,e){let i=0;const s=t.score,n=e.score;for(;i0&&e[e.length-1]<0}const Wk={type:0,value:""},Kk=/[a-zA-Z0-9_]/;function Gk(t){if(!t)return[[]];if(t==="/")return[[Wk]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${i})/"${c}": ${f}`)}let i=0,s=i;const n=[];let r;function o(){r&&n.push(r),r=[]}let a=0,l,c="",d="";function u(){c&&(i===0?r.push({type:0,value:c}):i===1||i===2||i===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{o(w)}:xo}function o(u){if(dy(u)){const h=s.get(u);h&&(s.delete(u),i.splice(i.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=i.indexOf(u);h>-1&&(i.splice(h,1),u.record.name&&s.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return i}function l(u){const h=Zk(u,i);i.splice(h,0,u),u.record.name&&!Yp(u)&&s.set(u.record.name,u)}function c(u,h){let f,p={},g,m;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw Cr(1,{location:u});m=f.record.name,p=Ee(Kp(h.params,f.keys.filter(w=>!w.optional).concat(f.parent?f.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),u.params&&Kp(u.params,f.keys.map(w=>w.name))),g=f.stringify(p)}else if(u.path!=null)g=u.path,f=i.find(w=>w.re.test(g)),f&&(p=f.parse(g),m=f.record.name);else{if(f=h.name?s.get(h.name):i.find(w=>w.re.test(h.path)),!f)throw Cr(1,{location:u,currentLocation:h});m=f.record.name,p=Ee({},h.params,u.params),g=f.stringify(p)}const y=[];let C=f;for(;C;)y.unshift(C.record),C=C.parent;return{name:m,path:g,params:p,matched:y,meta:Qk(y)}}t.forEach(u=>r(u));function d(){i.length=0,s.clear()}return{addRoute:r,resolve:c,removeRoute:o,clearRoutes:d,getRoutes:a,getRecordMatcher:n}}function Kp(t,e){const i={};for(const s of e)s in t&&(i[s]=t[s]);return i}function Gp(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:Xk(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Xk(t){const e={},i=t.props||!1;if("component"in t)e.default=i;else for(const s in t.components)e[s]=typeof i=="object"?i[s]:i;return e}function Yp(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Qk(t){return t.reduce((e,i)=>Ee(e,i.meta),{})}function Jp(t,e){const i={};for(const s in t)i[s]=s in e?e[s]:t[s];return i}function Zk(t,e){let i=0,s=e.length;for(;i!==s;){const r=i+s>>1;hy(t,e[r])<0?s=r:i=r+1}const n=eS(t);return n&&(s=e.lastIndexOf(n,s-1)),s}function eS(t){let e=t;for(;e=e.parent;)if(fy(e)&&hy(t,e)===0)return e}function fy({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function tS(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let n=0;nr&&vu(r)):[s&&vu(s)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+i,r!=null&&(e+="="+r))})}return e}function iS(t){const e={};for(const i in t){const s=t[i];s!==void 0&&(e[i]=Pi(s)?s.map(n=>n==null?null:""+n):s==null?s:""+s)}return e}const sS=Symbol(""),Qp=Symbol(""),zh=Symbol(""),py=Symbol(""),yu=Symbol("");function Kr(){let t=[];function e(s){return t.push(s),()=>{const n=t.indexOf(s);n>-1&&t.splice(n,1)}}function i(){t=[]}return{add:e,list:()=>t.slice(),reset:i}}function $s(t,e,i,s,n,r=o=>o()){const o=s&&(s.enterCallbacks[n]=s.enterCallbacks[n]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Cr(4,{from:i,to:e})):h instanceof Error?l(h):zk(h)?l(Cr(2,{from:e,to:h})):(o&&s.enterCallbacks[n]===o&&typeof h=="function"&&o.push(h),a())},d=r(()=>t.call(s&&s.instances[n],e,i,c));let u=Promise.resolve(d);t.length<3&&(u=u.then(c)),u.catch(h=>l(h))})}function fd(t,e,i,s,n=r=>r()){const r=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(iy(l)){const d=(l.__vccOpts||l)[e];d&&r.push($s(d,i,s,o,a,n))}else{let c=l();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const u=dk(d)?d.default:d;o.mods[a]=d,o.components[a]=u;const f=(u.__vccOpts||u)[e];return f&&$s(f,i,s,o,a,n)()}))}}return r}function Zp(t){const e=pi(zh),i=pi(py),s=Be(()=>{const l=Re(t.to);return e.resolve(l)}),n=Be(()=>{const{matched:l}=s.value,{length:c}=l,d=l[c-1],u=i.matched;if(!d||!u.length)return-1;const h=u.findIndex(Sr.bind(null,d));if(h>-1)return h;const f=eg(l[c-2]);return c>1&&eg(d)===f&&u[u.length-1].path!==f?u.findIndex(Sr.bind(null,l[c-2])):h}),r=Be(()=>n.value>-1&&aS(i.params,s.value.params)),o=Be(()=>n.value>-1&&n.value===i.matched.length-1&&ly(i.params,s.value.params));function a(l={}){if(oS(l)){const c=e[Re(t.replace)?"replace":"push"](Re(t.to)).catch(xo);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:Be(()=>s.value.href),isActive:r,isExactActive:o,navigate:a}}function nS(t){return t.length===1?t[0]:t}const rS=Se({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Zp,setup(t,{slots:e}){const i=Dr(Zp(t)),{options:s}=pi(zh),n=Be(()=>({[tg(t.activeClass,s.linkActiveClass,"router-link-active")]:i.isActive,[tg(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const r=e.default&&nS(e.default(i));return t.custom?r:Xe("a",{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:n.value},r)}}}),yi=rS;function oS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function aS(t,e){for(const i in e){const s=e[i],n=t[i];if(typeof s=="string"){if(s!==n)return!1}else if(!Pi(n)||n.length!==s.length||s.some((r,o)=>r!==n[o]))return!1}return!0}function eg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const tg=(t,e,i)=>t??e??i,lS=Se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:i}){const s=pi(yu),n=Be(()=>t.route||s.value),r=pi(Qp,0),o=Be(()=>{let c=Re(r);const{matched:d}=n.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=Be(()=>n.value.matched[o.value]);bo(Qp,Be(()=>o.value+1)),bo(sS,a),bo(yu,n);const l=Vn();return di(()=>[l.value,a.value,t.name],([c,d,u],[h,f,p])=>{d&&(d.instances[u]=c,f&&f!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=f.leaveGuards),d.updateGuards.size||(d.updateGuards=f.updateGuards))),c&&d&&(!f||!Sr(d,f)||!h)&&(d.enterCallbacks[u]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=n.value,d=t.name,u=a.value,h=u&&u.components[d];if(!h)return ig(i.default,{Component:h,route:c});const f=u.props[d],p=f?f===!0?c.params:typeof f=="function"?f(c):f:null,m=Xe(h,Ee({},p,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return ig(i.default,{Component:m,route:c})||m}}});function ig(t,e){if(!t)return null;const i=t(e);return i.length===1?i[0]:i}const gy=lS;function cS(t){const e=Jk(t.routes,t),i=t.parseQuery||tS,s=t.stringifyQuery||Xp,n=t.history,r=Kr(),o=Kr(),a=Kr(),l=Ih(Cs);let c=Cs;ar&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=ud.bind(null,K=>""+K),u=ud.bind(null,kk),h=ud.bind(null,Ko);function f(K,$){let R,M;return dy(K)?(R=e.getRecordMatcher(K),M=$):M=K,e.addRoute(M,R)}function p(K){const $=e.getRecordMatcher(K);$&&e.removeRoute($)}function g(){return e.getRoutes().map(K=>K.record)}function m(K){return!!e.getRecordMatcher(K)}function y(K,$){if($=Ee({},$||l.value),typeof K=="string"){const O=hd(i,K,$.path),L=e.resolve({path:O.path},$),z=n.createHref(O.fullPath);return Ee(O,L,{params:h(L.params),hash:Ko(O.hash),redirectedFrom:void 0,href:z})}let R;if(K.path!=null)R=Ee({},K,{path:hd(i,K.path,$.path).path});else{const O=Ee({},K.params);for(const L in O)O[L]==null&&delete O[L];R=Ee({},K,{params:u(O)}),$.params=u($.params)}const M=e.resolve(R,$),j=K.hash||"";M.params=d(h(M.params));const v=Ak(s,Ee({},K,{hash:_k(j),path:M.path})),_=n.createHref(v);return Ee({fullPath:v,hash:j,query:s===Xp?iS(K.query):K.query||{}},M,{redirectedFrom:void 0,href:_})}function C(K){return typeof K=="string"?hd(i,K,l.value.path):Ee({},K)}function w(K,$){if(c!==K)return Cr(8,{from:$,to:K})}function A(K){return T(K)}function x(K){return A(Ee(C(K),{replace:!0}))}function E(K){const $=K.matched[K.matched.length-1];if($&&$.redirect){const{redirect:R}=$;let M=typeof R=="function"?R(K):R;return typeof M=="string"&&(M=M.includes("?")||M.includes("#")?M=C(M):{path:M},M.params={}),Ee({query:K.query,hash:K.hash,params:M.path!=null?{}:K.params},M)}}function T(K,$){const R=c=y(K),M=l.value,j=K.state,v=K.force,_=K.replace===!0,O=E(R);if(O)return T(Ee(C(O),{state:typeof O=="object"?Ee({},j,O.state):j,force:v,replace:_}),$||R);const L=R;L.redirectedFrom=$;let z;return!v&&Tk(s,M,R)&&(z=Cr(16,{to:L,from:M}),Ae(M,M,!0,!1)),(z?Promise.resolve(z):I(L,M)).catch(V=>Xi(V)?Xi(V,2)?V:ve(V):Y(V,L,M)).then(V=>{if(V){if(Xi(V,2))return T(Ee({replace:_},C(V.to),{state:typeof V.to=="object"?Ee({},j,V.to.state):j,force:v}),$||L)}else V=b(L,M,!0,_,j);return S(L,M,V),V})}function P(K,$){const R=w(K,$);return R?Promise.reject(R):Promise.resolve()}function k(K){const $=Qe.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(K):K()}function I(K,$){let R;const[M,j,v]=dS(K,$);R=fd(M.reverse(),"beforeRouteLeave",K,$);for(const O of M)O.leaveGuards.forEach(L=>{R.push($s(L,K,$))});const _=P.bind(null,K,$);return R.push(_),Te(R).then(()=>{R=[];for(const O of r.list())R.push($s(O,K,$));return R.push(_),Te(R)}).then(()=>{R=fd(j,"beforeRouteUpdate",K,$);for(const O of j)O.updateGuards.forEach(L=>{R.push($s(L,K,$))});return R.push(_),Te(R)}).then(()=>{R=[];for(const O of v)if(O.beforeEnter)if(Pi(O.beforeEnter))for(const L of O.beforeEnter)R.push($s(L,K,$));else R.push($s(O.beforeEnter,K,$));return R.push(_),Te(R)}).then(()=>(K.matched.forEach(O=>O.enterCallbacks={}),R=fd(v,"beforeRouteEnter",K,$,k),R.push(_),Te(R))).then(()=>{R=[];for(const O of o.list())R.push($s(O,K,$));return R.push(_),Te(R)}).catch(O=>Xi(O,8)?O:Promise.reject(O))}function S(K,$,R){a.list().forEach(M=>k(()=>M(K,$,R)))}function b(K,$,R,M,j){const v=w(K,$);if(v)return v;const _=$===Cs,O=ar?history.state:{};R&&(M||_?n.replace(K.fullPath,Ee({scroll:_&&O&&O.scroll},j)):n.push(K.fullPath,j)),l.value=K,Ae(K,$,R,_),ve()}let D;function B(){D||(D=n.listen((K,$,R)=>{if(!ut.listening)return;const M=y(K),j=E(M);if(j){T(Ee(j,{replace:!0,force:!0}),M).catch(xo);return}c=M;const v=l.value;ar&&Lk(Vp(v.fullPath,R.delta),kc()),I(M,v).catch(_=>Xi(_,12)?_:Xi(_,2)?(T(Ee(C(_.to),{force:!0}),M).then(O=>{Xi(O,20)&&!R.delta&&R.type===Go.pop&&n.go(-1,!1)}).catch(xo),Promise.reject()):(R.delta&&n.go(-R.delta,!1),Y(_,M,v))).then(_=>{_=_||b(M,v,!1),_&&(R.delta&&!Xi(_,8)?n.go(-R.delta,!1):R.type===Go.pop&&Xi(_,20)&&n.go(-1,!1)),S(M,v,_)}).catch(xo)}))}let N=Kr(),W=Kr(),U;function Y(K,$,R){ve(K);const M=W.list();return M.length?M.forEach(j=>j(K,$,R)):console.error(K),Promise.reject(K)}function ae(){return U&&l.value!==Cs?Promise.resolve():new Promise((K,$)=>{N.add([K,$])})}function ve(K){return U||(U=!K,B(),N.list().forEach(([$,R])=>K?R(K):$()),N.reset()),K}function Ae(K,$,R,M){const{scrollBehavior:j}=t;if(!ar||!j)return Promise.resolve();const v=!R&&Dk(Vp(K.fullPath,0))||(M||!R)&&history.state&&history.state.scroll||null;return ca().then(()=>j(K,$,v)).then(_=>_&&$k(_)).catch(_=>Y(_,K,$))}const xe=K=>n.go(K);let Ye;const Qe=new Set,ut={currentRoute:l,listening:!0,addRoute:f,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:g,resolve:y,options:t,push:A,replace:x,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:W.add,isReady:ae,install(K){const $=this;K.component("RouterLink",yi),K.component("RouterView",gy),K.config.globalProperties.$router=$,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(l)}),ar&&!Ye&&l.value===Cs&&(Ye=!0,A(n.location).catch(j=>{}));const R={};for(const j in Cs)Object.defineProperty(R,j,{get:()=>l.value[j],enumerable:!0});K.provide(zh,$),K.provide(py,ab(R)),K.provide(yu,l);const M=K.unmount;Qe.add(K),K.unmount=function(){Qe.delete(K),Qe.size<1&&(c=Cs,D&&D(),D=null,l.value=Cs,Ye=!1,U=!1),M()}}};function Te(K){return K.reduce(($,R)=>$.then(()=>k(R)),Promise.resolve())}return ut}function dS(t,e){const i=[],s=[],n=[],r=Math.max(e.matched.length,t.matched.length);for(let o=0;oSr(c,a))?s.push(a):i.push(a));const l=t.matched[o];l&&(e.matched.find(c=>Sr(c,l))||n.push(l))}return[i,s,n]}const Un=ty("viewMode",{state(){return{screenWidth:window.innerWidth,screenHeight:window.innerHeight,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}},getters:{isMobile(){return this.screenWidth<=820},windowHeight(){return this.screenHeight},isDarkMode(){return this.darkMode},themeString(){return this.darkMode?"dark":"light"}},actions:{updateScreenWidth(t){this.screenWidth=t},updateScreenHeight(t){this.screenHeight=t},updateDarkMode(){var t;this.darkMode=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,(t=document.querySelector("html"))==null||t.setAttribute("theme",this.darkMode?"dark":"light")},toggleUserDarkMode(){var t;this.darkMode=!this.darkMode,(t=document.querySelector("html"))==null||t.setAttribute("theme",this.darkMode?"dark":"light")}}}),Sc="MatchData",Vh="PitData",uS="Event",Uh="Team",sg="RobotPhoto",ng="robot-photos",my="2025vapor",hS="modulepreload",fS=function(t){return"/"+t},rg={},ua=function(e,i,s){let n=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));n=Promise.allSettled(i.map(l=>{if(l=fS(l),l in rg)return;rg[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":hS,c||(u.as="script"),u.crossOrigin="",u.href=l,a&&u.setAttribute("nonce",a),document.head.appendChild(u),c)return new Promise((h,f)=>{u.addEventListener("load",h),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return n.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},pS=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>ua(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)};class qh extends Error{constructor(e,i="FunctionsError",s){super(e),this.name=i,this.context=s}}class gS extends qh{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class og extends qh{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class ag extends qh{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var _u;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(_u||(_u={}));var mS=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class vS{constructor(e,{headers:i={},customFetch:s,region:n=_u.Any}={}){this.url=e,this.headers=i,this.region=n,this.fetch=pS(s)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,i={}){var s;return mS(this,void 0,void 0,function*(){try{const{headers:n,method:r,body:o}=i;let a={},{region:l}=i;l||(l=this.region);const c=new URL(`${this.url}/${e}`);l&&l!=="any"&&(a["x-region"]=l,c.searchParams.set("forceFunctionRegion",l));let d;o&&(n&&!Object.prototype.hasOwnProperty.call(n,"Content-Type")||!n)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",d=o):typeof o=="string"?(a["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(a["Content-Type"]="application/json",d=JSON.stringify(o)));const u=yield this.fetch(c.toString(),{method:r||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),n),body:d}).catch(g=>{throw new gS(g)}),h=u.headers.get("x-relay-error");if(h&&h==="true")throw new og(u);if(!u.ok)throw new ag(u);let f=((s=u.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),p;return f==="application/json"?p=yield u.json():f==="application/octet-stream"?p=yield u.blob():f==="text/event-stream"?p=u:f==="multipart/form-data"?p=yield u.formData():p=yield u.text(),{data:p,error:null,response:u}}catch(n){return{data:null,error:n,response:n instanceof ag||n instanceof og?n.context:void 0}}})}}var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bS(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var i=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),i}var Gt={},Hh={},Cc={},ha={},Ac={},Tc={},yS=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Ar=yS();const _S=Ar.fetch,vy=Ar.fetch.bind(Ar),by=Ar.Headers,xS=Ar.Request,wS=Ar.Response,Fr=Object.freeze(Object.defineProperty({__proto__:null,Headers:by,Request:xS,Response:wS,default:vy,fetch:_S},Symbol.toStringTag,{value:"Module"})),kS=bS(Fr);var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});let SS=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}};Ec.default=SS;var yy=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tc,"__esModule",{value:!0});const CS=yy(kS),AS=yy(Ec);let TS=class{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=CS.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,i){return this.headers=Object.assign({},this.headers),this.headers[e]=i,this}then(e,i){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const s=this.fetch;let n=s(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async r=>{var o,a,l;let c=null,d=null,u=null,h=r.status,f=r.statusText;if(r.ok){if(this.method!=="HEAD"){const y=await r.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=y:d=JSON.parse(y))}const g=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),m=(a=r.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");g&&m&&m.length>1&&(u=parseInt(m[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,u=null,h=406,f="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const g=await r.text();try{c=JSON.parse(g),Array.isArray(c)&&r.status===404&&(d=[],c=null,h=200,f="OK")}catch{r.status===404&&g===""?(h=204,f="No Content"):c={message:g}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("0 rows"))&&(c=null,h=200,f="OK"),c&&this.shouldThrowOnError)throw new AS.default(c)}return{error:c,data:d,count:u,status:h,statusText:f}});return this.shouldThrowOnError||(n=n.catch(r=>{var o,a,l;return{error:{message:`${(o=r==null?void 0:r.name)!==null&&o!==void 0?o:"FetchError"}: ${r==null?void 0:r.message}`,details:`${(a=r==null?void 0:r.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=r==null?void 0:r.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),n.then(e,i)}returns(){return this}overrideTypes(){return this}};Tc.default=TS;var ES=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ac,"__esModule",{value:!0});const PS=ES(Tc);let OS=class extends PS.default{select(e){let i=!1;const s=(e??"*").split("").map(n=>/\s/.test(n)&&!i?"":(n==='"'&&(i=!i),n)).join("");return this.url.searchParams.set("select",s),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:i=!0,nullsFirst:s,foreignTable:n,referencedTable:r=n}={}){const o=r?`${r}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${i?"asc":"desc"}${s===void 0?"":s?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:i,referencedTable:s=i}={}){const n=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,i,{foreignTable:s,referencedTable:n=s}={}){const r=typeof n>"u"?"offset":`${n}.offset`,o=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this.url.searchParams.set(o,`${i-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:e=!1,verbose:i=!1,settings:s=!1,buffers:n=!1,wal:r=!1,format:o="text"}={}){var a;const l=[e?"analyze":null,i?"verbose":null,s?"settings":null,n?"buffers":null,r?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${c}"; options=${l};`,o==="json"?this:this}rollback(){var e;return((e=this.headers.Prefer)!==null&&e!==void 0?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};Ac.default=OS;var IS=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ha,"__esModule",{value:!0});const MS=IS(Ac);let RS=class extends MS.default{eq(e,i){return this.url.searchParams.append(e,`eq.${i}`),this}neq(e,i){return this.url.searchParams.append(e,`neq.${i}`),this}gt(e,i){return this.url.searchParams.append(e,`gt.${i}`),this}gte(e,i){return this.url.searchParams.append(e,`gte.${i}`),this}lt(e,i){return this.url.searchParams.append(e,`lt.${i}`),this}lte(e,i){return this.url.searchParams.append(e,`lte.${i}`),this}like(e,i){return this.url.searchParams.append(e,`like.${i}`),this}likeAllOf(e,i){return this.url.searchParams.append(e,`like(all).{${i.join(",")}}`),this}likeAnyOf(e,i){return this.url.searchParams.append(e,`like(any).{${i.join(",")}}`),this}ilike(e,i){return this.url.searchParams.append(e,`ilike.${i}`),this}ilikeAllOf(e,i){return this.url.searchParams.append(e,`ilike(all).{${i.join(",")}}`),this}ilikeAnyOf(e,i){return this.url.searchParams.append(e,`ilike(any).{${i.join(",")}}`),this}is(e,i){return this.url.searchParams.append(e,`is.${i}`),this}in(e,i){const s=Array.from(new Set(i)).map(n=>typeof n=="string"&&new RegExp("[,()]").test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${s})`),this}contains(e,i){return typeof i=="string"?this.url.searchParams.append(e,`cs.${i}`):Array.isArray(i)?this.url.searchParams.append(e,`cs.{${i.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(i)}`),this}containedBy(e,i){return typeof i=="string"?this.url.searchParams.append(e,`cd.${i}`):Array.isArray(i)?this.url.searchParams.append(e,`cd.{${i.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(i)}`),this}rangeGt(e,i){return this.url.searchParams.append(e,`sr.${i}`),this}rangeGte(e,i){return this.url.searchParams.append(e,`nxl.${i}`),this}rangeLt(e,i){return this.url.searchParams.append(e,`sl.${i}`),this}rangeLte(e,i){return this.url.searchParams.append(e,`nxr.${i}`),this}rangeAdjacent(e,i){return this.url.searchParams.append(e,`adj.${i}`),this}overlaps(e,i){return typeof i=="string"?this.url.searchParams.append(e,`ov.${i}`):this.url.searchParams.append(e,`ov.{${i.join(",")}}`),this}textSearch(e,i,{config:s,type:n}={}){let r="";n==="plain"?r="pl":n==="phrase"?r="ph":n==="websearch"&&(r="w");const o=s===void 0?"":`(${s})`;return this.url.searchParams.append(e,`${r}fts${o}.${i}`),this}match(e){return Object.entries(e).forEach(([i,s])=>{this.url.searchParams.append(i,`eq.${s}`)}),this}not(e,i,s){return this.url.searchParams.append(e,`not.${i}.${s}`),this}or(e,{foreignTable:i,referencedTable:s=i}={}){const n=s?`${s}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,i,s){return this.url.searchParams.append(e,`${i}.${s}`),this}};ha.default=RS;var $S=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cc,"__esModule",{value:!0});const Gr=$S(ha);let LS=class{constructor(e,{headers:i={},schema:s,fetch:n}){this.url=e,this.headers=i,this.schema=s,this.fetch=n}select(e,{head:i=!1,count:s}={}){const n=i?"HEAD":"GET";let r=!1;const o=(e??"*").split("").map(a=>/\s/.test(a)&&!r?"":(a==='"'&&(r=!r),a)).join("");return this.url.searchParams.set("select",o),s&&(this.headers.Prefer=`count=${s}`),new Gr.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:i,defaultToNull:s=!0}={}){const n="POST",r=[];if(this.headers.Prefer&&r.push(this.headers.Prefer),i&&r.push(`count=${i}`),s||r.push("missing=default"),this.headers.Prefer=r.join(","),Array.isArray(e)){const o=e.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>0){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Gr.default({method:n,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:i,ignoreDuplicates:s=!1,count:n,defaultToNull:r=!0}={}){const o="POST",a=[`resolution=${s?"ignore":"merge"}-duplicates`];if(i!==void 0&&this.url.searchParams.set("on_conflict",i),this.headers.Prefer&&a.push(this.headers.Prefer),n&&a.push(`count=${n}`),r||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(e)){const l=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",c.join(","))}}return new Gr.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:i}={}){const s="PATCH",n=[];return this.headers.Prefer&&n.push(this.headers.Prefer),i&&n.push(`count=${i}`),this.headers.Prefer=n.join(","),new Gr.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){const i="DELETE",s=[];return e&&s.push(`count=${e}`),this.headers.Prefer&&s.unshift(this.headers.Prefer),this.headers.Prefer=s.join(","),new Gr.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Cc.default=LS;var Pc={},Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.version=void 0;Oc.version="0.0.0-automated";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.DEFAULT_HEADERS=void 0;const DS=Oc;Pc.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${DS.version}`};var _y=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hh,"__esModule",{value:!0});const FS=_y(Cc),NS=_y(ha),BS=Pc;let jS=class xy{constructor(e,{headers:i={},schema:s,fetch:n}={}){this.url=e,this.headers=Object.assign(Object.assign({},BS.DEFAULT_HEADERS),i),this.schemaName=s,this.fetch=n}from(e){const i=new URL(`${this.url}/${e}`);return new FS.default(i,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new xy(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,i={},{head:s=!1,get:n=!1,count:r}={}){let o;const a=new URL(`${this.url}/rpc/${e}`);let l;s||n?(o=s?"HEAD":"GET",Object.entries(i).filter(([d,u])=>u!==void 0).map(([d,u])=>[d,Array.isArray(u)?`{${u.join(",")}}`:`${u}`]).forEach(([d,u])=>{a.searchParams.append(d,u)})):(o="POST",l=i);const c=Object.assign({},this.headers);return r&&(c.Prefer=`count=${r}`),new NS.default({method:o,url:a,headers:c,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};Hh.default=jS;var Nr=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.PostgrestError=Gt.PostgrestBuilder=Gt.PostgrestTransformBuilder=Gt.PostgrestFilterBuilder=Gt.PostgrestQueryBuilder=Gt.PostgrestClient=void 0;const wy=Nr(Hh);Gt.PostgrestClient=wy.default;const ky=Nr(Cc);Gt.PostgrestQueryBuilder=ky.default;const Sy=Nr(ha);Gt.PostgrestFilterBuilder=Sy.default;const Cy=Nr(Ac);Gt.PostgrestTransformBuilder=Cy.default;const Ay=Nr(Tc);Gt.PostgrestBuilder=Ay.default;const Ty=Nr(Ec);Gt.PostgrestError=Ty.default;var zS=Gt.default={PostgrestClient:wy.default,PostgrestQueryBuilder:ky.default,PostgrestFilterBuilder:Sy.default,PostgrestTransformBuilder:Cy.default,PostgrestBuilder:Ay.default,PostgrestError:Ty.default};const{PostgrestClient:VS,PostgrestQueryBuilder:hF,PostgrestFilterBuilder:fF,PostgrestTransformBuilder:pF,PostgrestBuilder:gF,PostgrestError:mF}=zS;class US{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"&&process.versions&&process.versions.node){const i=parseInt(process.versions.node.split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: +import ws from "ws" +new RealtimeClient(url, { transport: ws })`}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let i=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(i+=` + +Suggested solution: ${e.workaround}`),new Error(i)}static createWebSocket(e,i){const s=this.getWebSocketConstructor();return new s(e,i)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const qS="2.15.1",HS=`realtime-js/${qS}`,WS="1.0.0",xu=1e4,KS=1e3,GS=100;var ko;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(ko||(ko={}));var lt;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(lt||(lt={}));var xi;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(xi||(xi={}));var wu;(function(t){t.websocket="websocket"})(wu||(wu={}));var Cn;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Cn||(Cn={}));class YS{constructor(){this.HEADER_LENGTH=1}decode(e,i){return e.constructor===ArrayBuffer?i(this._binaryDecode(e)):i(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const i=new DataView(e),s=new TextDecoder;return this._decodeBroadcast(e,i,s)}_decodeBroadcast(e,i,s){const n=i.getUint8(1),r=i.getUint8(2);let o=this.HEADER_LENGTH+2;const a=s.decode(e.slice(o,o+n));o=o+n;const l=s.decode(e.slice(o,o+r));o=o+r;const c=JSON.parse(s.decode(e.slice(o,e.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class Ey{constructor(e,i){this.callback=e,this.timerCalc=i,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=i}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ze;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(ze||(ze={}));const lg=(t,e,i={})=>{var s;const n=(s=i.skipTypes)!==null&&s!==void 0?s:[];return Object.keys(e).reduce((r,o)=>(r[o]=JS(o,t,e,n),r),{})},JS=(t,e,i,s)=>{const n=e.find(a=>a.name===t),r=n==null?void 0:n.type,o=i[t];return r&&!s.includes(r)?Py(r,o):ku(o)},Py=(t,e)=>{if(t.charAt(0)==="_"){const i=t.slice(1,t.length);return eC(e,i)}switch(t){case ze.bool:return XS(e);case ze.float4:case ze.float8:case ze.int2:case ze.int4:case ze.int8:case ze.numeric:case ze.oid:return QS(e);case ze.json:case ze.jsonb:return ZS(e);case ze.timestamp:return tC(e);case ze.abstime:case ze.date:case ze.daterange:case ze.int4range:case ze.int8range:case ze.money:case ze.reltime:case ze.text:case ze.time:case ze.timestamptz:case ze.timetz:case ze.tsrange:case ze.tstzrange:return ku(e);default:return ku(e)}},ku=t=>t,XS=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},QS=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},ZS=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},eC=(t,e)=>{if(typeof t!="string")return t;const i=t.length-1,s=t[i];if(t[0]==="{"&&s==="}"){let r;const o=t.slice(1,i);try{r=JSON.parse("["+o+"]")}catch{r=o?o.split(","):[]}return r.map(a=>Py(e,a))}return t},tC=t=>typeof t=="string"?t.replace(" ","T"):t,Oy=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class pd{constructor(e,i,s={},n=xu){this.channel=e,this.event=i,this.payload=s,this.timeout=n,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,i){var s;return this._hasReceived(e)&&i((s=this.receivedResp)===null||s===void 0?void 0:s.response),this.recHooks.push({status:e,callback:i}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=i=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=i,this._matchReceive(i)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,i){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:i})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:i}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(i))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var cg;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(cg||(cg={}));class So{constructor(e,i){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const s=(i==null?void 0:i.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(s.state,{},n=>{const{onJoin:r,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=So.syncState(this.state,n,r,o),this.pendingDiffs.forEach(l=>{this.state=So.syncDiff(this.state,l,r,o)}),this.pendingDiffs=[],a()}),this.channel._on(s.diff,{},n=>{const{onJoin:r,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(n):(this.state=So.syncDiff(this.state,n,r,o),a())}),this.onJoin((n,r,o)=>{this.channel._trigger("presence",{event:"join",key:n,currentPresences:r,newPresences:o})}),this.onLeave((n,r,o)=>{this.channel._trigger("presence",{event:"leave",key:n,currentPresences:r,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,i,s,n){const r=this.cloneDeep(e),o=this.transformState(i),a={},l={};return this.map(r,(c,d)=>{o[c]||(l[c]=d)}),this.map(o,(c,d)=>{const u=r[c];if(u){const h=d.map(m=>m.presence_ref),f=u.map(m=>m.presence_ref),p=d.filter(m=>f.indexOf(m.presence_ref)<0),g=u.filter(m=>h.indexOf(m.presence_ref)<0);p.length>0&&(a[c]=p),g.length>0&&(l[c]=g)}else a[c]=d}),this.syncDiff(r,{joins:a,leaves:l},s,n)}static syncDiff(e,i,s,n){const{joins:r,leaves:o}={joins:this.transformState(i.joins),leaves:this.transformState(i.leaves)};return s||(s=()=>{}),n||(n=()=>{}),this.map(r,(a,l)=>{var c;const d=(c=e[a])!==null&&c!==void 0?c:[];if(e[a]=this.cloneDeep(l),d.length>0){const u=e[a].map(f=>f.presence_ref),h=d.filter(f=>u.indexOf(f.presence_ref)<0);e[a].unshift(...h)}s(a,d,l)}),this.map(o,(a,l)=>{let c=e[a];if(!c)return;const d=l.map(u=>u.presence_ref);c=c.filter(u=>d.indexOf(u.presence_ref)<0),e[a]=c,n(a,c,l),c.length===0&&delete e[a]}),e}static map(e,i){return Object.getOwnPropertyNames(e).map(s=>i(s,e[s]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((i,s)=>{const n=e[s];return"metas"in n?i[s]=n.metas.map(r=>(r.presence_ref=r.phx_ref,delete r.phx_ref,delete r.phx_ref_prev,r)):i[s]=n,i},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var dg;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(dg||(dg={}));var Co;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Co||(Co={}));var os;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(os||(os={}));class Wh{constructor(e,i={config:{}},s){this.topic=e,this.params=i,this.socket=s,this.bindings={},this.state=lt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.timeout=this.socket.timeout,this.joinPush=new pd(this,xi.join,this.params,this.timeout),this.rejoinTimer=new Ey(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=lt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=lt.closed,this.socket._remove(this)}),this._onError(n=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,n),this.state=lt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=lt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",n=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,n),this.state=lt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(xi.reply,{},(n,r)=>{this._trigger(this._replyEventName(r),n)}),this.presence=new So(this),this.broadcastEndpointURL=Oy(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,i=this.timeout){var s,n;if(this.socket.isConnected()||this.socket.connect(),this.state==lt.closed){const{config:{broadcast:r,presence:o,private:a}}=this.params,l=(n=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(h=>h.filter))!==null&&n!==void 0?n:[],c=!!this.bindings[Co.PRESENCE]&&this.bindings[Co.PRESENCE].length>0,d={},u={broadcast:r,presence:Object.assign(Object.assign({},o),{enabled:c}),postgres_changes:l,private:a};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(h=>e==null?void 0:e(os.CHANNEL_ERROR,h)),this._onClose(()=>e==null?void 0:e(os.CLOSED)),this.updateJoinPayload(Object.assign({config:u},d)),this.joinedOnce=!0,this._rejoin(i),this.joinPush.receive("ok",async({postgres_changes:h})=>{var f;if(this.socket.setAuth(),h===void 0){e==null||e(os.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,g=(f=p==null?void 0:p.length)!==null&&f!==void 0?f:0,m=[];for(let y=0;y{this.state=lt.errored,e==null||e(os.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(os.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,i={}){return await this.send({type:"presence",event:"track",payload:e},i.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,i,s){return this.state===lt.joined&&e===Co.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,i,s)}async send(e,i={}){var s,n;if(!this._canPush()&&e.type==="broadcast"){const{event:r,payload:o}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:r,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(s=i.timeout)!==null&&s!==void 0?s:this.timeout);return await((n=c.body)===null||n===void 0?void 0:n.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(r=>{var o,a,l;const c=this._push(e.type,e,i.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&r("ok"),c.receive("ok",()=>r("ok")),c.receive("error",()=>r("error")),c.receive("timeout",()=>r("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=lt.leaving;const i=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(xi.close,"leave",this._joinRef())};this.joinPush.destroy();let s=null;return new Promise(n=>{s=new pd(this,xi.leave,{},e),s.receive("ok",()=>{i(),n("ok")}).receive("timeout",()=>{i(),n("timed out")}).receive("error",()=>{n("error")}),s.send(),this._canPush()||s.trigger("ok",{})}).finally(()=>{s==null||s.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=lt.closed,this.bindings={}}async _fetchWithTimeout(e,i,s){const n=new AbortController,r=setTimeout(()=>n.abort(),s),o=await this.socket.fetch(e,Object.assign(Object.assign({},i),{signal:n.signal}));return clearTimeout(r),o}_push(e,i,s=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let n=new pd(this,e,i,s);return this._canPush()?n.send():this._addToPushBuffer(n),n}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>GS){const i=this.pushBuffer.shift();i&&(i.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload))}}_onMessage(e,i,s){return i}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,i,s){var n,r;const o=e.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=xi;if(s&&[a,l,c,d].indexOf(o)>=0&&s!==this._joinRef())return;let h=this._onMessage(o,i,s);if(i&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(n=this.bindings.postgres_changes)===null||n===void 0||n.filter(f=>{var p,g,m;return((p=f.filter)===null||p===void 0?void 0:p.event)==="*"||((m=(g=f.filter)===null||g===void 0?void 0:g.event)===null||m===void 0?void 0:m.toLocaleLowerCase())===o}).map(f=>f.callback(h,s)):(r=this.bindings[o])===null||r===void 0||r.filter(f=>{var p,g,m,y,C,w;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in f){const A=f.id,x=(p=f.filter)===null||p===void 0?void 0:p.event;return A&&((g=i.ids)===null||g===void 0?void 0:g.includes(A))&&(x==="*"||(x==null?void 0:x.toLocaleLowerCase())===((m=i.data)===null||m===void 0?void 0:m.type.toLocaleLowerCase()))}else{const A=(C=(y=f==null?void 0:f.filter)===null||y===void 0?void 0:y.event)===null||C===void 0?void 0:C.toLocaleLowerCase();return A==="*"||A===((w=i==null?void 0:i.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===o}).map(f=>{if(typeof h=="object"&&"ids"in h){const p=h.data,{schema:g,table:m,commit_timestamp:y,type:C,errors:w}=p;h=Object.assign(Object.assign({},{schema:g,table:m,commit_timestamp:y,eventType:C,new:{},old:{},errors:w}),this._getPayloadRecords(p))}f.callback(h,s)})}_isClosed(){return this.state===lt.closed}_isJoined(){return this.state===lt.joined}_isJoining(){return this.state===lt.joining}_isLeaving(){return this.state===lt.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,i,s){const n=e.toLocaleLowerCase(),r={type:n,filter:i,callback:s};return this.bindings[n]?this.bindings[n].push(r):this.bindings[n]=[r],this}_off(e,i){const s=e.toLocaleLowerCase();return this.bindings[s]&&(this.bindings[s]=this.bindings[s].filter(n=>{var r;return!(((r=n.type)===null||r===void 0?void 0:r.toLocaleLowerCase())===s&&Wh.isEqual(n.filter,i))})),this}static isEqual(e,i){if(Object.keys(e).length!==Object.keys(i).length)return!1;for(const s in e)if(e[s]!==i[s])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(xi.close,{},e)}_onError(e){this._on(xi.error,{},i=>e(i))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=lt.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const i={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(i.new=lg(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(i.old=lg(e.columns,e.old_record)),i}}const ug=()=>{},Ia={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},iC=[1e3,2e3,5e3,1e4],sC=1e4,nC=` + addEventListener("message", (e) => { + if (e.data.event === "start") { + setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); + } + });`;class rC{constructor(e,i){var s;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=xu,this.transport=null,this.heartbeatIntervalMs=Ia.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=ug,this.ref=0,this.reconnectTimer=null,this.logger=ug,this.conn=null,this.sendBuffer=[],this.serializer=new YS,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=n=>{let r;return n?r=n:typeof fetch>"u"?r=(...o)=>ua(async()=>{const{default:a}=await Promise.resolve().then(()=>Fr);return{default:a}},void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):r=fetch,(...o)=>r(...o)},!(!((s=i==null?void 0:i.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey,this.endPoint=`${e}/${wu.websocket}`,this.httpEndpoint=Oy(e),this._initializeOptions(i),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(i==null?void 0:i.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=US.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const i=e.message;throw i.includes("Node.js")?new Error(`${i} + +To use Realtime in Node.js, you need to provide a WebSocket implementation: + +Option 1: Use Node.js 22+ which has native WebSocket support +Option 2: Install and provide the "ws" package: + + npm install ws + + import ws from "ws" + const client = new RealtimeClient(url, { + ...options, + transport: ws + })`):new Error(`WebSocket not available: ${i}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:WS}))}disconnect(e,i){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const s=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(s),this._setConnectionState("disconnected")},e?this.conn.close(e,i??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const i=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),i}async removeAllChannels(){const e=await Promise.all(this.channels.map(i=>i.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,i,s){this.logger(e,i,s)}connectionState(){switch(this.conn&&this.conn.readyState){case ko.connecting:return Cn.Connecting;case ko.open:return Cn.Open;case ko.closing:return Cn.Closing;default:return Cn.Closed}}isConnected(){return this.connectionState()===Cn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,i={config:{}}){const s=`realtime:${e}`,n=this.getChannels().find(r=>r.topic===s);if(n)return n;{const r=new Wh(`realtime:${e}`,i,this);return this.channels.push(r),r}}push(e){const{topic:i,event:s,payload:n,ref:r}=e,o=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${i} ${s} (${r})`,n),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(KS,"heartbeat timeout"),setTimeout(()=>{var i;this.isConnected()||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout()},Ia.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let i=this.channels.find(s=>s.topic===e&&(s._isJoined()||s._isJoining()));i&&(this.log("transport",`leaving duplicate topic "${e}"`),i.unsubscribe())}_remove(e){this.channels=this.channels.filter(i=>i.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,i=>{i.topic==="phoenix"&&i.event==="phx_reply"&&this.heartbeatCallback(i.payload.status==="ok"?"ok":"error"),i.ref&&i.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:s,event:n,payload:r,ref:o}=i,a=o?`(${o})`:"",l=r.status||"";this.log("receive",`${l} ${s} ${n} ${a}`.trim(),r),this.channels.filter(c=>c._isMember(s)).forEach(c=>c._trigger(n,r,o)),this._triggerStateCallbacks("message",i)})}_clearTimer(e){var i;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((i=this.reconnectTimer)===null||i===void 0||i.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this.workerRef.terminate()},this.workerRef.onmessage=i=>{i.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var i;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(xi.error))}_appendParams(e,i){if(Object.keys(i).length===0)return e;const s=e.match(/\?/)?"&":"?",n=new URLSearchParams(i);return`${e}${s}${n}`}_workerObjectUrl(e){let i;if(e)i=e;else{const s=new Blob([nC],{type:"application/javascript"});i=URL.createObjectURL(s)}return i}_setConnectionState(e,i=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=i)}async _performAuth(e=null){let i;e?i=e:this.accessToken?i=await this.accessToken():i=this.accessTokenValue,this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(s=>{const n={access_token:i,version:HS};i&&s.updateJoinPayload(n),s.joinedOnce&&s._isJoined()&&s._push(xi.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(i=>{this.log("error",`error setting auth in ${e}`,i)})}_triggerStateCallbacks(e,i){try{this.stateChangeCallbacks[e].forEach(s=>{try{s(i)}catch(n){this.log("error",`error in ${e} callback`,n)}})}catch(s){this.log("error",`error triggering ${e} callbacks`,s)}}_setupReconnectionTimer(){this.reconnectTimer=new Ey(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Ia.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var i,s,n,r,o,a,l,c;if(this.transport=(i=e==null?void 0:e.transport)!==null&&i!==void 0?i:null,this.timeout=(s=e==null?void 0:e.timeout)!==null&&s!==void 0?s:xu,this.heartbeatIntervalMs=(n=e==null?void 0:e.heartbeatIntervalMs)!==null&&n!==void 0?n:Ia.HEARTBEAT_INTERVAL,this.worker=(r=e==null?void 0:e.worker)!==null&&r!==void 0?r:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(a=e==null?void 0:e.reconnectAfterMs)!==null&&a!==void 0?a:d=>iC[d-1]||sC,this.encode=(l=e==null?void 0:e.encode)!==null&&l!==void 0?l:(d,u)=>u(JSON.stringify(d)),this.decode=(c=e==null?void 0:e.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}class Kh extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function ft(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class oC extends Kh{constructor(e,i,s){super(e),this.name="StorageApiError",this.status=i,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Su extends Kh{constructor(e,i){super(e),this.name="StorageUnknownError",this.originalError=i}}var aC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const Iy=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>ua(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)},lC=()=>aC(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield ua(()=>Promise.resolve().then(()=>Fr),void 0)).Response:Response}),Cu=t=>{if(Array.isArray(t))return t.map(i=>Cu(i));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([i,s])=>{const n=i.replace(/([-_][a-z])/gi,r=>r.toUpperCase().replace(/[-_]/g,""));e[n]=Cu(s)}),e},cC=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var qn=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const gd=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),dC=(t,e,i)=>qn(void 0,void 0,void 0,function*(){const s=yield lC();t instanceof s&&!(i!=null&&i.noResolveJson)?t.json().then(n=>{const r=t.status||500,o=(n==null?void 0:n.statusCode)||r+"";e(new oC(gd(n),r,o))}).catch(n=>{e(new Su(gd(n),n))}):e(new Su(gd(t),t))}),uC=(t,e,i,s)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!s?n:(cC(s)?(n.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),n.body=JSON.stringify(s)):n.body=s,e!=null&&e.duplex&&(n.duplex=e.duplex),Object.assign(Object.assign({},n),i))};function fa(t,e,i,s,n,r){return qn(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(i,uC(e,s,n,r)).then(l=>{if(!l.ok)throw l;return s!=null&&s.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>dC(l,a,s))})})}function Bl(t,e,i,s){return qn(this,void 0,void 0,function*(){return fa(t,"GET",e,i,s)})}function as(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return fa(t,"POST",e,s,n,i)})}function Au(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return fa(t,"PUT",e,s,n,i)})}function hC(t,e,i,s){return qn(this,void 0,void 0,function*(){return fa(t,"HEAD",e,Object.assign(Object.assign({},i),{noResolveJson:!0}),s)})}function My(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return fa(t,"DELETE",e,s,n,i)})}var qt=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const fC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},hg={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class pC{constructor(e,i={},s,n){this.url=e,this.headers=i,this.bucketId=s,this.fetch=Iy(n)}uploadOrUpdate(e,i,s,n){return qt(this,void 0,void 0,function*(){try{let r;const o=Object.assign(Object.assign({},hg),n);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&s instanceof Blob?(r=new FormData,r.append("cacheControl",o.cacheControl),l&&r.append("metadata",this.encodeMetadata(l)),r.append("",s)):typeof FormData<"u"&&s instanceof FormData?(r=s,r.append("cacheControl",o.cacheControl),l&&r.append("metadata",this.encodeMetadata(l))):(r=s,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),n!=null&&n.headers&&(a=Object.assign(Object.assign({},a),n.headers));const c=this._removeEmptyFolders(i),d=this._getFinalPath(c),u=yield(e=="PUT"?Au:as)(this.fetch,`${this.url}/object/${d}`,r,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:u.Id,fullPath:u.Key},error:null}}catch(r){if(ft(r))return{data:null,error:r};throw r}})}upload(e,i,s){return qt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,i,s)})}uploadToSignedUrl(e,i,s,n){return qt(this,void 0,void 0,function*(){const r=this._removeEmptyFolders(e),o=this._getFinalPath(r),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",i);try{let l;const c=Object.assign({upsert:hg.upsert},n),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&s instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",s)):typeof FormData<"u"&&s instanceof FormData?(l=s,l.append("cacheControl",c.cacheControl)):(l=s,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const u=yield Au(this.fetch,a.toString(),l,{headers:d});return{data:{path:r,fullPath:u.Key},error:null}}catch(l){if(ft(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,i){return qt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e);const n=Object.assign({},this.headers);i!=null&&i.upsert&&(n["x-upsert"]="true");const r=yield as(this.fetch,`${this.url}/object/upload/sign/${s}`,{},{headers:n}),o=new URL(this.url+r.url),a=o.searchParams.get("token");if(!a)throw new Kh("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}update(e,i,s){return qt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,i,s)})}move(e,i,s){return qt(this,void 0,void 0,function*(){try{return{data:yield as(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:i,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers}),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}copy(e,i,s){return qt(this,void 0,void 0,function*(){try{return{data:{path:(yield as(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:i,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers})).Key},error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}createSignedUrl(e,i,s){return qt(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e),r=yield as(this.fetch,`${this.url}/object/sign/${n}`,Object.assign({expiresIn:i},s!=null&&s.transform?{transform:s.transform}:{}),{headers:this.headers});const o=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return r={signedUrl:encodeURI(`${this.url}${r.signedURL}${o}`)},{data:r,error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}createSignedUrls(e,i,s){return qt(this,void 0,void 0,function*(){try{const n=yield as(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:i,paths:e},{headers:this.headers}),r=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return{data:n.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${r}`):null})),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}download(e,i){return qt(this,void 0,void 0,function*(){const n=typeof(i==null?void 0:i.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((i==null?void 0:i.transform)||{}),o=r?`?${r}`:"";try{const a=this._getFinalPath(e);return{data:yield(yield Bl(this.fetch,`${this.url}/${n}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(ft(a))return{data:null,error:a};throw a}})}info(e){return qt(this,void 0,void 0,function*(){const i=this._getFinalPath(e);try{const s=yield Bl(this.fetch,`${this.url}/object/info/${i}`,{headers:this.headers});return{data:Cu(s),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}exists(e){return qt(this,void 0,void 0,function*(){const i=this._getFinalPath(e);try{return yield hC(this.fetch,`${this.url}/object/${i}`,{headers:this.headers}),{data:!0,error:null}}catch(s){if(ft(s)&&s instanceof Su){const n=s.originalError;if([400,404].includes(n==null?void 0:n.status))return{data:!1,error:s}}throw s}})}getPublicUrl(e,i){const s=this._getFinalPath(e),n=[],r=i!=null&&i.download?`download=${i.download===!0?"":i.download}`:"";r!==""&&n.push(r);const a=typeof(i==null?void 0:i.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((i==null?void 0:i.transform)||{});l!==""&&n.push(l);let c=n.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${s}${c}`)}}}remove(e){return qt(this,void 0,void 0,function*(){try{return{data:yield My(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}list(e,i,s){return qt(this,void 0,void 0,function*(){try{const n=Object.assign(Object.assign(Object.assign({},fC),i),{prefix:e||""});return{data:yield as(this.fetch,`${this.url}/object/list/${this.bucketId}`,n,{headers:this.headers},s),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const i=[];return e.width&&i.push(`width=${e.width}`),e.height&&i.push(`height=${e.height}`),e.resize&&i.push(`resize=${e.resize}`),e.format&&i.push(`format=${e.format}`),e.quality&&i.push(`quality=${e.quality}`),i.join("&")}}const gC="2.10.5",mC={"X-Client-Info":`storage-js/${gC}`};var Jn=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class vC{constructor(e,i={},s,n){const r=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(r.hostname)&&!r.hostname.includes("storage.supabase.")&&(r.hostname=r.hostname.replace("supabase.","storage.supabase.")),this.url=r.href,this.headers=Object.assign(Object.assign({},mC),i),this.fetch=Iy(s)}listBuckets(){return Jn(this,void 0,void 0,function*(){try{return{data:yield Bl(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(ft(e))return{data:null,error:e};throw e}})}getBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield Bl(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}createBucket(e,i={public:!1}){return Jn(this,void 0,void 0,function*(){try{return{data:yield as(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:i.type,public:i.public,file_size_limit:i.fileSizeLimit,allowed_mime_types:i.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}updateBucket(e,i){return Jn(this,void 0,void 0,function*(){try{return{data:yield Au(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:i.public,file_size_limit:i.fileSizeLimit,allowed_mime_types:i.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}emptyBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield as(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}deleteBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield My(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}}class bC extends vC{constructor(e,i={},s,n){super(e,i,s,n)}from(e){return new pC(this.url,this.headers,e,this.fetch)}}const yC="2.55.0";let ro="";typeof Deno<"u"?ro="deno":typeof document<"u"?ro="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ro="react-native":ro="node";const _C={"X-Client-Info":`supabase-js-${ro}/${yC}`},xC={headers:_C},wC={schema:"public"},kC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},SC={};var CC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const AC=t=>{let e;return t?e=t:typeof fetch>"u"?e=vy:e=fetch,(...i)=>e(...i)},TC=()=>typeof Headers>"u"?by:Headers,EC=(t,e,i)=>{const s=AC(i),n=TC();return(r,o)=>CC(void 0,void 0,void 0,function*(){var a;const l=(a=yield e())!==null&&a!==void 0?a:t;let c=new n(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",t),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),s(r,Object.assign(Object.assign({},o),{headers:c}))})};var PC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};function OC(t){return t.endsWith("/")?t:t+"/"}function IC(t,e){var i,s;const{db:n,auth:r,realtime:o,global:a}=t,{db:l,auth:c,realtime:d,global:u}=e,h={db:Object.assign(Object.assign({},l),n),auth:Object.assign(Object.assign({},c),r),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},u),a),{headers:Object.assign(Object.assign({},(i=u==null?void 0:u.headers)!==null&&i!==void 0?i:{}),(s=a==null?void 0:a.headers)!==null&&s!==void 0?s:{})}),accessToken:()=>PC(this,void 0,void 0,function*(){return""})};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}const Ry="2.71.1",lr=30*1e3,Tu=3,md=Tu*lr,MC="http://localhost:9999",RC="supabase.auth.token",$C={"X-Client-Info":`gotrue-js/${Ry}`},Eu="X-Supabase-Api-Version",$y={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},LC=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,DC=10*60*1e3;class Gh extends Error{constructor(e,i,s){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=s}}function he(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class FC extends Gh{constructor(e,i,s){super(e,i,s),this.name="AuthApiError",this.status=i,this.code=s}}function NC(t){return he(t)&&t.name==="AuthApiError"}class Ly extends Gh{constructor(e,i){super(e),this.name="AuthUnknownError",this.originalError=i}}class en extends Gh{constructor(e,i,s,n){super(e,s,n),this.name=i,this.status=s}}class Os extends en{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function BC(t){return he(t)&&t.name==="AuthSessionMissingError"}class Ma extends en{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ra extends en{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class $a extends en{constructor(e,i=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function jC(t){return he(t)&&t.name==="AuthImplicitGrantRedirectError"}class fg extends en{constructor(e,i=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Pu extends en{constructor(e,i){super(e,"AuthRetryableFetchError",i,void 0)}}function vd(t){return he(t)&&t.name==="AuthRetryableFetchError"}class pg extends en{constructor(e,i,s){super(e,"AuthWeakPasswordError",i,"weak_password"),this.reasons=s}}class Ou extends en{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const jl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),gg=` +\r=`.split(""),zC=(()=>{const t=new Array(128);for(let e=0;e=6;){const s=e.queue>>e.queuedBits-6&63;i(jl[s]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;i(jl[s]),e.queuedBits-=6}}function Dy(t,e,i){const s=zC[t];if(s>-1)for(e.queue=e.queue<<6|s,e.queuedBits+=6;e.queuedBits>=8;)i(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function vg(t){const e=[],i=o=>{e.push(String.fromCodePoint(o))},s={utf8seq:0,codepoint:0},n={queue:0,queuedBits:0},r=o=>{qC(o,s,i)};for(let o=0;o>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function UC(t,e){for(let i=0;i55295&&s<=56319){const n=(s-55296)*1024&65535;s=(t.charCodeAt(i+1)-56320&65535|n)+65536,i+=1}VC(s,e)}}function qC(t,e,i){if(e.utf8seq===0){if(t<=127){i(t);return}for(let s=1;s<6;s+=1)if(!(t>>7-s&1)){e.utf8seq=s;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&i(e.codepoint)}}function HC(t){const e=[],i={queue:0,queuedBits:0},s=n=>{e.push(n)};for(let n=0;ne.push(i)),new Uint8Array(e)}function KC(t){const e=[],i={queue:0,queuedBits:0},s=n=>{e.push(n)};return t.forEach(n=>mg(n,i,s)),mg(null,i,s),e.join("")}function GC(t){return Math.round(Date.now()/1e3)+t}function YC(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const _i=()=>typeof window<"u"&&typeof document<"u",un={tested:!1,writable:!1},Fy=()=>{if(!_i())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(un.tested)return un.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),un.tested=!0,un.writable=!0}catch{un.tested=!0,un.writable=!1}return un.writable};function JC(t){const e={},i=new URL(t);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEach((n,r)=>{e[r]=n})}catch{}return i.searchParams.forEach((s,n)=>{e[n]=s}),e}const Ny=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>ua(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)},XC=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",cr=async(t,e,i)=>{await t.setItem(e,JSON.stringify(i))},hn=async(t,e)=>{const i=await t.getItem(e);if(!i)return null;try{return JSON.parse(i)}catch{return i}},As=async(t,e)=>{await t.removeItem(e)};class Ic{constructor(){this.promise=new Ic.promiseConstructor((e,i)=>{this.resolve=e,this.reject=i})}}Ic.promiseConstructor=Promise;function bd(t){const e=t.split(".");if(e.length!==3)throw new Ou("Invalid JWT structure");for(let s=0;s{setTimeout(()=>e(null),t)})}function ZC(t,e){return new Promise((s,n)=>{(async()=>{for(let r=0;r<1/0;r++)try{const o=await t(r);if(!e(r,null,o)){s(o);return}}catch(o){if(!e(r,o)){n(o);return}}})()})}function eA(t){return("0"+t.toString(16)).substr(-2)}function tA(){const e=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=i.length;let n="";for(let r=0;r<56;r++)n+=i.charAt(Math.floor(Math.random()*s));return n}return crypto.getRandomValues(e),Array.from(e,eA).join("")}async function iA(t){const i=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",i),n=new Uint8Array(s);return Array.from(n).map(r=>String.fromCharCode(r)).join("")}async function sA(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const i=await iA(t);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Xn(t,e,i=!1){const s=tA();let n=s;i&&(n+="/PASSWORD_RECOVERY"),await cr(t,`${e}-code-verifier`,n);const r=await sA(s);return[r,s===r?"plain":"s256"]}const nA=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function rA(t){const e=t.headers.get(Eu);if(!e||!e.match(nA))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function oA(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function aA(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const lA=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Qn(t){if(!lA.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function yd(){const t={};return new Proxy(t,{get:(e,i)=>{if(i==="__isUserNotAvailableProxy")return!0;if(typeof i=="symbol"){const s=i.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function bg(t){return JSON.parse(JSON.stringify(t))}var cA=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);nt.msg||t.message||t.error_description||t.error||JSON.stringify(t),dA=[502,503,504];async function yg(t){var e;if(!XC(t))throw new Pu(_n(t),0);if(dA.includes(t.status))throw new Pu(_n(t),t.status);let i;try{i=await t.json()}catch(r){throw new Ly(_n(r),r)}let s;const n=rA(t);if(n&&n.getTime()>=$y["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?s=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(s=i.error_code),s){if(s==="weak_password")throw new pg(_n(i),t.status,((e=i.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(s==="session_not_found")throw new Os}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((r,o)=>r&&typeof o=="string",!0))throw new pg(_n(i),t.status,i.weak_password.reasons);throw new FC(_n(i),t.status||500,s)}const uA=(t,e,i,s)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?n:(n.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),n.body=JSON.stringify(s),Object.assign(Object.assign({},n),i))};async function be(t,e,i,s){var n;const r=Object.assign({},s==null?void 0:s.headers);r[Eu]||(r[Eu]=$y["2024-01-01"].name),s!=null&&s.jwt&&(r.Authorization=`Bearer ${s.jwt}`);const o=(n=s==null?void 0:s.query)!==null&&n!==void 0?n:{};s!=null&&s.redirectTo&&(o.redirect_to=s.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await hA(t,e,i+a,{headers:r,noResolveJson:s==null?void 0:s.noResolveJson},{},s==null?void 0:s.body);return s!=null&&s.xform?s==null?void 0:s.xform(l):{data:Object.assign({},l),error:null}}async function hA(t,e,i,s,n,r){const o=uA(e,s,n,r);let a;try{a=await t(i,Object.assign({},o))}catch(l){throw console.error(l),new Pu(_n(l),0)}if(a.ok||await yg(a),s!=null&&s.noResolveJson)return a;try{return await a.json()}catch(l){await yg(l)}}function ts(t){var e;let i=null;mA(t)&&(i=Object.assign({},t),t.expires_at||(i.expires_at=GC(t.expires_in)));const s=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:i,user:s},error:null}}function _g(t){const e=ts(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((i,s)=>i&&typeof s=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Ns(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function fA(t){return{data:t,error:null}}function pA(t){const{action_link:e,email_otp:i,hashed_token:s,redirect_to:n,verification_type:r}=t,o=cA(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:i,hashed_token:s,redirect_to:n,verification_type:r},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function gA(t){return t}function mA(t){return t.access_token&&t.refresh_token&&t.expires_in}const _d=["global","local","others"];var vA=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n0&&(f.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),m=JSON.parse(p.split(";")[1].split("=")[1]);c[`${m}Page`]=g}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},u),c),error:null}}catch(c){if(he(c))return{data:{users:[]},error:c};throw c}}async getUserById(e){Qn(e);try{return await be(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Ns})}catch(i){if(he(i))return{data:{user:null},error:i};throw i}}async updateUserById(e,i){Qn(e);try{return await be(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:i,headers:this.headers,xform:Ns})}catch(s){if(he(s))return{data:{user:null},error:s};throw s}}async deleteUser(e,i=!1){Qn(e);try{return await be(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:i},xform:Ns})}catch(s){if(he(s))return{data:{user:null},error:s};throw s}}async _listFactors(e){Qn(e.userId);try{const{data:i,error:s}=await be(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:n=>({data:{factors:n},error:null})});return{data:i,error:s}}catch(i){if(he(i))return{data:null,error:i};throw i}}async _deleteFactor(e){Qn(e.userId),Qn(e.id);try{return{data:await be(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(i){if(he(i))return{data:null,error:i};throw i}}}function xg(t={}){return{getItem:e=>t[e]||null,setItem:(e,i)=>{t[e]=i},removeItem:e=>{delete t[e]}}}function yA(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Zn={debug:!!(globalThis&&Fy()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class By extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class _A extends By{}async function xA(t,e,i){Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const s=new globalThis.AbortController;return e>0&&setTimeout(()=>{s.abort(),Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:s.signal},async n=>{if(n){Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,n.name);try{return await i()}finally{Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,n.name)}}else{if(e===0)throw Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new _A(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Zn.debug)try{const r=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(r,null," "))}catch(r){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",r)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await i()}}))}yA();const wA={url:MC,storageKey:RC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:$C,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function wg(t,e,i){return await i()}const er={};class Yo{constructor(e){var i,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Yo.nextInstanceID,Yo.nextInstanceID+=1,this.instanceID>0&&_i()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const n=Object.assign(Object.assign({},wA),e);if(this.logDebugMessages=!!n.debug,typeof n.debug=="function"&&(this.logger=n.debug),this.persistSession=n.persistSession,this.storageKey=n.storageKey,this.autoRefreshToken=n.autoRefreshToken,this.admin=new bA({url:n.url,headers:n.headers,fetch:n.fetch}),this.url=n.url,this.headers=n.headers,this.fetch=Ny(n.fetch),this.lock=n.lock||wg,this.detectSessionInUrl=n.detectSessionInUrl,this.flowType=n.flowType,this.hasCustomAuthorizationHeader=n.hasCustomAuthorizationHeader,n.lock?this.lock=n.lock:_i()&&(!((i=globalThis==null?void 0:globalThis.navigator)===null||i===void 0)&&i.locks)?this.lock=xA:this.lock=wg,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(n.storage?this.storage=n.storage:Fy()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=xg(this.memoryStorage)),n.userStorage&&(this.userStorage=n.userStorage)):(this.memoryStorage={},this.storage=xg(this.memoryStorage)),_i()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(r){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",r)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async r=>{this._debug("received broadcast notification from other tab or client",r),await this._notifyAllSubscribers(r.data.event,r.data.session,!1)})}this.initialize()}get jwks(){var e,i;return(i=(e=er[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(e){er[this.storageKey]=Object.assign(Object.assign({},er[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,i;return(i=(e=er[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){er[this.storageKey]=Object.assign(Object.assign({},er[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Ry}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const i=JC(window.location.href);let s="none";if(this._isImplicitGrantCallback(i)?s="implicit":await this._isPKCECallback(i)&&(s="pkce"),_i()&&this.detectSessionInUrl&&s!=="none"){const{data:n,error:r}=await this._getSessionFromURL(i,s);if(r){if(this._debug("#_initialize()","error detecting session from URL",r),jC(r)){const l=(e=r.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:r}}return await this._removeSession(),{error:r}}const{session:o,redirectType:a}=n;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return he(i)?{error:i}:{error:new Ly("Unexpected error during initialization",i)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var i,s,n;try{const r=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(i=e==null?void 0:e.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.captchaToken}},xform:ts}),{data:o,error:a}=r;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(r){if(he(r))return{data:{user:null,session:null},error:r};throw r}}async signUp(e){var i,s,n;try{let r;if("email"in e){const{email:d,password:u,options:h}=e;let f=null,p=null;this.flowType==="pkce"&&([f,p]=await Xn(this.storage,this.storageKey)),r=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:u,data:(i=h==null?void 0:h.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:p},xform:ts})}else if("phone"in e){const{phone:d,password:u,options:h}=e;r=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:u,data:(s=h==null?void 0:h.data)!==null&&s!==void 0?s:{},channel:(n=h==null?void 0:h.channel)!==null&&n!==void 0?n:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:ts})}else throw new Ra("You must provide either an email or phone number and a password");const{data:o,error:a}=r;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(r){if(he(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithPassword(e){try{let i;if("email"in e){const{email:r,password:o,options:a}=e;i=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:r,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_g})}else if("phone"in e){const{phone:r,password:o,options:a}=e;i=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:r,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_g})}else throw new Ra("You must provide either an email or phone number and a password");const{data:s,error:n}=i;return n?{data:{user:null,session:null},error:n}:!s||!s.session||!s.user?{data:{user:null,session:null},error:new Ma}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:n})}catch(i){if(he(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithOAuth(e){var i,s,n,r;return await this._handleProviderSignIn(e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(s=e.options)===null||s===void 0?void 0:s.scopes,queryParams:(n=e.options)===null||n===void 0?void 0:n.queryParams,skipBrowserRedirect:(r=e.options)===null||r===void 0?void 0:r.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:i}=e;if(i==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}async signInWithSolana(e){var i,s,n,r,o,a,l,c,d,u,h,f;let p,g;if("message"in e)p=e.message,g=e.signature;else{const{chain:m,wallet:y,statement:C,options:w}=e;let A;if(_i())if(typeof y=="object")A=y;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))A=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");A=y}const x=new URL((i=w==null?void 0:w.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in A&&A.signIn){const E=await A.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:x.host,uri:x.href}),C?{statement:C}:null));let T;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")T=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)T=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)p=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),g=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in A)||typeof A.signMessage!="function"||!("publicKey"in A)||typeof A!="object"||!A.publicKey||!("toBase58"in A.publicKey)||typeof A.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");p=[`${x.host} wants you to sign in with your Solana account:`,A.publicKey.toBase58(),...C?["",C,""]:[""],"Version: 1",`URI: ${x.href}`,`Issued At: ${(n=(s=w==null?void 0:w.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&n!==void 0?n:new Date().toISOString()}`,...!((r=w==null?void 0:w.signInWithSolana)===null||r===void 0)&&r.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((u=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||u===void 0)&&u.length?["Resources",...w.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` +`);const E=await A.signMessage(new TextEncoder().encode(p),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:m,error:y}=await be(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:KC(g)},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:ts});if(y)throw y;return!m||!m.session||!m.user?{data:{user:null,session:null},error:new Ma}:(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),{data:Object.assign({},m),error:y})}catch(m){if(he(m))return{data:{user:null,session:null},error:m};throw m}}async _exchangeCodeForSession(e){const i=await hn(this.storage,`${this.storageKey}-code-verifier`),[s,n]=(i??"").split("/");try{const{data:r,error:o}=await be(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:s},xform:ts});if(await As(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!r||!r.session||!r.user?{data:{user:null,session:null,redirectType:null},error:new Ma}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign(Object.assign({},r),{redirectType:n??null}),error:o})}catch(r){if(he(r))return{data:{user:null,session:null,redirectType:null},error:r};throw r}}async signInWithIdToken(e){try{const{options:i,provider:s,token:n,access_token:r,nonce:o}=e,a=await be(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:n,access_token:r,nonce:o,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:ts}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Ma}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(i){if(he(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithOtp(e){var i,s,n,r,o;try{if("email"in e){const{email:a,options:l}=e;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await Xn(this.storage,this.storageKey));const{error:u}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:u}}if("phone"in e){const{phone:a,options:l}=e,{data:c,error:d}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d}}throw new Ra("You must provide either an email or phone number.")}catch(a){if(he(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var i,s;try{let n,r;"options"in e&&(n=(i=e.options)===null||i===void 0?void 0:i.redirectTo,r=(s=e.options)===null||s===void 0?void 0:s.captchaToken);const{data:o,error:a}=await be(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:r}}),redirectTo:n,xform:ts});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(n){if(he(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithSSO(e){var i,s,n;try{let r=null,o=null;return this.flowType==="pkce"&&([r,o]=await Xn(this.storage,this.storageKey)),await be(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(s=(i=e.options)===null||i===void 0?void 0:i.redirectTo)!==null&&s!==void 0?s:void 0}),!((n=e==null?void 0:e.options)===null||n===void 0)&&n.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:r,code_challenge_method:o}),headers:this.headers,xform:fA})}catch(r){if(he(r))return{data:null,error:r};throw r}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:i},error:s}=e;if(s)throw s;if(!i)throw new Os;const{error:n}=await be(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return{data:{user:null,session:null},error:n}})}catch(e){if(he(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const i=`${this.url}/resend`;if("email"in e){const{email:s,type:n,options:r}=e,{error:o}=await be(this.fetch,"POST",i,{headers:this.headers,body:{email:s,type:n,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},redirectTo:r==null?void 0:r.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:s,type:n,options:r}=e,{data:o,error:a}=await be(this.fetch,"POST",i,{headers:this.headers,body:{phone:s,type:n,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Ra("You must provide either an email or phone number and a type")}catch(i){if(he(i))return{data:{user:null,session:null},error:i};throw i}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async i=>i))}async _acquireLock(e,i){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await s,await i()))();return this.pendingInLock.push((async()=>{try{await n}catch{}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=i();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const n=[...this.pendingInLock];await Promise.all(n),this.pendingInLock.splice(0,n.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await e(i)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const i=await hn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?e=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const s=e.expires_at?e.expires_at*1e3-Date.now()(!o&&c==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,c,d))})}return{data:{session:e},error:null}}const{session:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?{data:{session:null},error:r}:{data:{session:n},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Ns}):await this._useSession(async i=>{var s,n,r;const{data:o,error:a}=i;if(a)throw a;return!(!((s=o.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Os}:await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(r=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&r!==void 0?r:void 0,xform:Ns})})}catch(i){if(he(i))return BC(i)&&(await this._removeSession(),await As(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:i};throw i}}async updateUser(e,i={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,i))}async _updateUser(e,i={}){try{return await this._useSession(async s=>{const{data:n,error:r}=s;if(r)throw r;if(!n.session)throw new Os;const o=n.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Xn(this.storage,this.storageKey));const{data:c,error:d}=await be(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i==null?void 0:i.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Ns});if(d)throw d;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(s){if(he(s))return{data:{user:null},error:s};throw s}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Os;const i=Date.now()/1e3;let s=i,n=!0,r=null;const{payload:o}=bd(e.access_token);if(o.exp&&(s=o.exp,n=s<=i),n){const{session:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};r=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;r={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:s-i,expires_at:s},await this._saveSession(r),await this._notifyAllSubscribers("SIGNED_IN",r)}return{data:{user:r.user,session:r},error:null}}catch(i){if(he(i))return{data:{session:null,user:null},error:i};throw i}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async i=>{var s;if(!e){const{data:o,error:a}=i;if(a)throw a;e=(s=o.session)!==null&&s!==void 0?s:void 0}if(!(e!=null&&e.refresh_token))throw new Os;const{session:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?{data:{user:null,session:null},error:r}:n?{data:{user:n.user,session:n},error:null}:{data:{user:null,session:null},error:null}})}catch(i){if(he(i))return{data:{user:null,session:null},error:i};throw i}}async _getSessionFromURL(e,i){try{if(!_i())throw new $a("No browser detected.");if(e.error||e.error_description||e.error_code)throw new $a(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new fg("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new $a("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new fg("No code detected.");const{data:C,error:w}=await this._exchangeCodeForSession(e.code);if(w)throw w;const A=new URL(window.location.href);return A.searchParams.delete("code"),window.history.replaceState(window.history.state,"",A.toString()),{data:{session:C.session,redirectType:null},error:null}}const{provider_token:s,provider_refresh_token:n,access_token:r,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=e;if(!r||!a||!o||!c)throw new $a("No session defined in URL");const d=Math.round(Date.now()/1e3),u=parseInt(a);let h=d+u;l&&(h=parseInt(l));const f=h-d;f*1e3<=lr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${u}s`);const p=h-u;d-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,h,d):d-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,h,d);const{data:g,error:m}=await this._getUser(r);if(m)throw m;const y={provider_token:s,provider_refresh_token:n,access_token:r,expires_in:u,expires_at:h,refresh_token:o,token_type:c,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:e.type},error:null}}catch(s){if(he(s))return{data:{session:null,redirectType:null},error:s};throw s}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const i=await hn(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&i)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async i=>{var s;const{data:n,error:r}=i;if(r)return{error:r};const o=(s=n.session)===null||s===void 0?void 0:s.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(NC(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await As(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const i=YC(),s={id:i,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,s),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(i)})))(),{data:{subscription:s}}}async _emitInitialSession(e){return await this._useSession(async i=>{var s,n;try{const{data:{session:r},error:o}=i;if(o)throw o;await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",r)),this._debug("INITIAL_SESSION","callback id",e,"session",r)}catch(r){await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",r),console.error(r)}})}async resetPasswordForEmail(e,i={}){let s=null,n=null;this.flowType==="pkce"&&([s,n]=await Xn(this.storage,this.storageKey,!0));try{return await be(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:s,code_challenge_method:n,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.redirectTo})}catch(r){if(he(r))return{data:null,error:r};throw r}}async getUserIdentities(){var e;try{const{data:i,error:s}=await this.getUser();if(s)throw s;return{data:{identities:(e=i.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(i){if(he(i))return{data:null,error:i};throw i}}async linkIdentity(e){var i;try{const{data:s,error:n}=await this._useSession(async r=>{var o,a,l,c,d;const{data:u,error:h}=r;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await be(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(c=u.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(n)throw n;return _i()&&!(!((i=e.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(s==null?void 0:s.url),{data:{provider:e.provider,url:s==null?void 0:s.url},error:null}}catch(s){if(he(s))return{data:{provider:e.provider,url:null},error:s};throw s}}async unlinkIdentity(e){try{return await this._useSession(async i=>{var s,n;const{data:r,error:o}=i;if(o)throw o;return await be(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(n=(s=r.session)===null||s===void 0?void 0:s.access_token)!==null&&n!==void 0?n:void 0})})}catch(i){if(he(i))return{data:null,error:i};throw i}}async _refreshAccessToken(e){const i=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{const s=Date.now();return await ZC(async n=>(n>0&&await QC(200*Math.pow(2,n-1)),this._debug(i,"refreshing attempt",n),await be(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:ts})),(n,r)=>{const o=200*Math.pow(2,n);return r&&vd(r)&&Date.now()+o-s{try{await a.callback(e,i)}catch(l){r.push(l)}});if(await Promise.all(o),r.length>0){for(let a=0;athis._autoRefreshTokenTick(),lr);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async i=>{const{data:{session:s}}=i;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const n=Math.floor((s.expires_at*1e3-e)/lr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${n} ticks, a tick lasts ${lr}ms, refresh threshold is ${Tu} ticks`),n<=Tu&&await this._callRefreshToken(s.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof By)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!_i()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const i=`#_onVisibilityChanged(${e})`;this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,i,s){const n=[`provider=${encodeURIComponent(i)}`];if(s!=null&&s.redirectTo&&n.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s!=null&&s.scopes&&n.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[r,o]=await Xn(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(r)}`,code_challenge_method:`${encodeURIComponent(o)}`});n.push(a.toString())}if(s!=null&&s.queryParams){const r=new URLSearchParams(s.queryParams);n.push(r.toString())}return s!=null&&s.skipBrowserRedirect&&n.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${e}?${n.join("&")}`}async _unenroll(e){try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;return r?{data:null,error:r}:await be(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token})})}catch(i){if(he(i))return{data:null,error:i};throw i}}async _enroll(e){try{return await this._useSession(async i=>{var s,n;const{data:r,error:o}=i;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:l,error:c}=await be(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(s=r==null?void 0:r.session)===null||s===void 0?void 0:s.access_token});return c?{data:null,error:c}:(e.factorType==="totp"&&(!((n=l==null?void 0:l.totp)===null||n===void 0)&&n.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(i){if(he(i))return{data:null,error:i};throw i}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;if(r)return{data:null,error:r};const{data:o,error:a}=await be(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(i){if(he(i))return{data:null,error:i};throw i}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;return r?{data:null,error:r}:await be(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token})})}catch(i){if(he(i))return{data:null,error:i};throw i}})}async _challengeAndVerify(e){const{data:i,error:s}=await this._challenge({factorId:e.factorId});return s?{data:null,error:s}:await this._verify({factorId:e.factorId,challengeId:i.id,code:e.code})}async _listFactors(){const{data:{user:e},error:i}=await this.getUser();if(i)return{data:null,error:i};const s=(e==null?void 0:e.factors)||[],n=s.filter(o=>o.factor_type==="totp"&&o.status==="verified"),r=s.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:s,totp:n,phone:r},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var i,s;const{data:{session:n},error:r}=e;if(r)return{data:null,error:r};if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=bd(n.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((s=(i=n.user.factors)===null||i===void 0?void 0:i.filter(u=>u.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(l="aal2");const d=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(e,i={keys:[]}){let s=i.keys.find(a=>a.kid===e);if(s)return s;const n=Date.now();if(s=this.jwks.keys.find(a=>a.kid===e),s&&this.jwks_cached_at+DC>n)return s;const{data:r,error:o}=await be(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!r.keys||r.keys.length===0||(this.jwks=r,this.jwks_cached_at=n,s=r.keys.find(a=>a.kid===e),!s)?null:s}async getClaims(e,i={}){try{let s=e;if(!s){const{data:f,error:p}=await this.getSession();if(p||!f.session)return{data:null,error:p};s=f.session.access_token}const{header:n,payload:r,signature:o,raw:{header:a,payload:l}}=bd(s);i!=null&&i.allowExpired||oA(r.exp);const c=!n.alg||n.alg.startsWith("HS")||!n.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(n.kid,i!=null&&i.keys?{keys:i.keys}:i==null?void 0:i.jwks);if(!c){const{error:f}=await this.getUser(s);if(f)throw f;return{data:{claims:r,header:n,signature:o},error:null}}const d=aA(n.alg),u=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,u,o,WC(`${a}.${l}`)))throw new Ou("Invalid JWT signature");return{data:{claims:r,header:n,signature:o},error:null}}catch(s){if(he(s))return{data:null,error:s};throw s}}}Yo.nextInstanceID=0;const kA=Yo;class SA extends kA{constructor(e){super(e)}}var CA=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class AA{constructor(e,i,s){var n,r,o;if(this.supabaseUrl=e,this.supabaseKey=i,!e)throw new Error("supabaseUrl is required.");if(!i)throw new Error("supabaseKey is required.");const a=OC(e),l=new URL(a);this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:wC,realtime:SC,auth:Object.assign(Object.assign({},kC),{storageKey:c}),global:xC},u=IC(s??{},d);this.storageKey=(n=u.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(r=u.global.headers)!==null&&r!==void 0?r:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(h,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=u.auth)!==null&&o!==void 0?o:{},this.headers,u.global.fetch),this.fetch=EC(i,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.rest=new VS(new URL("rest/v1",l).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new bC(this.storageUrl.href,this.headers,this.fetch,s==null?void 0:s.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new vS(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,i={},s={}){return this.rest.rpc(e,i,s)}channel(e,i={config:{}}){return this.realtime.channel(e,i)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,i;return CA(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:s}=yield this.auth.getSession();return(i=(e=s.session)===null||e===void 0?void 0:e.access_token)!==null&&i!==void 0?i:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:i,detectSessionInUrl:s,storage:n,storageKey:r,flowType:o,lock:a,debug:l},c,d){const u={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new SA({url:this.authUrl.href,headers:Object.assign(Object.assign({},u),c),storageKey:r,autoRefreshToken:e,persistSession:i,detectSessionInUrl:s,storage:n,flowType:o,lock:a,debug:l,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new rC(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((i,s)=>{this._handleTokenChanged(i,"CLIENT",s==null?void 0:s.access_token)})}_handleTokenChanged(e,i,s){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==s?this.changedAccessToken=s:e==="SIGNED_OUT"&&(this.realtime.setAuth(),i=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const TA=(t,e,i)=>new AA(t,e,i);function EA(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}EA()&&console.warn("⚠️ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const jy="hsmkwrrptltywjqljrpf",Ki=TA("https://"+jy+".supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhzbWt3cnJwdGx0eXdqcWxqcnBmIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcyOTcyODQ5MiwiZXhwIjoyMDQ1MzA0NDkyfQ.qgVkNvWkDXiaiS9GDzG-1fFYkf3KnheVpIJr4B3XfFk");async function PA(){var t={id:my,name:""};const{data:e,error:i}=await Ki.from(uS).select("*");if(i)return console.log(i),t;for(var s=new Date,n=new Date("1970-01-01"),r=null,o=0;o=a&&s<=l){r=e[o],n=s;break}const c=Math.abs(s-n),d=Math.abs(s-a),u=Math.abs(s-l);d=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Zt=t=>(e,i)=>{i!==void 0?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const xl=globalThis,Yh=xl.ShadowRoot&&(xl.ShadyCSS===void 0||xl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jh=Symbol(),kg=new WeakMap;let zy=class{constructor(e,i,s){if(this._$cssResult$=!0,s!==Jh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Yh&&e===void 0){const s=i!==void 0&&i.length===1;s&&(e=kg.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&kg.set(i,e))}return e}toString(){return this.cssText}};const OA=t=>new zy(typeof t=="string"?t:t+"",void 0,Jh),dt=(t,...e)=>{const i=t.length===1?t[0]:e.reduce((s,n,r)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1],t[0]);return new zy(i,t,Jh)},IA=(t,e)=>{if(Yh)t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of e){const s=document.createElement("style"),n=xl.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=i.cssText,t.appendChild(s)}},Sg=Yh?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const s of e.cssRules)i+=s.cssText;return OA(i)})(t):t;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{is:MA,defineProperty:RA,getOwnPropertyDescriptor:$A,getOwnPropertyNames:LA,getOwnPropertySymbols:DA,getPrototypeOf:FA}=Object,Ws=globalThis,Cg=Ws.trustedTypes,NA=Cg?Cg.emptyScript:"",xd=Ws.reactiveElementPolyfillSupport,Ao=(t,e)=>t,zl={toAttribute(t,e){switch(e){case Boolean:t=t?NA:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},Xh=(t,e)=>!MA(t,e),Ag={attribute:!0,type:String,converter:zl,reflect:!1,useDefault:!1,hasChanged:Xh};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ws.litPropertyMetadata??(Ws.litPropertyMetadata=new WeakMap);let dr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Ag){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const s=Symbol(),n=this.getPropertyDescriptor(e,s,i);n!==void 0&&RA(this.prototype,e,n)}}static getPropertyDescriptor(e,i,s){const{get:n,set:r}=$A(this.prototype,e)??{get(){return this[i]},set(o){this[i]=o}};return{get:n,set(o){const a=n==null?void 0:n.call(this);r==null||r.call(this,o),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ag}static _$Ei(){if(this.hasOwnProperty(Ao("elementProperties")))return;const e=FA(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ao("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ao("properties"))){const i=this.properties,s=[...LA(i),...DA(i)];for(const n of s)this.createProperty(n,i[n])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[s,n]of i)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[i,s]of this.elementProperties){const n=this._$Eu(i,s);n!==void 0&&this._$Eh.set(n,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const n of s)i.unshift(Sg(n))}else e!==void 0&&i.push(Sg(e));return i}static _$Eu(e,i){const s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(i=>i(this))}addController(e){var i;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var i;(i=this._$EO)==null||i.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const s of i.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return IA(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostDisconnected)==null?void 0:s.call(i)})}attributeChangedCallback(e,i,s){this._$AK(e,s)}_$ET(e,i){var r;const s=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,s);if(n!==void 0&&s.reflect===!0){const o=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:zl).toAttribute(i,s.type);this._$Em=e,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,i){var r,o;const s=this.constructor,n=s._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const a=s.getPropertyOptions(n),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)==null?void 0:r.fromAttribute)!==void 0?a.converter:zl;this._$Em=n;const c=l.fromAttribute(i,a.type);this[n]=c??((o=this._$Ej)==null?void 0:o.get(n))??c,this._$Em=null}}requestUpdate(e,i,s){var n;if(e!==void 0){const r=this.constructor,o=this[e];if(s??(s=r.getPropertyOptions(e)),!((s.hasChanged??Xh)(o,i)||s.useDefault&&s.reflect&&o===((n=this._$Ej)==null?void 0:n.get(e))&&!this.hasAttribute(r._$Eu(e,s))))return;this.C(e,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:s,reflect:n,wrapped:r},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,o??i??this[e]),r!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||s||(i=void 0),this._$AL.set(e,i)),n===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n){const{wrapped:a}=o,l=this[r];a!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,o,l)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(s=this._$EO)==null||s.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(i)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(i)}willUpdate(e){}_$AE(e){var i;(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};dr.elementStyles=[],dr.shadowRootOptions={mode:"open"},dr[Ao("elementProperties")]=new Map,dr[Ao("finalized")]=new Map,xd==null||xd({ReactiveElement:dr}),(Ws.reactiveElementVersions??(Ws.reactiveElementVersions=[])).push("2.1.1");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const BA={attribute:!0,type:String,converter:zl,reflect:!1,hasChanged:Xh},jA=(t=BA,e,i)=>{const{kind:s,metadata:n}=i;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),s==="setter"&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),s==="accessor"){const{name:o}=i;return{set(a){const l=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,l,t)},init(a){return a!==void 0&&this.C(o,void 0,t,a),a}}}if(s==="setter"){const{name:o}=i;return function(a){const l=this[o];e.call(this,a),this.requestUpdate(o,l,t)}}throw Error("Unsupported decorator location: "+s)};function J(t){return(e,i)=>typeof i=="object"?jA(t,e,i):((s,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,s),o?Object.getOwnPropertyDescriptor(n,r):void 0})(t,e,i)}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function jt(t){return J({...t,state:!0,attribute:!1})}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Mc=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,i),i);/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function zt(t,e){return(i,s,n)=>{const r=o=>{var a;return((a=o.renderRoot)==null?void 0:a.querySelector(t))??null};return Mc(i,s,{get(){return r(this)}})}}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */let zA;function VA(t){return(e,i)=>Mc(e,i,{get(){return(this.renderRoot??zA??(zA=document.createDocumentFragment())).querySelectorAll(t)}})}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function sn(t){return(e,i)=>{const{slot:s,selector:n}=t??{},r="slot"+(s?`[name=${s}]`:":not([name])");return Mc(e,i,{get(){var l;const o=(l=this.renderRoot)==null?void 0:l.querySelector(r),a=(o==null?void 0:o.assignedElements(t))??[];return n===void 0?a:a.filter(c=>c.matches(n))}})}}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function UA(t){return(e,i)=>{const{slot:s}=t??{},n="slot"+(s?`[name=${s}]`:":not([name])");return Mc(e,i,{get(){var o;const r=(o=this.renderRoot)==null?void 0:o.querySelector(n);return(r==null?void 0:r.assignedNodes(t))??[]}})}}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const To=globalThis,Vl=To.trustedTypes,Tg=Vl?Vl.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vy="$lit$",Bs=`lit$${Math.random().toFixed(9).slice(2)}$`,Uy="?"+Bs,qA=`<${Uy}>`,Dn=document,Jo=()=>Dn.createComment(""),Xo=t=>t===null||typeof t!="object"&&typeof t!="function",Qh=Array.isArray,HA=t=>Qh(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",wd=`[ +\f\r]`,Yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Eg=/-->/g,Pg=/>/g,fn=RegExp(`>|${wd}(?:([^\\s"'>=/]+)(${wd}*=${wd}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Og=/'/g,Ig=/"/g,qy=/^(?:script|style|textarea|title)$/i,WA=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ce=WA(1),ui=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),Mg=new WeakMap,An=Dn.createTreeWalker(Dn,129);function Hy(t,e){if(!Qh(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tg!==void 0?Tg.createHTML(e):e}const KA=(t,e)=>{const i=t.length-1,s=[];let n,r=e===2?"":e===3?"":"",o=Yr;for(let a=0;a"?(o=n??Yr,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?fn:d[3]==='"'?Ig:Og):o===Ig||o===Og?o=fn:o===Eg||o===Pg?o=Yr:(o=fn,n=void 0);const f=o===fn&&t[a+1].startsWith("/>")?" ":"";r+=o===Yr?l+qA:u>=0?(s.push(c),l.slice(0,u)+Vy+l.slice(u)+Bs+f):l+Bs+(u===-2?a:f)}return[Hy(t,r+(t[i]||"")+(e===2?"":e===3?"":"")),s]};class Qo{constructor({strings:e,_$litType$:i},s){let n;this.parts=[];let r=0,o=0;const a=e.length-1,l=this.parts,[c,d]=KA(e,i);if(this.el=Qo.createElement(c,s),An.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=An.nextNode())!==null&&l.length0){n.textContent=Vl?Vl.emptyScript:"";for(let f=0;f2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=se}_$AI(e,i=this,s,n){const r=this.strings;let o=!1;if(r===void 0)e=Tr(this,e,i,0),o=!Xo(e)||e!==this._$AH&&e!==ui,o&&(this._$AH=e);else{const a=e;let l,c;for(e=r[0],l=0;l{const s=(i==null?void 0:i.renderBefore)??e;let n=s._$litPart$;if(n===void 0){const r=(i==null?void 0:i.renderBefore)??null;s._$litPart$=n=new pa(e.insertBefore(Jo(),r),r,void 0,i??{})}return n._$AI(t),n};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const On=globalThis;let ot=class extends dr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const e=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=e.firstChild),e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Zh(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ui}};var Dv;ot._$litElement$=!0,ot.finalized=!0,(Dv=On.litElementHydrateSupport)==null||Dv.call(On,{LitElement:ot});const Sd=On.litElementPolyfillSupport;Sd==null||Sd({LitElement:ot});(On.litElementVersions??(On.litElementVersions=[])).push("4.2.1");/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class ZA extends ot{render(){return ce``}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const eT=dt`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%} +`;/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let Iu=class extends ZA{};Iu.styles=[eT];Iu=F([Zt("md-icon")],Iu);const tT={class:"hamburger-container"},iT={class:"menu-title"},sT={class:"hamburger-button-container"},nT={key:0,slot:"icon"},rT={key:1,slot:"icon"},oT={props:{enabled:{default:!0,type:Boolean}},data(){return{expanded:!1}}},aT=Se({...oT,__name:"HamburgerMenu",setup(t){return(e,i)=>(q(),G("div",tT,[X("div",iT,[sd(e.$slots,"menu-title",{},void 0)]),X("div",sT,[t.enabled?(q(),G("a",{key:0,class:"hamburger-button",onClick:i[0]||(i[0]=s=>e.expanded=!e.expanded)},[e.expanded?(q(),G("md-icon",nT,"close ")):qe("",!0),e.expanded?qe("",!0):(q(),G("md-icon",rT,"menu"))])):qe("",!0)]),sd(e.$slots,"theme-button",{},void 0),oe(k1,{name:"slide"},{default:ht(()=>[e.expanded?(q(),G("div",{key:0,class:"hamburger-menu-container",onClick:i[1]||(i[1]=s=>e.expanded=!1)},[sd(e.$slots,"menu-content",{},void 0,!0)])):qe("",!0)]),_:3})]))}}),vi=(t,e)=>{const i=t.__vccOpts||t;for(const[s,n]of e)i[s]=n;return i},lT=vi(aT,[["__scopeId","data-v-c57a3aaf"]]),cT={key:0,class:"nav"},dT={key:0,slot:"icon"},uT={key:1,slot:"icon"},hT={key:1,class:"nav"},fT={key:0,slot:"icon"},pT={key:1,slot:"icon"},gT={class:"nav-text nav-right"},mT={props:{searchVisible:{default:!0,type:Boolean}},data(){return{windowWidth:window.innerWidth,viewMode:null,eventStore:null}},created(){this.viewMode=Un(),this.eventStore=tn()},computed:{eventName(){var t;return(t=this.eventStore)==null?void 0:t.eventName},isDarkMode(){return this.viewMode.isDarkMode}},methods:{toggleUserDarkMode(){this.viewMode.toggleUserDarkMode()}}},vT=Se({...mT,__name:"NavBar",setup(t){return(e,i)=>{var s;return(s=e.viewMode)!=null&&s.isMobile?(q(),G("div",cT,[oe(lT,null,{"menu-title":ht(()=>[Fe(fe(e.eventName),1)]),"theme-button":ht(()=>[X("div",{class:"nav-dark-mode nav-mobile-right",onClick:i[0]||(i[0]=(...n)=>e.toggleUserDarkMode&&e.toggleUserDarkMode(...n))},[e.isDarkMode?(q(),G("md-icon",dT,"dark_mode")):(q(),G("md-icon",uT,"light_mode"))])]),"menu-content":ht(()=>[oe(Re(yi),{to:"/scout",class:"nav-link nav-link-mobile"},{default:ht(()=>i[2]||(i[2]=[Fe("Match Scouting",-1)])),_:1,__:[2]}),oe(Re(yi),{to:"/pit-scout",class:"nav-link nav-link-mobile"},{default:ht(()=>i[3]||(i[3]=[Fe("Pit Scouting",-1)])),_:1,__:[3]}),oe(Re(yi),{to:"/event",class:"nav-link nav-link-mobile"},{default:ht(()=>i[4]||(i[4]=[Fe("Event Analysis",-1)])),_:1,__:[4]}),oe(Re(yi),{to:"/team",class:"nav-link nav-link-mobile"},{default:ht(()=>i[5]||(i[5]=[Fe("Team Analysis",-1)])),_:1,__:[5]}),oe(Re(yi),{to:"/match",class:"nav-link nav-link-mobile"},{default:ht(()=>i[6]||(i[6]=[Fe("Match Preview",-1)])),_:1,__:[6]})]),_:1})])):(q(),G("div",hT,[oe(Re(yi),{to:"/scout",class:"nav-link"},{default:ht(()=>i[7]||(i[7]=[Fe("Match Scouting",-1)])),_:1,__:[7]}),oe(Re(yi),{to:"/pit-scout",class:"nav-link"},{default:ht(()=>i[8]||(i[8]=[Fe("Pit Scouting",-1)])),_:1,__:[8]}),oe(Re(yi),{to:"/event",class:"nav-link"},{default:ht(()=>i[9]||(i[9]=[Fe("Event Analysis",-1)])),_:1,__:[9]}),oe(Re(yi),{to:"/team",class:"nav-link"},{default:ht(()=>i[10]||(i[10]=[Fe("Team Analysis",-1)])),_:1,__:[10]}),oe(Re(yi),{to:"/match",class:"nav-link"},{default:ht(()=>i[11]||(i[11]=[Fe("Match Preview",-1)])),_:1,__:[11]}),X("div",{class:"nav-dark-mode nav-right",onClick:i[1]||(i[1]=(...n)=>e.toggleUserDarkMode&&e.toggleUserDarkMode(...n))},[e.isDarkMode?(q(),G("md-icon",fT,"dark_mode")):(q(),G("md-icon",pT,"light_mode"))]),X("div",gT,fe(e.eventName),1)]))}}}),bT=vi(vT,[["__scopeId","data-v-4db8394e"]]),yT=Se({__name:"App",setup(t){const e=Un();return window.addEventListener("resize",()=>{e.updateScreenWidth(window.innerWidth),e.updateScreenHeight(window.innerHeight)}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{e.updateDarkMode()}),e.updateDarkMode(),tn().updateEvent(),(s,n)=>(q(),G(ye,null,[oe(bT),oe(Re(gy))],64))}});/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Ls={ATTRIBUTE:1,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},ef=t=>(...e)=>({_$litDirective$:t,values:e});let tf=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,s){this._$Ct=e,this._$AM=i,this._$Ci=s}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Oi=ef(class extends tf{constructor(t){var e;if(super(t),t.type!==Ls.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var s,n;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in e)e[r]&&!((s=this.nt)!=null&&s.has(r))&&this.st.add(r);return this.render(e)}const i=t.element.classList;for(const r of this.st)r in e||(i.remove(r),this.st.delete(r));for(const r in e){const o=!!e[r];o===this.st.has(r)||(n=this.nt)!=null&&n.has(r)||(o?(i.add(r),this.st.add(r)):(i.remove(r),this.st.delete(r)))}return ui}});/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const hr={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)"};function _T(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class tt extends ot{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,i=this.max??-1;return e<0||i<=0?"":`${e} / ${i}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&e.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var r,o,a,l;const e=this.renderLabel(!0),i=this.renderLabel(!1),s=(r=this.renderOutline)==null?void 0:r.call(this,e),n={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return ce` +
+
+ ${(o=this.renderBackground)==null?void 0:o.call(this)} + + ${(a=this.renderStateLayer)==null?void 0:a.call(this)} ${(l=this.renderIndicator)==null?void 0:l.call(this)} ${s} +
+
+ +
+
+
+ ${i} ${s?se:e} +
+
+ +
+
+
+ +
+
+
+ ${this.renderSupportingText()} +
+ `}updated(e){(e.has("supportingText")||e.has("errorText")||e.has("count")||e.has("max"))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){const{supportingOrErrorText:e,counterText:i}=this;if(!e&&!i)return se;const s=ce`${e}`,n=i?ce`${i}`:se,o=this.error&&this.errorText&&!this.refreshErrorAlert?"alert":se;return ce` +
${s}${n}
+ + `}updateSlottedAriaDescribedBy(){for(const e of this.slottedAriaDescribedBy)Zh(ce`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute("hidden","")}renderLabel(e){if(!this.label)return se;let i;e?i=this.focused||this.populated||this.isAnimating:i=!this.focused&&!this.populated&&!this.isAnimating;const s={hidden:!i,floating:e,resting:!e},n=`${this.label}${this.required&&!this.noAsterisk?"*":""}`;return ce` + ${n} + `}animateLabelIfNeeded({wasFocused:e,wasPopulated:i}){var r,o,a;if(!this.label)return;e??(e=this.focused),i??(i=this.populated);const s=e||i,n=this.focused||this.populated;s!==n&&(this.isAnimating=!0,(r=this.labelAnimation)==null||r.cancel(),this.labelAnimation=(o=this.floatingLabelEl)==null?void 0:o.animate(this.getLabelKeyframes(),{duration:150,easing:hr.STANDARD}),(a=this.labelAnimation)==null||a.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:i}=this;if(!e||!i)return[];const{x:s,y:n,height:r}=e.getBoundingClientRect(),{x:o,y:a,height:l}=i.getBoundingClientRect(),c=e.scrollWidth,d=i.scrollWidth,u=d/c,h=o-s,f=a-n+Math.round((l-r*u)/2),p=`translateX(${h}px) translateY(${f}px) scale(${u})`,g="translateX(0) translateY(0) scale(1)",m=i.clientWidth,C=d>m?`${m/u}px`:"";return this.focused||this.populated?[{transform:p,width:C},{transform:g,width:C}]:[{transform:g,width:C},{transform:p,width:C}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}F([J({type:Boolean})],tt.prototype,"disabled",void 0);F([J({type:Boolean})],tt.prototype,"error",void 0);F([J({type:Boolean})],tt.prototype,"focused",void 0);F([J()],tt.prototype,"label",void 0);F([J({type:Boolean,attribute:"no-asterisk"})],tt.prototype,"noAsterisk",void 0);F([J({type:Boolean})],tt.prototype,"populated",void 0);F([J({type:Boolean})],tt.prototype,"required",void 0);F([J({type:Boolean})],tt.prototype,"resizable",void 0);F([J({attribute:"supporting-text"})],tt.prototype,"supportingText",void 0);F([J({attribute:"error-text"})],tt.prototype,"errorText",void 0);F([J({type:Number})],tt.prototype,"count",void 0);F([J({type:Number})],tt.prototype,"max",void 0);F([J({type:Boolean,attribute:"has-start"})],tt.prototype,"hasStart",void 0);F([J({type:Boolean,attribute:"has-end"})],tt.prototype,"hasEnd",void 0);F([sn({slot:"aria-describedby"})],tt.prototype,"slottedAriaDescribedBy",void 0);F([jt()],tt.prototype,"isAnimating",void 0);F([jt()],tt.prototype,"refreshErrorAlert",void 0);F([jt()],tt.prototype,"disableTransitions",void 0);F([zt(".label.floating")],tt.prototype,"floatingLabelEl",void 0);F([zt(".label.resting")],tt.prototype,"restingLabelEl",void 0);F([zt(".container")],tt.prototype,"containerEl",void 0);/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class xT extends tt{renderOutline(e){return ce` +
+
+
+
+
+
${e}
+
+
+
+ `}}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const wT=dt`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}} +`;/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const kT=dt`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}slot[name=container]{border-radius:inherit}slot[name=container]::slotted(*){border-radius:inherit;inset:0;pointer-events:none;position:absolute}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start{margin-inline:var(--_with-leading-content-leading-space) var(--_content-space)}.with-end .end{margin-inline:var(--_content-space) var(--_with-trailing-content-trailing-space)}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}} +`;/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let Mu=class extends xT{};Mu.styles=[kT,wT];Mu=F([Zt("md-outlined-field")],Mu);/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Wy=Symbol.for(""),ST=t=>{if((t==null?void 0:t.r)===Wy)return t==null?void 0:t._$litStatic$},sf=(t,...e)=>({_$litStatic$:e.reduce((i,s,n)=>i+(r=>{if(r._$litStatic$!==void 0)return r._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${r}. Use 'unsafeStatic' to pass non-literal values, but + take care to ensure page security.`)})(s)+t[n+1],t[0]),r:Wy}),Rg=new Map,CT=t=>(e,...i)=>{const s=i.length;let n,r;const o=[],a=[];let l,c=0,d=!1;for(;c`}}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const TT=dt`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15} +`;/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let Ru=class extends AT{};Ru.styles=[TT];Ru=F([Zt("md-elevation")],Ru);/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const Gy=Symbol("attachableController");let wl;wl=new MutationObserver(t=>{var e;for(const i of t)(e=i.target[Gy])==null||e.hostConnected()});class Yy{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){e===null?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,i){this.host=e,this.onControlChange=i,this.currentControl=null,e.addController(this),e[Gy]=this,wl==null||wl.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const ET=["focusin","focusout","pointerdown"];class nf extends ot{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Yy(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var i;if(!e[$g]){switch(e.type){default:return;case"focusin":this.visible=((i=this.control)==null?void 0:i.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}e[$g]=!0}}onControlChange(e,i){for(const s of ET)e==null||e.removeEventListener(s,this),i==null||i.addEventListener(s,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}F([J({type:Boolean,reflect:!0})],nf.prototype,"visible",void 0);F([J({type:Boolean,reflect:!0})],nf.prototype,"inward",void 0);const $g=Symbol("handledByFocusRing");/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const PT=dt`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}} +`;/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let $u=class extends nf{};$u.styles=[PT];$u=F([Zt("md-focus-ring")],$u);/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Jy="important",OT=" !"+Jy,Ul=ef(class extends tf{constructor(t){var e;if(super(t),t.type!==Ls.ATTRIBUTE||t.name!=="style"||((e=t.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{const s=t[i];return s==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(t,[e]){const{style:i}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const s of this.ft)e[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in e){const n=e[s];if(n!=null){this.ft.add(s);const r=typeof n=="string"&&n.endsWith(OT);s.includes("-")||r?i.setProperty(s,r?n.slice(0,-11):n,r?Jy:""):i[s]=n}}return ui}});/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */function Xy(t,e=ws){const i=rf(t,e);return i&&(i.tabIndex=0,i.focus()),i}function Qy(t,e=ws){const i=Zy(t,e);return i&&(i.tabIndex=0,i.focus()),i}function Eo(t,e=ws){for(let i=0;i=0;i--){const s=t[i];if(e(s))return s}return null}function IT(t,e,i=ws,s=!0){for(let n=1;ne&&!s)return null;const o=t[r];if(i(o))return o}return t[e]?t[e]:null}function Lg(t,e,i=ws,s=!0){if(e){const n=IT(t,e.index,i,s);return n&&(n.tabIndex=0,n.focus()),n}else return Xy(t,i)}function Dg(t,e,i=ws,s=!0){if(e){const n=MT(t,e.index,i,s);return n&&(n.tabIndex=0,n.focus()),n}else return Qy(t,i)}function ws(t){return!t.disabled}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const wt={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class RT{constructor(e){this.handleKeydown=d=>{const u=d.key;if(d.defaultPrevented||!this.isNavigableKey(u))return;const h=this.items;if(!h.length)return;const f=Eo(h,this.isActivatable);d.preventDefault();const p=this.isRtl(),g=p?wt.ArrowRight:wt.ArrowLeft,m=p?wt.ArrowLeft:wt.ArrowRight;let y=null;switch(u){case wt.ArrowDown:case m:y=Lg(h,f,this.isActivatable,this.wrapNavigation());break;case wt.ArrowUp:case g:y=Dg(h,f,this.isActivatable,this.wrapNavigation());break;case wt.Home:y=Xy(h,this.isActivatable);break;case wt.End:y=Qy(h,this.isActivatable);break}y&&f&&f.item!==y&&(f.item.tabIndex=-1)},this.onDeactivateItems=()=>{const d=this.items;for(const u of d)this.deactivateItem(u)},this.onRequestActivation=d=>{this.onDeactivateItems();const u=d.target;this.activateItem(u),u.focus()},this.onSlotchange=()=>{const d=this.items;let u=!1;for(const f of d){if(!f.disabled&&f.tabIndex>-1&&!u){u=!0,f.tabIndex=0;continue}f.tabIndex=-1}if(u)return;const h=rf(d,this.isActivatable);h&&(h.tabIndex=0)};const{isItem:i,getPossibleItems:s,isRtl:n,deactivateItem:r,activateItem:o,isNavigableKey:a,isActivatable:l,wrapNavigation:c}=e;this.isItem=i,this.getPossibleItems=s,this.isRtl=n,this.deactivateItem=r,this.activateItem=o,this.isNavigableKey=a,this.isActivatable=l,this.wrapNavigation=c??(()=>!0)}get items(){const e=this.getPossibleItems(),i=[];for(const s of e){if(this.isItem(s)){i.push(s);continue}const r=s.item;r&&this.isItem(r)&&i.push(r)}return i}activateNextItem(){const e=this.items,i=Eo(e,this.isActivatable);return i&&(i.item.tabIndex=-1),Lg(e,i,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,i=Eo(e,this.isActivatable);return i&&(i.item.tabIndex=-1),Dg(e,i,this.isActivatable,this.wrapNavigation())}}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */function $T(t,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:t,reason:e,itemPath:[t]}})}const Fg=$T,Lu={SPACE:"Space",ENTER:"Enter"},Ng={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},LT={ESCAPE:"Escape",SPACE:Lu.SPACE,ENTER:Lu.ENTER};function e0(t){return Object.values(LT).some(e=>e===t)}function DT(t){return Object.values(Lu).some(e=>e===t)}function Du(t,e){const i=new Event("md-contains",{bubbles:!0,composed:!0});let s=[];const n=o=>{s=o.composedPath()};return e.addEventListener("md-contains",n),t.dispatchEvent(i),e.removeEventListener("md-contains",n),s.length>0}const wi={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const Bg={END_START:"end-start",START_START:"start-start"};class FT{constructor(e,i){this.host=e,this.getProperties=i,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:i,anchorCorner:s,surfaceCorner:n,positioning:r,xOffset:o,yOffset:a,disableBlockFlip:l,disableInlineFlip:c,repositionStrategy:d}=this.getProperties(),u=s.toLowerCase().trim(),h=n.toLowerCase().trim();if(!e||!i)return;const f=window.innerWidth,p=window.innerHeight,g=document.createElement("div");g.style.opacity="0",g.style.position="fixed",g.style.display="block",g.style.inset="0",document.body.appendChild(g);const m=g.getBoundingClientRect();g.remove();const y=window.innerHeight-m.bottom,C=window.innerWidth-m.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const w=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),A=i.getSurfacePositionClientRect?i.getSurfacePositionClientRect():i.getBoundingClientRect(),[x,E]=h.split("-"),[T,P]=u.split("-"),k=getComputedStyle(e).direction==="ltr";let{blockInset:I,blockOutOfBoundsCorrection:S,surfaceBlockProperty:b}=this.calculateBlock({surfaceRect:w,anchorRect:A,anchorBlock:T,surfaceBlock:x,yOffset:a,positioning:r,windowInnerHeight:p,blockScrollbarHeight:y});if(S&&!l){const W=x==="start"?"end":"start",U=T==="start"?"end":"start",Y=this.calculateBlock({surfaceRect:w,anchorRect:A,anchorBlock:U,surfaceBlock:W,yOffset:a,positioning:r,windowInnerHeight:p,blockScrollbarHeight:y});S>Y.blockOutOfBoundsCorrection&&(I=Y.blockInset,S=Y.blockOutOfBoundsCorrection,b=Y.surfaceBlockProperty)}let{inlineInset:D,inlineOutOfBoundsCorrection:B,surfaceInlineProperty:N}=this.calculateInline({surfaceRect:w,anchorRect:A,anchorInline:P,surfaceInline:E,xOffset:o,positioning:r,isLTR:k,windowInnerWidth:f,inlineScrollbarWidth:C});if(B&&!c){const W=E==="start"?"end":"start",U=P==="start"?"end":"start",Y=this.calculateInline({surfaceRect:w,anchorRect:A,anchorInline:U,surfaceInline:W,xOffset:o,positioning:r,isLTR:k,windowInnerWidth:f,inlineScrollbarWidth:C});Math.abs(B)>Math.abs(Y.inlineOutOfBoundsCorrection)&&(D=Y.inlineInset,B=Y.inlineOutOfBoundsCorrection,N=Y.surfaceInlineProperty)}d==="move"&&(I=I-S,D=D-B),this.surfaceStylesInternal={display:"block",opacity:"1",[b]:`${I}px`,[N]:`${D}px`},d==="resize"&&(S&&(this.surfaceStylesInternal.height=`${w.height-S}px`),B&&(this.surfaceStylesInternal.width=`${w.width-B}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:i,anchorRect:s,anchorBlock:n,surfaceBlock:r,yOffset:o,positioning:a,windowInnerHeight:l,blockScrollbarHeight:c}=e,d=a==="fixed"||a==="document"?1:0,u=a==="document"?1:0,h=r==="start"?1:0,f=r==="end"?1:0,g=(n!==r?1:0)*s.height+o,m=h*s.top+f*(l-s.bottom-c),y=h*window.scrollY-f*window.scrollY,C=Math.abs(Math.min(0,l-m-g-i.height));return{blockInset:d*m+u*y+g,blockOutOfBoundsCorrection:C,surfaceBlockProperty:r==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:i,surfaceInline:s,anchorInline:n,anchorRect:r,surfaceRect:o,xOffset:a,positioning:l,windowInnerWidth:c,inlineScrollbarWidth:d}=e,u=l==="fixed"||l==="document"?1:0,h=l==="document"?1:0,f=i?1:0,p=i?0:1,g=s==="start"?1:0,m=s==="end"?1:0,C=(n!==s?1:0)*r.width+a,w=g*r.left+m*(c-r.right-d),A=g*(c-r.right-d)+m*r.left,x=f*w+p*A,E=g*window.scrollX-m*window.scrollX,T=m*window.scrollX-g*window.scrollX,P=f*E+p*T,k=Math.abs(Math.min(0,c-x-C-o.width)),I=u*x+C+h*P;let S=s==="start"?"inset-inline-start":"inset-inline-end";return(l==="document"||l==="fixed")&&(s==="start"&&i||s==="end"&&!i?S="left":S="right"),{inlineInset:I,inlineOutOfBoundsCorrection:k,surfaceInlineProperty:S}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let i=!1;for(const[o,a]of Object.entries(e))if(i=i||a!==this.lastValues[o],i)break;const s=this.lastValues.isOpen!==e.isOpen,n=!!e.anchorEl,r=!!e.surfaceEl;i&&n&&r&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):s&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const li={INDEX:0,ITEM:1,TEXT:2};class NT{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=i=>{this.isTypingAhead?this.typeahead(i):this.beginTypeahead(i)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((i,s)=>[s,i,i.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(i=>i[li.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[li.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[li.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const i=this.lastActiveRecord?this.lastActiveRecord[li.INDEX]:-1,s=this.typeaheadRecords.length,n=l=>(l[li.INDEX]+s-i)%s,r=this.typeaheadRecords.filter(l=>!l[li.ITEM].disabled&&l[li.TEXT].startsWith(this.typaheadBuffer)).sort((l,c)=>n(l)-n(c));if(r.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[li.ITEM].tabIndex=-1),this.endTypeahead();return}const o=this.typaheadBuffer.length===1;let a;this.lastActiveRecord===r[0]&&o?a=r[1]??r[0]:a=r[0],this.lastActiveRecord&&(this.lastActiveRecord[li.ITEM].tabIndex=-1),this.lastActiveRecord=a,a[li.ITEM].tabIndex=0,a[li.ITEM].focus()}}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const t0=200,i0=new Set([wt.ArrowDown,wt.ArrowUp,wt.Home,wt.End]),BT=new Set([wt.ArrowLeft,wt.ArrowRight,...i0]);function jT(t=document){var i;let e=t.activeElement;for(;e&&((i=e==null?void 0:e.shadowRoot)!=null&&i.activeElement);)e=e.shadowRoot.activeElement;return e}class it extends ot{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.noHorizontalFlip=!1,this.noVerticalFlip=!1,this.typeaheadDelay=t0,this.anchorCorner=Bg.END_START,this.menuCorner=Bg.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=wi.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=_T(),this.listController=new RT({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return BT.has(e);const s=getComputedStyle(this).direction==="rtl"?wt.ArrowLeft:wt.ArrowRight;return e===s?!0:i0.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new NT(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new FT(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,disableBlockFlip:this.noVerticalFlip,disableInlineFlip:this.noHorizontalFlip,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const i=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(i))return;if(e.relatedTarget){if(Du(e.relatedTarget,this)||this.pointerPath.length!==0&&Du(e.relatedTarget,i))return}else if(this.pointerPath.includes(this))return;const s=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=s},this.onOpened=async()=>{this.lastFocusedElement=jT();const e=this.items,i=Eo(e);i&&this.defaultFocus!==wi.NONE&&(i.item.tabIndex=-1);let s=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):s=!!await this.animateOpen(),this.defaultFocus){case wi.FIRST_ITEM:const n=rf(e);n&&(n.tabIndex=0,n.focus(),await n.updateComplete);break;case wi.LAST_ITEM:const r=Zy(e);r&&(r.tabIndex=0,r.focus(),await r.updateComplete);break;case wi.LIST_ROOT:this.focus();break;default:case wi.NONE:break}s||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,i;this.open=!1,this.skipRestoreFocus||(i=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||i.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const i=e.composedPath();!this.stayOpenOnOutsideClick&&!i.includes(this)&&!i.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return ce` + + `}renderMenuItems(){return ce``}renderElevation(){return ce``}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&e0(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,i=this.slotEl;if(!e||!i)return!0;const s=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const n=this.openCloseAnimationSignal.start(),r=e.offsetHeight,o=s==="UP",a=this.items,l=500,c=50,d=250,u=(l-d)/a.length,h=e.animate([{height:"0px"},{height:`${r}px`}],{duration:l,easing:hr.EMPHASIZED}),f=i.animate([{transform:o?`translateY(-${r}px)`:""},{transform:""}],{duration:l,easing:hr.EMPHASIZED}),p=e.animate([{opacity:0},{opacity:1}],c),g=[];for(let C=0;C{A.classList.toggle("md-menu-hidden",!1)}),g.push([A,x])}let m=C=>{};const y=new Promise(C=>{m=C});return n.addEventListener("abort",()=>{h.cancel(),f.cancel(),p.cancel(),g.forEach(([C,w])=>{C.classList.toggle("md-menu-hidden",!1),w.cancel()}),m(!0)}),h.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),m(!1)}),await y}animateClose(){let e;const i=new Promise(x=>{e=x}),s=this.surfaceEl,n=this.slotEl;if(!s||!n)return e(!1),i;const o=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),s.classList.toggle("animating",!0);const a=this.openCloseAnimationSignal.start(),l=s.offsetHeight,c=this.items,d=150,u=50,h=d-u,f=50,p=50,g=.35,m=(d-p-f)/c.length,y=s.animate([{height:`${l}px`},{height:`${l*g}px`}],{duration:d,easing:hr.EMPHASIZED_ACCELERATE}),C=n.animate([{transform:""},{transform:o?`translateY(-${l*(1-g)}px)`:""}],{duration:d,easing:hr.EMPHASIZED_ACCELERATE}),w=s.animate([{opacity:1},{opacity:0}],{duration:u,delay:h}),A=[];for(let x=0;x{T.classList.toggle("md-menu-hidden",!0)}),A.push([T,P])}return a.addEventListener("abort",()=>{y.cancel(),C.cancel(),w.cancel(),A.forEach(([x,E])=>{E.cancel(),x.classList.toggle("md-menu-hidden",!1)}),e(!1)}),y.addEventListener("finish",()=>{s.classList.toggle("animating",!1),A.forEach(([x])=>{x.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),i}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(i=>{var s;(s=i.close)==null||s.call(i)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}F([zt(".menu")],it.prototype,"surfaceEl",void 0);F([zt("slot")],it.prototype,"slotEl",void 0);F([J()],it.prototype,"anchor",void 0);F([J()],it.prototype,"positioning",void 0);F([J({type:Boolean})],it.prototype,"quick",void 0);F([J({type:Boolean,attribute:"has-overflow"})],it.prototype,"hasOverflow",void 0);F([J({type:Boolean,reflect:!0})],it.prototype,"open",void 0);F([J({type:Number,attribute:"x-offset"})],it.prototype,"xOffset",void 0);F([J({type:Number,attribute:"y-offset"})],it.prototype,"yOffset",void 0);F([J({type:Boolean,attribute:"no-horizontal-flip"})],it.prototype,"noHorizontalFlip",void 0);F([J({type:Boolean,attribute:"no-vertical-flip"})],it.prototype,"noVerticalFlip",void 0);F([J({type:Number,attribute:"typeahead-delay"})],it.prototype,"typeaheadDelay",void 0);F([J({attribute:"anchor-corner"})],it.prototype,"anchorCorner",void 0);F([J({attribute:"menu-corner"})],it.prototype,"menuCorner",void 0);F([J({type:Boolean,attribute:"stay-open-on-outside-click"})],it.prototype,"stayOpenOnOutsideClick",void 0);F([J({type:Boolean,attribute:"stay-open-on-focusout"})],it.prototype,"stayOpenOnFocusout",void 0);F([J({type:Boolean,attribute:"skip-restore-focus"})],it.prototype,"skipRestoreFocus",void 0);F([J({attribute:"default-focus"})],it.prototype,"defaultFocus",void 0);F([J({type:Boolean,attribute:"no-navigation-wrap"})],it.prototype,"noNavigationWrap",void 0);F([sn({flatten:!0})],it.prototype,"slotItems",void 0);F([jt()],it.prototype,"typeaheadActive",void 0);/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const zT=dt`:host{--md-elevation-level: var(--md-menu-container-elevation, 2);--md-elevation-shadow-color: var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape: var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px))}.menu{border-radius:var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px));display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit;scrollbar-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:none;box-sizing:border-box;background-color:var(--md-menu-container-color, var(--md-sys-color-surface-container, #f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit;scrollbar-width:inherit}.item-padding{padding-block:var(--md-menu-top-space, 8px) var(--md-menu-bottom-space, 8px)}.has-overflow:not([popover]) .items{overflow:visible}.has-overflow.animating .items,.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors: active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}} +`;/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let Fu=class extends it{};Fu.styles=[zT];Fu=F([Zt("md-menu")],Fu);/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const s0=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"],VT=s0.map(n0);function Cd(t){return VT.includes(t)}function n0(t){return t.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const La=Symbol("privateIgnoreAttributeChangesFor");function ga(t){var e;class i extends t{constructor(){super(...arguments),this[e]=new Set}attributeChangedCallback(n,r,o){if(!Cd(n)){super.attributeChangedCallback(n,r,o);return}if(this[La].has(n))return;this[La].add(n),this.removeAttribute(n),this[La].delete(n);const a=Bu(n);o===null?delete this.dataset[a]:this.dataset[a]=o,this.requestUpdate(Bu(n),r)}getAttribute(n){return Cd(n)?super.getAttribute(Nu(n)):super.getAttribute(n)}removeAttribute(n){super.removeAttribute(n),Cd(n)&&(super.removeAttribute(Nu(n)),this.requestUpdate())}}return e=La,UT(i),i}function UT(t){for(const e of s0){const i=n0(e),s=Nu(i),n=Bu(i);t.createProperty(e,{attribute:i,noAccessor:!0}),t.createProperty(Symbol(s),{attribute:s,noAccessor:!0}),Object.defineProperty(t.prototype,e,{configurable:!0,enumerable:!0,get(){return this.dataset[n]??null},set(r){const o=this.dataset[n]??null;r!==o&&(r===null?delete this.dataset[n]:this.dataset[n]=r,this.requestUpdate(e,o))}})}}function Nu(t){return`data-${t}`}function Bu(t){return t.replace(/-\w/,e=>e[1].toUpperCase())}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */function of(t,e){e.bubbles&&(!t.shadowRoot||e.composed)&&e.stopPropagation();const i=Reflect.construct(e.constructor,[e.type,e]),s=t.dispatchEvent(i);return s||e.preventDefault(),s}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const Ft=Symbol("internals"),Ad=Symbol("privateInternals");function ma(t){class e extends t{get[Ft](){return this[Ad]||(this[Ad]=this.attachInternals()),this[Ad]}}return e}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const Er=Symbol("createValidator"),Pr=Symbol("getValidityAnchor"),Td=Symbol("privateValidator"),Qi=Symbol("privateSyncValidity"),Da=Symbol("privateCustomValidationMessage");function $c(t){var e;class i extends t{constructor(){super(...arguments),this[e]=""}get validity(){return this[Qi](),this[Ft].validity}get validationMessage(){return this[Qi](),this[Ft].validationMessage}get willValidate(){return this[Qi](),this[Ft].willValidate}checkValidity(){return this[Qi](),this[Ft].checkValidity()}reportValidity(){return this[Qi](),this[Ft].reportValidity()}setCustomValidity(n){this[Da]=n,this[Qi]()}requestUpdate(n,r,o){super.requestUpdate(n,r,o),this[Qi]()}firstUpdated(n){super.firstUpdated(n),this[Qi]()}[(e=Da,Qi)](){this[Td]||(this[Td]=this[Er]());const{validity:n,validationMessage:r}=this[Td].getValidity(),o=!!this[Da],a=this[Da]||r;this[Ft].setValidity({...n,customError:o},a,this[Pr]()??void 0)}[Er](){throw new Error("Implement [createValidator]")}[Pr](){throw new Error("Implement [getValidityAnchor]")}}return i}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const In=Symbol("getFormValue"),ql=Symbol("getFormState");function Lc(t){class e extends t{get form(){return this[Ft].form}get labels(){return this[Ft].labels}get name(){return this.getAttribute("name")??""}set name(s){this.setAttribute("name",s)}get disabled(){return this.hasAttribute("disabled")}set disabled(s){this.toggleAttribute("disabled",s)}attributeChangedCallback(s,n,r){if(s==="name"||s==="disabled"){const o=s==="disabled"?n!==null:n;this.requestUpdate(s,o);return}super.attributeChangedCallback(s,n,r)}requestUpdate(s,n,r){super.requestUpdate(s,n,r),this[Ft].setFormValue(this[In](),this[ql]())}[In](){throw new Error("Implement [getFormValue]")}[ql](){return this[In]()}formDisabledCallback(s){this.disabled=s}}return e.formAssociated=!0,F([J({noAccessor:!0})],e.prototype,"name",null),F([J({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const Hl=Symbol("onReportValidity"),Fa=Symbol("privateCleanupFormListeners"),Na=Symbol("privateDoNotReportInvalid"),Ba=Symbol("privateIsSelfReportingValidity"),ja=Symbol("privateCallOnReportValidity");function r0(t){var e,i,s;class n extends t{constructor(...o){super(...o),this[e]=new AbortController,this[i]=!1,this[s]=!1,this.addEventListener("invalid",a=>{this[Na]||!a.isTrusted||this.addEventListener("invalid",()=>{this[ja](a)},{once:!0})},{capture:!0})}checkValidity(){this[Na]=!0;const o=super.checkValidity();return this[Na]=!1,o}reportValidity(){this[Ba]=!0;const o=super.reportValidity();return o&&this[ja](null),this[Ba]=!1,o}[(e=Fa,i=Na,s=Ba,ja)](o){const a=o==null?void 0:o.defaultPrevented;a||(this[Hl](o),!(!a&&(o==null?void 0:o.defaultPrevented)))||(this[Ba]||WT(this[Ft].form,this))&&this.focus()}[Hl](o){throw new Error("Implement [onReportValidity]")}formAssociatedCallback(o){super.formAssociatedCallback&&super.formAssociatedCallback(o),this[Fa].abort(),o&&(this[Fa]=new AbortController,qT(this,o,()=>{this[ja](null)},this[Fa].signal))}}return n}function qT(t,e,i,s){const n=HT(e);let r=!1,o,a=!1;n.addEventListener("before",()=>{a=!0,o=new AbortController,r=!1,t.addEventListener("invalid",()=>{r=!0},{signal:o.signal})},{signal:s}),n.addEventListener("after",()=>{a=!1,o==null||o.abort(),!r&&i()},{signal:s}),e.addEventListener("submit",()=>{a||i()},{signal:s})}const Ed=new WeakMap;function HT(t){if(!Ed.has(t)){const e=new EventTarget;Ed.set(t,e);for(const i of["reportValidity","requestSubmit"]){const s=t[i];t[i]=function(){e.dispatchEvent(new Event("before"));const n=Reflect.apply(s,this,arguments);return e.dispatchEvent(new Event("after")),n}}}return Ed.get(t)}function WT(t,e){if(!t)return!0;let i;for(const s of t.elements)if(s.matches(":invalid")){i=s;break}return i===e}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class Dc{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const e=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,e)))return this.currentValidity;const{validity:s,validationMessage:n}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:n,validity:{badInput:s.badInput,customError:s.customError,patternMismatch:s.patternMismatch,rangeOverflow:s.rangeOverflow,rangeUnderflow:s.rangeUnderflow,stepMismatch:s.stepMismatch,tooLong:s.tooLong,tooShort:s.tooShort,typeMismatch:s.typeMismatch,valueMissing:s.valueMissing}},this.currentValidity}}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class KT extends Dc{computeValidity(e){return this.selectControl||(this.selectControl=document.createElement("select")),Zh(ce``,this.selectControl),this.selectControl.value=e.value,this.selectControl.required=e.required,{validity:this.selectControl.validity,validationMessage:this.selectControl.validationMessage}}equals(e,i){return e.value===i.value&&e.required===i.required}copy({value:e,required:i}){return{value:e,required:i}}}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */function GT(t){const e=[];for(let i=0;ie)}get hasError(){return this.error||this.nativeError}constructor(){super(),this.quick=!1,this.required=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.supportingText="",this.error=!1,this.menuPositioning="popover",this.clampMenuWidth=!1,this.typeaheadDelay=t0,this.hasLeadingIcon=!1,this.displayText="",this.menuAlign="start",this[jg]="",this.lastUserSetValue=null,this.lastUserSetSelectedIndex=null,this.lastSelectedOption=null,this.lastSelectedOptionRecords=[],this.nativeError=!1,this.nativeErrorText="",this.focused=!1,this.open=!1,this.defaultFocus=wi.NONE,this.prevOpen=this.open,this.selectWidth=0,this.addEventListener("focus",this.handleFocus.bind(this)),this.addEventListener("blur",this.handleBlur.bind(this))}select(e){const i=this.options.find(s=>s.value===e);i&&this.selectItem(i)}selectIndex(e){const i=this.options[e];i&&this.selectItem(i)}reset(){for(const e of this.options)e.selected=e.hasAttribute("selected");this.updateValueAndDisplayText(),this.nativeError=!1,this.nativeErrorText=""}[(jg=za,Hl)](e){var s;e==null||e.preventDefault();const i=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,i===this.getErrorText()&&((s=this.field)==null||s.reannounceError())}update(e){if(this.hasUpdated||this.initUserSelection(),this.prevOpen!==this.open&&this.open){const i=this.getBoundingClientRect();this.selectWidth=i.width}this.prevOpen=this.open,super.update(e)}render(){return ce` + + ${this.renderField()} ${this.renderMenu()} + + `}async firstUpdated(e){var i;await((i=this.menu)==null?void 0:i.updateComplete),this.lastSelectedOptionRecords.length||this.initUserSelection(),!this.lastSelectedOptionRecords.length&&!this.options.length&&setTimeout(()=>{this.updateValueAndDisplayText()}),super.firstUpdated(e)}getRenderClasses(){return{disabled:this.disabled,error:this.error,open:this.open}}renderField(){const e=this.ariaLabel||this.label;return Ky` + <${this.fieldTag} + aria-haspopup="listbox" + role="combobox" + part="field" + id="field" + tabindex=${this.disabled?"-1":"0"} + aria-label=${e||se} + aria-describedby="description" + aria-expanded=${this.open?"true":"false"} + aria-controls="listbox" + class="field" + label=${this.label} + ?no-asterisk=${this.noAsterisk} + .focused=${this.focused||this.open} + .populated=${!!this.displayText} + .disabled=${this.disabled} + .required=${this.required} + .error=${this.hasError} + ?has-start=${this.hasLeadingIcon} + has-end + supporting-text=${this.supportingText} + error-text=${this.getErrorText()} + @keydown=${this.handleKeydown} + @click=${this.handleClick}> + ${this.renderFieldContent()} +
+ `}renderFieldContent(){return[this.renderLeadingIcon(),this.renderLabel(),this.renderTrailingIcon()]}renderLeadingIcon(){return ce` + + + + `}renderTrailingIcon(){return ce` + + + + + + + + + `}renderLabel(){return ce`
${this.displayText||ce` `}
`}renderMenu(){const e=this.label||this.ariaLabel;return ce``}renderMenuContent(){return ce``}handleKeydown(e){var r,o;if(this.open||this.disabled||!this.menu)return;const i=this.menu.typeaheadController,s=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!i.isTypingAhead&&s){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=wi.NONE;break;case"End":this.defaultFocus=wi.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=wi.FIRST_ITEM;break}return}if(e.key.length===1){i.onKeydown(e),e.preventDefault();const{lastActiveRecord:a}=i;if(!a)return;(o=(r=this.labelEl)==null?void 0:r.setAttribute)==null||o.call(r,"aria-live","polite"),this.selectItem(a[li.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&Du(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=GT(e),this.lastSelectedOptionRecords}async getUpdateComplete(){var e;return await((e=this.menu)==null?void 0:e.updateComplete),super.getUpdateComplete()}updateValueAndDisplayText(){const e=this.getSelectedOptions()??[];let i=!1;if(e.length){const[s]=e[0];i=this.lastSelectedOption!==s,this.lastSelectedOption=s,this[za]=s.value,this.displayText=s.displayText}else i=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[za]="",this.displayText="";return i}async handleOpening(e){var r,o,a;if((o=(r=this.labelEl)==null?void 0:r.removeAttribute)==null||o.call(r,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==wi.NONE)return;const i=this.menu.items,s=(a=Eo(i))==null?void 0:a.item;let[n]=this.lastSelectedOptionRecords[0]??[null];s&&s!==n&&(s.tabIndex=-1),n=n??i[0],n&&(n.tabIndex=0,n.focus())}redispatchEvent(e){of(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const i=e.detail.reason,s=e.detail.itemPath[0];this.open=!1;let n=!1;i.kind==="click-selection"?n=this.selectItem(s):i.kind==="keydown"&&DT(i.key)?n=this.selectItem(s):(s.tabIndex=-1,s.blur()),n&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([s])=>{e!==s&&(s.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const i=e.target;this.lastSelectedOptionRecords.some(([s])=>s===i)||this.selectItem(i)}handleRequestDeselection(e){const i=e.target;this.lastSelectedOptionRecords.some(([s])=>s===i)&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):this.lastUserSetSelectedIndex!==null&&!this.lastSelectedOptionRecords.length?this.selectIndex(this.lastUserSetSelectedIndex):this.updateValueAndDisplayText()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[In](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[Er](){return new KT(()=>this)}[Pr](){return this.field}}We.shadowRootOptions={...ot.shadowRootOptions,delegatesFocus:!0};F([J({type:Boolean})],We.prototype,"quick",void 0);F([J({type:Boolean})],We.prototype,"required",void 0);F([J({type:String,attribute:"error-text"})],We.prototype,"errorText",void 0);F([J()],We.prototype,"label",void 0);F([J({type:Boolean,attribute:"no-asterisk"})],We.prototype,"noAsterisk",void 0);F([J({type:String,attribute:"supporting-text"})],We.prototype,"supportingText",void 0);F([J({type:Boolean,reflect:!0})],We.prototype,"error",void 0);F([J({attribute:"menu-positioning"})],We.prototype,"menuPositioning",void 0);F([J({type:Boolean,attribute:"clamp-menu-width"})],We.prototype,"clampMenuWidth",void 0);F([J({type:Number,attribute:"typeahead-delay"})],We.prototype,"typeaheadDelay",void 0);F([J({type:Boolean,attribute:"has-leading-icon"})],We.prototype,"hasLeadingIcon",void 0);F([J({attribute:"display-text"})],We.prototype,"displayText",void 0);F([J({attribute:"menu-align"})],We.prototype,"menuAlign",void 0);F([J()],We.prototype,"value",null);F([J({type:Number,attribute:"selected-index"})],We.prototype,"selectedIndex",null);F([jt()],We.prototype,"nativeError",void 0);F([jt()],We.prototype,"nativeErrorText",void 0);F([jt()],We.prototype,"focused",void 0);F([jt()],We.prototype,"open",void 0);F([jt()],We.prototype,"defaultFocus",void 0);F([zt(".field")],We.prototype,"field",void 0);F([zt("md-menu")],We.prototype,"menu",void 0);F([zt("#label")],We.prototype,"labelEl",void 0);F([sn({slot:"leading-icon",flatten:!0})],We.prototype,"leadingIcons",void 0);/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class JT extends We{constructor(){super(...arguments),this.fieldTag=sf`md-outlined-field`}}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const XT=dt`:host{--_text-field-disabled-input-text-color: var(--md-outlined-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-outlined-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-outlined-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-outlined-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-outlined-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-outlined-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-outline-color: var(--md-outlined-select-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-outline-opacity: var(--md-outlined-select-text-field-disabled-outline-opacity, 0.12);--_text-field-disabled-outline-width: var(--md-outlined-select-text-field-disabled-outline-width, 1px);--_text-field-disabled-supporting-text-color: var(--md-outlined-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-outlined-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-outlined-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-outlined-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-focus-input-text-color: var(--md-outlined-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-outlined-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-outlined-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-outline-color: var(--md-outlined-select-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-supporting-text-color: var(--md-outlined-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-outlined-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-input-text-color: var(--md-outlined-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-outlined-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-outlined-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-outline-color: var(--md-outlined-select-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-supporting-text-color: var(--md-outlined-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-outlined-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-outlined-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-outlined-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-outlined-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-outline-color: var(--md-outlined-select-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-supporting-text-color: var(--md-outlined-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-outlined-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-input-text-color: var(--md-outlined-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-outlined-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-outlined-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-outline-color: var(--md-outlined-select-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-outline-width: var(--md-outlined-select-text-field-focus-outline-width, 3px);--_text-field-focus-supporting-text-color: var(--md-outlined-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-outlined-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-input-text-color: var(--md-outlined-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-outlined-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-outlined-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-outline-color: var(--md-outlined-select-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-outline-width: var(--md-outlined-select-text-field-hover-outline-width, 1px);--_text-field-hover-supporting-text-color: var(--md-outlined-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-outlined-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-outlined-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-outlined-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-outlined-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-outlined-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-outlined-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-outlined-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-outlined-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-outlined-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-outlined-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-outlined-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-outlined-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-outlined-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-outlined-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-outlined-select-text-field-leading-icon-size, 24px);--_text-field-outline-color: var(--md-outlined-select-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_text-field-outline-width: var(--md-outlined-select-text-field-outline-width, 1px);--_text-field-supporting-text-color: var(--md-outlined-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-outlined-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-outlined-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-outlined-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-outlined-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-outlined-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-outlined-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-outlined-select-text-field-container-shape-start-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-outlined-select-text-field-container-shape-start-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-outlined-select-text-field-container-shape-end-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-start: var(--md-outlined-select-text-field-container-shape-end-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--md-outlined-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-outlined-field-content-color: var(--_text-field-input-text-color);--md-outlined-field-content-font: var(--_text-field-input-text-font);--md-outlined-field-content-line-height: var(--_text-field-input-text-line-height);--md-outlined-field-content-size: var(--_text-field-input-text-size);--md-outlined-field-content-weight: var(--_text-field-input-text-weight);--md-outlined-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_text-field-disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_text-field-disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_text-field-disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_text-field-error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_text-field-error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_text-field-error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_text-field-error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_text-field-focus-outline-color);--md-outlined-field-focus-outline-width: var(--_text-field-focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_text-field-hover-outline-color);--md-outlined-field-hover-outline-width: var(--_text-field-hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_text-field-label-text-color);--md-outlined-field-label-text-font: var(--_text-field-label-text-font);--md-outlined-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-outlined-field-label-text-size: var(--_text-field-label-text-size);--md-outlined-field-label-text-weight: var(--_text-field-label-text-weight);--md-outlined-field-leading-content-color: var(--_text-field-leading-icon-color);--md-outlined-field-outline-color: var(--_text-field-outline-color);--md-outlined-field-outline-width: var(--_text-field-outline-width);--md-outlined-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-outlined-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-outlined-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)} +`;/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const QT=dt`:host{color:unset;min-width:210px;display:flex}.field{cursor:default;outline:none}.select{position:relative;flex-direction:column}.icon.trailing svg,.icon ::slotted(*){fill:currentColor}.icon ::slotted(*){width:inherit;height:inherit;font-size:inherit}.icon slot{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.icon.trailing :is(.up,.down){opacity:0;transition:opacity 75ms linear 75ms}.select:not(.open) .down,.select.open .up{opacity:1}.field,.select,md-menu{min-width:inherit;width:inherit;max-width:inherit;display:flex}md-menu{min-width:var(--__menu-min-width);max-width:var(--__menu-max-width, inherit)}.menu-wrapper{width:0px;height:0px;max-width:inherit}md-menu ::slotted(:not[disabled]){cursor:pointer}.field,.select{width:100%}:host{display:inline-flex}:host([disabled]){pointer-events:none} +`;/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let ju=class extends JT{};ju.styles=[QT,XT];ju=F([Zt("md-outlined-select")],ju);const ZT=["display-text","error"],eE=["selected","aria-label","onClick"],tE={slot:"headline"},iE={props:{choices:{default:[]},modelValue:{required:!0},error:{default:!1}},methods:{setChoice(t){this.$emit("update:modelValue",t)}},computed:{getActiveChoice(){return this.modelValue>=this.choices.length?{}:this.choices[this.modelValue]}}},ls=Se({...iE,__name:"Dropdown",setup(t){return(e,i)=>(q(),G("md-outlined-select",{class:"choice-select","display-text":e.getActiveChoice.text,error:t.error},[(q(!0),G(ye,null,st(t.choices,(s,n)=>(q(),G("md-select-option",{selected:n==t.modelValue,key:s.key,ref_for:!0,ref:e.getActiveChoice.key,"aria-label":s.text,onClick:r=>e.setChoice(n)},[X("div",tE,fe(s.text),1)],8,eE))),128))],8,ZT))}});/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const sE=450,zg=225,nE=.2,rE=10,oE=75,aE=.35,lE="::after",cE="forwards";var Rt;(function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(Rt||(Rt={}));const dE=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],uE=150,Pd=window.matchMedia("(forced-colors: active)");class va extends ot{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Rt.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Yy(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return ce`
`}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==Rt.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===Rt.HOLDING){this.state=Rt.WAITING_FOR_CLICK;return}if(this.state===Rt.TOUCH_DELAY){this.state=Rt.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=Rt.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=Rt.TOUCH_DELAY,await new Promise(i=>{setTimeout(i,uE)}),this.state===Rt.TOUCH_DELAY&&(this.state=Rt.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===Rt.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===Rt.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:i}=this.getBoundingClientRect(),s=Math.max(e,i),n=Math.max(aE*s,oE),r=Math.floor(s*nE),a=Math.sqrt(i**2+e**2)+rE;this.initialSize=r,this.rippleScale=`${(a+n)/r}`,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(e){const{scrollX:i,scrollY:s}=window,{left:n,top:r}=this.getBoundingClientRect(),o=i+n,a=s+r,{pageX:l,pageY:c}=e;return{x:l-o,y:c-a}}getTranslationCoordinates(e){const{height:i,width:s}=this.getBoundingClientRect(),n={x:(s-this.initialSize)/2,y:(i-this.initialSize)/2};let r;return e instanceof PointerEvent?r=this.getNormalizedPointerEventCoords(e):r={x:s/2,y:i/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:n}}startPressAnimation(e){var o;if(!this.mdRoot)return;this.pressed=!0,(o=this.growAnimation)==null||o.cancel(),this.determineRippleSize();const{startPoint:i,endPoint:s}=this.getTranslationCoordinates(e),n=`${i.x}px, ${i.y}px`,r=`${s.x}px, ${s.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${n}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:lE,duration:sE,easing:hr.STANDARD,fill:cE})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Rt.INACTIVE;const e=this.growAnimation;let i=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?i=e.currentTime:e!=null&&e.currentTime&&(i=e.currentTime.to("ms").value),i>=zg){this.pressed=!1;return}await new Promise(s=>{setTimeout(s,zg-i)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const i=e.buttons===1;return this.isTouch(e)||i}inBounds({x:e,y:i}){const{top:s,left:n,bottom:r,right:o}=this.getBoundingClientRect();return e>=n&&e<=o&&i>=s&&i<=r}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){if(!(Pd!=null&&Pd.matches))switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,i){for(const s of dE)e==null||e.removeEventListener(s,this),i==null||i.addEventListener(s,this)}}F([J({type:Boolean,reflect:!0})],va.prototype,"disabled",void 0);F([jt()],va.prototype,"hovered",void 0);F([jt()],va.prototype,"pressed",void 0);F([zt(".surface")],va.prototype,"mdRoot",void 0);/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const hE=dt`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms} +`;/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let zu=class extends va{};zu.styles=[hE];zu=F([Zt("md-ripple")],zu);/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const o0=Symbol("dispatchHooks");function fE(t,e){const i=t[o0];if(!i)throw new Error(`'${t.type}' event needs setupDispatchHooks().`);i.addEventListener("after",e)}const Vg=new WeakMap;function pE(t,...e){let i=Vg.get(t);i||(i=new Set,Vg.set(t,i));for(const s of e){if(i.has(s))continue;let n=!1;t.addEventListener(s,r=>{if(n)return;r.stopImmediatePropagation();const o=Reflect.construct(r.constructor,[r.type,r]),a=new EventTarget;o[o0]=a,n=!0;const l=t.dispatchEvent(o);n=!1,l||r.preventDefault(),a.dispatchEvent(new Event("after"))},{capture:!0}),i.add(s)}}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */function a0(t){const e=new MouseEvent("click",{bubbles:!0});return t.dispatchEvent(e),e}function af(t){return t.currentTarget!==t.target||t.composedPath()[0]!==t.target||t.target.disabled?!1:!gE(t)}function gE(t){const e=Vu;return e&&(t.preventDefault(),t.stopImmediatePropagation()),mE(),e}let Vu=!1;async function mE(){Vu=!0,await null,Vu=!1}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class vE extends Dc{computeValidity(e){return this.checkboxControl||(this.checkboxControl=document.createElement("input"),this.checkboxControl.type="checkbox"),this.checkboxControl.checked=e.checked,this.checkboxControl.required=e.required,{validity:this.checkboxControl.validity,validationMessage:this.checkboxControl.validationMessage}}equals(e,i){return e.checked===i.checked&&e.required===i.required}copy({checked:e,required:i}){return{checked:e,required:i}}}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const bE=ga($c(Lc(ma(ot))));class nn extends bE{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!af(e)||!this.input||(this.focus(),a0(this.input))}),pE(this,"keydown"),this.addEventListener("keydown",e=>{fE(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return ce` +
+ + + + ${this.renderHandle()} +
+ `}getRenderClasses(){return{selected:this.selected,unselected:!this.selected,disabled:this.disabled}}renderHandle(){const e={"with-icon":this.showOnlySelectedIcon?this.selected:this.icons};return ce` + ${this.renderTouchTarget()} + + + + ${this.shouldShowIcons()?this.renderIcons():ce``} + + + `}renderIcons(){return ce` +
+ ${this.renderOnIcon()} + ${this.showOnlySelectedIcon?ce``:this.renderOffIcon()} +
+ `}renderOnIcon(){return ce` + + + + + + `}renderOffIcon(){return ce` + + + + + + `}renderTouchTarget(){return ce``}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const i=e.target;this.selected=i.checked}handleChange(e){of(this,e)}[In](){return this.selected?this.value:null}[ql](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[Er](){return new vE(()=>({checked:this.selected,required:this.required}))}[Pr](){return this.input}}nn.shadowRootOptions={mode:"open",delegatesFocus:!0};F([J({type:Boolean})],nn.prototype,"selected",void 0);F([J({type:Boolean})],nn.prototype,"icons",void 0);F([J({type:Boolean,attribute:"show-only-selected-icon"})],nn.prototype,"showOnlySelectedIcon",void 0);F([J({type:Boolean})],nn.prototype,"required",void 0);F([J()],nn.prototype,"value",void 0);F([zt("input")],nn.prototype,"input",void 0);/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const yE=dt`@layer styles, hcm;@layer styles{:host{display:inline-flex;outline:none;vertical-align:top;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-switch-track-height, 32px))/2) 0px}md-focus-ring{--md-focus-ring-shape-start-start: var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-start-end: var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-end: var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-start: var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}.switch{align-items:center;display:inline-flex;flex-shrink:0;position:relative;width:var(--md-switch-track-width, 52px);height:var(--md-switch-track-height, 32px);border-start-start-radius:var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}input{appearance:none;height:max(100%,var(--md-switch-touch-target-size, 48px));outline:none;margin:0;position:absolute;width:max(100%,var(--md-switch-touch-target-size, 48px));z-index:1;cursor:inherit;top:50%;left:50%;transform:translate(-50%, -50%)}:host([touch-target=none]) input{display:none}}@layer styles{.track{position:absolute;width:100%;height:100%;box-sizing:border-box;border-radius:inherit;display:flex;justify-content:center;align-items:center}.track::before{content:"";display:flex;position:absolute;height:100%;width:100%;border-radius:inherit;box-sizing:border-box;transition-property:opacity,background-color;transition-timing-function:linear;transition-duration:67ms}.disabled .track{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.disabled .track::before,.disabled .track::after{transition:none;opacity:var(--md-switch-disabled-track-opacity, 0.12)}.disabled .track::before{background-clip:content-box}.selected .track::before{background-color:var(--md-switch-selected-track-color, var(--md-sys-color-primary, #6750a4))}.selected:hover .track::before{background-color:var(--md-switch-selected-hover-track-color, var(--md-sys-color-primary, #6750a4))}.selected:focus-within .track::before{background-color:var(--md-switch-selected-focus-track-color, var(--md-sys-color-primary, #6750a4))}.selected:active .track::before{background-color:var(--md-switch-selected-pressed-track-color, var(--md-sys-color-primary, #6750a4))}.selected.disabled .track{background-clip:border-box}.selected.disabled .track::before{background-color:var(--md-switch-disabled-selected-track-color, var(--md-sys-color-on-surface, #1d1b20))}.unselected .track::before{background-color:var(--md-switch-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-track-outline-color, var(--md-sys-color-outline, #79747e));border-style:solid;border-width:var(--md-switch-track-outline-width, 2px)}.unselected:hover .track::before{background-color:var(--md-switch-hover-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-hover-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:focus-visible .track::before{background-color:var(--md-switch-focus-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-focus-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:active .track::before{background-color:var(--md-switch-pressed-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-pressed-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected.disabled .track::before{background-color:var(--md-switch-disabled-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-disabled-track-outline-color, var(--md-sys-color-on-surface, #1d1b20))}}@layer hcm{@media(forced-colors: active){.selected .track::before{background:ButtonText;border-color:ButtonText}.disabled .track::before{border-color:GrayText;opacity:1}.disabled.selected .track::before{background:GrayText}}}@layer styles{.handle-container{display:flex;place-content:center;place-items:center;position:relative;transition:margin 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.selected .handle-container{margin-inline-start:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.unselected .handle-container{margin-inline-end:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.disabled .handle-container{transition:none}.handle{border-start-start-radius:var(--md-switch-handle-shape-start-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-handle-shape-start-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-handle-shape-end-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-handle-shape-end-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));height:var(--md-switch-handle-height, 16px);width:var(--md-switch-handle-width, 16px);transform-origin:center;transition-property:height,width;transition-duration:250ms,250ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1),cubic-bezier(0.2, 0, 0, 1);z-index:0}.handle::before{content:"";display:flex;inset:0;position:absolute;border-radius:inherit;box-sizing:border-box;transition:background-color 67ms linear}.disabled .handle,.disabled .handle::before{transition:none}.selected .handle{height:var(--md-switch-selected-handle-height, 24px);width:var(--md-switch-selected-handle-width, 24px)}.handle.with-icon{height:var(--md-switch-with-icon-handle-height, 24px);width:var(--md-switch-with-icon-handle-width, 24px)}.selected:not(.disabled):active .handle,.unselected:not(.disabled):active .handle{height:var(--md-switch-pressed-handle-height, 28px);width:var(--md-switch-pressed-handle-width, 28px);transition-timing-function:linear;transition-duration:100ms}.selected .handle::before{background-color:var(--md-switch-selected-handle-color, var(--md-sys-color-on-primary, #fff))}.selected:hover .handle::before{background-color:var(--md-switch-selected-hover-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:focus-within .handle::before{background-color:var(--md-switch-selected-focus-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:active .handle::before{background-color:var(--md-switch-selected-pressed-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected.disabled .handle::before{background-color:var(--md-switch-disabled-selected-handle-color, var(--md-sys-color-surface, #fef7ff));opacity:var(--md-switch-disabled-selected-handle-opacity, 1)}.unselected .handle::before{background-color:var(--md-switch-handle-color, var(--md-sys-color-outline, #79747e))}.unselected:hover .handle::before{background-color:var(--md-switch-hover-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:focus-within .handle::before{background-color:var(--md-switch-focus-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:active .handle::before{background-color:var(--md-switch-pressed-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected.disabled .handle::before{background-color:var(--md-switch-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-handle-opacity, 0.38)}md-ripple{border-radius:var(--md-switch-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-switch-state-layer-size, 40px);inset:unset;width:var(--md-switch-state-layer-size, 40px)}.selected md-ripple{--md-ripple-hover-color: var(--md-switch-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-color: var(--md-switch-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-switch-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-selected-pressed-state-layer-opacity, 0.12)}.unselected md-ripple{--md-ripple-hover-color: var(--md-switch-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-color: var(--md-switch-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-switch-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-pressed-state-layer-opacity, 0.12)}}@layer hcm{@media(forced-colors: active){.unselected .handle::before{background:ButtonText}.disabled .handle::before{opacity:1}.disabled.unselected .handle::before{background:GrayText}}}@layer styles{.icons{position:relative;height:100%;width:100%}.icon{position:absolute;inset:0;margin:auto;display:flex;align-items:center;justify-content:center;fill:currentColor;transition:fill 67ms linear,opacity 33ms linear,transform 167ms cubic-bezier(0.2, 0, 0, 1);opacity:0}.disabled .icon{transition:none}.selected .icon--on,.unselected .icon--off{opacity:1}.unselected .handle:not(.with-icon) .icon--on{transform:rotate(-45deg)}.icon--off{width:var(--md-switch-icon-size, 16px);height:var(--md-switch-icon-size, 16px);color:var(--md-switch-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:hover .icon--off{color:var(--md-switch-hover-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:focus-within .icon--off{color:var(--md-switch-focus-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:active .icon--off{color:var(--md-switch-pressed-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected.disabled .icon--off{color:var(--md-switch-disabled-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9));opacity:var(--md-switch-disabled-icon-opacity, 0.38)}.icon--on{width:var(--md-switch-selected-icon-size, 16px);height:var(--md-switch-selected-icon-size, 16px);color:var(--md-switch-selected-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:hover .icon--on{color:var(--md-switch-selected-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:focus-within .icon--on{color:var(--md-switch-selected-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:active .icon--on{color:var(--md-switch-selected-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected.disabled .icon--on{color:var(--md-switch-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon--off{fill:Canvas}.icon--on{fill:ButtonText}.disabled.unselected .icon--off,.disabled.selected .icon--on{opacity:1}.disabled .icon--on{fill:GrayText}}} +`;/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let Uu=class extends nn{};Uu.styles=[yE];Uu=F([Zt("md-switch")],Uu);const _E=["selected"],xE={props:{modelValue:{}},computed:{isSelected(){return this.modelValue}},methods:{updateSwitch(){this.$emit("update:modelValue",!this.modelValue)}}},Ug=Se({...xE,__name:"Switch",setup(t){return(e,i)=>(q(),G("md-switch",{onInput:i[0]||(i[0]=(...s)=>e.updateSwitch&&e.updateSwitch(...s)),selected:e.isSelected},null,40,_E))}});/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const wE=dt`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)} +`;/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const kE=t=>t.strings===void 0,SE={},CE=(t,e=SE)=>t._$AH=e;/** + * @license + * Copyright 2020 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const qg=ef(class extends tf{constructor(t){if(super(t),t.type!==Ls.PROPERTY&&t.type!==Ls.ATTRIBUTE&&t.type!==Ls.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!kE(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===ui||e===se)return e;const i=t.element,s=t.name;if(t.type===Ls.PROPERTY){if(e===i[s])return ui}else if(t.type===Ls.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(s))return ui}else if(t.type===Ls.ATTRIBUTE&&i.getAttribute(s)===e+"")return ui;return CE(t),e}});/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const AE={fromAttribute(t){return t??""},toAttribute(t){return t||null}};/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class TE extends Dc{computeValidity({state:e,renderedControl:i}){let s=i;Jr(e)&&!s?(s=this.inputControl||document.createElement("input"),this.inputControl=s):s||(s=this.textAreaControl||document.createElement("textarea"),this.textAreaControl=s);const n=Jr(e)?s:null;if(n&&(n.type=e.type),s.value!==e.value&&(s.value=e.value),s.required=e.required,n){const r=e;r.pattern?n.pattern=r.pattern:n.removeAttribute("pattern"),r.min?n.min=r.min:n.removeAttribute("min"),r.max?n.max=r.max:n.removeAttribute("max"),r.step?n.step=r.step:n.removeAttribute("step")}return(e.minLength??-1)>-1?s.setAttribute("minlength",String(e.minLength)):s.removeAttribute("minlength"),(e.maxLength??-1)>-1?s.setAttribute("maxlength",String(e.maxLength)):s.removeAttribute("maxlength"),{validity:s.validity,validationMessage:s.validationMessage}}equals({state:e},{state:i}){const s=e.type===i.type&&e.value===i.value&&e.required===i.required&&e.minLength===i.minLength&&e.maxLength===i.maxLength;return!Jr(e)||!Jr(i)?s:s&&e.pattern===i.pattern&&e.min===i.min&&e.max===i.max&&e.step===i.step}copy({state:e}){return{state:Jr(e)?this.copyInput(e):this.copyTextArea(e),renderedControl:null}}copyInput(e){const{type:i,pattern:s,min:n,max:r,step:o}=e;return{...this.copySharedState(e),type:i,pattern:s,min:n,max:r,step:o}}copyTextArea(e){return{...this.copySharedState(e),type:e.type}}copySharedState({value:e,required:i,minLength:s,maxLength:n}){return{value:e,required:i,minLength:s,maxLength:n}}}function Jr(t){return t.type!=="textarea"}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const EE=ga(r0($c(Lc(ma(ot)))));class _e extends EE{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){const e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){const i=this.getInput();i&&(i.valueAsNumber=e,this.value=i.value)}get valueAsDate(){const e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){const i=this.getInput();i&&(i.valueAsDate=e,this.value=i.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,i,s){this.getInputOrTextarea().setSelectionRange(e,i,s)}showPicker(){const e=this.getInput();e&&e.showPicker()}stepDown(e){const i=this.getInput();i&&(i.stepDown(e),this.value=i.value)}stepUp(e){const i=this.getInput();i&&(i.stepUp(e),this.value=i.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,i,s){e==="value"&&this.dirty||super.attributeChangedCallback(e,i,s)}render(){const e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return ce` + + ${this.renderField()} + + `}updated(e){const i=this.getInputOrTextarea().value;this.value!==i&&(this.value=i)}renderField(){return Ky`<${this.fieldTag} + class="field" + count=${this.value.length} + ?disabled=${this.disabled} + ?error=${this.hasError} + error-text=${this.getErrorText()} + ?focused=${this.focused} + ?has-end=${this.hasTrailingIcon} + ?has-start=${this.hasLeadingIcon} + label=${this.label} + ?no-asterisk=${this.noAsterisk} + max=${this.maxLength} + ?populated=${!!this.value} + ?required=${this.required} + ?resizable=${this.type==="textarea"} + supporting-text=${this.supportingText} + > + ${this.renderLeadingIcon()} + ${this.renderInputOrTextarea()} + ${this.renderTrailingIcon()} +
+ + `}renderLeadingIcon(){return ce` + + + + `}renderTrailingIcon(){return ce` + + + + `}renderInputOrTextarea(){const e={direction:this.textDirection},i=this.ariaLabel||this.label||se,s=this.autocomplete,n=(this.maxLength??-1)>-1,r=(this.minLength??-1)>-1;if(this.type==="textarea")return ce` + + `;const o=this.renderPrefix(),a=this.renderSuffix(),l=this.inputMode;return ce` +
+ ${o} + + ${a} +
+ `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,i){return e?ce`${e}`:se}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){var e;this.focused=((e=this.inputOrTextarea)==null?void 0:e.matches(":focus"))??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){of(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type==="textarea"?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[In](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[Er](){return new TE(()=>({state:this,renderedControl:this.inputOrTextarea}))}[Pr](){return this.inputOrTextarea}[Hl](e){var s;e==null||e.preventDefault();const i=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,i===this.getErrorText()&&((s=this.field)==null||s.reannounceError())}}_e.shadowRootOptions={...ot.shadowRootOptions,delegatesFocus:!0};F([J({type:Boolean,reflect:!0})],_e.prototype,"error",void 0);F([J({attribute:"error-text"})],_e.prototype,"errorText",void 0);F([J()],_e.prototype,"label",void 0);F([J({type:Boolean,attribute:"no-asterisk"})],_e.prototype,"noAsterisk",void 0);F([J({type:Boolean,reflect:!0})],_e.prototype,"required",void 0);F([J()],_e.prototype,"value",void 0);F([J({attribute:"prefix-text"})],_e.prototype,"prefixText",void 0);F([J({attribute:"suffix-text"})],_e.prototype,"suffixText",void 0);F([J({type:Boolean,attribute:"has-leading-icon"})],_e.prototype,"hasLeadingIcon",void 0);F([J({type:Boolean,attribute:"has-trailing-icon"})],_e.prototype,"hasTrailingIcon",void 0);F([J({attribute:"supporting-text"})],_e.prototype,"supportingText",void 0);F([J({attribute:"text-direction"})],_e.prototype,"textDirection",void 0);F([J({type:Number})],_e.prototype,"rows",void 0);F([J({type:Number})],_e.prototype,"cols",void 0);F([J({reflect:!0})],_e.prototype,"inputMode",void 0);F([J()],_e.prototype,"max",void 0);F([J({type:Number})],_e.prototype,"maxLength",void 0);F([J()],_e.prototype,"min",void 0);F([J({type:Number})],_e.prototype,"minLength",void 0);F([J({type:Boolean,attribute:"no-spinner"})],_e.prototype,"noSpinner",void 0);F([J()],_e.prototype,"pattern",void 0);F([J({reflect:!0,converter:AE})],_e.prototype,"placeholder",void 0);F([J({type:Boolean,reflect:!0})],_e.prototype,"readOnly",void 0);F([J({type:Boolean,reflect:!0})],_e.prototype,"multiple",void 0);F([J()],_e.prototype,"step",void 0);F([J({reflect:!0})],_e.prototype,"type",void 0);F([J({reflect:!0})],_e.prototype,"autocomplete",void 0);F([jt()],_e.prototype,"dirty",void 0);F([jt()],_e.prototype,"focused",void 0);F([jt()],_e.prototype,"nativeError",void 0);F([jt()],_e.prototype,"nativeErrorText",void 0);F([zt(".input")],_e.prototype,"inputOrTextarea",void 0);F([zt(".field")],_e.prototype,"field",void 0);F([sn({slot:"leading-icon"})],_e.prototype,"leadingIcons",void 0);F([sn({slot:"trailing-icon"})],_e.prototype,"trailingIcons",void 0);/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class PE extends _e{constructor(){super(...arguments),this.fieldTag=sf`md-outlined-field`}}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const OE=dt`:host{display:inline-flex;outline:none;resize:both;text-align:start;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}slot[name=container]{border-radius:inherit}.icon{color:currentColor;display:flex;align-items:center;justify-content:center;fill:currentColor;position:relative}.icon ::slotted(*){display:flex;position:absolute}[has-start] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[has-end] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background:none}}.no-spinner .input::-webkit-inner-spin-button,.no-spinner .input::-webkit-outer-spin-button{display:none}.no-spinner .input[type=number]{-moz-appearance:textfield}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)} +`;/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let qu=class extends PE{constructor(){super(...arguments),this.fieldTag=sf`md-outlined-field`}};qu.styles=[OE,wE];qu=F([Zt("md-outlined-text-field")],qu);const IE=["value","label"],ME={props:{modelValue:{required:!0},label:{default:""}},computed:{currentNumber(){return this.modelValue}},methods:{updateNumber(t){this.$emit("update:modelValue",Number(t.target.value))}}},RE=Se({...ME,__name:"Number",setup(t){return(e,i)=>(q(),G("md-outlined-text-field",{onInput:i[0]||(i[0]=(...s)=>e.updateNumber&&e.updateNumber(...s)),type:"number",value:t.modelValue,noSpinner:"true",label:t.label},null,40,IE))}});/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */function $E(t){t.addInitializer(e=>{const i=e;i.addEventListener("click",async s=>{const{type:n,[Ft]:r}=i,{form:o}=r;if(!(!o||n==="button")&&(await new Promise(a=>{setTimeout(a)}),!s.defaultPrevented)){if(n==="reset"){o.reset();return}o.addEventListener("submit",a=>{Object.defineProperty(a,"submitter",{configurable:!0,enumerable:!0,get:()=>i})},{capture:!0,once:!0}),r.setFormValue(i.value),o.requestSubmit()}})})}/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const LE=ga(ma(ot));class Ot extends LE{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[Ft].form}constructor(){super(),this.disabled=!1,this.softDisabled=!1,this.href="",this.download="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.addEventListener("click",this.handleClick.bind(this))}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){var n;const e=!this.href&&(this.disabled||this.softDisabled),i=this.href?this.renderLink():this.renderButton(),s=this.href?"link":"button";return ce` + ${(n=this.renderElevationOrOutline)==null?void 0:n.call(this)} +
+ + + ${i} + `}renderButton(){const{ariaLabel:e,ariaHasPopup:i,ariaExpanded:s}=this;return ce``}renderLink(){const{ariaLabel:e,ariaHasPopup:i,ariaExpanded:s}=this;return ce`${this.renderContent()} + `}renderContent(){const e=ce``;return ce` + + ${this.trailingIcon?se:e} + + ${this.trailingIcon?e:se} + `}handleClick(e){if(!this.href&&this.softDisabled){e.stopImmediatePropagation(),e.preventDefault();return}!af(e)||!this.buttonElement||(this.focus(),a0(this.buttonElement))}handleSlotChange(){this.hasIcon=this.assignedIcons.length>0}}$E(Ot);Ot.formAssociated=!0;Ot.shadowRootOptions={mode:"open",delegatesFocus:!0};F([J({type:Boolean,reflect:!0})],Ot.prototype,"disabled",void 0);F([J({type:Boolean,attribute:"soft-disabled",reflect:!0})],Ot.prototype,"softDisabled",void 0);F([J()],Ot.prototype,"href",void 0);F([J()],Ot.prototype,"download",void 0);F([J()],Ot.prototype,"target",void 0);F([J({type:Boolean,attribute:"trailing-icon",reflect:!0})],Ot.prototype,"trailingIcon",void 0);F([J({type:Boolean,attribute:"has-icon",reflect:!0})],Ot.prototype,"hasIcon",void 0);F([J()],Ot.prototype,"type",void 0);F([J({reflect:!0})],Ot.prototype,"value",void 0);F([zt(".button")],Ot.prototype,"buttonElement",void 0);F([sn({slot:"icon",flatten:!0})],Ot.prototype,"assignedIcons",void 0);/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class DE extends Ot{renderElevationOrOutline(){return ce``}}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const FE=dt`:host{--_container-color: var(--md-elevated-button-container-color, var(--md-sys-color-surface-container-low, #f7f2fa));--_container-elevation: var(--md-elevated-button-container-elevation, 1);--_container-height: var(--md-elevated-button-container-height, 40px);--_container-shadow-color: var(--md-elevated-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-elevated-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-elevated-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-elevated-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-elevated-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-elevated-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-elevated-button-focus-container-elevation, 1);--_focus-label-text-color: var(--md-elevated-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-container-elevation: var(--md-elevated-button-hover-container-elevation, 2);--_hover-label-text-color: var(--md-elevated-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-elevated-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-elevated-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-elevated-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-elevated-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-elevated-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-elevated-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-elevated-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-elevated-button-pressed-container-elevation, 1);--_pressed-label-text-color: var(--md-elevated-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-elevated-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-elevated-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-elevated-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-elevated-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-elevated-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-elevated-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-elevated-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-elevated-button-icon-size, 18px);--_pressed-icon-color: var(--md-elevated-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-elevated-button-container-shape-start-start, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-elevated-button-container-shape-start-end, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-elevated-button-container-shape-end-end, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-elevated-button-container-shape-end-start, var(--md-elevated-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-elevated-button-leading-space, 24px);--_trailing-space: var(--md-elevated-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-elevated-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-elevated-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-elevated-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-elevated-button-with-trailing-icon-trailing-space, 16px)} +`;/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const l0=dt`md-elevation{transition-duration:280ms}:host(:is([disabled],[soft-disabled])) md-elevation{transition:none}md-elevation{--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color)}:host(:focus-within) md-elevation{--md-elevation-level: var(--_focus-container-elevation)}:host(:hover) md-elevation{--md-elevation-level: var(--_hover-container-elevation)}:host(:active) md-elevation{--md-elevation-level: var(--_pressed-container-elevation)}:host(:is([disabled],[soft-disabled])) md-elevation{--md-elevation-level: var(--_disabled-container-elevation)} +`;/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const c0=dt`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background-color:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background-color:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none} +`;/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let Hu=class extends DE{};Hu.styles=[c0,l0,FE];Hu=F([Zt("md-elevated-button")],Hu);const NE={class:"counter-view-container"},BE={class:"counter-container"},jE={class:"count-number"},zE={props:{modelValue:{required:!0},label:{default:""},min:{default:0}},computed:{getCount(){return this.modelValue}},methods:{incrementCount(t){t.preventDefault(),this.$emit("update:modelValue",this.modelValue+1)},decrementCount(t){t.preventDefault(),this.modelValue!=this.min&&this.$emit("update:modelValue",this.modelValue-1)}}},VE=Se({...zE,__name:"Counter",setup(t){return(e,i)=>(q(),G("div",NE,[Fe(fe(t.label)+" ",1),X("div",BE,[X("md-elevated-button",{onClick:i[0]||(i[0]=(...s)=>e.decrementCount&&e.decrementCount(...s))},"-"),X("span",jE,fe(e.getCount),1),X("md-elevated-button",{onClick:i[1]||(i[1]=(...s)=>e.incrementCount&&e.incrementCount(...s))},"+")])]))}}),lf=vi(VE,[["__scopeId","data-v-01522cba"]]);/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const Va=Symbol("isFocusable"),Od=Symbol("privateIsFocusable"),Ua=Symbol("externalTabIndex"),qa=Symbol("isUpdatingTabIndex"),Ha=Symbol("updateTabIndex");function UE(t){var e,i,s;class n extends t{constructor(){super(...arguments),this[e]=!0,this[i]=null,this[s]=!1}get[Va](){return this[Od]}set[Va](o){this[Va]!==o&&(this[Od]=o,this[Ha]())}connectedCallback(){super.connectedCallback(),this[Ha]()}attributeChangedCallback(o,a,l){if(o!=="tabindex"){super.attributeChangedCallback(o,a,l);return}if(this.requestUpdate("tabIndex",Number(a??-1)),!this[qa]){if(!this.hasAttribute("tabindex")){this[Ua]=null,this[Ha]();return}this[Ua]=this.tabIndex}}[(e=Od,i=Ua,s=qa,Ha)](){const o=this[Va]?0:-1,a=this[Ua]??o;this[qa]=!0,this.tabIndex=a,this[qa]=!1}}return F([J({noAccessor:!0})],n.prototype,"tabIndex",void 0),n}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class qE extends Dc{computeValidity(e){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let i=!1,s=!1;for(const{checked:n,required:r}of e)r&&(i=!0),n&&(s=!0);return this.radioElement.checked=s,this.radioElement.required=i,{validity:{valueMissing:i&&!s},validationMessage:this.radioElement.validationMessage}}equals(e,i){if(e.length!==i.length)return!1;for(let s=0;s({checked:i,required:s}))}}/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class HE{get controls(){const e=this.host.getAttribute("name");return!e||!this.root||!this.host.isConnected?[this.host]:Array.from(this.root.querySelectorAll(`[name="${e}"]`))}constructor(e){this.host=e,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=i=>{const s=i.key==="ArrowDown",n=i.key==="ArrowUp",r=i.key==="ArrowLeft",o=i.key==="ArrowRight";if(!r&&!o&&!s&&!n)return;const a=this.controls;if(!a.length)return;i.preventDefault();const c=getComputedStyle(this.host).direction==="rtl"?r||s:o||s,d=a.indexOf(this.host);let u=c?d+1:d-1;for(;u!==d;){u>=a.length?u=0:u<0&&(u=a.length-1);const h=a[u];if(h.hasAttribute("disabled")){c?u++:u--;continue}for(const f of a)f!==h&&(f.checked=!1,f.tabIndex=-1,f.blur());h.checked=!0,h.tabIndex=0,h.focus(),h.dispatchEvent(new Event("change",{bubbles:!0}));break}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const e of this.controls)e!==this.host&&(e.checked=!1)}updateTabIndices(){const e=this.controls,i=e.find(s=>s.checked);if(i||this.focused){const s=i||this.host;s.tabIndex=0;for(const n of e)n!==s&&(n.tabIndex=-1);return}for(const s of e)s.tabIndex=0}}/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */var Hg;const Id=Symbol("checked");let WE=0;const KE=$c(Lc(ma(UE(ot))));class ba extends KE{get checked(){return this[Id]}set checked(e){const i=this.checked;i!==e&&(this[Id]=e,this.requestUpdate("checked",i),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId=`cutout${++WE}`,this[Hg]=!1,this.required=!1,this.value="on",this.selectionController=new HE(this),this.addController(this.selectionController),this[Ft].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e={checked:this.checked};return ce` + + `}updated(){this[Ft].ariaChecked=String(this.checked)}async handleClick(e){this.disabled||(await 0,!e.defaultPrevented&&(af(e)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(e){await 0,!(e.key!==" "||e.defaultPrevented)&&this.click()}[(Hg=Id,In)](){return this.checked?this.value:null}[ql](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(e){this.checked=e==="true"}[Er](){return new qE(()=>this.selectionController?this.selectionController.controls:[this])}[Pr](){return this.container}}F([J({type:Boolean})],ba.prototype,"checked",null);F([J({type:Boolean})],ba.prototype,"required",void 0);F([J()],ba.prototype,"value",void 0);F([zt(".container")],ba.prototype,"container",void 0);/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const GE=dt`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}.touch-target{height:48px;position:absolute;width:48px}:host([touch-target=none]) .touch-target{display:none}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}} +`;/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let Wu=class extends ba{};Wu.styles=[GE];Wu=F([Zt("md-radio")],Wu);const YE={key:0},JE={key:1},XE={key:2,class:"radio-group-container"},QE={class:"radio-input-container"},ZE=["name","value","checked","required"],eP={key:3},tP=["name","value","checked","required"],iP={props:{choices:{default:[]},modelValue:{required:!0},label:{default:""},required:{default:!1},error:{default:!1},isVertical:{default:!0}},methods:{setChoice(t){this.$emit("update:modelValue",t.target.value)},isChecked(t){return t==this.modelValue}},computed:{getActiveChoice(){return this.modelValue>=this.choices.length?{}:this.choices[this.modelValue]},getRadioClass(){return this.error?"radio-error":""}}},sP=Se({...iP,__name:"RadioButtons",setup(t){return(e,i)=>(q(),G(ye,null,[t.required?(q(),G("span",YE,fe(t.label)+"*",1)):(q(),G("span",JE,fe(t.label),1)),t.isVertical?(q(),G("div",XE,[(q(!0),G(ye,null,st(t.choices,s=>(q(),G("div",QE,[X("md-radio",{name:t.label,value:s.key,checked:e.isChecked(s.key),onInput:i[0]||(i[0]=(...n)=>e.setChoice&&e.setChoice(...n)),required:t.required,class:kr(e.getRadioClass)},null,42,ZE),X("span",null,fe(s.text),1)]))),256))])):(q(),G("div",eP,[X("table",null,[X("thead",null,[(q(!0),G(ye,null,st(t.choices,s=>(q(),G("th",null,fe(s.text),1))),256))]),X("tr",null,[(q(!0),G(ye,null,st(t.choices,s=>(q(),G("td",null,[X("md-radio",{name:t.label,value:s.key,checked:e.isChecked(s.key),onInput:i[1]||(i[1]=(...n)=>e.setChoice&&e.setChoice(...n)),required:t.required,class:kr(e.getRadioClass)},null,42,tP)]))),256))])])]))],64))}}),nP=vi(sP,[["__scopeId","data-v-cddfcf15"]]),rP={class:"label-container"},oP={props:{modelValue:{required:!0},label:{default:""},subLabels:{default:[]}},computed:{},methods:{updateModel(t,e){var i=this.modelValue;i[e]=t,this.$emit("update:modelValue",i)}}},aP=Se({...oP,__name:"StackedCounters",setup(t){return(e,i)=>(q(),G("div",null,[X("u",null,fe(t.label),1),X("table",null,[(q(!0),G(ye,null,st(t.modelValue,(s,n)=>(q(),G("tr",null,[X("td",null,[X("span",rP,fe(t.subLabels[n]),1)]),X("td",null,[oe(lf,{"model-value":s,"onUpdate:modelValue":r=>e.updateModel(r,n)},null,8,["model-value","onUpdate:modelValue"])])]))),256))])]))}}),lP=vi(aP,[["__scopeId","data-v-c5a939a8"]]),cP=["value","label","required","error"],dP={props:{modelValue:{required:!0},label:{default:""},required:{default:!1},error:{default:!1}},computed:{currentNumber(){return this.modelValue}},methods:{updateText(t){this.$emit("update:modelValue",t.target.value)}}},uP=Se({...dP,__name:"TextInput",setup(t){return(e,i)=>(q(),G("md-outlined-text-field",{onInput:i[0]||(i[0]=(...s)=>e.updateText&&e.updateText(...s)),type:"text",value:t.modelValue,label:t.label,required:t.required,error:t.error,"error-text":"This field is required"},null,40,cP))}}),hP=["value","label","cols","rows","maxLength"],fP={props:{modelValue:{required:!0},label:{default:""},cols:{default:100},rows:{default:2},maxLength:{default:2e3}},computed:{currentNumber(){return this.modelValue}},methods:{updateText(t){this.$emit("update:modelValue",t.target.value)}}},pP=Se({...fP,__name:"TextAreaInput",setup(t){return(e,i)=>(q(),G("md-outlined-text-field",{onInput:i[0]||(i[0]=(...s)=>e.updateText&&e.updateText(...s)),type:"textarea",value:t.modelValue,label:t.label,cols:t.cols,rows:t.rows,maxLength:t.maxLength},null,40,hP))}}),gP={class:"th-counters"},mP={class:"td-label"},vP={class:"label-container"},bP={class:"td-counters"},yP={props:{modelValue:{required:!0},label:{default:""},subLabels:{default:[]},sections:{default:[]}},computed:{},methods:{updateModel(t,e,i){var s=this.modelValue;s[e][i]=t,this.$emit("update:modelValue",s)}}},_P=Se({...yP,__name:"GridCounters",setup(t){return(e,i)=>(q(),G("div",null,[X("table",null,[X("thead",null,[X("th",null,[X("u",null,fe(t.label),1)]),(q(!0),G(ye,null,st(t.sections,(s,n)=>(q(),G("th",gP,fe(s.text),1))),256))]),(q(!0),G(ye,null,st(t.modelValue,(s,n)=>(q(),G("tr",null,[X("td",mP,[X("span",vP,fe(t.subLabels[n]),1)]),(q(!0),G(ye,null,st(t.sections,(r,o)=>(q(),G("td",bP,[oe(lf,{"model-value":s[o],"onUpdate:modelValue":a=>e.updateModel(a,n,o)},null,8,["model-value","onUpdate:modelValue"])]))),256))]))),256))])]))}}),xP=vi(_P,[["__scopeId","data-v-e5a2687e"]]),wP={key:0},kP={class:"data-entry-container"},SP={key:1},CP={class:"input-container"},AP={class:"label-container"},TP={class:"data-entry-container"},EP={key:2,class:"dropdown"},PP={key:3},OP={key:4},IP={key:5},MP={key:6},RP={key:7},$P={key:8},LP={key:9},DP={props:{modelValue:{required:!0},label:{default:""},options:{default:{}},type:{default:""},required:{default:!1},error:{default:!1}},methods:{updateModel(t){this.$emit("update:modelValue",t)}}},FP=Se({...DP,__name:"FormComponent",setup(t){return(e,i)=>{var s,n,r,o;return t.type=="switch"?(q(),G("div",wP,[X("div",kP,[Fe(fe(t.label)+" ",1),oe(Ug,{"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,class:"switch",required:t.required},null,8,["model-value","onUpdate:modelValue","required"])])])):t.type=="optionswitch"?(q(),G("div",SP,[X("div",CP,[X("div",AP,fe(t.label),1),X("div",TP,[Fe(fe(t.options.unselected)+" ",1),oe(Ug,{"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,"selected-color":(s=t.options)==null?void 0:s.selectedColor,"unselected-color":(n=t.options)==null?void 0:n.unselectedColor,class:"switch"},null,8,["model-value","onUpdate:modelValue","selected-color","unselected-color"]),Fe(" "+fe(t.options.selected),1)])])])):t.type=="dropdown"?(q(),G("div",EP,[Fe(fe(t.label)+" ",1),oe(ls,{choices:t.options.choices,"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,required:t.required,error:t.error},null,8,["choices","model-value","onUpdate:modelValue","required","error"])])):t.type=="radio"?(q(),G("div",PP,[oe(nP,{choices:t.options.choices,"model-value":t.modelValue,label:t.label,"onUpdate:modelValue":e.updateModel,required:t.required,error:t.error,"is-vertical":(r=t.options)==null?void 0:r.isVertical},null,8,["choices","model-value","label","onUpdate:modelValue","required","error","is-vertical"])])):t.type=="number"?(q(),G("div",OP,[oe(RE,{"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,label:t.label,required:t.required,error:t.error},null,8,["model-value","onUpdate:modelValue","label","required","error"])])):t.type=="counter"?(q(),G("div",IP,[oe(lf,{"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,label:t.label},null,8,["model-value","onUpdate:modelValue","label"])])):t.type=="stacked-counters"?(q(),G("div",MP,[oe(lP,{"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,label:t.label,"sub-labels":t.options.labels},null,8,["model-value","onUpdate:modelValue","label","sub-labels"])])):t.type=="grid-counters"?(q(),G("div",RP,[oe(xP,{"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,label:t.label,"sub-labels":t.options.labels,sections:(o=t.options)==null?void 0:o.sections},null,8,["model-value","onUpdate:modelValue","label","sub-labels","sections"])])):t.type=="text"?(q(),G("div",$P,[oe(uP,{"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,label:t.label,required:t.required,error:t.error},null,8,["model-value","onUpdate:modelValue","label","required","error"])])):t.type=="textarea"?(q(),G("div",LP,[oe(pP,{"model-value":t.modelValue,"onUpdate:modelValue":e.updateModel,label:t.label,required:t.required,error:t.error},null,8,["model-value","onUpdate:modelValue","label","required","error"])])):qe("",!0)}}}),NP=vi(FP,[["__scopeId","data-v-29806a1d"]]),BP={props:{sectionKey:{default:""},name:{default:""},components:{default:[]},color:{default:"red"}},computed:{getStyle(){var t="#FF0000";return this.color=="blue"?t="#0000FF":this.color=="gray"&&(t="#333"),"border: 3px solid "+t}},methods:{notifyInput(){this.$emit("form-update",!0)}}},jP=Se({...BP,__name:"FormSection",setup(t){return(e,i)=>(q(),G("div",{class:"scout-form-tile",style:ri(e.getStyle)},[X("h2",null,fe(t.name),1),t.components.length>0?(q(!0),G(ye,{key:0},st(t.components,s=>(q(),G("div",null,[oe(NP,{label:s.label,type:s.type,options:s==null?void 0:s.options,modelValue:s.value,"onUpdate:modelValue":[n=>s.value=n,e.notifyInput],required:s==null?void 0:s.required,error:s==null?void 0:s.error},null,8,["label","type","options","modelValue","onUpdate:modelValue","required","error"])]))),256)):qe("",!0)],4))}}),d0=vi(jP,[["__scopeId","data-v-2c107487"]]);var zP=Object.defineProperty,VP=(t,e,i)=>e in t?zP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Nt=(t,e,i)=>(VP(t,typeof e!="symbol"?e+"":e,i),i);/** +* @vue/shared v3.5.3 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function UP(t,e){const i=new Set(t.split(","));return s=>i.has(s)}const cf={},qP=[],gs=()=>{},HP=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),rn=Object.assign,WP=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},KP=Object.prototype.hasOwnProperty,Ku=(t,e)=>KP.call(t,e),Ie=Array.isArray,vr=t=>Fc(t)==="[object Map]",u0=t=>Fc(t)==="[object Set]",$e=t=>typeof t=="function",Ii=t=>typeof t=="string",Hn=t=>typeof t=="symbol",bt=t=>t!==null&&typeof t=="object",h0=t=>(bt(t)||$e(t))&&$e(t.then)&&$e(t.catch),f0=Object.prototype.toString,Fc=t=>f0.call(t),GP=t=>Fc(t).slice(8,-1),p0=t=>Fc(t)==="[object Object]",df=t=>Ii(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Fn=(t,e)=>!Object.is(t,e),YP=t=>{const e=Ii(t)?Number(t):NaN;return isNaN(e)?t:e};let Wg;const JP=()=>Wg||(Wg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function uf(t){if(Ie(t)){const e={};for(let i=0;i{if(i){const s=i.split(QP);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function br(t){let e="";if(Ii(t))e=t;else if(Ie(t))for(let i=0;i!!(t&&t.__v_isRef===!0),m0=t=>Ii(t)?t:t==null?"":Ie(t)||bt(t)&&(t.toString===f0||!$e(t.toString))?g0(t)?m0(t.value):JSON.stringify(t,v0,2):String(t),v0=(t,e)=>g0(e)?v0(t,e.value):vr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[s,n],r)=>(i[Md(s,r)+" =>"]=n,i),{})}:u0(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>Md(i))}:Hn(e)?Md(e):bt(e)&&!Ie(e)&&!p0(e)?String(e):e,Md=(t,e="")=>{var i;return Hn(t)?`Symbol(${(i=t.description)!=null?i:e})`:t};let Ne;const Rd=new WeakSet;class t2{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rd.has(this)&&(Rd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=Po,Po=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Kg(this),y0(this);const e=Ne,i=Ci;Ne=this,Ci=!0;try{return this.fn()}finally{_0(this),Ne=e,Ci=i,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)pf(e);this.deps=this.depsTail=void 0,Kg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gu(this)&&this.run()}get dirty(){return Gu(this)}}let b0=0,Po;function hf(){b0++}function ff(){if(--b0>0)return;let t;for(;Po;){let e=Po;for(Po=void 0;e;){const i=e.nextEffect;if(e.nextEffect=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=i}}if(t)throw t}function y0(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function _0(t){let e,i=t.depsTail;for(let s=i;s;s=s.prevDep)s.version===-1?(s===i&&(i=s.prevDep),pf(s),i2(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0;t.deps=e,t.depsTail=i}function Gu(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&x0(e.dep.computed)===!1||e.dep.version!==e.version)return!0;return!!t._dirty}function x0(t){if(t.flags&2)return!1;if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Zo))return;t.globalVersion=Zo;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&!Gu(t)){t.flags&=-3;return}const i=Ne,s=Ci;Ne=t,Ci=!0;try{y0(t);const n=t.fn(t._value);(e.version===0||Fn(n,t._value))&&(t._value=n,e.version++)}catch(n){throw e.version++,n}finally{Ne=i,Ci=s,_0(t),t.flags&=-3}}function pf(t){const{dep:e,prevSub:i,nextSub:s}=t;if(i&&(i.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=i,t.nextSub=void 0),e.subs===t&&(e.subs=i),!e.subs&&e.computed){e.computed.flags&=-5;for(let n=e.computed.deps;n;n=n.nextDep)pf(n)}}function i2(t){const{prevDep:e,nextDep:i}=t;e&&(e.nextDep=i,t.prevDep=void 0),i&&(i.prevDep=e,t.nextDep=void 0)}let Ci=!0;const w0=[];function ya(){w0.push(Ci),Ci=!1}function _a(){const t=w0.pop();Ci=t===void 0?!0:t}function Kg(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const i=Ne;Ne=void 0;try{e()}finally{Ne=i}}}let Zo=0;class k0{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!Ne||!Ci||Ne===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==Ne)i=this.activeLink={dep:this,sub:Ne,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},Ne.deps?(i.prevDep=Ne.depsTail,Ne.depsTail.nextDep=i,Ne.depsTail=i):Ne.deps=Ne.depsTail=i,Ne.flags&4&&S0(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=Ne.depsTail,i.nextDep=void 0,Ne.depsTail.nextDep=i,Ne.depsTail=i,Ne.deps===i&&(Ne.deps=s)}return i}trigger(e){this.version++,Zo++,this.notify(e)}notify(e){hf();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()}finally{ff()}}}function S0(t){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)S0(s)}const i=t.dep.subs;i!==t&&(t.prevSub=i,i&&(i.nextSub=t)),t.dep.subs=t}const Yu=new WeakMap,Mn=Symbol(""),Ju=Symbol(""),ea=Symbol("");function Xt(t,e,i){if(Ci&&Ne){let s=Yu.get(t);s||Yu.set(t,s=new Map);let n=s.get(i);n||s.set(i,n=new k0),n.track()}}function Ks(t,e,i,s,n,r){const o=Yu.get(t);if(!o){Zo++;return}let a=[];if(e==="clear")a=[...o.values()];else{const l=Ie(t),c=l&&df(i);if(l&&i==="length"){const d=Number(s);o.forEach((u,h)=>{(h==="length"||h===ea||!Hn(h)&&h>=d)&&a.push(u)})}else{const d=u=>u&&a.push(u);switch(i!==void 0&&d(o.get(i)),c&&d(o.get(ea)),e){case"add":l?c&&d(o.get("length")):(d(o.get(Mn)),vr(t)&&d(o.get(Ju)));break;case"delete":l||(d(o.get(Mn)),vr(t)&&d(o.get(Ju)));break;case"set":vr(t)&&d(o.get(Mn));break}}}hf();for(const l of a)l.trigger();ff()}function tr(t){const e=Ge(t);return e===t?e:(Xt(e,"iterate",ea),Hi(t)?e:e.map(ii))}function gf(t){return Xt(t=Ge(t),"iterate",ea),t}const s2={__proto__:null,[Symbol.iterator](){return $d(this,Symbol.iterator,ii)},concat(...t){return tr(this).concat(...t.map(e=>Ie(e)?tr(e):e))},entries(){return $d(this,"entries",t=>(t[1]=ii(t[1]),t))},every(t,e){return Zi(this,"every",t,e,void 0,arguments)},filter(t,e){return Zi(this,"filter",t,e,i=>i.map(ii),arguments)},find(t,e){return Zi(this,"find",t,e,ii,arguments)},findIndex(t,e){return Zi(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Zi(this,"findLast",t,e,ii,arguments)},findLastIndex(t,e){return Zi(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Zi(this,"forEach",t,e,void 0,arguments)},includes(...t){return Ld(this,"includes",t)},indexOf(...t){return Ld(this,"indexOf",t)},join(t){return tr(this).join(t)},lastIndexOf(...t){return Ld(this,"lastIndexOf",t)},map(t,e){return Zi(this,"map",t,e,void 0,arguments)},pop(){return Xr(this,"pop")},push(...t){return Xr(this,"push",t)},reduce(t,...e){return Gg(this,"reduce",t,e)},reduceRight(t,...e){return Gg(this,"reduceRight",t,e)},shift(){return Xr(this,"shift")},some(t,e){return Zi(this,"some",t,e,void 0,arguments)},splice(...t){return Xr(this,"splice",t)},toReversed(){return tr(this).toReversed()},toSorted(t){return tr(this).toSorted(t)},toSpliced(...t){return tr(this).toSpliced(...t)},unshift(...t){return Xr(this,"unshift",t)},values(){return $d(this,"values",ii)}};function $d(t,e,i){const s=gf(t),n=s[e]();return s!==t&&!Hi(t)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=i(r.value)),r}),n}const n2=Array.prototype;function Zi(t,e,i,s,n,r){const o=gf(t),a=o!==t&&!Hi(t),l=o[e];if(l!==n2[e]){const u=l.apply(t,r);return a?ii(u):u}let c=i;o!==t&&(a?c=function(u,h){return i.call(this,ii(u),h,t)}:i.length>2&&(c=function(u,h){return i.call(this,u,h,t)}));const d=l.call(o,c,s);return a&&n?n(d):d}function Gg(t,e,i,s){const n=gf(t);let r=i;return n!==t&&(Hi(t)?i.length>3&&(r=function(o,a,l){return i.call(this,o,a,l,t)}):r=function(o,a,l){return i.call(this,o,ii(a),l,t)}),n[e](r,...s)}function Ld(t,e,i){const s=Ge(t);Xt(s,"iterate",ea);const n=s[e](...i);return(n===-1||n===!1)&&bf(i[0])?(i[0]=Ge(i[0]),s[e](...i)):n}function Xr(t,e,i=[]){ya(),hf();const s=Ge(t)[e].apply(t,i);return ff(),_a(),s}const r2=UP("__proto__,__v_isRef,__isVue"),C0=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Hn));function o2(t){Hn(t)||(t=String(t));const e=Ge(this);return Xt(e,"has",t),e.hasOwnProperty(t)}class A0{constructor(e=!1,i=!1){this._isReadonly=e,this._isShallow=i}get(e,i,s){const n=this._isReadonly,r=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return r;if(i==="__v_raw")return s===(n?r?y2:P0:r?b2:E0).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=Ie(e);if(!n){let l;if(o&&(l=s2[i]))return l;if(i==="hasOwnProperty")return o2}const a=Reflect.get(e,i,ni(e)?e:s);return(Hn(i)?C0.has(i):r2(i))||(n||Xt(e,"get",i),r)?a:ni(a)?o&&df(i)?a:a.value:bt(a)?n?O0(a):vf(a):a}}class a2 extends A0{constructor(e=!1){super(!1,e)}set(e,i,s,n){let r=e[i];if(!this._isShallow){const l=Or(r);if(!Hi(s)&&!Or(s)&&(r=Ge(r),s=Ge(s)),!Ie(e)&&ni(r)&&!ni(s))return l?!1:(r.value=s,!0)}const o=Ie(e)&&df(i)?Number(i)t,Nc=t=>Reflect.getPrototypeOf(t);function Wa(t,e,i=!1,s=!1){t=t.__v_raw;const n=Ge(t),r=Ge(e);i||(Fn(e,r)&&Xt(n,"get",e),Xt(n,"get",r));const{has:o}=Nc(n),a=s?mf:i?yf:ii;if(o.call(n,e))return a(t.get(e));if(o.call(n,r))return a(t.get(r));t!==n&&t.get(e)}function Ka(t,e=!1){const i=this.__v_raw,s=Ge(i),n=Ge(t);return e||(Fn(t,n)&&Xt(s,"has",t),Xt(s,"has",n)),t===n?i.has(t):i.has(t)||i.has(n)}function Ga(t,e=!1){return t=t.__v_raw,!e&&Xt(Ge(t),"iterate",Mn),Reflect.get(t,"size",t)}function Yg(t,e=!1){!e&&!Hi(t)&&!Or(t)&&(t=Ge(t));const i=Ge(this);return Nc(i).has.call(i,t)||(i.add(t),Ks(i,"add",t,t)),this}function Jg(t,e,i=!1){!i&&!Hi(e)&&!Or(e)&&(e=Ge(e));const s=Ge(this),{has:n,get:r}=Nc(s);let o=n.call(s,t);o||(t=Ge(t),o=n.call(s,t));const a=r.call(s,t);return s.set(t,e),o?Fn(e,a)&&Ks(s,"set",t,e):Ks(s,"add",t,e),this}function Xg(t){const e=Ge(this),{has:i,get:s}=Nc(e);let n=i.call(e,t);n||(t=Ge(t),n=i.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return n&&Ks(e,"delete",t,void 0),r}function Qg(){const t=Ge(this),e=t.size!==0,i=t.clear();return e&&Ks(t,"clear",void 0,void 0),i}function Ya(t,e){return function(i,s){const n=this,r=n.__v_raw,o=Ge(r),a=e?mf:t?yf:ii;return!t&&Xt(o,"iterate",Mn),r.forEach((l,c)=>i.call(s,a(l),a(c),n))}}function Ja(t,e,i){return function(...s){const n=this.__v_raw,r=Ge(n),o=vr(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=n[t](...s),d=i?mf:e?yf:ii;return!e&&Xt(r,"iterate",l?Ju:Mn),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function Ts(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function u2(){const t={get(n){return Wa(this,n)},get size(){return Ga(this)},has:Ka,add:Yg,set:Jg,delete:Xg,clear:Qg,forEach:Ya(!1,!1)},e={get(n){return Wa(this,n,!1,!0)},get size(){return Ga(this)},has:Ka,add(n){return Yg.call(this,n,!0)},set(n,r){return Jg.call(this,n,r,!0)},delete:Xg,clear:Qg,forEach:Ya(!1,!0)},i={get(n){return Wa(this,n,!0)},get size(){return Ga(this,!0)},has(n){return Ka.call(this,n,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:Ya(!0,!1)},s={get(n){return Wa(this,n,!0,!0)},get size(){return Ga(this,!0)},has(n){return Ka.call(this,n,!0)},add:Ts("add"),set:Ts("set"),delete:Ts("delete"),clear:Ts("clear"),forEach:Ya(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=Ja(n,!1,!1),i[n]=Ja(n,!0,!1),e[n]=Ja(n,!1,!0),s[n]=Ja(n,!0,!0)}),[t,i,e,s]}const[h2,f2,p2,g2]=u2();function T0(t,e){const i=e?t?g2:p2:t?f2:h2;return(s,n,r)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?s:Reflect.get(Ku(i,n)&&n in s?i:s,n,r)}const m2={get:T0(!1,!1)},v2={get:T0(!0,!1)},E0=new WeakMap,b2=new WeakMap,P0=new WeakMap,y2=new WeakMap;function _2(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function x2(t){return t.__v_skip||!Object.isExtensible(t)?0:_2(GP(t))}function vf(t){return Or(t)?t:I0(t,!1,c2,m2,E0)}function O0(t){return I0(t,!0,d2,v2,P0)}function I0(t,e,i,s,n){if(!bt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=n.get(t);if(r)return r;const o=x2(t);if(o===0)return t;const a=new Proxy(t,o===2?s:i);return n.set(t,a),a}function Oo(t){return Or(t)?Oo(t.__v_raw):!!(t&&t.__v_isReactive)}function Or(t){return!!(t&&t.__v_isReadonly)}function Hi(t){return!!(t&&t.__v_isShallow)}function bf(t){return t?!!t.__v_raw:!1}function Ge(t){const e=t&&t.__v_raw;return e?Ge(e):t}const ii=t=>bt(t)?vf(t):t,yf=t=>bt(t)?O0(t):t;function ni(t){return t?t.__v_isRef===!0:!1}function kl(t){return ni(t)?t.value:t}const w2={get:(t,e,i)=>e==="__v_raw"?t:kl(Reflect.get(t,e,i)),set:(t,e,i,s)=>{const n=t[e];return ni(n)&&!ni(i)?(n.value=i,!0):Reflect.set(t,e,i,s)}};function k2(t){return Oo(t)?t:new Proxy(t,w2)}class S2{constructor(e,i,s){this.fn=e,this.setter=i,this._value=void 0,this.dep=new k0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zo-1,this.effect=this,this.__v_isReadonly=!i,this.isSSR=s}notify(){Ne!==this&&(this.flags|=16,this.dep.notify())}get value(){const e=this.dep.track();return x0(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function C2(t,e,i=!1){let s,n;return $e(t)?s=t:(s=t.get,n=t.set),new S2(s,n,i)}const Xa={},Wl=new WeakMap;let xn;function A2(t,e=!1,i=xn){if(i){let s=Wl.get(i);s||Wl.set(i,s=[]),s.push(t)}}function T2(t,e,i=cf){const{immediate:s,deep:n,once:r,scheduler:o,augmentJob:a,call:l}=i,c=w=>n?w:Hi(w)||n===!1||n===0?js(w,1):js(w);let d,u,h,f,p=!1,g=!1;if(ni(t)?(u=()=>t.value,p=Hi(t)):Oo(t)?(u=()=>c(t),p=!0):Ie(t)?(g=!0,p=t.some(w=>Oo(w)||Hi(w)),u=()=>t.map(w=>{if(ni(w))return w.value;if(Oo(w))return c(w);if($e(w))return l?l(w,2):w()})):$e(t)?e?u=l?()=>l(t,2):t:u=()=>{if(h){ya();try{h()}finally{_a()}}const w=xn;xn=d;try{return l?l(t,3,[f]):t(f)}finally{xn=w}}:u=gs,e&&n){const w=u,A=n===!0?1/0:n;u=()=>js(w(),A)}const m=()=>{d.stop()};if(r)if(e){const w=e;e=(...A)=>{w(...A),m()}}else{const w=u;u=()=>{w(),m()}}let y=g?new Array(t.length).fill(Xa):Xa;const C=w=>{if(!(!(d.flags&1)||!d.dirty&&!w))if(e){const A=d.run();if(n||p||(g?A.some((x,E)=>Fn(x,y[E])):Fn(A,y))){h&&h();const x=xn;xn=d;try{const E=[A,y===Xa?void 0:g&&y[0]===Xa?[]:y,f];l?l(e,3,E):e(...E),y=A}finally{xn=x}}}else d.run()};return a&&a(C),d=new t2(u),d.scheduler=o?()=>o(C,!1):C,f=w=>A2(w,!1,d),h=d.onStop=()=>{const w=Wl.get(d);if(w){if(l)l(w,4);else for(const A of w)A();Wl.delete(d)}},e?s?C(!0):y=d.run():o?o(C.bind(null,!0),!0):d.run(),m.pause=d.pause.bind(d),m.resume=d.resume.bind(d),m.stop=m,m}function js(t,e=1/0,i){if(e<=0||!bt(t)||t.__v_skip||(i=i||new Set,i.has(t)))return t;if(i.add(t),e--,ni(t))js(t.value,e,i);else if(Ie(t))for(let s=0;s{js(s,e,i)});else if(p0(t)){for(const s in t)js(t[s],e,i);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&js(t[s],e,i)}return t}function _f(t,e,i,s){try{return s?t(...s):t()}catch(n){xf(n,e,i)}}function Bc(t,e,i,s){if($e(t)){const n=_f(t,e,i,s);return n&&h0(n)&&n.catch(r=>{xf(r,e,i)}),n}if(Ie(t)){const n=[];for(let r=0;r>>1,n=ci[s],r=ta(n);r=ta(i)?ci.push(t):ci.splice(O2(e),0,t),t.flags|=1,M0()}}function M0(){!Kl&&!Xu&&(Xu=!0,P2.then(R0))}function Qu(t){Ie(t)?yr.push(...t):Ds&&t.id===-1?Ds.splice(ur+1,0,t):t.flags&1||(yr.push(t),t.flags|=1),M0()}function M2(t){if(yr.length){const e=[...new Set(yr)].sort((i,s)=>ta(i)-ta(s));if(yr.length=0,Ds){Ds.push(...e);return}for(Ds=e,ur=0;urt.id==null?t.flags&2?-1:1/0:t.id;function R0(t){Xu=!1,Kl=!0;try{for(is=0;is{s._d&&rm(-1);const r=Zg(e);let o;try{o=t(...n)}finally{Zg(r),s._d&&rm(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}const $2=t=>t.__isTeleport;function L0(t,e){t.shapeFlag&6&&t.component?(t.transition=e,L0(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}/*! #__NO_SIDE_EFFECTS__ */function D0(t,e){return $e(t)?rn({name:t.name},e,{setup:t}):t}function L2(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const D2=t=>t.type.__isKeepAlive;function F2(t,e){F0(t,"a",e)}function N2(t,e){F0(t,"da",e)}function F0(t,e,i=Tt){const s=t.__wdc||(t.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if(jc(e,s,i),i){let n=i.parent;for(;n&&n.parent;)D2(n.parent.vnode)&&B2(s,e,i,n),n=n.parent}}function B2(t,e,i,s){const n=jc(e,t,s,!0);N0(()=>{WP(s[e],n)},i)}function jc(t,e,i=Tt,s=!1){if(i){const n=i[t]||(i[t]=[]),r=e.__weh||(e.__weh=(...o)=>{ya();const a=Ql(i),l=Bc(e,i,t,o);return a(),_a(),l});return s?n.unshift(r):n.push(r),r}}const ks=t=>(e,i=Tt)=>{(!zc||t==="sp")&&jc(t,(...s)=>e(...s),i)},j2=ks("bm"),z2=ks("m"),V2=ks("bu"),U2=ks("u"),q2=ks("bum"),N0=ks("um"),H2=ks("sp"),W2=ks("rtg"),K2=ks("rtc");function G2(t,e=Tt){jc("ec",t,e)}const Y2=Symbol.for("v-ndc");function em(t){return Ie(t)?t.reduce((e,i)=>(e[i]=null,e),{}):t}function J2(t){const e=TO();let i=t();return EO(),h0(i)&&(i=i.catch(s=>{throw Ql(e),s})),[i,()=>Ql(e)]}function X2(t){const e=Z2(t),i=t.proxy,s=t.ctx;e.beforeCreate&&tm(e.beforeCreate,t,"bc");const{data:n,computed:r,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:C,destroyed:w,unmounted:A,render:x,renderTracked:E,renderTriggered:T,errorCaptured:P,serverPrefetch:k,expose:I,inheritAttrs:S,components:b,directives:D,filters:B}=e;if(c&&Q2(c,s,null),o)for(const U in o){const Y=o[U];$e(Y)&&(s[U]=Y.bind(i))}if(n){const U=n.call(i,i);bt(U)&&(t.data=vf(U))}if(r)for(const U in r){const Y=r[U],ae=$e(Y)?Y.bind(i,i):$e(Y.get)?Y.get.bind(i,i):gs,ve=!$e(Y)&&$e(Y.set)?Y.set.bind(i):gs,Ae=MO({get:ae,set:ve});Object.defineProperty(s,U,{enumerable:!0,configurable:!0,get:()=>Ae.value,set:xe=>Ae.value=xe})}if(a)for(const U in a)B0(a[U],s,i,U);if(l){const U=$e(l)?l.call(i):l;Reflect.ownKeys(U).forEach(Y=>{nO(Y,U[Y])})}d&&tm(d,t,"c");function W(U,Y){Ie(Y)?Y.forEach(ae=>U(ae.bind(i))):Y&&U(Y.bind(i))}if(W(j2,u),W(z2,h),W(V2,f),W(U2,p),W(F2,g),W(N2,m),W(G2,P),W(K2,E),W(W2,T),W(q2,C),W(N0,A),W(H2,k),Ie(I))if(I.length){const U=t.exposed||(t.exposed={});I.forEach(Y=>{Object.defineProperty(U,Y,{get:()=>i[Y],set:ae=>i[Y]=ae})})}else t.exposed||(t.exposed={});x&&t.render===gs&&(t.render=x),S!=null&&(t.inheritAttrs=S),b&&(t.components=b),D&&(t.directives=D),k&&L2(t)}function Q2(t,e,i=gs){Ie(t)&&(t=Zu(t));for(const s in t){const n=t[s];let r;bt(n)?"default"in n?r=Sl(n.from||s,n.default,!0):r=Sl(n.from||s):r=Sl(n),ni(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function tm(t,e,i){Bc(Ie(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,i)}function B0(t,e,i,s){let n=s.includes(".")?dO(i,s):()=>i[s];if(Ii(t)){const r=e[t];$e(r)&&Dd(n,r)}else if($e(t))Dd(n,t.bind(i));else if(bt(t))if(Ie(t))t.forEach(r=>B0(r,e,i,s));else{const r=$e(t.handler)?t.handler.bind(i):e[t.handler];$e(r)&&Dd(n,r,t)}}function Z2(t){const e=t.type,{mixins:i,extends:s}=e,{mixins:n,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!n.length&&!i&&!s?l=e:(l={},n.length&&n.forEach(c=>Gl(l,c,o,!0)),Gl(l,e,o)),bt(e)&&r.set(e,l),l}function Gl(t,e,i,s=!1){const{mixins:n,extends:r}=e;r&&Gl(t,r,i,!0),n&&n.forEach(o=>Gl(t,o,i,!0));for(const o in e)if(!(s&&o==="expose")){const a=eO[o]||i&&i[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const eO={data:im,props:sm,emits:sm,methods:oo,computed:oo,beforeCreate:Mt,created:Mt,beforeMount:Mt,mounted:Mt,beforeUpdate:Mt,updated:Mt,beforeDestroy:Mt,beforeUnmount:Mt,destroyed:Mt,unmounted:Mt,activated:Mt,deactivated:Mt,errorCaptured:Mt,serverPrefetch:Mt,components:oo,directives:oo,watch:iO,provide:im,inject:tO};function im(t,e){return e?t?function(){return rn($e(t)?t.call(this,this):t,$e(e)?e.call(this,this):e)}:e:t}function tO(t,e){return oo(Zu(t),Zu(e))}function Zu(t){if(Ie(t)){const e={};for(let i=0;i1)return i&&$e(e)?e.call(s&&s.proxy):e}}const rO={},j0=t=>Object.getPrototypeOf(t)===rO,oO=yO,aO=Symbol.for("v-scx"),lO=()=>Sl(aO);function Dd(t,e,i){return cO(t,e,i)}function cO(t,e,i=cf){const{immediate:s,deep:n,flush:r,once:o}=i,a=rn({},i);let l;if(zc)if(r==="sync"){const h=lO();l=h.__watcherHandles||(h.__watcherHandles=[])}else if(!e||s)a.once=!0;else return{stop:gs,resume:gs,pause:gs};const c=Tt;a.call=(h,f,p)=>Bc(h,c,f,p);let d=!1;r==="post"?a.scheduler=h=>{oO(h,c&&c.suspense)}:r!=="sync"&&(d=!0,a.scheduler=(h,f)=>{f?h():I2(h)}),a.augmentJob=h=>{e&&(h.flags|=4),d&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const u=T2(t,e,a);return l&&l.push(u),u}function dO(t,e){const i=e.split(".");return()=>{let s=t;for(let n=0;nt.__isSuspense;let eh=0;const fO={name:"Suspense",__isSuspense:!0,process(t,e,i,s,n,r,o,a,l,c){if(t==null)gO(e,i,s,n,r,o,a,l,c);else{if(r&&r.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}mO(t,e,i,s,n,o,a,l,c)}},hydrate:vO,normalize:bO},pO=fO;function ia(t,e){const i=t.props&&t.props[e];$e(i)&&i()}function gO(t,e,i,s,n,r,o,a,l){const{p:c,o:{createElement:d}}=l,u=d("div"),h=t.suspense=V0(t,n,s,e,u,i,r,o,a,l);c(null,h.pendingBranch=t.ssContent,u,null,s,h,r,o),h.deps>0?(ia(t,"onPending"),ia(t,"onFallback"),c(null,t.ssFallback,e,i,s,null,r,o),_r(h,t.ssFallback)):h.resolve(!1,!0)}function mO(t,e,i,s,n,r,o,a,{p:l,um:c,o:{createElement:d}}){const u=e.suspense=t.suspense;u.vnode=e,e.el=t.el;const h=e.ssContent,f=e.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:m,isHydrating:y}=u;if(g)u.pendingBranch=h,Nd(h,g)?(l(g,h,u.hiddenContainer,null,n,u,r,o,a),u.deps<=0?u.resolve():m&&(y||(l(p,f,i,s,n,null,r,o,a),_r(u,f)))):(u.pendingId=eh++,y?(u.isHydrating=!1,u.activeBranch=g):c(g,n,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),m?(l(null,h,u.hiddenContainer,null,n,u,r,o,a),u.deps<=0?u.resolve():(l(p,f,i,s,n,null,r,o,a),_r(u,f))):p&&Nd(h,p)?(l(p,h,i,s,n,u,r,o,a),u.resolve(!0)):(l(null,h,u.hiddenContainer,null,n,u,r,o,a),u.deps<=0&&u.resolve()));else if(p&&Nd(h,p))l(p,h,i,s,n,u,r,o,a),_r(u,h);else if(ia(e,"onPending"),u.pendingBranch=h,h.shapeFlag&512?u.pendingId=h.component.suspenseId:u.pendingId=eh++,l(null,h,u.hiddenContainer,null,n,u,r,o,a),u.deps<=0)u.resolve();else{const{timeout:C,pendingId:w}=u;C>0?setTimeout(()=>{u.pendingId===w&&u.fallback(f)},C):C===0&&u.fallback(f)}}function V0(t,e,i,s,n,r,o,a,l,c,d=!1){const{p:u,m:h,um:f,n:p,o:{parentNode:g,remove:m}}=c;let y;const C=_O(t);C&&e&&e.pendingBranch&&(y=e.pendingId,e.deps++);const w=t.props?YP(t.props.timeout):void 0,A=r,x={vnode:t,parent:e,parentComponent:i,namespace:o,container:s,hiddenContainer:n,deps:0,pendingId:eh++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(E=!1,T=!1){const{vnode:P,activeBranch:k,pendingBranch:I,pendingId:S,effects:b,parentComponent:D,container:B}=x;let N=!1;x.isHydrating?x.isHydrating=!1:E||(N=k&&I.transition&&I.transition.mode==="out-in",N&&(k.transition.afterLeave=()=>{S===x.pendingId&&(h(I,B,r===A?p(k):r,0),Qu(b))}),k&&(g(k.el)===B&&(r=p(k)),f(k,D,x,!0)),N||h(I,B,r,0)),_r(x,I),x.pendingBranch=null,x.isInFallback=!1;let W=x.parent,U=!1;for(;W;){if(W.pendingBranch){W.effects.push(...b),U=!0;break}W=W.parent}!U&&!N&&Qu(b),x.effects=[],C&&e&&e.pendingBranch&&y===e.pendingId&&(e.deps--,e.deps===0&&!T&&e.resolve()),ia(P,"onResolve")},fallback(E){if(!x.pendingBranch)return;const{vnode:T,activeBranch:P,parentComponent:k,container:I,namespace:S}=x;ia(T,"onFallback");const b=p(P),D=()=>{x.isInFallback&&(u(null,E,I,b,k,null,S,a,l),_r(x,E))},B=E.transition&&E.transition.mode==="out-in";B&&(P.transition.afterLeave=D),x.isInFallback=!0,f(P,k,null,!0),B||D()},move(E,T,P){x.activeBranch&&h(x.activeBranch,E,T,P),x.container=E},next(){return x.activeBranch&&p(x.activeBranch)},registerDep(E,T,P){const k=!!x.pendingBranch;k&&x.deps++;const I=E.vnode.el;E.asyncDep.catch(S=>{xf(S,E,0)}).then(S=>{if(E.isUnmounted||x.isUnmounted||x.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:b}=E;PO(E,S),I&&(b.el=I);const D=!I&&E.subTree.el;T(E,b,g(I||E.subTree.el),I?null:p(E.subTree),x,o,P),D&&m(D),z0(E,b.el),k&&--x.deps===0&&x.resolve()})},unmount(E,T){x.isUnmounted=!0,x.activeBranch&&f(x.activeBranch,i,E,T),x.pendingBranch&&f(x.pendingBranch,i,E,T)}};return x}function vO(t,e,i,s,n,r,o,a,l){const c=e.suspense=V0(e,s,i,t.parentNode,document.createElement("div"),null,n,r,o,a,!0),d=l(t,c.pendingBranch=e.ssContent,i,c,r,o);return c.deps===0&&c.resolve(!1,!0),d}function bO(t){const{shapeFlag:e,children:i}=t,s=e&32;t.ssContent=nm(s?i.default:i),t.ssFallback=s?nm(i.fallback):Gs(Ir)}function nm(t){let e;if($e(t)){const i=Mr&&t._c;i&&(t._d=!1,xr()),t=t(),i&&(t._d=!0,e=Jt,q0())}return Ie(t)&&(t=uO(t)),t=SO(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(i=>i!==t)),t}function yO(t,e){e&&e.pendingBranch?Ie(t)?e.effects.push(...t):e.effects.push(t):Qu(t)}function _r(t,e){t.activeBranch=e;const{vnode:i,parentComponent:s}=t;let n=e.el;for(;!n&&e.component;)e=e.component.subTree,n=e.el;i.el=n,s&&s.subTree===i&&(s.vnode.el=n,z0(s,n))}function _O(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const wf=Symbol.for("v-fgt"),U0=Symbol.for("v-txt"),Ir=Symbol.for("v-cmt"),Cl=[];let Jt=null;function xr(t=!1){Cl.push(Jt=t?null:[])}function q0(){Cl.pop(),Jt=Cl[Cl.length-1]||null}let Mr=1;function rm(t){Mr+=t,t<0&&Jt&&(Jt.hasOnce=!0)}function H0(t){return t.dynamicChildren=Mr>0?Jt||qP:null,q0(),Mr>0&&Jt&&Jt.push(t),t}function Fd(t,e,i,s,n,r){return H0(Yl(t,e,i,s,n,r,!0))}function W0(t,e,i,s,n){return H0(Gs(t,e,i,s,n,!0))}function K0(t){return t?t.__v_isVNode===!0:!1}function Nd(t,e){return t.type===e.type&&t.key===e.key}const G0=({key:t})=>t??null,Al=({ref:t,ref_key:e,ref_for:i})=>(typeof t=="number"&&(t=""+t),t!=null?Ii(t)||ni(t)||$e(t)?{i:ki,r:t,k:e,f:!!i}:t:null);function Yl(t,e=null,i=null,s=0,n=null,r=t===wf?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&G0(e),ref:e&&Al(e),scopeId:$0,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:ki};return a?(kf(l,i),r&128&&t.normalize(l)):i&&(l.shapeFlag|=Ii(i)?8:16),Mr>0&&!o&&Jt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Jt.push(l),l}const Gs=xO;function xO(t,e=null,i=null,s=0,n=null,r=!1){if((!t||t===Y2)&&(t=Ir),K0(t)){const a=Jl(t,e,!0);return i&&kf(a,i),Mr>0&&!r&&Jt&&(a.shapeFlag&6?Jt[Jt.indexOf(t)]=a:Jt.push(a)),a.patchFlag=-2,a}if(IO(t)&&(t=t.__vccOpts),e){e=wO(e);let{class:a,style:l}=e;a&&!Ii(a)&&(e.class=br(a)),bt(l)&&(bf(l)&&!Ie(l)&&(l=rn({},l)),e.style=uf(l))}const o=Ii(t)?1:hO(t)?128:$2(t)?64:bt(t)?4:$e(t)?2:0;return Yl(t,e,i,s,n,o,r,!0)}function wO(t){return t?bf(t)||j0(t)?rn({},t):t:null}function Jl(t,e,i=!1,s=!1){const{props:n,ref:r,patchFlag:o,children:a,transition:l}=t,c=e?AO(n||{},e):n,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&G0(c),ref:e&&e.ref?i&&r?Ie(r)?r.concat(Al(e)):[r,Al(e)]:Al(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==wf?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Jl(t.ssContent),ssFallback:t.ssFallback&&Jl(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&s&&L0(d,l.clone(d)),d}function kO(t=" ",e=0){return Gs(U0,null,t,e)}function om(t="",e=!1){return e?(xr(),W0(Ir,null,t)):Gs(Ir,null,t)}function SO(t){return t==null||typeof t=="boolean"?Gs(Ir):Ie(t)?Gs(wf,null,t.slice()):typeof t=="object"?CO(t):Gs(U0,null,String(t))}function CO(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Jl(t)}function kf(t,e){let i=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(Ie(e))i=16;else if(typeof e=="object")if(s&65){const n=e.default;n&&(n._c&&(n._d=!1),kf(t,n()),n._c&&(n._d=!0));return}else{i=32;const n=e._;!n&&!j0(e)?e._ctx=ki:n===3&&ki&&(ki.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else $e(e)?(e={default:e,_ctx:ki},i=32):(e=String(e),s&64?(i=16,e=[kO(e)]):i=8);t.children=e,t.shapeFlag|=i}function AO(...t){const e={};for(let i=0;iTt||ki;let Xl;{const t=JP(),e=(i,s)=>{let n;return(n=t[i])||(n=t[i]=[]),n.push(s),r=>{n.length>1?n.forEach(o=>o(r)):n[0](r)}};Xl=e("__VUE_INSTANCE_SETTERS__",i=>Tt=i),e("__VUE_SSR_SETTERS__",i=>zc=i)}const Ql=t=>{const e=Tt;return Xl(t),t.scope.on(),()=>{t.scope.off(),Xl(e)}},EO=()=>{Tt&&Tt.scope.off(),Xl(null)};let zc=!1;function PO(t,e,i){$e(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:bt(e)&&(t.setupState=k2(e)),OO(t)}function OO(t,e,i){const s=t.type;t.render||(t.render=s.render||gs);{const n=Ql(t);ya();try{X2(t)}finally{_a(),n()}}}function IO(t){return $e(t)&&"__vccOpts"in t}const MO=(t,e)=>C2(t,e,zc),Bd={numeric:"Numeric",alphanumeric:"Alphanumeric",byte:"Byte"};function RO(t){switch(!0){case/^[0-9]*$/.test(t):return Bd.numeric;case/^[0-9A-Z $%*+\-./:]*$/.test(t):return Bd.alphanumeric;default:return Bd.byte}}const Qa=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function Zl(t,...e){if(!e.length)return t;const i=e.shift();return i===void 0||!Qa(t)||!Qa(i)?t:(t={...t},Object.keys(i).forEach(s=>{const n=t[s],r=i[s];Array.isArray(n)&&Array.isArray(r)?t[s]=r:Qa(n)&&Qa(r)?t[s]=Zl(Object.assign({},n),r):t[s]=r}),Zl(t,...e))}function $O(t,e){const i=document.createElement("a");i.download=e,i.href=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}function LO({originalHeight:t,originalWidth:e,maxHiddenDots:i,maxHiddenAxisDots:s,dotSize:n}){const r={x:0,y:0},o={x:0,y:0};if(t<=0||e<=0||i<=0||n<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const a=t/e;return r.x=Math.floor(Math.sqrt(i/a)),r.x<=0&&(r.x=1),s&&si||s&&s{s.moveTo(0,0),s.arc(0,0,i/2,0,Math.PI*2)}})}_basicSquare(e){const{size:i,context:s}=e;this._rotateFigure({...e,draw:()=>{s.moveTo(0,0),s.rect(-i/2,-i/2,i,i)}})}_basicSideRounded(e){const{size:i,context:s}=e;this._rotateFigure({...e,draw:()=>{s.moveTo(0,0),s.arc(0,0,i/2,-Math.PI/2,Math.PI/2),s.lineTo(-i/2,i/2),s.lineTo(-i/2,-i/2),s.lineTo(0,-i/2)}})}_basicCornerRounded(e){const{size:i,context:s}=e;this._rotateFigure({...e,draw:()=>{s.moveTo(0,0),s.arc(0,0,i/2,-Math.PI/2,0),s.lineTo(i/2,i/2),s.lineTo(-i/2,i/2),s.lineTo(-i/2,-i/2),s.lineTo(0,-i/2)}})}_basicCornerExtraRounded(e){const{size:i,context:s}=e;this._rotateFigure({...e,draw:()=>{s.moveTo(0,0),s.arc(-i/2,i/2,i,-Math.PI/2,0),s.lineTo(-i/2,i/2),s.lineTo(-i/2,-i/2)}})}_basicCornersRounded(e){const{size:i,context:s}=e;this._rotateFigure({...e,draw:()=>{s.moveTo(0,0),s.arc(0,0,i/2,-Math.PI/2,0),s.lineTo(i/2,i/2),s.lineTo(0,i/2),s.arc(0,0,i/2,Math.PI/2,Math.PI),s.lineTo(-i/2,-i/2),s.lineTo(0,-i/2)}})}_basicCornersExtraRounded(e){const{size:i,context:s}=e;this._rotateFigure({...e,draw:()=>{s.moveTo(0,0),s.arc(-i/2,i/2,i,-Math.PI/2,0),s.arc(i/2,-i/2,i,Math.PI/2,Math.PI)}})}_drawDot({x:e,y:i,size:s,context:n}){this._basicDot({x:e,y:i,size:s,context:n,rotation:0})}_drawSquare({x:e,y:i,size:s,context:n}){this._basicSquare({x:e,y:i,size:s,context:n,rotation:0})}_drawRounded({x:e,y:i,size:s,context:n,getNeighbor:r}){const o=+r(-1,0),a=+r(1,0),l=+r(0,-1),c=+r(0,1),d=o+a+l+c;if(d===0){this._basicDot({x:e,y:i,size:s,context:n,rotation:0});return}if(d>2||o&&a||l&&c){this._basicSquare({x:e,y:i,size:s,context:n,rotation:0});return}if(d===2){let u=0;o&&l?u=Math.PI/2:l&&a?u=Math.PI:a&&c&&(u=-Math.PI/2),this._basicCornerRounded({x:e,y:i,size:s,context:n,rotation:u});return}if(d===1){let u=0;l?u=Math.PI/2:a?u=Math.PI:c&&(u=-Math.PI/2),this._basicSideRounded({x:e,y:i,size:s,context:n,rotation:u})}}_drawExtraRounded({x:e,y:i,size:s,context:n,getNeighbor:r}){const o=+r(-1,0),a=+r(1,0),l=+r(0,-1),c=+r(0,1),d=o+a+l+c;if(d===0){this._basicDot({x:e,y:i,size:s,context:n,rotation:0});return}if(d>2||o&&a||l&&c){this._basicSquare({x:e,y:i,size:s,context:n,rotation:0});return}if(d===2){let u=0;o&&l?u=Math.PI/2:l&&a?u=Math.PI:a&&c&&(u=-Math.PI/2),this._basicCornerExtraRounded({x:e,y:i,size:s,context:n,rotation:u});return}if(d===1){let u=0;l?u=Math.PI/2:a?u=Math.PI:c&&(u=-Math.PI/2),this._basicSideRounded({x:e,y:i,size:s,context:n,rotation:u})}}_drawClassy({x:e,y:i,size:s,context:n,getNeighbor:r}){const o=+r(-1,0),a=+r(1,0),l=+r(0,-1),c=+r(0,1);if(o+a+l+c===0){this._basicCornersRounded({x:e,y:i,size:s,context:n,rotation:Math.PI/2});return}if(!o&&!l){this._basicCornerRounded({x:e,y:i,size:s,context:n,rotation:-Math.PI/2});return}if(!a&&!c){this._basicCornerRounded({x:e,y:i,size:s,context:n,rotation:Math.PI/2});return}this._basicSquare({x:e,y:i,size:s,context:n,rotation:0})}_drawClassyRounded({x:e,y:i,size:s,context:n,getNeighbor:r}){const o=+r(-1,0),a=+r(1,0),l=+r(0,-1),c=+r(0,1);if(o+a+l+c===0){this._basicCornersRounded({x:e,y:i,size:s,context:n,rotation:Math.PI/2});return}if(!o&&!l){this._basicCornerExtraRounded({x:e,y:i,size:s,context:n,rotation:-Math.PI/2});return}if(!a&&!c){this._basicCornerExtraRounded({x:e,y:i,size:s,context:n,rotation:Math.PI/2});return}this._basicSquare({x:e,y:i,size:s,context:n,rotation:0})}}const zd={dot:"dot",square:"square",extraRounded:"extra-rounded"};class FO{constructor({context:e,type:i}){Nt(this,"_context"),Nt(this,"_type"),this._context=e,this._type=i}draw(e,i,s,n){const r=this._context,o=this._type;let a;switch(o){case zd.square:a=this._drawSquare;break;case zd.extraRounded:a=this._drawExtraRounded;break;case zd.dot:default:a=this._drawDot}a.call(this,{x:e,y:i,size:s,context:r,rotation:n})}_rotateFigure({x:e,y:i,size:s,context:n,rotation:r,draw:o}){const a=e+s/2,l=i+s/2;n.translate(a,l),r&&n.rotate(r),o(),n.closePath(),r&&n.rotate(-r),n.translate(-a,-l)}_basicDot(e){const{size:i,context:s}=e,n=i/7;this._rotateFigure({...e,draw:()=>{s.arc(0,0,i/2,0,Math.PI*2),s.arc(0,0,i/2-n,0,Math.PI*2)}})}_basicSquare(e){const{size:i,context:s}=e,n=i/7;this._rotateFigure({...e,draw:()=>{s.rect(-i/2,-i/2,i,i),s.rect(-i/2+n,-i/2+n,i-2*n,i-2*n)}})}_basicExtraRounded(e){const{size:i,context:s}=e,n=i/7;this._rotateFigure({...e,draw:()=>{s.arc(-n,-n,2.5*n,Math.PI,-Math.PI/2),s.lineTo(n,-3.5*n),s.arc(n,-n,2.5*n,-Math.PI/2,0),s.lineTo(3.5*n,-n),s.arc(n,n,2.5*n,0,Math.PI/2),s.lineTo(-n,3.5*n),s.arc(-n,n,2.5*n,Math.PI/2,Math.PI),s.lineTo(-3.5*n,-n),s.arc(-n,-n,1.5*n,Math.PI,-Math.PI/2),s.lineTo(n,-2.5*n),s.arc(n,-n,1.5*n,-Math.PI/2,0),s.lineTo(2.5*n,-n),s.arc(n,n,1.5*n,0,Math.PI/2),s.lineTo(-n,2.5*n),s.arc(-n,n,1.5*n,Math.PI/2,Math.PI),s.lineTo(-2.5*n,-n)}})}_drawDot({x:e,y:i,size:s,context:n,rotation:r}){this._basicDot({x:e,y:i,size:s,context:n,rotation:r})}_drawSquare({x:e,y:i,size:s,context:n,rotation:r}){this._basicSquare({x:e,y:i,size:s,context:n,rotation:r})}_drawExtraRounded({x:e,y:i,size:s,context:n,rotation:r}){this._basicExtraRounded({x:e,y:i,size:s,context:n,rotation:r})}}const am={dot:"dot",square:"square"};class NO{constructor({context:e,type:i}){Nt(this,"_context"),Nt(this,"_type"),this._context=e,this._type=i}draw(e,i,s,n){const r=this._context;switch(this._type){case am.square:this._drawSquare({x:e,y:i,size:s,context:r,rotation:n});break;case am.dot:default:this._drawDot({x:e,y:i,size:s,context:r,rotation:n})}}_rotateFigure({x:e,y:i,size:s,context:n,rotation:r,draw:o}){const a=e+s/2,l=i+s/2;n.moveTo(0,0),n.translate(a,l),r&&n.rotate(r),o(),n.closePath(),r&&n.rotate(-r),n.translate(-a,-l)}_drawDot(e){const{size:i,context:s}=e;this._rotateFigure({...e,draw:()=>{s.moveTo(0,0),s.arc(0,0,i/2,0,Math.PI*2)}})}_drawSquare(e){const{size:i,context:s}=e;this._rotateFigure({...e,draw:()=>{s.moveTo(0,0),s.rect(-i/2,-i/2,i,i)}})}}const BO={radial:"radial"},pn=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],gn=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class jO{constructor(e){Nt(this,"_canvas"),Nt(this,"_options"),Nt(this,"_qr"),Nt(this,"_image"),this._canvas=document.createElement("canvas"),this._canvas.width=e.width,this._canvas.height=e.height,this._options=e}get context(){return this._canvas.getContext("2d")}get width(){return this._canvas.width}get height(){return this._canvas.height}getCanvas(){return this._canvas}clear(){const e=this.context;e&&e.clearRect(0,0,this._canvas.width,this._canvas.height)}async drawQR(e){const i=e.getModuleCount(),s=Math.min(this._options.width,this._options.height)-this._options.margin*2,n=Math.floor(s/i);let r={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=e,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:o,qrOptions:a}=this._options,l=o.imageSize*DO[a.errorCorrectionLevel],c=Math.floor(l*i*i);r=LO({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:c,maxHiddenAxisDots:i-14,dotSize:n})}this.clear(),this.drawBackground(),this.drawDots((o,a)=>{var l,c,d,u,h,f;return!(this._options.imageOptions.hideBackgroundDots&&o>=(i-r.hideXDots)/2&&o<(i+r.hideXDots)/2&&a>=(i-r.hideYDots)/2&&a<(i+r.hideYDots)/2||(l=pn[o])!=null&&l[a]||(c=pn[o-i+7])!=null&&c[a]||(d=pn[o])!=null&&d[a-i+7]||(u=gn[o])!=null&&u[a]||(h=gn[o-i+7])!=null&&h[a]||(f=gn[o])!=null&&f[a-i+7])}),this.drawCorners(),this._options.image&&this.drawImage({width:r.width,height:r.height,count:i,dotSize:n})}drawBackground(){const e=this.context,i=this._options;if(e){if(i.backgroundOptions.gradient){const s=i.backgroundOptions.gradient,n=this._createGradient({context:e,options:s,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});s.colorStops.forEach(({offset:r,color:o})=>{n.addColorStop(r,o)}),e.fillStyle=n}else i.backgroundOptions.color&&(e.fillStyle=i.backgroundOptions.color);e.fillRect(0,0,this._canvas.width,this._canvas.height)}}drawDots(e){if(!this._qr)throw"QR code is not defined";const i=this.context;if(!i)throw"QR code is not defined";const s=this._options,n=this._qr.getModuleCount();if(n>s.width||n>s.height)throw"The canvas is too small.";const r=Math.min(s.width,s.height)-s.margin*2,o=Math.floor(r/n),a=Math.floor((s.width-n*o)/2),l=Math.floor((s.height-n*o)/2),c=new jd({context:i,type:s.dotsOptions.type});i.beginPath();for(let d=0;dd+h<0||u+f<0||d+h>=n||u+f>=n||e&&!e(d+h,u+f)?!1:!!this._qr&&this._qr.isDark(d+h,u+f));if(s.dotsOptions.gradient){const d=s.dotsOptions.gradient,u=this._createGradient({context:i,options:d,additionalRotation:0,x:a,y:l,size:n*o});d.colorStops.forEach(({offset:h,color:f})=>{u.addColorStop(h,f)}),i.fillStyle=i.strokeStyle=u}else s.dotsOptions.color&&(i.fillStyle=i.strokeStyle=s.dotsOptions.color);i.fill("evenodd")}drawCorners(e){if(!this._qr)throw"QR code is not defined";const i=this.context;if(!i)throw"QR code is not defined";const s=this._options,n=this._qr.getModuleCount(),r=Math.min(s.width,s.height)-s.margin*2,o=Math.floor(r/n),a=o*7,l=o*3,c=Math.floor((s.width-n*o)/2),d=Math.floor((s.height-n*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([u,h,f])=>{var p,g,m,y,C,w,A,x,E,T;if(e&&!e(u,h))return;const P=c+u*o*(n-7),k=d+h*o*(n-7);if((p=s.cornersSquareOptions)!=null&&p.type){const I=new FO({context:i,type:(g=s.cornersSquareOptions)==null?void 0:g.type});i.beginPath(),I.draw(P,k,a,f)}else{const I=new jd({context:i,type:s.dotsOptions.type});i.beginPath();for(let S=0;S{var N;return!!((N=pn[S+D])!=null&&N[b+B])})}if((y=s.cornersSquareOptions)!=null&&y.gradient){const I=s.cornersSquareOptions.gradient,S=this._createGradient({context:i,options:I,additionalRotation:f,x:P,y:k,size:a});I.colorStops.forEach(({offset:b,color:D})=>{S.addColorStop(b,D)}),i.fillStyle=i.strokeStyle=S}else(C=s.cornersSquareOptions)!=null&&C.color&&(i.fillStyle=i.strokeStyle=s.cornersSquareOptions.color);if(i.fill("evenodd"),(w=s.cornersDotOptions)!=null&&w.type){const I=new NO({context:i,type:(A=s.cornersDotOptions)==null?void 0:A.type});i.beginPath(),I.draw(P+o*2,k+o*2,l,f)}else{const I=new jd({context:i,type:s.dotsOptions.type});i.beginPath();for(let S=0;S{var N;return!!((N=gn[S+D])!=null&&N[b+B])})}if((E=s.cornersDotOptions)!=null&&E.gradient){const I=s.cornersDotOptions.gradient,S=this._createGradient({context:i,options:I,additionalRotation:f,x:P+o*2,y:k+o*2,size:l});I.colorStops.forEach(({offset:b,color:D})=>{S.addColorStop(b,D)}),i.fillStyle=i.strokeStyle=S}else(T=s.cornersDotOptions)!=null&&T.color&&(i.fillStyle=i.strokeStyle=s.cornersDotOptions.color);i.fill("evenodd")})}loadImage(){return new Promise((e,i)=>{const s=this._options,n=new Image;if(!s.image)return i("Image is not defined");typeof s.imageOptions.crossOrigin=="string"&&(n.crossOrigin=s.imageOptions.crossOrigin),this._image=n,n.onload=()=>{e()},n.src=s.image})}drawImage({width:e,height:i,count:s,dotSize:n}){const r=this.context;if(!r)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";const o=this._options,a=Math.floor((o.width-s*n)/2),l=Math.floor((o.height-s*n)/2),c=a+o.imageOptions.margin+(s*n-e)/2,d=l+o.imageOptions.margin+(s*n-i)/2,u=e-o.imageOptions.margin*2,h=i-o.imageOptions.margin*2;r.drawImage(this._image,c,d,u<0?0:u,h<0?0:h)}_createGradient({context:e,options:i,additionalRotation:s,x:n,y:r,size:o}){let a;if(i.type===BO.radial)a=e.createRadialGradient(n+o/2,r+o/2,0,n+o/2,r+o/2,o/2);else{const l=((i.rotation||0)+s)%(2*Math.PI),c=(l+2*Math.PI)%(2*Math.PI);let d=n+o/2,u=r+o/2,h=n+o/2,f=r+o/2;c>=0&&c<=.25*Math.PI||c>1.75*Math.PI&&c<=2*Math.PI?(d=d-o/2,u=u-o/2*Math.tan(l),h=h+o/2,f=f+o/2*Math.tan(l)):c>.25*Math.PI&&c<=.75*Math.PI?(u=u-o/2,d=d-o/2/Math.tan(l),f=f+o/2,h=h+o/2/Math.tan(l)):c>.75*Math.PI&&c<=1.25*Math.PI?(d=d+o/2,u=u+o/2*Math.tan(l),h=h-o/2,f=f-o/2*Math.tan(l)):c>1.25*Math.PI&&c<=1.75*Math.PI&&(u=u+o/2,d=d+o/2/Math.tan(l),f=f-o/2,h=h-o/2/Math.tan(l)),a=e.createLinearGradient(Math.round(d),Math.round(u),Math.round(h),Math.round(f))}return a}}const Y0={};for(let t=0;t<=40;t++)Y0[t]=t;const zO={Q:"Q"},lm={width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Y0[0],mode:void 0,errorCorrectionLevel:zO.Q},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};function Za(t){const e={...t};if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map(i=>({...i,offset:Number(i.offset)})),e}function cm(t){const e={...t};return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions={...e.imageOptions,hideBackgroundDots:!!e.imageOptions.hideBackgroundDots,imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)},e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions={...e.dotsOptions},e.dotsOptions.gradient&&(e.dotsOptions.gradient=Za(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions={...e.cornersSquareOptions},e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=Za(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions={...e.cornersDotOptions},e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=Za(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions={...e.backgroundOptions},e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=Za(e.backgroundOptions.gradient))),e}function VO(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var J0={exports:{}};(function(t,e){var i=function(){var s=function(x,E){var T=236,P=17,k=x,I=r[E],S=null,b=0,D=null,B=[],N={},W=function($,R){b=k*4+17,S=function(M){for(var j=new Array(M),v=0;v=7&&Ae($),D==null&&(D=ut(k,I,B)),Ye(D,R)},U=function($,R){for(var M=-1;M<=7;M+=1)if(!($+M<=-1||b<=$+M))for(var j=-1;j<=7;j+=1)R+j<=-1||b<=R+j||(0<=M&&M<=6&&(j==0||j==6)||0<=j&&j<=6&&(M==0||M==6)||2<=M&&M<=4&&2<=j&&j<=4?S[$+M][R+j]=!0:S[$+M][R+j]=!1)},Y=function(){for(var $=0,R=0,M=0;M<8;M+=1){W(!0,M);var j=a.getLostPoint(N);(M==0||$>j)&&($=j,R=M)}return R},ae=function(){for(var $=8;$>M&1)==1;S[Math.floor(M/3)][M%3+b-8-3]=j}for(var M=0;M<18;M+=1){var j=!$&&(R>>M&1)==1;S[M%3+b-8-3][Math.floor(M/3)]=j}},xe=function($,R){for(var M=I<<3|R,j=a.getBCHTypeInfo(M),v=0;v<15;v+=1){var _=!$&&(j>>v&1)==1;v<6?S[v][8]=_:v<8?S[v+1][8]=_:S[b-15+v][8]=_}for(var v=0;v<15;v+=1){var _=!$&&(j>>v&1)==1;v<8?S[8][b-v-1]=_:v<9?S[8][15-v-1+1]=_:S[8][15-v-1]=_}S[b-8][8]=!$},Ye=function($,R){for(var M=-1,j=b-1,v=7,_=0,O=a.getMaskFunction(R),L=b-1;L>0;L-=2)for(L==6&&(L-=1);;){for(var z=0;z<2;z+=1)if(S[j][L-z]==null){var V=!1;_<$.length&&(V=($[_]>>>v&1)==1);var H=O(j,L-z);H&&(V=!V),S[j][L-z]=V,v-=1,v==-1&&(_+=1,v=7)}if(j+=M,j<0||b<=j){j-=M,M=-M;break}}},Qe=function($,R){for(var M=0,j=0,v=0,_=new Array(R.length),O=new Array(R.length),L=0;L=0?Z.getAt(ne):0}}for(var te=0,H=0;HL*8)throw"code length overflow. ("+v.getLengthInBits()+">"+L*8+")";for(v.getLengthInBits()+4<=L*8&&v.put(0,4);v.getLengthInBits()%8!=0;)v.putBit(!1);for(;!(v.getLengthInBits()>=L*8||(v.put(T,8),v.getLengthInBits()>=L*8));)v.put(P,8);return Qe(v,j)};N.addData=function($,R){R=R||"Byte";var M=null;switch(R){case"Numeric":M=h($);break;case"Alphanumeric":M=f($);break;case"Byte":M=p($);break;case"Kanji":M=g($);break;default:throw"mode:"+R}B.push(M),D=null},N.isDark=function($,R){if($<0||b<=$||R<0||b<=R)throw $+","+R;return S[$][R]},N.getModuleCount=function(){return b},N.make=function(){if(k<1){for(var $=1;$<40;$++){for(var R=d.getRSBlocks($,I),M=u(),j=0;j"u"?$*4:R;var M="";M+='";for(var v=0;v';M+=""}return M+="",M+="
",M},N.createSvgTag=function($,R,M,j){var v={};typeof arguments[0]=="object"&&(v=arguments[0],$=v.cellSize,R=v.margin,M=v.alt,j=v.title),$=$||2,R=typeof R>"u"?$*4:R,M=typeof M=="string"?{text:M}:M||{},M.text=M.text||null,M.id=M.text?M.id||"qrcode-description":null,j=typeof j=="string"?{text:j}:j||{},j.text=j.text||null,j.id=j.text?j.id||"qrcode-title":null;var _=N.getModuleCount()*$+R*2,O,L,z,V,H="",ee;for(ee="l"+$+",0 0,"+$+" -"+$+",0 0,-"+$+"z ",H+=''+Te(j.text)+"":"",H+=M.text?''+Te(M.text)+"":"",H+='',H+='"u"?$*4:R;var M=N.getModuleCount()*$+R*2,j=R,v=M-R;return A(M,M,function(_,O){if(j<=_&&_"u"?$*4:R;var j=N.getModuleCount()*$+R*2,v="";return v+="",v};var Te=function($){for(var R="",M=0;M<$.length;M+=1){var j=$.charAt(M);switch(j){case"<":R+="<";break;case">":R+=">";break;case"&":R+="&";break;case'"':R+=""";break;default:R+=j;break}}return R},K=function($){var R=1;$=typeof $>"u"?R*2:$;var M=N.getModuleCount()*R+$*2,j=$,v=M-$,_,O,L,z,V,H={"██":"█","█ ":"▀"," █":"▄"," ":" "},ee={"██":"▀","█ ":"▀"," █":" "," ":" "},Q="";for(_=0;_=v?ee[V]:H[V];Q+=` +`}return M%2&&$>0?Q.substring(0,Q.length-M-1)+Array(M+1).join("▀"):Q.substring(0,Q.length-1)};return N.createASCII=function($,R){if($=$||1,$<2)return K(R);$-=1,R=typeof R>"u"?$*2:R;var M=N.getModuleCount()*$+R*2,j=R,v=M-R,_,O,L,z,V=Array($+1).join("██"),H=Array($+1).join(" "),ee="",Q="";for(_=0;_>>8),I.push(D&255)):I.push(P)}}return I}};var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},r={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a=function(){var x=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],E=1335,T=7973,P=21522,k={},I=function(S){for(var b=0;S!=0;)b+=1,S>>>=1;return b};return k.getBCHTypeInfo=function(S){for(var b=S<<10;I(b)-I(E)>=0;)b^=E<=0;)b^=T<5&&(D+=3+W-5)}for(var B=0;B=256;)k-=255;return x[k]},P}();function c(x,E){if(typeof x.length>"u")throw x.length+"/"+E;var T=function(){for(var k=0;k"u")throw"bad rs block @ typeNumber:"+k+"/errorCorrectionLevel:"+I;for(var b=S.length/3,D=[],B=0;B>>7-P%8&1)==1},T.put=function(P,k){for(var I=0;I>>k-I-1&1)==1)},T.getLengthInBits=function(){return E},T.putBit=function(P){var k=Math.floor(E/8);x.length<=k&&x.push(0),P&&(x[k]|=128>>>E%8),E+=1},T},h=function(x){var E=n.MODE_NUMBER,T=x,P={};P.getMode=function(){return E},P.getLength=function(S){return T.length},P.write=function(S){for(var b=T,D=0;D+2>>8&255)*192+(D&255),I.put(D,13),b+=2}if(b>>8)},E.writeBytes=function(T,P,k){P=P||0,k=k||T.length;for(var I=0;I0&&(T+=","),T+=x[P];return T+="]",T},E},y=function(){var x=0,E=0,T=0,P="",k={},I=function(b){P+=String.fromCharCode(S(b&63))},S=function(b){if(!(b<0)){if(b<26)return 65+b;if(b<52)return 97+(b-26);if(b<62)return 48+(b-52);if(b==62)return 43;if(b==63)return 47}throw"n:"+b};return k.writeByte=function(b){for(x=x<<8|b&255,E+=8,T+=1;E>=6;)I(x>>>E-6),E-=6},k.flush=function(){if(E>0&&(I(x<<6-E),x=0,E=0),T%3!=0)for(var b=3-T%3,D=0;D=E.length){if(k==0)return-1;throw"unexpected end of file./"+k}var b=E.charAt(T);if(T+=1,b=="=")return k=0,-1;b.match(/^\s$/)||(P=P<<6|S(b.charCodeAt(0)),k+=6)}var D=P>>>k-8&255;return k-=8,D};var S=function(b){if(65<=b&&b<=90)return b-65;if(97<=b&&b<=122)return b-97+26;if(48<=b&&b<=57)return b-48+52;if(b==43)return 62;if(b==47)return 63;throw"c:"+b};return I},w=function(x,E){var T=x,P=E,k=new Array(x*E),I={};I.setPixel=function(B,N,W){k[N*T+B]=W},I.write=function(B){B.writeString("GIF87a"),B.writeShort(T),B.writeShort(P),B.writeByte(128),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(0),B.writeByte(255),B.writeByte(255),B.writeByte(255),B.writeString(","),B.writeShort(0),B.writeShort(0),B.writeShort(T),B.writeShort(P),B.writeByte(0);var N=2,W=b(N);B.writeByte(N);for(var U=0;W.length-U>255;)B.writeByte(255),B.writeBytes(W,U,255),U+=255;B.writeByte(W.length-U),B.writeBytes(W,U,W.length-U),B.writeByte(0),B.writeString(";")};var S=function(B){var N=B,W=0,U=0,Y={};return Y.write=function(ae,ve){if(ae>>>ve)throw"length over";for(;W+ve>=8;)N.writeByte(255&(ae<>>=8-W,U=0,W=0;U=ae<0&&N.writeByte(U)},Y},b=function(B){for(var N=1<>6,128|l&63):l<55296||l>=57344?o.push(224|l>>12,128|l>>6&63,128|l&63):(a++,l=65536+((l&1023)<<10|r.charCodeAt(a)&1023),o.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return o}return n(s)}})(),function(s){t.exports=s()}(function(){return i})})(J0);var UO=J0.exports;const qO=VO(UO);class Sf{constructor(e){Nt(this,"_options"),Nt(this,"_container"),Nt(this,"_canvas"),Nt(this,"_qr"),Nt(this,"_drawingPromise"),this._options=e?cm(Zl(lm,e)):lm,this.update()}static _clearContainer(e){e&&(e.innerHTML="")}update(e){Sf._clearContainer(this._container),this._options=e?cm(Zl(this._options,e)):this._options,this._options.data&&(this._qr=qO(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||RO(this._options.data)),this._qr.make(),this._canvas=new jO(this._options),this._drawingPromise=this._canvas.drawQR(this._qr),this.append(this._container))}append(e){if(e){if(typeof e.appendChild!="function")throw"Container should be a single DOM node";this._canvas&&e.appendChild(this._canvas.getCanvas()),this._container=e}}async getImageUrl(e){return this._drawingPromise&&await this._drawingPromise===void 0&&this._canvas?this._canvas.getCanvas().toDataURL(`image/${e}`):""}download(e){this._drawingPromise&&this._drawingPromise.then(()=>{if(!this._canvas)return;const i=e,s=i.extension||"png",n=i.name||"qr",r=this._canvas.getCanvas().toDataURL(`image/${s}`);$O(r,`${n}.${s}`)})}}const HO=["src"],WO={key:1},KO=D0({__name:"QRCodeVue3Async",props:{value:{default:""},width:{default:300},height:{default:300},margin:{default:0},imgclass:{default:""},myclass:{default:""},downloadButton:{default:""},buttonName:{default:"Download"},qrOptions:{default:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"}},imageOptions:{default:{hideBackgroundDots:!0,imageSize:.4,margin:0}},dotsOptions:{default:{type:"dots",color:"#6a1a4c",gradient:{type:"linear",rotation:0,colorStops:[{offset:0,color:"#6a1a4c"},{offset:1,color:"#6a1a4c"}]}}},backgroundOptions:{default:{color:"#ffffff"}},cornersSquareOptions:{default:{type:"dot",color:"#000000"}},cornersDotOptions:{default:{type:void 0,color:"#000000"}},fileExt:{default:"png"},image:{default:""},download:{type:Boolean,default:!1},downloadOptions:{default:{name:"vqr",extension:"png"}}},async setup(t){let e,i;const s=t,n=new Sf({data:s.value,width:s.width,height:s.height,margin:s.margin,qrOptions:s.qrOptions,imageOptions:s.imageOptions,dotsOptions:s.dotsOptions,backgroundOptions:s.backgroundOptions,image:s.image,cornersSquareOptions:s.cornersSquareOptions,cornersDotOptions:s.cornersDotOptions});let r=([e,i]=J2(()=>n.getImageUrl(s.fileExt)),e=await e,i(),e);function o(){n.download(s.downloadOptions)}return(a,l)=>(xr(),Fd("div",null,[kl(r)?(xr(),Fd("div",{key:0,class:br(a.myclass)},[Yl("img",{src:kl(r),class:br(a.imgclass),crossorigin:"anonymous"},null,10,HO)],2)):om("",!0),kl(r)&&a.download?(xr(),Fd("div",WO,[Yl("button",{onClick:o,class:br(a.downloadButton)},m0(a.buttonName),3)])):om("",!0)]))}}),GO=D0({__name:"QRCodeVue3",props:{value:{default:""},width:{default:300},height:{default:300},margin:{default:0},imgclass:{default:""},myclass:{default:""},downloadButton:{default:""},buttonName:{default:"Download"},qrOptions:{default:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"Q"}},imageOptions:{default:{hideBackgroundDots:!0,imageSize:.4,margin:0}},dotsOptions:{default:{type:"dots",color:"#6a1a4c",gradient:{type:"linear",rotation:0,colorStops:[{offset:0,color:"#6a1a4c"},{offset:1,color:"#6a1a4c"}]}}},backgroundOptions:{default:{color:"#ffffff"}},cornersSquareOptions:{default:{type:"dot",color:"#000000"}},cornersDotOptions:{default:{type:void 0,color:"#000000"}},fileExt:{default:"png"},image:{default:""},download:{type:Boolean,default:!1},downloadOptions:{default:{name:"vqr",extension:"png"}}},setup(t){const e=t;return(i,s)=>(xr(),W0(pO,null,{default:R2(()=>[Gs(KO,{"background-options":e.backgroundOptions,"button-name":e.buttonName,"corners-dot-options":e.cornersDotOptions,"corners-square-options":e.cornersSquareOptions,"dots-options":e.dotsOptions,download:e.download,"download-button":e.downloadButton,"download-options":e.downloadOptions,"file-ext":e.fileExt,height:e.height,image:e.image,"image-options":e.imageOptions,imgclass:e.imgclass,margin:e.margin,value:e.value,myclass:e.myclass,"qr-options":e.qrOptions,width:e.width},null,8,["background-options","button-name","corners-dot-options","corners-square-options","dots-options","download","download-button","download-options","file-ext","height","image","image-options","imgclass","margin","value","myclass","qr-options","width"])]),_:1}))}}),YO={props:{qrData:{required:!0},options:{default:{errorCorrectionLevel:"L"}}},data(){return{qrValue:Vn("")}},computed:{getQrValue(){return JSON.stringify(this.qrData)}},methods:{}},X0=Se({...YO,__name:"QRCode",setup(t){return(e,i)=>(q(),vt(Re(GO),{width:400,height:400,value:e.getQrValue,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"L"},dotsOptions:{type:"dots",color:"#000",gradient:{type:"linear",rotation:0,colorStops:[{offset:0,color:"#000"},{offset:1,color:"#000"}]}},backgroundOptions:{color:"#ffffff"},cornersSquareOptions:{type:"dot",color:"#000000"},cornersDotOptions:{type:"square",color:"#000000"}},null,8,["value"]))}});async function Q0(){let t=tn();await t.updateEvent();const e=t.eventId,{data:i,error:s}=await Ki.from(Uh).select("*").eq("event_id",e).order("team_number",{ascending:!0});let n={key:"team_number",label:"Team",type:"number",options:{},defaultValue:null,value:null,preserveAfterSubmit:!1,incrementAfterSubmit:!1,required:!0,error:!1};if(s)return console.log(s),n;n.type="dropdown",n.defaultValue=0,n.value=0,n.options.choices=[{key:"none",text:"Select team..."}];for(var r=0;r{i.components.forEach(s=>{if(s.required){const n=s.type=="text"||s.type=="textarea",r=s.type=="radio",o=s.type=="number",a=s.type=="dropdown";n&&s.value==""||r&&s.value==s.defaultValue||o&&s.value==s.defaultValue||a&&s.value==0?(e=!1,s.error=!0):s.error=!1}})}),{data:t,valid:e}}function e_(t,e){let i={};return t.forEach(s=>{s.components.forEach(n=>{const r=(s.key+"."+n.key).toLowerCase(),o=n.type,a=n.value;if(o=="dropdown")i[r]=n.options.choices[a].key;else if(o=="optionswitch")i[r]=a?n.options.selected:n.options.unselected;else if(o=="stacked-counters")a.forEach((d,u)=>{const h=(r+"."+n.options.labels[u]).toLowerCase();i[h]=d});else if(o=="grid-counters"){const d=n.options.sections,u=n.options.labels;for(var l=0;l`}}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const eI=dt`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)} +`;/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let th=class extends ZO{};th.styles=[c0,l0,eI];th=F([Zt("md-filled-button")],th);const tI={class:"main-content"},iI={key:0},sI={key:1,class:"data-tile error-tile"},nI={key:2,class:"data-tile success-tile"},rI={key:3,class:"data-tile notification-tile"},oI={key:4,class:"data-tile"},aI={key:5,class:"button-container"},lI={data(){return{eventStore:null,formLoaded:!1,scoutForm:null,submitData:{},submitFailed:!1,submitSuccess:!1,formInvalid:!1,isSubmitting:!1,resetSuccess:!1}},methods:{async loadScoutForm(){this.formLoaded=!1,this.scoutForm=await QO(),this.formLoaded=!0},formValidation(){this.formInvalid=!1;const{data:t,valid:e}=Z0(this.scoutForm);return this.scoutForm=t,this.formInvalid=!e,this.submitSuccess=!1,this.resetSuccess=!1,e},async submitForm(){if(this.submitFailed=!1,this.submitSuccess=!1,this.isSubmitting=!0,this.resetSuccess=!1,!this.formValidation()){this.isSubmitting=!1;return}this.submitData=e_(this.scoutForm,this.eventStore.eventId);const t=await t_(this.submitData,Sc);if(this.preserveSingleEntryData(),t){console.log(t),this.submitFailed=!0,this.isSubmitting=!1;return}this.resetFormData(!0),this.submitSuccess=!0,this.submitData={},this.isSubmitting=!1},preserveSingleEntryData(){this.scoutForm.forEach(t=>{t.components.forEach(e=>{e.preserveAfterSubmit&&(e.defaultValue=e.value)})})},resetFormData(t){this.scoutForm.forEach(e=>{e.components.forEach(i=>{!i.incrementAfterSubmit||!t?i.value=i.defaultValue:i.value=i.value+1,i.error=!1,console.log(e.key+"-"+i.key+": "+i.value)})}),this.submitFailed=!1,this.formInvalid=!1,this.submitSuccess=!1,this.resetSuccess=!0}},computed:{getAllianceColor(){return this.scoutForm[0].components[4].value?"blue":"red"},getSubmitDataString(){return JSON.stringify(this.submitData)}},created(){this.eventStore=tn(),this.loadScoutForm()}},cI=Se({...lI,__name:"MatchScoutView",setup(t){return(e,i)=>(q(),G("div",tI,[i[8]||(i[8]=X("h1",null,"Match Scouting",-1)),e.formLoaded?(q(),G("form",iI,[(q(!0),G(ye,null,st(e.scoutForm,s=>(q(),vt(d0,{"section-key":s.key,name:s.name,components:s.components,color:e.getAllianceColor,onFormUpdate:e.formValidation},null,8,["section-key","name","components","color","onFormUpdate"]))),256))])):qe("",!0),e.formInvalid?(q(),G("div",sI,i[2]||(i[2]=[X("h1",null,"^^^ Form is invalid. Please check the form for errors ^^^",-1)]))):qe("",!0),e.submitSuccess?(q(),G("div",nI,i[3]||(i[3]=[X("h1",null,"Submitted successfully!",-1)]))):qe("",!0),e.resetSuccess?(q(),G("div",rI,i[4]||(i[4]=[X("h1",null,"Reset form successfully!",-1)]))):qe("",!0),e.submitFailed?(q(),G("div",oI,[i[5]||(i[5]=X("h1",null,"DATA UPLOAD FAILED",-1)),i[6]||(i[6]=X("h1",null,"SCAN THIS QR CODE",-1)),oe(X0,{"qr-data":e.submitData},null,8,["qr-data"]),i[7]||(i[7]=X("h3",null,"Save this text to a file if a scanner is unavailable",-1)),X("p",null,fe(e.getSubmitDataString),1)])):qe("",!0),e.formLoaded&&!e.isSubmitting?(q(),G("div",aI,[X("md-filled-button",{onClick:i[0]||(i[0]=s=>e.resetFormData(!1)),class:"reset-button"},"RESET"),X("md-filled-button",{onClick:i[1]||(i[1]=(...s)=>e.submitForm&&e.submitForm(...s)),class:"submit-button"},"SUBMIT")])):qe("",!0)]))}}),dm=vi(cI,[["__scopeId","data-v-25b5c013"]]);async function dI(){const t=await Q0();return[{key:"pit",name:"",components:[{key:"scout_name",label:"Scout Name",type:"text",options:{},defaultValue:"",value:"",preserveAfterSubmit:!0,required:!0,error:!1},t,{key:"drivetrain",label:"Drivetrain Type",type:"dropdown",options:{choices:[{key:"swerve",text:"Swerve"},{key:"tank",text:"Tank"},{key:"mecanum",text:"Mecanum"},{key:"other",text:"Other"}]},defaultValue:0,value:0,preserveAfterSubmit:!0,required:!1,error:!1},{key:"coral_intake",label:"Coral Intake",type:"radio",options:{choices:[{key:"none",text:"None"},{key:"feeder",text:"Feeder"},{key:"ground",text:"Ground"},{key:"both",text:"Both"}],isVertical:!1},defaultValue:"",value:"",preserveAfterSubmit:!1,required:!0,error:!1},{key:"algae_intake",label:"Algae Intake",type:"radio",options:{choices:[{key:"none",text:"None"},{key:"ground",text:"Ground"},{key:"reef",text:"Reef"},{key:"both",text:"Both"}],isVertical:!1},defaultValue:"",value:"",preserveAfterSubmit:!1,required:!0,error:!1},{key:"climb",label:"Climb Type",type:"radio",options:{choices:[{key:"none",text:"None"},{key:"shallow",text:"Shallow only"},{key:"deep",text:"Deep only"},{key:"both",text:"Both"}],isVertical:!1},defaultValue:"",value:"",preserveAfterSubmit:!1,required:!0,error:!1}]}]}const uI={class:"main-content"},hI={key:0},fI={key:1,class:"data-tile error-tile"},pI={key:2,class:"data-tile success-tile"},gI={key:3,class:"data-tile notification-tile"},mI={key:4,class:"data-tile"},vI={key:5,class:"button-container"},bI={data(){return{eventStore:null,scoutForm:null,formLoaded:!1,submitData:{},submitSuccess:!1,submitFailed:!1,formInvalid:!1,isSubmitting:!1,resetSuccess:!1}},methods:{async loadForm(){this.formLoaded=!1,this.scoutForm=await dI(),this.formLoaded=!0},formValidation(){this.formInvalid=!1;const{data:t,valid:e}=Z0(this.scoutForm);return this.scoutForm=t,this.formInvalid=!e,this.submitSuccess=!1,this.resetSuccess=!1,e},async submitForm(){if(this.submitFailed=!1,this.submitSuccess=!1,this.isSubmitting=!0,this.resetSuccess=!1,!this.formValidation()){this.isSubmitting=!1;return}this.submitData=e_(this.scoutForm,this.eventStore.eventId);const t=await t_(this.submitData,Vh);if(this.preserveSingleEntryData(),t){console.log(t),this.submitFailed=!0,this.isSubmitting=!1;return}this.resetFormData(),this.submitSuccess=!0,this.submitData={},this.isSubmitting=!1},preserveSingleEntryData(){this.scoutForm.forEach(t=>{t.components.forEach(e=>{e.preserveAfterSubmit&&(e.defaultValue=e.value)})})},resetFormData(){this.scoutForm.forEach(t=>{t.components.forEach(e=>{e.value=e.defaultValue,e.error=!1})}),this.submitFailed=!1,this.formInvalid=!1,this.submitSuccess=!1,this.resetSuccess=!0}},computed:{getSubmitDataString(){return JSON.stringify(this.submitData)}},created(){this.eventStore=tn(),this.loadForm()}},yI=Se({...bI,__name:"PitScoutView",setup(t){return(e,i)=>(q(),G("div",uI,[i[8]||(i[8]=X("h1",null,"Pit Scouting",-1)),e.formLoaded?(q(),G("form",hI,[(q(!0),G(ye,null,st(e.scoutForm,s=>(q(),vt(d0,{"section-key":s.key,name:s.name,components:s.components,color:"gray",onFormUpdate:e.formValidation},null,8,["section-key","name","components","onFormUpdate"]))),256))])):qe("",!0),e.formInvalid?(q(),G("div",fI,i[2]||(i[2]=[X("h1",null,"^^^ Form is invalid. Please check the form for errors ^^^",-1)]))):qe("",!0),e.submitSuccess?(q(),G("div",pI,i[3]||(i[3]=[X("h1",null,"Submitted successfully!",-1)]))):qe("",!0),e.resetSuccess?(q(),G("div",gI,i[4]||(i[4]=[X("h1",null,"Reset form successfully!",-1)]))):qe("",!0),e.submitFailed?(q(),G("div",mI,[i[5]||(i[5]=X("h1",null,"DATA UPLOAD FAILED",-1)),i[6]||(i[6]=X("h1",null,"SCAN THIS QR CODE",-1)),oe(X0,{"qr-data":e.submitData},null,8,["qr-data"]),i[7]||(i[7]=X("h3",null,"Save this text to a file if a scanner is unavailable",-1)),X("p",null,fe(e.getSubmitDataString),1)])):qe("",!0),e.formLoaded&&!e.isSubmitting?(q(),G("div",vI,[X("md-filled-button",{onClick:i[0]||(i[0]=(...s)=>e.resetFormData&&e.resetFormData(...s)),class:"reset-button"},"RESET"),X("md-filled-button",{onClick:i[1]||(i[1]=(...s)=>e.submitForm&&e.submitForm(...s)),class:"submit-button"},"SUBMIT")])):qe("",!0)]))}}),_I=vi(yI,[["__scopeId","data-v-f9fe1c08"]]);function zi(t){if(t.length===0)return 0;var e=t[0],i=0,s;if(typeof e!="number")return Number.NaN;for(var n=1;n=Math.abs(t[n])?i+=e-s+t[n]:i+=t[n]-s+e,e=s}return e+i}function $t(t){if(t.length===0)throw new Error("mean requires at least one data point");return zi(t)/t.length}function xI(t,e){var i=$t(t),s=0,n,r;for(r=0;re&&(e=t[i]);return e}function kI(t,e,i){return t=JSON.parse(JSON.stringify(t)),e=JSON.parse(JSON.stringify(e)),typeof t=="number"&&i?e-t:typeof t=="number"?t-e:Array.isArray(t)&&typeof t[0]=="number"&&i?$t(e)-$t(t):Array.isArray(t)&&typeof t[0]=="number"?$t(t)-$t(e):e.localeCompare(t)}function SI(t){return t.sort((e,i)=>kI(e[1],i[1],!0)),t}function Cf(t,e){var i=t.map(function(s,n){return[s,e[n]]});return SI(i)}function CI(t,e){let i={};return Object.keys(t).forEach(s=>{e.includes(s)||(i[s]=t[s])}),i}function AI(t){const e=["th","st","nd","rd"],i=t%100;return t+(e[(i-20)%10]||e[i]||e[0])}const TI=3,EI=3,PI=4,OI=6,II=7,MI=2,RI=3,$I=4,LI=5,um=4,hm=6,DI=2,FI=6,NI=12,BI=-2,jI=-6,fm=["rankings","distributions"];async function Af(t,e){const{data:i,error:s}=await Ki.from(t).select().eq("event",e);if(s)return console.log(s),[];let n={};return n=zI(i,n),n=VI(n),n=UI(n),n}function zI(t,e){for(let i=0;i{e[s].match_data[te].push(ne[te])})}return e}function VI(t){const e=["matchNumber","startPosition","comments","scoutName","scoutTeam"],i=["climbSpeed","drivingScore","defenseScore","stabilityScore"],s=Object.keys(t);for(let n=0;n{if(!e.includes(a)){const l="mean_"+a,c="stddev_"+a,d="min_"+a,u="max_"+a;let h=0,f=0,p=0,g=0,m=o[a];i.includes(a)&&(m=m.filter(function(y){return y>=0})),m.length>0&&(h=$t(m),f=i_(m),p=s_(m),g=n_(m)),t[r][l]=h,t[r][c]=f,t[r][d]=p,t[r][u]=g}})}return t}function UI(t){const e=["matchNumber","startPosition","match_data","team_number"],i=Object.keys(t);if(i.length>0){let s=Object.keys(t[i[0]]),n={},r={};s.forEach(o=>{if(!e.includes(o)){let l=i.slice(),c=[];for(var a=0;a.6){let a=155*(t-.6)/.4+100;o.color="rgb("+a+", 0, 0)",o["font-weight"]="bold"}return o}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const KI=dt`:host{display:flex;--md-ripple-hover-color: var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, 0.3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-menu-item-one-line-container-height, 56px);padding-top:var(--md-menu-item-top-space, 12px);padding-bottom:var(--md-menu-item-bottom-space, 12px);padding-inline-start:var(--md-menu-item-leading-space, 16px);padding-inline-end:var(--md-menu-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-menu-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-menu-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}.list-item{background-color:var(--md-menu-item-container-color, transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color, var(--md-sys-color-secondary-container, #e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b))}@media(forced-colors: active){:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}} +`;/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class Tf extends ot{constructor(){super(...arguments),this.multiline=!1}render(){return ce` + + +
+ + + + +
+ + + `}handleTextSlotChange(){let e=!1,i=0;for(const s of this.textSlots)if(GI(s)&&(i+=1),i>1){e=!0;break}this.multiline=e}}F([J({type:Boolean,reflect:!0})],Tf.prototype,"multiline",void 0);F([VA(".text slot")],Tf.prototype,"textSlots",void 0);function GI(t){var e;for(const i of t.assignedNodes({flatten:!0})){const s=i.nodeType===Node.ELEMENT_NODE,n=i.nodeType===Node.TEXT_NODE&&((e=i.textContent)==null?void 0:e.match(/\S/));if(s||n)return!0}return!1}/** + * @license + * Copyright 2024 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const YI=dt`:host{color:var(--md-sys-color-on-surface, #1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, 0.875rem);font-weight:var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden} +`;/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let nh=class extends Tf{};nh.styles=[YI];nh=F([Zt("md-item")],nh);/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */class JI{constructor(e,i){this.host=e,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent(Fg(this.host,{kind:Ng.CLICK_SELECTION}))},this.onKeydown=s=>{if(this.host.href&&s.code==="Enter"){const r=this.getInteractiveElement();r instanceof HTMLAnchorElement&&r.click()}if(s.defaultPrevented)return;const n=s.code;this.host.keepOpen&&n!=="Escape"||e0(n)&&(s.preventDefault(),this.host.dispatchEvent(Fg(this.host,{kind:Ng.KEYDOWN,key:n})))},this.getHeadlineElements=i.getHeadlineElements,this.getSupportingTextElements=i.getSupportingTextElements,this.getDefaultElements=i.getDefaultElements,this.getInteractiveElement=i.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(this.internalTypeaheadText!==null)return this.internalTypeaheadText;const e=this.getHeadlineElements(),i=[];return e.forEach(s=>{s.textContent&&s.textContent.trim()&&i.push(s.textContent.trim())}),i.length===0&&this.getDefaultElements().forEach(s=>{s.textContent&&s.textContent.trim()&&i.push(s.textContent.trim())}),i.length===0&&this.getSupportingTextElements().forEach(s=>{s.textContent&&s.textContent.trim()&&i.push(s.textContent.trim())}),i.join(" ")}get tagName(){switch(this.host.type){case"link":return"a";case"button":return"button";default:case"menuitem":case"option":return"li"}}get role(){return this.host.type==="option"?"option":"menuitem"}hostConnected(){this.host.toggleAttribute("md-menu-item",!0)}hostUpdate(){this.host.href&&(this.host.type="link")}setTypeaheadText(e){this.internalTypeaheadText=e}}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */function XI(){return new Event("request-selection",{bubbles:!0,composed:!0})}function QI(){return new Event("request-deselection",{bubbles:!0,composed:!0})}class ZI{get role(){return this.menuItemController.role}get typeaheadText(){return this.menuItemController.typeaheadText}setTypeaheadText(e){this.menuItemController.setTypeaheadText(e)}get displayText(){return this.internalDisplayText!==null?this.internalDisplayText:this.menuItemController.typeaheadText}setDisplayText(e){this.internalDisplayText=e}constructor(e,i){this.host=e,this.internalDisplayText=null,this.firstUpdate=!0,this.onClick=()=>{this.menuItemController.onClick()},this.onKeydown=s=>{this.menuItemController.onKeydown(s)},this.lastSelected=this.host.selected,this.menuItemController=new JI(e,i),e.addController(this)}hostUpdate(){this.lastSelected!==this.host.selected&&(this.host.ariaSelected=this.host.selected?"true":"false")}hostUpdated(){this.lastSelected!==this.host.selected&&!this.firstUpdate&&(this.host.selected?this.host.dispatchEvent(XI()):this.host.dispatchEvent(QI())),this.lastSelected=this.host.selected,this.firstUpdate=!1}}/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */const eM=ga(ot);class bi extends eM{constructor(){super(...arguments),this.disabled=!1,this.isMenuItem=!0,this.selected=!1,this.value="",this.type="option",this.selectOptionController=new ZI(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.selectOptionController.typeaheadText}set typeaheadText(e){this.selectOptionController.setTypeaheadText(e)}get displayText(){return this.selectOptionController.displayText}set displayText(e){this.selectOptionController.setDisplayText(e)}render(){return this.renderListItem(ce` + +
+ ${this.renderRipple()} ${this.renderFocusRing()} +
+ + + ${this.renderBody()} +
+ `)}renderListItem(e){return ce` +
  • ${e}
  • + `}renderRipple(){return ce` `}renderFocusRing(){return ce` `}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return ce` + + + + + + `}focus(){var e;(e=this.listItemRoot)==null||e.focus()}}bi.shadowRootOptions={...ot.shadowRootOptions,delegatesFocus:!0};F([J({type:Boolean,reflect:!0})],bi.prototype,"disabled",void 0);F([J({type:Boolean,attribute:"md-menu-item",reflect:!0})],bi.prototype,"isMenuItem",void 0);F([J({type:Boolean})],bi.prototype,"selected",void 0);F([J()],bi.prototype,"value",void 0);F([zt(".list-item")],bi.prototype,"listItemRoot",void 0);F([sn({slot:"headline"})],bi.prototype,"headlineElements",void 0);F([sn({slot:"supporting-text"})],bi.prototype,"supportingTextElements",void 0);F([UA({slot:""})],bi.prototype,"defaultElements",void 0);F([J({attribute:"typeahead-text"})],bi.prototype,"typeaheadText",null);F([J({attribute:"display-text"})],bi.prototype,"displayText",null);/** + * @license + * Copyright 2023 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */let rh=class extends bi{};rh.styles=[KI];rh=F([Zt("md-select-option")],rh);const tM="#c78000",ec="#c7800080",iM="#00987980",el={background:"rgba(255,99,132,0.2)",border:"rgba(255,99,132,1)",pointBackground:"rgba(255,99,132,1)",pointHoverBorder:"rgba(255,99,132,1)"},sM={axesText:"#555",dataLabels:"#333",legend:"#555"},nM={axes:"rgba(0, 0, 0, 0.1)"},rM={text:sM,grid:nM,background:"rgba(255, 255, 255, 0)"},oM={axesText:"#AAA",dataLabels:"#CCC",legend:"#AAA"},aM={lines:"rgba(255, 255, 255, 0.1)"},lM={text:oM,grid:aM,background:"#27272700"};function ge(){return Un().isDarkMode?lM:rM}/*! + * @kurkle/color v0.3.4 + * https://github.com/kurkle/color#readme + * (c) 2024 Jukka Kurkela + * Released under the MIT License + */function xa(t){return t+.5|0}const zs=(t,e,i)=>Math.max(Math.min(t,i),e);function ao(t){return zs(xa(t*2.55),0,255)}function Ys(t){return zs(xa(t*255),0,255)}function cs(t){return zs(xa(t/2.55)/100,0,1)}function pm(t){return zs(xa(t*100),0,100)}const ai={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},oh=[..."0123456789ABCDEF"],cM=t=>oh[t&15],dM=t=>oh[(t&240)>>4]+oh[t&15],tl=t=>(t&240)>>4===(t&15),uM=t=>tl(t.r)&&tl(t.g)&&tl(t.b)&&tl(t.a);function hM(t){var e=t.length,i;return t[0]==="#"&&(e===4||e===5?i={r:255&ai[t[1]]*17,g:255&ai[t[2]]*17,b:255&ai[t[3]]*17,a:e===5?ai[t[4]]*17:255}:(e===7||e===9)&&(i={r:ai[t[1]]<<4|ai[t[2]],g:ai[t[3]]<<4|ai[t[4]],b:ai[t[5]]<<4|ai[t[6]],a:e===9?ai[t[7]]<<4|ai[t[8]]:255})),i}const fM=(t,e)=>t<255?e(t):"";function pM(t){var e=uM(t)?cM:dM;return t?"#"+e(t.r)+e(t.g)+e(t.b)+fM(t.a,e):void 0}const gM=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function a_(t,e,i){const s=e*Math.min(i,1-i),n=(r,o=(r+t/30)%12)=>i-s*Math.max(Math.min(o-3,9-o,1),-1);return[n(0),n(8),n(4)]}function mM(t,e,i){const s=(n,r=(n+t/60)%6)=>i-i*e*Math.max(Math.min(r,4-r,1),0);return[s(5),s(3),s(1)]}function vM(t,e,i){const s=a_(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function bM(t,e,i,s,n){return t===n?(e-i)/s+(e.5?d/(2-r-o):d/(r+o),l=bM(i,s,n,d,r),l=l*60+.5),[l|0,c||0,a]}function Pf(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(Ys)}function Of(t,e,i){return Pf(a_,t,e,i)}function yM(t,e,i){return Pf(vM,t,e,i)}function _M(t,e,i){return Pf(mM,t,e,i)}function l_(t){return(t%360+360)%360}function xM(t){const e=gM.exec(t);let i=255,s;if(!e)return;e[5]!==s&&(i=e[6]?ao(+e[5]):Ys(+e[5]));const n=l_(+e[2]),r=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?s=yM(n,r,o):e[1]==="hsv"?s=_M(n,r,o):s=Of(n,r,o),{r:s[0],g:s[1],b:s[2],a:i}}function wM(t,e){var i=Ef(t);i[0]=l_(i[0]+e),i=Of(i),t.r=i[0],t.g=i[1],t.b=i[2]}function kM(t){if(!t)return;const e=Ef(t),i=e[0],s=pm(e[1]),n=pm(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${cs(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}const gm={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},mm={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function SM(){const t={},e=Object.keys(mm),i=Object.keys(gm);let s,n,r,o,a;for(s=0;s>16&255,r>>8&255,r&255]}return t}let il;function CM(t){il||(il=SM(),il.transparent=[0,0,0,0]);const e=il[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const AM=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function TM(t){const e=AM.exec(t);let i=255,s,n,r;if(e){if(e[7]!==s){const o=+e[7];i=e[8]?ao(o):zs(o*255,0,255)}return s=+e[1],n=+e[3],r=+e[5],s=255&(e[2]?ao(s):zs(s,0,255)),n=255&(e[4]?ao(n):zs(n,0,255)),r=255&(e[6]?ao(r):zs(r,0,255)),{r:s,g:n,b:r,a:i}}}function EM(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${cs(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Vd=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,sr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function PM(t,e,i){const s=sr(cs(t.r)),n=sr(cs(t.g)),r=sr(cs(t.b));return{r:Ys(Vd(s+i*(sr(cs(e.r))-s))),g:Ys(Vd(n+i*(sr(cs(e.g))-n))),b:Ys(Vd(r+i*(sr(cs(e.b))-r))),a:t.a+i*(e.a-t.a)}}function sl(t,e,i){if(t){let s=Ef(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,e===0?360:1)),s=Of(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function c_(t,e){return t&&Object.assign(e||{},t)}function vm(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ys(t[3]))):(e=c_(t,{r:0,g:0,b:0,a:1}),e.a=Ys(e.a)),e}function OM(t){return t.charAt(0)==="r"?TM(t):xM(t)}class sa{constructor(e){if(e instanceof sa)return e;const i=typeof e;let s;i==="object"?s=vm(e):i==="string"&&(s=hM(e)||CM(e)||OM(e)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var e=c_(this._rgb);return e&&(e.a=cs(e.a)),e}set rgb(e){this._rgb=vm(e)}rgbString(){return this._valid?EM(this._rgb):void 0}hexString(){return this._valid?pM(this._rgb):void 0}hslString(){return this._valid?kM(this._rgb):void 0}mix(e,i){if(e){const s=this.rgb,n=e.rgb;let r;const o=i===r?.5:i,a=2*o-1,l=s.a-n.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,s.r=255&c*s.r+r*n.r+.5,s.g=255&c*s.g+r*n.g+.5,s.b=255&c*s.b+r*n.b+.5,s.a=o*s.a+(1-o)*n.a,this.rgb=s}return this}interpolate(e,i){return e&&(this._rgb=PM(this._rgb,e._rgb,i)),this}clone(){return new sa(this.rgb)}alpha(e){return this._rgb.a=Ys(e),this}clearer(e){const i=this._rgb;return i.a*=1-e,this}greyscale(){const e=this._rgb,i=xa(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=i,this}opaquer(e){const i=this._rgb;return i.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return sl(this._rgb,2,e),this}darken(e){return sl(this._rgb,2,-e),this}saturate(e){return sl(this._rgb,1,e),this}desaturate(e){return sl(this._rgb,1,-e),this}rotate(e){return wM(this._rgb,e),this}}/*! + * Chart.js v4.5.0 + * https://www.chartjs.org + * (c) 2025 Chart.js Contributors + * Released under the MIT License + */function es(){}const IM=(()=>{let t=0;return()=>t++})();function me(t){return t==null}function Ke(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ke(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function gt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Ni(t,e){return gt(t)?t:e}function pe(t,e){return typeof t>"u"?e:t}const MM=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function De(t,e,i){if(t&&typeof t.call=="function")return t.apply(i,e)}function Oe(t,e,i,s){let n,r,o;if(Ke(t))for(r=t.length,n=0;nt,x:t=>t.x,y:t=>t.y};function LM(t){const e=t.split("."),i=[];let s="";for(const n of e)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}function DM(t){const e=LM(t);return i=>{for(const s of e){if(s==="")break;i=i&&i[s]}return i}}function Nn(t,e){return(bm[e]||(bm[e]=DM(e)))(t)}function If(t){return t.charAt(0).toUpperCase()+t.slice(1)}const na=t=>typeof t<"u",Zs=t=>typeof t=="function",ym=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function FM(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Le=Math.PI,at=2*Le,NM=at+Le,sc=Number.POSITIVE_INFINITY,BM=Le/180,ct=Le/2,mn=Le/4,_m=Le*2/3,u_=Math.log10,Wi=Math.sign;function Mo(t,e,i){return Math.abs(t-e)n-r).pop(),e}function zM(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Rr(t){return!zM(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function VM(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function UM(t,e,i){let s,n,r;for(s=0,n=t.length;sl&&c=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function $f(t,e,i){i=i||(o=>t[o]1;)r=n+s>>1,i(r)?n=r:s=r;return{lo:n,hi:s}}const Tn=(t,e,i,s)=>$f(t,i,s?n=>{const r=t[n][e];return rt[n][e]$f(t,i,s=>t[s][e]>=i);function KM(t,e,i){let s=0,n=t.length;for(;ss&&t[n-1]>i;)n--;return s>0||n{const s="_onData"+If(i),n=t[i];Object.defineProperty(t,i,{configurable:!0,enumerable:!1,value(...r){const o=n.apply(this,r);return t._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...r)}),o}})})}function km(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);n!==-1&&s.splice(n,1),!(s.length>0)&&(f_.forEach(r=>{delete t[r]}),delete t._chartjs)}function p_(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const g_=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function m_(t,e){let i=[],s=!1;return function(...n){i=n,s||(s=!0,g_.call(window,()=>{s=!1,t.apply(e,i)}))}}function YM(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}const Lf=t=>t==="start"?"left":t==="end"?"right":"center",_t=(t,e,i)=>t==="start"?e:t==="end"?i:(e+i)/2,JM=(t,e,i,s)=>t===(s?"left":"right")?i:t==="center"?(e+i)/2:e;function v_(t,e,i){const s=e.length;let n=0,r=s;if(t._sorted){const{iScale:o,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,d=o.axis,{min:u,max:h,minDefined:f,maxDefined:p}=o.getUserBounds();if(f){if(n=Math.min(Tn(l,d,u).lo,i?s:Tn(e,d,o.getPixelForValue(u)).lo),c){const g=l.slice(0,n+1).reverse().findIndex(m=>!me(m[a.axis]));n-=Math.max(0,g)}n=Pt(n,0,s-1)}if(p){let g=Math.max(Tn(l,o.axis,h,!0).hi+1,i?0:Tn(e,d,o.getPixelForValue(h),!0).hi+1);if(c){const m=l.slice(g-1).findIndex(y=>!me(y[a.axis]));g+=Math.max(0,m)}r=Pt(g,n,s)-n}else r=s-n}return{start:n,count:r}}function b_(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const r=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),r}const nl=t=>t===0||t===1,Sm=(t,e,i)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*at/i)),Cm=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*at/i)+1,Ro={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*ct)+1,easeOutSine:t=>Math.sin(t*ct),easeInOutSine:t=>-.5*(Math.cos(Le*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>nl(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>nl(t)?t:Sm(t,.075,.3),easeOutElastic:t=>nl(t)?t:Cm(t,.075,.3),easeInOutElastic(t){return nl(t)?t:t<.5?.5*Sm(t*2,.1125,.45):.5+.5*Cm(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Ro.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Ro.easeInBounce(t*2)*.5:Ro.easeOutBounce(t*2-1)*.5+.5};function Df(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Am(t){return Df(t)?t:new sa(t)}function Ud(t){return Df(t)?t:new sa(t).saturate(.5).darken(.1).hexString()}const XM=["x","y","borderWidth","radius","tension"],QM=["color","borderColor","backgroundColor"];function ZM(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:QM},numbers:{type:"number",properties:XM}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function eR(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Tm=new Map;function tR(t,e){e=e||{};const i=t+JSON.stringify(e);let s=Tm.get(i);return s||(s=new Intl.NumberFormat(t,e),Tm.set(i,s)),s}function Ff(t,e,i){return tR(e,i).format(t)}const iR={values(t){return Ke(t)?t:""+t},numeric(t,e,i){if(t===0)return"0";const s=this.chart.options.locale;let n,r=t;if(i.length>1){const c=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),r=sR(t,i)}const o=u_(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:n,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ff(t,s,l)}};function sR(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}var Nf={formatters:iR};function nR(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,i)=>i.lineWidth,tickColor:(e,i)=>i.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Nf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Bn=Object.create(null),lh=Object.create(null);function $o(t,e){if(!e)return t;const i=e.split(".");for(let s=0,n=i.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>Ud(n.backgroundColor),this.hoverBorderColor=(s,n)=>Ud(n.borderColor),this.hoverColor=(s,n)=>Ud(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(i)}set(e,i){return qd(this,e,i)}get(e){return $o(this,e)}describe(e,i){return qd(lh,e,i)}override(e,i){return qd(Bn,e,i)}route(e,i,s,n){const r=$o(this,e),o=$o(this,s),a="_"+i;Object.defineProperties(r,{[a]:{value:r[i],writable:!0},[i]:{enumerable:!0,get(){const l=this[a],c=o[n];return ke(l)?Object.assign({},c,l):pe(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(i=>i(this))}}var Ze=new rR({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[ZM,eR,nR]);function oR(t){return!t||me(t.size)||me(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function nc(t,e,i,s,n){let r=e[n];return r||(r=e[n]=t.measureText(n).width,i.push(n)),r>s&&(s=r),s}function aR(t,e,i,s){s=s||{};let n=s.data=s.data||{},r=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},r=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let o=0;const a=i.length;let l,c,d,u,h;for(l=0;li.length){for(l=0;l0&&t.stroke()}}function hs(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&r.strokeColor!=="";let l,c;for(t.save(),t.font=n.string,dR(t,r),l=0;l+t||0;function Bf(t,e){const i={},s=ke(e),n=s?Object.keys(e):e,r=ke(t)?s?o=>pe(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of n)i[o]=mR(r(o));return i}function __(t){return Bf(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Rn(t){return Bf(t,["topLeft","topRight","bottomLeft","bottomRight"])}function yt(t){const e=__(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function rt(t,e){t=t||{},e=e||Ze.font;let i=pe(t.size,e.size);typeof i=="string"&&(i=parseInt(i,10));let s=pe(t.style,e.style);s&&!(""+s).match(pR)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:pe(t.family,e.family),lineHeight:gR(pe(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:pe(t.weight,e.weight),string:""};return n.string=oR(n),n}function Je(t,e,i,s){let n,r,o;for(n=0,r=t.length;ni&&a===0?0:a+l;return{min:o(s,-Math.abs(r)),max:o(n,r)}}function on(t,e){return Object.assign(Object.create(t),e)}function jf(t,e=[""],i,s,n=()=>t[0]){const r=i||t;typeof s>"u"&&(s=S_("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:s,_getTarget:n,override:a=>jf([a,...t],e,r,s)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return w_(a,l,()=>CR(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Om(a).includes(l)},ownKeys(a){return Om(a)},set(a,l,c){const d=a._storage||(a._storage=n());return a[l]=d[l]=c,delete a._keys,!0}})}function $r(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:x_(t,s),setContext:r=>$r(t,r,i,s),override:r=>$r(t.override(r),e,i,s)};return new Proxy(n,{deleteProperty(r,o){return delete r[o],delete t[o],!0},get(r,o,a){return w_(r,o,()=>yR(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(r,o,a){return t[o]=a,delete r[o],!0}})}function x_(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:Zs(i)?i:()=>i,isIndexable:Zs(s)?s:()=>s}}const bR=(t,e)=>t?t+If(e):e,zf=(t,e)=>ke(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function w_(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const s=i();return t[e]=s,s}function yR(t,e,i){const{_proxy:s,_context:n,_subProxy:r,_descriptors:o}=t;let a=s[e];return Zs(a)&&o.isScriptable(e)&&(a=_R(e,a,t,i)),Ke(a)&&a.length&&(a=xR(e,a,t,o.isIndexable)),zf(e,a)&&(a=$r(a,n,r&&r[e],o)),a}function _R(t,e,i,s){const{_proxy:n,_context:r,_subProxy:o,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,o||s);return a.delete(t),zf(t,l)&&(l=Vf(n._scopes,n,t,l)),l}function xR(t,e,i,s){const{_proxy:n,_context:r,_subProxy:o,_descriptors:a}=i;if(typeof r.index<"u"&&s(t))return e[r.index%e.length];if(ke(e[0])){const l=e,c=n._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=Vf(c,n,t,d);e.push($r(u,r,o&&o[t],a))}}return e}function k_(t,e,i){return Zs(t)?t(e,i):t}const wR=(t,e)=>t===!0?e:typeof t=="string"?Nn(e,t):void 0;function kR(t,e,i,s,n){for(const r of e){const o=wR(i,r);if(o){t.add(o);const a=k_(o._fallback,i,n);if(typeof a<"u"&&a!==i&&a!==s)return a}else if(o===!1&&typeof s<"u"&&i!==s)return null}return!1}function Vf(t,e,i,s){const n=e._rootScopes,r=k_(e._fallback,i,s),o=[...t,...n],a=new Set;a.add(s);let l=Pm(a,o,i,r||i,s);return l===null||typeof r<"u"&&r!==i&&(l=Pm(a,o,r,l,s),l===null)?!1:jf(Array.from(a),[""],n,r,()=>SR(e,i,s))}function Pm(t,e,i,s,n){for(;i;)i=kR(t,e,i,s,n);return i}function SR(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];return Ke(n)&&ke(i)?i:n||{}}function CR(t,e,i,s){let n;for(const r of e)if(n=S_(bR(r,t),i),typeof n<"u")return zf(t,n)?Vf(i,s,t,n):n}function S_(t,e){for(const i of e){if(!i)continue;const s=i[t];if(typeof s<"u")return s}}function Om(t){let e=t._keys;return e||(e=t._keys=AR(t._scopes)),e}function AR(t){const e=new Set;for(const i of t)for(const s of Object.keys(i).filter(n=>!n.startsWith("_")))e.add(s);return Array.from(e)}function TR(t,e,i,s){const{iScale:n}=t,{key:r="r"}=this._parsing,o=new Array(s);let a,l,c,d;for(a=0,l=s;aet==="x"?"y":"x";function PR(t,e,i,s){const n=t.skip?e:t,r=e,o=i.skip?e:i,a=ah(r,n),l=ah(o,r);let c=a/(a+l),d=l/(a+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const u=s*c,h=s*d;return{previous:{x:r.x-u*(o.x-n.x),y:r.y-u*(o.y-n.y)},next:{x:r.x+h*(o.x-n.x),y:r.y+h*(o.y-n.y)}}}function OR(t,e,i){const s=t.length;let n,r,o,a,l,c=Lr(t,0);for(let d=0;d!c.skip)),e.cubicInterpolationMode==="monotone")MR(t,n);else{let c=s?t[t.length-1]:t[0];for(r=0,o=t.length;rt.ownerDocument.defaultView.getComputedStyle(t,null);function LR(t,e){return qc(t).getPropertyValue(e)}const DR=["top","right","bottom","left"];function $n(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const r=DR[n];s[r]=parseFloat(t[e+"-"+r+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const FR=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function NR(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:r}=s;let o=!1,a,l;if(FR(n,r,t.target))a=n,l=r;else{const c=e.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function wn(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=qc(i),r=n.boxSizing==="border-box",o=$n(n,"padding"),a=$n(n,"border","width"),{x:l,y:c,box:d}=NR(t,i),u=o.left+(d&&a.left),h=o.top+(d&&a.top);let{width:f,height:p}=e;return r&&(f-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-u)/f*i.width/s),y:Math.round((c-h)/p*i.height/s)}}function BR(t,e,i){let s,n;if(e===void 0||i===void 0){const r=t&&qf(t);if(!r)e=t.clientWidth,i=t.clientHeight;else{const o=r.getBoundingClientRect(),a=qc(r),l=$n(a,"border","width"),c=$n(a,"padding");e=o.width-c.width-l.width,i=o.height-c.height-l.height,s=rc(a.maxWidth,r,"clientWidth"),n=rc(a.maxHeight,r,"clientHeight")}}return{width:e,height:i,maxWidth:s||sc,maxHeight:n||sc}}const ol=t=>Math.round(t*10)/10;function jR(t,e,i,s){const n=qc(t),r=$n(n,"margin"),o=rc(n.maxWidth,t,"clientWidth")||sc,a=rc(n.maxHeight,t,"clientHeight")||sc,l=BR(t,e,i);let{width:c,height:d}=l;if(n.boxSizing==="content-box"){const h=$n(n,"border","width"),f=$n(n,"padding");c-=f.width+h.width,d-=f.height+h.height}return c=Math.max(0,c-r.width),d=Math.max(0,s?c/s:d-r.height),c=ol(Math.min(c,o,l.maxWidth)),d=ol(Math.min(d,a,l.maxHeight)),c&&!d&&(d=ol(c/2)),(e!==void 0||i!==void 0)&&s&&l.height&&d>l.height&&(d=l.height,c=ol(Math.floor(d*s))),{width:c,height:d}}function Im(t,e,i){const s=e||1,n=Math.floor(t.height*s),r=Math.floor(t.width*s);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(i||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==s||o.height!==n||o.width!==r?(t.currentDevicePixelRatio=s,o.height=n,o.width=r,t.ctx.setTransform(s,0,0,s,0,0),!0):!1}const zR=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Uf()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Mm(t,e){const i=LR(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function kn(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function VR(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:s==="middle"?i<.5?t.y:e.y:s==="after"?i<1?t.y:e.y:i>0?e.y:t.y}}function UR(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=kn(t,n,i),a=kn(n,r,i),l=kn(r,e,i),c=kn(o,a,i),d=kn(a,l,i);return kn(c,d,i)}const qR=function(t,e){return{x(i){return t+t+e-i},setWidth(i){e=i},textAlign(i){return i==="center"?i:i==="right"?"left":"right"},xPlus(i,s){return i-s},leftForLtr(i,s){return i-s}}},HR=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function wr(t,e,i){return t?qR(e,i):HR()}function A_(t,e){let i,s;(e==="ltr"||e==="rtl")&&(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function T_(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function E_(t){return t==="angle"?{between:Rf,compare:qM,normalize:kt}:{between:us,compare:(e,i)=>e-i,normalize:e=>e}}function Rm({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i===0,style:n}}function WR(t,e,i){const{property:s,start:n,end:r}=i,{between:o,normalize:a}=E_(s),l=e.length;let{start:c,end:d,loop:u}=t,h,f;if(u){for(c+=l,d+=l,h=0,f=l;hl(n,w,y)&&a(n,w)!==0,x=()=>a(r,y)===0||l(r,w,y),E=()=>g||A(),T=()=>!g||x();for(let P=d,k=d;P<=u;++P)C=e[P%o],!C.skip&&(y=c(C[s]),y!==w&&(g=l(y,n,r),m===null&&E()&&(m=a(y,n)===0?P:k),m!==null&&T()&&(p.push(Rm({start:m,end:P,loop:h,count:o,style:f})),m=null),k=P,w=y));return m!==null&&p.push(Rm({start:m,end:u,loop:h,count:o,style:f})),p}function O_(t,e){const i=[],s=t.segments;for(let n=0;nn&&t[r%e].skip;)r--;return r%=e,{start:n,end:r}}function GR(t,e,i,s){const n=t.length,r=[];let o=e,a=t[e],l;for(l=e+1;l<=i;++l){const c=t[l%n];c.skip||c.stop?a.skip||(s=!1,r.push({start:e%n,end:(l-1)%n,loop:s}),e=o=c.stop?l:null):(o=l,a.skip&&(e=l)),a=c}return o!==null&&r.push({start:e%n,end:o%n,loop:s}),r}function YR(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const r=!!t._loop,{start:o,end:a}=KR(i,n,r,s);if(s===!0)return $m(t,[{start:o,end:a,loop:r}],i,e);const l=aa({chart:e,initial:i.initial,numSteps:o,currentStep:Math.min(s-i.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=g_.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let i=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const r=s.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(n.draw(),this._notify(n,s,e,"progress")),r.length||(s.running=!1,this._notify(n,s,e,"complete"),s.initial=!1),i+=r.length}),this._lastDate=e,i===0&&(this._running=!1)}_getAnims(e){const i=this._charts;let s=i.get(e);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(e,s)),s}listen(e,i,s){this._getAnims(e).listeners[i].push(s)}add(e,i){!i||!i.length||this._getAnims(e).items.push(...i)}has(e){return this._getAnims(e).items.length>0}start(e){const i=this._charts.get(e);i&&(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const i=this._charts.get(e);return!(!i||!i.running||!i.items.length)}stop(e){const i=this._charts.get(e);if(!i||!i.items.length)return;const s=i.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();i.items=[],this._notify(e,i,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var ss=new ZR;const Dm="transparent",e$={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const s=Am(t||Dm),n=s.valid&&Am(e||Dm);return n&&n.valid?n.mix(s,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class t${constructor(e,i,s,n){const r=i[s];n=Je([e.to,n,r,e.from]);const o=Je([e.from,r,n]);this._active=!0,this._fn=e.fn||e$[e.type||typeof o],this._easing=Ro[e.easing]||Ro.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=i,this._prop=s,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(e,i,s){if(this._active){this._notify(!1);const n=this._target[this._prop],r=s-this._start,o=this._duration-r;this._start=s,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Je([e.to,i,n,e.from]),this._from=Je([e.from,n,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const i=e-this._start,s=this._duration,n=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||i1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(r,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((i,s)=>{e.push({res:i,rej:s})})}_notify(e){const i=e?"res":"rej",s=this._promises||[];for(let n=0;n{const r=e[n];if(!ke(r))return;const o={};for(const a of i)o[a]=r[a];(Ke(r.properties)&&r.properties||[n]).forEach(a=>{(a===n||!s.has(a))&&s.set(a,o)})})}_animateOptions(e,i){const s=i.options,n=s$(e,s);if(!n)return[];const r=this._createAnimations(n,s);return s.$shared&&i$(e.options.$animations,s).then(()=>{e.options=s},()=>{}),r}_createAnimations(e,i){const s=this._properties,n=[],r=e.$animations||(e.$animations={}),o=Object.keys(i),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(e,i));continue}const d=i[c];let u=r[c];const h=s.get(c);if(u)if(h&&u.active()){u.update(h,d,a);continue}else u.cancel();if(!h||!h.duration){e[c]=d;continue}r[c]=u=new t$(h,e,c,d),n.push(u)}return n}update(e,i){if(this._properties.size===0){Object.assign(e,i);return}const s=this._createAnimations(e,i);if(s.length)return ss.add(this._chart,s),!0}}function i$(t,e){const i=[],s=Object.keys(e);for(let n=0;n0||!i&&r<0)return n.index}return null}function jm(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:r,vScale:o,index:a}=s,l=r.axis,c=o.axis,d=a$(r,o,s),u=e.length;let h;for(let f=0;fi[s].axis===e).shift()}function d$(t,e){return on(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function u$(t,e,i){return on(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}function Qr(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const n of e){const r=n._stacks;if(!r||r[s]===void 0||r[s][i]===void 0)return;delete r[s][i],r[s]._visualValues!==void 0&&r[s]._visualValues[i]!==void 0&&delete r[s]._visualValues[i]}}}const Kd=t=>t==="reset"||t==="none",zm=(t,e)=>e?t:Object.assign({},t),h$=(t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:R_(i,!0),values:null};class Js{constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Hd(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Qr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,i=this._cachedMeta,s=this.getDataset(),n=(u,h,f,p)=>u==="x"?h:u==="r"?p:f,r=i.xAxisID=pe(s.xAxisID,Wd(e,"x")),o=i.yAxisID=pe(s.yAxisID,Wd(e,"y")),a=i.rAxisID=pe(s.rAxisID,Wd(e,"r")),l=i.indexAxis,c=i.iAxisID=n(l,r,o,a),d=i.vAxisID=n(l,o,r,a);i.xScale=this.getScaleForId(r),i.yScale=this.getScaleForId(o),i.rScale=this.getScaleForId(a),i.iScale=this.getScaleForId(c),i.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&km(this._data,this),e._stacked&&Qr(e)}_dataCheck(){const e=this.getDataset(),i=e.data||(e.data=[]),s=this._data;if(ke(i)){const n=this._cachedMeta;this._data=o$(i,n)}else if(s!==i){if(s){km(s,this);const n=this._cachedMeta;Qr(n),n._parsed=[]}i&&Object.isExtensible(i)&&GM(i,this),this._syncList=[],this._data=i}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const i=this._cachedMeta,s=this.getDataset();let n=!1;this._dataCheck();const r=i._stacked;i._stacked=Hd(i.vScale,i),i.stack!==s.stack&&(n=!0,Qr(i),i.stack=s.stack),this._resyncElements(e),(n||r!==i._stacked)&&(jm(this,i._parsed),i._stacked=Hd(i.vScale,i))}configure(){const e=this.chart.config,i=e.datasetScopeKeys(this._type),s=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){const{_cachedMeta:s,_data:n}=this,{iScale:r,_stacked:o}=s,a=r.axis;let l=e===0&&i===n.length?!0:s._sorted,c=e>0&&s._parsed[e-1],d,u,h;if(this._parsing===!1)s._parsed=n,s._sorted=!0,h=n;else{Ke(n[e])?h=this.parseArrayData(s,n,e,i):ke(n[e])?h=this.parseObjectData(s,n,e,i):h=this.parsePrimitiveData(s,n,e,i);const f=()=>u[a]===null||c&&u[a]g||u=0;--h)if(!p()){this.updateRangeFromParsed(c,e,f,l);break}}return c}getAllParsedValues(e){const i=this._cachedMeta._parsed,s=[];let n,r,o;for(n=0,r=i.length;n=0&&ethis.getContext(s,n,i),g=c.resolveNamedOptions(h,f,p,u);return g.$shared&&(g.$shared=l,r[o]=Object.freeze(zm(g,l))),g}_resolveAnimations(e,i,s){const n=this.chart,r=this._cachedDataOpts,o=`animation-${i}`,a=r[o];if(a)return a;let l;if(n.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,i),h=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(h,this.getContext(e,s,i))}const c=new M_(n,l&&l.animations);return l&&l._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||Kd(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){const s=this.resolveDataElementOptions(e,i),n=this._sharedOptions,r=this.getSharedOptions(s),o=this.includeOptions(i,r)||r!==n;return this.updateSharedOptions(r,i,s),{sharedOptions:r,includeOptions:o}}updateElement(e,i,s,n){Kd(n)?Object.assign(e,s):this._resolveAnimations(i,n).update(e,s)}updateSharedOptions(e,i,s){e&&!Kd(i)&&this._resolveAnimations(void 0,i).update(e,s)}_setStyle(e,i,s,n){e.active=n;const r=this.getStyle(i,n);this._resolveAnimations(i,s,n).update(e,{options:!n&&this.getSharedOptions(r)||r})}removeHoverStyle(e,i,s){this._setStyle(e,s,"active",!1)}setHoverStyle(e,i,s){this._setStyle(e,s,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const i=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const n=s.length,r=i.length,o=Math.min(r,n);o&&this.parse(0,o),r>n?this._insertElements(n,r-n,e):r{for(c.length+=i,a=c.length-1;a>=o;a--)c[a]=c[a-i]};for(l(r),a=e;an-r))}return t._cache.$bar}function p$(t){const e=t.iScale,i=f$(e,t.type);let s=e._length,n,r,o,a;const l=()=>{o===32767||o===-32768||(na(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(n=0,r=i.length;n0?n[t-1]:null,a=tMath.abs(a)&&(l=a,c=o),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:n,end:r,min:o,max:a}}function $_(t,e,i,s){return Ke(t)?v$(t,e,i,s):e[i.axis]=i.parse(t,s),e}function Vm(t,e,i,s){const n=t.iScale,r=t.vScale,o=n.getLabels(),a=n===r,l=[];let c,d,u,h;for(c=i,d=i+s;c=i?1:-1)}function y$(t){let e,i,s,n,r;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.based.controller.options.grouped),r=s.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(i),l=a&&a[s.axis],c=d=>{const u=d._parsed.find(f=>f[s.axis]===l),h=u&&u[d.vScale.axis];if(me(h)||isNaN(h))return!0};for(const d of n)if(!(i!==void 0&&c(d))&&((r===!1||o.indexOf(d.stack)===-1||r===void 0&&d.stack===void 0)&&o.push(d.stack),d.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(e).filter(s=>e[s].axis===i).shift()}_getAxis(){const e={},i=this.getFirstScaleIdForIndexAxis();for(const s of this.chart.data.datasets)e[pe(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,i)]=!0;return Object.keys(e)}_getStackIndex(e,i,s){const n=this._getStacks(e,s),r=i!==void 0?n.indexOf(i):-1;return r===-1?n.length-1:r}_getRuler(){const e=this.options,i=this._cachedMeta,s=i.iScale,n=[];let r,o;for(r=0,o=i.data.length;r0&&this.getParsed(i-1);for(let x=0;x=C){T.skip=!0;continue}const P=this.getParsed(x),k=me(P[f]),I=T[h]=o.getPixelForValue(P[h],x),S=T[f]=r||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,P,l):P[f],x);T.skip=isNaN(I)||isNaN(S)||k,T.stop=x>0&&Math.abs(P[h]-A[h])>m,g&&(T.parsed=P,T.raw=c.data[x]),u&&(T.options=d||this.resolveDataElementOptions(x,E.active?"active":n)),y||this.updateElement(E,x,T,n),A=P}}getMaxOverflow(){const e=this._cachedMeta,i=e.dataset,s=i.options&&i.options.borderWidth||0,n=e.data||[];if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ie(Tl,"id","line"),ie(Tl,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ie(Tl,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class El extends Js{getLabelAndValue(e){const i=this._cachedMeta.vScale,s=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(s[i.axis])}}parseObjectData(e,i,s,n){return TR.bind(this)(e,i,s,n)}update(e){const i=this._cachedMeta,s=i.dataset,n=i.data||[],r=i.iScale.getLabels();if(s.points=n,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:r.length===n.length,options:o};this.updateElement(s,void 0,a,e)}this.updateElements(n,0,n.length,e)}updateElements(e,i,s,n){const r=this._cachedMeta.rScale,o=n==="reset";for(let a=i;a0&&this.getParsed(i-1);for(let A=i;A0&&Math.abs(E[f]-w[f])>y,m&&(T.parsed=E,T.raw=c.data[A]),h&&(T.options=u||this.resolveDataElementOptions(A,x.active?"active":n)),C||this.updateElement(x,A,T,n),w=E}this.updateSharedOptions(u,n,d)}getMaxOverflow(){const e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let a=0;for(let l=i.length-1;l>=0;--l)a=Math.max(a,i[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const s=e.dataset,n=s.options&&s.options.borderWidth||0;if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,o)/2}}ie(Pl,"id","scatter"),ie(Pl,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ie(Pl,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function bn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Hf{constructor(e){ie(this,"options");this.options=e||{}}static override(e){Object.assign(Hf.prototype,e)}init(){}formats(){return bn()}parse(){return bn()}format(){return bn()}add(){return bn()}diff(){return bn()}startOf(){return bn()}endOf(){return bn()}}var k$={_date:Hf};function S$(t,e,i,s){const{controller:n,data:r,_sorted:o}=t,a=n._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&o&&r.length){const c=a._reversePixels?WM:Tn;if(s){if(n._sharedOptions){const d=r[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const h=c(r,e,i-u),f=c(r,e,i+u);return{lo:h.lo,hi:f.hi}}}}else{const d=c(r,e,i);if(l){const{vScale:u}=n._cachedMeta,{_parsed:h}=t,f=h.slice(0,d.lo+1).reverse().findIndex(g=>!me(g[u.axis]));d.lo-=Math.max(0,f);const p=h.slice(d.hi).findIndex(g=>!me(g[u.axis]));d.hi+=Math.max(0,p)}return d}}return{lo:0,hi:r.length-1}}function Hc(t,e,i,s,n){const r=t.getSortedVisibleDatasetMetas(),o=i[e];for(let a=0,l=r.length;a{l[o]&&l[o](e[i],n)&&(r.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(e.x,e.y,n))}),s&&!a?[]:r}var E$={modes:{index(t,e,i,s){const n=wn(e,t),r=i.axis||"x",o=i.includeInvisible||!1,a=i.intersect?Yd(t,n,r,s,o):Jd(t,n,r,!1,s,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,i,s){const n=wn(e,t),r=i.axis||"xy",o=i.includeInvisible||!1;let a=i.intersect?Yd(t,n,r,s,o):Jd(t,n,r,!1,s,o);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let d=0;di.pos===e)}function Wm(t,e){return t.filter(i=>L_.indexOf(i.pos)===-1&&i.box.axis===e)}function eo(t,e){return t.sort((i,s)=>{const n=e?s:i,r=e?i:s;return n.weight===r.weight?n.index-r.index:n.weight-r.weight})}function P$(t){const e=[];let i,s,n,r,o,a;for(i=0,s=(t||[]).length;ic.box.fullSize),!0),s=eo(Zr(e,"left"),!0),n=eo(Zr(e,"right")),r=eo(Zr(e,"top"),!0),o=eo(Zr(e,"bottom")),a=Wm(e,"x"),l=Wm(e,"y");return{fullSize:i,leftAndTop:s.concat(r),rightAndBottom:n.concat(l).concat(o).concat(a),chartArea:Zr(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:r.concat(o).concat(a)}}function Km(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function D_(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function R$(t,e,i,s){const{pos:n,box:r}=i,o=t.maxPadding;if(!ke(n)){i.size&&(t[n]-=i.size);const u=s[i.stack]||{size:0,count:1};u.size=Math.max(u.size,i.horizontal?r.height:r.width),i.size=u.size/u.count,t[n]+=i.size}r.getPadding&&D_(o,r.getPadding());const a=Math.max(0,e.outerWidth-Km(o,t,"left","right")),l=Math.max(0,e.outerHeight-Km(o,t,"top","bottom")),c=a!==t.w,d=l!==t.h;return t.w=a,t.h=l,i.horizontal?{same:c,other:d}:{same:d,other:c}}function $$(t){const e=t.maxPadding;function i(s){const n=Math.max(e[s]-t[s],0);return t[s]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}function L$(t,e){const i=e.maxPadding;function s(n){const r={left:0,top:0,right:0,bottom:0};return n.forEach(o=>{r[o]=Math.max(e[o],i[o])}),r}return s(t?["left","right"]:["top","bottom"])}function lo(t,e,i,s){const n=[];let r,o,a,l,c,d;for(r=0,o=t.length,c=0;r{typeof g.beforeLayout=="function"&&g.beforeLayout()});const d=l.reduce((g,m)=>m.box.options&&m.box.options.display===!1?g:g+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/d,hBoxMaxHeight:o/2}),h=Object.assign({},n);D_(h,yt(s));const f=Object.assign({maxPadding:h,w:r,h:o,x:n.left,y:n.top},n),p=I$(l.concat(c),u);lo(a.fullSize,f,u,p),lo(l,f,u,p),lo(c,f,u,p)&&lo(l,f,u,p),$$(f),Gm(a.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,Gm(a.rightAndBottom,f,u,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Oe(a.chartArea,g=>{const m=g.box;Object.assign(m,t.chartArea),m.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class F_{acquireContext(e,i){}releaseContext(e){return!1}addEventListener(e,i,s){}removeEventListener(e,i,s){}getDevicePixelRatio(){return 1}getMaximumSize(e,i,s,n){return i=Math.max(0,i||e.width),s=s||e.height,{width:i,height:Math.max(0,n?Math.floor(i/n):s)}}isAttached(e){return!0}updateConfig(e){}}class D$ extends F_{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Ol="$chartjs",F$={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ym=t=>t===null||t==="";function N$(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[Ol]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Ym(n)){const r=Mm(t,"width");r!==void 0&&(t.width=r)}if(Ym(s))if(t.style.height==="")t.height=t.width/(e||2);else{const r=Mm(t,"height");r!==void 0&&(t.height=r)}return t}const N_=zR?{passive:!0}:!1;function B$(t,e,i){t&&t.addEventListener(e,i,N_)}function j$(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,N_)}function z$(t,e){const i=F$[t.type]||t.type,{x:s,y:n}=wn(t,e);return{type:i,chart:e,native:t,x:s!==void 0?s:null,y:n!==void 0?n:null}}function oc(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function V$(t,e,i){const s=t.canvas,n=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||oc(a.addedNodes,s),o=o&&!oc(a.removedNodes,s);o&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function U$(t,e,i){const s=t.canvas,n=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||oc(a.removedNodes,s),o=o&&!oc(a.addedNodes,s);o&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}const oa=new Map;let Jm=0;function B_(){const t=window.devicePixelRatio;t!==Jm&&(Jm=t,oa.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function q$(t,e){oa.size||window.addEventListener("resize",B_),oa.set(t,e)}function H$(t){oa.delete(t),oa.size||window.removeEventListener("resize",B_)}function W$(t,e,i){const s=t.canvas,n=s&&qf(s);if(!n)return;const r=m_((a,l)=>{const c=n.clientWidth;i(a,l),c{const l=a[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||r(c,d)});return o.observe(n),q$(t,r),o}function Xd(t,e,i){i&&i.disconnect(),e==="resize"&&H$(t)}function K$(t,e,i){const s=t.canvas,n=m_(r=>{t.ctx!==null&&i(z$(r,t))},t);return B$(s,e,n),n}class G$ extends F_{acquireContext(e,i){const s=e&&e.getContext&&e.getContext("2d");return s&&s.canvas===e?(N$(e,i),s):null}releaseContext(e){const i=e.canvas;if(!i[Ol])return!1;const s=i[Ol].initial;["height","width"].forEach(r=>{const o=s[r];me(o)?i.removeAttribute(r):i.setAttribute(r,o)});const n=s.style||{};return Object.keys(n).forEach(r=>{i.style[r]=n[r]}),i.width=i.width,delete i[Ol],!0}addEventListener(e,i,s){this.removeEventListener(e,i);const n=e.$proxies||(e.$proxies={}),o={attach:V$,detach:U$,resize:W$}[i]||K$;n[i]=o(e,i,s)}removeEventListener(e,i){const s=e.$proxies||(e.$proxies={}),n=s[i];if(!n)return;({attach:Xd,detach:Xd,resize:Xd}[i]||j$)(e,i,n),s[i]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,i,s,n){return jR(e,i,s,n)}isAttached(e){const i=e&&qf(e);return!!(i&&i.isConnected)}}function Y$(t){return!Uf()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?D$:G$}var bl;let Gi=(bl=class{constructor(){ie(this,"x");ie(this,"y");ie(this,"active",!1);ie(this,"options");ie(this,"$animations")}tooltipPosition(e){const{x:i,y:s}=this.getProps(["x","y"],e);return{x:i,y:s}}hasValue(){return Rr(this.x)&&Rr(this.y)}getProps(e,i){const s=this.$animations;if(!i||!s)return this;const n={};return e.forEach(r=>{n[r]=s[r]&&s[r].active()?s[r]._to:this[r]}),n}},ie(bl,"defaults",{}),ie(bl,"defaultRoutes"),bl);function J$(t,e){const i=t.options.ticks,s=X$(t),n=Math.min(i.maxTicksLimit||s,s),r=i.major.enabled?Z$(e):[],o=r.length,a=r[0],l=r[o-1],c=[];if(o>n)return eL(e,c,r,o/n),c;const d=Q$(r,e,n);if(o>0){let u,h;const f=o>1?Math.round((l-a)/(o-1)):null;for(cl(e,c,d,me(f)?0:a-f,a),u=0,h=o-1;un)return l}return Math.max(n,1)}function Z$(t){const e=[];let i,s;for(i=0,s=t.length;it==="left"?"right":t==="right"?"left":t,Xm=(t,e,i)=>e==="top"||e==="left"?t[e]+i:t[e]-i,Qm=(t,e)=>Math.min(e||t,t);function Zm(t,e){const i=[],s=t.length/e,n=t.length;let r=0;for(;ro+a)))return l}function nL(t,e){Oe(t,i=>{const s=i.gc,n=s.length/2;let r;if(n>e){for(r=0;rs?s:i,s=n&&i>s?i:s,{min:Ni(i,Ni(s,i)),max:Ni(s,Ni(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){De(this.options.beforeUpdate,[this])}update(e,i,s){const{beginAtZero:n,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=i,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=vR(this,r,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=r||s<=1||!this.isHorizontal()){this.labelRotation=n;return}const d=this._getLabelSizes(),u=d.widest.width,h=d.highest.height,f=Pt(this.chart.width-u,0,this.maxWidth);a=e.offset?this.maxWidth/s:f/(s-1),u+6>a&&(a=f/(s-(e.offset?.5:1)),l=this.maxHeight-to(e.grid)-i.padding-ev(e.title,this.chart.options.font),c=Math.sqrt(u*u+h*h),o=Mf(Math.min(Math.asin(Pt((d.highest.height+6)/a,-1,1)),Math.asin(Pt(l/c,-1,1))-Math.asin(Pt(h/c,-1,1)))),o=Math.max(n,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){De(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){De(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:i,options:{ticks:s,title:n,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=ev(n,i.options.font);if(a?(e.width=this.maxWidth,e.height=to(r)+l):(e.height=this.maxHeight,e.width=to(r)+l),s.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:h}=this._getLabelSizes(),f=s.padding*2,p=Vs(this.labelRotation),g=Math.cos(p),m=Math.sin(p);if(a){const y=s.mirror?0:m*u.width+g*h.height;e.height=Math.min(this.maxHeight,e.height+y+f)}else{const y=s.mirror?0:g*u.width+m*h.height;e.width=Math.min(this.maxWidth,e.width+y+f)}this._calculatePadding(c,d,m,g)}}this._handleMargins(),a?(this.width=this._length=i.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=i.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,i,s,n){const{ticks:{align:r,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=n*e.width,f=s*i.height):(h=s*e.height,f=n*i.width):r==="start"?f=i.width:r==="end"?h=e.width:r!=="inner"&&(h=e.width/2,f=i.width/2),this.paddingLeft=Math.max((h-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((f-u+o)*this.width/(this.width-u),0)}else{let d=i.height/2,u=e.height/2;r==="start"?(d=0,u=e.height):r==="end"&&(d=i.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){De(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:i}=this.options;return i==="top"||i==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let i,s;for(i=0,s=e.length;i({width:o[k]||0,height:a[k]||0});return{first:P(0),last:P(i-1),widest:P(E),highest:P(T),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,i){return NaN}getValueForPixel(e){}getPixelForTick(e){const i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const i=this._startPixel+e*this._length;return HM(this._alignToPixels?vn(this.chart,i,0):i)}getDecimalForPixel(e){const i=(e-this._startPixel)/this._length;return this._reversePixels?1-i:i}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:i}=this;return e<0&&i<0?i:e>0&&i>0?e:0}getContext(e){const i=this.ticks||[];if(e>=0&&ea*n?a/s:l/n:l*n0}_computeGridLineItems(e){const i=this.axis,s=this.chart,n=this.options,{grid:r,position:o,border:a}=n,l=r.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),h=to(r),f=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,m=g/2,y=function(W){return vn(s,W,g)};let C,w,A,x,E,T,P,k,I,S,b,D;if(o==="top")C=y(this.bottom),T=this.bottom-h,k=C-m,S=y(e.top)+m,D=e.bottom;else if(o==="bottom")C=y(this.top),S=e.top,D=y(e.bottom)-m,T=C+m,k=this.top+h;else if(o==="left")C=y(this.right),E=this.right-h,P=C-m,I=y(e.left)+m,b=e.right;else if(o==="right")C=y(this.left),I=e.left,b=y(e.right)-m,E=C+m,P=this.left+h;else if(i==="x"){if(o==="center")C=y((e.top+e.bottom)/2+.5);else if(ke(o)){const W=Object.keys(o)[0],U=o[W];C=y(this.chart.scales[W].getPixelForValue(U))}S=e.top,D=e.bottom,T=C+m,k=T+h}else if(i==="y"){if(o==="center")C=y((e.left+e.right)/2);else if(ke(o)){const W=Object.keys(o)[0],U=o[W];C=y(this.chart.scales[W].getPixelForValue(U))}E=C-m,P=E-h,I=e.left,b=e.right}const B=pe(n.ticks.maxTicksLimit,u),N=Math.max(1,Math.ceil(u/B));for(w=0;w0&&(Te-=Qe/2);break}Ae={left:Te,top:ut,width:Qe+xe.width,height:Ye+xe.height,color:N.backdropColor}}m.push({label:A,font:k,textOffset:b,options:{rotation:g,color:U,strokeColor:Y,strokeWidth:ae,textAlign:ve,textBaseline:D,translation:[x,E],backdrop:Ae}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:i}=this.options;if(-Vs(this.labelRotation))return e==="top"?"left":"right";let n="center";return i.align==="start"?n="left":i.align==="end"?n="right":i.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:i,ticks:{crossAlign:s,mirror:n,padding:r}}=this.options,o=this._getLabelSizes(),a=e+r,l=o.widest.width;let c,d;return i==="left"?n?(d=this.right+r,s==="near"?c="left":s==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-a,s==="near"?c="right":s==="center"?(c="center",d-=l/2):(c="left",d=this.left)):i==="right"?n?(d=this.left+r,s==="near"?c="right":s==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+a,s==="near"?c="left":s==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,i=this.options.position;if(i==="left"||i==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(i==="top"||i==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:i},left:s,top:n,width:r,height:o}=this;i&&(e.save(),e.fillStyle=i,e.fillRect(s,n,r,o),e.restore())}getLineWidthForValue(e){const i=this.options.grid;if(!this._isVisible()||!i.display)return 0;const n=this.ticks.findIndex(r=>r.value===e);return n>=0?i.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){const i=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const a=(l,c,d)=>{!d.width||!d.color||(s.save(),s.lineWidth=d.width,s.strokeStyle=d.color,s.setLineDash(d.borderDash||[]),s.lineDashOffset=d.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(i.display)for(r=0,o=n.length;r{this.draw(r)}}]:[{z:s,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:i,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const i=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let r,o;for(r=0,o=i.length;r{const s=i.split("."),n=s.pop(),r=[t].concat(s).join("."),o=e[i].split("."),a=o.pop(),l=o.join(".");Ze.route(r,n,l,a)})}function uL(t){return"id"in t&&"defaults"in t}class hL{constructor(){this.controllers=new dl(Js,"datasets",!0),this.elements=new dl(Gi,"elements"),this.plugins=new dl(Object,"plugins"),this.scales=new dl(Br,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,i,s){[...i].forEach(n=>{const r=s||this._getRegistryForType(n);s||r.isForType(n)||r===this.plugins&&n.id?this._exec(e,r,n):Oe(n,o=>{const a=s||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,i,s){const n=If(e);De(s["before"+n],[],s),i[e](s),De(s["after"+n],[],s)}_getRegistryForType(e){for(let i=0;ir.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(n(i,s),e,"stop"),this._notify(n(s,i),e,"start")}}function pL(t){const e={},i=[],s=Object.keys(Lt.plugins.items);for(let r=0;r1&&tv(t[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function iv(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function xL(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter(s=>s.xAxisID===t||s.yAxisID===t);if(i.length)return iv(t,"x",i[0])||iv(t,"y",i[0])}return{}}function wL(t,e){const i=Bn[t.type]||{scales:{}},s=e.scales||{},n=ch(t.type,e),r=Object.create(null);return Object.keys(s).forEach(o=>{const a=s[o];if(!ke(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=dh(o,a,xL(o,t),Ze.scales[a.type]),c=yL(l,n),d=i.scales||{};r[o]=Io(Object.create(null),[{axis:l},a,d[l],d[c]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||ch(a,e),d=(Bn[a]||{}).scales||{};Object.keys(d).forEach(u=>{const h=bL(u,l),f=o[h+"AxisID"]||h;r[f]=r[f]||Object.create(null),Io(r[f],[{axis:h},s[f],d[u]])})}),Object.keys(r).forEach(o=>{const a=r[o];Io(a,[Ze.scales[a.type],Ze.scale])}),r}function j_(t){const e=t.options||(t.options={});e.plugins=pe(e.plugins,{}),e.scales=wL(t,e)}function z_(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function kL(t){return t=t||{},t.data=z_(t.data),j_(t),t}const sv=new Map,V_=new Set;function ul(t,e){let i=sv.get(t);return i||(i=e(),sv.set(t,i),V_.add(i)),i}const io=(t,e,i)=>{const s=Nn(e,i);s!==void 0&&t.add(s)};class SL{constructor(e){this._config=kL(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=z_(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),j_(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ul(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,i){return ul(`${e}.transition.${i}`,()=>[[`datasets.${e}.transitions.${i}`,`transitions.${i}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,i){return ul(`${e}-${i}`,()=>[[`datasets.${e}.elements.${i}`,`datasets.${e}`,`elements.${i}`,""]])}pluginScopeKeys(e){const i=e.id,s=this.type;return ul(`${s}-plugin-${i}`,()=>[[`plugins.${i}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,i){const s=this._scopeCache;let n=s.get(e);return(!n||i)&&(n=new Map,s.set(e,n)),n}getOptionScopes(e,i,s){const{options:n,type:r}=this,o=this._cachedScopes(e,s),a=o.get(i);if(a)return a;const l=new Set;i.forEach(d=>{e&&(l.add(e),d.forEach(u=>io(l,e,u))),d.forEach(u=>io(l,n,u)),d.forEach(u=>io(l,Bn[r]||{},u)),d.forEach(u=>io(l,Ze,u)),d.forEach(u=>io(l,lh,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),V_.has(i)&&o.set(i,c),c}chartOptionScopes(){const{options:e,type:i}=this;return[e,Bn[i]||{},Ze.datasets[i]||{},{type:i},Ze,lh]}resolveNamedOptions(e,i,s,n=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=nv(this._resolverCache,e,n);let l=o;if(AL(o,i)){r.$shared=!1,s=Zs(s)?s():s;const c=this.createResolver(e,s,a);l=$r(o,s,c)}for(const c of i)r[c]=l[c];return r}createResolver(e,i,s=[""],n){const{resolver:r}=nv(this._resolverCache,e,s);return ke(i)?$r(r,i,void 0,n):r}}function nv(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let r=s.get(n);return r||(r={resolver:jf(e,i),subPrefixes:i.filter(a=>!a.toLowerCase().includes("hover"))},s.set(n,r)),r}const CL=t=>ke(t)&&Object.getOwnPropertyNames(t).some(e=>Zs(t[e]));function AL(t,e){const{isScriptable:i,isIndexable:s}=x_(t);for(const n of e){const r=i(n),o=s(n),a=(o||r)&&t[n];if(r&&(Zs(a)||CL(a))||o&&Ke(a))return!0}return!1}var TL="4.5.0";const EL=["top","bottom","left","right","chartArea"];function rv(t,e){return t==="top"||t==="bottom"||EL.indexOf(t)===-1&&e==="x"}function ov(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function av(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),De(i&&i.onComplete,[t],e)}function PL(t){const e=t.chart,i=e.options.animation;De(i&&i.onProgress,[t],e)}function U_(t){return Uf()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Il={},lv=t=>{const e=U_(t);return Object.values(Il).filter(i=>i.canvas===e).pop()};function OL(t,e,i){const s=Object.keys(t);for(const n of s){const r=+n;if(r>=e){const o=t[n];delete t[n],(i>0||r>e)&&(t[r+i]=o)}}}function IL(t,e,i,s){return!i||t.type==="mouseout"?null:s?e:t}var Es;let Mi=(Es=class{static register(...e){Lt.add(...e),cv()}static unregister(...e){Lt.remove(...e),cv()}constructor(e,i){const s=this.config=new SL(i),n=U_(e),r=lv(n);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||Y$(n)),this.platform.updateConfig(s);const a=this.platform.acquireContext(n,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,d=l&&l.width;if(this.id=IM(),this.ctx=a,this.canvas=l,this.width=d,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new fL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=YM(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],Il[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}ss.listen(this,"complete",av),ss.listen(this,"progress",PL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:i},width:s,height:n,_aspectRatio:r}=this;return me(e)?i&&r?r:n?s/n:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Lt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Im(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Em(this.canvas,this.ctx),this}stop(){return ss.stop(this),this}resize(e,i){ss.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){const s=this.options,n=this.canvas,r=s.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,e,i,r),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Im(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),De(s.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const i=this.options.scales||{};Oe(i,(s,n)=>{s.id=n})}buildOrUpdateScales(){const e=this.options,i=e.scales,s=this.scales,n=Object.keys(s).reduce((o,a)=>(o[a]=!1,o),{});let r=[];i&&(r=r.concat(Object.keys(i).map(o=>{const a=i[o],l=dh(o,a),c=l==="r",d=l==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Oe(r,o=>{const a=o.options,l=a.id,c=dh(l,a),d=pe(a.type,o.dtype);(a.position===void 0||rv(a.position,c)!==rv(o.dposition))&&(a.position=o.dposition),n[l]=!0;let u=null;if(l in s&&s[l].type===d)u=s[l];else{const h=Lt.getScale(d);u=new h({id:l,type:d,ctx:this.ctx,chart:this}),s[u.id]=u}u.init(a,e)}),Oe(n,(o,a)=>{o||delete s[a]}),Oe(s,o=>{hi.configure(this,o,o.options),hi.addBox(this,o)})}_updateMetasets(){const e=this._metasets,i=this.data.datasets.length,s=e.length;if(e.sort((n,r)=>n.index-r.index),s>i){for(let n=i;ni.length&&delete this._stacks,e.forEach((s,n)=>{i.filter(r=>r===s._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],i=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=i.length;s{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const i=this.config;i.update();const s=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(ov("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Oe(this.scales,e=>{hi.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,i=new Set(Object.keys(this._listeners)),s=new Set(e.events);(!ym(i,s)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(const{method:s,start:n,count:r}of i){const o=s==="_removeElements"?-r:r;OL(e,n,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const i=this.data.datasets.length,s=r=>new Set(e.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),n=s(0);for(let r=1;rr.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;hi.update(this,this.width,this.height,e);const i=this.chartArea,s=i.width<=0||i.height<=0;this._layers=[],Oe(this.boxes,n=>{s&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,r)=>{n._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let i=0,s=this.data.datasets.length;i=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const i=this.ctx,s={meta:e,index:e.index,cancelable:!0},n=I_(this,e);this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(n&&Vc(i,n),e.controller.draw(),n&&Uc(i),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return hs(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,s,n){const r=E$.modes[i];return typeof r=="function"?r(this,e,s,n):[]}getDatasetMeta(e){const i=this.data.datasets[e],s=this._metasets;let n=s.filter(r=>r&&r._dataset===i).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},s.push(n)),n}getContext(){return this.$context||(this.$context=on(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const i=this.data.datasets[e];if(!i)return!1;const s=this.getDatasetMeta(e);return typeof s.hidden=="boolean"?!s.hidden:!i.hidden}setDatasetVisibility(e,i){const s=this.getDatasetMeta(e);s.hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,s){const n=s?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,n);na(i)?(r.data[i].hidden=!s,this.update()):(this.setDatasetVisibility(e,s),o.update(r,{visible:s}),this.update(a=>a.datasetIndex===e?n:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){const i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),ss.remove(this),e=0,i=this.data.datasets.length;e{i.addEventListener(this,r,o),e[r]=o},n=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};Oe(this.options.events,r=>s(r,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,i=this.platform,s=(l,c)=>{i.addEventListener(this,l,c),e[l]=c},n=(l,c)=>{e[l]&&(i.removeEventListener(this,l,c),delete e[l])},r=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{n("attach",a),this.attached=!0,this.resize(),s("resize",r),s("detach",o)};o=()=>{this.attached=!1,n("resize",r),this._stop(),this._resize(0,0),s("attach",a)},i.isAttached(this.canvas)?a():o()}unbindEvents(){Oe(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},Oe(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,s){const n=s?"set":"remove";let r,o,a,l;for(i==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+n+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!tc(s,i)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,i))}notifyPlugins(e,i,s){return this._plugins.notify(this,e,i,s)}isPluginEnabled(e){return this._plugins._cache.filter(i=>i.plugin.id===e).length===1}_updateHoverStyles(e,i,s){const n=this.options.hover,r=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=r(i,e),a=s?e:r(e,i);o.length&&this.updateHoverStyle(o,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(e,i){const s={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},n=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",s,n)===!1)return;const r=this._handleEvent(e,i,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,n),(r||s.changed)&&this.render(),this}_handleEvent(e,i,s){const{_active:n=[],options:r}=this,o=i,a=this._getActiveElements(e,n,s,o),l=FM(e),c=IL(e,this._lastEvent,s,l);s&&(this._lastEvent=null,De(r.onHover,[e,a,this],this),l&&De(r.onClick,[e,a,this],this));const d=!tc(a,n);return(d||i)&&(this._active=a,this._updateHoverStyles(a,n,i)),this._lastEvent=c,d}_getActiveElements(e,i,s,n){if(e.type==="mouseout")return[];if(!s)return i;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,n)}},ie(Es,"defaults",Ze),ie(Es,"instances",Il),ie(Es,"overrides",Bn),ie(Es,"registry",Lt),ie(Es,"version",TL),ie(Es,"getChart",lv),Es);function cv(){return Oe(Mi.instances,t=>t._plugins.invalidate())}function ML(t,e,i){const{startAngle:s,x:n,y:r,outerRadius:o,innerRadius:a,options:l}=e,{borderWidth:c,borderJoinStyle:d}=l,u=Math.min(c/o,kt(s-i));if(t.beginPath(),t.arc(n,r,o-c/2,s+u/2,i-u/2),a>0){const h=Math.min(c/a,kt(s-i));t.arc(n,r,a+c/2,i-h/2,s+h/2,!0)}else{const h=Math.min(c/2,o*kt(s-i));if(d==="round")t.arc(n,r,h,i-Le/2,s+Le/2,!0);else if(d==="bevel"){const f=2*h*h,p=-f*Math.cos(i+Le/2)+n,g=-f*Math.sin(i+Le/2)+r,m=f*Math.cos(s+Le/2)+n,y=f*Math.sin(s+Le/2)+r;t.lineTo(p,g),t.lineTo(m,y)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function RL(t,e,i){const{startAngle:s,pixelMargin:n,x:r,y:o,outerRadius:a,innerRadius:l}=e;let c=n/a;t.beginPath(),t.arc(r,o,a,s-c,i+c),l>n?(c=n/l,t.arc(r,o,l,i+c,s-c,!0)):t.arc(r,o,n,i+ct,s-ct),t.closePath(),t.clip()}function $L(t){return Bf(t,["outerStart","outerEnd","innerStart","innerEnd"])}function LL(t,e,i,s){const n=$L(t.options.borderRadius),r=(i-e)/2,o=Math.min(r,s*e/2),a=l=>{const c=(i-Math.min(r,l))*s/2;return Pt(l,0,Math.min(r,c))};return{outerStart:a(n.outerStart),outerEnd:a(n.outerEnd),innerStart:Pt(n.innerStart,0,o),innerEnd:Pt(n.innerEnd,0,o)}}function nr(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function ac(t,e,i,s,n,r){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+s+i-c,0),h=d>0?d+s+i+c:0;let f=0;const p=n-l;if(s){const N=d>0?d-s:0,W=u>0?u-s:0,U=(N+W)/2,Y=U!==0?p*U/(U+s):p;f=(p-Y)/2}const g=Math.max(.001,p*u-i/Le)/u,m=(p-g)/2,y=l+m+f,C=n-m-f,{outerStart:w,outerEnd:A,innerStart:x,innerEnd:E}=LL(e,h,u,C-y),T=u-w,P=u-A,k=y+w/T,I=C-A/P,S=h+x,b=h+E,D=y+x/S,B=C-E/b;if(t.beginPath(),r){const N=(k+I)/2;if(t.arc(o,a,u,k,N),t.arc(o,a,u,N,I),A>0){const ae=nr(P,I,o,a);t.arc(ae.x,ae.y,A,I,C+ct)}const W=nr(b,C,o,a);if(t.lineTo(W.x,W.y),E>0){const ae=nr(b,B,o,a);t.arc(ae.x,ae.y,E,C+ct,B+Math.PI)}const U=(C-E/h+(y+x/h))/2;if(t.arc(o,a,h,C-E/h,U,!0),t.arc(o,a,h,U,y+x/h,!0),x>0){const ae=nr(S,D,o,a);t.arc(ae.x,ae.y,x,D+Math.PI,y-ct)}const Y=nr(T,y,o,a);if(t.lineTo(Y.x,Y.y),w>0){const ae=nr(T,k,o,a);t.arc(ae.x,ae.y,w,y-ct,k)}}else{t.moveTo(o,a);const N=Math.cos(k)*u+o,W=Math.sin(k)*u+a;t.lineTo(N,W);const U=Math.cos(I)*u+o,Y=Math.sin(I)*u+a;t.lineTo(U,Y)}t.closePath()}function DL(t,e,i,s,n){const{fullCircles:r,startAngle:o,circumference:a}=e;let l=e.endAngle;if(r){ac(t,e,i,s,l,n);for(let c=0;c=Le&&f===0&&d!=="miter"&&ML(t,e,g),r||(ac(t,e,i,s,g,n),t.stroke())}class co extends Gi{constructor(i){super();ie(this,"circumference");ie(this,"endAngle");ie(this,"fullCircles");ie(this,"innerRadius");ie(this,"outerRadius");ie(this,"pixelMargin");ie(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,s,n){const r=this.getProps(["x","y"],n),{angle:o,distance:a}=h_(r,{x:i,y:s}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),f=(this.options.spacing+this.options.borderWidth)/2,p=pe(h,c-l),g=Rf(o,l,c)&&l!==c,m=p>=at||g,y=us(a,d+f,u+f);return m&&y}getCenterPoint(i){const{x:s,y:n,startAngle:r,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:c,spacing:d}=this.options,u=(r+o)/2,h=(a+l+d+c)/2;return{x:s+Math.cos(u)*h,y:n+Math.sin(u)*h}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:s,circumference:n}=this,r=(s.offset||0)/4,o=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=n>at?Math.floor(n/at):0,n===0||this.innerRadius<0||this.outerRadius<0)return;i.save();const l=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(l)*r,Math.sin(l)*r);const c=1-Math.sin(Math.min(Le,n||0)),d=r*c;i.fillStyle=s.backgroundColor,i.strokeStyle=s.borderColor,DL(i,this,d,o,a),FL(i,this,d,o,a),i.restore()}}ie(co,"id","arc"),ie(co,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),ie(co,"defaultRoutes",{backgroundColor:"backgroundColor"}),ie(co,"descriptors",{_scriptable:!0,_indexable:i=>i!=="borderDash"});function q_(t,e,i=e){t.lineCap=pe(i.borderCapStyle,e.borderCapStyle),t.setLineDash(pe(i.borderDash,e.borderDash)),t.lineDashOffset=pe(i.borderDashOffset,e.borderDashOffset),t.lineJoin=pe(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=pe(i.borderWidth,e.borderWidth),t.strokeStyle=pe(i.borderColor,e.borderColor)}function NL(t,e,i){t.lineTo(i.x,i.y)}function BL(t){return t.stepped?lR:t.tension||t.cubicInterpolationMode==="monotone"?cR:NL}function H_(t,e,i={}){const s=t.length,{start:n=0,end:r=s-1}=i,{start:o,end:a}=e,l=Math.max(n,o),c=Math.min(r,a),d=na&&r>a;return{count:s,start:l,loop:e.loop,ilen:c(o+(c?a-A:A))%r,w=()=>{g!==m&&(t.lineTo(d,m),t.lineTo(d,g),t.lineTo(d,y))};for(l&&(f=n[C(0)],t.moveTo(f.x,f.y)),h=0;h<=a;++h){if(f=n[C(h)],f.skip)continue;const A=f.x,x=f.y,E=A|0;E===p?(xm&&(m=x),d=(u*d+A)/++u):(w(),t.lineTo(A,x),p=E,u=0,g=m=x),y=x}w()}function uh(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!i?zL:jL}function VL(t){return t.stepped?VR:t.tension||t.cubicInterpolationMode==="monotone"?UR:kn}function UL(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),q_(t,e.options),t.stroke(n)}function qL(t,e,i,s){const{segments:n,options:r}=e,o=uh(e);for(const a of n)q_(t,r,a.style),t.beginPath(),o(t,e,a,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}const HL=typeof Path2D=="function";function WL(t,e,i,s){HL&&!e.options.segment?UL(t,e,i,s):qL(t,e,i,s)}class fs extends Gi{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const n=s.spanGaps?this._loop:this._fullLoop;$R(this._points,s,e,n,i),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=YR(this,this.options.segment))}first(){const e=this.segments,i=this.points;return e.length&&i[e[0].start]}last(){const e=this.segments,i=this.points,s=e.length;return s&&i[e[s-1].end]}interpolate(e,i){const s=this.options,n=e[i],r=this.points,o=O_(this,{property:i,start:n,end:n});if(!o.length)return;const a=[],l=VL(s);let c,d;for(c=0,d=o.length;ce!=="borderDash"&&e!=="fill"});function dv(t,e,i,s){const n=t.options,{[i]:r}=t.getProps([i],s);return Math.abs(e-r){a=Wc(o,a,n);const l=n[o],c=n[a];s!==null?(r.push({x:l.x,y:s}),r.push({x:c.x,y:s})):i!==null&&(r.push({x:i,y:l.y}),r.push({x:i,y:c.y}))}),r}function Wc(t,e,i){for(;e>t;e--){const s=i[e];if(!isNaN(s.x)&&!isNaN(s.y))break}return e}function uv(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function K_(t,e){let i=[],s=!1;return Ke(t)?(s=!0,i=t):i=ZL(t,e),i.length?new fs({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function hv(t){return t&&t.fill!==!1}function eD(t,e,i){let n=t[e].fill;const r=[e];let o;if(!i)return n;for(;n!==!1&&r.indexOf(n)===-1;){if(!gt(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;r.push(n),n=o.fill}return!1}function tD(t,e,i){const s=rD(t);if(ke(s))return isNaN(s.value)?!1:s;let n=parseFloat(s);return gt(n)&&Math.floor(n)===n?iD(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function iD(t,e,i,s){return(t==="-"||t==="+")&&(i=e+i),i===e||i<0||i>=s?!1:i}function sD(t,e){let i=null;return t==="start"?i=e.bottom:t==="end"?i=e.top:ke(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}function nD(t,e,i){let s;return t==="start"?s=i:t==="end"?s=e.options.reverse?e.min:e.max:ke(t)?s=t.value:s=e.getBaseValue(),s}function rD(t){const e=t.options,i=e.fill;let s=pe(i&&i.target,i);return s===void 0&&(s=!!e.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function oD(t){const{scale:e,index:i,line:s}=t,n=[],r=s.segments,o=s.points,a=aD(e,i);a.push(K_({x:null,y:e.bottom},s));for(let l=0;l=0;--o){const a=n[o].$filler;a&&(a.line.updateControlPoints(r,a.axis),s&&a.fill&&eu(t.ctx,a,r))}},beforeDatasetsDraw(t,e,i){if(i.drawTime!=="beforeDatasetsDraw")return;const s=t.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){const r=s[n].$filler;hv(r)&&eu(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;!hv(s)||i.drawTime!=="beforeDatasetDraw"||eu(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const mv=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}},bD=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class vv extends Gi{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,i,s){this.maxWidth=e,this.maxHeight=i,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let i=De(e.generateLabels,[this.chart],this)||[];e.filter&&(i=i.filter(s=>e.filter(s,this.chart.data))),e.sort&&(i=i.sort((s,n)=>e.sort(s,n,this.chart.data))),this.options.reverse&&i.reverse(),this.legendItems=i}fit(){const{options:e,ctx:i}=this;if(!e.display){this.width=this.height=0;return}const s=e.labels,n=rt(s.font),r=n.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=mv(s,r);let c,d;i.font=n.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,r,a,l)+10):(d=this.maxHeight,c=this._fitCols(o,n,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,i,s,n){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=n+a;let u=e;r.textAlign="left",r.textBaseline="middle";let h=-1,f=-d;return this.legendItems.forEach((p,g)=>{const m=s+i/2+r.measureText(p.text).width;(g===0||c[c.length-1]+m+2*a>o)&&(u+=d,c[c.length-(g>0?0:1)]=0,f+=d,h++),l[g]={left:0,top:f,row:h,width:m,height:n},c[c.length-1]+=m+a}),u}_fitCols(e,i,s,n){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=a,h=0,f=0,p=0,g=0;return this.legendItems.forEach((m,y)=>{const{itemWidth:C,itemHeight:w}=yD(s,i,r,m,n);y>0&&f+w+2*a>d&&(u+=h+a,c.push({width:h,height:f}),p+=h+a,g++,h=f=0),l[y]={left:p,top:f,col:g,width:C,height:w},h=Math.max(h,C),f+=w+a}),u+=h,c.push({width:h,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:i,options:{align:s,labels:{padding:n},rtl:r}}=this,o=wr(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=_t(s,this.left+n,this.right-this.lineWidths[a]);for(const c of i)a!==c.row&&(a=c.row,l=_t(s,this.left+n,this.right-this.lineWidths[a])),c.top+=this.top+e+n,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+n}else{let a=0,l=_t(s,this.top+e+n,this.bottom-this.columnSizes[a].height);for(const c of i)c.col!==a&&(a=c.col,l=_t(s,this.top+e+n,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+n,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Vc(e,this),this._draw(),Uc(e)}}_draw(){const{options:e,columnSizes:i,lineWidths:s,ctx:n}=this,{align:r,labels:o}=e,a=Ze.color,l=wr(e.rtl,this.left,this.width),c=rt(o.font),{padding:d}=o,u=c.size,h=u/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=mv(o,u),y=function(E,T,P){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;n.save();const k=pe(P.lineWidth,1);if(n.fillStyle=pe(P.fillStyle,a),n.lineCap=pe(P.lineCap,"butt"),n.lineDashOffset=pe(P.lineDashOffset,0),n.lineJoin=pe(P.lineJoin,"miter"),n.lineWidth=k,n.strokeStyle=pe(P.strokeStyle,a),n.setLineDash(pe(P.lineDash,[])),o.usePointStyle){const I={radius:g*Math.SQRT2/2,pointStyle:P.pointStyle,rotation:P.rotation,borderWidth:k},S=l.xPlus(E,p/2),b=T+h;y_(n,I,S,b,o.pointStyleWidth&&p)}else{const I=T+Math.max((u-g)/2,0),S=l.leftForLtr(E,p),b=Rn(P.borderRadius);n.beginPath(),Object.values(b).some(D=>D!==0)?ra(n,{x:S,y:I,w:p,h:g,radius:b}):n.rect(S,I,p,g),n.fill(),k!==0&&n.stroke()}n.restore()},C=function(E,T,P){jn(n,P.text,E,T+m/2,c,{strikethrough:P.hidden,textAlign:l.textAlign(P.textAlign)})},w=this.isHorizontal(),A=this._computeTitleHeight();w?f={x:_t(r,this.left+d,this.right-s[0]),y:this.top+d+A,line:0}:f={x:this.left+d,y:_t(r,this.top+A+d,this.bottom-i[0].height),line:0},A_(this.ctx,e.textDirection);const x=m+d;this.legendItems.forEach((E,T)=>{n.strokeStyle=E.fontColor,n.fillStyle=E.fontColor;const P=n.measureText(E.text).width,k=l.textAlign(E.textAlign||(E.textAlign=o.textAlign)),I=p+h+P;let S=f.x,b=f.y;l.setWidth(this.width),w?T>0&&S+I+d>this.right&&(b=f.y+=x,f.line++,S=f.x=_t(r,this.left+d,this.right-s[f.line])):T>0&&b+x>this.bottom&&(S=f.x=S+i[f.line].width+d,f.line++,b=f.y=_t(r,this.top+A+d,this.bottom-i[f.line].height));const D=l.x(S);if(y(D,b,E),S=JM(k,S+p+h,w?S+I:this.right,e.rtl),C(l.x(S),b,E),w)f.x+=I+d;else if(typeof E.text!="string"){const B=c.lineHeight;f.y+=Y_(E,B)+d}else f.y+=x}),T_(this.ctx,e.textDirection)}drawTitle(){const e=this.options,i=e.title,s=rt(i.font),n=yt(i.padding);if(!i.display)return;const r=wr(e.rtl,this.left,this.width),o=this.ctx,a=i.position,l=s.size/2,c=n.top+l;let d,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),d=this.top+c,u=_t(e.align,u,this.right-h);else{const p=this.columnSizes.reduce((g,m)=>Math.max(g,m.height),0);d=c+_t(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const f=_t(a,u,u+h);o.textAlign=r.textAlign(Lf(a)),o.textBaseline="middle",o.strokeStyle=i.color,o.fillStyle=i.color,o.font=s.string,jn(o,i.text,f,d,s)}_computeTitleHeight(){const e=this.options.title,i=rt(e.font),s=yt(e.padding);return e.display?i.lineHeight+s.height:0}_getLegendItemAt(e,i){let s,n,r;if(us(e,this.left,this.right)&&us(i,this.top,this.bottom)){for(r=this.legendHitBoxes,s=0;sr.length>o.length?r:o)),e+i.size/2+s.measureText(n).width}function xD(t,e,i){let s=t;return typeof e.text!="string"&&(s=Y_(e,i)),s}function Y_(t,e){const i=t.text?t.text.length:0;return e*i}function wD(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var jr={id:"legend",_element:vv,start(t,e,i){const s=t.legend=new vv({ctx:t.ctx,options:i,chart:t});hi.configure(t,s,i),hi.addBox(t,s)},stop(t){hi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;hi.configure(t,s,i),s.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:r,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(i?0:void 0),d=yt(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class J_ extends Gi{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,i){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=i;const n=Ke(s.text)?s.text.length:1;this._padding=yt(s.padding);const r=n*rt(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:i,left:s,bottom:n,right:r,options:o}=this,a=o.align;let l=0,c,d,u;return this.isHorizontal()?(d=_t(a,s,r),u=i+e,c=r-s):(o.position==="left"?(d=s+e,u=_t(a,n,i),l=Le*-.5):(d=r-e,u=_t(a,i,n),l=Le*.5),c=n-i),{titleX:d,titleY:u,maxWidth:c,rotation:l}}draw(){const e=this.ctx,i=this.options;if(!i.display)return;const s=rt(i.font),r=s.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);jn(e,i.text,0,0,s,{color:i.color,maxWidth:l,rotation:c,textAlign:Lf(i.align),textBaseline:"middle",translation:[o,a]})}}function kD(t,e){const i=new J_({ctx:t.ctx,options:e,chart:t});hi.configure(t,i,e),hi.addBox(t,i),t.titleBlock=i}var zr={id:"title",_element:J_,start(t,e,i){kD(t,i)},stop(t){const e=t.titleBlock;hi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;hi.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const uo={average(t){if(!t.length)return!1;let e,i,s=new Set,n=0,r=0;for(e=0,i=t.length;ea+l)/s.size,y:n/r}},nearest(t,e){if(!t.length)return!1;let i=e.x,s=e.y,n=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=t.length;r-1?t.split(` +`):t}function SD(t,e){const{element:i,datasetIndex:s,index:n}=e,r=t.getDatasetMeta(s).controller,{label:o,value:a}=r.getLabelAndValue(n);return{chart:t,label:o,parsed:r.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:a,dataset:r.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function bv(t,e){const i=t.chart.ctx,{body:s,footer:n,title:r}=t,{boxWidth:o,boxHeight:a}=e,l=rt(e.bodyFont),c=rt(e.titleFont),d=rt(e.footerFont),u=r.length,h=n.length,f=s.length,p=yt(e.padding);let g=p.height,m=0,y=s.reduce((A,x)=>A+x.before.length+x.lines.length+x.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,u&&(g+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),y){const A=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*A+(y-f)*l.lineHeight+(y-1)*e.bodySpacing}h&&(g+=e.footerMarginTop+h*d.lineHeight+(h-1)*e.footerSpacing);let C=0;const w=function(A){m=Math.max(m,i.measureText(A).width+C)};return i.save(),i.font=c.string,Oe(t.title,w),i.font=l.string,Oe(t.beforeBody.concat(t.afterBody),w),C=e.displayColors?o+2+e.boxPadding:0,Oe(s,A=>{Oe(A.before,w),Oe(A.lines,w),Oe(A.after,w)}),C=0,i.font=d.string,Oe(t.footer,w),i.restore(),m+=p.width,{width:m,height:g}}function CD(t,e){const{y:i,height:s}=e;return it.height-s/2?"bottom":"center"}function AD(t,e,i,s){const{x:n,width:r}=s,o=i.caretSize+i.caretPadding;if(t==="left"&&n+r+o>e.width||t==="right"&&n-r-o<0)return!0}function TD(t,e,i,s){const{x:n,width:r}=i,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return s==="center"?c=n<=(a+l)/2?"left":"right":n<=r/2?c="left":n>=o-r/2&&(c="right"),AD(c,t,e,i)&&(c="center"),c}function yv(t,e,i){const s=i.yAlign||e.yAlign||CD(t,i);return{xAlign:i.xAlign||e.xAlign||TD(t,e,i,s),yAlign:s}}function ED(t,e){let{x:i,width:s}=t;return e==="right"?i-=s:e==="center"&&(i-=s/2),i}function PD(t,e,i){let{y:s,height:n}=t;return e==="top"?s+=i:e==="bottom"?s-=n+i:s-=n/2,s}function _v(t,e,i,s){const{caretSize:n,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:l}=i,c=n+r,{topLeft:d,topRight:u,bottomLeft:h,bottomRight:f}=Rn(o);let p=ED(e,a);const g=PD(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(d,h)+n:a==="right"&&(p+=Math.max(u,f)+n),{x:Pt(p,0,s.width-e.width),y:Pt(g,0,s.height-e.height)}}function hl(t,e,i){const s=yt(i.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-s.right:t.x+s.left}function xv(t){return Bi([],ns(t))}function OD(t,e,i){return on(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function wv(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const X_={beforeTitle:es,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex"u"?X_[e].call(i,s):n}class fh extends Gi{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&i.options.animation&&s.animations,r=new M_(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=OD(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){const{callbacks:s}=i,n=Ht(s,"beforeTitle",this,e),r=Ht(s,"title",this,e),o=Ht(s,"afterTitle",this,e);let a=[];return a=Bi(a,ns(n)),a=Bi(a,ns(r)),a=Bi(a,ns(o)),a}getBeforeBody(e,i){return xv(Ht(i.callbacks,"beforeBody",this,e))}getBody(e,i){const{callbacks:s}=i,n=[];return Oe(e,r=>{const o={before:[],lines:[],after:[]},a=wv(s,r);Bi(o.before,ns(Ht(a,"beforeLabel",this,r))),Bi(o.lines,Ht(a,"label",this,r)),Bi(o.after,ns(Ht(a,"afterLabel",this,r))),n.push(o)}),n}getAfterBody(e,i){return xv(Ht(i.callbacks,"afterBody",this,e))}getFooter(e,i){const{callbacks:s}=i,n=Ht(s,"beforeFooter",this,e),r=Ht(s,"footer",this,e),o=Ht(s,"afterFooter",this,e);let a=[];return a=Bi(a,ns(n)),a=Bi(a,ns(r)),a=Bi(a,ns(o)),a}_createItems(e){const i=this._active,s=this.chart.data,n=[],r=[],o=[];let a=[],l,c;for(l=0,c=i.length;le.filter(d,u,h,s))),e.itemSort&&(a=a.sort((d,u)=>e.itemSort(d,u,s))),Oe(a,d=>{const u=wv(e.callbacks,d);n.push(Ht(u,"labelColor",this,d)),r.push(Ht(u,"labelPointStyle",this,d)),o.push(Ht(u,"labelTextColor",this,d))}),this.labelColors=n,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(e,i){const s=this.options.setContext(this.getContext()),n=this._active;let r,o=[];if(!n.length)this.opacity!==0&&(r={opacity:0});else{const a=uo[s.position].call(this,n,this._eventPosition);o=this._createItems(s),this.title=this.getTitle(o,s),this.beforeBody=this.getBeforeBody(o,s),this.body=this.getBody(o,s),this.afterBody=this.getAfterBody(o,s),this.footer=this.getFooter(o,s);const l=this._size=bv(this,s),c=Object.assign({},a,l),d=yv(this.chart,s,c),u=_v(s,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,r={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,s,n){const r=this.getCaretPosition(e,s,n);i.lineTo(r.x1,r.y1),i.lineTo(r.x2,r.y2),i.lineTo(r.x3,r.y3)}getCaretPosition(e,i,s){const{xAlign:n,yAlign:r}=this,{caretSize:o,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Rn(a),{x:h,y:f}=e,{width:p,height:g}=i;let m,y,C,w,A,x;return r==="center"?(A=f+g/2,n==="left"?(m=h,y=m-o,w=A+o,x=A-o):(m=h+p,y=m+o,w=A-o,x=A+o),C=m):(n==="left"?y=h+Math.max(l,d)+o:n==="right"?y=h+p-Math.max(c,u)-o:y=this.caretX,r==="top"?(w=f,A=w-o,m=y-o,C=y+o):(w=f+g,A=w+o,m=y+o,C=y-o),x=w),{x1:m,x2:y,x3:C,y1:w,y2:A,y3:x}}drawTitle(e,i,s){const n=this.title,r=n.length;let o,a,l;if(r){const c=wr(s.rtl,this.x,this.width);for(e.x=hl(this,s.titleAlign,s),i.textAlign=c.textAlign(s.titleAlign),i.textBaseline="middle",o=rt(s.titleFont),a=s.titleSpacing,i.fillStyle=s.titleColor,i.font=o.string,l=0;lC!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,ra(e,{x:g,y:p,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),ra(e,{x:m,y:p+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(g,p,c,l),e.strokeRect(g,p,c,l),e.fillStyle=o.backgroundColor,e.fillRect(m,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[s]}drawBody(e,i,s){const{body:n}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:d}=s,u=rt(s.bodyFont);let h=u.lineHeight,f=0;const p=wr(s.rtl,this.x,this.width),g=function(P){i.fillText(P,p.x(e.x+f),e.y+h/2),e.y+=h+r},m=p.textAlign(o);let y,C,w,A,x,E,T;for(i.textAlign=o,i.textBaseline="middle",i.font=u.string,e.x=hl(this,m,s),i.fillStyle=s.bodyColor,Oe(this.beforeBody,g),f=a&&m!=="right"?o==="center"?c/2+d:c+2+d:0,A=0,E=n.length;A0&&i.stroke()}_updateAnimationTarget(e){const i=this.chart,s=this.$animations,n=s&&s.x,r=s&&s.y;if(n||r){const o=uo[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=bv(this,e),l=Object.assign({},o,this._size),c=yv(i,e,l),d=_v(e,l,c,i);(n._to!==d.x||r._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const i=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(i);const n={width:this.width,height:this.height},r={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const o=yt(i.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&a&&(e.save(),e.globalAlpha=s,this.drawBackground(r,e,n,i),A_(e,i.textDirection),r.y+=o.top,this.drawTitle(r,e,i),this.drawBody(r,e,i),this.drawFooter(r,e,i),T_(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){const s=this._active,n=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),r=!tc(s,n),o=this._positionChanged(n,i);(r||o)&&(this._active=n,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,s=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,r=this._active||[],o=this._getActiveElements(e,r,i,s),a=this._positionChanged(o,e),l=i||!tc(o,r)||a;return l&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),l}_getActiveElements(e,i,s,n){const r=this.options;if(e.type==="mouseout")return[];if(!n)return i.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,s);return r.reverse&&o.reverse(),o}_positionChanged(e,i){const{caretX:s,caretY:n,options:r}=this,o=uo[r.position].call(this,e,i);return o!==!1&&(s!==o.x||n!==o.y)}}ie(fh,"positioners",uo);var Wn={id:"tooltip",_element:fh,positioners:uo,afterInit(t,e,i){i&&(t.tooltip=new fh({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:X_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const ID=(t,e,i,s)=>(typeof e=="string"?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i);function MD(t,e,i,s){const n=t.indexOf(e);if(n===-1)return ID(t,e,i,s);const r=t.lastIndexOf(e);return n!==r?i:n}const RD=(t,e)=>t===null?null:Pt(Math.round(t),0,e);function kv(t){const e=this.getLabels();return t>=0&&ti.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ie(bs,"id","category"),ie(bs,"defaults",{ticks:{callback:kv}});function $D(t,e){const i=[],{bounds:n,step:r,min:o,max:a,precision:l,count:c,maxTicks:d,maxDigits:u,includeBounds:h}=t,f=r||1,p=d-1,{min:g,max:m}=e,y=!me(o),C=!me(a),w=!me(c),A=(m-g)/(u+1);let x=xm((m-g)/p/f)*f,E,T,P,k;if(x<1e-14&&!y&&!C)return[{value:g},{value:m}];k=Math.ceil(m/x)-Math.floor(g/x),k>p&&(x=xm(k*x/p/f)*f),me(l)||(E=Math.pow(10,l),x=Math.ceil(x*E)/E),n==="ticks"?(T=Math.floor(g/x)*x,P=Math.ceil(m/x)*x):(T=g,P=m),y&&C&&r&&VM((a-o)/r,x/1e3)?(k=Math.round(Math.min((a-o)/x,d)),x=(a-o)/k,T=o,P=a):w?(T=y?o:T,P=C?a:P,k=c-1,x=(P-T)/k):(k=(P-T)/x,Mo(k,Math.round(k),x/1e3)?k=Math.round(k):k=Math.ceil(k));const I=Math.max(wm(x),wm(T));E=Math.pow(10,me(l)?I:l),T=Math.round(T*E)/E,P=Math.round(P*E)/E;let S=0;for(y&&(h&&T!==o?(i.push({value:o}),Ta)break;i.push({value:b})}return C&&h&&P!==a?i.length&&Mo(i[i.length-1].value,a,Sv(a,A,t))?i[i.length-1].value=a:i.push({value:a}):(!C||P===a)&&i.push({value:P}),i}function Sv(t,e,{horizontal:i,minRotation:s}){const n=Vs(s),r=(i?Math.sin(n):Math.cos(n))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class ph extends Br{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,i){return me(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:i,maxDefined:s}=this.getUserBounds();let{min:n,max:r}=this;const o=l=>n=i?n:l,a=l=>r=s?r:l;if(e){const l=Wi(n),c=Wi(r);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(n===r){let l=r===0?1:Math.abs(r*.05);a(r+l),e||o(n-l)}this.min=n,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:i,stepSize:s}=e,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),i=i||11),i&&(n=Math.min(i,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,i=e.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n={maxTicks:s,bounds:e.bounds,min:e.min,max:e.max,precision:i.precision,step:i.stepSize,count:i.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:i.minRotation||0,includeBounds:i.includeBounds!==!1},r=this._range||this,o=$D(n,r);return e.bounds==="ticks"&&UM(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let i=this.min,s=this.max;if(super.configure(),this.options.offset&&e.length){const n=(s-i)/Math.max(e.length-1,1)/2;i-=n,s+=n}this._startValue=i,this._endValue=s,this._valueRange=s-i}getLabelForValue(e){return Ff(e,this.chart.options.locale,this.options.ticks.format)}}class ys extends ph{determineDataLimits(){const{min:e,max:i}=this.getMinMax(!0);this.min=gt(e)?e:0,this.max=gt(i)?i:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),i=e?this.width:this.height,s=Vs(this.options.ticks.minRotation),n=(e?Math.sin(s):Math.cos(s))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(i/Math.min(40,r.lineHeight/n))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ie(ys,"id","linear"),ie(ys,"defaults",{ticks:{callback:Nf.formatters.numeric}});function gh(t){const e=t.ticks;if(e.display&&t.display){const i=yt(e.backdropPadding);return pe(e.font&&e.font.size,Ze.font.size)+i.height}return 0}function LD(t,e,i){return i=Ke(i)?i:[i],{w:aR(t,e.string,i),h:i.length*e.lineHeight}}function Cv(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:tn?{start:e-i,end:e}:{start:e,end:e+i}}function DD(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],n=[],r=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?Le/r:0;for(let l=0;le.r&&(a=(s.end-e.r)/r,t.r=Math.max(t.r,e.r+a)),n.starte.b&&(l=(n.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function ND(t,e,i){const s=t.drawingArea,{extra:n,additionalAngle:r,padding:o,size:a}=i,l=t.getPointPosition(e,s+n+o,r),c=Math.round(Mf(kt(l.angle+ct))),d=UD(l.y,a.h,c),u=zD(c),h=VD(l.x,a.w,u);return{visible:!0,x:l.x,y:d,textAlign:u,left:h,top:d,right:h+a.w,bottom:d+a.h}}function BD(t,e){if(!e)return!0;const{left:i,top:s,right:n,bottom:r}=t;return!(hs({x:i,y:s},e)||hs({x:i,y:r},e)||hs({x:n,y:s},e)||hs({x:n,y:r},e))}function jD(t,e,i){const s=[],n=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:a}=r.pointLabels,l={extra:gh(r)/2,additionalAngle:o?Le/n:0};let c;for(let d=0;d270||i<90)&&(t-=e),t}function qD(t,e,i){const{left:s,top:n,right:r,bottom:o}=i,{backdropColor:a}=e;if(!me(a)){const l=Rn(e.borderRadius),c=yt(e.backdropPadding);t.fillStyle=a;const d=s-c.left,u=n-c.top,h=r-s+c.width,f=o-n+c.height;Object.values(l).some(p=>p!==0)?(t.beginPath(),ra(t,{x:d,y:u,w:h,h:f,radius:l}),t.fill()):t.fillRect(d,u,h,f)}}function HD(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const r=t._pointLabelItems[n];if(!r.visible)continue;const o=s.setContext(t.getPointLabelContext(n));qD(i,o,r);const a=rt(o.font),{x:l,y:c,textAlign:d}=r;jn(i,t._pointLabels[n],l,c+a.lineHeight/2,a,{color:o.color,textAlign:d,textBaseline:"middle"})}}function Q_(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,at);else{let r=t.getPointPosition(0,e);n.moveTo(r.x,r.y);for(let o=1;o{const n=De(this.options.pointLabels.callback,[i,s],this);return n||n===0?n:""}).filter((i,s)=>this.chart.getDataVisibility(s))}fit(){const e=this.options;e.display&&e.pointLabels.display?DD(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,i,s,n){this.xCenter+=Math.floor((e-i)/2),this.yCenter+=Math.floor((s-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,i,s,n))}getIndexAngle(e){const i=at/(this._pointLabels.length||1),s=this.options.startAngle||0;return kt(e*i+Vs(s))}getDistanceFromCenterForValue(e){if(me(e))return NaN;const i=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*i:(e-this.min)*i}getValueForDistanceFromCenter(e){if(me(e))return NaN;const i=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-i:this.min+i}getPointLabelContext(e){const i=this._pointLabels||[];if(e>=0&&e{if(u!==0||u===0&&this.min<0){l=this.getDistanceFromCenterForValue(d.value);const h=this.getContext(u),f=n.setContext(h),p=r.setContext(h);WD(this,f,l,o,p)}}),s.display){for(e.save(),a=o-1;a>=0;a--){const d=s.setContext(this.getPointLabelContext(a)),{color:u,lineWidth:h}=d;!h||!u||(e.lineWidth=h,e.strokeStyle=u,e.setLineDash(d.borderDash),e.lineDashOffset=d.borderDashOffset,l=this.getDistanceFromCenterForValue(i.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,i=this.options,s=i.ticks;if(!s.display)return;const n=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!i.reverse)return;const c=s.setContext(this.getContext(l)),d=rt(c.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=d.string,o=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const u=yt(c.backdropPadding);e.fillRect(-o/2-u.left,-r-d.size/2-u.top,o+u.width,d.size+u.height)}jn(e,a.label,0,-r,d,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}ie(ho,"id","radialLinear"),ie(ho,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ie(ho,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ie(ho,"descriptors",{angleLines:{_fallback:"grid"}});const Kc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Yt=Object.keys(Kc);function Av(t,e){return t-e}function Tv(t,e){if(me(e))return null;const i=t._adapter,{parser:s,round:n,isoWeekday:r}=t._parseOpts;let o=e;return typeof s=="function"&&(o=s(o)),gt(o)||(o=typeof s=="string"?i.parse(o,s):i.parse(o)),o===null?null:(n&&(o=n==="week"&&(Rr(r)||r===!0)?i.startOf(o,"isoWeek",r):i.startOf(o,n)),+o)}function Ev(t,e,i,s){const n=Yt.length;for(let r=Yt.indexOf(t);r=Yt.indexOf(i);r--){const o=Yt[r];if(Kc[o].common&&t._adapter.diff(n,s,o)>=e-1)return o}return Yt[i?Yt.indexOf(i):0]}function YD(t){for(let e=Yt.indexOf(t)+1,i=Yt.length;e=e?i[s]:i[n];t[r]=!0}}function JD(t,e,i,s){const n=t._adapter,r=+n.startOf(e[0].value,s),o=e[e.length-1].value;let a,l;for(a=r;a<=o;a=+n.add(a,1,s))l=i[a],l>=0&&(e[l].major=!0);return e}function Ov(t,e,i){const s=[],n={},r=e.length;let o,a;for(o=0;o+e.value))}initOffsets(e=[]){let i=0,s=0,n,r;this.options.offset&&e.length&&(n=this.getDecimalForValue(e[0]),e.length===1?i=1-n:i=(this.getDecimalForValue(e[1])-n)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?s=r:s=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;i=Pt(i,0,o),s=Pt(s,0,o),this._offsets={start:i,end:s,factor:1/(i+1+s)}}_generate(){const e=this._adapter,i=this.min,s=this.max,n=this.options,r=n.time,o=r.unit||Ev(r.minUnit,i,s,this._getLabelCapacity(i)),a=pe(n.ticks.stepSize,1),l=o==="week"?r.isoWeekday:!1,c=Rr(l)||l===!0,d={};let u=i,h,f;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":o),e.diff(s,i,o)>1e5*a)throw new Error(i+" and "+s+" are too far apart with stepSize of "+a+" "+o);const p=n.ticks.source==="data"&&this.getDataTimestamps();for(h=u,f=0;h+g)}getLabelForValue(e){const i=this._adapter,s=this.options.time;return s.tooltipFormat?i.format(e,s.tooltipFormat):i.format(e,s.displayFormats.datetime)}format(e,i){const n=this.options.time.displayFormats,r=this._unit,o=i||n[r];return this._adapter.format(e,o)}_tickFormatFunction(e,i,s,n){const r=this.options,o=r.ticks.callback;if(o)return De(o,[e,i,s],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&a[l],u=c&&a[c],h=s[i],f=c&&u&&h&&h.major;return this._adapter.format(e,n||(f?u:d))}generateTickLabels(e){let i,s,n;for(i=0,s=e.length;i0?a:1}getDataTimestamps(){let e=this._cache.data||[],i,s;if(e.length)return e;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(i=0,s=n.length;i=t[s].pos&&e<=t[n].pos&&({lo:s,hi:n}=Tn(t,"pos",e)),{pos:r,time:a}=t[s],{pos:o,time:l}=t[n]):(e>=t[s].time&&e<=t[n].time&&({lo:s,hi:n}=Tn(t,"time",e)),{time:r,pos:a}=t[s],{time:o,pos:l}=t[n]);const c=o-r;return c?a+(l-a)*(e-r)/c:a}class Iv extends lc{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),i=this._table=this.buildLookupTable(e);this._minPos=fl(i,this.min),this._tableRange=fl(i,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:i,max:s}=this,n=[],r=[];let o,a,l,c,d;for(o=0,a=e.length;o=i&&c<=s&&n.push(c);if(n.length<2)return[{time:i,pos:0},{time:s,pos:1}];for(o=0,a=n.length;on-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const i=this.getDataTimestamps(),s=this.getLabelTimestamps();return i.length&&s.length?e=this.normalize(i.concat(s)):e=i.length?i:s,e=this._cache.all=e,e}getDecimalForValue(e){return(fl(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const i=this._offsets,s=this.getDecimalForPixel(e)/i.factor-i.end;return fl(this._table,s*this._tableRange+this._minPos,!0)}}ie(Iv,"id","timeseries"),ie(Iv,"defaults",lc.defaults);const Z_={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},XD={ariaLabel:{type:String},ariaDescribedby:{type:String}},QD={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Z_,...XD},ZD=Gb[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function rr(t){return aa(t)?we(t):t}function e4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return aa(e)?new Proxy(t,{}):t}function t4(t,e){const i=t.options;i&&e&&Object.assign(i,e)}function ex(t,e){t.labels=e}function tx(t,e,i){const s=[];t.datasets=e.map(n=>{const r=t.datasets.find(o=>o[i]===n[i]);return!r||!n.data||s.includes(r)?{...n}:(s.push(r),Object.assign(r,n),r)})}function i4(t,e){const i={labels:[],datasets:[]};return ex(i,t.labels),tx(i,t.datasets,e),i}const s4=Se({props:QD,setup(t,e){let{expose:i,slots:s}=e;const n=Vn(null),r=Ih(null);i({chart:r});const o=()=>{if(!n.value)return;const{type:c,data:d,options:u,plugins:h,datasetIdKey:f}=t,p=i4(d,f),g=e4(p,d);r.value=new Mi(n.value,{type:c,data:g,options:{...u},plugins:h})},a=()=>{const c=we(r.value);c&&(t.destroyDelay>0?setTimeout(()=>{c.destroy(),r.value=null},t.destroyDelay):(c.destroy(),r.value=null))},l=c=>{c.update(t.updateMode)};return yc(o),Rh(a),di([()=>t.options,()=>t.data],(c,d)=>{let[u,h]=c,[f,p]=d;const g=we(r.value);if(!g)return;let m=!1;if(u){const y=rr(u),C=rr(f);y&&y!==C&&(t4(g,y),m=!0)}if(h){const y=rr(h.labels),C=rr(p.labels),w=rr(h.datasets),A=rr(p.datasets);y!==C&&(ex(g.config.data,y),m=!0),w&&w!==A&&(tx(g.config.data,w,t.datasetIdKey),m=!0)}m&&ca(()=>{l(g)})},{deep:!0}),()=>Xe("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:n},[Xe("p",{},[s.default?s.default():""])])}});function Gc(t,e){return Mi.register(e),Se({props:Z_,setup(i,s){let{expose:n}=s;const r=Ih(null),o=a=>{r.value=a==null?void 0:a.chart};return n({chart:r}),()=>Xe(s4,ZD({ref:o},{type:t,...i}))}})}const ix=Gc("bar",Ai),n4=Gc("line",Tl),r4=Gc("radar",El),o4=Gc("scatter",Pl);/*! + * chartjs-plugin-datalabels v2.2.0 + * https://chartjs-plugin-datalabels.netlify.app + * (c) 2017-2022 chartjs-plugin-datalabels contributors + * Released under the MIT license + */var Mv=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),Lo={toTextLines:function(t){var e=[],i;for(t=[].concat(t);t.length;)i=t.pop(),typeof i=="string"?e.unshift.apply(e,i.split(` +`)):Array.isArray(i)?t.push.apply(t,i):me(t)||e.unshift(""+i);return e},textSize:function(t,e,i){var s=[].concat(e),n=s.length,r=t.font,o=0,a;for(t.font=i.string,a=0;ai.right&&(s|=nx),ei.bottom&&(s|=rx),s}function c4(t,e){for(var i=t.x0,s=t.y0,n=t.x1,r=t.y1,o=pl(i,s,e),a=pl(n,r,e),l,c,d;!(!(o|a)||o&a);)l=o||a,l&ox?(c=i+(n-i)*(e.top-s)/(r-s),d=e.top):l&rx?(c=i+(n-i)*(e.bottom-s)/(r-s),d=e.bottom):l&nx?(d=s+(r-s)*(e.right-i)/(n-i),c=e.right):l&sx&&(d=s+(r-s)*(e.left-i)/(n-i),c=e.left),l===o?(i=c,s=d,o=pl(i,s,e)):(n=c,r=d,a=pl(n,r,e));return{x0:i,x1:n,y0:s,y1:r}}function gl(t,e){var i=e.anchor,s=t,n,r;return e.clamp&&(s=c4(s,e.area)),i==="start"?(n=s.x0,r=s.y0):i==="end"?(n=s.x1,r=s.y1):(n=(s.x0+s.x1)/2,r=(s.y0+s.y1)/2),a4(n,r,t.vx,t.vy,e.align)}var ml={arc:function(t,e){var i=(t.startAngle+t.endAngle)/2,s=Math.cos(i),n=Math.sin(i),r=t.innerRadius,o=t.outerRadius;return gl({x0:t.x+s*r,y0:t.y+n*r,x1:t.x+s*o,y1:t.y+n*o,vx:s,vy:n},e)},point:function(t,e){var i=iu(t,e.origin),s=i.x*t.options.radius,n=i.y*t.options.radius;return gl({x0:t.x-s,y0:t.y-n,x1:t.x+s,y1:t.y+n,vx:i.x,vy:i.y},e)},bar:function(t,e){var i=iu(t,e.origin),s=t.x,n=t.y,r=0,o=0;return t.horizontal?(s=Math.min(t.x,t.base),r=Math.abs(t.base-t.x)):(n=Math.min(t.y,t.base),o=Math.abs(t.base-t.y)),gl({x0:s,y0:n+o,x1:s+r,y1:n,vx:i.x,vy:i.y},e)},fallback:function(t,e){var i=iu(t,e.origin);return gl({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:i.x,vy:i.y},e)}},ps=Lo.rasterize;function d4(t){var e=t.borderWidth||0,i=t.padding,s=t.size.height,n=t.size.width,r=-n/2,o=-s/2;return{frame:{x:r-i.left-e,y:o-i.top-e,w:n+i.width+e*2,h:s+i.height+e*2},text:{x:r,y:o,w:n,h:s}}}function u4(t,e){var i=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!i)return null;if(i.xCenter!==void 0&&i.yCenter!==void 0)return{x:i.xCenter,y:i.yCenter};var s=i.getBasePixel();return t.horizontal?{x:s,y:null}:{x:null,y:s}}function h4(t){return t instanceof co?ml.arc:t instanceof Ln?ml.point:t instanceof Ti?ml.bar:ml.fallback}function f4(t,e,i,s,n,r){var o=Math.PI/2;if(r){var a=Math.min(r,n/2,s/2),l=e+a,c=i+a,d=e+s-a,u=i+n-a;t.moveTo(e,c),ls.x+s.w+i*2||t.y>s.y+s.h+i*2)},intersects:function(t){var e=this._points(),i=t._points(),s=[vl(e[0],e[1]),vl(e[0],e[3])],n,r,o;for(this._rotation!==t._rotation&&s.push(vl(i[0],i[1]),vl(i[0],i[3])),n=0;n=0;--i)for(n=t[i].$layout,s=i-1;s>=0&&n._visible;--s)r=t[s].$layout,r._visible&&n._box.intersects(r._box)&&e(n,r);return t}function x4(t){var e,i,s,n,r,o,a;for(e=0,i=t.length;el.getProps([c],!0)[c]}),r=s.geometry(),o=cx(a,s.model(),r),n._box.update(o,r,s.rotation()));return _4(t,function(l,c){var d=l._hidable,u=c._hidable;d&&u||u?c._visible=!1:d&&(l._visible=!1)})}var Do={prepare:function(t){var e=[],i,s,n,r,o;for(i=0,n=t.length;i=0;--i)if(s=t[i].$layout,s&&s._visible&&s._box.contains(e))return t[i];return null},draw:function(t,e){var i,s,n,r,o,a;for(i=0,s=e.length;i{e.push(this.data[s][this.column])}),this.isSorted){const s=Cf(t,e);t=[],e=[];for(const[n,r]of s)t.push(n),e.push(r)}return this.maxLabels!=null&&(t=t.slice(0,this.maxLabels),e=e.slice(0,this.maxLabels)),{labels:t,datasets:[{label:this.column,backgroundColor:this.barColor,data:e}]}},chartOptions(){var i,s,n,r;let t="x";return this.isHorizontal&&(t="y"),{responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{display:!1},legend:{labels:{color:ge().text.legend}}},indexAxis:t,scales:{x:{min:(i=this.xRange)==null?void 0:i.min,max:(s=this.xRange)==null?void 0:s.max,grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}},y:{min:(n=this.yRange)==null?void 0:n.min,max:(r=this.yRange)==null?void 0:r.max,grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}}}}},chartStyle(){return{display:"flex",height:this.height+"px",width:"100%","align-items":"safe center","justify-content":"safe center"}}}},ux=Se({...E4,__name:"BarChart",setup(t){return Mi.register(zr,Wn,jr,Ti,bs,ys,Vr),(e,i)=>(q(),G("div",{style:ri(e.chartStyle)},[(q(),vt(Re(ix),{options:e.chartOptions,data:e.chartData,key:e.uniqueKey},null,8,["options","data"]))],4))}}),P4=Math.sqrt(2*Math.PI);function O4(t){return Math.exp(-.5*t*t)/P4}function I4(t,e){return t*e/(e-1)}function M4(t,e,i){let s=Math.sqrt(I4(e,i));return typeof t=="number"&&(s=Math.min(s,t/1.34)),1.06*s*Math.pow(i,-.2)}function R4(t){const e=t.items.length,i=M4(t.iqr,t.variance,e);return s=>{let n=0,r=0;for(n=0;n{const o=r*s,a=Math.floor(o),l=o-a,c=t[a];return l===0?c:i(c,t[Math.min(a+1,s)],l)};return{q1:n(.25),median:n(.5),q3:n(.75)}}function Fo(t,e=t.length){return Ur(t,e,(i,s,n)=>i+n*(s-i))}function $4(t,e=t.length){return Ur(t,e,(i,s,n)=>i+(s-i)*n)}function L4(t,e=t.length){return Ur(t,e,i=>i)}function D4(t,e=t.length){return Ur(t,e,(i,s)=>s)}function F4(t,e=t.length){return Ur(t,e,(i,s,n)=>n<.5?i:s)}function N4(t,e=t.length){return Ur(t,e,(i,s)=>(i+s)*.5)}function hx(t,e=t.length){const i=e,s=Math.floor((i+3)/2)/2,n=r=>.5*(t[Math.floor(r)-1]+t[Math.ceil(r)-1]);return{q1:n(s),median:n((i+1)/2),q3:n(i+1-s)}}function B4(t,e=t.length){return hx(t,e)}function j4(t){let e=0;const{length:i}=t,s=t instanceof Float64Array?new Float64Array(i):new Float32Array(i);for(let l=0;ll===c?0:lMath.abs(w-A)0;let p=f?Math.max(i,d-o*h):i,g=f?Math.min(s,u+o*h):s;const m=[];for(let w=0;w=p||l(A,p)){a==="nearest"&&(p=A);break}(m.length===0||!l(m[m.length-1],A))&&m.push(A)}const y=[];for(let w=e-1;w>=0;w-=1){const A=t[w];if(A<=g||l(A,g)){a==="nearest"&&(g=A);break}(y.length===0||!l(y[y.length-1],A))&&(m.length===0||!l(m[m.length-1],A))&&y.push(A)}const C=m.concat(y.reverse());return{median:c,q1:d,q3:u,iqr:h,outlier:C,whiskerHigh:g,whiskerLow:p}}function U4(t,e){let i=0;for(let n=0;n0},l=t.length-s;if(l===0)return a;const c={min:r,max:o,count:t.length,missing:s,items:n,...U4(n,l),...V4(n,l,r,o,i)};return{...c,kde:R4(c)}}function q4(t,e,i=1.5){const s=t.q3-t.q1,n=typeof i=="number"&&i>0;let r=n?Math.max(t.min,t.q1-i*s):t.min,o=n?Math.min(t.max,t.q3+i*s):t.max;if(Array.isArray(e)){for(let a=0;a=r){r=l;break}}for(let a=e.length-1;a>=0;a-=1){const l=e[a];if(l<=o){o=l;break}}}return{whiskerMin:r,whiskerMax:o}}const vh={coef:1.5,quantiles:7,whiskersMode:"nearest"};function H4(t){return typeof t=="function"?t:{hinges:B4,fivenum:hx,7:Fo,quantiles:Fo,linear:$4,lower:L4,higher:D4,nearest:F4,midpoint:N4}[t]||Fo}function Wf(t){const e=t==null||typeof t.coef!="number"?vh.coef:t.coef,i=t==null||t.quantiles==null?Fo:t.quantiles,s=H4(i),n=t==null||typeof t.whiskersMode!="string"?vh.whiskersMode:t.whiskersMode;return{coef:e,quantiles:s,whiskersMode:n}}function W4(t,e){const i=typeof Float64Array<"u"&&!(t instanceof Float32Array||t instanceof Float64Array)?Float64Array.from(t):t,s=fx(i,Wf(e));return{items:Array.from(s.items),outliers:s.outlier,whiskerMax:s.whiskerHigh,whiskerMin:s.whiskerLow,max:s.max,median:s.median,mean:s.mean,min:s.min,q1:s.q1,q3:s.q3}}function K4(t,e,i){const s=e-t,n=[],r=s/i;for(let o=t;o<=e&&r>0;o+=r)n.push(o);return n[n.length-1]!==e&&n.push(e),n}function G4(t,e){if(t.length===0)return;const i=typeof Float64Array<"u"&&!(t instanceof Float32Array||t instanceof Float64Array)?Float64Array.from(t):t,s=fx(i,Wf(e)),r=K4(s.min,s.max,e.points).map(a=>({v:a,estimate:s.kde(a)})),o=r.reduce((a,l)=>Math.max(a,l.estimate),Number.NEGATIVE_INFINITY);return{max:s.max,min:s.min,mean:s.mean,median:s.median,q1:s.q1,q3:s.q3,items:Array.from(s.items),coords:r,outliers:[],maxEstimate:o}}function Y4(t,e){if(t){if(typeof t.median=="number"&&typeof t.q1=="number"&&typeof t.q3=="number"){if(typeof t.whiskerMin>"u"){const{coef:i}=Wf(e),{whiskerMin:s,whiskerMax:n}=q4(t,Array.isArray(t.items)?t.items.slice().sort((r,o)=>r-o):null,i);t.whiskerMin=s,t.whiskerMax=n}return t}if(Array.isArray(t))return W4(t,e)}}function J4(t,e){if(t){if(typeof t.median=="number"&&Array.isArray(t.coords))return t;if(Array.isArray(t))return G4(t,e)}}function $v(t=Date.now()){let e=t;return()=>(e=(e*9301+49297)%233280,e/233280)}const Kf={borderWidth:1,outlierStyle:"circle",outlierRadius:2,outlierBorderWidth:1,itemStyle:"circle",itemRadius:0,itemBorderWidth:0,itemHitRadius:0,meanStyle:"circle",meanRadius:3,meanBorderWidth:1,hitPadding:2,outlierHitRadius:4},Gf={outlierBackgroundColor:"backgroundColor",outlierBorderColor:"borderColor",itemBackgroundColor:"backgroundColor",itemBorderColor:"borderColor",meanBackgroundColor:"backgroundColor",meanBorderColor:"borderColor"},bh=Object.keys(Kf).concat(Object.keys(Gf));let px=class extends Gi{isVertical(){return!this.horizontal}_drawItems(e){const i=this.isVertical(),s=this.getProps(["x","y","items","width","height","outliers"]),{options:n}=this;if(n.itemRadius<=0||!s.items||s.items.length<=0)return;e.save(),e.strokeStyle=n.itemBorderColor,e.fillStyle=n.itemBackgroundColor,e.lineWidth=n.itemBorderWidth;const r=$v(this._datasetIndex*1e3+this._index),o={pointStyle:n.itemStyle,radius:n.itemRadius,borderWidth:n.itemBorderWidth},a=new Set(s.outliers||[]);i?s.items.forEach(l=>{a.has(l)||Ui(e,o,s.x-s.width/2+r()*s.width,l)}):s.items.forEach(l=>{a.has(l)||Ui(e,o,l,s.y-s.height/2+r()*s.height)}),e.restore()}_drawOutliers(e){const i=this.isVertical(),s=this.getProps(["x","y","outliers"]),{options:n}=this;if(n.outlierRadius<=0||!s.outliers||s.outliers.length===0)return;e.save(),e.fillStyle=n.outlierBackgroundColor,e.strokeStyle=n.outlierBorderColor,e.lineWidth=n.outlierBorderWidth;const r={pointStyle:n.outlierStyle,radius:n.outlierRadius,borderWidth:n.outlierBorderWidth};i?s.outliers.forEach(o=>{Ui(e,r,s.x,o)}):s.outliers.forEach(o=>{Ui(e,r,o,s.y)}),e.restore()}_drawMeanDot(e){const i=this.isVertical(),s=this.getProps(["x","y","mean"]),{options:n}=this;if(n.meanRadius<=0||s.mean==null||Number.isNaN(s.mean))return;e.save(),e.fillStyle=n.meanBackgroundColor,e.strokeStyle=n.meanBorderColor,e.lineWidth=n.meanBorderWidth;const r={pointStyle:n.meanStyle,radius:n.meanRadius,borderWidth:n.meanBorderWidth};i?Ui(e,r,s.x,s.mean):Ui(e,r,s.mean,s.y),e.restore()}_getBounds(e){return{left:0,top:0,right:0,bottom:0}}_getHitBounds(e){const i=this.options.hitPadding,s=this._getBounds(e);return{left:s.left-i,top:s.top-i,right:s.right+i,bottom:s.bottom+i}}inRange(e,i,s){return Number.isNaN(this.x)&&Number.isNaN(this.y)?!1:this._boxInRange(e,i,s)||this._outlierIndexInRange(e,i,s)!=null||this._itemIndexInRange(e,i,s)!=null}inXRange(e,i){const s=this._getHitBounds(i);return e>=s.left&&e<=s.right}inYRange(e,i){const s=this._getHitBounds(i);return e>=s.top&&e<=s.bottom}_outlierIndexInRange(e,i,s){const n=this.getProps(["x","y"],s),r=this.options.outlierHitRadius,o=this._getOutliers(s),a=this.isVertical();if(a&&Math.abs(e-n.x)>r||!a&&Math.abs(i-n.y)>r)return null;const l=a?i:e;for(let c=0;c=n.left&&e<=n.right&&i>=n.top&&i<=n.bottom}getCenterPoint(e){const i=this.getProps(["x","y"],e);return{x:i.x,y:i.y}}_getOutliers(e){return this.getProps(["outliers"],e).outliers||[]}tooltipPosition(e,i){if(!e||typeof e=="boolean")return this.getCenterPoint();i&&(delete i._tooltipOutlier,delete i._tooltipItem);const s=this._outlierIndexInRange(e.x,e.y);if(s!=null&&i)return i._tooltipOutlier={index:s.index,datasetIndex:this._datasetIndex},{x:s.x,y:s.y};const n=this._itemIndexInRange(e.x,e.y);return n!=null&&i?(i._tooltipItem={index:n.index,datasetIndex:this._datasetIndex},{x:n.x,y:n.y}):this.getCenterPoint()}};const Lv=bh.concat(["medianColor","lowerBackgroundColor"]);class wa extends px{draw(e){e.save(),e.fillStyle=this.options.backgroundColor,e.strokeStyle=this.options.borderColor,e.lineWidth=this.options.borderWidth,this._drawBoxPlot(e),this._drawOutliers(e),this._drawMeanDot(e),e.restore(),this._drawItems(e)}_drawBoxPlot(e){this.isVertical()?this._drawBoxPlotVertical(e):this._drawBoxPlotHorizontal(e)}_drawBoxPlotVertical(e){const{options:i}=this,s=this.getProps(["x","width","q1","q3","median","whiskerMin","whiskerMax"]),{x:n}=s,{width:r}=s,o=n-r/2;s.q3>s.q1?e.fillRect(o,s.q1,r,s.q3-s.q1):e.fillRect(o,s.q3,r,s.q1-s.q3),e.save(),i.medianColor&&i.medianColor!=="transparent"&&i.medianColor!=="#0000"&&(e.strokeStyle=i.medianColor),e.beginPath(),e.moveTo(o,s.median),e.lineTo(o+r,s.median),e.closePath(),e.stroke(),e.restore(),e.save(),i.lowerBackgroundColor&&i.lowerBackgroundColor!=="transparent"&&i.lowerBackgroundColor!=="#0000"&&(e.fillStyle=i.lowerBackgroundColor,s.q3>s.q1?e.fillRect(o,s.median,r,s.q3-s.median):e.fillRect(o,s.median,r,s.q1-s.median)),e.restore(),s.q3>s.q1?e.strokeRect(o,s.q1,r,s.q3-s.q1):e.strokeRect(o,s.q3,r,s.q1-s.q3),e.beginPath(),e.moveTo(o,s.whiskerMin),e.lineTo(o+r,s.whiskerMin),e.moveTo(n,s.whiskerMin),e.lineTo(n,s.q1),e.moveTo(o,s.whiskerMax),e.lineTo(o+r,s.whiskerMax),e.moveTo(n,s.whiskerMax),e.lineTo(n,s.q3),e.closePath(),e.stroke()}_drawBoxPlotHorizontal(e){const{options:i}=this,s=this.getProps(["y","height","q1","q3","median","whiskerMin","whiskerMax"]),{y:n}=s,{height:r}=s,o=n-r/2;s.q3>s.q1?e.fillRect(s.q1,o,s.q3-s.q1,r):e.fillRect(s.q3,o,s.q1-s.q3,r),e.save(),i.medianColor&&i.medianColor!=="transparent"&&(e.strokeStyle=i.medianColor),e.beginPath(),e.moveTo(s.median,o),e.lineTo(s.median,o+r),e.closePath(),e.stroke(),e.restore(),e.save(),i.lowerBackgroundColor&&i.lowerBackgroundColor!=="transparent"&&(e.fillStyle=i.lowerBackgroundColor,s.q3>s.q1?e.fillRect(s.median,o,s.q3-s.median,r):e.fillRect(s.median,o,s.q1-s.median,r)),e.restore(),s.q3>s.q1?e.strokeRect(s.q1,o,s.q3-s.q1,r):e.strokeRect(s.q3,o,s.q1-s.q3,r),e.beginPath(),e.moveTo(s.whiskerMin,o),e.lineTo(s.whiskerMin,o+r),e.moveTo(s.whiskerMin,n),e.lineTo(s.q1,n),e.moveTo(s.whiskerMax,o),e.lineTo(s.whiskerMax,o+r),e.moveTo(s.whiskerMax,n),e.lineTo(s.q3,n),e.closePath(),e.stroke()}_getBounds(e){const i=this.isVertical();if(this.x==null)return{left:0,top:0,right:0,bottom:0};if(i){const{x:l,width:c,whiskerMax:d,whiskerMin:u}=this.getProps(["x","width","whiskerMin","whiskerMax"],e),h=l-c/2;return{left:h,top:d,right:h+c,bottom:u}}const{y:s,height:n,whiskerMax:r,whiskerMin:o}=this.getProps(["y","height","whiskerMin","whiskerMax"],e),a=s-n/2;return{left:o,top:a,right:r,bottom:a+n}}}wa.id="boxandwhiskers";wa.defaults={...Ti.defaults,...Kf,medianColor:"transparent",lowerBackgroundColor:"transparent"};wa.defaultRoutes={...Ti.defaultRoutes,...Gf};class ka extends px{draw(e){e.save(),e.fillStyle=this.options.backgroundColor,e.strokeStyle=this.options.borderColor,e.lineWidth=this.options.borderWidth;const i=this.getProps(["x","y","median","width","height","min","max","coords","maxEstimate"]);i.median!=null&&Ui(e,{pointStyle:"rectRot",radius:5,borderWidth:this.options.borderWidth},i.x,i.y),i.coords&&i.coords.length>0&&this._drawCoords(e,i),this._drawOutliers(e),this._drawMeanDot(e),e.restore(),this._drawItems(e)}_drawCoords(e,i){let s;if(i.maxEstimate==null?s=i.coords.reduce((n,r)=>Math.max(n,r.estimate),Number.NEGATIVE_INFINITY):s=i.maxEstimate,e.beginPath(),this.isVertical()){const{x:n,width:r}=i,o=r/2/s;i.coords.forEach(a=>{e.lineTo(n-a.estimate*o,a.v)}),i.coords.slice().reverse().forEach(a=>{e.lineTo(n+a.estimate*o,a.v)})}else{const{y:n,height:r}=i,o=r/2/s;i.coords.forEach(a=>{e.lineTo(a.v,n-a.estimate*o)}),i.coords.slice().reverse().forEach(a=>{e.lineTo(a.v,n+a.estimate*o)})}e.closePath(),e.stroke(),e.fill()}_getBounds(e){if(this.isVertical()){const{x:a,width:l,min:c,max:d}=this.getProps(["x","width","min","max"],e),u=a-l/2;return{left:u,top:d,right:u+l,bottom:c}}const{y:i,height:s,min:n,max:r}=this.getProps(["y","height","min","max"],e),o=i-s/2;return{left:n,top:o,right:r,bottom:o+s}}}ka.id="violin";ka.defaults={...Ti.defaults,...Kf};ka.defaultRoutes={...Ti.defaultRoutes,...Gf};const cc={number(t,e,i){return t===e||t==null?e:e==null?t:t+(e-t)*i}};function X4(t,e,i){return typeof t=="number"&&typeof e=="number"?cc.number(t,e,i):Array.isArray(t)&&Array.isArray(e)?e.map((s,n)=>cc.number(t[n],s,i)):e}function Q4(t,e,i){return Array.isArray(t)&&Array.isArray(e)?e.map((s,n)=>({v:cc.number(t[n]?t[n].v:null,s.v,i),estimate:cc.number(t[n]?t[n].estimate:null,s.estimate,i)})):e}function Z4(t){const e=t.formattedValue,i=this;e&&i._tooltipOutlier!=null&&t.datasetIndex===i._tooltipOutlier.datasetIndex&&(e.hoveredOutlierIndex=i._tooltipOutlier.index),e&&i._tooltipItem!=null&&t.datasetIndex===i._tooltipItem.datasetIndex&&(e.hoveredItemIndex=i._tooltipItem.index)}function No(t,e){if(!t.length)return!1;let i=0,s=0,n=0;for(let r=0;r(Wn.positioners.average=No,No);function gx(t){const e=["borderColor","backgroundColor"].concat(t.filter(i=>i.endsWith("Color")));return{animations:{numberArray:{fn:X4,properties:["outliers","items"]},colors:{type:"color",properties:e}},transitions:{show:{animations:{colors:{type:"color",properties:e,from:"transparent"}}},hide:{animations:{colors:{type:"color",properties:e,to:"transparent"}}}},minStats:"min",maxStats:"max",...vh}}function mx(){return{plugins:{tooltip:{position:No.register().id,callbacks:{beforeLabel:Z4}}}}}class vx extends Ai{_transformStats(e,i,s){for(const n of["min","max","median","q3","q1","mean"]){const r=i[n];typeof r=="number"&&(e[n]=s(r))}for(const n of["outliers","items"])Array.isArray(i[n])&&(e[n]=i[n].map(s))}getMinMax(e,i){const s=e.axis,n=this.options;e.axis=n.minStats;const{min:r}=super.getMinMax(e,i);e.axis=n.maxStats;const{max:o}=super.getMinMax(e,i);return e.axis=s,{min:r,max:o}}parsePrimitiveData(e,i,s,n){const r=e.vScale,o=e.iScale,a=o.getLabels(),l=[];for(let c=0;cs.getLabelForValue(o));const r=this._toStringStats(i.value.raw);return i.value.toString=function(){return this.hoveredOutlierIndex>=0?`(outlier: ${this.outliers[this.hoveredOutlierIndex]})`:this.hoveredItemIndex>=0?`(item: ${this.items[this.hoveredItemIndex]})`:r},i}_toStringStats(e){const i=s=>s==null?"NaN":Ff(s,this.chart.options.locale,{});return`(min: ${i(e.min)}, 25% quantile: ${i(e.q1)}, median: ${i(e.median)}, mean: ${i(e.mean)}, 75% quantile: ${i(e.q3)}, max: ${i(e.max)})`}updateElement(e,i,s,n){const r=n==="reset",o=this._cachedMeta.vScale,a=this.getParsed(i),l=o.getBasePixel();s._datasetIndex=this.index,s._index=i,this._transformStats(s,a,c=>r?l:o.getPixelForValue(c,i)),super.updateElement(e,i,s,n)}}function bx(t,e,i,s=[],n=[]){Lt.addControllers(i),Array.isArray(s)?Lt.addElements(...s):Lt.addElements(s),Array.isArray(n)?Lt.addScales(...n):Lt.addScales(n);const r=e;return r.type=t,r}class Sa extends vx{_parseStats(e,i){return Y4(e,i)}_transformStats(e,i,s){super._transformStats(e,i,s);for(const n of["whiskerMin","whiskerMax"])e[n]=s(i[n])}}Sa.id="boxplot";Sa.defaults=Qt({},[Ai.defaults,gx(Lv),{animations:{numbers:{type:"number",properties:Ai.defaults.animations.numbers.properties.concat(["q1","q3","min","max","median","whiskerMin","whiskerMax","mean"],Lv.filter(t=>!t.endsWith("Color")))}},dataElementType:wa.id}]);Sa.overrides=Qt({},[Ai.overrides,mx()]);class yx extends Mi{constructor(e,i){super(e,bx("boxplot",i,Sa,wa,[ys,bs]))}}yx.id=Sa.id;class Ca extends vx{_parseStats(e,i){return J4(e,i)}_transformStats(e,i,s){super._transformStats(e,i,s),e.maxEstimate=i.maxEstimate,Array.isArray(i.coords)&&(e.coords=i.coords.map(n=>({...n,v:s(n.v)})))}}Ca.id="violin";Ca.defaults=Qt({},[Ai.defaults,gx(bh),{points:100,animations:{numbers:{type:"number",properties:Ai.defaults.animations.numbers.properties.concat(["q1","q3","min","max","median","maxEstimate"],bh.filter(t=>!t.endsWith("Color")))},kdeCoords:{fn:Q4,properties:["coords"]}},dataElementType:ka.id}]);Ca.overrides=Qt({},[Ai.overrides,mx()]);class e5 extends Mi{constructor(e,i){super(e,bx("violin",i,Ca,ka,[ys,bs]))}}e5.id=Ca.id;const t5={props:{column:{default:null},subColumn:{default:null},data:{},isSorted:{default:!0},borderStyle:{default:{color:ec,width:3}},itemStyle:{default:{color:iM}},height:{default:100},maxLabels:{default:null},isHorizontal:{default:!1},xRange:{default:{}},yRange:{default:{}}},data(){return{boxPlotChart:null}},computed:{chartStyle(){return{display:"flex",height:this.height+"px",width:"100%","align-items":"safe center","justify-content":"safe center"}}},methods:{chartData(){let t=Object.keys(this.data),e=[];if(t.forEach(i=>{const s=this.data[i][this.column];let n=s;this.subColumn!=null&&Object.keys(s).includes(this.subColumn)&&(n=s[this.subColumn]),e.push(n)}),this.isSorted){const i=Cf(t,e);t=[],e=[];for(const[s,n]of i)t.push(s),e.push(n)}return this.maxLabels!=null&&(t=t.slice(0,this.maxLabels),e=e.slice(0,this.maxLabels)),{labels:t,values:e}},chartDataSetup(){var n,r,o;const t=this.chartData(),e=t.labels,i=t.values;return{labels:e,datasets:[{label:this.column,borderColor:(n=this.borderStyle)==null?void 0:n.color,borderWidth:(r=this.borderStyle)==null?void 0:r.width,itemRadius:2,itemStyle:"circle",itemBackgroundColor:(o=this.itemStyle)==null?void 0:o.color,backgroundColor:ge().background,data:i}]}},chartOptions(){var i,s,n,r;let t="x";return this.isHorizontal&&(t="y"),{responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{display:!1},legend:{display:!1},tooltip:{displayColors:!1,callbacks:{label:o=>{const a="mean: "+o.parsed.mean,l="median: "+o.parsed.median,c="min: "+o.parsed.min,d="max: "+o.parsed.max;return[a,l,c,d]}}}},indexAxis:t,scales:{x:{min:(i=this.xRange)==null?void 0:i.min,max:(s=this.xRange)==null?void 0:s.max,stacked:!0,grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}},y:{min:(n=this.yRange)==null?void 0:n.min,max:(r=this.yRange)==null?void 0:r.max,stacked:!0,grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}}}}}},mounted(){const t=document.getElementById("myChart").getContext("2d");t&&(this.boxPlotChart=new yx(t,{data:this.chartDataSetup(),options:this.chartOptions()}))}},i5=Se({...t5,__name:"BoxPlot",setup(t){return Mi.register(zr,Wn,jr,Ti,bs,ys,Vr),(e,i)=>(q(),G("div",{style:ri(e.chartStyle)},i[0]||(i[0]=[X("canvas",{id:"myChart"},null,-1)]),4))}}),s5={props:{column:"",data:{},options:{default:{responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{display:!1}}}},lineColor:{default:ec},pointColor:{default:ec},height:{default:100}},computed:{uniqueKey(){return JSON.stringify(this.data)+JSON.stringify(ge())},chartData(){let t=Object.keys(this.data),e=[];t.forEach(s=>{e.push(this.data[s][this.column])});const i={labels:t,datasets:[{label:this.column,backgroundColor:this.pointColor,borderColor:this.lineColor,data:e}]};return this.options.scales={x:{grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}},y:{grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}}},this.options.plugins.legend={labels:{color:ge().text.legend}},i},chartOptions(){return this.options},chartStyle(){return{display:"flex",height:this.height+"px",width:"100%","align-items":"safe center","justify-content":"safe center"}}}},n5=Se({...s5,__name:"LineChart",setup(t){return Mi.register(zr,Wn,jr,fs,Ln,bs,ys,Vr),(e,i)=>(q(),G("div",{style:ri(e.chartStyle)},[(q(),vt(Re(n4),{options:e.chartOptions,data:e.chartData,key:e.uniqueKey},null,8,["options","data"]))],4))}}),r5={props:{columnX:"",columnY:"",data:{},pointColor:{default:tM},pointRadius:{default:6},pointHoverRadius:{default:8},height:{default:300}},data(){return{options:{responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{color:ge().text.dataLabels,align:"top",offset:8,font:{weight:"bold"},formatter:function(t,e){return e.chart.data.labels[e.dataIndex]}}}}}},computed:{uniqueKey(){return JSON.stringify(this.data)+JSON.stringify(ge())},chartData(){let t=Object.keys(this.data),e=[];t.forEach(s=>{const n=this.data[s][this.columnX],r=this.data[s][this.columnY];e.push({x:n,y:r})});const i={labels:t,datasets:[{label:"data",backgroundColor:this.pointColor,data:e,pointRadius:this.pointRadius,pointHoverRadius:this.pointHoverRadius,color:ge().text.axes}]};return this.options.scales={x:{title:{text:this.columnX,display:!0,color:ge().text.axesText},grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}},y:{title:{text:this.columnY,display:!0,color:ge().text.axesText},grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}}},i},chartOptions(){return this.options},chartStyle(){return{display:"flex",height:this.height+"px",width:"100%","align-items":"safe center","justify-content":"safe center"}}}},o5=Se({...r5,__name:"ScatterChart",setup(t){return Mi.register(zr,Wn,jr,Ln,bs,ys,Vr),(e,i)=>(q(),G("div",{style:ri(e.chartStyle)},[(q(),vt(Re(o4),{options:e.chartOptions,data:e.chartData,key:e.uniqueKey},null,8,["options","data"]))],4))}}),a5={props:{columns:{default:[]},data:{},isSorted:{default:!0},barColors:{default:[]},height:{default:100},maxLabels:{default:null},isHorizontal:{default:!1},xRange:{default:{}},yRange:{default:{}}},computed:{uniqueKey(){return JSON.stringify(this.data)+JSON.stringify(ge())},chartData(){let t=Object.keys(this.data),e=[];for(var i=0;i{r.push(this.data[a][n])});const o={label:n,backgroundColor:this.barColors[i],data:r};e.push(o)}return{labels:t,datasets:e}},chartOptions(){var i,s,n,r;let t="x";return this.isHorizontal&&(t="y"),{responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{display:!1},legend:{labels:{color:ge().text.legend}}},indexAxis:t,scales:{x:{min:(i=this.xRange)==null?void 0:i.min,max:(s=this.xRange)==null?void 0:s.max,stacked:!0,grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}},y:{min:(n=this.yRange)==null?void 0:n.min,max:(r=this.yRange)==null?void 0:r.max,stacked:!0,grid:{color:ge().grid.lines},ticks:{color:ge().text.axesText}}}}},chartStyle(){return{display:"flex",height:this.height+"px",width:"100%","align-items":"safe center","justify-content":"safe center"}}}},l5=Se({...a5,__name:"StackedBarChart",setup(t){return Mi.register(zr,Wn,jr,Ti,bs,ys,Vr),(e,i)=>(q(),G("div",{style:ri(e.chartStyle)},[(q(),vt(Re(ix),{options:e.chartOptions,data:e.chartData,key:e.uniqueKey},null,8,["options","data"]))],4))}}),c5={class:"graph-container"},d5={props:{data:{default:{}},graphFilters:{default:[]},maxHeightRatio:{default:.7},maxDataPoints:{default:null}},data(){return{activeGraphFilterIndex:0,viewMode:null}},methods:{setGraphView(t){this.activeGraphFilterIndex=t},uniqueKey(t){return JSON.stringify(this.data)+JSON.stringify(this.graphFilters[this.activeGraphFilterIndex])+JSON.stringify(ge())+t}},computed:{getActiveGraphFilter(){return this.graphFilters[this.activeGraphFilterIndex]},isChartSorted(){const t=this.graphFilters[this.activeGraphFilterIndex];return"isSorted"in t?t.isSorted:!0},isChartHorizontal(){const t=this.graphFilters[this.activeGraphFilterIndex];return"isHorizontal"in t?t.isHorizontal:!1},chartXScale(){var t;return(t=this.graphFilters[this.activeGraphFilterIndex])==null?void 0:t.xScale},chartYScale(){var t;return(t=this.graphFilters[this.activeGraphFilterIndex])==null?void 0:t.yScale},isBarChartView(){var t;return((t=this.graphFilters[this.activeGraphFilterIndex])==null?void 0:t.type)=="bar"},isScatterChartView(){var t;return((t=this.graphFilters[this.activeGraphFilterIndex])==null?void 0:t.type)=="scatter"},isLineChartView(){var t;return((t=this.graphFilters[this.activeGraphFilterIndex])==null?void 0:t.type)=="line"},isStackedBarChartView(){var t;return((t=this.graphFilters[this.activeGraphFilterIndex])==null?void 0:t.type)=="stacked-bar"},isBoxPlotView(){var t;return((t=this.graphFilters[this.activeGraphFilterIndex])==null?void 0:t.type)=="boxplot"},maxChartHeight(){return this.maxHeightRatio*this.viewMode.windowHeight}},created(){this.viewMode=Un()}},u5=Se({...d5,__name:"FilterableGraph",setup(t){return(e,i)=>(q(),G(ye,null,[X("div",null,[oe(ls,{choices:t.graphFilters,modelValue:e.activeGraphFilterIndex,"onUpdate:modelValue":[i[0]||(i[0]=s=>e.activeGraphFilterIndex=s),e.setGraphView]},null,8,["choices","modelValue","onUpdate:modelValue"])]),X("div",c5,[e.isBarChartView?(q(),vt(ux,{key:e.uniqueKey(0),data:t.data,column:e.getActiveGraphFilter.key1,isSorted:e.isChartSorted,height:e.maxChartHeight,"max-labels":t.maxDataPoints,"is-horizontal":e.isChartHorizontal,"x-scale":e.chartXScale,"y-scale":e.chartYScale},null,8,["data","column","isSorted","height","max-labels","is-horizontal","x-scale","y-scale"])):e.isScatterChartView?(q(),vt(o5,{key:e.uniqueKey(1),data:t.data,columnX:e.getActiveGraphFilter.key1,columnY:e.getActiveGraphFilter.key2,height:e.maxChartHeight},null,8,["data","columnX","columnY","height"])):e.isLineChartView?(q(),vt(n5,{key:e.uniqueKey(2),data:t.data,column:e.getActiveGraphFilter.key1,height:e.maxChartHeight},null,8,["data","column","height"])):e.isStackedBarChartView?(q(),vt(l5,{key:e.uniqueKey(3),data:t.data,columns:e.getActiveGraphFilter.keyList,"bar-colors":e.getActiveGraphFilter.colorList,height:e.maxChartHeight},null,8,["data","columns","bar-colors","height"])):e.isBoxPlotView?(q(),vt(i5,{key:e.uniqueKey(4),data:t.data,column:e.getActiveGraphFilter.key1,"sub-column":e.getActiveGraphFilter.key2,isSorted:e.isChartSorted,height:e.maxChartHeight,"max-labels":t.maxDataPoints,"is-horizontal":e.isChartHorizontal,"x-range":e.chartXScale,"y-range":e.chartYScale},null,8,["data","column","sub-column","isSorted","height","max-labels","is-horizontal","x-range","y-range"])):qe("",!0)])],64))}}),yh=vi(u5,[["__scopeId","data-v-d4e62ffd"]]),h5={props:{columnX:"",columnY:"",data:{},options:{default:{responsive:!0,maintainAspectRatio:!1,plugins:{datalabels:{display:!1}}}},pointRadius:{default:6},pointHoverRadius:{default:8},colors:{default:{backgroundColors:[el.background],borderColors:[el.border],pointBackgroundColors:[el.pointBackground],pointHoverBorderColors:[el.pointHoverBorder]}},height:{default:200},range:{default:{min:0,max:5}}},computed:{uniqueKey(){return JSON.stringify(this.data)+JSON.stringify(ge())},chartData(){let t=Object.keys(this.data),e=Object.values(this.data);const i={labels:t,datasets:[{backgroundColor:this.colors.backgroundColors[0],data:e,label:"Scoring Dimensions",borderColor:this.colors.borderColors[0],pointBackgroundColor:this.colors.pointBackgroundColors[0],pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:this.colors.pointHoverBorderColors[0]}]};return this.options.plugins.legend={labels:{color:ge().text.legend}},this.options.scales={r:{min:this.range.min,max:this.range.max,grid:{color:ge().grid.lines},angleLines:{color:ge().grid.lines},ticks:{color:ge().text.axesText,showLabelBackdrop:!1},pointLabels:{color:ge().text.axesText}}},i},chartOptions(){return this.options},chartStyle(){return{display:"flex",height:this.height+"px",width:"100%","align-items":"safe center","justify-content":"safe center"}}}},f5=Se({...h5,__name:"RadarChart",setup(t){return Mi.register(zr,Wn,jr,Ln,ho,fs,vD,Vr),(e,i)=>(q(),G("div",{style:ri(e.chartStyle)},[(q(),vt(Re(r4),{options:e.chartOptions,data:e.chartData,class:"radar-chart",key:e.uniqueKey},null,8,["options","data"]))],4))}}),p5={class:"stat-highlight-container"},g5={class:"stat-highlight-value"},m5={props:{stats:{default:[]},isVertical:{default:!1}},computed:{highlightClass(){return this.isVertical?"stat-highlight-view-container-vertical":"stat-highlight-view-container"}},methods:{}},v5=Se({...m5,__name:"StatHighlight",setup(t){return(e,i)=>(q(),G("div",{class:kr(e.highlightClass)},[(q(!0),G(ye,null,st(t.stats,s=>(q(),G("div",p5,[X("h3",null,fe(s.name),1),X("div",g5,[Fe(fe(s.value)+" (",1),X("span",{style:ri(Re(sh)(s.normalized))},fe(Re(ih)(s.ranking)),5),i[0]||(i[0]=Fe(") ",-1))])]))),256))],2))}}),b5=vi(v5,[["__scopeId","data-v-4467de61"]]),y5={class:"main-content"},_5={key:0},x5={class:"analysis-row-tile"},w5={key:0,class:"image-tile"},k5=["src"],S5={key:1,class:"file-upload-tile"},C5={class:"data-tile"},A5={class:"graph-tile"},T5={class:"graph-tile"},E5={class:"graph-tile"},P5={class:"graph-tile match-progression-container"},O5={class:"data-tile"},I5={key:0,class:"comment-tile"},M5={class:"data-tile"},R5={key:1},$5={data(){return{viewMode:null,eventStore:null,teamsLoaded:!1,teamPhotoLoaded:!1,teamPhotoAvailable:!1,teamPhotoUrl:"",teamPhotoUploading:!1,teamsData:[{}],pitData:[{}],teamFilters:[],currentTeamIndex:0,matchDataFilters:[{text:"Breakdown",keyList:["coralPoints","algaePoints","bargePoints"],colorList:["#ff55ecff","#5dfc75ff","#647afaff"],type:"stacked-bar"},{text:"Auto vs. Teleop",keyList:["autoPoints","teleopPoints"],colorList:["#ff55ecff","#5dfc75ff"],type:"stacked-bar"},{text:"Auto: Coral",key1:"coralAutoPoints",type:"line"},{text:"Teleop: Coral",key1:"coralTeleopPoints",type:"line"},{text:"Teleop: Algae",key1:"algaeTeleopPoints",type:"line"},{text:"Barge Points",key1:"bargePoints",type:"line"},{text:"Foul Points",key1:"foulPoints",type:"line"},{text:"Algae Dislodged",key1:"algaeTotalDislodgedCount",type:"line"}],reefFilters:[{text:"Auto Count",key1:"auto_count",type:"boxplot",isHorizontal:!0,isSorted:!1},{text:"Teleop Count",key1:"teleop_count",type:"boxplot",isHorizontal:!0,isSorted:!1}]}},methods:{async loadTeamsData(){await this.eventStore.updateEvent(),this.teamsData=await Af(Sc,this.eventStore.eventId);const{data:t,error:e}=await Ki.from(Uh).select("*").eq("event_id",this.eventStore.eventId);let i={};if(e)console.log(e);else for(var s of t)i[s.team_number]=String(s.team_number)+" - "+String(s.name);this.teamFilters=[],Object.keys(i).forEach(n=>{let r=String(n);Object.keys(i).includes(n)&&(r=i[n]),this.teamFilters.push({key:n,text:r})}),this.pitData=await r_(Vh,this.eventStore.eventId),this.teamsLoaded=!0,this.getRobotPhoto()},async getRobotPhoto(){const t=this.getTeamNumber();if(t<0){this.teamPhotoAvailable=!1,this.teamPhotoLoaded=!0;return}const{data:e,error:i}=await Ki.from(sg).select("*").eq("team_number",t);if(i){console.log(i),this.teamPhotoLoaded=!0,this.teamPhotoAvailable=!1;return}else if(e.length==0){this.teamPhotoLoaded=!0,this.teamPhotoAvailable=!1;return}this.teamPhotoUrl=e[0].photo_url,this.teamPhotoAvailable=!0,this.teamPhotoLoaded=!0},getTeamNumber(){return this.currentTeamIndex>=this.teamFilters.length||this.teamFilters.length==0?-1:this.teamFilters[this.currentTeamIndex].key},setTeam(t){this.currentTeamIndex=t,this.getRobotPhoto()},getEventStats(){return{rankings:this.teamsData.rankings,distributions:this.teamsData.distributions}},getTeamRadar(t){if(this.teamFilters.length==0)return{};const e=this.teamFilters[this.currentTeamIndex].key,i=this.teamsData[e];return t=="likert"?o_(i,this.getEventStats()):{}},chooseFiles(){this.$refs.file.click()},async uploadImage(){let t=this.$refs.file;if(t.files.length>0&&t.files[0]){let e=t.files[0];const i=this.getTeamNumber();this.teamPhotoUploading=!0;const s=await JO(e,ng,String(i)+"_photo");if(this.teamPhotoUploading=!1,s){const n={team_number:Number(i),photo_url:"https://"+jy+".supabase.co/storage/v1/object/public/"+ng+"/"+s};XO(n,sg),this.teamPhotoLoaded=!1,this.teamPhotoUrl="",this.getRobotPhoto()}}}},computed:{isDataAvailable(){return this.teamFilters.length>0},isRobotPhotoAvailable(){return this.teamPhotoAvailable},getRobotPhotoUrl(){return this.teamPhotoLoaded?this.teamPhotoUrl+"?"+ +new Date().getTime():""},getCurrentTeam(){return this.currentTeamIndex>=this.teamFilters.length||this.teamFilters.length==0?{}:this.teamFilters[this.currentTeamIndex]},getTeamMatches(){if(this.teamFilters.length==0)return{};const t=this.teamFilters[this.currentTeamIndex].key,e=this.teamsData[t];if(!e)return{};let i={};for(var s=0;s{o!="matchNumber"&&(n[o]=e.match_data[o][s])});const r=e.match_data.matchNumber[s];i[r]=n}return i},teamHighlights(){if(this.teamFilters.length==0)return{};const t=this.teamFilters[this.currentTeamIndex].key,e=this.teamsData[t];return HI(e,t,this.getEventStats())},getTeamReef(){if(this.teamFilters.length==0)return{};const t=this.teamFilters[this.currentTeamIndex].key,e=this.teamsData[t];return WI(e)},getTeamStart(){if(this.teamFilters.length==0)return{};const t=this.teamFilters[this.currentTeamIndex].key,e=this.teamsData[t];if(!e)return{};let i={};for(var s=0;s(q(),G("div",y5,[i[12]||(i[12]=X("h1",null,"Team Analysis",-1)),e.teamsLoaded&&e.isDataAvailable?(q(),G("div",_5,[oe(ls,{choices:e.teamFilters,modelValue:e.currentTeamIndex,"onUpdate:modelValue":[i[0]||(i[0]=s=>e.currentTeamIndex=s),e.setTeam]},null,8,["choices","modelValue","onUpdate:modelValue"]),X("div",null,[X("div",x5,[X("input",{ref:"file",type:"file",onChange:i[1]||(i[1]=(...s)=>e.uploadImage&&e.uploadImage(...s)),hidden:""},null,544),e.isRobotPhotoAvailable?(q(),G("div",w5,[X("img",{src:e.getRobotPhotoUrl,width:"300",height:"400"},null,8,k5),e.teamPhotoUploading?(q(),G("md-filled-button",{key:1,onClick:i[3]||(i[3]=(...s)=>e.chooseFiles&&e.chooseFiles(...s)),disabled:""},"Uploading...")):(q(),G("md-filled-button",{key:0,onClick:i[2]||(i[2]=(...s)=>e.chooseFiles&&e.chooseFiles(...s))},"Upload a Different Image"))])):(q(),G("div",S5,[e.teamPhotoUploading?(q(),G("md-filled-button",{key:1,onClick:i[5]||(i[5]=(...s)=>e.chooseFiles&&e.chooseFiles(...s)),disabled:""},"Uploading...")):(q(),G("md-filled-button",{key:0,onClick:i[4]||(i[4]=(...s)=>e.chooseFiles&&e.chooseFiles(...s))},"Upload Image"))])),X("div",C5,[oe(b5,{stats:e.teamHighlights,"is-vertical":!0},null,8,["stats"])]),X("div",A5,[oe(f5,{data:e.getTeamRadar("likert"),height:e.maxChartHeight},null,8,["data","height"])]),X("div",T5,[i[6]||(i[6]=X("h2",null,"Reef Heatmap",-1)),oe(yh,{data:e.getTeamReef,"graph-filters":e.reefFilters,"max-height-ratio":"0.5"},null,8,["data","graph-filters"])]),X("div",E5,[i[7]||(i[7]=X("h2",null,"Start Position",-1)),oe(ux,{data:e.getTeamStart,column:"count",height:e.maxChartHeight},null,8,["data","height"])])]),X("div",P5,[i[8]||(i[8]=X("h2",null,"Match Analysis",-1)),oe(yh,{data:e.getTeamMatches,"graph-filters":e.matchDataFilters},null,8,["data","graph-filters"])]),X("div",O5,[i[9]||(i[9]=X("h2",null,"Comments",-1)),(q(!0),G(ye,null,st(e.getComments,s=>(q(),G("div",null,[s&&s.text.length>0?(q(),G("div",I5," Match "+fe(s.match)+" ("+fe(s.scoutInfo)+"): "+fe(s.text),1)):qe("",!0)]))),256))]),X("div",M5,[i[10]||(i[10]=X("h2",null,"Pit Scouting Report",-1)),(q(!0),G(ye,null,st(e.getTeamPitReport,(s,n)=>(q(),G("div",null,fe(n)+": "+fe(s),1))),256))])])])):e.teamsLoaded?(q(),G("div",R5,i[11]||(i[11]=[X("h2",null,"No Data Available",-1)]))):qe("",!0)]))}}),D5={class:"main-content"},F5={key:0,class:"graph-tile"},N5={key:1,class:"table-container"},B5={data(){return{eventStore:null,viewMode:null,tableHeaders:[{name:"#",key:"team_number",isDiscrete:!0},{name:"Matches Played",key:"num_matches",isDiscrete:!0},{name:"Avg. Points",key:"mean_matchPoints"},{name:"Avg. Coral Points",key:"mean_coralPoints"},{name:"Avg. Algae Points",key:"mean_algaePoints"},{name:"Avg. Auto Coral Points",key:"mean_coralAutoPoints"},{name:"Avg. Teleop Coral Points",key:"mean_coralTeleopPoints"},{name:"Avg. Teleop Algae Points",key:"mean_algaeTeleopPoints"},{name:"Avg. Barge Points",key:"mean_bargePoints"}],tableData:[],eventData:{},eventDataLoaded:!1,graphFilters:[{text:"Match Points",key1:"match_data",key2:"matchPoints",type:"boxplot"},{text:"Auto Points",key1:"match_data",key2:"autoPoints",type:"boxplot"},{text:"Coral vs. Algae",key1:"mean_coralPoints",key2:"mean_algaePoints",type:"scatter"},{text:"Teleop: Coral vs. Algae",key1:"mean_coralTeleopPoints",key2:"mean_algaeTeleopPoints",type:"scatter"},{text:"Barge Points",key1:"match_data",key2:"bargePoints",type:"boxplot"}]}},methods:{async loadEventData(){await this.eventStore.updateEvent(),this.eventData=await Af(Sc,this.eventStore.eventId),this.tableData=[],Object.keys(this.eventData).forEach(t=>{if(!fm.includes(t)){const e=this.eventData[t],i={};this.tableHeaders.forEach(s=>{i[s.key]=Number(e[s.key]),s.isDiscrete!=!0&&(i[s.key]=i[s.key].toFixed(2))}),this.tableData.push(i)}}),this.eventDataLoaded=!0}},computed:{teamEventData(){return CI(this.eventData,fm)},maxDataPoints(){return this.viewMode.isMobile?6:null}},created(){this.eventStore=tn(),this.viewMode=Un(),this.loadEventData()}},j5=Se({...B5,__name:"EventAnalysisView",setup(t){return(e,i)=>{const s=sp("VTh"),n=sp("VTable");return q(),G("div",D5,[i[0]||(i[0]=X("h1",null,"Event Analysis",-1)),i[1]||(i[1]=X("h2",null,"Graph View",-1)),e.eventDataLoaded?(q(),G("div",F5,[oe(yh,{data:e.teamEventData,graphFilters:e.graphFilters,"max-data-points":e.maxDataPoints},null,8,["data","graphFilters","max-data-points"])])):qe("",!0),i[2]||(i[2]=X("h2",null,"Table View",-1)),e.eventDataLoaded?(q(),G("div",N5,[oe(n,{data:e.tableData},{head:ht(()=>[X("tr",null,[(q(!0),G(ye,null,st(e.tableHeaders,r=>(q(),vt(s,{sortKey:r.key},{default:ht(()=>[Fe(fe(r.name),1)]),_:2},1032,["sortKey"]))),256))])]),body:ht(({rows:r})=>[(q(!0),G(ye,null,st(r,o=>(q(),G("tr",null,[(q(!0),G(ye,null,st(o,a=>(q(),G("td",null,fe(a),1))),256))]))),256))]),_:1},8,["data"])])):qe("",!0)])}}}),z5={class:"main-content"},V5={key:0},U5={class:"data-tile red-alliance"},q5={class:"data-tile red-alliance"},H5={class:"alliance-data-container"},W5={class:"alliance-stat-view"},K5={class:"alliance-col-data"},G5={key:0},Y5={class:"data-tile blue-alliance"},J5={class:"data-tile blue-alliance"},X5={class:"alliance-data-container"},Q5={class:"alliance-stat-view"},Z5={class:"alliance-col-data"},eF={key:0},tF={key:1},iF={data(){return{viewMode:null,eventStore:null,teamsLoaded:!1,teamsData:[{}],pitData:[{}],teamFilters:[],teamIndices:[0,0,0,0,0,0]}},methods:{async loadTeamsData(){await this.eventStore.updateEvent(),this.teamsData=await Af(Sc,this.eventStore.eventId);const{data:t,error:e}=await Ki.from(Uh).select("*").eq("event_id",this.eventStore.eventId);let i={};if(e)console.log(e);else for(var s of t)i[s.team_number]=String(s.team_number)+" - "+String(s.name);this.teamFilters=[],Object.keys(i).forEach(n=>{let r=String(n);Object.keys(i).includes(n)&&(r=i[n]),this.teamFilters.push({key:n,text:r})}),this.pitData=await r_(Vh,this.eventStore.eventId),this.teamsLoaded=!0},setTeam(t,e){this.teamIndices[t]=e},getEventStats(){return{rankings:this.teamsData.rankings,distributions:this.teamsData.distributions}},getTeamRadar(t){if(this.teamFilters.length==0)return{};const e=this.teamFilters[this.currentTeamIndex].key,i=this.teamsData[e];return t=="likert"?o_(i,this.getEventStats()):{}},allianceHighlights(t){let e=[],i=[];for(var s=0;s0}},created(){this.viewMode=Un(),this.eventStore=tn(),this.loadTeamsData()}},sF=Se({...iF,__name:"MatchPreviewView",setup(t){return(e,i)=>(q(),G("div",z5,[i[21]||(i[21]=X("h1",null,"Match Preview",-1)),e.teamsLoaded&&e.isDataAvailable?(q(),G("div",V5,[i[18]||(i[18]=X("h2",null,"Red Alliance",-1)),X("div",U5,[i[12]||(i[12]=Fe(" Red 1: ",-1)),oe(ls,{choices:e.teamFilters,modelValue:e.teamIndices[0],"onUpdate:modelValue":[i[0]||(i[0]=s=>e.teamIndices[0]=s),i[1]||(i[1]=s=>e.setTeam(0,s))]},null,8,["choices","modelValue"]),i[13]||(i[13]=Fe(" Red 2: ",-1)),oe(ls,{choices:e.teamFilters,modelValue:e.teamIndices[1],"onUpdate:modelValue":[i[2]||(i[2]=s=>e.teamIndices[1]=s),i[3]||(i[3]=s=>e.setTeam(1,s))]},null,8,["choices","modelValue"]),i[14]||(i[14]=Fe(" Red 3: ",-1)),oe(ls,{choices:e.teamFilters,modelValue:e.teamIndices[2],"onUpdate:modelValue":[i[4]||(i[4]=s=>e.teamIndices[2]=s),i[5]||(i[5]=s=>e.setTeam(2,s))]},null,8,["choices","modelValue"])]),X("div",q5,[X("div",null,[(q(!0),G(ye,null,st(e.allianceHighlights([0,1,2]),(s,n)=>(q(),G("div",H5,[X("h3",null,fe(n),1),X("div",W5,[(q(!0),G(ye,null,st(e.getTeamNumbers([0,1,2]),(r,o)=>(q(),G("div",K5,[X("u",null,fe(r),1),Fe(" "+fe(s.value[o].toFixed(2))+" ",1),s.rank[o]>0?(q(),G("div",G5,[X("span",{style:ri(Re(sh)(s.normalized[o]))},fe(Re(ih)(s.rank[o])),5)])):qe("",!0)]))),256))])]))),256))])]),i[19]||(i[19]=X("h2",null,"Blue Alliance",-1)),X("div",Y5,[i[15]||(i[15]=Fe(" Blue 1: ",-1)),oe(ls,{choices:e.teamFilters,modelValue:e.teamIndices[3],"onUpdate:modelValue":[i[6]||(i[6]=s=>e.teamIndices[3]=s),i[7]||(i[7]=s=>e.setTeam(3,s))]},null,8,["choices","modelValue"]),i[16]||(i[16]=Fe(" Blue 2: ",-1)),oe(ls,{choices:e.teamFilters,modelValue:e.teamIndices[4],"onUpdate:modelValue":[i[8]||(i[8]=s=>e.teamIndices[4]=s),i[9]||(i[9]=s=>e.setTeam(4,s))]},null,8,["choices","modelValue"]),i[17]||(i[17]=Fe(" Blue 3: ",-1)),oe(ls,{choices:e.teamFilters,modelValue:e.teamIndices[5],"onUpdate:modelValue":[i[10]||(i[10]=s=>e.teamIndices[5]=s),i[11]||(i[11]=s=>e.setTeam(5,s))]},null,8,["choices","modelValue"])]),X("div",J5,[X("div",null,[(q(!0),G(ye,null,st(e.allianceHighlights([3,4,5]),(s,n)=>(q(),G("div",X5,[X("h3",null,fe(n),1),X("div",Q5,[(q(!0),G(ye,null,st(e.getTeamNumbers([3,4,5]),(r,o)=>(q(),G("div",Z5,[X("u",null,fe(r),1),Fe(" "+fe(s.value[o].toFixed(2))+" ",1),s.rank[o]>0?(q(),G("div",eF,[X("span",{style:ri(Re(sh)(s.normalized[o]))},fe(Re(ih)(s.rank[o])),5)])):qe("",!0)]))),256))])]))),256))])])])):e.teamsLoaded?(q(),G("div",tF,i[20]||(i[20]=[X("h2",null,"No Data Available",-1)]))):qe("",!0)]))}}),nF=cS({history:jk(),routes:[{path:"/",name:"Home",component:dm},{path:"/scout",name:"Match Scouting",component:dm},{path:"/pit-scout",name:"Pit Scouting",component:_I},{path:"/team",name:"Team Analysis",component:L5},{path:"/event",name:"Event Analysis",component:j5},{path:"/match",name:"Match Preview",component:sF}]}),Yc=W1(yT);Yc.use(ck);Yc.use(Y1());Yc.use(nF);Yc.mount("#app"); diff --git a/dist/assets/index-Brf5E4PI.css b/dist/assets/index-Brf5E4PI.css new file mode 100644 index 0000000..117cf67 --- /dev/null +++ b/dist/assets/index-Brf5E4PI.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/icon?family=Material+Symbols+Outlined";[theme=dark]{--background-color: #0d1117;--primary-text-color: #FFF;--primary-color: orange;--accent-color: #009879;--header-color: #66000a;--header-hover-color: #80030f;--header-text-color: #FFF;--tile-background-color: #272727;--tile-shadow-color: rgba(0, 0, 0, .15);--table-header-background-color: var(--accent-color);--table-header-text-color: #FFF;--table-body-text-color: var(--primary-text-color);--table-odd-row-background: #302f2f;--table-even-row-background: #202020;--table-row-border-color: #414141;--table-shadow-color: rgba(0, 0, 0, .15);--comment-color: #c3c3c3;--submit-button-color: green;--submit-button-text-color: #FFF;--reset-button-color: rgb(156, 0, 0);--reset-button-text-color: #FFF;--md-sys-color-primary: rgb(172, 96, 3);--md-sys-color-secondary-container: #e69533;--md-sys-color-on-error-container: #ff0000;--md-sys-color-on-surface: var(--primary-text-color);--md-sys-color-surface-container: #333;--md-sys-color-on-surface-container: #FFF;--md-sys-color-primary-container: #383838;--md-sys-color-on-primary-container: #FFF;--md-sys-color-surface-container-low: #383737;--md-sys-color-on-surface-container-low: #FFF;--md-sys-color-on-surface-variant: #999;--md-sys-color-outline: #888}[theme=light]{--background-color: #dfdfdf;--primary-text-color: #000;--primary-color: orange;--accent-color: #009879;--header-color: #66000a;--header-hover-color: #80030f;--header-text-color: #FFF;--tile-background-color: #FFF;--tile-shadow-color: rgba(0, 0, 0, .15);--table-header-background-color: var(--accent-color);--table-header-text-color: #FFF;--table-body-text-color: var(--primary-text-color);--table-odd-row-background: #FFF;--table-even-row-background: #f3f3f3;--table-row-border-color: #dddddd;--table-shadow-color: rgba(0, 0, 0, .15);--comment-color: #c3c3c3;--submit-button-color: green;--submit-button-text-color: #FFF;--reset-button-color: rgb(156, 0, 0);--reset-button-text-color: #FFF;--md-sys-color-primary: rgb(172, 96, 3);--md-sys-color-secondary-container: #ffcd90;--md-sys-color-error: #ff0000;--md-sys-color-on-error-container: #d00202;--md-sys-color-on-surface: var(--primary-text-color);--md-sys-color-surface-container: #f9efe3;--md-sys-color-primary-container: #f7f2fa;--md-sys-color-outline: #666}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}:root{--md-outlined-select-text-field-outline-width: 2px}body{min-height:100vh;color:var(--primary-text-color);background:var(--background-color);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}div.main-content{display:block;margin-top:70px;padding:2rem;flex:1 1 auto;width:100%}table{border-collapse:collapse;font-size:.9em;font-family:sans-serif;box-shadow:0 0 20px var(--table-shadow-color);text-align:center;margin:auto}thead tr{background-color:var(--table-header-background-color);color:var(--table-header-text-color);text-align:center}th,td{padding:12px 15px}tbody tr{border-bottom:thin solid var(--table-row-border-color)}tbody tr:nth-of-type(odd){background-color:var(--table-odd-row-background)}tbody tr:nth-of-type(2n){background-color:var(--table-even-row-background)}tbody tr:last-of-type{border-bottom:thick solid var(--accent-color)}.data-tile{display:flex;flex-direction:column;justify-content:safe center;align-items:safe center;padding:20px;background-color:var(--tile-background-color);border-radius:10px;margin:15px;overflow:scroll;box-shadow:inset 0 0 .5px 1px #ffffff1a,0 0 0 1px #14151a13,0 .3px .4px #14151a05,0 .9px 1.5px #14151a0b,0 3.5px 6px #14151a17}.scout-form-tile{display:flex;flex-direction:column;justify-content:safe center;align-items:safe center;padding:20px 5px;background-color:var(--tile-background-color);border-radius:10px;overflow:scroll;box-shadow:inset 0 0 .5px 1px #ffffff1a,0 0 0 1px #14151a13,0 .3px .4px #14151a05,0 .9px 1.5px #14151a0b,0 3.5px 6px #14151a17}.graph-tile{display:flex;flex-direction:column;justify-content:safe center;align-items:safe center;padding:20px;background-color:var(--tile-background-color);border-radius:10px;margin:15px;overflow:scroll;box-shadow:inset 0 0 .5px 1px #ffffff1a,0 0 0 1px #14151a13,0 .3px .4px #14151a05,0 .9px 1.5px #14151a0b,0 3.5px 6px #14151a17}.analysis-row-tile{display:flex;flex-direction:row;flex-wrap:wrap;align-items:safe center;justify-content:safe center}.comment-tile{display:flex;flex-direction:column;justify-content:safe center;align-items:safe center;padding:20px;border-color:var(--comment-color);border-width:2px;border-style:solid;border-radius:10px;margin:15px;overflow:scroll}.image-tile,.file-upload-tile{display:flex;flex-direction:column;justify-content:safe center;align-items:safe center;padding:20px;background-color:var(--tile-background-color);border-radius:10px;margin:15px;overflow:scroll;box-shadow:inset 0 0 .5px 1px #ffffff1a,0 0 0 1px #14151a13,0 .3px .4px #14151a05,0 .9px 1.5px #14151a0b,0 3.5px 6px #14151a17}.submit-button{--md-sys-color-primary: var(--submit-button-color);--md-sys-color-on-primary: var(--submit-button-text-color)}.reset-button{--md-sys-color-primary: var(--reset-button-color);--md-sys-color-on-primary: var(--reset-button-text-color)}#app{width:100%;height:100%;margin:0 auto;font-weight:400;position:fixed;background-color:var(--background-color);color:var(--primary-text-color);display:flex;flex-direction:column;overflow:auto;scroll-behavior:smooth}@media (min-width: 1024px){body{display:flex;place-items:center}}.hamburger-container[data-v-c57a3aaf]{display:block;min-height:65px;width:100%}.hamburger-button-container[data-v-c57a3aaf]{height:65px;width:65px;position:relative;float:right}.hamburger-button[data-v-c57a3aaf]{display:flex;align-items:center;justify-content:center;color:#fff;height:100%;width:100%}.hamburger-button[data-v-c57a3aaf]:hover{background-color:var(--bbq-header-hover-color);cursor:pointer}.hamburger-menu-container[data-v-c57a3aaf]{transition:background-color .5s ease;background-color:var(--bbq-header-color);display:inline-block;height:fit-content;width:100%}.slide-enter-active[data-v-c57a3aaf],.slide-leave-active[data-v-c57a3aaf]{transition:all .3s ease-out}.slide-enter-from[data-v-c57a3aaf],.slide-leave-to[data-v-c57a3aaf]{opacity:0}.menu-title[data-v-c57a3aaf]{position:absolute;display:flex;align-items:center;color:#fff;padding:20px}div.nav[data-v-4db8394e]{background-color:var(--header-color);color:var(--primary-text-color);top:0;left:0;right:0;z-index:9999;width:100%;height:65px;position:fixed;display:block}a.nav-link[data-v-4db8394e]{transition:color .5s ease;transition:background-color .5s ease;-ms-transition:color .5s ease;-ms-transition:background-color .5s ease;-moz-transition:color .5s ease;-moz-transition:background-color .5s ease;-webkit-transition:color .5s ease;-webkit-transition:background-color .5s ease;position:relative;float:left;display:flex;justify-content:center;align-items:center;font-size:16px;height:100%;text-align:center;margin:0 auto;padding-left:10px;padding-right:10px;text-decoration:none}a.nav-link[data-v-4db8394e]:link,a.nav-link[data-v-4db8394e]:visited{background-color:var(--header-color);color:#fff;border-bottom:var(--header-color) 5px solid}a.nav-link[data-v-4db8394e]:hover,a.nav-link[data-v-4db8394e]:active{background-color:var(--header-hover-color);color:#fff;border-bottom:var(--primary-color) 5px solid}a.nav-link-mobile[data-v-4db8394e]{width:100%;padding:15px}.nav-right[data-v-4db8394e]{display:flex;align-items:center;float:right;position:relative;height:100%;background-color:var(--accent-color);padding:20px}.nav-mobile-right[data-v-4db8394e]{display:flex;align-items:center;float:right;position:relative;height:100%;padding:20px}.nav-text[data-v-4db8394e]{font-size:16px;text-decoration:none;color:#fff}.nav-dark-mode[data-v-4db8394e]{background-color:var(--primary-color);color:var(--primary-text-color);cursor:pointer}.counter-view-container[data-v-01522cba]{display:flex;flex-direction:column;align-items:center;width:fit-content}.counter-container[data-v-01522cba]{display:flex;align-items:center}span.count-number[data-v-01522cba]{margin:10px}md-elevated-button[data-v-01522cba]{font-size:large;font-weight:700}.radio-group-container[data-v-cddfcf15]{display:flex;flex-direction:column}.radio-input-container[data-v-cddfcf15]{display:flex;align-items:center;flex-direction:row}.radio-error[data-v-cddfcf15]{border:3px solid red}span[data-v-cddfcf15]{margin:10px}table[data-v-cddfcf15]{border-collapse:collapse;box-shadow:none}td[data-v-cddfcf15]{padding:8px 10px}div[data-v-c5a939a8]{display:flex;align-items:center;flex-direction:column}.label-container[data-v-c5a939a8]{margin:15px}table[data-v-c5a939a8]{border-collapse:collapse;box-shadow:none}td[data-v-c5a939a8]{padding:8px 10px}div[data-v-e5a2687e]{display:flex;align-items:center;flex-direction:column}.label-container[data-v-e5a2687e]{margin:15px}table[data-v-e5a2687e]{border-collapse:collapse;box-shadow:none;display:block}td.td-counters[data-v-e5a2687e]{padding:8px 0;width:fit-content}th.th-counters[data-v-e5a2687e]{padding:8px 0;width:fit-content;text-align:center}.input-container[data-v-29806a1d]{display:flex;align-items:center;flex-direction:column}.data-entry-container[data-v-29806a1d]{display:flex;align-items:center;flex-direction:row}.label-container[data-v-29806a1d]{display:flex;align-items:center}.switch[data-v-29806a1d]{margin-left:10px;margin-right:10px}.dropdown[data-v-29806a1d]{display:flex;flex-direction:column;align-items:safe center;justify-content:safe center}div[data-v-2c107487]{margin-top:15px;display:flex;flex-direction:column;align-items:safe center;justify-content:safe center;width:100%}.button-container[data-v-25b5c013]{display:flex;justify-content:safe center;align-items:safe center;width:100%}md-filled-button[data-v-25b5c013]{margin:10px}p[data-v-25b5c013]{overflow-wrap:anywhere}.error-tile[data-v-25b5c013]{background-color:red;color:#fff}.success-tile[data-v-25b5c013]{background-color:green;color:#fff}.notification-tile[data-v-25b5c013]{background-color:#5858e8;color:#fff}.button-container[data-v-f9fe1c08]{display:flex;justify-content:safe center;align-items:safe center;width:100%}md-filled-button[data-v-f9fe1c08]{margin:10px}p[data-v-f9fe1c08]{overflow-wrap:anywhere}.error-tile[data-v-f9fe1c08]{background-color:red;color:#fff}.success-tile[data-v-f9fe1c08]{background-color:green;color:#fff}.notification-tile[data-v-f9fe1c08]{background-color:#5858e8;color:#fff}.graph-container[data-v-d4e62ffd]{display:flex;width:100%;height:100%;flex:1 1 auto;justify-content:center}.stat-highlight-view-container[data-v-4467de61]{display:flex;flex-direction:row;align-items:center;text-align:center;justify-content:safe center;flex-wrap:wrap}.stat-highlight-view-container-vertical[data-v-4467de61]{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:safe center;flex-wrap:wrap}.stat-highlight-container[data-v-4467de61]{display:flex;align-items:center;flex-direction:column;margin:15px}.stat-highlight-value[data-v-4467de61]{margin:10px}.radar-graph-container{min-width:30vw}.match-progression-container{min-height:60vh}.quarter-page-width{min-width:25vw}.half-page-width{min-width:50vw}.three-quarter-page-width{min-width:75vw}.table-container{display:flex;overflow:scroll;justify-content:safe center;margin:auto}.alliance-stat-view{display:flex;flex-direction:row}.alliance-data-container{display:flex;flex-direction:column}.alliance-col-data{display:flex;flex-direction:column;padding:20px}.red-alliance{border:2px solid red}.blue-alliance{border:2px solid blue} diff --git a/dist/favicon.ico b/dist/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..46ccddcd6dbf95465befc2bad2b67b8c42cf2610 GIT binary patch literal 194282 zcmeI5_rDZHy2jc2N8Hc-?cTfYuC5#1oOg9iYh2?st#Q|!*N6#45lIRN2!couNh$)8 zksw)6kRXyo@`;?xNgVI@SVNtfPSZ2hGiQ4GW!tkg)o)e3^}J74S9q(sM~`puzm}FB z{Qa*UTbll($A9+d(c={UBdSN;w^Teq&wpRbKS3ZF2=qusHKmqM2|o4kQHu;d)Xm zE%g+x3kQ;dfN(u2mX>-7*M$Q~K|r{k6iZ7zh3mqBq#z(%Pl~0bp2BtEKvED8t|!IP zQcvN!a3CoN2-lNhX{o1hT{w^w1cd8Jv9#1vxGo$>3If9Qq*z+&DO?v0Bn1KCdQvPc z^%SlP2a%xJgARt^%ilwEV!gb+5QVbsASX$~STo(=`1p(oDQYx!dJ5Nt14%(ZxSkYCOFf0_!hxh9AY4z1rKO(2b>To#5D=~>#nMtw z;ks}jDF_JHlVWM9r*K_3kQ4-j>q)V+)Kj=F97qZR!u6zBTIwlW7Y-x^0pWU5EG_jE zt_uf}fWn$q;CJJzA%_gA-@6hv zeD>>_;_kpzzZ26Q6DNDP#K5k_i*GDc*QO#tA4)Y8sx@+d?TaLh`uU4T3?}|Ua zB`@@SBWTJ8-+dC#4Rq+(3-vCPIkX-l7S>?~)jr&^Z z3%&QrG55t|po+d=aHSiiQjLid*XK^#?ADCRDuX`ue{Os9s zb!+XOmVR?nJm3LvBtP1C{I@T3N`9~B5#Iiq>jUT4*EV(N>#NH4pFh_rMz-{@5hncm zJ{6A6H<`b7;srvXW?5ml-q0MBvzc4_@vrHf^El~i-sWai-|I&^yK`p35(~$M>wC7B zpZ(pJg30Z;%Nt<(rbDK|l!5*JUiW%6w77L#s=0-`W?B_~c4nPQzU@$(=DJ^o@2qdy zdazC1eQsu*J2%*`?%p>3sChRG*MoD`xlQ}H>9k&{C)uIrcOE;kYFFBLK&L9nKy0}F z=nYdGR1Wj=?n}p;W>d!gRqygUCmhumon4MU_N{1c>$q=Hs>`wa#K_Xjf$^Nm zWKTuA=K7!dR$M)@T3_c5s#G#V7BwKI!n{4qd{mf*R^6pg^KKZf2j{GETfeuJeiTLU zhB^P0N_|~8q>5UjzgcL>hvUKZ{d=m;_@C5#OBjlqGMhi%udS$vzn_5>@WR)lKHD zFkBDFS!dOEPO3k~gp7_%Y#<(7A3u17N#Cr(qxycRt*eMdXZoS3wfdst{^O@pvw@or zw9*mRW6&QwSw<6h#qiFHk)=w`-#1rucI9=ue)hmh-TNoNv!o4D&2qa;Q9?` zj5O(+Rrrcu57p*7@0CjW6^@H$p84;mXVfugq9vKSW^RPmmmUc6N`?{SBBLSPTiMRE zj3YOGLf=bXtzym9&#cxyi{2vS~c`Hf&nfGgE+1ay9<-?eAE@oCYJY5cEi0YcS%8TerY~5RQG-`x5LSac zTmu4tX3`xooW=rVxJ6%_l^t``Xol(NBco#66Q+~aG^tzotLcds{23i3l8F*i>$}Vy znMF9lZ+z6qSVBcI7I$RDPkeaPU4Ytgq>TzXa$u-^@zBmeOPjAJo;%n4#w3gD;Qp^S zQzm!VhM$V-xE2OXiNF}vR{0kp*Li-_ijP|*6%)*L_@u;enGDHwo&>+LR6JZSt2?e7 zGnpHu2*;&nU{QN#SzB;!SG`tUB;J(C;`*QkskVv+n;AyEbgBZhi+H@~6?Nt=Zhj-R zyo#`HS6M26bc49G3>98v_aA zI+Xfpug+I34Hc7jo}iCfmTDtev~O+inu0`_B~|50Kqh3Rx$emWd>HX?B$eX2rwk7O z%`h^W>$i+e^NMk3s4_WcP$iS%`l15^U)8N;U$p3Uor%cmhU4bN%%c*c52LwGeI2Ek zKfgGVa$z7L?)Vg~F5TTyJtfWc5lgyeLdl1|jcPb}KbZ5mW)X!9Cy493ZI!WE+3|z; z?ujXPmm{@l8-kSlBhymt99ac(oq}-RB~<{|l`>1WH*2o*Eb%gNU%lS%Y!{Wh-(NZv zcs^>b`-u^6a{VXIc$YZyginE91J+&!EG?_d>5eN{{J75D7e7e7NLLqulUahe&Z>$s z65cP$NbbMdr(7@bm@?XJh6Yb_oiA(p-1X!`v`B3`30%o^_<~oh2`AFz+(>L8AMH+X1T{~v-m}#y*I<1zldFhE4vekVU1av88 z!0f-_9jS`Omw_fg4OnsYL2dQVkL&cHlxGor9(MFP5Gef51aTd3pP7;JKIh%dz>8ML zym01bym;yfmn>Sc7iQNf0U9&if|3bYX|B`gnwhY#RCQ-r^G8f^ofx__T8!zuYeuD> z2XfY2hd^4!47~qoXA7zb$M|ph`X+tR028BbvC%|x9sZHT{AbQNYObT6S&$B!5AeGi zQkz!E;fWItq00MB<*&JZ<%lYs0}q?_DPq8CYSLZdWO2Q|xr268F~j{A`eFt)Sm?2r zTZZIxixJaYcgv`l55C!^t+?(dL(|S&zUI20m^tU@Cqu`HslAX~UwL94#xFM}i!>v7 z1@RD?l6Xy;(}1=J=e2CsPivaAX!`oR*dxgtU5ihs7*pZaUB_`aM`db$DB7k zADVe>N9#PJcA-T@TJ75ig{7tS? z5!kHd89+Ncf!WyVR*4wigsej`jjN#O_P>eaxU4s&U=2-8`i)KQXW8%~S8V=*@qg zJNlYG4llinLwnd0JmUGq9N@!YRozACfO0c%oins%Px|zsYbTxay{;3sOz&_Bn+RO; zvsZ@pTCioq{n|hLCA)A`sdfu4j zbGPr=UIE1~IqemjtV$;BpvUKiIb^e7y!Yk$sJ=@|2K2mE7KXL9}NBWVI;!NJl-MaOlXhTAT9!?ISTl>EXU4cfQ6@}v1*$by5VS&NbD(tv5B z!tXU7?)qw1<$0$L(2)|z4S{0hI?Wg#k;|<>eVgPDMqf-jp=o# z%r^Al6l}Wb6NcpeJ&$goRM8e%q+G8&Qh)JJUoKkI3ZoeQ%w-2_WpOkrw2PGMH0@hA z97wX6*dD>yk8Mzf8z@x&J)~H$smdOIjGH)%N{dva91_;E1>r{Bp_VP=Ao)`be zyDk~W)Sii{JN)Gr6}($=zW(pGue$RLh~emjsGe;cX(|po&p-_*I^?a!`sS#db8bEV zjgW=1b3A~`8E?gg>%hSpQ=ZNg0B(JniYM;8STaHxAdu}hA6G2c5s+K>TN7VhX@1|- zvuZYxoDX&8NqxiX<0r{kH(}IB5Z8g@@cx=>{*agLdH?#`7|smxL!2oQKRbnq&z9>0 z9{nIpwgEEq&8CfB>sOr!%r9bUik$gnj`!BIV9OnI#IId$YhFP5IWXT546<$40$w|XkWmGbuTn87r*POxW z37lml(piv_^!W?vr)VEJu@=ukX)_jLDzC<-fF=K59OeVLUBd@3bAx z5*!j_(krSkbl>*r!IgH4JK?#`l9r9;`1a(F${BOEe8E;%Wbk4TuBS}EEE`7!*$~Aq z?O7-FwfxLMc&_8}<)=oNc)X)BGBSSx_?CrH(oZI1?@PGeWxKZ4_NQ+v#?1}kxz2#t zj|ySp`9w??90dmJR5Urwz|_JREIG=hFjDI12Tfmnxk-8|7Jl4OUjT?tu@p z8LvD!&j$Bs(}w3dmErIso6>Q9_CO^6Q7rP?s2v6(;kvgOp*x?0vq3+?v|$XXt8wFB zN7@uUVdzSoRUrefKD*FHZ4P_OsI73_7b56B?72lY28b$cR$R9{iTCQ?4=enqJ?VN` zo^kU0z3=-P^280{`Uxa_{(tPCK=X|o_IvXr zAEz zWeUV~l)&G$TTTGZmg`eStqJ)Q1&eW-676m<`Z?ca+3W60t=x~b@>52x38O|-T;H(b z%iPZRe)zh#5AIFd*bqi-Q>JiSr__b-ZQ;wV8s)+SvgP`reMh5uCh-g3w055fw|$t` z1&ti*R*|5GIsCTyI#i8>>zoK{=0qtoJ&R%otM zHYZ3$QfCLH{C?)Z^{9@BF;!ys$x9E-rh~-Gjd_ptAAK3-q9L3!Wg~Nfcui*<$(hB4 z3@`oQbCV4LVN0&lZ}EFuvZtO8-e)zOL-@r9XO$hw;IHPWPB(BJ4OTCo|wx>1dFwG|#s%=ahth+gNfvpe_$x_coMRw`@04jR9irTXbpot};_+4o>_1>>jS8 z4IeVLpBQ%6-yM?!*HMq&f;+1ci&^l_W&@{4Ph$=Zyn@1WFG2Tn9VmBf$=4C@)ZB*aHC0W_pJdCVB9~_w zGEDEbz+6|LaljVm5AWSsi4y@^-5Gl324?Yc9a#77sIWZs!4DK0uA>-Tz{0P8`PIcf zo{7IOo?Z^3^E2P=x_#Bm9EzIjpoyD={TaDtg;m&+>nO%rojco@#^7b`=5d%9;d&U9 zvXJ4_3d@tX+!VCuIzxNQJsfVWx+R7s8?!^4g<+&!&kC%N!bc9&FqDpv3iez_b9^xJ zbO26-H4V;++p{mR!;A?M1k`p z!c#eA}fOmss#c?-^cB3~=T9zsmEP4F64)gE|vixX-I@mfSiNlLALwf6ZwjV0W zpY3TQ&@g;;!bpBNYg_&l);aTt@=*1Er`D&w zzLv4Cwo@?#_)_+}V?U0h-{N=xn0w{ar2N&9S0$%TU~W||Re1KU_i`&Pu3V?)xgGJ& z8sXLr2OI{A{3l16&#atZc+2=-d98^8O zc2*SrFk#HVOhUF>_3hkva7x70 zBt!klAk<@D7!7l_nD9bl+F;kV)Tf8s)r<|-QJn=HeECB{0P_M|ncYA{62tpuf#_K^4uMfcGpoy|2($I(rDw$`JR=Bk z;<|!k*_`dczK6VI*;N$MYLdsDszf5!3Z#X8uEH_e z=svu6j;Hd|{L=}vSvL@_M`=sRD+~fqHrwS0T<+{=RE6tdtRpfJBf#K_-MyqWF$dy)<)+^pQiF_cIWHk2m$pf*sY@G`nZ*8 zTyH<|G}RsJpfxgW91zYo*OzQhd*%Z)(YF-Wu`zEX9Z6u|{QA%KxB6WVPpvhDXMEDh z+F-7`Q965IrK2+=T+jTl6`)=BKp>Ne)AjNIjhc(RzSF}q3{hjY&>ssGrhgwYs217 z*VB;w^`_R2n+$8|w(!gWm6{E7Mh7jZH~aCv>Sli?hnN#w?LNXBS8_$o^u$6q$AYYarC$Yo^ecvUl|qTS_9o6UHr24C1)}1*--F?ZS8r|J9%lT$Dr0IUO}hwwSV zJ-@Je=Cz7+piN2loR9f1e6Qz`Bef?6={{rAon>w2jLpQ=O_aqHr&-FXU8yM-;kq`2 zZ=jG|zkYP;!(&J(Dmxp5+LYk8s_@(>v_oI^F1V24%SDHIkR35961RUa2+= zftlY-3_BX99Y^xG_E9jdgNb9tiKPP#x=CDc*nT*z%5JXnt~2RtE>SsJ3MOhO#T1r4 zjD|fe;NW`rF`0wwerrjLO)nnW)y4e#(9SL~yYcI=Iez&wMtXomuB7W#rPd44IHId-l?1!Iv!VTC-wL(wMg@Z#ACTC2VG7G+ZM~iZ0Q6MYb##Ckn1JNUDL@OWKucSP*$FX|-~V>nC{`!zJ16Z0VkXJ!yp~p=y8^j$eanHg z`2iC$zi`f6XKG^Gp{_9*{mxs*rA;~el}LQPxo+bR+|g*{^uC1Cc)v>G}inbPh zot6NFvrU3LZ^(rF6Rs!3&{9piK8)Ze2*d~hY1d<9EK$`80pYq8e3Cdu2ng3>WGqqD z3IXA|6?~F7MhFPkV`MB*)d~UOx)pqqI7SEv*JETXQPm0o;kp%kk~l^P2-jm|EK$`8 z0pYq8e3Cdu2ng3>WGqqD3IXA|6?~F7MhFPkV`MB*)d~UOx)pqqI7SEv*JETXQPm0o z;kp%kk~l^P2-jm|EK$`80pYq8e3Cdu2ng3>WGqqD3IXA|6?~F7MhFPkV`MB*)d~UO zx)pqqI7SEv*JETXQPm0o;kp%kk~l^P2-jm|EK$`80pYq8e3Cdu2ng3>WGqqD3IXA| z6?~F7MhFPkV`MB*)d~UOx)pqqI7SEv*JETXQPm0o;kp%kk~l^P2-jm|EK$`80pYq8 ze3Cdu2ng3>WGqqD3IXA|6?~F7MhFPkV`MB*)d~UOx)pqqI7SEv*JETXQPm0o;kp%k zk~l^P2-jm|EK$`80pYq8e3Cdu2ng3>WGqqD3IXA|6?~F7MhFPkV`MB*)d~UOx)pqq zI7SEv*JETXQPm0o;kp%kk~l^P2-jm|EK$`80pYq8e3Cdu2ng3>WGqqD3IXA|6?~F7 zMhFPkV`MB*)d~UOx)pqqI7SEv*JETXQPm0o;kp%kk~l^P2-jm|EK$`80pYq8e3Cdu z2ng3>WGqqD3IXA|6?~F7MhFPkV`MB*)d~UOx)pqqI7SEv*JETXQPm0o;kp%kk~l^P z2-jm|EK$`8fgbWt5D)|e0YN|z5CjAPK|l}?1Ox#=KoAfF1OY)n5D)|e0YN|z5CjAP SK|l}?1Ox#=KoCd*0{;&@-0{o+ literal 0 HcmV?d00001 diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..d271c92 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,22 @@ + + + + + + + + CopperScout + + + + + + + + + + +
    + + + \ No newline at end of file diff --git a/src/views/HeadscoutReviewView.vue b/src/views/HeadscoutReviewView.vue new file mode 100644 index 0000000..79f6787 --- /dev/null +++ b/src/views/HeadscoutReviewView.vue @@ -0,0 +1,226 @@ + + + + + + + From 864359618a0a5c007068f2cfacc88e7f962a3cd3 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 13 Aug 2025 19:11:05 -0400 Subject: [PATCH 2/3] add blank headscout review tab --- .../{index-Bmbs5Xef.js => index-CgzK9Wqc.js} | 370 +++++++++--------- ...{index-Brf5E4PI.css => index-Pa8Yw8xE.css} | 2 +- dist/index.html | 4 +- src/components/NavBar.vue | 2 + src/router/router.ts | 6 + src/views/HeadscoutReviewView.vue | 226 ----------- 6 files changed, 196 insertions(+), 414 deletions(-) rename dist/assets/{index-Bmbs5Xef.js => index-CgzK9Wqc.js} (66%) rename dist/assets/{index-Brf5E4PI.css => index-Pa8Yw8xE.css} (94%) diff --git a/dist/assets/index-Bmbs5Xef.js b/dist/assets/index-CgzK9Wqc.js similarity index 66% rename from dist/assets/index-Bmbs5Xef.js rename to dist/assets/index-CgzK9Wqc.js index 61b3f62..aaa0ba4 100644 --- a/dist/assets/index-Bmbs5Xef.js +++ b/dist/assets/index-CgzK9Wqc.js @@ -1,37 +1,37 @@ -var _x=Object.defineProperty;var xx=(t,e,i)=>e in t?_x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var ie=(t,e,i)=>xx(t,typeof e!="symbol"?e+"":e,i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function i(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=i(n);fetch(n.href,r)}})();/** +var xx=Object.defineProperty;var wx=(t,e,i)=>e in t?xx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var ie=(t,e,i)=>wx(t,typeof e!="symbol"?e+"":e,i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function i(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=i(n);fetch(n.href,r)}})();/** * @vue/shared v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function _h(t){const e=Object.create(null);for(const i of t.split(","))e[i]=1;return i=>i in e}const Ue={},fr=[],qi=()=>{},wx=()=>!1,dc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),xh=t=>t.startsWith("onUpdate:"),pt=Object.assign,wh=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},kx=Object.prototype.hasOwnProperty,Pe=(t,e)=>kx.call(t,e),de=Array.isArray,pr=t=>uc(t)==="[object Map]",Fv=t=>uc(t)==="[object Set]",ue=t=>typeof t=="function",nt=t=>typeof t=="string",_s=t=>typeof t=="symbol",He=t=>t!==null&&typeof t=="object",Nv=t=>(He(t)||ue(t))&&ue(t.then)&&ue(t.catch),Bv=Object.prototype.toString,uc=t=>Bv.call(t),Sx=t=>uc(t).slice(8,-1),jv=t=>uc(t)==="[object Object]",kh=t=>nt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,fo=_h(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hc=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},Cx=/-(\w)/g,gi=hc(t=>t.replace(Cx,(e,i)=>i?i.toUpperCase():"")),Ax=/\B([A-Z])/g,zn=hc(t=>t.replace(Ax,"-$1").toLowerCase()),fc=hc(t=>t.charAt(0).toUpperCase()+t.slice(1)),Jc=hc(t=>t?`on${fc(t)}`:""),qs=(t,e)=>!Object.is(t,e),Xc=(t,...e)=>{for(let i=0;i{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:i})},Tx=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ex=t=>{const e=nt(t)?Number(t):NaN;return isNaN(e)?t:e};let Qf;const pc=()=>Qf||(Qf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ri(t){if(de(t)){const e={};for(let i=0;i{if(i){const s=i.split(Ox);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function kr(t){let e="";if(nt(t))e=t;else if(de(t))for(let i=0;i!!(t&&t.__v_isRef===!0),fe=t=>nt(t)?t:t==null?"":de(t)||He(t)&&(t.toString===Bv||!ue(t.toString))?Vv(t)?fe(t.value):JSON.stringify(t,Uv,2):String(t),Uv=(t,e)=>Vv(e)?Uv(t,e.value):pr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[s,n],r)=>(i[Qc(s,r)+" =>"]=n,i),{})}:Fv(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>Qc(i))}:_s(e)?Qc(e):He(e)&&!de(e)&&!jv(e)?String(e):e,Qc=(t,e="")=>{var i;return _s(t)?`Symbol(${(i=t.description)!=null?i:e})`:t};/** +**//*! #__NO_SIDE_EFFECTS__ */function kh(t){const e=Object.create(null);for(const i of t.split(","))e[i]=1;return i=>i in e}const qe={},fr=[],Wi=()=>{},kx=()=>!1,fc=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Sh=t=>t.startsWith("onUpdate:"),pt=Object.assign,Ch=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},Sx=Object.prototype.hasOwnProperty,Ie=(t,e)=>Sx.call(t,e),ue=Array.isArray,pr=t=>pc(t)==="[object Map]",Bv=t=>pc(t)==="[object Set]",he=t=>typeof t=="function",nt=t=>typeof t=="string",_s=t=>typeof t=="symbol",He=t=>t!==null&&typeof t=="object",jv=t=>(He(t)||he(t))&&he(t.then)&&he(t.catch),zv=Object.prototype.toString,pc=t=>zv.call(t),Cx=t=>pc(t).slice(8,-1),Vv=t=>pc(t)==="[object Object]",Ah=t=>nt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,fo=kh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gc=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},Ax=/-(\w)/g,vi=gc(t=>t.replace(Ax,(e,i)=>i?i.toUpperCase():"")),Tx=/\B([A-Z])/g,Vn=gc(t=>t.replace(Tx,"-$1").toLowerCase()),mc=gc(t=>t.charAt(0).toUpperCase()+t.slice(1)),td=gc(t=>t?`on${mc(t)}`:""),Hs=(t,e)=>!Object.is(t,e),id=(t,...e)=>{for(let i=0;i{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:i})},Ex=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Px=t=>{const e=nt(t)?Number(t):NaN;return isNaN(e)?t:e};let ep;const vc=()=>ep||(ep=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(t){if(ue(t)){const e={};for(let i=0;i{if(i){const s=i.split(Ix);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function kr(t){let e="";if(nt(t))e=t;else if(ue(t))for(let i=0;i!!(t&&t.__v_isRef===!0),de=t=>nt(t)?t:t==null?"":ue(t)||He(t)&&(t.toString===zv||!he(t.toString))?qv(t)?de(t.value):JSON.stringify(t,Hv,2):String(t),Hv=(t,e)=>qv(e)?Hv(t,e.value):pr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[s,n],r)=>(i[sd(s,r)+" =>"]=n,i),{})}:Bv(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>sd(i))}:_s(e)?sd(e):He(e)&&!ue(e)&&!Vv(e)?String(e):e,sd=(t,e="")=>{var i;return _s(t)?`Symbol(${(i=t.description)!=null?i:e})`:t};/** * @vue/reactivity v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let xt;class qv{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xt,!e&&xt&&(this.index=(xt.scopes||(xt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,i;if(this.scopes)for(e=0,i=this.scopes.length;e0&&--this._on===0&&(xt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let i,s;for(i=0,s=this.effects.length;i0)return;if(go){let e=go;for(go=void 0;e;){const i=e.next;e.next=void 0,e.flags&=-9,e=i}}let t;for(;po;){let e=po;for(po=void 0;e;){const i=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=i}}if(t)throw t}function Jv(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Xv(t){let e,i=t.depsTail,s=i;for(;s;){const n=s.prevDep;s.version===-1?(s===i&&(i=n),Ah(s),Dx(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=n}t.deps=e,t.depsTail=i}function nu(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Qv(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Qv(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Bo)||(t.globalVersion=Bo,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!nu(t))))return;t.flags|=2;const e=t.dep,i=Ve,s=Si;Ve=t,Si=!0;try{Jv(t);const n=t.fn(t._value);(e.version===0||qs(n,t._value))&&(t.flags|=128,t._value=n,e.version++)}catch(n){throw e.version++,n}finally{Ve=i,Si=s,Xv(t),t.flags&=-3}}function Ah(t,e=!1){const{dep:i,prevSub:s,nextSub:n}=t;if(s&&(s.nextSub=n,t.prevSub=void 0),n&&(n.prevSub=s,t.nextSub=void 0),i.subs===t&&(i.subs=s,!s&&i.computed)){i.computed.flags&=-5;for(let r=i.computed.deps;r;r=r.nextDep)Ah(r,!0)}!e&&!--i.sc&&i.map&&i.map.delete(i.key)}function Dx(t){const{prevDep:e,nextDep:i}=t;e&&(e.nextDep=i,t.prevDep=void 0),i&&(i.prevDep=e,t.nextDep=void 0)}let Si=!0;const Zv=[];function ms(){Zv.push(Si),Si=!1}function vs(){const t=Zv.pop();Si=t===void 0?!0:t}function Zf(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const i=Ve;Ve=void 0;try{e()}finally{Ve=i}}}let Bo=0;class Fx{constructor(e,i){this.sub=e,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Th{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ve||!Si||Ve===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==Ve)i=this.activeLink=new Fx(Ve,this),Ve.deps?(i.prevDep=Ve.depsTail,Ve.depsTail.nextDep=i,Ve.depsTail=i):Ve.deps=Ve.depsTail=i,eb(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=Ve.depsTail,i.nextDep=void 0,Ve.depsTail.nextDep=i,Ve.depsTail=i,Ve.deps===i&&(Ve.deps=s)}return i}trigger(e){this.version++,Bo++,this.notify(e)}notify(e){Sh();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{Ch()}}}function eb(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)eb(s)}const i=t.dep.subs;i!==t&&(t.prevSub=i,i&&(i.nextSub=t)),t.dep.subs=t}}const Ml=new WeakMap,En=Symbol(""),ru=Symbol(""),jo=Symbol("");function St(t,e,i){if(Si&&Ve){let s=Ml.get(t);s||Ml.set(t,s=new Map);let n=s.get(i);n||(s.set(i,n=new Th),n.map=s,n.key=i),n.track()}}function ds(t,e,i,s,n,r){const o=Ml.get(t);if(!o){Bo++;return}const a=l=>{l&&l.trigger()};if(Sh(),e==="clear")o.forEach(a);else{const l=de(t),c=l&&kh(i);if(l&&i==="length"){const d=Number(s);o.forEach((u,h)=>{(h==="length"||h===jo||!_s(h)&&h>=d)&&a(u)})}else switch((i!==void 0||o.has(void 0))&&a(o.get(i)),c&&a(o.get(jo)),e){case"add":l?c&&a(o.get("length")):(a(o.get(En)),pr(t)&&a(o.get(ru)));break;case"delete":l||(a(o.get(En)),pr(t)&&a(o.get(ru)));break;case"set":pr(t)&&a(o.get(En));break}}Ch()}function Nx(t,e){const i=Ml.get(t);return i&&i.get(e)}function Kn(t){const e=we(t);return e===t?e:(St(e,"iterate",jo),fi(t)?e:e.map(mt))}function gc(t){return St(t=we(t),"iterate",jo),t}const Bx={__proto__:null,[Symbol.iterator](){return ed(this,Symbol.iterator,mt)},concat(...t){return Kn(this).concat(...t.map(e=>de(e)?Kn(e):e))},entries(){return ed(this,"entries",t=>(t[1]=mt(t[1]),t))},every(t,e){return Yi(this,"every",t,e,void 0,arguments)},filter(t,e){return Yi(this,"filter",t,e,i=>i.map(mt),arguments)},find(t,e){return Yi(this,"find",t,e,mt,arguments)},findIndex(t,e){return Yi(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Yi(this,"findLast",t,e,mt,arguments)},findLastIndex(t,e){return Yi(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Yi(this,"forEach",t,e,void 0,arguments)},includes(...t){return td(this,"includes",t)},indexOf(...t){return td(this,"indexOf",t)},join(t){return Kn(this).join(t)},lastIndexOf(...t){return td(this,"lastIndexOf",t)},map(t,e){return Yi(this,"map",t,e,void 0,arguments)},pop(){return Hr(this,"pop")},push(...t){return Hr(this,"push",t)},reduce(t,...e){return ep(this,"reduce",t,e)},reduceRight(t,...e){return ep(this,"reduceRight",t,e)},shift(){return Hr(this,"shift")},some(t,e){return Yi(this,"some",t,e,void 0,arguments)},splice(...t){return Hr(this,"splice",t)},toReversed(){return Kn(this).toReversed()},toSorted(t){return Kn(this).toSorted(t)},toSpliced(...t){return Kn(this).toSpliced(...t)},unshift(...t){return Hr(this,"unshift",t)},values(){return ed(this,"values",mt)}};function ed(t,e,i){const s=gc(t),n=s[e]();return s!==t&&!fi(t)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=i(r.value)),r}),n}const jx=Array.prototype;function Yi(t,e,i,s,n,r){const o=gc(t),a=o!==t&&!fi(t),l=o[e];if(l!==jx[e]){const u=l.apply(t,r);return a?mt(u):u}let c=i;o!==t&&(a?c=function(u,h){return i.call(this,mt(u),h,t)}:i.length>2&&(c=function(u,h){return i.call(this,u,h,t)}));const d=l.call(o,c,s);return a&&n?n(d):d}function ep(t,e,i,s){const n=gc(t);let r=i;return n!==t&&(fi(t)?i.length>3&&(r=function(o,a,l){return i.call(this,o,a,l,t)}):r=function(o,a,l){return i.call(this,o,mt(a),l,t)}),n[e](r,...s)}function td(t,e,i){const s=we(t);St(s,"iterate",jo);const n=s[e](...i);return(n===-1||n===!1)&&aa(i[0])?(i[0]=we(i[0]),s[e](...i)):n}function Hr(t,e,i=[]){ms(),Sh();const s=we(t)[e].apply(t,i);return Ch(),vs(),s}const zx=_h("__proto__,__v_isRef,__isVue"),tb=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_s));function Vx(t){_s(t)||(t=String(t));const e=we(this);return St(e,"has",t),e.hasOwnProperty(t)}class ib{constructor(e=!1,i=!1){this._isReadonly=e,this._isShallow=i}get(e,i,s){if(i==="__v_skip")return e.__v_skip;const n=this._isReadonly,r=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return r;if(i==="__v_raw")return s===(n?r?Qx:ob:r?rb:nb).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=de(e);if(!n){let l;if(o&&(l=Bx[i]))return l;if(i==="hasOwnProperty")return Vx}const a=Reflect.get(e,i,et(e)?e:s);return(_s(i)?tb.has(i):zx(i))||(n||St(e,"get",i),r)?a:et(a)?o&&kh(i)?a:a.value:He(a)?n?lb(a):Dr(a):a}}class sb extends ib{constructor(e=!1){super(!1,e)}set(e,i,s,n){let r=e[i];if(!this._isShallow){const l=Xs(r);if(!fi(s)&&!Xs(s)&&(r=we(r),s=we(s)),!de(e)&&et(r)&&!et(s))return l?!1:(r.value=s,!0)}const o=de(e)&&kh(i)?Number(i)t,Aa=t=>Reflect.getPrototypeOf(t);function Kx(t,e,i){return function(...s){const n=this.__v_raw,r=we(n),o=pr(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=n[t](...s),d=i?ou:e?Rl:mt;return!e&&St(r,"iterate",l?ru:En),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function Ta(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Gx(t,e){const i={get(n){const r=this.__v_raw,o=we(r),a=we(n);t||(qs(n,a)&&St(o,"get",n),St(o,"get",a));const{has:l}=Aa(o),c=e?ou:t?Rl:mt;if(l.call(o,n))return c(r.get(n));if(l.call(o,a))return c(r.get(a));r!==o&&r.get(n)},get size(){const n=this.__v_raw;return!t&&St(we(n),"iterate",En),Reflect.get(n,"size",n)},has(n){const r=this.__v_raw,o=we(r),a=we(n);return t||(qs(n,a)&&St(o,"has",n),St(o,"has",a)),n===a?r.has(n):r.has(n)||r.has(a)},forEach(n,r){const o=this,a=o.__v_raw,l=we(a),c=e?ou:t?Rl:mt;return!t&&St(l,"iterate",En),a.forEach((d,u)=>n.call(r,c(d),c(u),o))}};return pt(i,t?{add:Ta("add"),set:Ta("set"),delete:Ta("delete"),clear:Ta("clear")}:{add(n){!e&&!fi(n)&&!Xs(n)&&(n=we(n));const r=we(this);return Aa(r).has.call(r,n)||(r.add(n),ds(r,"add",n,n)),this},set(n,r){!e&&!fi(r)&&!Xs(r)&&(r=we(r));const o=we(this),{has:a,get:l}=Aa(o);let c=a.call(o,n);c||(n=we(n),c=a.call(o,n));const d=l.call(o,n);return o.set(n,r),c?qs(r,d)&&ds(o,"set",n,r):ds(o,"add",n,r),this},delete(n){const r=we(this),{has:o,get:a}=Aa(r);let l=o.call(r,n);l||(n=we(n),l=o.call(r,n)),a&&a.call(r,n);const c=r.delete(n);return l&&ds(r,"delete",n,void 0),c},clear(){const n=we(this),r=n.size!==0,o=n.clear();return r&&ds(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{i[n]=Kx(n,t,e)}),i}function Eh(t,e){const i=Gx(t,e);return(s,n,r)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?s:Reflect.get(Pe(i,n)&&n in s?i:s,n,r)}const Yx={get:Eh(!1,!1)},Jx={get:Eh(!1,!0)},Xx={get:Eh(!0,!1)};const nb=new WeakMap,rb=new WeakMap,ob=new WeakMap,Qx=new WeakMap;function Zx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ew(t){return t.__v_skip||!Object.isExtensible(t)?0:Zx(Sx(t))}function Dr(t){return Xs(t)?t:Ph(t,!1,qx,Yx,nb)}function ab(t){return Ph(t,!1,Wx,Jx,rb)}function lb(t){return Ph(t,!0,Hx,Xx,ob)}function Ph(t,e,i,s,n){if(!He(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=ew(t);if(r===0)return t;const o=n.get(t);if(o)return o;const a=new Proxy(t,r===2?s:i);return n.set(t,a),a}function Hs(t){return Xs(t)?Hs(t.__v_raw):!!(t&&t.__v_isReactive)}function Xs(t){return!!(t&&t.__v_isReadonly)}function fi(t){return!!(t&&t.__v_isShallow)}function aa(t){return t?!!t.__v_raw:!1}function we(t){const e=t&&t.__v_raw;return e?we(e):t}function Oh(t){return!Pe(t,"__v_skip")&&Object.isExtensible(t)&&su(t,"__v_skip",!0),t}const mt=t=>He(t)?Dr(t):t,Rl=t=>He(t)?lb(t):t;function et(t){return t?t.__v_isRef===!0:!1}function Vn(t){return cb(t,!1)}function Ih(t){return cb(t,!0)}function cb(t,e){return et(t)?t:new tw(t,e)}class tw{constructor(e,i){this.dep=new Th,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?e:we(e),this._value=i?e:mt(e),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(e){const i=this._rawValue,s=this.__v_isShallow||fi(e)||Xs(e);e=s?e:we(e),qs(e,i)&&(this._rawValue=e,this._value=s?e:mt(e),this.dep.trigger())}}function Re(t){return et(t)?t.value:t}const iw={get:(t,e,i)=>e==="__v_raw"?t:Re(Reflect.get(t,e,i)),set:(t,e,i,s)=>{const n=t[e];return et(n)&&!et(i)?(n.value=i,!0):Reflect.set(t,e,i,s)}};function db(t){return Hs(t)?t:new Proxy(t,iw)}function sw(t){const e=de(t)?new Array(t.length):{};for(const i in t)e[i]=ub(t,i);return e}class nw{constructor(e,i,s){this._object=e,this._key=i,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Nx(we(this._object),this._key)}}class rw{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Di(t,e,i){return et(t)?t:ue(t)?new rw(t):He(t)&&arguments.length>1?ub(t,e,i):Vn(t)}function ub(t,e,i){const s=t[e];return et(s)?s:new nw(t,e,i)}class ow{constructor(e,i,s){this.fn=e,this.setter=i,this._value=void 0,this.dep=new Th(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ve!==this)return Yv(this,!0),!0}get value(){const e=this.dep.track();return Qv(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function aw(t,e,i=!1){let s,n;return ue(t)?s=t:(s=t.get,n=t.set),new ow(s,n,i)}const Ea={},$l=new WeakMap;let yn;function lw(t,e=!1,i=yn){if(i){let s=$l.get(i);s||$l.set(i,s=[]),s.push(t)}}function cw(t,e,i=Ue){const{immediate:s,deep:n,once:r,scheduler:o,augmentJob:a,call:l}=i,c=A=>n?A:fi(A)||n===!1||n===0?Fs(A,1):Fs(A);let d,u,h,f,p=!1,g=!1;if(et(t)?(u=()=>t.value,p=fi(t)):Hs(t)?(u=()=>c(t),p=!0):de(t)?(g=!0,p=t.some(A=>Hs(A)||fi(A)),u=()=>t.map(A=>{if(et(A))return A.value;if(Hs(A))return c(A);if(ue(A))return l?l(A,2):A()})):ue(t)?e?u=l?()=>l(t,2):t:u=()=>{if(h){ms();try{h()}finally{vs()}}const A=yn;yn=d;try{return l?l(t,3,[f]):t(f)}finally{yn=A}}:u=qi,e&&n){const A=u,x=n===!0?1/0:n;u=()=>Fs(A(),x)}const m=Wv(),y=()=>{d.stop(),m&&m.active&&wh(m.effects,d)};if(r&&e){const A=e;e=(...x)=>{A(...x),y()}}let C=g?new Array(t.length).fill(Ea):Ea;const w=A=>{if(!(!(d.flags&1)||!d.dirty&&!A))if(e){const x=d.run();if(n||p||(g?x.some((E,T)=>qs(E,C[T])):qs(x,C))){h&&h();const E=yn;yn=d;try{const T=[x,C===Ea?void 0:g&&C[0]===Ea?[]:C,f];C=x,l?l(e,3,T):e(...T)}finally{yn=E}}}else d.run()};return a&&a(w),d=new Kv(u),d.scheduler=o?()=>o(w,!1):w,f=A=>lw(A,!1,d),h=d.onStop=()=>{const A=$l.get(d);if(A){if(l)l(A,4);else for(const x of A)x();$l.delete(d)}},e?s?w(!0):C=d.run():o?o(w.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function Fs(t,e=1/0,i){if(e<=0||!He(t)||t.__v_skip||(i=i||new Set,i.has(t)))return t;if(i.add(t),e--,et(t))Fs(t.value,e,i);else if(de(t))for(let s=0;s{Fs(s,e,i)});else if(jv(t)){for(const s in t)Fs(t[s],e,i);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&Fs(t[s],e,i)}return t}/** +**/let xt;class Wv{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xt,!e&&xt&&(this.index=(xt.scopes||(xt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,i;if(this.scopes)for(e=0,i=this.scopes.length;e0&&--this._on===0&&(xt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let i,s;for(i=0,s=this.effects.length;i0)return;if(go){let e=go;for(go=void 0;e;){const i=e.next;e.next=void 0,e.flags&=-9,e=i}}let t;for(;po;){let e=po;for(po=void 0;e;){const i=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=i}}if(t)throw t}function Qv(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Zv(t){let e,i=t.depsTail,s=i;for(;s;){const n=s.prevDep;s.version===-1?(s===i&&(i=n),Ph(s),Fx(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=n}t.deps=e,t.depsTail=i}function cu(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(eb(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function eb(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Bo)||(t.globalVersion=Bo,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!cu(t))))return;t.flags|=2;const e=t.dep,i=Ue,s=Ci;Ue=t,Ci=!0;try{Qv(t);const n=t.fn(t._value);(e.version===0||Hs(n,t._value))&&(t.flags|=128,t._value=n,e.version++)}catch(n){throw e.version++,n}finally{Ue=i,Ci=s,Zv(t),t.flags&=-3}}function Ph(t,e=!1){const{dep:i,prevSub:s,nextSub:n}=t;if(s&&(s.nextSub=n,t.prevSub=void 0),n&&(n.prevSub=s,t.nextSub=void 0),i.subs===t&&(i.subs=s,!s&&i.computed)){i.computed.flags&=-5;for(let r=i.computed.deps;r;r=r.nextDep)Ph(r,!0)}!e&&!--i.sc&&i.map&&i.map.delete(i.key)}function Fx(t){const{prevDep:e,nextDep:i}=t;e&&(e.nextDep=i,t.prevDep=void 0),i&&(i.prevDep=e,t.nextDep=void 0)}let Ci=!0;const tb=[];function ms(){tb.push(Ci),Ci=!1}function vs(){const t=tb.pop();Ci=t===void 0?!0:t}function tp(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const i=Ue;Ue=void 0;try{e()}finally{Ue=i}}}let Bo=0;class Nx{constructor(e,i){this.sub=e,this.dep=i,this.version=i.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Oh{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Ue||!Ci||Ue===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==Ue)i=this.activeLink=new Nx(Ue,this),Ue.deps?(i.prevDep=Ue.depsTail,Ue.depsTail.nextDep=i,Ue.depsTail=i):Ue.deps=Ue.depsTail=i,ib(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=Ue.depsTail,i.nextDep=void 0,Ue.depsTail.nextDep=i,Ue.depsTail=i,Ue.deps===i&&(Ue.deps=s)}return i}trigger(e){this.version++,Bo++,this.notify(e)}notify(e){Th();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()&&i.sub.dep.notify()}finally{Eh()}}}function ib(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)ib(s)}const i=t.dep.subs;i!==t&&(t.prevSub=i,i&&(i.nextSub=t)),t.dep.subs=t}}const Ll=new WeakMap,Pn=Symbol(""),du=Symbol(""),jo=Symbol("");function St(t,e,i){if(Ci&&Ue){let s=Ll.get(t);s||Ll.set(t,s=new Map);let n=s.get(i);n||(s.set(i,n=new Oh),n.map=s,n.key=i),n.track()}}function ds(t,e,i,s,n,r){const o=Ll.get(t);if(!o){Bo++;return}const a=l=>{l&&l.trigger()};if(Th(),e==="clear")o.forEach(a);else{const l=ue(t),c=l&&Ah(i);if(l&&i==="length"){const d=Number(s);o.forEach((u,h)=>{(h==="length"||h===jo||!_s(h)&&h>=d)&&a(u)})}else switch((i!==void 0||o.has(void 0))&&a(o.get(i)),c&&a(o.get(jo)),e){case"add":l?c&&a(o.get("length")):(a(o.get(Pn)),pr(t)&&a(o.get(du)));break;case"delete":l||(a(o.get(Pn)),pr(t)&&a(o.get(du)));break;case"set":pr(t)&&a(o.get(Pn));break}}Eh()}function Bx(t,e){const i=Ll.get(t);return i&&i.get(e)}function Kn(t){const e=Se(t);return e===t?e:(St(e,"iterate",jo),gi(t)?e:e.map(mt))}function bc(t){return St(t=Se(t),"iterate",jo),t}const jx={__proto__:null,[Symbol.iterator](){return rd(this,Symbol.iterator,mt)},concat(...t){return Kn(this).concat(...t.map(e=>ue(e)?Kn(e):e))},entries(){return rd(this,"entries",t=>(t[1]=mt(t[1]),t))},every(t,e){return Ji(this,"every",t,e,void 0,arguments)},filter(t,e){return Ji(this,"filter",t,e,i=>i.map(mt),arguments)},find(t,e){return Ji(this,"find",t,e,mt,arguments)},findIndex(t,e){return Ji(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Ji(this,"findLast",t,e,mt,arguments)},findLastIndex(t,e){return Ji(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Ji(this,"forEach",t,e,void 0,arguments)},includes(...t){return od(this,"includes",t)},indexOf(...t){return od(this,"indexOf",t)},join(t){return Kn(this).join(t)},lastIndexOf(...t){return od(this,"lastIndexOf",t)},map(t,e){return Ji(this,"map",t,e,void 0,arguments)},pop(){return Hr(this,"pop")},push(...t){return Hr(this,"push",t)},reduce(t,...e){return ip(this,"reduce",t,e)},reduceRight(t,...e){return ip(this,"reduceRight",t,e)},shift(){return Hr(this,"shift")},some(t,e){return Ji(this,"some",t,e,void 0,arguments)},splice(...t){return Hr(this,"splice",t)},toReversed(){return Kn(this).toReversed()},toSorted(t){return Kn(this).toSorted(t)},toSpliced(...t){return Kn(this).toSpliced(...t)},unshift(...t){return Hr(this,"unshift",t)},values(){return rd(this,"values",mt)}};function rd(t,e,i){const s=bc(t),n=s[e]();return s!==t&&!gi(t)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=i(r.value)),r}),n}const zx=Array.prototype;function Ji(t,e,i,s,n,r){const o=bc(t),a=o!==t&&!gi(t),l=o[e];if(l!==zx[e]){const u=l.apply(t,r);return a?mt(u):u}let c=i;o!==t&&(a?c=function(u,h){return i.call(this,mt(u),h,t)}:i.length>2&&(c=function(u,h){return i.call(this,u,h,t)}));const d=l.call(o,c,s);return a&&n?n(d):d}function ip(t,e,i,s){const n=bc(t);let r=i;return n!==t&&(gi(t)?i.length>3&&(r=function(o,a,l){return i.call(this,o,a,l,t)}):r=function(o,a,l){return i.call(this,o,mt(a),l,t)}),n[e](r,...s)}function od(t,e,i){const s=Se(t);St(s,"iterate",jo);const n=s[e](...i);return(n===-1||n===!1)&&ca(i[0])?(i[0]=Se(i[0]),s[e](...i)):n}function Hr(t,e,i=[]){ms(),Th();const s=Se(t)[e].apply(t,i);return Eh(),vs(),s}const Vx=kh("__proto__,__v_isRef,__isVue"),sb=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_s));function Ux(t){_s(t)||(t=String(t));const e=Se(this);return St(e,"has",t),e.hasOwnProperty(t)}class nb{constructor(e=!1,i=!1){this._isReadonly=e,this._isShallow=i}get(e,i,s){if(i==="__v_skip")return e.__v_skip;const n=this._isReadonly,r=this._isShallow;if(i==="__v_isReactive")return!n;if(i==="__v_isReadonly")return n;if(i==="__v_isShallow")return r;if(i==="__v_raw")return s===(n?r?Zx:lb:r?ab:ob).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=ue(e);if(!n){let l;if(o&&(l=jx[i]))return l;if(i==="hasOwnProperty")return Ux}const a=Reflect.get(e,i,tt(e)?e:s);return(_s(i)?sb.has(i):Vx(i))||(n||St(e,"get",i),r)?a:tt(a)?o&&Ah(i)?a:a.value:He(a)?n?db(a):Dr(a):a}}class rb extends nb{constructor(e=!1){super(!1,e)}set(e,i,s,n){let r=e[i];if(!this._isShallow){const l=Qs(r);if(!gi(s)&&!Qs(s)&&(r=Se(r),s=Se(s)),!ue(e)&&tt(r)&&!tt(s))return l?!1:(r.value=s,!0)}const o=ue(e)&&Ah(i)?Number(i)t,Pa=t=>Reflect.getPrototypeOf(t);function Gx(t,e,i){return function(...s){const n=this.__v_raw,r=Se(n),o=pr(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=n[t](...s),d=i?uu:e?Dl:mt;return!e&&St(r,"iterate",l?du:Pn),{next(){const{value:u,done:h}=c.next();return h?{value:u,done:h}:{value:a?[d(u[0]),d(u[1])]:d(u),done:h}},[Symbol.iterator](){return this}}}}function Oa(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Yx(t,e){const i={get(n){const r=this.__v_raw,o=Se(r),a=Se(n);t||(Hs(n,a)&&St(o,"get",n),St(o,"get",a));const{has:l}=Pa(o),c=e?uu:t?Dl:mt;if(l.call(o,n))return c(r.get(n));if(l.call(o,a))return c(r.get(a));r!==o&&r.get(n)},get size(){const n=this.__v_raw;return!t&&St(Se(n),"iterate",Pn),Reflect.get(n,"size",n)},has(n){const r=this.__v_raw,o=Se(r),a=Se(n);return t||(Hs(n,a)&&St(o,"has",n),St(o,"has",a)),n===a?r.has(n):r.has(n)||r.has(a)},forEach(n,r){const o=this,a=o.__v_raw,l=Se(a),c=e?uu:t?Dl:mt;return!t&&St(l,"iterate",Pn),a.forEach((d,u)=>n.call(r,c(d),c(u),o))}};return pt(i,t?{add:Oa("add"),set:Oa("set"),delete:Oa("delete"),clear:Oa("clear")}:{add(n){!e&&!gi(n)&&!Qs(n)&&(n=Se(n));const r=Se(this);return Pa(r).has.call(r,n)||(r.add(n),ds(r,"add",n,n)),this},set(n,r){!e&&!gi(r)&&!Qs(r)&&(r=Se(r));const o=Se(this),{has:a,get:l}=Pa(o);let c=a.call(o,n);c||(n=Se(n),c=a.call(o,n));const d=l.call(o,n);return o.set(n,r),c?Hs(r,d)&&ds(o,"set",n,r):ds(o,"add",n,r),this},delete(n){const r=Se(this),{has:o,get:a}=Pa(r);let l=o.call(r,n);l||(n=Se(n),l=o.call(r,n)),a&&a.call(r,n);const c=r.delete(n);return l&&ds(r,"delete",n,void 0),c},clear(){const n=Se(this),r=n.size!==0,o=n.clear();return r&&ds(n,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(n=>{i[n]=Gx(n,t,e)}),i}function Ih(t,e){const i=Yx(t,e);return(s,n,r)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?s:Reflect.get(Ie(i,n)&&n in s?i:s,n,r)}const Jx={get:Ih(!1,!1)},Xx={get:Ih(!1,!0)},Qx={get:Ih(!0,!1)};const ob=new WeakMap,ab=new WeakMap,lb=new WeakMap,Zx=new WeakMap;function ew(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tw(t){return t.__v_skip||!Object.isExtensible(t)?0:ew(Cx(t))}function Dr(t){return Qs(t)?t:Mh(t,!1,Hx,Jx,ob)}function cb(t){return Mh(t,!1,Kx,Xx,ab)}function db(t){return Mh(t,!0,Wx,Qx,lb)}function Mh(t,e,i,s,n){if(!He(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=tw(t);if(r===0)return t;const o=n.get(t);if(o)return o;const a=new Proxy(t,r===2?s:i);return n.set(t,a),a}function Ws(t){return Qs(t)?Ws(t.__v_raw):!!(t&&t.__v_isReactive)}function Qs(t){return!!(t&&t.__v_isReadonly)}function gi(t){return!!(t&&t.__v_isShallow)}function ca(t){return t?!!t.__v_raw:!1}function Se(t){const e=t&&t.__v_raw;return e?Se(e):t}function Rh(t){return!Ie(t,"__v_skip")&&Object.isExtensible(t)&&lu(t,"__v_skip",!0),t}const mt=t=>He(t)?Dr(t):t,Dl=t=>He(t)?db(t):t;function tt(t){return t?t.__v_isRef===!0:!1}function Un(t){return ub(t,!1)}function $h(t){return ub(t,!0)}function ub(t,e){return tt(t)?t:new iw(t,e)}class iw{constructor(e,i){this.dep=new Oh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?e:Se(e),this._value=i?e:mt(e),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(e){const i=this._rawValue,s=this.__v_isShallow||gi(e)||Qs(e);e=s?e:Se(e),Hs(e,i)&&(this._rawValue=e,this._value=s?e:mt(e),this.dep.trigger())}}function Ae(t){return tt(t)?t.value:t}const sw={get:(t,e,i)=>e==="__v_raw"?t:Ae(Reflect.get(t,e,i)),set:(t,e,i,s)=>{const n=t[e];return tt(n)&&!tt(i)?(n.value=i,!0):Reflect.set(t,e,i,s)}};function hb(t){return Ws(t)?t:new Proxy(t,sw)}function nw(t){const e=ue(t)?new Array(t.length):{};for(const i in t)e[i]=fb(t,i);return e}class rw{constructor(e,i,s){this._object=e,this._key=i,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Bx(Se(this._object),this._key)}}class ow{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ni(t,e,i){return tt(t)?t:he(t)?new ow(t):He(t)&&arguments.length>1?fb(t,e,i):Un(t)}function fb(t,e,i){const s=t[e];return tt(s)?s:new rw(t,e,i)}class aw{constructor(e,i,s){this.fn=e,this.setter=i,this._value=void 0,this.dep=new Oh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!i,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return Xv(this,!0),!0}get value(){const e=this.dep.track();return eb(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function lw(t,e,i=!1){let s,n;return he(t)?s=t:(s=t.get,n=t.set),new aw(s,n,i)}const Ia={},Fl=new WeakMap;let _n;function cw(t,e=!1,i=_n){if(i){let s=Fl.get(i);s||Fl.set(i,s=[]),s.push(t)}}function dw(t,e,i=qe){const{immediate:s,deep:n,once:r,scheduler:o,augmentJob:a,call:l}=i,c=A=>n?A:gi(A)||n===!1||n===0?Ns(A,1):Ns(A);let d,u,h,f,p=!1,g=!1;if(tt(t)?(u=()=>t.value,p=gi(t)):Ws(t)?(u=()=>c(t),p=!0):ue(t)?(g=!0,p=t.some(A=>Ws(A)||gi(A)),u=()=>t.map(A=>{if(tt(A))return A.value;if(Ws(A))return c(A);if(he(A))return l?l(A,2):A()})):he(t)?e?u=l?()=>l(t,2):t:u=()=>{if(h){ms();try{h()}finally{vs()}}const A=_n;_n=d;try{return l?l(t,3,[f]):t(f)}finally{_n=A}}:u=Wi,e&&n){const A=u,x=n===!0?1/0:n;u=()=>Ns(A(),x)}const m=Gv(),y=()=>{d.stop(),m&&m.active&&Ch(m.effects,d)};if(r&&e){const A=e;e=(...x)=>{A(...x),y()}}let C=g?new Array(t.length).fill(Ia):Ia;const w=A=>{if(!(!(d.flags&1)||!d.dirty&&!A))if(e){const x=d.run();if(n||p||(g?x.some((E,T)=>Hs(E,C[T])):Hs(x,C))){h&&h();const E=_n;_n=d;try{const T=[x,C===Ia?void 0:g&&C[0]===Ia?[]:C,f];C=x,l?l(e,3,T):e(...T)}finally{_n=E}}}else d.run()};return a&&a(w),d=new Yv(u),d.scheduler=o?()=>o(w,!1):w,f=A=>cw(A,!1,d),h=d.onStop=()=>{const A=Fl.get(d);if(A){if(l)l(A,4);else for(const x of A)x();Fl.delete(d)}},e?s?w(!0):C=d.run():o?o(w.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function Ns(t,e=1/0,i){if(e<=0||!He(t)||t.__v_skip||(i=i||new Set,i.has(t)))return t;if(i.add(t),e--,tt(t))Ns(t.value,e,i);else if(ue(t))for(let s=0;s{Ns(s,e,i)});else if(Vv(t)){for(const s in t)Ns(t[s],e,i);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&Ns(t[s],e,i)}return t}/** * @vue/runtime-core v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function la(t,e,i,s){try{return s?t(...s):t()}catch(n){mc(n,e,i)}}function Ei(t,e,i,s){if(ue(t)){const n=la(t,e,i,s);return n&&Nv(n)&&n.catch(r=>{mc(r,e,i)}),n}if(de(t)){const n=[];for(let r=0;r>>1,n=Dt[s],r=zo(n);r=zo(i)?Dt.push(t):Dt.splice(uw(e),0,t),t.flags|=1,fb()}}function fb(){Ll||(Ll=hb.then(gb))}function hw(t){de(t)?gr.push(...t):Is&&t.id===-1?Is.splice(or+1,0,t):t.flags&1||(gr.push(t),t.flags|=1),fb()}function tp(t,e,i=ji+1){for(;izo(i)-zo(s));if(gr.length=0,Is){Is.push(...e);return}for(Is=e,or=0;ort.id==null?t.flags&2?-1:1/0:t.id;function gb(t){try{for(ji=0;ji{s._d&&fp(-1);const r=Dl(e);let o;try{o=t(...n)}finally{Dl(r),s._d&&fp(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function an(t,e,i,s){const n=t.dirs,r=e&&e.dirs;for(let o=0;ot.__isTeleport,Ms=Symbol("_leaveCb"),Pa=Symbol("_enterCb");function pw(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yc(()=>{t.isMounted=!0}),Cb(()=>{t.isUnmounting=!0}),t}const oi=[Function,Array],bb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:oi,onEnter:oi,onAfterEnter:oi,onEnterCancelled:oi,onBeforeLeave:oi,onLeave:oi,onAfterLeave:oi,onLeaveCancelled:oi,onBeforeAppear:oi,onAppear:oi,onAfterAppear:oi,onAppearCancelled:oi},yb=t=>{const e=t.subTree;return e.component?yb(e.component):e},gw={name:"BaseTransition",props:bb,setup(t,{slots:e}){const i=Fh(),s=pw();return()=>{const n=e.default&&wb(e.default(),!0);if(!n||!n.length)return;const r=_b(n),o=we(t),{mode:a}=o;if(s.isLeaving)return id(r);const l=ip(r);if(!l)return id(r);let c=au(l,o,s,i,u=>c=u);l.type!==Ct&&Vo(l,c);let d=i.subTree&&ip(i.subTree);if(d&&d.type!==Ct&&!Sn(l,d)&&yb(i).type!==Ct){let u=au(d,o,s,i);if(Vo(d,u),a==="out-in"&&l.type!==Ct)return s.isLeaving=!0,u.afterLeave=()=>{s.isLeaving=!1,i.job.flags&8||i.update(),delete u.afterLeave,d=void 0},id(r);a==="in-out"&&l.type!==Ct?u.delayLeave=(h,f,p)=>{const g=xb(s,d);g[String(d.key)]=d,h[Ms]=()=>{f(),h[Ms]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function _b(t){let e=t[0];if(t.length>1){for(const i of t)if(i.type!==Ct){e=i;break}}return e}const mw=gw;function xb(t,e){const{leavingVNodes:i}=t;let s=i.get(e.type);return s||(s=Object.create(null),i.set(e.type,s)),s}function au(t,e,i,s,n){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:y,onAfterAppear:C,onAppearCancelled:w}=e,A=String(t.key),x=xb(i,t),E=(k,I)=>{k&&Ei(k,s,9,I)},T=(k,I)=>{const S=I[1];E(k,I),de(k)?k.every(b=>b.length<=1)&&S():k.length<=1&&S()},P={mode:o,persisted:a,beforeEnter(k){let I=l;if(!i.isMounted)if(r)I=m||l;else return;k[Ms]&&k[Ms](!0);const S=x[A];S&&Sn(t,S)&&S.el[Ms]&&S.el[Ms](),E(I,[k])},enter(k){let I=c,S=d,b=u;if(!i.isMounted)if(r)I=y||c,S=C||d,b=w||u;else return;let D=!1;const B=k[Pa]=N=>{D||(D=!0,N?E(b,[k]):E(S,[k]),P.delayedLeave&&P.delayedLeave(),k[Pa]=void 0)};I?T(I,[k,B]):B()},leave(k,I){const S=String(t.key);if(k[Pa]&&k[Pa](!0),i.isUnmounting)return I();E(h,[k]);let b=!1;const D=k[Ms]=B=>{b||(b=!0,I(),B?E(g,[k]):E(p,[k]),k[Ms]=void 0,x[S]===t&&delete x[S])};x[S]=t,f?T(f,[k,D]):D()},clone(k){const I=au(k,e,i,s,n);return n&&n(I),I}};return P}function id(t){if(vc(t))return t=Qs(t),t.children=null,t}function ip(t){if(!vc(t))return vb(t.type)&&t.children?_b(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:i}=t;if(i){if(e&16)return i[0];if(e&32&&ue(i.default))return i.default()}}function Vo(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Vo(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 wb(t,e=!1,i){let s=[],n=0;for(let r=0;r1)for(let r=0;rmo(p,e&&(de(e)?e[g]:e),i,s,n));return}if(mr(s)&&!n){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&mo(t,e,i,s.component.subTree);return}const r=s.shapeFlag&4?Nh(s.component):s.el,o=n?null:r,{i:a,r:l}=t,c=e&&e.r,d=a.refs===Ue?a.refs={}:a.refs,u=a.setupState,h=we(u),f=u===Ue?()=>!1:p=>Pe(h,p);if(c!=null&&c!==l&&(nt(c)?(d[c]=null,f(c)&&(u[c]=null)):et(c)&&(c.value=null)),ue(l))la(l,a,12,[o,d]);else{const p=nt(l),g=et(l);if(p||g){const m=()=>{if(t.f){const y=p?f(l)?u[l]:d[l]:l.value;n?de(y)&&wh(y,r):de(y)?y.includes(r)||y.push(r):p?(d[l]=[r],f(l)&&(u[l]=d[l])):(l.value=[r],t.k&&(d[t.k]=l.value))}else p?(d[l]=o,f(l)&&(u[l]=o)):g&&(l.value=o,t.k&&(d[t.k]=o))};o?(m.id=-1,ti(m,i)):m()}}}pc().requestIdleCallback;pc().cancelIdleCallback;const mr=t=>!!t.type.__asyncLoader,vc=t=>t.type.__isKeepAlive;function vw(t,e){Sb(t,"a",e)}function bw(t,e){Sb(t,"da",e)}function Sb(t,e,i=At){const s=t.__wdc||(t.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if(bc(e,s,i),i){let n=i.parent;for(;n&&n.parent;)vc(n.parent.vnode)&&yw(s,e,i,n),n=n.parent}}function yw(t,e,i,s){const n=bc(e,t,s,!0);Rh(()=>{wh(s[e],n)},i)}function bc(t,e,i=At,s=!1){if(i){const n=i[t]||(i[t]=[]),r=e.__weh||(e.__weh=(...o)=>{ms();const a=da(i),l=Ei(e,i,t,o);return a(),vs(),l});return s?n.unshift(r):n.push(r),r}}const xs=t=>(e,i=At)=>{(!Ho||t==="sp")&&bc(t,(...s)=>e(...s),i)},_w=xs("bm"),yc=xs("m"),xw=xs("bu"),ww=xs("u"),Cb=xs("bum"),Rh=xs("um"),kw=xs("sp"),Sw=xs("rtg"),Cw=xs("rtc");function Aw(t,e=At){bc("ec",t,e)}const Tw="components";function sp(t,e){return Pw(Tw,t,!0,e)||t}const Ew=Symbol.for("v-ndc");function Pw(t,e,i=!0,s=!1){const n=Bt||At;if(n){const r=n.type;{const a=m1(r,!1);if(a&&(a===e||a===gi(e)||a===fc(gi(e))))return r}const o=np(n[t]||r[t],e)||np(n.appContext[t],e);return!o&&s?r:o}}function np(t,e){return t&&(t[e]||t[gi(e)]||t[fc(gi(e))])}function st(t,e,i,s){let n;const r=i,o=de(t);if(o||nt(t)){const a=o&&Hs(t);let l=!1,c=!1;a&&(l=!fi(t),c=Xs(t),t=gc(t)),n=new Array(t.length);for(let d=0,u=t.length;de(a,l,void 0,r));else{const a=Object.keys(t);n=new Array(a.length);for(let l=0,c=a.length;lqo(e)?!(e.type===Ct||e.type===ye&&!Ab(e.children)):!0)?t:null}const lu=t=>t?Wb(t)?Nh(t):lu(t.parent):null,vo=pt(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=>lu(t.parent),$root:t=>lu(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Eb(t),$forceUpdate:t=>t.f||(t.f=()=>{Mh(t.update)}),$nextTick:t=>t.n||(t.n=ca.bind(t.proxy)),$watch:t=>Xw.bind(t)}),nd=(t,e)=>t!==Ue&&!t.__isScriptSetup&&Pe(t,e),Ow={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:i,setupState:s,data:n,props:r,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return s[e];case 2:return n[e];case 4:return i[e];case 3:return r[e]}else{if(nd(s,e))return o[e]=1,s[e];if(n!==Ue&&Pe(n,e))return o[e]=2,n[e];if((c=t.propsOptions[0])&&Pe(c,e))return o[e]=3,r[e];if(i!==Ue&&Pe(i,e))return o[e]=4,i[e];cu&&(o[e]=0)}}const d=vo[e];let u,h;if(d)return e==="$attrs"&&St(t.attrs,"get",""),d(t);if((u=a.__cssModules)&&(u=u[e]))return u;if(i!==Ue&&Pe(i,e))return o[e]=4,i[e];if(h=l.config.globalProperties,Pe(h,e))return h[e]},set({_:t},e,i){const{data:s,setupState:n,ctx:r}=t;return nd(n,e)?(n[e]=i,!0):s!==Ue&&Pe(s,e)?(s[e]=i,!0):Pe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=i,!0)},has({_:{data:t,setupState:e,accessCache:i,ctx:s,appContext:n,propsOptions:r}},o){let a;return!!i[o]||t!==Ue&&Pe(t,o)||nd(e,o)||(a=r[0])&&Pe(a,o)||Pe(s,o)||Pe(vo,o)||Pe(n.config.globalProperties,o)},defineProperty(t,e,i){return i.get!=null?t._.accessCache[e]=0:Pe(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};function rp(t){return de(t)?t.reduce((e,i)=>(e[i]=null,e),{}):t}let cu=!0;function Iw(t){const e=Eb(t),i=t.proxy,s=t.ctx;cu=!1,e.beforeCreate&&op(e.beforeCreate,t,"bc");const{data:n,computed:r,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:C,destroyed:w,unmounted:A,render:x,renderTracked:E,renderTriggered:T,errorCaptured:P,serverPrefetch:k,expose:I,inheritAttrs:S,components:b,directives:D,filters:B}=e;if(c&&Mw(c,s,null),o)for(const U in o){const Y=o[U];ue(Y)&&(s[U]=Y.bind(i))}if(n){const U=n.call(i,i);He(U)&&(t.data=Dr(U))}if(cu=!0,r)for(const U in r){const Y=r[U],ae=ue(Y)?Y.bind(i,i):ue(Y.get)?Y.get.bind(i,i):qi,ve=!ue(Y)&&ue(Y.set)?Y.set.bind(i):qi,Ae=Be({get:ae,set:ve});Object.defineProperty(s,U,{enumerable:!0,configurable:!0,get:()=>Ae.value,set:xe=>Ae.value=xe})}if(a)for(const U in a)Tb(a[U],s,i,U);if(l){const U=ue(l)?l.call(i):l;Reflect.ownKeys(U).forEach(Y=>{bo(Y,U[Y])})}d&&op(d,t,"c");function W(U,Y){de(Y)?Y.forEach(ae=>U(ae.bind(i))):Y&&U(Y.bind(i))}if(W(_w,u),W(yc,h),W(xw,f),W(ww,p),W(vw,g),W(bw,m),W(Aw,P),W(Cw,E),W(Sw,T),W(Cb,C),W(Rh,A),W(kw,k),de(I))if(I.length){const U=t.exposed||(t.exposed={});I.forEach(Y=>{Object.defineProperty(U,Y,{get:()=>i[Y],set:ae=>i[Y]=ae,enumerable:!0})})}else t.exposed||(t.exposed={});x&&t.render===qi&&(t.render=x),S!=null&&(t.inheritAttrs=S),b&&(t.components=b),D&&(t.directives=D),k&&kb(t)}function Mw(t,e,i=qi){de(t)&&(t=du(t));for(const s in t){const n=t[s];let r;He(n)?"default"in n?r=pi(n.from||s,n.default,!0):r=pi(n.from||s):r=pi(n),et(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function op(t,e,i){Ei(de(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,i)}function Tb(t,e,i,s){let n=s.includes(".")?zb(i,s):()=>i[s];if(nt(t)){const r=e[t];ue(r)&&di(n,r)}else if(ue(t))di(n,t.bind(i));else if(He(t))if(de(t))t.forEach(r=>Tb(r,e,i,s));else{const r=ue(t.handler)?t.handler.bind(i):e[t.handler];ue(r)&&di(n,r,t)}}function Eb(t){const e=t.type,{mixins:i,extends:s}=e,{mixins:n,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!n.length&&!i&&!s?l=e:(l={},n.length&&n.forEach(c=>Fl(l,c,o,!0)),Fl(l,e,o)),He(e)&&r.set(e,l),l}function Fl(t,e,i,s=!1){const{mixins:n,extends:r}=e;r&&Fl(t,r,i,!0),n&&n.forEach(o=>Fl(t,o,i,!0));for(const o in e)if(!(s&&o==="expose")){const a=Rw[o]||i&&i[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const Rw={data:ap,props:lp,emits:lp,methods:no,computed:no,beforeCreate:It,created:It,beforeMount:It,mounted:It,beforeUpdate:It,updated:It,beforeDestroy:It,beforeUnmount:It,destroyed:It,unmounted:It,activated:It,deactivated:It,errorCaptured:It,serverPrefetch:It,components:no,directives:no,watch:Lw,provide:ap,inject:$w};function ap(t,e){return e?t?function(){return pt(ue(t)?t.call(this,this):t,ue(e)?e.call(this,this):e)}:e:t}function $w(t,e){return no(du(t),du(e))}function du(t){if(de(t)){const e={};for(let i=0;i1)return i&&ue(e)?e.call(s&&s.proxy):e}}function Nw(){return!!(Fh()||Pn)}const Ob={},Ib=()=>Object.create(Ob),Mb=t=>Object.getPrototypeOf(t)===Ob;function Bw(t,e,i,s=!1){const n={},r=Ib();t.propsDefaults=Object.create(null),Rb(t,e,n,r);for(const o in t.propsOptions[0])o in n||(n[o]=void 0);i?t.props=s?n:ab(n):t.type.props?t.props=n:t.props=r,t.attrs=r}function jw(t,e,i,s){const{props:n,attrs:r,vnode:{patchFlag:o}}=t,a=we(n),[l]=t.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const d=t.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=$b(u,e,!0);pt(o,h),f&&a.push(...f)};!i&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!r&&!l)return He(t)&&s.set(t,fr),fr;if(de(r))for(let d=0;dt==="_"||t==="__"||t==="_ctx"||t==="$stable",Lh=t=>de(t)?t.map(Vi):[Vi(t)],Vw=(t,e,i)=>{if(e._n)return e;const s=ht((...n)=>Lh(e(...n)),i);return s._c=!1,s},Lb=(t,e,i)=>{const s=t._ctx;for(const n in t){if($h(n))continue;const r=t[n];if(ue(r))e[n]=Vw(n,r,s);else if(r!=null){const o=Lh(r);e[n]=()=>o}}},Db=(t,e)=>{const i=Lh(e);t.slots.default=()=>i},Fb=(t,e,i)=>{for(const s in e)(i||!$h(s))&&(t[s]=e[s])},Uw=(t,e,i)=>{const s=t.slots=Ib();if(t.vnode.shapeFlag&32){const n=e.__;n&&su(s,"__",n,!0);const r=e._;r?(Fb(s,e,i),i&&su(s,"_",r,!0)):Lb(e,s)}else e&&Db(t,e)},qw=(t,e,i)=>{const{vnode:s,slots:n}=t;let r=!0,o=Ue;if(s.shapeFlag&32){const a=e._;a?i&&a===1?r=!1:Fb(n,e,i):(r=!e.$stable,Lb(e,n)),o=e}else e&&(Db(t,e),o={default:1});if(r)for(const a in n)!$h(a)&&o[a]==null&&delete n[a]},ti=n1;function Hw(t){return Ww(t)}function Ww(t,e){const i=pc();i.__VUE__=!0;const{insert:s,remove:n,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=qi,insertStaticContent:p}=t,g=(v,_,O,L=null,z=null,V=null,H=void 0,ee=null,Q=!!_.dynamicChildren)=>{if(v===_)return;v&&!Sn(v,_)&&(L=K(v),xe(v,z,V,!0),v=null),_.patchFlag===-2&&(Q=!1,_.dynamicChildren=null);const{type:Z,ref:ne,shapeFlag:te}=_;switch(Z){case xc:m(v,_,O,L);break;case Ct:y(v,_,O,L);break;case od:v==null&&C(_,O,L,H);break;case ye:b(v,_,O,L,z,V,H,ee,Q);break;default:te&1?x(v,_,O,L,z,V,H,ee,Q):te&6?D(v,_,O,L,z,V,H,ee,Q):(te&64||te&128)&&Z.process(v,_,O,L,z,V,H,ee,Q,M)}ne!=null&&z?mo(ne,v&&v.ref,V,_||v,!_):ne==null&&v&&v.ref!=null&&mo(v.ref,null,V,v,!0)},m=(v,_,O,L)=>{if(v==null)s(_.el=a(_.children),O,L);else{const z=_.el=v.el;_.children!==v.children&&c(z,_.children)}},y=(v,_,O,L)=>{v==null?s(_.el=l(_.children||""),O,L):_.el=v.el},C=(v,_,O,L)=>{[v.el,v.anchor]=p(v.children,_,O,L,v.el,v.anchor)},w=({el:v,anchor:_},O,L)=>{let z;for(;v&&v!==_;)z=h(v),s(v,O,L),v=z;s(_,O,L)},A=({el:v,anchor:_})=>{let O;for(;v&&v!==_;)O=h(v),n(v),v=O;n(_)},x=(v,_,O,L,z,V,H,ee,Q)=>{_.type==="svg"?H="svg":_.type==="math"&&(H="mathml"),v==null?E(_,O,L,z,V,H,ee,Q):k(v,_,z,V,H,ee,Q)},E=(v,_,O,L,z,V,H,ee)=>{let Q,Z;const{props:ne,shapeFlag:te,transition:re,dirs:le}=v;if(Q=v.el=o(v.type,V,ne&&ne.is,ne),te&8?d(Q,v.children):te&16&&P(v.children,Q,null,L,z,rd(v,V),H,ee),le&&an(v,null,L,"created"),T(Q,v,v.scopeId,H,L),ne){for(const je in ne)je!=="value"&&!fo(je)&&r(Q,je,null,ne[je],V,L);"value"in ne&&r(Q,"value",null,ne.value,V),(Z=ne.onVnodeBeforeMount)&&Fi(Z,L,v)}le&&an(v,null,L,"beforeMount");const Ce=Kw(z,re);Ce&&re.beforeEnter(Q),s(Q,_,O),((Z=ne&&ne.onVnodeMounted)||Ce||le)&&ti(()=>{Z&&Fi(Z,L,v),Ce&&re.enter(Q),le&&an(v,null,L,"mounted")},z)},T=(v,_,O,L,z)=>{if(O&&f(v,O),L)for(let V=0;V{for(let Z=Q;Z{const ee=_.el=v.el;let{patchFlag:Q,dynamicChildren:Z,dirs:ne}=_;Q|=v.patchFlag&16;const te=v.props||Ue,re=_.props||Ue;let le;if(O&&ln(O,!1),(le=re.onVnodeBeforeUpdate)&&Fi(le,O,_,v),ne&&an(_,v,O,"beforeUpdate"),O&&ln(O,!0),(te.innerHTML&&re.innerHTML==null||te.textContent&&re.textContent==null)&&d(ee,""),Z?I(v.dynamicChildren,Z,ee,O,L,rd(_,z),V):H||Y(v,_,ee,null,O,L,rd(_,z),V,!1),Q>0){if(Q&16)S(ee,te,re,O,z);else if(Q&2&&te.class!==re.class&&r(ee,"class",null,re.class,z),Q&4&&r(ee,"style",te.style,re.style,z),Q&8){const Ce=_.dynamicProps;for(let je=0;je{le&&Fi(le,O,_,v),ne&&an(_,v,O,"updated")},L)},I=(v,_,O,L,z,V,H)=>{for(let ee=0;ee<_.length;ee++){const Q=v[ee],Z=_[ee],ne=Q.el&&(Q.type===ye||!Sn(Q,Z)||Q.shapeFlag&198)?u(Q.el):O;g(Q,Z,ne,null,L,z,V,H,!0)}},S=(v,_,O,L,z)=>{if(_!==O){if(_!==Ue)for(const V in _)!fo(V)&&!(V in O)&&r(v,V,_[V],null,z,L);for(const V in O){if(fo(V))continue;const H=O[V],ee=_[V];H!==ee&&V!=="value"&&r(v,V,ee,H,z,L)}"value"in O&&r(v,"value",_.value,O.value,z)}},b=(v,_,O,L,z,V,H,ee,Q)=>{const Z=_.el=v?v.el:a(""),ne=_.anchor=v?v.anchor:a("");let{patchFlag:te,dynamicChildren:re,slotScopeIds:le}=_;le&&(ee=ee?ee.concat(le):le),v==null?(s(Z,O,L),s(ne,O,L),P(_.children||[],O,ne,z,V,H,ee,Q)):te>0&&te&64&&re&&v.dynamicChildren?(I(v.dynamicChildren,re,O,z,V,H,ee),(_.key!=null||z&&_===z.subTree)&&Nb(v,_,!0)):Y(v,_,O,ne,z,V,H,ee,Q)},D=(v,_,O,L,z,V,H,ee,Q)=>{_.slotScopeIds=ee,v==null?_.shapeFlag&512?z.ctx.activate(_,O,L,H,Q):B(_,O,L,z,V,H,Q):N(v,_,Q)},B=(v,_,O,L,z,V,H)=>{const ee=v.component=u1(v,L,z);if(vc(v)&&(ee.ctx.renderer=M),h1(ee,!1,H),ee.asyncDep){if(z&&z.registerDep(ee,W,H),!v.el){const Q=ee.subTree=oe(Ct);y(null,Q,_,O),v.placeholder=Q.el}}else W(ee,v,_,O,z,V,H)},N=(v,_,O)=>{const L=_.component=v.component;if(i1(v,_,O))if(L.asyncDep&&!L.asyncResolved){U(L,_,O);return}else L.next=_,L.update();else _.el=v.el,L.vnode=_},W=(v,_,O,L,z,V,H)=>{const ee=()=>{if(v.isMounted){let{next:te,bu:re,u:le,parent:Ce,vnode:je}=v;{const $i=Bb(v);if($i){te&&(te.el=je.el,U(v,te,H)),$i.asyncDep.then(()=>{v.isUnmounted||ee()});return}}let Me=te,Vt;ln(v,!1),te?(te.el=je.el,U(v,te,H)):te=je,re&&Xc(re),(Vt=te.props&&te.props.onVnodeBeforeUpdate)&&Fi(Vt,Ce,te,je),ln(v,!0);const Ut=up(v),Ri=v.subTree;v.subTree=Ut,g(Ri,Ut,u(Ri.el),K(Ri),v,z,V),te.el=Ut.el,Me===null&&s1(v,Ut.el),le&&ti(le,z),(Vt=te.props&&te.props.onVnodeUpdated)&&ti(()=>Fi(Vt,Ce,te,je),z)}else{let te;const{el:re,props:le}=_,{bm:Ce,m:je,parent:Me,root:Vt,type:Ut}=v,Ri=mr(_);ln(v,!1),Ce&&Xc(Ce),!Ri&&(te=le&&le.onVnodeBeforeMount)&&Fi(te,Me,_),ln(v,!0);{Vt.ce&&Vt.ce._def.shadowRoot!==!1&&Vt.ce._injectChildStyle(Ut);const $i=v.subTree=up(v);g(null,$i,O,L,v,z,V),_.el=$i.el}if(je&&ti(je,z),!Ri&&(te=le&&le.onVnodeMounted)){const $i=_;ti(()=>Fi(te,Me,$i),z)}(_.shapeFlag&256||Me&&mr(Me.vnode)&&Me.vnode.shapeFlag&256)&&v.a&&ti(v.a,z),v.isMounted=!0,_=O=L=null}};v.scope.on();const Q=v.effect=new Kv(ee);v.scope.off();const Z=v.update=Q.run.bind(Q),ne=v.job=Q.runIfDirty.bind(Q);ne.i=v,ne.id=v.uid,Q.scheduler=()=>Mh(ne),ln(v,!0),Z()},U=(v,_,O)=>{_.component=v;const L=v.vnode.props;v.vnode=_,v.next=null,jw(v,_.props,L,O),qw(v,_.children,O),ms(),tp(v),vs()},Y=(v,_,O,L,z,V,H,ee,Q=!1)=>{const Z=v&&v.children,ne=v?v.shapeFlag:0,te=_.children,{patchFlag:re,shapeFlag:le}=_;if(re>0){if(re&128){ve(Z,te,O,L,z,V,H,ee,Q);return}else if(re&256){ae(Z,te,O,L,z,V,H,ee,Q);return}}le&8?(ne&16&&Te(Z,z,V),te!==Z&&d(O,te)):ne&16?le&16?ve(Z,te,O,L,z,V,H,ee,Q):Te(Z,z,V,!0):(ne&8&&d(O,""),le&16&&P(te,O,L,z,V,H,ee,Q))},ae=(v,_,O,L,z,V,H,ee,Q)=>{v=v||fr,_=_||fr;const Z=v.length,ne=_.length,te=Math.min(Z,ne);let re;for(re=0;rene?Te(v,z,V,!0,!1,te):P(_,O,L,z,V,H,ee,Q,te)},ve=(v,_,O,L,z,V,H,ee,Q)=>{let Z=0;const ne=_.length;let te=v.length-1,re=ne-1;for(;Z<=te&&Z<=re;){const le=v[Z],Ce=_[Z]=Q?Rs(_[Z]):Vi(_[Z]);if(Sn(le,Ce))g(le,Ce,O,null,z,V,H,ee,Q);else break;Z++}for(;Z<=te&&Z<=re;){const le=v[te],Ce=_[re]=Q?Rs(_[re]):Vi(_[re]);if(Sn(le,Ce))g(le,Ce,O,null,z,V,H,ee,Q);else break;te--,re--}if(Z>te){if(Z<=re){const le=re+1,Ce=lere)for(;Z<=te;)xe(v[Z],z,V,!0),Z++;else{const le=Z,Ce=Z,je=new Map;for(Z=Ce;Z<=re;Z++){const ei=_[Z]=Q?Rs(_[Z]):Vi(_[Z]);ei.key!=null&&je.set(ei.key,Z)}let Me,Vt=0;const Ut=re-Ce+1;let Ri=!1,$i=0;const qr=new Array(Ut);for(Z=0;Z=Ut){xe(ei,z,V,!0);continue}let Li;if(ei.key!=null)Li=je.get(ei.key);else for(Me=Ce;Me<=re;Me++)if(qr[Me-Ce]===0&&Sn(ei,_[Me])){Li=Me;break}Li===void 0?xe(ei,z,V,!0):(qr[Li-Ce]=Z+1,Li>=$i?$i=Li:Ri=!0,g(ei,_[Li],O,null,z,V,H,ee,Q),Vt++)}const Yf=Ri?Gw(qr):fr;for(Me=Yf.length-1,Z=Ut-1;Z>=0;Z--){const ei=Ce+Z,Li=_[ei],Jf=_[ei+1],Xf=ei+1{const{el:V,type:H,transition:ee,children:Q,shapeFlag:Z}=v;if(Z&6){Ae(v.component.subTree,_,O,L);return}if(Z&128){v.suspense.move(_,O,L);return}if(Z&64){H.move(v,_,O,M);return}if(H===ye){s(V,_,O);for(let te=0;teee.enter(V),z);else{const{leave:te,delayLeave:re,afterLeave:le}=ee,Ce=()=>{v.ctx.isUnmounted?n(V):s(V,_,O)},je=()=>{te(V,()=>{Ce(),le&&le()})};re?re(V,Ce,je):je()}else s(V,_,O)},xe=(v,_,O,L=!1,z=!1)=>{const{type:V,props:H,ref:ee,children:Q,dynamicChildren:Z,shapeFlag:ne,patchFlag:te,dirs:re,cacheIndex:le}=v;if(te===-2&&(z=!1),ee!=null&&(ms(),mo(ee,null,O,v,!0),vs()),le!=null&&(_.renderCache[le]=void 0),ne&256){_.ctx.deactivate(v);return}const Ce=ne&1&&re,je=!mr(v);let Me;if(je&&(Me=H&&H.onVnodeBeforeUnmount)&&Fi(Me,_,v),ne&6)ut(v.component,O,L);else{if(ne&128){v.suspense.unmount(O,L);return}Ce&&an(v,null,_,"beforeUnmount"),ne&64?v.type.remove(v,_,O,M,L):Z&&!Z.hasOnce&&(V!==ye||te>0&&te&64)?Te(Z,_,O,!1,!0):(V===ye&&te&384||!z&&ne&16)&&Te(Q,_,O),L&&Ye(v)}(je&&(Me=H&&H.onVnodeUnmounted)||Ce)&&ti(()=>{Me&&Fi(Me,_,v),Ce&&an(v,null,_,"unmounted")},O)},Ye=v=>{const{type:_,el:O,anchor:L,transition:z}=v;if(_===ye){Qe(O,L);return}if(_===od){A(v);return}const V=()=>{n(O),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(v.shapeFlag&1&&z&&!z.persisted){const{leave:H,delayLeave:ee}=z,Q=()=>H(O,V);ee?ee(v.el,V,Q):Q()}else V()},Qe=(v,_)=>{let O;for(;v!==_;)O=h(v),n(v),v=O;n(_)},ut=(v,_,O)=>{const{bum:L,scope:z,job:V,subTree:H,um:ee,m:Q,a:Z,parent:ne,slots:{__:te}}=v;dp(Q),dp(Z),L&&Xc(L),ne&&de(te)&&te.forEach(re=>{ne.renderCache[re]=void 0}),z.stop(),V&&(V.flags|=8,xe(H,v,_,O)),ee&&ti(ee,_),ti(()=>{v.isUnmounted=!0},_),_&&_.pendingBranch&&!_.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===_.pendingId&&(_.deps--,_.deps===0&&_.resolve())},Te=(v,_,O,L=!1,z=!1,V=0)=>{for(let H=V;H{if(v.shapeFlag&6)return K(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const _=h(v.anchor||v.el),O=_&&_[fw];return O?h(O):_};let $=!1;const R=(v,_,O)=>{v==null?_._vnode&&xe(_._vnode,null,null,!0):g(_._vnode||null,v,_,null,null,null,O),_._vnode=v,$||($=!0,tp(),pb(),$=!1)},M={p:g,um:xe,m:Ae,r:Ye,mt:B,mc:P,pc:Y,pbc:I,n:K,o:t};return{render:R,hydrate:void 0,createApp:Fw(R)}}function rd({type:t,props:e},i){return i==="svg"&&t==="foreignObject"||i==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function ln({effect:t,job:e},i){i?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Kw(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Nb(t,e,i=!1){const s=t.children,n=e.children;if(de(s)&&de(n))for(let r=0;r>1,t[i[a]]0&&(e[s]=i[r-1]),i[r]=s)}}for(r=i.length,o=i[r-1];r-- >0;)i[r]=o,o=e[o];return i}function Bb(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Bb(e)}function dp(t){if(t)for(let e=0;epi(Yw);function di(t,e,i){return jb(t,e,i)}function jb(t,e,i=Ue){const{immediate:s,deep:n,flush:r,once:o}=i,a=pt({},i),l=e&&s||!e&&r!=="post";let c;if(Ho){if(r==="sync"){const f=Jw();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=qi,f.resume=qi,f.pause=qi,f}}const d=At;a.call=(f,p,g)=>Ei(f,d,p,g);let u=!1;r==="post"?a.scheduler=f=>{ti(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():Mh(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=cw(t,e,a);return Ho&&(c?c.push(h):l&&h()),h}function Xw(t,e,i){const s=this.proxy,n=nt(t)?t.includes(".")?zb(s,t):()=>s[t]:t.bind(s,s);let r;ue(e)?r=e:(r=e.handler,i=e);const o=da(this),a=jb(n,r.bind(s),i);return o(),a}function zb(t,e){const i=e.split(".");return()=>{let s=t;for(let n=0;ne==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${gi(e)}Modifiers`]||t[`${zn(e)}Modifiers`];function Zw(t,e,...i){if(t.isUnmounted)return;const s=t.vnode.props||Ue;let n=i;const r=e.startsWith("update:"),o=r&&Qw(s,e.slice(7));o&&(o.trim&&(n=i.map(d=>nt(d)?d.trim():d)),o.number&&(n=i.map(Tx)));let a,l=s[a=Jc(e)]||s[a=Jc(gi(e))];!l&&r&&(l=s[a=Jc(zn(e))]),l&&Ei(l,t,6,n);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Ei(c,t,6,n)}}function Vb(t,e,i=!1){const s=e.emitsCache,n=s.get(t);if(n!==void 0)return n;const r=t.emits;let o={},a=!1;if(!ue(t)){const l=c=>{const d=Vb(c,e,!0);d&&(a=!0,pt(o,d))};!i&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(He(t)&&s.set(t,null),null):(de(r)?r.forEach(l=>o[l]=null):pt(o,r),He(t)&&s.set(t,o),o)}function _c(t,e){return!t||!dc(e)?!1:(e=e.slice(2).replace(/Once$/,""),Pe(t,e[0].toLowerCase()+e.slice(1))||Pe(t,zn(e))||Pe(t,e))}function up(t){const{type:e,vnode:i,proxy:s,withProxy:n,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:p,inheritAttrs:g}=t,m=Dl(t);let y,C;try{if(i.shapeFlag&4){const A=n||s,x=A;y=Vi(c.call(x,A,d,u,f,h,p)),C=a}else{const A=e;y=Vi(A.length>1?A(u,{attrs:a,slots:o,emit:l}):A(u,null)),C=e.props?a:e1(a)}}catch(A){yo.length=0,mc(A,t,1),y=oe(Ct)}let w=y;if(C&&g!==!1){const A=Object.keys(C),{shapeFlag:x}=w;A.length&&x&7&&(r&&A.some(xh)&&(C=t1(C,r)),w=Qs(w,C,!1,!0))}return i.dirs&&(w=Qs(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&Vo(w,i.transition),y=w,Dl(m),y}const e1=t=>{let e;for(const i in t)(i==="class"||i==="style"||dc(i))&&((e||(e={}))[i]=t[i]);return e},t1=(t,e)=>{const i={};for(const s in t)(!xh(s)||!(s.slice(9)in e))&&(i[s]=t[s]);return i};function i1(t,e,i){const{props:s,children:n,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return s?hp(s,o,c):!!o;if(l&8){const d=e.dynamicProps;for(let u=0;ut.__isSuspense;function n1(t,e){e&&e.pendingBranch?de(t)?e.effects.push(...t):e.effects.push(t):hw(t)}const ye=Symbol.for("v-fgt"),xc=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),od=Symbol.for("v-stc"),yo=[];let si=null;function q(t=!1){yo.push(si=t?null:[])}function r1(){yo.pop(),si=yo[yo.length-1]||null}let Uo=1;function fp(t,e=!1){Uo+=t,t<0&&si&&e&&(si.hasOnce=!0)}function qb(t){return t.dynamicChildren=Uo>0?si||fr:null,r1(),Uo>0&&si&&si.push(t),t}function G(t,e,i,s,n,r){return qb(X(t,e,i,s,n,r,!0))}function vt(t,e,i,s,n){return qb(oe(t,e,i,s,n,!0))}function qo(t){return t?t.__v_isVNode===!0:!1}function Sn(t,e){return t.type===e.type&&t.key===e.key}const Hb=({key:t})=>t??null,yl=({ref:t,ref_key:e,ref_for:i})=>(typeof t=="number"&&(t=""+t),t!=null?nt(t)||et(t)||ue(t)?{i:Bt,r:t,k:e,f:!!i}:t:null);function X(t,e=null,i=null,s=0,n=null,r=t===ye?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Hb(e),ref:e&&yl(e),scopeId:mb,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Bt};return a?(Dh(l,i),r&128&&t.normalize(l)):i&&(l.shapeFlag|=nt(i)?8:16),Uo>0&&!o&&si&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&si.push(l),l}const oe=o1;function o1(t,e=null,i=null,s=0,n=null,r=!1){if((!t||t===Ew)&&(t=Ct),qo(t)){const a=Qs(t,e,!0);return i&&Dh(a,i),Uo>0&&!r&&si&&(a.shapeFlag&6?si[si.indexOf(t)]=a:si.push(a)),a.patchFlag=-2,a}if(v1(t)&&(t=t.__vccOpts),e){e=a1(e);let{class:a,style:l}=e;a&&!nt(a)&&(e.class=kr(a)),He(l)&&(aa(l)&&!de(l)&&(l=pt({},l)),e.style=ri(l))}const o=nt(t)?1:Ub(t)?128:vb(t)?64:He(t)?4:ue(t)?2:0;return X(t,e,i,s,n,o,r,!0)}function a1(t){return t?aa(t)||Mb(t)?pt({},t):t:null}function Qs(t,e,i=!1,s=!1){const{props:n,ref:r,patchFlag:o,children:a,transition:l}=t,c=e?l1(n||{},e):n,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Hb(c),ref:e&&e.ref?i&&r?de(r)?r.concat(yl(e)):[r,yl(e)]:yl(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ye?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Qs(t.ssContent),ssFallback:t.ssFallback&&Qs(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&s&&Vo(d,l.clone(d)),d}function Fe(t=" ",e=0){return oe(xc,null,t,e)}function qe(t="",e=!1){return e?(q(),vt(Ct,null,t)):oe(Ct,null,t)}function Vi(t){return t==null||typeof t=="boolean"?oe(Ct):de(t)?oe(ye,null,t.slice()):qo(t)?Rs(t):oe(xc,null,String(t))}function Rs(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Qs(t)}function Dh(t,e){let i=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(de(e))i=16;else if(typeof e=="object")if(s&65){const n=e.default;n&&(n._c&&(n._d=!1),Dh(t,n()),n._c&&(n._d=!0));return}else{i=32;const n=e._;!n&&!Mb(e)?e._ctx=Bt:n===3&&Bt&&(Bt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ue(e)?(e={default:e,_ctx:Bt},i=32):(e=String(e),s&64?(i=16,e=[Fe(e)]):i=8);t.children=e,t.shapeFlag|=i}function l1(...t){const e={};for(let i=0;iAt||Bt;let Nl,hu;{const t=pc(),e=(i,s)=>{let n;return(n=t[i])||(n=t[i]=[]),n.push(s),r=>{n.length>1?n.forEach(o=>o(r)):n[0](r)}};Nl=e("__VUE_INSTANCE_SETTERS__",i=>At=i),hu=e("__VUE_SSR_SETTERS__",i=>Ho=i)}const da=t=>{const e=At;return Nl(t),t.scope.on(),()=>{t.scope.off(),Nl(e)}},pp=()=>{At&&At.scope.off(),Nl(null)};function Wb(t){return t.vnode.shapeFlag&4}let Ho=!1;function h1(t,e=!1,i=!1){e&&hu(e);const{props:s,children:n}=t.vnode,r=Wb(t);Bw(t,s,r,e),Uw(t,n,i||e);const o=r?f1(t,e):void 0;return e&&hu(!1),o}function f1(t,e){const i=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Ow);const{setup:s}=i;if(s){ms();const n=t.setupContext=s.length>1?g1(t):null,r=da(t),o=la(s,t,0,[t.props,n]),a=Nv(o);if(vs(),r(),(a||t.sp)&&!mr(t)&&kb(t),a){if(o.then(pp,pp),e)return o.then(l=>{gp(t,l)}).catch(l=>{mc(l,t,0)});t.asyncDep=o}else gp(t,o)}else Kb(t)}function gp(t,e,i){ue(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:He(e)&&(t.setupState=db(e)),Kb(t)}function Kb(t,e,i){const s=t.type;t.render||(t.render=s.render||qi);{const n=da(t);ms();try{Iw(t)}finally{vs(),n()}}}const p1={get(t,e){return St(t,"get",""),t[e]}};function g1(t){const e=i=>{t.exposed=i||{}};return{attrs:new Proxy(t.attrs,p1),slots:t.slots,emit:t.emit,expose:e}}function Nh(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(db(Oh(t.exposed)),{get(e,i){if(i in e)return e[i];if(i in vo)return vo[i](t)},has(e,i){return i in e||i in vo}})):t.proxy}function m1(t,e=!0){return ue(t)?t.displayName||t.name:t.name||e&&t.__name}function v1(t){return ue(t)&&"__vccOpts"in t}const Be=(t,e)=>aw(t,e,Ho);function Xe(t,e,i){const s=arguments.length;return s===2?He(e)&&!de(e)?qo(e)?oe(t,null,[e]):oe(t,e):oe(t,null,e):(s>3?i=Array.prototype.slice.call(arguments,2):s===3&&qo(i)&&(i=[i]),oe(t,e,i))}const Gb="3.5.18";/** +**/function da(t,e,i,s){try{return s?t(...s):t()}catch(n){yc(n,e,i)}}function Pi(t,e,i,s){if(he(t)){const n=da(t,e,i,s);return n&&jv(n)&&n.catch(r=>{yc(r,e,i)}),n}if(ue(t)){const n=[];for(let r=0;r>>1,n=Dt[s],r=zo(n);r=zo(i)?Dt.push(t):Dt.splice(hw(e),0,t),t.flags|=1,gb()}}function gb(){Nl||(Nl=pb.then(vb))}function fw(t){ue(t)?gr.push(...t):Ms&&t.id===-1?Ms.splice(or+1,0,t):t.flags&1||(gr.push(t),t.flags|=1),gb()}function sp(t,e,i=Vi+1){for(;izo(i)-zo(s));if(gr.length=0,Ms){Ms.push(...e);return}for(Ms=e,or=0;ort.id==null?t.flags&2?-1:1/0:t.id;function vb(t){try{for(Vi=0;Vi{s._d&&gp(-1);const r=Bl(e);let o;try{o=t(...n)}finally{Bl(r),s._d&&gp(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function ln(t,e,i,s){const n=t.dirs,r=e&&e.dirs;for(let o=0;ot.__isTeleport,Rs=Symbol("_leaveCb"),Ma=Symbol("_enterCb");function gw(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return wc(()=>{t.isMounted=!0}),Tb(()=>{t.isUnmounting=!0}),t}const li=[Function,Array],_b={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:li,onEnter:li,onAfterEnter:li,onEnterCancelled:li,onBeforeLeave:li,onLeave:li,onAfterLeave:li,onLeaveCancelled:li,onBeforeAppear:li,onAppear:li,onAfterAppear:li,onAppearCancelled:li},xb=t=>{const e=t.subTree;return e.component?xb(e.component):e},mw={name:"BaseTransition",props:_b,setup(t,{slots:e}){const i=jh(),s=gw();return()=>{const n=e.default&&Sb(e.default(),!0);if(!n||!n.length)return;const r=wb(n),o=Se(t),{mode:a}=o;if(s.isLeaving)return ad(r);const l=np(r);if(!l)return ad(r);let c=hu(l,o,s,i,u=>c=u);l.type!==Ct&&Vo(l,c);let d=i.subTree&&np(i.subTree);if(d&&d.type!==Ct&&!Cn(l,d)&&xb(i).type!==Ct){let u=hu(d,o,s,i);if(Vo(d,u),a==="out-in"&&l.type!==Ct)return s.isLeaving=!0,u.afterLeave=()=>{s.isLeaving=!1,i.job.flags&8||i.update(),delete u.afterLeave,d=void 0},ad(r);a==="in-out"&&l.type!==Ct?u.delayLeave=(h,f,p)=>{const g=kb(s,d);g[String(d.key)]=d,h[Rs]=()=>{f(),h[Rs]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function wb(t){let e=t[0];if(t.length>1){for(const i of t)if(i.type!==Ct){e=i;break}}return e}const vw=mw;function kb(t,e){const{leavingVNodes:i}=t;let s=i.get(e.type);return s||(s=Object.create(null),i.set(e.type,s)),s}function hu(t,e,i,s,n){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:y,onAfterAppear:C,onAppearCancelled:w}=e,A=String(t.key),x=kb(i,t),E=(k,I)=>{k&&Pi(k,s,9,I)},T=(k,I)=>{const S=I[1];E(k,I),ue(k)?k.every(b=>b.length<=1)&&S():k.length<=1&&S()},P={mode:o,persisted:a,beforeEnter(k){let I=l;if(!i.isMounted)if(r)I=m||l;else return;k[Rs]&&k[Rs](!0);const S=x[A];S&&Cn(t,S)&&S.el[Rs]&&S.el[Rs](),E(I,[k])},enter(k){let I=c,S=d,b=u;if(!i.isMounted)if(r)I=y||c,S=C||d,b=w||u;else return;let D=!1;const B=k[Ma]=N=>{D||(D=!0,N?E(b,[k]):E(S,[k]),P.delayedLeave&&P.delayedLeave(),k[Ma]=void 0)};I?T(I,[k,B]):B()},leave(k,I){const S=String(t.key);if(k[Ma]&&k[Ma](!0),i.isUnmounting)return I();E(h,[k]);let b=!1;const D=k[Rs]=B=>{b||(b=!0,I(),B?E(g,[k]):E(p,[k]),k[Rs]=void 0,x[S]===t&&delete x[S])};x[S]=t,f?T(f,[k,D]):D()},clone(k){const I=hu(k,e,i,s,n);return n&&n(I),I}};return P}function ad(t){if(_c(t))return t=Zs(t),t.children=null,t}function np(t){if(!_c(t))return yb(t.type)&&t.children?wb(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:i}=t;if(i){if(e&16)return i[0];if(e&32&&he(i.default))return i.default()}}function Vo(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Vo(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 Sb(t,e=!1,i){let s=[],n=0;for(let r=0;r1)for(let r=0;rmo(p,e&&(ue(e)?e[g]:e),i,s,n));return}if(mr(s)&&!n){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&mo(t,e,i,s.component.subTree);return}const r=s.shapeFlag&4?zh(s.component):s.el,o=n?null:r,{i:a,r:l}=t,c=e&&e.r,d=a.refs===qe?a.refs={}:a.refs,u=a.setupState,h=Se(u),f=u===qe?()=>!1:p=>Ie(h,p);if(c!=null&&c!==l&&(nt(c)?(d[c]=null,f(c)&&(u[c]=null)):tt(c)&&(c.value=null)),he(l))da(l,a,12,[o,d]);else{const p=nt(l),g=tt(l);if(p||g){const m=()=>{if(t.f){const y=p?f(l)?u[l]:d[l]:l.value;n?ue(y)&&Ch(y,r):ue(y)?y.includes(r)||y.push(r):p?(d[l]=[r],f(l)&&(u[l]=d[l])):(l.value=[r],t.k&&(d[t.k]=l.value))}else p?(d[l]=o,f(l)&&(u[l]=o)):g&&(l.value=o,t.k&&(d[t.k]=o))};o?(m.id=-1,ni(m,i)):m()}}}vc().requestIdleCallback;vc().cancelIdleCallback;const mr=t=>!!t.type.__asyncLoader,_c=t=>t.type.__isKeepAlive;function bw(t,e){Ab(t,"a",e)}function yw(t,e){Ab(t,"da",e)}function Ab(t,e,i=At){const s=t.__wdc||(t.__wdc=()=>{let n=i;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if(xc(e,s,i),i){let n=i.parent;for(;n&&n.parent;)_c(n.parent.vnode)&&_w(s,e,i,n),n=n.parent}}function _w(t,e,i,s){const n=xc(e,t,s,!0);Dh(()=>{Ch(s[e],n)},i)}function xc(t,e,i=At,s=!1){if(i){const n=i[t]||(i[t]=[]),r=e.__weh||(e.__weh=(...o)=>{ms();const a=ha(i),l=Pi(e,i,t,o);return a(),vs(),l});return s?n.unshift(r):n.push(r),r}}const xs=t=>(e,i=At)=>{(!Ho||t==="sp")&&xc(t,(...s)=>e(...s),i)},xw=xs("bm"),wc=xs("m"),ww=xs("bu"),kw=xs("u"),Tb=xs("bum"),Dh=xs("um"),Sw=xs("sp"),Cw=xs("rtg"),Aw=xs("rtc");function Tw(t,e=At){xc("ec",t,e)}const Ew="components";function rp(t,e){return Ow(Ew,t,!0,e)||t}const Pw=Symbol.for("v-ndc");function Ow(t,e,i=!0,s=!1){const n=jt||At;if(n){const r=n.type;{const a=v1(r,!1);if(a&&(a===e||a===vi(e)||a===mc(vi(e))))return r}const o=op(n[t]||r[t],e)||op(n.appContext[t],e);return!o&&s?r:o}}function op(t,e){return t&&(t[e]||t[vi(e)]||t[mc(vi(e))])}function Ge(t,e,i,s){let n;const r=i,o=ue(t);if(o||nt(t)){const a=o&&Ws(t);let l=!1,c=!1;a&&(l=!gi(t),c=Qs(t),t=bc(t)),n=new Array(t.length);for(let d=0,u=t.length;de(a,l,void 0,r));else{const a=Object.keys(t);n=new Array(a.length);for(let l=0,c=a.length;lqo(e)?!(e.type===Ct||e.type===ge&&!Eb(e.children)):!0)?t:null}const fu=t=>t?Gb(t)?zh(t):fu(t.parent):null,vo=pt(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=>fu(t.parent),$root:t=>fu(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Ob(t),$forceUpdate:t=>t.f||(t.f=()=>{Lh(t.update)}),$nextTick:t=>t.n||(t.n=ua.bind(t.proxy)),$watch:t=>Qw.bind(t)}),cd=(t,e)=>t!==qe&&!t.__isScriptSetup&&Ie(t,e),Iw={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:i,setupState:s,data:n,props:r,accessCache:o,type:a,appContext:l}=t;let c;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return s[e];case 2:return n[e];case 4:return i[e];case 3:return r[e]}else{if(cd(s,e))return o[e]=1,s[e];if(n!==qe&&Ie(n,e))return o[e]=2,n[e];if((c=t.propsOptions[0])&&Ie(c,e))return o[e]=3,r[e];if(i!==qe&&Ie(i,e))return o[e]=4,i[e];pu&&(o[e]=0)}}const d=vo[e];let u,h;if(d)return e==="$attrs"&&St(t.attrs,"get",""),d(t);if((u=a.__cssModules)&&(u=u[e]))return u;if(i!==qe&&Ie(i,e))return o[e]=4,i[e];if(h=l.config.globalProperties,Ie(h,e))return h[e]},set({_:t},e,i){const{data:s,setupState:n,ctx:r}=t;return cd(n,e)?(n[e]=i,!0):s!==qe&&Ie(s,e)?(s[e]=i,!0):Ie(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=i,!0)},has({_:{data:t,setupState:e,accessCache:i,ctx:s,appContext:n,propsOptions:r}},o){let a;return!!i[o]||t!==qe&&Ie(t,o)||cd(e,o)||(a=r[0])&&Ie(a,o)||Ie(s,o)||Ie(vo,o)||Ie(n.config.globalProperties,o)},defineProperty(t,e,i){return i.get!=null?t._.accessCache[e]=0:Ie(i,"value")&&this.set(t,e,i.value,null),Reflect.defineProperty(t,e,i)}};function ap(t){return ue(t)?t.reduce((e,i)=>(e[i]=null,e),{}):t}let pu=!0;function Mw(t){const e=Ob(t),i=t.proxy,s=t.ctx;pu=!1,e.beforeCreate&&lp(e.beforeCreate,t,"bc");const{data:n,computed:r,methods:o,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:C,destroyed:w,unmounted:A,render:x,renderTracked:E,renderTriggered:T,errorCaptured:P,serverPrefetch:k,expose:I,inheritAttrs:S,components:b,directives:D,filters:B}=e;if(c&&Rw(c,s,null),o)for(const q in o){const J=o[q];he(J)&&(s[q]=J.bind(i))}if(n){const q=n.call(i,i);He(q)&&(t.data=Dr(q))}if(pu=!0,r)for(const q in r){const J=r[q],ae=he(J)?J.bind(i,i):he(J.get)?J.get.bind(i,i):Wi,be=!he(J)&&he(J.set)?J.set.bind(i):Wi,Ee=je({get:ae,set:be});Object.defineProperty(s,q,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:ke=>Ee.value=ke})}if(a)for(const q in a)Pb(a[q],s,i,q);if(l){const q=he(l)?l.call(i):l;Reflect.ownKeys(q).forEach(J=>{bo(J,q[J])})}d&&lp(d,t,"c");function G(q,J){ue(J)?J.forEach(ae=>q(ae.bind(i))):J&&q(J.bind(i))}if(G(xw,u),G(wc,h),G(ww,f),G(kw,p),G(bw,g),G(yw,m),G(Tw,P),G(Aw,E),G(Cw,T),G(Tb,C),G(Dh,A),G(Sw,k),ue(I))if(I.length){const q=t.exposed||(t.exposed={});I.forEach(J=>{Object.defineProperty(q,J,{get:()=>i[J],set:ae=>i[J]=ae,enumerable:!0})})}else t.exposed||(t.exposed={});x&&t.render===Wi&&(t.render=x),S!=null&&(t.inheritAttrs=S),b&&(t.components=b),D&&(t.directives=D),k&&Cb(t)}function Rw(t,e,i=Wi){ue(t)&&(t=gu(t));for(const s in t){const n=t[s];let r;He(n)?"default"in n?r=mi(n.from||s,n.default,!0):r=mi(n.from||s):r=mi(n),tt(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function lp(t,e,i){Pi(ue(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,i)}function Pb(t,e,i,s){let n=s.includes(".")?Ub(i,s):()=>i[s];if(nt(t)){const r=e[t];he(r)&&hi(n,r)}else if(he(t))hi(n,t.bind(i));else if(He(t))if(ue(t))t.forEach(r=>Pb(r,e,i,s));else{const r=he(t.handler)?t.handler.bind(i):e[t.handler];he(r)&&hi(n,r,t)}}function Ob(t){const e=t.type,{mixins:i,extends:s}=e,{mixins:n,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!n.length&&!i&&!s?l=e:(l={},n.length&&n.forEach(c=>jl(l,c,o,!0)),jl(l,e,o)),He(e)&&r.set(e,l),l}function jl(t,e,i,s=!1){const{mixins:n,extends:r}=e;r&&jl(t,r,i,!0),n&&n.forEach(o=>jl(t,o,i,!0));for(const o in e)if(!(s&&o==="expose")){const a=$w[o]||i&&i[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const $w={data:cp,props:dp,emits:dp,methods:no,computed:no,beforeCreate:It,created:It,beforeMount:It,mounted:It,beforeUpdate:It,updated:It,beforeDestroy:It,beforeUnmount:It,destroyed:It,unmounted:It,activated:It,deactivated:It,errorCaptured:It,serverPrefetch:It,components:no,directives:no,watch:Dw,provide:cp,inject:Lw};function cp(t,e){return e?t?function(){return pt(he(t)?t.call(this,this):t,he(e)?e.call(this,this):e)}:e:t}function Lw(t,e){return no(gu(t),gu(e))}function gu(t){if(ue(t)){const e={};for(let i=0;i1)return i&&he(e)?e.call(s&&s.proxy):e}}function Bw(){return!!(jh()||On)}const Mb={},Rb=()=>Object.create(Mb),$b=t=>Object.getPrototypeOf(t)===Mb;function jw(t,e,i,s=!1){const n={},r=Rb();t.propsDefaults=Object.create(null),Lb(t,e,n,r);for(const o in t.propsOptions[0])o in n||(n[o]=void 0);i?t.props=s?n:cb(n):t.type.props?t.props=n:t.props=r,t.attrs=r}function zw(t,e,i,s){const{props:n,attrs:r,vnode:{patchFlag:o}}=t,a=Se(n),[l]=t.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const d=t.vnode.dynamicProps;for(let u=0;u{l=!0;const[h,f]=Db(u,e,!0);pt(o,h),f&&a.push(...f)};!i&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!r&&!l)return He(t)&&s.set(t,fr),fr;if(ue(r))for(let d=0;dt==="_"||t==="__"||t==="_ctx"||t==="$stable",Nh=t=>ue(t)?t.map(qi):[qi(t)],Uw=(t,e,i)=>{if(e._n)return e;const s=rt((...n)=>Nh(e(...n)),i);return s._c=!1,s},Fb=(t,e,i)=>{const s=t._ctx;for(const n in t){if(Fh(n))continue;const r=t[n];if(he(r))e[n]=Uw(n,r,s);else if(r!=null){const o=Nh(r);e[n]=()=>o}}},Nb=(t,e)=>{const i=Nh(e);t.slots.default=()=>i},Bb=(t,e,i)=>{for(const s in e)(i||!Fh(s))&&(t[s]=e[s])},qw=(t,e,i)=>{const s=t.slots=Rb();if(t.vnode.shapeFlag&32){const n=e.__;n&&lu(s,"__",n,!0);const r=e._;r?(Bb(s,e,i),i&&lu(s,"_",r,!0)):Fb(e,s)}else e&&Nb(t,e)},Hw=(t,e,i)=>{const{vnode:s,slots:n}=t;let r=!0,o=qe;if(s.shapeFlag&32){const a=e._;a?i&&a===1?r=!1:Bb(n,e,i):(r=!e.$stable,Fb(e,n)),o=e}else e&&(Nb(t,e),o={default:1});if(r)for(const a in n)!Fh(a)&&o[a]==null&&delete n[a]},ni=r1;function Ww(t){return Kw(t)}function Kw(t,e){const i=vc();i.__VUE__=!0;const{insert:s,remove:n,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:d,parentNode:u,nextSibling:h,setScopeId:f=Wi,insertStaticContent:p}=t,g=(v,_,O,L=null,V=null,U=null,W=void 0,ee=null,Q=!!_.dynamicChildren)=>{if(v===_)return;v&&!Cn(v,_)&&(L=Y(v),ke(v,V,U,!0),v=null),_.patchFlag===-2&&(Q=!1,_.dynamicChildren=null);const{type:Z,ref:re,shapeFlag:te}=_;switch(Z){case Sc:m(v,_,O,L);break;case Ct:y(v,_,O,L);break;case ud:v==null&&C(_,O,L,W);break;case ge:b(v,_,O,L,V,U,W,ee,Q);break;default:te&1?x(v,_,O,L,V,U,W,ee,Q):te&6?D(v,_,O,L,V,U,W,ee,Q):(te&64||te&128)&&Z.process(v,_,O,L,V,U,W,ee,Q,M)}re!=null&&V?mo(re,v&&v.ref,U,_||v,!_):re==null&&v&&v.ref!=null&&mo(v.ref,null,U,v,!0)},m=(v,_,O,L)=>{if(v==null)s(_.el=a(_.children),O,L);else{const V=_.el=v.el;_.children!==v.children&&c(V,_.children)}},y=(v,_,O,L)=>{v==null?s(_.el=l(_.children||""),O,L):_.el=v.el},C=(v,_,O,L)=>{[v.el,v.anchor]=p(v.children,_,O,L,v.el,v.anchor)},w=({el:v,anchor:_},O,L)=>{let V;for(;v&&v!==_;)V=h(v),s(v,O,L),v=V;s(_,O,L)},A=({el:v,anchor:_})=>{let O;for(;v&&v!==_;)O=h(v),n(v),v=O;n(_)},x=(v,_,O,L,V,U,W,ee,Q)=>{_.type==="svg"?W="svg":_.type==="math"&&(W="mathml"),v==null?E(_,O,L,V,U,W,ee,Q):k(v,_,V,U,W,ee,Q)},E=(v,_,O,L,V,U,W,ee)=>{let Q,Z;const{props:re,shapeFlag:te,transition:oe,dirs:le}=v;if(Q=v.el=o(v.type,U,re&&re.is,re),te&8?d(Q,v.children):te&16&&P(v.children,Q,null,L,V,dd(v,U),W,ee),le&&ln(v,null,L,"created"),T(Q,v,v.scopeId,W,L),re){for(const ze in re)ze!=="value"&&!fo(ze)&&r(Q,ze,null,re[ze],U,L);"value"in re&&r(Q,"value",null,re.value,U),(Z=re.onVnodeBeforeMount)&&Bi(Z,L,v)}le&&ln(v,null,L,"beforeMount");const Te=Gw(V,oe);Te&&oe.beforeEnter(Q),s(Q,_,O),((Z=re&&re.onVnodeMounted)||Te||le)&&ni(()=>{Z&&Bi(Z,L,v),Te&&oe.enter(Q),le&&ln(v,null,L,"mounted")},V)},T=(v,_,O,L,V)=>{if(O&&f(v,O),L)for(let U=0;U{for(let Z=Q;Z{const ee=_.el=v.el;let{patchFlag:Q,dynamicChildren:Z,dirs:re}=_;Q|=v.patchFlag&16;const te=v.props||qe,oe=_.props||qe;let le;if(O&&cn(O,!1),(le=oe.onVnodeBeforeUpdate)&&Bi(le,O,_,v),re&&ln(_,v,O,"beforeUpdate"),O&&cn(O,!0),(te.innerHTML&&oe.innerHTML==null||te.textContent&&oe.textContent==null)&&d(ee,""),Z?I(v.dynamicChildren,Z,ee,O,L,dd(_,V),U):W||J(v,_,ee,null,O,L,dd(_,V),U,!1),Q>0){if(Q&16)S(ee,te,oe,O,V);else if(Q&2&&te.class!==oe.class&&r(ee,"class",null,oe.class,V),Q&4&&r(ee,"style",te.style,oe.style,V),Q&8){const Te=_.dynamicProps;for(let ze=0;ze{le&&Bi(le,O,_,v),re&&ln(_,v,O,"updated")},L)},I=(v,_,O,L,V,U,W)=>{for(let ee=0;ee<_.length;ee++){const Q=v[ee],Z=_[ee],re=Q.el&&(Q.type===ge||!Cn(Q,Z)||Q.shapeFlag&198)?u(Q.el):O;g(Q,Z,re,null,L,V,U,W,!0)}},S=(v,_,O,L,V)=>{if(_!==O){if(_!==qe)for(const U in _)!fo(U)&&!(U in O)&&r(v,U,_[U],null,V,L);for(const U in O){if(fo(U))continue;const W=O[U],ee=_[U];W!==ee&&U!=="value"&&r(v,U,ee,W,V,L)}"value"in O&&r(v,"value",_.value,O.value,V)}},b=(v,_,O,L,V,U,W,ee,Q)=>{const Z=_.el=v?v.el:a(""),re=_.anchor=v?v.anchor:a("");let{patchFlag:te,dynamicChildren:oe,slotScopeIds:le}=_;le&&(ee=ee?ee.concat(le):le),v==null?(s(Z,O,L),s(re,O,L),P(_.children||[],O,re,V,U,W,ee,Q)):te>0&&te&64&&oe&&v.dynamicChildren?(I(v.dynamicChildren,oe,O,V,U,W,ee),(_.key!=null||V&&_===V.subTree)&&jb(v,_,!0)):J(v,_,O,re,V,U,W,ee,Q)},D=(v,_,O,L,V,U,W,ee,Q)=>{_.slotScopeIds=ee,v==null?_.shapeFlag&512?V.ctx.activate(_,O,L,W,Q):B(_,O,L,V,U,W,Q):N(v,_,Q)},B=(v,_,O,L,V,U,W)=>{const ee=v.component=h1(v,L,V);if(_c(v)&&(ee.ctx.renderer=M),f1(ee,!1,W),ee.asyncDep){if(V&&V.registerDep(ee,G,W),!v.el){const Q=ee.subTree=se(Ct);y(null,Q,_,O),v.placeholder=Q.el}}else G(ee,v,_,O,V,U,W)},N=(v,_,O)=>{const L=_.component=v.component;if(s1(v,_,O))if(L.asyncDep&&!L.asyncResolved){q(L,_,O);return}else L.next=_,L.update();else _.el=v.el,L.vnode=_},G=(v,_,O,L,V,U,W)=>{const ee=()=>{if(v.isMounted){let{next:te,bu:oe,u:le,parent:Te,vnode:ze}=v;{const Di=zb(v);if(Di){te&&(te.el=ze.el,q(v,te,W)),Di.asyncDep.then(()=>{v.isUnmounted||ee()});return}}let $e=te,qt;cn(v,!1),te?(te.el=ze.el,q(v,te,W)):te=ze,oe&&id(oe),(qt=te.props&&te.props.onVnodeBeforeUpdate)&&Bi(qt,Te,te,ze),cn(v,!0);const Ht=fp(v),Li=v.subTree;v.subTree=Ht,g(Li,Ht,u(Li.el),Y(Li),v,V,U),te.el=Ht.el,$e===null&&n1(v,Ht.el),le&&ni(le,V),(qt=te.props&&te.props.onVnodeUpdated)&&ni(()=>Bi(qt,Te,te,ze),V)}else{let te;const{el:oe,props:le}=_,{bm:Te,m:ze,parent:$e,root:qt,type:Ht}=v,Li=mr(_);cn(v,!1),Te&&id(Te),!Li&&(te=le&&le.onVnodeBeforeMount)&&Bi(te,$e,_),cn(v,!0);{qt.ce&&qt.ce._def.shadowRoot!==!1&&qt.ce._injectChildStyle(Ht);const Di=v.subTree=fp(v);g(null,Di,O,L,v,V,U),_.el=Di.el}if(ze&&ni(ze,V),!Li&&(te=le&&le.onVnodeMounted)){const Di=_;ni(()=>Bi(te,$e,Di),V)}(_.shapeFlag&256||$e&&mr($e.vnode)&&$e.vnode.shapeFlag&256)&&v.a&&ni(v.a,V),v.isMounted=!0,_=O=L=null}};v.scope.on();const Q=v.effect=new Yv(ee);v.scope.off();const Z=v.update=Q.run.bind(Q),re=v.job=Q.runIfDirty.bind(Q);re.i=v,re.id=v.uid,Q.scheduler=()=>Lh(re),cn(v,!0),Z()},q=(v,_,O)=>{_.component=v;const L=v.vnode.props;v.vnode=_,v.next=null,zw(v,_.props,L,O),Hw(v,_.children,O),ms(),sp(v),vs()},J=(v,_,O,L,V,U,W,ee,Q=!1)=>{const Z=v&&v.children,re=v?v.shapeFlag:0,te=_.children,{patchFlag:oe,shapeFlag:le}=_;if(oe>0){if(oe&128){be(Z,te,O,L,V,U,W,ee,Q);return}else if(oe&256){ae(Z,te,O,L,V,U,W,ee,Q);return}}le&8?(re&16&&Pe(Z,V,U),te!==Z&&d(O,te)):re&16?le&16?be(Z,te,O,L,V,U,W,ee,Q):Pe(Z,V,U,!0):(re&8&&d(O,""),le&16&&P(te,O,L,V,U,W,ee,Q))},ae=(v,_,O,L,V,U,W,ee,Q)=>{v=v||fr,_=_||fr;const Z=v.length,re=_.length,te=Math.min(Z,re);let oe;for(oe=0;oere?Pe(v,V,U,!0,!1,te):P(_,O,L,V,U,W,ee,Q,te)},be=(v,_,O,L,V,U,W,ee,Q)=>{let Z=0;const re=_.length;let te=v.length-1,oe=re-1;for(;Z<=te&&Z<=oe;){const le=v[Z],Te=_[Z]=Q?$s(_[Z]):qi(_[Z]);if(Cn(le,Te))g(le,Te,O,null,V,U,W,ee,Q);else break;Z++}for(;Z<=te&&Z<=oe;){const le=v[te],Te=_[oe]=Q?$s(_[oe]):qi(_[oe]);if(Cn(le,Te))g(le,Te,O,null,V,U,W,ee,Q);else break;te--,oe--}if(Z>te){if(Z<=oe){const le=oe+1,Te=leoe)for(;Z<=te;)ke(v[Z],V,U,!0),Z++;else{const le=Z,Te=Z,ze=new Map;for(Z=Te;Z<=oe;Z++){const ii=_[Z]=Q?$s(_[Z]):qi(_[Z]);ii.key!=null&&ze.set(ii.key,Z)}let $e,qt=0;const Ht=oe-Te+1;let Li=!1,Di=0;const qr=new Array(Ht);for(Z=0;Z=Ht){ke(ii,V,U,!0);continue}let Fi;if(ii.key!=null)Fi=ze.get(ii.key);else for($e=Te;$e<=oe;$e++)if(qr[$e-Te]===0&&Cn(ii,_[$e])){Fi=$e;break}Fi===void 0?ke(ii,V,U,!0):(qr[Fi-Te]=Z+1,Fi>=Di?Di=Fi:Li=!0,g(ii,_[Fi],O,null,V,U,W,ee,Q),qt++)}const Xf=Li?Yw(qr):fr;for($e=Xf.length-1,Z=Ht-1;Z>=0;Z--){const ii=Te+Z,Fi=_[ii],Qf=_[ii+1],Zf=ii+1{const{el:U,type:W,transition:ee,children:Q,shapeFlag:Z}=v;if(Z&6){Ee(v.component.subTree,_,O,L);return}if(Z&128){v.suspense.move(_,O,L);return}if(Z&64){W.move(v,_,O,M);return}if(W===ge){s(U,_,O);for(let te=0;teee.enter(U),V);else{const{leave:te,delayLeave:oe,afterLeave:le}=ee,Te=()=>{v.ctx.isUnmounted?n(U):s(U,_,O)},ze=()=>{te(U,()=>{Te(),le&&le()})};oe?oe(U,Te,ze):ze()}else s(U,_,O)},ke=(v,_,O,L=!1,V=!1)=>{const{type:U,props:W,ref:ee,children:Q,dynamicChildren:Z,shapeFlag:re,patchFlag:te,dirs:oe,cacheIndex:le}=v;if(te===-2&&(V=!1),ee!=null&&(ms(),mo(ee,null,O,v,!0),vs()),le!=null&&(_.renderCache[le]=void 0),re&256){_.ctx.deactivate(v);return}const Te=re&1&&oe,ze=!mr(v);let $e;if(ze&&($e=W&&W.onVnodeBeforeUnmount)&&Bi($e,_,v),re&6)ht(v.component,O,L);else{if(re&128){v.suspense.unmount(O,L);return}Te&&ln(v,null,_,"beforeUnmount"),re&64?v.type.remove(v,_,O,M,L):Z&&!Z.hasOnce&&(U!==ge||te>0&&te&64)?Pe(Z,_,O,!1,!0):(U===ge&&te&384||!V&&re&16)&&Pe(Q,_,O),L&&Je(v)}(ze&&($e=W&&W.onVnodeUnmounted)||Te)&&ni(()=>{$e&&Bi($e,_,v),Te&&ln(v,null,_,"unmounted")},O)},Je=v=>{const{type:_,el:O,anchor:L,transition:V}=v;if(_===ge){Ze(O,L);return}if(_===ud){A(v);return}const U=()=>{n(O),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(v.shapeFlag&1&&V&&!V.persisted){const{leave:W,delayLeave:ee}=V,Q=()=>W(O,U);ee?ee(v.el,U,Q):Q()}else U()},Ze=(v,_)=>{let O;for(;v!==_;)O=h(v),n(v),v=O;n(_)},ht=(v,_,O)=>{const{bum:L,scope:V,job:U,subTree:W,um:ee,m:Q,a:Z,parent:re,slots:{__:te}}=v;hp(Q),hp(Z),L&&id(L),re&&ue(te)&&te.forEach(oe=>{re.renderCache[oe]=void 0}),V.stop(),U&&(U.flags|=8,ke(W,v,_,O)),ee&&ni(ee,_),ni(()=>{v.isUnmounted=!0},_),_&&_.pendingBranch&&!_.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===_.pendingId&&(_.deps--,_.deps===0&&_.resolve())},Pe=(v,_,O,L=!1,V=!1,U=0)=>{for(let W=U;W{if(v.shapeFlag&6)return Y(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const _=h(v.anchor||v.el),O=_&&_[pw];return O?h(O):_};let $=!1;const R=(v,_,O)=>{v==null?_._vnode&&ke(_._vnode,null,null,!0):g(_._vnode||null,v,_,null,null,null,O),_._vnode=v,$||($=!0,sp(),mb(),$=!1)},M={p:g,um:ke,m:Ee,r:Je,mt:B,mc:P,pc:J,pbc:I,n:Y,o:t};return{render:R,hydrate:void 0,createApp:Nw(R)}}function dd({type:t,props:e},i){return i==="svg"&&t==="foreignObject"||i==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function cn({effect:t,job:e},i){i?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Gw(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function jb(t,e,i=!1){const s=t.children,n=e.children;if(ue(s)&&ue(n))for(let r=0;r>1,t[i[a]]0&&(e[s]=i[r-1]),i[r]=s)}}for(r=i.length,o=i[r-1];r-- >0;)i[r]=o,o=e[o];return i}function zb(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:zb(e)}function hp(t){if(t)for(let e=0;emi(Jw);function hi(t,e,i){return Vb(t,e,i)}function Vb(t,e,i=qe){const{immediate:s,deep:n,flush:r,once:o}=i,a=pt({},i),l=e&&s||!e&&r!=="post";let c;if(Ho){if(r==="sync"){const f=Xw();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=Wi,f.resume=Wi,f.pause=Wi,f}}const d=At;a.call=(f,p,g)=>Pi(f,d,p,g);let u=!1;r==="post"?a.scheduler=f=>{ni(f,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(f,p)=>{p?f():Lh(f)}),a.augmentJob=f=>{e&&(f.flags|=4),u&&(f.flags|=2,d&&(f.id=d.uid,f.i=d))};const h=dw(t,e,a);return Ho&&(c?c.push(h):l&&h()),h}function Qw(t,e,i){const s=this.proxy,n=nt(t)?t.includes(".")?Ub(s,t):()=>s[t]:t.bind(s,s);let r;he(e)?r=e:(r=e.handler,i=e);const o=ha(this),a=Vb(n,r.bind(s),i);return o(),a}function Ub(t,e){const i=e.split(".");return()=>{let s=t;for(let n=0;ne==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${vi(e)}Modifiers`]||t[`${Vn(e)}Modifiers`];function e1(t,e,...i){if(t.isUnmounted)return;const s=t.vnode.props||qe;let n=i;const r=e.startsWith("update:"),o=r&&Zw(s,e.slice(7));o&&(o.trim&&(n=i.map(d=>nt(d)?d.trim():d)),o.number&&(n=i.map(Ex)));let a,l=s[a=td(e)]||s[a=td(vi(e))];!l&&r&&(l=s[a=td(Vn(e))]),l&&Pi(l,t,6,n);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Pi(c,t,6,n)}}function qb(t,e,i=!1){const s=e.emitsCache,n=s.get(t);if(n!==void 0)return n;const r=t.emits;let o={},a=!1;if(!he(t)){const l=c=>{const d=qb(c,e,!0);d&&(a=!0,pt(o,d))};!i&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(He(t)&&s.set(t,null),null):(ue(r)?r.forEach(l=>o[l]=null):pt(o,r),He(t)&&s.set(t,o),o)}function kc(t,e){return!t||!fc(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ie(t,e[0].toLowerCase()+e.slice(1))||Ie(t,Vn(e))||Ie(t,e))}function fp(t){const{type:e,vnode:i,proxy:s,withProxy:n,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:d,props:u,data:h,setupState:f,ctx:p,inheritAttrs:g}=t,m=Bl(t);let y,C;try{if(i.shapeFlag&4){const A=n||s,x=A;y=qi(c.call(x,A,d,u,f,h,p)),C=a}else{const A=e;y=qi(A.length>1?A(u,{attrs:a,slots:o,emit:l}):A(u,null)),C=e.props?a:t1(a)}}catch(A){yo.length=0,yc(A,t,1),y=se(Ct)}let w=y;if(C&&g!==!1){const A=Object.keys(C),{shapeFlag:x}=w;A.length&&x&7&&(r&&A.some(Sh)&&(C=i1(C,r)),w=Zs(w,C,!1,!0))}return i.dirs&&(w=Zs(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(i.dirs):i.dirs),i.transition&&Vo(w,i.transition),y=w,Bl(m),y}const t1=t=>{let e;for(const i in t)(i==="class"||i==="style"||fc(i))&&((e||(e={}))[i]=t[i]);return e},i1=(t,e)=>{const i={};for(const s in t)(!Sh(s)||!(s.slice(9)in e))&&(i[s]=t[s]);return i};function s1(t,e,i){const{props:s,children:n,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&l>=0){if(l&1024)return!0;if(l&16)return s?pp(s,o,c):!!o;if(l&8){const d=e.dynamicProps;for(let u=0;ut.__isSuspense;function r1(t,e){e&&e.pendingBranch?ue(t)?e.effects.push(...t):e.effects.push(t):fw(t)}const ge=Symbol.for("v-fgt"),Sc=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),ud=Symbol.for("v-stc"),yo=[];let oi=null;function j(t=!1){yo.push(oi=t?null:[])}function o1(){yo.pop(),oi=yo[yo.length-1]||null}let Uo=1;function gp(t,e=!1){Uo+=t,t<0&&oi&&e&&(oi.hasOnce=!0)}function Wb(t){return t.dynamicChildren=Uo>0?oi||fr:null,o1(),Uo>0&&oi&&oi.push(t),t}function H(t,e,i,s,n,r){return Wb(K(t,e,i,s,n,r,!0))}function vt(t,e,i,s,n){return Wb(se(t,e,i,s,n,!0))}function qo(t){return t?t.__v_isVNode===!0:!1}function Cn(t,e){return t.type===e.type&&t.key===e.key}const Kb=({key:t})=>t??null,wl=({ref:t,ref_key:e,ref_for:i})=>(typeof t=="number"&&(t=""+t),t!=null?nt(t)||tt(t)||he(t)?{i:jt,r:t,k:e,f:!!i}:t:null);function K(t,e=null,i=null,s=0,n=null,r=t===ge?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Kb(e),ref:e&&wl(e),scopeId:bb,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:jt};return a?(Bh(l,i),r&128&&t.normalize(l)):i&&(l.shapeFlag|=nt(i)?8:16),Uo>0&&!o&&oi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&oi.push(l),l}const se=a1;function a1(t,e=null,i=null,s=0,n=null,r=!1){if((!t||t===Pw)&&(t=Ct),qo(t)){const a=Zs(t,e,!0);return i&&Bh(a,i),Uo>0&&!r&&oi&&(a.shapeFlag&6?oi[oi.indexOf(t)]=a:oi.push(a)),a.patchFlag=-2,a}if(b1(t)&&(t=t.__vccOpts),e){e=l1(e);let{class:a,style:l}=e;a&&!nt(a)&&(e.class=kr(a)),He(l)&&(ca(l)&&!ue(l)&&(l=pt({},l)),e.style=zt(l))}const o=nt(t)?1:Hb(t)?128:yb(t)?64:He(t)?4:he(t)?2:0;return K(t,e,i,s,n,o,r,!0)}function l1(t){return t?ca(t)||$b(t)?pt({},t):t:null}function Zs(t,e,i=!1,s=!1){const{props:n,ref:r,patchFlag:o,children:a,transition:l}=t,c=e?c1(n||{},e):n,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Kb(c),ref:e&&e.ref?i&&r?ue(r)?r.concat(wl(e)):[r,wl(e)]:wl(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ge?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Zs(t.ssContent),ssFallback:t.ssFallback&&Zs(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&s&&Vo(d,l.clone(d)),d}function ye(t=" ",e=0){return se(Sc,null,t,e)}function Le(t="",e=!1){return e?(j(),vt(Ct,null,t)):se(Ct,null,t)}function qi(t){return t==null||typeof t=="boolean"?se(Ct):ue(t)?se(ge,null,t.slice()):qo(t)?$s(t):se(Sc,null,String(t))}function $s(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Zs(t)}function Bh(t,e){let i=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(ue(e))i=16;else if(typeof e=="object")if(s&65){const n=e.default;n&&(n._c&&(n._d=!1),Bh(t,n()),n._c&&(n._d=!0));return}else{i=32;const n=e._;!n&&!$b(e)?e._ctx=jt:n===3&&jt&&(jt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else he(e)?(e={default:e,_ctx:jt},i=32):(e=String(e),s&64?(i=16,e=[ye(e)]):i=8);t.children=e,t.shapeFlag|=i}function c1(...t){const e={};for(let i=0;iAt||jt;let zl,vu;{const t=vc(),e=(i,s)=>{let n;return(n=t[i])||(n=t[i]=[]),n.push(s),r=>{n.length>1?n.forEach(o=>o(r)):n[0](r)}};zl=e("__VUE_INSTANCE_SETTERS__",i=>At=i),vu=e("__VUE_SSR_SETTERS__",i=>Ho=i)}const ha=t=>{const e=At;return zl(t),t.scope.on(),()=>{t.scope.off(),zl(e)}},mp=()=>{At&&At.scope.off(),zl(null)};function Gb(t){return t.vnode.shapeFlag&4}let Ho=!1;function f1(t,e=!1,i=!1){e&&vu(e);const{props:s,children:n}=t.vnode,r=Gb(t);jw(t,s,r,e),qw(t,n,i||e);const o=r?p1(t,e):void 0;return e&&vu(!1),o}function p1(t,e){const i=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Iw);const{setup:s}=i;if(s){ms();const n=t.setupContext=s.length>1?m1(t):null,r=ha(t),o=da(s,t,0,[t.props,n]),a=jv(o);if(vs(),r(),(a||t.sp)&&!mr(t)&&Cb(t),a){if(o.then(mp,mp),e)return o.then(l=>{vp(t,l)}).catch(l=>{yc(l,t,0)});t.asyncDep=o}else vp(t,o)}else Yb(t)}function vp(t,e,i){he(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:He(e)&&(t.setupState=hb(e)),Yb(t)}function Yb(t,e,i){const s=t.type;t.render||(t.render=s.render||Wi);{const n=ha(t);ms();try{Mw(t)}finally{vs(),n()}}}const g1={get(t,e){return St(t,"get",""),t[e]}};function m1(t){const e=i=>{t.exposed=i||{}};return{attrs:new Proxy(t.attrs,g1),slots:t.slots,emit:t.emit,expose:e}}function zh(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(hb(Rh(t.exposed)),{get(e,i){if(i in e)return e[i];if(i in vo)return vo[i](t)},has(e,i){return i in e||i in vo}})):t.proxy}function v1(t,e=!0){return he(t)?t.displayName||t.name:t.name||e&&t.__name}function b1(t){return he(t)&&"__vccOpts"in t}const je=(t,e)=>lw(t,e,Ho);function Qe(t,e,i){const s=arguments.length;return s===2?He(e)&&!ue(e)?qo(e)?se(t,null,[e]):se(t,e):se(t,null,e):(s>3?i=Array.prototype.slice.call(arguments,2):s===3&&qo(i)&&(i=[i]),se(t,e,i))}const Jb="3.5.18";/** * @vue/runtime-dom v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let fu;const mp=typeof window<"u"&&window.trustedTypes;if(mp)try{fu=mp.createPolicy("vue",{createHTML:t=>t})}catch{}const Yb=fu?t=>fu.createHTML(t):t=>t,b1="http://www.w3.org/2000/svg",y1="http://www.w3.org/1998/Math/MathML",rs=typeof document<"u"?document:null,vp=rs&&rs.createElement("template"),_1={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,s)=>{const n=e==="svg"?rs.createElementNS(b1,t):e==="mathml"?rs.createElementNS(y1,t):i?rs.createElement(t,{is:i}):rs.createElement(t);return t==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:t=>rs.createTextNode(t),createComment:t=>rs.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>rs.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,s,n,r){const o=i?i.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),i),!(n===r||!(n=n.nextSibling)););else{vp.innerHTML=Yb(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const a=vp.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,i)}return[o?o.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},Ss="transition",Wr="animation",Wo=Symbol("_vtc"),Jb={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},x1=pt({},bb,Jb),w1=t=>(t.displayName="Transition",t.props=x1,t),k1=w1((t,{slots:e})=>Xe(mw,S1(t),e)),cn=(t,e=[])=>{de(t)?t.forEach(i=>i(...e)):t&&t(...e)},bp=t=>t?de(t)?t.some(e=>e.length>1):t.length>1:!1;function S1(t){const e={};for(const b in t)b in Jb||(e[b]=t[b]);if(t.css===!1)return e;const{name:i="v",type:s,duration:n,enterFromClass:r=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=t,p=C1(n),g=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:w,onLeave:A,onLeaveCancelled:x,onBeforeAppear:E=y,onAppear:T=C,onAppearCancelled:P=w}=e,k=(b,D,B,N)=>{b._enterCancelled=N,dn(b,D?d:a),dn(b,D?c:o),B&&B()},I=(b,D)=>{b._isLeaving=!1,dn(b,u),dn(b,f),dn(b,h),D&&D()},S=b=>(D,B)=>{const N=b?T:C,W=()=>k(D,b,B);cn(N,[D,W]),yp(()=>{dn(D,b?l:r),Ji(D,b?d:a),bp(N)||_p(D,s,g,W)})};return pt(e,{onBeforeEnter(b){cn(y,[b]),Ji(b,r),Ji(b,o)},onBeforeAppear(b){cn(E,[b]),Ji(b,l),Ji(b,c)},onEnter:S(!1),onAppear:S(!0),onLeave(b,D){b._isLeaving=!0;const B=()=>I(b,D);Ji(b,u),b._enterCancelled?(Ji(b,h),kp()):(kp(),Ji(b,h)),yp(()=>{b._isLeaving&&(dn(b,u),Ji(b,f),bp(A)||_p(b,s,m,B))}),cn(A,[b,B])},onEnterCancelled(b){k(b,!1,void 0,!0),cn(w,[b])},onAppearCancelled(b){k(b,!0,void 0,!0),cn(P,[b])},onLeaveCancelled(b){I(b),cn(x,[b])}})}function C1(t){if(t==null)return null;if(He(t))return[ad(t.enter),ad(t.leave)];{const e=ad(t);return[e,e]}}function ad(t){return Ex(t)}function Ji(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.add(i)),(t[Wo]||(t[Wo]=new Set)).add(e)}function dn(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const i=t[Wo];i&&(i.delete(e),i.size||(t[Wo]=void 0))}function yp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let A1=0;function _p(t,e,i,s){const n=t._endId=++A1,r=()=>{n===t._endId&&s()};if(i!=null)return setTimeout(r,i);const{type:o,timeout:a,propCount:l}=T1(t,e);if(!o)return s();const c=o+"end";let d=0;const u=()=>{t.removeEventListener(c,h),r()},h=f=>{f.target===t&&++d>=l&&u()};setTimeout(()=>{d(i[p]||"").split(", "),n=s(`${Ss}Delay`),r=s(`${Ss}Duration`),o=xp(n,r),a=s(`${Wr}Delay`),l=s(`${Wr}Duration`),c=xp(a,l);let d=null,u=0,h=0;e===Ss?o>0&&(d=Ss,u=o,h=r.length):e===Wr?c>0&&(d=Wr,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?Ss:Wr:null,h=d?d===Ss?r.length:l.length:0);const f=d===Ss&&/\b(transform|all)(,|$)/.test(s(`${Ss}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function xp(t,e){for(;t.lengthwp(i)+wp(t[s])))}function wp(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function kp(){return document.body.offsetHeight}function E1(t,e,i){const s=t[Wo];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}const Sp=Symbol("_vod"),P1=Symbol("_vsh"),O1=Symbol(""),I1=/(^|;)\s*display\s*:/;function M1(t,e,i){const s=t.style,n=nt(i);let r=!1;if(i&&!n){if(e)if(nt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&_l(s,a,"")}else for(const o in e)i[o]==null&&_l(s,o,"");for(const o in i)o==="display"&&(r=!0),_l(s,o,i[o])}else if(n){if(e!==i){const o=s[O1];o&&(i+=";"+o),s.cssText=i,r=I1.test(i)}}else e&&t.removeAttribute("style");Sp in t&&(t[Sp]=r?s.display:"",t[P1]&&(s.display="none"))}const Cp=/\s*!important$/;function _l(t,e,i){if(de(i))i.forEach(s=>_l(t,e,s));else if(i==null&&(i=""),e.startsWith("--"))t.setProperty(e,i);else{const s=R1(t,e);Cp.test(i)?t.setProperty(zn(s),i.replace(Cp,""),"important"):t[s]=i}}const Ap=["Webkit","Moz","ms"],ld={};function R1(t,e){const i=ld[e];if(i)return i;let s=gi(e);if(s!=="filter"&&s in t)return ld[e]=s;s=fc(s);for(let n=0;ncd||(N1.then(()=>cd=0),cd=Date.now());function j1(t,e){const i=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=i.attached)return;Ei(z1(s,i.value),e,5,[s])};return i.value=t,i.attached=B1(),i}function z1(t,e){if(de(e)){const i=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{i.call(t),t._stopped=!0},e.map(s=>n=>!n._stopped&&s&&s(n))}else return e}const Mp=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,V1=(t,e,i,s,n,r)=>{const o=n==="svg";e==="class"?E1(t,s,o):e==="style"?M1(t,i,s):dc(e)?xh(e)||D1(t,e,i,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):U1(t,e,s,o))?(Pp(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ep(t,e,s,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!nt(s))?Pp(t,gi(e),s,r,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),Ep(t,e,s,o))};function U1(t,e,i,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&Mp(e)&&ue(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const n=t.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Mp(e)&&nt(i)?!1:e in t}const q1=pt({patchProp:V1},_1);let Rp;function H1(){return Rp||(Rp=Hw(q1))}const W1=(...t)=>{const e=H1().createApp(...t),{mount:i}=e;return e.mount=s=>{const n=G1(s);if(!n)return;const r=e._component;!ue(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=i(n,!1,K1(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e};function K1(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function G1(t){return nt(t)?document.querySelector(t):t}/*! +**/let bu;const bp=typeof window<"u"&&window.trustedTypes;if(bp)try{bu=bp.createPolicy("vue",{createHTML:t=>t})}catch{}const Xb=bu?t=>bu.createHTML(t):t=>t,y1="http://www.w3.org/2000/svg",_1="http://www.w3.org/1998/Math/MathML",os=typeof document<"u"?document:null,yp=os&&os.createElement("template"),x1={insert:(t,e,i)=>{e.insertBefore(t,i||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,i,s)=>{const n=e==="svg"?os.createElementNS(y1,t):e==="mathml"?os.createElementNS(_1,t):i?os.createElement(t,{is:i}):os.createElement(t);return t==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:t=>os.createTextNode(t),createComment:t=>os.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>os.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,i,s,n,r){const o=i?i.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),i),!(n===r||!(n=n.nextSibling)););else{yp.innerHTML=Xb(s==="svg"?`${t}`:s==="mathml"?`${t}`:t);const a=yp.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,i)}return[o?o.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},Cs="transition",Wr="animation",Wo=Symbol("_vtc"),Qb={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},w1=pt({},_b,Qb),k1=t=>(t.displayName="Transition",t.props=w1,t),S1=k1((t,{slots:e})=>Qe(vw,C1(t),e)),dn=(t,e=[])=>{ue(t)?t.forEach(i=>i(...e)):t&&t(...e)},_p=t=>t?ue(t)?t.some(e=>e.length>1):t.length>1:!1;function C1(t){const e={};for(const b in t)b in Qb||(e[b]=t[b]);if(t.css===!1)return e;const{name:i="v",type:s,duration:n,enterFromClass:r=`${i}-enter-from`,enterActiveClass:o=`${i}-enter-active`,enterToClass:a=`${i}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:u=`${i}-leave-from`,leaveActiveClass:h=`${i}-leave-active`,leaveToClass:f=`${i}-leave-to`}=t,p=A1(n),g=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:w,onLeave:A,onLeaveCancelled:x,onBeforeAppear:E=y,onAppear:T=C,onAppearCancelled:P=w}=e,k=(b,D,B,N)=>{b._enterCancelled=N,un(b,D?d:a),un(b,D?c:o),B&&B()},I=(b,D)=>{b._isLeaving=!1,un(b,u),un(b,f),un(b,h),D&&D()},S=b=>(D,B)=>{const N=b?T:C,G=()=>k(D,b,B);dn(N,[D,G]),xp(()=>{un(D,b?l:r),Xi(D,b?d:a),_p(N)||wp(D,s,g,G)})};return pt(e,{onBeforeEnter(b){dn(y,[b]),Xi(b,r),Xi(b,o)},onBeforeAppear(b){dn(E,[b]),Xi(b,l),Xi(b,c)},onEnter:S(!1),onAppear:S(!0),onLeave(b,D){b._isLeaving=!0;const B=()=>I(b,D);Xi(b,u),b._enterCancelled?(Xi(b,h),Cp()):(Cp(),Xi(b,h)),xp(()=>{b._isLeaving&&(un(b,u),Xi(b,f),_p(A)||wp(b,s,m,B))}),dn(A,[b,B])},onEnterCancelled(b){k(b,!1,void 0,!0),dn(w,[b])},onAppearCancelled(b){k(b,!0,void 0,!0),dn(P,[b])},onLeaveCancelled(b){I(b),dn(x,[b])}})}function A1(t){if(t==null)return null;if(He(t))return[hd(t.enter),hd(t.leave)];{const e=hd(t);return[e,e]}}function hd(t){return Px(t)}function Xi(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.add(i)),(t[Wo]||(t[Wo]=new Set)).add(e)}function un(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const i=t[Wo];i&&(i.delete(e),i.size||(t[Wo]=void 0))}function xp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let T1=0;function wp(t,e,i,s){const n=t._endId=++T1,r=()=>{n===t._endId&&s()};if(i!=null)return setTimeout(r,i);const{type:o,timeout:a,propCount:l}=E1(t,e);if(!o)return s();const c=o+"end";let d=0;const u=()=>{t.removeEventListener(c,h),r()},h=f=>{f.target===t&&++d>=l&&u()};setTimeout(()=>{d(i[p]||"").split(", "),n=s(`${Cs}Delay`),r=s(`${Cs}Duration`),o=kp(n,r),a=s(`${Wr}Delay`),l=s(`${Wr}Duration`),c=kp(a,l);let d=null,u=0,h=0;e===Cs?o>0&&(d=Cs,u=o,h=r.length):e===Wr?c>0&&(d=Wr,u=c,h=l.length):(u=Math.max(o,c),d=u>0?o>c?Cs:Wr:null,h=d?d===Cs?r.length:l.length:0);const f=d===Cs&&/\b(transform|all)(,|$)/.test(s(`${Cs}Property`).toString());return{type:d,timeout:u,propCount:h,hasTransform:f}}function kp(t,e){for(;t.lengthSp(i)+Sp(t[s])))}function Sp(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Cp(){return document.body.offsetHeight}function P1(t,e,i){const s=t[Wo];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):i?t.setAttribute("class",e):t.className=e}const Ap=Symbol("_vod"),O1=Symbol("_vsh"),I1=Symbol(""),M1=/(^|;)\s*display\s*:/;function R1(t,e,i){const s=t.style,n=nt(i);let r=!1;if(i&&!n){if(e)if(nt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();i[a]==null&&kl(s,a,"")}else for(const o in e)i[o]==null&&kl(s,o,"");for(const o in i)o==="display"&&(r=!0),kl(s,o,i[o])}else if(n){if(e!==i){const o=s[I1];o&&(i+=";"+o),s.cssText=i,r=M1.test(i)}}else e&&t.removeAttribute("style");Ap in t&&(t[Ap]=r?s.display:"",t[O1]&&(s.display="none"))}const Tp=/\s*!important$/;function kl(t,e,i){if(ue(i))i.forEach(s=>kl(t,e,s));else if(i==null&&(i=""),e.startsWith("--"))t.setProperty(e,i);else{const s=$1(t,e);Tp.test(i)?t.setProperty(Vn(s),i.replace(Tp,""),"important"):t[s]=i}}const Ep=["Webkit","Moz","ms"],fd={};function $1(t,e){const i=fd[e];if(i)return i;let s=vi(e);if(s!=="filter"&&s in t)return fd[e]=s;s=mc(s);for(let n=0;npd||(B1.then(()=>pd=0),pd=Date.now());function z1(t,e){const i=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=i.attached)return;Pi(V1(s,i.value),e,5,[s])};return i.value=t,i.attached=j1(),i}function V1(t,e){if(ue(e)){const i=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{i.call(t),t._stopped=!0},e.map(s=>n=>!n._stopped&&s&&s(n))}else return e}const $p=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,U1=(t,e,i,s,n,r)=>{const o=n==="svg";e==="class"?P1(t,s,o):e==="style"?R1(t,i,s):fc(e)?Sh(e)||F1(t,e,i,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):q1(t,e,s,o))?(Ip(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Op(t,e,s,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!nt(s))?Ip(t,vi(e),s,r,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),Op(t,e,s,o))};function q1(t,e,i,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&$p(e)&&he(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const n=t.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return $p(e)&&nt(i)?!1:e in t}const H1=pt({patchProp:U1},x1);let Lp;function W1(){return Lp||(Lp=Ww(H1))}const K1=(...t)=>{const e=W1().createApp(...t),{mount:i}=e;return e.mount=s=>{const n=Y1(s);if(!n)return;const r=e._component;!he(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const o=i(n,!1,G1(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),o},e};function G1(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Y1(t){return nt(t)?document.querySelector(t):t}/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let Xb;const wc=t=>Xb=t,Qb=Symbol();function pu(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var _o;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(_o||(_o={}));function Y1(){const t=Hv(!0),e=t.run(()=>Vn({}));let i=[],s=[];const n=Oh({install(r){wc(n),n._a=r,r.provide(Qb,n),r.config.globalProperties.$pinia=n,s.forEach(o=>i.push(o)),s=[]},use(r){return this._a?i.push(r):s.push(r),this},_p:i,_a:null,_e:t,_s:new Map,state:e});return n}const Zb=()=>{};function $p(t,e,i,s=Zb){t.push(e);const n=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),s())};return!i&&Wv()&&Lx(n),n}function Gn(t,...e){t.slice().forEach(i=>{i(...e)})}const J1=t=>t(),Lp=Symbol(),dd=Symbol();function gu(t,e){t instanceof Map&&e instanceof Map?e.forEach((i,s)=>t.set(s,i)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const i in e){if(!e.hasOwnProperty(i))continue;const s=e[i],n=t[i];pu(n)&&pu(s)&&t.hasOwnProperty(i)&&!et(s)&&!Hs(s)?t[i]=gu(n,s):t[i]=s}return t}const X1=Symbol();function Q1(t){return!pu(t)||!t.hasOwnProperty(X1)}const{assign:Ps}=Object;function Z1(t){return!!(et(t)&&t.effect)}function ek(t,e,i,s){const{state:n,actions:r,getters:o}=e,a=i.state.value[t];let l;function c(){a||(i.state.value[t]=n?n():{});const d=sw(i.state.value[t]);return Ps(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Oh(Be(()=>{wc(i);const f=i._s.get(t);return o[h].call(f,f)})),u),{}))}return l=ey(t,c,e,i,s,!0),l}function ey(t,e,i={},s,n,r){let o;const a=Ps({actions:{}},i),l={deep:!0};let c,d,u=[],h=[],f;const p=s.state.value[t];!r&&!p&&(s.state.value[t]={}),Vn({});let g;function m(P){let k;c=d=!1,typeof P=="function"?(P(s.state.value[t]),k={type:_o.patchFunction,storeId:t,events:f}):(gu(s.state.value[t],P),k={type:_o.patchObject,payload:P,storeId:t,events:f});const I=g=Symbol();ca().then(()=>{g===I&&(c=!0)}),d=!0,Gn(u,k,s.state.value[t])}const y=r?function(){const{state:k}=i,I=k?k():{};this.$patch(S=>{Ps(S,I)})}:Zb;function C(){o.stop(),u=[],h=[],s._s.delete(t)}const w=(P,k="")=>{if(Lp in P)return P[dd]=k,P;const I=function(){wc(s);const S=Array.from(arguments),b=[],D=[];function B(U){b.push(U)}function N(U){D.push(U)}Gn(h,{args:S,name:I[dd],store:x,after:B,onError:N});let W;try{W=P.apply(this&&this.$id===t?this:x,S)}catch(U){throw Gn(D,U),U}return W instanceof Promise?W.then(U=>(Gn(b,U),U)).catch(U=>(Gn(D,U),Promise.reject(U))):(Gn(b,W),W)};return I[Lp]=!0,I[dd]=k,I},A={_p:s,$id:t,$onAction:$p.bind(null,h),$patch:m,$reset:y,$subscribe(P,k={}){const I=$p(u,P,k.detached,()=>S()),S=o.run(()=>di(()=>s.state.value[t],b=>{(k.flush==="sync"?d:c)&&P({storeId:t,type:_o.direct,events:f},b)},Ps({},l,k)));return I},$dispose:C},x=Dr(A);s._s.set(t,x);const T=(s._a&&s._a.runWithContext||J1)(()=>s._e.run(()=>(o=Hv()).run(()=>e({action:w}))));for(const P in T){const k=T[P];if(et(k)&&!Z1(k)||Hs(k))r||(p&&Q1(k)&&(et(k)?k.value=p[P]:gu(k,p[P])),s.state.value[t][P]=k);else if(typeof k=="function"){const I=w(k,P);T[P]=I,a.actions[P]=k}}return Ps(x,T),Ps(we(x),T),Object.defineProperty(x,"$state",{get:()=>s.state.value[t],set:P=>{m(k=>{Ps(k,P)})}}),s._p.forEach(P=>{Ps(x,o.run(()=>P({store:x,app:s._a,pinia:s,options:a})))}),p&&r&&i.hydrate&&i.hydrate(x.$state,p),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function ty(t,e,i){let s,n;const r=typeof e=="function";typeof t=="string"?(s=t,n=r?i:e):(n=t,s=t.id);function o(a,l){const c=Nw();return a=a||(c?pi(Qb,null):null),a&&wc(a),a=Xb,a._s.has(s)||(r?ey(s,e,n,a):ek(s,n,a)),a._s.get(s)}return o.$id=s,o}var Wt,Yn,tk=Object.defineProperty,ik=Object.prototype.hasOwnProperty,Dp=Object.getOwnPropertySymbols,sk=Object.prototype.propertyIsEnumerable,Fp=(t,e,i)=>e in t?tk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Et=(t,e)=>{for(var i in e||(e={}))ik.call(e,i)&&Fp(t,i,e[i]);if(Dp)for(var i of Dp(e))sk.call(e,i)&&Fp(t,i,e[i]);return t};function mu(t,e){const i=(e=(e=e.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let s=t;for(const n of i){if(!(n in s))return;s=s[n]}return s}function Np(t){return!Array.isArray(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function nk(t,e){if(function(i){return i&&typeof i.custom=="function"}(e)&&!e.custom(e.value,t))return!1;if(!function(i){return Array.isArray(i.keys)}(e)||e.value===null||e.value===void 0||e.value.length===0)return!0;for(const i of e.keys){const s=mu(t,i);if(s!=null){const n=Array.isArray(e.value)?e.value:[e.value];for(const r of n)if(e.exact){if(s.toString()===r.toString())return!0}else if(s.toString().toLowerCase().includes(r.toString().toLowerCase()))return!0}}return!1}(Yn=Wt||(Wt={}))[Yn.DESC=-1]="DESC",Yn[Yn.NONE=0]="NONE",Yn[Yn.ASC=1]="ASC";let rk=class{constructor(e){this.state=Dr({data:[],filters:{},selectedRows:[],selectionMode:"single",selectOnClick:!0,selectedClass:"",hideSortIcons:!1,sortId:null,sortKey:null,customSort:null,sortOrder:Wt.NONE,currentPage:0,pageSize:void 0,sortIconPosition:"after",sortHeaderClass:""}),this.emit=e,this.filteredData=Be(()=>this.state.data.length===0?[]:Object.keys(this.state.filters).length===0?this.state.data:function(s,n){const r=[];for(const o of s){let a=!0;for(const l of Object.keys(n))if(!nk(o,n[l])){a=!1;break}a&&r.push(o)}return r}(this.state.data,this.state.filters)),this.sortedData=Be(()=>{return(this.state.sortKey||this.state.customSort)&&this.state.sortOrder!==0?(s=this.filteredData.value,n=this.state.sortKey,r=this.state.customSort,o=this.state.sortOrder,[...s].sort((a,l)=>{if(typeof r=="function")return r(a,l,o);let c,d;if(n?typeof n=="function"?(c=n(a,o),d=n(l,o)):(c=mu(a,n),d=mu(l,n)):(c=null,d=null),c==null&&(c=""),d==null&&(d=""),Np(c)&&Np(d))return(c-d)*o;const u=c.toString(),h=d.toString();return u.localeCompare(h)*o})):this.filteredData.value;var s,n,r,o}),this.totalItems=Be(()=>this.filteredData.value.length),this.totalPages=Be(()=>{return this.state.pageSize?(s=this.totalItems.value,n=this.state.pageSize,s<=n?1:Math.ceil(s/n)):0;var s,n}),di(this.totalPages,s=>{this.emit("totalPagesChanged",s)},{immediate:!0}),this.paginationEnabled=Be(()=>this.state.pageSize);const i=Be(()=>this.paginationEnabled.value&&this.state.currentPage>this.totalPages.value);di(i,s=>{s&&this.paginationEnabled.value&&(this.state.currentPage=1,this.emit("update:currentPage",this.state.currentPage))}),this.displayData=Be(()=>this.paginationEnabled.value?function(s,n,r){if(s.length<=n||n<=0||r<=0)return s;const o=(r-1)*n,a=o+n;return[...s].slice(o,a)}(this.sortedData.value,this.state.pageSize,this.state.currentPage):this.sortedData.value),di(this.displayData,s=>{this.emit("totalItemsChanged",s.length)}),this.tableState=Be(()=>({rows:this.displayData.value,rowsPrePagination:this.sortedData.value,selectedRows:this.state.selectedRows})),di(this.tableState,s=>{this.emit("stateChanged",s)},{immediate:!0,deep:!0})}revealItem(e){if(!this.paginationEnabled.value)return!1;let i;return i=typeof e=="function"?this.sortedData.value.findIndex(e):this.sortedData.value.indexOf(e),i!==-1&&(this.emit("update:currentPage",Math.ceil((i+1)/this.state.pageSize)),!0)}selectRow(e){this.state.selectionMode!=="single"?this.state.selectedRows.includes(e)||this.state.selectedRows.push(e):this.state.selectedRows=[e]}selectRows(e){for(const i of e)this.selectRow(i)}deselectRow(e){const i=this.state.selectedRows.indexOf(e);i>-1&&this.state.selectedRows.splice(i,1)}deselectRows(e){for(const i of e)this.deselectRow(i)}selectAll(){this.state.selectionMode!=="single"&&(this.state.selectedRows=[...this.state.data])}deselectAll(){this.state.selectedRows=[]}setSort({sortKey:e,customSort:i,sortOrder:s,sortId:n}){this.state.sortKey=e,this.state.customSort=i,this.state.sortOrder=s,this.state.sortId=n}syncProp(e,i,s=!1){di(i,()=>{this.state[e]=i.value},{immediate:!0,deep:s})}};const Bh=Symbol("store-key");var Bp=Se({name:"VTable",props:{data:{type:Array,required:!0},filters:{type:Object,required:!1,default:()=>({})},currentPage:{type:Number,required:!1,default:void 0},pageSize:{type:Number,required:!1,default:void 0},selectionMode:{type:String,required:!1,default:"single",validator:t=>["single","multiple"].includes(t)},selectedClass:{required:!1,type:String,default:"vt-selected"},selectOnClick:{required:!1,type:Boolean,default:!0},hideSortIcons:{required:!1,type:Boolean,default:!1},sortIconPosition:{required:!1,type:String,default:"after"},sortHeaderClass:{type:String,required:!1,default:""}},emits:{stateChanged:t=>!0,totalPagesChanged:t=>!0,totalItemsChanged:t=>!0},setup(t,e){const i=new rk(e.emit);bo(Bh,i),i.syncProp("data",Di(t,"data")),i.syncProp("filters",Di(t,"filters"),!0),i.syncProp("currentPage",Di(t,"currentPage")),i.syncProp("pageSize",Di(t,"pageSize")),i.syncProp("selectionMode",Di(t,"selectionMode")),i.syncProp("selectedClass",Di(t,"selectedClass")),i.syncProp("selectOnClick",Di(t,"selectOnClick")),i.syncProp("hideSortIcons",Di(t,"hideSortIcons")),i.syncProp("sortIconPosition",Di(t,"sortIconPosition")),i.syncProp("sortHeaderClass",Di(t,"sortHeaderClass"));const s=Be(()=>i.state.selectedRows.length===i.state.data.length);return{store:i,tableState:i.tableState,allRowsSelected:s,toggleAllRows:()=>s.value?i.deselectAll():i.selectAll(),selectAll:()=>i.selectAll(),deselectAll:()=>i.deselectAll(),selectRows:n=>i.selectRows(n),selectRow:n=>i.selectRow(n),deselectRows:n=>i.deselectRows(n),deselectRow:n=>i.deselectRow(n),revealItem:n=>i.revealItem(n),slots:e.slots}},render(){return Xe("table",{class:"v-table"},[Xe("thead",this.slots.head?this.slots.head({rows:this.tableState.rows,selectedRows:this.tableState.selectedRows,toggleAllRows:this.toggleAllRows,selectAll:this.selectAll,deselectAll:this.deselectAll,allRowsSelected:this.allRowsSelected}):void 0),Xe("tbody",this.slots.body?this.slots.body({rows:this.tableState.rows,selectedRows:this.tableState.selectedRows,selectRow:this.selectRow,deselectRow:this.deselectRow}):void 0)])}});function Oa(t){var e;const i={width:16,height:16,xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${t.vbWidth} ${t.vbHeight}`},s={fill:"currentColor",d:t.d,opacity:(e=t.opacity)!=null?e:1};return Xe("svg",Et(Et({attrs:i},i),{style:Et({},t.disabled?{color:"#9CA3AF"}:{})}),[Xe("path",Et({attrs:s},s))])}var ok=Se({name:"VTh",props:{sortKey:{type:[String,Function],required:!1,default:null},customSort:{type:[Function,Object],required:!1,default:null},defaultSort:{type:String,required:!1,validator:t=>["asc","desc",null].includes(t),default:null}},emits:["defaultSort","sortChanged"],setup(t,{emit:e,slots:i}){const s=pi(Bh);if(!t.sortKey&&!t.customSort)throw new Error("Must provide the Sort Key value or a Custom Sort function.");const n="_"+Math.random().toString(36).substr(2,9),r=Vn(Wt.NONE);yc(()=>{t.defaultSort&&(r.value=t.defaultSort==="desc"?Wt.DESC:Wt.ASC,s.setSort({sortOrder:r.value,sortKey:t.sortKey,customSort:t.customSort,sortId:n}),ca(()=>{e("defaultSort"),e("sortChanged",{sortOrder:r.value})}))});const o=Be(()=>{if(!s.state.hideSortIcons)return function(c){const d={width:16,height:16,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},u=()=>({fill:"currentColor",opacity:c===Wt.NONE||c===Wt.ASC?.4:1,d:"M41.05 288.05h238c21.4 0 32.1 25.9 17 41l-119 119a23.9 23.9 0 0 1-33.8.1l-.1-.1-119.1-119c-15.05-15.05-4.4-41 17-41z"}),h=()=>({fill:"currentColor",opacity:c===Wt.NONE||c===Wt.DESC?.4:1,d:"M24.05 183.05l119.1-119A23.9 23.9 0 0 1 177 64a.94.94 0 0 1 .1.1l119 119c15.1 15.1 4.4 41-17 41h-238c-21.45-.05-32.1-25.95-17.05-41.05z"});return Xe("svg",Et({attrs:d},d),[Xe("g",[Xe("path",Et({attrs:u()},u())),Xe("path",Et({attrs:h()},h()))])])}(r.value)});di(()=>s.state.sortId,()=>{s.state.sortId!==n&&r.value!==0&&(r.value=0)});const a=()=>{[Wt.DESC,Wt.NONE].includes(r.value)?r.value=Wt.ASC:r.value=Wt.DESC,s.setSort({sortOrder:r.value,sortKey:t.sortKey,customSort:t.customSort,sortId:n}),e("sortChanged",{sortOrder:r.value})},l=Be(()=>{const c=[];return s.state.sortIconPosition!=="before"||s.state.hideSortIcons||c.push(o.value),i.default&&c.push(Xe("span",[i.default({sortOrder:r.value})])),s.state.sortIconPosition!=="after"||s.state.hideSortIcons||c.push(o.value),c});return()=>Xe("th",Et({class:"v-th"},{onClick:a}),[Xe("div",{class:s.state.sortHeaderClass},l.value)])}}),ak=Se({name:"VTr",props:{row:{type:Object,required:!0}},setup(t,{slots:e}){const i=pi(Bh),s=Be(()=>i.state.selectedRows.find(a=>a===t.row)),n=Be(()=>s.value?i.state.selectedClass:""),r=Be(()=>Et({},i.state.selectOnClick?{cursor:"pointer"}:{})),o=a=>{const l=a.target;l&&l.tagName.toLowerCase()==="td"&&(s.value?i.deselectRow(t.row):i.selectRow(t.row))};return()=>Xe("tr",Et(Et({class:n.value,style:r.value},i.state.selectOnClick?{onClick:o}:{}),{on:Et({},i.state.selectOnClick?{click:o}:{})}),e.default?e.default({isSelected:s.value,toggle:()=>s.value?i.deselectRow(t.row):i.selectRow(t.row)}):[])}}),lk=Se({name:"VTPagination",props:{currentPage:{type:Number,required:!0},totalPages:{type:Number,required:!0},hideSinglePage:{required:!1,type:Boolean,default:!0},maxPageLinks:{required:!1,type:Number,default:NaN},boundaryLinks:{required:!1,type:Boolean,default:!1},directionLinks:{required:!1,type:Boolean,default:!0}},setup(t,{slots:e,emit:i}){const s=Be(()=>isNaN(t.maxPageLinks)||t.maxPageLinks<=0?(()=>{const d=[];for(let u=1;u<=t.totalPages;u++)d.push({title:u.toString(),value:u});return d})():(()=>{const d=[],u=Math.ceil(t.totalPages/t.maxPageLinks),h=Math.ceil((t.currentPage||1)/t.maxPageLinks);let f=(h-1)*t.maxPageLinks+1;const p=Math.min(f+t.maxPageLinks-1,t.totalPages),g=p-f+1,m=t.maxPageLinks-g;h===u&&h>1&&m>0&&(f-=m),h>1&&d.push({title:"...",value:f-1});for(let y=f;y<=p&&!(y>t.totalPages);y++)d.push({title:y.toString(),value:y});return h{d<1||d>t.totalPages||d===t.currentPage||i("update:currentPage",d)},r=()=>{t.currentPage?t.currentPage{t.currentPage?t.currentPage>1&&i("update:currentPage",t.currentPage-1):i("update:currentPage",1)},a=()=>{i("update:currentPage",1)},l=()=>{i("update:currentPage",t.totalPages)},c=(d,u,h,f=!1)=>Xe("li",{class:["page-item",{disabled:h,active:f}]},[Xe("a",Et(Et({class:"page-link",style:Et({},h?{cursor:"not-allowed"}:{}),attrs:{href:"javascript:void(0)"},href:"javascript:void(0)"},h?{}:{onClick:u}),{on:Et({},h?{}:{click:u})}),[d])]);return()=>{var d,u,h,f,p,g,m,y;if(t.hideSinglePage&&t.totalPages===1)return Xe("");const C=[];if(t.boundaryLinks){const w=Oa({vbWidth:512,vbHeight:512,d:"M34.5 239L228.9 44.7c9.4-9.4 24.6-9.4 33.9 0l22.7 22.7c9.4 9.4 9.4 24.5 0 33.9L131.5 256l154 154.7c9.3 9.4 9.3 24.5 0 33.9l-22.7 22.7c-9.4 9.4-24.6 9.4-33.9 0L34.5 273c-9.3-9.4-9.3-24.6 0-34zm192 34l194.3 194.3c9.4 9.4 24.6 9.4 33.9 0l22.7-22.7c9.4-9.4 9.4-24.5 0-33.9L323.5 256l154-154.7c9.3-9.4 9.3-24.5 0-33.9l-22.7-22.7c-9.4-9.4-24.6-9.4-33.9 0L226.5 239c-9.3 9.4-9.3 24.6 0 34z"}),A=t.currentPage===1,x=(u=(d=e.firstPage)==null?void 0:d.call(e,{disabled:A}))!=null?u:w;C.push(c(x,a,A))}if(t.directionLinks){const w=Oa({vbWidth:320,vbHeight:512,d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"}),A=t.currentPage===1,x=(f=(h=e.previous)==null?void 0:h.call(e,{disabled:A}))!=null?f:w;C.push(c(x,o,A))}for(const w of s.value)C.push(c(w.title,()=>n(w.value),!1,w.value===t.currentPage));if(t.directionLinks){const w=Oa({vbWidth:320,vbHeight:512,d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}),A=t.currentPage===t.totalPages,x=(g=(p=e.next)==null?void 0:p.call(e,{disabled:A}))!=null?g:w;C.push(c(x,r,A))}if(t.boundaryLinks){const w=Oa({vbWidth:512,vbHeight:512,d:"M477.5 273L283.1 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.7-22.7c-9.4-9.4-9.4-24.5 0-33.9l154-154.7-154-154.7c-9.3-9.4-9.3-24.5 0-33.9l22.7-22.7c9.4-9.4 24.6-9.4 33.9 0L477.5 239c9.3 9.4 9.3 24.6 0 34zm-192-34L91.1 44.7c-9.4-9.4-24.6-9.4-33.9 0L34.5 67.4c-9.4 9.4-9.4 24.5 0 33.9l154 154.7-154 154.7c-9.3 9.4-9.3 24.5 0 33.9l22.7 22.7c9.4 9.4 24.6 9.4 33.9 0L285.5 273c9.3-9.4 9.3-24.6 0-34z"}),A=t.currentPage===t.totalPages,x=(y=(m=e.lastPage)==null?void 0:m.call(e,{disabled:A}))!=null?y:w;C.push(c(x,l,A))}return Xe("nav",{class:"vt-pagination"},[Xe("ul",{class:"pagination"},[C])])}}}),ck={install(t,e={}){["hideSortIcons","sortIconPosition","sortHeaderClass"].forEach(i=>{e.hasOwnProperty(i)&&(Bp.props[i].default=e[i])}),t.component("VTable",Bp),t.component("VTh",ok),t.component("VTr",ak),t.component("VTPagination",lk)}};/*! + */let Zb;const Cc=t=>Zb=t,ey=Symbol();function yu(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var _o;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(_o||(_o={}));function J1(){const t=Kv(!0),e=t.run(()=>Un({}));let i=[],s=[];const n=Rh({install(r){Cc(n),n._a=r,r.provide(ey,n),r.config.globalProperties.$pinia=n,s.forEach(o=>i.push(o)),s=[]},use(r){return this._a?i.push(r):s.push(r),this},_p:i,_a:null,_e:t,_s:new Map,state:e});return n}const ty=()=>{};function Dp(t,e,i,s=ty){t.push(e);const n=()=>{const r=t.indexOf(e);r>-1&&(t.splice(r,1),s())};return!i&&Gv()&&Dx(n),n}function Gn(t,...e){t.slice().forEach(i=>{i(...e)})}const X1=t=>t(),Fp=Symbol(),gd=Symbol();function _u(t,e){t instanceof Map&&e instanceof Map?e.forEach((i,s)=>t.set(s,i)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const i in e){if(!e.hasOwnProperty(i))continue;const s=e[i],n=t[i];yu(n)&&yu(s)&&t.hasOwnProperty(i)&&!tt(s)&&!Ws(s)?t[i]=_u(n,s):t[i]=s}return t}const Q1=Symbol();function Z1(t){return!yu(t)||!t.hasOwnProperty(Q1)}const{assign:Os}=Object;function ek(t){return!!(tt(t)&&t.effect)}function tk(t,e,i,s){const{state:n,actions:r,getters:o}=e,a=i.state.value[t];let l;function c(){a||(i.state.value[t]=n?n():{});const d=nw(i.state.value[t]);return Os(d,r,Object.keys(o||{}).reduce((u,h)=>(u[h]=Rh(je(()=>{Cc(i);const f=i._s.get(t);return o[h].call(f,f)})),u),{}))}return l=iy(t,c,e,i,s,!0),l}function iy(t,e,i={},s,n,r){let o;const a=Os({actions:{}},i),l={deep:!0};let c,d,u=[],h=[],f;const p=s.state.value[t];!r&&!p&&(s.state.value[t]={}),Un({});let g;function m(P){let k;c=d=!1,typeof P=="function"?(P(s.state.value[t]),k={type:_o.patchFunction,storeId:t,events:f}):(_u(s.state.value[t],P),k={type:_o.patchObject,payload:P,storeId:t,events:f});const I=g=Symbol();ua().then(()=>{g===I&&(c=!0)}),d=!0,Gn(u,k,s.state.value[t])}const y=r?function(){const{state:k}=i,I=k?k():{};this.$patch(S=>{Os(S,I)})}:ty;function C(){o.stop(),u=[],h=[],s._s.delete(t)}const w=(P,k="")=>{if(Fp in P)return P[gd]=k,P;const I=function(){Cc(s);const S=Array.from(arguments),b=[],D=[];function B(q){b.push(q)}function N(q){D.push(q)}Gn(h,{args:S,name:I[gd],store:x,after:B,onError:N});let G;try{G=P.apply(this&&this.$id===t?this:x,S)}catch(q){throw Gn(D,q),q}return G instanceof Promise?G.then(q=>(Gn(b,q),q)).catch(q=>(Gn(D,q),Promise.reject(q))):(Gn(b,G),G)};return I[Fp]=!0,I[gd]=k,I},A={_p:s,$id:t,$onAction:Dp.bind(null,h),$patch:m,$reset:y,$subscribe(P,k={}){const I=Dp(u,P,k.detached,()=>S()),S=o.run(()=>hi(()=>s.state.value[t],b=>{(k.flush==="sync"?d:c)&&P({storeId:t,type:_o.direct,events:f},b)},Os({},l,k)));return I},$dispose:C},x=Dr(A);s._s.set(t,x);const T=(s._a&&s._a.runWithContext||X1)(()=>s._e.run(()=>(o=Kv()).run(()=>e({action:w}))));for(const P in T){const k=T[P];if(tt(k)&&!ek(k)||Ws(k))r||(p&&Z1(k)&&(tt(k)?k.value=p[P]:_u(k,p[P])),s.state.value[t][P]=k);else if(typeof k=="function"){const I=w(k,P);T[P]=I,a.actions[P]=k}}return Os(x,T),Os(Se(x),T),Object.defineProperty(x,"$state",{get:()=>s.state.value[t],set:P=>{m(k=>{Os(k,P)})}}),s._p.forEach(P=>{Os(x,o.run(()=>P({store:x,app:s._a,pinia:s,options:a})))}),p&&r&&i.hydrate&&i.hydrate(x.$state,p),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function sy(t,e,i){let s,n;const r=typeof e=="function";typeof t=="string"?(s=t,n=r?i:e):(n=t,s=t.id);function o(a,l){const c=Bw();return a=a||(c?mi(ey,null):null),a&&Cc(a),a=Zb,a._s.has(s)||(r?iy(s,e,n,a):tk(s,n,a)),a._s.get(s)}return o.$id=s,o}var Gt,Yn,ik=Object.defineProperty,sk=Object.prototype.hasOwnProperty,Np=Object.getOwnPropertySymbols,nk=Object.prototype.propertyIsEnumerable,Bp=(t,e,i)=>e in t?ik(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Et=(t,e)=>{for(var i in e||(e={}))sk.call(e,i)&&Bp(t,i,e[i]);if(Np)for(var i of Np(e))nk.call(e,i)&&Bp(t,i,e[i]);return t};function xu(t,e){const i=(e=(e=e.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let s=t;for(const n of i){if(!(n in s))return;s=s[n]}return s}function jp(t){return!Array.isArray(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function rk(t,e){if(function(i){return i&&typeof i.custom=="function"}(e)&&!e.custom(e.value,t))return!1;if(!function(i){return Array.isArray(i.keys)}(e)||e.value===null||e.value===void 0||e.value.length===0)return!0;for(const i of e.keys){const s=xu(t,i);if(s!=null){const n=Array.isArray(e.value)?e.value:[e.value];for(const r of n)if(e.exact){if(s.toString()===r.toString())return!0}else if(s.toString().toLowerCase().includes(r.toString().toLowerCase()))return!0}}return!1}(Yn=Gt||(Gt={}))[Yn.DESC=-1]="DESC",Yn[Yn.NONE=0]="NONE",Yn[Yn.ASC=1]="ASC";let ok=class{constructor(e){this.state=Dr({data:[],filters:{},selectedRows:[],selectionMode:"single",selectOnClick:!0,selectedClass:"",hideSortIcons:!1,sortId:null,sortKey:null,customSort:null,sortOrder:Gt.NONE,currentPage:0,pageSize:void 0,sortIconPosition:"after",sortHeaderClass:""}),this.emit=e,this.filteredData=je(()=>this.state.data.length===0?[]:Object.keys(this.state.filters).length===0?this.state.data:function(s,n){const r=[];for(const o of s){let a=!0;for(const l of Object.keys(n))if(!rk(o,n[l])){a=!1;break}a&&r.push(o)}return r}(this.state.data,this.state.filters)),this.sortedData=je(()=>{return(this.state.sortKey||this.state.customSort)&&this.state.sortOrder!==0?(s=this.filteredData.value,n=this.state.sortKey,r=this.state.customSort,o=this.state.sortOrder,[...s].sort((a,l)=>{if(typeof r=="function")return r(a,l,o);let c,d;if(n?typeof n=="function"?(c=n(a,o),d=n(l,o)):(c=xu(a,n),d=xu(l,n)):(c=null,d=null),c==null&&(c=""),d==null&&(d=""),jp(c)&&jp(d))return(c-d)*o;const u=c.toString(),h=d.toString();return u.localeCompare(h)*o})):this.filteredData.value;var s,n,r,o}),this.totalItems=je(()=>this.filteredData.value.length),this.totalPages=je(()=>{return this.state.pageSize?(s=this.totalItems.value,n=this.state.pageSize,s<=n?1:Math.ceil(s/n)):0;var s,n}),hi(this.totalPages,s=>{this.emit("totalPagesChanged",s)},{immediate:!0}),this.paginationEnabled=je(()=>this.state.pageSize);const i=je(()=>this.paginationEnabled.value&&this.state.currentPage>this.totalPages.value);hi(i,s=>{s&&this.paginationEnabled.value&&(this.state.currentPage=1,this.emit("update:currentPage",this.state.currentPage))}),this.displayData=je(()=>this.paginationEnabled.value?function(s,n,r){if(s.length<=n||n<=0||r<=0)return s;const o=(r-1)*n,a=o+n;return[...s].slice(o,a)}(this.sortedData.value,this.state.pageSize,this.state.currentPage):this.sortedData.value),hi(this.displayData,s=>{this.emit("totalItemsChanged",s.length)}),this.tableState=je(()=>({rows:this.displayData.value,rowsPrePagination:this.sortedData.value,selectedRows:this.state.selectedRows})),hi(this.tableState,s=>{this.emit("stateChanged",s)},{immediate:!0,deep:!0})}revealItem(e){if(!this.paginationEnabled.value)return!1;let i;return i=typeof e=="function"?this.sortedData.value.findIndex(e):this.sortedData.value.indexOf(e),i!==-1&&(this.emit("update:currentPage",Math.ceil((i+1)/this.state.pageSize)),!0)}selectRow(e){this.state.selectionMode!=="single"?this.state.selectedRows.includes(e)||this.state.selectedRows.push(e):this.state.selectedRows=[e]}selectRows(e){for(const i of e)this.selectRow(i)}deselectRow(e){const i=this.state.selectedRows.indexOf(e);i>-1&&this.state.selectedRows.splice(i,1)}deselectRows(e){for(const i of e)this.deselectRow(i)}selectAll(){this.state.selectionMode!=="single"&&(this.state.selectedRows=[...this.state.data])}deselectAll(){this.state.selectedRows=[]}setSort({sortKey:e,customSort:i,sortOrder:s,sortId:n}){this.state.sortKey=e,this.state.customSort=i,this.state.sortOrder=s,this.state.sortId=n}syncProp(e,i,s=!1){hi(i,()=>{this.state[e]=i.value},{immediate:!0,deep:s})}};const Vh=Symbol("store-key");var zp=xe({name:"VTable",props:{data:{type:Array,required:!0},filters:{type:Object,required:!1,default:()=>({})},currentPage:{type:Number,required:!1,default:void 0},pageSize:{type:Number,required:!1,default:void 0},selectionMode:{type:String,required:!1,default:"single",validator:t=>["single","multiple"].includes(t)},selectedClass:{required:!1,type:String,default:"vt-selected"},selectOnClick:{required:!1,type:Boolean,default:!0},hideSortIcons:{required:!1,type:Boolean,default:!1},sortIconPosition:{required:!1,type:String,default:"after"},sortHeaderClass:{type:String,required:!1,default:""}},emits:{stateChanged:t=>!0,totalPagesChanged:t=>!0,totalItemsChanged:t=>!0},setup(t,e){const i=new ok(e.emit);bo(Vh,i),i.syncProp("data",Ni(t,"data")),i.syncProp("filters",Ni(t,"filters"),!0),i.syncProp("currentPage",Ni(t,"currentPage")),i.syncProp("pageSize",Ni(t,"pageSize")),i.syncProp("selectionMode",Ni(t,"selectionMode")),i.syncProp("selectedClass",Ni(t,"selectedClass")),i.syncProp("selectOnClick",Ni(t,"selectOnClick")),i.syncProp("hideSortIcons",Ni(t,"hideSortIcons")),i.syncProp("sortIconPosition",Ni(t,"sortIconPosition")),i.syncProp("sortHeaderClass",Ni(t,"sortHeaderClass"));const s=je(()=>i.state.selectedRows.length===i.state.data.length);return{store:i,tableState:i.tableState,allRowsSelected:s,toggleAllRows:()=>s.value?i.deselectAll():i.selectAll(),selectAll:()=>i.selectAll(),deselectAll:()=>i.deselectAll(),selectRows:n=>i.selectRows(n),selectRow:n=>i.selectRow(n),deselectRows:n=>i.deselectRows(n),deselectRow:n=>i.deselectRow(n),revealItem:n=>i.revealItem(n),slots:e.slots}},render(){return Qe("table",{class:"v-table"},[Qe("thead",this.slots.head?this.slots.head({rows:this.tableState.rows,selectedRows:this.tableState.selectedRows,toggleAllRows:this.toggleAllRows,selectAll:this.selectAll,deselectAll:this.deselectAll,allRowsSelected:this.allRowsSelected}):void 0),Qe("tbody",this.slots.body?this.slots.body({rows:this.tableState.rows,selectedRows:this.tableState.selectedRows,selectRow:this.selectRow,deselectRow:this.deselectRow}):void 0)])}});function Ra(t){var e;const i={width:16,height:16,xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${t.vbWidth} ${t.vbHeight}`},s={fill:"currentColor",d:t.d,opacity:(e=t.opacity)!=null?e:1};return Qe("svg",Et(Et({attrs:i},i),{style:Et({},t.disabled?{color:"#9CA3AF"}:{})}),[Qe("path",Et({attrs:s},s))])}var ak=xe({name:"VTh",props:{sortKey:{type:[String,Function],required:!1,default:null},customSort:{type:[Function,Object],required:!1,default:null},defaultSort:{type:String,required:!1,validator:t=>["asc","desc",null].includes(t),default:null}},emits:["defaultSort","sortChanged"],setup(t,{emit:e,slots:i}){const s=mi(Vh);if(!t.sortKey&&!t.customSort)throw new Error("Must provide the Sort Key value or a Custom Sort function.");const n="_"+Math.random().toString(36).substr(2,9),r=Un(Gt.NONE);wc(()=>{t.defaultSort&&(r.value=t.defaultSort==="desc"?Gt.DESC:Gt.ASC,s.setSort({sortOrder:r.value,sortKey:t.sortKey,customSort:t.customSort,sortId:n}),ua(()=>{e("defaultSort"),e("sortChanged",{sortOrder:r.value})}))});const o=je(()=>{if(!s.state.hideSortIcons)return function(c){const d={width:16,height:16,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},u=()=>({fill:"currentColor",opacity:c===Gt.NONE||c===Gt.ASC?.4:1,d:"M41.05 288.05h238c21.4 0 32.1 25.9 17 41l-119 119a23.9 23.9 0 0 1-33.8.1l-.1-.1-119.1-119c-15.05-15.05-4.4-41 17-41z"}),h=()=>({fill:"currentColor",opacity:c===Gt.NONE||c===Gt.DESC?.4:1,d:"M24.05 183.05l119.1-119A23.9 23.9 0 0 1 177 64a.94.94 0 0 1 .1.1l119 119c15.1 15.1 4.4 41-17 41h-238c-21.45-.05-32.1-25.95-17.05-41.05z"});return Qe("svg",Et({attrs:d},d),[Qe("g",[Qe("path",Et({attrs:u()},u())),Qe("path",Et({attrs:h()},h()))])])}(r.value)});hi(()=>s.state.sortId,()=>{s.state.sortId!==n&&r.value!==0&&(r.value=0)});const a=()=>{[Gt.DESC,Gt.NONE].includes(r.value)?r.value=Gt.ASC:r.value=Gt.DESC,s.setSort({sortOrder:r.value,sortKey:t.sortKey,customSort:t.customSort,sortId:n}),e("sortChanged",{sortOrder:r.value})},l=je(()=>{const c=[];return s.state.sortIconPosition!=="before"||s.state.hideSortIcons||c.push(o.value),i.default&&c.push(Qe("span",[i.default({sortOrder:r.value})])),s.state.sortIconPosition!=="after"||s.state.hideSortIcons||c.push(o.value),c});return()=>Qe("th",Et({class:"v-th"},{onClick:a}),[Qe("div",{class:s.state.sortHeaderClass},l.value)])}}),lk=xe({name:"VTr",props:{row:{type:Object,required:!0}},setup(t,{slots:e}){const i=mi(Vh),s=je(()=>i.state.selectedRows.find(a=>a===t.row)),n=je(()=>s.value?i.state.selectedClass:""),r=je(()=>Et({},i.state.selectOnClick?{cursor:"pointer"}:{})),o=a=>{const l=a.target;l&&l.tagName.toLowerCase()==="td"&&(s.value?i.deselectRow(t.row):i.selectRow(t.row))};return()=>Qe("tr",Et(Et({class:n.value,style:r.value},i.state.selectOnClick?{onClick:o}:{}),{on:Et({},i.state.selectOnClick?{click:o}:{})}),e.default?e.default({isSelected:s.value,toggle:()=>s.value?i.deselectRow(t.row):i.selectRow(t.row)}):[])}}),ck=xe({name:"VTPagination",props:{currentPage:{type:Number,required:!0},totalPages:{type:Number,required:!0},hideSinglePage:{required:!1,type:Boolean,default:!0},maxPageLinks:{required:!1,type:Number,default:NaN},boundaryLinks:{required:!1,type:Boolean,default:!1},directionLinks:{required:!1,type:Boolean,default:!0}},setup(t,{slots:e,emit:i}){const s=je(()=>isNaN(t.maxPageLinks)||t.maxPageLinks<=0?(()=>{const d=[];for(let u=1;u<=t.totalPages;u++)d.push({title:u.toString(),value:u});return d})():(()=>{const d=[],u=Math.ceil(t.totalPages/t.maxPageLinks),h=Math.ceil((t.currentPage||1)/t.maxPageLinks);let f=(h-1)*t.maxPageLinks+1;const p=Math.min(f+t.maxPageLinks-1,t.totalPages),g=p-f+1,m=t.maxPageLinks-g;h===u&&h>1&&m>0&&(f-=m),h>1&&d.push({title:"...",value:f-1});for(let y=f;y<=p&&!(y>t.totalPages);y++)d.push({title:y.toString(),value:y});return h{d<1||d>t.totalPages||d===t.currentPage||i("update:currentPage",d)},r=()=>{t.currentPage?t.currentPage{t.currentPage?t.currentPage>1&&i("update:currentPage",t.currentPage-1):i("update:currentPage",1)},a=()=>{i("update:currentPage",1)},l=()=>{i("update:currentPage",t.totalPages)},c=(d,u,h,f=!1)=>Qe("li",{class:["page-item",{disabled:h,active:f}]},[Qe("a",Et(Et({class:"page-link",style:Et({},h?{cursor:"not-allowed"}:{}),attrs:{href:"javascript:void(0)"},href:"javascript:void(0)"},h?{}:{onClick:u}),{on:Et({},h?{}:{click:u})}),[d])]);return()=>{var d,u,h,f,p,g,m,y;if(t.hideSinglePage&&t.totalPages===1)return Qe("");const C=[];if(t.boundaryLinks){const w=Ra({vbWidth:512,vbHeight:512,d:"M34.5 239L228.9 44.7c9.4-9.4 24.6-9.4 33.9 0l22.7 22.7c9.4 9.4 9.4 24.5 0 33.9L131.5 256l154 154.7c9.3 9.4 9.3 24.5 0 33.9l-22.7 22.7c-9.4 9.4-24.6 9.4-33.9 0L34.5 273c-9.3-9.4-9.3-24.6 0-34zm192 34l194.3 194.3c9.4 9.4 24.6 9.4 33.9 0l22.7-22.7c9.4-9.4 9.4-24.5 0-33.9L323.5 256l154-154.7c9.3-9.4 9.3-24.5 0-33.9l-22.7-22.7c-9.4-9.4-24.6-9.4-33.9 0L226.5 239c-9.3 9.4-9.3 24.6 0 34z"}),A=t.currentPage===1,x=(u=(d=e.firstPage)==null?void 0:d.call(e,{disabled:A}))!=null?u:w;C.push(c(x,a,A))}if(t.directionLinks){const w=Ra({vbWidth:320,vbHeight:512,d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"}),A=t.currentPage===1,x=(f=(h=e.previous)==null?void 0:h.call(e,{disabled:A}))!=null?f:w;C.push(c(x,o,A))}for(const w of s.value)C.push(c(w.title,()=>n(w.value),!1,w.value===t.currentPage));if(t.directionLinks){const w=Ra({vbWidth:320,vbHeight:512,d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"}),A=t.currentPage===t.totalPages,x=(g=(p=e.next)==null?void 0:p.call(e,{disabled:A}))!=null?g:w;C.push(c(x,r,A))}if(t.boundaryLinks){const w=Ra({vbWidth:512,vbHeight:512,d:"M477.5 273L283.1 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.7-22.7c-9.4-9.4-9.4-24.5 0-33.9l154-154.7-154-154.7c-9.3-9.4-9.3-24.5 0-33.9l22.7-22.7c9.4-9.4 24.6-9.4 33.9 0L477.5 239c9.3 9.4 9.3 24.6 0 34zm-192-34L91.1 44.7c-9.4-9.4-24.6-9.4-33.9 0L34.5 67.4c-9.4 9.4-9.4 24.5 0 33.9l154 154.7-154 154.7c-9.3 9.4-9.3 24.5 0 33.9l22.7 22.7c9.4 9.4 24.6 9.4 33.9 0L285.5 273c9.3-9.4 9.3-24.6 0-34z"}),A=t.currentPage===t.totalPages,x=(y=(m=e.lastPage)==null?void 0:m.call(e,{disabled:A}))!=null?y:w;C.push(c(x,l,A))}return Qe("nav",{class:"vt-pagination"},[Qe("ul",{class:"pagination"},[C])])}}}),dk={install(t,e={}){["hideSortIcons","sortIconPosition","sortHeaderClass"].forEach(i=>{e.hasOwnProperty(i)&&(zp.props[i].default=e[i])}),t.component("VTable",zp),t.component("VTh",ak),t.component("VTr",lk),t.component("VTPagination",ck)}};/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT - */const ar=typeof document<"u";function iy(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dk(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&iy(t.default)}const Ee=Object.assign;function ud(t,e){const i={};for(const s in e){const n=e[s];i[s]=Pi(n)?n.map(t):t(n)}return i}const xo=()=>{},Pi=Array.isArray,sy=/#/g,uk=/&/g,hk=/\//g,fk=/=/g,pk=/\?/g,ny=/\+/g,gk=/%5B/g,mk=/%5D/g,ry=/%5E/g,vk=/%60/g,oy=/%7B/g,bk=/%7C/g,ay=/%7D/g,yk=/%20/g;function jh(t){return encodeURI(""+t).replace(bk,"|").replace(gk,"[").replace(mk,"]")}function _k(t){return jh(t).replace(oy,"{").replace(ay,"}").replace(ry,"^")}function vu(t){return jh(t).replace(ny,"%2B").replace(yk,"+").replace(sy,"%23").replace(uk,"%26").replace(vk,"`").replace(oy,"{").replace(ay,"}").replace(ry,"^")}function xk(t){return vu(t).replace(fk,"%3D")}function wk(t){return jh(t).replace(sy,"%23").replace(pk,"%3F")}function kk(t){return t==null?"":wk(t).replace(hk,"%2F")}function Ko(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Sk=/\/$/,Ck=t=>t.replace(Sk,"");function hd(t,e,i="/"){let s,n={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(s=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),n=t(r)),a>-1&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=Pk(s??e,i),{fullPath:s+(r&&"?")+r+o,path:s,query:n,hash:Ko(o)}}function Ak(t,e){const i=e.query?t(e.query):"";return e.path+(i&&"?")+i+(e.hash||"")}function jp(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Tk(t,e,i){const s=e.matched.length-1,n=i.matched.length-1;return s>-1&&s===n&&Sr(e.matched[s],i.matched[n])&&ly(e.params,i.params)&&t(e.query)===t(i.query)&&e.hash===i.hash}function Sr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function ly(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(!Ek(t[i],e[i]))return!1;return!0}function Ek(t,e){return Pi(t)?zp(t,e):Pi(e)?zp(e,t):t===e}function zp(t,e){return Pi(e)?t.length===e.length&&t.every((i,s)=>i===e[s]):t.length===1&&t[0]===e}function Pk(t,e){if(t.startsWith("/"))return t;if(!t)return e;const i=e.split("/"),s=t.split("/"),n=s[s.length-1];(n===".."||n===".")&&s.push("");let r=i.length-1,o,a;for(o=0;o1&&r--;else break;return i.slice(0,r).join("/")+"/"+s.slice(o).join("/")}const Cs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Go;(function(t){t.pop="pop",t.push="push"})(Go||(Go={}));var wo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(wo||(wo={}));function Ok(t){if(!t)if(ar){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Ck(t)}const Ik=/^[^#]+#/;function Mk(t,e){return t.replace(Ik,"#")+e}function Rk(t,e){const i=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-i.left-(e.left||0),top:s.top-i.top-(e.top||0)}}const kc=()=>({left:window.scrollX,top:window.scrollY});function $k(t){let e;if("el"in t){const i=t.el,s=typeof i=="string"&&i.startsWith("#"),n=typeof i=="string"?s?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!n)return;e=Rk(n,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Vp(t,e){return(history.state?history.state.position-e:-1)+t}const bu=new Map;function Lk(t,e){bu.set(t,e)}function Dk(t){const e=bu.get(t);return bu.delete(t),e}let Fk=()=>location.protocol+"//"+location.host;function cy(t,e){const{pathname:i,search:s,hash:n}=e,r=t.indexOf("#");if(r>-1){let a=n.includes(t.slice(r))?t.slice(r).length:1,l=n.slice(a);return l[0]!=="/"&&(l="/"+l),jp(l,"")}return jp(i,t)+s+n}function Nk(t,e,i,s){let n=[],r=[],o=null;const a=({state:h})=>{const f=cy(t,location),p=i.value,g=e.value;let m=0;if(h){if(i.value=f,e.value=h,o&&o===p){o=null;return}m=g?h.position-g.position:0}else s(f);n.forEach(y=>{y(i.value,p,{delta:m,type:Go.pop,direction:m?m>0?wo.forward:wo.back:wo.unknown})})};function l(){o=i.value}function c(h){n.push(h);const f=()=>{const p=n.indexOf(h);p>-1&&n.splice(p,1)};return r.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Ee({},h.state,{scroll:kc()}),"")}function u(){for(const h of r)h();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function Up(t,e,i,s=!1,n=!1){return{back:t,current:e,forward:i,replaced:s,position:window.history.length,scroll:n?kc():null}}function Bk(t){const{history:e,location:i}=window,s={value:cy(t,i)},n={value:e.state};n.value||r(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,d){const u=t.indexOf("#"),h=u>-1?(i.host&&document.querySelector("base")?t:t.slice(u))+l:Fk()+t+l;try{e[d?"replaceState":"pushState"](c,"",h),n.value=c}catch(f){console.error(f),i[d?"replace":"assign"](h)}}function o(l,c){const d=Ee({},e.state,Up(n.value.back,l,n.value.forward,!0),c,{position:n.value.position});r(l,d,!0),s.value=l}function a(l,c){const d=Ee({},n.value,e.state,{forward:l,scroll:kc()});r(d.current,d,!0);const u=Ee({},Up(s.value,l,null),{position:d.position+1},c);r(l,u,!1),s.value=l}return{location:s,state:n,push:a,replace:o}}function jk(t){t=Ok(t);const e=Bk(t),i=Nk(t,e.state,e.location,e.replace);function s(r,o=!0){o||i.pauseListeners(),history.go(r)}const n=Ee({location:"",base:t,go:s,createHref:Mk.bind(null,t)},e,i);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function zk(t){return typeof t=="string"||t&&typeof t=="object"}function dy(t){return typeof t=="string"||typeof t=="symbol"}const uy=Symbol("");var qp;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(qp||(qp={}));function Cr(t,e){return Ee(new Error,{type:t,[uy]:!0},e)}function Xi(t,e){return t instanceof Error&&uy in t&&(e==null||!!(t.type&e))}const Hp="[^/]+?",Vk={sensitive:!1,strict:!1,start:!0,end:!0},Uk=/[.+*?^${}()[\]/\\]/g;function qk(t,e){const i=Ee({},Vk,e),s=[];let n=i.start?"^":"";const r=[];for(const c of t){const d=c.length?[]:[90];i.strict&&!c.length&&(n+="/");for(let u=0;ue.length?e.length===1&&e[0]===80?1:-1:0}function hy(t,e){let i=0;const s=t.score,n=e.score;for(;i0&&e[e.length-1]<0}const Wk={type:0,value:""},Kk=/[a-zA-Z0-9_]/;function Gk(t){if(!t)return[[]];if(t==="/")return[[Wk]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${i})/"${c}": ${f}`)}let i=0,s=i;const n=[];let r;function o(){r&&n.push(r),r=[]}let a=0,l,c="",d="";function u(){c&&(i===0?r.push({type:0,value:c}):i===1||i===2||i===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{o(w)}:xo}function o(u){if(dy(u)){const h=s.get(u);h&&(s.delete(u),i.splice(i.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=i.indexOf(u);h>-1&&(i.splice(h,1),u.record.name&&s.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return i}function l(u){const h=Zk(u,i);i.splice(h,0,u),u.record.name&&!Yp(u)&&s.set(u.record.name,u)}function c(u,h){let f,p={},g,m;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw Cr(1,{location:u});m=f.record.name,p=Ee(Kp(h.params,f.keys.filter(w=>!w.optional).concat(f.parent?f.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),u.params&&Kp(u.params,f.keys.map(w=>w.name))),g=f.stringify(p)}else if(u.path!=null)g=u.path,f=i.find(w=>w.re.test(g)),f&&(p=f.parse(g),m=f.record.name);else{if(f=h.name?s.get(h.name):i.find(w=>w.re.test(h.path)),!f)throw Cr(1,{location:u,currentLocation:h});m=f.record.name,p=Ee({},h.params,u.params),g=f.stringify(p)}const y=[];let C=f;for(;C;)y.unshift(C.record),C=C.parent;return{name:m,path:g,params:p,matched:y,meta:Qk(y)}}t.forEach(u=>r(u));function d(){i.length=0,s.clear()}return{addRoute:r,resolve:c,removeRoute:o,clearRoutes:d,getRoutes:a,getRecordMatcher:n}}function Kp(t,e){const i={};for(const s of e)s in t&&(i[s]=t[s]);return i}function Gp(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:Xk(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Xk(t){const e={},i=t.props||!1;if("component"in t)e.default=i;else for(const s in t.components)e[s]=typeof i=="object"?i[s]:i;return e}function Yp(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Qk(t){return t.reduce((e,i)=>Ee(e,i.meta),{})}function Jp(t,e){const i={};for(const s in t)i[s]=s in e?e[s]:t[s];return i}function Zk(t,e){let i=0,s=e.length;for(;i!==s;){const r=i+s>>1;hy(t,e[r])<0?s=r:i=r+1}const n=eS(t);return n&&(s=e.lastIndexOf(n,s-1)),s}function eS(t){let e=t;for(;e=e.parent;)if(fy(e)&&hy(t,e)===0)return e}function fy({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function tS(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let n=0;nr&&vu(r)):[s&&vu(s)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+i,r!=null&&(e+="="+r))})}return e}function iS(t){const e={};for(const i in t){const s=t[i];s!==void 0&&(e[i]=Pi(s)?s.map(n=>n==null?null:""+n):s==null?s:""+s)}return e}const sS=Symbol(""),Qp=Symbol(""),zh=Symbol(""),py=Symbol(""),yu=Symbol("");function Kr(){let t=[];function e(s){return t.push(s),()=>{const n=t.indexOf(s);n>-1&&t.splice(n,1)}}function i(){t=[]}return{add:e,list:()=>t.slice(),reset:i}}function $s(t,e,i,s,n,r=o=>o()){const o=s&&(s.enterCallbacks[n]=s.enterCallbacks[n]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Cr(4,{from:i,to:e})):h instanceof Error?l(h):zk(h)?l(Cr(2,{from:e,to:h})):(o&&s.enterCallbacks[n]===o&&typeof h=="function"&&o.push(h),a())},d=r(()=>t.call(s&&s.instances[n],e,i,c));let u=Promise.resolve(d);t.length<3&&(u=u.then(c)),u.catch(h=>l(h))})}function fd(t,e,i,s,n=r=>r()){const r=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(iy(l)){const d=(l.__vccOpts||l)[e];d&&r.push($s(d,i,s,o,a,n))}else{let c=l();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const u=dk(d)?d.default:d;o.mods[a]=d,o.components[a]=u;const f=(u.__vccOpts||u)[e];return f&&$s(f,i,s,o,a,n)()}))}}return r}function Zp(t){const e=pi(zh),i=pi(py),s=Be(()=>{const l=Re(t.to);return e.resolve(l)}),n=Be(()=>{const{matched:l}=s.value,{length:c}=l,d=l[c-1],u=i.matched;if(!d||!u.length)return-1;const h=u.findIndex(Sr.bind(null,d));if(h>-1)return h;const f=eg(l[c-2]);return c>1&&eg(d)===f&&u[u.length-1].path!==f?u.findIndex(Sr.bind(null,l[c-2])):h}),r=Be(()=>n.value>-1&&aS(i.params,s.value.params)),o=Be(()=>n.value>-1&&n.value===i.matched.length-1&&ly(i.params,s.value.params));function a(l={}){if(oS(l)){const c=e[Re(t.replace)?"replace":"push"](Re(t.to)).catch(xo);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:Be(()=>s.value.href),isActive:r,isExactActive:o,navigate:a}}function nS(t){return t.length===1?t[0]:t}const rS=Se({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Zp,setup(t,{slots:e}){const i=Dr(Zp(t)),{options:s}=pi(zh),n=Be(()=>({[tg(t.activeClass,s.linkActiveClass,"router-link-active")]:i.isActive,[tg(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const r=e.default&&nS(e.default(i));return t.custom?r:Xe("a",{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:n.value},r)}}}),yi=rS;function oS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function aS(t,e){for(const i in e){const s=e[i],n=t[i];if(typeof s=="string"){if(s!==n)return!1}else if(!Pi(n)||n.length!==s.length||s.some((r,o)=>r!==n[o]))return!1}return!0}function eg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const tg=(t,e,i)=>t??e??i,lS=Se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:i}){const s=pi(yu),n=Be(()=>t.route||s.value),r=pi(Qp,0),o=Be(()=>{let c=Re(r);const{matched:d}=n.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=Be(()=>n.value.matched[o.value]);bo(Qp,Be(()=>o.value+1)),bo(sS,a),bo(yu,n);const l=Vn();return di(()=>[l.value,a.value,t.name],([c,d,u],[h,f,p])=>{d&&(d.instances[u]=c,f&&f!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=f.leaveGuards),d.updateGuards.size||(d.updateGuards=f.updateGuards))),c&&d&&(!f||!Sr(d,f)||!h)&&(d.enterCallbacks[u]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=n.value,d=t.name,u=a.value,h=u&&u.components[d];if(!h)return ig(i.default,{Component:h,route:c});const f=u.props[d],p=f?f===!0?c.params:typeof f=="function"?f(c):f:null,m=Xe(h,Ee({},p,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return ig(i.default,{Component:m,route:c})||m}}});function ig(t,e){if(!t)return null;const i=t(e);return i.length===1?i[0]:i}const gy=lS;function cS(t){const e=Jk(t.routes,t),i=t.parseQuery||tS,s=t.stringifyQuery||Xp,n=t.history,r=Kr(),o=Kr(),a=Kr(),l=Ih(Cs);let c=Cs;ar&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=ud.bind(null,K=>""+K),u=ud.bind(null,kk),h=ud.bind(null,Ko);function f(K,$){let R,M;return dy(K)?(R=e.getRecordMatcher(K),M=$):M=K,e.addRoute(M,R)}function p(K){const $=e.getRecordMatcher(K);$&&e.removeRoute($)}function g(){return e.getRoutes().map(K=>K.record)}function m(K){return!!e.getRecordMatcher(K)}function y(K,$){if($=Ee({},$||l.value),typeof K=="string"){const O=hd(i,K,$.path),L=e.resolve({path:O.path},$),z=n.createHref(O.fullPath);return Ee(O,L,{params:h(L.params),hash:Ko(O.hash),redirectedFrom:void 0,href:z})}let R;if(K.path!=null)R=Ee({},K,{path:hd(i,K.path,$.path).path});else{const O=Ee({},K.params);for(const L in O)O[L]==null&&delete O[L];R=Ee({},K,{params:u(O)}),$.params=u($.params)}const M=e.resolve(R,$),j=K.hash||"";M.params=d(h(M.params));const v=Ak(s,Ee({},K,{hash:_k(j),path:M.path})),_=n.createHref(v);return Ee({fullPath:v,hash:j,query:s===Xp?iS(K.query):K.query||{}},M,{redirectedFrom:void 0,href:_})}function C(K){return typeof K=="string"?hd(i,K,l.value.path):Ee({},K)}function w(K,$){if(c!==K)return Cr(8,{from:$,to:K})}function A(K){return T(K)}function x(K){return A(Ee(C(K),{replace:!0}))}function E(K){const $=K.matched[K.matched.length-1];if($&&$.redirect){const{redirect:R}=$;let M=typeof R=="function"?R(K):R;return typeof M=="string"&&(M=M.includes("?")||M.includes("#")?M=C(M):{path:M},M.params={}),Ee({query:K.query,hash:K.hash,params:M.path!=null?{}:K.params},M)}}function T(K,$){const R=c=y(K),M=l.value,j=K.state,v=K.force,_=K.replace===!0,O=E(R);if(O)return T(Ee(C(O),{state:typeof O=="object"?Ee({},j,O.state):j,force:v,replace:_}),$||R);const L=R;L.redirectedFrom=$;let z;return!v&&Tk(s,M,R)&&(z=Cr(16,{to:L,from:M}),Ae(M,M,!0,!1)),(z?Promise.resolve(z):I(L,M)).catch(V=>Xi(V)?Xi(V,2)?V:ve(V):Y(V,L,M)).then(V=>{if(V){if(Xi(V,2))return T(Ee({replace:_},C(V.to),{state:typeof V.to=="object"?Ee({},j,V.to.state):j,force:v}),$||L)}else V=b(L,M,!0,_,j);return S(L,M,V),V})}function P(K,$){const R=w(K,$);return R?Promise.reject(R):Promise.resolve()}function k(K){const $=Qe.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(K):K()}function I(K,$){let R;const[M,j,v]=dS(K,$);R=fd(M.reverse(),"beforeRouteLeave",K,$);for(const O of M)O.leaveGuards.forEach(L=>{R.push($s(L,K,$))});const _=P.bind(null,K,$);return R.push(_),Te(R).then(()=>{R=[];for(const O of r.list())R.push($s(O,K,$));return R.push(_),Te(R)}).then(()=>{R=fd(j,"beforeRouteUpdate",K,$);for(const O of j)O.updateGuards.forEach(L=>{R.push($s(L,K,$))});return R.push(_),Te(R)}).then(()=>{R=[];for(const O of v)if(O.beforeEnter)if(Pi(O.beforeEnter))for(const L of O.beforeEnter)R.push($s(L,K,$));else R.push($s(O.beforeEnter,K,$));return R.push(_),Te(R)}).then(()=>(K.matched.forEach(O=>O.enterCallbacks={}),R=fd(v,"beforeRouteEnter",K,$,k),R.push(_),Te(R))).then(()=>{R=[];for(const O of o.list())R.push($s(O,K,$));return R.push(_),Te(R)}).catch(O=>Xi(O,8)?O:Promise.reject(O))}function S(K,$,R){a.list().forEach(M=>k(()=>M(K,$,R)))}function b(K,$,R,M,j){const v=w(K,$);if(v)return v;const _=$===Cs,O=ar?history.state:{};R&&(M||_?n.replace(K.fullPath,Ee({scroll:_&&O&&O.scroll},j)):n.push(K.fullPath,j)),l.value=K,Ae(K,$,R,_),ve()}let D;function B(){D||(D=n.listen((K,$,R)=>{if(!ut.listening)return;const M=y(K),j=E(M);if(j){T(Ee(j,{replace:!0,force:!0}),M).catch(xo);return}c=M;const v=l.value;ar&&Lk(Vp(v.fullPath,R.delta),kc()),I(M,v).catch(_=>Xi(_,12)?_:Xi(_,2)?(T(Ee(C(_.to),{force:!0}),M).then(O=>{Xi(O,20)&&!R.delta&&R.type===Go.pop&&n.go(-1,!1)}).catch(xo),Promise.reject()):(R.delta&&n.go(-R.delta,!1),Y(_,M,v))).then(_=>{_=_||b(M,v,!1),_&&(R.delta&&!Xi(_,8)?n.go(-R.delta,!1):R.type===Go.pop&&Xi(_,20)&&n.go(-1,!1)),S(M,v,_)}).catch(xo)}))}let N=Kr(),W=Kr(),U;function Y(K,$,R){ve(K);const M=W.list();return M.length?M.forEach(j=>j(K,$,R)):console.error(K),Promise.reject(K)}function ae(){return U&&l.value!==Cs?Promise.resolve():new Promise((K,$)=>{N.add([K,$])})}function ve(K){return U||(U=!K,B(),N.list().forEach(([$,R])=>K?R(K):$()),N.reset()),K}function Ae(K,$,R,M){const{scrollBehavior:j}=t;if(!ar||!j)return Promise.resolve();const v=!R&&Dk(Vp(K.fullPath,0))||(M||!R)&&history.state&&history.state.scroll||null;return ca().then(()=>j(K,$,v)).then(_=>_&&$k(_)).catch(_=>Y(_,K,$))}const xe=K=>n.go(K);let Ye;const Qe=new Set,ut={currentRoute:l,listening:!0,addRoute:f,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:g,resolve:y,options:t,push:A,replace:x,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:W.add,isReady:ae,install(K){const $=this;K.component("RouterLink",yi),K.component("RouterView",gy),K.config.globalProperties.$router=$,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>Re(l)}),ar&&!Ye&&l.value===Cs&&(Ye=!0,A(n.location).catch(j=>{}));const R={};for(const j in Cs)Object.defineProperty(R,j,{get:()=>l.value[j],enumerable:!0});K.provide(zh,$),K.provide(py,ab(R)),K.provide(yu,l);const M=K.unmount;Qe.add(K),K.unmount=function(){Qe.delete(K),Qe.size<1&&(c=Cs,D&&D(),D=null,l.value=Cs,Ye=!1,U=!1),M()}}};function Te(K){return K.reduce(($,R)=>$.then(()=>k(R)),Promise.resolve())}return ut}function dS(t,e){const i=[],s=[],n=[],r=Math.max(e.matched.length,t.matched.length);for(let o=0;oSr(c,a))?s.push(a):i.push(a));const l=t.matched[o];l&&(e.matched.find(c=>Sr(c,l))||n.push(l))}return[i,s,n]}const Un=ty("viewMode",{state(){return{screenWidth:window.innerWidth,screenHeight:window.innerHeight,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}},getters:{isMobile(){return this.screenWidth<=820},windowHeight(){return this.screenHeight},isDarkMode(){return this.darkMode},themeString(){return this.darkMode?"dark":"light"}},actions:{updateScreenWidth(t){this.screenWidth=t},updateScreenHeight(t){this.screenHeight=t},updateDarkMode(){var t;this.darkMode=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,(t=document.querySelector("html"))==null||t.setAttribute("theme",this.darkMode?"dark":"light")},toggleUserDarkMode(){var t;this.darkMode=!this.darkMode,(t=document.querySelector("html"))==null||t.setAttribute("theme",this.darkMode?"dark":"light")}}}),Sc="MatchData",Vh="PitData",uS="Event",Uh="Team",sg="RobotPhoto",ng="robot-photos",my="2025vapor",hS="modulepreload",fS=function(t){return"/"+t},rg={},ua=function(e,i,s){let n=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));n=Promise.allSettled(i.map(l=>{if(l=fS(l),l in rg)return;rg[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":hS,c||(u.as="script"),u.crossOrigin="",u.href=l,a&&u.setAttribute("nonce",a),document.head.appendChild(u),c)return new Promise((h,f)=>{u.addEventListener("load",h),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return n.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},pS=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>ua(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)};class qh extends Error{constructor(e,i="FunctionsError",s){super(e),this.name=i,this.context=s}}class gS extends qh{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class og extends qh{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class ag extends qh{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var _u;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(_u||(_u={}));var mS=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class vS{constructor(e,{headers:i={},customFetch:s,region:n=_u.Any}={}){this.url=e,this.headers=i,this.region=n,this.fetch=pS(s)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,i={}){var s;return mS(this,void 0,void 0,function*(){try{const{headers:n,method:r,body:o}=i;let a={},{region:l}=i;l||(l=this.region);const c=new URL(`${this.url}/${e}`);l&&l!=="any"&&(a["x-region"]=l,c.searchParams.set("forceFunctionRegion",l));let d;o&&(n&&!Object.prototype.hasOwnProperty.call(n,"Content-Type")||!n)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",d=o):typeof o=="string"?(a["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(a["Content-Type"]="application/json",d=JSON.stringify(o)));const u=yield this.fetch(c.toString(),{method:r||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),n),body:d}).catch(g=>{throw new gS(g)}),h=u.headers.get("x-relay-error");if(h&&h==="true")throw new og(u);if(!u.ok)throw new ag(u);let f=((s=u.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),p;return f==="application/json"?p=yield u.json():f==="application/octet-stream"?p=yield u.blob():f==="text/event-stream"?p=u:f==="multipart/form-data"?p=yield u.formData():p=yield u.text(),{data:p,error:null,response:u}}catch(n){return{data:null,error:n,response:n instanceof ag||n instanceof og?n.context:void 0}}})}}var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bS(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var i=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),i}var Gt={},Hh={},Cc={},ha={},Ac={},Tc={},yS=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Ar=yS();const _S=Ar.fetch,vy=Ar.fetch.bind(Ar),by=Ar.Headers,xS=Ar.Request,wS=Ar.Response,Fr=Object.freeze(Object.defineProperty({__proto__:null,Headers:by,Request:xS,Response:wS,default:vy,fetch:_S},Symbol.toStringTag,{value:"Module"})),kS=bS(Fr);var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});let SS=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}};Ec.default=SS;var yy=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tc,"__esModule",{value:!0});const CS=yy(kS),AS=yy(Ec);let TS=class{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=CS.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,i){return this.headers=Object.assign({},this.headers),this.headers[e]=i,this}then(e,i){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const s=this.fetch;let n=s(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async r=>{var o,a,l;let c=null,d=null,u=null,h=r.status,f=r.statusText;if(r.ok){if(this.method!=="HEAD"){const y=await r.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=y:d=JSON.parse(y))}const g=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),m=(a=r.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");g&&m&&m.length>1&&(u=parseInt(m[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,u=null,h=406,f="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const g=await r.text();try{c=JSON.parse(g),Array.isArray(c)&&r.status===404&&(d=[],c=null,h=200,f="OK")}catch{r.status===404&&g===""?(h=204,f="No Content"):c={message:g}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("0 rows"))&&(c=null,h=200,f="OK"),c&&this.shouldThrowOnError)throw new AS.default(c)}return{error:c,data:d,count:u,status:h,statusText:f}});return this.shouldThrowOnError||(n=n.catch(r=>{var o,a,l;return{error:{message:`${(o=r==null?void 0:r.name)!==null&&o!==void 0?o:"FetchError"}: ${r==null?void 0:r.message}`,details:`${(a=r==null?void 0:r.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=r==null?void 0:r.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),n.then(e,i)}returns(){return this}overrideTypes(){return this}};Tc.default=TS;var ES=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ac,"__esModule",{value:!0});const PS=ES(Tc);let OS=class extends PS.default{select(e){let i=!1;const s=(e??"*").split("").map(n=>/\s/.test(n)&&!i?"":(n==='"'&&(i=!i),n)).join("");return this.url.searchParams.set("select",s),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:i=!0,nullsFirst:s,foreignTable:n,referencedTable:r=n}={}){const o=r?`${r}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${i?"asc":"desc"}${s===void 0?"":s?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:i,referencedTable:s=i}={}){const n=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,i,{foreignTable:s,referencedTable:n=s}={}){const r=typeof n>"u"?"offset":`${n}.offset`,o=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this.url.searchParams.set(o,`${i-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:e=!1,verbose:i=!1,settings:s=!1,buffers:n=!1,wal:r=!1,format:o="text"}={}){var a;const l=[e?"analyze":null,i?"verbose":null,s?"settings":null,n?"buffers":null,r?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${c}"; options=${l};`,o==="json"?this:this}rollback(){var e;return((e=this.headers.Prefer)!==null&&e!==void 0?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};Ac.default=OS;var IS=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ha,"__esModule",{value:!0});const MS=IS(Ac);let RS=class extends MS.default{eq(e,i){return this.url.searchParams.append(e,`eq.${i}`),this}neq(e,i){return this.url.searchParams.append(e,`neq.${i}`),this}gt(e,i){return this.url.searchParams.append(e,`gt.${i}`),this}gte(e,i){return this.url.searchParams.append(e,`gte.${i}`),this}lt(e,i){return this.url.searchParams.append(e,`lt.${i}`),this}lte(e,i){return this.url.searchParams.append(e,`lte.${i}`),this}like(e,i){return this.url.searchParams.append(e,`like.${i}`),this}likeAllOf(e,i){return this.url.searchParams.append(e,`like(all).{${i.join(",")}}`),this}likeAnyOf(e,i){return this.url.searchParams.append(e,`like(any).{${i.join(",")}}`),this}ilike(e,i){return this.url.searchParams.append(e,`ilike.${i}`),this}ilikeAllOf(e,i){return this.url.searchParams.append(e,`ilike(all).{${i.join(",")}}`),this}ilikeAnyOf(e,i){return this.url.searchParams.append(e,`ilike(any).{${i.join(",")}}`),this}is(e,i){return this.url.searchParams.append(e,`is.${i}`),this}in(e,i){const s=Array.from(new Set(i)).map(n=>typeof n=="string"&&new RegExp("[,()]").test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${s})`),this}contains(e,i){return typeof i=="string"?this.url.searchParams.append(e,`cs.${i}`):Array.isArray(i)?this.url.searchParams.append(e,`cs.{${i.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(i)}`),this}containedBy(e,i){return typeof i=="string"?this.url.searchParams.append(e,`cd.${i}`):Array.isArray(i)?this.url.searchParams.append(e,`cd.{${i.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(i)}`),this}rangeGt(e,i){return this.url.searchParams.append(e,`sr.${i}`),this}rangeGte(e,i){return this.url.searchParams.append(e,`nxl.${i}`),this}rangeLt(e,i){return this.url.searchParams.append(e,`sl.${i}`),this}rangeLte(e,i){return this.url.searchParams.append(e,`nxr.${i}`),this}rangeAdjacent(e,i){return this.url.searchParams.append(e,`adj.${i}`),this}overlaps(e,i){return typeof i=="string"?this.url.searchParams.append(e,`ov.${i}`):this.url.searchParams.append(e,`ov.{${i.join(",")}}`),this}textSearch(e,i,{config:s,type:n}={}){let r="";n==="plain"?r="pl":n==="phrase"?r="ph":n==="websearch"&&(r="w");const o=s===void 0?"":`(${s})`;return this.url.searchParams.append(e,`${r}fts${o}.${i}`),this}match(e){return Object.entries(e).forEach(([i,s])=>{this.url.searchParams.append(i,`eq.${s}`)}),this}not(e,i,s){return this.url.searchParams.append(e,`not.${i}.${s}`),this}or(e,{foreignTable:i,referencedTable:s=i}={}){const n=s?`${s}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,i,s){return this.url.searchParams.append(e,`${i}.${s}`),this}};ha.default=RS;var $S=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cc,"__esModule",{value:!0});const Gr=$S(ha);let LS=class{constructor(e,{headers:i={},schema:s,fetch:n}){this.url=e,this.headers=i,this.schema=s,this.fetch=n}select(e,{head:i=!1,count:s}={}){const n=i?"HEAD":"GET";let r=!1;const o=(e??"*").split("").map(a=>/\s/.test(a)&&!r?"":(a==='"'&&(r=!r),a)).join("");return this.url.searchParams.set("select",o),s&&(this.headers.Prefer=`count=${s}`),new Gr.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:i,defaultToNull:s=!0}={}){const n="POST",r=[];if(this.headers.Prefer&&r.push(this.headers.Prefer),i&&r.push(`count=${i}`),s||r.push("missing=default"),this.headers.Prefer=r.join(","),Array.isArray(e)){const o=e.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>0){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Gr.default({method:n,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:i,ignoreDuplicates:s=!1,count:n,defaultToNull:r=!0}={}){const o="POST",a=[`resolution=${s?"ignore":"merge"}-duplicates`];if(i!==void 0&&this.url.searchParams.set("on_conflict",i),this.headers.Prefer&&a.push(this.headers.Prefer),n&&a.push(`count=${n}`),r||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(e)){const l=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",c.join(","))}}return new Gr.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:i}={}){const s="PATCH",n=[];return this.headers.Prefer&&n.push(this.headers.Prefer),i&&n.push(`count=${i}`),this.headers.Prefer=n.join(","),new Gr.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){const i="DELETE",s=[];return e&&s.push(`count=${e}`),this.headers.Prefer&&s.unshift(this.headers.Prefer),this.headers.Prefer=s.join(","),new Gr.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Cc.default=LS;var Pc={},Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});Oc.version=void 0;Oc.version="0.0.0-automated";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.DEFAULT_HEADERS=void 0;const DS=Oc;Pc.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${DS.version}`};var _y=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hh,"__esModule",{value:!0});const FS=_y(Cc),NS=_y(ha),BS=Pc;let jS=class xy{constructor(e,{headers:i={},schema:s,fetch:n}={}){this.url=e,this.headers=Object.assign(Object.assign({},BS.DEFAULT_HEADERS),i),this.schemaName=s,this.fetch=n}from(e){const i=new URL(`${this.url}/${e}`);return new FS.default(i,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new xy(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,i={},{head:s=!1,get:n=!1,count:r}={}){let o;const a=new URL(`${this.url}/rpc/${e}`);let l;s||n?(o=s?"HEAD":"GET",Object.entries(i).filter(([d,u])=>u!==void 0).map(([d,u])=>[d,Array.isArray(u)?`{${u.join(",")}}`:`${u}`]).forEach(([d,u])=>{a.searchParams.append(d,u)})):(o="POST",l=i);const c=Object.assign({},this.headers);return r&&(c.Prefer=`count=${r}`),new NS.default({method:o,url:a,headers:c,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};Hh.default=jS;var Nr=mi&&mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.PostgrestError=Gt.PostgrestBuilder=Gt.PostgrestTransformBuilder=Gt.PostgrestFilterBuilder=Gt.PostgrestQueryBuilder=Gt.PostgrestClient=void 0;const wy=Nr(Hh);Gt.PostgrestClient=wy.default;const ky=Nr(Cc);Gt.PostgrestQueryBuilder=ky.default;const Sy=Nr(ha);Gt.PostgrestFilterBuilder=Sy.default;const Cy=Nr(Ac);Gt.PostgrestTransformBuilder=Cy.default;const Ay=Nr(Tc);Gt.PostgrestBuilder=Ay.default;const Ty=Nr(Ec);Gt.PostgrestError=Ty.default;var zS=Gt.default={PostgrestClient:wy.default,PostgrestQueryBuilder:ky.default,PostgrestFilterBuilder:Sy.default,PostgrestTransformBuilder:Cy.default,PostgrestBuilder:Ay.default,PostgrestError:Ty.default};const{PostgrestClient:VS,PostgrestQueryBuilder:hF,PostgrestFilterBuilder:fF,PostgrestTransformBuilder:pF,PostgrestBuilder:gF,PostgrestError:mF}=zS;class US{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"&&process.versions&&process.versions.node){const i=parseInt(process.versions.node.split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: + */const ar=typeof document<"u";function ny(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function uk(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&ny(t.default)}const Oe=Object.assign;function md(t,e){const i={};for(const s in e){const n=e[s];i[s]=Oi(n)?n.map(t):t(n)}return i}const xo=()=>{},Oi=Array.isArray,ry=/#/g,hk=/&/g,fk=/\//g,pk=/=/g,gk=/\?/g,oy=/\+/g,mk=/%5B/g,vk=/%5D/g,ay=/%5E/g,bk=/%60/g,ly=/%7B/g,yk=/%7C/g,cy=/%7D/g,_k=/%20/g;function Uh(t){return encodeURI(""+t).replace(yk,"|").replace(mk,"[").replace(vk,"]")}function xk(t){return Uh(t).replace(ly,"{").replace(cy,"}").replace(ay,"^")}function wu(t){return Uh(t).replace(oy,"%2B").replace(_k,"+").replace(ry,"%23").replace(hk,"%26").replace(bk,"`").replace(ly,"{").replace(cy,"}").replace(ay,"^")}function wk(t){return wu(t).replace(pk,"%3D")}function kk(t){return Uh(t).replace(ry,"%23").replace(gk,"%3F")}function Sk(t){return t==null?"":kk(t).replace(fk,"%2F")}function Ko(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Ck=/\/$/,Ak=t=>t.replace(Ck,"");function vd(t,e,i="/"){let s,n={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return a=0&&(l=-1),l>-1&&(s=e.slice(0,l),r=e.slice(l+1,a>-1?a:e.length),n=t(r)),a>-1&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=Ok(s??e,i),{fullPath:s+(r&&"?")+r+o,path:s,query:n,hash:Ko(o)}}function Tk(t,e){const i=e.query?t(e.query):"";return e.path+(i&&"?")+i+(e.hash||"")}function Vp(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Ek(t,e,i){const s=e.matched.length-1,n=i.matched.length-1;return s>-1&&s===n&&Sr(e.matched[s],i.matched[n])&&dy(e.params,i.params)&&t(e.query)===t(i.query)&&e.hash===i.hash}function Sr(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function dy(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t)if(!Pk(t[i],e[i]))return!1;return!0}function Pk(t,e){return Oi(t)?Up(t,e):Oi(e)?Up(e,t):t===e}function Up(t,e){return Oi(e)?t.length===e.length&&t.every((i,s)=>i===e[s]):t.length===1&&t[0]===e}function Ok(t,e){if(t.startsWith("/"))return t;if(!t)return e;const i=e.split("/"),s=t.split("/"),n=s[s.length-1];(n===".."||n===".")&&s.push("");let r=i.length-1,o,a;for(o=0;o1&&r--;else break;return i.slice(0,r).join("/")+"/"+s.slice(o).join("/")}const As={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Go;(function(t){t.pop="pop",t.push="push"})(Go||(Go={}));var wo;(function(t){t.back="back",t.forward="forward",t.unknown=""})(wo||(wo={}));function Ik(t){if(!t)if(ar){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Ak(t)}const Mk=/^[^#]+#/;function Rk(t,e){return t.replace(Mk,"#")+e}function $k(t,e){const i=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-i.left-(e.left||0),top:s.top-i.top-(e.top||0)}}const Ac=()=>({left:window.scrollX,top:window.scrollY});function Lk(t){let e;if("el"in t){const i=t.el,s=typeof i=="string"&&i.startsWith("#"),n=typeof i=="string"?s?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!n)return;e=$k(n,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function qp(t,e){return(history.state?history.state.position-e:-1)+t}const ku=new Map;function Dk(t,e){ku.set(t,e)}function Fk(t){const e=ku.get(t);return ku.delete(t),e}let Nk=()=>location.protocol+"//"+location.host;function uy(t,e){const{pathname:i,search:s,hash:n}=e,r=t.indexOf("#");if(r>-1){let a=n.includes(t.slice(r))?t.slice(r).length:1,l=n.slice(a);return l[0]!=="/"&&(l="/"+l),Vp(l,"")}return Vp(i,t)+s+n}function Bk(t,e,i,s){let n=[],r=[],o=null;const a=({state:h})=>{const f=uy(t,location),p=i.value,g=e.value;let m=0;if(h){if(i.value=f,e.value=h,o&&o===p){o=null;return}m=g?h.position-g.position:0}else s(f);n.forEach(y=>{y(i.value,p,{delta:m,type:Go.pop,direction:m?m>0?wo.forward:wo.back:wo.unknown})})};function l(){o=i.value}function c(h){n.push(h);const f=()=>{const p=n.indexOf(h);p>-1&&n.splice(p,1)};return r.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Oe({},h.state,{scroll:Ac()}),"")}function u(){for(const h of r)h();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function Hp(t,e,i,s=!1,n=!1){return{back:t,current:e,forward:i,replaced:s,position:window.history.length,scroll:n?Ac():null}}function jk(t){const{history:e,location:i}=window,s={value:uy(t,i)},n={value:e.state};n.value||r(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,d){const u=t.indexOf("#"),h=u>-1?(i.host&&document.querySelector("base")?t:t.slice(u))+l:Nk()+t+l;try{e[d?"replaceState":"pushState"](c,"",h),n.value=c}catch(f){console.error(f),i[d?"replace":"assign"](h)}}function o(l,c){const d=Oe({},e.state,Hp(n.value.back,l,n.value.forward,!0),c,{position:n.value.position});r(l,d,!0),s.value=l}function a(l,c){const d=Oe({},n.value,e.state,{forward:l,scroll:Ac()});r(d.current,d,!0);const u=Oe({},Hp(s.value,l,null),{position:d.position+1},c);r(l,u,!1),s.value=l}return{location:s,state:n,push:a,replace:o}}function zk(t){t=Ik(t);const e=jk(t),i=Bk(t,e.state,e.location,e.replace);function s(r,o=!0){o||i.pauseListeners(),history.go(r)}const n=Oe({location:"",base:t,go:s,createHref:Rk.bind(null,t)},e,i);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function Vk(t){return typeof t=="string"||t&&typeof t=="object"}function hy(t){return typeof t=="string"||typeof t=="symbol"}const fy=Symbol("");var Wp;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Wp||(Wp={}));function Cr(t,e){return Oe(new Error,{type:t,[fy]:!0},e)}function Qi(t,e){return t instanceof Error&&fy in t&&(e==null||!!(t.type&e))}const Kp="[^/]+?",Uk={sensitive:!1,strict:!1,start:!0,end:!0},qk=/[.+*?^${}()[\]/\\]/g;function Hk(t,e){const i=Oe({},Uk,e),s=[];let n=i.start?"^":"";const r=[];for(const c of t){const d=c.length?[]:[90];i.strict&&!c.length&&(n+="/");for(let u=0;ue.length?e.length===1&&e[0]===80?1:-1:0}function py(t,e){let i=0;const s=t.score,n=e.score;for(;i0&&e[e.length-1]<0}const Kk={type:0,value:""},Gk=/[a-zA-Z0-9_]/;function Yk(t){if(!t)return[[]];if(t==="/")return[[Kk]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(f){throw new Error(`ERR (${i})/"${c}": ${f}`)}let i=0,s=i;const n=[];let r;function o(){r&&n.push(r),r=[]}let a=0,l,c="",d="";function u(){c&&(i===0?r.push({type:0,value:c}):i===1||i===2||i===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{o(w)}:xo}function o(u){if(hy(u)){const h=s.get(u);h&&(s.delete(u),i.splice(i.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=i.indexOf(u);h>-1&&(i.splice(h,1),u.record.name&&s.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return i}function l(u){const h=eS(u,i);i.splice(h,0,u),u.record.name&&!Xp(u)&&s.set(u.record.name,u)}function c(u,h){let f,p={},g,m;if("name"in u&&u.name){if(f=s.get(u.name),!f)throw Cr(1,{location:u});m=f.record.name,p=Oe(Yp(h.params,f.keys.filter(w=>!w.optional).concat(f.parent?f.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),u.params&&Yp(u.params,f.keys.map(w=>w.name))),g=f.stringify(p)}else if(u.path!=null)g=u.path,f=i.find(w=>w.re.test(g)),f&&(p=f.parse(g),m=f.record.name);else{if(f=h.name?s.get(h.name):i.find(w=>w.re.test(h.path)),!f)throw Cr(1,{location:u,currentLocation:h});m=f.record.name,p=Oe({},h.params,u.params),g=f.stringify(p)}const y=[];let C=f;for(;C;)y.unshift(C.record),C=C.parent;return{name:m,path:g,params:p,matched:y,meta:Zk(y)}}t.forEach(u=>r(u));function d(){i.length=0,s.clear()}return{addRoute:r,resolve:c,removeRoute:o,clearRoutes:d,getRoutes:a,getRecordMatcher:n}}function Yp(t,e){const i={};for(const s of e)s in t&&(i[s]=t[s]);return i}function Jp(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:Qk(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Qk(t){const e={},i=t.props||!1;if("component"in t)e.default=i;else for(const s in t.components)e[s]=typeof i=="object"?i[s]:i;return e}function Xp(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Zk(t){return t.reduce((e,i)=>Oe(e,i.meta),{})}function Qp(t,e){const i={};for(const s in t)i[s]=s in e?e[s]:t[s];return i}function eS(t,e){let i=0,s=e.length;for(;i!==s;){const r=i+s>>1;py(t,e[r])<0?s=r:i=r+1}const n=tS(t);return n&&(s=e.lastIndexOf(n,s-1)),s}function tS(t){let e=t;for(;e=e.parent;)if(gy(e)&&py(t,e)===0)return e}function gy({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function iS(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let n=0;nr&&wu(r)):[s&&wu(s)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+i,r!=null&&(e+="="+r))})}return e}function sS(t){const e={};for(const i in t){const s=t[i];s!==void 0&&(e[i]=Oi(s)?s.map(n=>n==null?null:""+n):s==null?s:""+s)}return e}const nS=Symbol(""),eg=Symbol(""),qh=Symbol(""),my=Symbol(""),Su=Symbol("");function Kr(){let t=[];function e(s){return t.push(s),()=>{const n=t.indexOf(s);n>-1&&t.splice(n,1)}}function i(){t=[]}return{add:e,list:()=>t.slice(),reset:i}}function Ls(t,e,i,s,n,r=o=>o()){const o=s&&(s.enterCallbacks[n]=s.enterCallbacks[n]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Cr(4,{from:i,to:e})):h instanceof Error?l(h):Vk(h)?l(Cr(2,{from:e,to:h})):(o&&s.enterCallbacks[n]===o&&typeof h=="function"&&o.push(h),a())},d=r(()=>t.call(s&&s.instances[n],e,i,c));let u=Promise.resolve(d);t.length<3&&(u=u.then(c)),u.catch(h=>l(h))})}function bd(t,e,i,s,n=r=>r()){const r=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(ny(l)){const d=(l.__vccOpts||l)[e];d&&r.push(Ls(d,i,s,o,a,n))}else{let c=l();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const u=uk(d)?d.default:d;o.mods[a]=d,o.components[a]=u;const f=(u.__vccOpts||u)[e];return f&&Ls(f,i,s,o,a,n)()}))}}return r}function tg(t){const e=mi(qh),i=mi(my),s=je(()=>{const l=Ae(t.to);return e.resolve(l)}),n=je(()=>{const{matched:l}=s.value,{length:c}=l,d=l[c-1],u=i.matched;if(!d||!u.length)return-1;const h=u.findIndex(Sr.bind(null,d));if(h>-1)return h;const f=ig(l[c-2]);return c>1&&ig(d)===f&&u[u.length-1].path!==f?u.findIndex(Sr.bind(null,l[c-2])):h}),r=je(()=>n.value>-1&&lS(i.params,s.value.params)),o=je(()=>n.value>-1&&n.value===i.matched.length-1&&dy(i.params,s.value.params));function a(l={}){if(aS(l)){const c=e[Ae(t.replace)?"replace":"push"](Ae(t.to)).catch(xo);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:je(()=>s.value.href),isActive:r,isExactActive:o,navigate:a}}function rS(t){return t.length===1?t[0]:t}const oS=xe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:tg,setup(t,{slots:e}){const i=Dr(tg(t)),{options:s}=mi(qh),n=je(()=>({[sg(t.activeClass,s.linkActiveClass,"router-link-active")]:i.isActive,[sg(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const r=e.default&&rS(e.default(i));return t.custom?r:Qe("a",{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:n.value},r)}}}),si=oS;function aS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function lS(t,e){for(const i in e){const s=e[i],n=t[i];if(typeof s=="string"){if(s!==n)return!1}else if(!Oi(n)||n.length!==s.length||s.some((r,o)=>r!==n[o]))return!1}return!0}function ig(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const sg=(t,e,i)=>t??e??i,cS=xe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:i}){const s=mi(Su),n=je(()=>t.route||s.value),r=mi(eg,0),o=je(()=>{let c=Ae(r);const{matched:d}=n.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=je(()=>n.value.matched[o.value]);bo(eg,je(()=>o.value+1)),bo(nS,a),bo(Su,n);const l=Un();return hi(()=>[l.value,a.value,t.name],([c,d,u],[h,f,p])=>{d&&(d.instances[u]=c,f&&f!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=f.leaveGuards),d.updateGuards.size||(d.updateGuards=f.updateGuards))),c&&d&&(!f||!Sr(d,f)||!h)&&(d.enterCallbacks[u]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=n.value,d=t.name,u=a.value,h=u&&u.components[d];if(!h)return ng(i.default,{Component:h,route:c});const f=u.props[d],p=f?f===!0?c.params:typeof f=="function"?f(c):f:null,m=Qe(h,Oe({},p,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(u.instances[d]=null)},ref:l}));return ng(i.default,{Component:m,route:c})||m}}});function ng(t,e){if(!t)return null;const i=t(e);return i.length===1?i[0]:i}const vy=cS;function dS(t){const e=Xk(t.routes,t),i=t.parseQuery||iS,s=t.stringifyQuery||Zp,n=t.history,r=Kr(),o=Kr(),a=Kr(),l=$h(As);let c=As;ar&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=md.bind(null,Y=>""+Y),u=md.bind(null,Sk),h=md.bind(null,Ko);function f(Y,$){let R,M;return hy(Y)?(R=e.getRecordMatcher(Y),M=$):M=Y,e.addRoute(M,R)}function p(Y){const $=e.getRecordMatcher(Y);$&&e.removeRoute($)}function g(){return e.getRoutes().map(Y=>Y.record)}function m(Y){return!!e.getRecordMatcher(Y)}function y(Y,$){if($=Oe({},$||l.value),typeof Y=="string"){const O=vd(i,Y,$.path),L=e.resolve({path:O.path},$),V=n.createHref(O.fullPath);return Oe(O,L,{params:h(L.params),hash:Ko(O.hash),redirectedFrom:void 0,href:V})}let R;if(Y.path!=null)R=Oe({},Y,{path:vd(i,Y.path,$.path).path});else{const O=Oe({},Y.params);for(const L in O)O[L]==null&&delete O[L];R=Oe({},Y,{params:u(O)}),$.params=u($.params)}const M=e.resolve(R,$),z=Y.hash||"";M.params=d(h(M.params));const v=Tk(s,Oe({},Y,{hash:xk(z),path:M.path})),_=n.createHref(v);return Oe({fullPath:v,hash:z,query:s===Zp?sS(Y.query):Y.query||{}},M,{redirectedFrom:void 0,href:_})}function C(Y){return typeof Y=="string"?vd(i,Y,l.value.path):Oe({},Y)}function w(Y,$){if(c!==Y)return Cr(8,{from:$,to:Y})}function A(Y){return T(Y)}function x(Y){return A(Oe(C(Y),{replace:!0}))}function E(Y){const $=Y.matched[Y.matched.length-1];if($&&$.redirect){const{redirect:R}=$;let M=typeof R=="function"?R(Y):R;return typeof M=="string"&&(M=M.includes("?")||M.includes("#")?M=C(M):{path:M},M.params={}),Oe({query:Y.query,hash:Y.hash,params:M.path!=null?{}:Y.params},M)}}function T(Y,$){const R=c=y(Y),M=l.value,z=Y.state,v=Y.force,_=Y.replace===!0,O=E(R);if(O)return T(Oe(C(O),{state:typeof O=="object"?Oe({},z,O.state):z,force:v,replace:_}),$||R);const L=R;L.redirectedFrom=$;let V;return!v&&Ek(s,M,R)&&(V=Cr(16,{to:L,from:M}),Ee(M,M,!0,!1)),(V?Promise.resolve(V):I(L,M)).catch(U=>Qi(U)?Qi(U,2)?U:be(U):J(U,L,M)).then(U=>{if(U){if(Qi(U,2))return T(Oe({replace:_},C(U.to),{state:typeof U.to=="object"?Oe({},z,U.to.state):z,force:v}),$||L)}else U=b(L,M,!0,_,z);return S(L,M,U),U})}function P(Y,$){const R=w(Y,$);return R?Promise.reject(R):Promise.resolve()}function k(Y){const $=Ze.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(Y):Y()}function I(Y,$){let R;const[M,z,v]=uS(Y,$);R=bd(M.reverse(),"beforeRouteLeave",Y,$);for(const O of M)O.leaveGuards.forEach(L=>{R.push(Ls(L,Y,$))});const _=P.bind(null,Y,$);return R.push(_),Pe(R).then(()=>{R=[];for(const O of r.list())R.push(Ls(O,Y,$));return R.push(_),Pe(R)}).then(()=>{R=bd(z,"beforeRouteUpdate",Y,$);for(const O of z)O.updateGuards.forEach(L=>{R.push(Ls(L,Y,$))});return R.push(_),Pe(R)}).then(()=>{R=[];for(const O of v)if(O.beforeEnter)if(Oi(O.beforeEnter))for(const L of O.beforeEnter)R.push(Ls(L,Y,$));else R.push(Ls(O.beforeEnter,Y,$));return R.push(_),Pe(R)}).then(()=>(Y.matched.forEach(O=>O.enterCallbacks={}),R=bd(v,"beforeRouteEnter",Y,$,k),R.push(_),Pe(R))).then(()=>{R=[];for(const O of o.list())R.push(Ls(O,Y,$));return R.push(_),Pe(R)}).catch(O=>Qi(O,8)?O:Promise.reject(O))}function S(Y,$,R){a.list().forEach(M=>k(()=>M(Y,$,R)))}function b(Y,$,R,M,z){const v=w(Y,$);if(v)return v;const _=$===As,O=ar?history.state:{};R&&(M||_?n.replace(Y.fullPath,Oe({scroll:_&&O&&O.scroll},z)):n.push(Y.fullPath,z)),l.value=Y,Ee(Y,$,R,_),be()}let D;function B(){D||(D=n.listen((Y,$,R)=>{if(!ht.listening)return;const M=y(Y),z=E(M);if(z){T(Oe(z,{replace:!0,force:!0}),M).catch(xo);return}c=M;const v=l.value;ar&&Dk(qp(v.fullPath,R.delta),Ac()),I(M,v).catch(_=>Qi(_,12)?_:Qi(_,2)?(T(Oe(C(_.to),{force:!0}),M).then(O=>{Qi(O,20)&&!R.delta&&R.type===Go.pop&&n.go(-1,!1)}).catch(xo),Promise.reject()):(R.delta&&n.go(-R.delta,!1),J(_,M,v))).then(_=>{_=_||b(M,v,!1),_&&(R.delta&&!Qi(_,8)?n.go(-R.delta,!1):R.type===Go.pop&&Qi(_,20)&&n.go(-1,!1)),S(M,v,_)}).catch(xo)}))}let N=Kr(),G=Kr(),q;function J(Y,$,R){be(Y);const M=G.list();return M.length?M.forEach(z=>z(Y,$,R)):console.error(Y),Promise.reject(Y)}function ae(){return q&&l.value!==As?Promise.resolve():new Promise((Y,$)=>{N.add([Y,$])})}function be(Y){return q||(q=!Y,B(),N.list().forEach(([$,R])=>Y?R(Y):$()),N.reset()),Y}function Ee(Y,$,R,M){const{scrollBehavior:z}=t;if(!ar||!z)return Promise.resolve();const v=!R&&Fk(qp(Y.fullPath,0))||(M||!R)&&history.state&&history.state.scroll||null;return ua().then(()=>z(Y,$,v)).then(_=>_&&Lk(_)).catch(_=>J(_,Y,$))}const ke=Y=>n.go(Y);let Je;const Ze=new Set,ht={currentRoute:l,listening:!0,addRoute:f,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:g,resolve:y,options:t,push:A,replace:x,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:G.add,isReady:ae,install(Y){const $=this;Y.component("RouterLink",si),Y.component("RouterView",vy),Y.config.globalProperties.$router=$,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Ae(l)}),ar&&!Je&&l.value===As&&(Je=!0,A(n.location).catch(z=>{}));const R={};for(const z in As)Object.defineProperty(R,z,{get:()=>l.value[z],enumerable:!0});Y.provide(qh,$),Y.provide(my,cb(R)),Y.provide(Su,l);const M=Y.unmount;Ze.add(Y),Y.unmount=function(){Ze.delete(Y),Ze.size<1&&(c=As,D&&D(),D=null,l.value=As,Je=!1,q=!1),M()}}};function Pe(Y){return Y.reduce(($,R)=>$.then(()=>k(R)),Promise.resolve())}return ht}function uS(t,e){const i=[],s=[],n=[],r=Math.max(e.matched.length,t.matched.length);for(let o=0;oSr(c,a))?s.push(a):i.push(a));const l=t.matched[o];l&&(e.matched.find(c=>Sr(c,l))||n.push(l))}return[i,s,n]}const tn=sy("viewMode",{state(){return{screenWidth:window.innerWidth,screenHeight:window.innerHeight,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}},getters:{isMobile(){return this.screenWidth<=820},windowHeight(){return this.screenHeight},isDarkMode(){return this.darkMode},themeString(){return this.darkMode?"dark":"light"}},actions:{updateScreenWidth(t){this.screenWidth=t},updateScreenHeight(t){this.screenHeight=t},updateDarkMode(){var t;this.darkMode=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,(t=document.querySelector("html"))==null||t.setAttribute("theme",this.darkMode?"dark":"light")},toggleUserDarkMode(){var t;this.darkMode=!this.darkMode,(t=document.querySelector("html"))==null||t.setAttribute("theme",this.darkMode?"dark":"light")}}}),fa="MatchData",Tc="PitData",hS="Event",Ec="Team",rg="RobotPhoto",og="robot-photos",by="2025vapor",fS="modulepreload",pS=function(t){return"/"+t},ag={},pa=function(e,i,s){let n=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));n=Promise.allSettled(i.map(l=>{if(l=pS(l),l in ag)return;ag[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const u=document.createElement("link");if(u.rel=c?"stylesheet":fS,c||(u.as="script"),u.crossOrigin="",u.href=l,a&&u.setAttribute("nonce",a),document.head.appendChild(u),c)return new Promise((h,f)=>{u.addEventListener("load",h),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return n.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},gS=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>pa(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)};class Hh extends Error{constructor(e,i="FunctionsError",s){super(e),this.name=i,this.context=s}}class mS extends Hh{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class lg extends Hh{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class cg extends Hh{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Cu;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(Cu||(Cu={}));var vS=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class bS{constructor(e,{headers:i={},customFetch:s,region:n=Cu.Any}={}){this.url=e,this.headers=i,this.region=n,this.fetch=gS(s)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,i={}){var s;return vS(this,void 0,void 0,function*(){try{const{headers:n,method:r,body:o}=i;let a={},{region:l}=i;l||(l=this.region);const c=new URL(`${this.url}/${e}`);l&&l!=="any"&&(a["x-region"]=l,c.searchParams.set("forceFunctionRegion",l));let d;o&&(n&&!Object.prototype.hasOwnProperty.call(n,"Content-Type")||!n)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",d=o):typeof o=="string"?(a["Content-Type"]="text/plain",d=o):typeof FormData<"u"&&o instanceof FormData?d=o:(a["Content-Type"]="application/json",d=JSON.stringify(o)));const u=yield this.fetch(c.toString(),{method:r||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),n),body:d}).catch(g=>{throw new mS(g)}),h=u.headers.get("x-relay-error");if(h&&h==="true")throw new lg(u);if(!u.ok)throw new cg(u);let f=((s=u.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),p;return f==="application/json"?p=yield u.json():f==="application/octet-stream"?p=yield u.blob():f==="text/event-stream"?p=u:f==="multipart/form-data"?p=yield u.formData():p=yield u.text(),{data:p,error:null,response:u}}catch(n){return{data:null,error:n,response:n instanceof cg||n instanceof lg?n.context:void 0}}})}}var bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yS(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var i=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),i}var Jt={},Wh={},Pc={},ga={},Oc={},Ic={},_S=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Ar=_S();const xS=Ar.fetch,yy=Ar.fetch.bind(Ar),_y=Ar.Headers,wS=Ar.Request,kS=Ar.Response,Fr=Object.freeze(Object.defineProperty({__proto__:null,Headers:_y,Request:wS,Response:kS,default:yy,fetch:xS},Symbol.toStringTag,{value:"Module"})),SS=yS(Fr);var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});let CS=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}};Mc.default=CS;var xy=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ic,"__esModule",{value:!0});const AS=xy(SS),TS=xy(Mc);let ES=class{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.isMaybeSingle=e.isMaybeSingle,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=AS.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,i){return this.headers=Object.assign({},this.headers),this.headers[e]=i,this}then(e,i){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const s=this.fetch;let n=s(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async r=>{var o,a,l;let c=null,d=null,u=null,h=r.status,f=r.statusText;if(r.ok){if(this.method!=="HEAD"){const y=await r.text();y===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?d=y:d=JSON.parse(y))}const g=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),m=(a=r.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");g&&m&&m.length>1&&(u=parseInt(m[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(d)&&(d.length>1?(c={code:"PGRST116",details:`Results contain ${d.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},d=null,u=null,h=406,f="Not Acceptable"):d.length===1?d=d[0]:d=null)}else{const g=await r.text();try{c=JSON.parse(g),Array.isArray(c)&&r.status===404&&(d=[],c=null,h=200,f="OK")}catch{r.status===404&&g===""?(h=204,f="No Content"):c={message:g}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("0 rows"))&&(c=null,h=200,f="OK"),c&&this.shouldThrowOnError)throw new TS.default(c)}return{error:c,data:d,count:u,status:h,statusText:f}});return this.shouldThrowOnError||(n=n.catch(r=>{var o,a,l;return{error:{message:`${(o=r==null?void 0:r.name)!==null&&o!==void 0?o:"FetchError"}: ${r==null?void 0:r.message}`,details:`${(a=r==null?void 0:r.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=r==null?void 0:r.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),n.then(e,i)}returns(){return this}overrideTypes(){return this}};Ic.default=ES;var PS=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Oc,"__esModule",{value:!0});const OS=PS(Ic);let IS=class extends OS.default{select(e){let i=!1;const s=(e??"*").split("").map(n=>/\s/.test(n)&&!i?"":(n==='"'&&(i=!i),n)).join("");return this.url.searchParams.set("select",s),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:i=!0,nullsFirst:s,foreignTable:n,referencedTable:r=n}={}){const o=r?`${r}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${e}.${i?"asc":"desc"}${s===void 0?"":s?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:i,referencedTable:s=i}={}){const n=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,i,{foreignTable:s,referencedTable:n=s}={}){const r=typeof n>"u"?"offset":`${n}.offset`,o=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this.url.searchParams.set(o,`${i-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:e=!1,verbose:i=!1,settings:s=!1,buffers:n=!1,wal:r=!1,format:o="text"}={}){var a;const l=[e?"analyze":null,i?"verbose":null,s?"settings":null,n?"buffers":null,r?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${c}"; options=${l};`,o==="json"?this:this}rollback(){var e;return((e=this.headers.Prefer)!==null&&e!==void 0?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};Oc.default=IS;var MS=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ga,"__esModule",{value:!0});const RS=MS(Oc);let $S=class extends RS.default{eq(e,i){return this.url.searchParams.append(e,`eq.${i}`),this}neq(e,i){return this.url.searchParams.append(e,`neq.${i}`),this}gt(e,i){return this.url.searchParams.append(e,`gt.${i}`),this}gte(e,i){return this.url.searchParams.append(e,`gte.${i}`),this}lt(e,i){return this.url.searchParams.append(e,`lt.${i}`),this}lte(e,i){return this.url.searchParams.append(e,`lte.${i}`),this}like(e,i){return this.url.searchParams.append(e,`like.${i}`),this}likeAllOf(e,i){return this.url.searchParams.append(e,`like(all).{${i.join(",")}}`),this}likeAnyOf(e,i){return this.url.searchParams.append(e,`like(any).{${i.join(",")}}`),this}ilike(e,i){return this.url.searchParams.append(e,`ilike.${i}`),this}ilikeAllOf(e,i){return this.url.searchParams.append(e,`ilike(all).{${i.join(",")}}`),this}ilikeAnyOf(e,i){return this.url.searchParams.append(e,`ilike(any).{${i.join(",")}}`),this}is(e,i){return this.url.searchParams.append(e,`is.${i}`),this}in(e,i){const s=Array.from(new Set(i)).map(n=>typeof n=="string"&&new RegExp("[,()]").test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${s})`),this}contains(e,i){return typeof i=="string"?this.url.searchParams.append(e,`cs.${i}`):Array.isArray(i)?this.url.searchParams.append(e,`cs.{${i.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(i)}`),this}containedBy(e,i){return typeof i=="string"?this.url.searchParams.append(e,`cd.${i}`):Array.isArray(i)?this.url.searchParams.append(e,`cd.{${i.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(i)}`),this}rangeGt(e,i){return this.url.searchParams.append(e,`sr.${i}`),this}rangeGte(e,i){return this.url.searchParams.append(e,`nxl.${i}`),this}rangeLt(e,i){return this.url.searchParams.append(e,`sl.${i}`),this}rangeLte(e,i){return this.url.searchParams.append(e,`nxr.${i}`),this}rangeAdjacent(e,i){return this.url.searchParams.append(e,`adj.${i}`),this}overlaps(e,i){return typeof i=="string"?this.url.searchParams.append(e,`ov.${i}`):this.url.searchParams.append(e,`ov.{${i.join(",")}}`),this}textSearch(e,i,{config:s,type:n}={}){let r="";n==="plain"?r="pl":n==="phrase"?r="ph":n==="websearch"&&(r="w");const o=s===void 0?"":`(${s})`;return this.url.searchParams.append(e,`${r}fts${o}.${i}`),this}match(e){return Object.entries(e).forEach(([i,s])=>{this.url.searchParams.append(i,`eq.${s}`)}),this}not(e,i,s){return this.url.searchParams.append(e,`not.${i}.${s}`),this}or(e,{foreignTable:i,referencedTable:s=i}={}){const n=s?`${s}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,i,s){return this.url.searchParams.append(e,`${i}.${s}`),this}};ga.default=$S;var LS=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pc,"__esModule",{value:!0});const Gr=LS(ga);let DS=class{constructor(e,{headers:i={},schema:s,fetch:n}){this.url=e,this.headers=i,this.schema=s,this.fetch=n}select(e,{head:i=!1,count:s}={}){const n=i?"HEAD":"GET";let r=!1;const o=(e??"*").split("").map(a=>/\s/.test(a)&&!r?"":(a==='"'&&(r=!r),a)).join("");return this.url.searchParams.set("select",o),s&&(this.headers.Prefer=`count=${s}`),new Gr.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:i,defaultToNull:s=!0}={}){const n="POST",r=[];if(this.headers.Prefer&&r.push(this.headers.Prefer),i&&r.push(`count=${i}`),s||r.push("missing=default"),this.headers.Prefer=r.join(","),Array.isArray(e)){const o=e.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>0){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new Gr.default({method:n,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:i,ignoreDuplicates:s=!1,count:n,defaultToNull:r=!0}={}){const o="POST",a=[`resolution=${s?"ignore":"merge"}-duplicates`];if(i!==void 0&&this.url.searchParams.set("on_conflict",i),this.headers.Prefer&&a.push(this.headers.Prefer),n&&a.push(`count=${n}`),r||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(e)){const l=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);this.url.searchParams.set("columns",c.join(","))}}return new Gr.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:i}={}){const s="PATCH",n=[];return this.headers.Prefer&&n.push(this.headers.Prefer),i&&n.push(`count=${i}`),this.headers.Prefer=n.join(","),new Gr.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){const i="DELETE",s=[];return e&&s.push(`count=${e}`),this.headers.Prefer&&s.unshift(this.headers.Prefer),this.headers.Prefer=s.join(","),new Gr.default({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Pc.default=DS;var Rc={},$c={};Object.defineProperty($c,"__esModule",{value:!0});$c.version=void 0;$c.version="0.0.0-automated";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.DEFAULT_HEADERS=void 0;const FS=$c;Rc.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${FS.version}`};var wy=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Wh,"__esModule",{value:!0});const NS=wy(Pc),BS=wy(ga),jS=Rc;let zS=class ky{constructor(e,{headers:i={},schema:s,fetch:n}={}){this.url=e,this.headers=Object.assign(Object.assign({},jS.DEFAULT_HEADERS),i),this.schemaName=s,this.fetch=n}from(e){const i=new URL(`${this.url}/${e}`);return new NS.default(i,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new ky(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,i={},{head:s=!1,get:n=!1,count:r}={}){let o;const a=new URL(`${this.url}/rpc/${e}`);let l;s||n?(o=s?"HEAD":"GET",Object.entries(i).filter(([d,u])=>u!==void 0).map(([d,u])=>[d,Array.isArray(u)?`{${u.join(",")}}`:`${u}`]).forEach(([d,u])=>{a.searchParams.append(d,u)})):(o="POST",l=i);const c=Object.assign({},this.headers);return r&&(c.Prefer=`count=${r}`),new BS.default({method:o,url:a,headers:c,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};Wh.default=zS;var Nr=bi&&bi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.PostgrestError=Jt.PostgrestBuilder=Jt.PostgrestTransformBuilder=Jt.PostgrestFilterBuilder=Jt.PostgrestQueryBuilder=Jt.PostgrestClient=void 0;const Sy=Nr(Wh);Jt.PostgrestClient=Sy.default;const Cy=Nr(Pc);Jt.PostgrestQueryBuilder=Cy.default;const Ay=Nr(ga);Jt.PostgrestFilterBuilder=Ay.default;const Ty=Nr(Oc);Jt.PostgrestTransformBuilder=Ty.default;const Ey=Nr(Ic);Jt.PostgrestBuilder=Ey.default;const Py=Nr(Mc);Jt.PostgrestError=Py.default;var VS=Jt.default={PostgrestClient:Sy.default,PostgrestQueryBuilder:Cy.default,PostgrestFilterBuilder:Ay.default,PostgrestTransformBuilder:Ty.default,PostgrestBuilder:Ey.default,PostgrestError:Py.default};const{PostgrestClient:US,PostgrestQueryBuilder:PF,PostgrestFilterBuilder:OF,PostgrestTransformBuilder:IF,PostgrestBuilder:MF,PostgrestError:RF}=VS;class qS{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"&&process.versions&&process.versions.node){const i=parseInt(process.versions.node.split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: import ws from "ws" new RealtimeClient(url, { transport: ws })`}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let i=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(i+=` -Suggested solution: ${e.workaround}`),new Error(i)}static createWebSocket(e,i){const s=this.getWebSocketConstructor();return new s(e,i)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const qS="2.15.1",HS=`realtime-js/${qS}`,WS="1.0.0",xu=1e4,KS=1e3,GS=100;var ko;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(ko||(ko={}));var lt;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(lt||(lt={}));var xi;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(xi||(xi={}));var wu;(function(t){t.websocket="websocket"})(wu||(wu={}));var Cn;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Cn||(Cn={}));class YS{constructor(){this.HEADER_LENGTH=1}decode(e,i){return e.constructor===ArrayBuffer?i(this._binaryDecode(e)):i(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const i=new DataView(e),s=new TextDecoder;return this._decodeBroadcast(e,i,s)}_decodeBroadcast(e,i,s){const n=i.getUint8(1),r=i.getUint8(2);let o=this.HEADER_LENGTH+2;const a=s.decode(e.slice(o,o+n));o=o+n;const l=s.decode(e.slice(o,o+r));o=o+r;const c=JSON.parse(s.decode(e.slice(o,e.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class Ey{constructor(e,i){this.callback=e,this.timerCalc=i,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=i}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ze;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(ze||(ze={}));const lg=(t,e,i={})=>{var s;const n=(s=i.skipTypes)!==null&&s!==void 0?s:[];return Object.keys(e).reduce((r,o)=>(r[o]=JS(o,t,e,n),r),{})},JS=(t,e,i,s)=>{const n=e.find(a=>a.name===t),r=n==null?void 0:n.type,o=i[t];return r&&!s.includes(r)?Py(r,o):ku(o)},Py=(t,e)=>{if(t.charAt(0)==="_"){const i=t.slice(1,t.length);return eC(e,i)}switch(t){case ze.bool:return XS(e);case ze.float4:case ze.float8:case ze.int2:case ze.int4:case ze.int8:case ze.numeric:case ze.oid:return QS(e);case ze.json:case ze.jsonb:return ZS(e);case ze.timestamp:return tC(e);case ze.abstime:case ze.date:case ze.daterange:case ze.int4range:case ze.int8range:case ze.money:case ze.reltime:case ze.text:case ze.time:case ze.timestamptz:case ze.timetz:case ze.tsrange:case ze.tstzrange:return ku(e);default:return ku(e)}},ku=t=>t,XS=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},QS=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},ZS=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},eC=(t,e)=>{if(typeof t!="string")return t;const i=t.length-1,s=t[i];if(t[0]==="{"&&s==="}"){let r;const o=t.slice(1,i);try{r=JSON.parse("["+o+"]")}catch{r=o?o.split(","):[]}return r.map(a=>Py(e,a))}return t},tC=t=>typeof t=="string"?t.replace(" ","T"):t,Oy=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class pd{constructor(e,i,s={},n=xu){this.channel=e,this.event=i,this.payload=s,this.timeout=n,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,i){var s;return this._hasReceived(e)&&i((s=this.receivedResp)===null||s===void 0?void 0:s.response),this.recHooks.push({status:e,callback:i}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=i=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=i,this._matchReceive(i)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,i){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:i})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:i}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(i))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var cg;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(cg||(cg={}));class So{constructor(e,i){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const s=(i==null?void 0:i.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(s.state,{},n=>{const{onJoin:r,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=So.syncState(this.state,n,r,o),this.pendingDiffs.forEach(l=>{this.state=So.syncDiff(this.state,l,r,o)}),this.pendingDiffs=[],a()}),this.channel._on(s.diff,{},n=>{const{onJoin:r,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(n):(this.state=So.syncDiff(this.state,n,r,o),a())}),this.onJoin((n,r,o)=>{this.channel._trigger("presence",{event:"join",key:n,currentPresences:r,newPresences:o})}),this.onLeave((n,r,o)=>{this.channel._trigger("presence",{event:"leave",key:n,currentPresences:r,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,i,s,n){const r=this.cloneDeep(e),o=this.transformState(i),a={},l={};return this.map(r,(c,d)=>{o[c]||(l[c]=d)}),this.map(o,(c,d)=>{const u=r[c];if(u){const h=d.map(m=>m.presence_ref),f=u.map(m=>m.presence_ref),p=d.filter(m=>f.indexOf(m.presence_ref)<0),g=u.filter(m=>h.indexOf(m.presence_ref)<0);p.length>0&&(a[c]=p),g.length>0&&(l[c]=g)}else a[c]=d}),this.syncDiff(r,{joins:a,leaves:l},s,n)}static syncDiff(e,i,s,n){const{joins:r,leaves:o}={joins:this.transformState(i.joins),leaves:this.transformState(i.leaves)};return s||(s=()=>{}),n||(n=()=>{}),this.map(r,(a,l)=>{var c;const d=(c=e[a])!==null&&c!==void 0?c:[];if(e[a]=this.cloneDeep(l),d.length>0){const u=e[a].map(f=>f.presence_ref),h=d.filter(f=>u.indexOf(f.presence_ref)<0);e[a].unshift(...h)}s(a,d,l)}),this.map(o,(a,l)=>{let c=e[a];if(!c)return;const d=l.map(u=>u.presence_ref);c=c.filter(u=>d.indexOf(u.presence_ref)<0),e[a]=c,n(a,c,l),c.length===0&&delete e[a]}),e}static map(e,i){return Object.getOwnPropertyNames(e).map(s=>i(s,e[s]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((i,s)=>{const n=e[s];return"metas"in n?i[s]=n.metas.map(r=>(r.presence_ref=r.phx_ref,delete r.phx_ref,delete r.phx_ref_prev,r)):i[s]=n,i},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var dg;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(dg||(dg={}));var Co;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Co||(Co={}));var os;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(os||(os={}));class Wh{constructor(e,i={config:{}},s){this.topic=e,this.params=i,this.socket=s,this.bindings={},this.state=lt.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.timeout=this.socket.timeout,this.joinPush=new pd(this,xi.join,this.params,this.timeout),this.rejoinTimer=new Ey(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=lt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=lt.closed,this.socket._remove(this)}),this._onError(n=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,n),this.state=lt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=lt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",n=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,n),this.state=lt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(xi.reply,{},(n,r)=>{this._trigger(this._replyEventName(r),n)}),this.presence=new So(this),this.broadcastEndpointURL=Oy(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,i=this.timeout){var s,n;if(this.socket.isConnected()||this.socket.connect(),this.state==lt.closed){const{config:{broadcast:r,presence:o,private:a}}=this.params,l=(n=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(h=>h.filter))!==null&&n!==void 0?n:[],c=!!this.bindings[Co.PRESENCE]&&this.bindings[Co.PRESENCE].length>0,d={},u={broadcast:r,presence:Object.assign(Object.assign({},o),{enabled:c}),postgres_changes:l,private:a};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(h=>e==null?void 0:e(os.CHANNEL_ERROR,h)),this._onClose(()=>e==null?void 0:e(os.CLOSED)),this.updateJoinPayload(Object.assign({config:u},d)),this.joinedOnce=!0,this._rejoin(i),this.joinPush.receive("ok",async({postgres_changes:h})=>{var f;if(this.socket.setAuth(),h===void 0){e==null||e(os.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,g=(f=p==null?void 0:p.length)!==null&&f!==void 0?f:0,m=[];for(let y=0;y{this.state=lt.errored,e==null||e(os.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(os.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,i={}){return await this.send({type:"presence",event:"track",payload:e},i.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,i,s){return this.state===lt.joined&&e===Co.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,i,s)}async send(e,i={}){var s,n;if(!this._canPush()&&e.type==="broadcast"){const{event:r,payload:o}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:r,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(s=i.timeout)!==null&&s!==void 0?s:this.timeout);return await((n=c.body)===null||n===void 0?void 0:n.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(r=>{var o,a,l;const c=this._push(e.type,e,i.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&r("ok"),c.receive("ok",()=>r("ok")),c.receive("error",()=>r("error")),c.receive("timeout",()=>r("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=lt.leaving;const i=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(xi.close,"leave",this._joinRef())};this.joinPush.destroy();let s=null;return new Promise(n=>{s=new pd(this,xi.leave,{},e),s.receive("ok",()=>{i(),n("ok")}).receive("timeout",()=>{i(),n("timed out")}).receive("error",()=>{n("error")}),s.send(),this._canPush()||s.trigger("ok",{})}).finally(()=>{s==null||s.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=lt.closed,this.bindings={}}async _fetchWithTimeout(e,i,s){const n=new AbortController,r=setTimeout(()=>n.abort(),s),o=await this.socket.fetch(e,Object.assign(Object.assign({},i),{signal:n.signal}));return clearTimeout(r),o}_push(e,i,s=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let n=new pd(this,e,i,s);return this._canPush()?n.send():this._addToPushBuffer(n),n}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>GS){const i=this.pushBuffer.shift();i&&(i.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload))}}_onMessage(e,i,s){return i}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,i,s){var n,r;const o=e.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=xi;if(s&&[a,l,c,d].indexOf(o)>=0&&s!==this._joinRef())return;let h=this._onMessage(o,i,s);if(i&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(n=this.bindings.postgres_changes)===null||n===void 0||n.filter(f=>{var p,g,m;return((p=f.filter)===null||p===void 0?void 0:p.event)==="*"||((m=(g=f.filter)===null||g===void 0?void 0:g.event)===null||m===void 0?void 0:m.toLocaleLowerCase())===o}).map(f=>f.callback(h,s)):(r=this.bindings[o])===null||r===void 0||r.filter(f=>{var p,g,m,y,C,w;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in f){const A=f.id,x=(p=f.filter)===null||p===void 0?void 0:p.event;return A&&((g=i.ids)===null||g===void 0?void 0:g.includes(A))&&(x==="*"||(x==null?void 0:x.toLocaleLowerCase())===((m=i.data)===null||m===void 0?void 0:m.type.toLocaleLowerCase()))}else{const A=(C=(y=f==null?void 0:f.filter)===null||y===void 0?void 0:y.event)===null||C===void 0?void 0:C.toLocaleLowerCase();return A==="*"||A===((w=i==null?void 0:i.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===o}).map(f=>{if(typeof h=="object"&&"ids"in h){const p=h.data,{schema:g,table:m,commit_timestamp:y,type:C,errors:w}=p;h=Object.assign(Object.assign({},{schema:g,table:m,commit_timestamp:y,eventType:C,new:{},old:{},errors:w}),this._getPayloadRecords(p))}f.callback(h,s)})}_isClosed(){return this.state===lt.closed}_isJoined(){return this.state===lt.joined}_isJoining(){return this.state===lt.joining}_isLeaving(){return this.state===lt.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,i,s){const n=e.toLocaleLowerCase(),r={type:n,filter:i,callback:s};return this.bindings[n]?this.bindings[n].push(r):this.bindings[n]=[r],this}_off(e,i){const s=e.toLocaleLowerCase();return this.bindings[s]&&(this.bindings[s]=this.bindings[s].filter(n=>{var r;return!(((r=n.type)===null||r===void 0?void 0:r.toLocaleLowerCase())===s&&Wh.isEqual(n.filter,i))})),this}static isEqual(e,i){if(Object.keys(e).length!==Object.keys(i).length)return!1;for(const s in e)if(e[s]!==i[s])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(xi.close,{},e)}_onError(e){this._on(xi.error,{},i=>e(i))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=lt.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const i={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(i.new=lg(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(i.old=lg(e.columns,e.old_record)),i}}const ug=()=>{},Ia={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},iC=[1e3,2e3,5e3,1e4],sC=1e4,nC=` +Suggested solution: ${e.workaround}`),new Error(i)}static createWebSocket(e,i){const s=this.getWebSocketConstructor();return new s(e,i)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const HS="2.15.1",WS=`realtime-js/${HS}`,KS="1.0.0",Au=1e4,GS=1e3,YS=100;var ko;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(ko||(ko={}));var ct;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(ct||(ct={}));var wi;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(wi||(wi={}));var Tu;(function(t){t.websocket="websocket"})(Tu||(Tu={}));var An;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(An||(An={}));class JS{constructor(){this.HEADER_LENGTH=1}decode(e,i){return e.constructor===ArrayBuffer?i(this._binaryDecode(e)):i(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const i=new DataView(e),s=new TextDecoder;return this._decodeBroadcast(e,i,s)}_decodeBroadcast(e,i,s){const n=i.getUint8(1),r=i.getUint8(2);let o=this.HEADER_LENGTH+2;const a=s.decode(e.slice(o,o+n));o=o+n;const l=s.decode(e.slice(o,o+r));o=o+r;const c=JSON.parse(s.decode(e.slice(o,e.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class Oy{constructor(e,i){this.callback=e,this.timerCalc=i,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=i}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Ve;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.tsrange="tsrange",t.tstzrange="tstzrange"})(Ve||(Ve={}));const dg=(t,e,i={})=>{var s;const n=(s=i.skipTypes)!==null&&s!==void 0?s:[];return Object.keys(e).reduce((r,o)=>(r[o]=XS(o,t,e,n),r),{})},XS=(t,e,i,s)=>{const n=e.find(a=>a.name===t),r=n==null?void 0:n.type,o=i[t];return r&&!s.includes(r)?Iy(r,o):Eu(o)},Iy=(t,e)=>{if(t.charAt(0)==="_"){const i=t.slice(1,t.length);return tC(e,i)}switch(t){case Ve.bool:return QS(e);case Ve.float4:case Ve.float8:case Ve.int2:case Ve.int4:case Ve.int8:case Ve.numeric:case Ve.oid:return ZS(e);case Ve.json:case Ve.jsonb:return eC(e);case Ve.timestamp:return iC(e);case Ve.abstime:case Ve.date:case Ve.daterange:case Ve.int4range:case Ve.int8range:case Ve.money:case Ve.reltime:case Ve.text:case Ve.time:case Ve.timestamptz:case Ve.timetz:case Ve.tsrange:case Ve.tstzrange:return Eu(e);default:return Eu(e)}},Eu=t=>t,QS=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},ZS=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},eC=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},tC=(t,e)=>{if(typeof t!="string")return t;const i=t.length-1,s=t[i];if(t[0]==="{"&&s==="}"){let r;const o=t.slice(1,i);try{r=JSON.parse("["+o+"]")}catch{r=o?o.split(","):[]}return r.map(a=>Iy(e,a))}return t},iC=t=>typeof t=="string"?t.replace(" ","T"):t,My=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class yd{constructor(e,i,s={},n=Au){this.channel=e,this.event=i,this.payload=s,this.timeout=n,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,i){var s;return this._hasReceived(e)&&i((s=this.receivedResp)===null||s===void 0?void 0:s.response),this.recHooks.push({status:e,callback:i}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=i=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=i,this._matchReceive(i)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,i){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:i})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:i}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(i))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var ug;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(ug||(ug={}));class So{constructor(e,i){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const s=(i==null?void 0:i.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(s.state,{},n=>{const{onJoin:r,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=So.syncState(this.state,n,r,o),this.pendingDiffs.forEach(l=>{this.state=So.syncDiff(this.state,l,r,o)}),this.pendingDiffs=[],a()}),this.channel._on(s.diff,{},n=>{const{onJoin:r,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(n):(this.state=So.syncDiff(this.state,n,r,o),a())}),this.onJoin((n,r,o)=>{this.channel._trigger("presence",{event:"join",key:n,currentPresences:r,newPresences:o})}),this.onLeave((n,r,o)=>{this.channel._trigger("presence",{event:"leave",key:n,currentPresences:r,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,i,s,n){const r=this.cloneDeep(e),o=this.transformState(i),a={},l={};return this.map(r,(c,d)=>{o[c]||(l[c]=d)}),this.map(o,(c,d)=>{const u=r[c];if(u){const h=d.map(m=>m.presence_ref),f=u.map(m=>m.presence_ref),p=d.filter(m=>f.indexOf(m.presence_ref)<0),g=u.filter(m=>h.indexOf(m.presence_ref)<0);p.length>0&&(a[c]=p),g.length>0&&(l[c]=g)}else a[c]=d}),this.syncDiff(r,{joins:a,leaves:l},s,n)}static syncDiff(e,i,s,n){const{joins:r,leaves:o}={joins:this.transformState(i.joins),leaves:this.transformState(i.leaves)};return s||(s=()=>{}),n||(n=()=>{}),this.map(r,(a,l)=>{var c;const d=(c=e[a])!==null&&c!==void 0?c:[];if(e[a]=this.cloneDeep(l),d.length>0){const u=e[a].map(f=>f.presence_ref),h=d.filter(f=>u.indexOf(f.presence_ref)<0);e[a].unshift(...h)}s(a,d,l)}),this.map(o,(a,l)=>{let c=e[a];if(!c)return;const d=l.map(u=>u.presence_ref);c=c.filter(u=>d.indexOf(u.presence_ref)<0),e[a]=c,n(a,c,l),c.length===0&&delete e[a]}),e}static map(e,i){return Object.getOwnPropertyNames(e).map(s=>i(s,e[s]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((i,s)=>{const n=e[s];return"metas"in n?i[s]=n.metas.map(r=>(r.presence_ref=r.phx_ref,delete r.phx_ref,delete r.phx_ref_prev,r)):i[s]=n,i},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var hg;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(hg||(hg={}));var Co;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Co||(Co={}));var as;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(as||(as={}));class Kh{constructor(e,i={config:{}},s){this.topic=e,this.params=i,this.socket=s,this.bindings={},this.state=ct.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.timeout=this.socket.timeout,this.joinPush=new yd(this,wi.join,this.params,this.timeout),this.rejoinTimer=new Oy(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=ct.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=ct.closed,this.socket._remove(this)}),this._onError(n=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,n),this.state=ct.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=ct.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",n=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,n),this.state=ct.errored,this.rejoinTimer.scheduleTimeout())}),this._on(wi.reply,{},(n,r)=>{this._trigger(this._replyEventName(r),n)}),this.presence=new So(this),this.broadcastEndpointURL=My(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,i=this.timeout){var s,n;if(this.socket.isConnected()||this.socket.connect(),this.state==ct.closed){const{config:{broadcast:r,presence:o,private:a}}=this.params,l=(n=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(h=>h.filter))!==null&&n!==void 0?n:[],c=!!this.bindings[Co.PRESENCE]&&this.bindings[Co.PRESENCE].length>0,d={},u={broadcast:r,presence:Object.assign(Object.assign({},o),{enabled:c}),postgres_changes:l,private:a};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(h=>e==null?void 0:e(as.CHANNEL_ERROR,h)),this._onClose(()=>e==null?void 0:e(as.CLOSED)),this.updateJoinPayload(Object.assign({config:u},d)),this.joinedOnce=!0,this._rejoin(i),this.joinPush.receive("ok",async({postgres_changes:h})=>{var f;if(this.socket.setAuth(),h===void 0){e==null||e(as.SUBSCRIBED);return}else{const p=this.bindings.postgres_changes,g=(f=p==null?void 0:p.length)!==null&&f!==void 0?f:0,m=[];for(let y=0;y{this.state=ct.errored,e==null||e(as.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(as.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,i={}){return await this.send({type:"presence",event:"track",payload:e},i.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,i,s){return this.state===ct.joined&&e===Co.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,i,s)}async send(e,i={}){var s,n;if(!this._canPush()&&e.type==="broadcast"){const{event:r,payload:o}=e,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:r,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(s=i.timeout)!==null&&s!==void 0?s:this.timeout);return await((n=c.body)===null||n===void 0?void 0:n.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(r=>{var o,a,l;const c=this._push(e.type,e,i.timeout||this.timeout);e.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&r("ok"),c.receive("ok",()=>r("ok")),c.receive("error",()=>r("error")),c.receive("timeout",()=>r("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=ct.leaving;const i=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(wi.close,"leave",this._joinRef())};this.joinPush.destroy();let s=null;return new Promise(n=>{s=new yd(this,wi.leave,{},e),s.receive("ok",()=>{i(),n("ok")}).receive("timeout",()=>{i(),n("timed out")}).receive("error",()=>{n("error")}),s.send(),this._canPush()||s.trigger("ok",{})}).finally(()=>{s==null||s.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=ct.closed,this.bindings={}}async _fetchWithTimeout(e,i,s){const n=new AbortController,r=setTimeout(()=>n.abort(),s),o=await this.socket.fetch(e,Object.assign(Object.assign({},i),{signal:n.signal}));return clearTimeout(r),o}_push(e,i,s=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let n=new yd(this,e,i,s);return this._canPush()?n.send():this._addToPushBuffer(n),n}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>YS){const i=this.pushBuffer.shift();i&&(i.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload))}}_onMessage(e,i,s){return i}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,i,s){var n,r;const o=e.toLocaleLowerCase(),{close:a,error:l,leave:c,join:d}=wi;if(s&&[a,l,c,d].indexOf(o)>=0&&s!==this._joinRef())return;let h=this._onMessage(o,i,s);if(i&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(n=this.bindings.postgres_changes)===null||n===void 0||n.filter(f=>{var p,g,m;return((p=f.filter)===null||p===void 0?void 0:p.event)==="*"||((m=(g=f.filter)===null||g===void 0?void 0:g.event)===null||m===void 0?void 0:m.toLocaleLowerCase())===o}).map(f=>f.callback(h,s)):(r=this.bindings[o])===null||r===void 0||r.filter(f=>{var p,g,m,y,C,w;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in f){const A=f.id,x=(p=f.filter)===null||p===void 0?void 0:p.event;return A&&((g=i.ids)===null||g===void 0?void 0:g.includes(A))&&(x==="*"||(x==null?void 0:x.toLocaleLowerCase())===((m=i.data)===null||m===void 0?void 0:m.type.toLocaleLowerCase()))}else{const A=(C=(y=f==null?void 0:f.filter)===null||y===void 0?void 0:y.event)===null||C===void 0?void 0:C.toLocaleLowerCase();return A==="*"||A===((w=i==null?void 0:i.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===o}).map(f=>{if(typeof h=="object"&&"ids"in h){const p=h.data,{schema:g,table:m,commit_timestamp:y,type:C,errors:w}=p;h=Object.assign(Object.assign({},{schema:g,table:m,commit_timestamp:y,eventType:C,new:{},old:{},errors:w}),this._getPayloadRecords(p))}f.callback(h,s)})}_isClosed(){return this.state===ct.closed}_isJoined(){return this.state===ct.joined}_isJoining(){return this.state===ct.joining}_isLeaving(){return this.state===ct.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,i,s){const n=e.toLocaleLowerCase(),r={type:n,filter:i,callback:s};return this.bindings[n]?this.bindings[n].push(r):this.bindings[n]=[r],this}_off(e,i){const s=e.toLocaleLowerCase();return this.bindings[s]&&(this.bindings[s]=this.bindings[s].filter(n=>{var r;return!(((r=n.type)===null||r===void 0?void 0:r.toLocaleLowerCase())===s&&Kh.isEqual(n.filter,i))})),this}static isEqual(e,i){if(Object.keys(e).length!==Object.keys(i).length)return!1;for(const s in e)if(e[s]!==i[s])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(wi.close,{},e)}_onError(e){this._on(wi.error,{},i=>e(i))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=ct.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const i={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(i.new=dg(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(i.old=dg(e.columns,e.old_record)),i}}const fg=()=>{},$a={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},sC=[1e3,2e3,5e3,1e4],nC=1e4,rC=` addEventListener("message", (e) => { if (e.data.event === "start") { setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); } - });`;class rC{constructor(e,i){var s;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=xu,this.transport=null,this.heartbeatIntervalMs=Ia.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=ug,this.ref=0,this.reconnectTimer=null,this.logger=ug,this.conn=null,this.sendBuffer=[],this.serializer=new YS,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=n=>{let r;return n?r=n:typeof fetch>"u"?r=(...o)=>ua(async()=>{const{default:a}=await Promise.resolve().then(()=>Fr);return{default:a}},void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):r=fetch,(...o)=>r(...o)},!(!((s=i==null?void 0:i.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey,this.endPoint=`${e}/${wu.websocket}`,this.httpEndpoint=Oy(e),this._initializeOptions(i),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(i==null?void 0:i.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=US.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const i=e.message;throw i.includes("Node.js")?new Error(`${i} + });`;class oC{constructor(e,i){var s;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Au,this.transport=null,this.heartbeatIntervalMs=$a.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=fg,this.ref=0,this.reconnectTimer=null,this.logger=fg,this.conn=null,this.sendBuffer=[],this.serializer=new JS,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=n=>{let r;return n?r=n:typeof fetch>"u"?r=(...o)=>pa(async()=>{const{default:a}=await Promise.resolve().then(()=>Fr);return{default:a}},void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):r=fetch,(...o)=>r(...o)},!(!((s=i==null?void 0:i.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey,this.endPoint=`${e}/${Tu.websocket}`,this.httpEndpoint=My(e),this._initializeOptions(i),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(i==null?void 0:i.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=qS.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const i=e.message;throw i.includes("Node.js")?new Error(`${i} To use Realtime in Node.js, you need to provide a WebSocket implementation: @@ -44,89 +44,89 @@ Option 2: Install and provide the "ws" package: const client = new RealtimeClient(url, { ...options, transport: ws - })`):new Error(`WebSocket not available: ${i}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:WS}))}disconnect(e,i){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const s=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(s),this._setConnectionState("disconnected")},e?this.conn.close(e,i??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const i=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),i}async removeAllChannels(){const e=await Promise.all(this.channels.map(i=>i.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,i,s){this.logger(e,i,s)}connectionState(){switch(this.conn&&this.conn.readyState){case ko.connecting:return Cn.Connecting;case ko.open:return Cn.Open;case ko.closing:return Cn.Closing;default:return Cn.Closed}}isConnected(){return this.connectionState()===Cn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,i={config:{}}){const s=`realtime:${e}`,n=this.getChannels().find(r=>r.topic===s);if(n)return n;{const r=new Wh(`realtime:${e}`,i,this);return this.channels.push(r),r}}push(e){const{topic:i,event:s,payload:n,ref:r}=e,o=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${i} ${s} (${r})`,n),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(KS,"heartbeat timeout"),setTimeout(()=>{var i;this.isConnected()||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout()},Ia.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let i=this.channels.find(s=>s.topic===e&&(s._isJoined()||s._isJoining()));i&&(this.log("transport",`leaving duplicate topic "${e}"`),i.unsubscribe())}_remove(e){this.channels=this.channels.filter(i=>i.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,i=>{i.topic==="phoenix"&&i.event==="phx_reply"&&this.heartbeatCallback(i.payload.status==="ok"?"ok":"error"),i.ref&&i.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:s,event:n,payload:r,ref:o}=i,a=o?`(${o})`:"",l=r.status||"";this.log("receive",`${l} ${s} ${n} ${a}`.trim(),r),this.channels.filter(c=>c._isMember(s)).forEach(c=>c._trigger(n,r,o)),this._triggerStateCallbacks("message",i)})}_clearTimer(e){var i;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((i=this.reconnectTimer)===null||i===void 0||i.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this.workerRef.terminate()},this.workerRef.onmessage=i=>{i.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var i;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(xi.error))}_appendParams(e,i){if(Object.keys(i).length===0)return e;const s=e.match(/\?/)?"&":"?",n=new URLSearchParams(i);return`${e}${s}${n}`}_workerObjectUrl(e){let i;if(e)i=e;else{const s=new Blob([nC],{type:"application/javascript"});i=URL.createObjectURL(s)}return i}_setConnectionState(e,i=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=i)}async _performAuth(e=null){let i;e?i=e:this.accessToken?i=await this.accessToken():i=this.accessTokenValue,this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(s=>{const n={access_token:i,version:HS};i&&s.updateJoinPayload(n),s.joinedOnce&&s._isJoined()&&s._push(xi.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(i=>{this.log("error",`error setting auth in ${e}`,i)})}_triggerStateCallbacks(e,i){try{this.stateChangeCallbacks[e].forEach(s=>{try{s(i)}catch(n){this.log("error",`error in ${e} callback`,n)}})}catch(s){this.log("error",`error triggering ${e} callbacks`,s)}}_setupReconnectionTimer(){this.reconnectTimer=new Ey(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Ia.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var i,s,n,r,o,a,l,c;if(this.transport=(i=e==null?void 0:e.transport)!==null&&i!==void 0?i:null,this.timeout=(s=e==null?void 0:e.timeout)!==null&&s!==void 0?s:xu,this.heartbeatIntervalMs=(n=e==null?void 0:e.heartbeatIntervalMs)!==null&&n!==void 0?n:Ia.HEARTBEAT_INTERVAL,this.worker=(r=e==null?void 0:e.worker)!==null&&r!==void 0?r:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(a=e==null?void 0:e.reconnectAfterMs)!==null&&a!==void 0?a:d=>iC[d-1]||sC,this.encode=(l=e==null?void 0:e.encode)!==null&&l!==void 0?l:(d,u)=>u(JSON.stringify(d)),this.decode=(c=e==null?void 0:e.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}class Kh extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function ft(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class oC extends Kh{constructor(e,i,s){super(e),this.name="StorageApiError",this.status=i,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Su extends Kh{constructor(e,i){super(e),this.name="StorageUnknownError",this.originalError=i}}var aC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const Iy=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>ua(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)},lC=()=>aC(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield ua(()=>Promise.resolve().then(()=>Fr),void 0)).Response:Response}),Cu=t=>{if(Array.isArray(t))return t.map(i=>Cu(i));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([i,s])=>{const n=i.replace(/([-_][a-z])/gi,r=>r.toUpperCase().replace(/[-_]/g,""));e[n]=Cu(s)}),e},cC=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var qn=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const gd=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),dC=(t,e,i)=>qn(void 0,void 0,void 0,function*(){const s=yield lC();t instanceof s&&!(i!=null&&i.noResolveJson)?t.json().then(n=>{const r=t.status||500,o=(n==null?void 0:n.statusCode)||r+"";e(new oC(gd(n),r,o))}).catch(n=>{e(new Su(gd(n),n))}):e(new Su(gd(t),t))}),uC=(t,e,i,s)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!s?n:(cC(s)?(n.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),n.body=JSON.stringify(s)):n.body=s,e!=null&&e.duplex&&(n.duplex=e.duplex),Object.assign(Object.assign({},n),i))};function fa(t,e,i,s,n,r){return qn(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(i,uC(e,s,n,r)).then(l=>{if(!l.ok)throw l;return s!=null&&s.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>dC(l,a,s))})})}function Bl(t,e,i,s){return qn(this,void 0,void 0,function*(){return fa(t,"GET",e,i,s)})}function as(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return fa(t,"POST",e,s,n,i)})}function Au(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return fa(t,"PUT",e,s,n,i)})}function hC(t,e,i,s){return qn(this,void 0,void 0,function*(){return fa(t,"HEAD",e,Object.assign(Object.assign({},i),{noResolveJson:!0}),s)})}function My(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return fa(t,"DELETE",e,s,n,i)})}var qt=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const fC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},hg={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class pC{constructor(e,i={},s,n){this.url=e,this.headers=i,this.bucketId=s,this.fetch=Iy(n)}uploadOrUpdate(e,i,s,n){return qt(this,void 0,void 0,function*(){try{let r;const o=Object.assign(Object.assign({},hg),n);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&s instanceof Blob?(r=new FormData,r.append("cacheControl",o.cacheControl),l&&r.append("metadata",this.encodeMetadata(l)),r.append("",s)):typeof FormData<"u"&&s instanceof FormData?(r=s,r.append("cacheControl",o.cacheControl),l&&r.append("metadata",this.encodeMetadata(l))):(r=s,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),n!=null&&n.headers&&(a=Object.assign(Object.assign({},a),n.headers));const c=this._removeEmptyFolders(i),d=this._getFinalPath(c),u=yield(e=="PUT"?Au:as)(this.fetch,`${this.url}/object/${d}`,r,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:u.Id,fullPath:u.Key},error:null}}catch(r){if(ft(r))return{data:null,error:r};throw r}})}upload(e,i,s){return qt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,i,s)})}uploadToSignedUrl(e,i,s,n){return qt(this,void 0,void 0,function*(){const r=this._removeEmptyFolders(e),o=this._getFinalPath(r),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",i);try{let l;const c=Object.assign({upsert:hg.upsert},n),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&s instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",s)):typeof FormData<"u"&&s instanceof FormData?(l=s,l.append("cacheControl",c.cacheControl)):(l=s,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const u=yield Au(this.fetch,a.toString(),l,{headers:d});return{data:{path:r,fullPath:u.Key},error:null}}catch(l){if(ft(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,i){return qt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e);const n=Object.assign({},this.headers);i!=null&&i.upsert&&(n["x-upsert"]="true");const r=yield as(this.fetch,`${this.url}/object/upload/sign/${s}`,{},{headers:n}),o=new URL(this.url+r.url),a=o.searchParams.get("token");if(!a)throw new Kh("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}update(e,i,s){return qt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,i,s)})}move(e,i,s){return qt(this,void 0,void 0,function*(){try{return{data:yield as(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:i,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers}),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}copy(e,i,s){return qt(this,void 0,void 0,function*(){try{return{data:{path:(yield as(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:i,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers})).Key},error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}createSignedUrl(e,i,s){return qt(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e),r=yield as(this.fetch,`${this.url}/object/sign/${n}`,Object.assign({expiresIn:i},s!=null&&s.transform?{transform:s.transform}:{}),{headers:this.headers});const o=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return r={signedUrl:encodeURI(`${this.url}${r.signedURL}${o}`)},{data:r,error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}createSignedUrls(e,i,s){return qt(this,void 0,void 0,function*(){try{const n=yield as(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:i,paths:e},{headers:this.headers}),r=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return{data:n.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${r}`):null})),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}download(e,i){return qt(this,void 0,void 0,function*(){const n=typeof(i==null?void 0:i.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((i==null?void 0:i.transform)||{}),o=r?`?${r}`:"";try{const a=this._getFinalPath(e);return{data:yield(yield Bl(this.fetch,`${this.url}/${n}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(ft(a))return{data:null,error:a};throw a}})}info(e){return qt(this,void 0,void 0,function*(){const i=this._getFinalPath(e);try{const s=yield Bl(this.fetch,`${this.url}/object/info/${i}`,{headers:this.headers});return{data:Cu(s),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}exists(e){return qt(this,void 0,void 0,function*(){const i=this._getFinalPath(e);try{return yield hC(this.fetch,`${this.url}/object/${i}`,{headers:this.headers}),{data:!0,error:null}}catch(s){if(ft(s)&&s instanceof Su){const n=s.originalError;if([400,404].includes(n==null?void 0:n.status))return{data:!1,error:s}}throw s}})}getPublicUrl(e,i){const s=this._getFinalPath(e),n=[],r=i!=null&&i.download?`download=${i.download===!0?"":i.download}`:"";r!==""&&n.push(r);const a=typeof(i==null?void 0:i.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((i==null?void 0:i.transform)||{});l!==""&&n.push(l);let c=n.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${s}${c}`)}}}remove(e){return qt(this,void 0,void 0,function*(){try{return{data:yield My(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}list(e,i,s){return qt(this,void 0,void 0,function*(){try{const n=Object.assign(Object.assign(Object.assign({},fC),i),{prefix:e||""});return{data:yield as(this.fetch,`${this.url}/object/list/${this.bucketId}`,n,{headers:this.headers},s),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const i=[];return e.width&&i.push(`width=${e.width}`),e.height&&i.push(`height=${e.height}`),e.resize&&i.push(`resize=${e.resize}`),e.format&&i.push(`format=${e.format}`),e.quality&&i.push(`quality=${e.quality}`),i.join("&")}}const gC="2.10.5",mC={"X-Client-Info":`storage-js/${gC}`};var Jn=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class vC{constructor(e,i={},s,n){const r=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(r.hostname)&&!r.hostname.includes("storage.supabase.")&&(r.hostname=r.hostname.replace("supabase.","storage.supabase.")),this.url=r.href,this.headers=Object.assign(Object.assign({},mC),i),this.fetch=Iy(s)}listBuckets(){return Jn(this,void 0,void 0,function*(){try{return{data:yield Bl(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(ft(e))return{data:null,error:e};throw e}})}getBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield Bl(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}createBucket(e,i={public:!1}){return Jn(this,void 0,void 0,function*(){try{return{data:yield as(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:i.type,public:i.public,file_size_limit:i.fileSizeLimit,allowed_mime_types:i.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}updateBucket(e,i){return Jn(this,void 0,void 0,function*(){try{return{data:yield Au(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:i.public,file_size_limit:i.fileSizeLimit,allowed_mime_types:i.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}emptyBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield as(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}deleteBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield My(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}}class bC extends vC{constructor(e,i={},s,n){super(e,i,s,n)}from(e){return new pC(this.url,this.headers,e,this.fetch)}}const yC="2.55.0";let ro="";typeof Deno<"u"?ro="deno":typeof document<"u"?ro="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ro="react-native":ro="node";const _C={"X-Client-Info":`supabase-js-${ro}/${yC}`},xC={headers:_C},wC={schema:"public"},kC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},SC={};var CC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const AC=t=>{let e;return t?e=t:typeof fetch>"u"?e=vy:e=fetch,(...i)=>e(...i)},TC=()=>typeof Headers>"u"?by:Headers,EC=(t,e,i)=>{const s=AC(i),n=TC();return(r,o)=>CC(void 0,void 0,void 0,function*(){var a;const l=(a=yield e())!==null&&a!==void 0?a:t;let c=new n(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",t),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),s(r,Object.assign(Object.assign({},o),{headers:c}))})};var PC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};function OC(t){return t.endsWith("/")?t:t+"/"}function IC(t,e){var i,s;const{db:n,auth:r,realtime:o,global:a}=t,{db:l,auth:c,realtime:d,global:u}=e,h={db:Object.assign(Object.assign({},l),n),auth:Object.assign(Object.assign({},c),r),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},u),a),{headers:Object.assign(Object.assign({},(i=u==null?void 0:u.headers)!==null&&i!==void 0?i:{}),(s=a==null?void 0:a.headers)!==null&&s!==void 0?s:{})}),accessToken:()=>PC(this,void 0,void 0,function*(){return""})};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}const Ry="2.71.1",lr=30*1e3,Tu=3,md=Tu*lr,MC="http://localhost:9999",RC="supabase.auth.token",$C={"X-Client-Info":`gotrue-js/${Ry}`},Eu="X-Supabase-Api-Version",$y={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},LC=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,DC=10*60*1e3;class Gh extends Error{constructor(e,i,s){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=s}}function he(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class FC extends Gh{constructor(e,i,s){super(e,i,s),this.name="AuthApiError",this.status=i,this.code=s}}function NC(t){return he(t)&&t.name==="AuthApiError"}class Ly extends Gh{constructor(e,i){super(e),this.name="AuthUnknownError",this.originalError=i}}class en extends Gh{constructor(e,i,s,n){super(e,s,n),this.name=i,this.status=s}}class Os extends en{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function BC(t){return he(t)&&t.name==="AuthSessionMissingError"}class Ma extends en{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ra extends en{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class $a extends en{constructor(e,i=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function jC(t){return he(t)&&t.name==="AuthImplicitGrantRedirectError"}class fg extends en{constructor(e,i=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Pu extends en{constructor(e,i){super(e,"AuthRetryableFetchError",i,void 0)}}function vd(t){return he(t)&&t.name==="AuthRetryableFetchError"}class pg extends en{constructor(e,i,s){super(e,"AuthWeakPasswordError",i,"weak_password"),this.reasons=s}}class Ou extends en{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const jl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),gg=` -\r=`.split(""),zC=(()=>{const t=new Array(128);for(let e=0;e=6;){const s=e.queue>>e.queuedBits-6&63;i(jl[s]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;i(jl[s]),e.queuedBits-=6}}function Dy(t,e,i){const s=zC[t];if(s>-1)for(e.queue=e.queue<<6|s,e.queuedBits+=6;e.queuedBits>=8;)i(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function vg(t){const e=[],i=o=>{e.push(String.fromCodePoint(o))},s={utf8seq:0,codepoint:0},n={queue:0,queuedBits:0},r=o=>{qC(o,s,i)};for(let o=0;o>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function UC(t,e){for(let i=0;i55295&&s<=56319){const n=(s-55296)*1024&65535;s=(t.charCodeAt(i+1)-56320&65535|n)+65536,i+=1}VC(s,e)}}function qC(t,e,i){if(e.utf8seq===0){if(t<=127){i(t);return}for(let s=1;s<6;s+=1)if(!(t>>7-s&1)){e.utf8seq=s;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&i(e.codepoint)}}function HC(t){const e=[],i={queue:0,queuedBits:0},s=n=>{e.push(n)};for(let n=0;ne.push(i)),new Uint8Array(e)}function KC(t){const e=[],i={queue:0,queuedBits:0},s=n=>{e.push(n)};return t.forEach(n=>mg(n,i,s)),mg(null,i,s),e.join("")}function GC(t){return Math.round(Date.now()/1e3)+t}function YC(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const _i=()=>typeof window<"u"&&typeof document<"u",un={tested:!1,writable:!1},Fy=()=>{if(!_i())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(un.tested)return un.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),un.tested=!0,un.writable=!0}catch{un.tested=!0,un.writable=!1}return un.writable};function JC(t){const e={},i=new URL(t);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEach((n,r)=>{e[r]=n})}catch{}return i.searchParams.forEach((s,n)=>{e[n]=s}),e}const Ny=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>ua(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)},XC=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",cr=async(t,e,i)=>{await t.setItem(e,JSON.stringify(i))},hn=async(t,e)=>{const i=await t.getItem(e);if(!i)return null;try{return JSON.parse(i)}catch{return i}},As=async(t,e)=>{await t.removeItem(e)};class Ic{constructor(){this.promise=new Ic.promiseConstructor((e,i)=>{this.resolve=e,this.reject=i})}}Ic.promiseConstructor=Promise;function bd(t){const e=t.split(".");if(e.length!==3)throw new Ou("Invalid JWT structure");for(let s=0;s{setTimeout(()=>e(null),t)})}function ZC(t,e){return new Promise((s,n)=>{(async()=>{for(let r=0;r<1/0;r++)try{const o=await t(r);if(!e(r,null,o)){s(o);return}}catch(o){if(!e(r,o)){n(o);return}}})()})}function eA(t){return("0"+t.toString(16)).substr(-2)}function tA(){const e=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=i.length;let n="";for(let r=0;r<56;r++)n+=i.charAt(Math.floor(Math.random()*s));return n}return crypto.getRandomValues(e),Array.from(e,eA).join("")}async function iA(t){const i=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",i),n=new Uint8Array(s);return Array.from(n).map(r=>String.fromCharCode(r)).join("")}async function sA(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const i=await iA(t);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Xn(t,e,i=!1){const s=tA();let n=s;i&&(n+="/PASSWORD_RECOVERY"),await cr(t,`${e}-code-verifier`,n);const r=await sA(s);return[r,s===r?"plain":"s256"]}const nA=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function rA(t){const e=t.headers.get(Eu);if(!e||!e.match(nA))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function oA(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function aA(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const lA=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Qn(t){if(!lA.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function yd(){const t={};return new Proxy(t,{get:(e,i)=>{if(i==="__isUserNotAvailableProxy")return!0;if(typeof i=="symbol"){const s=i.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function bg(t){return JSON.parse(JSON.stringify(t))}var cA=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);nt.msg||t.message||t.error_description||t.error||JSON.stringify(t),dA=[502,503,504];async function yg(t){var e;if(!XC(t))throw new Pu(_n(t),0);if(dA.includes(t.status))throw new Pu(_n(t),t.status);let i;try{i=await t.json()}catch(r){throw new Ly(_n(r),r)}let s;const n=rA(t);if(n&&n.getTime()>=$y["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?s=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(s=i.error_code),s){if(s==="weak_password")throw new pg(_n(i),t.status,((e=i.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(s==="session_not_found")throw new Os}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((r,o)=>r&&typeof o=="string",!0))throw new pg(_n(i),t.status,i.weak_password.reasons);throw new FC(_n(i),t.status||500,s)}const uA=(t,e,i,s)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?n:(n.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),n.body=JSON.stringify(s),Object.assign(Object.assign({},n),i))};async function be(t,e,i,s){var n;const r=Object.assign({},s==null?void 0:s.headers);r[Eu]||(r[Eu]=$y["2024-01-01"].name),s!=null&&s.jwt&&(r.Authorization=`Bearer ${s.jwt}`);const o=(n=s==null?void 0:s.query)!==null&&n!==void 0?n:{};s!=null&&s.redirectTo&&(o.redirect_to=s.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await hA(t,e,i+a,{headers:r,noResolveJson:s==null?void 0:s.noResolveJson},{},s==null?void 0:s.body);return s!=null&&s.xform?s==null?void 0:s.xform(l):{data:Object.assign({},l),error:null}}async function hA(t,e,i,s,n,r){const o=uA(e,s,n,r);let a;try{a=await t(i,Object.assign({},o))}catch(l){throw console.error(l),new Pu(_n(l),0)}if(a.ok||await yg(a),s!=null&&s.noResolveJson)return a;try{return await a.json()}catch(l){await yg(l)}}function ts(t){var e;let i=null;mA(t)&&(i=Object.assign({},t),t.expires_at||(i.expires_at=GC(t.expires_in)));const s=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:i,user:s},error:null}}function _g(t){const e=ts(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((i,s)=>i&&typeof s=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Ns(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function fA(t){return{data:t,error:null}}function pA(t){const{action_link:e,email_otp:i,hashed_token:s,redirect_to:n,verification_type:r}=t,o=cA(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:i,hashed_token:s,redirect_to:n,verification_type:r},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function gA(t){return t}function mA(t){return t.access_token&&t.refresh_token&&t.expires_in}const _d=["global","local","others"];var vA=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n0&&(f.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),m=JSON.parse(p.split(";")[1].split("=")[1]);c[`${m}Page`]=g}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},u),c),error:null}}catch(c){if(he(c))return{data:{users:[]},error:c};throw c}}async getUserById(e){Qn(e);try{return await be(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Ns})}catch(i){if(he(i))return{data:{user:null},error:i};throw i}}async updateUserById(e,i){Qn(e);try{return await be(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:i,headers:this.headers,xform:Ns})}catch(s){if(he(s))return{data:{user:null},error:s};throw s}}async deleteUser(e,i=!1){Qn(e);try{return await be(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:i},xform:Ns})}catch(s){if(he(s))return{data:{user:null},error:s};throw s}}async _listFactors(e){Qn(e.userId);try{const{data:i,error:s}=await be(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:n=>({data:{factors:n},error:null})});return{data:i,error:s}}catch(i){if(he(i))return{data:null,error:i};throw i}}async _deleteFactor(e){Qn(e.userId),Qn(e.id);try{return{data:await be(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(i){if(he(i))return{data:null,error:i};throw i}}}function xg(t={}){return{getItem:e=>t[e]||null,setItem:(e,i)=>{t[e]=i},removeItem:e=>{delete t[e]}}}function yA(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Zn={debug:!!(globalThis&&Fy()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class By extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class _A extends By{}async function xA(t,e,i){Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const s=new globalThis.AbortController;return e>0&&setTimeout(()=>{s.abort(),Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:s.signal},async n=>{if(n){Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,n.name);try{return await i()}finally{Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,n.name)}}else{if(e===0)throw Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new _A(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Zn.debug)try{const r=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(r,null," "))}catch(r){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",r)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await i()}}))}yA();const wA={url:MC,storageKey:RC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:$C,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function wg(t,e,i){return await i()}const er={};class Yo{constructor(e){var i,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Yo.nextInstanceID,Yo.nextInstanceID+=1,this.instanceID>0&&_i()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const n=Object.assign(Object.assign({},wA),e);if(this.logDebugMessages=!!n.debug,typeof n.debug=="function"&&(this.logger=n.debug),this.persistSession=n.persistSession,this.storageKey=n.storageKey,this.autoRefreshToken=n.autoRefreshToken,this.admin=new bA({url:n.url,headers:n.headers,fetch:n.fetch}),this.url=n.url,this.headers=n.headers,this.fetch=Ny(n.fetch),this.lock=n.lock||wg,this.detectSessionInUrl=n.detectSessionInUrl,this.flowType=n.flowType,this.hasCustomAuthorizationHeader=n.hasCustomAuthorizationHeader,n.lock?this.lock=n.lock:_i()&&(!((i=globalThis==null?void 0:globalThis.navigator)===null||i===void 0)&&i.locks)?this.lock=xA:this.lock=wg,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(n.storage?this.storage=n.storage:Fy()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=xg(this.memoryStorage)),n.userStorage&&(this.userStorage=n.userStorage)):(this.memoryStorage={},this.storage=xg(this.memoryStorage)),_i()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(r){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",r)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async r=>{this._debug("received broadcast notification from other tab or client",r),await this._notifyAllSubscribers(r.data.event,r.data.session,!1)})}this.initialize()}get jwks(){var e,i;return(i=(e=er[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(e){er[this.storageKey]=Object.assign(Object.assign({},er[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,i;return(i=(e=er[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){er[this.storageKey]=Object.assign(Object.assign({},er[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Ry}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const i=JC(window.location.href);let s="none";if(this._isImplicitGrantCallback(i)?s="implicit":await this._isPKCECallback(i)&&(s="pkce"),_i()&&this.detectSessionInUrl&&s!=="none"){const{data:n,error:r}=await this._getSessionFromURL(i,s);if(r){if(this._debug("#_initialize()","error detecting session from URL",r),jC(r)){const l=(e=r.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:r}}return await this._removeSession(),{error:r}}const{session:o,redirectType:a}=n;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return he(i)?{error:i}:{error:new Ly("Unexpected error during initialization",i)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var i,s,n;try{const r=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(i=e==null?void 0:e.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.captchaToken}},xform:ts}),{data:o,error:a}=r;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(r){if(he(r))return{data:{user:null,session:null},error:r};throw r}}async signUp(e){var i,s,n;try{let r;if("email"in e){const{email:d,password:u,options:h}=e;let f=null,p=null;this.flowType==="pkce"&&([f,p]=await Xn(this.storage,this.storageKey)),r=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:u,data:(i=h==null?void 0:h.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:p},xform:ts})}else if("phone"in e){const{phone:d,password:u,options:h}=e;r=await be(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:u,data:(s=h==null?void 0:h.data)!==null&&s!==void 0?s:{},channel:(n=h==null?void 0:h.channel)!==null&&n!==void 0?n:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:ts})}else throw new Ra("You must provide either an email or phone number and a password");const{data:o,error:a}=r;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(r){if(he(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithPassword(e){try{let i;if("email"in e){const{email:r,password:o,options:a}=e;i=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:r,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_g})}else if("phone"in e){const{phone:r,password:o,options:a}=e;i=await be(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:r,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:_g})}else throw new Ra("You must provide either an email or phone number and a password");const{data:s,error:n}=i;return n?{data:{user:null,session:null},error:n}:!s||!s.session||!s.user?{data:{user:null,session:null},error:new Ma}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:n})}catch(i){if(he(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithOAuth(e){var i,s,n,r;return await this._handleProviderSignIn(e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(s=e.options)===null||s===void 0?void 0:s.scopes,queryParams:(n=e.options)===null||n===void 0?void 0:n.queryParams,skipBrowserRedirect:(r=e.options)===null||r===void 0?void 0:r.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:i}=e;if(i==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}async signInWithSolana(e){var i,s,n,r,o,a,l,c,d,u,h,f;let p,g;if("message"in e)p=e.message,g=e.signature;else{const{chain:m,wallet:y,statement:C,options:w}=e;let A;if(_i())if(typeof y=="object")A=y;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))A=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");A=y}const x=new URL((i=w==null?void 0:w.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in A&&A.signIn){const E=await A.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:x.host,uri:x.href}),C?{statement:C}:null));let T;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")T=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)T=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)p=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),g=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in A)||typeof A.signMessage!="function"||!("publicKey"in A)||typeof A!="object"||!A.publicKey||!("toBase58"in A.publicKey)||typeof A.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");p=[`${x.host} wants you to sign in with your Solana account:`,A.publicKey.toBase58(),...C?["",C,""]:[""],"Version: 1",`URI: ${x.href}`,`Issued At: ${(n=(s=w==null?void 0:w.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&n!==void 0?n:new Date().toISOString()}`,...!((r=w==null?void 0:w.signInWithSolana)===null||r===void 0)&&r.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((u=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||u===void 0)&&u.length?["Resources",...w.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` -`);const E=await A.signMessage(new TextEncoder().encode(p),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:m,error:y}=await be(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:KC(g)},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:ts});if(y)throw y;return!m||!m.session||!m.user?{data:{user:null,session:null},error:new Ma}:(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),{data:Object.assign({},m),error:y})}catch(m){if(he(m))return{data:{user:null,session:null},error:m};throw m}}async _exchangeCodeForSession(e){const i=await hn(this.storage,`${this.storageKey}-code-verifier`),[s,n]=(i??"").split("/");try{const{data:r,error:o}=await be(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:s},xform:ts});if(await As(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!r||!r.session||!r.user?{data:{user:null,session:null,redirectType:null},error:new Ma}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign(Object.assign({},r),{redirectType:n??null}),error:o})}catch(r){if(he(r))return{data:{user:null,session:null,redirectType:null},error:r};throw r}}async signInWithIdToken(e){try{const{options:i,provider:s,token:n,access_token:r,nonce:o}=e,a=await be(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:n,access_token:r,nonce:o,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:ts}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Ma}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(i){if(he(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithOtp(e){var i,s,n,r,o;try{if("email"in e){const{email:a,options:l}=e;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await Xn(this.storage,this.storageKey));const{error:u}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:u}}if("phone"in e){const{phone:a,options:l}=e,{data:c,error:d}=await be(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d}}throw new Ra("You must provide either an email or phone number.")}catch(a){if(he(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var i,s;try{let n,r;"options"in e&&(n=(i=e.options)===null||i===void 0?void 0:i.redirectTo,r=(s=e.options)===null||s===void 0?void 0:s.captchaToken);const{data:o,error:a}=await be(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:r}}),redirectTo:n,xform:ts});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(n){if(he(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithSSO(e){var i,s,n;try{let r=null,o=null;return this.flowType==="pkce"&&([r,o]=await Xn(this.storage,this.storageKey)),await be(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(s=(i=e.options)===null||i===void 0?void 0:i.redirectTo)!==null&&s!==void 0?s:void 0}),!((n=e==null?void 0:e.options)===null||n===void 0)&&n.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:r,code_challenge_method:o}),headers:this.headers,xform:fA})}catch(r){if(he(r))return{data:null,error:r};throw r}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:i},error:s}=e;if(s)throw s;if(!i)throw new Os;const{error:n}=await be(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return{data:{user:null,session:null},error:n}})}catch(e){if(he(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const i=`${this.url}/resend`;if("email"in e){const{email:s,type:n,options:r}=e,{error:o}=await be(this.fetch,"POST",i,{headers:this.headers,body:{email:s,type:n,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},redirectTo:r==null?void 0:r.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:s,type:n,options:r}=e,{data:o,error:a}=await be(this.fetch,"POST",i,{headers:this.headers,body:{phone:s,type:n,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Ra("You must provide either an email or phone number and a type")}catch(i){if(he(i))return{data:{user:null,session:null},error:i};throw i}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async i=>i))}async _acquireLock(e,i){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await s,await i()))();return this.pendingInLock.push((async()=>{try{await n}catch{}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=i();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const n=[...this.pendingInLock];await Promise.all(n),this.pendingInLock.splice(0,n.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await e(i)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const i=await hn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?e=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const s=e.expires_at?e.expires_at*1e3-Date.now()(!o&&c==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,c,d))})}return{data:{session:e},error:null}}const{session:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?{data:{session:null},error:r}:{data:{session:n},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Ns}):await this._useSession(async i=>{var s,n,r;const{data:o,error:a}=i;if(a)throw a;return!(!((s=o.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Os}:await be(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(r=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&r!==void 0?r:void 0,xform:Ns})})}catch(i){if(he(i))return BC(i)&&(await this._removeSession(),await As(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:i};throw i}}async updateUser(e,i={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,i))}async _updateUser(e,i={}){try{return await this._useSession(async s=>{const{data:n,error:r}=s;if(r)throw r;if(!n.session)throw new Os;const o=n.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Xn(this.storage,this.storageKey));const{data:c,error:d}=await be(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i==null?void 0:i.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Ns});if(d)throw d;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(s){if(he(s))return{data:{user:null},error:s};throw s}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Os;const i=Date.now()/1e3;let s=i,n=!0,r=null;const{payload:o}=bd(e.access_token);if(o.exp&&(s=o.exp,n=s<=i),n){const{session:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};r=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;r={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:s-i,expires_at:s},await this._saveSession(r),await this._notifyAllSubscribers("SIGNED_IN",r)}return{data:{user:r.user,session:r},error:null}}catch(i){if(he(i))return{data:{session:null,user:null},error:i};throw i}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async i=>{var s;if(!e){const{data:o,error:a}=i;if(a)throw a;e=(s=o.session)!==null&&s!==void 0?s:void 0}if(!(e!=null&&e.refresh_token))throw new Os;const{session:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?{data:{user:null,session:null},error:r}:n?{data:{user:n.user,session:n},error:null}:{data:{user:null,session:null},error:null}})}catch(i){if(he(i))return{data:{user:null,session:null},error:i};throw i}}async _getSessionFromURL(e,i){try{if(!_i())throw new $a("No browser detected.");if(e.error||e.error_description||e.error_code)throw new $a(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new fg("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new $a("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new fg("No code detected.");const{data:C,error:w}=await this._exchangeCodeForSession(e.code);if(w)throw w;const A=new URL(window.location.href);return A.searchParams.delete("code"),window.history.replaceState(window.history.state,"",A.toString()),{data:{session:C.session,redirectType:null},error:null}}const{provider_token:s,provider_refresh_token:n,access_token:r,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=e;if(!r||!a||!o||!c)throw new $a("No session defined in URL");const d=Math.round(Date.now()/1e3),u=parseInt(a);let h=d+u;l&&(h=parseInt(l));const f=h-d;f*1e3<=lr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${u}s`);const p=h-u;d-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,h,d):d-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,h,d);const{data:g,error:m}=await this._getUser(r);if(m)throw m;const y={provider_token:s,provider_refresh_token:n,access_token:r,expires_in:u,expires_at:h,refresh_token:o,token_type:c,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:e.type},error:null}}catch(s){if(he(s))return{data:{session:null,redirectType:null},error:s};throw s}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const i=await hn(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&i)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async i=>{var s;const{data:n,error:r}=i;if(r)return{error:r};const o=(s=n.session)===null||s===void 0?void 0:s.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(NC(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await As(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const i=YC(),s={id:i,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,s),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(i)})))(),{data:{subscription:s}}}async _emitInitialSession(e){return await this._useSession(async i=>{var s,n;try{const{data:{session:r},error:o}=i;if(o)throw o;await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",r)),this._debug("INITIAL_SESSION","callback id",e,"session",r)}catch(r){await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",r),console.error(r)}})}async resetPasswordForEmail(e,i={}){let s=null,n=null;this.flowType==="pkce"&&([s,n]=await Xn(this.storage,this.storageKey,!0));try{return await be(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:s,code_challenge_method:n,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.redirectTo})}catch(r){if(he(r))return{data:null,error:r};throw r}}async getUserIdentities(){var e;try{const{data:i,error:s}=await this.getUser();if(s)throw s;return{data:{identities:(e=i.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(i){if(he(i))return{data:null,error:i};throw i}}async linkIdentity(e){var i;try{const{data:s,error:n}=await this._useSession(async r=>{var o,a,l,c,d;const{data:u,error:h}=r;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await be(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(c=u.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(n)throw n;return _i()&&!(!((i=e.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(s==null?void 0:s.url),{data:{provider:e.provider,url:s==null?void 0:s.url},error:null}}catch(s){if(he(s))return{data:{provider:e.provider,url:null},error:s};throw s}}async unlinkIdentity(e){try{return await this._useSession(async i=>{var s,n;const{data:r,error:o}=i;if(o)throw o;return await be(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(n=(s=r.session)===null||s===void 0?void 0:s.access_token)!==null&&n!==void 0?n:void 0})})}catch(i){if(he(i))return{data:null,error:i};throw i}}async _refreshAccessToken(e){const i=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{const s=Date.now();return await ZC(async n=>(n>0&&await QC(200*Math.pow(2,n-1)),this._debug(i,"refreshing attempt",n),await be(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:ts})),(n,r)=>{const o=200*Math.pow(2,n);return r&&vd(r)&&Date.now()+o-s{try{await a.callback(e,i)}catch(l){r.push(l)}});if(await Promise.all(o),r.length>0){for(let a=0;athis._autoRefreshTokenTick(),lr);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async i=>{const{data:{session:s}}=i;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const n=Math.floor((s.expires_at*1e3-e)/lr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${n} ticks, a tick lasts ${lr}ms, refresh threshold is ${Tu} ticks`),n<=Tu&&await this._callRefreshToken(s.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof By)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!_i()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const i=`#_onVisibilityChanged(${e})`;this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,i,s){const n=[`provider=${encodeURIComponent(i)}`];if(s!=null&&s.redirectTo&&n.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s!=null&&s.scopes&&n.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[r,o]=await Xn(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(r)}`,code_challenge_method:`${encodeURIComponent(o)}`});n.push(a.toString())}if(s!=null&&s.queryParams){const r=new URLSearchParams(s.queryParams);n.push(r.toString())}return s!=null&&s.skipBrowserRedirect&&n.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${e}?${n.join("&")}`}async _unenroll(e){try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;return r?{data:null,error:r}:await be(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token})})}catch(i){if(he(i))return{data:null,error:i};throw i}}async _enroll(e){try{return await this._useSession(async i=>{var s,n;const{data:r,error:o}=i;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:l,error:c}=await be(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(s=r==null?void 0:r.session)===null||s===void 0?void 0:s.access_token});return c?{data:null,error:c}:(e.factorType==="totp"&&(!((n=l==null?void 0:l.totp)===null||n===void 0)&&n.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(i){if(he(i))return{data:null,error:i};throw i}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;if(r)return{data:null,error:r};const{data:o,error:a}=await be(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(i){if(he(i))return{data:null,error:i};throw i}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;return r?{data:null,error:r}:await be(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token})})}catch(i){if(he(i))return{data:null,error:i};throw i}})}async _challengeAndVerify(e){const{data:i,error:s}=await this._challenge({factorId:e.factorId});return s?{data:null,error:s}:await this._verify({factorId:e.factorId,challengeId:i.id,code:e.code})}async _listFactors(){const{data:{user:e},error:i}=await this.getUser();if(i)return{data:null,error:i};const s=(e==null?void 0:e.factors)||[],n=s.filter(o=>o.factor_type==="totp"&&o.status==="verified"),r=s.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:s,totp:n,phone:r},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var i,s;const{data:{session:n},error:r}=e;if(r)return{data:null,error:r};if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=bd(n.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((s=(i=n.user.factors)===null||i===void 0?void 0:i.filter(u=>u.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(l="aal2");const d=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(e,i={keys:[]}){let s=i.keys.find(a=>a.kid===e);if(s)return s;const n=Date.now();if(s=this.jwks.keys.find(a=>a.kid===e),s&&this.jwks_cached_at+DC>n)return s;const{data:r,error:o}=await be(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!r.keys||r.keys.length===0||(this.jwks=r,this.jwks_cached_at=n,s=r.keys.find(a=>a.kid===e),!s)?null:s}async getClaims(e,i={}){try{let s=e;if(!s){const{data:f,error:p}=await this.getSession();if(p||!f.session)return{data:null,error:p};s=f.session.access_token}const{header:n,payload:r,signature:o,raw:{header:a,payload:l}}=bd(s);i!=null&&i.allowExpired||oA(r.exp);const c=!n.alg||n.alg.startsWith("HS")||!n.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(n.kid,i!=null&&i.keys?{keys:i.keys}:i==null?void 0:i.jwks);if(!c){const{error:f}=await this.getUser(s);if(f)throw f;return{data:{claims:r,header:n,signature:o},error:null}}const d=aA(n.alg),u=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,u,o,WC(`${a}.${l}`)))throw new Ou("Invalid JWT signature");return{data:{claims:r,header:n,signature:o},error:null}}catch(s){if(he(s))return{data:null,error:s};throw s}}}Yo.nextInstanceID=0;const kA=Yo;class SA extends kA{constructor(e){super(e)}}var CA=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class AA{constructor(e,i,s){var n,r,o;if(this.supabaseUrl=e,this.supabaseKey=i,!e)throw new Error("supabaseUrl is required.");if(!i)throw new Error("supabaseKey is required.");const a=OC(e),l=new URL(a);this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:wC,realtime:SC,auth:Object.assign(Object.assign({},kC),{storageKey:c}),global:xC},u=IC(s??{},d);this.storageKey=(n=u.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(r=u.global.headers)!==null&&r!==void 0?r:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(h,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=u.auth)!==null&&o!==void 0?o:{},this.headers,u.global.fetch),this.fetch=EC(i,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.rest=new VS(new URL("rest/v1",l).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new bC(this.storageUrl.href,this.headers,this.fetch,s==null?void 0:s.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new vS(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,i={},s={}){return this.rest.rpc(e,i,s)}channel(e,i={config:{}}){return this.realtime.channel(e,i)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,i;return CA(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:s}=yield this.auth.getSession();return(i=(e=s.session)===null||e===void 0?void 0:e.access_token)!==null&&i!==void 0?i:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:i,detectSessionInUrl:s,storage:n,storageKey:r,flowType:o,lock:a,debug:l},c,d){const u={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new SA({url:this.authUrl.href,headers:Object.assign(Object.assign({},u),c),storageKey:r,autoRefreshToken:e,persistSession:i,detectSessionInUrl:s,storage:n,flowType:o,lock:a,debug:l,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new rC(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((i,s)=>{this._handleTokenChanged(i,"CLIENT",s==null?void 0:s.access_token)})}_handleTokenChanged(e,i,s){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==s?this.changedAccessToken=s:e==="SIGNED_OUT"&&(this.realtime.setAuth(),i=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const TA=(t,e,i)=>new AA(t,e,i);function EA(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}EA()&&console.warn("⚠️ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const jy="hsmkwrrptltywjqljrpf",Ki=TA("https://"+jy+".supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhzbWt3cnJwdGx0eXdqcWxqcnBmIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcyOTcyODQ5MiwiZXhwIjoyMDQ1MzA0NDkyfQ.qgVkNvWkDXiaiS9GDzG-1fFYkf3KnheVpIJr4B3XfFk");async function PA(){var t={id:my,name:""};const{data:e,error:i}=await Ki.from(uS).select("*");if(i)return console.log(i),t;for(var s=new Date,n=new Date("1970-01-01"),r=null,o=0;o=a&&s<=l){r=e[o],n=s;break}const c=Math.abs(s-n),d=Math.abs(s-a),u=Math.abs(s-l);d=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}/** + })`):new Error(`WebSocket not available: ${i}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:KS}))}disconnect(e,i){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const s=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(s),this._setConnectionState("disconnected")},e?this.conn.close(e,i??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const i=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),i}async removeAllChannels(){const e=await Promise.all(this.channels.map(i=>i.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,i,s){this.logger(e,i,s)}connectionState(){switch(this.conn&&this.conn.readyState){case ko.connecting:return An.Connecting;case ko.open:return An.Open;case ko.closing:return An.Closing;default:return An.Closed}}isConnected(){return this.connectionState()===An.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,i={config:{}}){const s=`realtime:${e}`,n=this.getChannels().find(r=>r.topic===s);if(n)return n;{const r=new Kh(`realtime:${e}`,i,this);return this.channels.push(r),r}}push(e){const{topic:i,event:s,payload:n,ref:r}=e,o=()=>{this.encode(e,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${i} ${s} (${r})`,n),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(GS,"heartbeat timeout"),setTimeout(()=>{var i;this.isConnected()||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout()},$a.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let i=this.channels.find(s=>s.topic===e&&(s._isJoined()||s._isJoining()));i&&(this.log("transport",`leaving duplicate topic "${e}"`),i.unsubscribe())}_remove(e){this.channels=this.channels.filter(i=>i.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,i=>{i.topic==="phoenix"&&i.event==="phx_reply"&&this.heartbeatCallback(i.payload.status==="ok"?"ok":"error"),i.ref&&i.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:s,event:n,payload:r,ref:o}=i,a=o?`(${o})`:"",l=r.status||"";this.log("receive",`${l} ${s} ${n} ${a}`.trim(),r),this.channels.filter(c=>c._isMember(s)).forEach(c=>c._trigger(n,r,o)),this._triggerStateCallbacks("message",i)})}_clearTimer(e){var i;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((i=this.reconnectTimer)===null||i===void 0||i.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this.workerRef.terminate()},this.workerRef.onmessage=i=>{i.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var i;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(wi.error))}_appendParams(e,i){if(Object.keys(i).length===0)return e;const s=e.match(/\?/)?"&":"?",n=new URLSearchParams(i);return`${e}${s}${n}`}_workerObjectUrl(e){let i;if(e)i=e;else{const s=new Blob([rC],{type:"application/javascript"});i=URL.createObjectURL(s)}return i}_setConnectionState(e,i=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=i)}async _performAuth(e=null){let i;e?i=e:this.accessToken?i=await this.accessToken():i=this.accessTokenValue,this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(s=>{const n={access_token:i,version:WS};i&&s.updateJoinPayload(n),s.joinedOnce&&s._isJoined()&&s._push(wi.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(i=>{this.log("error",`error setting auth in ${e}`,i)})}_triggerStateCallbacks(e,i){try{this.stateChangeCallbacks[e].forEach(s=>{try{s(i)}catch(n){this.log("error",`error in ${e} callback`,n)}})}catch(s){this.log("error",`error triggering ${e} callbacks`,s)}}_setupReconnectionTimer(){this.reconnectTimer=new Oy(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},$a.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var i,s,n,r,o,a,l,c;if(this.transport=(i=e==null?void 0:e.transport)!==null&&i!==void 0?i:null,this.timeout=(s=e==null?void 0:e.timeout)!==null&&s!==void 0?s:Au,this.heartbeatIntervalMs=(n=e==null?void 0:e.heartbeatIntervalMs)!==null&&n!==void 0?n:$a.HEARTBEAT_INTERVAL,this.worker=(r=e==null?void 0:e.worker)!==null&&r!==void 0?r:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(a=e==null?void 0:e.reconnectAfterMs)!==null&&a!==void 0?a:d=>sC[d-1]||nC,this.encode=(l=e==null?void 0:e.encode)!==null&&l!==void 0?l:(d,u)=>u(JSON.stringify(d)),this.decode=(c=e==null?void 0:e.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}class Gh extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function ft(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class aC extends Gh{constructor(e,i,s){super(e),this.name="StorageApiError",this.status=i,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Pu extends Gh{constructor(e,i){super(e),this.name="StorageUnknownError",this.originalError=i}}var lC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const Ry=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>pa(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)},cC=()=>lC(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield pa(()=>Promise.resolve().then(()=>Fr),void 0)).Response:Response}),Ou=t=>{if(Array.isArray(t))return t.map(i=>Ou(i));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([i,s])=>{const n=i.replace(/([-_][a-z])/gi,r=>r.toUpperCase().replace(/[-_]/g,""));e[n]=Ou(s)}),e},dC=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var qn=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const _d=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),uC=(t,e,i)=>qn(void 0,void 0,void 0,function*(){const s=yield cC();t instanceof s&&!(i!=null&&i.noResolveJson)?t.json().then(n=>{const r=t.status||500,o=(n==null?void 0:n.statusCode)||r+"";e(new aC(_d(n),r,o))}).catch(n=>{e(new Pu(_d(n),n))}):e(new Pu(_d(t),t))}),hC=(t,e,i,s)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!s?n:(dC(s)?(n.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),n.body=JSON.stringify(s)):n.body=s,e!=null&&e.duplex&&(n.duplex=e.duplex),Object.assign(Object.assign({},n),i))};function ma(t,e,i,s,n,r){return qn(this,void 0,void 0,function*(){return new Promise((o,a)=>{t(i,hC(e,s,n,r)).then(l=>{if(!l.ok)throw l;return s!=null&&s.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>uC(l,a,s))})})}function Vl(t,e,i,s){return qn(this,void 0,void 0,function*(){return ma(t,"GET",e,i,s)})}function ls(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return ma(t,"POST",e,s,n,i)})}function Iu(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return ma(t,"PUT",e,s,n,i)})}function fC(t,e,i,s){return qn(this,void 0,void 0,function*(){return ma(t,"HEAD",e,Object.assign(Object.assign({},i),{noResolveJson:!0}),s)})}function $y(t,e,i,s,n){return qn(this,void 0,void 0,function*(){return ma(t,"DELETE",e,s,n,i)})}var Wt=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const pC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},pg={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class gC{constructor(e,i={},s,n){this.url=e,this.headers=i,this.bucketId=s,this.fetch=Ry(n)}uploadOrUpdate(e,i,s,n){return Wt(this,void 0,void 0,function*(){try{let r;const o=Object.assign(Object.assign({},pg),n);let a=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&s instanceof Blob?(r=new FormData,r.append("cacheControl",o.cacheControl),l&&r.append("metadata",this.encodeMetadata(l)),r.append("",s)):typeof FormData<"u"&&s instanceof FormData?(r=s,r.append("cacheControl",o.cacheControl),l&&r.append("metadata",this.encodeMetadata(l))):(r=s,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),n!=null&&n.headers&&(a=Object.assign(Object.assign({},a),n.headers));const c=this._removeEmptyFolders(i),d=this._getFinalPath(c),u=yield(e=="PUT"?Iu:ls)(this.fetch,`${this.url}/object/${d}`,r,Object.assign({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:c,id:u.Id,fullPath:u.Key},error:null}}catch(r){if(ft(r))return{data:null,error:r};throw r}})}upload(e,i,s){return Wt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,i,s)})}uploadToSignedUrl(e,i,s,n){return Wt(this,void 0,void 0,function*(){const r=this._removeEmptyFolders(e),o=this._getFinalPath(r),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",i);try{let l;const c=Object.assign({upsert:pg.upsert},n),d=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&s instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",s)):typeof FormData<"u"&&s instanceof FormData?(l=s,l.append("cacheControl",c.cacheControl)):(l=s,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType);const u=yield Iu(this.fetch,a.toString(),l,{headers:d});return{data:{path:r,fullPath:u.Key},error:null}}catch(l){if(ft(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(e,i){return Wt(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e);const n=Object.assign({},this.headers);i!=null&&i.upsert&&(n["x-upsert"]="true");const r=yield ls(this.fetch,`${this.url}/object/upload/sign/${s}`,{},{headers:n}),o=new URL(this.url+r.url),a=o.searchParams.get("token");if(!a)throw new Gh("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}update(e,i,s){return Wt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,i,s)})}move(e,i,s){return Wt(this,void 0,void 0,function*(){try{return{data:yield ls(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:i,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers}),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}copy(e,i,s){return Wt(this,void 0,void 0,function*(){try{return{data:{path:(yield ls(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:i,destinationBucket:s==null?void 0:s.destinationBucket},{headers:this.headers})).Key},error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}createSignedUrl(e,i,s){return Wt(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e),r=yield ls(this.fetch,`${this.url}/object/sign/${n}`,Object.assign({expiresIn:i},s!=null&&s.transform?{transform:s.transform}:{}),{headers:this.headers});const o=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return r={signedUrl:encodeURI(`${this.url}${r.signedURL}${o}`)},{data:r,error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}createSignedUrls(e,i,s){return Wt(this,void 0,void 0,function*(){try{const n=yield ls(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:i,paths:e},{headers:this.headers}),r=s!=null&&s.download?`&download=${s.download===!0?"":s.download}`:"";return{data:n.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${r}`):null})),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}download(e,i){return Wt(this,void 0,void 0,function*(){const n=typeof(i==null?void 0:i.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((i==null?void 0:i.transform)||{}),o=r?`?${r}`:"";try{const a=this._getFinalPath(e);return{data:yield(yield Vl(this.fetch,`${this.url}/${n}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(ft(a))return{data:null,error:a};throw a}})}info(e){return Wt(this,void 0,void 0,function*(){const i=this._getFinalPath(e);try{const s=yield Vl(this.fetch,`${this.url}/object/info/${i}`,{headers:this.headers});return{data:Ou(s),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}exists(e){return Wt(this,void 0,void 0,function*(){const i=this._getFinalPath(e);try{return yield fC(this.fetch,`${this.url}/object/${i}`,{headers:this.headers}),{data:!0,error:null}}catch(s){if(ft(s)&&s instanceof Pu){const n=s.originalError;if([400,404].includes(n==null?void 0:n.status))return{data:!1,error:s}}throw s}})}getPublicUrl(e,i){const s=this._getFinalPath(e),n=[],r=i!=null&&i.download?`download=${i.download===!0?"":i.download}`:"";r!==""&&n.push(r);const a=typeof(i==null?void 0:i.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((i==null?void 0:i.transform)||{});l!==""&&n.push(l);let c=n.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${s}${c}`)}}}remove(e){return Wt(this,void 0,void 0,function*(){try{return{data:yield $y(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}list(e,i,s){return Wt(this,void 0,void 0,function*(){try{const n=Object.assign(Object.assign(Object.assign({},pC),i),{prefix:e||""});return{data:yield ls(this.fetch,`${this.url}/object/list/${this.bucketId}`,n,{headers:this.headers},s),error:null}}catch(n){if(ft(n))return{data:null,error:n};throw n}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const i=[];return e.width&&i.push(`width=${e.width}`),e.height&&i.push(`height=${e.height}`),e.resize&&i.push(`resize=${e.resize}`),e.format&&i.push(`format=${e.format}`),e.quality&&i.push(`quality=${e.quality}`),i.join("&")}}const mC="2.10.5",vC={"X-Client-Info":`storage-js/${mC}`};var Jn=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class bC{constructor(e,i={},s,n){const r=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(r.hostname)&&!r.hostname.includes("storage.supabase.")&&(r.hostname=r.hostname.replace("supabase.","storage.supabase.")),this.url=r.href,this.headers=Object.assign(Object.assign({},vC),i),this.fetch=Ry(s)}listBuckets(){return Jn(this,void 0,void 0,function*(){try{return{data:yield Vl(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(ft(e))return{data:null,error:e};throw e}})}getBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield Vl(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}createBucket(e,i={public:!1}){return Jn(this,void 0,void 0,function*(){try{return{data:yield ls(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:i.type,public:i.public,file_size_limit:i.fileSizeLimit,allowed_mime_types:i.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}updateBucket(e,i){return Jn(this,void 0,void 0,function*(){try{return{data:yield Iu(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:i.public,file_size_limit:i.fileSizeLimit,allowed_mime_types:i.allowedMimeTypes},{headers:this.headers}),error:null}}catch(s){if(ft(s))return{data:null,error:s};throw s}})}emptyBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield ls(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}deleteBucket(e){return Jn(this,void 0,void 0,function*(){try{return{data:yield $y(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(i){if(ft(i))return{data:null,error:i};throw i}})}}class yC extends bC{constructor(e,i={},s,n){super(e,i,s,n)}from(e){return new gC(this.url,this.headers,e,this.fetch)}}const _C="2.55.0";let ro="";typeof Deno<"u"?ro="deno":typeof document<"u"?ro="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ro="react-native":ro="node";const xC={"X-Client-Info":`supabase-js-${ro}/${_C}`},wC={headers:xC},kC={schema:"public"},SC={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},CC={};var AC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};const TC=t=>{let e;return t?e=t:typeof fetch>"u"?e=yy:e=fetch,(...i)=>e(...i)},EC=()=>typeof Headers>"u"?_y:Headers,PC=(t,e,i)=>{const s=TC(i),n=EC();return(r,o)=>AC(void 0,void 0,void 0,function*(){var a;const l=(a=yield e())!==null&&a!==void 0?a:t;let c=new n(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",t),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),s(r,Object.assign(Object.assign({},o),{headers:c}))})};var OC=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};function IC(t){return t.endsWith("/")?t:t+"/"}function MC(t,e){var i,s;const{db:n,auth:r,realtime:o,global:a}=t,{db:l,auth:c,realtime:d,global:u}=e,h={db:Object.assign(Object.assign({},l),n),auth:Object.assign(Object.assign({},c),r),realtime:Object.assign(Object.assign({},d),o),storage:{},global:Object.assign(Object.assign(Object.assign({},u),a),{headers:Object.assign(Object.assign({},(i=u==null?void 0:u.headers)!==null&&i!==void 0?i:{}),(s=a==null?void 0:a.headers)!==null&&s!==void 0?s:{})}),accessToken:()=>OC(this,void 0,void 0,function*(){return""})};return t.accessToken?h.accessToken=t.accessToken:delete h.accessToken,h}const Ly="2.71.1",lr=30*1e3,Mu=3,xd=Mu*lr,RC="http://localhost:9999",$C="supabase.auth.token",LC={"X-Client-Info":`gotrue-js/${Ly}`},Ru="X-Supabase-Api-Version",Dy={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},DC=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,FC=10*60*1e3;class Yh extends Error{constructor(e,i,s){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=s}}function fe(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class NC extends Yh{constructor(e,i,s){super(e,i,s),this.name="AuthApiError",this.status=i,this.code=s}}function BC(t){return fe(t)&&t.name==="AuthApiError"}class Fy extends Yh{constructor(e,i){super(e),this.name="AuthUnknownError",this.originalError=i}}class sn extends Yh{constructor(e,i,s,n){super(e,s,n),this.name=i,this.status=s}}class Is extends sn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function jC(t){return fe(t)&&t.name==="AuthSessionMissingError"}class La extends sn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Da extends sn{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Fa extends sn{constructor(e,i=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function zC(t){return fe(t)&&t.name==="AuthImplicitGrantRedirectError"}class gg extends sn{constructor(e,i=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class $u extends sn{constructor(e,i){super(e,"AuthRetryableFetchError",i,void 0)}}function wd(t){return fe(t)&&t.name==="AuthRetryableFetchError"}class mg extends sn{constructor(e,i,s){super(e,"AuthWeakPasswordError",i,"weak_password"),this.reasons=s}}class Lu extends sn{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ul="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),vg=` +\r=`.split(""),VC=(()=>{const t=new Array(128);for(let e=0;e=6;){const s=e.queue>>e.queuedBits-6&63;i(Ul[s]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;i(Ul[s]),e.queuedBits-=6}}function Ny(t,e,i){const s=VC[t];if(s>-1)for(e.queue=e.queue<<6|s,e.queuedBits+=6;e.queuedBits>=8;)i(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function yg(t){const e=[],i=o=>{e.push(String.fromCodePoint(o))},s={utf8seq:0,codepoint:0},n={queue:0,queuedBits:0},r=o=>{HC(o,s,i)};for(let o=0;o>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function qC(t,e){for(let i=0;i55295&&s<=56319){const n=(s-55296)*1024&65535;s=(t.charCodeAt(i+1)-56320&65535|n)+65536,i+=1}UC(s,e)}}function HC(t,e,i){if(e.utf8seq===0){if(t<=127){i(t);return}for(let s=1;s<6;s+=1)if(!(t>>7-s&1)){e.utf8seq=s;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&i(e.codepoint)}}function WC(t){const e=[],i={queue:0,queuedBits:0},s=n=>{e.push(n)};for(let n=0;ne.push(i)),new Uint8Array(e)}function GC(t){const e=[],i={queue:0,queuedBits:0},s=n=>{e.push(n)};return t.forEach(n=>bg(n,i,s)),bg(null,i,s),e.join("")}function YC(t){return Math.round(Date.now()/1e3)+t}function JC(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const xi=()=>typeof window<"u"&&typeof document<"u",hn={tested:!1,writable:!1},By=()=>{if(!xi())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(hn.tested)return hn.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),hn.tested=!0,hn.writable=!0}catch{hn.tested=!0,hn.writable=!1}return hn.writable};function XC(t){const e={},i=new URL(t);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEach((n,r)=>{e[r]=n})}catch{}return i.searchParams.forEach((s,n)=>{e[n]=s}),e}const jy=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...i)=>pa(async()=>{const{default:s}=await Promise.resolve().then(()=>Fr);return{default:s}},void 0).then(({default:s})=>s(...i)):e=fetch,(...i)=>e(...i)},QC=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",cr=async(t,e,i)=>{await t.setItem(e,JSON.stringify(i))},fn=async(t,e)=>{const i=await t.getItem(e);if(!i)return null;try{return JSON.parse(i)}catch{return i}},Ts=async(t,e)=>{await t.removeItem(e)};class Lc{constructor(){this.promise=new Lc.promiseConstructor((e,i)=>{this.resolve=e,this.reject=i})}}Lc.promiseConstructor=Promise;function kd(t){const e=t.split(".");if(e.length!==3)throw new Lu("Invalid JWT structure");for(let s=0;s{setTimeout(()=>e(null),t)})}function eA(t,e){return new Promise((s,n)=>{(async()=>{for(let r=0;r<1/0;r++)try{const o=await t(r);if(!e(r,null,o)){s(o);return}}catch(o){if(!e(r,o)){n(o);return}}})()})}function tA(t){return("0"+t.toString(16)).substr(-2)}function iA(){const e=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=i.length;let n="";for(let r=0;r<56;r++)n+=i.charAt(Math.floor(Math.random()*s));return n}return crypto.getRandomValues(e),Array.from(e,tA).join("")}async function sA(t){const i=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",i),n=new Uint8Array(s);return Array.from(n).map(r=>String.fromCharCode(r)).join("")}async function nA(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const i=await sA(t);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Xn(t,e,i=!1){const s=iA();let n=s;i&&(n+="/PASSWORD_RECOVERY"),await cr(t,`${e}-code-verifier`,n);const r=await nA(s);return[r,s===r?"plain":"s256"]}const rA=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function oA(t){const e=t.headers.get(Ru);if(!e||!e.match(rA))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function aA(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function lA(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const cA=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Qn(t){if(!cA.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Sd(){const t={};return new Proxy(t,{get:(e,i)=>{if(i==="__isUserNotAvailableProxy")return!0;if(typeof i=="symbol"){const s=i.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function _g(t){return JSON.parse(JSON.stringify(t))}var dA=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);nt.msg||t.message||t.error_description||t.error||JSON.stringify(t),uA=[502,503,504];async function xg(t){var e;if(!QC(t))throw new $u(xn(t),0);if(uA.includes(t.status))throw new $u(xn(t),t.status);let i;try{i=await t.json()}catch(r){throw new Fy(xn(r),r)}let s;const n=oA(t);if(n&&n.getTime()>=Dy["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?s=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(s=i.error_code),s){if(s==="weak_password")throw new mg(xn(i),t.status,((e=i.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(s==="session_not_found")throw new Is}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((r,o)=>r&&typeof o=="string",!0))throw new mg(xn(i),t.status,i.weak_password.reasons);throw new NC(xn(i),t.status||500,s)}const hA=(t,e,i,s)=>{const n={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?n:(n.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),n.body=JSON.stringify(s),Object.assign(Object.assign({},n),i))};async function _e(t,e,i,s){var n;const r=Object.assign({},s==null?void 0:s.headers);r[Ru]||(r[Ru]=Dy["2024-01-01"].name),s!=null&&s.jwt&&(r.Authorization=`Bearer ${s.jwt}`);const o=(n=s==null?void 0:s.query)!==null&&n!==void 0?n:{};s!=null&&s.redirectTo&&(o.redirect_to=s.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await fA(t,e,i+a,{headers:r,noResolveJson:s==null?void 0:s.noResolveJson},{},s==null?void 0:s.body);return s!=null&&s.xform?s==null?void 0:s.xform(l):{data:Object.assign({},l),error:null}}async function fA(t,e,i,s,n,r){const o=hA(e,s,n,r);let a;try{a=await t(i,Object.assign({},o))}catch(l){throw console.error(l),new $u(xn(l),0)}if(a.ok||await xg(a),s!=null&&s.noResolveJson)return a;try{return await a.json()}catch(l){await xg(l)}}function is(t){var e;let i=null;vA(t)&&(i=Object.assign({},t),t.expires_at||(i.expires_at=YC(t.expires_in)));const s=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:i,user:s},error:null}}function wg(t){const e=is(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((i,s)=>i&&typeof s=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Bs(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function pA(t){return{data:t,error:null}}function gA(t){const{action_link:e,email_otp:i,hashed_token:s,redirect_to:n,verification_type:r}=t,o=dA(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:e,email_otp:i,hashed_token:s,redirect_to:n,verification_type:r},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function mA(t){return t}function vA(t){return t.access_token&&t.refresh_token&&t.expires_in}const Cd=["global","local","others"];var bA=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(t);n0&&(f.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),m=JSON.parse(p.split(";")[1].split("=")[1]);c[`${m}Page`]=g}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},u),c),error:null}}catch(c){if(fe(c))return{data:{users:[]},error:c};throw c}}async getUserById(e){Qn(e);try{return await _e(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Bs})}catch(i){if(fe(i))return{data:{user:null},error:i};throw i}}async updateUserById(e,i){Qn(e);try{return await _e(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:i,headers:this.headers,xform:Bs})}catch(s){if(fe(s))return{data:{user:null},error:s};throw s}}async deleteUser(e,i=!1){Qn(e);try{return await _e(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:i},xform:Bs})}catch(s){if(fe(s))return{data:{user:null},error:s};throw s}}async _listFactors(e){Qn(e.userId);try{const{data:i,error:s}=await _e(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:n=>({data:{factors:n},error:null})});return{data:i,error:s}}catch(i){if(fe(i))return{data:null,error:i};throw i}}async _deleteFactor(e){Qn(e.userId),Qn(e.id);try{return{data:await _e(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(i){if(fe(i))return{data:null,error:i};throw i}}}function kg(t={}){return{getItem:e=>t[e]||null,setItem:(e,i)=>{t[e]=i},removeItem:e=>{delete t[e]}}}function _A(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Zn={debug:!!(globalThis&&By()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class zy extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class xA extends zy{}async function wA(t,e,i){Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const s=new globalThis.AbortController;return e>0&&setTimeout(()=>{s.abort(),Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:s.signal},async n=>{if(n){Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,n.name);try{return await i()}finally{Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,n.name)}}else{if(e===0)throw Zn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new xA(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(Zn.debug)try{const r=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(r,null," "))}catch(r){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",r)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await i()}}))}_A();const kA={url:RC,storageKey:$C,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:LC,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Sg(t,e,i){return await i()}const er={};class Yo{constructor(e){var i,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Yo.nextInstanceID,Yo.nextInstanceID+=1,this.instanceID>0&&xi()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const n=Object.assign(Object.assign({},kA),e);if(this.logDebugMessages=!!n.debug,typeof n.debug=="function"&&(this.logger=n.debug),this.persistSession=n.persistSession,this.storageKey=n.storageKey,this.autoRefreshToken=n.autoRefreshToken,this.admin=new yA({url:n.url,headers:n.headers,fetch:n.fetch}),this.url=n.url,this.headers=n.headers,this.fetch=jy(n.fetch),this.lock=n.lock||Sg,this.detectSessionInUrl=n.detectSessionInUrl,this.flowType=n.flowType,this.hasCustomAuthorizationHeader=n.hasCustomAuthorizationHeader,n.lock?this.lock=n.lock:xi()&&(!((i=globalThis==null?void 0:globalThis.navigator)===null||i===void 0)&&i.locks)?this.lock=wA:this.lock=Sg,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(n.storage?this.storage=n.storage:By()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=kg(this.memoryStorage)),n.userStorage&&(this.userStorage=n.userStorage)):(this.memoryStorage={},this.storage=kg(this.memoryStorage)),xi()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(r){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",r)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async r=>{this._debug("received broadcast notification from other tab or client",r),await this._notifyAllSubscribers(r.data.event,r.data.session,!1)})}this.initialize()}get jwks(){var e,i;return(i=(e=er[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(e){er[this.storageKey]=Object.assign(Object.assign({},er[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,i;return(i=(e=er[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){er[this.storageKey]=Object.assign(Object.assign({},er[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Ly}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const i=XC(window.location.href);let s="none";if(this._isImplicitGrantCallback(i)?s="implicit":await this._isPKCECallback(i)&&(s="pkce"),xi()&&this.detectSessionInUrl&&s!=="none"){const{data:n,error:r}=await this._getSessionFromURL(i,s);if(r){if(this._debug("#_initialize()","error detecting session from URL",r),zC(r)){const l=(e=r.details)===null||e===void 0?void 0:e.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:r}}return await this._removeSession(),{error:r}}const{session:o,redirectType:a}=n;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return fe(i)?{error:i}:{error:new Fy("Unexpected error during initialization",i)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var i,s,n;try{const r=await _e(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(i=e==null?void 0:e.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.captchaToken}},xform:is}),{data:o,error:a}=r;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(r){if(fe(r))return{data:{user:null,session:null},error:r};throw r}}async signUp(e){var i,s,n;try{let r;if("email"in e){const{email:d,password:u,options:h}=e;let f=null,p=null;this.flowType==="pkce"&&([f,p]=await Xn(this.storage,this.storageKey)),r=await _e(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:d,password:u,data:(i=h==null?void 0:h.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:f,code_challenge_method:p},xform:is})}else if("phone"in e){const{phone:d,password:u,options:h}=e;r=await _e(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:d,password:u,data:(s=h==null?void 0:h.data)!==null&&s!==void 0?s:{},channel:(n=h==null?void 0:h.channel)!==null&&n!==void 0?n:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:is})}else throw new Da("You must provide either an email or phone number and a password");const{data:o,error:a}=r;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(r){if(fe(r))return{data:{user:null,session:null},error:r};throw r}}async signInWithPassword(e){try{let i;if("email"in e){const{email:r,password:o,options:a}=e;i=await _e(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:r,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:wg})}else if("phone"in e){const{phone:r,password:o,options:a}=e;i=await _e(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:r,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:wg})}else throw new Da("You must provide either an email or phone number and a password");const{data:s,error:n}=i;return n?{data:{user:null,session:null},error:n}:!s||!s.session||!s.user?{data:{user:null,session:null},error:new La}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:n})}catch(i){if(fe(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithOAuth(e){var i,s,n,r;return await this._handleProviderSignIn(e.provider,{redirectTo:(i=e.options)===null||i===void 0?void 0:i.redirectTo,scopes:(s=e.options)===null||s===void 0?void 0:s.scopes,queryParams:(n=e.options)===null||n===void 0?void 0:n.queryParams,skipBrowserRedirect:(r=e.options)===null||r===void 0?void 0:r.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:i}=e;if(i==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}async signInWithSolana(e){var i,s,n,r,o,a,l,c,d,u,h,f;let p,g;if("message"in e)p=e.message,g=e.signature;else{const{chain:m,wallet:y,statement:C,options:w}=e;let A;if(xi())if(typeof y=="object")A=y;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))A=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!(w!=null&&w.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");A=y}const x=new URL((i=w==null?void 0:w.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in A&&A.signIn){const E=await A.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w==null?void 0:w.signInWithSolana),{version:"1",domain:x.host,uri:x.href}),C?{statement:C}:null));let T;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")T=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)T=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in T&&"signature"in T&&(typeof T.signedMessage=="string"||T.signedMessage instanceof Uint8Array)&&T.signature instanceof Uint8Array)p=typeof T.signedMessage=="string"?T.signedMessage:new TextDecoder().decode(T.signedMessage),g=T.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in A)||typeof A.signMessage!="function"||!("publicKey"in A)||typeof A!="object"||!A.publicKey||!("toBase58"in A.publicKey)||typeof A.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");p=[`${x.host} wants you to sign in with your Solana account:`,A.publicKey.toBase58(),...C?["",C,""]:[""],"Version: 1",`URI: ${x.href}`,`Issued At: ${(n=(s=w==null?void 0:w.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&n!==void 0?n:new Date().toISOString()}`,...!((r=w==null?void 0:w.signInWithSolana)===null||r===void 0)&&r.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((o=w==null?void 0:w.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((a=w==null?void 0:w.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((l=w==null?void 0:w.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((c=w==null?void 0:w.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((u=(d=w==null?void 0:w.signInWithSolana)===null||d===void 0?void 0:d.resources)===null||u===void 0)&&u.length?["Resources",...w.signInWithSolana.resources.map(T=>`- ${T}`)]:[]].join(` +`);const E=await A.signMessage(new TextEncoder().encode(p),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:m,error:y}=await _e(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:GC(g)},!((h=e.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=e.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:is});if(y)throw y;return!m||!m.session||!m.user?{data:{user:null,session:null},error:new La}:(m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),{data:Object.assign({},m),error:y})}catch(m){if(fe(m))return{data:{user:null,session:null},error:m};throw m}}async _exchangeCodeForSession(e){const i=await fn(this.storage,`${this.storageKey}-code-verifier`),[s,n]=(i??"").split("/");try{const{data:r,error:o}=await _e(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:s},xform:is});if(await Ts(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!r||!r.session||!r.user?{data:{user:null,session:null,redirectType:null},error:new La}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign(Object.assign({},r),{redirectType:n??null}),error:o})}catch(r){if(fe(r))return{data:{user:null,session:null,redirectType:null},error:r};throw r}}async signInWithIdToken(e){try{const{options:i,provider:s,token:n,access_token:r,nonce:o}=e,a=await _e(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:n,access_token:r,nonce:o,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:is}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new La}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(i){if(fe(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithOtp(e){var i,s,n,r,o;try{if("email"in e){const{email:a,options:l}=e;let c=null,d=null;this.flowType==="pkce"&&([c,d]=await Xn(this.storage,this.storageKey));const{error:u}=await _e(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:d},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:u}}if("phone"in e){const{phone:a,options:l}=e,{data:c,error:d}=await _e(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:d}}throw new Da("You must provide either an email or phone number.")}catch(a){if(fe(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(e){var i,s;try{let n,r;"options"in e&&(n=(i=e.options)===null||i===void 0?void 0:i.redirectTo,r=(s=e.options)===null||s===void 0?void 0:s.captchaToken);const{data:o,error:a}=await _e(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:r}}),redirectTo:n,xform:is});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(n){if(fe(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithSSO(e){var i,s,n;try{let r=null,o=null;return this.flowType==="pkce"&&([r,o]=await Xn(this.storage,this.storageKey)),await _e(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(s=(i=e.options)===null||i===void 0?void 0:i.redirectTo)!==null&&s!==void 0?s:void 0}),!((n=e==null?void 0:e.options)===null||n===void 0)&&n.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:r,code_challenge_method:o}),headers:this.headers,xform:pA})}catch(r){if(fe(r))return{data:null,error:r};throw r}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:i},error:s}=e;if(s)throw s;if(!i)throw new Is;const{error:n}=await _e(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return{data:{user:null,session:null},error:n}})}catch(e){if(fe(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const i=`${this.url}/resend`;if("email"in e){const{email:s,type:n,options:r}=e,{error:o}=await _e(this.fetch,"POST",i,{headers:this.headers,body:{email:s,type:n,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},redirectTo:r==null?void 0:r.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:s,type:n,options:r}=e,{data:o,error:a}=await _e(this.fetch,"POST",i,{headers:this.headers,body:{phone:s,type:n,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new Da("You must provide either an email or phone number and a type")}catch(i){if(fe(i))return{data:{user:null,session:null},error:i};throw i}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async i=>i))}async _acquireLock(e,i){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await s,await i()))();return this.pendingInLock.push((async()=>{try{await n}catch{}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=i();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const n=[...this.pendingInLock];await Promise.all(n),this.pendingInLock.splice(0,n.length)}return await s}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await e(i)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const i=await fn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?e=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const s=e.expires_at?e.expires_at*1e3-Date.now()(!o&&c==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,c,d))})}return{data:{session:e},error:null}}const{session:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?{data:{session:null},error:r}:{data:{session:n},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await _e(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Bs}):await this._useSession(async i=>{var s,n,r;const{data:o,error:a}=i;if(a)throw a;return!(!((s=o.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Is}:await _e(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(r=(n=o.session)===null||n===void 0?void 0:n.access_token)!==null&&r!==void 0?r:void 0,xform:Bs})})}catch(i){if(fe(i))return jC(i)&&(await this._removeSession(),await Ts(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:i};throw i}}async updateUser(e,i={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,i))}async _updateUser(e,i={}){try{return await this._useSession(async s=>{const{data:n,error:r}=s;if(r)throw r;if(!n.session)throw new Is;const o=n.session;let a=null,l=null;this.flowType==="pkce"&&e.email!=null&&([a,l]=await Xn(this.storage,this.storageKey));const{data:c,error:d}=await _e(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i==null?void 0:i.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Bs});if(d)throw d;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(s){if(fe(s))return{data:{user:null},error:s};throw s}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Is;const i=Date.now()/1e3;let s=i,n=!0,r=null;const{payload:o}=kd(e.access_token);if(o.exp&&(s=o.exp,n=s<=i),n){const{session:a,error:l}=await this._callRefreshToken(e.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};r=a}else{const{data:a,error:l}=await this._getUser(e.access_token);if(l)throw l;r={access_token:e.access_token,refresh_token:e.refresh_token,user:a.user,token_type:"bearer",expires_in:s-i,expires_at:s},await this._saveSession(r),await this._notifyAllSubscribers("SIGNED_IN",r)}return{data:{user:r.user,session:r},error:null}}catch(i){if(fe(i))return{data:{session:null,user:null},error:i};throw i}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async i=>{var s;if(!e){const{data:o,error:a}=i;if(a)throw a;e=(s=o.session)!==null&&s!==void 0?s:void 0}if(!(e!=null&&e.refresh_token))throw new Is;const{session:n,error:r}=await this._callRefreshToken(e.refresh_token);return r?{data:{user:null,session:null},error:r}:n?{data:{user:n.user,session:n},error:null}:{data:{user:null,session:null},error:null}})}catch(i){if(fe(i))return{data:{user:null,session:null},error:i};throw i}}async _getSessionFromURL(e,i){try{if(!xi())throw new Fa("No browser detected.");if(e.error||e.error_description||e.error_code)throw new Fa(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new gg("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Fa("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new gg("No code detected.");const{data:C,error:w}=await this._exchangeCodeForSession(e.code);if(w)throw w;const A=new URL(window.location.href);return A.searchParams.delete("code"),window.history.replaceState(window.history.state,"",A.toString()),{data:{session:C.session,redirectType:null},error:null}}const{provider_token:s,provider_refresh_token:n,access_token:r,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=e;if(!r||!a||!o||!c)throw new Fa("No session defined in URL");const d=Math.round(Date.now()/1e3),u=parseInt(a);let h=d+u;l&&(h=parseInt(l));const f=h-d;f*1e3<=lr&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${u}s`);const p=h-u;d-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,h,d):d-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,h,d);const{data:g,error:m}=await this._getUser(r);if(m)throw m;const y={provider_token:s,provider_refresh_token:n,access_token:r,expires_in:u,expires_at:h,refresh_token:o,token_type:c,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:y,redirectType:e.type},error:null}}catch(s){if(fe(s))return{data:{session:null,redirectType:null},error:s};throw s}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const i=await fn(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&i)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async i=>{var s;const{data:n,error:r}=i;if(r)return{error:r};const o=(s=n.session)===null||s===void 0?void 0:s.access_token;if(o){const{error:a}=await this.admin.signOut(o,e);if(a&&!(BC(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return e!=="others"&&(await this._removeSession(),await Ts(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const i=JC(),s={id:i,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,s),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(i)})))(),{data:{subscription:s}}}async _emitInitialSession(e){return await this._useSession(async i=>{var s,n;try{const{data:{session:r},error:o}=i;if(o)throw o;await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",r)),this._debug("INITIAL_SESSION","callback id",e,"session",r)}catch(r){await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",r),console.error(r)}})}async resetPasswordForEmail(e,i={}){let s=null,n=null;this.flowType==="pkce"&&([s,n]=await Xn(this.storage,this.storageKey,!0));try{return await _e(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:s,code_challenge_method:n,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.redirectTo})}catch(r){if(fe(r))return{data:null,error:r};throw r}}async getUserIdentities(){var e;try{const{data:i,error:s}=await this.getUser();if(s)throw s;return{data:{identities:(e=i.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(i){if(fe(i))return{data:null,error:i};throw i}}async linkIdentity(e){var i;try{const{data:s,error:n}=await this._useSession(async r=>{var o,a,l,c,d;const{data:u,error:h}=r;if(h)throw h;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=e.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await _e(this.fetch,"GET",f,{headers:this.headers,jwt:(d=(c=u.session)===null||c===void 0?void 0:c.access_token)!==null&&d!==void 0?d:void 0})});if(n)throw n;return xi()&&!(!((i=e.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(s==null?void 0:s.url),{data:{provider:e.provider,url:s==null?void 0:s.url},error:null}}catch(s){if(fe(s))return{data:{provider:e.provider,url:null},error:s};throw s}}async unlinkIdentity(e){try{return await this._useSession(async i=>{var s,n;const{data:r,error:o}=i;if(o)throw o;return await _e(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(n=(s=r.session)===null||s===void 0?void 0:s.access_token)!==null&&n!==void 0?n:void 0})})}catch(i){if(fe(i))return{data:null,error:i};throw i}}async _refreshAccessToken(e){const i=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(i,"begin");try{const s=Date.now();return await eA(async n=>(n>0&&await ZC(200*Math.pow(2,n-1)),this._debug(i,"refreshing attempt",n),await _e(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:is})),(n,r)=>{const o=200*Math.pow(2,n);return r&&wd(r)&&Date.now()+o-s{try{await a.callback(e,i)}catch(l){r.push(l)}});if(await Promise.all(o),r.length>0){for(let a=0;athis._autoRefreshTokenTick(),lr);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async i=>{const{data:{session:s}}=i;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const n=Math.floor((s.expires_at*1e3-e)/lr);this._debug("#_autoRefreshTokenTick()",`access token expires in ${n} ticks, a tick lasts ${lr}ms, refresh threshold is ${Mu} ticks`),n<=Mu&&await this._callRefreshToken(s.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof zy)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!xi()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const i=`#_onVisibilityChanged(${e})`;this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,i,s){const n=[`provider=${encodeURIComponent(i)}`];if(s!=null&&s.redirectTo&&n.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s!=null&&s.scopes&&n.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[r,o]=await Xn(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(r)}`,code_challenge_method:`${encodeURIComponent(o)}`});n.push(a.toString())}if(s!=null&&s.queryParams){const r=new URLSearchParams(s.queryParams);n.push(r.toString())}return s!=null&&s.skipBrowserRedirect&&n.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${e}?${n.join("&")}`}async _unenroll(e){try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;return r?{data:null,error:r}:await _e(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token})})}catch(i){if(fe(i))return{data:null,error:i};throw i}}async _enroll(e){try{return await this._useSession(async i=>{var s,n;const{data:r,error:o}=i;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:l,error:c}=await _e(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(s=r==null?void 0:r.session)===null||s===void 0?void 0:s.access_token});return c?{data:null,error:c}:(e.factorType==="totp"&&(!((n=l==null?void 0:l.totp)===null||n===void 0)&&n.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(i){if(fe(i))return{data:null,error:i};throw i}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;if(r)return{data:null,error:r};const{data:o,error:a}=await _e(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(i){if(fe(i))return{data:null,error:i};throw i}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async i=>{var s;const{data:n,error:r}=i;return r?{data:null,error:r}:await _e(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(s=n==null?void 0:n.session)===null||s===void 0?void 0:s.access_token})})}catch(i){if(fe(i))return{data:null,error:i};throw i}})}async _challengeAndVerify(e){const{data:i,error:s}=await this._challenge({factorId:e.factorId});return s?{data:null,error:s}:await this._verify({factorId:e.factorId,challengeId:i.id,code:e.code})}async _listFactors(){const{data:{user:e},error:i}=await this.getUser();if(i)return{data:null,error:i};const s=(e==null?void 0:e.factors)||[],n=s.filter(o=>o.factor_type==="totp"&&o.status==="verified"),r=s.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:s,totp:n,phone:r},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var i,s;const{data:{session:n},error:r}=e;if(r)return{data:null,error:r};if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=kd(n.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((s=(i=n.user.factors)===null||i===void 0?void 0:i.filter(u=>u.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(l="aal2");const d=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:d},error:null}}))}async fetchJwk(e,i={keys:[]}){let s=i.keys.find(a=>a.kid===e);if(s)return s;const n=Date.now();if(s=this.jwks.keys.find(a=>a.kid===e),s&&this.jwks_cached_at+FC>n)return s;const{data:r,error:o}=await _e(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!r.keys||r.keys.length===0||(this.jwks=r,this.jwks_cached_at=n,s=r.keys.find(a=>a.kid===e),!s)?null:s}async getClaims(e,i={}){try{let s=e;if(!s){const{data:f,error:p}=await this.getSession();if(p||!f.session)return{data:null,error:p};s=f.session.access_token}const{header:n,payload:r,signature:o,raw:{header:a,payload:l}}=kd(s);i!=null&&i.allowExpired||aA(r.exp);const c=!n.alg||n.alg.startsWith("HS")||!n.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(n.kid,i!=null&&i.keys?{keys:i.keys}:i==null?void 0:i.jwks);if(!c){const{error:f}=await this.getUser(s);if(f)throw f;return{data:{claims:r,header:n,signature:o},error:null}}const d=lA(n.alg),u=await crypto.subtle.importKey("jwk",c,d,!0,["verify"]);if(!await crypto.subtle.verify(d,u,o,KC(`${a}.${l}`)))throw new Lu("Invalid JWT signature");return{data:{claims:r,header:n,signature:o},error:null}}catch(s){if(fe(s))return{data:null,error:s};throw s}}}Yo.nextInstanceID=0;const SA=Yo;class CA extends SA{constructor(e){super(e)}}var AA=function(t,e,i,s){function n(r){return r instanceof i?r:new i(function(o){o(r)})}return new(i||(i=Promise))(function(r,o){function a(d){try{c(s.next(d))}catch(u){o(u)}}function l(d){try{c(s.throw(d))}catch(u){o(u)}}function c(d){d.done?r(d.value):n(d.value).then(a,l)}c((s=s.apply(t,e||[])).next())})};class TA{constructor(e,i,s){var n,r,o;if(this.supabaseUrl=e,this.supabaseKey=i,!e)throw new Error("supabaseUrl is required.");if(!i)throw new Error("supabaseKey is required.");const a=IC(e),l=new URL(a);this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,d={db:kC,realtime:CC,auth:Object.assign(Object.assign({},SC),{storageKey:c}),global:wC},u=MC(s??{},d);this.storageKey=(n=u.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(r=u.global.headers)!==null&&r!==void 0?r:{},u.accessToken?(this.accessToken=u.accessToken,this.auth=new Proxy({},{get:(h,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=u.auth)!==null&&o!==void 0?o:{},this.headers,u.global.fetch),this.fetch=PC(i,this._getAccessToken.bind(this),u.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},u.realtime)),this.rest=new US(new URL("rest/v1",l).href,{headers:this.headers,schema:u.db.schema,fetch:this.fetch}),this.storage=new yC(this.storageUrl.href,this.headers,this.fetch,s==null?void 0:s.storage),u.accessToken||this._listenForAuthEvents()}get functions(){return new bS(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,i={},s={}){return this.rest.rpc(e,i,s)}channel(e,i={config:{}}){return this.realtime.channel(e,i)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,i;return AA(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:s}=yield this.auth.getSession();return(i=(e=s.session)===null||e===void 0?void 0:e.access_token)!==null&&i!==void 0?i:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:i,detectSessionInUrl:s,storage:n,storageKey:r,flowType:o,lock:a,debug:l},c,d){const u={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new CA({url:this.authUrl.href,headers:Object.assign(Object.assign({},u),c),storageKey:r,autoRefreshToken:e,persistSession:i,detectSessionInUrl:s,storage:n,flowType:o,lock:a,debug:l,fetch:d,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new oC(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((i,s)=>{this._handleTokenChanged(i,"CLIENT",s==null?void 0:s.access_token)})}_handleTokenChanged(e,i,s){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==s?this.changedAccessToken=s:e==="SIGNED_OUT"&&(this.realtime.setAuth(),i=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const EA=(t,e,i)=>new TA(t,e,i);function PA(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}PA()&&console.warn("⚠️ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const Vy="hsmkwrrptltywjqljrpf",Ii=EA("https://"+Vy+".supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImhzbWt3cnJwdGx0eXdqcWxqcnBmIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcyOTcyODQ5MiwiZXhwIjoyMDQ1MzA0NDkyfQ.qgVkNvWkDXiaiS9GDzG-1fFYkf3KnheVpIJr4B3XfFk");async function OA(){var t={id:by,name:""};const{data:e,error:i}=await Ii.from(hS).select("*");if(i)return console.log(i),t;for(var s=new Date,n=new Date("1970-01-01"),r=null,o=0;o=a&&s<=l){r=e[o],n=s;break}const c=Math.abs(s-n),d=Math.abs(s-a),u=Math.abs(s-l);d=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Zt=t=>(e,i)=>{i!==void 0?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};/** + */const ti=t=>(e,i)=>{i!==void 0?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const xl=globalThis,Yh=xl.ShadowRoot&&(xl.ShadyCSS===void 0||xl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jh=Symbol(),kg=new WeakMap;let zy=class{constructor(e,i,s){if(this._$cssResult$=!0,s!==Jh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Yh&&e===void 0){const s=i!==void 0&&i.length===1;s&&(e=kg.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&kg.set(i,e))}return e}toString(){return this.cssText}};const OA=t=>new zy(typeof t=="string"?t:t+"",void 0,Jh),dt=(t,...e)=>{const i=t.length===1?t[0]:e.reduce((s,n,r)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1],t[0]);return new zy(i,t,Jh)},IA=(t,e)=>{if(Yh)t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of e){const s=document.createElement("style"),n=xl.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=i.cssText,t.appendChild(s)}},Sg=Yh?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const s of e.cssRules)i+=s.cssText;return OA(i)})(t):t;/** + */const Sl=globalThis,Jh=Sl.ShadowRoot&&(Sl.ShadyCSS===void 0||Sl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xh=Symbol(),Cg=new WeakMap;let Uy=class{constructor(e,i,s){if(this._$cssResult$=!0,s!==Xh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Jh&&e===void 0){const s=i!==void 0&&i.length===1;s&&(e=Cg.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&Cg.set(i,e))}return e}toString(){return this.cssText}};const IA=t=>new Uy(typeof t=="string"?t:t+"",void 0,Xh),ut=(t,...e)=>{const i=t.length===1?t[0]:e.reduce((s,n,r)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[r+1],t[0]);return new Uy(i,t,Xh)},MA=(t,e)=>{if(Jh)t.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet);else for(const i of e){const s=document.createElement("style"),n=Sl.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=i.cssText,t.appendChild(s)}},Ag=Jh?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const s of e.cssRules)i+=s.cssText;return IA(i)})(t):t;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:MA,defineProperty:RA,getOwnPropertyDescriptor:$A,getOwnPropertyNames:LA,getOwnPropertySymbols:DA,getPrototypeOf:FA}=Object,Ws=globalThis,Cg=Ws.trustedTypes,NA=Cg?Cg.emptyScript:"",xd=Ws.reactiveElementPolyfillSupport,Ao=(t,e)=>t,zl={toAttribute(t,e){switch(e){case Boolean:t=t?NA:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},Xh=(t,e)=>!MA(t,e),Ag={attribute:!0,type:String,converter:zl,reflect:!1,useDefault:!1,hasChanged:Xh};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ws.litPropertyMetadata??(Ws.litPropertyMetadata=new WeakMap);let dr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Ag){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const s=Symbol(),n=this.getPropertyDescriptor(e,s,i);n!==void 0&&RA(this.prototype,e,n)}}static getPropertyDescriptor(e,i,s){const{get:n,set:r}=$A(this.prototype,e)??{get(){return this[i]},set(o){this[i]=o}};return{get:n,set(o){const a=n==null?void 0:n.call(this);r==null||r.call(this,o),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ag}static _$Ei(){if(this.hasOwnProperty(Ao("elementProperties")))return;const e=FA(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ao("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ao("properties"))){const i=this.properties,s=[...LA(i),...DA(i)];for(const n of s)this.createProperty(n,i[n])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[s,n]of i)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[i,s]of this.elementProperties){const n=this._$Eu(i,s);n!==void 0&&this._$Eh.set(n,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const n of s)i.unshift(Sg(n))}else e!==void 0&&i.push(Sg(e));return i}static _$Eu(e,i){const s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(i=>i(this))}addController(e){var i;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var i;(i=this._$EO)==null||i.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const s of i.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return IA(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostDisconnected)==null?void 0:s.call(i)})}attributeChangedCallback(e,i,s){this._$AK(e,s)}_$ET(e,i){var r;const s=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,s);if(n!==void 0&&s.reflect===!0){const o=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:zl).toAttribute(i,s.type);this._$Em=e,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,i){var r,o;const s=this.constructor,n=s._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const a=s.getPropertyOptions(n),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)==null?void 0:r.fromAttribute)!==void 0?a.converter:zl;this._$Em=n;const c=l.fromAttribute(i,a.type);this[n]=c??((o=this._$Ej)==null?void 0:o.get(n))??c,this._$Em=null}}requestUpdate(e,i,s){var n;if(e!==void 0){const r=this.constructor,o=this[e];if(s??(s=r.getPropertyOptions(e)),!((s.hasChanged??Xh)(o,i)||s.useDefault&&s.reflect&&o===((n=this._$Ej)==null?void 0:n.get(e))&&!this.hasAttribute(r._$Eu(e,s))))return;this.C(e,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:s,reflect:n,wrapped:r},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,o??i??this[e]),r!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||s||(i=void 0),this._$AL.set(e,i)),n===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n){const{wrapped:a}=o,l=this[r];a!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,o,l)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(s=this._$EO)==null||s.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(i)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(i)}willUpdate(e){}_$AE(e){var i;(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};dr.elementStyles=[],dr.shadowRootOptions={mode:"open"},dr[Ao("elementProperties")]=new Map,dr[Ao("finalized")]=new Map,xd==null||xd({ReactiveElement:dr}),(Ws.reactiveElementVersions??(Ws.reactiveElementVersions=[])).push("2.1.1");/** + */const{is:RA,defineProperty:$A,getOwnPropertyDescriptor:LA,getOwnPropertyNames:DA,getOwnPropertySymbols:FA,getPrototypeOf:NA}=Object,Ks=globalThis,Tg=Ks.trustedTypes,BA=Tg?Tg.emptyScript:"",Ad=Ks.reactiveElementPolyfillSupport,Ao=(t,e)=>t,ql={toAttribute(t,e){switch(e){case Boolean:t=t?BA:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},Qh=(t,e)=>!RA(t,e),Eg={attribute:!0,type:String,converter:ql,reflect:!1,useDefault:!1,hasChanged:Qh};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Ks.litPropertyMetadata??(Ks.litPropertyMetadata=new WeakMap);let dr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Eg){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const s=Symbol(),n=this.getPropertyDescriptor(e,s,i);n!==void 0&&$A(this.prototype,e,n)}}static getPropertyDescriptor(e,i,s){const{get:n,set:r}=LA(this.prototype,e)??{get(){return this[i]},set(o){this[i]=o}};return{get:n,set(o){const a=n==null?void 0:n.call(this);r==null||r.call(this,o),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Eg}static _$Ei(){if(this.hasOwnProperty(Ao("elementProperties")))return;const e=NA(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ao("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ao("properties"))){const i=this.properties,s=[...DA(i),...FA(i)];for(const n of s)this.createProperty(n,i[n])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[s,n]of i)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[i,s]of this.elementProperties){const n=this._$Eu(i,s);n!==void 0&&this._$Eh.set(n,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const n of s)i.unshift(Ag(n))}else e!==void 0&&i.push(Ag(e));return i}static _$Eu(e,i){const s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(i=>i(this))}addController(e){var i;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var i;(i=this._$EO)==null||i.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const s of i.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return MA(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostDisconnected)==null?void 0:s.call(i)})}attributeChangedCallback(e,i,s){this._$AK(e,s)}_$ET(e,i){var r;const s=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,s);if(n!==void 0&&s.reflect===!0){const o=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:ql).toAttribute(i,s.type);this._$Em=e,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,i){var r,o;const s=this.constructor,n=s._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const a=s.getPropertyOptions(n),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)==null?void 0:r.fromAttribute)!==void 0?a.converter:ql;this._$Em=n;const c=l.fromAttribute(i,a.type);this[n]=c??((o=this._$Ej)==null?void 0:o.get(n))??c,this._$Em=null}}requestUpdate(e,i,s){var n;if(e!==void 0){const r=this.constructor,o=this[e];if(s??(s=r.getPropertyOptions(e)),!((s.hasChanged??Qh)(o,i)||s.useDefault&&s.reflect&&o===((n=this._$Ej)==null?void 0:n.get(e))&&!this.hasAttribute(r._$Eu(e,s))))return;this.C(e,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:s,reflect:n,wrapped:r},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,o??i??this[e]),r!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||s||(i=void 0),this._$AL.set(e,i)),n===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n){const{wrapped:a}=o,l=this[r];a!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,o,l)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(s=this._$EO)==null||s.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(i)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(i)}willUpdate(e){}_$AE(e){var i;(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};dr.elementStyles=[],dr.shadowRootOptions={mode:"open"},dr[Ao("elementProperties")]=new Map,dr[Ao("finalized")]=new Map,Ad==null||Ad({ReactiveElement:dr}),(Ks.reactiveElementVersions??(Ks.reactiveElementVersions=[])).push("2.1.1");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const BA={attribute:!0,type:String,converter:zl,reflect:!1,hasChanged:Xh},jA=(t=BA,e,i)=>{const{kind:s,metadata:n}=i;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),s==="setter"&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),s==="accessor"){const{name:o}=i;return{set(a){const l=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,l,t)},init(a){return a!==void 0&&this.C(o,void 0,t,a),a}}}if(s==="setter"){const{name:o}=i;return function(a){const l=this[o];e.call(this,a),this.requestUpdate(o,l,t)}}throw Error("Unsupported decorator location: "+s)};function J(t){return(e,i)=>typeof i=="object"?jA(t,e,i):((s,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,s),o?Object.getOwnPropertyDescriptor(n,r):void 0})(t,e,i)}/** + */const jA={attribute:!0,type:String,converter:ql,reflect:!1,hasChanged:Qh},zA=(t=jA,e,i)=>{const{kind:s,metadata:n}=i;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),s==="setter"&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),s==="accessor"){const{name:o}=i;return{set(a){const l=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,l,t)},init(a){return a!==void 0&&this.C(o,void 0,t,a),a}}}if(s==="setter"){const{name:o}=i;return function(a){const l=this[o];e.call(this,a),this.requestUpdate(o,l,t)}}throw Error("Unsupported decorator location: "+s)};function X(t){return(e,i)=>typeof i=="object"?zA(t,e,i):((s,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,s),o?Object.getOwnPropertyDescriptor(n,r):void 0})(t,e,i)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function jt(t){return J({...t,state:!0,attribute:!1})}/** + */function Vt(t){return X({...t,state:!0,attribute:!1})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Mc=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,i),i);/** + */const Dc=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,i),i);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function zt(t,e){return(i,s,n)=>{const r=o=>{var a;return((a=o.renderRoot)==null?void 0:a.querySelector(t))??null};return Mc(i,s,{get(){return r(this)}})}}/** + */function Ut(t,e){return(i,s,n)=>{const r=o=>{var a;return((a=o.renderRoot)==null?void 0:a.querySelector(t))??null};return Dc(i,s,{get(){return r(this)}})}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let zA;function VA(t){return(e,i)=>Mc(e,i,{get(){return(this.renderRoot??zA??(zA=document.createDocumentFragment())).querySelectorAll(t)}})}/** + */let VA;function UA(t){return(e,i)=>Dc(e,i,{get(){return(this.renderRoot??VA??(VA=document.createDocumentFragment())).querySelectorAll(t)}})}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function sn(t){return(e,i)=>{const{slot:s,selector:n}=t??{},r="slot"+(s?`[name=${s}]`:":not([name])");return Mc(e,i,{get(){var l;const o=(l=this.renderRoot)==null?void 0:l.querySelector(r),a=(o==null?void 0:o.assignedElements(t))??[];return n===void 0?a:a.filter(c=>c.matches(n))}})}}/** + */function nn(t){return(e,i)=>{const{slot:s,selector:n}=t??{},r="slot"+(s?`[name=${s}]`:":not([name])");return Dc(e,i,{get(){var l;const o=(l=this.renderRoot)==null?void 0:l.querySelector(r),a=(o==null?void 0:o.assignedElements(t))??[];return n===void 0?a:a.filter(c=>c.matches(n))}})}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function UA(t){return(e,i)=>{const{slot:s}=t??{},n="slot"+(s?`[name=${s}]`:":not([name])");return Mc(e,i,{get(){var o;const r=(o=this.renderRoot)==null?void 0:o.querySelector(n);return(r==null?void 0:r.assignedNodes(t))??[]}})}}/** + */function qA(t){return(e,i)=>{const{slot:s}=t??{},n="slot"+(s?`[name=${s}]`:":not([name])");return Dc(e,i,{get(){var o;const r=(o=this.renderRoot)==null?void 0:o.querySelector(n);return(r==null?void 0:r.assignedNodes(t))??[]}})}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const To=globalThis,Vl=To.trustedTypes,Tg=Vl?Vl.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vy="$lit$",Bs=`lit$${Math.random().toFixed(9).slice(2)}$`,Uy="?"+Bs,qA=`<${Uy}>`,Dn=document,Jo=()=>Dn.createComment(""),Xo=t=>t===null||typeof t!="object"&&typeof t!="function",Qh=Array.isArray,HA=t=>Qh(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",wd=`[ -\f\r]`,Yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Eg=/-->/g,Pg=/>/g,fn=RegExp(`>|${wd}(?:([^\\s"'>=/]+)(${wd}*=${wd}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Og=/'/g,Ig=/"/g,qy=/^(?:script|style|textarea|title)$/i,WA=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ce=WA(1),ui=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),Mg=new WeakMap,An=Dn.createTreeWalker(Dn,129);function Hy(t,e){if(!Qh(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Tg!==void 0?Tg.createHTML(e):e}const KA=(t,e)=>{const i=t.length-1,s=[];let n,r=e===2?"":e===3?"":"",o=Yr;for(let a=0;a"?(o=n??Yr,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?fn:d[3]==='"'?Ig:Og):o===Ig||o===Og?o=fn:o===Eg||o===Pg?o=Yr:(o=fn,n=void 0);const f=o===fn&&t[a+1].startsWith("/>")?" ":"";r+=o===Yr?l+qA:u>=0?(s.push(c),l.slice(0,u)+Vy+l.slice(u)+Bs+f):l+Bs+(u===-2?a:f)}return[Hy(t,r+(t[i]||"")+(e===2?"":e===3?"":"")),s]};class Qo{constructor({strings:e,_$litType$:i},s){let n;this.parts=[];let r=0,o=0;const a=e.length-1,l=this.parts,[c,d]=KA(e,i);if(this.el=Qo.createElement(c,s),An.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=An.nextNode())!==null&&l.length0){n.textContent=Vl?Vl.emptyScript:"";for(let f=0;f2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=se}_$AI(e,i=this,s,n){const r=this.strings;let o=!1;if(r===void 0)e=Tr(this,e,i,0),o=!Xo(e)||e!==this._$AH&&e!==ui,o&&(this._$AH=e);else{const a=e;let l,c;for(e=r[0],l=0;l{const s=(i==null?void 0:i.renderBefore)??e;let n=s._$litPart$;if(n===void 0){const r=(i==null?void 0:i.renderBefore)??null;s._$litPart$=n=new pa(e.insertBefore(Jo(),r),r,void 0,i??{})}return n._$AI(t),n};/** + */const To=globalThis,Hl=To.trustedTypes,Pg=Hl?Hl.createPolicy("lit-html",{createHTML:t=>t}):void 0,qy="$lit$",js=`lit$${Math.random().toFixed(9).slice(2)}$`,Hy="?"+js,HA=`<${Hy}>`,Fn=document,Jo=()=>Fn.createComment(""),Xo=t=>t===null||typeof t!="object"&&typeof t!="function",Zh=Array.isArray,WA=t=>Zh(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Td=`[ +\f\r]`,Yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Og=/-->/g,Ig=/>/g,pn=RegExp(`>|${Td}(?:([^\\s"'>=/]+)(${Td}*=${Td}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Mg=/'/g,Rg=/"/g,Wy=/^(?:script|style|textarea|title)$/i,KA=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),ce=KA(1),fi=Symbol.for("lit-noChange"),ne=Symbol.for("lit-nothing"),$g=new WeakMap,Tn=Fn.createTreeWalker(Fn,129);function Ky(t,e){if(!Zh(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Pg!==void 0?Pg.createHTML(e):e}const GA=(t,e)=>{const i=t.length-1,s=[];let n,r=e===2?"":e===3?"":"",o=Yr;for(let a=0;a"?(o=n??Yr,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?pn:d[3]==='"'?Rg:Mg):o===Rg||o===Mg?o=pn:o===Og||o===Ig?o=Yr:(o=pn,n=void 0);const f=o===pn&&t[a+1].startsWith("/>")?" ":"";r+=o===Yr?l+HA:u>=0?(s.push(c),l.slice(0,u)+qy+l.slice(u)+js+f):l+js+(u===-2?a:f)}return[Ky(t,r+(t[i]||"")+(e===2?"":e===3?"":"")),s]};class Qo{constructor({strings:e,_$litType$:i},s){let n;this.parts=[];let r=0,o=0;const a=e.length-1,l=this.parts,[c,d]=GA(e,i);if(this.el=Qo.createElement(c,s),Tn.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=Tn.nextNode())!==null&&l.length0){n.textContent=Hl?Hl.emptyScript:"";for(let f=0;f2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=ne}_$AI(e,i=this,s,n){const r=this.strings;let o=!1;if(r===void 0)e=Tr(this,e,i,0),o=!Xo(e)||e!==this._$AH&&e!==fi,o&&(this._$AH=e);else{const a=e;let l,c;for(e=r[0],l=0;l{const s=(i==null?void 0:i.renderBefore)??e;let n=s._$litPart$;if(n===void 0){const r=(i==null?void 0:i.renderBefore)??null;s._$litPart$=n=new va(e.insertBefore(Jo(),r),r,void 0,i??{})}return n._$AI(t),n};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const On=globalThis;let ot=class extends dr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const e=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=e.firstChild),e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Zh(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return ui}};var Dv;ot._$litElement$=!0,ot.finalized=!0,(Dv=On.litElementHydrateSupport)==null||Dv.call(On,{LitElement:ot});const Sd=On.litElementPolyfillSupport;Sd==null||Sd({LitElement:ot});(On.litElementVersions??(On.litElementVersions=[])).push("4.2.1");/** + */const In=globalThis;let at=class extends dr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var i;const e=super.createRenderRoot();return(i=this.renderOptions).renderBefore??(i.renderBefore=e.firstChild),e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ef(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return fi}};var Nv;at._$litElement$=!0,at.finalized=!0,(Nv=In.litElementHydrateSupport)==null||Nv.call(In,{LitElement:at});const Pd=In.litElementPolyfillSupport;Pd==null||Pd({LitElement:at});(In.litElementVersions??(In.litElementVersions=[])).push("4.2.1");/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */class ZA extends ot{render(){return ce``}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/** + */class eT extends at{render(){return ce``}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const eT=dt`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%} + */const tT=ut`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%} `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */let Iu=class extends ZA{};Iu.styles=[eT];Iu=F([Zt("md-icon")],Iu);const tT={class:"hamburger-container"},iT={class:"menu-title"},sT={class:"hamburger-button-container"},nT={key:0,slot:"icon"},rT={key:1,slot:"icon"},oT={props:{enabled:{default:!0,type:Boolean}},data(){return{expanded:!1}}},aT=Se({...oT,__name:"HamburgerMenu",setup(t){return(e,i)=>(q(),G("div",tT,[X("div",iT,[sd(e.$slots,"menu-title",{},void 0)]),X("div",sT,[t.enabled?(q(),G("a",{key:0,class:"hamburger-button",onClick:i[0]||(i[0]=s=>e.expanded=!e.expanded)},[e.expanded?(q(),G("md-icon",nT,"close ")):qe("",!0),e.expanded?qe("",!0):(q(),G("md-icon",rT,"menu"))])):qe("",!0)]),sd(e.$slots,"theme-button",{},void 0),oe(k1,{name:"slide"},{default:ht(()=>[e.expanded?(q(),G("div",{key:0,class:"hamburger-menu-container",onClick:i[1]||(i[1]=s=>e.expanded=!1)},[sd(e.$slots,"menu-content",{},void 0,!0)])):qe("",!0)]),_:3})]))}}),vi=(t,e)=>{const i=t.__vccOpts||t;for(const[s,n]of e)i[s]=n;return i},lT=vi(aT,[["__scopeId","data-v-c57a3aaf"]]),cT={key:0,class:"nav"},dT={key:0,slot:"icon"},uT={key:1,slot:"icon"},hT={key:1,class:"nav"},fT={key:0,slot:"icon"},pT={key:1,slot:"icon"},gT={class:"nav-text nav-right"},mT={props:{searchVisible:{default:!0,type:Boolean}},data(){return{windowWidth:window.innerWidth,viewMode:null,eventStore:null}},created(){this.viewMode=Un(),this.eventStore=tn()},computed:{eventName(){var t;return(t=this.eventStore)==null?void 0:t.eventName},isDarkMode(){return this.viewMode.isDarkMode}},methods:{toggleUserDarkMode(){this.viewMode.toggleUserDarkMode()}}},vT=Se({...mT,__name:"NavBar",setup(t){return(e,i)=>{var s;return(s=e.viewMode)!=null&&s.isMobile?(q(),G("div",cT,[oe(lT,null,{"menu-title":ht(()=>[Fe(fe(e.eventName),1)]),"theme-button":ht(()=>[X("div",{class:"nav-dark-mode nav-mobile-right",onClick:i[0]||(i[0]=(...n)=>e.toggleUserDarkMode&&e.toggleUserDarkMode(...n))},[e.isDarkMode?(q(),G("md-icon",dT,"dark_mode")):(q(),G("md-icon",uT,"light_mode"))])]),"menu-content":ht(()=>[oe(Re(yi),{to:"/scout",class:"nav-link nav-link-mobile"},{default:ht(()=>i[2]||(i[2]=[Fe("Match Scouting",-1)])),_:1,__:[2]}),oe(Re(yi),{to:"/pit-scout",class:"nav-link nav-link-mobile"},{default:ht(()=>i[3]||(i[3]=[Fe("Pit Scouting",-1)])),_:1,__:[3]}),oe(Re(yi),{to:"/event",class:"nav-link nav-link-mobile"},{default:ht(()=>i[4]||(i[4]=[Fe("Event Analysis",-1)])),_:1,__:[4]}),oe(Re(yi),{to:"/team",class:"nav-link nav-link-mobile"},{default:ht(()=>i[5]||(i[5]=[Fe("Team Analysis",-1)])),_:1,__:[5]}),oe(Re(yi),{to:"/match",class:"nav-link nav-link-mobile"},{default:ht(()=>i[6]||(i[6]=[Fe("Match Preview",-1)])),_:1,__:[6]})]),_:1})])):(q(),G("div",hT,[oe(Re(yi),{to:"/scout",class:"nav-link"},{default:ht(()=>i[7]||(i[7]=[Fe("Match Scouting",-1)])),_:1,__:[7]}),oe(Re(yi),{to:"/pit-scout",class:"nav-link"},{default:ht(()=>i[8]||(i[8]=[Fe("Pit Scouting",-1)])),_:1,__:[8]}),oe(Re(yi),{to:"/event",class:"nav-link"},{default:ht(()=>i[9]||(i[9]=[Fe("Event Analysis",-1)])),_:1,__:[9]}),oe(Re(yi),{to:"/team",class:"nav-link"},{default:ht(()=>i[10]||(i[10]=[Fe("Team Analysis",-1)])),_:1,__:[10]}),oe(Re(yi),{to:"/match",class:"nav-link"},{default:ht(()=>i[11]||(i[11]=[Fe("Match Preview",-1)])),_:1,__:[11]}),X("div",{class:"nav-dark-mode nav-right",onClick:i[1]||(i[1]=(...n)=>e.toggleUserDarkMode&&e.toggleUserDarkMode(...n))},[e.isDarkMode?(q(),G("md-icon",fT,"dark_mode")):(q(),G("md-icon",pT,"light_mode"))]),X("div",gT,fe(e.eventName),1)]))}}}),bT=vi(vT,[["__scopeId","data-v-4db8394e"]]),yT=Se({__name:"App",setup(t){const e=Un();return window.addEventListener("resize",()=>{e.updateScreenWidth(window.innerWidth),e.updateScreenHeight(window.innerHeight)}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{e.updateDarkMode()}),e.updateDarkMode(),tn().updateEvent(),(s,n)=>(q(),G(ye,null,[oe(bT),oe(Re(gy))],64))}});/** + */let Du=class extends eT{};Du.styles=[tT];Du=F([ti("md-icon")],Du);const iT={class:"hamburger-container"},sT={class:"menu-title"},nT={class:"hamburger-button-container"},rT={key:0,slot:"icon"},oT={key:1,slot:"icon"},aT={props:{enabled:{default:!0,type:Boolean}},data(){return{expanded:!1}}},lT=xe({...aT,__name:"HamburgerMenu",setup(t){return(e,i)=>(j(),H("div",iT,[K("div",sT,[ld(e.$slots,"menu-title",{},void 0)]),K("div",nT,[t.enabled?(j(),H("a",{key:0,class:"hamburger-button",onClick:i[0]||(i[0]=s=>e.expanded=!e.expanded)},[e.expanded?(j(),H("md-icon",rT,"close ")):Le("",!0),e.expanded?Le("",!0):(j(),H("md-icon",oT,"menu"))])):Le("",!0)]),ld(e.$slots,"theme-button",{},void 0),se(S1,{name:"slide"},{default:rt(()=>[e.expanded?(j(),H("div",{key:0,class:"hamburger-menu-container",onClick:i[1]||(i[1]=s=>e.expanded=!1)},[ld(e.$slots,"menu-content",{},void 0,!0)])):Le("",!0)]),_:3})]))}}),yi=(t,e)=>{const i=t.__vccOpts||t;for(const[s,n]of e)i[s]=n;return i},cT=yi(lT,[["__scopeId","data-v-c57a3aaf"]]),dT={key:0,class:"nav"},uT={key:0,slot:"icon"},hT={key:1,slot:"icon"},fT={key:1,class:"nav"},pT={key:0,slot:"icon"},gT={key:1,slot:"icon"},mT={class:"nav-text nav-right"},vT={props:{searchVisible:{default:!0,type:Boolean}},data(){return{windowWidth:window.innerWidth,viewMode:null,eventStore:null}},created(){this.viewMode=tn(),this.eventStore=ws()},computed:{eventName(){var t;return(t=this.eventStore)==null?void 0:t.eventName},isDarkMode(){return this.viewMode.isDarkMode}},methods:{toggleUserDarkMode(){this.viewMode.toggleUserDarkMode()}}},bT=xe({...vT,__name:"NavBar",setup(t){return(e,i)=>{var s;return(s=e.viewMode)!=null&&s.isMobile?(j(),H("div",dT,[se(cT,null,{"menu-title":rt(()=>[ye(de(e.eventName),1)]),"theme-button":rt(()=>[K("div",{class:"nav-dark-mode nav-mobile-right",onClick:i[0]||(i[0]=(...n)=>e.toggleUserDarkMode&&e.toggleUserDarkMode(...n))},[e.isDarkMode?(j(),H("md-icon",uT,"dark_mode")):(j(),H("md-icon",hT,"light_mode"))])]),"menu-content":rt(()=>[se(Ae(si),{to:"/scout",class:"nav-link nav-link-mobile"},{default:rt(()=>i[2]||(i[2]=[ye("Match Scouting",-1)])),_:1,__:[2]}),se(Ae(si),{to:"/pit-scout",class:"nav-link nav-link-mobile"},{default:rt(()=>i[3]||(i[3]=[ye("Pit Scouting",-1)])),_:1,__:[3]}),se(Ae(si),{to:"/event",class:"nav-link nav-link-mobile"},{default:rt(()=>i[4]||(i[4]=[ye("Event Analysis",-1)])),_:1,__:[4]}),se(Ae(si),{to:"/team",class:"nav-link nav-link-mobile"},{default:rt(()=>i[5]||(i[5]=[ye("Team Analysis",-1)])),_:1,__:[5]}),se(Ae(si),{to:"/match",class:"nav-link nav-link-mobile"},{default:rt(()=>i[6]||(i[6]=[ye("Match Preview",-1)])),_:1,__:[6]}),se(Ae(si),{to:"/headscout",class:"nav-link nav-link-mobile"},{default:rt(()=>i[7]||(i[7]=[ye("Headscout Review",-1)])),_:1,__:[7]})]),_:1})])):(j(),H("div",fT,[se(Ae(si),{to:"/scout",class:"nav-link"},{default:rt(()=>i[8]||(i[8]=[ye("Match Scouting",-1)])),_:1,__:[8]}),se(Ae(si),{to:"/pit-scout",class:"nav-link"},{default:rt(()=>i[9]||(i[9]=[ye("Pit Scouting",-1)])),_:1,__:[9]}),se(Ae(si),{to:"/event",class:"nav-link"},{default:rt(()=>i[10]||(i[10]=[ye("Event Analysis",-1)])),_:1,__:[10]}),se(Ae(si),{to:"/team",class:"nav-link"},{default:rt(()=>i[11]||(i[11]=[ye("Team Analysis",-1)])),_:1,__:[11]}),se(Ae(si),{to:"/match",class:"nav-link"},{default:rt(()=>i[12]||(i[12]=[ye("Match Preview",-1)])),_:1,__:[12]}),se(Ae(si),{to:"/headscout",class:"nav-link"},{default:rt(()=>i[13]||(i[13]=[ye("Headscout Review",-1)])),_:1,__:[13]}),K("div",{class:"nav-dark-mode nav-right",onClick:i[1]||(i[1]=(...n)=>e.toggleUserDarkMode&&e.toggleUserDarkMode(...n))},[e.isDarkMode?(j(),H("md-icon",pT,"dark_mode")):(j(),H("md-icon",gT,"light_mode"))]),K("div",mT,de(e.eventName),1)]))}}}),yT=yi(bT,[["__scopeId","data-v-7e99acbf"]]),_T=xe({__name:"App",setup(t){const e=tn();return window.addEventListener("resize",()=>{e.updateScreenWidth(window.innerWidth),e.updateScreenHeight(window.innerHeight)}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{e.updateDarkMode()}),e.updateDarkMode(),ws().updateEvent(),(s,n)=>(j(),H(ge,null,[se(yT),se(Ae(vy))],64))}});/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Ls={ATTRIBUTE:1,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},ef=t=>(...e)=>({_$litDirective$:t,values:e});let tf=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,s){this._$Ct=e,this._$AM=i,this._$Ci=s}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};/** + */const Ds={ATTRIBUTE:1,PROPERTY:3,BOOLEAN_ATTRIBUTE:4},tf=t=>(...e)=>({_$litDirective$:t,values:e});let sf=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,s){this._$Ct=e,this._$AM=i,this._$Ci=s}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Oi=ef(class extends tf{constructor(t){var e;if(super(t),t.type!==Ls.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var s,n;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in e)e[r]&&!((s=this.nt)!=null&&s.has(r))&&this.st.add(r);return this.render(e)}const i=t.element.classList;for(const r of this.st)r in e||(i.remove(r),this.st.delete(r));for(const r in e){const o=!!e[r];o===this.st.has(r)||(n=this.nt)!=null&&n.has(r)||(o?(i.add(r),this.st.add(r)):(i.remove(r),this.st.delete(r)))}return ui}});/** + */const Mi=tf(class extends sf{constructor(t){var e;if(super(t),t.type!==Ds.ATTRIBUTE||t.name!=="class"||((e=t.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var s,n;if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in e)e[r]&&!((s=this.nt)!=null&&s.has(r))&&this.st.add(r);return this.render(e)}const i=t.element.classList;for(const r of this.st)r in e||(i.remove(r),this.st.delete(r));for(const r in e){const o=!!e[r];o===this.st.has(r)||(n=this.nt)!=null&&n.has(r)||(o?(i.add(r),this.st.add(r)):(i.remove(r),this.st.delete(r)))}return fi}});/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const hr={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)"};function _T(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}/** + */const hr={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)"};function xT(){let t=null;return{start(){return t==null||t.abort(),t=new AbortController,t.signal},finish(){t=null}}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */class tt extends ot{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,i=this.max??-1;return e<0||i<=0?"":`${e} / ${i}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&e.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var r,o,a,l;const e=this.renderLabel(!0),i=this.renderLabel(!1),s=(r=this.renderOutline)==null?void 0:r.call(this,e),n={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return ce` -
    + */class it extends at{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label="",this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText="",this.errorText="",this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){const e=this.count??-1,i=this.max??-1;return e<0||i<=0?"":`${e} / ${i}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has("disabled")&&e.get("disabled")!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set("focused",!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get("focused"),wasPopulated:e.get("populated")}),super.update(e)}render(){var r,o,a,l;const e=this.renderLabel(!0),i=this.renderLabel(!1),s=(r=this.renderOutline)==null?void 0:r.call(this,e),n={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return ce` +
    ${(o=this.renderBackground)==null?void 0:o.call(this)} @@ -137,7 +137,7 @@ Option 2: Install and provide the "ws" package:
    - ${i} ${s?se:e} + ${i} ${s?ne:e}
    @@ -150,20 +150,20 @@ Option 2: Install and provide the "ws" package:
    ${this.renderSupportingText()}
    - `}updated(e){(e.has("supportingText")||e.has("errorText")||e.has("count")||e.has("max"))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){const{supportingOrErrorText:e,counterText:i}=this;if(!e&&!i)return se;const s=ce`${e}`,n=i?ce`${i}`:se,o=this.error&&this.errorText&&!this.refreshErrorAlert?"alert":se;return ce` + `}updated(e){(e.has("supportingText")||e.has("errorText")||e.has("count")||e.has("max"))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){const{supportingOrErrorText:e,counterText:i}=this;if(!e&&!i)return ne;const s=ce`${e}`,n=i?ce`${i}`:ne,o=this.error&&this.errorText&&!this.refreshErrorAlert?"alert":ne;return ce`
    ${s}${n}
    - `}updateSlottedAriaDescribedBy(){for(const e of this.slottedAriaDescribedBy)Zh(ce`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute("hidden","")}renderLabel(e){if(!this.label)return se;let i;e?i=this.focused||this.populated||this.isAnimating:i=!this.focused&&!this.populated&&!this.isAnimating;const s={hidden:!i,floating:e,resting:!e},n=`${this.label}${this.required&&!this.noAsterisk?"*":""}`;return ce` - ${n} - `}animateLabelIfNeeded({wasFocused:e,wasPopulated:i}){var r,o,a;if(!this.label)return;e??(e=this.focused),i??(i=this.populated);const s=e||i,n=this.focused||this.populated;s!==n&&(this.isAnimating=!0,(r=this.labelAnimation)==null||r.cancel(),this.labelAnimation=(o=this.floatingLabelEl)==null?void 0:o.animate(this.getLabelKeyframes(),{duration:150,easing:hr.STANDARD}),(a=this.labelAnimation)==null||a.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:i}=this;if(!e||!i)return[];const{x:s,y:n,height:r}=e.getBoundingClientRect(),{x:o,y:a,height:l}=i.getBoundingClientRect(),c=e.scrollWidth,d=i.scrollWidth,u=d/c,h=o-s,f=a-n+Math.round((l-r*u)/2),p=`translateX(${h}px) translateY(${f}px) scale(${u})`,g="translateX(0) translateY(0) scale(1)",m=i.clientWidth,C=d>m?`${m/u}px`:"";return this.focused||this.populated?[{transform:p,width:C},{transform:g,width:C}]:[{transform:g,width:C},{transform:p,width:C}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}F([J({type:Boolean})],tt.prototype,"disabled",void 0);F([J({type:Boolean})],tt.prototype,"error",void 0);F([J({type:Boolean})],tt.prototype,"focused",void 0);F([J()],tt.prototype,"label",void 0);F([J({type:Boolean,attribute:"no-asterisk"})],tt.prototype,"noAsterisk",void 0);F([J({type:Boolean})],tt.prototype,"populated",void 0);F([J({type:Boolean})],tt.prototype,"required",void 0);F([J({type:Boolean})],tt.prototype,"resizable",void 0);F([J({attribute:"supporting-text"})],tt.prototype,"supportingText",void 0);F([J({attribute:"error-text"})],tt.prototype,"errorText",void 0);F([J({type:Number})],tt.prototype,"count",void 0);F([J({type:Number})],tt.prototype,"max",void 0);F([J({type:Boolean,attribute:"has-start"})],tt.prototype,"hasStart",void 0);F([J({type:Boolean,attribute:"has-end"})],tt.prototype,"hasEnd",void 0);F([sn({slot:"aria-describedby"})],tt.prototype,"slottedAriaDescribedBy",void 0);F([jt()],tt.prototype,"isAnimating",void 0);F([jt()],tt.prototype,"refreshErrorAlert",void 0);F([jt()],tt.prototype,"disableTransitions",void 0);F([zt(".label.floating")],tt.prototype,"floatingLabelEl",void 0);F([zt(".label.resting")],tt.prototype,"restingLabelEl",void 0);F([zt(".container")],tt.prototype,"containerEl",void 0);/** + `}animateLabelIfNeeded({wasFocused:e,wasPopulated:i}){var r,o,a;if(!this.label)return;e??(e=this.focused),i??(i=this.populated);const s=e||i,n=this.focused||this.populated;s!==n&&(this.isAnimating=!0,(r=this.labelAnimation)==null||r.cancel(),this.labelAnimation=(o=this.floatingLabelEl)==null?void 0:o.animate(this.getLabelKeyframes(),{duration:150,easing:hr.STANDARD}),(a=this.labelAnimation)==null||a.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:i}=this;if(!e||!i)return[];const{x:s,y:n,height:r}=e.getBoundingClientRect(),{x:o,y:a,height:l}=i.getBoundingClientRect(),c=e.scrollWidth,d=i.scrollWidth,u=d/c,h=o-s,f=a-n+Math.round((l-r*u)/2),p=`translateX(${h}px) translateY(${f}px) scale(${u})`,g="translateX(0) translateY(0) scale(1)",m=i.clientWidth,C=d>m?`${m/u}px`:"";return this.focused||this.populated?[{transform:p,width:C},{transform:g,width:C}]:[{transform:g,width:C},{transform:p,width:C}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}F([X({type:Boolean})],it.prototype,"disabled",void 0);F([X({type:Boolean})],it.prototype,"error",void 0);F([X({type:Boolean})],it.prototype,"focused",void 0);F([X()],it.prototype,"label",void 0);F([X({type:Boolean,attribute:"no-asterisk"})],it.prototype,"noAsterisk",void 0);F([X({type:Boolean})],it.prototype,"populated",void 0);F([X({type:Boolean})],it.prototype,"required",void 0);F([X({type:Boolean})],it.prototype,"resizable",void 0);F([X({attribute:"supporting-text"})],it.prototype,"supportingText",void 0);F([X({attribute:"error-text"})],it.prototype,"errorText",void 0);F([X({type:Number})],it.prototype,"count",void 0);F([X({type:Number})],it.prototype,"max",void 0);F([X({type:Boolean,attribute:"has-start"})],it.prototype,"hasStart",void 0);F([X({type:Boolean,attribute:"has-end"})],it.prototype,"hasEnd",void 0);F([nn({slot:"aria-describedby"})],it.prototype,"slottedAriaDescribedBy",void 0);F([Vt()],it.prototype,"isAnimating",void 0);F([Vt()],it.prototype,"refreshErrorAlert",void 0);F([Vt()],it.prototype,"disableTransitions",void 0);F([Ut(".label.floating")],it.prototype,"floatingLabelEl",void 0);F([Ut(".label.resting")],it.prototype,"restingLabelEl",void 0);F([Ut(".container")],it.prototype,"containerEl",void 0);/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */class xT extends tt{renderOutline(e){return ce` + */class wT extends it{renderOutline(e){return ce`
    @@ -177,84 +177,84 @@ Option 2: Install and provide the "ws" package: * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const wT=dt`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}} + */const kT=ut`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}} `;/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const kT=dt`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}slot[name=container]{border-radius:inherit}slot[name=container]::slotted(*){border-radius:inherit;inset:0;pointer-events:none;position:absolute}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start{margin-inline:var(--_with-leading-content-leading-space) var(--_content-space)}.with-end .end{margin-inline:var(--_content-space) var(--_with-trailing-content-trailing-space)}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}} + */const ST=ut`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}slot[name=container]{border-radius:inherit}slot[name=container]::slotted(*){border-radius:inherit;inset:0;pointer-events:none;position:absolute}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start{margin-inline:var(--_with-leading-content-leading-space) var(--_content-space)}.with-end .end{margin-inline:var(--_content-space) var(--_with-trailing-content-trailing-space)}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}} `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */let Mu=class extends xT{};Mu.styles=[kT,wT];Mu=F([Zt("md-outlined-field")],Mu);/** + */let Fu=class extends wT{};Fu.styles=[ST,kT];Fu=F([ti("md-outlined-field")],Fu);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Wy=Symbol.for(""),ST=t=>{if((t==null?void 0:t.r)===Wy)return t==null?void 0:t._$litStatic$},sf=(t,...e)=>({_$litStatic$:e.reduce((i,s,n)=>i+(r=>{if(r._$litStatic$!==void 0)return r._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${r}. Use 'unsafeStatic' to pass non-literal values, but - take care to ensure page security.`)})(s)+t[n+1],t[0]),r:Wy}),Rg=new Map,CT=t=>(e,...i)=>{const s=i.length;let n,r;const o=[],a=[];let l,c=0,d=!1;for(;c{if((t==null?void 0:t.r)===Gy)return t==null?void 0:t._$litStatic$},nf=(t,...e)=>({_$litStatic$:e.reduce((i,s,n)=>i+(r=>{if(r._$litStatic$!==void 0)return r._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${r}. Use 'unsafeStatic' to pass non-literal values, but + take care to ensure page security.`)})(s)+t[n+1],t[0]),r:Gy}),Lg=new Map,AT=t=>(e,...i)=>{const s=i.length;let n,r;const o=[],a=[];let l,c=0,d=!1;for(;c`}}/** + */class TT extends at{connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){return ce``}}/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const TT=dt`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15} + */const ET=ut`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15} `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */let Ru=class extends AT{};Ru.styles=[TT];Ru=F([Zt("md-elevation")],Ru);/** + */let Nu=class extends TT{};Nu.styles=[ET];Nu=F([ti("md-elevation")],Nu);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Gy=Symbol("attachableController");let wl;wl=new MutationObserver(t=>{var e;for(const i of t)(e=i.target[Gy])==null||e.hostConnected()});class Yy{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){e===null?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,i){this.host=e,this.onControlChange=i,this.currentControl=null,e.addController(this),e[Gy]=this,wl==null||wl.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}/** + */const Jy=Symbol("attachableController");let Cl;Cl=new MutationObserver(t=>{var e;for(const i of t)(e=i.target[Jy])==null||e.hostConnected()});class Xy{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(e){e===null?this.host.removeAttribute("for"):this.host.setAttribute("for",e)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,i){this.host=e,this.onControlChange=i,this.currentControl=null,e.addController(this),e[Jy]=this,Cl==null||Cl.observe(e,{attributeFilter:["for"]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const ET=["focusin","focusout","pointerdown"];class nf extends ot{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Yy(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var i;if(!e[$g]){switch(e.type){default:return;case"focusin":this.visible=((i=this.control)==null?void 0:i.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}e[$g]=!0}}onControlChange(e,i){for(const s of ET)e==null||e.removeEventListener(s,this),i==null||i.addEventListener(s,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}F([J({type:Boolean,reflect:!0})],nf.prototype,"visible",void 0);F([J({type:Boolean,reflect:!0})],nf.prototype,"inward",void 0);const $g=Symbol("handledByFocusRing");/** + */const PT=["focusin","focusout","pointerdown"];class rf extends at{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Xy(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(e){var i;if(!e[Dg]){switch(e.type){default:return;case"focusin":this.visible=((i=this.control)==null?void 0:i.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}e[Dg]=!0}}onControlChange(e,i){for(const s of PT)e==null||e.removeEventListener(s,this),i==null||i.addEventListener(s,this)}update(e){e.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(e)}}F([X({type:Boolean,reflect:!0})],rf.prototype,"visible",void 0);F([X({type:Boolean,reflect:!0})],rf.prototype,"inward",void 0);const Dg=Symbol("handledByFocusRing");/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const PT=dt`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}} + */const OT=ut`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}} `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */let $u=class extends nf{};$u.styles=[PT];$u=F([Zt("md-focus-ring")],$u);/** + */let Bu=class extends rf{};Bu.styles=[OT];Bu=F([ti("md-focus-ring")],Bu);/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Jy="important",OT=" !"+Jy,Ul=ef(class extends tf{constructor(t){var e;if(super(t),t.type!==Ls.ATTRIBUTE||t.name!=="style"||((e=t.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{const s=t[i];return s==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(t,[e]){const{style:i}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const s of this.ft)e[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in e){const n=e[s];if(n!=null){this.ft.add(s);const r=typeof n=="string"&&n.endsWith(OT);s.includes("-")||r?i.setProperty(s,r?n.slice(0,-11):n,r?Jy:""):i[s]=n}}return ui}});/** + */const Qy="important",IT=" !"+Qy,Wl=tf(class extends sf{constructor(t){var e;if(super(t),t.type!==Ds.ATTRIBUTE||t.name!=="style"||((e=t.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{const s=t[i];return s==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(t,[e]){const{style:i}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const s of this.ft)e[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in e){const n=e[s];if(n!=null){this.ft.add(s);const r=typeof n=="string"&&n.endsWith(IT);s.includes("-")||r?i.setProperty(s,r?n.slice(0,-11):n,r?Qy:""):i[s]=n}}return fi}});/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */function Xy(t,e=ws){const i=rf(t,e);return i&&(i.tabIndex=0,i.focus()),i}function Qy(t,e=ws){const i=Zy(t,e);return i&&(i.tabIndex=0,i.focus()),i}function Eo(t,e=ws){for(let i=0;i=0;i--){const s=t[i];if(e(s))return s}return null}function IT(t,e,i=ws,s=!0){for(let n=1;ne&&!s)return null;const o=t[r];if(i(o))return o}return t[e]?t[e]:null}function Lg(t,e,i=ws,s=!0){if(e){const n=IT(t,e.index,i,s);return n&&(n.tabIndex=0,n.focus()),n}else return Xy(t,i)}function Dg(t,e,i=ws,s=!0){if(e){const n=MT(t,e.index,i,s);return n&&(n.tabIndex=0,n.focus()),n}else return Qy(t,i)}function ws(t){return!t.disabled}/** + */function Zy(t,e=ks){const i=of(t,e);return i&&(i.tabIndex=0,i.focus()),i}function e0(t,e=ks){const i=t0(t,e);return i&&(i.tabIndex=0,i.focus()),i}function Eo(t,e=ks){for(let i=0;i=0;i--){const s=t[i];if(e(s))return s}return null}function MT(t,e,i=ks,s=!0){for(let n=1;ne&&!s)return null;const o=t[r];if(i(o))return o}return t[e]?t[e]:null}function Fg(t,e,i=ks,s=!0){if(e){const n=MT(t,e.index,i,s);return n&&(n.tabIndex=0,n.focus()),n}else return Zy(t,i)}function Ng(t,e,i=ks,s=!0){if(e){const n=RT(t,e.index,i,s);return n&&(n.tabIndex=0,n.focus()),n}else return e0(t,i)}function ks(t){return!t.disabled}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const wt={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class RT{constructor(e){this.handleKeydown=d=>{const u=d.key;if(d.defaultPrevented||!this.isNavigableKey(u))return;const h=this.items;if(!h.length)return;const f=Eo(h,this.isActivatable);d.preventDefault();const p=this.isRtl(),g=p?wt.ArrowRight:wt.ArrowLeft,m=p?wt.ArrowLeft:wt.ArrowRight;let y=null;switch(u){case wt.ArrowDown:case m:y=Lg(h,f,this.isActivatable,this.wrapNavigation());break;case wt.ArrowUp:case g:y=Dg(h,f,this.isActivatable,this.wrapNavigation());break;case wt.Home:y=Xy(h,this.isActivatable);break;case wt.End:y=Qy(h,this.isActivatable);break}y&&f&&f.item!==y&&(f.item.tabIndex=-1)},this.onDeactivateItems=()=>{const d=this.items;for(const u of d)this.deactivateItem(u)},this.onRequestActivation=d=>{this.onDeactivateItems();const u=d.target;this.activateItem(u),u.focus()},this.onSlotchange=()=>{const d=this.items;let u=!1;for(const f of d){if(!f.disabled&&f.tabIndex>-1&&!u){u=!0,f.tabIndex=0;continue}f.tabIndex=-1}if(u)return;const h=rf(d,this.isActivatable);h&&(h.tabIndex=0)};const{isItem:i,getPossibleItems:s,isRtl:n,deactivateItem:r,activateItem:o,isNavigableKey:a,isActivatable:l,wrapNavigation:c}=e;this.isItem=i,this.getPossibleItems=s,this.isRtl=n,this.deactivateItem=r,this.activateItem=o,this.isNavigableKey=a,this.isActivatable=l,this.wrapNavigation=c??(()=>!0)}get items(){const e=this.getPossibleItems(),i=[];for(const s of e){if(this.isItem(s)){i.push(s);continue}const r=s.item;r&&this.isItem(r)&&i.push(r)}return i}activateNextItem(){const e=this.items,i=Eo(e,this.isActivatable);return i&&(i.item.tabIndex=-1),Lg(e,i,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,i=Eo(e,this.isActivatable);return i&&(i.item.tabIndex=-1),Dg(e,i,this.isActivatable,this.wrapNavigation())}}/** + */const wt={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class $T{constructor(e){this.handleKeydown=d=>{const u=d.key;if(d.defaultPrevented||!this.isNavigableKey(u))return;const h=this.items;if(!h.length)return;const f=Eo(h,this.isActivatable);d.preventDefault();const p=this.isRtl(),g=p?wt.ArrowRight:wt.ArrowLeft,m=p?wt.ArrowLeft:wt.ArrowRight;let y=null;switch(u){case wt.ArrowDown:case m:y=Fg(h,f,this.isActivatable,this.wrapNavigation());break;case wt.ArrowUp:case g:y=Ng(h,f,this.isActivatable,this.wrapNavigation());break;case wt.Home:y=Zy(h,this.isActivatable);break;case wt.End:y=e0(h,this.isActivatable);break}y&&f&&f.item!==y&&(f.item.tabIndex=-1)},this.onDeactivateItems=()=>{const d=this.items;for(const u of d)this.deactivateItem(u)},this.onRequestActivation=d=>{this.onDeactivateItems();const u=d.target;this.activateItem(u),u.focus()},this.onSlotchange=()=>{const d=this.items;let u=!1;for(const f of d){if(!f.disabled&&f.tabIndex>-1&&!u){u=!0,f.tabIndex=0;continue}f.tabIndex=-1}if(u)return;const h=of(d,this.isActivatable);h&&(h.tabIndex=0)};const{isItem:i,getPossibleItems:s,isRtl:n,deactivateItem:r,activateItem:o,isNavigableKey:a,isActivatable:l,wrapNavigation:c}=e;this.isItem=i,this.getPossibleItems=s,this.isRtl=n,this.deactivateItem=r,this.activateItem=o,this.isNavigableKey=a,this.isActivatable=l,this.wrapNavigation=c??(()=>!0)}get items(){const e=this.getPossibleItems(),i=[];for(const s of e){if(this.isItem(s)){i.push(s);continue}const r=s.item;r&&this.isItem(r)&&i.push(r)}return i}activateNextItem(){const e=this.items,i=Eo(e,this.isActivatable);return i&&(i.item.tabIndex=-1),Fg(e,i,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,i=Eo(e,this.isActivatable);return i&&(i.item.tabIndex=-1),Ng(e,i,this.isActivatable,this.wrapNavigation())}}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */function $T(t,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:t,reason:e,itemPath:[t]}})}const Fg=$T,Lu={SPACE:"Space",ENTER:"Enter"},Ng={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},LT={ESCAPE:"Escape",SPACE:Lu.SPACE,ENTER:Lu.ENTER};function e0(t){return Object.values(LT).some(e=>e===t)}function DT(t){return Object.values(Lu).some(e=>e===t)}function Du(t,e){const i=new Event("md-contains",{bubbles:!0,composed:!0});let s=[];const n=o=>{s=o.composedPath()};return e.addEventListener("md-contains",n),t.dispatchEvent(i),e.removeEventListener("md-contains",n),s.length>0}const wi={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/** + */function LT(t,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:t,reason:e,itemPath:[t]}})}const Bg=LT,ju={SPACE:"Space",ENTER:"Enter"},jg={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},DT={ESCAPE:"Escape",SPACE:ju.SPACE,ENTER:ju.ENTER};function i0(t){return Object.values(DT).some(e=>e===t)}function FT(t){return Object.values(ju).some(e=>e===t)}function zu(t,e){const i=new Event("md-contains",{bubbles:!0,composed:!0});let s=[];const n=o=>{s=o.composedPath()};return e.addEventListener("md-contains",n),t.dispatchEvent(i),e.removeEventListener("md-contains",n),s.length>0}const ki={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const Bg={END_START:"end-start",START_START:"start-start"};class FT{constructor(e,i){this.host=e,this.getProperties=i,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:i,anchorCorner:s,surfaceCorner:n,positioning:r,xOffset:o,yOffset:a,disableBlockFlip:l,disableInlineFlip:c,repositionStrategy:d}=this.getProperties(),u=s.toLowerCase().trim(),h=n.toLowerCase().trim();if(!e||!i)return;const f=window.innerWidth,p=window.innerHeight,g=document.createElement("div");g.style.opacity="0",g.style.position="fixed",g.style.display="block",g.style.inset="0",document.body.appendChild(g);const m=g.getBoundingClientRect();g.remove();const y=window.innerHeight-m.bottom,C=window.innerWidth-m.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const w=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),A=i.getSurfacePositionClientRect?i.getSurfacePositionClientRect():i.getBoundingClientRect(),[x,E]=h.split("-"),[T,P]=u.split("-"),k=getComputedStyle(e).direction==="ltr";let{blockInset:I,blockOutOfBoundsCorrection:S,surfaceBlockProperty:b}=this.calculateBlock({surfaceRect:w,anchorRect:A,anchorBlock:T,surfaceBlock:x,yOffset:a,positioning:r,windowInnerHeight:p,blockScrollbarHeight:y});if(S&&!l){const W=x==="start"?"end":"start",U=T==="start"?"end":"start",Y=this.calculateBlock({surfaceRect:w,anchorRect:A,anchorBlock:U,surfaceBlock:W,yOffset:a,positioning:r,windowInnerHeight:p,blockScrollbarHeight:y});S>Y.blockOutOfBoundsCorrection&&(I=Y.blockInset,S=Y.blockOutOfBoundsCorrection,b=Y.surfaceBlockProperty)}let{inlineInset:D,inlineOutOfBoundsCorrection:B,surfaceInlineProperty:N}=this.calculateInline({surfaceRect:w,anchorRect:A,anchorInline:P,surfaceInline:E,xOffset:o,positioning:r,isLTR:k,windowInnerWidth:f,inlineScrollbarWidth:C});if(B&&!c){const W=E==="start"?"end":"start",U=P==="start"?"end":"start",Y=this.calculateInline({surfaceRect:w,anchorRect:A,anchorInline:U,surfaceInline:W,xOffset:o,positioning:r,isLTR:k,windowInnerWidth:f,inlineScrollbarWidth:C});Math.abs(B)>Math.abs(Y.inlineOutOfBoundsCorrection)&&(D=Y.inlineInset,B=Y.inlineOutOfBoundsCorrection,N=Y.surfaceInlineProperty)}d==="move"&&(I=I-S,D=D-B),this.surfaceStylesInternal={display:"block",opacity:"1",[b]:`${I}px`,[N]:`${D}px`},d==="resize"&&(S&&(this.surfaceStylesInternal.height=`${w.height-S}px`),B&&(this.surfaceStylesInternal.width=`${w.width-B}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:i,anchorRect:s,anchorBlock:n,surfaceBlock:r,yOffset:o,positioning:a,windowInnerHeight:l,blockScrollbarHeight:c}=e,d=a==="fixed"||a==="document"?1:0,u=a==="document"?1:0,h=r==="start"?1:0,f=r==="end"?1:0,g=(n!==r?1:0)*s.height+o,m=h*s.top+f*(l-s.bottom-c),y=h*window.scrollY-f*window.scrollY,C=Math.abs(Math.min(0,l-m-g-i.height));return{blockInset:d*m+u*y+g,blockOutOfBoundsCorrection:C,surfaceBlockProperty:r==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:i,surfaceInline:s,anchorInline:n,anchorRect:r,surfaceRect:o,xOffset:a,positioning:l,windowInnerWidth:c,inlineScrollbarWidth:d}=e,u=l==="fixed"||l==="document"?1:0,h=l==="document"?1:0,f=i?1:0,p=i?0:1,g=s==="start"?1:0,m=s==="end"?1:0,C=(n!==s?1:0)*r.width+a,w=g*r.left+m*(c-r.right-d),A=g*(c-r.right-d)+m*r.left,x=f*w+p*A,E=g*window.scrollX-m*window.scrollX,T=m*window.scrollX-g*window.scrollX,P=f*E+p*T,k=Math.abs(Math.min(0,c-x-C-o.width)),I=u*x+C+h*P;let S=s==="start"?"inset-inline-start":"inset-inline-end";return(l==="document"||l==="fixed")&&(s==="start"&&i||s==="end"&&!i?S="left":S="right"),{inlineInset:I,inlineOutOfBoundsCorrection:k,surfaceInlineProperty:S}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let i=!1;for(const[o,a]of Object.entries(e))if(i=i||a!==this.lastValues[o],i)break;const s=this.lastValues.isOpen!==e.isOpen,n=!!e.anchorEl,r=!!e.surfaceEl;i&&n&&r&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):s&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/** + */const zg={END_START:"end-start",START_START:"start-start"};class NT{constructor(e,i){this.host=e,this.getProperties=i,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:i,anchorCorner:s,surfaceCorner:n,positioning:r,xOffset:o,yOffset:a,disableBlockFlip:l,disableInlineFlip:c,repositionStrategy:d}=this.getProperties(),u=s.toLowerCase().trim(),h=n.toLowerCase().trim();if(!e||!i)return;const f=window.innerWidth,p=window.innerHeight,g=document.createElement("div");g.style.opacity="0",g.style.position="fixed",g.style.display="block",g.style.inset="0",document.body.appendChild(g);const m=g.getBoundingClientRect();g.remove();const y=window.innerHeight-m.bottom,C=window.innerWidth-m.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const w=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),A=i.getSurfacePositionClientRect?i.getSurfacePositionClientRect():i.getBoundingClientRect(),[x,E]=h.split("-"),[T,P]=u.split("-"),k=getComputedStyle(e).direction==="ltr";let{blockInset:I,blockOutOfBoundsCorrection:S,surfaceBlockProperty:b}=this.calculateBlock({surfaceRect:w,anchorRect:A,anchorBlock:T,surfaceBlock:x,yOffset:a,positioning:r,windowInnerHeight:p,blockScrollbarHeight:y});if(S&&!l){const G=x==="start"?"end":"start",q=T==="start"?"end":"start",J=this.calculateBlock({surfaceRect:w,anchorRect:A,anchorBlock:q,surfaceBlock:G,yOffset:a,positioning:r,windowInnerHeight:p,blockScrollbarHeight:y});S>J.blockOutOfBoundsCorrection&&(I=J.blockInset,S=J.blockOutOfBoundsCorrection,b=J.surfaceBlockProperty)}let{inlineInset:D,inlineOutOfBoundsCorrection:B,surfaceInlineProperty:N}=this.calculateInline({surfaceRect:w,anchorRect:A,anchorInline:P,surfaceInline:E,xOffset:o,positioning:r,isLTR:k,windowInnerWidth:f,inlineScrollbarWidth:C});if(B&&!c){const G=E==="start"?"end":"start",q=P==="start"?"end":"start",J=this.calculateInline({surfaceRect:w,anchorRect:A,anchorInline:q,surfaceInline:G,xOffset:o,positioning:r,isLTR:k,windowInnerWidth:f,inlineScrollbarWidth:C});Math.abs(B)>Math.abs(J.inlineOutOfBoundsCorrection)&&(D=J.inlineInset,B=J.inlineOutOfBoundsCorrection,N=J.surfaceInlineProperty)}d==="move"&&(I=I-S,D=D-B),this.surfaceStylesInternal={display:"block",opacity:"1",[b]:`${I}px`,[N]:`${D}px`},d==="resize"&&(S&&(this.surfaceStylesInternal.height=`${w.height-S}px`),B&&(this.surfaceStylesInternal.width=`${w.width-B}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:i,anchorRect:s,anchorBlock:n,surfaceBlock:r,yOffset:o,positioning:a,windowInnerHeight:l,blockScrollbarHeight:c}=e,d=a==="fixed"||a==="document"?1:0,u=a==="document"?1:0,h=r==="start"?1:0,f=r==="end"?1:0,g=(n!==r?1:0)*s.height+o,m=h*s.top+f*(l-s.bottom-c),y=h*window.scrollY-f*window.scrollY,C=Math.abs(Math.min(0,l-m-g-i.height));return{blockInset:d*m+u*y+g,blockOutOfBoundsCorrection:C,surfaceBlockProperty:r==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:i,surfaceInline:s,anchorInline:n,anchorRect:r,surfaceRect:o,xOffset:a,positioning:l,windowInnerWidth:c,inlineScrollbarWidth:d}=e,u=l==="fixed"||l==="document"?1:0,h=l==="document"?1:0,f=i?1:0,p=i?0:1,g=s==="start"?1:0,m=s==="end"?1:0,C=(n!==s?1:0)*r.width+a,w=g*r.left+m*(c-r.right-d),A=g*(c-r.right-d)+m*r.left,x=f*w+p*A,E=g*window.scrollX-m*window.scrollX,T=m*window.scrollX-g*window.scrollX,P=f*E+p*T,k=Math.abs(Math.min(0,c-x-C-o.width)),I=u*x+C+h*P;let S=s==="start"?"inset-inline-start":"inset-inline-end";return(l==="document"||l==="fixed")&&(s==="start"&&i||s==="end"&&!i?S="left":S="right"),{inlineInset:I,inlineOutOfBoundsCorrection:k,surfaceInlineProperty:S}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let i=!1;for(const[o,a]of Object.entries(e))if(i=i||a!==this.lastValues[o],i)break;const s=this.lastValues.isOpen!==e.isOpen,n=!!e.anchorEl,r=!!e.surfaceEl;i&&n&&r&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):s&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const li={INDEX:0,ITEM:1,TEXT:2};class NT{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=i=>{this.isTypingAhead?this.typeahead(i):this.beginTypeahead(i)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((i,s)=>[s,i,i.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(i=>i[li.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[li.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[li.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const i=this.lastActiveRecord?this.lastActiveRecord[li.INDEX]:-1,s=this.typeaheadRecords.length,n=l=>(l[li.INDEX]+s-i)%s,r=this.typeaheadRecords.filter(l=>!l[li.ITEM].disabled&&l[li.TEXT].startsWith(this.typaheadBuffer)).sort((l,c)=>n(l)-n(c));if(r.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[li.ITEM].tabIndex=-1),this.endTypeahead();return}const o=this.typaheadBuffer.length===1;let a;this.lastActiveRecord===r[0]&&o?a=r[1]??r[0]:a=r[0],this.lastActiveRecord&&(this.lastActiveRecord[li.ITEM].tabIndex=-1),this.lastActiveRecord=a,a[li.ITEM].tabIndex=0,a[li.ITEM].focus()}}/** + */const di={INDEX:0,ITEM:1,TEXT:2};class BT{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer="",this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=i=>{this.isTypingAhead?this.typeahead(i):this.beginTypeahead(i)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer="",this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code==="Space"||e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((i,s)=>[s,i,i.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(i=>i[di.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[di.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code==="Enter"||e.code.startsWith("Arrow")||e.code==="Escape"){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[di.ITEM].tabIndex=-1);return}e.code==="Space"&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();const i=this.lastActiveRecord?this.lastActiveRecord[di.INDEX]:-1,s=this.typeaheadRecords.length,n=l=>(l[di.INDEX]+s-i)%s,r=this.typeaheadRecords.filter(l=>!l[di.ITEM].disabled&&l[di.TEXT].startsWith(this.typaheadBuffer)).sort((l,c)=>n(l)-n(c));if(r.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[di.ITEM].tabIndex=-1),this.endTypeahead();return}const o=this.typaheadBuffer.length===1;let a;this.lastActiveRecord===r[0]&&o?a=r[1]??r[0]:a=r[0],this.lastActiveRecord&&(this.lastActiveRecord[di.ITEM].tabIndex=-1),this.lastActiveRecord=a,a[di.ITEM].tabIndex=0,a[di.ITEM].focus()}}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const t0=200,i0=new Set([wt.ArrowDown,wt.ArrowUp,wt.Home,wt.End]),BT=new Set([wt.ArrowLeft,wt.ArrowRight,...i0]);function jT(t=document){var i;let e=t.activeElement;for(;e&&((i=e==null?void 0:e.shadowRoot)!=null&&i.activeElement);)e=e.shadowRoot.activeElement;return e}class it extends ot{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.noHorizontalFlip=!1,this.noVerticalFlip=!1,this.typeaheadDelay=t0,this.anchorCorner=Bg.END_START,this.menuCorner=Bg.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=wi.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=_T(),this.listController=new RT({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return BT.has(e);const s=getComputedStyle(this).direction==="rtl"?wt.ArrowLeft:wt.ArrowRight;return e===s?!0:i0.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new NT(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new FT(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,disableBlockFlip:this.noVerticalFlip,disableInlineFlip:this.noHorizontalFlip,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const i=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(i))return;if(e.relatedTarget){if(Du(e.relatedTarget,this)||this.pointerPath.length!==0&&Du(e.relatedTarget,i))return}else if(this.pointerPath.includes(this))return;const s=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=s},this.onOpened=async()=>{this.lastFocusedElement=jT();const e=this.items,i=Eo(e);i&&this.defaultFocus!==wi.NONE&&(i.item.tabIndex=-1);let s=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):s=!!await this.animateOpen(),this.defaultFocus){case wi.FIRST_ITEM:const n=rf(e);n&&(n.tabIndex=0,n.focus(),await n.updateComplete);break;case wi.LAST_ITEM:const r=Zy(e);r&&(r.tabIndex=0,r.focus(),await r.updateComplete);break;case wi.LIST_ROOT:this.focus();break;default:case wi.NONE:break}s||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,i;this.open=!1,this.skipRestoreFocus||(i=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||i.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const i=e.composedPath();!this.stayOpenOnOutsideClick&&!i.includes(this)&&!i.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return ce` + */const s0=200,n0=new Set([wt.ArrowDown,wt.ArrowUp,wt.Home,wt.End]),jT=new Set([wt.ArrowLeft,wt.ArrowRight,...n0]);function zT(t=document){var i;let e=t.activeElement;for(;e&&((i=e==null?void 0:e.shadowRoot)!=null&&i.activeElement);)e=e.shadowRoot.activeElement;return e}class st extends at{get openDirection(){return this.menuCorner.split("-")[0]==="start"?"DOWN":"UP"}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate("anchorElement")}constructor(){super(),this.anchor="",this.positioning="absolute",this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.noHorizontalFlip=!1,this.noVerticalFlip=!1,this.typeaheadDelay=s0,this.anchorCorner=zg.END_START,this.menuCorner=zg.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=ki.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=xT(),this.listController=new $T({isItem:e=>e.hasAttribute("md-menu-item"),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction==="rtl",deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>{if(!this.isSubmenu)return jT.has(e);const s=getComputedStyle(this).direction==="rtl"?wt.ArrowLeft:wt.ArrowRight;return e===s?!0:n0.has(e)},wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new BT(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new NT(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning==="popover"?"document":this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,disableBlockFlip:this.noVerticalFlip,disableInlineFlip:this.noHorizontalFlip,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!=="popover"?"move":"resize"})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!=="document"&&this.positioning!=="fixed"&&this.positioning!=="popover"||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{const i=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(i))return;if(e.relatedTarget){if(zu(e.relatedTarget,this)||this.pointerPath.length!==0&&zu(e.relatedTarget,i))return}else if(this.pointerPath.includes(this))return;const s=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=s},this.onOpened=async()=>{this.lastFocusedElement=zT();const e=this.items,i=Eo(e);i&&this.defaultFocus!==ki.NONE&&(i.item.tabIndex=-1);let s=!this.quick;switch(this.quick?this.dispatchEvent(new Event("opening")):s=!!await this.animateOpen(),this.defaultFocus){case ki.FIRST_ITEM:const n=of(e);n&&(n.tabIndex=0,n.focus(),await n.updateComplete);break;case ki.LAST_ITEM:const r=t0(e);r&&(r.tabIndex=0,r.focus(),await r.updateComplete);break;case ki.LIST_ROOT:this.focus();break;default:case ki.NONE:break}s||this.dispatchEvent(new Event("opened"))},this.beforeClose=async()=>{var e,i;this.open=!1,this.skipRestoreFocus||(i=(e=this.lastFocusedElement)==null?void 0:e.focus)==null||i.call(e),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event("closing")),this.dispatchEvent(new Event("closed")))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;const i=e.composedPath();!this.stayOpenOnOutsideClick&&!i.includes(this)&&!i.includes(this.anchorElement)&&(this.open=!1)},this.internals.role="menu",this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keydown",this.captureKeydown,{capture:!0}),this.addEventListener("focusout",this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){if(e.has("open")){if(this.open){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}update(e){e.has("open")&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has("positioning")&&this.positioning==="popover"&&!this.showPopover&&(this.positioning="fixed"),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return ce` `}renderMenuContent(){return ce``}handleKeydown(e){var r,o;if(this.open||this.disabled||!this.menu)return;const i=this.menu.typeaheadController,s=e.code==="Space"||e.code==="ArrowDown"||e.code==="ArrowUp"||e.code==="End"||e.code==="Home"||e.code==="Enter";if(!i.isTypingAhead&&s){switch(e.preventDefault(),this.open=!0,e.code){case"Space":case"ArrowDown":case"Enter":this.defaultFocus=ki.NONE;break;case"End":this.defaultFocus=ki.LAST_ITEM;break;case"ArrowUp":case"Home":this.defaultFocus=ki.FIRST_ITEM;break}return}if(e.key.length===1){i.onKeydown(e),e.preventDefault();const{lastActiveRecord:a}=i;if(!a)return;(o=(r=this.labelEl)==null?void 0:r.setAttribute)==null||o.call(r,"aria-live","polite"),this.selectItem(a[di.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&zu(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;const e=this.menu.items;return this.lastSelectedOptionRecords=YT(e),this.lastSelectedOptionRecords}async getUpdateComplete(){var e;return await((e=this.menu)==null?void 0:e.updateComplete),super.getUpdateComplete()}updateValueAndDisplayText(){const e=this.getSelectedOptions()??[];let i=!1;if(e.length){const[s]=e[0];i=this.lastSelectedOption!==s,this.lastSelectedOption=s,this[qa]=s.value,this.displayText=s.displayText}else i=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[qa]="",this.displayText="";return i}async handleOpening(e){var r,o,a;if((o=(r=this.labelEl)==null?void 0:r.removeAttribute)==null||o.call(r,"aria-live"),this.redispatchEvent(e),this.defaultFocus!==ki.NONE)return;const i=this.menu.items,s=(a=Eo(i))==null?void 0:a.item;let[n]=this.lastSelectedOptionRecords[0]??[null];s&&s!==n&&(s.tabIndex=-1),n=n??i[0],n&&(n.tabIndex=0,n.focus())}redispatchEvent(e){af(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){const i=e.detail.reason,s=e.detail.itemPath[0];this.open=!1;let n=!1;i.kind==="click-selection"?n=this.selectItem(s):i.kind==="keydown"&&FT(i.key)?n=this.selectItem(s):(s.tabIndex=-1,s.blur()),n&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([s])=>{e!==s&&(s.selected=!1)}),e.selected=!0,this.updateValueAndDisplayText()}handleRequestSelection(e){const i=e.target;this.lastSelectedOptionRecords.some(([s])=>s===i)||this.selectItem(i)}handleRequestDeselection(e){const i=e.target;this.lastSelectedOptionRecords.some(([s])=>s===i)&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):this.lastUserSetSelectedIndex!==null&&!this.lastSelectedOptionRecords.length?this.selectIndex(this.lastUserSetSelectedIndex):this.updateValueAndDisplayText()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[Mn](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){var e;(e=this.field)==null||e.click()}[Er](){return new GT(()=>this)}[Pr](){return this.field}}We.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0};F([X({type:Boolean})],We.prototype,"quick",void 0);F([X({type:Boolean})],We.prototype,"required",void 0);F([X({type:String,attribute:"error-text"})],We.prototype,"errorText",void 0);F([X()],We.prototype,"label",void 0);F([X({type:Boolean,attribute:"no-asterisk"})],We.prototype,"noAsterisk",void 0);F([X({type:String,attribute:"supporting-text"})],We.prototype,"supportingText",void 0);F([X({type:Boolean,reflect:!0})],We.prototype,"error",void 0);F([X({attribute:"menu-positioning"})],We.prototype,"menuPositioning",void 0);F([X({type:Boolean,attribute:"clamp-menu-width"})],We.prototype,"clampMenuWidth",void 0);F([X({type:Number,attribute:"typeahead-delay"})],We.prototype,"typeaheadDelay",void 0);F([X({type:Boolean,attribute:"has-leading-icon"})],We.prototype,"hasLeadingIcon",void 0);F([X({attribute:"display-text"})],We.prototype,"displayText",void 0);F([X({attribute:"menu-align"})],We.prototype,"menuAlign",void 0);F([X()],We.prototype,"value",null);F([X({type:Number,attribute:"selected-index"})],We.prototype,"selectedIndex",null);F([Vt()],We.prototype,"nativeError",void 0);F([Vt()],We.prototype,"nativeErrorText",void 0);F([Vt()],We.prototype,"focused",void 0);F([Vt()],We.prototype,"open",void 0);F([Vt()],We.prototype,"defaultFocus",void 0);F([Ut(".field")],We.prototype,"field",void 0);F([Ut("md-menu")],We.prototype,"menu",void 0);F([Ut("#label")],We.prototype,"labelEl",void 0);F([nn({slot:"leading-icon",flatten:!0})],We.prototype,"leadingIcons",void 0);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */class JT extends We{constructor(){super(...arguments),this.fieldTag=sf`md-outlined-field`}}/** + */class XT extends We{constructor(){super(...arguments),this.fieldTag=nf`md-outlined-field`}}/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const XT=dt`:host{--_text-field-disabled-input-text-color: var(--md-outlined-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-outlined-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-outlined-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-outlined-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-outlined-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-outlined-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-outline-color: var(--md-outlined-select-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-outline-opacity: var(--md-outlined-select-text-field-disabled-outline-opacity, 0.12);--_text-field-disabled-outline-width: var(--md-outlined-select-text-field-disabled-outline-width, 1px);--_text-field-disabled-supporting-text-color: var(--md-outlined-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-outlined-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-outlined-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-outlined-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-focus-input-text-color: var(--md-outlined-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-outlined-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-outlined-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-outline-color: var(--md-outlined-select-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-supporting-text-color: var(--md-outlined-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-outlined-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-input-text-color: var(--md-outlined-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-outlined-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-outlined-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-outline-color: var(--md-outlined-select-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-supporting-text-color: var(--md-outlined-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-outlined-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-outlined-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-outlined-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-outlined-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-outline-color: var(--md-outlined-select-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-supporting-text-color: var(--md-outlined-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-outlined-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-input-text-color: var(--md-outlined-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-outlined-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-outlined-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-outline-color: var(--md-outlined-select-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-outline-width: var(--md-outlined-select-text-field-focus-outline-width, 3px);--_text-field-focus-supporting-text-color: var(--md-outlined-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-outlined-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-input-text-color: var(--md-outlined-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-outlined-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-outlined-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-outline-color: var(--md-outlined-select-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-outline-width: var(--md-outlined-select-text-field-hover-outline-width, 1px);--_text-field-hover-supporting-text-color: var(--md-outlined-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-outlined-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-outlined-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-outlined-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-outlined-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-outlined-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-outlined-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-outlined-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-outlined-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-outlined-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-outlined-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-outlined-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-outlined-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-outlined-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-outlined-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-outlined-select-text-field-leading-icon-size, 24px);--_text-field-outline-color: var(--md-outlined-select-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_text-field-outline-width: var(--md-outlined-select-text-field-outline-width, 1px);--_text-field-supporting-text-color: var(--md-outlined-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-outlined-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-outlined-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-outlined-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-outlined-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-outlined-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-outlined-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-outlined-select-text-field-container-shape-start-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-outlined-select-text-field-container-shape-start-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-outlined-select-text-field-container-shape-end-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-start: var(--md-outlined-select-text-field-container-shape-end-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--md-outlined-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-outlined-field-content-color: var(--_text-field-input-text-color);--md-outlined-field-content-font: var(--_text-field-input-text-font);--md-outlined-field-content-line-height: var(--_text-field-input-text-line-height);--md-outlined-field-content-size: var(--_text-field-input-text-size);--md-outlined-field-content-weight: var(--_text-field-input-text-weight);--md-outlined-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_text-field-disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_text-field-disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_text-field-disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_text-field-error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_text-field-error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_text-field-error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_text-field-error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_text-field-focus-outline-color);--md-outlined-field-focus-outline-width: var(--_text-field-focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_text-field-hover-outline-color);--md-outlined-field-hover-outline-width: var(--_text-field-hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_text-field-label-text-color);--md-outlined-field-label-text-font: var(--_text-field-label-text-font);--md-outlined-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-outlined-field-label-text-size: var(--_text-field-label-text-size);--md-outlined-field-label-text-weight: var(--_text-field-label-text-weight);--md-outlined-field-leading-content-color: var(--_text-field-leading-icon-color);--md-outlined-field-outline-color: var(--_text-field-outline-color);--md-outlined-field-outline-width: var(--_text-field-outline-width);--md-outlined-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-outlined-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-outlined-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)} + */const QT=ut`:host{--_text-field-disabled-input-text-color: var(--md-outlined-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-outlined-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-outlined-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-outlined-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-outlined-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-outlined-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-outline-color: var(--md-outlined-select-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-outline-opacity: var(--md-outlined-select-text-field-disabled-outline-opacity, 0.12);--_text-field-disabled-outline-width: var(--md-outlined-select-text-field-disabled-outline-width, 1px);--_text-field-disabled-supporting-text-color: var(--md-outlined-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-outlined-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-outlined-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-outlined-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-focus-input-text-color: var(--md-outlined-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-outlined-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-outlined-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-outline-color: var(--md-outlined-select-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-supporting-text-color: var(--md-outlined-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-outlined-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-input-text-color: var(--md-outlined-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-outlined-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-outlined-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-outline-color: var(--md-outlined-select-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-supporting-text-color: var(--md-outlined-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-outlined-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-outlined-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-outlined-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-outlined-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-outline-color: var(--md-outlined-select-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-supporting-text-color: var(--md-outlined-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-outlined-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-input-text-color: var(--md-outlined-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-outlined-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-outlined-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-outline-color: var(--md-outlined-select-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-outline-width: var(--md-outlined-select-text-field-focus-outline-width, 3px);--_text-field-focus-supporting-text-color: var(--md-outlined-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-outlined-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-input-text-color: var(--md-outlined-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-outlined-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-outlined-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-outline-color: var(--md-outlined-select-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-outline-width: var(--md-outlined-select-text-field-hover-outline-width, 1px);--_text-field-hover-supporting-text-color: var(--md-outlined-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-outlined-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-outlined-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-outlined-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-outlined-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-outlined-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-outlined-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-outlined-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-outlined-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-outlined-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-outlined-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-outlined-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-outlined-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-outlined-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-outlined-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-outlined-select-text-field-leading-icon-size, 24px);--_text-field-outline-color: var(--md-outlined-select-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_text-field-outline-width: var(--md-outlined-select-text-field-outline-width, 1px);--_text-field-supporting-text-color: var(--md-outlined-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-outlined-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-outlined-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-outlined-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-outlined-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-outlined-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-outlined-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-outlined-select-text-field-container-shape-start-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-outlined-select-text-field-container-shape-start-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-outlined-select-text-field-container-shape-end-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-start: var(--md-outlined-select-text-field-container-shape-end-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--md-outlined-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-outlined-field-content-color: var(--_text-field-input-text-color);--md-outlined-field-content-font: var(--_text-field-input-text-font);--md-outlined-field-content-line-height: var(--_text-field-input-text-line-height);--md-outlined-field-content-size: var(--_text-field-input-text-size);--md-outlined-field-content-weight: var(--_text-field-input-text-weight);--md-outlined-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_text-field-disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_text-field-disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_text-field-disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_text-field-error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_text-field-error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_text-field-error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_text-field-error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_text-field-focus-outline-color);--md-outlined-field-focus-outline-width: var(--_text-field-focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_text-field-hover-outline-color);--md-outlined-field-hover-outline-width: var(--_text-field-hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_text-field-label-text-color);--md-outlined-field-label-text-font: var(--_text-field-label-text-font);--md-outlined-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-outlined-field-label-text-size: var(--_text-field-label-text-size);--md-outlined-field-label-text-weight: var(--_text-field-label-text-weight);--md-outlined-field-leading-content-color: var(--_text-field-leading-icon-color);--md-outlined-field-outline-color: var(--_text-field-outline-color);--md-outlined-field-outline-width: var(--_text-field-outline-width);--md-outlined-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-outlined-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-outlined-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)} `;/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const QT=dt`:host{color:unset;min-width:210px;display:flex}.field{cursor:default;outline:none}.select{position:relative;flex-direction:column}.icon.trailing svg,.icon ::slotted(*){fill:currentColor}.icon ::slotted(*){width:inherit;height:inherit;font-size:inherit}.icon slot{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.icon.trailing :is(.up,.down){opacity:0;transition:opacity 75ms linear 75ms}.select:not(.open) .down,.select.open .up{opacity:1}.field,.select,md-menu{min-width:inherit;width:inherit;max-width:inherit;display:flex}md-menu{min-width:var(--__menu-min-width);max-width:var(--__menu-max-width, inherit)}.menu-wrapper{width:0px;height:0px;max-width:inherit}md-menu ::slotted(:not[disabled]){cursor:pointer}.field,.select{width:100%}:host{display:inline-flex}:host([disabled]){pointer-events:none} + */const ZT=ut`:host{color:unset;min-width:210px;display:flex}.field{cursor:default;outline:none}.select{position:relative;flex-direction:column}.icon.trailing svg,.icon ::slotted(*){fill:currentColor}.icon ::slotted(*){width:inherit;height:inherit;font-size:inherit}.icon slot{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.icon.trailing :is(.up,.down){opacity:0;transition:opacity 75ms linear 75ms}.select:not(.open) .down,.select.open .up{opacity:1}.field,.select,md-menu{min-width:inherit;width:inherit;max-width:inherit;display:flex}md-menu{min-width:var(--__menu-min-width);max-width:var(--__menu-max-width, inherit)}.menu-wrapper{width:0px;height:0px;max-width:inherit}md-menu ::slotted(:not[disabled]){cursor:pointer}.field,.select{width:100%}:host{display:inline-flex}:host([disabled]){pointer-events:none} `;/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */let ju=class extends JT{};ju.styles=[QT,XT];ju=F([Zt("md-outlined-select")],ju);const ZT=["display-text","error"],eE=["selected","aria-label","onClick"],tE={slot:"headline"},iE={props:{choices:{default:[]},modelValue:{required:!0},error:{default:!1}},methods:{setChoice(t){this.$emit("update:modelValue",t)}},computed:{getActiveChoice(){return this.modelValue>=this.choices.length?{}:this.choices[this.modelValue]}}},ls=Se({...iE,__name:"Dropdown",setup(t){return(e,i)=>(q(),G("md-outlined-select",{class:"choice-select","display-text":e.getActiveChoice.text,error:t.error},[(q(!0),G(ye,null,st(t.choices,(s,n)=>(q(),G("md-select-option",{selected:n==t.modelValue,key:s.key,ref_for:!0,ref:e.getActiveChoice.key,"aria-label":s.text,onClick:r=>e.setChoice(n)},[X("div",tE,fe(s.text),1)],8,eE))),128))],8,ZT))}});/** + */let Hu=class extends XT{};Hu.styles=[ZT,QT];Hu=F([ti("md-outlined-select")],Hu);const eE=["display-text","error"],tE=["selected","aria-label","onClick"],iE={slot:"headline"},sE={props:{choices:{default:[]},modelValue:{required:!0},error:{default:!1}},methods:{setChoice(t){this.$emit("update:modelValue",t)}},computed:{getActiveChoice(){return this.modelValue>=this.choices.length?{}:this.choices[this.modelValue]}}},Nt=xe({...sE,__name:"Dropdown",setup(t){return(e,i)=>(j(),H("md-outlined-select",{class:"choice-select","display-text":e.getActiveChoice.text,error:t.error},[(j(!0),H(ge,null,Ge(t.choices,(s,n)=>(j(),H("md-select-option",{selected:n==t.modelValue,key:s.key,ref_for:!0,ref:e.getActiveChoice.key,"aria-label":s.text,onClick:r=>e.setChoice(n)},[K("div",iE,de(s.text),1)],8,tE))),128))],8,eE))}});/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const sE=450,zg=225,nE=.2,rE=10,oE=75,aE=.35,lE="::after",cE="forwards";var Rt;(function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(Rt||(Rt={}));const dE=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],uE=150,Pd=window.matchMedia("(forced-colors: active)");class va extends ot{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Rt.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Yy(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return ce`
    `}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==Rt.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===Rt.HOLDING){this.state=Rt.WAITING_FOR_CLICK;return}if(this.state===Rt.TOUCH_DELAY){this.state=Rt.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=Rt.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=Rt.TOUCH_DELAY,await new Promise(i=>{setTimeout(i,uE)}),this.state===Rt.TOUCH_DELAY&&(this.state=Rt.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===Rt.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===Rt.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:i}=this.getBoundingClientRect(),s=Math.max(e,i),n=Math.max(aE*s,oE),r=Math.floor(s*nE),a=Math.sqrt(i**2+e**2)+rE;this.initialSize=r,this.rippleScale=`${(a+n)/r}`,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(e){const{scrollX:i,scrollY:s}=window,{left:n,top:r}=this.getBoundingClientRect(),o=i+n,a=s+r,{pageX:l,pageY:c}=e;return{x:l-o,y:c-a}}getTranslationCoordinates(e){const{height:i,width:s}=this.getBoundingClientRect(),n={x:(s-this.initialSize)/2,y:(i-this.initialSize)/2};let r;return e instanceof PointerEvent?r=this.getNormalizedPointerEventCoords(e):r={x:s/2,y:i/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:n}}startPressAnimation(e){var o;if(!this.mdRoot)return;this.pressed=!0,(o=this.growAnimation)==null||o.cancel(),this.determineRippleSize();const{startPoint:i,endPoint:s}=this.getTranslationCoordinates(e),n=`${i.x}px, ${i.y}px`,r=`${s.x}px, ${s.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${n}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:lE,duration:sE,easing:hr.STANDARD,fill:cE})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Rt.INACTIVE;const e=this.growAnimation;let i=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?i=e.currentTime:e!=null&&e.currentTime&&(i=e.currentTime.to("ms").value),i>=zg){this.pressed=!1;return}await new Promise(s=>{setTimeout(s,zg-i)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const i=e.buttons===1;return this.isTouch(e)||i}inBounds({x:e,y:i}){const{top:s,left:n,bottom:r,right:o}=this.getBoundingClientRect();return e>=n&&e<=o&&i>=s&&i<=r}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){if(!(Pd!=null&&Pd.matches))switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,i){for(const s of dE)e==null||e.removeEventListener(s,this),i==null||i.addEventListener(s,this)}}F([J({type:Boolean,reflect:!0})],va.prototype,"disabled",void 0);F([jt()],va.prototype,"hovered",void 0);F([jt()],va.prototype,"pressed",void 0);F([zt(".surface")],va.prototype,"mdRoot",void 0);/** + */const nE=450,Ug=225,rE=.2,oE=10,aE=75,lE=.35,cE="::after",dE="forwards";var Rt;(function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(Rt||(Rt={}));const uE=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],hE=150,$d=window.matchMedia("(forced-colors: active)");class _a extends at{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Rt.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Xy(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const e={hovered:this.hovered,pressed:this.pressed};return ce`
    `}update(e){e.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==Rt.INACTIVE&&this.endPressAnimation())}handlePointerup(e){if(this.shouldReactToEvent(e)){if(this.state===Rt.HOLDING){this.state=Rt.WAITING_FOR_CLICK;return}if(this.state===Rt.TOUCH_DELAY){this.state=Rt.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(e){if(this.shouldReactToEvent(e)){if(this.rippleStartEvent=e,!this.isTouch(e)){this.state=Rt.WAITING_FOR_CLICK,this.startPressAnimation(e);return}this.checkBoundsAfterContextMenu&&!this.inBounds(e)||(this.checkBoundsAfterContextMenu=!1,this.state=Rt.TOUCH_DELAY,await new Promise(i=>{setTimeout(i,hE)}),this.state===Rt.TOUCH_DELAY&&(this.state=Rt.HOLDING,this.startPressAnimation(e)))}}handleClick(){if(!this.disabled){if(this.state===Rt.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===Rt.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:e,width:i}=this.getBoundingClientRect(),s=Math.max(e,i),n=Math.max(lE*s,aE),r=Math.floor(s*rE),a=Math.sqrt(i**2+e**2)+oE;this.initialSize=r,this.rippleScale=`${(a+n)/r}`,this.rippleSize=`${r}px`}getNormalizedPointerEventCoords(e){const{scrollX:i,scrollY:s}=window,{left:n,top:r}=this.getBoundingClientRect(),o=i+n,a=s+r,{pageX:l,pageY:c}=e;return{x:l-o,y:c-a}}getTranslationCoordinates(e){const{height:i,width:s}=this.getBoundingClientRect(),n={x:(s-this.initialSize)/2,y:(i-this.initialSize)/2};let r;return e instanceof PointerEvent?r=this.getNormalizedPointerEventCoords(e):r={x:s/2,y:i/2},r={x:r.x-this.initialSize/2,y:r.y-this.initialSize/2},{startPoint:r,endPoint:n}}startPressAnimation(e){var o;if(!this.mdRoot)return;this.pressed=!0,(o=this.growAnimation)==null||o.cancel(),this.determineRippleSize();const{startPoint:i,endPoint:s}=this.getTranslationCoordinates(e),n=`${i.x}px, ${i.y}px`,r=`${s.x}px, ${s.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${n}) scale(1)`,`translate(${r}) scale(${this.rippleScale})`]},{pseudoElement:cE,duration:nE,easing:hr.STANDARD,fill:dE})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Rt.INACTIVE;const e=this.growAnimation;let i=1/0;if(typeof(e==null?void 0:e.currentTime)=="number"?i=e.currentTime:e!=null&&e.currentTime&&(i=e.currentTime.to("ms").value),i>=Ug){this.pressed=!1;return}await new Promise(s=>{setTimeout(s,Ug-i)}),this.growAnimation===e&&(this.pressed=!1)}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type==="pointerenter"||e.type==="pointerleave")return!this.isTouch(e);const i=e.buttons===1;return this.isTouch(e)||i}inBounds({x:e,y:i}){const{top:s,left:n,bottom:r,right:o}=this.getBoundingClientRect();return e>=n&&e<=o&&i>=s&&i<=r}isTouch({pointerType:e}){return e==="touch"}async handleEvent(e){if(!($d!=null&&$d.matches))switch(e.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(e);break;case"pointerdown":await this.handlePointerdown(e);break;case"pointerenter":this.handlePointerenter(e);break;case"pointerleave":this.handlePointerleave(e);break;case"pointerup":this.handlePointerup(e);break}}onControlChange(e,i){for(const s of uE)e==null||e.removeEventListener(s,this),i==null||i.addEventListener(s,this)}}F([X({type:Boolean,reflect:!0})],_a.prototype,"disabled",void 0);F([Vt()],_a.prototype,"hovered",void 0);F([Vt()],_a.prototype,"pressed",void 0);F([Ut(".surface")],_a.prototype,"mdRoot",void 0);/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const hE=dt`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms} + */const fE=ut`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms} `;/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */let zu=class extends va{};zu.styles=[hE];zu=F([Zt("md-ripple")],zu);/** + */let Wu=class extends _a{};Wu.styles=[fE];Wu=F([ti("md-ripple")],Wu);/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const o0=Symbol("dispatchHooks");function fE(t,e){const i=t[o0];if(!i)throw new Error(`'${t.type}' event needs setupDispatchHooks().`);i.addEventListener("after",e)}const Vg=new WeakMap;function pE(t,...e){let i=Vg.get(t);i||(i=new Set,Vg.set(t,i));for(const s of e){if(i.has(s))continue;let n=!1;t.addEventListener(s,r=>{if(n)return;r.stopImmediatePropagation();const o=Reflect.construct(r.constructor,[r.type,r]),a=new EventTarget;o[o0]=a,n=!0;const l=t.dispatchEvent(o);n=!1,l||r.preventDefault(),a.dispatchEvent(new Event("after"))},{capture:!0}),i.add(s)}}/** + */const l0=Symbol("dispatchHooks");function pE(t,e){const i=t[l0];if(!i)throw new Error(`'${t.type}' event needs setupDispatchHooks().`);i.addEventListener("after",e)}const qg=new WeakMap;function gE(t,...e){let i=qg.get(t);i||(i=new Set,qg.set(t,i));for(const s of e){if(i.has(s))continue;let n=!1;t.addEventListener(s,r=>{if(n)return;r.stopImmediatePropagation();const o=Reflect.construct(r.constructor,[r.type,r]),a=new EventTarget;o[l0]=a,n=!0;const l=t.dispatchEvent(o);n=!1,l||r.preventDefault(),a.dispatchEvent(new Event("after"))},{capture:!0}),i.add(s)}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */function a0(t){const e=new MouseEvent("click",{bubbles:!0});return t.dispatchEvent(e),e}function af(t){return t.currentTarget!==t.target||t.composedPath()[0]!==t.target||t.target.disabled?!1:!gE(t)}function gE(t){const e=Vu;return e&&(t.preventDefault(),t.stopImmediatePropagation()),mE(),e}let Vu=!1;async function mE(){Vu=!0,await null,Vu=!1}/** + */function c0(t){const e=new MouseEvent("click",{bubbles:!0});return t.dispatchEvent(e),e}function lf(t){return t.currentTarget!==t.target||t.composedPath()[0]!==t.target||t.target.disabled?!1:!mE(t)}function mE(t){const e=Ku;return e&&(t.preventDefault(),t.stopImmediatePropagation()),vE(),e}let Ku=!1;async function vE(){Ku=!0,await null,Ku=!1}/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */class vE extends Dc{computeValidity(e){return this.checkboxControl||(this.checkboxControl=document.createElement("input"),this.checkboxControl.type="checkbox"),this.checkboxControl.checked=e.checked,this.checkboxControl.required=e.required,{validity:this.checkboxControl.validity,validationMessage:this.checkboxControl.validationMessage}}equals(e,i){return e.checked===i.checked&&e.required===i.required}copy({checked:e,required:i}){return{checked:e,required:i}}}/** + */class bE extends jc{computeValidity(e){return this.checkboxControl||(this.checkboxControl=document.createElement("input"),this.checkboxControl.type="checkbox"),this.checkboxControl.checked=e.checked,this.checkboxControl.required=e.required,{validity:this.checkboxControl.validity,validationMessage:this.checkboxControl.validationMessage}}equals(e,i){return e.checked===i.checked&&e.required===i.required}copy({checked:e,required:i}){return{checked:e,required:i}}}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const bE=ga($c(Lc(ma(ot))));class nn extends bE{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!af(e)||!this.input||(this.focus(),a0(this.input))}),pE(this,"keydown"),this.addEventListener("keydown",e=>{fE(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return ce` -
    + */const yE=ba(Nc(Bc(ya(at))));class rn extends yE{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!lf(e)||!this.input||(this.focus(),c0(this.input))}),gE(this,"keydown"),this.addEventListener("keydown",e=>{pE(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return ce` +
    - + ${this.shouldShowIcons()?this.renderIcons():ce``} @@ -494,45 +494,45 @@ Option 2: Install and provide the "ws" package: d="M6.4 19.2 4.8 17.6 10.4 12 4.8 6.4 6.4 4.8 12 10.4 17.6 4.8 19.2 6.4 13.6 12 19.2 17.6 17.6 19.2 12 13.6Z" /> - `}renderTouchTarget(){return ce``}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const i=e.target;this.selected=i.checked}handleChange(e){of(this,e)}[In](){return this.selected?this.value:null}[ql](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[Er](){return new vE(()=>({checked:this.selected,required:this.required}))}[Pr](){return this.input}}nn.shadowRootOptions={mode:"open",delegatesFocus:!0};F([J({type:Boolean})],nn.prototype,"selected",void 0);F([J({type:Boolean})],nn.prototype,"icons",void 0);F([J({type:Boolean,attribute:"show-only-selected-icon"})],nn.prototype,"showOnlySelectedIcon",void 0);F([J({type:Boolean})],nn.prototype,"required",void 0);F([J()],nn.prototype,"value",void 0);F([zt("input")],nn.prototype,"input",void 0);/** + `}renderTouchTarget(){return ce``}shouldShowIcons(){return this.icons||this.showOnlySelectedIcon}handleInput(e){const i=e.target;this.selected=i.checked}handleChange(e){af(this,e)}[Mn](){return this.selected?this.value:null}[Kl](){return String(this.selected)}formResetCallback(){this.selected=this.hasAttribute("selected")}formStateRestoreCallback(e){this.selected=e==="true"}[Er](){return new bE(()=>({checked:this.selected,required:this.required}))}[Pr](){return this.input}}rn.shadowRootOptions={mode:"open",delegatesFocus:!0};F([X({type:Boolean})],rn.prototype,"selected",void 0);F([X({type:Boolean})],rn.prototype,"icons",void 0);F([X({type:Boolean,attribute:"show-only-selected-icon"})],rn.prototype,"showOnlySelectedIcon",void 0);F([X({type:Boolean})],rn.prototype,"required",void 0);F([X()],rn.prototype,"value",void 0);F([Ut("input")],rn.prototype,"input",void 0);/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const yE=dt`@layer styles, hcm;@layer styles{:host{display:inline-flex;outline:none;vertical-align:top;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-switch-track-height, 32px))/2) 0px}md-focus-ring{--md-focus-ring-shape-start-start: var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-start-end: var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-end: var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-start: var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}.switch{align-items:center;display:inline-flex;flex-shrink:0;position:relative;width:var(--md-switch-track-width, 52px);height:var(--md-switch-track-height, 32px);border-start-start-radius:var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}input{appearance:none;height:max(100%,var(--md-switch-touch-target-size, 48px));outline:none;margin:0;position:absolute;width:max(100%,var(--md-switch-touch-target-size, 48px));z-index:1;cursor:inherit;top:50%;left:50%;transform:translate(-50%, -50%)}:host([touch-target=none]) input{display:none}}@layer styles{.track{position:absolute;width:100%;height:100%;box-sizing:border-box;border-radius:inherit;display:flex;justify-content:center;align-items:center}.track::before{content:"";display:flex;position:absolute;height:100%;width:100%;border-radius:inherit;box-sizing:border-box;transition-property:opacity,background-color;transition-timing-function:linear;transition-duration:67ms}.disabled .track{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.disabled .track::before,.disabled .track::after{transition:none;opacity:var(--md-switch-disabled-track-opacity, 0.12)}.disabled .track::before{background-clip:content-box}.selected .track::before{background-color:var(--md-switch-selected-track-color, var(--md-sys-color-primary, #6750a4))}.selected:hover .track::before{background-color:var(--md-switch-selected-hover-track-color, var(--md-sys-color-primary, #6750a4))}.selected:focus-within .track::before{background-color:var(--md-switch-selected-focus-track-color, var(--md-sys-color-primary, #6750a4))}.selected:active .track::before{background-color:var(--md-switch-selected-pressed-track-color, var(--md-sys-color-primary, #6750a4))}.selected.disabled .track{background-clip:border-box}.selected.disabled .track::before{background-color:var(--md-switch-disabled-selected-track-color, var(--md-sys-color-on-surface, #1d1b20))}.unselected .track::before{background-color:var(--md-switch-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-track-outline-color, var(--md-sys-color-outline, #79747e));border-style:solid;border-width:var(--md-switch-track-outline-width, 2px)}.unselected:hover .track::before{background-color:var(--md-switch-hover-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-hover-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:focus-visible .track::before{background-color:var(--md-switch-focus-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-focus-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:active .track::before{background-color:var(--md-switch-pressed-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-pressed-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected.disabled .track::before{background-color:var(--md-switch-disabled-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-disabled-track-outline-color, var(--md-sys-color-on-surface, #1d1b20))}}@layer hcm{@media(forced-colors: active){.selected .track::before{background:ButtonText;border-color:ButtonText}.disabled .track::before{border-color:GrayText;opacity:1}.disabled.selected .track::before{background:GrayText}}}@layer styles{.handle-container{display:flex;place-content:center;place-items:center;position:relative;transition:margin 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.selected .handle-container{margin-inline-start:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.unselected .handle-container{margin-inline-end:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.disabled .handle-container{transition:none}.handle{border-start-start-radius:var(--md-switch-handle-shape-start-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-handle-shape-start-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-handle-shape-end-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-handle-shape-end-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));height:var(--md-switch-handle-height, 16px);width:var(--md-switch-handle-width, 16px);transform-origin:center;transition-property:height,width;transition-duration:250ms,250ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1),cubic-bezier(0.2, 0, 0, 1);z-index:0}.handle::before{content:"";display:flex;inset:0;position:absolute;border-radius:inherit;box-sizing:border-box;transition:background-color 67ms linear}.disabled .handle,.disabled .handle::before{transition:none}.selected .handle{height:var(--md-switch-selected-handle-height, 24px);width:var(--md-switch-selected-handle-width, 24px)}.handle.with-icon{height:var(--md-switch-with-icon-handle-height, 24px);width:var(--md-switch-with-icon-handle-width, 24px)}.selected:not(.disabled):active .handle,.unselected:not(.disabled):active .handle{height:var(--md-switch-pressed-handle-height, 28px);width:var(--md-switch-pressed-handle-width, 28px);transition-timing-function:linear;transition-duration:100ms}.selected .handle::before{background-color:var(--md-switch-selected-handle-color, var(--md-sys-color-on-primary, #fff))}.selected:hover .handle::before{background-color:var(--md-switch-selected-hover-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:focus-within .handle::before{background-color:var(--md-switch-selected-focus-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:active .handle::before{background-color:var(--md-switch-selected-pressed-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected.disabled .handle::before{background-color:var(--md-switch-disabled-selected-handle-color, var(--md-sys-color-surface, #fef7ff));opacity:var(--md-switch-disabled-selected-handle-opacity, 1)}.unselected .handle::before{background-color:var(--md-switch-handle-color, var(--md-sys-color-outline, #79747e))}.unselected:hover .handle::before{background-color:var(--md-switch-hover-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:focus-within .handle::before{background-color:var(--md-switch-focus-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:active .handle::before{background-color:var(--md-switch-pressed-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected.disabled .handle::before{background-color:var(--md-switch-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-handle-opacity, 0.38)}md-ripple{border-radius:var(--md-switch-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-switch-state-layer-size, 40px);inset:unset;width:var(--md-switch-state-layer-size, 40px)}.selected md-ripple{--md-ripple-hover-color: var(--md-switch-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-color: var(--md-switch-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-switch-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-selected-pressed-state-layer-opacity, 0.12)}.unselected md-ripple{--md-ripple-hover-color: var(--md-switch-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-color: var(--md-switch-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-switch-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-pressed-state-layer-opacity, 0.12)}}@layer hcm{@media(forced-colors: active){.unselected .handle::before{background:ButtonText}.disabled .handle::before{opacity:1}.disabled.unselected .handle::before{background:GrayText}}}@layer styles{.icons{position:relative;height:100%;width:100%}.icon{position:absolute;inset:0;margin:auto;display:flex;align-items:center;justify-content:center;fill:currentColor;transition:fill 67ms linear,opacity 33ms linear,transform 167ms cubic-bezier(0.2, 0, 0, 1);opacity:0}.disabled .icon{transition:none}.selected .icon--on,.unselected .icon--off{opacity:1}.unselected .handle:not(.with-icon) .icon--on{transform:rotate(-45deg)}.icon--off{width:var(--md-switch-icon-size, 16px);height:var(--md-switch-icon-size, 16px);color:var(--md-switch-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:hover .icon--off{color:var(--md-switch-hover-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:focus-within .icon--off{color:var(--md-switch-focus-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:active .icon--off{color:var(--md-switch-pressed-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected.disabled .icon--off{color:var(--md-switch-disabled-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9));opacity:var(--md-switch-disabled-icon-opacity, 0.38)}.icon--on{width:var(--md-switch-selected-icon-size, 16px);height:var(--md-switch-selected-icon-size, 16px);color:var(--md-switch-selected-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:hover .icon--on{color:var(--md-switch-selected-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:focus-within .icon--on{color:var(--md-switch-selected-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:active .icon--on{color:var(--md-switch-selected-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected.disabled .icon--on{color:var(--md-switch-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon--off{fill:Canvas}.icon--on{fill:ButtonText}.disabled.unselected .icon--off,.disabled.selected .icon--on{opacity:1}.disabled .icon--on{fill:GrayText}}} + */const _E=ut`@layer styles, hcm;@layer styles{:host{display:inline-flex;outline:none;vertical-align:top;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-switch-track-height, 32px))/2) 0px}md-focus-ring{--md-focus-ring-shape-start-start: var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-start-end: var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-end: var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));--md-focus-ring-shape-end-start: var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}.switch{align-items:center;display:inline-flex;flex-shrink:0;position:relative;width:var(--md-switch-track-width, 52px);height:var(--md-switch-track-height, 32px);border-start-start-radius:var(--md-switch-track-shape-start-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-track-shape-start-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-track-shape-end-end, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-track-shape-end-start, var(--md-switch-track-shape, var(--md-sys-shape-corner-full, 9999px)))}input{appearance:none;height:max(100%,var(--md-switch-touch-target-size, 48px));outline:none;margin:0;position:absolute;width:max(100%,var(--md-switch-touch-target-size, 48px));z-index:1;cursor:inherit;top:50%;left:50%;transform:translate(-50%, -50%)}:host([touch-target=none]) input{display:none}}@layer styles{.track{position:absolute;width:100%;height:100%;box-sizing:border-box;border-radius:inherit;display:flex;justify-content:center;align-items:center}.track::before{content:"";display:flex;position:absolute;height:100%;width:100%;border-radius:inherit;box-sizing:border-box;transition-property:opacity,background-color;transition-timing-function:linear;transition-duration:67ms}.disabled .track{background-color:rgba(0,0,0,0);border-color:rgba(0,0,0,0)}.disabled .track::before,.disabled .track::after{transition:none;opacity:var(--md-switch-disabled-track-opacity, 0.12)}.disabled .track::before{background-clip:content-box}.selected .track::before{background-color:var(--md-switch-selected-track-color, var(--md-sys-color-primary, #6750a4))}.selected:hover .track::before{background-color:var(--md-switch-selected-hover-track-color, var(--md-sys-color-primary, #6750a4))}.selected:focus-within .track::before{background-color:var(--md-switch-selected-focus-track-color, var(--md-sys-color-primary, #6750a4))}.selected:active .track::before{background-color:var(--md-switch-selected-pressed-track-color, var(--md-sys-color-primary, #6750a4))}.selected.disabled .track{background-clip:border-box}.selected.disabled .track::before{background-color:var(--md-switch-disabled-selected-track-color, var(--md-sys-color-on-surface, #1d1b20))}.unselected .track::before{background-color:var(--md-switch-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-track-outline-color, var(--md-sys-color-outline, #79747e));border-style:solid;border-width:var(--md-switch-track-outline-width, 2px)}.unselected:hover .track::before{background-color:var(--md-switch-hover-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-hover-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:focus-visible .track::before{background-color:var(--md-switch-focus-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-focus-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected:active .track::before{background-color:var(--md-switch-pressed-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-pressed-track-outline-color, var(--md-sys-color-outline, #79747e))}.unselected.disabled .track::before{background-color:var(--md-switch-disabled-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));border-color:var(--md-switch-disabled-track-outline-color, var(--md-sys-color-on-surface, #1d1b20))}}@layer hcm{@media(forced-colors: active){.selected .track::before{background:ButtonText;border-color:ButtonText}.disabled .track::before{border-color:GrayText;opacity:1}.disabled.selected .track::before{background:GrayText}}}@layer styles{.handle-container{display:flex;place-content:center;place-items:center;position:relative;transition:margin 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275)}.selected .handle-container{margin-inline-start:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.unselected .handle-container{margin-inline-end:calc(var(--md-switch-track-width, 52px) - var(--md-switch-track-height, 32px))}.disabled .handle-container{transition:none}.handle{border-start-start-radius:var(--md-switch-handle-shape-start-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-start-end-radius:var(--md-switch-handle-shape-start-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-end-radius:var(--md-switch-handle-shape-end-end, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));border-end-start-radius:var(--md-switch-handle-shape-end-start, var(--md-switch-handle-shape, var(--md-sys-shape-corner-full, 9999px)));height:var(--md-switch-handle-height, 16px);width:var(--md-switch-handle-width, 16px);transform-origin:center;transition-property:height,width;transition-duration:250ms,250ms;transition-timing-function:cubic-bezier(0.2, 0, 0, 1),cubic-bezier(0.2, 0, 0, 1);z-index:0}.handle::before{content:"";display:flex;inset:0;position:absolute;border-radius:inherit;box-sizing:border-box;transition:background-color 67ms linear}.disabled .handle,.disabled .handle::before{transition:none}.selected .handle{height:var(--md-switch-selected-handle-height, 24px);width:var(--md-switch-selected-handle-width, 24px)}.handle.with-icon{height:var(--md-switch-with-icon-handle-height, 24px);width:var(--md-switch-with-icon-handle-width, 24px)}.selected:not(.disabled):active .handle,.unselected:not(.disabled):active .handle{height:var(--md-switch-pressed-handle-height, 28px);width:var(--md-switch-pressed-handle-width, 28px);transition-timing-function:linear;transition-duration:100ms}.selected .handle::before{background-color:var(--md-switch-selected-handle-color, var(--md-sys-color-on-primary, #fff))}.selected:hover .handle::before{background-color:var(--md-switch-selected-hover-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:focus-within .handle::before{background-color:var(--md-switch-selected-focus-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected:active .handle::before{background-color:var(--md-switch-selected-pressed-handle-color, var(--md-sys-color-primary-container, #eaddff))}.selected.disabled .handle::before{background-color:var(--md-switch-disabled-selected-handle-color, var(--md-sys-color-surface, #fef7ff));opacity:var(--md-switch-disabled-selected-handle-opacity, 1)}.unselected .handle::before{background-color:var(--md-switch-handle-color, var(--md-sys-color-outline, #79747e))}.unselected:hover .handle::before{background-color:var(--md-switch-hover-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:focus-within .handle::before{background-color:var(--md-switch-focus-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected:active .handle::before{background-color:var(--md-switch-pressed-handle-color, var(--md-sys-color-on-surface-variant, #49454f))}.unselected.disabled .handle::before{background-color:var(--md-switch-disabled-handle-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-handle-opacity, 0.38)}md-ripple{border-radius:var(--md-switch-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));height:var(--md-switch-state-layer-size, 40px);inset:unset;width:var(--md-switch-state-layer-size, 40px)}.selected md-ripple{--md-ripple-hover-color: var(--md-switch-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-color: var(--md-switch-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-switch-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-selected-pressed-state-layer-opacity, 0.12)}.unselected md-ripple{--md-ripple-hover-color: var(--md-switch-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-color: var(--md-switch-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-switch-hover-state-layer-opacity, 0.08);--md-ripple-pressed-opacity: var(--md-switch-pressed-state-layer-opacity, 0.12)}}@layer hcm{@media(forced-colors: active){.unselected .handle::before{background:ButtonText}.disabled .handle::before{opacity:1}.disabled.unselected .handle::before{background:GrayText}}}@layer styles{.icons{position:relative;height:100%;width:100%}.icon{position:absolute;inset:0;margin:auto;display:flex;align-items:center;justify-content:center;fill:currentColor;transition:fill 67ms linear,opacity 33ms linear,transform 167ms cubic-bezier(0.2, 0, 0, 1);opacity:0}.disabled .icon{transition:none}.selected .icon--on,.unselected .icon--off{opacity:1}.unselected .handle:not(.with-icon) .icon--on{transform:rotate(-45deg)}.icon--off{width:var(--md-switch-icon-size, 16px);height:var(--md-switch-icon-size, 16px);color:var(--md-switch-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:hover .icon--off{color:var(--md-switch-hover-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:focus-within .icon--off{color:var(--md-switch-focus-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected:active .icon--off{color:var(--md-switch-pressed-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9))}.unselected.disabled .icon--off{color:var(--md-switch-disabled-icon-color, var(--md-sys-color-surface-container-highest, #e6e0e9));opacity:var(--md-switch-disabled-icon-opacity, 0.38)}.icon--on{width:var(--md-switch-selected-icon-size, 16px);height:var(--md-switch-selected-icon-size, 16px);color:var(--md-switch-selected-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:hover .icon--on{color:var(--md-switch-selected-hover-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:focus-within .icon--on{color:var(--md-switch-selected-focus-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected:active .icon--on{color:var(--md-switch-selected-pressed-icon-color, var(--md-sys-color-on-primary-container, #21005d))}.selected.disabled .icon--on{color:var(--md-switch-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-switch-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon--off{fill:Canvas}.icon--on{fill:ButtonText}.disabled.unselected .icon--off,.disabled.selected .icon--on{opacity:1}.disabled .icon--on{fill:GrayText}}} `;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */let Uu=class extends nn{};Uu.styles=[yE];Uu=F([Zt("md-switch")],Uu);const _E=["selected"],xE={props:{modelValue:{}},computed:{isSelected(){return this.modelValue}},methods:{updateSwitch(){this.$emit("update:modelValue",!this.modelValue)}}},Ug=Se({...xE,__name:"Switch",setup(t){return(e,i)=>(q(),G("md-switch",{onInput:i[0]||(i[0]=(...s)=>e.updateSwitch&&e.updateSwitch(...s)),selected:e.isSelected},null,40,_E))}});/** + */let Gu=class extends rn{};Gu.styles=[_E];Gu=F([ti("md-switch")],Gu);const xE=["selected"],wE={props:{modelValue:{}},computed:{isSelected(){return this.modelValue}},methods:{updateSwitch(){this.$emit("update:modelValue",!this.modelValue)}}},Hg=xe({...wE,__name:"Switch",setup(t){return(e,i)=>(j(),H("md-switch",{onInput:i[0]||(i[0]=(...s)=>e.updateSwitch&&e.updateSwitch(...s)),selected:e.isSelected},null,40,xE))}});/** * @license * Copyright 2024 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const wE=dt`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)} + */const kE=ut`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)} `;/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const kE=t=>t.strings===void 0,SE={},CE=(t,e=SE)=>t._$AH=e;/** + */const SE=t=>t.strings===void 0,CE={},AE=(t,e=CE)=>t._$AH=e;/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const qg=ef(class extends tf{constructor(t){if(super(t),t.type!==Ls.PROPERTY&&t.type!==Ls.ATTRIBUTE&&t.type!==Ls.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!kE(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===ui||e===se)return e;const i=t.element,s=t.name;if(t.type===Ls.PROPERTY){if(e===i[s])return ui}else if(t.type===Ls.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(s))return ui}else if(t.type===Ls.ATTRIBUTE&&i.getAttribute(s)===e+"")return ui;return CE(t),e}});/** + */const Wg=tf(class extends sf{constructor(t){if(super(t),t.type!==Ds.PROPERTY&&t.type!==Ds.ATTRIBUTE&&t.type!==Ds.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!SE(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===fi||e===ne)return e;const i=t.element,s=t.name;if(t.type===Ds.PROPERTY){if(e===i[s])return fi}else if(t.type===Ds.BOOLEAN_ATTRIBUTE){if(!!e===i.hasAttribute(s))return fi}else if(t.type===Ds.ATTRIBUTE&&i.getAttribute(s)===e+"")return fi;return AE(t),e}});/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const AE={fromAttribute(t){return t??""},toAttribute(t){return t||null}};/** + */const TE={fromAttribute(t){return t??""},toAttribute(t){return t||null}};/** * @license * Copyright 2023 Google LLC * SPDX-License-Identifier: Apache-2.0 - */class TE extends Dc{computeValidity({state:e,renderedControl:i}){let s=i;Jr(e)&&!s?(s=this.inputControl||document.createElement("input"),this.inputControl=s):s||(s=this.textAreaControl||document.createElement("textarea"),this.textAreaControl=s);const n=Jr(e)?s:null;if(n&&(n.type=e.type),s.value!==e.value&&(s.value=e.value),s.required=e.required,n){const r=e;r.pattern?n.pattern=r.pattern:n.removeAttribute("pattern"),r.min?n.min=r.min:n.removeAttribute("min"),r.max?n.max=r.max:n.removeAttribute("max"),r.step?n.step=r.step:n.removeAttribute("step")}return(e.minLength??-1)>-1?s.setAttribute("minlength",String(e.minLength)):s.removeAttribute("minlength"),(e.maxLength??-1)>-1?s.setAttribute("maxlength",String(e.maxLength)):s.removeAttribute("maxlength"),{validity:s.validity,validationMessage:s.validationMessage}}equals({state:e},{state:i}){const s=e.type===i.type&&e.value===i.value&&e.required===i.required&&e.minLength===i.minLength&&e.maxLength===i.maxLength;return!Jr(e)||!Jr(i)?s:s&&e.pattern===i.pattern&&e.min===i.min&&e.max===i.max&&e.step===i.step}copy({state:e}){return{state:Jr(e)?this.copyInput(e):this.copyTextArea(e),renderedControl:null}}copyInput(e){const{type:i,pattern:s,min:n,max:r,step:o}=e;return{...this.copySharedState(e),type:i,pattern:s,min:n,max:r,step:o}}copyTextArea(e){return{...this.copySharedState(e),type:e.type}}copySharedState({value:e,required:i,minLength:s,maxLength:n}){return{value:e,required:i,minLength:s,maxLength:n}}}function Jr(t){return t.type!=="textarea"}/** + */class EE extends jc{computeValidity({state:e,renderedControl:i}){let s=i;Jr(e)&&!s?(s=this.inputControl||document.createElement("input"),this.inputControl=s):s||(s=this.textAreaControl||document.createElement("textarea"),this.textAreaControl=s);const n=Jr(e)?s:null;if(n&&(n.type=e.type),s.value!==e.value&&(s.value=e.value),s.required=e.required,n){const r=e;r.pattern?n.pattern=r.pattern:n.removeAttribute("pattern"),r.min?n.min=r.min:n.removeAttribute("min"),r.max?n.max=r.max:n.removeAttribute("max"),r.step?n.step=r.step:n.removeAttribute("step")}return(e.minLength??-1)>-1?s.setAttribute("minlength",String(e.minLength)):s.removeAttribute("minlength"),(e.maxLength??-1)>-1?s.setAttribute("maxlength",String(e.maxLength)):s.removeAttribute("maxlength"),{validity:s.validity,validationMessage:s.validationMessage}}equals({state:e},{state:i}){const s=e.type===i.type&&e.value===i.value&&e.required===i.required&&e.minLength===i.minLength&&e.maxLength===i.maxLength;return!Jr(e)||!Jr(i)?s:s&&e.pattern===i.pattern&&e.min===i.min&&e.max===i.max&&e.step===i.step}copy({state:e}){return{state:Jr(e)?this.copyInput(e):this.copyTextArea(e),renderedControl:null}}copyInput(e){const{type:i,pattern:s,min:n,max:r,step:o}=e;return{...this.copySharedState(e),type:i,pattern:s,min:n,max:r,step:o}}copyTextArea(e){return{...this.copySharedState(e),type:e.type}}copySharedState({value:e,required:i,minLength:s,maxLength:n}){return{value:e,required:i,minLength:s,maxLength:n}}}function Jr(t){return t.type!=="textarea"}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 - */const EE=ga(r0($c(Lc(ma(ot)))));class _e extends EE{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){const e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){const i=this.getInput();i&&(i.valueAsNumber=e,this.value=i.value)}get valueAsDate(){const e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){const i=this.getInput();i&&(i.valueAsDate=e,this.value=i.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,i,s){this.getInputOrTextarea().setSelectionRange(e,i,s)}showPicker(){const e=this.getInput();e&&e.showPicker()}stepDown(e){const i=this.getInput();i&&(i.stepDown(e),this.value=i.value)}stepUp(e){const i=this.getInput();i&&(i.stepUp(e),this.value=i.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,i,s){e==="value"&&this.dirty||super.attributeChangedCallback(e,i,s)}render(){const e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return ce` - + */const PE=ba(a0(Nc(Bc(ya(at)))));class we extends PE{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){const e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){const i=this.getInput();i&&(i.valueAsNumber=e,this.value=i.value)}get valueAsDate(){const e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){const i=this.getInput();i&&(i.valueAsDate=e,this.value=i.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,i,s){this.getInputOrTextarea().setSelectionRange(e,i,s)}showPicker(){const e=this.getInput();e&&e.showPicker()}stepDown(e){const i=this.getInput();i&&(i.stepDown(e),this.value=i.value)}stepUp(e){const i=this.getInput();i&&(i.stepUp(e),this.value=i.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,i,s){e==="value"&&this.dirty||super.attributeChangedCallback(e,i,s)}render(){const e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return ce` + ${this.renderField()} - `}updated(e){const i=this.getInputOrTextarea().value;this.value!==i&&(this.value=i)}renderField(){return Ky`<${this.fieldTag} + `}updated(e){const i=this.getInputOrTextarea().value;this.value!==i&&(this.value=i)}renderField(){return Yy`<${this.fieldTag} class="field" count=${this.value.length} ?disabled=${this.disabled} @@ -562,24 +562,24 @@ Option 2: Install and provide the "ws" package: - `}renderInputOrTextarea(){const e={direction:this.textDirection},i=this.ariaLabel||this.label||se,s=this.autocomplete,n=(this.maxLength??-1)>-1,r=(this.minLength??-1)>-1;if(this.type==="textarea")return ce` + `}renderInputOrTextarea(){const e={direction:this.textDirection},i=this.ariaLabel||this.label||ne,s=this.autocomplete,n=(this.maxLength??-1)>-1,r=(this.minLength??-1)>-1;if(this.type==="textarea")return ce`