taskin 3.0.3 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard-dist/assets/index-BFJ7BiAJ.css +1 -0
- package/dashboard-dist/assets/index-iRSwFmq6.js +36 -0
- package/dashboard-dist/index.html +2 -2
- package/dist/index.js +2814 -1432
- package/package.json +13 -14
- package/dashboard-dist/assets/index-50gliwI5.js +0 -21
- package/dashboard-dist/assets/index-By7SaQmk.css +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/**
|
|
2
|
+
* @vue/shared v3.5.28
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function La(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ee={},Ts=[],cn=()=>{},df=()=>!1,Ti=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ra=e=>e.startsWith("onUpdate:"),Ze=Object.assign,Fa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},w1=Object.prototype.hasOwnProperty,pe=(e,t)=>w1.call(e,t),Q=Array.isArray,xs=e=>Br(e)==="[object Map]",hf=e=>Br(e)==="[object Set]",rc=e=>Br(e)==="[object Date]",ee=e=>typeof e=="function",Be=e=>typeof e=="string",qt=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",pf=e=>(ye(e)||ee(e))&&ee(e.then)&&ee(e.catch),gf=Object.prototype.toString,Br=e=>gf.call(e),E1=e=>Br(e).slice(8,-1),mf=e=>Br(e)==="[object Object]",xi=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mr=La(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ii=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},A1=/-\w/g,Gt=Ii(e=>e.replace(A1,t=>t.slice(1).toUpperCase())),S1=/\B([A-Z])/g,ms=Ii(e=>e.replace(S1,"-$1").toLowerCase()),Ci=Ii(e=>e.charAt(0).toUpperCase()+e.slice(1)),mo=Ii(e=>e?`on${Ci(e)}`:""),Wn=(e,t)=>!Object.is(e,t),vo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},vf=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},T1=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ic;const Mi=()=>ic||(ic=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function un(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Be(s)?M1(s):un(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(Be(e)||ye(e))return e}const x1=/;(?![^(]*\))/g,I1=/:([^]+)/,C1=/\/\*[^]*?\*\//g;function M1(e){const t={};return e.replace(C1,"").split(x1).forEach(n=>{if(n){const s=n.split(I1);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function _e(e){let t="";if(Be(e))t=e;else if(Q(e))for(let n=0;n<e.length;n++){const s=_e(e[n]);s&&(t+=s+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function oc(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Be(t)&&(e.class=_e(t)),n&&(e.style=un(n)),e}const D1="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",P1=La(D1);function yf(e){return!!e||e===""}function O1(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Na(e[s],t[s]);return n}function Na(e,t){if(e===t)return!0;let n=rc(e),s=rc(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=qt(e),s=qt(t),n||s)return e===t;if(n=Q(e),s=Q(t),n||s)return n&&s?O1(e,t):!1;if(n=ye(e),s=ye(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!Na(e[o],t[o]))return!1}}return String(e)===String(t)}const _f=e=>!!(e&&e.__v_isRef===!0),K=e=>Be(e)?e:e==null?"":Q(e)||ye(e)&&(e.toString===gf||!ee(e.toString))?_f(e)?K(e.value):JSON.stringify(e,bf,2):String(e),bf=(e,t)=>_f(t)?bf(e,t.value):xs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[yo(s,i)+" =>"]=r,n),{})}:hf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>yo(n))}:qt(t)?yo(t):ye(t)&&!Q(t)&&!mf(t)?String(t):t,yo=(e,t="")=>{var n;return qt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.28
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let nt;class kf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=nt,!t&&nt&&(this.index=(nt.scopes||(nt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=nt;try{return nt=this,t()}finally{nt=n}}}on(){++this._on===1&&(this.prevScope=nt,nt=this)}off(){this._on>0&&--this._on===0&&(nt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function wf(e){return new kf(e)}function Ef(){return nt}function L1(e,t=!1){nt&&nt.cleanups.push(e)}let we;const _o=new WeakSet;class Af{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,nt&&nt.active&&nt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,_o.has(this)&&(_o.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Tf(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ac(this),xf(this);const t=we,n=Wt;we=this,Wt=!0;try{return this.fn()}finally{If(this),we=t,Wt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ga(t);this.deps=this.depsTail=void 0,ac(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?_o.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qo(this)&&this.run()}get dirty(){return qo(this)}}let Sf=0,vr,yr;function Tf(e,t=!1){if(e.flags|=8,t){e.next=yr,yr=e;return}e.next=vr,vr=e}function Ua(){Sf++}function Ba(){if(--Sf>0)return;if(yr){let t=yr;for(yr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vr;){let t=vr;for(vr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function xf(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function If(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ga(s),R1(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function qo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Cf(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Cf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir)||(e.globalVersion=Ir,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qo(e))))return;e.flags|=2;const t=e.dep,n=we,s=Wt;we=e,Wt=!0;try{xf(e);const r=e.fn(e._value);(t.version===0||Wn(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{we=n,Wt=s,If(e),e.flags&=-3}}function Ga(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ga(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function R1(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Wt=!0;const Mf=[];function In(){Mf.push(Wt),Wt=!1}function Cn(){const e=Mf.pop();Wt=e===void 0?!0:e}function ac(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=we;we=void 0;try{t()}finally{we=n}}}let Ir=0;class F1{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ja{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!we||!Wt||we===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==we)n=this.activeLink=new F1(we,this),we.deps?(n.prevDep=we.depsTail,we.depsTail.nextDep=n,we.depsTail=n):we.deps=we.depsTail=n,Df(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=we.depsTail,n.nextDep=void 0,we.depsTail.nextDep=n,we.depsTail=n,we.deps===n&&(we.deps=s)}return n}trigger(t){this.version++,Ir++,this.notify(t)}notify(t){Ua();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ba()}}}function Df(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Df(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const di=new WeakMap,us=Symbol(""),Yo=Symbol(""),Cr=Symbol("");function rt(e,t,n){if(Wt&&we){let s=di.get(e);s||di.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new ja),r.map=s,r.key=n),r.track()}}function kn(e,t,n,s,r,i){const o=di.get(e);if(!o){Ir++;return}const a=l=>{l&&l.trigger()};if(Ua(),t==="clear")o.forEach(a);else{const l=Q(e),c=l&&xi(n);if(l&&n==="length"){const u=Number(s);o.forEach((h,k)=>{(k==="length"||k===Cr||!qt(k)&&k>=u)&&a(h)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),c&&a(o.get(Cr)),t){case"add":l?c&&a(o.get("length")):(a(o.get(us)),xs(e)&&a(o.get(Yo)));break;case"delete":l||(a(o.get(us)),xs(e)&&a(o.get(Yo)));break;case"set":xs(e)&&a(o.get(us));break}}Ba()}function N1(e,t){const n=di.get(e);return n&&n.get(t)}function bs(e){const t=de(e);return t===e?t:(rt(t,"iterate",Cr),It(e)?t:t.map(Yt))}function Di(e){return rt(e=de(e),"iterate",Cr),e}function jn(e,t){return Mn(e)?Rs(An(e)?Yt(t):t):Yt(t)}const U1={__proto__:null,[Symbol.iterator](){return bo(this,Symbol.iterator,e=>jn(this,e))},concat(...e){return bs(this).concat(...e.map(t=>Q(t)?bs(t):t))},entries(){return bo(this,"entries",e=>(e[1]=jn(this,e[1]),e))},every(e,t){return vn(this,"every",e,t,void 0,arguments)},filter(e,t){return vn(this,"filter",e,t,n=>n.map(s=>jn(this,s)),arguments)},find(e,t){return vn(this,"find",e,t,n=>jn(this,n),arguments)},findIndex(e,t){return vn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return vn(this,"findLast",e,t,n=>jn(this,n),arguments)},findLastIndex(e,t){return vn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return vn(this,"forEach",e,t,void 0,arguments)},includes(...e){return ko(this,"includes",e)},indexOf(...e){return ko(this,"indexOf",e)},join(e){return bs(this).join(e)},lastIndexOf(...e){return ko(this,"lastIndexOf",e)},map(e,t){return vn(this,"map",e,t,void 0,arguments)},pop(){return ar(this,"pop")},push(...e){return ar(this,"push",e)},reduce(e,...t){return lc(this,"reduce",e,t)},reduceRight(e,...t){return lc(this,"reduceRight",e,t)},shift(){return ar(this,"shift")},some(e,t){return vn(this,"some",e,t,void 0,arguments)},splice(...e){return ar(this,"splice",e)},toReversed(){return bs(this).toReversed()},toSorted(e){return bs(this).toSorted(e)},toSpliced(...e){return bs(this).toSpliced(...e)},unshift(...e){return ar(this,"unshift",e)},values(){return bo(this,"values",e=>jn(this,e))}};function bo(e,t,n){const s=Di(e),r=s[t]();return s!==e&&!It(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const B1=Array.prototype;function vn(e,t,n,s,r,i){const o=Di(e),a=o!==e&&!It(e),l=o[t];if(l!==B1[t]){const h=l.apply(e,i);return a?Yt(h):h}let c=n;o!==e&&(a?c=function(h,k){return n.call(this,jn(e,h),k,e)}:n.length>2&&(c=function(h,k){return n.call(this,h,k,e)}));const u=l.call(o,c,s);return a&&r?r(u):u}function lc(e,t,n,s){const r=Di(e);let i=n;return r!==e&&(It(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,jn(e,a),l,e)}),r[t](i,...s)}function ko(e,t,n){const s=de(e);rt(s,"iterate",Cr);const r=s[t](...n);return(r===-1||r===!1)&&Oi(n[0])?(n[0]=de(n[0]),s[t](...n)):r}function ar(e,t,n=[]){In(),Ua();const s=de(e)[t].apply(e,n);return Ba(),Cn(),s}const G1=La("__proto__,__v_isRef,__isVue"),Pf=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qt));function j1(e){qt(e)||(e=String(e));const t=de(this);return rt(t,"has",e),t.hasOwnProperty(e)}class Of{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?J1:Nf:i?Ff:Rf).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=Q(t);if(!r){let l;if(o&&(l=U1[n]))return l;if(n==="hasOwnProperty")return j1}const a=Reflect.get(t,n,Oe(t)?t:s);if((qt(n)?Pf.has(n):G1(n))||(r||rt(t,"get",n),i))return a;if(Oe(a)){const l=o&&xi(n)?a:a.value;return r&&ye(l)?Jo(l):l}return ye(a)?r?Jo(a):Pi(a):a}}class Lf extends Of{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=Q(t)&&xi(n);if(!this._isShallow){const c=Mn(i);if(!It(s)&&!Mn(s)&&(i=de(i),s=de(s)),!o&&Oe(i)&&!Oe(s))return c||(i.value=s),!0}const a=o?Number(n)<t.length:pe(t,n),l=Reflect.set(t,n,s,Oe(t)?t:r);return t===de(r)&&(a?Wn(s,i)&&kn(t,"set",n,s):kn(t,"add",n,s)),l}deleteProperty(t,n){const s=pe(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&kn(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!qt(n)||!Pf.has(n))&&rt(t,"has",n),s}ownKeys(t){return rt(t,"iterate",Q(t)?"length":us),Reflect.ownKeys(t)}}class V1 extends Of{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const $1=new Lf,H1=new V1,z1=new Lf(!0);const Xo=e=>e,zr=e=>Reflect.getPrototypeOf(e);function W1(e,t,n){return function(...s){const r=this.__v_raw,i=de(r),o=xs(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=r[e](...s),u=n?Xo:t?Rs:Yt;return!t&&rt(i,"iterate",l?Yo:us),Ze(Object.create(c),{next(){const{value:h,done:k}=c.next();return k?{value:h,done:k}:{value:a?[u(h[0]),u(h[1])]:u(h),done:k}}})}}function Wr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function K1(e,t){const n={get(r){const i=this.__v_raw,o=de(i),a=de(r);e||(Wn(r,a)&&rt(o,"get",r),rt(o,"get",a));const{has:l}=zr(o),c=t?Xo:e?Rs:Yt;if(l.call(o,r))return c(i.get(r));if(l.call(o,a))return c(i.get(a));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&rt(de(r),"iterate",us),r.size},has(r){const i=this.__v_raw,o=de(i),a=de(r);return e||(Wn(r,a)&&rt(o,"has",r),rt(o,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)},forEach(r,i){const o=this,a=o.__v_raw,l=de(a),c=t?Xo:e?Rs:Yt;return!e&&rt(l,"iterate",us),a.forEach((u,h)=>r.call(i,c(u),c(h),o))}};return Ze(n,e?{add:Wr("add"),set:Wr("set"),delete:Wr("delete"),clear:Wr("clear")}:{add(r){!t&&!It(r)&&!Mn(r)&&(r=de(r));const i=de(this);return zr(i).has.call(i,r)||(i.add(r),kn(i,"add",r,r)),this},set(r,i){!t&&!It(i)&&!Mn(i)&&(i=de(i));const o=de(this),{has:a,get:l}=zr(o);let c=a.call(o,r);c||(r=de(r),c=a.call(o,r));const u=l.call(o,r);return o.set(r,i),c?Wn(i,u)&&kn(o,"set",r,i):kn(o,"add",r,i),this},delete(r){const i=de(this),{has:o,get:a}=zr(i);let l=o.call(i,r);l||(r=de(r),l=o.call(i,r)),a&&a.call(i,r);const c=i.delete(r);return l&&kn(i,"delete",r,void 0),c},clear(){const r=de(this),i=r.size!==0,o=r.clear();return i&&kn(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=W1(r,e,t)}),n}function Va(e,t){const n=K1(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(pe(n,r)&&r in s?n:s,r,i)}const q1={get:Va(!1,!1)},Y1={get:Va(!1,!0)},X1={get:Va(!0,!1)};const Rf=new WeakMap,Ff=new WeakMap,Nf=new WeakMap,J1=new WeakMap;function Q1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Z1(e){return e.__v_skip||!Object.isExtensible(e)?0:Q1(E1(e))}function Pi(e){return Mn(e)?e:$a(e,!1,$1,q1,Rf)}function ep(e){return $a(e,!1,z1,Y1,Ff)}function Jo(e){return $a(e,!0,H1,X1,Nf)}function $a(e,t,n,s,r){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Z1(e);if(i===0)return e;const o=r.get(e);if(o)return o;const a=new Proxy(e,i===2?s:n);return r.set(e,a),a}function An(e){return Mn(e)?An(e.__v_raw):!!(e&&e.__v_isReactive)}function Mn(e){return!!(e&&e.__v_isReadonly)}function It(e){return!!(e&&e.__v_isShallow)}function Oi(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Ha(e){return!pe(e,"__v_skip")&&Object.isExtensible(e)&&vf(e,"__v_skip",!0),e}const Yt=e=>ye(e)?Pi(e):e,Rs=e=>ye(e)?Jo(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function ve(e){return Uf(e,!1)}function wo(e){return Uf(e,!0)}function Uf(e,t){return Oe(e)?e:new tp(e,t)}class tp{constructor(t,n){this.dep=new ja,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:Yt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||It(t)||Mn(t);t=s?t:de(t),Wn(t,n)&&(this._rawValue=t,this._value=s?t:Yt(t),this.dep.trigger())}}function D(e){return Oe(e)?e.value:e}const np={get:(e,t,n)=>t==="__v_raw"?e:D(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Oe(r)&&!Oe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Bf(e){return An(e)?e:new Proxy(e,np)}function sp(e){const t=Q(e)?new Array(e.length):{};for(const n in e)t[n]=jf(e,n);return t}class rp{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=de(t);let r=!0,i=t;if(!Q(t)||!xi(String(n)))do r=!Oi(i)||It(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=D(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Oe(this._raw[this._key])){const n=this._object[this._key];if(Oe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return N1(this._raw,this._key)}}class ip{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Gf(e,t,n){return Oe(e)?e:ee(e)?new ip(e):ye(e)&&arguments.length>1?jf(e,t,n):ve(e)}function jf(e,t,n){return new rp(e,t,n)}class op{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ja(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&we!==this)return Tf(this,!0),!0}get value(){const t=this.dep.track();return Cf(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ap(e,t,n=!1){let s,r;return ee(e)?s=e:(s=e.get,r=e.set),new op(s,r,n)}const Kr={},hi=new WeakMap;let os;function lp(e,t=!1,n=os){if(n){let s=hi.get(n);s||hi.set(n,s=[]),s.push(e)}}function cp(e,t,n=Ee){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:a,call:l}=n,c=L=>r?L:It(L)||r===!1||r===0?$n(L,1):$n(L);let u,h,k,I,C=!1,M=!1;if(Oe(e)?(h=()=>e.value,C=It(e)):An(e)?(h=()=>c(e),C=!0):Q(e)?(M=!0,C=e.some(L=>An(L)||It(L)),h=()=>e.map(L=>{if(Oe(L))return L.value;if(An(L))return c(L);if(ee(L))return l?l(L,2):L()})):ee(e)?t?h=l?()=>l(e,2):e:h=()=>{if(k){In();try{k()}finally{Cn()}}const L=os;os=u;try{return l?l(e,3,[I]):e(I)}finally{os=L}}:h=cn,t&&r){const L=h,Z=r===!0?1/0:r;h=()=>$n(L(),Z)}const b=Ef(),v=()=>{u.stop(),b&&b.active&&Fa(b.effects,u)};if(i&&t){const L=t;t=(...Z)=>{L(...Z),v()}}let w=M?new Array(e.length).fill(Kr):Kr;const F=L=>{if(!(!(u.flags&1)||!u.dirty&&!L))if(t){const Z=u.run();if(r||C||(M?Z.some((N,Y)=>Wn(N,w[Y])):Wn(Z,w))){k&&k();const N=os;os=u;try{const Y=[Z,w===Kr?void 0:M&&w[0]===Kr?[]:w,I];w=Z,l?l(t,3,Y):t(...Y)}finally{os=N}}}else u.run()};return a&&a(F),u=new Af(h),u.scheduler=o?()=>o(F,!1):F,I=L=>lp(L,!1,u),k=u.onStop=()=>{const L=hi.get(u);if(L){if(l)l(L,4);else for(const Z of L)Z();hi.delete(u)}},t?s?F(!0):w=u.run():o?o(F.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function $n(e,t=1/0,n){if(t<=0||!ye(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Oe(e))$n(e.value,t,n);else if(Q(e))for(let s=0;s<e.length;s++)$n(e[s],t,n);else if(hf(e)||xs(e))e.forEach(s=>{$n(s,t,n)});else if(mf(e)){for(const s in e)$n(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&$n(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.28
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function Gr(e,t,n,s){try{return s?e(...s):e()}catch(r){Li(r,t,n)}}function fn(e,t,n,s){if(ee(e)){const r=Gr(e,t,n,s);return r&&pf(r)&&r.catch(i=>{Li(i,t,n)}),r}if(Q(e)){const r=[];for(let i=0;i<e.length;i++)r.push(fn(e[i],t,n,s));return r}}function Li(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Ee;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,l,c)===!1)return}a=a.parent}if(i){In(),Gr(i,null,10,[e,l,c]),Cn();return}}up(e,n,r,s,o)}function up(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const lt=[];let on=-1;const Is=[];let Vn=null,As=0;const Vf=Promise.resolve();let pi=null;function $f(e){const t=pi||Vf;return e?t.then(this?e.bind(this):e):t}function fp(e){let t=on+1,n=lt.length;for(;t<n;){const s=t+n>>>1,r=lt[s],i=Mr(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function za(e){if(!(e.flags&1)){const t=Mr(e),n=lt[lt.length-1];!n||!(e.flags&2)&&t>=Mr(n)?lt.push(e):lt.splice(fp(t),0,e),e.flags|=1,Hf()}}function Hf(){pi||(pi=Vf.then(Wf))}function dp(e){Q(e)?Is.push(...e):Vn&&e.id===-1?Vn.splice(As+1,0,e):e.flags&1||(Is.push(e),e.flags|=1),Hf()}function cc(e,t,n=on+1){for(;n<lt.length;n++){const s=lt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;lt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function zf(e){if(Is.length){const t=[...new Set(Is)].sort((n,s)=>Mr(n)-Mr(s));if(Is.length=0,Vn){Vn.push(...t);return}for(Vn=t,As=0;As<Vn.length;As++){const n=Vn[As];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Vn=null,As=0}}const Mr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Wf(e){try{for(on=0;on<lt.length;on++){const t=lt[on];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Gr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;on<lt.length;on++){const t=lt[on];t&&(t.flags&=-2)}on=-1,lt.length=0,zf(),pi=null,(lt.length||Is.length)&&Wf()}}let ct=null,Kf=null;function gi(e){const t=ct;return ct=e,Kf=e&&e.type.__scopeId||null,t}function _r(e,t=ct,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ac(-1);const i=gi(t);let o;try{o=e(...r)}finally{gi(i),s._d&&Ac(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function ss(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[s];l&&(In(),fn(l,n,8,[e.el,a,e,t]),Cn())}}function qf(e,t){if(it){let n=it.provides;const s=it.parent&&it.parent.provides;s===n&&(n=it.provides=Object.create(s)),n[e]=t}}function Cs(e,t,n=!1){const s=kd();if(s||fs){let r=fs?fs._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ee(t)?t.call(s&&s.proxy):t}}function hp(){return!!(kd()||fs)}const pp=Symbol.for("v-scx"),gp=()=>Cs(pp);function Kn(e,t,n){return Yf(e,t,n)}function Yf(e,t,n=Ee){const{immediate:s,deep:r,flush:i,once:o}=n,a=Ze({},n),l=t&&s||!t&&i!=="post";let c;if(Pr){if(i==="sync"){const I=gp();c=I.__watcherHandles||(I.__watcherHandles=[])}else if(!l){const I=()=>{};return I.stop=cn,I.resume=cn,I.pause=cn,I}}const u=it;a.call=(I,C,M)=>fn(I,u,C,M);let h=!1;i==="post"?a.scheduler=I=>{tt(I,u&&u.suspense)}:i!=="sync"&&(h=!0,a.scheduler=(I,C)=>{C?I():za(I)}),a.augmentJob=I=>{t&&(I.flags|=4),h&&(I.flags|=2,u&&(I.id=u.uid,I.i=u))};const k=cp(e,t,a);return Pr&&(c?c.push(k):l&&k()),k}function mp(e,t,n){const s=this.proxy,r=Be(e)?e.includes(".")?Xf(s,e):()=>s[e]:e.bind(s,s);let i;ee(t)?i=t:(i=t.handler,n=t);const o=jr(this),a=Yf(r,i.bind(s),n);return o(),a}function Xf(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Jf=Symbol("_vte"),vp=e=>e.__isTeleport,br=e=>e&&(e.disabled||e.disabled===""),uc=e=>e&&(e.defer||e.defer===""),fc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,dc=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Qo=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},Qf={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,a,l,c){const{mc:u,pc:h,pbc:k,o:{insert:I,querySelector:C,createText:M,createComment:b}}=c,v=br(t.props);let{shapeFlag:w,children:F,dynamicChildren:L}=t;if(e==null){const Z=t.el=M(""),N=t.anchor=M("");I(Z,n,s),I(N,n,s);const Y=(j,X)=>{w&16&&u(F,j,X,r,i,o,a,l)},B=()=>{const j=t.target=Qo(t.props,C),X=Zo(j,t,M,I);j&&(o!=="svg"&&fc(j)?o="svg":o!=="mathml"&&dc(j)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(j),v||(Y(j,X),ei(t,!1)))};v&&(Y(n,N),ei(t,!0)),uc(t.props)?(t.el.__isMounted=!1,tt(()=>{B(),delete t.el.__isMounted},i)):B()}else{if(uc(t.props)&&e.el.__isMounted===!1){tt(()=>{Qf.process(e,t,n,s,r,i,o,a,l,c)},i);return}t.el=e.el,t.targetStart=e.targetStart;const Z=t.anchor=e.anchor,N=t.target=e.target,Y=t.targetAnchor=e.targetAnchor,B=br(e.props),j=B?n:N,X=B?Z:Y;if(o==="svg"||fc(N)?o="svg":(o==="mathml"||dc(N))&&(o="mathml"),L?(k(e.dynamicChildren,L,j,r,i,o,a),Xa(e,t,!0)):l||h(e,t,j,X,r,i,o,a,!1),v)B?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):qr(t,n,Z,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Pe=t.target=Qo(t.props,C);Pe&&qr(t,Pe,null,c,0)}else B&&qr(t,N,Y,c,1);ei(t,v)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:h,props:k}=e;if(h&&(r(c),r(u)),i&&r(l),o&16){const I=i||!br(k);for(let C=0;C<a.length;C++){const M=a[C];s(M,t,n,I,!!M.dynamicChildren)}}},move:qr,hydrate:yp};function qr(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:l,children:c,props:u}=e,h=i===2;if(h&&s(o,t,n),(!h||br(u))&&l&16)for(let k=0;k<c.length;k++)r(c[k],t,n,2);h&&s(a,t,n)}function yp(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:c,createText:u}},h){function k(b,v){let w=v;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,b._lpa=t.targetAnchor&&o(t.targetAnchor);break}}w=o(w)}}function I(b,v){v.anchor=h(o(b),v,a(b),n,s,r,i)}const C=t.target=Qo(t.props,l),M=br(t.props);if(C){const b=C._lpa||C.firstChild;t.shapeFlag&16&&(M?(I(e,t),k(C,b),t.targetAnchor||Zo(C,t,u,c,a(e)===C?e:null)):(t.anchor=o(e),k(C,b),t.targetAnchor||Zo(C,t,u,c),h(b&&o(b),t,C,n,s,r,i))),ei(t,M)}else M&&t.shapeFlag&16&&(I(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const _p=Qf;function ei(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Zo(e,t,n,s,r=null){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[Jf]=o,e&&(s(i,e,r),s(o,e,r)),o}const bp=Symbol("_leaveCb");function Wa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Wa(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ge(e,t){return ee(e)?Ze({name:e.name},t,{setup:e}):e}function Zf(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function hc(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const mi=new WeakMap;function kr(e,t,n,s,r=!1){if(Q(e)){e.forEach((M,b)=>kr(M,t&&(Q(t)?t[b]:t),n,s,r));return}if(Ms(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&kr(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Za(s.component):s.el,o=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ee?a.refs={}:a.refs,h=a.setupState,k=de(h),I=h===Ee?df:M=>hc(u,M)?!1:pe(k,M),C=(M,b)=>!(b&&hc(u,b));if(c!=null&&c!==l){if(pc(t),Be(c))u[c]=null,I(c)&&(h[c]=null);else if(Oe(c)){const M=t;C(c,M.k)&&(c.value=null),M.k&&(u[M.k]=null)}}if(ee(l))Gr(l,a,12,[o,u]);else{const M=Be(l),b=Oe(l);if(M||b){const v=()=>{if(e.f){const w=M?I(l)?h[l]:u[l]:C()||!e.k?l.value:u[e.k];if(r)Q(w)&&Fa(w,i);else if(Q(w))w.includes(i)||w.push(i);else if(M)u[l]=[i],I(l)&&(h[l]=u[l]);else{const F=[i];C(l,e.k)&&(l.value=F),e.k&&(u[e.k]=F)}}else M?(u[l]=o,I(l)&&(h[l]=o)):b&&(C(l,e.k)&&(l.value=o),e.k&&(u[e.k]=o))};if(o){const w=()=>{v(),mi.delete(e)};w.id=-1,mi.set(e,w),tt(w,n)}else pc(e),v()}}}function pc(e){const t=mi.get(e);t&&(t.flags|=8,mi.delete(e))}Mi().requestIdleCallback;Mi().cancelIdleCallback;const Ms=e=>!!e.type.__asyncLoader,ed=e=>e.type.__isKeepAlive;function kp(e,t){td(e,"a",t)}function wp(e,t){td(e,"da",t)}function td(e,t,n=it){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ri(t,s,n),n){let r=n.parent;for(;r&&r.parent;)ed(r.parent.vnode)&&Ep(s,t,n,r),r=r.parent}}function Ep(e,t,n,s){const r=Ri(t,e,s,!0);qs(()=>{Fa(s[t],r)},n)}function Ri(e,t,n=it,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{In();const a=jr(n),l=fn(t,n,e,o);return a(),Cn(),l});return s?r.unshift(i):r.push(i),i}}const Ln=e=>(t,n=it)=>{(!Pr||e==="sp")&&Ri(e,(...s)=>t(...s),n)},Ap=Ln("bm"),Ka=Ln("m"),Sp=Ln("bu"),Tp=Ln("u"),xp=Ln("bum"),qs=Ln("um"),Ip=Ln("sp"),Cp=Ln("rtg"),Mp=Ln("rtc");function Dp(e,t=it){Ri("ec",e,t)}const Pp="components";function Op(e,t){return Rp(Pp,e,!0,t)||e}const Lp=Symbol.for("v-ndc");function Rp(e,t,n=!0,s=!1){const r=ct||it;if(r){const i=r.type;{const a=y2(i,!1);if(a&&(a===t||a===Gt(t)||a===Ci(Gt(t))))return i}const o=gc(r[e]||i[e],t)||gc(r.appContext[e],t);return!o&&s?i:o}}function gc(e,t){return e&&(e[t]||e[Gt(t)]||e[Ci(Gt(t))])}function Kt(e,t,n,s){let r;const i=n,o=Q(e);if(o||Be(e)){const a=o&&An(e);let l=!1,c=!1;a&&(l=!It(e),c=Mn(e),e=Di(e)),r=new Array(e.length);for(let u=0,h=e.length;u<h;u++)r[u]=t(l?c?Rs(Yt(e[u])):Yt(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,i)}else if(ye(e))if(e[Symbol.iterator])r=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);r=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];r[l]=t(e[u],u,l,i)}}else r=[];return r}function Ds(e,t,n={},s,r){if(ct.ce||ct.parent&&Ms(ct.parent)&&ct.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),x(),Qe(Ae,null,[Ue("slot",n,s&&s())],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),x();const o=i&&nd(i(n)),a=n.key||o&&o.key,l=Qe(Ae,{key:(a&&!qt(a)?a:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),l}function nd(e){return e.some(t=>Ja(t)?!(t.type===Dn||t.type===Ae&&!nd(t.children)):!0)?e:null}const ea=e=>e?wd(e)?Za(e):ea(e.parent):null,wr=Ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ea(e.parent),$root:e=>ea(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>rd(e),$forceUpdate:e=>e.f||(e.f=()=>{za(e.update)}),$nextTick:e=>e.n||(e.n=$f.bind(e.proxy)),$watch:e=>mp.bind(e)}),Eo=(e,t)=>e!==Ee&&!e.__isScriptSetup&&pe(e,t),Fp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const k=o[t];if(k!==void 0)switch(k){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Eo(s,t))return o[t]=1,s[t];if(r!==Ee&&pe(r,t))return o[t]=2,r[t];if(pe(i,t))return o[t]=3,i[t];if(n!==Ee&&pe(n,t))return o[t]=4,n[t];ta&&(o[t]=0)}}const c=wr[t];let u,h;if(c)return t==="$attrs"&&rt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Ee&&pe(n,t))return o[t]=4,n[t];if(h=l.config.globalProperties,pe(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Eo(r,t)?(r[t]=n,!0):s!==Ee&&pe(s,t)?(s[t]=n,!0):pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},a){let l;return!!(n[a]||e!==Ee&&a[0]!=="$"&&pe(e,a)||Eo(t,a)||pe(i,a)||pe(s,a)||pe(wr,a)||pe(r.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function mc(e){return Q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ta=!0;function Np(e){const t=rd(e),n=e.proxy,s=e.ctx;ta=!1,t.beforeCreate&&vc(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:k,beforeUpdate:I,updated:C,activated:M,deactivated:b,beforeDestroy:v,beforeUnmount:w,destroyed:F,unmounted:L,render:Z,renderTracked:N,renderTriggered:Y,errorCaptured:B,serverPrefetch:j,expose:X,inheritAttrs:Pe,components:et,directives:ht,filters:ot}=t;if(c&&Up(c,s,null),o)for(const te in o){const J=o[te];ee(J)&&(s[te]=J.bind(n))}if(r){const te=r.call(n,n);ye(te)&&(e.data=Pi(te))}if(ta=!0,i)for(const te in i){const J=i[te],kt=ee(J)?J.bind(n,n):ee(J.get)?J.get.bind(n,n):cn,gn=!ee(J)&&ee(J.set)?J.set.bind(n):cn,wt=ae({get:kt,set:gn});Object.defineProperty(s,te,{enumerable:!0,configurable:!0,get:()=>wt.value,set:pt=>wt.value=pt})}if(a)for(const te in a)sd(a[te],s,n,te);if(l){const te=ee(l)?l.call(n):l;Reflect.ownKeys(te).forEach(J=>{qf(J,te[J])})}u&&vc(u,e,"c");function be(te,J){Q(J)?J.forEach(kt=>te(kt.bind(n))):J&&te(J.bind(n))}if(be(Ap,h),be(Ka,k),be(Sp,I),be(Tp,C),be(kp,M),be(wp,b),be(Dp,B),be(Mp,N),be(Cp,Y),be(xp,w),be(qs,L),be(Ip,j),Q(X))if(X.length){const te=e.exposed||(e.exposed={});X.forEach(J=>{Object.defineProperty(te,J,{get:()=>n[J],set:kt=>n[J]=kt,enumerable:!0})})}else e.exposed||(e.exposed={});Z&&e.render===cn&&(e.render=Z),Pe!=null&&(e.inheritAttrs=Pe),et&&(e.components=et),ht&&(e.directives=ht),j&&Zf(e)}function Up(e,t,n=cn){Q(e)&&(e=na(e));for(const s in e){const r=e[s];let i;ye(r)?"default"in r?i=Cs(r.from||s,r.default,!0):i=Cs(r.from||s):i=Cs(r),Oe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function vc(e,t,n){fn(Q(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function sd(e,t,n,s){let r=s.includes(".")?Xf(n,s):()=>n[s];if(Be(e)){const i=t[e];ee(i)&&Kn(r,i)}else if(ee(e))Kn(r,e.bind(n));else if(ye(e))if(Q(e))e.forEach(i=>sd(i,t,n,s));else{const i=ee(e.handler)?e.handler.bind(n):t[e.handler];ee(i)&&Kn(r,i,e)}}function rd(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(c=>vi(l,c,o,!0)),vi(l,t,o)),ye(t)&&i.set(t,l),l}function vi(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&vi(e,i,n,!0),r&&r.forEach(o=>vi(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Bp[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Bp={data:yc,props:_c,emits:_c,methods:hr,computed:hr,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:hr,directives:hr,watch:jp,provide:yc,inject:Gp};function yc(e,t){return t?e?function(){return Ze(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function Gp(e,t){return hr(na(e),na(t))}function na(e){if(Q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function at(e,t){return e?[...new Set([].concat(e,t))]:t}function hr(e,t){return e?Ze(Object.create(null),e,t):t}function _c(e,t){return e?Q(e)&&Q(t)?[...new Set([...e,...t])]:Ze(Object.create(null),mc(e),mc(t??{})):t}function jp(e,t){if(!e)return t;if(!t)return e;const n=Ze(Object.create(null),e);for(const s in t)n[s]=at(e[s],t[s]);return n}function id(){return{app:null,config:{isNativeTag:df,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Vp=0;function $p(e,t){return function(s,r=null){ee(s)||(s=Ze({},s)),r!=null&&!ye(r)&&(r=null);const i=id(),o=new WeakSet,a=[];let l=!1;const c=i.app={_uid:Vp++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:b2,get config(){return i.config},set config(u){},use(u,...h){return o.has(u)||(u&&ee(u.install)?(o.add(u),u.install(c,...h)):ee(u)&&(o.add(u),u(c,...h))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,h){return h?(i.components[u]=h,c):i.components[u]},directive(u,h){return h?(i.directives[u]=h,c):i.directives[u]},mount(u,h,k){if(!l){const I=c._ceVNode||Ue(s,r);return I.appContext=i,k===!0?k="svg":k===!1&&(k=void 0),e(I,u,k),l=!0,c._container=u,u.__vue_app__=c,Za(I.component)}},onUnmount(u){a.push(u)},unmount(){l&&(fn(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return i.provides[u]=h,c},runWithContext(u){const h=fs;fs=c;try{return u()}finally{fs=h}}};return c}}let fs=null;const Hp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Gt(t)}Modifiers`]||e[`${ms(t)}Modifiers`];function zp(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Ee;let r=n;const i=t.startsWith("update:"),o=i&&Hp(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>Be(u)?u.trim():u)),o.number&&(r=n.map(T1)));let a,l=s[a=mo(t)]||s[a=mo(Gt(t))];!l&&i&&(l=s[a=mo(ms(t))]),l&&fn(l,e,6,r);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,fn(c,e,6,r)}}const Wp=new WeakMap;function od(e,t,n=!1){const s=n?Wp:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},a=!1;if(!ee(e)){const l=c=>{const u=od(c,t,!0);u&&(a=!0,Ze(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ye(e)&&s.set(e,null),null):(Q(i)?i.forEach(l=>o[l]=null):Ze(o,i),ye(e)&&s.set(e,o),o)}function Fi(e,t){return!e||!Ti(t)?!1:(t=t.slice(2).replace(/Once$/,""),pe(e,t[0].toLowerCase()+t.slice(1))||pe(e,ms(t))||pe(e,t))}function bc(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:k,setupState:I,ctx:C,inheritAttrs:M}=e,b=gi(e);let v,w;try{if(n.shapeFlag&4){const L=r||s,Z=L;v=an(c.call(Z,L,u,h,I,k,C)),w=a}else{const L=t;v=an(L.length>1?L(h,{attrs:a,slots:o,emit:l}):L(h,null)),w=t.props?a:Kp(a)}}catch(L){Er.length=0,Li(L,e,1),v=Ue(Dn)}let F=v;if(w&&M!==!1){const L=Object.keys(w),{shapeFlag:Z}=F;L.length&&Z&7&&(i&&L.some(Ra)&&(w=qp(w,i)),F=Fs(F,w,!1,!0))}return n.dirs&&(F=Fs(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&Wa(F,n.transition),v=F,gi(b),v}const Kp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ti(n))&&((t||(t={}))[n]=e[n]);return t},qp=(e,t)=>{const n={};for(const s in e)(!Ra(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Yp(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?kc(s,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const k=u[h];if(ad(o,s,k)&&!Fi(c,k))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?kc(s,o,c):!0:!!o;return!1}function kc(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(ad(t,e,i)&&!Fi(n,i))return!0}return!1}function ad(e,t,n){const s=e[n],r=t[n];return n==="style"&&ye(s)&&ye(r)?!Na(s,r):s!==r}function Xp({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const ld={},cd=()=>Object.create(ld),ud=e=>Object.getPrototypeOf(e)===ld;function Jp(e,t,n,s=!1){const r={},i=cd();e.propsDefaults=Object.create(null),fd(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:ep(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Qp(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,a=de(r),[l]=e.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let k=u[h];if(Fi(e.emitsOptions,k))continue;const I=t[k];if(l)if(pe(i,k))I!==i[k]&&(i[k]=I,c=!0);else{const C=Gt(k);r[C]=sa(l,a,C,I,e,!1)}else I!==i[k]&&(i[k]=I,c=!0)}}}else{fd(e,t,r,i)&&(c=!0);let u;for(const h in a)(!t||!pe(t,h)&&((u=ms(h))===h||!pe(t,u)))&&(l?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=sa(l,a,h,void 0,e,!0)):delete r[h]);if(i!==a)for(const h in i)(!t||!pe(t,h))&&(delete i[h],c=!0)}c&&kn(e.attrs,"set","")}function fd(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(mr(l))continue;const c=t[l];let u;r&&pe(r,u=Gt(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:Fi(e.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,o=!0)}if(i){const l=de(n),c=a||Ee;for(let u=0;u<i.length;u++){const h=i[u];n[h]=sa(r,l,h,c[h],e,!pe(c,h))}}return o}function sa(e,t,n,s,r,i){const o=e[n];if(o!=null){const a=pe(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ee(l)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=jr(r);s=c[n]=l.call(null,t),u()}}else s=l;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!a?s=!1:o[1]&&(s===""||s===ms(n))&&(s=!0))}return s}const Zp=new WeakMap;function dd(e,t,n=!1){const s=n?Zp:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},a=[];let l=!1;if(!ee(e)){const u=h=>{l=!0;const[k,I]=dd(h,t,!0);Ze(o,k),I&&a.push(...I)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ye(e)&&s.set(e,Ts),Ts;if(Q(i))for(let u=0;u<i.length;u++){const h=Gt(i[u]);wc(h)&&(o[h]=Ee)}else if(i)for(const u in i){const h=Gt(u);if(wc(h)){const k=i[u],I=o[h]=Q(k)||ee(k)?{type:k}:Ze({},k),C=I.type;let M=!1,b=!0;if(Q(C))for(let v=0;v<C.length;++v){const w=C[v],F=ee(w)&&w.name;if(F==="Boolean"){M=!0;break}else F==="String"&&(b=!1)}else M=ee(C)&&C.name==="Boolean";I[0]=M,I[1]=b,(M||pe(I,"default"))&&a.push(h)}}const c=[o,a];return ye(e)&&s.set(e,c),c}function wc(e){return e[0]!=="$"&&!mr(e)}const qa=e=>e==="_"||e==="_ctx"||e==="$stable",Ya=e=>Q(e)?e.map(an):[an(e)],e2=(e,t,n)=>{if(t._n)return t;const s=_r((...r)=>Ya(t(...r)),n);return s._c=!1,s},hd=(e,t,n)=>{const s=e._ctx;for(const r in e){if(qa(r))continue;const i=e[r];if(ee(i))t[r]=e2(r,i,s);else if(i!=null){const o=Ya(i);t[r]=()=>o}}},pd=(e,t)=>{const n=Ya(t);e.slots.default=()=>n},gd=(e,t,n)=>{for(const s in t)(n||!qa(s))&&(e[s]=t[s])},t2=(e,t,n)=>{const s=e.slots=cd();if(e.vnode.shapeFlag&32){const r=t._;r?(gd(s,t,n),n&&vf(s,"_",r,!0)):hd(t,s)}else t&&pd(e,t)},n2=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Ee;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:gd(r,t,n):(i=!t.$stable,hd(t,r)),o=t}else t&&(pd(e,t),o={default:1});if(i)for(const a in r)!qa(a)&&o[a]==null&&delete r[a]},tt=a2;function s2(e){return r2(e)}function r2(e,t){const n=Mi();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:k,setScopeId:I=cn,insertStaticContent:C}=e,M=(d,f,p,y=null,g=null,m=null,E=void 0,A=null,S=!!f.dynamicChildren)=>{if(d===f)return;d&&!lr(d,f)&&(y=Nn(d),pt(d,g,m,!0),d=null),f.patchFlag===-2&&(S=!1,f.dynamicChildren=null);const{type:T,ref:$,shapeFlag:O}=f;switch(T){case Ni:b(d,f,p,y);break;case Dn:v(d,f,p,y);break;case So:d==null&&w(f,p,y,E);break;case Ae:et(d,f,p,y,g,m,E,A,S);break;default:O&1?Z(d,f,p,y,g,m,E,A,S):O&6?ht(d,f,p,y,g,m,E,A,S):(O&64||O&128)&&T.process(d,f,p,y,g,m,E,A,S,oe)}$!=null&&g?kr($,d&&d.ref,m,f||d,!f):$==null&&d&&d.ref!=null&&kr(d.ref,null,m,d,!0)},b=(d,f,p,y)=>{if(d==null)s(f.el=a(f.children),p,y);else{const g=f.el=d.el;f.children!==d.children&&c(g,f.children)}},v=(d,f,p,y)=>{d==null?s(f.el=l(f.children||""),p,y):f.el=d.el},w=(d,f,p,y)=>{[d.el,d.anchor]=C(d.children,f,p,y,d.el,d.anchor)},F=({el:d,anchor:f},p,y)=>{let g;for(;d&&d!==f;)g=k(d),s(d,p,y),d=g;s(f,p,y)},L=({el:d,anchor:f})=>{let p;for(;d&&d!==f;)p=k(d),r(d),d=p;r(f)},Z=(d,f,p,y,g,m,E,A,S)=>{if(f.type==="svg"?E="svg":f.type==="math"&&(E="mathml"),d==null)N(f,p,y,g,m,E,A,S);else{const T=d.el&&d.el._isVueCE?d.el:null;try{T&&T._beginPatch(),j(d,f,g,m,E,A,S)}finally{T&&T._endPatch()}}},N=(d,f,p,y,g,m,E,A)=>{let S,T;const{props:$,shapeFlag:O,transition:U,dirs:W}=d;if(S=d.el=o(d.type,m,$&&$.is,$),O&8?u(S,d.children):O&16&&B(d.children,S,null,y,g,Ao(d,m),E,A),W&&ss(d,null,y,"created"),Y(S,d,d.scopeId,E,y),$){for(const se in $)se!=="value"&&!mr(se)&&i(S,se,null,$[se],m,y);"value"in $&&i(S,"value",null,$.value,m),(T=$.onVnodeBeforeMount)&&tn(T,y,d)}W&&ss(d,null,y,"beforeMount");const ie=i2(g,U);ie&&U.beforeEnter(S),s(S,f,p),((T=$&&$.onVnodeMounted)||ie||W)&&tt(()=>{T&&tn(T,y,d),ie&&U.enter(S),W&&ss(d,null,y,"mounted")},g)},Y=(d,f,p,y,g)=>{if(p&&I(d,p),y)for(let m=0;m<y.length;m++)I(d,y[m]);if(g){let m=g.subTree;if(f===m||yd(m.type)&&(m.ssContent===f||m.ssFallback===f)){const E=g.vnode;Y(d,E,E.scopeId,E.slotScopeIds,g.parent)}}},B=(d,f,p,y,g,m,E,A,S=0)=>{for(let T=S;T<d.length;T++){const $=d[T]=A?_n(d[T]):an(d[T]);M(null,$,f,p,y,g,m,E,A)}},j=(d,f,p,y,g,m,E)=>{const A=f.el=d.el;let{patchFlag:S,dynamicChildren:T,dirs:$}=f;S|=d.patchFlag&16;const O=d.props||Ee,U=f.props||Ee;let W;if(p&&rs(p,!1),(W=U.onVnodeBeforeUpdate)&&tn(W,p,f,d),$&&ss(f,d,p,"beforeUpdate"),p&&rs(p,!0),(O.innerHTML&&U.innerHTML==null||O.textContent&&U.textContent==null)&&u(A,""),T?X(d.dynamicChildren,T,A,p,y,Ao(f,g),m):E||J(d,f,A,null,p,y,Ao(f,g),m,!1),S>0){if(S&16)Pe(A,O,U,p,g);else if(S&2&&O.class!==U.class&&i(A,"class",null,U.class,g),S&4&&i(A,"style",O.style,U.style,g),S&8){const ie=f.dynamicProps;for(let se=0;se<ie.length;se++){const ne=ie[se],$e=O[ne],He=U[ne];(He!==$e||ne==="value")&&i(A,ne,$e,He,g,p)}}S&1&&d.children!==f.children&&u(A,f.children)}else!E&&T==null&&Pe(A,O,U,p,g);((W=U.onVnodeUpdated)||$)&&tt(()=>{W&&tn(W,p,f,d),$&&ss(f,d,p,"updated")},y)},X=(d,f,p,y,g,m,E)=>{for(let A=0;A<f.length;A++){const S=d[A],T=f[A],$=S.el&&(S.type===Ae||!lr(S,T)||S.shapeFlag&198)?h(S.el):p;M(S,T,$,null,y,g,m,E,!0)}},Pe=(d,f,p,y,g)=>{if(f!==p){if(f!==Ee)for(const m in f)!mr(m)&&!(m in p)&&i(d,m,f[m],null,g,y);for(const m in p){if(mr(m))continue;const E=p[m],A=f[m];E!==A&&m!=="value"&&i(d,m,A,E,g,y)}"value"in p&&i(d,"value",f.value,p.value,g)}},et=(d,f,p,y,g,m,E,A,S)=>{const T=f.el=d?d.el:a(""),$=f.anchor=d?d.anchor:a("");let{patchFlag:O,dynamicChildren:U,slotScopeIds:W}=f;W&&(A=A?A.concat(W):W),d==null?(s(T,p,y),s($,p,y),B(f.children||[],p,$,g,m,E,A,S)):O>0&&O&64&&U&&d.dynamicChildren&&d.dynamicChildren.length===U.length?(X(d.dynamicChildren,U,p,g,m,E,A),(f.key!=null||g&&f===g.subTree)&&Xa(d,f,!0)):J(d,f,p,$,g,m,E,A,S)},ht=(d,f,p,y,g,m,E,A,S)=>{f.slotScopeIds=A,d==null?f.shapeFlag&512?g.ctx.activate(f,p,y,E,S):ot(f,p,y,g,m,E,S):Fn(d,f,S)},ot=(d,f,p,y,g,m,E)=>{const A=d.component=h2(d,y,g);if(ed(d)&&(A.ctx.renderer=oe),p2(A,!1,E),A.asyncDep){if(g&&g.registerDep(A,be,E),!d.el){const S=A.subTree=Ue(Dn);v(null,S,f,p),d.placeholder=S.el}}else be(A,d,f,p,g,m,E)},Fn=(d,f,p)=>{const y=f.component=d.component;if(Yp(d,f,p))if(y.asyncDep&&!y.asyncResolved){te(y,f,p);return}else y.next=f,y.update();else f.el=d.el,y.vnode=f},be=(d,f,p,y,g,m,E)=>{const A=()=>{if(d.isMounted){let{next:O,bu:U,u:W,parent:ie,vnode:se}=d;{const gt=md(d);if(gt){O&&(O.el=se.el,te(d,O,E)),gt.asyncDep.then(()=>{tt(()=>{d.isUnmounted||T()},g)});return}}let ne=O,$e;rs(d,!1),O?(O.el=se.el,te(d,O,E)):O=se,U&&vo(U),($e=O.props&&O.props.onVnodeBeforeUpdate)&&tn($e,ie,O,se),rs(d,!0);const He=bc(d),Je=d.subTree;d.subTree=He,M(Je,He,h(Je.el),Nn(Je),d,g,m),O.el=He.el,ne===null&&Xp(d,He.el),W&&tt(W,g),($e=O.props&&O.props.onVnodeUpdated)&&tt(()=>tn($e,ie,O,se),g)}else{let O;const{el:U,props:W}=f,{bm:ie,m:se,parent:ne,root:$e,type:He}=d,Je=Ms(f);rs(d,!1),ie&&vo(ie),!Je&&(O=W&&W.onVnodeBeforeMount)&&tn(O,ne,f),rs(d,!0);{$e.ce&&$e.ce._hasShadowRoot()&&$e.ce._injectChildStyle(He);const gt=d.subTree=bc(d);M(null,gt,p,y,d,g,m),f.el=gt.el}if(se&&tt(se,g),!Je&&(O=W&&W.onVnodeMounted)){const gt=f;tt(()=>tn(O,ne,gt),g)}(f.shapeFlag&256||ne&&Ms(ne.vnode)&&ne.vnode.shapeFlag&256)&&d.a&&tt(d.a,g),d.isMounted=!0,f=p=y=null}};d.scope.on();const S=d.effect=new Af(A);d.scope.off();const T=d.update=S.run.bind(S),$=d.job=S.runIfDirty.bind(S);$.i=d,$.id=d.uid,S.scheduler=()=>za($),rs(d,!0),T()},te=(d,f,p)=>{f.component=d;const y=d.vnode.props;d.vnode=f,d.next=null,Qp(d,f.props,y,p),n2(d,f.children,p),In(),cc(d),Cn()},J=(d,f,p,y,g,m,E,A,S=!1)=>{const T=d&&d.children,$=d?d.shapeFlag:0,O=f.children,{patchFlag:U,shapeFlag:W}=f;if(U>0){if(U&128){gn(T,O,p,y,g,m,E,A,S);return}else if(U&256){kt(T,O,p,y,g,m,E,A,S);return}}W&8?($&16&&mn(T,g,m),O!==T&&u(p,O)):$&16?W&16?gn(T,O,p,y,g,m,E,A,S):mn(T,g,m,!0):($&8&&u(p,""),W&16&&B(O,p,y,g,m,E,A,S))},kt=(d,f,p,y,g,m,E,A,S)=>{d=d||Ts,f=f||Ts;const T=d.length,$=f.length,O=Math.min(T,$);let U;for(U=0;U<O;U++){const W=f[U]=S?_n(f[U]):an(f[U]);M(d[U],W,p,null,g,m,E,A,S)}T>$?mn(d,g,m,!0,!1,O):B(f,p,y,g,m,E,A,S,O)},gn=(d,f,p,y,g,m,E,A,S)=>{let T=0;const $=f.length;let O=d.length-1,U=$-1;for(;T<=O&&T<=U;){const W=d[T],ie=f[T]=S?_n(f[T]):an(f[T]);if(lr(W,ie))M(W,ie,p,null,g,m,E,A,S);else break;T++}for(;T<=O&&T<=U;){const W=d[O],ie=f[U]=S?_n(f[U]):an(f[U]);if(lr(W,ie))M(W,ie,p,null,g,m,E,A,S);else break;O--,U--}if(T>O){if(T<=U){const W=U+1,ie=W<$?f[W].el:y;for(;T<=U;)M(null,f[T]=S?_n(f[T]):an(f[T]),p,ie,g,m,E,A,S),T++}}else if(T>U)for(;T<=O;)pt(d[T],g,m,!0),T++;else{const W=T,ie=T,se=new Map;for(T=ie;T<=U;T++){const Et=f[T]=S?_n(f[T]):an(f[T]);Et.key!=null&&se.set(Et.key,T)}let ne,$e=0;const He=U-ie+1;let Je=!1,gt=0;const or=new Array(He);for(T=0;T<He;T++)or[T]=0;for(T=W;T<=O;T++){const Et=d[T];if($e>=He){pt(Et,g,m,!0);continue}let en;if(Et.key!=null)en=se.get(Et.key);else for(ne=ie;ne<=U;ne++)if(or[ne-ie]===0&&lr(Et,f[ne])){en=ne;break}en===void 0?pt(Et,g,m,!0):(or[en-ie]=T+1,en>=gt?gt=en:Je=!0,M(Et,f[en],p,null,g,m,E,A,S),$e++)}const tc=Je?o2(or):Ts;for(ne=tc.length-1,T=He-1;T>=0;T--){const Et=ie+T,en=f[Et],nc=f[Et+1],sc=Et+1<$?nc.el||vd(nc):y;or[T]===0?M(null,en,p,sc,g,m,E,A,S):Je&&(ne<0||T!==tc[ne]?wt(en,p,sc,2):ne--)}}},wt=(d,f,p,y,g=null)=>{const{el:m,type:E,transition:A,children:S,shapeFlag:T}=d;if(T&6){wt(d.component.subTree,f,p,y);return}if(T&128){d.suspense.move(f,p,y);return}if(T&64){E.move(d,f,p,oe);return}if(E===Ae){s(m,f,p);for(let O=0;O<S.length;O++)wt(S[O],f,p,y);s(d.anchor,f,p);return}if(E===So){F(d,f,p);return}if(y!==2&&T&1&&A)if(y===0)A.beforeEnter(m),s(m,f,p),tt(()=>A.enter(m),g);else{const{leave:O,delayLeave:U,afterLeave:W}=A,ie=()=>{d.ctx.isUnmounted?r(m):s(m,f,p)},se=()=>{m._isLeaving&&m[bp](!0),O(m,()=>{ie(),W&&W()})};U?U(m,ie,se):se()}else s(m,f,p)},pt=(d,f,p,y=!1,g=!1)=>{const{type:m,props:E,ref:A,children:S,dynamicChildren:T,shapeFlag:$,patchFlag:O,dirs:U,cacheIndex:W}=d;if(O===-2&&(g=!1),A!=null&&(In(),kr(A,null,p,d,!0),Cn()),W!=null&&(f.renderCache[W]=void 0),$&256){f.ctx.deactivate(d);return}const ie=$&1&&U,se=!Ms(d);let ne;if(se&&(ne=E&&E.onVnodeBeforeUnmount)&&tn(ne,f,d),$&6)_s(d.component,p,y);else{if($&128){d.suspense.unmount(p,y);return}ie&&ss(d,null,f,"beforeUnmount"),$&64?d.type.remove(d,f,p,oe,y):T&&!T.hasOnce&&(m!==Ae||O>0&&O&64)?mn(T,f,p,!1,!0):(m===Ae&&O&384||!g&&$&16)&&mn(S,f,p),y&&ys(d)}(se&&(ne=E&&E.onVnodeUnmounted)||ie)&&tt(()=>{ne&&tn(ne,f,d),ie&&ss(d,null,f,"unmounted")},p)},ys=d=>{const{type:f,el:p,anchor:y,transition:g}=d;if(f===Ae){ir(p,y);return}if(f===So){L(d);return}const m=()=>{r(p),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(d.shapeFlag&1&&g&&!g.persisted){const{leave:E,delayLeave:A}=g,S=()=>E(p,m);A?A(d.el,m,S):S()}else m()},ir=(d,f)=>{let p;for(;d!==f;)p=k(d),r(d),d=p;r(f)},_s=(d,f,p)=>{const{bum:y,scope:g,job:m,subTree:E,um:A,m:S,a:T}=d;Ec(S),Ec(T),y&&vo(y),g.stop(),m&&(m.flags|=8,pt(E,d,f,p)),A&&tt(A,f),tt(()=>{d.isUnmounted=!0},f)},mn=(d,f,p,y=!1,g=!1,m=0)=>{for(let E=m;E<d.length;E++)pt(d[E],f,p,y,g)},Nn=d=>{if(d.shapeFlag&6)return Nn(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const f=k(d.anchor||d.el),p=f&&f[Jf];return p?k(p):f};let Un=!1;const fe=(d,f,p)=>{let y;d==null?f._vnode&&(pt(f._vnode,null,null,!0),y=f._vnode.component):M(f._vnode||null,d,f,null,null,null,p),f._vnode=d,Un||(Un=!0,cc(y),zf(),Un=!1)},oe={p:M,um:pt,m:wt,r:ys,mt:ot,mc:B,pc:J,pbc:X,n:Nn,o:e};return{render:fe,hydrate:void 0,createApp:$p(fe)}}function Ao({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rs({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function i2(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xa(e,t,n=!1){const s=e.children,r=t.children;if(Q(s)&&Q(r))for(let i=0;i<s.length;i++){const o=s[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=_n(r[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Xa(o,a)),a.type===Ni&&(a.patchFlag===-1&&(a=r[i]=_n(a)),a.el=o.el),a.type===Dn&&!a.el&&(a.el=o.el)}}function o2(e){const t=e.slice(),n=[0];let s,r,i,o,a;const l=e.length;for(s=0;s<l;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<c?i=a+1:o=a;c<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function md(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:md(t)}function Ec(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function vd(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?vd(t.subTree):null}const yd=e=>e.__isSuspense;function a2(e,t){t&&t.pendingBranch?Q(e)?t.effects.push(...e):t.effects.push(e):dp(e)}const Ae=Symbol.for("v-fgt"),Ni=Symbol.for("v-txt"),Dn=Symbol.for("v-cmt"),So=Symbol.for("v-stc"),Er=[];let xt=null;function x(e=!1){Er.push(xt=e?null:[])}function l2(){Er.pop(),xt=Er[Er.length-1]||null}let Dr=1;function Ac(e,t=!1){Dr+=e,e<0&&xt&&t&&(xt.hasOnce=!0)}function _d(e){return e.dynamicChildren=Dr>0?xt||Ts:null,l2(),Dr>0&&xt&&xt.push(e),e}function P(e,t,n,s,r,i){return _d(_(e,t,n,s,r,i,!0))}function Qe(e,t,n,s,r){return _d(Ue(e,t,n,s,r,!0))}function Ja(e){return e?e.__v_isVNode===!0:!1}function lr(e,t){return e.type===t.type&&e.key===t.key}const bd=({key:e})=>e??null,ti=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||Oe(e)||ee(e)?{i:ct,r:e,k:t,f:!!n}:e:null);function _(e,t=null,n=null,s=0,r=null,i=e===Ae?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bd(t),ref:t&&ti(t),scopeId:Kf,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ct};return a?(Qa(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Be(n)?8:16),Dr>0&&!o&&xt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&xt.push(l),l}const Ue=c2;function c2(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Lp)&&(e=Dn),Ja(e)){const a=Fs(e,t,!0);return n&&Qa(a,n),Dr>0&&!i&&xt&&(a.shapeFlag&6?xt[xt.indexOf(e)]=a:xt.push(a)),a.patchFlag=-2,a}if(_2(e)&&(e=e.__vccOpts),t){t=ra(t);let{class:a,style:l}=t;a&&!Be(a)&&(t.class=_e(a)),ye(l)&&(Oi(l)&&!Q(l)&&(l=Ze({},l)),t.style=un(l))}const o=Be(e)?1:yd(e)?128:vp(e)?64:ye(e)?4:ee(e)?2:0;return _(e,t,n,s,r,o,i,!0)}function ra(e){return e?Oi(e)||ud(e)?Ze({},e):e:null}function Fs(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:a,transition:l}=e,c=t?u2(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&bd(c),ref:t&&t.ref?n&&i?Q(i)?i.concat(ti(t)):[i,ti(t)]:ti(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fs(e.ssContent),ssFallback:e.ssFallback&&Fs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Wa(u,l.clone(u)),u}function Nt(e=" ",t=0){return Ue(Ni,null,e,t)}function re(e="",t=!1){return t?(x(),Qe(Dn,null,e)):Ue(Dn,null,e)}function an(e){return e==null||typeof e=="boolean"?Ue(Dn):Q(e)?Ue(Ae,null,e.slice()):Ja(e)?_n(e):Ue(Ni,null,String(e))}function _n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Fs(e)}function Qa(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Q(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Qa(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!ud(t)?t._ctx=ct:r===3&&ct&&(ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:ct},n=32):(t=String(t),s&64?(n=16,t=[Nt(t)]):n=8);e.children=t,e.shapeFlag|=n}function u2(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=_e([t.class,s.class]));else if(r==="style")t.style=un([t.style,s.style]);else if(Ti(r)){const i=t[r],o=s[r];o&&i!==o&&!(Q(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function tn(e,t,n,s=null){fn(e,t,7,[n,s])}const f2=id();let d2=0;function h2(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||f2,i={uid:d2++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kf(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:dd(s,r),emitsOptions:od(s,r),emit:null,emitted:null,propsDefaults:Ee,inheritAttrs:s.inheritAttrs,ctx:Ee,data:Ee,props:Ee,attrs:Ee,slots:Ee,refs:Ee,setupState:Ee,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=zp.bind(null,i),e.ce&&e.ce(i),i}let it=null;const kd=()=>it||ct;let yi,ia;{const e=Mi(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};yi=t("__VUE_INSTANCE_SETTERS__",n=>it=n),ia=t("__VUE_SSR_SETTERS__",n=>Pr=n)}const jr=e=>{const t=it;return yi(e),e.scope.on(),()=>{e.scope.off(),yi(t)}},Sc=()=>{it&&it.scope.off(),yi(null)};function wd(e){return e.vnode.shapeFlag&4}let Pr=!1;function p2(e,t=!1,n=!1){t&&ia(t);const{props:s,children:r}=e.vnode,i=wd(e);Jp(e,s,i,t),t2(e,r,n||t);const o=i?g2(e,t):void 0;return t&&ia(!1),o}function g2(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fp);const{setup:s}=n;if(s){In();const r=e.setupContext=s.length>1?v2(e):null,i=jr(e),o=Gr(s,e,0,[e.props,r]),a=pf(o);if(Cn(),i(),(a||e.sp)&&!Ms(e)&&Zf(e),a){if(o.then(Sc,Sc),t)return o.then(l=>{Tc(e,l)}).catch(l=>{Li(l,e,0)});e.asyncDep=o}else Tc(e,o)}else Ed(e)}function Tc(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=Bf(t)),Ed(e)}function Ed(e,t,n){const s=e.type;e.render||(e.render=s.render||cn);{const r=jr(e);In();try{Np(e)}finally{Cn(),r()}}}const m2={get(e,t){return rt(e,"get",""),e[t]}};function v2(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,m2),slots:e.slots,emit:e.emit,expose:t}}function Za(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bf(Ha(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wr)return wr[n](e)},has(t,n){return n in t||n in wr}})):e.proxy}function y2(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function _2(e){return ee(e)&&"__vccOpts"in e}const ae=(e,t)=>ap(e,t,Pr),b2="3.5.28";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.28
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let oa;const xc=typeof window<"u"&&window.trustedTypes;if(xc)try{oa=xc.createPolicy("vue",{createHTML:e=>e})}catch{}const Ad=oa?e=>oa.createHTML(e):e=>e,k2="http://www.w3.org/2000/svg",w2="http://www.w3.org/1998/Math/MathML",yn=typeof document<"u"?document:null,Ic=yn&&yn.createElement("template"),E2={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?yn.createElementNS(k2,e):t==="mathml"?yn.createElementNS(w2,e):n?yn.createElement(e,{is:n}):yn.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>yn.createTextNode(e),createComment:e=>yn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ic.innerHTML=Ad(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Ic.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},A2=Symbol("_vtc");function S2(e,t,n){const s=e[A2];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cc=Symbol("_vod"),T2=Symbol("_vsh"),x2=Symbol(""),I2=/(?:^|;)\s*display\s*:/;function C2(e,t,n){const s=e.style,r=Be(n);let i=!1;if(n&&!r){if(t)if(Be(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&ni(s,a,"")}else for(const o in t)n[o]==null&&ni(s,o,"");for(const o in n)o==="display"&&(i=!0),ni(s,o,n[o])}else if(r){if(t!==n){const o=s[x2];o&&(n+=";"+o),s.cssText=n,i=I2.test(n)}}else t&&e.removeAttribute("style");Cc in e&&(e[Cc]=i?s.display:"",e[T2]&&(s.display="none"))}const Mc=/\s*!important$/;function ni(e,t,n){if(Q(n))n.forEach(s=>ni(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=M2(e,t);Mc.test(n)?e.setProperty(ms(s),n.replace(Mc,""),"important"):e[s]=n}}const Dc=["Webkit","Moz","ms"],To={};function M2(e,t){const n=To[t];if(n)return n;let s=Gt(t);if(s!=="filter"&&s in e)return To[t]=s;s=Ci(s);for(let r=0;r<Dc.length;r++){const i=Dc[r]+s;if(i in e)return To[t]=i}return t}const Pc="http://www.w3.org/1999/xlink";function Oc(e,t,n,s,r,i=P1(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Pc,t.slice(6,t.length)):e.setAttributeNS(Pc,t,n):n==null||i&&!yf(n)?e.removeAttribute(t):e.setAttribute(t,i?"":qt(n)?String(n):n)}function Lc(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ad(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=yf(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function D2(e,t,n,s){e.addEventListener(t,n,s)}function P2(e,t,n,s){e.removeEventListener(t,n,s)}const Rc=Symbol("_vei");function O2(e,t,n,s,r=null){const i=e[Rc]||(e[Rc]={}),o=i[t];if(s&&o)o.value=s;else{const[a,l]=L2(t);if(s){const c=i[t]=N2(s,r);D2(e,a,c,l)}else o&&(P2(e,a,o,l),i[t]=void 0)}}const Fc=/(?:Once|Passive|Capture)$/;function L2(e){let t;if(Fc.test(e)){t={};let s;for(;s=e.match(Fc);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ms(e.slice(2)),t]}let xo=0;const R2=Promise.resolve(),F2=()=>xo||(R2.then(()=>xo=0),xo=Date.now());function N2(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;fn(U2(s,n.value),t,5,[s])};return n.value=e,n.attached=F2(),n}function U2(e,t){if(Q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Nc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,B2=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?S2(e,s,o):t==="style"?C2(e,n,s):Ti(t)?Ra(t)||O2(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):G2(e,t,s,o))?(Lc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Oc(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Be(s))?Lc(e,Gt(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Oc(e,t,s,o))};function G2(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nc(t)&&ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Nc(t)&&Be(n)?!1:t in e}const j2=["ctrl","shift","alt","meta"],V2={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>j2.some(n=>e[`${n}Key`]&&!t.includes(n))},$2=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...i)=>{for(let o=0;o<t.length;o++){const a=V2[t[o]];if(a&&a(r,t))return}return e(r,...i)}))},H2=Ze({patchProp:B2},E2);let Uc;function z2(){return Uc||(Uc=s2(H2))}const W2=((...e)=>{const t=z2().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=q2(s);if(!r)return;const i=t._component;!ee(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,K2(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function K2(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function q2(e){return Be(e)?document.querySelector(e):e}/*!
|
|
18
|
+
* pinia v2.3.1
|
|
19
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/let Sd;const Ui=e=>Sd=e,Td=Symbol();function aa(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ar;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ar||(Ar={}));function Y2(){const e=wf(!0),t=e.run(()=>ve({}));let n=[],s=[];const r=Ha({install(i){Ui(r),r._a=i,i.provide(Td,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const xd=()=>{};function Bc(e,t,n,s=xd){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Ef()&&L1(r),r}function ks(e,...t){e.slice().forEach(n=>{n(...t)})}const X2=e=>e(),Gc=Symbol(),Io=Symbol();function la(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];aa(r)&&aa(s)&&e.hasOwnProperty(n)&&!Oe(s)&&!An(s)?e[n]=la(r,s):e[n]=s}return e}const J2=Symbol();function Q2(e){return!aa(e)||!e.hasOwnProperty(J2)}const{assign:Gn}=Object;function Z2(e){return!!(Oe(e)&&e.effect)}function e3(e,t,n,s){const{state:r,actions:i,getters:o}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=r?r():{});const u=sp(n.state.value[e]);return Gn(u,i,Object.keys(o||{}).reduce((h,k)=>(h[k]=Ha(ae(()=>{Ui(n);const I=n._s.get(e);return o[k].call(I,I)})),h),{}))}return l=Id(e,c,t,n,s,!0),l}function Id(e,t,n={},s,r,i){let o;const a=Gn({actions:{}},n),l={deep:!0};let c,u,h=[],k=[],I;const C=s.state.value[e];!i&&!C&&(s.state.value[e]={});let M;function b(B){let j;c=u=!1,typeof B=="function"?(B(s.state.value[e]),j={type:Ar.patchFunction,storeId:e,events:I}):(la(s.state.value[e],B),j={type:Ar.patchObject,payload:B,storeId:e,events:I});const X=M=Symbol();$f().then(()=>{M===X&&(c=!0)}),u=!0,ks(h,j,s.state.value[e])}const v=i?function(){const{state:j}=n,X=j?j():{};this.$patch(Pe=>{Gn(Pe,X)})}:xd;function w(){o.stop(),h=[],k=[],s._s.delete(e)}const F=(B,j="")=>{if(Gc in B)return B[Io]=j,B;const X=function(){Ui(s);const Pe=Array.from(arguments),et=[],ht=[];function ot(te){et.push(te)}function Fn(te){ht.push(te)}ks(k,{args:Pe,name:X[Io],store:Z,after:ot,onError:Fn});let be;try{be=B.apply(this&&this.$id===e?this:Z,Pe)}catch(te){throw ks(ht,te),te}return be instanceof Promise?be.then(te=>(ks(et,te),te)).catch(te=>(ks(ht,te),Promise.reject(te))):(ks(et,be),be)};return X[Gc]=!0,X[Io]=j,X},L={_p:s,$id:e,$onAction:Bc.bind(null,k),$patch:b,$reset:v,$subscribe(B,j={}){const X=Bc(h,B,j.detached,()=>Pe()),Pe=o.run(()=>Kn(()=>s.state.value[e],et=>{(j.flush==="sync"?u:c)&&B({storeId:e,type:Ar.direct,events:I},et)},Gn({},l,j)));return X},$dispose:w},Z=Pi(L);s._s.set(e,Z);const Y=(s._a&&s._a.runWithContext||X2)(()=>s._e.run(()=>(o=wf()).run(()=>t({action:F}))));for(const B in Y){const j=Y[B];if(Oe(j)&&!Z2(j)||An(j))i||(C&&Q2(j)&&(Oe(j)?j.value=C[B]:la(j,C[B])),s.state.value[e][B]=j);else if(typeof j=="function"){const X=F(j,B);Y[B]=X,a.actions[B]=j}}return Gn(Z,Y),Gn(de(Z),Y),Object.defineProperty(Z,"$state",{get:()=>s.state.value[e],set:B=>{b(j=>{Gn(j,B)})}}),s._p.forEach(B=>{Gn(Z,o.run(()=>B({store:Z,app:s._a,pinia:s,options:a})))}),C&&i&&n.hydrate&&n.hydrate(Z.$state,C),c=!0,u=!0,Z}/*! #__NO_SIDE_EFFECTS__ */function t3(e,t,n){let s,r;const i=typeof t=="function";s=e,r=i?n:t;function o(a,l){const c=hp();return a=a||(c?Cs(Td,null):null),a&&Ui(a),a=Sd,a._s.has(s)||(i?Id(s,t,r,a):e3(s,r,a)),a._s.get(s)}return o.$id=s,o}const n3=[{id:"moveUp",title:"Mover para cima",description:"Aumenta a prioridade da tarefa focada",keyboardShortcut:"⌘↑",defaultGesture:"Pointing_Up"},{id:"moveDown",title:"Mover para baixo",description:"Diminui a prioridade da tarefa focada",keyboardShortcut:"⌘↓",defaultGesture:"Thumb_Down"},{id:"groupWith",title:"Agrupar",description:"Agrupa a tarefa focada com a adjacente",keyboardShortcut:"⌘G",defaultGesture:"Victory"},{id:"ungroup",title:"Desagrupar",description:"Dissolve o grupo focado",keyboardShortcut:"⌘⇧G",defaultGesture:"Open_Palm"},{id:"setDifficulty1",title:"Dificuldade 1",description:"Marca dificuldade como muito fácil",keyboardShortcut:"⌘1"},{id:"setDifficulty2",title:"Dificuldade 2",description:"Marca dificuldade como fácil",keyboardShortcut:"⌘2"},{id:"setDifficulty3",title:"Dificuldade 3",description:"Marca dificuldade como média",keyboardShortcut:"⌘3"},{id:"setDifficulty4",title:"Dificuldade 4",description:"Marca dificuldade como difícil",keyboardShortcut:"⌘4"},{id:"setDifficulty5",title:"Dificuldade 5",description:"Marca dificuldade como muito difícil",keyboardShortcut:"⌘5"},{id:"undo",title:"Desfazer",description:"Desfaz a última ação",keyboardShortcut:"⌘Z",defaultGesture:"Closed_Fist"},{id:"copyCard",title:"Copiar card",description:"Copia o texto do card focado",keyboardShortcut:"⌘C"}],si={None:"",Closed_Fist:"✊",Open_Palm:"🖐️",Pointing_Up:"☝️",Thumb_Down:"👎",Thumb_Up:"👍",Victory:"✌️",ILoveYou:"🤟"},ri={None:"Nenhum",Closed_Fist:"Punho",Open_Palm:"Mão aberta",Pointing_Up:"Apontar",Thumb_Down:"Polegar baixo",Thumb_Up:"Polegar cima",Victory:"Vitória",ILoveYou:"Rock On"},ii={moveUp:"Mover para cima",moveDown:"Mover para baixo",groupWith:"Agrupar",ungroup:"Desagrupar",undo:"Desfazer",copyCard:"Copiar card",setDifficulty1:"Dificuldade 1",setDifficulty2:"Dificuldade 2",setDifficulty3:"Dificuldade 3",setDifficulty4:"Dificuldade 4",setDifficulty5:"Dificuldade 5",none:"Nenhuma ação"},s3=["title"],r3={class:"gesture-icon__emoji"},i3={key:0,class:"gesture-icon__label"},o3=Ge({__name:"GestureIcon",props:{gesture:{},size:{default:"md"},showLabel:{type:Boolean,default:!1}},setup(e){const t=e,n={none:"None",closed_fist:"Closed_Fist",open_palm:"Open_Palm",pointing_up:"Pointing_Up",thumb_down:"Thumb_Down",thumb_up:"Thumb_Up",victory:"Victory",iloveyou:"ILoveYou"},s=ae(()=>{const o=t.gesture.toLowerCase().replace(/\s+/g,"_");return n[o]||"None"}),r=ae(()=>si[s.value]),i=ae(()=>ri[s.value]);return(o,a)=>(x(),P("span",{class:_e(["gesture-icon",[`gesture-icon--${e.size}`,{"gesture-icon--with-label":e.showLabel}]]),title:i.value},[_("span",r3,K(r.value),1),e.showLabel?(x(),P("span",i3,K(i.value),1)):re("",!0)],10,s3))}}),Ys=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},a3=Ys(o3,[["__scopeId","data-v-b2255ef3"]]),l3={class:"gesture-legend__label"},c3=Ge({__name:"GestureLegend",props:{mappings:{},compact:{type:Boolean}},setup(e){const t=e,n=ii,s=ae(()=>t.mappings.filter(r=>r.gesture!=="None"&&r.action!=="none"));return(r,i)=>(x(),P("div",{class:_e(["gesture-legend",{"gesture-legend--compact":e.compact}])},[(x(!0),P(Ae,null,Kt(s.value,o=>(x(),P("div",{class:"gesture-legend__chip",key:o.gesture},[Ds(r.$slots,"chip",{mapping:o,actionLabel:D(n)[o.action]},()=>[Ue(a3,{gesture:o.gesture,size:e.compact?"sm":"md"},null,8,["gesture","size"]),_("span",l3,K(D(n)[o.action]),1)])]))),128))],2))}}),u3=Ys(c3,[["__scopeId","data-v-005af0f1"]]),f3={class:"wizard-card"},d3={class:"wizard-steps"},h3={key:0,class:"wizard-body"},p3={key:1,class:"wizard-body"},g3={class:"progress-track"},m3={class:"hint"},v3={key:2,class:"wizard-body"},y3={key:0,class:"gesture-preview"},_3={class:"preview-emoji"},b3={class:"preview-label"},k3={key:3,class:"wizard-body"},w3={class:"action-list"},E3={key:0,class:"arrow"},A3={key:1,class:"arrow placeholder"},S3={key:4,class:"wizard-body"},T3={class:"confirm-pair"},x3={class:"confirm-item"},I3={class:"confirm-emoji"},C3={class:"confirm-item"},M3={class:"confirm-label"},D3={key:5,class:"wizard-body"},P3={class:"confirm-pair"},O3={class:"confirm-item"},L3={class:"confirm-emoji"},R3={class:"confirm-item"},F3={class:"confirm-label"},N3={key:6,class:"wizard-error"},U3={name:"GestureWizardCard"},B3=Ge({...U3,props:{wizardState:{},readyProgress:{},step:{},recordingCandidate:{},selectedActionIndex:{},availableActions:{},lastMapping:{},error:{},teleportTo:{type:[String,Boolean]}},setup(e){return(t,n)=>{var s,r,i,o,a,l;return x(),P("div",f3,[_("div",d3,[(x(),P(Ae,null,Kt(4,c=>_("div",{class:_e(["step-dot",{active:e.step>=c,done:e.step>c}]),key:c},null,2)),64))]),e.wizardState==="IDLE"?(x(),P("div",h3,[...n[0]||(n[0]=[_("div",{class:"wizard-icon"}," 🖐️ ",-1),_("p",{class:"hint"}," Mantenha a mão aberta para configurar atalhos por gestos ",-1)])])):e.wizardState==="READY"?(x(),P("div",p3,[n[1]||(n[1]=_("div",{class:"wizard-icon pulse"}," 🖐️ ",-1)),n[2]||(n[2]=_("p",{class:"title"}," Modo de configuração ",-1)),_("div",g3,[_("div",{class:"progress-fill",style:un({width:Math.min(100,(e.readyProgress-2e3)/3e3*100)+"%"})},null,4)]),_("p",m3," Mantenha a mão aberta para iniciar ("+K(Math.max(0,Math.ceil((5e3-e.readyProgress)/1e3)))+"s) ",1),n[3]||(n[3]=_("p",{class:"hint-cancel"}," Solte a mão para cancelar ",-1))])):e.wizardState==="RECORDING"?(x(),P("div",v3,[n[4]||(n[4]=_("div",{class:"wizard-icon"}," ✋ ",-1)),n[5]||(n[5]=_("p",{class:"title"}," Passo 1: Escolha o gesto ",-1)),n[6]||(n[6]=_("p",{class:"hint"}," Faça o gesto que será o atalho e mantenha por 1 segundo ",-1)),e.recordingCandidate?(x(),P("div",y3,[_("span",_3,K(D(si)[e.recordingCandidate]),1),_("span",b3,K(D(ri)[e.recordingCandidate]),1)])):re("",!0)])):e.wizardState==="SELECTING"?(x(),P("div",k3,[n[7]||(n[7]=_("div",{class:"wizard-icon"}," ⚙️ ",-1)),n[8]||(n[8]=_("p",{class:"title"}," Passo 2: Escolha a ação ",-1)),_("div",w3,[(x(!0),P(Ae,null,Kt(e.availableActions,(c,u)=>(x(),P("div",{class:_e(["action-item",{highlighted:u===e.selectedActionIndex}]),key:c},[u===e.selectedActionIndex?(x(),P("span",E3,"▶")):(x(),P("span",A3)),_("span",null,K(D(ii)[c]),1)],2))),128))]),n[9]||(n[9]=_("div",{class:"wizard-legend"},[_("span",null,"👍 próx."),_("span",null,"👎 ant."),_("span",null,"✊ selec."),_("span",null,"🖐️ canc.")],-1))])):e.wizardState==="CONFIRMING"?(x(),P("div",S3,[n[11]||(n[11]=_("div",{class:"wizard-icon"}," ✅ ",-1)),n[12]||(n[12]=_("p",{class:"title"}," Passo 3: Confirmar ",-1)),_("div",T3,[_("div",x3,[_("span",I3,K(D(si)[((s=e.lastMapping)==null?void 0:s.gesture)||"None"]),1),_("span",null,K(D(ri)[((r=e.lastMapping)==null?void 0:r.gesture)||"None"]),1)]),n[10]||(n[10]=_("div",{class:"confirm-arrow"}," → ",-1)),_("div",C3,[_("span",M3,K(D(ii)[((i=e.lastMapping)==null?void 0:i.action)||"none"]),1)])]),n[13]||(n[13]=_("div",{class:"wizard-legend"},[_("span",null,"✊ confirmar"),_("span",null,"🖐️ cancelar")],-1))])):e.wizardState==="SAVED"?(x(),P("div",D3,[n[15]||(n[15]=_("div",{class:"wizard-icon success"}," ✨ ",-1)),n[16]||(n[16]=_("p",{class:"title"}," Atalho salvo! ",-1)),_("div",P3,[_("div",O3,[_("span",L3,K(D(si)[((o=e.lastMapping)==null?void 0:o.gesture)||"None"]),1),_("span",null,K(D(ri)[((a=e.lastMapping)==null?void 0:a.gesture)||"None"]),1)]),n[14]||(n[14]=_("div",{class:"confirm-arrow"}," → ",-1)),_("div",R3,[_("span",F3,K(D(ii)[((l=e.lastMapping)==null?void 0:l.action)||"none"]),1)])])])):re("",!0),e.error?(x(),P("div",N3,K(e.error),1)):re("",!0)])}}}),jc=Ys(B3,[["__scopeId","data-v-9838b10a"]]),G3={class:"gesture-wizard-overlay gesture-wizard-overlay--fixed"},j3={key:1,class:"gesture-wizard-overlay gesture-wizard-overlay--absolute"},V3={name:"GestureWizard"},$3=Ge({...V3,props:{wizardState:{},readyProgress:{},step:{},recordingCandidate:{},selectedActionIndex:{},availableActions:{},lastMapping:{},error:{},teleportTo:{type:[String,Boolean]}},setup(e){const t=e,n=ae(()=>{const{teleportTo:s,...r}=t;return r});return(s,r)=>e.teleportTo!==!1?(x(),Qe(_p,{key:0,to:e.teleportTo??"body"},[_("div",G3,[Ue(jc,oc(ra(n.value)),null,16)])],8,["to"])):(x(),P("div",j3,[Ue(jc,oc(ra(n.value)),null,16)]))}}),H3=Ys($3,[["__scopeId","data-v-a3a7ff0e"]]),z3={class:"tracking-controls"},W3=["disabled"],K3={class:"control-checkbox"},q3=["checked"],Y3={class:"control-checkbox"},X3=["checked"],J3={class:"control-checkbox"},Q3=["checked"],Z3={class:"control-checkbox"},eg=["checked"],tg={class:"control-checkbox"},ng=["checked"],sg={class:"control-checkbox"},rg=["checked"],ig={key:0,class:"error"},og={key:1,class:"status"},ag={name:"TrackingControls"},lg=Ge({...ag,props:{isDetecting:{type:Boolean},error:{},showWebcam:{type:Boolean,default:!0},syncEyes:{type:Boolean},syncMouth:{type:Boolean},syncExpressions:{type:Boolean},syncArms:{type:Boolean},syncGestures:{type:Boolean,default:!0},disabled:{type:Boolean}},emits:["toggle-tracking","update:showWebcam","update:syncEyes","update:syncMouth","update:syncExpressions","update:syncArms","update:syncGestures"],setup(e,{emit:t}){const n=t;return(s,r)=>(x(),P("div",z3,[_("button",{class:"control-button",disabled:e.disabled,onClick:r[0]||(r[0]=i=>n("toggle-tracking"))},K(e.isDetecting?"Parar":"Iniciar")+" Detecção ",9,W3),_("label",K3,[_("input",{type:"checkbox",checked:e.showWebcam,onChange:r[1]||(r[1]=i=>n("update:showWebcam",i.target.checked))},null,40,q3),r[7]||(r[7]=Nt(" Mostrar Webcam ",-1))]),_("label",Y3,[_("input",{type:"checkbox",checked:e.syncEyes,onChange:r[2]||(r[2]=i=>n("update:syncEyes",i.target.checked))},null,40,X3),r[8]||(r[8]=Nt(" Sincronizar Olhos ",-1))]),_("label",J3,[_("input",{type:"checkbox",checked:e.syncMouth,onChange:r[3]||(r[3]=i=>n("update:syncMouth",i.target.checked))},null,40,Q3),r[9]||(r[9]=Nt(" Sincronizar Boca ",-1))]),_("label",Z3,[_("input",{type:"checkbox",checked:e.syncExpressions,onChange:r[4]||(r[4]=i=>n("update:syncExpressions",i.target.checked))},null,40,eg),r[10]||(r[10]=Nt(" Sincronizar Expressões ",-1))]),_("label",tg,[_("input",{type:"checkbox",checked:e.syncArms,onChange:r[5]||(r[5]=i=>n("update:syncArms",i.target.checked))},null,40,ng),r[11]||(r[11]=Nt(" Sincronizar Braços ",-1))]),_("label",sg,[_("input",{type:"checkbox",checked:e.syncGestures,onChange:r[6]||(r[6]=i=>n("update:syncGestures",i.target.checked))},null,40,rg),r[12]||(r[12]=Nt(" Sincronizar Gestos ",-1))]),e.error?(x(),P("div",ig,K(e.error),1)):re("",!0),e.isDetecting?(x(),P("div",og,[...r[13]||(r[13]=[_("span",{class:"status-indicator"},null,-1),Nt(" Detectando... ",-1)])])):re("",!0)]))}}),cg=Ys(lg,[["__scopeId","data-v-ef39759a"]]);var Ns=typeof self<"u"?self:{};function is(){throw Error("Invalid UTF8")}function Vc(e,t){return t=String.fromCharCode.apply(null,t),e==null?t:e+t}let Yr,Co;const ug=typeof TextDecoder<"u";let $c;const fg=typeof TextEncoder<"u";function Cd(e){if(fg)e=($c||($c=new TextEncoder)).encode(e);else{let n=0;const s=new Uint8Array(3*e.length);for(let r=0;r<e.length;r++){var t=e.charCodeAt(r);if(t<128)s[n++]=t;else{if(t<2048)s[n++]=t>>6|192;else{if(t>=55296&&t<=57343){if(t<=56319&&r<e.length){const i=e.charCodeAt(++r);if(i>=56320&&i<=57343){t=1024*(t-55296)+i-56320+65536,s[n++]=t>>18|240,s[n++]=t>>12&63|128,s[n++]=t>>6&63|128,s[n++]=63&t|128;continue}r--}t=65533}s[n++]=t>>12|224,s[n++]=t>>6&63|128}s[n++]=63&t|128}}e=n===s.length?s:s.subarray(0,n)}return e}var el,_i;e:{for(var Hc=["CLOSURE_FLAGS"],Mo=Ns,Do=0;Do<Hc.length;Do++)if((Mo=Mo[Hc[Do]])==null){_i=null;break e}_i=Mo}var Or,zc=_i&&_i[610401301];el=zc!=null&&zc;const Wc=Ns.navigator;function ca(e){return!!el&&!!Or&&Or.brands.some((({brand:t})=>t&&t.indexOf(e)!=-1))}function Ut(e){var t;return(t=Ns.navigator)&&(t=t.userAgent)||(t=""),t.indexOf(e)!=-1}function Hn(){return!!el&&!!Or&&Or.brands.length>0}function Po(){return Hn()?ca("Chromium"):(Ut("Chrome")||Ut("CriOS"))&&!(!Hn()&&Ut("Edge"))||Ut("Silk")}function Bi(e){return Bi[" "](e),e}Or=Wc&&Wc.userAgentData||null,Bi[" "]=function(){};var dg=!Hn()&&(Ut("Trident")||Ut("MSIE"));!Ut("Android")||Po(),Po(),Ut("Safari")&&(Po()||!Hn()&&Ut("Coast")||!Hn()&&Ut("Opera")||!Hn()&&Ut("Edge")||(Hn()?ca("Microsoft Edge"):Ut("Edg/"))||Hn()&&ca("Opera"));var Md={},pr=null;function hg(e){const t=e.length;let n=3*t/4;n%3?n=Math.floor(n):"=.".indexOf(e[t-1])!=-1&&(n="=.".indexOf(e[t-2])!=-1?n-2:n-1);const s=new Uint8Array(n);let r=0;return(function(i,o){function a(c){for(;l<i.length;){const u=i.charAt(l++),h=pr[u];if(h!=null)return h;if(!/^[\s\xa0]*$/.test(u))throw Error("Unknown base64 encoding at char: "+u)}return c}Dd();let l=0;for(;;){const c=a(-1),u=a(0),h=a(64),k=a(64);if(k===64&&c===-1)break;o(c<<2|u>>4),h!=64&&(o(u<<4&240|h>>2),k!=64&&o(h<<6&192|k))}})(e,(function(i){s[r++]=i})),r!==n?s.subarray(0,r):s}function Dd(){if(!pr){pr={};var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"];for(let n=0;n<5;n++){const s=e.concat(t[n].split(""));Md[n]=s;for(let r=0;r<s.length;r++){const i=s[r];pr[i]===void 0&&(pr[i]=r)}}}}var Pd=typeof Uint8Array<"u",Od=!dg&&typeof btoa=="function";function Kc(e){if(!Od){var t;t===void 0&&(t=0),Dd(),t=Md[t];var n=Array(Math.floor(e.length/3)),s=t[64]||"";let l=0,c=0;for(;l<e.length-2;l+=3){var r=e[l],i=e[l+1],o=e[l+2],a=t[r>>2];r=t[(3&r)<<4|i>>4],i=t[(15&i)<<2|o>>6],o=t[63&o],n[c++]=a+r+i+o}switch(a=0,o=s,e.length-l){case 2:o=t[(15&(a=e[l+1]))<<2]||s;case 1:e=e[l],n[c]=t[e>>2]+t[(3&e)<<4|a>>4]+o+s}return n.join("")}for(t="",n=0,s=e.length-10240;n<s;)t+=String.fromCharCode.apply(null,e.subarray(n,n+=10240));return t+=String.fromCharCode.apply(null,n?e.subarray(n):e),btoa(t)}const qc=/[-_.]/g,pg={"-":"+",_:"/",".":"="};function gg(e){return pg[e]||""}function Ld(e){if(!Od)return hg(e);qc.test(e)&&(e=e.replace(qc,gg)),e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function hs(e){return Pd&&e!=null&&e instanceof Uint8Array}var Us={};function ps(){return Yc||(Yc=new Sn(null,Us))}function tl(e){Rd(Us);var t=e.g;return(t=t==null||hs(t)?t:typeof t=="string"?Ld(t):null)==null?t:e.g=t}var Sn=class{h(){return new Uint8Array(tl(this)||0)}constructor(e,t){if(Rd(t),this.g=e,e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values")}};let Yc,Xc;function Rd(e){if(e!==Us)throw Error("illegal external caller")}function Fd(e,t){e.__closure__error__context__984382||(e.__closure__error__context__984382={}),e.__closure__error__context__984382.severity=t}function Nd(e){return Fd(e=Error(e),"warning"),e}function nl(e){if(e!=null){var t=Xc??(Xc={}),n=t[e]||0;n>=5||(t[e]=n+1,Fd(e=Error(),"incident"),(function(s){Ns.setTimeout((()=>{throw s}),0)})(e))}}var Gi=typeof Symbol=="function"&&typeof Symbol()=="symbol";function Xs(e,t,n=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?n&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():t}var mg=Xs("jas",void 0,!0),Jc=Xs(void 0,"0di"),cr=Xs(void 0,"1oa"),Bs=Xs(void 0,Symbol()),vg=Xs(void 0,"0actk"),Ud=Xs(void 0,"8utk");const z=Gi?mg:"Ea",Bd={Ea:{value:0,configurable:!0,writable:!0,enumerable:!1}},Gd=Object.defineProperties;function ji(e,t){Gi||z in e||Gd(e,Bd),e[z]|=t}function ze(e,t){Gi||z in e||Gd(e,Bd),e[z]=t}function Js(e){return ji(e,34),e}function yg(e,t){ze(t,-15615&(0|e))}function ua(e,t){ze(t,-15581&(34|e))}function Vi(){return typeof BigInt=="function"}function yt(e){return Array.prototype.slice.call(e)}var sl,Vr={};function $i(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.constructor===Object}function rl(e,t){if(e!=null){if(typeof e=="string")e=e?new Sn(e,Us):ps();else if(e.constructor!==Sn)if(hs(e))e=e.length?new Sn(new Uint8Array(e),Us):ps();else{if(!t)throw Error();e=void 0}}return e}const Qc=[];function es(e){if(2&e)throw Error()}ze(Qc,55),sl=Object.freeze(Qc);class Zc{constructor(t,n,s){this.g=t,this.h=n,this.l=s}next(){const t=this.g.next();return t.done||(t.value=this.h.call(this.l,t.value)),t}[Symbol.iterator](){return this}}function il(e){return Bs?e[Bs]:void 0}var _g=Object.freeze({});function Hi(e){return e.Na=!0,e}var bg=Hi((e=>typeof e=="number")),eu=Hi((e=>typeof e=="string")),kg=Hi((e=>typeof e=="boolean")),zi=typeof Ns.BigInt=="function"&&typeof Ns.BigInt(0)=="bigint";function qn(e){var t=e;if(eu(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t))}else if(bg(t)&&!Number.isSafeInteger(t))throw Error(String(t));return zi?BigInt(e):e=kg(e)?e?"1":"0":eu(e)?e.trim()||"0":String(e)}var fa=Hi((e=>zi?e>=Eg&&e<=Sg:e[0]==="-"?tu(e,wg):tu(e,Ag)));const wg=Number.MIN_SAFE_INTEGER.toString(),Eg=zi?BigInt(Number.MIN_SAFE_INTEGER):void 0,Ag=Number.MAX_SAFE_INTEGER.toString(),Sg=zi?BigInt(Number.MAX_SAFE_INTEGER):void 0;function tu(e,t){if(e.length>t.length)return!1;if(e.length<t.length||e===t)return!0;for(let n=0;n<e.length;n++){const s=e[n],r=t[n];if(s>r)return!1;if(s<r)return!0}}const Tg=typeof Uint8Array.prototype.slice=="function";let bi,ke=0,Fe=0;function nu(e){const t=e>>>0;ke=t,Fe=(e-t)/4294967296>>>0}function gs(e){if(e<0){nu(-e);const[t,n]=cl(ke,Fe);ke=t>>>0,Fe=n>>>0}else nu(e)}function ol(e){const t=bi||(bi=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+e,!0),Fe=0,ke=t.getUint32(0,!0)}function al(e,t){const n=4294967296*t+(e>>>0);return Number.isSafeInteger(n)?n:Lr(e,t)}function ll(e,t){const n=2147483648&t;return n&&(t=~t>>>0,(e=1+~e>>>0)==0&&(t=t+1>>>0)),typeof(e=al(e,t))=="number"?n?-e:e:n?"-"+e:e}function Lr(e,t){if(e>>>=0,(t>>>=0)<=2097151)var n=""+(4294967296*t+e);else Vi()?n=""+(BigInt(t)<<BigInt(32)|BigInt(e)):(e=(16777215&e)+6777216*(n=16777215&(e>>>24|t<<8))+6710656*(t=t>>16&65535),n+=8147497*t,t*=2,e>=1e7&&(n+=e/1e7>>>0,e%=1e7),n>=1e7&&(t+=n/1e7>>>0,n%=1e7),n=t+su(n)+su(e));return n}function su(e){return e=String(e),"0000000".slice(e.length)+e}function jd(){var e=ke,t=Fe;if(2147483648&t)if(Vi())e=""+(BigInt(0|t)<<BigInt(32)|BigInt(e>>>0));else{const[n,s]=cl(e,t);e="-"+Lr(n,s)}else e=Lr(e,t);return e}function Wi(e){if(e.length<16)gs(Number(e));else if(Vi())e=BigInt(e),ke=Number(e&BigInt(4294967295))>>>0,Fe=Number(e>>BigInt(32)&BigInt(4294967295));else{const t=+(e[0]==="-");Fe=ke=0;const n=e.length;for(let s=t,r=(n-t)%6+t;r<=n;s=r,r+=6){const i=Number(e.slice(s,r));Fe*=1e6,ke=1e6*ke+i,ke>=4294967296&&(Fe+=Math.trunc(ke/4294967296),Fe>>>=0,ke>>>=0)}if(t){const[s,r]=cl(ke,Fe);ke=s,Fe=r}}}function cl(e,t){return t=~t,e?e=1+~e:t+=1,[e,t]}const Rr=typeof BigInt=="function"?BigInt.asIntN:void 0,xg=typeof BigInt=="function"?BigInt.asUintN:void 0,Yn=Number.isSafeInteger,Ki=Number.isFinite,Gs=Math.trunc,Ig=qn(0);function ts(e){return e==null||typeof e=="number"?e:e==="NaN"||e==="Infinity"||e==="-Infinity"?Number(e):void 0}function Vd(e){return e==null||typeof e=="boolean"?e:typeof e=="number"?!!e:void 0}const Cg=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Fr(e){switch(typeof e){case"bigint":return!0;case"number":return Ki(e);case"string":return Cg.test(e);default:return!1}}function Qs(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return Ki(e)?0|e:void 0}function $d(e){if(e==null)return e;if(typeof e=="string"&&e)e=+e;else if(typeof e!="number")return;return Ki(e)?e>>>0:void 0}function ru(e){if(e[0]==="-")return!1;const t=e.length;return t<20||t===20&&Number(e.substring(0,6))<184467}function Hd(e){const t=e.length;return e[0]==="-"?t<20||t===20&&Number(e.substring(0,7))>-922337:t<19||t===19&&Number(e.substring(0,6))<922337}function zd(e){return Hd(e)?e:(Wi(e),jd())}function ul(e){return e=Gs(e),Yn(e)||(gs(e),e=ll(ke,Fe)),e}function Wd(e){var t=Gs(Number(e));return Yn(t)?String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),zd(e))}function iu(e){var t=Gs(Number(e));return Yn(t)?qn(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),Vi()?qn(Rr(64,BigInt(e))):qn(zd(e)))}function ou(e){if(Yn(e))e=qn(ul(e));else{if(e=Gs(e),Yn(e))e=String(e);else{const t=String(e);Hd(t)?e=t:(gs(e),e=jd())}e=qn(e)}return e}function da(e){return e==null?e:typeof e=="bigint"?(fa(e)?e=Number(e):(e=Rr(64,e),e=fa(e)?Number(e):String(e)),e):Fr(e)?typeof e=="number"?ul(e):Wd(e):void 0}function Mg(e){if(e==null)return e;var t=typeof e;if(t==="bigint")return String(xg(64,e));if(Fr(e)){if(t==="string")return t=Gs(Number(e)),Yn(t)&&t>=0?e=String(t):((t=e.indexOf("."))!==-1&&(e=e.substring(0,t)),ru(e)||(Wi(e),e=Lr(ke,Fe))),e;if(t==="number")return(e=Gs(e))>=0&&Yn(e)?e:(function(n){if(n<0){gs(n);var s=Lr(ke,Fe);return n=Number(s),Yn(n)?n:s}return ru(s=String(n))?s:(gs(n),al(ke,Fe))})(e)}}function Kd(e){if(typeof e!="string")throw Error();return e}function Zs(e){if(e!=null&&typeof e!="string")throw Error();return e}function js(e){return e==null||typeof e=="string"?e:void 0}function fl(e,t,n,s){if(e!=null&&typeof e=="object"&&e.W===Vr)return e;if(!Array.isArray(e))return n?2&s?((e=t[Jc])||(Js((e=new t).u),e=t[Jc]=e),t=e):t=new t:t=void 0,t;let r=n=0|e[z];return r===0&&(r|=32&s),r|=2&s,r!==n&&ze(e,r),new t(e)}function Dg(e,t,n){if(t)e:{if(!Fr(t=e))throw Nd("int64");switch(typeof t){case"string":t=iu(t);break e;case"bigint":t=qn(Rr(64,t));break e;default:t=ou(t)}}else e=typeof(t=e),t=t==null?t:e==="bigint"?qn(Rr(64,t)):Fr(t)?e==="string"?iu(t):ou(t):void 0;return(e=t)==null?n?Ig:void 0:e}function Pg(e){return e}const Og={};let Lg=(function(){try{return Bi(new class extends Map{constructor(){super()}}),!1}catch{return!0}})();class Oo{constructor(){this.g=new Map}get(t){return this.g.get(t)}set(t,n){return this.g.set(t,n),this.size=this.g.size,this}delete(t){return t=this.g.delete(t),this.size=this.g.size,t}clear(){this.g.clear(),this.size=this.g.size}has(t){return this.g.has(t)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(t,n){return this.g.forEach(t,n)}[Symbol.iterator](){return this.entries()}}const Rg=Lg?(Object.setPrototypeOf(Oo.prototype,Map.prototype),Object.defineProperties(Oo.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Oo):class extends Map{constructor(){super()}};function au(e){return e}function Lo(e){if(2&e.M)throw Error("Cannot mutate an immutable Map")}var dn=class extends Rg{constructor(e,t,n=au,s=au){super();let r=0|e[z];r|=64,ze(e,r),this.M=r,this.I=t,this.S=n,this.X=this.I?Fg:s;for(let i=0;i<e.length;i++){const o=e[i],a=n(o[0],!1,!0);let l=o[1];t?l===void 0&&(l=null):l=s(o[1],!1,!0,void 0,void 0,r),super.set(a,l)}}La(){var e=Bg;if(this.size!==0)return Array.from(super.entries(),(t=>(t[0]=e(t[0]),t[1]=e(t[1]),t)))}da(e=Ng){const t=[],n=super.entries();for(var s;!(s=n.next()).done;)(s=s.value)[0]=e(s[0]),s[1]=e(s[1]),t.push(s);return t}clear(){Lo(this),super.clear()}delete(e){return Lo(this),super.delete(this.S(e,!0,!1))}entries(){if(this.I){var e=super.keys();e=new Zc(e,Ug,this)}else e=super.entries();return e}values(){if(this.I){var e=super.keys();e=new Zc(e,dn.prototype.get,this)}else e=super.values();return e}forEach(e,t){this.I?super.forEach(((n,s,r)=>{e.call(t,r.get(s),s,r)})):super.forEach(e,t)}set(e,t){return Lo(this),(e=this.S(e,!0,!1))==null?this:t==null?(super.delete(e),this):super.set(e,this.X(t,!0,!0,this.I,!1,this.M))}Ja(e){const t=this.S(e[0],!1,!0);e=e[1],e=this.I?e===void 0?null:e:this.X(e,!1,!0,void 0,!1,this.M),super.set(t,e)}has(e){return super.has(this.S(e,!1,!1))}get(e){e=this.S(e,!1,!1);const t=super.get(e);if(t!==void 0){var n=this.I;return n?((n=this.X(t,!1,!0,n,this.pa,this.M))!==t&&super.set(e,n),n):t}}[Symbol.iterator](){return this.entries()}};function Fg(e,t,n,s,r,i){return e=fl(e,s,n,i),r&&(e=Xi(e)),e}function Ng(e){return e}function Ug(e){return[e,this.get(e)]}let lu,qd,ha,cu;function uu(){return lu||(lu=new dn(Js([]),void 0,void 0,void 0,Og))}function pa(e,t,n,s,r){if(e!=null){if(Array.isArray(e)){const i=0|e[z];return e.length===0&&1&i?void 0:r&&2&i?e:qi(e,t,n,s!==void 0,r)}return t(e,s)}}function qi(e,t,n,s,r){const i=s||n?0|e[z]:0,o=s?!!(32&i):void 0;let a=0;const l=(s=yt(e)).length;for(let C=0;C<l;C++){var c=s[C];if(C===l-1&&$i(c)){var u=t,h=n,k=o,I=r;let M;for(let b in c){const v=pa(c[b],u,h,k,I);v!=null&&((M??(M={}))[b]=v)}c=M}else c=pa(s[C],t,n,o,r);s[C]=c,c!=null&&(a=C+1)}return a<l&&(s.length=a),n&&((e=il(e))&&(s[Bs]=yt(e)),n(i,s)),s}function Bg(e){return pa(e,dl,void 0,void 0,!1)}function dl(e){switch(typeof e){case"number":return Number.isFinite(e)?e:""+e;case"bigint":return fa(e)?Number(e):""+e;case"boolean":return e?1:0;case"object":if(hs(e))return hs(e)&&nl(Ud),Kc(e);if(e.W===Vr)return Yd(e);if(e instanceof Sn){const t=e.g;return t==null?"":typeof t=="string"?t:e.g=Kc(t)}return e instanceof dn?e.La():void 0}return e}function Yd(e){var t=e.u;e=qi(t,dl,void 0,void 0,!1);var n=0|t[z];if((t=e.length)&&!(512&n)){var s=e[t-1],r=!1;$i(s)?(t--,r=!0):s=void 0;var i=t-(n=512&n?0:-1),o=(qd??Pg)(i,n,e,s);if(s&&(e[t]=void 0),i<o&&s){for(var a in i=!0,s){const l=+a;l<=o?(e[r=l+n]=s[a],t=Math.max(r+1,t),r=!1,delete s[a]):i=!1}i&&(s=void 0)}for(i=t-1;t>0;i=t-1)if((a=e[i])==null)t--,r=!0;else{if(!((i-=n)>=o))break;(s??(s={}))[i]=a,t--,r=!0}r&&(e.length=t),s&&e.push(s)}return e}function Xn(e,t,n){return e=Xd(e,t[0],t[1],n?1:2),t!==ha&&n&&ji(e,8192),e}function Xd(e,t,n,s){if(e==null){var r=96;n?(e=[n],r|=512):e=[],t&&(r=-16760833&r|(1023&t)<<14)}else{if(!Array.isArray(e))throw Error("narr");if(8192&(r=0|e[z])||!(64&r)||2&r||nl(vg),1024&r)throw Error("farr");if(64&r)return e;if(s===1||s===2||(r|=64),n&&(r|=512,n!==e[0]))throw Error("mid");e:{var i=(n=e).length;if(i){var o=i-1;if($i(s=n[o])){if((o-=t=512&(r|=256)?0:-1)>=1024)throw Error("pvtlmt");for(var a in s)(i=+a)<o&&(n[i+t]=s[a],delete s[a]);r=-16760833&r|(1023&o)<<14;break e}}if(t){if((a=Math.max(t,i-(512&r?0:-1)))>1024)throw Error("spvt");r=-16760833&r|(1023&a)<<14}}}return ze(e,r),e}function ga(e,t,n=ua){if(e!=null){if(Pd&&e instanceof Uint8Array)return t?e:new Uint8Array(e);if(Array.isArray(e)){var s=0|e[z];return 2&s?e:(t&&(t=s===0||!!(32&s)&&!(64&s||!(16&s))),t?(ze(e,34|s),4&s&&Object.freeze(e),e):qi(e,ga,4&s?ua:n,!0,!0))}return e.W===Vr?e=2&(s=0|(n=e.u)[z])?e:new e.constructor(Yi(n,s,!0)):e instanceof dn&&!(2&e.M)&&(n=Js(e.da(ga)),e=new dn(n,e.I,e.S,e.X)),e}}function Yi(e,t,n){const s=n||2&t?ua:yg,r=!!(32&t);return e=(function(i,o,a){const l=yt(i);var c=l.length;const u=256&o?l[c-1]:void 0;for(c+=u?-1:0,o=512&o?1:0;o<c;o++)l[o]=a(l[o]);if(u){o=l[o]={};for(const h in u)o[h]=a(u[h])}return(i=il(i))&&(l[Bs]=yt(i)),l})(e,t,(i=>ga(i,r,s))),ji(e,32|(n?2:0)),e}function Xi(e){const t=e.u,n=0|t[z];return 2&n?new e.constructor(Yi(t,n,!1)):e}function Vs(e,t){return Rn(e=e.u,0|e[z],t)}function Rn(e,t,n){if(n===-1)return null;const s=n+(512&t?0:-1),r=e.length-1;return s>=r&&256&t?e[r][n]:s<=r?e[s]:void 0}function Se(e,t,n){const s=e.u;let r=0|s[z];return es(r),Le(s,r,t,n),e}function Le(e,t,n,s){const r=512&t?0:-1,i=n+r;var o=e.length-1;return i>=o&&256&t?(e[o][n]=s,t):i<=o?(e[i]=s,t):(s!==void 0&&(n>=(o=t>>14&1023||536870912)?s!=null&&(e[o+r]={[n]:s},ze(e,t|=256)):e[i]=s),t)}function oi(e,t){let n=0|(e=e.u)[z];const s=Rn(e,n,t),r=ts(s);return r!=null&&r!==s&&Le(e,n,t,r),r}function Jd(e){let t=0|(e=e.u)[z];const n=Rn(e,t,1),s=rl(n,!0);return s!=null&&s!==n&&Le(e,t,1,s),s}function ls(){return _g===void 0?2:4}function cs(e,t,n,s,r){const i=e.u,o=2&(e=0|i[z])?1:s;r=!!r;let a=0|(s=hl(i,e,t))[z];if(!(4&a)){4&a&&(s=yt(s),a=Tn(a,e),e=Le(i,e,t,s));let l=0,c=0;for(;l<s.length;l++){const u=n(s[l]);u!=null&&(s[c++]=u)}c<l&&(s.length=c),a=pl(a,e),n=-2049&(20|a),a=n&=-4097,ze(s,a),2&a&&Object.freeze(s)}return o===1||o===4&&32&a?En(a)||(r=a,a|=2,a!==r&&ze(s,a),Object.freeze(s)):(o===2&&En(a)&&(s=yt(s),a=Tn(a,e),a=Jn(a,e,r),ze(s,a),e=Le(i,e,t,s)),En(a)||(t=a,a=Jn(a,e,r),a!==t&&ze(s,a))),s}function hl(e,t,n){return e=Rn(e,t,n),Array.isArray(e)?e:sl}function pl(e,t){return e===0&&(e=Tn(e,t)),1|e}function En(e){return!!(2&e)&&!!(4&e)||!!(1024&e)}function Qd(e){e=yt(e);for(let t=0;t<e.length;t++){const n=e[t]=yt(e[t]);Array.isArray(n[1])&&(n[1]=Js(n[1]))}return e}function ma(e,t,n,s){let r=0|(e=e.u)[z];es(r),Le(e,r,t,(s==="0"?Number(n)===0:n===s)?void 0:n)}function er(e,t,n,s){es(t);let r=hl(e,t,n);const i=r!==sl;if(64&t||!(8192&t)||!i){const o=i?0|r[z]:0;let a=o;(!i||2&a||En(a)||4&a&&!(32&a))&&(r=yt(r),a=Tn(a,t),t=Le(e,t,n,r)),a=-13&pl(a,t),a=Jn(s?-17&a:16|a,t,!0),a!==o&&ze(r,a)}return r}function Ro(e,t){var n=Uh;return ml(gl(e=e.u),e,0|e[z],n)===t?t:-1}function gl(e){if(Gi)return e[cr]??(e[cr]=new Map);if(cr in e)return e[cr];const t=new Map;return Object.defineProperty(e,cr,{value:t}),t}function Zd(e,t,n,s){const r=gl(e),i=ml(r,e,t,n);return i!==s&&(i&&(t=Le(e,t,i)),r.set(n,s)),t}function ml(e,t,n,s){let r=e.get(s);if(r!=null)return r;r=0;for(let i=0;i<s.length;i++){const o=s[i];Rn(t,n,o)!=null&&(r!==0&&(n=Le(t,n,r)),r=o)}return e.set(s,r),r}function vl(e,t,n){let s=0|e[z];const r=Rn(e,s,n);let i;if(r!=null&&r.W===Vr)return(t=Xi(r))!==r&&Le(e,s,n,t),t.u;if(Array.isArray(r)){const o=0|r[z];i=2&o?Xn(Yi(r,o,!1),t,!0):64&o?r:Xn(i,t,!0)}else i=Xn(void 0,t,!0);return i!==r&&Le(e,s,n,i),i}function eh(e,t,n){let s=0|(e=e.u)[z];const r=Rn(e,s,n);return(t=fl(r,t,!1,s))!==r&&t!=null&&Le(e,s,n,t),t}function ue(e,t,n){if((t=eh(e,t,n))==null)return t;let s=0|(e=e.u)[z];if(!(2&s)){const r=Xi(t);r!==t&&Le(e,s,n,t=r)}return t}function th(e,t,n,s,r,i,o){e=e.u;var a=!!(2&t);const l=a?1:r;i=!!i,o&&(o=!a);var c=0|(r=hl(e,t,s))[z];if(!(a=!!(4&c))){var u=r,h=t;const k=!!(2&(c=pl(c,t)));k&&(h|=2);let I=!k,C=!0,M=0,b=0;for(;M<u.length;M++){const v=fl(u[M],n,!1,h);if(v instanceof n){if(!k){const w=!!(2&(0|v.u[z]));I&&(I=!w),C&&(C=w)}u[b++]=v}}b<M&&(u.length=b),c|=4,c=C?16|c:-17&c,ze(u,c=I?8|c:-9&c),k&&Object.freeze(u)}if(o&&!(8&c||!r.length&&(l===1||l===4&&32&c))){for(En(c)&&(r=yt(r),c=Tn(c,t),t=Le(e,t,s,r)),n=r,o=c,u=0;u<n.length;u++)(c=n[u])!==(h=Xi(c))&&(n[u]=h);o|=8,ze(n,o=n.length?-17&o:16|o),c=o}return l===1||l===4&&32&c?En(c)||(t=c,(c|=!r.length||16&c&&(!a||32&c)?2:1024)!==t&&ze(r,c),Object.freeze(r)):(l===2&&En(c)&&(ze(r=yt(r),c=Jn(c=Tn(c,t),t,i)),t=Le(e,t,s,r)),En(c)||(s=c,(c=Jn(c,t,i))!==s&&ze(r,c))),r}function Pn(e,t,n){const s=0|e.u[z];return th(e,s,t,n,ls(),!1,!(2&s))}function q(e,t,n,s){return s==null&&(s=void 0),Se(e,n,s)}function Sr(e,t,n,s){s==null&&(s=void 0);e:{let r=0|(e=e.u)[z];if(es(r),s==null){const i=gl(e);if(ml(i,e,r,n)!==t)break e;i.set(n,0)}else r=Zd(e,r,n,t);Le(e,r,t,s)}}function Tn(e,t){return-1025&(e=32|(2&t?2|e:-3&e))}function Jn(e,t,n){return 32&t&&n||(e&=-33),e}function Ji(e,t,n){es(0|e.u[z]),cs(e,t,js,2,!0).push(Kd(n))}function ki(e,t,n,s){const r=0|e.u[z];es(r),e=th(e,r,n,t,2,!0),s=s??new n,e.push(s),e[z]=2&(0|s.u[z])?-9&e[z]:-17&e[z]}function Bt(e,t){return Qs(Vs(e,t))}function jt(e,t){return js(Vs(e,t))}function je(e,t){return oi(e,t)??0}function Nr(e,t,n){if(n!=null&&typeof n!="boolean")throw e=typeof n,Error(`Expected boolean but got ${e!="object"?e:n?Array.isArray(n)?"array":e:"null"}: ${n}`);Se(e,t,n)}function hn(e,t,n){if(n!=null){if(typeof n!="number"||!Ki(n))throw Nd("int32");n|=0}Se(e,t,n)}function V(e,t,n){if(n!=null&&typeof n!="number")throw Error(`Value of float/double field must be a number, found ${typeof n}: ${n}`);Se(e,t,n)}function wi(e,t,n){{const o=e.u;let a=0|o[z];if(es(a),n==null)Le(o,a,t);else{var s=e=0|n[z],r=En(e),i=r||Object.isFrozen(n);for(r||(e=0),i||(n=yt(n),s=0,e=Jn(e=Tn(e,a),a,!0),i=!1),e|=21,r=0;r<n.length;r++){const l=n[r],c=Kd(l);Object.is(l,c)||(i&&(n=yt(n),s=0,e=Jn(e=Tn(e,a),a,!0),i=!1),n[r]=c)}e!==s&&(i&&(n=yt(n),e=Jn(e=Tn(e,a),a,!0)),ze(n,e)),Le(o,a,t,n)}}}function nh(e,t){return Error(`Invalid wire type: ${e} (at position ${t})`)}function yl(){return Error("Failed to read varint, encoding is invalid.")}function sh(e,t){return Error(`Tried to read past the end of the data ${t} > ${e}`)}function _l(e){if(typeof e=="string")return{buffer:Ld(e),O:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),O:!1};if(e.constructor===Uint8Array)return{buffer:e,O:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),O:!1};if(e.constructor===Sn)return{buffer:tl(e)||new Uint8Array(0),O:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function bl(e,t){let n,s=0,r=0,i=0;const o=e.h;let a=e.g;do n=o[a++],s|=(127&n)<<i,i+=7;while(i<32&&128&n);for(i>32&&(r|=(127&n)>>4),i=3;i<32&&128&n;i+=7)n=o[a++],r|=(127&n)<<i;if(ds(e,a),n<128)return t(s>>>0,r>>>0);throw yl()}function kl(e){let t=0,n=e.g;const s=n+10,r=e.h;for(;n<s;){const i=r[n++];if(t|=i,(128&i)==0)return ds(e,n),!!(127&t)}throw yl()}function Qn(e){const t=e.h;let n=e.g,s=t[n++],r=127&s;if(128&s&&(s=t[n++],r|=(127&s)<<7,128&s&&(s=t[n++],r|=(127&s)<<14,128&s&&(s=t[n++],r|=(127&s)<<21,128&s&&(s=t[n++],r|=s<<28,128&s&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++]&&128&t[n++])))))throw yl();return ds(e,n),r}function On(e){return Qn(e)>>>0}function va(e){var t=e.h;const n=e.g,s=t[n],r=t[n+1],i=t[n+2];return t=t[n+3],ds(e,e.g+4),(s<<0|r<<8|i<<16|t<<24)>>>0}function ya(e){var t=va(e);e=2*(t>>31)+1;const n=t>>>23&255;return t&=8388607,n==255?t?NaN:e*(1/0):n==0?1401298464324817e-60*e*t:e*Math.pow(2,n-150)*(t+8388608)}function Gg(e){return Qn(e)}function Fo(e,t,{aa:n=!1}={}){e.aa=n,t&&(t=_l(t),e.h=t.buffer,e.m=t.O,e.j=0,e.l=e.h.length,e.g=e.j)}function ds(e,t){if(e.g=t,t>e.l)throw sh(e.l,t)}function rh(e,t){if(t<0)throw Error(`Tried to read a negative byte length: ${t}`);const n=e.g,s=n+t;if(s>e.l)throw sh(t,e.l-n);return e.g=s,n}function ih(e,t){if(t==0)return ps();var n=rh(e,t);return e.aa&&e.m?n=e.h.subarray(n,n+t):(e=e.h,n=n===(t=n+t)?new Uint8Array(0):Tg?e.slice(n,t):new Uint8Array(e.subarray(n,t))),n.length==0?ps():new Sn(n,Us)}dn.prototype.toJSON=void 0;var fu=[];function oh(e){var t=e.g;if(t.g==t.l)return!1;e.l=e.g.g;var n=On(e.g);if(t=n>>>3,!((n&=7)>=0&&n<=5))throw nh(n,e.l);if(t<1)throw Error(`Invalid field number: ${t} (at position ${e.l})`);return e.m=t,e.h=n,!0}function ai(e){switch(e.h){case 0:e.h!=0?ai(e):kl(e.g);break;case 1:ds(e=e.g,e.g+8);break;case 2:if(e.h!=2)ai(e);else{var t=On(e.g);ds(e=e.g,e.g+t)}break;case 5:ds(e=e.g,e.g+4);break;case 3:for(t=e.m;;){if(!oh(e))throw Error("Unmatched start-group tag: stream EOF");if(e.h==4){if(e.m!=t)throw Error("Unmatched end-group tag");break}ai(e)}break;default:throw nh(e.h,e.l)}}function $r(e,t,n){const s=e.g.l,r=On(e.g),i=e.g.g+r;let o=i-s;if(o<=0&&(e.g.l=i,n(t,e,void 0,void 0,void 0),o=i-e.g.g),o)throw Error(`Message parsing ended unexpectedly. Expected to read ${r} bytes, instead read ${r-o} bytes, either the data ended unexpectedly or the message misreported its own length`);return e.g.g=i,e.g.l=s,t}function wl(e){var t=On(e.g),n=rh(e=e.g,t);if(e=e.h,ug){var s,r=e;(s=Co)||(s=Co=new TextDecoder("utf-8",{fatal:!0})),t=n+t,r=n===0&&t===r.length?r:r.subarray(n,t);try{var i=s.decode(r)}catch(a){if(Yr===void 0){try{s.decode(new Uint8Array([128]))}catch{}try{s.decode(new Uint8Array([97])),Yr=!0}catch{Yr=!1}}throw!Yr&&(Co=void 0),a}}else{t=(i=n)+t,n=[];let a,l=null;for(;i<t;){var o=e[i++];o<128?n.push(o):o<224?i>=t?is():(a=e[i++],o<194||(192&a)!=128?(i--,is()):n.push((31&o)<<6|63&a)):o<240?i>=t-1?is():(a=e[i++],(192&a)!=128||o===224&&a<160||o===237&&a>=160||(192&(s=e[i++]))!=128?(i--,is()):n.push((15&o)<<12|(63&a)<<6|63&s)):o<=244?i>=t-2?is():(a=e[i++],(192&a)!=128||a-144+(o<<28)>>30!=0||(192&(s=e[i++]))!=128||(192&(r=e[i++]))!=128?(i--,is()):(o=(7&o)<<18|(63&a)<<12|(63&s)<<6|63&r,o-=65536,n.push(55296+(o>>10&1023),56320+(1023&o)))):is(),n.length>=8192&&(l=Vc(l,n),n.length=0)}i=Vc(l,n)}return i}function ah(e){const t=On(e.g);return ih(e.g,t)}function Qi(e,t,n){var s=On(e.g);for(s=e.g.g+s;e.g.g<s;)n.push(t(e.g))}var Xr=[];function Xt(e,t,n){t.g?t.m(e,t.g,t.h,n):t.m(e,t.h,n)}var G=class{constructor(e,t){this.u=Xd(e,t)}toJSON(){try{var e=Yd(this)}finally{qd=void 0}return e}l(){var e=b0;return e.g?e.l(this,e.g,e.h):e.l(this,e.h,e.defaultValue)}clone(){const e=this.u;return new this.constructor(Yi(e,0|e[z],!1))}O(){return!!(2&(0|this.u[z]))}};function du(e){return e?/^\d+$/.test(e)?(Wi(e),new _a(ke,Fe)):null:hu||(hu=new _a(0,0))}G.prototype.W=Vr,G.prototype.toString=function(){return this.u.toString()};var _a=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let hu;function pu(e){return e?/^-?\d+$/.test(e)?(Wi(e),new ba(ke,Fe)):null:gu||(gu=new ba(0,0))}var ba=class{constructor(e,t){this.h=e>>>0,this.g=t>>>0}};let gu;function Ps(e,t,n){for(;n>0||t>127;)e.g.push(127&t|128),t=(t>>>7|n<<25)>>>0,n>>>=7;e.g.push(t)}function tr(e,t){for(;t>127;)e.g.push(127&t|128),t>>>=7;e.g.push(t)}function Zi(e,t){if(t>=0)tr(e,t);else{for(let n=0;n<9;n++)e.g.push(127&t|128),t>>=7;e.g.push(1)}}function Ur(e,t){e.g.push(t>>>0&255),e.g.push(t>>>8&255),e.g.push(t>>>16&255),e.g.push(t>>>24&255)}function $s(e,t){t.length!==0&&(e.l.push(t),e.h+=t.length)}function Dt(e,t,n){tr(e.g,8*t+n)}function El(e,t){return Dt(e,t,2),t=e.g.end(),$s(e,t),t.push(e.h),t}function Al(e,t){var n=t.pop();for(n=e.h+e.g.length()-n;n>127;)t.push(127&n|128),n>>>=7,e.h++;t.push(n),e.h++}function eo(e,t,n){Dt(e,t,2),tr(e.g,n.length),$s(e,e.g.end()),$s(e,n)}function Ei(e,t,n,s){n!=null&&(t=El(e,t),s(n,e),Al(e,t))}function Jt(){const e=class{constructor(){throw Error()}};return Object.setPrototypeOf(e,e.prototype),e}var Sl=Jt(),lh=Jt(),Tl=Jt(),xl=Jt(),ch=Jt(),uh=Jt(),Il=Jt(),fh=Jt(),dh=Jt(),nr=class{constructor(e,t,n){this.g=e,this.h=t,e=Sl,this.l=!!e&&n===e||!1}};function to(e,t){return new nr(e,t,Sl)}function hh(e,t,n,s,r){Ei(e,n,gh(t,s),r)}const jg=to((function(e,t,n,s,r){return e.h===2&&($r(e,vl(t,s,n),r),!0)}),hh),Vg=to((function(e,t,n,s,r){return e.h===2&&($r(e,vl(t,s,n),r),!0)}),hh);var no=Symbol(),Cl=Symbol(),mu=Symbol(),vu=Symbol();let ka,wa;function vs(e,t,n,s){var r=s[e];if(r)return r;(r={}).Ma=s,r.T=(function(h){switch(typeof h){case"boolean":return ha||(ha=[0,void 0,!0]);case"number":return h>0?void 0:h===0?cu||(cu=[0,void 0]):[-h,void 0];case"string":return[0,h];case"object":return h}})(s[0]);var i=s[1];let o=1;i&&i.constructor===Object&&(r.ga=i,typeof(i=s[++o])=="function"&&(r.la=!0,ka??(ka=i),wa??(wa=s[o+1]),i=s[o+=2]));const a={};for(;i&&Array.isArray(i)&&i.length&&typeof i[0]=="number"&&i[0]>0;){for(var l=0;l<i.length;l++)a[i[l]]=i;i=s[++o]}for(l=1;i!==void 0;){let h;typeof i=="number"&&(l+=i,i=s[++o]);var c=void 0;if(i instanceof nr?h=i:(h=jg,o--),h==null?void 0:h.l){i=s[++o],c=s;var u=o;typeof i=="function"&&(i=i(),c[u]=i),c=i}for(u=l+1,typeof(i=s[++o])=="number"&&i<0&&(u-=i,i=s[++o]);l<u;l++){const k=a[l];c?n(r,l,h,c,k):t(r,l,h,k)}}return s[e]=r}function ph(e){return Array.isArray(e)?e[0]instanceof nr?e:[Vg,e]:[e,void 0]}function gh(e,t){return e instanceof G?e.u:Array.isArray(e)?Xn(e,t,!1):void 0}function Ml(e,t,n,s){const r=n.g;e[t]=s?(i,o,a)=>r(i,o,a,s):r}function Dl(e,t,n,s,r){const i=n.g;let o,a;e[t]=(l,c,u)=>i(l,c,u,a||(a=vs(Cl,Ml,Dl,s).T),o||(o=Pl(s)),r)}function Pl(e){let t=e[mu];if(t!=null)return t;const n=vs(Cl,Ml,Dl,e);return t=n.la?(s,r)=>ka(s,r,n):(s,r)=>{const i=0|s[z];for(;oh(r)&&r.h!=4;){var o=r.m,a=n[o];if(a==null){var l=n.ga;l&&(l=l[o])&&(l=$g(l))!=null&&(a=n[o]=l)}a!=null&&a(r,s,o)||(o=(a=r).l,ai(a),a.fa?a=void 0:(l=a.g.g-o,a.g.g=o,a=ih(a.g,l)),o=s,a&&((l=o[Bs])?l.push(a):o[Bs]=[a]))}return 8192&i&&Js(s),!0},e[mu]=t}function $g(e){const t=(e=ph(e))[0].g;if(e=e[1]){const n=Pl(e),s=vs(Cl,Ml,Dl,e).T;return(r,i,o)=>t(r,i,o,s,n)}return t}function so(e,t,n){e[t]=n.h}function ro(e,t,n,s){let r,i;const o=n.h;e[t]=(a,l,c)=>o(a,l,c,i||(i=vs(no,so,ro,s).T),r||(r=mh(s)))}function mh(e){let t=e[vu];if(!t){const n=vs(no,so,ro,e);t=(s,r)=>vh(s,r,n),e[vu]=t}return t}function vh(e,t,n){(function(s,r,i){const o=512&r?0:-1,a=s.length,l=a+((r=64&r?256&r:!!a&&$i(s[a-1]))?-1:0);for(let c=0;c<l;c++)i(c-o,s[c]);if(r){s=s[a-1];for(const c in s)!isNaN(c)&&i(+c,s[c])}})(e,0|e[z]|(n.T[1]?512:0),((s,r)=>{if(r!=null){var i=(function(o,a){var l=o[a];if(l)return l;if((l=o.ga)&&(l=l[a])){var c=(l=ph(l))[0].h;if(l=l[1]){const u=mh(l),h=vs(no,so,ro,l).T;l=o.la?wa(h,u):(k,I,C)=>c(k,I,C,h,u)}else l=c;return o[a]=l}})(n,s);i&&i(t,r,s)}})),(e=il(e))&&(function(s,r){$s(s,s.g.end());for(let i=0;i<r.length;i++)$s(s,tl(r[i])||new Uint8Array(0))})(t,e)}function sr(e,t){if(Array.isArray(t)){var n=0|t[z];if(4&n)return t;for(var s=0,r=0;s<t.length;s++){const i=e(t[s]);i!=null&&(t[r++]=i)}return r<s&&(t.length=r),ze(t,-6145&(5|n)),2&n&&Object.freeze(t),t}}function ft(e,t,n){return new nr(e,t,n)}function rr(e,t,n){return new nr(e,t,n)}function dt(e,t,n){Le(e,0|e[z],t,n)}var Hg=to((function(e,t,n,s,r){return e.h===2&&(e=$r(e,Xn([void 0,void 0],s,!0),r),es(s=0|t[z]),(r=Rn(t,s,n))instanceof dn?(2&r.M)!=0?((r=r.da()).push(e),Le(t,s,n,r)):r.Ja(e):Array.isArray(r)?(2&(0|r[z])&&Le(t,s,n,r=Qd(r)),r.push(e)):Le(t,s,n,[e]),!0)}),(function(e,t,n,s,r){if(t instanceof dn)t.forEach(((i,o)=>{Ei(e,n,Xn([o,i],s,!1),r)}));else if(Array.isArray(t))for(let i=0;i<t.length;i++){const o=t[i];Array.isArray(o)&&Ei(e,n,Xn(o,s,!1),r)}}));function yh(e,t,n){if(t=(function(s){if(s==null)return s;const r=typeof s;if(r==="bigint")return String(Rr(64,s));if(Fr(s)){if(r==="string")return Wd(s);if(r==="number")return ul(s)}})(t),t!=null&&(typeof t=="string"&&pu(t),t!=null))switch(Dt(e,n,0),typeof t){case"number":e=e.g,gs(t),Ps(e,ke,Fe);break;case"bigint":n=BigInt.asUintN(64,t),n=new ba(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),Ps(e.g,n.h,n.g);break;default:n=pu(t),Ps(e.g,n.h,n.g)}}function _h(e,t,n){(t=Qs(t))!=null&&t!=null&&(Dt(e,n,0),Zi(e.g,t))}function bh(e,t,n){(t=Vd(t))!=null&&(Dt(e,n,0),e.g.g.push(t?1:0))}function kh(e,t,n){(t=js(t))!=null&&eo(e,n,Cd(t))}function wh(e,t,n,s,r){Ei(e,n,gh(t,s),r)}function Eh(e,t,n){t==null||typeof t=="string"||t instanceof Sn||(hs(t)?hs(t)&&nl(Ud):t=void 0),t!=null&&eo(e,n,_l(t).buffer)}function Ah(e,t,n){return(e.h===5||e.h===2)&&(t=er(t,0|t[z],n,!1),e.h==2?Qi(e,ya,t):t.push(ya(e.g)),!0)}var bn=ft((function(e,t,n){if(e.h!==1)return!1;var s=e.g;e=va(s);const r=va(s);s=2*(r>>31)+1;const i=r>>>20&2047;return e=4294967296*(1048575&r)+e,dt(t,n,i==2047?e?NaN:s*(1/0):i==0?5e-324*s*e:s*Math.pow(2,i-1075)*(e+4503599627370496)),!0}),(function(e,t,n){(t=ts(t))!=null&&(Dt(e,n,1),e=e.g,(n=bi||(bi=new DataView(new ArrayBuffer(8)))).setFloat64(0,+t,!0),ke=n.getUint32(0,!0),Fe=n.getUint32(4,!0),Ur(e,ke),Ur(e,Fe))}),Jt()),We=ft((function(e,t,n){return e.h===5&&(dt(t,n,ya(e.g)),!0)}),(function(e,t,n){(t=ts(t))!=null&&(Dt(e,n,5),e=e.g,ol(t),Ur(e,ke))}),Il),zg=rr(Ah,(function(e,t,n){if((t=sr(ts,t))!=null)for(let o=0;o<t.length;o++){var s=e,r=n,i=t[o];i!=null&&(Dt(s,r,5),s=s.g,ol(i),Ur(s,ke))}}),Il),Ol=rr(Ah,(function(e,t,n){if((t=sr(ts,t))!=null&&t.length){Dt(e,n,2),tr(e.g,4*t.length);for(let s=0;s<t.length;s++)n=e.g,ol(t[s]),Ur(n,ke)}}),Il),Zn=ft((function(e,t,n){return e.h===0&&(dt(t,n,bl(e.g,ll)),!0)}),yh,uh),No=ft((function(e,t,n){return e.h===0&&(dt(t,n,(e=bl(e.g,ll))===0?void 0:e),!0)}),yh,uh),Wg=ft((function(e,t,n){return e.h===0&&(dt(t,n,bl(e.g,al)),!0)}),(function(e,t,n){if((t=Mg(t))!=null&&(typeof t=="string"&&du(t),t!=null))switch(Dt(e,n,0),typeof t){case"number":e=e.g,gs(t),Ps(e,ke,Fe);break;case"bigint":n=BigInt.asUintN(64,t),n=new _a(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),Ps(e.g,n.h,n.g);break;default:n=du(t),Ps(e.g,n.h,n.g)}}),Jt()),Ne=ft((function(e,t,n){return e.h===0&&(dt(t,n,Qn(e.g)),!0)}),_h,xl),io=rr((function(e,t,n){return(e.h===0||e.h===2)&&(t=er(t,0|t[z],n,!1),e.h==2?Qi(e,Qn,t):t.push(Qn(e.g)),!0)}),(function(e,t,n){if((t=sr(Qs,t))!=null&&t.length){n=El(e,n);for(let s=0;s<t.length;s++)Zi(e.g,t[s]);Al(e,n)}}),xl),Ss=ft((function(e,t,n){return e.h===0&&(dt(t,n,(e=Qn(e.g))===0?void 0:e),!0)}),_h,xl),Me=ft((function(e,t,n){return e.h===0&&(dt(t,n,kl(e.g)),!0)}),bh,lh),Os=ft((function(e,t,n){return e.h===0&&(dt(t,n,(e=kl(e.g))===!1?void 0:e),!0)}),bh,lh),st=rr((function(e,t,n){return e.h===2&&(e=wl(e),er(t,0|t[z],n,!1).push(e),!0)}),(function(e,t,n){if((t=sr(js,t))!=null)for(let o=0;o<t.length;o++){var s=e,r=n,i=t[o];i!=null&&eo(s,r,Cd(i))}}),Tl),zn=ft((function(e,t,n){return e.h===2&&(dt(t,n,(e=wl(e))===""?void 0:e),!0)}),kh,Tl),me=ft((function(e,t,n){return e.h===2&&(dt(t,n,wl(e)),!0)}),kh,Tl),qe=(function(e,t,n=Sl){return new nr(e,t,n)})((function(e,t,n,s,r){return e.h===2&&(s=Xn(void 0,s,!0),er(t,0|t[z],n,!0).push(s),$r(e,s,r),!0)}),(function(e,t,n,s,r){if(Array.isArray(t))for(let i=0;i<t.length;i++)wh(e,t[i],n,s,r)})),ge=to((function(e,t,n,s,r,i){return e.h===2&&(Zd(t,0|t[z],i,n),$r(e,t=vl(t,s,n),r),!0)}),wh),Sh=ft((function(e,t,n){return e.h===2&&(dt(t,n,ah(e)),!0)}),Eh,fh),Kg=rr((function(e,t,n){return(e.h===0||e.h===2)&&(t=er(t,0|t[z],n,!1),e.h==2?Qi(e,On,t):t.push(On(e.g)),!0)}),(function(e,t,n){if((t=sr($d,t))!=null)for(let o=0;o<t.length;o++){var s=e,r=n,i=t[o];i!=null&&(Dt(s,r,0),tr(s.g,i))}}),ch),qg=ft((function(e,t,n){return e.h===0&&(dt(t,n,(e=On(e.g))===0?void 0:e),!0)}),(function(e,t,n){(t=$d(t))!=null&&t!=null&&(Dt(e,n,0),tr(e.g,t))}),ch),Ct=ft((function(e,t,n){return e.h===0&&(dt(t,n,Qn(e.g)),!0)}),(function(e,t,n){(t=Qs(t))!=null&&(t=parseInt(t,10),Dt(e,n,0),Zi(e.g,t))}),dh);class Yg{constructor(t,n){this.h=t,this.g=n,this.l=ue,this.m=q,this.defaultValue=void 0}register(){Bi(this)}}function Qt(e,t){return new Yg(e,t)}function ns(e,t){return(n,s)=>{if(Xr.length){const i=Xr.pop();i.o(s),Fo(i.g,n,s),n=i}else n=new class{constructor(i,o){if(fu.length){const a=fu.pop();Fo(a,i,o),i=a}else i=new class{constructor(a,l){this.h=null,this.m=!1,this.g=this.l=this.j=0,Fo(this,a,l)}clear(){this.h=null,this.m=!1,this.g=this.l=this.j=0,this.aa=!1}}(i,o);this.g=i,this.l=this.g.g,this.h=this.m=-1,this.o(o)}o({fa:i=!1}={}){this.fa=i}}(n,s);try{const i=new e,o=i.u;Pl(t)(o,n);var r=i}finally{n.g.clear(),n.m=-1,n.h=-1,Xr.length<100&&Xr.push(n)}return r}}function oo(e){return function(){const t=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const o=this.g;return this.g=[],o}}}};vh(this.u,t,vs(no,so,ro,e)),$s(t,t.g.end());const n=new Uint8Array(t.h),s=t.l,r=s.length;let i=0;for(let o=0;o<r;o++){const a=s[o];n.set(a,i),i+=a.length}return t.l=[n],n}}var yu=class extends G{constructor(e){super(e)}},_u=[0,zn,ft((function(e,t,n){return e.h===2&&(dt(t,n,(e=ah(e))===ps()?void 0:e),!0)}),(function(e,t,n){if(t!=null){if(t instanceof G){const s=t.Oa;return void(s&&(t=s(t),t!=null&&eo(e,n,_l(t).buffer)))}if(Array.isArray(t))return}Eh(e,t,n)}),fh)];let Uo,bu=globalThis.trustedTypes;function ku(e){Uo===void 0&&(Uo=(function(){let n=null;if(!bu)return n;try{const s=r=>r;n=bu.createPolicy("goog#html",{createHTML:s,createScript:s,createScriptURL:s})}catch{}return n})());var t=Uo;return new class{constructor(n){this.g=n}toString(){return this.g+""}}(t?t.createScriptURL(e):e)}function Xg(e,...t){if(t.length===0)return ku(e[0]);let n=e[0];for(let s=0;s<t.length;s++)n+=encodeURIComponent(t[s])+e[s+1];return ku(n)}var Th=[0,Ne,Ct,Me,-1,io,Ct,-1],Jg=class extends G{constructor(e){super(e)}},xh=[0,Me,me,Me,Ct,-1,rr((function(e,t,n){return(e.h===0||e.h===2)&&(t=er(t,0|t[z],n,!1),e.h==2?Qi(e,Gg,t):t.push(Qn(e.g)),!0)}),(function(e,t,n){if((t=sr(Qs,t))!=null&&t.length){n=El(e,n);for(let s=0;s<t.length;s++)Zi(e.g,t[s]);Al(e,n)}}),dh),me,-1,[0,Me,-1],Ct,Me,-1],Ih=[0,me,-2],wu=class extends G{constructor(e){super(e)}},Ch=[0],Mh=[0,Ne,Me,1,Me,-3],Mt=class extends G{constructor(e){super(e,2)}},Ke={};Ke[336783863]=[0,me,Me,-1,Ne,[0,[1,2,3,4,5,6,7,8,9],ge,Ch,ge,xh,ge,Ih,ge,Mh,ge,Th,ge,[0,me,-2],ge,[0,me,Ct],ge,[0,Ct,me,-1],ge,[0,Ct,-1]],[0,me],Me,[0,[1,3],[2,4],ge,[0,io],-1,ge,[0,st],-1,qe,[0,me,-1]],me];var Eu=[0,No,-1,Os,-3,No,io,zn,Ss,No,-1,Os,Ss,Os,-2,zn];function Pt(e,t){ma(e,2,Zs(t),"")}function Te(e,t){Ji(e,3,t)}function ce(e,t){Ji(e,4,t)}var ut=class extends G{constructor(e){super(e,500)}o(e){return q(this,0,7,e)}},Tr=[-1,{}],Au=[0,me,1,Tr],Su=[0,me,st,Tr];function Ot(e,t){ki(e,1,ut,t)}function xe(e,t){Ji(e,10,t)}function he(e,t){Ji(e,15,t)}var bt=class extends G{constructor(e){super(e,500)}o(e){return q(this,0,1001,e)}},Dh=[-500,qe,[-500,zn,-1,st,-3,[-2,Ke,Me],qe,_u,Ss,-1,Au,Su,qe,[0,zn,Os],zn,Eu,Ss,st,987,st],4,qe,[-500,me,-1,[-1,{}],998,me],qe,[-500,me,st,-1,[-2,{},Me],997,st,-1],Ss,qe,[-500,me,st,Tr,998,st],st,Ss,Au,Su,qe,[0,zn,-1,Tr],st,-2,Eu,zn,-1,Os,[0,Os,qg],978,Tr,qe,_u];bt.prototype.g=oo(Dh);var Qg=ns(bt,Dh),Zg=class extends G{constructor(e){super(e)}},Ph=class extends G{constructor(e){super(e)}g(){return Pn(this,Zg,1)}},Oh=[0,qe,[0,Ne,We,me,-1]],ao=ns(Ph,Oh),e0=class extends G{constructor(e){super(e)}},t0=class extends G{constructor(e){super(e)}},Bo=class extends G{constructor(e){super(e)}h(){return ue(this,e0,2)}g(){return Pn(this,t0,5)}},Lh=ns(class extends G{constructor(e){super(e)}},[0,st,io,Ol,[0,Ct,[0,Ne,-3],[0,We,-3],[0,Ne,-1,[0,qe,[0,Ne,-2]]],qe,[0,We,-1,me,We]],me,-1,Zn,qe,[0,Ne,We],st,Zn]),Rh=class extends G{constructor(e){super(e)}},Ls=ns(class extends G{constructor(e){super(e)}},[0,qe,[0,We,-4]]),Fh=class extends G{constructor(e){super(e)}},Hr=ns(class extends G{constructor(e){super(e)}},[0,qe,[0,We,-4]]),n0=class extends G{constructor(e){super(e)}},s0=[0,Ne,-1,Ol,Ct],Nh=class extends G{constructor(e){super(e)}};Nh.prototype.g=oo([0,We,-4,Zn]);var r0=class extends G{constructor(e){super(e)}},i0=ns(class extends G{constructor(e){super(e)}},[0,qe,[0,1,Ne,me,Oh],Zn]),Tu=class extends G{constructor(e){super(e)}},o0=class extends G{constructor(e){super(e)}ma(){return Jd(this)??ps()}},a0=class extends G{constructor(e){super(e)}},Uh=[1,2],l0=ns(class extends G{constructor(e){super(e)}},[0,qe,[0,Uh,ge,[0,Ol],ge,[0,Sh],Ne,me],Zn]),Ll=class extends G{constructor(e){super(e)}},Bh=[0,me,Ne,We,st,-1],xu=class extends G{constructor(e){super(e)}},c0=[0,Me,-1],Iu=class extends G{constructor(e){super(e)}},li=[1,2,3,4,5],Ai=class extends G{constructor(e){super(e)}g(){return Jd(this)!=null}h(){return jt(this,2)!=null}},De=class extends G{constructor(e){super(e)}g(){return Vd(Vs(this,2))??!1}},Gh=[0,Sh,me,[0,Ne,Zn,-1],[0,Wg,Zn]],Ve=[0,Gh,Me,[0,li,ge,Mh,ge,xh,ge,Th,ge,Ch,ge,Ih],Ct],lo=class extends G{constructor(e){super(e)}},Rl=[0,Ve,We,-1,Ne],u0=Qt(502141897,lo);Ke[502141897]=Rl;var f0=ns(class extends G{constructor(e){super(e)}},[0,[0,Ct,-1,zg,Kg],s0]),jh=class extends G{constructor(e){super(e)}},Vh=class extends G{constructor(e){super(e)}},Fl=[0,Ve,We,[0,Ve],Me],$h=[0,Ve,Rl,Fl,We,[0,[0,Gh]]],d0=Qt(508968150,Vh);Ke[508968150]=$h,Ke[508968149]=Fl;var Hh=class extends G{constructor(e){super(e)}},h0=Qt(513916220,Hh);Ke[513916220]=[0,Ve,$h,Ne];var ws=class extends G{constructor(e){super(e)}h(){return ue(this,Ll,2)}g(){Se(this,2)}},zh=[0,Ve,Bh];Ke[478825465]=zh;var p0=class extends G{constructor(e){super(e)}},Wh=class extends G{constructor(e){super(e)}},Nl=class extends G{constructor(e){super(e)}},Ul=class extends G{constructor(e){super(e)}},Kh=class extends G{constructor(e){super(e)}},Cu=[0,Ve,[0,Ve],zh,-1],qh=[0,Ve,We,Ne],Bl=[0,Ve,We],Yh=[0,Ve,qh,Bl,We],g0=Qt(479097054,Kh);Ke[479097054]=[0,Ve,Yh,Cu],Ke[463370452]=Cu,Ke[464864288]=qh;var m0=Qt(462713202,Ul);Ke[462713202]=Yh,Ke[474472470]=Bl;var v0=class extends G{constructor(e){super(e)}},Xh=class extends G{constructor(e){super(e)}},Jh=class extends G{constructor(e){super(e)}},Qh=class extends G{constructor(e){super(e)}},Gl=[0,Ve,We,-1,Ne],Ea=[0,Ve,We,Me];Qh.prototype.g=oo([0,Ve,Bl,[0,Ve],Rl,Fl,Gl,Ea]);var Zh=class extends G{constructor(e){super(e)}},y0=Qt(456383383,Zh);Ke[456383383]=[0,Ve,Bh];var e1=class extends G{constructor(e){super(e)}},_0=Qt(476348187,e1);Ke[476348187]=[0,Ve,c0];var t1=class extends G{constructor(e){super(e)}},Mu=class extends G{constructor(e){super(e)}},n1=[0,Ct,-1],b0=Qt(458105876,class extends G{constructor(e){super(e)}g(){var e=this.u;const t=0|e[z],n=2&t;return e=(function(s,r,i){var o=Mu;const a=2&r;let l=!1;if(i==null){if(a)return uu();i=[]}else if(i.constructor===dn){if((2&i.M)==0||a)return i;i=i.da()}else Array.isArray(i)?l=!!(2&(0|i[z])):i=[];if(a){if(!i.length)return uu();l||(l=!0,Js(i))}else l&&(l=!1,i=Qd(i));return l||(64&(0|i[z])?i[z]&=-33:32&r&&ji(i,32)),Le(s,r,2,o=new dn(i,o,Dg,void 0)),o})(e,t,Rn(e,t,2)),!n&&Mu&&(e.pa=!0),e}});Ke[458105876]=[0,n1,Hg,[!0,Zn,[0,me,-1,st]]];var jl=class extends G{constructor(e){super(e)}},s1=Qt(458105758,jl);Ke[458105758]=[0,Ve,me,n1];var r1=class extends G{constructor(e){super(e)}},k0=Qt(443442058,r1);Ke[443442058]=[0,Ve,me,Ne,We,st,-1,Me,We],Ke[514774813]=Gl;var i1=class extends G{constructor(e){super(e)}},w0=Qt(516587230,i1);function Aa(e,t){return t=t?t.clone():new Ll,e.displayNamesLocale!==void 0?Se(t,1,Zs(e.displayNamesLocale)):e.displayNamesLocale===void 0&&Se(t,1),e.maxResults!==void 0?hn(t,2,e.maxResults):"maxResults"in e&&Se(t,2),e.scoreThreshold!==void 0?V(t,3,e.scoreThreshold):"scoreThreshold"in e&&Se(t,3),e.categoryAllowlist!==void 0?wi(t,4,e.categoryAllowlist):"categoryAllowlist"in e&&Se(t,4),e.categoryDenylist!==void 0?wi(t,5,e.categoryDenylist):"categoryDenylist"in e&&Se(t,5),t}function Vl(e,t=-1,n=""){return{categories:e.map((s=>({index:Bt(s,1)??0??-1,score:je(s,2)??0,categoryName:jt(s,3)??""??"",displayName:jt(s,4)??""??""}))),headIndex:t,headName:n}}function o1(e){var t,n,s=cs(e,3,ts,ls()),r=cs(e,2,Qs,ls()),i=cs(e,1,js,ls()),o=cs(e,9,js,ls());const a={categories:[],keypoints:[]};for(let l=0;l<s.length;l++)a.categories.push({score:s[l],index:r[l]??-1,categoryName:i[l]??"",displayName:o[l]??""});if((s=(t=ue(e,Bo,4))==null?void 0:t.h())&&(a.boundingBox={originX:Bt(s,1)??0,originY:Bt(s,2)??0,width:Bt(s,3)??0,height:Bt(s,4)??0,angle:0}),(n=ue(e,Bo,4))==null?void 0:n.g().length)for(const l of ue(e,Bo,4).g())a.keypoints.push({x:oi(l,1)??0,y:oi(l,2)??0,score:oi(l,4)??0,label:jt(l,3)??""});return a}function co(e){const t=[];for(const n of Pn(e,Fh,1))t.push({x:je(n,1)??0,y:je(n,2)??0,z:je(n,3)??0,visibility:je(n,4)??0});return t}function xr(e){const t=[];for(const n of Pn(e,Rh,1))t.push({x:je(n,1)??0,y:je(n,2)??0,z:je(n,3)??0,visibility:je(n,4)??0});return t}function Du(e){return Array.from(e,(t=>t>127?t-256:t))}function Pu(e,t){if(e.length!==t.length)throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${e.length} vs. ${t.length}).`);let n=0,s=0,r=0;for(let i=0;i<e.length;i++)n+=e[i]*t[i],s+=e[i]*e[i],r+=t[i]*t[i];if(s<=0||r<=0)throw Error("Cannot compute cosine similarity on embedding with 0 norm.");return n/Math.sqrt(s*r)}let Jr;Ke[516587230]=[0,Ve,Gl,Ea,We],Ke[518928384]=Ea;const E0=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);async function a1(){if(Jr===void 0)try{await WebAssembly.instantiate(E0),Jr=!0}catch{Jr=!1}return Jr}async function ur(e,t=Xg``){const n=await a1()?"wasm_internal":"wasm_nosimd_internal";return{wasmLoaderPath:`${t}/${e}_${n}.js`,wasmBinaryPath:`${t}/${e}_${n}.wasm`}}var as=class{};function l1(){var e=navigator;return typeof OffscreenCanvas<"u"&&(!(function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")})(e)||!!((e=e.userAgent.match(/Version\/([\d]+).*Safari/))&&e.length>=1&&Number(e[1])>=17))}async function Ou(e){if(typeof importScripts!="function"){const t=document.createElement("script");return t.src=e.toString(),t.crossOrigin="anonymous",new Promise(((n,s)=>{t.addEventListener("load",(()=>{n()}),!1),t.addEventListener("error",(r=>{s(r)}),!1),document.body.appendChild(t)}))}importScripts(e.toString())}function c1(e){return e.videoWidth!==void 0?[e.videoWidth,e.videoHeight]:e.naturalWidth!==void 0?[e.naturalWidth,e.naturalHeight]:e.displayWidth!==void 0?[e.displayWidth,e.displayHeight]:[e.width,e.height]}function H(e,t,n){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),n(t=e.i.stringToNewUTF8(t)),e.i._free(t)}function Lu(e,t,n){if(!e.i.canvas)throw Error("No OpenGL canvas configured.");if(n?e.i._bindTextureToStream(n):e.i._bindTextureToCanvas(),!(n=e.i.canvas.getContext("webgl2")||e.i.canvas.getContext("webgl")))throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");e.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!0),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),e.i.gpuOriginForWebTexturesIsBottomLeft&&n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1);const[s,r]=c1(t);return!e.l||s===e.i.canvas.width&&r===e.i.canvas.height||(e.i.canvas.width=s,e.i.canvas.height=r),[s,r]}function Ru(e,t,n){e.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const s=new Uint32Array(t.length);for(let r=0;r<t.length;r++)s[r]=e.i.stringToNewUTF8(t[r]);t=e.i._malloc(4*s.length),e.i.HEAPU32.set(s,t>>2),n(t);for(const r of s)e.i._free(r);e.i._free(t)}function nn(e,t,n){e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=n}function Bn(e,t,n){let s=[];e.i.simpleListeners=e.i.simpleListeners||{},e.i.simpleListeners[t]=(r,i,o)=>{i?(n(s,o),s=[]):s.push(r)}}as.forVisionTasks=function(e){return ur("vision",e)},as.forTextTasks=function(e){return ur("text",e)},as.forGenAiExperimentalTasks=function(e){return ur("genai_experimental",e)},as.forGenAiTasks=function(e){return ur("genai",e)},as.forAudioTasks=function(e){return ur("audio",e)},as.isSimdSupported=function(){return a1()};async function A0(e,t,n,s){return e=await(async(r,i,o,a,l)=>{if(i&&await Ou(i),!self.ModuleFactory||o&&(await Ou(o),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&l&&((i=self.Module).locateFile=l.locateFile,l.mainScriptUrlOrBlob&&(i.mainScriptUrlOrBlob=l.mainScriptUrlOrBlob)),l=await self.ModuleFactory(self.Module||l),self.ModuleFactory=self.Module=void 0,new r(l,a)})(e,n.wasmLoaderPath,n.assetLoaderPath,t,{locateFile:r=>r.endsWith(".wasm")?n.wasmBinaryPath.toString():n.assetBinaryPath&&r.endsWith(".data")?n.assetBinaryPath.toString():r}),await e.o(s),e}function Go(e,t){const n=ue(e.baseOptions,Ai,1)||new Ai;typeof t=="string"?(Se(n,2,Zs(t)),Se(n,1)):t instanceof Uint8Array&&(Se(n,1,rl(t,!1)),Se(n,2)),q(e.baseOptions,0,1,n)}function Fu(e){try{const t=e.G.length;if(t===1)throw Error(e.G[0].message);if(t>1)throw Error("Encountered multiple errors: "+e.G.map((n=>n.message)).join(", "))}finally{e.G=[]}}function R(e,t){e.B=Math.max(e.B,t)}function uo(e,t){e.A=new ut,Pt(e.A,"PassThroughCalculator"),Te(e.A,"free_memory"),ce(e.A,"free_memory_unused_out"),xe(t,"free_memory"),Ot(t,e.A)}function Hs(e,t){Te(e.A,t),ce(e.A,t+"_unused_out")}function fo(e){e.g.addBoolToStream(!0,"free_memory",e.B)}var Sa=class{constructor(e){this.g=e,this.G=[],this.B=0,this.g.setAutoRenderToScreen(!1)}l(e,t=!0){var n,s,r,i,o,a;if(t){const l=e.baseOptions||{};if((n=e.baseOptions)!=null&&n.modelAssetBuffer&&(s=e.baseOptions)!=null&&s.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!((r=ue(this.baseOptions,Ai,1))!=null&&r.g()||(i=ue(this.baseOptions,Ai,1))!=null&&i.h()||(o=e.baseOptions)!=null&&o.modelAssetBuffer||(a=e.baseOptions)!=null&&a.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if((function(c,u){let h=ue(c.baseOptions,Iu,3);if(!h){var k=h=new Iu,I=new wu;Sr(k,4,li,I)}"delegate"in u&&(u.delegate==="GPU"?(u=h,k=new Jg,Sr(u,2,li,k)):(u=h,k=new wu,Sr(u,4,li,k))),q(c.baseOptions,0,3,h)})(this,l),l.modelAssetPath)return fetch(l.modelAssetPath.toString()).then((c=>{if(c.ok)return c.arrayBuffer();throw Error(`Failed to fetch model: ${l.modelAssetPath} (${c.status})`)})).then((c=>{try{this.g.i.FS_unlink("/model.dat")}catch{}this.g.i.FS_createDataFile("/","model.dat",new Uint8Array(c),!0,!1,!1),Go(this,"/model.dat"),this.m(),this.J()}));if(l.modelAssetBuffer instanceof Uint8Array)Go(this,l.modelAssetBuffer);else if(l.modelAssetBuffer)return(async function(c){const u=[];for(var h=0;;){const{done:k,value:I}=await c.read();if(k)break;u.push(I),h+=I.length}if(u.length===0)return new Uint8Array(0);if(u.length===1)return u[0];c=new Uint8Array(h),h=0;for(const k of u)c.set(k,h),h+=k.length;return c})(l.modelAssetBuffer).then((c=>{Go(this,c),this.m(),this.J()}))}return this.m(),this.J(),Promise.resolve()}J(){}ca(){let e;if(this.g.ca((t=>{e=Qg(t)})),!e)throw Error("Failed to retrieve CalculatorGraphConfig");return e}setGraph(e,t){this.g.attachErrorListener(((n,s)=>{this.G.push(Error(s))})),this.g.Ha(),this.g.setGraph(e,t),this.A=void 0,Fu(this)}finishProcessing(){this.g.finishProcessing(),Fu(this)}close(){this.A=void 0,this.g.closeGraph()}};function xn(e,t){if(!e)throw Error(`Unable to obtain required WebGL resource: ${t}`);return e}Sa.prototype.close=Sa.prototype.close;class S0{constructor(t,n,s,r){this.g=t,this.h=n,this.m=s,this.l=r}bind(){this.g.bindVertexArray(this.h)}close(){this.g.deleteVertexArray(this.h),this.g.deleteBuffer(this.m),this.g.deleteBuffer(this.l)}}function Nu(e,t,n){const s=e.g;if(n=xn(s.createShader(n),"Failed to create WebGL shader"),s.shaderSource(n,t),s.compileShader(n),!s.getShaderParameter(n,s.COMPILE_STATUS))throw Error(`Could not compile WebGL shader: ${s.getShaderInfoLog(n)}`);return s.attachShader(e.h,n),n}function Uu(e,t){const n=e.g,s=xn(n.createVertexArray(),"Failed to create vertex array");n.bindVertexArray(s);const r=xn(n.createBuffer(),"Failed to create buffer");n.bindBuffer(n.ARRAY_BUFFER,r),n.enableVertexAttribArray(e.P),n.vertexAttribPointer(e.P,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array([-1,-1,-1,1,1,1,1,-1]),n.STATIC_DRAW);const i=xn(n.createBuffer(),"Failed to create buffer");return n.bindBuffer(n.ARRAY_BUFFER,i),n.enableVertexAttribArray(e.J),n.vertexAttribPointer(e.J,2,n.FLOAT,!1,0,0),n.bufferData(n.ARRAY_BUFFER,new Float32Array(t?[0,1,0,0,1,0,1,1]:[0,0,0,1,1,1,1,0]),n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null),n.bindVertexArray(null),new S0(n,s,r,i)}function $l(e,t){if(e.g){if(t!==e.g)throw Error("Cannot change GL context once initialized")}else e.g=t}function Hl(e,t,n,s){return $l(e,t),e.h||(e.m(),e.C()),n?(e.s||(e.s=Uu(e,!0)),n=e.s):(e.v||(e.v=Uu(e,!1)),n=e.v),t.useProgram(e.h),n.bind(),e.l(),e=s(),n.g.bindVertexArray(null),e}function ho(e,t,n){return $l(e,t),e=xn(t.createTexture(),"Failed to create texture"),t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,n??t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,n??t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e}function po(e,t,n){$l(e,t),e.A||(e.A=xn(t.createFramebuffer(),"Failed to create framebuffe.")),t.bindFramebuffer(t.FRAMEBUFFER,e.A),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,0)}function zl(e){var t;(t=e.g)==null||t.bindFramebuffer(e.g.FRAMEBUFFER,null)}var Wl=class{G(){return`
|
|
22
|
+
precision mediump float;
|
|
23
|
+
varying vec2 vTex;
|
|
24
|
+
uniform sampler2D inputTexture;
|
|
25
|
+
void main() {
|
|
26
|
+
gl_FragColor = texture2D(inputTexture, vTex);
|
|
27
|
+
}
|
|
28
|
+
`}m(){const e=this.g;if(this.h=xn(e.createProgram(),"Failed to create WebGL program"),this.Z=Nu(this,`
|
|
29
|
+
attribute vec2 aVertex;
|
|
30
|
+
attribute vec2 aTex;
|
|
31
|
+
varying vec2 vTex;
|
|
32
|
+
void main(void) {
|
|
33
|
+
gl_Position = vec4(aVertex, 0.0, 1.0);
|
|
34
|
+
vTex = aTex;
|
|
35
|
+
}`,e.VERTEX_SHADER),this.Y=Nu(this,this.G(),e.FRAGMENT_SHADER),e.linkProgram(this.h),!e.getProgramParameter(this.h,e.LINK_STATUS))throw Error(`Error during program linking: ${e.getProgramInfoLog(this.h)}`);this.P=e.getAttribLocation(this.h,"aVertex"),this.J=e.getAttribLocation(this.h,"aTex")}C(){}l(){}close(){if(this.h){const e=this.g;e.deleteProgram(this.h),e.deleteShader(this.Z),e.deleteShader(this.Y)}this.A&&this.g.deleteFramebuffer(this.A),this.v&&this.v.close(),this.s&&this.s.close()}};function wn(e,t){switch(t){case 0:return e.g.find((n=>n instanceof Uint8Array));case 1:return e.g.find((n=>n instanceof Float32Array));case 2:return e.g.find((n=>typeof WebGLTexture<"u"&&n instanceof WebGLTexture));default:throw Error(`Type is not supported: ${t}`)}}function Ta(e){var t=wn(e,1);if(!t){if(t=wn(e,0))t=new Float32Array(t).map((s=>s/255));else{t=new Float32Array(e.width*e.height);const s=zs(e);var n=Kl(e);if(po(n,s,u1(e)),"iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"document"in self&&"ontouchend"in self.document){n=new Float32Array(e.width*e.height*4),s.readPixels(0,0,e.width,e.height,s.RGBA,s.FLOAT,n);for(let r=0,i=0;r<t.length;++r,i+=4)t[r]=n[i]}else s.readPixels(0,0,e.width,e.height,s.RED,s.FLOAT,t)}e.g.push(t)}return t}function u1(e){let t=wn(e,2);if(!t){const n=zs(e);t=d1(e);const s=Ta(e),r=f1(e);n.texImage2D(n.TEXTURE_2D,0,r,e.width,e.height,0,n.RED,n.FLOAT,s),xa(e)}return t}function zs(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=xn(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function f1(e){if(e=zs(e),!Qr)if(e.getExtension("EXT_color_buffer_float")&&e.getExtension("OES_texture_float_linear")&&e.getExtension("EXT_float_blend"))Qr=e.R32F;else{if(!e.getExtension("EXT_color_buffer_half_float"))throw Error("GPU does not fully support 4-channel float32 or float16 formats");Qr=e.R16F}return Qr}function Kl(e){return e.l||(e.l=new Wl),e.l}function d1(e){const t=zs(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let n=wn(e,2);return n||(n=ho(Kl(e),t,e.m?t.LINEAR:t.NEAREST),e.g.push(n),e.j=!0),t.bindTexture(t.TEXTURE_2D,n),n}function xa(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}var Qr,Ye=class{constructor(e,t,n,s,r,i,o){this.g=e,this.m=t,this.j=n,this.canvas=s,this.l=r,this.width=i,this.height=o,this.j&&--Bu===0&&console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources.")}Da(){return!!wn(this,0)}ja(){return!!wn(this,1)}R(){return!!wn(this,2)}ia(){return(t=wn(e=this,0))||(t=Ta(e),t=new Uint8Array(t.map((n=>255*n))),e.g.push(t)),t;var e,t}ha(){return Ta(this)}N(){return u1(this)}clone(){const e=[];for(const t of this.g){let n;if(t instanceof Uint8Array)n=new Uint8Array(t);else if(t instanceof Float32Array)n=new Float32Array(t);else{if(!(t instanceof WebGLTexture))throw Error(`Type is not supported: ${t}`);{const s=zs(this),r=Kl(this);s.activeTexture(s.TEXTURE1),n=ho(r,s,this.m?s.LINEAR:s.NEAREST),s.bindTexture(s.TEXTURE_2D,n);const i=f1(this);s.texImage2D(s.TEXTURE_2D,0,i,this.width,this.height,0,s.RED,s.FLOAT,null),s.bindTexture(s.TEXTURE_2D,null),po(r,s,n),Hl(r,s,!1,(()=>{d1(this),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4),xa(this)})),zl(r),xa(this)}}e.push(n)}return new Ye(e,this.m,this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&zs(this).deleteTexture(wn(this,2)),Bu=-1}};Ye.prototype.close=Ye.prototype.close,Ye.prototype.clone=Ye.prototype.clone,Ye.prototype.getAsWebGLTexture=Ye.prototype.N,Ye.prototype.getAsFloat32Array=Ye.prototype.ha,Ye.prototype.getAsUint8Array=Ye.prototype.ia,Ye.prototype.hasWebGLTexture=Ye.prototype.R,Ye.prototype.hasFloat32Array=Ye.prototype.ja,Ye.prototype.hasUint8Array=Ye.prototype.Da;var Bu=250;function ln(e,t){switch(t){case 0:return e.g.find((n=>n instanceof ImageData));case 1:return e.g.find((n=>typeof ImageBitmap<"u"&&n instanceof ImageBitmap));case 2:return e.g.find((n=>typeof WebGLTexture<"u"&&n instanceof WebGLTexture));default:throw Error(`Type is not supported: ${t}`)}}function h1(e){var t=ln(e,0);if(!t){t=Ws(e);const n=go(e),s=new Uint8Array(e.width*e.height*4);po(n,t,ci(e)),t.readPixels(0,0,e.width,e.height,t.RGBA,t.UNSIGNED_BYTE,s),zl(n),t=new ImageData(new Uint8ClampedArray(s.buffer),e.width,e.height),e.g.push(t)}return t}function ci(e){let t=ln(e,2);if(!t){const n=Ws(e);t=ui(e);const s=ln(e,1)||h1(e);n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,s),gr(e)}return t}function Ws(e){if(!e.canvas)throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");return e.h||(e.h=xn(e.canvas.getContext("webgl2"),"You cannot use a canvas that is already bound to a different type of rendering context.")),e.h}function go(e){return e.l||(e.l=new Wl),e.l}function ui(e){const t=Ws(e);t.viewport(0,0,e.width,e.height),t.activeTexture(t.TEXTURE0);let n=ln(e,2);return n||(n=ho(go(e),t),e.g.push(n),e.m=!0),t.bindTexture(t.TEXTURE_2D,n),n}function gr(e){e.h.bindTexture(e.h.TEXTURE_2D,null)}function Gu(e){const t=Ws(e);return Hl(go(e),t,!0,(()=>(function(n,s){const r=n.canvas;if(r.width===n.width&&r.height===n.height)return s();const i=r.width,o=r.height;return r.width=n.width,r.height=n.height,n=s(),r.width=i,r.height=o,n})(e,(()=>{if(t.bindFramebuffer(t.FRAMEBUFFER,null),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.drawArrays(t.TRIANGLE_FAN,0,4),!(e.canvas instanceof OffscreenCanvas))throw Error("Conversion to ImageBitmap requires that the MediaPipe Tasks is initialized with an OffscreenCanvas");return e.canvas.transferToImageBitmap()}))))}var Xe=class{constructor(e,t,n,s,r,i,o){this.g=e,this.j=t,this.m=n,this.canvas=s,this.l=r,this.width=i,this.height=o,(this.j||this.m)&&--ju===0&&console.error("You seem to be creating MPImage instances without invoking .close(). This leaks resources.")}Ca(){return!!ln(this,0)}ka(){return!!ln(this,1)}R(){return!!ln(this,2)}Aa(){return h1(this)}za(){var e=ln(this,1);return e||(ci(this),ui(this),e=Gu(this),gr(this),this.g.push(e),this.j=!0),e}N(){return ci(this)}clone(){const e=[];for(const t of this.g){let n;if(t instanceof ImageData)n=new ImageData(t.data,this.width,this.height);else if(t instanceof WebGLTexture){const s=Ws(this),r=go(this);s.activeTexture(s.TEXTURE1),n=ho(r,s),s.bindTexture(s.TEXTURE_2D,n),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,this.width,this.height,0,s.RGBA,s.UNSIGNED_BYTE,null),s.bindTexture(s.TEXTURE_2D,null),po(r,s,n),Hl(r,s,!1,(()=>{ui(this),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.drawArrays(s.TRIANGLE_FAN,0,4),gr(this)})),zl(r),gr(this)}else{if(!(t instanceof ImageBitmap))throw Error(`Type is not supported: ${t}`);ci(this),ui(this),n=Gu(this),gr(this)}e.push(n)}return new Xe(e,this.ka(),this.R(),this.canvas,this.l,this.width,this.height)}close(){this.j&&ln(this,1).close(),this.m&&Ws(this).deleteTexture(ln(this,2)),ju=-1}};Xe.prototype.close=Xe.prototype.close,Xe.prototype.clone=Xe.prototype.clone,Xe.prototype.getAsWebGLTexture=Xe.prototype.N,Xe.prototype.getAsImageBitmap=Xe.prototype.za,Xe.prototype.getAsImageData=Xe.prototype.Aa,Xe.prototype.hasWebGLTexture=Xe.prototype.R,Xe.prototype.hasImageBitmap=Xe.prototype.ka,Xe.prototype.hasImageData=Xe.prototype.Ca;var ju=250;function Zt(...e){return e.map((([t,n])=>({start:t,end:n})))}const T0=(function(e){return class extends e{Ha(){this.i._registerModelResourcesGraphService()}}})((Vu=class{constructor(e,t){this.l=!0,this.i=e,this.g=null,this.h=0,this.m=typeof this.i._addIntToInputStream=="function",t!==void 0?this.i.canvas=t:l1()?this.i.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.i.canvas=document.createElement("canvas"))}async initializeGraph(e){const t=await(await fetch(e)).arrayBuffer();e=!(e.endsWith(".pbtxt")||e.endsWith(".textproto")),this.setGraph(new Uint8Array(t),e)}setGraphFromString(e){this.setGraph(new TextEncoder().encode(e),!1)}setGraph(e,t){const n=e.length,s=this.i._malloc(n);this.i.HEAPU8.set(e,s),t?this.i._changeBinaryGraph(n,s):this.i._changeTextGraph(n,s),this.i._free(s)}configureAudio(e,t,n,s,r){this.i._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),H(this,s||"input_audio",(i=>{H(this,r=r||"audio_header",(o=>{this.i._configureAudio(i,o,e,t??0,n)}))}))}setAutoResizeCanvas(e){this.l=e}setAutoRenderToScreen(e){this.i._setAutoRenderToScreen(e)}setGpuBufferVerticalFlip(e){this.i.gpuOriginForWebTexturesIsBottomLeft=e}ca(e){nn(this,"__graph_config__",(t=>{e(t)})),H(this,"__graph_config__",(t=>{this.i._getGraphConfig(t,void 0)})),delete this.i.simpleListeners.__graph_config__}attachErrorListener(e){this.i.errorListener=e}attachEmptyPacketListener(e,t){this.i.emptyPacketListeners=this.i.emptyPacketListeners||{},this.i.emptyPacketListeners[e]=t}addAudioToStream(e,t,n){this.addAudioToStreamWithShape(e,0,0,t,n)}addAudioToStreamWithShape(e,t,n,s,r){const i=4*e.length;this.h!==i&&(this.g&&this.i._free(this.g),this.g=this.i._malloc(i),this.h=i),this.i.HEAPF32.set(e,this.g/4),H(this,s,(o=>{this.i._addAudioToInputStream(this.g,t,n,o,r)}))}addGpuBufferToStream(e,t,n){H(this,t,(s=>{const[r,i]=Lu(this,e,s);this.i._addBoundTextureToStream(s,r,i,n)}))}addBoolToStream(e,t,n){H(this,t,(s=>{this.i._addBoolToInputStream(e,s,n)}))}addDoubleToStream(e,t,n){H(this,t,(s=>{this.i._addDoubleToInputStream(e,s,n)}))}addFloatToStream(e,t,n){H(this,t,(s=>{this.i._addFloatToInputStream(e,s,n)}))}addIntToStream(e,t,n){H(this,t,(s=>{this.i._addIntToInputStream(e,s,n)}))}addUintToStream(e,t,n){H(this,t,(s=>{this.i._addUintToInputStream(e,s,n)}))}addStringToStream(e,t,n){H(this,t,(s=>{H(this,e,(r=>{this.i._addStringToInputStream(r,s,n)}))}))}addStringRecordToStream(e,t,n){H(this,t,(s=>{Ru(this,Object.keys(e),(r=>{Ru(this,Object.values(e),(i=>{this.i._addFlatHashMapToInputStream(r,i,Object.keys(e).length,s,n)}))}))}))}addProtoToStream(e,t,n,s){H(this,n,(r=>{H(this,t,(i=>{const o=this.i._malloc(e.length);this.i.HEAPU8.set(e,o),this.i._addProtoToInputStream(o,e.length,i,r,s),this.i._free(o)}))}))}addEmptyPacketToStream(e,t){H(this,e,(n=>{this.i._addEmptyPacketToInputStream(n,t)}))}addBoolVectorToStream(e,t,n){H(this,t,(s=>{const r=this.i._allocateBoolVector(e.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(const i of e)this.i._addBoolVectorEntry(r,i);this.i._addBoolVectorToInputStream(r,s,n)}))}addDoubleVectorToStream(e,t,n){H(this,t,(s=>{const r=this.i._allocateDoubleVector(e.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(const i of e)this.i._addDoubleVectorEntry(r,i);this.i._addDoubleVectorToInputStream(r,s,n)}))}addFloatVectorToStream(e,t,n){H(this,t,(s=>{const r=this.i._allocateFloatVector(e.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(const i of e)this.i._addFloatVectorEntry(r,i);this.i._addFloatVectorToInputStream(r,s,n)}))}addIntVectorToStream(e,t,n){H(this,t,(s=>{const r=this.i._allocateIntVector(e.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(const i of e)this.i._addIntVectorEntry(r,i);this.i._addIntVectorToInputStream(r,s,n)}))}addUintVectorToStream(e,t,n){H(this,t,(s=>{const r=this.i._allocateUintVector(e.length);if(!r)throw Error("Unable to allocate new unsigned int vector on heap.");for(const i of e)this.i._addUintVectorEntry(r,i);this.i._addUintVectorToInputStream(r,s,n)}))}addStringVectorToStream(e,t,n){H(this,t,(s=>{const r=this.i._allocateStringVector(e.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(const i of e)H(this,i,(o=>{this.i._addStringVectorEntry(r,o)}));this.i._addStringVectorToInputStream(r,s,n)}))}addBoolToInputSidePacket(e,t){H(this,t,(n=>{this.i._addBoolToInputSidePacket(e,n)}))}addDoubleToInputSidePacket(e,t){H(this,t,(n=>{this.i._addDoubleToInputSidePacket(e,n)}))}addFloatToInputSidePacket(e,t){H(this,t,(n=>{this.i._addFloatToInputSidePacket(e,n)}))}addIntToInputSidePacket(e,t){H(this,t,(n=>{this.i._addIntToInputSidePacket(e,n)}))}addUintToInputSidePacket(e,t){H(this,t,(n=>{this.i._addUintToInputSidePacket(e,n)}))}addStringToInputSidePacket(e,t){H(this,t,(n=>{H(this,e,(s=>{this.i._addStringToInputSidePacket(s,n)}))}))}addProtoToInputSidePacket(e,t,n){H(this,n,(s=>{H(this,t,(r=>{const i=this.i._malloc(e.length);this.i.HEAPU8.set(e,i),this.i._addProtoToInputSidePacket(i,e.length,r,s),this.i._free(i)}))}))}addBoolVectorToInputSidePacket(e,t){H(this,t,(n=>{const s=this.i._allocateBoolVector(e.length);if(!s)throw Error("Unable to allocate new bool vector on heap.");for(const r of e)this.i._addBoolVectorEntry(s,r);this.i._addBoolVectorToInputSidePacket(s,n)}))}addDoubleVectorToInputSidePacket(e,t){H(this,t,(n=>{const s=this.i._allocateDoubleVector(e.length);if(!s)throw Error("Unable to allocate new double vector on heap.");for(const r of e)this.i._addDoubleVectorEntry(s,r);this.i._addDoubleVectorToInputSidePacket(s,n)}))}addFloatVectorToInputSidePacket(e,t){H(this,t,(n=>{const s=this.i._allocateFloatVector(e.length);if(!s)throw Error("Unable to allocate new float vector on heap.");for(const r of e)this.i._addFloatVectorEntry(s,r);this.i._addFloatVectorToInputSidePacket(s,n)}))}addIntVectorToInputSidePacket(e,t){H(this,t,(n=>{const s=this.i._allocateIntVector(e.length);if(!s)throw Error("Unable to allocate new int vector on heap.");for(const r of e)this.i._addIntVectorEntry(s,r);this.i._addIntVectorToInputSidePacket(s,n)}))}addUintVectorToInputSidePacket(e,t){H(this,t,(n=>{const s=this.i._allocateUintVector(e.length);if(!s)throw Error("Unable to allocate new unsigned int vector on heap.");for(const r of e)this.i._addUintVectorEntry(s,r);this.i._addUintVectorToInputSidePacket(s,n)}))}addStringVectorToInputSidePacket(e,t){H(this,t,(n=>{const s=this.i._allocateStringVector(e.length);if(!s)throw Error("Unable to allocate new string vector on heap.");for(const r of e)H(this,r,(i=>{this.i._addStringVectorEntry(s,i)}));this.i._addStringVectorToInputSidePacket(s,n)}))}attachBoolListener(e,t){nn(this,e,t),H(this,e,(n=>{this.i._attachBoolListener(n)}))}attachBoolVectorListener(e,t){Bn(this,e,t),H(this,e,(n=>{this.i._attachBoolVectorListener(n)}))}attachIntListener(e,t){nn(this,e,t),H(this,e,(n=>{this.i._attachIntListener(n)}))}attachIntVectorListener(e,t){Bn(this,e,t),H(this,e,(n=>{this.i._attachIntVectorListener(n)}))}attachUintListener(e,t){nn(this,e,t),H(this,e,(n=>{this.i._attachUintListener(n)}))}attachUintVectorListener(e,t){Bn(this,e,t),H(this,e,(n=>{this.i._attachUintVectorListener(n)}))}attachDoubleListener(e,t){nn(this,e,t),H(this,e,(n=>{this.i._attachDoubleListener(n)}))}attachDoubleVectorListener(e,t){Bn(this,e,t),H(this,e,(n=>{this.i._attachDoubleVectorListener(n)}))}attachFloatListener(e,t){nn(this,e,t),H(this,e,(n=>{this.i._attachFloatListener(n)}))}attachFloatVectorListener(e,t){Bn(this,e,t),H(this,e,(n=>{this.i._attachFloatVectorListener(n)}))}attachStringListener(e,t){nn(this,e,t),H(this,e,(n=>{this.i._attachStringListener(n)}))}attachStringVectorListener(e,t){Bn(this,e,t),H(this,e,(n=>{this.i._attachStringVectorListener(n)}))}attachProtoListener(e,t,n){nn(this,e,t),H(this,e,(s=>{this.i._attachProtoListener(s,n||!1)}))}attachProtoVectorListener(e,t,n){Bn(this,e,t),H(this,e,(s=>{this.i._attachProtoVectorListener(s,n||!1)}))}attachAudioListener(e,t,n){this.i._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),nn(this,e,((s,r)=>{s=new Float32Array(s.buffer,s.byteOffset,s.length/4),t(s,r)})),H(this,e,(s=>{this.i._attachAudioListener(s,n||!1)}))}finishProcessing(){this.i._waitUntilIdle()}closeGraph(){this.i._closeGraph(),this.i.simpleListeners=void 0,this.i.emptyPacketListeners=void 0}},class extends Vu{get ea(){return this.i}oa(e,t,n){H(this,t,(s=>{const[r,i]=Lu(this,e,s);this.ea._addBoundTextureAsImageToStream(s,r,i,n)}))}V(e,t){nn(this,e,t),H(this,e,(n=>{this.ea._attachImageListener(n)}))}ba(e,t){Bn(this,e,t),H(this,e,(n=>{this.ea._attachImageVectorListener(n)}))}}));var Vu,Vt=class extends T0{};async function le(e,t,n){return(async function(s,r,i,o){return A0(s,r,i,o)})(e,n.canvas??(l1()?void 0:document.createElement("canvas")),t,n)}function p1(e,t,n,s){if(e.U){const i=new Nh;if(n!=null&&n.regionOfInterest){if(!e.na)throw Error("This task doesn't support region-of-interest.");var r=n.regionOfInterest;if(r.left>=r.right||r.top>=r.bottom)throw Error("Expected RectF with left < right and top < bottom.");if(r.left<0||r.top<0||r.right>1||r.bottom>1)throw Error("Expected RectF values to be in [0,1].");V(i,1,(r.left+r.right)/2),V(i,2,(r.top+r.bottom)/2),V(i,4,r.right-r.left),V(i,3,r.bottom-r.top)}else V(i,1,.5),V(i,2,.5),V(i,4,1),V(i,3,1);if(n!=null&&n.rotationDegrees){if((n==null?void 0:n.rotationDegrees)%90!=0)throw Error("Expected rotation to be a multiple of 90°.");if(V(i,5,-Math.PI*n.rotationDegrees/180),(n==null?void 0:n.rotationDegrees)%180!=0){const[o,a]=c1(t);n=je(i,3)*a/o,r=je(i,4)*o/a,V(i,4,n),V(i,3,r)}}e.g.addProtoToStream(i.g(),"mediapipe.NormalizedRect",e.U,s)}e.g.oa(t,e.Z,s??performance.now()),e.finishProcessing()}function $t(e,t,n){var s;if((s=e.baseOptions)!=null&&s.g())throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");p1(e,t,n,e.B+1)}function pn(e,t,n,s){var r;if(!((r=e.baseOptions)!=null&&r.g()))throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");p1(e,t,n,s)}function Ks(e,t,n,s){var r=t.data;const i=t.width,o=i*(t=t.height);if((r instanceof Uint8Array||r instanceof Float32Array)&&r.length!==o)throw Error("Unsupported channel count: "+r.length/o);return e=new Ye([r],n,!1,e.g.i.canvas,e.P,i,t),s?e.clone():e}var _t=class extends Sa{constructor(e,t,n,s){super(e),this.g=e,this.Z=t,this.U=n,this.na=s,this.P=new Wl}l(e,t=!0){if("runningMode"in e&&Nr(this.baseOptions,2,!!e.runningMode&&e.runningMode!=="IMAGE"),e.canvas!==void 0&&this.g.i.canvas!==e.canvas)throw Error("You must create a new task to reset the canvas.");return super.l(e,t)}close(){this.P.close(),super.close()}};_t.prototype.close=_t.prototype.close;var Lt=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect_in",!1),this.j={detections:[]},q(e=this.h=new lo,0,1,t=new De),V(this.h,2,.5),V(this.h,3,.3)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){return"minDetectionConfidence"in e&&V(this.h,2,e.minDetectionConfidence??.5),"minSuppressionThreshold"in e&&V(this.h,3,e.minSuppressionThreshold??.3),this.l(e)}D(e,t){return this.j={detections:[]},$t(this,e,t),this.j}F(e,t,n){return this.j={detections:[]},pn(this,e,n,t),this.j}m(){var e=new bt;xe(e,"image_in"),xe(e,"norm_rect_in"),he(e,"detections");const t=new Mt;Xt(t,u0,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.face_detector.FaceDetectorGraph"),Te(n,"IMAGE:image_in"),Te(n,"NORM_RECT:norm_rect_in"),ce(n,"DETECTIONS:detections"),n.o(t),Ot(e,n),this.g.attachProtoVectorListener("detections",((s,r)=>{for(const i of s)s=Lh(i),this.j.detections.push(o1(s));R(this,r)})),this.g.attachEmptyPacketListener("detections",(s=>{R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Lt.prototype.detectForVideo=Lt.prototype.F,Lt.prototype.detect=Lt.prototype.D,Lt.prototype.setOptions=Lt.prototype.o,Lt.createFromModelPath=async function(e,t){return le(Lt,e,{baseOptions:{modelAssetPath:t}})},Lt.createFromModelBuffer=function(e,t){return le(Lt,e,{baseOptions:{modelAssetBuffer:t}})},Lt.createFromOptions=function(e,t){return le(Lt,e,t)};var ql=Zt([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),Yl=Zt([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),Xl=Zt([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]),g1=Zt([474,475],[475,476],[476,477],[477,474]),Jl=Zt([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),Ql=Zt([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]),m1=Zt([469,470],[470,471],[471,472],[472,469]),Zl=Zt([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]),v1=[...ql,...Yl,...Xl,...Jl,...Ql,...Zl],y1=Zt([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);function $u(e){e.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]}}var Re=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect",!1),this.j={faceLandmarks:[],faceBlendshapes:[],facialTransformationMatrixes:[]},this.outputFacialTransformationMatrixes=this.outputFaceBlendshapes=!1,q(e=this.h=new Vh,0,1,t=new De),this.v=new jh,q(this.h,0,3,this.v),this.s=new lo,q(this.h,0,2,this.s),hn(this.s,4,1),V(this.s,2,.5),V(this.v,2,.5),V(this.h,4,.5)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){return"numFaces"in e&&hn(this.s,4,e.numFaces??1),"minFaceDetectionConfidence"in e&&V(this.s,2,e.minFaceDetectionConfidence??.5),"minTrackingConfidence"in e&&V(this.h,4,e.minTrackingConfidence??.5),"minFacePresenceConfidence"in e&&V(this.v,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"outputFacialTransformationMatrixes"in e&&(this.outputFacialTransformationMatrixes=!!e.outputFacialTransformationMatrixes),this.l(e)}D(e,t){return $u(this),$t(this,e,t),this.j}F(e,t,n){return $u(this),pn(this,e,n,t),this.j}m(){var e=new bt;xe(e,"image_in"),xe(e,"norm_rect"),he(e,"face_landmarks");const t=new Mt;Xt(t,d0,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"),Te(n,"IMAGE:image_in"),Te(n,"NORM_RECT:norm_rect"),ce(n,"NORM_LANDMARKS:face_landmarks"),n.o(t),Ot(e,n),this.g.attachProtoVectorListener("face_landmarks",((s,r)=>{for(const i of s)s=Hr(i),this.j.faceLandmarks.push(co(s));R(this,r)})),this.g.attachEmptyPacketListener("face_landmarks",(s=>{R(this,s)})),this.outputFaceBlendshapes&&(he(e,"blendshapes"),ce(n,"BLENDSHAPES:blendshapes"),this.g.attachProtoVectorListener("blendshapes",((s,r)=>{if(this.outputFaceBlendshapes)for(const i of s)s=ao(i),this.j.faceBlendshapes.push(Vl(s.g()??[]));R(this,r)})),this.g.attachEmptyPacketListener("blendshapes",(s=>{R(this,s)}))),this.outputFacialTransformationMatrixes&&(he(e,"face_geometry"),ce(n,"FACE_GEOMETRY:face_geometry"),this.g.attachProtoVectorListener("face_geometry",((s,r)=>{if(this.outputFacialTransformationMatrixes)for(const i of s)(s=ue(f0(i),n0,2))&&this.j.facialTransformationMatrixes.push({rows:Bt(s,1)??0??0,columns:Bt(s,2)??0??0,data:cs(s,3,ts,ls()).slice()??[]});R(this,r)})),this.g.attachEmptyPacketListener("face_geometry",(s=>{R(this,s)}))),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Re.prototype.detectForVideo=Re.prototype.F,Re.prototype.detect=Re.prototype.D,Re.prototype.setOptions=Re.prototype.o,Re.createFromModelPath=function(e,t){return le(Re,e,{baseOptions:{modelAssetPath:t}})},Re.createFromModelBuffer=function(e,t){return le(Re,e,{baseOptions:{modelAssetBuffer:t}})},Re.createFromOptions=function(e,t){return le(Re,e,t)},Re.FACE_LANDMARKS_LIPS=ql,Re.FACE_LANDMARKS_LEFT_EYE=Yl,Re.FACE_LANDMARKS_LEFT_EYEBROW=Xl,Re.FACE_LANDMARKS_LEFT_IRIS=g1,Re.FACE_LANDMARKS_RIGHT_EYE=Jl,Re.FACE_LANDMARKS_RIGHT_EYEBROW=Ql,Re.FACE_LANDMARKS_RIGHT_IRIS=m1,Re.FACE_LANDMARKS_FACE_OVAL=Zl,Re.FACE_LANDMARKS_CONTOURS=v1,Re.FACE_LANDMARKS_TESSELATION=y1;var sn=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect",!0),q(e=this.j=new Hh,0,1,t=new De)}get baseOptions(){return ue(this.j,De,1)}set baseOptions(e){q(this.j,0,1,e)}o(e){return super.l(e)}Ka(e,t,n){const s=typeof t!="function"?t:{};if(this.h=typeof t=="function"?t:n,$t(this,e,s??{}),!this.h)return this.s}m(){var e=new bt;xe(e,"image_in"),xe(e,"norm_rect"),he(e,"stylized_image");const t=new Mt;Xt(t,h0,this.j);const n=new ut;Pt(n,"mediapipe.tasks.vision.face_stylizer.FaceStylizerGraph"),Te(n,"IMAGE:image_in"),Te(n,"NORM_RECT:norm_rect"),ce(n,"STYLIZED_IMAGE:stylized_image"),n.o(t),Ot(e,n),this.g.V("stylized_image",((s,r)=>{var i=!this.h,o=s.data,a=s.width;const l=a*(s=s.height);if(o instanceof Uint8Array)if(o.length===3*l){const c=new Uint8ClampedArray(4*l);for(let u=0;u<l;++u)c[4*u]=o[3*u],c[4*u+1]=o[3*u+1],c[4*u+2]=o[3*u+2],c[4*u+3]=255;o=new ImageData(c,a,s)}else{if(o.length!==4*l)throw Error("Unsupported channel count: "+o.length/l);o=new ImageData(new Uint8ClampedArray(o.buffer,o.byteOffset,o.length),a,s)}else if(!(o instanceof WebGLTexture))throw Error(`Unsupported format: ${o.constructor.name}`);a=new Xe([o],!1,!1,this.g.i.canvas,this.P,a,s),this.s=i=i?a.clone():a,this.h&&this.h(i),R(this,r)})),this.g.attachEmptyPacketListener("stylized_image",(s=>{this.s=null,this.h&&this.h(null),R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};sn.prototype.stylize=sn.prototype.Ka,sn.prototype.setOptions=sn.prototype.o,sn.createFromModelPath=function(e,t){return le(sn,e,{baseOptions:{modelAssetPath:t}})},sn.createFromModelBuffer=function(e,t){return le(sn,e,{baseOptions:{modelAssetBuffer:t}})},sn.createFromOptions=function(e,t){return le(sn,e,t)};var ec=Zt([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);function Hu(e){e.gestures=[],e.landmarks=[],e.worldLandmarks=[],e.handedness=[]}function zu(e){return e.gestures.length===0?{gestures:[],landmarks:[],worldLandmarks:[],handedness:[],handednesses:[]}:{gestures:e.gestures,landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handedness:e.handedness,handednesses:e.handedness}}function Wu(e,t=!0){const n=[];for(const r of e){var s=ao(r);e=[];for(const i of s.g())s=t&&Bt(i,1)!=null?Bt(i,1)??0:-1,e.push({score:je(i,2)??0,index:s,categoryName:jt(i,3)??""??"",displayName:jt(i,4)??""??""});n.push(e)}return n}var vt=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect",!1),this.gestures=[],this.landmarks=[],this.worldLandmarks=[],this.handedness=[],q(e=this.j=new Kh,0,1,t=new De),this.s=new Ul,q(this.j,0,2,this.s),this.C=new Nl,q(this.s,0,3,this.C),this.v=new Wh,q(this.s,0,2,this.v),this.h=new p0,q(this.j,0,3,this.h),V(this.v,2,.5),V(this.s,4,.5),V(this.C,2,.5)}get baseOptions(){return ue(this.j,De,1)}set baseOptions(e){q(this.j,0,1,e)}o(e){var t,n,s,r;if(hn(this.v,3,e.numHands??1),"minHandDetectionConfidence"in e&&V(this.v,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&V(this.s,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&V(this.C,2,e.minHandPresenceConfidence??.5),e.cannedGesturesClassifierOptions){var i=new ws,o=i,a=Aa(e.cannedGesturesClassifierOptions,(t=ue(this.h,ws,3))==null?void 0:t.h());q(o,0,2,a),q(this.h,0,3,i)}else e.cannedGesturesClassifierOptions===void 0&&((n=ue(this.h,ws,3))==null||n.g());return e.customGesturesClassifierOptions?(q(o=i=new ws,0,2,a=Aa(e.customGesturesClassifierOptions,(s=ue(this.h,ws,4))==null?void 0:s.h())),q(this.h,0,4,i)):e.customGesturesClassifierOptions===void 0&&((r=ue(this.h,ws,4))==null||r.g()),this.l(e)}Fa(e,t){return Hu(this),$t(this,e,t),zu(this)}Ga(e,t,n){return Hu(this),pn(this,e,n,t),zu(this)}m(){var e=new bt;xe(e,"image_in"),xe(e,"norm_rect"),he(e,"hand_gestures"),he(e,"hand_landmarks"),he(e,"world_hand_landmarks"),he(e,"handedness");const t=new Mt;Xt(t,g0,this.j);const n=new ut;Pt(n,"mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"),Te(n,"IMAGE:image_in"),Te(n,"NORM_RECT:norm_rect"),ce(n,"HAND_GESTURES:hand_gestures"),ce(n,"LANDMARKS:hand_landmarks"),ce(n,"WORLD_LANDMARKS:world_hand_landmarks"),ce(n,"HANDEDNESS:handedness"),n.o(t),Ot(e,n),this.g.attachProtoVectorListener("hand_landmarks",((s,r)=>{for(const i of s){s=Hr(i);const o=[];for(const a of Pn(s,Fh,1))o.push({x:je(a,1)??0,y:je(a,2)??0,z:je(a,3)??0,visibility:je(a,4)??0});this.landmarks.push(o)}R(this,r)})),this.g.attachEmptyPacketListener("hand_landmarks",(s=>{R(this,s)})),this.g.attachProtoVectorListener("world_hand_landmarks",((s,r)=>{for(const i of s){s=Ls(i);const o=[];for(const a of Pn(s,Rh,1))o.push({x:je(a,1)??0,y:je(a,2)??0,z:je(a,3)??0,visibility:je(a,4)??0});this.worldLandmarks.push(o)}R(this,r)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(s=>{R(this,s)})),this.g.attachProtoVectorListener("hand_gestures",((s,r)=>{this.gestures.push(...Wu(s,!1)),R(this,r)})),this.g.attachEmptyPacketListener("hand_gestures",(s=>{R(this,s)})),this.g.attachProtoVectorListener("handedness",((s,r)=>{this.handedness.push(...Wu(s)),R(this,r)})),this.g.attachEmptyPacketListener("handedness",(s=>{R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};function Ku(e){return{landmarks:e.landmarks,worldLandmarks:e.worldLandmarks,handednesses:e.handedness,handedness:e.handedness}}vt.prototype.recognizeForVideo=vt.prototype.Ga,vt.prototype.recognize=vt.prototype.Fa,vt.prototype.setOptions=vt.prototype.o,vt.createFromModelPath=function(e,t){return le(vt,e,{baseOptions:{modelAssetPath:t}})},vt.createFromModelBuffer=function(e,t){return le(vt,e,{baseOptions:{modelAssetBuffer:t}})},vt.createFromOptions=function(e,t){return le(vt,e,t)},vt.HAND_CONNECTIONS=ec;var At=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.handedness=[],q(e=this.h=new Ul,0,1,t=new De),this.s=new Nl,q(this.h,0,3,this.s),this.j=new Wh,q(this.h,0,2,this.j),hn(this.j,3,1),V(this.j,2,.5),V(this.s,2,.5),V(this.h,4,.5)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){return"numHands"in e&&hn(this.j,3,e.numHands??1),"minHandDetectionConfidence"in e&&V(this.j,2,e.minHandDetectionConfidence??.5),"minTrackingConfidence"in e&&V(this.h,4,e.minTrackingConfidence??.5),"minHandPresenceConfidence"in e&&V(this.s,2,e.minHandPresenceConfidence??.5),this.l(e)}D(e,t){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],$t(this,e,t),Ku(this)}F(e,t,n){return this.landmarks=[],this.worldLandmarks=[],this.handedness=[],pn(this,e,n,t),Ku(this)}m(){var e=new bt;xe(e,"image_in"),xe(e,"norm_rect"),he(e,"hand_landmarks"),he(e,"world_hand_landmarks"),he(e,"handedness");const t=new Mt;Xt(t,m0,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"),Te(n,"IMAGE:image_in"),Te(n,"NORM_RECT:norm_rect"),ce(n,"LANDMARKS:hand_landmarks"),ce(n,"WORLD_LANDMARKS:world_hand_landmarks"),ce(n,"HANDEDNESS:handedness"),n.o(t),Ot(e,n),this.g.attachProtoVectorListener("hand_landmarks",((s,r)=>{for(const i of s)s=Hr(i),this.landmarks.push(co(s));R(this,r)})),this.g.attachEmptyPacketListener("hand_landmarks",(s=>{R(this,s)})),this.g.attachProtoVectorListener("world_hand_landmarks",((s,r)=>{for(const i of s)s=Ls(i),this.worldLandmarks.push(xr(s));R(this,r)})),this.g.attachEmptyPacketListener("world_hand_landmarks",(s=>{R(this,s)})),this.g.attachProtoVectorListener("handedness",((s,r)=>{var i=this.handedness,o=i.push;const a=[];for(const l of s){s=ao(l);const c=[];for(const u of s.g())c.push({score:je(u,2)??0,index:Bt(u,1)??0??-1,categoryName:jt(u,3)??""??"",displayName:jt(u,4)??""??""});a.push(c)}o.call(i,...a),R(this,r)})),this.g.attachEmptyPacketListener("handedness",(s=>{R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};At.prototype.detectForVideo=At.prototype.F,At.prototype.detect=At.prototype.D,At.prototype.setOptions=At.prototype.o,At.createFromModelPath=function(e,t){return le(At,e,{baseOptions:{modelAssetPath:t}})},At.createFromModelBuffer=function(e,t){return le(At,e,{baseOptions:{modelAssetBuffer:t}})},At.createFromOptions=function(e,t){return le(At,e,t)},At.HAND_CONNECTIONS=ec;var _1=Zt([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);function qu(e){e.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]}}function Yu(e){try{if(!e.C)return e.h;e.C(e.h)}finally{fo(e)}}function Zr(e,t){e=Hr(e),t.push(co(e))}var Ie=class extends _t{constructor(e,t){super(new Vt(e,t),"input_frames_image",null,!1),this.h={faceLandmarks:[],faceBlendshapes:[],poseLandmarks:[],poseWorldLandmarks:[],poseSegmentationMasks:[],leftHandLandmarks:[],leftHandWorldLandmarks:[],rightHandLandmarks:[],rightHandWorldLandmarks:[]},this.outputPoseSegmentationMasks=this.outputFaceBlendshapes=!1,q(e=this.j=new Qh,0,1,t=new De),this.K=new Nl,q(this.j,0,2,this.K),this.Y=new v0,q(this.j,0,3,this.Y),this.s=new lo,q(this.j,0,4,this.s),this.H=new jh,q(this.j,0,5,this.H),this.v=new Xh,q(this.j,0,6,this.v),this.L=new Jh,q(this.j,0,7,this.L),V(this.s,2,.5),V(this.s,3,.3),V(this.H,2,.5),V(this.v,2,.5),V(this.v,3,.3),V(this.L,2,.5),V(this.K,2,.5)}get baseOptions(){return ue(this.j,De,1)}set baseOptions(e){q(this.j,0,1,e)}o(e){return"minFaceDetectionConfidence"in e&&V(this.s,2,e.minFaceDetectionConfidence??.5),"minFaceSuppressionThreshold"in e&&V(this.s,3,e.minFaceSuppressionThreshold??.3),"minFacePresenceConfidence"in e&&V(this.H,2,e.minFacePresenceConfidence??.5),"outputFaceBlendshapes"in e&&(this.outputFaceBlendshapes=!!e.outputFaceBlendshapes),"minPoseDetectionConfidence"in e&&V(this.v,2,e.minPoseDetectionConfidence??.5),"minPoseSuppressionThreshold"in e&&V(this.v,3,e.minPoseSuppressionThreshold??.3),"minPosePresenceConfidence"in e&&V(this.L,2,e.minPosePresenceConfidence??.5),"outputPoseSegmentationMasks"in e&&(this.outputPoseSegmentationMasks=!!e.outputPoseSegmentationMasks),"minHandLandmarksConfidence"in e&&V(this.K,2,e.minHandLandmarksConfidence??.5),this.l(e)}D(e,t,n){const s=typeof t!="function"?t:{};return this.C=typeof t=="function"?t:n,qu(this),$t(this,e,s),Yu(this)}F(e,t,n,s){const r=typeof n!="function"?n:{};return this.C=typeof n=="function"?n:s,qu(this),pn(this,e,r,t),Yu(this)}m(){var e=new bt;xe(e,"input_frames_image"),he(e,"pose_landmarks"),he(e,"pose_world_landmarks"),he(e,"face_landmarks"),he(e,"left_hand_landmarks"),he(e,"left_hand_world_landmarks"),he(e,"right_hand_landmarks"),he(e,"right_hand_world_landmarks");const t=new Mt,n=new yu;ma(n,1,Zs("type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"),""),(function(r,i){if(i!=null)if(Array.isArray(i))Se(r,2,qi(i,dl,void 0,void 0,!1));else{if(!(typeof i=="string"||i instanceof Sn||hs(i)))throw Error("invalid value in Any.value field: "+i+" expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");ma(r,2,rl(i,!1),ps())}})(n,this.j.g());const s=new ut;Pt(s,"mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"),ki(s,8,yu,n),Te(s,"IMAGE:input_frames_image"),ce(s,"POSE_LANDMARKS:pose_landmarks"),ce(s,"POSE_WORLD_LANDMARKS:pose_world_landmarks"),ce(s,"FACE_LANDMARKS:face_landmarks"),ce(s,"LEFT_HAND_LANDMARKS:left_hand_landmarks"),ce(s,"LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"),ce(s,"RIGHT_HAND_LANDMARKS:right_hand_landmarks"),ce(s,"RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"),s.o(t),Ot(e,s),uo(this,e),this.g.attachProtoListener("pose_landmarks",((r,i)=>{Zr(r,this.h.poseLandmarks),R(this,i)})),this.g.attachEmptyPacketListener("pose_landmarks",(r=>{R(this,r)})),this.g.attachProtoListener("pose_world_landmarks",((r,i)=>{var o=this.h.poseWorldLandmarks;r=Ls(r),o.push(xr(r)),R(this,i)})),this.g.attachEmptyPacketListener("pose_world_landmarks",(r=>{R(this,r)})),this.outputPoseSegmentationMasks&&(ce(s,"POSE_SEGMENTATION_MASK:pose_segmentation_mask"),Hs(this,"pose_segmentation_mask"),this.g.V("pose_segmentation_mask",((r,i)=>{this.h.poseSegmentationMasks=[Ks(this,r,!0,!this.C)],R(this,i)})),this.g.attachEmptyPacketListener("pose_segmentation_mask",(r=>{this.h.poseSegmentationMasks=[],R(this,r)}))),this.g.attachProtoListener("face_landmarks",((r,i)=>{Zr(r,this.h.faceLandmarks),R(this,i)})),this.g.attachEmptyPacketListener("face_landmarks",(r=>{R(this,r)})),this.outputFaceBlendshapes&&(he(e,"extra_blendshapes"),ce(s,"FACE_BLENDSHAPES:extra_blendshapes"),this.g.attachProtoListener("extra_blendshapes",((r,i)=>{var o=this.h.faceBlendshapes;this.outputFaceBlendshapes&&(r=ao(r),o.push(Vl(r.g()??[]))),R(this,i)})),this.g.attachEmptyPacketListener("extra_blendshapes",(r=>{R(this,r)}))),this.g.attachProtoListener("left_hand_landmarks",((r,i)=>{Zr(r,this.h.leftHandLandmarks),R(this,i)})),this.g.attachEmptyPacketListener("left_hand_landmarks",(r=>{R(this,r)})),this.g.attachProtoListener("left_hand_world_landmarks",((r,i)=>{var o=this.h.leftHandWorldLandmarks;r=Ls(r),o.push(xr(r)),R(this,i)})),this.g.attachEmptyPacketListener("left_hand_world_landmarks",(r=>{R(this,r)})),this.g.attachProtoListener("right_hand_landmarks",((r,i)=>{Zr(r,this.h.rightHandLandmarks),R(this,i)})),this.g.attachEmptyPacketListener("right_hand_landmarks",(r=>{R(this,r)})),this.g.attachProtoListener("right_hand_world_landmarks",((r,i)=>{var o=this.h.rightHandWorldLandmarks;r=Ls(r),o.push(xr(r)),R(this,i)})),this.g.attachEmptyPacketListener("right_hand_world_landmarks",(r=>{R(this,r)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ie.prototype.detectForVideo=Ie.prototype.F,Ie.prototype.detect=Ie.prototype.D,Ie.prototype.setOptions=Ie.prototype.o,Ie.createFromModelPath=function(e,t){return le(Ie,e,{baseOptions:{modelAssetPath:t}})},Ie.createFromModelBuffer=function(e,t){return le(Ie,e,{baseOptions:{modelAssetBuffer:t}})},Ie.createFromOptions=function(e,t){return le(Ie,e,t)},Ie.HAND_CONNECTIONS=ec,Ie.POSE_CONNECTIONS=_1,Ie.FACE_LANDMARKS_LIPS=ql,Ie.FACE_LANDMARKS_LEFT_EYE=Yl,Ie.FACE_LANDMARKS_LEFT_EYEBROW=Xl,Ie.FACE_LANDMARKS_LEFT_IRIS=g1,Ie.FACE_LANDMARKS_RIGHT_EYE=Jl,Ie.FACE_LANDMARKS_RIGHT_EYEBROW=Ql,Ie.FACE_LANDMARKS_RIGHT_IRIS=m1,Ie.FACE_LANDMARKS_FACE_OVAL=Zl,Ie.FACE_LANDMARKS_CONTOURS=v1,Ie.FACE_LANDMARKS_TESSELATION=y1;var Rt=class extends _t{constructor(e,t){super(new Vt(e,t),"input_image","norm_rect",!0),this.j={classifications:[]},q(e=this.h=new Zh,0,1,t=new De)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){return q(this.h,0,2,Aa(e,ue(this.h,Ll,2))),this.l(e)}qa(e,t){return this.j={classifications:[]},$t(this,e,t),this.j}ra(e,t,n){return this.j={classifications:[]},pn(this,e,n,t),this.j}m(){var e=new bt;xe(e,"input_image"),xe(e,"norm_rect"),he(e,"classifications");const t=new Mt;Xt(t,y0,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"),Te(n,"IMAGE:input_image"),Te(n,"NORM_RECT:norm_rect"),ce(n,"CLASSIFICATIONS:classifications"),n.o(t),Ot(e,n),this.g.attachProtoListener("classifications",((s,r)=>{this.j=(function(i){const o={classifications:Pn(i,r0,1).map((a=>{var l;return Vl(((l=ue(a,Ph,4))==null?void 0:l.g())??[],Bt(a,2)??0,jt(a,3)??"")}))};return da(Vs(i,2))!=null&&(o.timestampMs=da(Vs(i,2))??0),o})(i0(s)),R(this,r)})),this.g.attachEmptyPacketListener("classifications",(s=>{R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Rt.prototype.classifyForVideo=Rt.prototype.ra,Rt.prototype.classify=Rt.prototype.qa,Rt.prototype.setOptions=Rt.prototype.o,Rt.createFromModelPath=function(e,t){return le(Rt,e,{baseOptions:{modelAssetPath:t}})},Rt.createFromModelBuffer=function(e,t){return le(Rt,e,{baseOptions:{modelAssetBuffer:t}})},Rt.createFromOptions=function(e,t){return le(Rt,e,t)};var St=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect",!0),this.h=new e1,this.embeddings={embeddings:[]},q(e=this.h,0,1,t=new De)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){var t=this.h,n=ue(this.h,xu,2);return n=n?n.clone():new xu,e.l2Normalize!==void 0?Nr(n,1,e.l2Normalize):"l2Normalize"in e&&Se(n,1),e.quantize!==void 0?Nr(n,2,e.quantize):"quantize"in e&&Se(n,2),q(t,0,2,n),this.l(e)}xa(e,t){return $t(this,e,t),this.embeddings}ya(e,t,n){return pn(this,e,n,t),this.embeddings}m(){var e=new bt;xe(e,"image_in"),xe(e,"norm_rect"),he(e,"embeddings_out");const t=new Mt;Xt(t,_0,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"),Te(n,"IMAGE:image_in"),Te(n,"NORM_RECT:norm_rect"),ce(n,"EMBEDDINGS:embeddings_out"),n.o(t),Ot(e,n),this.g.attachProtoListener("embeddings_out",((s,r)=>{s=l0(s),this.embeddings=(function(i){return{embeddings:Pn(i,a0,1).map((o=>{var a,l;const c={headIndex:Bt(o,3)??0??-1,headName:jt(o,4)??""??""};if(eh(o,Tu,Ro(o,1))!==void 0)o=cs(o=ue(o,Tu,Ro(o,1)),1,ts,ls()),c.floatEmbedding=o.slice();else{const u=new Uint8Array(0);c.quantizedEmbedding=((l=(a=ue(o,o0,Ro(o,2)))==null?void 0:a.ma())==null?void 0:l.h())??u}return c})),timestampMs:da(Vs(i,2))??0}})(s),R(this,r)})),this.g.attachEmptyPacketListener("embeddings_out",(s=>{R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};St.cosineSimilarity=function(e,t){if(e.floatEmbedding&&t.floatEmbedding)e=Pu(e.floatEmbedding,t.floatEmbedding);else{if(!e.quantizedEmbedding||!t.quantizedEmbedding)throw Error("Cannot compute cosine similarity between quantized and float embeddings.");e=Pu(Du(e.quantizedEmbedding),Du(t.quantizedEmbedding))}return e},St.prototype.embedForVideo=St.prototype.ya,St.prototype.embed=St.prototype.xa,St.prototype.setOptions=St.prototype.o,St.createFromModelPath=function(e,t){return le(St,e,{baseOptions:{modelAssetPath:t}})},St.createFromModelBuffer=function(e,t){return le(St,e,{baseOptions:{modelAssetBuffer:t}})},St.createFromOptions=function(e,t){return le(St,e,t)};var Ia=class{constructor(e,t,n){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=n}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach((n=>{n.close()})),(t=this.categoryMask)==null||t.close()}};function Xu(e){e.categoryMask=void 0,e.confidenceMasks=void 0,e.qualityScores=void 0}function Ju(e){try{const t=new Ia(e.confidenceMasks,e.categoryMask,e.qualityScores);if(!e.j)return t;e.j(t)}finally{fo(e)}}Ia.prototype.close=Ia.prototype.close;var mt=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect",!1),this.s=[],this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new jl,this.v=new t1,q(this.h,0,3,this.v),q(e=this.h,0,1,t=new De)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?Se(this.h,2,Zs(e.displayNamesLocale)):"displayNamesLocale"in e&&Se(this.h,2),"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}J(){(function(e){var t,n;const s=Pn(e.ca(),ut,1).filter((r=>(jt(r,1)??"").includes("mediapipe.tasks.TensorsToSegmentationCalculator")));if(e.s=[],s.length>1)throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");s.length===1&&(((n=(t=ue(s[0],Mt,7))==null?void 0:t.l())==null?void 0:n.g())??new Map).forEach(((r,i)=>{e.s[Number(i)]=jt(r,1)??""}))})(this)}segment(e,t,n){const s=typeof t!="function"?t:{};return this.j=typeof t=="function"?t:n,Xu(this),$t(this,e,s),Ju(this)}Ia(e,t,n,s){const r=typeof n!="function"?n:{};return this.j=typeof n=="function"?n:s,Xu(this),pn(this,e,r,t),Ju(this)}Ba(){return this.s}m(){var e=new bt;xe(e,"image_in"),xe(e,"norm_rect");const t=new Mt;Xt(t,s1,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"),Te(n,"IMAGE:image_in"),Te(n,"NORM_RECT:norm_rect"),n.o(t),Ot(e,n),uo(this,e),this.outputConfidenceMasks&&(he(e,"confidence_masks"),ce(n,"CONFIDENCE_MASKS:confidence_masks"),Hs(this,"confidence_masks"),this.g.ba("confidence_masks",((s,r)=>{this.confidenceMasks=s.map((i=>Ks(this,i,!0,!this.j))),R(this,r)})),this.g.attachEmptyPacketListener("confidence_masks",(s=>{this.confidenceMasks=[],R(this,s)}))),this.outputCategoryMask&&(he(e,"category_mask"),ce(n,"CATEGORY_MASK:category_mask"),Hs(this,"category_mask"),this.g.V("category_mask",((s,r)=>{this.categoryMask=Ks(this,s,!1,!this.j),R(this,r)})),this.g.attachEmptyPacketListener("category_mask",(s=>{this.categoryMask=void 0,R(this,s)}))),he(e,"quality_scores"),ce(n,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((s,r)=>{this.qualityScores=s,R(this,r)})),this.g.attachEmptyPacketListener("quality_scores",(s=>{this.categoryMask=void 0,R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};mt.prototype.getLabels=mt.prototype.Ba,mt.prototype.segmentForVideo=mt.prototype.Ia,mt.prototype.segment=mt.prototype.segment,mt.prototype.setOptions=mt.prototype.o,mt.createFromModelPath=function(e,t){return le(mt,e,{baseOptions:{modelAssetPath:t}})},mt.createFromModelBuffer=function(e,t){return le(mt,e,{baseOptions:{modelAssetBuffer:t}})},mt.createFromOptions=function(e,t){return le(mt,e,t)};var Ca=class{constructor(e,t,n){this.confidenceMasks=e,this.categoryMask=t,this.qualityScores=n}close(){var e,t;(e=this.confidenceMasks)==null||e.forEach((n=>{n.close()})),(t=this.categoryMask)==null||t.close()}};Ca.prototype.close=Ca.prototype.close;var x0=class extends G{constructor(e){super(e)}},Es=[0,Ne,-2],Si=[0,bn,-3,Me,bn,-1],Qu=[0,Si],Zu=[0,Si,Ne,-1],jo=class extends G{constructor(e){super(e)}},ef=[0,bn,-1,Me],I0=class extends G{constructor(e){super(e)}},tf=class extends G{constructor(e){super(e)}},Ma=[1,2,3,4,5,6,7,8,9,10,14,15],b1=class extends G{constructor(e){super(e)}};b1.prototype.g=oo([0,qe,[0,Ma,ge,Si,ge,[0,Si,Es],ge,Qu,ge,[0,Qu,Es],ge,ef,ge,[0,bn,-3,Me,Ct],ge,[0,bn,-3,Me],ge,[0,me,bn,-2,Me,Ne,Me,-1,2,bn,Es],ge,Zu,ge,[0,Zu,Es],bn,Es,me,ge,[0,bn,-3,Me,Es,-1],ge,[0,qe,ef]],me,[0,me,Ne,-1,Me]]);var rn=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect_in",!1),this.outputCategoryMask=!1,this.outputConfidenceMasks=!0,this.h=new jl,this.s=new t1,q(this.h,0,3,this.s),q(e=this.h,0,1,t=new De)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){return"outputCategoryMask"in e&&(this.outputCategoryMask=e.outputCategoryMask??!1),"outputConfidenceMasks"in e&&(this.outputConfidenceMasks=e.outputConfidenceMasks??!0),super.l(e)}segment(e,t,n,s){const r=typeof n!="function"?n:{};this.j=typeof n=="function"?n:s,this.qualityScores=this.categoryMask=this.confidenceMasks=void 0,n=this.B+1,s=new b1;const i=new tf;var o=new x0;if(hn(o,1,255),q(i,0,12,o),t.keypoint&&t.scribble)throw Error("Cannot provide both keypoint and scribble.");if(t.keypoint){var a=new jo;Nr(a,3,!0),V(a,1,t.keypoint.x),V(a,2,t.keypoint.y),Sr(i,5,Ma,a)}else{if(!t.scribble)throw Error("Must provide either a keypoint or a scribble.");for(a of(o=new I0,t.scribble))Nr(t=new jo,3,!0),V(t,1,a.x),V(t,2,a.y),ki(o,1,jo,t);Sr(i,15,Ma,o)}ki(s,1,tf,i),this.g.addProtoToStream(s.g(),"drishti.RenderData","roi_in",n),$t(this,e,r);e:{try{const c=new Ca(this.confidenceMasks,this.categoryMask,this.qualityScores);if(!this.j){var l=c;break e}this.j(c)}finally{fo(this)}l=void 0}return l}m(){var e=new bt;xe(e,"image_in"),xe(e,"roi_in"),xe(e,"norm_rect_in");const t=new Mt;Xt(t,s1,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.interactive_segmenter.InteractiveSegmenterGraph"),Te(n,"IMAGE:image_in"),Te(n,"ROI:roi_in"),Te(n,"NORM_RECT:norm_rect_in"),n.o(t),Ot(e,n),uo(this,e),this.outputConfidenceMasks&&(he(e,"confidence_masks"),ce(n,"CONFIDENCE_MASKS:confidence_masks"),Hs(this,"confidence_masks"),this.g.ba("confidence_masks",((s,r)=>{this.confidenceMasks=s.map((i=>Ks(this,i,!0,!this.j))),R(this,r)})),this.g.attachEmptyPacketListener("confidence_masks",(s=>{this.confidenceMasks=[],R(this,s)}))),this.outputCategoryMask&&(he(e,"category_mask"),ce(n,"CATEGORY_MASK:category_mask"),Hs(this,"category_mask"),this.g.V("category_mask",((s,r)=>{this.categoryMask=Ks(this,s,!1,!this.j),R(this,r)})),this.g.attachEmptyPacketListener("category_mask",(s=>{this.categoryMask=void 0,R(this,s)}))),he(e,"quality_scores"),ce(n,"QUALITY_SCORES:quality_scores"),this.g.attachFloatVectorListener("quality_scores",((s,r)=>{this.qualityScores=s,R(this,r)})),this.g.attachEmptyPacketListener("quality_scores",(s=>{this.categoryMask=void 0,R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};rn.prototype.segment=rn.prototype.segment,rn.prototype.setOptions=rn.prototype.o,rn.createFromModelPath=function(e,t){return le(rn,e,{baseOptions:{modelAssetPath:t}})},rn.createFromModelBuffer=function(e,t){return le(rn,e,{baseOptions:{modelAssetBuffer:t}})},rn.createFromOptions=function(e,t){return le(rn,e,t)};var Ft=class extends _t{constructor(e,t){super(new Vt(e,t),"input_frame_gpu","norm_rect",!1),this.j={detections:[]},q(e=this.h=new r1,0,1,t=new De)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){return e.displayNamesLocale!==void 0?Se(this.h,2,Zs(e.displayNamesLocale)):"displayNamesLocale"in e&&Se(this.h,2),e.maxResults!==void 0?hn(this.h,3,e.maxResults):"maxResults"in e&&Se(this.h,3),e.scoreThreshold!==void 0?V(this.h,4,e.scoreThreshold):"scoreThreshold"in e&&Se(this.h,4),e.categoryAllowlist!==void 0?wi(this.h,5,e.categoryAllowlist):"categoryAllowlist"in e&&Se(this.h,5),e.categoryDenylist!==void 0?wi(this.h,6,e.categoryDenylist):"categoryDenylist"in e&&Se(this.h,6),this.l(e)}D(e,t){return this.j={detections:[]},$t(this,e,t),this.j}F(e,t,n){return this.j={detections:[]},pn(this,e,n,t),this.j}m(){var e=new bt;xe(e,"input_frame_gpu"),xe(e,"norm_rect"),he(e,"detections");const t=new Mt;Xt(t,k0,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.ObjectDetectorGraph"),Te(n,"IMAGE:input_frame_gpu"),Te(n,"NORM_RECT:norm_rect"),ce(n,"DETECTIONS:detections"),n.o(t),Ot(e,n),this.g.attachProtoVectorListener("detections",((s,r)=>{for(const i of s)s=Lh(i),this.j.detections.push(o1(s));R(this,r)})),this.g.attachEmptyPacketListener("detections",(s=>{R(this,s)})),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Ft.prototype.detectForVideo=Ft.prototype.F,Ft.prototype.detect=Ft.prototype.D,Ft.prototype.setOptions=Ft.prototype.o,Ft.createFromModelPath=async function(e,t){return le(Ft,e,{baseOptions:{modelAssetPath:t}})},Ft.createFromModelBuffer=function(e,t){return le(Ft,e,{baseOptions:{modelAssetBuffer:t}})},Ft.createFromOptions=function(e,t){return le(Ft,e,t)};var Da=class{constructor(e,t,n){this.landmarks=e,this.worldLandmarks=t,this.segmentationMasks=n}close(){var e;(e=this.segmentationMasks)==null||e.forEach((t=>{t.close()}))}};function nf(e){e.landmarks=[],e.worldLandmarks=[],e.segmentationMasks=void 0}function sf(e){try{const t=new Da(e.landmarks,e.worldLandmarks,e.segmentationMasks);if(!e.s)return t;e.s(t)}finally{fo(e)}}Da.prototype.close=Da.prototype.close;var Tt=class extends _t{constructor(e,t){super(new Vt(e,t),"image_in","norm_rect",!1),this.landmarks=[],this.worldLandmarks=[],this.outputSegmentationMasks=!1,q(e=this.h=new i1,0,1,t=new De),this.v=new Jh,q(this.h,0,3,this.v),this.j=new Xh,q(this.h,0,2,this.j),hn(this.j,4,1),V(this.j,2,.5),V(this.v,2,.5),V(this.h,4,.5)}get baseOptions(){return ue(this.h,De,1)}set baseOptions(e){q(this.h,0,1,e)}o(e){return"numPoses"in e&&hn(this.j,4,e.numPoses??1),"minPoseDetectionConfidence"in e&&V(this.j,2,e.minPoseDetectionConfidence??.5),"minTrackingConfidence"in e&&V(this.h,4,e.minTrackingConfidence??.5),"minPosePresenceConfidence"in e&&V(this.v,2,e.minPosePresenceConfidence??.5),"outputSegmentationMasks"in e&&(this.outputSegmentationMasks=e.outputSegmentationMasks??!1),this.l(e)}D(e,t,n){const s=typeof t!="function"?t:{};return this.s=typeof t=="function"?t:n,nf(this),$t(this,e,s),sf(this)}F(e,t,n,s){const r=typeof n!="function"?n:{};return this.s=typeof n=="function"?n:s,nf(this),pn(this,e,r,t),sf(this)}m(){var e=new bt;xe(e,"image_in"),xe(e,"norm_rect"),he(e,"normalized_landmarks"),he(e,"world_landmarks"),he(e,"segmentation_masks");const t=new Mt;Xt(t,w0,this.h);const n=new ut;Pt(n,"mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"),Te(n,"IMAGE:image_in"),Te(n,"NORM_RECT:norm_rect"),ce(n,"NORM_LANDMARKS:normalized_landmarks"),ce(n,"WORLD_LANDMARKS:world_landmarks"),n.o(t),Ot(e,n),uo(this,e),this.g.attachProtoVectorListener("normalized_landmarks",((s,r)=>{this.landmarks=[];for(const i of s)s=Hr(i),this.landmarks.push(co(s));R(this,r)})),this.g.attachEmptyPacketListener("normalized_landmarks",(s=>{this.landmarks=[],R(this,s)})),this.g.attachProtoVectorListener("world_landmarks",((s,r)=>{this.worldLandmarks=[];for(const i of s)s=Ls(i),this.worldLandmarks.push(xr(s));R(this,r)})),this.g.attachEmptyPacketListener("world_landmarks",(s=>{this.worldLandmarks=[],R(this,s)})),this.outputSegmentationMasks&&(ce(n,"SEGMENTATION_MASK:segmentation_masks"),Hs(this,"segmentation_masks"),this.g.ba("segmentation_masks",((s,r)=>{this.segmentationMasks=s.map((i=>Ks(this,i,!0,!this.s))),R(this,r)})),this.g.attachEmptyPacketListener("segmentation_masks",(s=>{this.segmentationMasks=[],R(this,s)}))),e=e.g(),this.setGraph(new Uint8Array(e),!0)}};Tt.prototype.detectForVideo=Tt.prototype.F,Tt.prototype.detect=Tt.prototype.D,Tt.prototype.setOptions=Tt.prototype.o,Tt.createFromModelPath=function(e,t){return le(Tt,e,{baseOptions:{modelAssetPath:t}})},Tt.createFromModelBuffer=function(e,t){return le(Tt,e,{baseOptions:{modelAssetBuffer:t}})},Tt.createFromOptions=function(e,t){return le(Tt,e,t)},Tt.POSE_CONNECTIONS=_1;const C0=["None","Closed_Fist","Open_Palm","Pointing_Up","Thumb_Down","Thumb_Up","Victory","ILoveYou"];function M0(e,t={}){const{numHands:n=2,minHandDetectionConfidence:s=.5,minHandPresenceConfidence:r=.5,minTrackingConfidence:i=.5,gestureScoreThreshold:o=.6}=t,a=ve(null),l=ve({isReady:!1,isDetecting:!1,error:null,gestures:[],landmarks:null}),c=ve(0),u=ve("None");let h=null,k=null;const I=async()=>{try{k=await navigator.mediaDevices.getUserMedia({video:{width:{ideal:1280},height:{ideal:720},facingMode:"user"},audio:!1}),e.value&&(e.value.srcObject=k,await new Promise(N=>{e.value&&(e.value.onloadedmetadata=()=>N())}),await e.value.play())}catch(N){l.value.error=`Failed to access webcam: ${N}`,console.error("Webcam access error:",N)}},C=async()=>{try{l.value.error=null,a.value&&(a.value.close(),a.value=null);const N=await as.forVisionTasks("https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.22-rc.20250304/wasm");a.value=await vt.createFromOptions(N,{baseOptions:{modelAssetPath:"https://storage.googleapis.com/mediapipe-models/gesture_recognizer/gesture_recognizer/float16/1/gesture_recognizer.task",delegate:"GPU"},runningMode:"IMAGE",numHands:n,minHandDetectionConfidence:s,minHandPresenceConfidence:r,minTrackingConfidence:i}),l.value.isReady=!0}catch(N){l.value.error=`Failed to initialize gesture recognizer: ${N}`,console.error(l.value.error)}},M=()=>{var N,Y,B;if(!l.value.isDetecting)return;if(!l.value.isReady){h=requestAnimationFrame(M);return}if(!a.value){w(),l.value.error="Gesture recognizer instance lost";return}if(!e.value){h=requestAnimationFrame(M);return}const j=e.value;if(j.readyState!==j.HAVE_ENOUGH_DATA){h=requestAnimationFrame(M);return}try{const X=a.value.recognize(j),Pe=[];for(const[et,ht]of(X.gestures??[]).entries()){const[ot]=ht;ot!=null&&ot.categoryName&&C0.includes(ot.categoryName)&&Pe.push({gesture:ot.categoryName,score:ot.score,handedness:((B=(Y=(N=X.handedness)==null?void 0:N[et])==null?void 0:Y[0])==null?void 0:B.categoryName)||"Right"})}l.value.gestures=Pe,l.value.landmarks=X.landmarks||null}catch(X){console.error("Gesture recognition error:",X)}h=requestAnimationFrame(M)},b=()=>{if(!e.value||!a.value){console.error("Video element or gesture recognizer not ready");return}if(l.value.isDetecting){console.warn("Detection already running");return}l.value.isDetecting=!0,l.value.error=null,setTimeout(()=>{l.value.isDetecting&&a.value&&M()},100)},v=async()=>{try{if(l.value.isReady=!1,l.value.error=null,await C(),!l.value.isReady||!a.value)throw new Error("Failed to initialize gesture recognizer");await I(),b()}catch(N){l.value.error=`Failed to start detection: ${N}`,console.error(l.value.error)}},w=()=>{if(l.value.isDetecting=!1,h!==null&&(cancelAnimationFrame(h),h=null),k){for(const N of k.getTracks())N.stop();k=null}e.value&&(e.value.srcObject=null)},F=()=>{if(l.value.gestures.length===0)return u.value="None",null;const N=l.value.gestures.reduce((Y,B)=>Y.score>B.score?Y:B);return N.score<o?(u.value="None",null):N},L=()=>l.value.gestures.length===0?null:l.value.gestures.reduce((N,Y)=>N.score>Y.score?N:Y),Z=(N,Y=300)=>{const B=L();if(!B||B.gesture!==N)return u.value="None",!1;const j=Date.now();return u.value!==N?(u.value=N,c.value=j,!1):j-c.value>=Y};return qs(()=>{w(),a.value&&a.value.close()}),{state:l,initialize:C,startDetection:v,stopDetection:w,getDominantGesture:L,getStableGesture:F,isGestureHeld:Z}}const Pa="taskin-gesture-mappings",fi=[{gesture:"Pointing_Up",action:"moveUp"},{gesture:"Thumb_Down",action:"moveDown"},{gesture:"Victory",action:"groupWith"},{gesture:"Open_Palm",action:"ungroup"},{gesture:"Closed_Fist",action:"undo"}],Vo=["moveUp","moveDown","groupWith","ungroup","undo","copyCard","setDifficulty1","setDifficulty2","setDifficulty3","setDifficulty4","setDifficulty5","none"],rf=2e3,of=5e3,D0=2e3,af=600;function P0(e){if(typeof localStorage>"u")return fi;try{const t=localStorage.getItem(Pa);return t&&JSON.parse(t)[e]||fi}catch{return fi}}function $o(e,t){if(!(typeof localStorage>"u"))try{const n=localStorage.getItem(Pa),s=n?JSON.parse(n):{};s[e]=t,localStorage.setItem(Pa,JSON.stringify(s))}catch{}}function O0(e,t,n="default"){const s=ve("IDLE"),r=ve(P0(n)),i=ve(0),o=ve(0),a=ve(null),l=ve(0),c=ve(null),u=ae(()=>{const b={none:"none"};for(const v of r.value)v.gesture!=="None"&&(b[v.gesture]=v.action);return b});let h=null,k=null;const I=()=>{h&&(clearTimeout(h),h=null),k&&(clearTimeout(k),k=null)},C=()=>{s.value="IDLE",i.value=0,o.value=0,a.value=null,l.value=0,I()},M=b=>{if(s.value!=="IDLE")return"none";for(const v of r.value)if(v.gesture===b)return v.action;return"none"};return{wizardState:s,mappings:r,readyProgress:i,step:o,recordingCandidate:a,selectedActionIndex:l,lastMapping:c,currentActions:u,AVAILABLE_ACTIONS:Vo,getMappedAction:()=>{const b=e();return b?M(b.gesture):null},getActionForGesture:M,getGestureForAction:b=>{for(const v of r.value)if(v.action===b)return v.gesture;return null},setMapping:(b,v)=>{const w=r.value.findIndex(F=>F.gesture===b);w>=0?r.value[w]={gesture:b,action:v}:r.value.push({gesture:b,action:v}),$o(n,r.value)},resetMappings:()=>{r.value=[...fi],$o(n,r.value)},resetWizard:C,tick:()=>{const b=e();switch(s.value){case"IDLE":{b&&b.gesture==="Open_Palm"&&!h?(i.value=0,h=setInterval(()=>{const v=e();if((v==null?void 0:v.gesture)!=="Open_Palm"){i.value=0,I();return}if(i.value+=100,i.value>=rf){I(),s.value="READY",i.value=rf;const w=setInterval(()=>{const F=e();if((F==null?void 0:F.gesture)!=="Open_Palm"){F&&F.gesture!=="None"&&(s.value="RECORDING",o.value=1,a.value=F.gesture),clearInterval(w);return}i.value+=100,i.value>=of&&(clearInterval(w),s.value="RECORDING",o.value=1)},100);h=w}},100)):(b==null?void 0:b.gesture)!=="Open_Palm"&&(i.value=0);break}case"READY":{i.value+=100,i.value>=of&&(s.value="RECORDING",o.value=1,l.value=0,I());break}case"RECORDING":{b&&b.gesture!=="None"?k||(k=setTimeout(()=>{a.value=b.gesture,o.value=2,s.value="SELECTING",l.value=0,k=null},D0)):k&&(clearTimeout(k),k=null);break}case"SELECTING":{if(t("Closed_Fist",af)){const v=Vo[l.value];a.value&&v&&(c.value={gesture:a.value,action:v}),o.value=3,s.value="CONFIRMING"}else(b==null?void 0:b.gesture)==="Thumb_Up"?l.value=Math.min(l.value+1,Vo.length-1):(b==null?void 0:b.gesture)==="Thumb_Down"?l.value=Math.max(l.value-1,0):(b==null?void 0:b.gesture)==="Open_Palm"&&C();break}case"CONFIRMING":{if(t("Closed_Fist",af)){if(c.value){const v=r.value.findIndex(w=>w.gesture===c.value.gesture);v>=0?r.value[v]=c.value:r.value.push(c.value),$o(n,r.value)}s.value="SAVED",o.value=4,setTimeout(C,1500)}else((b==null?void 0:b.gesture)==="Open_Palm"||(b==null?void 0:b.gesture)==="Thumb_Down")&&C();break}}}}}const L0={class:"gesture-system"},R0=Ge({__name:"GestureSystem",props:{functions:{},userId:{},detecting:{type:Boolean},videoElement:{}},emits:["gestureAction","camera-active"],setup(e,{emit:t}){const n=e,s=t,r=ve(null),i=ae(()=>n.videoElement??r.value),{state:o,startDetection:a,stopDetection:l,getStableGesture:c,isGestureHeld:u}=M0(i),{wizardState:h,readyProgress:k,step:I,recordingCandidate:C,selectedActionIndex:M,lastMapping:b,mappings:v,tick:w,getMappedAction:F,resetWizard:L}=O0(c,u,n.userId),Z=ae(()=>[...n.functions.map(Y=>Y.id),"none"]);Kn(()=>o.value.isDetecting,Y=>s("camera-active",Y));let N=null;return Kn(()=>n.detecting,Y=>{Y?(a(),N=setInterval(()=>{w();const B=F();B&&B!=="none"&&s("gestureAction",B)},300)):(l(),N&&(clearInterval(N),N=null),L())}),qs(()=>{l(),N&&clearInterval(N)}),(Y,B)=>(x(),P("div",L0,[n.videoElement===void 0?(x(),P("video",{key:0,ref_key:"internalVideoRef",ref:r,style:{display:"none"},width:"320",height:"240",muted:"",playsinline:""},null,512)):re("",!0),D(o).isDetecting?(x(),Qe(u3,{key:1,class:"gesture-system__legend",mappings:D(v),compact:""},null,8,["mappings"])):re("",!0),D(o).isDetecting?(x(),Qe(H3,{key:2,"wizard-state":D(h),"ready-progress":D(k),step:D(I),"recording-candidate":D(C),"selected-action-index":D(M),"available-actions":Z.value,"last-mapping":D(b),"teleport-to":"body"},null,8,["wizard-state","ready-progress","step","recording-candidate","selected-action-index","available-actions","last-mapping"])):re("",!0)]))}}),F0=Ys(R0,[["__scopeId","data-v-04ac58fa"]]),N0=["title"],U0=["src","alt"],B0={key:1,class:"avatar__initials"},G0=Ge({__name:"Avatar",props:{name:{},src:{default:void 0},size:{default:"md"}},setup(e){const t=e,n=ae(()=>{const s=t.name.trim().split(" "),r=s.at(0),i=s.at(-1);return s.length>=2&&r&&i?`${r.charAt(0)}${i.charAt(0)}`.toUpperCase():t.name.slice(0,2).toUpperCase()});return(s,r)=>(x(),P("div",{class:_e(["avatar",`avatar--${e.size}`]),title:e.name},[e.src?(x(),P("img",{key:0,class:"avatar__image",src:e.src,alt:e.name},null,8,U0)):(x(),P("span",B0,K(n.value),1))],10,N0))}}),Ht=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},j0=Ht(G0,[["__scopeId","data-v-04fbcabb"]]),V0=Ge({__name:"Badge",props:{variant:{default:"default"},size:{default:"md"}},setup(e){const t=e,n=ae(()=>({fontSize:{sm:"0.75rem",md:"0.875rem",lg:"1rem"}[t.size]}));return(s,r)=>(x(),P("span",{class:_e(["badge",`badge--${e.variant}`]),style:un(n.value)},[Ds(s.$slots,"default",{},void 0)],6))}}),Ho=Ht(V0,[["__scopeId","data-v-714e24a1"]]),$0=["aria-valuenow","aria-label"],H0={class:"progress-bar__track"},z0={class:"progress-bar__label"},W0={class:"progress-bar__label progress-bar__label--on-fill"},K0=Ge({__name:"ProgressBar",props:{percentage:{},variant:{default:"primary"},showLabel:{type:Boolean,default:!0},ariaLabel:{default:void 0}},setup(e){const t=e,n=ae(()=>Math.min(100,Math.max(0,t.percentage))),s=ae(()=>t.ariaLabel??`Progresso: ${n.value}%`);return(r,i)=>(x(),P("div",{class:_e(["progress-bar",`progress-bar--${e.variant}`]),role:"progressbar","aria-valuenow":n.value,"aria-valuemin":"0","aria-valuemax":"100","aria-label":s.value},[_("div",H0,[_("div",{class:_e(["progress-bar__fill",`progress-bar__fill--${e.variant}`]),style:un({width:`${n.value}%`})},null,6),e.showLabel?(x(),P(Ae,{key:0},[n.value<100?(x(),P("span",{key:0,class:"progress-bar__label-clip",style:un({clipPath:`inset(0 0 0 ${n.value}%)`}),"aria-hidden":"true"},[_("span",z0,K(n.value)+"%",1)],4)):re("",!0),n.value>0?(x(),P("span",{key:1,class:"progress-bar__label-clip",style:un({clipPath:`inset(0 ${100-n.value}% 0 0)`}),"aria-hidden":"true"},[_("span",W0,K(n.value)+"%",1)],4)):re("",!0)],64)):re("",!0)])],10,$0))}}),q0=Ht(K0,[["__scopeId","data-v-4001a91c"]]),Y0="taskin-prioritization-prefs",X0=10;function J0(e){const t={viewMode:"cards",sortMode:"manual",collapsedGroups:{}};if(typeof localStorage>"u")return t;try{const n=localStorage.getItem(e);return n?{...t,...JSON.parse(n)}:t}catch{return t}}function Q0(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(e,JSON.stringify(t))}catch{}}function lf(e,t={}){var n;const s=e.map((o,a)=>({task:o,index:a})).sort((o,a)=>{const l=o.task.order,c=a.task.order;return l===void 0&&c===void 0?o.index-a.index:l===void 0?1:c===void 0?-1:l!==c?l-c:o.index-a.index}).map(({task:o})=>o),r=[];let i=null;for(const o of s){const a=((n=o.parent)==null?void 0:n.type)==="group"?o.parent.id:void 0;if(a){if(i&&i.groupId===a){i.items.push({kind:"task",task:o});continue}i={kind:"group",groupId:a,groupName:o.groupName??null,collapsed:!!t[a],items:[{kind:"task",task:o}]},r.push(i)}else i=null,r.push({kind:"task",task:o})}return r}function zo(e){const t=[];function n(s,r,i,o,a){for(const l of s)if(l.kind==="group")for(const c of l.items)n([c],l.groupId,l.groupName??void 0);else t.push({...l.task,parent:r?{type:"group",id:r}:void 0,groupName:i})}return n(e),t}function Ce(e){return JSON.parse(JSON.stringify(e))}function Oa(e){var t;return{order:e.order,parentId:((t=e.parent)==null?void 0:t.type)==="group"?e.parent.id:void 0,difficulty:e.difficulty}}function Z0(e,t){return e?e.order===t.order&&e.parentId===t.parentId&&e.difficulty===t.difficulty:!1}function e4(e,t){return e.filter(n=>!Z0(t.get(n.id),Oa(n)))}function t4(e,t={}){const n=t.storageKey??Y0,s=t.orderStep??X0,r=J0(n),i=ve(r.viewMode),o=ve(r.sortMode),a=ve(r.collapsedGroups),l=ve(""),c=ve(lf(e.value,a.value)),u=wo(new Map(e.value.map(f=>[f.id,Oa(f)]))),h=wo([]),k=wo([]);Kn(e,f=>{c.value=lf(f,a.value)});function I(){Q0(n,{viewMode:i.value,sortMode:o.value,collapsedGroups:a.value})}function C(){let f=0;function p(y){for(const g of y)g.kind==="task"?(f++,g.task.order=f*s):p(g.items)}p(c.value)}const M=ae(()=>e4(zo(c.value),u.value));function b(){const f=zo(c.value);u.value=new Map(f.map(p=>[p.id,Oa(p)]))}function v(f){h.value=[...h.value,f].slice(-50),k.value=[]}const w=ae(()=>h.value.length>0),F=ae(()=>k.value.length>0);function L(){const f=h.value.at(-1);f&&(k.value=[...k.value,Ce(c.value)].slice(-50),h.value=h.value.slice(0,-1),c.value=f)}function Z(){const f=k.value.at(-1);f&&(h.value=[...h.value,Ce(c.value)].slice(-50),k.value=k.value.slice(0,-1),c.value=f)}function N(f,p,y=null){for(const[g,m]of f.entries()){if(m.kind==="task"&&m.task.id===p)return{container:f,index:g,parentGroup:y};if(m.kind==="group"){const E=N(m.items,p,m);if(E)return E}}return null}function Y(f,p){for(const[y,g]of f.entries()){if(g.kind==="task"&&g.task.id===p||g.kind==="group"&&g.groupId===p)return{container:f,index:y};if(g.kind==="group"){const m=Y(g.items,p);if(m)return m}}return null}function B(f){for(let p=f.length-1;p>=0;p--){const y=f[p];if((y==null?void 0:y.kind)==="group"){B(y.items);const[g]=y.items;y.items.length===1&&(g==null?void 0:g.kind)==="task"?f.splice(p,1,{kind:"task",task:g.task}):y.items.length===0&&f.splice(p,1)}}}function j(f,p){const y=N(f,p);if(!y)return null;const[g]=y.container.splice(y.index,1);return(g==null?void 0:g.kind)!=="task"?null:(B(f),g.task)}function X(f,p){for(const y of f)if(y.kind==="group"){if(y.groupId===p)return y;const g=X(y.items,p);if(g)return g}return null}function Pe(f){l.value=f}function et(f){i.value=f,I()}function ht(f){o.value=f,I()}function ot(f){a.value={...a.value,[f]:!a.value[f]};const p=X(c.value,f);p&&(p.collapsed=a.value[f]??!1),I()}function Fn(f,p){const y=N(c.value,f);if(!y)return;v(Ce(c.value));const g=y.container[y.index];(g==null?void 0:g.kind)==="task"&&(g.task={...g.task,difficulty:p})}function be(f,p){if(f===p)return;const y=Ce(c.value),g=Ce(c.value),m=j(g,f);if(!m)return;const E=N(g,p);if(!E)g.push({kind:"task",task:m});else{const A=E.parentGroup;E.container.splice(E.index,0,{kind:"task",task:{...m,parent:A?{type:"group",id:A.groupId}:void 0}})}v(y),c.value=g,C()}function te(f,p){if(f===p)return;const y=Ce(c.value),g=Ce(c.value),m=j(g,f);if(!m)return;const E=N(g,p);if(!E)g.push({kind:"task",task:m});else{const A=E.parentGroup;E.container.splice(E.index+1,0,{kind:"task",task:{...m,parent:A?{type:"group",id:A.groupId}:void 0}})}v(y),c.value=g,C()}function J(f,p){for(const y of f)if(y.kind==="group"){if(y.groupId===p)return f;const g=J(y.items,p);if(g)return g}return null}function kt(f,p){if(f===p)return;const y=Ce(c.value),g=Ce(c.value),m=N(g,f),E=N(g,p);if(!m||!E)return;const A=E.container[E.index];if((A==null?void 0:A.kind)!=="task")return;const S=m.parentGroup,T=E.parentGroup,$=S==null?void 0:S.groupId,O=T==null?void 0:T.groupId;if(S&&T&&$!==O){const se=J(g,T.groupId);if(!se)return;const ne=se.indexOf(S),$e=se.indexOf(T);if(ne===-1||$e===-1)return;const He={kind:"group",groupId:`g-${Math.random().toString(36).slice(2,10)}`,groupName:null,collapsed:!1,items:[{...S},{...T}]},Je=Math.min(ne,$e),gt=Math.max(ne,$e);se.splice(Je,gt-Je+1,He),v(y),c.value=g,C();return}if(S&&T&&$===O){const se=`g-${Math.random().toString(36).slice(2,10)}`,ne=Math.min(m.index,E.index),$e=Math.max(m.index,E.index),He=m.container[m.index],Je=E.container[E.index];if((He==null?void 0:He.kind)!=="task"||(Je==null?void 0:Je.kind)!=="task")return;const gt={kind:"group",groupId:se,groupName:null,collapsed:!1,items:[{kind:"task",task:{...He.task,parent:{type:"group",id:se}}},{kind:"task",task:{...Je.task,parent:{type:"group",id:se}}}]};m.container.splice(ne,$e-ne+1,gt),v(y),c.value=g,C();return}const U=j(g,f);if(!U)return;const W=N(g,p);if(!W){g.push({kind:"task",task:U}),v(y),c.value=g,C();return}const ie=W.container[W.index];if((ie==null?void 0:ie.kind)!=="task"){g.push({kind:"task",task:U}),v(y),c.value=g,C();return}if(W.parentGroup)W.parentGroup.items.push({kind:"task",task:{...U,parent:{type:"group",id:W.parentGroup.groupId}}});else{const se=`g-${Math.random().toString(36).slice(2,10)}`;W.container.splice(W.index,1,{kind:"group",groupId:se,groupName:null,collapsed:!1,items:[{kind:"task",task:{...ie.task,parent:{type:"group",id:se}}},{kind:"task",task:{...U,parent:{type:"group",id:se}}}]})}v(y),c.value=g,C()}function gn(f,p){const y=X(c.value,p);if(!y||y.items.some(S=>S.kind==="task"&&S.task.id===f))return;const g=Ce(c.value),m=Ce(c.value),E=j(m,f);if(!E)return;const A=X(m,p);A?A.items.push({kind:"task",task:{...E,parent:{type:"group",id:A.groupId}}}):m.push({kind:"task",task:E}),v(g),c.value=m,C()}function wt(f,p){if(!X(c.value,f)||f===p)return;const y=Ce(c.value),g=Ce(c.value),m=J(g,f);if(!m)return;const E=m.findIndex(T=>T.kind==="group"&&T.groupId===f);if(E===-1)return;const[A]=m.splice(E,1);if(!A)return;const S=Y(g,p);S?S.container.splice(S.index,0,A):m.push(A),v(y),c.value=g,C()}function pt(f,p){if(!X(c.value,f)||f===p)return;const y=Ce(c.value),g=Ce(c.value),m=J(g,f);if(!m)return;const E=m.findIndex(T=>T.kind==="group"&&T.groupId===f);if(E===-1)return;const[A]=m.splice(E,1);if(!A)return;const S=Y(g,p);S?S.container.splice(S.index+1,0,A):m.push(A),v(y),c.value=g,C()}function ys(f,p){if(f===p)return;const y=X(c.value,f),g=X(c.value,p);if(!y||!g)return;const m=Ce(c.value),E=Ce(c.value),A=J(E,p);if(!A)return;const S=A.findIndex(ne=>ne.kind==="group"&&ne.groupId===f),T=A.findIndex(ne=>ne.kind==="group"&&ne.groupId===p);if(S===-1||T===-1)return;const $=`g-${Math.random().toString(36).slice(2,10)}`,O=A[S],U=A[T];if(!O||!U)return;const W={kind:"group",groupId:$,groupName:null,collapsed:!1,items:[{...O},{...U}]},ie=Math.min(S,T),se=Math.max(S,T);A.splice(se,1),A.splice(ie,1,W),v(m),c.value=E,C()}function ir(f){const p=Y(c.value,f);if(!p||p.index===0)return;const y=Ce(c.value),g=Ce(c.value),m=Y(g,f);if(!m||m.index===0)return;const E=m.container[m.index-1],A=m.container[m.index];!E||!A||(m.container[m.index-1]=A,m.container[m.index]=E,v(y),c.value=g,C())}function _s(f){const p=Y(c.value,f);if(!p||p.index>=p.container.length-1)return;const y=Ce(c.value),g=Ce(c.value),m=Y(g,f);if(!m||m.index>=m.container.length-1)return;const E=m.container[m.index+1],A=m.container[m.index];!E||!A||(m.container[m.index+1]=A,m.container[m.index]=E,v(y),c.value=g,C())}function mn(f){var p;if(!X(c.value,f))return;const y=Ce(c.value),g=Ce(c.value),m=J(g,f);if(!m)return;const E=m.findIndex(S=>S.kind==="group"&&S.groupId===f);if(((p=m[E])==null?void 0:p.kind)!=="group")return;const A=m[E];m.splice(E,1,...A.items),v(y),c.value=g,C()}function Nn(f,p){const y=X(c.value,f);y&&(v(Ce(c.value)),y.groupName=p,C())}function Un(){return JSON.stringify(zo(c.value),null,2)}function fe(){return JSON.stringify(c.value,null,2)}function oe(f){const p=N(c.value,f);if(!p)return"";const y=p.container[p.index];if((y==null?void 0:y.kind)!=="task")return"";const g=y.task;return`[${g.id}] (${g.type??"-"}) ${g.title} — dif: ${g.difficulty??"-"}`}function zt(f){const p=X(c.value,f);if(!p)return"";const y=`${p.groupName??"Grupo"} (${p.items.length} items)`,g=[];function m(E,A){for(const S of E)S.kind==="task"?g.push(`${" ".repeat(A)}[${S.task.id}] (${S.task.type??"-"}) ${S.task.title} — dif: ${S.task.difficulty??"-"}`):(g.push(`${" ".repeat(A)}▼ ${S.groupName??"Grupo"} (${S.items.length} items)`),m(S.items,A+1))}return m(p.items,1),[y,...g].join(`
|
|
36
|
+
`)}const d=ae(()=>o.value==="manual");return{tree:ae(()=>{let f=c.value;if(o.value!=="manual"){let m=function(S){return S.kind==="task"?S.task.difficulty??0:Math.max(0,...S.items.map(m))},E=function(S){return S.map(T=>T.kind==="group"?{...T,items:E([...T.items]).sort(($,O)=>(m($)-m(O))*A)}:T)};const A=o.value==="diff-asc"?1:-1;f=E(f),f=[...f].sort((S,T)=>(m(S)-m(T))*A)}const p=l.value.trim().toLowerCase();if(!p)return f;const y=m=>`${m.id} ${m.type??""} ${m.title}`.toLowerCase().includes(p);function g(m){return m.map(E=>{if(E.kind==="group"){const A=g(E.items);return A.length>0?{...E,items:A}:null}return y(E.task)?E:null}).filter(E=>E!==null)}return g(f)}),filter:l,viewMode:i,sortMode:o,dragEnabled:d,changedTasks:M,canUndo:w,canRedo:F,setFilter:Pe,setViewMode:et,setSortMode:ht,toggleGroupCollapsed:ot,setDifficulty:Fn,moveBefore:be,moveAfter:te,groupWith:kt,joinGroup:gn,renameGroup:Nn,moveGroupBefore:wt,moveGroupAfter:pt,groupWithGroup:ys,moveUp:ir,moveDown:_s,ungroup:mn,exportJson:Un,exportTreeJson:fe,copyCardText:oe,copyGroupText:zt,acknowledgeChanges:b,undo:L,redo:Z}}const n4={class:"day-bar__header"},s4={class:"day-bar__date"},r4={class:"day-bar__hours"},i4={class:"day-bar__progress"},o4={key:0,class:"day-bar__description"},a4=Ge({__name:"DayBar",props:{day:{},maxHours:{default:8},variant:{default:"default"}},setup(e){const t=e,n=i=>{const o=new Date,a=new Date(o);a.setDate(a.getDate()-1);const l=new Date(i);return l.toDateString()===o.toDateString()?"Hoje":l.toDateString()===a.toDateString()?"Ontem":l.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:void 0})},s=ae(()=>Math.min(t.day.hours/t.maxHours*100,100)),r=ae(()=>{const i=t.day.hours/t.maxHours;return i>=1?"success":i>=.75?"primary":i>=.5?"warning":"danger"});return(i,o)=>(x(),P("div",{class:_e(["day-bar",`day-bar--${e.variant}`])},[_("div",n4,[_("span",s4,K(n(e.day.date)),1),_("span",r4,K(e.day.hours)+"h",1)]),_("div",i4,[_("div",{class:_e(["day-bar__fill",`day-bar__fill--${r.value}`]),style:un({width:`${s.value}%`})},null,6)]),e.variant==="default"&&e.day.description?(x(),P("p",o4,K(e.day.description),1)):re("",!0)],2))}}),l4=Ht(a4,[["__scopeId","data-v-8cc39d72"]]),c4={class:"project-breadcrumb"},u4={key:0,class:"project-breadcrumb__separator"},f4=Ge({__name:"ProjectBreadcrumb",props:{project:{},maxSegments:{default:3},separator:{default:"/"}},setup(e){const t=e,n=ae(()=>t.project.segments.length<=t.maxSegments?t.project.segments:[t.project.segments[0],"...",...t.project.segments.slice(-t.maxSegments+1)]);return(s,r)=>(x(),P("div",c4,[(x(!0),P(Ae,null,Kt(n.value,(i,o)=>(x(),P("span",{class:"project-breadcrumb__item",key:`segment-${o}`},[_("span",{class:_e(["project-breadcrumb__segment",{"project-breadcrumb__segment--ellipsis":i==="..."}])},K(i),3),o<n.value.length-1?(x(),P("span",u4,K(e.separator),1)):re("",!0)]))),128))]))}}),d4=Ht(f4,[["__scopeId","data-v-2f90185d"]]),h4={class:"task-header__info"},p4={class:"task-header__name"},g4={key:0,class:"task-header__email"},m4=Ge({__name:"TaskHeader",props:{assignee:{},size:{default:"md"}},setup(e){return(t,n)=>(x(),P("div",{class:_e(["task-header",`task-header--${e.size}`])},[Ue(D(j0),{name:e.assignee.name,src:e.assignee.avatar,size:e.size},null,8,["name","src","size"]),_("div",h4,[_("span",p4,K(e.assignee.name),1),e.assignee.email?(x(),P("span",g4,K(e.assignee.email),1)):re("",!0)])],2))}}),v4=Ht(m4,[["__scopeId","data-v-743d664f"]]),y4={class:"time-estimate__item"},_4={class:"time-estimate__value"},b4={key:0,class:"time-estimate__separator"},k4={key:1,class:"time-estimate__separator"},w4={class:"time-estimate__item"},E4={class:"time-estimate__value time-estimate__value--spent"},A4={key:2,class:"time-estimate__separator"},S4={key:3,class:"time-estimate__separator"},T4={class:"time-estimate__item"},x4={class:"time-estimate__value time-estimate__value--remaining"},I4=Ge({__name:"TimeEstimate",props:{estimate:{},variant:{default:"default"}},setup(e){const t=r=>`${r}h`,n=r=>r.estimated===0?0:Math.round(r.spent/r.estimated*100),s=r=>{const i=n(r);return i>=100?"danger":i>=80?"warning":"ok"};return(r,i)=>(x(),P("div",{class:_e(["time-estimate",[`time-estimate--${e.variant}`,`time-estimate--${s(e.estimate)}`]])},[_("div",y4,[i[0]||(i[0]=_("span",{class:"time-estimate__label"},"Estimado",-1)),_("span",_4,K(t(e.estimate.estimated)),1)]),e.variant==="default"?(x(),P("div",b4," → ")):(x(),P("div",k4," / ")),_("div",w4,[i[1]||(i[1]=_("span",{class:"time-estimate__label"},"Gasto",-1)),_("span",E4,K(t(e.estimate.spent)),1)]),e.variant==="default"?(x(),P("div",A4," → ")):(x(),P("div",S4," / ")),_("div",T4,[i[2]||(i[2]=_("span",{class:"time-estimate__label"},"Restante",-1)),_("span",x4,K(t(e.estimate.remaining)),1)])],2))}}),C4=Ht(I4,[["__scopeId","data-v-b4c7bd5e"]]),M4={class:"dashboard-header"},D4={class:"header-content"},P4={class:"header-title"},O4={class:"connection-status"},L4={class:"status-text"},R4=["disabled"],F4={key:0,class:"error-banner"},N4={class:"error-message"},U4=Ge({__name:"DashboardHeader",props:{title:{default:"Dashboard"},status:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1},retryText:{default:"Tentar novamente"},retryingText:{default:"Reconectando..."}},emits:["retry"],setup(e){return(t,n)=>(x(),P("header",M4,[_("div",D4,[_("h1",P4,K(e.title),1),_("div",O4,[_("span",{class:_e(["status-indicator",`status-indicator--${e.status}`])},null,2),_("span",L4,K(e.statusText),1),e.showRetry?(x(),P("button",{key:0,class:"retry-button",disabled:e.isRetrying,onClick:n[0]||(n[0]=s=>t.$emit("retry"))},K(e.isRetrying?e.retryingText:e.retryText),9,R4)):re("",!0)])]),e.errorMessage?(x(),P("div",F4,[n[1]||(n[1]=_("span",{class:"error-icon"},"⚠️",-1)),_("span",N4,K(e.errorMessage),1)])):re("",!0)]))}}),B4=Ht(U4,[["__scopeId","data-v-c7d8a980"]]),cf=e=>e,G4=e=>e,j4={class:"task-card__header"},V4={class:"task-card__header-left"},$4={class:"task-card__title"},H4={key:1,class:"task-card__progress"},z4={key:3,class:"task-card__days"},W4={class:"task-card__days-list"},K4={key:4,class:"task-card__dates"},q4={key:0,class:"task-card__date"},Y4={class:"task-card__date-value"},X4={key:1,class:"task-card__date"},J4={class:"task-card__date-value"},Q4={key:5,class:"task-card__tags"},Z4={key:6,class:"task-card__warnings"},em=Ge({__name:"TaskCard",props:{task:{},id:{},number:{},title:{},status:{},assignee:{},project:{},estimates:{},progress:{},tags:{},warnings:{},dueDate:{},startDate:{},variant:{default:"default"}},setup(e){const t=e,n=ae(()=>t.task?{...t.task,...t.id&&{id:cf(t.id)},...t.number!==void 0&&{number:t.number},...t.title&&{title:t.title},...t.status&&{status:t.status},...t.assignee&&{assignee:t.assignee},...t.project&&{project:t.project},...t.estimates&&{estimates:t.estimates},...t.progress&&{progress:t.progress},...t.tags&&{tags:t.tags},...t.warnings&&{warnings:t.warnings}}:{id:cf(t.id||""),number:t.number||0,title:t.title||"",status:t.status||"pending",assignee:t.assignee,project:t.project||{segments:[]},estimates:t.estimates,progress:t.progress,tags:t.tags||[],warnings:t.warnings||[],dates:{created:new Date,...t.dueDate&&{dueDate:typeof t.dueDate=="string"?new Date(t.dueDate):t.dueDate},...t.startDate&&{started:typeof t.startDate=="string"?new Date(t.startDate):t.startDate}}}),s={pending:"default","in-progress":"primary",paused:"warning","in-review":"info",done:"success",blocked:"danger",canceled:"default"},r=ae(()=>{var l;const c=((l=n.value.progress)==null?void 0:l.percentage)||0;return n.value.status==="blocked"?"danger":n.value.status==="done"||c>=75?"success":c>=50?"primary":c>=25?"warning":"danger"}),i=ae(()=>({pending:"Pendente","in-progress":"Em Progresso",paused:"Pausada","in-review":"Em Revisão",done:"Concluída",blocked:"Bloqueada",canceled:"Cancelada"})[n.value.status]),o=ae(()=>n.value.warnings&&n.value.warnings.length>0),a=l=>(typeof l=="string"?new Date(l):l).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"});return(l,c)=>{var u;return x(),P("div",{class:_e(["task-card",[`task-card--${e.variant}`,`task-card--${n.value.status}`,{"task-card--has-warnings":o.value}]])},[_("div",j4,[_("div",V4,[Ue(D(Ho),{variant:s[n.value.status],size:"md"},{default:_r(()=>[Nt(" #"+K(n.value.number),1)]),_:1},8,["variant"]),Ue(D(Ho),{variant:"info",size:"sm"},{default:_r(()=>[Nt(K(i.value),1)]),_:1})]),n.value.assignee?(x(),Qe(D(v4),{key:0,assignee:n.value.assignee,size:"sm"},null,8,["assignee"])):re("",!0)]),_("h3",$4,K(n.value.title),1),n.value.project?(x(),Qe(D(d4),{key:0,class:"task-card__project",project:n.value.project,"max-segments":3},null,8,["project"])):re("",!0),n.value.progress?(x(),P("div",H4,[Ue(D(q0),{percentage:n.value.progress.percentage,variant:r.value,"show-label":""},null,8,["percentage","variant"])])):re("",!0),n.value.estimates?(x(),Qe(D(C4),{key:2,class:"task-card__estimates",estimate:n.value.estimates,variant:"compact"},null,8,["estimate"])):re("",!0),(u=n.value.progress)!=null&&u.dayLogs&&n.value.progress.dayLogs.length>0?(x(),P("div",z4,[c[0]||(c[0]=_("h4",{class:"task-card__days-title"}," Progresso Diário ",-1)),_("div",W4,[(x(!0),P(Ae,null,Kt(n.value.progress.dayLogs.slice(-3),(h,k)=>(x(),Qe(D(l4),{key:k,day:h,"max-hours":8,variant:"compact"},null,8,["day"]))),128))])])):re("",!0),n.value.dates?(x(),P("div",K4,[n.value.dates.dueDate?(x(),P("div",q4,[c[1]||(c[1]=_("span",{class:"task-card__date-label"},"Prazo:",-1)),_("span",Y4,K(a(n.value.dates.dueDate)),1)])):re("",!0),n.value.dates.started?(x(),P("div",X4,[c[2]||(c[2]=_("span",{class:"task-card__date-label"},"Início:",-1)),_("span",J4,K(a(n.value.dates.started)),1)])):re("",!0)])):re("",!0),n.value.tags&&n.value.tags.length>0?(x(),P("div",Q4,[(x(!0),P(Ae,null,Kt(n.value.tags,h=>(x(),Qe(D(Ho),{key:h,variant:"default",size:"sm"},{default:_r(()=>[Nt(K(h),1)]),_:2},1024))),128))])):re("",!0),o.value?(x(),P("div",Z4,[(x(!0),P(Ae,null,Kt(n.value.warnings,(h,k)=>(x(),P("div",{class:"task-card__warning",key:k}," ⚠️ "+K(h),1))),128))])):re("",!0)],2)}}}),tm=Ht(em,[["__scopeId","data-v-809f1de3"]]),nm=["data-testid","onDragover","onClick"],sm=["draggable","onDragstart"],rm=["onClick"],im=["onClick"],om={class:"group-count"},am=["onClick"],lm=["onClick"],cm=["onClick"],um=["onClick"],fm={key:0,class:"group-items"},dm=["data-testid","draggable","onDragstart","onDragover","onClick"],hm={key:0,class:"move-col"},pm=["onClick"],gm=["onClick"],mm={class:"tico"},vm={class:"body"},ym={class:"id"},_m={class:"title"},bm={class:"diff"},km=["onClick"],wm=["onClick"],Em=Ge({__name:"PriorityGroupRenderer",props:{nodes:{},depth:{}},setup(e){const t=Cs("dragContext"),n={feat:"✨",feature:"✨",fix:"🔧",bug:"🐞",refactor:"♻️",refactoring:"♻️",perf:"⚡",docs:"📄",test:"🧪",chore:"🧹",infra:"🏗️",security:"🔒",research:"🔬"};function s(o){return n[(o??"").toLowerCase()]??"📌"}function r(o){return o.groupName??"Grupo"}function i(o){const a=window.prompt("Nome do grupo:",o.groupName??"");a!==null&&t.onRenameGroup(o.groupId,a.trim()||null)}return(o,a)=>{const l=Op("PriorityGroupRenderer",!0);return x(!0),P(Ae,null,Kt(e.nodes,c=>(x(),P(Ae,{key:c.kind==="group"?c.groupId:c.task.id},[c.kind==="group"?(x(),P("div",{key:0,class:_e(["priority-group",[{collapsed:c.collapsed},D(t).groupClass(c.groupId)]]),"data-testid":`priority-group-${c.groupId}`,onDragover:u=>D(t).onGroupDragOver(c.groupId,u),onClick:u=>D(t).onFocusNode(c.groupId)},[_("div",{class:_e(["group-head",{focused:D(t).focusedId.value===c.groupId}]),draggable:D(t).dragEnabled,onDragstart:u=>D(t).onGroupDragStart(c.groupId,u),onDragend:a[0]||(a[0]=(...u)=>D(t).onDragEnd&&D(t).onDragEnd(...u))},[_("button",{class:"caret",type:"button",onClick:u=>D(t).onToggleCollapse(c.groupId)},K(c.collapsed?"▸":"▾"),9,rm),_("span",{class:"group-name",onClick:u=>i(c)},K(r(c)),9,im),_("span",om,"· "+K(c.items.length)+" items",1),a[2]||(a[2]=_("span",{class:"spacer"},null,-1)),D(t).dragEnabled?(x(),P("button",{key:0,class:"move-btn",type:"button",title:"Mover para cima",onClick:u=>D(t).onMoveUp(c.groupId)}," ▲ ",8,am)):re("",!0),D(t).dragEnabled?(x(),P("button",{key:1,class:"move-btn",type:"button",title:"Mover para baixo",onClick:u=>D(t).onMoveDown(c.groupId)}," ▼ ",8,lm)):re("",!0),D(t).dragEnabled?(x(),P("button",{key:2,class:"move-btn",type:"button",title:"Desagrupar",onClick:u=>D(t).onUngroup(c.groupId)}," ✕ ",8,cm)):re("",!0),_("button",{class:"cp",type:"button",title:"Copiar grupo",onClick:u=>D(t).onCopyGroup(c.groupId)}," ⧉ ",8,um)],42,sm),c.collapsed?re("",!0):(x(),P("div",fm,[Ue(l,{nodes:c.items,depth:(e.depth??0)+1},null,8,["nodes","depth"])]))],42,nm)):(x(),P("div",{key:1,class:_e(["priority-card",[D(t).cardClass(c.task.id),{focused:D(t).focusedId.value===c.task.id}]]),"data-testid":`priority-card-${c.task.id}`,draggable:D(t).dragEnabled,onDragstart:u=>D(t).onDragStart(c.task.id,u),onDragend:a[1]||(a[1]=(...u)=>D(t).onDragEnd&&D(t).onDragEnd(...u)),onDragover:u=>D(t).onCardDragOver(c.task.id,u),onClick:u=>D(t).onFocusNode(c.task.id)},[D(t).dragEnabled?(x(),P("div",hm,[_("button",{class:"move-btn",type:"button",title:"Mover para cima",onClick:u=>D(t).onMoveUp(c.task.id)}," ▲ ",8,pm),_("button",{class:"move-btn",type:"button",title:"Mover para baixo",onClick:u=>D(t).onMoveDown(c.task.id)}," ▼ ",8,gm)])):re("",!0),_("div",mm,K(s(c.task.type)),1),_("div",vm,[_("div",ym,K(c.task.id),1),_("div",_m,K(c.task.title),1)]),_("div",bm,[(x(),P(Ae,null,Kt([1,2,3,4,5],u=>_("span",{key:u,class:_e({[`on${u}`]:c.task.difficulty===u}),onClick:h=>D(t).onSetDifficulty(c.task.id,u)},K(u),11,km)),64))]),_("button",{class:"cp",type:"button",title:"Copiar card",onClick:u=>D(t).onCopyCard(c.task.id)}," ⧉ ",8,wm)],42,dm))],64))),128)}}}),Am={class:"prioritization-screen"},Sm={class:"toolbar"},Tm=["value"],xm={class:"segmented",role:"group","aria-label":"Modo de visualização"},Im=["data-testid","onClick"],Cm=["value"],Mm=["disabled"],Dm=["disabled"],Pm={key:0,class:"drag-warning"},Om={key:0,class:"empty-state"},Lm={key:0,class:"prioritization-screen__fixed"},Rm={key:0,class:"prioritization-screen__camera-status"},Fm=Ge({__name:"PrioritizationScreen",props:{tree:{},filter:{default:""},viewMode:{default:"cards"},sortMode:{default:"manual"},dragEnabled:{type:Boolean,default:!0},canUndo:{type:Boolean,default:!1},canRedo:{type:Boolean,default:!1},focusedId:{default:null},detecting:{type:Boolean},showWebcam:{type:Boolean},trackedError:{},gestureFunctions:{},gestureUserId:{},cameraActive:{type:Boolean}},emits:["update:filter","update:viewMode","update:sortMode","toggle-collapse","set-all-collapsed","set-difficulty","rename-group","move-before","move-after","group-with","join-group","move-group-before","move-group-after","group-with-group","move-up","move-down","ungroup","export-json","copy-card","copy-group","update:focusedId","undo","redo","toggle-tracking","update:showWebcam","gestureAction","update:cameraActive"],setup(e,{emit:t}){const n=e,s=t,r=ve(null),i=ve(null),o=ve(!1),a=ve(null);function l(b,v){var w;if(!n.dragEnabled){v.preventDefault();return}o.value=!1,i.value=b,(w=v.dataTransfer)==null||w.setData("text/plain",b)}function c(b,v){var w;if(!n.dragEnabled){v.preventDefault();return}o.value=!0,i.value=b,(w=v.dataTransfer)==null||w.setData("text/plain",b)}function u(){i.value=null,o.value=!1,a.value=null}function h(b,v){if(!n.dragEnabled||i.value===null||i.value===b)return;v.preventDefault();const w=v.currentTarget.getBoundingClientRect(),F=(v.clientY-w.top)/w.height;F<.3?a.value={type:"before",taskId:b}:F>.7?a.value={type:"after",taskId:b}:a.value={type:"group",taskId:b}}function k(b,v){var w;if(!(!n.dragEnabled||i.value===null)&&!((w=v.target)!=null&&w.closest(".priority-card")))if(v.preventDefault(),o.value){const F=v.currentTarget.getBoundingClientRect(),L=(v.clientY-F.top)/F.height;L<.3?a.value={type:"group-before",targetGroupId:b}:L>.7?a.value={type:"group-after",targetGroupId:b}:a.value={type:"group-merge",targetGroupId:b}}else a.value={type:"ingroup",groupId:b}}function I(){if(!n.dragEnabled||i.value===null||!a.value){i.value=null,o.value=!1,a.value=null;return}const b=i.value,v=a.value;o.value?v.type==="before"?s("move-group-before",b,v.taskId):v.type==="after"?s("move-group-after",b,v.taskId):v.type==="group"?s("group-with-group",b,v.taskId):v.type==="group-before"?s("move-group-before",b,v.targetGroupId):v.type==="group-after"?s("move-group-after",b,v.targetGroupId):v.type==="group-merge"&&s("group-with-group",b,v.targetGroupId):v.type==="before"?s("move-before",b,v.taskId):v.type==="after"?s("move-after",b,v.taskId):v.type==="group"?s("group-with",b,v.taskId):v.type==="ingroup"&&s("join-group",b,v.groupId),i.value=null,o.value=!1,a.value=null}function C(b){var v,w,F;return{"priority-card--dragging":i.value===b,"priority-card--drop-before":((v=a.value)==null?void 0:v.type)==="before"&&a.value.taskId===b,"priority-card--drop-after":((w=a.value)==null?void 0:w.type)==="after"&&a.value.taskId===b,"priority-card--drop-group":((F=a.value)==null?void 0:F.type)==="group"&&a.value.taskId===b}}function M(b){var v,w,F;return{"priority-group--dragging":o.value&&i.value===b,"priority-group--drop-before":((v=a.value)==null?void 0:v.type)==="group-before"&&a.value.targetGroupId===b,"priority-group--drop-after":((w=a.value)==null?void 0:w.type)==="group-after"&&a.value.targetGroupId===b,"priority-group--drop-merge":((F=a.value)==null?void 0:F.type)==="group-merge"&&a.value.targetGroupId===b}}return qf("dragContext",{dragEnabled:n.dragEnabled,draggedId:i,dropIntent:a,onDragStart:l,onGroupDragStart:c,onDragEnd:u,onCardDragOver:h,onGroupDragOver:k,cardClass:C,groupClass:M,onToggleCollapse:b=>s("toggle-collapse",b),onSetDifficulty:(b,v)=>s("set-difficulty",b,v),onRenameGroup:(b,v)=>s("rename-group",b,v),onCopyCard:b=>s("copy-card",b),onCopyGroup:b=>s("copy-group",b),onMoveUp:b=>s("move-up",b),onMoveDown:b=>s("move-down",b),onUngroup:b=>s("ungroup",b),focusedId:Gf(n,"focusedId"),onFocusNode:b=>s("update:focusedId",b)}),(b,v)=>(x(),P("div",Am,[_("div",Sm,[_("input",{class:"filter-input",type:"text",placeholder:"🔎 filtrar…",value:e.filter,onInput:v[0]||(v[0]=w=>s("update:filter",w.target.value))},null,40,Tm),_("div",xm,[(x(),P(Ae,null,Kt(["cards","icons","grid"],w=>_("button",{key:w,type:"button",class:_e({active:e.viewMode===w}),"data-testid":`view-mode-${w}`,onClick:F=>s("update:viewMode",w)},K(w==="cards"?"▤ Cards":w==="icons"?"◫ Ícones":"▦ Grid"),11,Im)),64))]),_("select",{class:"sort-select","data-testid":"sort-select",value:e.sortMode,onChange:v[1]||(v[1]=w=>s("update:sortMode",w.target.value))},[...v[12]||(v[12]=[_("option",{value:"manual"},"Manual (prioridade)",-1),_("option",{value:"diff-desc"},"Dificuldade ↓ (maior→menor)",-1),_("option",{value:"diff-asc"},"Dificuldade ↑ (menor→maior)",-1)])],40,Cm),_("button",{class:"ghost",type:"button",onClick:v[2]||(v[2]=w=>s("set-all-collapsed",!0))}," ⊟ Colapsar todos "),_("button",{class:"ghost",type:"button",onClick:v[3]||(v[3]=w=>s("set-all-collapsed",!1))}," ⊞ Expandir todos "),_("button",{class:"ghost",type:"button",title:"Desfazer (Ctrl/Cmd+Z)","data-testid":"undo-button",disabled:!e.canUndo,onClick:v[4]||(v[4]=w=>s("undo"))}," ↶ Desfazer ",8,Mm),_("button",{class:"ghost",type:"button",title:"Refazer (Ctrl/Cmd+Shift+Z)","data-testid":"redo-button",disabled:!e.canRedo,onClick:v[5]||(v[5]=w=>s("redo"))}," ↷ Refazer ",8,Dm),v[13]||(v[13]=_("span",{class:"spacer"},null,-1)),_("button",{class:"ghost",type:"button",onClick:v[6]||(v[6]=w=>s("export-json"))}," ⬇ JSON "),e.dragEnabled?re("",!0):(x(),P("span",Pm," ⚠ arrastar desabilitado (ordenado por dificuldade) "))]),_("div",{class:_e(["node-list",`view-${e.viewMode}`]),onDragover:v[7]||(v[7]=$2(()=>{},["prevent"])),onDrop:I},[Ue(Em,{nodes:e.tree},null,8,["nodes"]),e.tree.length===0?(x(),P("div",Om,[...v[14]||(v[14]=[_("p",null,"Nenhuma tarefa encontrada.",-1)])])):re("",!0)],34),e.gestureFunctions&&e.gestureUserId?(x(),P("div",Lm,[_("video",{ref_key:"videoRef",ref:r,style:{display:"none"},width:"320",height:"240",muted:"",playsinline:""},null,512),Ue(D(cg),{"is-detecting":e.cameraActive,error:e.trackedError??null,"show-webcam":e.showWebcam,onToggleTracking:v[8]||(v[8]=w=>s("toggle-tracking")),"onUpdate:showWebcam":v[9]||(v[9]=w=>s("update:showWebcam",w))},null,8,["is-detecting","error","show-webcam"]),Ue(D(F0),{functions:e.gestureFunctions,"user-id":e.gestureUserId,detecting:e.detecting??!1,"video-element":r.value,onGestureAction:v[10]||(v[10]=w=>s("gestureAction",w)),onCameraActive:v[11]||(v[11]=w=>s("update:cameraActive",w))},null,8,["functions","user-id","detecting","video-element"]),e.detecting&&!e.cameraActive?(x(),P("div",Rm," ⏳ Ativando câmera... ")):re("",!0)])):re("",!0)]))}}),Nm=Ge({__name:"PrioritizationPage",props:{tasks:{},gestureUserId:{}},emits:["update-task","update-tasks"],setup(e,{emit:t}){const n=e,s=t,{tree:r,filter:i,viewMode:o,sortMode:a,dragEnabled:l,changedTasks:c,canUndo:u,canRedo:h,setFilter:k,setViewMode:I,setSortMode:C,toggleGroupCollapsed:M,setDifficulty:b,moveBefore:v,moveAfter:w,groupWith:F,joinGroup:L,renameGroup:Z,moveGroupBefore:N,moveGroupAfter:Y,groupWithGroup:B,moveUp:j,moveDown:X,ungroup:Pe,exportJson:et,copyCardText:ht,copyGroupText:ot,acknowledgeChanges:Fn,undo:be,redo:te}=t4(Gf(n,"tasks")),J=ve(null),kt=ve(!1),gn=ve(!1),wt=!!n.gestureUserId;function pt(fe){if(fe!=="none"&&J.value)switch(fe){case"moveUp":j(J.value);break;case"moveDown":X(J.value);break;case"groupWith":F(J.value,"");break;case"ungroup":Pe(J.value);break;case"undo":be();break;case"copyCard":_s(J.value);break;case"setDifficulty1":b(J.value,1);break;case"setDifficulty2":b(J.value,2);break;case"setDifficulty3":b(J.value,3);break;case"setDifficulty4":b(J.value,4);break;case"setDifficulty5":b(J.value,5);break}}Kn(c,fe=>{if(fe.length!==0){for(const oe of fe)s("update-task",oe);s("update-tasks",fe),Fn()}});function ys(fe){for(const oe of r.value)oe.kind==="group"&&oe.collapsed!==fe&&M(oe.groupId)}function ir(){const fe=new Blob([et()],{type:"application/json"}),oe=URL.createObjectURL(fe),zt=document.createElement("a");zt.href=oe,zt.download="priorizacao-tasks.json",zt.click(),URL.revokeObjectURL(oe)}async function _s(fe){const oe=ht(fe);oe&&await navigator.clipboard.writeText(oe)}async function mn(fe){const oe=ot(fe);oe&&await navigator.clipboard.writeText(oe)}function Nn(fe){const oe=fe==null?void 0:fe.tagName;return oe==="INPUT"||oe==="TEXTAREA"||oe==="SELECT"}function Un(fe){if(Nn(fe.target)||!(fe.ctrlKey||fe.metaKey))return;const oe=fe.key.toLowerCase();oe==="z"&&fe.shiftKey?(fe.preventDefault(),te()):oe==="z"?(fe.preventDefault(),be()):oe==="y"&&(fe.preventDefault(),te())}return Ka(()=>window.addEventListener("keydown",Un)),qs(()=>window.removeEventListener("keydown",Un)),(fe,oe)=>(x(),Qe(Fm,{tree:D(r),filter:D(i),"view-mode":D(o),"sort-mode":D(a),"drag-enabled":D(l),"can-undo":D(u),"can-redo":D(h),"focused-id":J.value,detecting:wt?kt.value:void 0,"camera-active":gn.value,"gesture-functions":wt?D(n3):void 0,"gesture-user-id":wt?n.gestureUserId:void 0,onToggleTracking:oe[0]||(oe[0]=zt=>kt.value=!kt.value),onGestureAction:pt,"onUpdate:cameraActive":oe[1]||(oe[1]=zt=>gn.value=zt),"onUpdate:filter":D(k),"onUpdate:viewMode":D(I),"onUpdate:sortMode":D(C),onToggleCollapse:D(M),onSetAllCollapsed:ys,onSetDifficulty:D(b),onRenameGroup:D(Z),onMoveBefore:D(v),onMoveAfter:D(w),onGroupWith:D(F),onJoinGroup:D(L),onMoveGroupBefore:D(N),onMoveGroupAfter:D(Y),onGroupWithGroup:D(B),onMoveUp:D(j),onMoveDown:D(X),onUngroup:D(Pe),onExportJson:ir,onCopyCard:_s,onCopyGroup:mn,"onUpdate:focusedId":oe[2]||(oe[2]=zt=>J.value=zt),onUndo:D(be),onRedo:D(te)},null,8,["tree","filter","view-mode","sort-mode","drag-enabled","can-undo","can-redo","focused-id","detecting","camera-active","gesture-functions","gesture-user-id","onUpdate:filter","onUpdate:viewMode","onUpdate:sortMode","onToggleCollapse","onSetDifficulty","onRenameGroup","onMoveBefore","onMoveAfter","onGroupWith","onJoinGroup","onMoveGroupBefore","onMoveGroupAfter","onGroupWithGroup","onMoveUp","onMoveDown","onUngroup","onUndo","onRedo"]))}}),Um={class:"dashboard-layout"},Bm={class:"dashboard-main"},Gm=Ge({__name:"DashboardLayout",props:{title:{default:"Dashboard"},connectionStatus:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1}},emits:["retry"],setup(e){return(t,n)=>(x(),P("div",Um,[Ue(B4,{title:e.title,status:e.connectionStatus,"status-text":e.statusText,"error-message":e.errorMessage,"show-retry":e.showRetry,"is-retrying":e.isRetrying,onRetry:n[0]||(n[0]=s=>t.$emit("retry"))},null,8,["title","status","status-text","error-message","show-retry","is-retrying"]),_("main",Bm,[Ds(t.$slots,"default",{},void 0)])]))}}),jm=Ht(Gm,[["__scopeId","data-v-78602c1a"]]),Vm={class:"task-grid-container"},$m={class:"task-grid-header"},Hm={class:"task-grid-title"},zm={class:"task-grid-stats"},Wm={class:"stat stat--total"},Km={class:"stat__value"},qm={key:0,class:"stat stat--in-progress"},Ym={class:"stat__value"},Xm={key:1,class:"stat stat--blocked"},Jm={class:"stat__value"},Qm={key:2,class:"stat stat--paused"},Zm={class:"stat__value"},ev={key:3,class:"stat stat--in-review"},tv={class:"stat__value"},nv={key:0,class:"task-grid-loading"},sv={key:1,class:"task-grid-empty"},rv={class:"empty-message"},iv={key:3,class:"task-grid-footer"},ov=Ge({__name:"TaskGrid",props:{tasks:{},columns:{default:3},gap:{default:"md"},loading:{type:Boolean,default:!1},emptyMessage:{default:"Nenhuma tarefa encontrada"},variant:{default:"default"}},setup(e){const t=e,n=ae(()=>["task-grid",{1:"task-grid--cols-1",2:"task-grid--cols-2",3:"task-grid--cols-3",4:"task-grid--cols-4"}[t.columns],`task-grid--gap-${t.gap}`]),s=ae(()=>({inProgress:t.tasks.filter(i=>i.status==="in-progress"),blocked:t.tasks.filter(i=>i.status==="blocked"),paused:t.tasks.filter(i=>i.status==="paused"),inReview:t.tasks.filter(i=>i.status==="in-review"),pending:t.tasks.filter(i=>i.status==="pending"),done:t.tasks.filter(i=>i.status==="done"),canceled:t.tasks.filter(i=>i.status==="canceled")})),r=ae(()=>({total:t.tasks.length,inProgress:s.value.inProgress.length,blocked:s.value.blocked.length,paused:s.value.paused.length,inReview:s.value.inReview.length,pending:s.value.pending.length,done:s.value.done.length,canceled:s.value.canceled.length}));return(i,o)=>(x(),P("div",Vm,[_("div",$m,[_("h2",Hm,[Ds(i.$slots,"title",{},()=>[o[0]||(o[0]=Nt(" Tarefas em Andamento ",-1))])]),_("div",zm,[_("div",Wm,[_("span",Km,K(r.value.total),1),o[1]||(o[1]=_("span",{class:"stat__label"},"Total",-1))]),r.value.inProgress>0?(x(),P("div",qm,[_("span",Ym,K(r.value.inProgress),1),o[2]||(o[2]=_("span",{class:"stat__label"},"Em Progresso",-1))])):re("",!0),r.value.blocked>0?(x(),P("div",Xm,[_("span",Jm,K(r.value.blocked),1),o[3]||(o[3]=_("span",{class:"stat__label"},"Bloqueadas",-1))])):re("",!0),r.value.paused>0?(x(),P("div",Qm,[_("span",Zm,K(r.value.paused),1),o[4]||(o[4]=_("span",{class:"stat__label"},"Pausadas",-1))])):re("",!0),r.value.inReview>0?(x(),P("div",ev,[_("span",tv,K(r.value.inReview),1),o[5]||(o[5]=_("span",{class:"stat__label"},"Em Revisão",-1))])):re("",!0)])]),e.loading?(x(),P("div",nv,[...o[6]||(o[6]=[_("div",{class:"spinner"},null,-1),_("p",null,"Carregando tarefas...",-1)])])):e.tasks.length===0?(x(),P("div",sv,[o[7]||(o[7]=_("div",{class:"empty-icon"}," 📋 ",-1)),_("p",rv,K(e.emptyMessage),1),Ds(i.$slots,"empty-action",{},void 0)])):(x(),P("div",{key:2,class:_e(n.value)},[(x(!0),P(Ae,null,Kt(e.tasks,a=>(x(),Qe(D(tm),{key:a.id,task:a,variant:e.variant},null,8,["task","variant"]))),128))],2)),i.$slots.footer?(x(),P("div",iv,[Ds(i.$slots,"footer",{},void 0)])):re("",!0)]))}}),av=Ht(ov,[["__scopeId","data-v-a032d9cb"]]),lv={key:0,class:"loading-state"},cv={key:1,class:"empty-state"},uv=Ge({__name:"Dashboard",props:{title:{default:"Dashboard"},connectionStatus:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},tasks:{}},emits:["retry"],setup(e){return(t,n)=>(x(),Qe(jm,{title:e.title,"connection-status":e.connectionStatus,"status-text":e.statusText,"error-message":e.errorMessage,"show-retry":e.showRetry,"is-retrying":e.isRetrying,onRetry:n[0]||(n[0]=s=>t.$emit("retry"))},{default:_r(()=>[e.isLoading&&(e.tasks??[]).length===0?(x(),P("div",lv,[...n[1]||(n[1]=[_("div",{class:"spinner"},null,-1),_("p",null,"Carregando tarefas...",-1)])])):!e.isLoading&&(e.tasks??[]).length===0?(x(),P("div",cv,[...n[2]||(n[2]=[_("p",{class:"empty-icon"}," 📋 ",-1),_("h2",null,"Nenhuma tarefa encontrada",-1),_("p",null,"Conecte-se ao servidor para visualizar suas tarefas.",-1)])])):(x(),Qe(av,{key:2,tasks:e.tasks??[]},null,8,["tasks"]))]),_:1},8,["title","connection-status","status-text","error-message","show-retry","is-retrying"]))}}),fv=Ht(uv,[["__scopeId","data-v-001207e0"]]),uf=5e3,dv=1e4,hv=3e4,ff=5e3,pv=100,gv=500,fr=new Map,dr=new Map,Wo=new Map,Ko=new Map,mv=t3("taskin-tasks",{state:()=>({tasks:[],loading:!1,connected:!1,error:null,reconnectAttempts:0,lastSync:null}),getters:{taskById(e){return t=>e.tasks.find(n=>n.id===t)},tasksByStatus(e){return t=>e.tasks.filter(n=>n.status===t)},connectionStatus(e){return{connected:e.connected,error:e.error,reconnectAttempts:e.reconnectAttempts}}},actions:{connect(e){const t=this.$id;fr.has(t)&&this.disconnect(),dr.set(t,{autoReconnect:!0,reconnectDelay:uf,maxReconnectAttempts:0,debug:!1,...e}),this._connect()},_connect(){const e=this.$id,t=dr.get(e);if(t){this._log("Connecting to",t.wsUrl);try{const n=new WebSocket(t.wsUrl);fr.set(e,n),n.onopen=()=>{this._log("Connected"),this.connected=!0,this.error=null,this.reconnectAttempts=0,this.send({type:"list"}),this._startHeartbeat()},n.onmessage=s=>{try{const r=JSON.parse(s.data);this.handleMessage(r)}catch(r){this._log("Error parsing message:",r)}},n.onerror=s=>{this._log("WebSocket error:",s),this.handleError(new Error("WebSocket connection error"))},n.onclose=()=>{this._log("Disconnected"),this.connected=!1,this._stopHeartbeat(),t.autoReconnect&&this.reconnect()}}catch(n){this.handleError(n instanceof Error?n:new Error(String(n)))}}},disconnect(){const e=this.$id;this._log("Disconnecting"),this._stopHeartbeat();const t=fr.get(e);if(t){const n=dr.get(e);n&&(n.autoReconnect=!1),t.close(),fr.delete(e)}this.connected=!1},send(e){const t=this.$id,n=fr.get(t);if(!n||n.readyState!==WebSocket.OPEN){this._log("Cannot send message: not connected");return}const s={...e,timestamp:Date.now()};this._log("Sending:",s),n.send(JSON.stringify(s))},handleMessage(e){var t;switch(this._log("Received:",e),e.type){case"tasks":this.tasks=e.payload||[],this._log("Received tasks:",this.tasks.length),this.tasks.length>0&&this._log("First task sample:",JSON.stringify(this.tasks[0],null,2)),this.lastSync=Date.now(),this.loading=!1;break;case"task:found":if(e.payload){const n=e.payload,s=this.tasks.findIndex(r=>r.id===n.id);s>=0?this.tasks[s]=n:this.tasks.push(n)}break;case"task:updated":if(e.payload){const n=e.payload,s=this.tasks.findIndex(r=>r.id===n.id);s>=0&&(this.tasks[s]=n)}break;case"task:created":if(e.payload){const n=e.payload;this.tasks.push(n)}break;case"task:deleted":if(e.payload){const n=e.payload.id;this.tasks=this.tasks.filter(s=>s.id!==n)}break;case"error":this.error=((t=e.payload)==null?void 0:t.message)||"Unknown error",this._log("Server error:",this.error);break;case"pong":Ko.set(this.$id,Date.now());break;default:this._log("Unknown message type:",e.type)}},handleError(e){this._log("Error:",e.message),this.error=e.message,this.connected=!1},reconnect(){const e=dr.get(this.$id);if(!e)return;const t=e.maxReconnectAttempts||0;if(t>0&&this.reconnectAttempts>=t){this._log("Max reconnection attempts reached"),this.error="Max reconnection attempts reached";return}this.reconnectAttempts++;const n=e.reconnectDelay||uf;this._log(`Reconnecting in ${n}ms (attempt ${this.reconnectAttempts})`),setTimeout(()=>{this._connect()},n)},_startHeartbeat(){const e=this.$id;this._stopHeartbeat(),Ko.set(e,Date.now());const t=setInterval(()=>{const n=Date.now();if(n-(Ko.get(e)||n)>hv){this._log("Heartbeat timeout, reconnecting"),this.disconnect(),this.reconnect();return}this.send({type:"ping"})},dv);Wo.set(e,t)},_stopHeartbeat(){const e=this.$id,t=Wo.get(e);t&&(clearInterval(t),Wo.delete(e))},_log(...e){const t=dr.get(this.$id);t!=null&&t.debug&&console.log("[PiniaTaskProvider]",...e)},async findTask(e){const t=this.tasks.find(n=>n.id===e);if(t)return t;if(this.connected)return new Promise(n=>{const s=`find-${e}-${Date.now()}`,r=setTimeout(()=>{n(void 0)},ff);this.send({type:"find",payload:{taskId:e},requestId:s}),setTimeout(()=>{clearTimeout(r),n(this.tasks.find(i=>i.id===e))},gv)})},async getAllTasks(){return this.tasks.length>0?this.tasks:this.connected?(this.loading=!0,this.send({type:"list"}),new Promise(e=>{const t=setTimeout(()=>{this.loading=!1,e(this.tasks)},ff),n=setInterval(()=>{(!this.loading||this.tasks.length>0)&&(clearTimeout(t),clearInterval(n),this.loading=!1,e(this.tasks))},pv)})):this.tasks},async updateTask(e){if(!this.connected)throw new Error("Not connected to server");const t=this.tasks.findIndex(n=>n.id===e.id);t>=0&&(this.tasks[t]=e),this.send({type:"update",payload:e})}}}),vv=mv,yv={class:"mode-toggle"},_v=Ge({__name:"App",setup(e){const t={pending:0,"in-progress":50,paused:30,"in-review":75,done:100,blocked:20,canceled:0},n=ve("board"),s=ve(window.VITE_WS_URL||void 0||"ws://localhost:3001"),r=ve(5e3),i=vv(),o=ae(()=>i.connectionStatus),a=ae(()=>o.value.connected),l=ae(()=>o.value.error),c=ae(()=>{const M=new URLSearchParams(window.location.search).get("filter");let b=i.tasks;return M==="open"?b=i.tasks.filter(w=>w.status!=="done"&&w.status!=="canceled"):M==="closed"&&(b=i.tasks.filter(w=>w.status==="done"||w.status==="canceled")),b.map(w=>{const F=t[w.status],L={id:w.id,number:parseInt(w.id,10)||0,title:w.title,description:w.description??"",status:w.status,assignee:w.assignee?{id:w.assignee.id,name:w.assignee.name,email:w.assignee.email,avatar:w.assignee.avatar}:void 0,dates:{created:w.createdAt||new Date().toISOString()},tags:w.type?[w.type]:[],progress:{percentage:F},type:w.type,order:w.order,parent:w.groupId?{type:"group",id:G4(w.groupId)}:void 0,groupName:w.groupName,difficulty:w.difficulty};return console.log("Mapped task:",L.id,"assignee:",L.assignee),L})}),u=ae(()=>i.loading);Ka(()=>{i.connect({wsUrl:s.value,autoReconnect:!0,reconnectDelay:r.value})}),qs(()=>{i.disconnect()});const h=()=>{i.getAllTasks()},k=M=>{var v;const b=i.tasks.find(w=>w.id===M.id);b&&i.updateTask({...b,order:M.order,groupId:((v=M.parent)==null?void 0:v.type)==="group"?M.parent.id:void 0,groupName:M.groupName,difficulty:M.difficulty})},I=ae(()=>a.value?"connected":l.value?"error":"connecting"),C=ae(()=>a.value?"Conectado":l.value?"Erro de conexão":"Conectando...");return(M,b)=>(x(),P(Ae,null,[_("div",yv,[_("button",{type:"button",class:_e({active:n.value==="board"}),onClick:b[0]||(b[0]=v=>n.value="board")}," Board ",2),_("button",{type:"button",class:_e({active:n.value==="prioritization"}),onClick:b[1]||(b[1]=v=>n.value="prioritization")}," Priorização ",2)]),n.value==="board"?(x(),Qe(D(fv),{key:0,title:"Taskin Dashboard","connection-status":I.value,"status-text":C.value,"error-message":l.value||"","show-retry":!!l.value,"is-retrying":u.value,"is-loading":u.value,tasks:c.value,onRetry:h},null,8,["connection-status","status-text","error-message","show-retry","is-retrying","is-loading","tasks"])):(x(),Qe(D(Nm),{key:1,tasks:c.value,onUpdateTask:k},null,8,["tasks"]))],64))}}),bv=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},kv=bv(_v,[["__scopeId","data-v-1141c854"]]),k1=W2(kv),wv=Y2();k1.use(wv);k1.mount("#app");
|